Annotation of hatari/configure, revision 1.1.1.8

1.1       root        1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.8 ! root        3: # Generated by GNU Autoconf 2.60 for hatari 1.1.0.
1.1       root        4: #
1.1.1.6   root        5: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
                      6: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1       root        7: # This configure script is free software; the Free Software Foundation
                      8: # gives unlimited permission to copy, distribute and modify it.
                      9: ## --------------------- ##
                     10: ## M4sh Initialization.  ##
                     11: ## --------------------- ##
                     12: 
1.1.1.8 ! root       13: # Be Bourne compatible
1.1       root       14: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                     15:   emulate sh
                     16:   NULLCMD=:
1.1.1.3   root       17:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                     18:   # is contrary to our usage.  Disable this feature.
                     19:   alias -g '${1+"$@"}'='"$@"'
1.1.1.6   root       20:   setopt NO_GLOB_SUBST
                     21: else
1.1.1.8 ! root       22:   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
1.1.1.6   root       23: fi
1.1.1.8 ! root       24: BIN_SH=xpg4; export BIN_SH # for Tru64
        !            25: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.6   root       26: 
                     27: 
                     28: # PATH needs CR
                     29: # Avoid depending upon Character Ranges.
                     30: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                     31: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                     32: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                     33: as_cr_digits='0123456789'
                     34: as_cr_alnum=$as_cr_Letters$as_cr_digits
                     35: 
                     36: # The user is always right.
                     37: if test "${PATH_SEPARATOR+set}" != set; then
                     38:   echo "#! /bin/sh" >conf$$.sh
                     39:   echo  "exit 0"   >>conf$$.sh
                     40:   chmod +x conf$$.sh
                     41:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
                     42:     PATH_SEPARATOR=';'
                     43:   else
                     44:     PATH_SEPARATOR=:
                     45:   fi
                     46:   rm -f conf$$.sh
1.1       root       47: fi
                     48: 
                     49: # Support unset when possible.
1.1.1.3   root       50: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.1       root       51:   as_unset=unset
                     52: else
                     53:   as_unset=false
                     54: fi
                     55: 
1.1.1.3   root       56: 
1.1.1.6   root       57: # IFS
                     58: # We need space, tab and new line, in precisely that order.  Quoting is
                     59: # there to prevent editors from complaining about space-tab.
                     60: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     61: # splitting by setting IFS to empty value.)
                     62: as_nl='
                     63: '
                     64: IFS=" ""       $as_nl"
                     65: 
                     66: # Find who we are.  Look in the path if we contain no directory separator.
                     67: case $0 in
                     68:   *[\\/]* ) as_myself=$0 ;;
                     69:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     70: for as_dir in $PATH
                     71: do
                     72:   IFS=$as_save_IFS
                     73:   test -z "$as_dir" && as_dir=.
                     74:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                     75: done
                     76: IFS=$as_save_IFS
                     77: 
                     78:      ;;
                     79: esac
                     80: # We did not find ourselves, most probably we were run as `sh COMMAND'
                     81: # in which case we are not to be found in the path.
                     82: if test "x$as_myself" = x; then
                     83:   as_myself=$0
                     84: fi
                     85: if test ! -f "$as_myself"; then
                     86:   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                     87:   { (exit 1); exit 1; }
                     88: fi
                     89: 
1.1.1.3   root       90: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.6   root       91: for as_var in ENV MAIL MAILPATH
                     92: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                     93: done
1.1.1.3   root       94: PS1='$ '
                     95: PS2='> '
                     96: PS4='+ '
                     97: 
                     98: # NLS nuisances.
                     99: for as_var in \
                    100:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
                    101:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
                    102:   LC_TELEPHONE LC_TIME
                    103: do
                    104:   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
                    105:     eval $as_var=C; export $as_var
                    106:   else
1.1.1.6   root      107:     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1.1.3   root      108:   fi
                    109: done
                    110: 
                    111: # Required to use basename.
1.1.1.6   root      112: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    113:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.3   root      114:   as_expr=expr
                    115: else
                    116:   as_expr=false
                    117: fi
                    118: 
1.1.1.6   root      119: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1.1.3   root      120:   as_basename=basename
                    121: else
                    122:   as_basename=false
                    123: fi
1.1       root      124: 
                    125: 
                    126: # Name of the executable.
1.1.1.6   root      127: as_me=`$as_basename -- "$0" ||
1.1       root      128: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    129:         X"$0" : 'X\(//\)$' \| \
1.1.1.6   root      130:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1       root      131: echo X/"$0" |
1.1.1.6   root      132:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    133:            s//\1/
                    134:            q
                    135:          }
                    136:          /^X\/\(\/\/\)$/{
                    137:            s//\1/
                    138:            q
                    139:          }
                    140:          /^X\/\(\/\).*/{
                    141:            s//\1/
                    142:            q
                    143:          }
                    144:          s/.*/./; q'`
1.1       root      145: 
1.1.1.6   root      146: # CDPATH.
                    147: $as_unset CDPATH
1.1.1.3   root      148: 
1.1       root      149: 
1.1.1.6   root      150: if test "x$CONFIG_SHELL" = x; then
                    151:   if (eval ":") 2>/dev/null; then
                    152:   as_have_required=yes
                    153: else
                    154:   as_have_required=no
                    155: fi
                    156: 
                    157:   if test $as_have_required = yes &&    (eval ":
                    158: (as_func_return () {
                    159:   (exit \$1)
                    160: }
                    161: as_func_success () {
                    162:   as_func_return 0
                    163: }
                    164: as_func_failure () {
                    165:   as_func_return 1
                    166: }
                    167: as_func_ret_success () {
                    168:   return 0
                    169: }
                    170: as_func_ret_failure () {
                    171:   return 1
                    172: }
                    173: 
                    174: exitcode=0
                    175: if as_func_success; then
                    176:   :
                    177: else
                    178:   exitcode=1
                    179:   echo as_func_success failed.
1.1       root      180: fi
                    181: 
1.1.1.6   root      182: if as_func_failure; then
                    183:   exitcode=1
                    184:   echo as_func_failure succeeded.
                    185: fi
1.1       root      186: 
1.1.1.6   root      187: if as_func_ret_success; then
                    188:   :
                    189: else
                    190:   exitcode=1
                    191:   echo as_func_ret_success failed.
                    192: fi
1.1       root      193: 
1.1.1.6   root      194: if as_func_ret_failure; then
                    195:   exitcode=1
                    196:   echo as_func_ret_failure succeeded.
                    197: fi
                    198: 
                    199: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
                    200:   :
                    201: else
                    202:   exitcode=1
                    203:   echo positional parameters were not saved.
                    204: fi
                    205: 
                    206: test \$exitcode = 0) || { (exit 1); exit 1; }
                    207: 
                    208: (
                    209:   as_lineno_1=\$LINENO
                    210:   as_lineno_2=\$LINENO
                    211:   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
                    212:   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
                    213: ") 2> /dev/null; then
                    214:   :
                    215: else
                    216:   as_candidate_shells=
1.1       root      217:     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1.1.8 ! root      218: for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.1       root      219: do
                    220:   IFS=$as_save_IFS
                    221:   test -z "$as_dir" && as_dir=.
1.1.1.6   root      222:   case $as_dir in
1.1       root      223:         /*)
1.1.1.6   root      224:           for as_base in sh bash ksh sh5; do
                    225:             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
                    226:           done;;
                    227:        esac
                    228: done
                    229: IFS=$as_save_IFS
                    230: 
                    231: 
                    232:       for as_shell in $as_candidate_shells $SHELL; do
                    233:         # Try only shells that exist, to save several forks.
                    234:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    235:                { ("$as_shell") 2> /dev/null <<\_ASEOF
1.1.1.8 ! root      236: # Be Bourne compatible
1.1.1.6   root      237: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                    238:   emulate sh
                    239:   NULLCMD=:
                    240:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                    241:   # is contrary to our usage.  Disable this feature.
                    242:   alias -g '${1+"$@"}'='"$@"'
                    243:   setopt NO_GLOB_SUBST
                    244: else
1.1.1.8 ! root      245:   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
1.1.1.6   root      246: fi
1.1.1.8 ! root      247: BIN_SH=xpg4; export BIN_SH # for Tru64
        !           248: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.6   root      249: 
                    250: :
                    251: _ASEOF
                    252: }; then
                    253:   CONFIG_SHELL=$as_shell
                    254:               as_have_required=yes
                    255:               if { "$as_shell" 2> /dev/null <<\_ASEOF
1.1.1.8 ! root      256: # Be Bourne compatible
1.1.1.6   root      257: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                    258:   emulate sh
                    259:   NULLCMD=:
                    260:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                    261:   # is contrary to our usage.  Disable this feature.
                    262:   alias -g '${1+"$@"}'='"$@"'
                    263:   setopt NO_GLOB_SUBST
                    264: else
1.1.1.8 ! root      265:   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
1.1.1.6   root      266: fi
1.1.1.8 ! root      267: BIN_SH=xpg4; export BIN_SH # for Tru64
        !           268: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.6   root      269: 
                    270: :
                    271: (as_func_return () {
                    272:   (exit $1)
                    273: }
                    274: as_func_success () {
                    275:   as_func_return 0
                    276: }
                    277: as_func_failure () {
                    278:   as_func_return 1
                    279: }
                    280: as_func_ret_success () {
                    281:   return 0
                    282: }
                    283: as_func_ret_failure () {
                    284:   return 1
                    285: }
                    286: 
                    287: exitcode=0
                    288: if as_func_success; then
                    289:   :
                    290: else
                    291:   exitcode=1
                    292:   echo as_func_success failed.
                    293: fi
                    294: 
                    295: if as_func_failure; then
                    296:   exitcode=1
                    297:   echo as_func_failure succeeded.
                    298: fi
                    299: 
                    300: if as_func_ret_success; then
                    301:   :
                    302: else
                    303:   exitcode=1
                    304:   echo as_func_ret_success failed.
                    305: fi
                    306: 
                    307: if as_func_ret_failure; then
                    308:   exitcode=1
                    309:   echo as_func_ret_failure succeeded.
                    310: fi
                    311: 
                    312: if ( set x; as_func_ret_success y && test x = "$1" ); then
                    313:   :
                    314: else
                    315:   exitcode=1
                    316:   echo positional parameters were not saved.
                    317: fi
                    318: 
                    319: test $exitcode = 0) || { (exit 1); exit 1; }
                    320: 
                    321: (
1.1       root      322:   as_lineno_1=$LINENO
                    323:   as_lineno_2=$LINENO
                    324:   test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.6   root      325:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
                    326: 
                    327: _ASEOF
                    328: }; then
                    329:   break
                    330: fi
                    331: 
                    332: fi
                    333: 
                    334:       done
                    335: 
                    336:       if test "x$CONFIG_SHELL" != x; then
                    337:   for as_var in BASH_ENV ENV
                    338:         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                    339:         done
                    340:         export CONFIG_SHELL
                    341:         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
                    342: fi
                    343: 
                    344: 
                    345:     if test $as_have_required = no; then
                    346:   echo This script requires a shell more modern than all the
                    347:       echo shells that I found on your system.  Please install a
                    348:       echo modern shell, or manually run the script under such a
                    349:       echo shell if you do have one.
                    350:       { (exit 1); exit 1; }
                    351: fi
                    352: 
                    353: 
                    354: fi
                    355: 
                    356: fi
                    357: 
                    358: 
                    359: 
                    360: (eval "as_func_return () {
                    361:   (exit \$1)
                    362: }
                    363: as_func_success () {
                    364:   as_func_return 0
                    365: }
                    366: as_func_failure () {
                    367:   as_func_return 1
                    368: }
                    369: as_func_ret_success () {
                    370:   return 0
                    371: }
                    372: as_func_ret_failure () {
                    373:   return 1
                    374: }
                    375: 
                    376: exitcode=0
                    377: if as_func_success; then
                    378:   :
                    379: else
                    380:   exitcode=1
                    381:   echo as_func_success failed.
                    382: fi
                    383: 
                    384: if as_func_failure; then
                    385:   exitcode=1
                    386:   echo as_func_failure succeeded.
                    387: fi
                    388: 
                    389: if as_func_ret_success; then
                    390:   :
                    391: else
                    392:   exitcode=1
                    393:   echo as_func_ret_success failed.
                    394: fi
                    395: 
                    396: if as_func_ret_failure; then
                    397:   exitcode=1
                    398:   echo as_func_ret_failure succeeded.
                    399: fi
                    400: 
                    401: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
                    402:   :
                    403: else
                    404:   exitcode=1
                    405:   echo positional parameters were not saved.
                    406: fi
                    407: 
                    408: test \$exitcode = 0") || {
                    409:   echo No shell found that supports shell functions.
                    410:   echo Please tell [email protected] about your system,
                    411:   echo including any error possibly output before this
                    412:   echo message
                    413: }
                    414: 
                    415: 
                    416: 
                    417:   as_lineno_1=$LINENO
                    418:   as_lineno_2=$LINENO
                    419:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                    420:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1       root      421: 
                    422:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                    423:   # uniformly replaced by the line number.  The first 'sed' inserts a
1.1.1.6   root      424:   # line-number line after each line using $LINENO; the second 'sed'
                    425:   # does the real work.  The second script uses 'N' to pair each
                    426:   # line-number line with the line containing $LINENO, and appends
                    427:   # trailing '-' during substitution so that $LINENO is not a special
                    428:   # case at line end.
1.1       root      429:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.6   root      430:   # scripts with optimization help from Paolo Bonzini.  Blame Lee
                    431:   # E. McMahon (1931-1989) for sed's syntax.  :-)
                    432:   sed -n '
                    433:     p
                    434:     /[$]LINENO/=
                    435:   ' <$as_myself |
1.1       root      436:     sed '
1.1.1.6   root      437:       s/[$]LINENO.*/&-/
                    438:       t lineno
                    439:       b
                    440:       :lineno
1.1       root      441:       N
1.1.1.6   root      442:       :loop
                    443:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1       root      444:       t loop
1.1.1.6   root      445:       s/-\n.*//
1.1       root      446:     ' >$as_me.lineno &&
1.1.1.6   root      447:   chmod +x "$as_me.lineno" ||
1.1       root      448:     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
                    449:    { (exit 1); exit 1; }; }
                    450: 
                    451:   # Don't try to exec as it changes $[0], causing all sort of problems
                    452:   # (the dirname of $[0] is not the place where we might find the
1.1.1.6   root      453:   # original and so on.  Autoconf is especially sensitive to this).
                    454:   . "./$as_me.lineno"
1.1       root      455:   # Exit status is that of the last command.
                    456:   exit
                    457: }
                    458: 
                    459: 
1.1.1.6   root      460: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    461:   as_dirname=dirname
                    462: else
                    463:   as_dirname=false
                    464: fi
                    465: 
                    466: ECHO_C= ECHO_N= ECHO_T=
                    467: case `echo -n x` in
                    468: -n*)
                    469:   case `echo 'x\c'` in
                    470:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                    471:   *)   ECHO_C='\c';;
                    472:   esac;;
                    473: *)
                    474:   ECHO_N='-n';;
1.1       root      475: esac
                    476: 
1.1.1.6   root      477: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    478:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1       root      479:   as_expr=expr
                    480: else
                    481:   as_expr=false
                    482: fi
                    483: 
                    484: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.6   root      485: if test -d conf$$.dir; then
                    486:   rm -f conf$$.dir/conf$$.file
                    487: else
                    488:   rm -f conf$$.dir
                    489:   mkdir conf$$.dir
                    490: fi
1.1       root      491: echo >conf$$.file
                    492: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.1.1.6   root      493:   as_ln_s='ln -s'
                    494:   # ... but there are two gotchas:
                    495:   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    496:   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    497:   # In both cases, we have to default to `cp -p'.
                    498:   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1       root      499:     as_ln_s='cp -p'
                    500: elif ln conf$$.file conf$$ 2>/dev/null; then
                    501:   as_ln_s=ln
                    502: else
                    503:   as_ln_s='cp -p'
                    504: fi
1.1.1.6   root      505: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    506: rmdir conf$$.dir 2>/dev/null
1.1       root      507: 
1.1.1.3   root      508: if mkdir -p . 2>/dev/null; then
                    509:   as_mkdir_p=:
                    510: else
                    511:   test -d ./-p && rmdir ./-p
                    512:   as_mkdir_p=false
                    513: fi
                    514: 
1.1.1.8 ! root      515: # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
        !           516: # systems may use methods other than mode bits to determine executability.
        !           517: cat >conf$$.file <<_ASEOF
        !           518: #! /bin/sh
        !           519: exit 0
        !           520: _ASEOF
        !           521: chmod +x conf$$.file
        !           522: if test -x conf$$.file >/dev/null 2>&1; then
        !           523:   as_executable_p="test -x"
1.1.1.6   root      524: else
1.1.1.8 ! root      525:   as_executable_p=:
1.1.1.6   root      526: fi
1.1.1.8 ! root      527: rm -f conf$$.file
1.1       root      528: 
                    529: # Sed expression to map a string onto a valid CPP name.
1.1.1.3   root      530: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.1       root      531: 
                    532: # Sed expression to map a string onto a valid variable name.
1.1.1.3   root      533: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.1       root      534: 
                    535: 
                    536: 
1.1.1.6   root      537: exec 7<&0 </dev/null 6>&1
1.1       root      538: 
                    539: # Name of the host.
                    540: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
                    541: # so uname gets run too.
                    542: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    543: 
                    544: #
                    545: # Initializations.
                    546: #
                    547: ac_default_prefix=/usr/local
1.1.1.6   root      548: ac_clean_files=
1.1.1.3   root      549: ac_config_libobj_dir=.
1.1.1.6   root      550: LIBOBJS=
1.1       root      551: cross_compiling=no
                    552: subdirs=
                    553: MFLAGS=
                    554: MAKEFLAGS=
                    555: SHELL=${CONFIG_SHELL-/bin/sh}
                    556: 
                    557: # Identity of this package.
                    558: PACKAGE_NAME='hatari'
                    559: PACKAGE_TARNAME='hatari'
1.1.1.8 ! root      560: PACKAGE_VERSION='1.1.0'
        !           561: PACKAGE_STRING='hatari 1.1.0'
1.1       root      562: PACKAGE_BUGREPORT=''
                    563: 
                    564: ac_unique_file="src/main.c"
                    565: # Factoring default headers for most tests.
                    566: ac_includes_default="\
                    567: #include <stdio.h>
1.1.1.8 ! root      568: #if HAVE_SYS_TYPES_H
1.1       root      569: # include <sys/types.h>
                    570: #endif
1.1.1.8 ! root      571: #if HAVE_SYS_STAT_H
1.1       root      572: # include <sys/stat.h>
                    573: #endif
1.1.1.8 ! root      574: #if STDC_HEADERS
1.1       root      575: # include <stdlib.h>
                    576: # include <stddef.h>
                    577: #else
1.1.1.8 ! root      578: # if HAVE_STDLIB_H
1.1       root      579: #  include <stdlib.h>
                    580: # endif
                    581: #endif
1.1.1.8 ! root      582: #if HAVE_STRING_H
        !           583: # if !STDC_HEADERS && HAVE_MEMORY_H
1.1       root      584: #  include <memory.h>
                    585: # endif
                    586: # include <string.h>
                    587: #endif
1.1.1.8 ! root      588: #if HAVE_STRINGS_H
1.1       root      589: # include <strings.h>
                    590: #endif
1.1.1.8 ! root      591: #if HAVE_INTTYPES_H
1.1       root      592: # include <inttypes.h>
                    593: #endif
1.1.1.8 ! root      594: #if HAVE_STDINT_H
1.1.1.6   root      595: # include <stdint.h>
                    596: #endif
1.1.1.8 ! root      597: #if HAVE_UNISTD_H
1.1       root      598: # include <unistd.h>
                    599: #endif"
                    600: 
1.1.1.6   root      601: ac_subst_vars='SHELL
                    602: PATH_SEPARATOR
                    603: PACKAGE_NAME
                    604: PACKAGE_TARNAME
                    605: PACKAGE_VERSION
                    606: PACKAGE_STRING
                    607: PACKAGE_BUGREPORT
                    608: exec_prefix
                    609: prefix
                    610: program_transform_name
                    611: bindir
                    612: sbindir
                    613: libexecdir
                    614: datarootdir
                    615: datadir
                    616: sysconfdir
                    617: sharedstatedir
                    618: localstatedir
                    619: includedir
                    620: oldincludedir
                    621: docdir
                    622: infodir
                    623: htmldir
                    624: dvidir
                    625: pdfdir
                    626: psdir
                    627: libdir
                    628: localedir
                    629: mandir
                    630: DEFS
                    631: ECHO_C
                    632: ECHO_N
                    633: ECHO_T
                    634: LIBS
                    635: build_alias
                    636: host_alias
                    637: target_alias
                    638: build
                    639: build_cpu
                    640: build_vendor
                    641: build_os
                    642: host
                    643: host_cpu
                    644: host_vendor
                    645: host_os
                    646: target
                    647: target_cpu
                    648: target_vendor
                    649: target_os
                    650: CC
                    651: CFLAGS
                    652: LDFLAGS
                    653: CPPFLAGS
                    654: ac_ct_CC
                    655: EXEEXT
                    656: OBJEXT
                    657: INSTALL_PROGRAM
                    658: INSTALL_SCRIPT
                    659: INSTALL_DATA
                    660: RANLIB
                    661: CPP
                    662: GREP
                    663: EGREP
1.1.1.8 ! root      664: SDL_CONFIG
        !           665: SDL_CFLAGS
        !           666: SDL_LIBS
1.1.1.6   root      667: HAVE_PKG_CONFIG
                    668: PKG_CONFIG
                    669: X_CFLAGS
                    670: X_LIBS
                    671: XMKMF
                    672: X_PRE_LIBS
                    673: X_EXTRA_LIBS
                    674: LIBOBJS
                    675: HOSTCC
                    676: HOSTCFLAGS
                    677: HOSTLDFLAGS
                    678: LTLIBOBJS'
1.1.1.3   root      679: ac_subst_files=''
1.1.1.6   root      680:       ac_precious_vars='build_alias
                    681: host_alias
                    682: target_alias
                    683: CC
                    684: CFLAGS
                    685: LDFLAGS
                    686: CPPFLAGS
                    687: CPP
                    688: PKG_CONFIG
                    689: X_CFLAGS
                    690: X_LIBS
                    691: XMKMF'
                    692: 
1.1       root      693: 
                    694: # Initialize some variables set by options.
                    695: ac_init_help=
                    696: ac_init_version=false
                    697: # The variables have the same names as the options, with
                    698: # dashes changed to underlines.
                    699: cache_file=/dev/null
                    700: exec_prefix=NONE
                    701: no_create=
                    702: no_recursion=
                    703: prefix=NONE
                    704: program_prefix=NONE
                    705: program_suffix=NONE
                    706: program_transform_name=s,x,x,
                    707: silent=
                    708: site=
                    709: srcdir=
                    710: verbose=
                    711: x_includes=NONE
                    712: x_libraries=NONE
                    713: 
                    714: # Installation directory options.
                    715: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    716: # and all the variables that are supposed to be based on exec_prefix
                    717: # by default will actually change.
                    718: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1.1.6   root      719: # (The list follows the same order as the GNU Coding Standards.)
1.1       root      720: bindir='${exec_prefix}/bin'
                    721: sbindir='${exec_prefix}/sbin'
                    722: libexecdir='${exec_prefix}/libexec'
1.1.1.6   root      723: datarootdir='${prefix}/share'
                    724: datadir='${datarootdir}'
1.1       root      725: sysconfdir='${prefix}/etc'
                    726: sharedstatedir='${prefix}/com'
                    727: localstatedir='${prefix}/var'
                    728: includedir='${prefix}/include'
                    729: oldincludedir='/usr/include'
1.1.1.6   root      730: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    731: infodir='${datarootdir}/info'
                    732: htmldir='${docdir}'
                    733: dvidir='${docdir}'
                    734: pdfdir='${docdir}'
                    735: psdir='${docdir}'
                    736: libdir='${exec_prefix}/lib'
                    737: localedir='${datarootdir}/locale'
                    738: mandir='${datarootdir}/man'
1.1       root      739: 
                    740: ac_prev=
1.1.1.6   root      741: ac_dashdash=
1.1       root      742: for ac_option
                    743: do
                    744:   # If the previous option needs an argument, assign it.
                    745:   if test -n "$ac_prev"; then
1.1.1.6   root      746:     eval $ac_prev=\$ac_option
1.1       root      747:     ac_prev=
                    748:     continue
                    749:   fi
                    750: 
1.1.1.6   root      751:   case $ac_option in
                    752:   *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    753:   *)   ac_optarg=yes ;;
                    754:   esac
1.1       root      755: 
                    756:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    757: 
1.1.1.6   root      758:   case $ac_dashdash$ac_option in
                    759:   --)
                    760:     ac_dashdash=yes ;;
1.1       root      761: 
                    762:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    763:     ac_prev=bindir ;;
                    764:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    765:     bindir=$ac_optarg ;;
                    766: 
                    767:   -build | --build | --buil | --bui | --bu)
                    768:     ac_prev=build_alias ;;
                    769:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    770:     build_alias=$ac_optarg ;;
                    771: 
                    772:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    773:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    774:     ac_prev=cache_file ;;
                    775:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    776:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    777:     cache_file=$ac_optarg ;;
                    778: 
                    779:   --config-cache | -C)
                    780:     cache_file=config.cache ;;
                    781: 
1.1.1.6   root      782:   -datadir | --datadir | --datadi | --datad)
1.1       root      783:     ac_prev=datadir ;;
1.1.1.6   root      784:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.1       root      785:     datadir=$ac_optarg ;;
                    786: 
1.1.1.6   root      787:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    788:   | --dataroo | --dataro | --datar)
                    789:     ac_prev=datarootdir ;;
                    790:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    791:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    792:     datarootdir=$ac_optarg ;;
                    793: 
1.1       root      794:   -disable-* | --disable-*)
                    795:     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
                    796:     # Reject names that are not valid shell variable names.
1.1.1.8 ! root      797:     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1.1       root      798:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                    799:    { (exit 1); exit 1; }; }
1.1.1.8 ! root      800:     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1.1.1.6   root      801:     eval enable_$ac_feature=no ;;
                    802: 
                    803:   -docdir | --docdir | --docdi | --doc | --do)
                    804:     ac_prev=docdir ;;
                    805:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    806:     docdir=$ac_optarg ;;
                    807: 
                    808:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    809:     ac_prev=dvidir ;;
                    810:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    811:     dvidir=$ac_optarg ;;
1.1       root      812: 
                    813:   -enable-* | --enable-*)
                    814:     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
                    815:     # Reject names that are not valid shell variable names.
1.1.1.8 ! root      816:     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1.1       root      817:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                    818:    { (exit 1); exit 1; }; }
1.1.1.8 ! root      819:     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1.1.1.6   root      820:     eval enable_$ac_feature=\$ac_optarg ;;
1.1       root      821: 
                    822:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    823:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    824:   | --exec | --exe | --ex)
                    825:     ac_prev=exec_prefix ;;
                    826:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    827:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    828:   | --exec=* | --exe=* | --ex=*)
                    829:     exec_prefix=$ac_optarg ;;
                    830: 
                    831:   -gas | --gas | --ga | --g)
                    832:     # Obsolete; use --with-gas.
                    833:     with_gas=yes ;;
                    834: 
                    835:   -help | --help | --hel | --he | -h)
                    836:     ac_init_help=long ;;
                    837:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    838:     ac_init_help=recursive ;;
                    839:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    840:     ac_init_help=short ;;
                    841: 
                    842:   -host | --host | --hos | --ho)
                    843:     ac_prev=host_alias ;;
                    844:   -host=* | --host=* | --hos=* | --ho=*)
                    845:     host_alias=$ac_optarg ;;
                    846: 
1.1.1.6   root      847:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                    848:     ac_prev=htmldir ;;
                    849:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                    850:   | --ht=*)
                    851:     htmldir=$ac_optarg ;;
                    852: 
1.1       root      853:   -includedir | --includedir | --includedi | --included | --include \
                    854:   | --includ | --inclu | --incl | --inc)
                    855:     ac_prev=includedir ;;
                    856:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    857:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    858:     includedir=$ac_optarg ;;
                    859: 
                    860:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    861:     ac_prev=infodir ;;
                    862:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    863:     infodir=$ac_optarg ;;
                    864: 
                    865:   -libdir | --libdir | --libdi | --libd)
                    866:     ac_prev=libdir ;;
                    867:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    868:     libdir=$ac_optarg ;;
                    869: 
                    870:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    871:   | --libexe | --libex | --libe)
                    872:     ac_prev=libexecdir ;;
                    873:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    874:   | --libexe=* | --libex=* | --libe=*)
                    875:     libexecdir=$ac_optarg ;;
                    876: 
1.1.1.6   root      877:   -localedir | --localedir | --localedi | --localed | --locale)
                    878:     ac_prev=localedir ;;
                    879:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                    880:     localedir=$ac_optarg ;;
                    881: 
1.1       root      882:   -localstatedir | --localstatedir | --localstatedi | --localstated \
1.1.1.6   root      883:   | --localstate | --localstat | --localsta | --localst | --locals)
1.1       root      884:     ac_prev=localstatedir ;;
                    885:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.1.1.6   root      886:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.1       root      887:     localstatedir=$ac_optarg ;;
                    888: 
                    889:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    890:     ac_prev=mandir ;;
                    891:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    892:     mandir=$ac_optarg ;;
                    893: 
                    894:   -nfp | --nfp | --nf)
                    895:     # Obsolete; use --without-fp.
                    896:     with_fp=no ;;
                    897: 
                    898:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    899:   | --no-cr | --no-c | -n)
                    900:     no_create=yes ;;
                    901: 
                    902:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    903:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    904:     no_recursion=yes ;;
                    905: 
                    906:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    907:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    908:   | --oldin | --oldi | --old | --ol | --o)
                    909:     ac_prev=oldincludedir ;;
                    910:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    911:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    912:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    913:     oldincludedir=$ac_optarg ;;
                    914: 
                    915:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    916:     ac_prev=prefix ;;
                    917:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    918:     prefix=$ac_optarg ;;
                    919: 
                    920:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    921:   | --program-pre | --program-pr | --program-p)
                    922:     ac_prev=program_prefix ;;
                    923:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    924:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    925:     program_prefix=$ac_optarg ;;
                    926: 
                    927:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    928:   | --program-suf | --program-su | --program-s)
                    929:     ac_prev=program_suffix ;;
                    930:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    931:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    932:     program_suffix=$ac_optarg ;;
                    933: 
                    934:   -program-transform-name | --program-transform-name \
                    935:   | --program-transform-nam | --program-transform-na \
                    936:   | --program-transform-n | --program-transform- \
                    937:   | --program-transform | --program-transfor \
                    938:   | --program-transfo | --program-transf \
                    939:   | --program-trans | --program-tran \
                    940:   | --progr-tra | --program-tr | --program-t)
                    941:     ac_prev=program_transform_name ;;
                    942:   -program-transform-name=* | --program-transform-name=* \
                    943:   | --program-transform-nam=* | --program-transform-na=* \
                    944:   | --program-transform-n=* | --program-transform-=* \
                    945:   | --program-transform=* | --program-transfor=* \
                    946:   | --program-transfo=* | --program-transf=* \
                    947:   | --program-trans=* | --program-tran=* \
                    948:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    949:     program_transform_name=$ac_optarg ;;
                    950: 
1.1.1.6   root      951:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                    952:     ac_prev=pdfdir ;;
                    953:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                    954:     pdfdir=$ac_optarg ;;
                    955: 
                    956:   -psdir | --psdir | --psdi | --psd | --ps)
                    957:     ac_prev=psdir ;;
                    958:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                    959:     psdir=$ac_optarg ;;
                    960: 
1.1       root      961:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    962:   | -silent | --silent | --silen | --sile | --sil)
                    963:     silent=yes ;;
                    964: 
                    965:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    966:     ac_prev=sbindir ;;
                    967:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    968:   | --sbi=* | --sb=*)
                    969:     sbindir=$ac_optarg ;;
                    970: 
                    971:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    972:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    973:   | --sharedst | --shareds | --shared | --share | --shar \
                    974:   | --sha | --sh)
                    975:     ac_prev=sharedstatedir ;;
                    976:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    977:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    978:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    979:   | --sha=* | --sh=*)
                    980:     sharedstatedir=$ac_optarg ;;
                    981: 
                    982:   -site | --site | --sit)
                    983:     ac_prev=site ;;
                    984:   -site=* | --site=* | --sit=*)
                    985:     site=$ac_optarg ;;
                    986: 
                    987:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    988:     ac_prev=srcdir ;;
                    989:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    990:     srcdir=$ac_optarg ;;
                    991: 
                    992:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    993:   | --syscon | --sysco | --sysc | --sys | --sy)
                    994:     ac_prev=sysconfdir ;;
                    995:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    996:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                    997:     sysconfdir=$ac_optarg ;;
                    998: 
                    999:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1000:     ac_prev=target_alias ;;
                   1001:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1002:     target_alias=$ac_optarg ;;
                   1003: 
                   1004:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1005:     verbose=yes ;;
                   1006: 
                   1007:   -version | --version | --versio | --versi | --vers | -V)
                   1008:     ac_init_version=: ;;
                   1009: 
                   1010:   -with-* | --with-*)
                   1011:     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
                   1012:     # Reject names that are not valid shell variable names.
1.1.1.8 ! root     1013:     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1.1       root     1014:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                   1015:    { (exit 1); exit 1; }; }
1.1.1.8 ! root     1016:     ac_package=`echo $ac_package| sed 's/-/_/g'`
1.1.1.6   root     1017:     eval with_$ac_package=\$ac_optarg ;;
1.1       root     1018: 
                   1019:   -without-* | --without-*)
                   1020:     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
                   1021:     # Reject names that are not valid shell variable names.
1.1.1.8 ! root     1022:     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1.1       root     1023:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                   1024:    { (exit 1); exit 1; }; }
1.1.1.8 ! root     1025:     ac_package=`echo $ac_package | sed 's/-/_/g'`
1.1.1.6   root     1026:     eval with_$ac_package=no ;;
1.1       root     1027: 
                   1028:   --x)
                   1029:     # Obsolete; use --with-x.
                   1030:     with_x=yes ;;
                   1031: 
                   1032:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1033:   | --x-incl | --x-inc | --x-in | --x-i)
                   1034:     ac_prev=x_includes ;;
                   1035:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1036:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1037:     x_includes=$ac_optarg ;;
                   1038: 
                   1039:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1040:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1041:     ac_prev=x_libraries ;;
                   1042:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1043:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1044:     x_libraries=$ac_optarg ;;
                   1045: 
                   1046:   -*) { echo "$as_me: error: unrecognized option: $ac_option
                   1047: Try \`$0 --help' for more information." >&2
                   1048:    { (exit 1); exit 1; }; }
                   1049:     ;;
                   1050: 
                   1051:   *=*)
                   1052:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1053:     # Reject names that are not valid shell variable names.
                   1054:     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
                   1055:       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
                   1056:    { (exit 1); exit 1; }; }
1.1.1.6   root     1057:     eval $ac_envvar=\$ac_optarg
1.1       root     1058:     export $ac_envvar ;;
                   1059: 
                   1060:   *)
                   1061:     # FIXME: should be removed in autoconf 3.0.
                   1062:     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
                   1063:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
                   1064:       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
                   1065:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
                   1066:     ;;
                   1067: 
                   1068:   esac
                   1069: done
                   1070: 
                   1071: if test -n "$ac_prev"; then
                   1072:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
                   1073:   { echo "$as_me: error: missing argument to $ac_option" >&2
                   1074:    { (exit 1); exit 1; }; }
                   1075: fi
                   1076: 
1.1.1.6   root     1077: # Be sure to have absolute directory names.
                   1078: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1079:                datadir sysconfdir sharedstatedir localstatedir includedir \
                   1080:                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1081:                libdir localedir mandir
1.1       root     1082: do
1.1.1.6   root     1083:   eval ac_val=\$$ac_var
1.1       root     1084:   case $ac_val in
1.1.1.6   root     1085:     [\\/$]* | ?:[\\/]* )  continue;;
                   1086:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1       root     1087:   esac
1.1.1.6   root     1088:   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
                   1089:    { (exit 1); exit 1; }; }
1.1       root     1090: done
                   1091: 
                   1092: # There might be people who depend on the old broken behavior: `$host'
                   1093: # used to hold the argument of --host etc.
                   1094: # FIXME: To remove some day.
                   1095: build=$build_alias
                   1096: host=$host_alias
                   1097: target=$target_alias
                   1098: 
                   1099: # FIXME: To remove some day.
                   1100: if test "x$host_alias" != x; then
                   1101:   if test "x$build_alias" = x; then
                   1102:     cross_compiling=maybe
                   1103:     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
                   1104:     If a cross compiler is detected then cross compile mode will be used." >&2
                   1105:   elif test "x$build_alias" != "x$host_alias"; then
                   1106:     cross_compiling=yes
                   1107:   fi
                   1108: fi
                   1109: 
                   1110: ac_tool_prefix=
                   1111: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1112: 
                   1113: test "$silent" = yes && exec 6>/dev/null
                   1114: 
                   1115: 
1.1.1.6   root     1116: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1117: ac_ls_di=`ls -di .` &&
                   1118: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
                   1119:   { echo "$as_me: error: Working directory cannot be determined" >&2
                   1120:    { (exit 1); exit 1; }; }
                   1121: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
                   1122:   { echo "$as_me: error: pwd does not report name of working directory" >&2
                   1123:    { (exit 1); exit 1; }; }
                   1124: 
                   1125: 
1.1       root     1126: # Find the source files, if location was not specified.
                   1127: if test -z "$srcdir"; then
                   1128:   ac_srcdir_defaulted=yes
1.1.1.6   root     1129:   # Try the directory containing this script, then the parent directory.
                   1130:   ac_confdir=`$as_dirname -- "$0" ||
1.1       root     1131: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.3   root     1132:         X"$0" : 'X\(//\)[^/]' \| \
                   1133:         X"$0" : 'X\(//\)$' \| \
1.1.1.6   root     1134:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1       root     1135: echo X"$0" |
1.1.1.6   root     1136:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1137:            s//\1/
                   1138:            q
                   1139:          }
                   1140:          /^X\(\/\/\)[^/].*/{
                   1141:            s//\1/
                   1142:            q
                   1143:          }
                   1144:          /^X\(\/\/\)$/{
                   1145:            s//\1/
                   1146:            q
                   1147:          }
                   1148:          /^X\(\/\).*/{
                   1149:            s//\1/
                   1150:            q
                   1151:          }
                   1152:          s/.*/./; q'`
1.1       root     1153:   srcdir=$ac_confdir
1.1.1.6   root     1154:   if test ! -r "$srcdir/$ac_unique_file"; then
1.1       root     1155:     srcdir=..
                   1156:   fi
                   1157: else
                   1158:   ac_srcdir_defaulted=no
                   1159: fi
1.1.1.6   root     1160: if test ! -r "$srcdir/$ac_unique_file"; then
                   1161:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
                   1162:   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.1       root     1163:    { (exit 1); exit 1; }; }
                   1164: fi
1.1.1.6   root     1165: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1166: ac_abs_confdir=`(
                   1167:        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1.1.1.3   root     1168:    { (exit 1); exit 1; }; }
1.1.1.6   root     1169:        pwd)`
                   1170: # When building in place, set srcdir=.
                   1171: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1172:   srcdir=.
                   1173: fi
                   1174: # Remove unnecessary trailing slashes from srcdir.
                   1175: # Double slashes in file names in object file debugging info
                   1176: # mess up M-x gdb in Emacs.
                   1177: case $srcdir in
                   1178: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1179: esac
                   1180: for ac_var in $ac_precious_vars; do
                   1181:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1182:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1183:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1184:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1185: done
                   1186: 
                   1187: #
1.1       root     1188: # Report the --help message.
                   1189: #
                   1190: if test "$ac_init_help" = "long"; then
                   1191:   # Omit some internal or obsolete options to make the list less imposing.
                   1192:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1193:   cat <<_ACEOF
1.1.1.8 ! root     1194: \`configure' configures hatari 1.1.0 to adapt to many kinds of systems.
1.1       root     1195: 
                   1196: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1197: 
                   1198: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1199: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1200: 
                   1201: Defaults for the options are specified in brackets.
                   1202: 
                   1203: Configuration:
                   1204:   -h, --help              display this help and exit
                   1205:       --help=short        display options specific to this package
                   1206:       --help=recursive    display the short help of all the included packages
                   1207:   -V, --version           display version information and exit
                   1208:   -q, --quiet, --silent   do not print \`checking...' messages
                   1209:       --cache-file=FILE   cache test results in FILE [disabled]
                   1210:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1211:   -n, --no-create         do not create output files
                   1212:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1213: 
                   1214: Installation directories:
                   1215:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.1.1.3   root     1216:                          [$ac_default_prefix]
1.1       root     1217:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.1.1.3   root     1218:                          [PREFIX]
1.1       root     1219: 
                   1220: By default, \`make install' will install all the files in
                   1221: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1222: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1223: for instance \`--prefix=\$HOME'.
                   1224: 
                   1225: For better control, use the options below.
                   1226: 
                   1227: Fine tuning of the installation directories:
                   1228:   --bindir=DIR           user executables [EPREFIX/bin]
                   1229:   --sbindir=DIR          system admin executables [EPREFIX/sbin]
                   1230:   --libexecdir=DIR       program executables [EPREFIX/libexec]
                   1231:   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
                   1232:   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
                   1233:   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
                   1234:   --libdir=DIR           object code libraries [EPREFIX/lib]
                   1235:   --includedir=DIR       C header files [PREFIX/include]
                   1236:   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1.1.1.6   root     1237:   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
                   1238:   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
                   1239:   --infodir=DIR          info documentation [DATAROOTDIR/info]
                   1240:   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
                   1241:   --mandir=DIR           man documentation [DATAROOTDIR/man]
                   1242:   --docdir=DIR           documentation root [DATAROOTDIR/doc/hatari]
                   1243:   --htmldir=DIR          html documentation [DOCDIR]
                   1244:   --dvidir=DIR           dvi documentation [DOCDIR]
                   1245:   --pdfdir=DIR           pdf documentation [DOCDIR]
                   1246:   --psdir=DIR            ps documentation [DOCDIR]
1.1       root     1247: _ACEOF
                   1248: 
                   1249:   cat <<\_ACEOF
                   1250: 
1.1.1.6   root     1251: X features:
                   1252:   --x-includes=DIR    X include files are in DIR
                   1253:   --x-libraries=DIR   X library files are in DIR
                   1254: 
1.1       root     1255: System types:
                   1256:   --build=BUILD     configure for building on BUILD [guessed]
                   1257:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1258:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1259: _ACEOF
                   1260: fi
                   1261: 
                   1262: if test -n "$ac_init_help"; then
                   1263:   case $ac_init_help in
1.1.1.8 ! root     1264:      short | recursive ) echo "Configuration of hatari 1.1.0:";;
1.1       root     1265:    esac
                   1266:   cat <<\_ACEOF
                   1267: 
                   1268: Optional Features:
                   1269:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1270:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1271:   --enable-werror         Compile with the "-Werror" C flag
1.1.1.8 ! root     1272:   --enable-tracing        Enable tracing
1.1.1.6   root     1273:   --enable-small-mem      Use less memory - at the expense of emulation speed
1.1       root     1274:   --disable-sdltest       Do not try to compile and run a test SDL program
                   1275: 
                   1276: Optional Packages:
                   1277:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1278:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1279:   --with-extra-inc=DIR    additional include files are in DIR
                   1280:   --with-extra-lib=DIR    additional library files are in DIR
                   1281:   --with-hostcc=x         Use x as compiler for the host system
                   1282:   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
                   1283:   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1.1.1.6   root     1284:   --with-x                use the X Window System
1.1       root     1285: 
                   1286: Some influential environment variables:
                   1287:   CC          C compiler command
                   1288:   CFLAGS      C compiler flags
                   1289:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1290:               nonstandard directory <lib dir>
1.1.1.6   root     1291:   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
                   1292:               you have headers in a nonstandard directory <include dir>
1.1       root     1293:   CPP         C preprocessor
1.1.1.6   root     1294:   PKG_CONFIG  path to pkg-config utility
                   1295:   X_CFLAGS    C compiler flags for X, overriding pkg-config
                   1296:   X_LIBS      linker flags for X, overriding pkg-config
                   1297:   XMKMF       Path to xmkmf, Makefile generator for X Window System
1.1       root     1298: 
                   1299: Use these variables to override the choices made by `configure' or to help
                   1300: it to find libraries and programs with nonstandard names/locations.
                   1301: 
                   1302: _ACEOF
1.1.1.6   root     1303: ac_status=$?
1.1       root     1304: fi
                   1305: 
                   1306: if test "$ac_init_help" = "recursive"; then
                   1307:   # If there are subdirs, report their specific --help.
                   1308:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.1.1.6   root     1309:     test -d "$ac_dir" || continue
1.1       root     1310:     ac_builddir=.
                   1311: 
1.1.1.6   root     1312: case "$ac_dir" in
                   1313: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1314: *)
1.1       root     1315:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.6   root     1316:   # A ".." for each directory in $ac_dir_suffix.
                   1317:   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
                   1318:   case $ac_top_builddir_sub in
                   1319:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1320:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1321:   esac ;;
                   1322: esac
                   1323: ac_abs_top_builddir=$ac_pwd
                   1324: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1325: # for backward compatibility:
                   1326: ac_top_builddir=$ac_top_build_prefix
1.1       root     1327: 
                   1328: case $srcdir in
1.1.1.6   root     1329:   .)  # We are building in place.
1.1       root     1330:     ac_srcdir=.
1.1.1.6   root     1331:     ac_top_srcdir=$ac_top_builddir_sub
                   1332:     ac_abs_top_srcdir=$ac_pwd ;;
                   1333:   [\\/]* | ?:[\\/]* )  # Absolute name.
1.1       root     1334:     ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.6   root     1335:     ac_top_srcdir=$srcdir
                   1336:     ac_abs_top_srcdir=$srcdir ;;
                   1337:   *) # Relative name.
                   1338:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1339:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1340:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.1.1.3   root     1341: esac
1.1.1.6   root     1342: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1       root     1343: 
1.1.1.6   root     1344:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1345:     # Check for guested configure.
                   1346:     if test -f "$ac_srcdir/configure.gnu"; then
                   1347:       echo &&
                   1348:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1349:     elif test -f "$ac_srcdir/configure"; then
                   1350:       echo &&
                   1351:       $SHELL "$ac_srcdir/configure" --help=recursive
1.1       root     1352:     else
                   1353:       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1.1.6   root     1354:     fi || ac_status=$?
                   1355:     cd "$ac_pwd" || { ac_status=$?; break; }
1.1       root     1356:   done
                   1357: fi
                   1358: 
1.1.1.6   root     1359: test -n "$ac_init_help" && exit $ac_status
1.1       root     1360: if $ac_init_version; then
                   1361:   cat <<\_ACEOF
1.1.1.8 ! root     1362: hatari configure 1.1.0
        !          1363: generated by GNU Autoconf 2.60
1.1       root     1364: 
1.1.1.6   root     1365: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
                   1366: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1       root     1367: This configure script is free software; the Free Software Foundation
                   1368: gives unlimited permission to copy, distribute and modify it.
                   1369: _ACEOF
1.1.1.6   root     1370:   exit
1.1       root     1371: fi
1.1.1.6   root     1372: cat >config.log <<_ACEOF
1.1       root     1373: This file contains any messages produced by compilers while
                   1374: running configure, to aid debugging if configure makes a mistake.
                   1375: 
1.1.1.8 ! root     1376: It was created by hatari $as_me 1.1.0, which was
        !          1377: generated by GNU Autoconf 2.60.  Invocation command line was
1.1       root     1378: 
                   1379:   $ $0 $@
                   1380: 
                   1381: _ACEOF
1.1.1.6   root     1382: exec 5>>config.log
1.1       root     1383: {
                   1384: cat <<_ASUNAME
                   1385: ## --------- ##
                   1386: ## Platform. ##
                   1387: ## --------- ##
                   1388: 
                   1389: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   1390: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   1391: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   1392: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   1393: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                   1394: 
                   1395: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   1396: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
                   1397: 
                   1398: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   1399: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   1400: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.1.1.6   root     1401: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1.1       root     1402: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   1403: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   1404: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
                   1405: 
                   1406: _ASUNAME
                   1407: 
                   1408: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1409: for as_dir in $PATH
                   1410: do
                   1411:   IFS=$as_save_IFS
                   1412:   test -z "$as_dir" && as_dir=.
                   1413:   echo "PATH: $as_dir"
                   1414: done
1.1.1.6   root     1415: IFS=$as_save_IFS
1.1       root     1416: 
                   1417: } >&5
                   1418: 
                   1419: cat >&5 <<_ACEOF
                   1420: 
                   1421: 
                   1422: ## ----------- ##
                   1423: ## Core tests. ##
                   1424: ## ----------- ##
                   1425: 
                   1426: _ACEOF
                   1427: 
                   1428: 
                   1429: # Keep a trace of the command line.
                   1430: # Strip out --no-create and --no-recursion so they do not pile up.
1.1.1.3   root     1431: # Strip out --silent because we don't want to record it for future runs.
1.1       root     1432: # Also quote any args containing shell meta-characters.
1.1.1.3   root     1433: # Make two passes to allow for proper duplicate-argument suppression.
1.1       root     1434: ac_configure_args=
1.1.1.3   root     1435: ac_configure_args0=
                   1436: ac_configure_args1=
                   1437: ac_must_keep_next=false
                   1438: for ac_pass in 1 2
1.1       root     1439: do
1.1.1.3   root     1440:   for ac_arg
                   1441:   do
                   1442:     case $ac_arg in
                   1443:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   1444:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1445:     | -silent | --silent | --silen | --sile | --sil)
                   1446:       continue ;;
1.1.1.6   root     1447:     *\'*)
1.1.1.3   root     1448:       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   1449:     esac
                   1450:     case $ac_pass in
                   1451:     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
                   1452:     2)
                   1453:       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
                   1454:       if test $ac_must_keep_next = true; then
                   1455:        ac_must_keep_next=false # Got value, back to normal.
                   1456:       else
                   1457:        case $ac_arg in
                   1458:          *=* | --config-cache | -C | -disable-* | --disable-* \
                   1459:          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   1460:          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   1461:          | -with-* | --with-* | -without-* | --without-* | --x)
                   1462:            case "$ac_configure_args0 " in
                   1463:              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   1464:            esac
                   1465:            ;;
                   1466:          -* ) ac_must_keep_next=true ;;
                   1467:        esac
                   1468:       fi
1.1.1.6   root     1469:       ac_configure_args="$ac_configure_args '$ac_arg'"
1.1.1.3   root     1470:       ;;
                   1471:     esac
                   1472:   done
1.1       root     1473: done
1.1.1.3   root     1474: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
                   1475: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.1       root     1476: 
                   1477: # When interrupted or exit'd, cleanup temporary files, and complete
                   1478: # config.log.  We remove comments because anyway the quotes in there
                   1479: # would cause problems or look ugly.
1.1.1.6   root     1480: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   1481: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.1       root     1482: trap 'exit_status=$?
                   1483:   # Save into config.log some information that might help in debugging.
                   1484:   {
                   1485:     echo
1.1.1.3   root     1486: 
1.1       root     1487:     cat <<\_ASBOX
                   1488: ## ---------------- ##
                   1489: ## Cache variables. ##
                   1490: ## ---------------- ##
                   1491: _ASBOX
                   1492:     echo
                   1493:     # The following way of writing the cache mishandles newlines in values,
1.1.1.6   root     1494: (
                   1495:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   1496:     eval ac_val=\$$ac_var
                   1497:     case $ac_val in #(
                   1498:     *${as_nl}*)
                   1499:       case $ac_var in #(
                   1500:       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
                   1501: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
                   1502:       esac
                   1503:       case $ac_var in #(
                   1504:       _ | IFS | as_nl) ;; #(
                   1505:       *) $as_unset $ac_var ;;
                   1506:       esac ;;
                   1507:     esac
                   1508:   done
1.1       root     1509:   (set) 2>&1 |
1.1.1.6   root     1510:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   1511:     *${as_nl}ac_space=\ *)
1.1       root     1512:       sed -n \
1.1.1.6   root     1513:        "s/'\''/'\''\\\\'\'''\''/g;
                   1514:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   1515:       ;; #(
1.1       root     1516:     *)
1.1.1.6   root     1517:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1       root     1518:       ;;
1.1.1.6   root     1519:     esac |
                   1520:     sort
                   1521: )
1.1       root     1522:     echo
1.1.1.3   root     1523: 
                   1524:     cat <<\_ASBOX
                   1525: ## ----------------- ##
                   1526: ## Output variables. ##
                   1527: ## ----------------- ##
                   1528: _ASBOX
                   1529:     echo
                   1530:     for ac_var in $ac_subst_vars
                   1531:     do
1.1.1.6   root     1532:       eval ac_val=\$$ac_var
                   1533:       case $ac_val in
                   1534:       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   1535:       esac
                   1536:       echo "$ac_var='\''$ac_val'\''"
1.1.1.3   root     1537:     done | sort
                   1538:     echo
                   1539: 
                   1540:     if test -n "$ac_subst_files"; then
                   1541:       cat <<\_ASBOX
1.1.1.6   root     1542: ## ------------------- ##
                   1543: ## File substitutions. ##
                   1544: ## ------------------- ##
1.1.1.3   root     1545: _ASBOX
                   1546:       echo
                   1547:       for ac_var in $ac_subst_files
                   1548:       do
1.1.1.6   root     1549:        eval ac_val=\$$ac_var
                   1550:        case $ac_val in
                   1551:        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   1552:        esac
                   1553:        echo "$ac_var='\''$ac_val'\''"
1.1.1.3   root     1554:       done | sort
                   1555:       echo
                   1556:     fi
                   1557: 
1.1       root     1558:     if test -s confdefs.h; then
                   1559:       cat <<\_ASBOX
                   1560: ## ----------- ##
                   1561: ## confdefs.h. ##
                   1562: ## ----------- ##
                   1563: _ASBOX
                   1564:       echo
1.1.1.6   root     1565:       cat confdefs.h
1.1       root     1566:       echo
                   1567:     fi
                   1568:     test "$ac_signal" != 0 &&
                   1569:       echo "$as_me: caught signal $ac_signal"
                   1570:     echo "$as_me: exit $exit_status"
                   1571:   } >&5
1.1.1.6   root     1572:   rm -f core *.core core.conftest.* &&
                   1573:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.1       root     1574:     exit $exit_status
1.1.1.6   root     1575: ' 0
1.1       root     1576: for ac_signal in 1 2 13 15; do
                   1577:   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
                   1578: done
                   1579: ac_signal=0
                   1580: 
                   1581: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.1.1.6   root     1582: rm -f -r conftest* confdefs.h
1.1       root     1583: 
                   1584: # Predefined preprocessor variables.
                   1585: 
                   1586: cat >>confdefs.h <<_ACEOF
                   1587: #define PACKAGE_NAME "$PACKAGE_NAME"
                   1588: _ACEOF
                   1589: 
                   1590: 
                   1591: cat >>confdefs.h <<_ACEOF
                   1592: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
                   1593: _ACEOF
                   1594: 
                   1595: 
                   1596: cat >>confdefs.h <<_ACEOF
                   1597: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   1598: _ACEOF
                   1599: 
                   1600: 
                   1601: cat >>confdefs.h <<_ACEOF
                   1602: #define PACKAGE_STRING "$PACKAGE_STRING"
                   1603: _ACEOF
                   1604: 
                   1605: 
                   1606: cat >>confdefs.h <<_ACEOF
                   1607: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   1608: _ACEOF
                   1609: 
                   1610: 
                   1611: # Let the site file select an alternate cache file if it wants to.
                   1612: # Prefer explicitly selected file to automatically selected ones.
1.1.1.6   root     1613: if test -n "$CONFIG_SITE"; then
                   1614:   set x "$CONFIG_SITE"
                   1615: elif test "x$prefix" != xNONE; then
                   1616:   set x "$prefix/share/config.site" "$prefix/etc/config.site"
                   1617: else
                   1618:   set x "$ac_default_prefix/share/config.site" \
                   1619:        "$ac_default_prefix/etc/config.site"
1.1       root     1620: fi
1.1.1.6   root     1621: shift
                   1622: for ac_site_file
                   1623: do
1.1       root     1624:   if test -r "$ac_site_file"; then
                   1625:     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
                   1626: echo "$as_me: loading site script $ac_site_file" >&6;}
                   1627:     sed 's/^/| /' "$ac_site_file" >&5
                   1628:     . "$ac_site_file"
                   1629:   fi
                   1630: done
                   1631: 
                   1632: if test -r "$cache_file"; then
                   1633:   # Some versions of bash will fail to source /dev/null (special
                   1634:   # files actually), so we avoid doing that.
                   1635:   if test -f "$cache_file"; then
                   1636:     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
                   1637: echo "$as_me: loading cache $cache_file" >&6;}
                   1638:     case $cache_file in
1.1.1.6   root     1639:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   1640:       *)                      . "./$cache_file";;
1.1       root     1641:     esac
                   1642:   fi
                   1643: else
                   1644:   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
                   1645: echo "$as_me: creating cache $cache_file" >&6;}
                   1646:   >$cache_file
                   1647: fi
                   1648: 
                   1649: # Check that the precious variables saved in the cache have kept the same
                   1650: # value.
                   1651: ac_cache_corrupted=false
1.1.1.6   root     1652: for ac_var in $ac_precious_vars; do
1.1       root     1653:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   1654:   eval ac_new_set=\$ac_env_${ac_var}_set
1.1.1.6   root     1655:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   1656:   eval ac_new_val=\$ac_env_${ac_var}_value
1.1       root     1657:   case $ac_old_set,$ac_new_set in
                   1658:     set,)
                   1659:       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   1660: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   1661:       ac_cache_corrupted=: ;;
                   1662:     ,set)
                   1663:       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
                   1664: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   1665:       ac_cache_corrupted=: ;;
                   1666:     ,);;
                   1667:     *)
                   1668:       if test "x$ac_old_val" != "x$ac_new_val"; then
1.1.1.3   root     1669:        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.1       root     1670: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.1.1.3   root     1671:        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1.1       root     1672: echo "$as_me:   former value:  $ac_old_val" >&2;}
1.1.1.3   root     1673:        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1.1       root     1674: echo "$as_me:   current value: $ac_new_val" >&2;}
1.1.1.3   root     1675:        ac_cache_corrupted=:
1.1       root     1676:       fi;;
                   1677:   esac
                   1678:   # Pass precious variables to config.status.
                   1679:   if test "$ac_new_set" = set; then
                   1680:     case $ac_new_val in
1.1.1.6   root     1681:     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       root     1682:     *) ac_arg=$ac_var=$ac_new_val ;;
                   1683:     esac
                   1684:     case " $ac_configure_args " in
                   1685:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   1686:       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                   1687:     esac
                   1688:   fi
                   1689: done
                   1690: if $ac_cache_corrupted; then
                   1691:   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
                   1692: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
                   1693:   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
                   1694: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
                   1695:    { (exit 1); exit 1; }; }
                   1696: fi
                   1697: 
                   1698: 
                   1699: 
                   1700: 
                   1701: 
                   1702: 
                   1703: 
                   1704: 
                   1705: 
                   1706: 
                   1707: 
                   1708: 
                   1709: 
                   1710: 
                   1711: 
                   1712: 
                   1713: 
                   1714: 
                   1715: 
                   1716: 
                   1717: 
                   1718: 
                   1719: 
                   1720: 
                   1721: 
1.1.1.6   root     1722: ac_ext=c
                   1723: ac_cpp='$CPP $CPPFLAGS'
                   1724: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   1725: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   1726: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   1727: 
1.1       root     1728: 
                   1729: 
                   1730: 
                   1731: 
1.1.1.6   root     1732: ac_config_headers="$ac_config_headers config.h"
1.1       root     1733: 
1.1.1.3   root     1734: 
1.1       root     1735: #AC_CANONICAL_HOST
                   1736: ac_aux_dir=
1.1.1.6   root     1737: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
                   1738:   if test -f "$ac_dir/install-sh"; then
1.1       root     1739:     ac_aux_dir=$ac_dir
                   1740:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   1741:     break
1.1.1.6   root     1742:   elif test -f "$ac_dir/install.sh"; then
1.1       root     1743:     ac_aux_dir=$ac_dir
                   1744:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   1745:     break
1.1.1.6   root     1746:   elif test -f "$ac_dir/shtool"; then
1.1       root     1747:     ac_aux_dir=$ac_dir
                   1748:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   1749:     break
                   1750:   fi
                   1751: done
                   1752: if test -z "$ac_aux_dir"; then
1.1.1.6   root     1753:   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
                   1754: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.1       root     1755:    { (exit 1); exit 1; }; }
                   1756: fi
1.1.1.6   root     1757: 
                   1758: # These three variables are undocumented and unsupported,
                   1759: # and are intended to be withdrawn in a future Autoconf release.
                   1760: # They can cause serious problems if a builder's source tree is in a directory
                   1761: # whose full name contains unusual characters.
                   1762: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   1763: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   1764: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
                   1765: 
1.1       root     1766: 
                   1767: # Make sure we can run config.sub.
1.1.1.6   root     1768: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
                   1769:   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
                   1770: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.1       root     1771:    { (exit 1); exit 1; }; }
                   1772: 
1.1.1.6   root     1773: { echo "$as_me:$LINENO: checking build system type" >&5
                   1774: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.1       root     1775: if test "${ac_cv_build+set}" = set; then
                   1776:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1777: else
1.1.1.6   root     1778:   ac_build_alias=$build_alias
                   1779: test "x$ac_build_alias" = x &&
                   1780:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   1781: test "x$ac_build_alias" = x &&
1.1       root     1782:   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
                   1783: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
                   1784:    { (exit 1); exit 1; }; }
1.1.1.6   root     1785: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
                   1786:   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
                   1787: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.1       root     1788:    { (exit 1); exit 1; }; }
                   1789: 
                   1790: fi
1.1.1.6   root     1791: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
                   1792: echo "${ECHO_T}$ac_cv_build" >&6; }
                   1793: case $ac_cv_build in
                   1794: *-*-*) ;;
                   1795: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
                   1796: echo "$as_me: error: invalid value of canonical build" >&2;}
                   1797:    { (exit 1); exit 1; }; };;
                   1798: esac
1.1       root     1799: build=$ac_cv_build
1.1.1.6   root     1800: ac_save_IFS=$IFS; IFS='-'
                   1801: set x $ac_cv_build
                   1802: shift
                   1803: build_cpu=$1
                   1804: build_vendor=$2
                   1805: shift; shift
                   1806: # Remember, the first character of IFS is used to create $*,
                   1807: # except with old shells:
                   1808: build_os=$*
                   1809: IFS=$ac_save_IFS
                   1810: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.1       root     1811: 
                   1812: 
1.1.1.6   root     1813: { echo "$as_me:$LINENO: checking host system type" >&5
                   1814: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.1       root     1815: if test "${ac_cv_host+set}" = set; then
                   1816:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1817: else
1.1.1.6   root     1818:   if test "x$host_alias" = x; then
                   1819:   ac_cv_host=$ac_cv_build
                   1820: else
                   1821:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
                   1822:     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
                   1823: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.1       root     1824:    { (exit 1); exit 1; }; }
1.1.1.6   root     1825: fi
1.1       root     1826: 
                   1827: fi
1.1.1.6   root     1828: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
                   1829: echo "${ECHO_T}$ac_cv_host" >&6; }
                   1830: case $ac_cv_host in
                   1831: *-*-*) ;;
                   1832: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
                   1833: echo "$as_me: error: invalid value of canonical host" >&2;}
                   1834:    { (exit 1); exit 1; }; };;
                   1835: esac
1.1       root     1836: host=$ac_cv_host
1.1.1.6   root     1837: ac_save_IFS=$IFS; IFS='-'
                   1838: set x $ac_cv_host
                   1839: shift
                   1840: host_cpu=$1
                   1841: host_vendor=$2
                   1842: shift; shift
                   1843: # Remember, the first character of IFS is used to create $*,
                   1844: # except with old shells:
                   1845: host_os=$*
                   1846: IFS=$ac_save_IFS
                   1847: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1       root     1848: 
                   1849: 
1.1.1.6   root     1850: { echo "$as_me:$LINENO: checking target system type" >&5
                   1851: echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1.1       root     1852: if test "${ac_cv_target+set}" = set; then
                   1853:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1854: else
1.1.1.6   root     1855:   if test "x$target_alias" = x; then
                   1856:   ac_cv_target=$ac_cv_host
                   1857: else
                   1858:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
                   1859:     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
                   1860: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1.1       root     1861:    { (exit 1); exit 1; }; }
1.1.1.6   root     1862: fi
1.1       root     1863: 
                   1864: fi
1.1.1.6   root     1865: { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
                   1866: echo "${ECHO_T}$ac_cv_target" >&6; }
                   1867: case $ac_cv_target in
                   1868: *-*-*) ;;
                   1869: *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
                   1870: echo "$as_me: error: invalid value of canonical target" >&2;}
                   1871:    { (exit 1); exit 1; }; };;
                   1872: esac
1.1       root     1873: target=$ac_cv_target
1.1.1.6   root     1874: ac_save_IFS=$IFS; IFS='-'
                   1875: set x $ac_cv_target
                   1876: shift
                   1877: target_cpu=$1
                   1878: target_vendor=$2
                   1879: shift; shift
                   1880: # Remember, the first character of IFS is used to create $*,
                   1881: # except with old shells:
                   1882: target_os=$*
                   1883: IFS=$ac_save_IFS
                   1884: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1.1       root     1885: 
                   1886: 
                   1887: # The aliases save the names the user supplied, while $host etc.
                   1888: # will get canonicalized.
                   1889: test -n "$target_alias" &&
                   1890:   test "$program_prefix$program_suffix$program_transform_name" = \
                   1891:     NONENONEs,x,x, &&
                   1892:   program_prefix=${target_alias}-
                   1893: 
                   1894: ac_ext=c
                   1895: ac_cpp='$CPP $CPPFLAGS'
                   1896: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   1897: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   1898: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   1899: if test -n "$ac_tool_prefix"; then
                   1900:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
                   1901: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1.1.6   root     1902: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1903: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1       root     1904: if test "${ac_cv_prog_CC+set}" = set; then
                   1905:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1906: else
                   1907:   if test -n "$CC"; then
                   1908:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1909: else
                   1910: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1911: for as_dir in $PATH
                   1912: do
                   1913:   IFS=$as_save_IFS
                   1914:   test -z "$as_dir" && as_dir=.
                   1915:   for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.8 ! root     1916:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1       root     1917:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
                   1918:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1919:     break 2
                   1920:   fi
                   1921: done
                   1922: done
1.1.1.6   root     1923: IFS=$as_save_IFS
1.1       root     1924: 
                   1925: fi
                   1926: fi
                   1927: CC=$ac_cv_prog_CC
                   1928: if test -n "$CC"; then
1.1.1.6   root     1929:   { echo "$as_me:$LINENO: result: $CC" >&5
                   1930: echo "${ECHO_T}$CC" >&6; }
1.1       root     1931: else
1.1.1.6   root     1932:   { echo "$as_me:$LINENO: result: no" >&5
                   1933: echo "${ECHO_T}no" >&6; }
1.1       root     1934: fi
                   1935: 
1.1.1.6   root     1936: 
1.1       root     1937: fi
                   1938: if test -z "$ac_cv_prog_CC"; then
                   1939:   ac_ct_CC=$CC
                   1940:   # Extract the first word of "gcc", so it can be a program name with args.
                   1941: set dummy gcc; ac_word=$2
1.1.1.6   root     1942: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1943: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1       root     1944: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   1945:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1946: else
                   1947:   if test -n "$ac_ct_CC"; then
                   1948:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   1949: else
                   1950: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1951: for as_dir in $PATH
                   1952: do
                   1953:   IFS=$as_save_IFS
                   1954:   test -z "$as_dir" && as_dir=.
                   1955:   for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.8 ! root     1956:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1       root     1957:     ac_cv_prog_ac_ct_CC="gcc"
                   1958:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1959:     break 2
                   1960:   fi
                   1961: done
                   1962: done
1.1.1.6   root     1963: IFS=$as_save_IFS
1.1       root     1964: 
                   1965: fi
                   1966: fi
                   1967: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   1968: if test -n "$ac_ct_CC"; then
1.1.1.6   root     1969:   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   1970: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1       root     1971: else
1.1.1.6   root     1972:   { echo "$as_me:$LINENO: result: no" >&5
                   1973: echo "${ECHO_T}no" >&6; }
1.1       root     1974: fi
                   1975: 
1.1.1.6   root     1976:   if test "x$ac_ct_CC" = x; then
                   1977:     CC=""
                   1978:   else
                   1979:     case $cross_compiling:$ac_tool_warned in
                   1980: yes:)
                   1981: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   1982: whose name does not start with the host triplet.  If you think this
                   1983: configuration is useful to you, please write to [email protected]." >&5
                   1984: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   1985: whose name does not start with the host triplet.  If you think this
                   1986: configuration is useful to you, please write to [email protected]." >&2;}
                   1987: ac_tool_warned=yes ;;
                   1988: esac
                   1989:     CC=$ac_ct_CC
                   1990:   fi
1.1       root     1991: else
                   1992:   CC="$ac_cv_prog_CC"
                   1993: fi
                   1994: 
                   1995: if test -z "$CC"; then
1.1.1.6   root     1996:           if test -n "$ac_tool_prefix"; then
                   1997:     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1       root     1998: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1.1.6   root     1999: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2000: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1       root     2001: if test "${ac_cv_prog_CC+set}" = set; then
                   2002:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2003: else
                   2004:   if test -n "$CC"; then
                   2005:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   2006: else
                   2007: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2008: for as_dir in $PATH
                   2009: do
                   2010:   IFS=$as_save_IFS
                   2011:   test -z "$as_dir" && as_dir=.
                   2012:   for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.8 ! root     2013:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1       root     2014:     ac_cv_prog_CC="${ac_tool_prefix}cc"
                   2015:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2016:     break 2
                   2017:   fi
                   2018: done
                   2019: done
1.1.1.6   root     2020: IFS=$as_save_IFS
1.1       root     2021: 
                   2022: fi
                   2023: fi
                   2024: CC=$ac_cv_prog_CC
                   2025: if test -n "$CC"; then
1.1.1.6   root     2026:   { echo "$as_me:$LINENO: result: $CC" >&5
                   2027: echo "${ECHO_T}$CC" >&6; }
1.1       root     2028: else
1.1.1.6   root     2029:   { echo "$as_me:$LINENO: result: no" >&5
                   2030: echo "${ECHO_T}no" >&6; }
1.1       root     2031: fi
                   2032: 
                   2033: 
1.1.1.6   root     2034:   fi
1.1       root     2035: fi
                   2036: if test -z "$CC"; then
                   2037:   # Extract the first word of "cc", so it can be a program name with args.
                   2038: set dummy cc; ac_word=$2
1.1.1.6   root     2039: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2040: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1       root     2041: if test "${ac_cv_prog_CC+set}" = set; then
                   2042:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2043: else
                   2044:   if test -n "$CC"; then
                   2045:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   2046: else
                   2047:   ac_prog_rejected=no
                   2048: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2049: for as_dir in $PATH
                   2050: do
                   2051:   IFS=$as_save_IFS
                   2052:   test -z "$as_dir" && as_dir=.
                   2053:   for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.8 ! root     2054:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1       root     2055:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
                   2056:        ac_prog_rejected=yes
                   2057:        continue
                   2058:      fi
                   2059:     ac_cv_prog_CC="cc"
                   2060:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2061:     break 2
                   2062:   fi
                   2063: done
                   2064: done
1.1.1.6   root     2065: IFS=$as_save_IFS
1.1       root     2066: 
                   2067: if test $ac_prog_rejected = yes; then
                   2068:   # We found a bogon in the path, so make sure we never use it.
                   2069:   set dummy $ac_cv_prog_CC
                   2070:   shift
                   2071:   if test $# != 0; then
                   2072:     # We chose a different compiler from the bogus one.
                   2073:     # However, it has the same basename, so the bogon will be chosen
                   2074:     # first if we set CC to just the basename; use the full file name.
                   2075:     shift
1.1.1.3   root     2076:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1       root     2077:   fi
                   2078: fi
                   2079: fi
                   2080: fi
                   2081: CC=$ac_cv_prog_CC
                   2082: if test -n "$CC"; then
1.1.1.6   root     2083:   { echo "$as_me:$LINENO: result: $CC" >&5
                   2084: echo "${ECHO_T}$CC" >&6; }
1.1       root     2085: else
1.1.1.6   root     2086:   { echo "$as_me:$LINENO: result: no" >&5
                   2087: echo "${ECHO_T}no" >&6; }
1.1       root     2088: fi
                   2089: 
1.1.1.6   root     2090: 
1.1       root     2091: fi
                   2092: if test -z "$CC"; then
                   2093:   if test -n "$ac_tool_prefix"; then
1.1.1.6   root     2094:   for ac_prog in cl.exe
1.1       root     2095:   do
                   2096:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   2097: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.6   root     2098: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2099: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1       root     2100: if test "${ac_cv_prog_CC+set}" = set; then
                   2101:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2102: else
                   2103:   if test -n "$CC"; then
                   2104:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   2105: else
                   2106: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2107: for as_dir in $PATH
                   2108: do
                   2109:   IFS=$as_save_IFS
                   2110:   test -z "$as_dir" && as_dir=.
                   2111:   for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.8 ! root     2112:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1       root     2113:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   2114:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2115:     break 2
                   2116:   fi
                   2117: done
                   2118: done
1.1.1.6   root     2119: IFS=$as_save_IFS
1.1       root     2120: 
                   2121: fi
                   2122: fi
                   2123: CC=$ac_cv_prog_CC
                   2124: if test -n "$CC"; then
1.1.1.6   root     2125:   { echo "$as_me:$LINENO: result: $CC" >&5
                   2126: echo "${ECHO_T}$CC" >&6; }
1.1       root     2127: else
1.1.1.6   root     2128:   { echo "$as_me:$LINENO: result: no" >&5
                   2129: echo "${ECHO_T}no" >&6; }
1.1       root     2130: fi
                   2131: 
1.1.1.6   root     2132: 
1.1       root     2133:     test -n "$CC" && break
                   2134:   done
                   2135: fi
                   2136: if test -z "$CC"; then
                   2137:   ac_ct_CC=$CC
1.1.1.6   root     2138:   for ac_prog in cl.exe
1.1       root     2139: do
                   2140:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   2141: set dummy $ac_prog; ac_word=$2
1.1.1.6   root     2142: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2143: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1       root     2144: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   2145:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2146: else
                   2147:   if test -n "$ac_ct_CC"; then
                   2148:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   2149: else
                   2150: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2151: for as_dir in $PATH
                   2152: do
                   2153:   IFS=$as_save_IFS
                   2154:   test -z "$as_dir" && as_dir=.
                   2155:   for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.8 ! root     2156:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1       root     2157:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   2158:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2159:     break 2
                   2160:   fi
                   2161: done
                   2162: done
1.1.1.6   root     2163: IFS=$as_save_IFS
1.1       root     2164: 
                   2165: fi
                   2166: fi
                   2167: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   2168: if test -n "$ac_ct_CC"; then
1.1.1.6   root     2169:   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   2170: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1       root     2171: else
1.1.1.6   root     2172:   { echo "$as_me:$LINENO: result: no" >&5
                   2173: echo "${ECHO_T}no" >&6; }
1.1       root     2174: fi
                   2175: 
1.1.1.6   root     2176: 
1.1       root     2177:   test -n "$ac_ct_CC" && break
                   2178: done
                   2179: 
1.1.1.6   root     2180:   if test "x$ac_ct_CC" = x; then
                   2181:     CC=""
                   2182:   else
                   2183:     case $cross_compiling:$ac_tool_warned in
                   2184: yes:)
                   2185: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   2186: whose name does not start with the host triplet.  If you think this
                   2187: configuration is useful to you, please write to [email protected]." >&5
                   2188: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   2189: whose name does not start with the host triplet.  If you think this
                   2190: configuration is useful to you, please write to [email protected]." >&2;}
                   2191: ac_tool_warned=yes ;;
                   2192: esac
                   2193:     CC=$ac_ct_CC
                   2194:   fi
1.1       root     2195: fi
                   2196: 
                   2197: fi
                   2198: 
                   2199: 
1.1.1.3   root     2200: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
                   2201: See \`config.log' for more details." >&5
                   2202: echo "$as_me: error: no acceptable C compiler found in \$PATH
                   2203: See \`config.log' for more details." >&2;}
1.1       root     2204:    { (exit 1); exit 1; }; }
                   2205: 
                   2206: # Provide some information about the compiler.
1.1.1.6   root     2207: echo "$as_me:$LINENO: checking for C compiler version" >&5
1.1       root     2208: ac_compiler=`set X $ac_compile; echo $2`
1.1.1.6   root     2209: { (ac_try="$ac_compiler --version >&5"
                   2210: case "(($ac_try" in
                   2211:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2212:   *) ac_try_echo=$ac_try;;
                   2213: esac
                   2214: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   2215:   (eval "$ac_compiler --version >&5") 2>&5
1.1       root     2216:   ac_status=$?
                   2217:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2218:   (exit $ac_status); }
1.1.1.6   root     2219: { (ac_try="$ac_compiler -v >&5"
                   2220: case "(($ac_try" in
                   2221:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2222:   *) ac_try_echo=$ac_try;;
                   2223: esac
                   2224: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   2225:   (eval "$ac_compiler -v >&5") 2>&5
1.1       root     2226:   ac_status=$?
                   2227:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2228:   (exit $ac_status); }
1.1.1.6   root     2229: { (ac_try="$ac_compiler -V >&5"
                   2230: case "(($ac_try" in
                   2231:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2232:   *) ac_try_echo=$ac_try;;
                   2233: esac
                   2234: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   2235:   (eval "$ac_compiler -V >&5") 2>&5
1.1       root     2236:   ac_status=$?
                   2237:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2238:   (exit $ac_status); }
                   2239: 
                   2240: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     2241: /* confdefs.h.  */
                   2242: _ACEOF
                   2243: cat confdefs.h >>conftest.$ac_ext
                   2244: cat >>conftest.$ac_ext <<_ACEOF
                   2245: /* end confdefs.h.  */
1.1       root     2246: 
                   2247: int
                   2248: main ()
                   2249: {
                   2250: 
                   2251:   ;
                   2252:   return 0;
                   2253: }
                   2254: _ACEOF
                   2255: ac_clean_files_save=$ac_clean_files
1.1.1.3   root     2256: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.1       root     2257: # Try to create an executable without -o first, disregard a.out.
                   2258: # It will help us diagnose broken compilers, and finding out an intuition
                   2259: # of exeext.
1.1.1.6   root     2260: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
                   2261: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.1       root     2262: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.1.1.6   root     2263: #
                   2264: # List of possible output files, starting from the most likely.
                   2265: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
                   2266: # only as a last resort.  b.out is created by i960 compilers.
                   2267: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
                   2268: #
                   2269: # The IRIX 6 linker writes into existing files which may not be
                   2270: # executable, retaining their permissions.  Remove them first so a
                   2271: # subsequent execution test works.
                   2272: ac_rmfiles=
                   2273: for ac_file in $ac_files
                   2274: do
                   2275:   case $ac_file in
                   2276:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
                   2277:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   2278:   esac
                   2279: done
                   2280: rm -f $ac_rmfiles
                   2281: 
                   2282: if { (ac_try="$ac_link_default"
                   2283: case "(($ac_try" in
                   2284:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2285:   *) ac_try_echo=$ac_try;;
                   2286: esac
                   2287: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   2288:   (eval "$ac_link_default") 2>&5
1.1       root     2289:   ac_status=$?
                   2290:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2291:   (exit $ac_status); }; then
1.1.1.6   root     2292:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   2293: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   2294: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   2295: # so that the user can short-circuit this test for compilers unknown to
                   2296: # Autoconf.
1.1.1.8 ! root     2297: for ac_file in $ac_files
1.1.1.3   root     2298: do
                   2299:   test -f "$ac_file" || continue
1.1       root     2300:   case $ac_file in
1.1.1.6   root     2301:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.1.1.3   root     2302:        ;;
                   2303:     [ab].out )
                   2304:        # We found the default executable, but exeext='' is most
                   2305:        # certainly right.
                   2306:        break;;
                   2307:     *.* )
1.1.1.6   root     2308:         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   2309:        then :; else
                   2310:           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   2311:        fi
                   2312:        # We set ac_cv_exeext here because the later test for it is not
                   2313:        # safe: cross compilers may not add the suffix if given an `-o'
                   2314:        # argument, so we may need to know it at that point already.
                   2315:        # Even if this section looks crufty: it has the advantage of
                   2316:        # actually working.
1.1.1.3   root     2317:        break;;
                   2318:     * )
                   2319:        break;;
1.1       root     2320:   esac
                   2321: done
1.1.1.6   root     2322: test "$ac_cv_exeext" = no && ac_cv_exeext=
                   2323: 
1.1       root     2324: else
                   2325:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     2326: sed 's/^/| /' conftest.$ac_ext >&5
                   2327: 
                   2328: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
                   2329: See \`config.log' for more details." >&5
                   2330: echo "$as_me: error: C compiler cannot create executables
                   2331: See \`config.log' for more details." >&2;}
1.1       root     2332:    { (exit 77); exit 77; }; }
                   2333: fi
                   2334: 
                   2335: ac_exeext=$ac_cv_exeext
1.1.1.8 ! root     2336: { echo "$as_me:$LINENO: result: $ac_file" >&5
        !          2337: echo "${ECHO_T}$ac_file" >&6; }
1.1       root     2338: 
1.1.1.6   root     2339: # Check that the compiler produces executables we can run.  If not, either
1.1       root     2340: # the compiler is broken, or we cross compile.
1.1.1.6   root     2341: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
                   2342: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.1       root     2343: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
                   2344: # If not cross compiling, check that we can run a simple program.
                   2345: if test "$cross_compiling" != yes; then
                   2346:   if { ac_try='./$ac_file'
1.1.1.6   root     2347:   { (case "(($ac_try" in
                   2348:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2349:   *) ac_try_echo=$ac_try;;
                   2350: esac
                   2351: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   2352:   (eval "$ac_try") 2>&5
1.1       root     2353:   ac_status=$?
                   2354:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2355:   (exit $ac_status); }; }; then
                   2356:     cross_compiling=no
                   2357:   else
                   2358:     if test "$cross_compiling" = maybe; then
                   2359:        cross_compiling=yes
                   2360:     else
                   2361:        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.1.1.3   root     2362: If you meant to cross compile, use \`--host'.
                   2363: See \`config.log' for more details." >&5
1.1       root     2364: echo "$as_me: error: cannot run C compiled programs.
1.1.1.3   root     2365: If you meant to cross compile, use \`--host'.
                   2366: See \`config.log' for more details." >&2;}
1.1       root     2367:    { (exit 1); exit 1; }; }
                   2368:     fi
                   2369:   fi
                   2370: fi
1.1.1.6   root     2371: { echo "$as_me:$LINENO: result: yes" >&5
                   2372: echo "${ECHO_T}yes" >&6; }
1.1       root     2373: 
1.1.1.3   root     2374: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.1       root     2375: ac_clean_files=$ac_clean_files_save
1.1.1.6   root     2376: # Check that the compiler produces executables we can run.  If not, either
1.1       root     2377: # the compiler is broken, or we cross compile.
1.1.1.6   root     2378: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
                   2379: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
                   2380: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
                   2381: echo "${ECHO_T}$cross_compiling" >&6; }
                   2382: 
                   2383: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
                   2384: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
                   2385: if { (ac_try="$ac_link"
                   2386: case "(($ac_try" in
                   2387:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2388:   *) ac_try_echo=$ac_try;;
                   2389: esac
                   2390: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   2391:   (eval "$ac_link") 2>&5
1.1       root     2392:   ac_status=$?
                   2393:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2394:   (exit $ac_status); }; then
                   2395:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   2396: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   2397: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   2398: # `rm'.
1.1.1.3   root     2399: for ac_file in conftest.exe conftest conftest.*; do
                   2400:   test -f "$ac_file" || continue
1.1       root     2401:   case $ac_file in
1.1.1.6   root     2402:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.1       root     2403:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.1.1.3   root     2404:          break;;
1.1       root     2405:     * ) break;;
                   2406:   esac
                   2407: done
                   2408: else
1.1.1.3   root     2409:   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
                   2410: See \`config.log' for more details." >&5
                   2411: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
                   2412: See \`config.log' for more details." >&2;}
1.1       root     2413:    { (exit 1); exit 1; }; }
                   2414: fi
                   2415: 
                   2416: rm -f conftest$ac_cv_exeext
1.1.1.6   root     2417: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
                   2418: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.1       root     2419: 
                   2420: rm -f conftest.$ac_ext
                   2421: EXEEXT=$ac_cv_exeext
                   2422: ac_exeext=$EXEEXT
1.1.1.6   root     2423: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
                   2424: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.1       root     2425: if test "${ac_cv_objext+set}" = set; then
                   2426:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2427: else
                   2428:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     2429: /* confdefs.h.  */
                   2430: _ACEOF
                   2431: cat confdefs.h >>conftest.$ac_ext
                   2432: cat >>conftest.$ac_ext <<_ACEOF
                   2433: /* end confdefs.h.  */
1.1       root     2434: 
                   2435: int
                   2436: main ()
                   2437: {
                   2438: 
                   2439:   ;
                   2440:   return 0;
                   2441: }
                   2442: _ACEOF
                   2443: rm -f conftest.o conftest.obj
1.1.1.6   root     2444: if { (ac_try="$ac_compile"
                   2445: case "(($ac_try" in
                   2446:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2447:   *) ac_try_echo=$ac_try;;
                   2448: esac
                   2449: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   2450:   (eval "$ac_compile") 2>&5
1.1       root     2451:   ac_status=$?
                   2452:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2453:   (exit $ac_status); }; then
1.1.1.6   root     2454:   for ac_file in conftest.o conftest.obj conftest.*; do
                   2455:   test -f "$ac_file" || continue;
1.1       root     2456:   case $ac_file in
1.1.1.6   root     2457:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.1       root     2458:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   2459:        break;;
                   2460:   esac
                   2461: done
                   2462: else
                   2463:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     2464: sed 's/^/| /' conftest.$ac_ext >&5
                   2465: 
                   2466: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
                   2467: See \`config.log' for more details." >&5
                   2468: echo "$as_me: error: cannot compute suffix of object files: cannot compile
                   2469: See \`config.log' for more details." >&2;}
1.1       root     2470:    { (exit 1); exit 1; }; }
                   2471: fi
                   2472: 
                   2473: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   2474: fi
1.1.1.6   root     2475: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
                   2476: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.1       root     2477: OBJEXT=$ac_cv_objext
                   2478: ac_objext=$OBJEXT
1.1.1.6   root     2479: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
                   2480: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.1       root     2481: if test "${ac_cv_c_compiler_gnu+set}" = set; then
                   2482:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2483: else
                   2484:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     2485: /* confdefs.h.  */
                   2486: _ACEOF
                   2487: cat confdefs.h >>conftest.$ac_ext
                   2488: cat >>conftest.$ac_ext <<_ACEOF
                   2489: /* end confdefs.h.  */
1.1       root     2490: 
                   2491: int
                   2492: main ()
                   2493: {
                   2494: #ifndef __GNUC__
                   2495:        choke me
                   2496: #endif
                   2497: 
                   2498:   ;
                   2499:   return 0;
                   2500: }
                   2501: _ACEOF
                   2502: rm -f conftest.$ac_objext
1.1.1.6   root     2503: if { (ac_try="$ac_compile"
                   2504: case "(($ac_try" in
                   2505:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2506:   *) ac_try_echo=$ac_try;;
                   2507: esac
                   2508: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   2509:   (eval "$ac_compile") 2>conftest.er1
1.1       root     2510:   ac_status=$?
1.1.1.3   root     2511:   grep -v '^ *+' conftest.er1 >conftest.err
                   2512:   rm -f conftest.er1
                   2513:   cat conftest.err >&5
1.1       root     2514:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     2515:   (exit $ac_status); } &&
        !          2516:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          2517:   { (case "(($ac_try" in
        !          2518:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          2519:   *) ac_try_echo=$ac_try;;
        !          2520: esac
        !          2521: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          2522:   (eval "$ac_try") 2>&5
        !          2523:   ac_status=$?
        !          2524:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2525:   (exit $ac_status); }; } &&
        !          2526:         { ac_try='test -s conftest.$ac_objext'
        !          2527:   { (case "(($ac_try" in
        !          2528:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          2529:   *) ac_try_echo=$ac_try;;
        !          2530: esac
        !          2531: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          2532:   (eval "$ac_try") 2>&5
        !          2533:   ac_status=$?
        !          2534:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2535:   (exit $ac_status); }; }; then
1.1       root     2536:   ac_compiler_gnu=yes
                   2537: else
                   2538:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     2539: sed 's/^/| /' conftest.$ac_ext >&5
                   2540: 
1.1.1.6   root     2541:        ac_compiler_gnu=no
1.1       root     2542: fi
1.1.1.6   root     2543: 
                   2544: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       root     2545: ac_cv_c_compiler_gnu=$ac_compiler_gnu
                   2546: 
                   2547: fi
1.1.1.6   root     2548: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
                   2549: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.1       root     2550: GCC=`test $ac_compiler_gnu = yes && echo yes`
                   2551: ac_test_CFLAGS=${CFLAGS+set}
                   2552: ac_save_CFLAGS=$CFLAGS
1.1.1.6   root     2553: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
                   2554: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.1       root     2555: if test "${ac_cv_prog_cc_g+set}" = set; then
                   2556:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2557: else
1.1.1.6   root     2558:   ac_save_c_werror_flag=$ac_c_werror_flag
                   2559:    ac_c_werror_flag=yes
                   2560:    ac_cv_prog_cc_g=no
                   2561:    CFLAGS="-g"
                   2562:    cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     2563: /* confdefs.h.  */
                   2564: _ACEOF
                   2565: cat confdefs.h >>conftest.$ac_ext
                   2566: cat >>conftest.$ac_ext <<_ACEOF
                   2567: /* end confdefs.h.  */
1.1       root     2568: 
                   2569: int
                   2570: main ()
                   2571: {
                   2572: 
                   2573:   ;
                   2574:   return 0;
                   2575: }
                   2576: _ACEOF
                   2577: rm -f conftest.$ac_objext
1.1.1.6   root     2578: if { (ac_try="$ac_compile"
                   2579: case "(($ac_try" in
                   2580:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2581:   *) ac_try_echo=$ac_try;;
                   2582: esac
                   2583: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   2584:   (eval "$ac_compile") 2>conftest.er1
1.1       root     2585:   ac_status=$?
1.1.1.3   root     2586:   grep -v '^ *+' conftest.er1 >conftest.err
                   2587:   rm -f conftest.er1
                   2588:   cat conftest.err >&5
1.1       root     2589:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     2590:   (exit $ac_status); } &&
        !          2591:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          2592:   { (case "(($ac_try" in
        !          2593:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          2594:   *) ac_try_echo=$ac_try;;
        !          2595: esac
        !          2596: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          2597:   (eval "$ac_try") 2>&5
        !          2598:   ac_status=$?
        !          2599:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2600:   (exit $ac_status); }; } &&
        !          2601:         { ac_try='test -s conftest.$ac_objext'
        !          2602:   { (case "(($ac_try" in
        !          2603:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          2604:   *) ac_try_echo=$ac_try;;
        !          2605: esac
        !          2606: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          2607:   (eval "$ac_try") 2>&5
        !          2608:   ac_status=$?
        !          2609:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2610:   (exit $ac_status); }; }; then
1.1.1.6   root     2611:   ac_cv_prog_cc_g=yes
                   2612: else
                   2613:   echo "$as_me: failed program was:" >&5
                   2614: sed 's/^/| /' conftest.$ac_ext >&5
                   2615: 
                   2616:        CFLAGS=""
                   2617:       cat >conftest.$ac_ext <<_ACEOF
                   2618: /* confdefs.h.  */
                   2619: _ACEOF
                   2620: cat confdefs.h >>conftest.$ac_ext
                   2621: cat >>conftest.$ac_ext <<_ACEOF
                   2622: /* end confdefs.h.  */
                   2623: 
                   2624: int
                   2625: main ()
                   2626: {
                   2627: 
                   2628:   ;
                   2629:   return 0;
                   2630: }
                   2631: _ACEOF
                   2632: rm -f conftest.$ac_objext
                   2633: if { (ac_try="$ac_compile"
                   2634: case "(($ac_try" in
                   2635:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2636:   *) ac_try_echo=$ac_try;;
                   2637: esac
                   2638: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   2639:   (eval "$ac_compile") 2>conftest.er1
1.1.1.3   root     2640:   ac_status=$?
1.1.1.6   root     2641:   grep -v '^ *+' conftest.er1 >conftest.err
                   2642:   rm -f conftest.er1
                   2643:   cat conftest.err >&5
1.1.1.3   root     2644:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     2645:   (exit $ac_status); } &&
        !          2646:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          2647:   { (case "(($ac_try" in
        !          2648:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          2649:   *) ac_try_echo=$ac_try;;
        !          2650: esac
        !          2651: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          2652:   (eval "$ac_try") 2>&5
        !          2653:   ac_status=$?
        !          2654:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2655:   (exit $ac_status); }; } &&
        !          2656:         { ac_try='test -s conftest.$ac_objext'
        !          2657:   { (case "(($ac_try" in
        !          2658:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          2659:   *) ac_try_echo=$ac_try;;
        !          2660: esac
        !          2661: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          2662:   (eval "$ac_try") 2>&5
        !          2663:   ac_status=$?
        !          2664:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2665:   (exit $ac_status); }; }; then
1.1.1.6   root     2666:   :
                   2667: else
                   2668:   echo "$as_me: failed program was:" >&5
                   2669: sed 's/^/| /' conftest.$ac_ext >&5
                   2670: 
                   2671:        ac_c_werror_flag=$ac_save_c_werror_flag
                   2672:         CFLAGS="-g"
                   2673:         cat >conftest.$ac_ext <<_ACEOF
                   2674: /* confdefs.h.  */
                   2675: _ACEOF
                   2676: cat confdefs.h >>conftest.$ac_ext
                   2677: cat >>conftest.$ac_ext <<_ACEOF
                   2678: /* end confdefs.h.  */
                   2679: 
                   2680: int
                   2681: main ()
                   2682: {
                   2683: 
                   2684:   ;
                   2685:   return 0;
                   2686: }
                   2687: _ACEOF
                   2688: rm -f conftest.$ac_objext
                   2689: if { (ac_try="$ac_compile"
                   2690: case "(($ac_try" in
                   2691:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2692:   *) ac_try_echo=$ac_try;;
                   2693: esac
                   2694: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   2695:   (eval "$ac_compile") 2>conftest.er1
1.1       root     2696:   ac_status=$?
1.1.1.6   root     2697:   grep -v '^ *+' conftest.er1 >conftest.err
                   2698:   rm -f conftest.er1
                   2699:   cat conftest.err >&5
1.1       root     2700:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     2701:   (exit $ac_status); } &&
        !          2702:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          2703:   { (case "(($ac_try" in
        !          2704:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          2705:   *) ac_try_echo=$ac_try;;
        !          2706: esac
        !          2707: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          2708:   (eval "$ac_try") 2>&5
        !          2709:   ac_status=$?
        !          2710:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2711:   (exit $ac_status); }; } &&
        !          2712:         { ac_try='test -s conftest.$ac_objext'
        !          2713:   { (case "(($ac_try" in
        !          2714:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          2715:   *) ac_try_echo=$ac_try;;
        !          2716: esac
        !          2717: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          2718:   (eval "$ac_try") 2>&5
        !          2719:   ac_status=$?
        !          2720:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2721:   (exit $ac_status); }; }; then
1.1       root     2722:   ac_cv_prog_cc_g=yes
                   2723: else
                   2724:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     2725: sed 's/^/| /' conftest.$ac_ext >&5
                   2726: 
1.1.1.6   root     2727: 
                   2728: fi
                   2729: 
                   2730: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       root     2731: fi
1.1.1.6   root     2732: 
                   2733: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2734: fi
                   2735: 
                   2736: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2737:    ac_c_werror_flag=$ac_save_c_werror_flag
1.1       root     2738: fi
1.1.1.6   root     2739: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
                   2740: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.1       root     2741: if test "$ac_test_CFLAGS" = set; then
                   2742:   CFLAGS=$ac_save_CFLAGS
                   2743: elif test $ac_cv_prog_cc_g = yes; then
                   2744:   if test "$GCC" = yes; then
                   2745:     CFLAGS="-g -O2"
                   2746:   else
                   2747:     CFLAGS="-g"
                   2748:   fi
                   2749: else
                   2750:   if test "$GCC" = yes; then
                   2751:     CFLAGS="-O2"
                   2752:   else
                   2753:     CFLAGS=
                   2754:   fi
                   2755: fi
1.1.1.6   root     2756: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
                   2757: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
                   2758: if test "${ac_cv_prog_cc_c89+set}" = set; then
1.1.1.3   root     2759:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2760: else
1.1.1.6   root     2761:   ac_cv_prog_cc_c89=no
1.1.1.3   root     2762: ac_save_CC=$CC
                   2763: cat >conftest.$ac_ext <<_ACEOF
                   2764: /* confdefs.h.  */
                   2765: _ACEOF
                   2766: cat confdefs.h >>conftest.$ac_ext
                   2767: cat >>conftest.$ac_ext <<_ACEOF
                   2768: /* end confdefs.h.  */
                   2769: #include <stdarg.h>
                   2770: #include <stdio.h>
                   2771: #include <sys/types.h>
                   2772: #include <sys/stat.h>
                   2773: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   2774: struct buf { int x; };
                   2775: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   2776: static char *e (p, i)
                   2777:      char **p;
                   2778:      int i;
                   2779: {
                   2780:   return p[i];
                   2781: }
                   2782: static char *f (char * (*g) (char **, int), char **p, ...)
                   2783: {
                   2784:   char *s;
                   2785:   va_list v;
                   2786:   va_start (v,p);
                   2787:   s = g (p, va_arg (v,int));
                   2788:   va_end (v);
                   2789:   return s;
                   2790: }
                   2791: 
                   2792: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   2793:    function prototypes and stuff, but not '\xHH' hex character constants.
                   2794:    These don't provoke an error unfortunately, instead are silently treated
1.1.1.6   root     2795:    as 'x'.  The following induces an error, until -std is added to get
1.1.1.3   root     2796:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   2797:    array size at least.  It's necessary to write '\x00'==0 to get something
1.1.1.6   root     2798:    that's true only with -std.  */
1.1.1.3   root     2799: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
                   2800: 
1.1.1.6   root     2801: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   2802:    inside strings and character constants.  */
                   2803: #define FOO(x) 'x'
                   2804: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
                   2805: 
1.1.1.3   root     2806: int test (int i, double x);
                   2807: struct s1 {int (*f) (int a);};
                   2808: struct s2 {int (*f) (double a);};
                   2809: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   2810: int argc;
                   2811: char **argv;
                   2812: int
                   2813: main ()
                   2814: {
                   2815: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                   2816:   ;
                   2817:   return 0;
                   2818: }
                   2819: _ACEOF
1.1.1.6   root     2820: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   2821:        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1.1.3   root     2822: do
                   2823:   CC="$ac_save_CC $ac_arg"
                   2824:   rm -f conftest.$ac_objext
1.1.1.6   root     2825: if { (ac_try="$ac_compile"
                   2826: case "(($ac_try" in
                   2827:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2828:   *) ac_try_echo=$ac_try;;
                   2829: esac
                   2830: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   2831:   (eval "$ac_compile") 2>conftest.er1
1.1.1.3   root     2832:   ac_status=$?
                   2833:   grep -v '^ *+' conftest.er1 >conftest.err
                   2834:   rm -f conftest.er1
                   2835:   cat conftest.err >&5
                   2836:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     2837:   (exit $ac_status); } &&
        !          2838:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          2839:   { (case "(($ac_try" in
        !          2840:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          2841:   *) ac_try_echo=$ac_try;;
        !          2842: esac
        !          2843: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          2844:   (eval "$ac_try") 2>&5
        !          2845:   ac_status=$?
        !          2846:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2847:   (exit $ac_status); }; } &&
        !          2848:         { ac_try='test -s conftest.$ac_objext'
        !          2849:   { (case "(($ac_try" in
        !          2850:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          2851:   *) ac_try_echo=$ac_try;;
        !          2852: esac
        !          2853: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          2854:   (eval "$ac_try") 2>&5
        !          2855:   ac_status=$?
        !          2856:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2857:   (exit $ac_status); }; }; then
1.1.1.6   root     2858:   ac_cv_prog_cc_c89=$ac_arg
1.1.1.3   root     2859: else
                   2860:   echo "$as_me: failed program was:" >&5
                   2861: sed 's/^/| /' conftest.$ac_ext >&5
                   2862: 
1.1.1.6   root     2863: 
1.1.1.3   root     2864: fi
1.1.1.6   root     2865: 
                   2866: rm -f core conftest.err conftest.$ac_objext
                   2867:   test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1.1.3   root     2868: done
1.1.1.6   root     2869: rm -f conftest.$ac_ext
1.1.1.3   root     2870: CC=$ac_save_CC
                   2871: 
                   2872: fi
1.1.1.6   root     2873: # AC_CACHE_VAL
                   2874: case "x$ac_cv_prog_cc_c89" in
                   2875:   x)
                   2876:     { echo "$as_me:$LINENO: result: none needed" >&5
                   2877: echo "${ECHO_T}none needed" >&6; } ;;
                   2878:   xno)
                   2879:     { echo "$as_me:$LINENO: result: unsupported" >&5
                   2880: echo "${ECHO_T}unsupported" >&6; } ;;
1.1.1.3   root     2881:   *)
1.1.1.6   root     2882:     CC="$CC $ac_cv_prog_cc_c89"
                   2883:     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
                   2884: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.1.1.3   root     2885: esac
                   2886: 
                   2887: 
1.1       root     2888: ac_ext=c
                   2889: ac_cpp='$CPP $CPPFLAGS'
                   2890: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2891: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2892: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   2893: 
                   2894: # Find a good install program.  We prefer a C program (faster),
                   2895: # so one script is as good as another.  But avoid the broken or
                   2896: # incompatible versions:
                   2897: # SysV /etc/install, /usr/sbin/install
                   2898: # SunOS /usr/etc/install
                   2899: # IRIX /sbin/install
                   2900: # AIX /bin/install
                   2901: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2902: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2903: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2904: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.1.1.3   root     2905: # OS/2's system install, which has a completely different semantic
1.1       root     2906: # ./install, which can be erroneously created by make from ./install.sh.
1.1.1.6   root     2907: { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
                   2908: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1.1       root     2909: if test -z "$INSTALL"; then
                   2910: if test "${ac_cv_path_install+set}" = set; then
                   2911:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2912: else
                   2913:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2914: for as_dir in $PATH
                   2915: do
                   2916:   IFS=$as_save_IFS
                   2917:   test -z "$as_dir" && as_dir=.
                   2918:   # Account for people who put trailing slashes in PATH elements.
                   2919: case $as_dir/ in
                   2920:   ./ | .// | /cC/* | \
                   2921:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.1.1.3   root     2922:   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.1       root     2923:   /usr/ucb/* ) ;;
                   2924:   *)
                   2925:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2926:     # Don't use installbsd from OSF since it installs stuff as root
                   2927:     # by default.
                   2928:     for ac_prog in ginstall scoinst install; do
                   2929:       for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.8 ! root     2930:        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1.1.1.3   root     2931:          if test $ac_prog = install &&
                   2932:            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2933:            # AIX install.  It has an incompatible calling convention.
                   2934:            :
                   2935:          elif test $ac_prog = install &&
                   2936:            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2937:            # program-specific install script used by HP pwplus--don't use.
                   2938:            :
                   2939:          else
                   2940:            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2941:            break 3
                   2942:          fi
                   2943:        fi
1.1       root     2944:       done
                   2945:     done
                   2946:     ;;
                   2947: esac
                   2948: done
1.1.1.6   root     2949: IFS=$as_save_IFS
1.1       root     2950: 
                   2951: 
                   2952: fi
                   2953:   if test "${ac_cv_path_install+set}" = set; then
                   2954:     INSTALL=$ac_cv_path_install
                   2955:   else
1.1.1.6   root     2956:     # As a last resort, use the slow shell script.  Don't cache a
                   2957:     # value for INSTALL within a source directory, because that will
1.1       root     2958:     # break other packages using the cache if that directory is
1.1.1.6   root     2959:     # removed, or if the value is a relative name.
1.1       root     2960:     INSTALL=$ac_install_sh
                   2961:   fi
                   2962: fi
1.1.1.6   root     2963: { echo "$as_me:$LINENO: result: $INSTALL" >&5
                   2964: echo "${ECHO_T}$INSTALL" >&6; }
1.1       root     2965: 
                   2966: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2967: # It thinks the first close brace ends the variable substitution.
                   2968: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                   2969: 
                   2970: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
                   2971: 
                   2972: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                   2973: 
1.1.1.6   root     2974: if test -n "$ac_tool_prefix"; then
                   2975:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   2976: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   2977: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2978: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   2979: if test "${ac_cv_prog_RANLIB+set}" = set; then
                   2980:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2981: else
                   2982:   if test -n "$RANLIB"; then
                   2983:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   2984: else
                   2985: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2986: for as_dir in $PATH
                   2987: do
                   2988:   IFS=$as_save_IFS
                   2989:   test -z "$as_dir" && as_dir=.
                   2990:   for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.8 ! root     2991:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.6   root     2992:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   2993:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2994:     break 2
                   2995:   fi
                   2996: done
                   2997: done
                   2998: IFS=$as_save_IFS
                   2999: 
                   3000: fi
                   3001: fi
                   3002: RANLIB=$ac_cv_prog_RANLIB
                   3003: if test -n "$RANLIB"; then
                   3004:   { echo "$as_me:$LINENO: result: $RANLIB" >&5
                   3005: echo "${ECHO_T}$RANLIB" >&6; }
                   3006: else
                   3007:   { echo "$as_me:$LINENO: result: no" >&5
                   3008: echo "${ECHO_T}no" >&6; }
                   3009: fi
                   3010: 
                   3011: 
                   3012: fi
                   3013: if test -z "$ac_cv_prog_RANLIB"; then
                   3014:   ac_ct_RANLIB=$RANLIB
                   3015:   # Extract the first word of "ranlib", so it can be a program name with args.
                   3016: set dummy ranlib; ac_word=$2
                   3017: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   3018: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   3019: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
                   3020:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3021: else
                   3022:   if test -n "$ac_ct_RANLIB"; then
                   3023:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   3024: else
                   3025: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3026: for as_dir in $PATH
                   3027: do
                   3028:   IFS=$as_save_IFS
                   3029:   test -z "$as_dir" && as_dir=.
                   3030:   for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.8 ! root     3031:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.6   root     3032:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   3033:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3034:     break 2
                   3035:   fi
                   3036: done
                   3037: done
                   3038: IFS=$as_save_IFS
                   3039: 
                   3040: fi
                   3041: fi
                   3042: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   3043: if test -n "$ac_ct_RANLIB"; then
                   3044:   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
                   3045: echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
                   3046: else
                   3047:   { echo "$as_me:$LINENO: result: no" >&5
                   3048: echo "${ECHO_T}no" >&6; }
                   3049: fi
                   3050: 
                   3051:   if test "x$ac_ct_RANLIB" = x; then
                   3052:     RANLIB=":"
                   3053:   else
                   3054:     case $cross_compiling:$ac_tool_warned in
                   3055: yes:)
                   3056: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   3057: whose name does not start with the host triplet.  If you think this
                   3058: configuration is useful to you, please write to [email protected]." >&5
                   3059: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   3060: whose name does not start with the host triplet.  If you think this
                   3061: configuration is useful to you, please write to [email protected]." >&2;}
                   3062: ac_tool_warned=yes ;;
                   3063: esac
                   3064:     RANLIB=$ac_ct_RANLIB
                   3065:   fi
                   3066: else
                   3067:   RANLIB="$ac_cv_prog_RANLIB"
                   3068: fi
                   3069: 
1.1       root     3070: 
                   3071: # extra command line options
                   3072: 
1.1.1.6   root     3073: # Check whether --enable-werror was given.
1.1       root     3074: if test "${enable_werror+set}" = set; then
1.1.1.6   root     3075:   enableval=$enable_werror;  ENABLE_WERROR="${enableval}"
1.1       root     3076: else
                   3077:    ENABLE_WERROR="no"
1.1.1.6   root     3078: fi
                   3079: 
                   3080: 
1.1.1.8 ! root     3081: # Check whether --enable-tracing was given.
        !          3082: if test "${enable_tracing+set}" = set; then
        !          3083:   enableval=$enable_tracing;  enable_tracing="${enableval}"
        !          3084: else
        !          3085:    enable_tracing="yes"
        !          3086: fi
        !          3087: 
        !          3088: if test "${enable_tracing}" = "yes"; then
        !          3089: 
        !          3090: cat >>confdefs.h <<\_ACEOF
        !          3091: #define HATARI_TRACE_ACTIVATED 1
        !          3092: _ACEOF
        !          3093: 
        !          3094: else
        !          3095:   { echo "$as_me:$LINENO: Tracing disabled" >&5
        !          3096: echo "$as_me: Tracing disabled" >&6;}
        !          3097: fi
        !          3098: 
1.1.1.6   root     3099: # Check whether --enable-small-mem was given.
                   3100: if test "${enable_small_mem+set}" = set; then
1.1.1.8 ! root     3101:   enableval=$enable_small_mem;  enable_smallmem="${enableval}"
        !          3102: else
        !          3103:    enable_smallmem="no"
        !          3104: fi
        !          3105: 
        !          3106: if test "${enable_smallmem}" = "yes"; then
        !          3107: 
1.1.1.6   root     3108: cat >>confdefs.h <<\_ACEOF
                   3109: #define ENABLE_SMALL_MEM 1
                   3110: _ACEOF
                   3111: 
                   3112: fi
                   3113: 
1.1       root     3114: 
1.1.1.6   root     3115: # Check whether --with-extra-inc was given.
1.1       root     3116: if test "${with_extra_inc+set}" = set; then
1.1.1.6   root     3117:   withval=$with_extra_inc;  if test "${withval}" != no; then
1.1       root     3118:       if test "${withval}" != yes; then
                   3119:         INCL="${INCL} -I${withval}"
                   3120:       fi
                   3121:     fi
1.1.1.6   root     3122: fi
                   3123: 
1.1       root     3124: 
                   3125: 
1.1.1.6   root     3126: # Check whether --with-extra-lib was given.
1.1       root     3127: if test "${with_extra_lib+set}" = set; then
1.1.1.6   root     3128:   withval=$with_extra_lib;  if test "${withval}" != no; then
1.1       root     3129:       if test "${withval}" != yes; then
                   3130:         LDFLAGS="${LDFLAGS} -L${withval}"
                   3131:         if test x"${GCC}" = xyes; then
                   3132:           LDFLAGS="${LDFLAGS} -Wl,-rpath,${withval}/lib"
                   3133:         fi
                   3134:       fi
                   3135:     fi
1.1.1.6   root     3136: fi
                   3137: 
1.1       root     3138: 
                   3139: 
1.1.1.6   root     3140: # Check whether --with-hostcc was given.
1.1       root     3141: if test "${with_hostcc+set}" = set; then
1.1.1.6   root     3142:   withval=$with_hostcc; HOSTCC=$withval
1.1       root     3143: else
                   3144:   HOSTCC=$CC
1.1.1.6   root     3145: fi
                   3146: 
1.1       root     3147: 
                   3148: 
                   3149: 
                   3150: 
                   3151: 
1.1.1.6   root     3152: { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
                   3153: echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
1.1       root     3154: if test "${ac_cv_lib_z_gzopen+set}" = set; then
                   3155:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3156: else
                   3157:   ac_check_lib_save_LIBS=$LIBS
                   3158: LIBS="-lz  $LIBS"
                   3159: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     3160: /* confdefs.h.  */
                   3161: _ACEOF
                   3162: cat confdefs.h >>conftest.$ac_ext
                   3163: cat >>conftest.$ac_ext <<_ACEOF
                   3164: /* end confdefs.h.  */
1.1       root     3165: 
1.1.1.6   root     3166: /* Override any GCC internal prototype to avoid an error.
                   3167:    Use char because int might match the return type of a GCC
                   3168:    builtin and then its argument prototype would still apply.  */
1.1       root     3169: #ifdef __cplusplus
                   3170: extern "C"
                   3171: #endif
                   3172: char gzopen ();
                   3173: int
                   3174: main ()
                   3175: {
1.1.1.6   root     3176: return gzopen ();
1.1       root     3177:   ;
                   3178:   return 0;
                   3179: }
                   3180: _ACEOF
                   3181: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.6   root     3182: if { (ac_try="$ac_link"
                   3183: case "(($ac_try" in
                   3184:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3185:   *) ac_try_echo=$ac_try;;
                   3186: esac
                   3187: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   3188:   (eval "$ac_link") 2>conftest.er1
1.1       root     3189:   ac_status=$?
1.1.1.3   root     3190:   grep -v '^ *+' conftest.er1 >conftest.err
                   3191:   rm -f conftest.er1
                   3192:   cat conftest.err >&5
1.1       root     3193:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     3194:   (exit $ac_status); } &&
        !          3195:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          3196:   { (case "(($ac_try" in
        !          3197:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          3198:   *) ac_try_echo=$ac_try;;
        !          3199: esac
        !          3200: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          3201:   (eval "$ac_try") 2>&5
        !          3202:   ac_status=$?
        !          3203:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3204:   (exit $ac_status); }; } &&
        !          3205:         { ac_try='test -s conftest$ac_exeext'
        !          3206:   { (case "(($ac_try" in
        !          3207:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          3208:   *) ac_try_echo=$ac_try;;
        !          3209: esac
        !          3210: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          3211:   (eval "$ac_try") 2>&5
        !          3212:   ac_status=$?
        !          3213:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3214:   (exit $ac_status); }; }; then
1.1       root     3215:   ac_cv_lib_z_gzopen=yes
                   3216: else
                   3217:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     3218: sed 's/^/| /' conftest.$ac_ext >&5
                   3219: 
1.1.1.6   root     3220:        ac_cv_lib_z_gzopen=no
1.1       root     3221: fi
1.1.1.6   root     3222: 
1.1.1.8 ! root     3223: rm -f core conftest.err conftest.$ac_objext \
1.1.1.3   root     3224:       conftest$ac_exeext conftest.$ac_ext
1.1       root     3225: LIBS=$ac_check_lib_save_LIBS
                   3226: fi
1.1.1.6   root     3227: { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
                   3228: echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
1.1       root     3229: if test $ac_cv_lib_z_gzopen = yes; then
                   3230:   cat >>confdefs.h <<_ACEOF
                   3231: #define HAVE_LIBZ 1
                   3232: _ACEOF
                   3233: 
                   3234:   LIBS="-lz $LIBS"
                   3235: 
                   3236: else
                   3237:   { { echo "$as_me:$LINENO: error: You need the zlib to compile this program!" >&5
                   3238: echo "$as_me: error: You need the zlib to compile this program!" >&2;}
                   3239:    { (exit 1); exit 1; }; }
                   3240: fi
                   3241: 
                   3242: 
1.1.1.8 ! root     3243: ac_ext=c
        !          3244: ac_cpp='$CPP $CPPFLAGS'
        !          3245: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
        !          3246: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
        !          3247: ac_compiler_gnu=$ac_cv_c_compiler_gnu
        !          3248: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
        !          3249: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
        !          3250: # On Suns, sometimes $CPP names a directory.
        !          3251: if test -n "$CPP" && test -d "$CPP"; then
        !          3252:   CPP=
1.1.1.6   root     3253: fi
1.1.1.8 ! root     3254: if test -z "$CPP"; then
        !          3255:   if test "${ac_cv_prog_CPP+set}" = set; then
        !          3256:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       root     3257: else
1.1.1.8 ! root     3258:       # Double quotes because CPP needs to be expanded
        !          3259:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
        !          3260:     do
        !          3261:       ac_preproc_ok=false
        !          3262: for ac_c_preproc_warn_flag in '' yes
        !          3263: do
        !          3264:   # Use a header file that comes with gcc, so configuring glibc
        !          3265:   # with a fresh cross-compiler works.
        !          3266:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          3267:   # <limits.h> exists even on freestanding compilers.
        !          3268:   # On the NeXT, cc -E runs the code through the compiler's parser,
        !          3269:   # not just through cpp. "Syntax error" is here to catch this case.
        !          3270:   cat >conftest.$ac_ext <<_ACEOF
        !          3271: /* confdefs.h.  */
        !          3272: _ACEOF
        !          3273: cat confdefs.h >>conftest.$ac_ext
        !          3274: cat >>conftest.$ac_ext <<_ACEOF
        !          3275: /* end confdefs.h.  */
        !          3276: #ifdef __STDC__
        !          3277: # include <limits.h>
        !          3278: #else
        !          3279: # include <assert.h>
        !          3280: #endif
        !          3281:                     Syntax error
        !          3282: _ACEOF
        !          3283: if { (ac_try="$ac_cpp conftest.$ac_ext"
        !          3284: case "(($ac_try" in
        !          3285:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          3286:   *) ac_try_echo=$ac_try;;
        !          3287: esac
        !          3288: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          3289:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
        !          3290:   ac_status=$?
        !          3291:   grep -v '^ *+' conftest.er1 >conftest.err
        !          3292:   rm -f conftest.er1
        !          3293:   cat conftest.err >&5
        !          3294:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3295:   (exit $ac_status); } >/dev/null; then
        !          3296:   if test -s conftest.err; then
        !          3297:     ac_cpp_err=$ac_c_preproc_warn_flag
        !          3298:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
        !          3299:   else
        !          3300:     ac_cpp_err=
        !          3301:   fi
        !          3302: else
        !          3303:   ac_cpp_err=yes
1.1.1.6   root     3304: fi
1.1.1.8 ! root     3305: if test -z "$ac_cpp_err"; then
        !          3306:   :
1.1       root     3307: else
1.1.1.8 ! root     3308:   echo "$as_me: failed program was:" >&5
        !          3309: sed 's/^/| /' conftest.$ac_ext >&5
        !          3310: 
        !          3311:   # Broken: fails on valid input.
        !          3312: continue
1.1.1.6   root     3313: fi
                   3314: 
1.1.1.8 ! root     3315: rm -f conftest.err conftest.$ac_ext
1.1       root     3316: 
1.1.1.8 ! root     3317:   # OK, works on sane cases.  Now check whether nonexistent headers
        !          3318:   # can be detected and how.
        !          3319:   cat >conftest.$ac_ext <<_ACEOF
        !          3320: /* confdefs.h.  */
        !          3321: _ACEOF
        !          3322: cat confdefs.h >>conftest.$ac_ext
        !          3323: cat >>conftest.$ac_ext <<_ACEOF
        !          3324: /* end confdefs.h.  */
        !          3325: #include <ac_nonexistent.h>
        !          3326: _ACEOF
        !          3327: if { (ac_try="$ac_cpp conftest.$ac_ext"
        !          3328: case "(($ac_try" in
        !          3329:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          3330:   *) ac_try_echo=$ac_try;;
        !          3331: esac
        !          3332: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          3333:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
        !          3334:   ac_status=$?
        !          3335:   grep -v '^ *+' conftest.er1 >conftest.err
        !          3336:   rm -f conftest.er1
        !          3337:   cat conftest.err >&5
        !          3338:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3339:   (exit $ac_status); } >/dev/null; then
        !          3340:   if test -s conftest.err; then
        !          3341:     ac_cpp_err=$ac_c_preproc_warn_flag
        !          3342:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
        !          3343:   else
        !          3344:     ac_cpp_err=
1.1       root     3345:   fi
                   3346: else
1.1.1.8 ! root     3347:   ac_cpp_err=yes
1.1       root     3348: fi
1.1.1.8 ! root     3349: if test -z "$ac_cpp_err"; then
        !          3350:   # Broken: success on invalid input.
        !          3351: continue
1.1       root     3352: else
1.1.1.8 ! root     3353:   echo "$as_me: failed program was:" >&5
        !          3354: sed 's/^/| /' conftest.$ac_ext >&5
        !          3355: 
        !          3356:   # Passes both tests.
        !          3357: ac_preproc_ok=:
        !          3358: break
1.1       root     3359: fi
                   3360: 
1.1.1.8 ! root     3361: rm -f conftest.err conftest.$ac_ext
1.1.1.6   root     3362: 
1.1.1.8 ! root     3363: done
        !          3364: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
        !          3365: rm -f conftest.err conftest.$ac_ext
        !          3366: if $ac_preproc_ok; then
        !          3367:   break
        !          3368: fi
1.1       root     3369: 
1.1.1.8 ! root     3370:     done
        !          3371:     ac_cv_prog_CPP=$CPP
        !          3372: 
        !          3373: fi
        !          3374:   CPP=$ac_cv_prog_CPP
1.1       root     3375: else
1.1.1.8 ! root     3376:   ac_cv_prog_CPP=$CPP
        !          3377: fi
        !          3378: { echo "$as_me:$LINENO: result: $CPP" >&5
        !          3379: echo "${ECHO_T}$CPP" >&6; }
        !          3380: ac_preproc_ok=false
        !          3381: for ac_c_preproc_warn_flag in '' yes
        !          3382: do
        !          3383:   # Use a header file that comes with gcc, so configuring glibc
        !          3384:   # with a fresh cross-compiler works.
        !          3385:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          3386:   # <limits.h> exists even on freestanding compilers.
        !          3387:   # On the NeXT, cc -E runs the code through the compiler's parser,
        !          3388:   # not just through cpp. "Syntax error" is here to catch this case.
1.1       root     3389:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     3390: /* confdefs.h.  */
                   3391: _ACEOF
                   3392: cat confdefs.h >>conftest.$ac_ext
                   3393: cat >>conftest.$ac_ext <<_ACEOF
                   3394: /* end confdefs.h.  */
1.1.1.8 ! root     3395: #ifdef __STDC__
        !          3396: # include <limits.h>
        !          3397: #else
        !          3398: # include <assert.h>
        !          3399: #endif
        !          3400:                     Syntax error
1.1       root     3401: _ACEOF
1.1.1.8 ! root     3402: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.1.1.6   root     3403: case "(($ac_try" in
                   3404:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3405:   *) ac_try_echo=$ac_try;;
                   3406: esac
                   3407: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1.1.8 ! root     3408:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1       root     3409:   ac_status=$?
1.1.1.8 ! root     3410:   grep -v '^ *+' conftest.er1 >conftest.err
        !          3411:   rm -f conftest.er1
        !          3412:   cat conftest.err >&5
1.1       root     3413:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     3414:   (exit $ac_status); } >/dev/null; then
        !          3415:   if test -s conftest.err; then
        !          3416:     ac_cpp_err=$ac_c_preproc_warn_flag
        !          3417:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
        !          3418:   else
        !          3419:     ac_cpp_err=
        !          3420:   fi
        !          3421: else
        !          3422:   ac_cpp_err=yes
        !          3423: fi
        !          3424: if test -z "$ac_cpp_err"; then
1.1       root     3425:   :
                   3426: else
1.1.1.8 ! root     3427:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     3428: sed 's/^/| /' conftest.$ac_ext >&5
                   3429: 
1.1.1.8 ! root     3430:   # Broken: fails on valid input.
        !          3431: continue
1.1       root     3432: fi
1.1.1.6   root     3433: 
1.1.1.8 ! root     3434: rm -f conftest.err conftest.$ac_ext
1.1.1.6   root     3435: 
1.1.1.8 ! root     3436:   # OK, works on sane cases.  Now check whether nonexistent headers
        !          3437:   # can be detected and how.
        !          3438:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     3439: /* confdefs.h.  */
                   3440: _ACEOF
                   3441: cat confdefs.h >>conftest.$ac_ext
                   3442: cat >>conftest.$ac_ext <<_ACEOF
                   3443: /* end confdefs.h.  */
1.1.1.8 ! root     3444: #include <ac_nonexistent.h>
1.1       root     3445: _ACEOF
1.1.1.8 ! root     3446: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.1.1.6   root     3447: case "(($ac_try" in
                   3448:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3449:   *) ac_try_echo=$ac_try;;
                   3450: esac
                   3451: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1.1.8 ! root     3452:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1       root     3453:   ac_status=$?
1.1.1.3   root     3454:   grep -v '^ *+' conftest.er1 >conftest.err
                   3455:   rm -f conftest.er1
                   3456:   cat conftest.err >&5
1.1       root     3457:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     3458:   (exit $ac_status); } >/dev/null; then
        !          3459:   if test -s conftest.err; then
        !          3460:     ac_cpp_err=$ac_c_preproc_warn_flag
        !          3461:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
        !          3462:   else
        !          3463:     ac_cpp_err=
1.1       root     3464:   fi
                   3465: else
1.1.1.8 ! root     3466:   ac_cpp_err=yes
1.1       root     3467: fi
1.1.1.8 ! root     3468: if test -z "$ac_cpp_err"; then
1.1       root     3469:   # Broken: success on invalid input.
                   3470: continue
                   3471: else
                   3472:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     3473: sed 's/^/| /' conftest.$ac_ext >&5
                   3474: 
1.1       root     3475:   # Passes both tests.
                   3476: ac_preproc_ok=:
                   3477: break
                   3478: fi
1.1.1.6   root     3479: 
1.1       root     3480: rm -f conftest.err conftest.$ac_ext
                   3481: 
                   3482: done
                   3483: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   3484: rm -f conftest.err conftest.$ac_ext
                   3485: if $ac_preproc_ok; then
                   3486:   :
                   3487: else
1.1.1.3   root     3488:   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
                   3489: See \`config.log' for more details." >&5
                   3490: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
                   3491: See \`config.log' for more details." >&2;}
1.1       root     3492:    { (exit 1); exit 1; }; }
                   3493: fi
                   3494: 
                   3495: ac_ext=c
                   3496: ac_cpp='$CPP $CPPFLAGS'
                   3497: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3498: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3499: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3500: 
                   3501: 
1.1.1.6   root     3502: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
                   3503: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
                   3504: if test "${ac_cv_path_GREP+set}" = set; then
                   3505:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3506: else
                   3507:   # Extract the first word of "grep ggrep" to use in msg output
                   3508: if test -z "$GREP"; then
                   3509: set dummy grep ggrep; ac_prog_name=$2
                   3510: if test "${ac_cv_path_GREP+set}" = set; then
                   3511:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3512: else
                   3513:   ac_path_GREP_found=false
                   3514: # Loop through the user's path and test for each of PROGNAME-LIST
                   3515: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3516: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   3517: do
                   3518:   IFS=$as_save_IFS
                   3519:   test -z "$as_dir" && as_dir=.
                   3520:   for ac_prog in grep ggrep; do
                   3521:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3522:     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.8 ! root     3523:     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
1.1.1.6   root     3524:     # Check for GNU ac_path_GREP and select it if it is found.
                   3525:   # Check for GNU $ac_path_GREP
                   3526: case `"$ac_path_GREP" --version 2>&1` in
                   3527: *GNU*)
                   3528:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   3529: *)
                   3530:   ac_count=0
                   3531:   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
                   3532:   while :
                   3533:   do
                   3534:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   3535:     mv "conftest.tmp" "conftest.in"
                   3536:     cp "conftest.in" "conftest.nl"
                   3537:     echo 'GREP' >> "conftest.nl"
                   3538:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   3539:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   3540:     ac_count=`expr $ac_count + 1`
                   3541:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   3542:       # Best one so far, save it but keep looking for a better one
                   3543:       ac_cv_path_GREP="$ac_path_GREP"
                   3544:       ac_path_GREP_max=$ac_count
                   3545:     fi
                   3546:     # 10*(2^10) chars as input seems more than enough
                   3547:     test $ac_count -gt 10 && break
                   3548:   done
                   3549:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   3550: esac
                   3551: 
                   3552: 
                   3553:     $ac_path_GREP_found && break 3
                   3554:   done
                   3555: done
                   3556: 
                   3557: done
                   3558: IFS=$as_save_IFS
                   3559: 
                   3560: 
                   3561: fi
                   3562: 
                   3563: GREP="$ac_cv_path_GREP"
                   3564: if test -z "$GREP"; then
                   3565:   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
                   3566: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
                   3567:    { (exit 1); exit 1; }; }
                   3568: fi
                   3569: 
                   3570: else
                   3571:   ac_cv_path_GREP=$GREP
                   3572: fi
                   3573: 
                   3574: 
                   3575: fi
                   3576: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
                   3577: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
                   3578:  GREP="$ac_cv_path_GREP"
                   3579: 
                   3580: 
                   3581: { echo "$as_me:$LINENO: checking for egrep" >&5
                   3582: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
                   3583: if test "${ac_cv_path_EGREP+set}" = set; then
                   3584:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3585: else
                   3586:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   3587:    then ac_cv_path_EGREP="$GREP -E"
                   3588:    else
                   3589:      # Extract the first word of "egrep" to use in msg output
                   3590: if test -z "$EGREP"; then
                   3591: set dummy egrep; ac_prog_name=$2
                   3592: if test "${ac_cv_path_EGREP+set}" = set; then
1.1.1.3   root     3593:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3594: else
1.1.1.6   root     3595:   ac_path_EGREP_found=false
                   3596: # Loop through the user's path and test for each of PROGNAME-LIST
                   3597: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3598: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   3599: do
                   3600:   IFS=$as_save_IFS
                   3601:   test -z "$as_dir" && as_dir=.
                   3602:   for ac_prog in egrep; do
                   3603:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3604:     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.8 ! root     3605:     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
1.1.1.6   root     3606:     # Check for GNU ac_path_EGREP and select it if it is found.
                   3607:   # Check for GNU $ac_path_EGREP
                   3608: case `"$ac_path_EGREP" --version 2>&1` in
                   3609: *GNU*)
                   3610:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   3611: *)
                   3612:   ac_count=0
                   3613:   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
                   3614:   while :
                   3615:   do
                   3616:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   3617:     mv "conftest.tmp" "conftest.in"
                   3618:     cp "conftest.in" "conftest.nl"
                   3619:     echo 'EGREP' >> "conftest.nl"
                   3620:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   3621:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   3622:     ac_count=`expr $ac_count + 1`
                   3623:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   3624:       # Best one so far, save it but keep looking for a better one
                   3625:       ac_cv_path_EGREP="$ac_path_EGREP"
                   3626:       ac_path_EGREP_max=$ac_count
1.1.1.3   root     3627:     fi
1.1.1.6   root     3628:     # 10*(2^10) chars as input seems more than enough
                   3629:     test $ac_count -gt 10 && break
                   3630:   done
                   3631:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   3632: esac
                   3633: 
                   3634: 
                   3635:     $ac_path_EGREP_found && break 3
                   3636:   done
                   3637: done
                   3638: 
                   3639: done
                   3640: IFS=$as_save_IFS
                   3641: 
                   3642: 
                   3643: fi
                   3644: 
                   3645: EGREP="$ac_cv_path_EGREP"
                   3646: if test -z "$EGREP"; then
                   3647:   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
                   3648: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
                   3649:    { (exit 1); exit 1; }; }
                   3650: fi
                   3651: 
                   3652: else
                   3653:   ac_cv_path_EGREP=$EGREP
1.1.1.3   root     3654: fi
                   3655: 
                   3656: 
1.1.1.6   root     3657:    fi
                   3658: fi
                   3659: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
                   3660: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
                   3661:  EGREP="$ac_cv_path_EGREP"
                   3662: 
                   3663: 
                   3664: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
                   3665: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.1       root     3666: if test "${ac_cv_header_stdc+set}" = set; then
                   3667:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3668: else
                   3669:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     3670: /* confdefs.h.  */
                   3671: _ACEOF
                   3672: cat confdefs.h >>conftest.$ac_ext
                   3673: cat >>conftest.$ac_ext <<_ACEOF
                   3674: /* end confdefs.h.  */
1.1       root     3675: #include <stdlib.h>
                   3676: #include <stdarg.h>
                   3677: #include <string.h>
                   3678: #include <float.h>
                   3679: 
1.1.1.3   root     3680: int
                   3681: main ()
                   3682: {
                   3683: 
                   3684:   ;
                   3685:   return 0;
                   3686: }
1.1       root     3687: _ACEOF
1.1.1.3   root     3688: rm -f conftest.$ac_objext
1.1.1.6   root     3689: if { (ac_try="$ac_compile"
                   3690: case "(($ac_try" in
                   3691:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3692:   *) ac_try_echo=$ac_try;;
                   3693: esac
1.1.1.8 ! root     3694: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          3695:   (eval "$ac_compile") 2>conftest.er1
        !          3696:   ac_status=$?
        !          3697:   grep -v '^ *+' conftest.er1 >conftest.err
        !          3698:   rm -f conftest.er1
        !          3699:   cat conftest.err >&5
        !          3700:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3701:   (exit $ac_status); } &&
        !          3702:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          3703:   { (case "(($ac_try" in
        !          3704:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          3705:   *) ac_try_echo=$ac_try;;
        !          3706: esac
        !          3707: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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'
        !          3713:   { (case "(($ac_try" in
        !          3714:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          3715:   *) ac_try_echo=$ac_try;;
        !          3716: esac
        !          3717: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          3718:   (eval "$ac_try") 2>&5
        !          3719:   ac_status=$?
        !          3720:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3721:   (exit $ac_status); }; }; then
        !          3722:   ac_cv_header_stdc=yes
        !          3723: else
        !          3724:   echo "$as_me: failed program was:" >&5
        !          3725: sed 's/^/| /' conftest.$ac_ext >&5
        !          3726: 
        !          3727:        ac_cv_header_stdc=no
        !          3728: fi
        !          3729: 
        !          3730: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          3731: 
        !          3732: if test $ac_cv_header_stdc = yes; then
        !          3733:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
        !          3734:   cat >conftest.$ac_ext <<_ACEOF
        !          3735: /* confdefs.h.  */
        !          3736: _ACEOF
        !          3737: cat confdefs.h >>conftest.$ac_ext
        !          3738: cat >>conftest.$ac_ext <<_ACEOF
        !          3739: /* end confdefs.h.  */
        !          3740: #include <string.h>
        !          3741: 
        !          3742: _ACEOF
        !          3743: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
        !          3744:   $EGREP "memchr" >/dev/null 2>&1; then
        !          3745:   :
        !          3746: else
        !          3747:   ac_cv_header_stdc=no
        !          3748: fi
        !          3749: rm -f conftest*
        !          3750: 
        !          3751: fi
        !          3752: 
        !          3753: if test $ac_cv_header_stdc = yes; then
        !          3754:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
        !          3755:   cat >conftest.$ac_ext <<_ACEOF
        !          3756: /* confdefs.h.  */
        !          3757: _ACEOF
        !          3758: cat confdefs.h >>conftest.$ac_ext
        !          3759: cat >>conftest.$ac_ext <<_ACEOF
        !          3760: /* end confdefs.h.  */
        !          3761: #include <stdlib.h>
        !          3762: 
        !          3763: _ACEOF
        !          3764: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
        !          3765:   $EGREP "free" >/dev/null 2>&1; then
        !          3766:   :
        !          3767: else
        !          3768:   ac_cv_header_stdc=no
        !          3769: fi
        !          3770: rm -f conftest*
        !          3771: 
        !          3772: fi
        !          3773: 
        !          3774: if test $ac_cv_header_stdc = yes; then
        !          3775:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
        !          3776:   if test "$cross_compiling" = yes; then
        !          3777:   :
        !          3778: else
        !          3779:   cat >conftest.$ac_ext <<_ACEOF
        !          3780: /* confdefs.h.  */
        !          3781: _ACEOF
        !          3782: cat confdefs.h >>conftest.$ac_ext
        !          3783: cat >>conftest.$ac_ext <<_ACEOF
        !          3784: /* end confdefs.h.  */
        !          3785: #include <ctype.h>
        !          3786: #include <stdlib.h>
        !          3787: #if ((' ' & 0x0FF) == 0x020)
        !          3788: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
        !          3789: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
        !          3790: #else
        !          3791: # define ISLOWER(c) \
        !          3792:                   (('a' <= (c) && (c) <= 'i') \
        !          3793:                     || ('j' <= (c) && (c) <= 'r') \
        !          3794:                     || ('s' <= (c) && (c) <= 'z'))
        !          3795: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
        !          3796: #endif
        !          3797: 
        !          3798: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
        !          3799: int
        !          3800: main ()
        !          3801: {
        !          3802:   int i;
        !          3803:   for (i = 0; i < 256; i++)
        !          3804:     if (XOR (islower (i), ISLOWER (i))
        !          3805:        || toupper (i) != TOUPPER (i))
        !          3806:       return 2;
        !          3807:   return 0;
        !          3808: }
        !          3809: _ACEOF
        !          3810: rm -f conftest$ac_exeext
        !          3811: if { (ac_try="$ac_link"
        !          3812: case "(($ac_try" in
        !          3813:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          3814:   *) ac_try_echo=$ac_try;;
        !          3815: esac
        !          3816: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          3817:   (eval "$ac_link") 2>&5
        !          3818:   ac_status=$?
        !          3819:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3820:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
        !          3821:   { (case "(($ac_try" in
        !          3822:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          3823:   *) ac_try_echo=$ac_try;;
        !          3824: esac
        !          3825: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          3826:   (eval "$ac_try") 2>&5
        !          3827:   ac_status=$?
        !          3828:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3829:   (exit $ac_status); }; }; then
        !          3830:   :
        !          3831: else
        !          3832:   echo "$as_me: program exited with status $ac_status" >&5
        !          3833: echo "$as_me: failed program was:" >&5
        !          3834: sed 's/^/| /' conftest.$ac_ext >&5
        !          3835: 
        !          3836: ( exit $ac_status )
        !          3837: ac_cv_header_stdc=no
        !          3838: fi
        !          3839: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
        !          3840: fi
        !          3841: 
        !          3842: 
        !          3843: fi
        !          3844: fi
        !          3845: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
        !          3846: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
        !          3847: if test $ac_cv_header_stdc = yes; then
        !          3848: 
        !          3849: cat >>confdefs.h <<\_ACEOF
        !          3850: #define STDC_HEADERS 1
        !          3851: _ACEOF
        !          3852: 
        !          3853: fi
        !          3854: 
        !          3855: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
        !          3856: 
        !          3857: 
        !          3858: 
        !          3859: 
        !          3860: 
        !          3861: 
        !          3862: 
        !          3863: 
        !          3864: 
        !          3865: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
        !          3866:                  inttypes.h stdint.h unistd.h
        !          3867: do
        !          3868: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
        !          3869: { echo "$as_me:$LINENO: checking for $ac_header" >&5
        !          3870: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
        !          3871: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
        !          3872:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          3873: else
        !          3874:   cat >conftest.$ac_ext <<_ACEOF
        !          3875: /* confdefs.h.  */
        !          3876: _ACEOF
        !          3877: cat confdefs.h >>conftest.$ac_ext
        !          3878: cat >>conftest.$ac_ext <<_ACEOF
        !          3879: /* end confdefs.h.  */
        !          3880: $ac_includes_default
        !          3881: 
        !          3882: #include <$ac_header>
        !          3883: _ACEOF
        !          3884: rm -f conftest.$ac_objext
        !          3885: if { (ac_try="$ac_compile"
        !          3886: case "(($ac_try" in
        !          3887:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          3888:   *) ac_try_echo=$ac_try;;
        !          3889: esac
        !          3890: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          3891:   (eval "$ac_compile") 2>conftest.er1
        !          3892:   ac_status=$?
        !          3893:   grep -v '^ *+' conftest.er1 >conftest.err
        !          3894:   rm -f conftest.er1
        !          3895:   cat conftest.err >&5
        !          3896:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3897:   (exit $ac_status); } &&
        !          3898:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          3899:   { (case "(($ac_try" in
        !          3900:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          3901:   *) ac_try_echo=$ac_try;;
        !          3902: esac
        !          3903: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          3904:   (eval "$ac_try") 2>&5
        !          3905:   ac_status=$?
        !          3906:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3907:   (exit $ac_status); }; } &&
        !          3908:         { ac_try='test -s conftest.$ac_objext'
        !          3909:   { (case "(($ac_try" in
        !          3910:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          3911:   *) ac_try_echo=$ac_try;;
        !          3912: esac
        !          3913: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          3914:   (eval "$ac_try") 2>&5
        !          3915:   ac_status=$?
        !          3916:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3917:   (exit $ac_status); }; }; then
        !          3918:   eval "$as_ac_Header=yes"
        !          3919: else
        !          3920:   echo "$as_me: failed program was:" >&5
        !          3921: sed 's/^/| /' conftest.$ac_ext >&5
        !          3922: 
        !          3923:        eval "$as_ac_Header=no"
        !          3924: fi
        !          3925: 
        !          3926: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          3927: fi
        !          3928: ac_res=`eval echo '${'$as_ac_Header'}'`
        !          3929:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          3930: echo "${ECHO_T}$ac_res" >&6; }
        !          3931: if test `eval echo '${'$as_ac_Header'}'` = yes; then
        !          3932:   cat >>confdefs.h <<_ACEOF
        !          3933: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
        !          3934: _ACEOF
        !          3935: 
        !          3936: fi
        !          3937: 
        !          3938: done
        !          3939: 
        !          3940: 
        !          3941: { echo "$as_me:$LINENO: checking for png_create_info_struct in -lpng" >&5
        !          3942: echo $ECHO_N "checking for png_create_info_struct in -lpng... $ECHO_C" >&6; }
        !          3943: if test "${ac_cv_lib_png_png_create_info_struct+set}" = set; then
        !          3944:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          3945: else
        !          3946:   ac_check_lib_save_LIBS=$LIBS
        !          3947: LIBS="-lpng -lz -lm $LIBS"
        !          3948: cat >conftest.$ac_ext <<_ACEOF
        !          3949: /* confdefs.h.  */
        !          3950: _ACEOF
        !          3951: cat confdefs.h >>conftest.$ac_ext
        !          3952: cat >>conftest.$ac_ext <<_ACEOF
        !          3953: /* end confdefs.h.  */
        !          3954: 
        !          3955: /* Override any GCC internal prototype to avoid an error.
        !          3956:    Use char because int might match the return type of a GCC
        !          3957:    builtin and then its argument prototype would still apply.  */
        !          3958: #ifdef __cplusplus
        !          3959: extern "C"
        !          3960: #endif
        !          3961: char png_create_info_struct ();
        !          3962: int
        !          3963: main ()
        !          3964: {
        !          3965: return png_create_info_struct ();
        !          3966:   ;
        !          3967:   return 0;
        !          3968: }
        !          3969: _ACEOF
        !          3970: rm -f conftest.$ac_objext conftest$ac_exeext
        !          3971: if { (ac_try="$ac_link"
        !          3972: case "(($ac_try" in
        !          3973:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          3974:   *) ac_try_echo=$ac_try;;
        !          3975: esac
        !          3976: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          3977:   (eval "$ac_link") 2>conftest.er1
        !          3978:   ac_status=$?
        !          3979:   grep -v '^ *+' conftest.er1 >conftest.err
        !          3980:   rm -f conftest.er1
        !          3981:   cat conftest.err >&5
        !          3982:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3983:   (exit $ac_status); } &&
        !          3984:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          3985:   { (case "(($ac_try" in
        !          3986:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          3987:   *) ac_try_echo=$ac_try;;
        !          3988: esac
        !          3989: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          3990:   (eval "$ac_try") 2>&5
        !          3991:   ac_status=$?
        !          3992:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3993:   (exit $ac_status); }; } &&
        !          3994:         { ac_try='test -s conftest$ac_exeext'
        !          3995:   { (case "(($ac_try" in
        !          3996:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          3997:   *) ac_try_echo=$ac_try;;
        !          3998: esac
        !          3999: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4000:   (eval "$ac_try") 2>&5
        !          4001:   ac_status=$?
        !          4002:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4003:   (exit $ac_status); }; }; then
        !          4004:   ac_cv_lib_png_png_create_info_struct=yes
        !          4005: else
        !          4006:   echo "$as_me: failed program was:" >&5
        !          4007: sed 's/^/| /' conftest.$ac_ext >&5
        !          4008: 
        !          4009:        ac_cv_lib_png_png_create_info_struct=no
        !          4010: fi
        !          4011: 
        !          4012: rm -f core conftest.err conftest.$ac_objext \
        !          4013:       conftest$ac_exeext conftest.$ac_ext
        !          4014: LIBS=$ac_check_lib_save_LIBS
        !          4015: fi
        !          4016: { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_info_struct" >&5
        !          4017: echo "${ECHO_T}$ac_cv_lib_png_png_create_info_struct" >&6; }
        !          4018: if test $ac_cv_lib_png_png_create_info_struct = yes; then
        !          4019:   if test "${ac_cv_header_png_h+set}" = set; then
        !          4020:   { echo "$as_me:$LINENO: checking for png.h" >&5
        !          4021: echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
        !          4022: if test "${ac_cv_header_png_h+set}" = set; then
        !          4023:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          4024: fi
        !          4025: { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
        !          4026: echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
        !          4027: else
        !          4028:   # Is the header compilable?
        !          4029: { echo "$as_me:$LINENO: checking png.h usability" >&5
        !          4030: echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
        !          4031: cat >conftest.$ac_ext <<_ACEOF
        !          4032: /* confdefs.h.  */
        !          4033: _ACEOF
        !          4034: cat confdefs.h >>conftest.$ac_ext
        !          4035: cat >>conftest.$ac_ext <<_ACEOF
        !          4036: /* end confdefs.h.  */
        !          4037: $ac_includes_default
        !          4038: #include <png.h>
        !          4039: _ACEOF
        !          4040: rm -f conftest.$ac_objext
        !          4041: if { (ac_try="$ac_compile"
        !          4042: case "(($ac_try" in
        !          4043:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          4044:   *) ac_try_echo=$ac_try;;
        !          4045: esac
        !          4046: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4047:   (eval "$ac_compile") 2>conftest.er1
        !          4048:   ac_status=$?
        !          4049:   grep -v '^ *+' conftest.er1 >conftest.err
        !          4050:   rm -f conftest.er1
        !          4051:   cat conftest.err >&5
        !          4052:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4053:   (exit $ac_status); } &&
        !          4054:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          4055:   { (case "(($ac_try" in
        !          4056:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          4057:   *) ac_try_echo=$ac_try;;
        !          4058: esac
        !          4059: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4060:   (eval "$ac_try") 2>&5
        !          4061:   ac_status=$?
        !          4062:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4063:   (exit $ac_status); }; } &&
        !          4064:         { ac_try='test -s conftest.$ac_objext'
        !          4065:   { (case "(($ac_try" in
        !          4066:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          4067:   *) ac_try_echo=$ac_try;;
        !          4068: esac
        !          4069: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4070:   (eval "$ac_try") 2>&5
        !          4071:   ac_status=$?
        !          4072:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4073:   (exit $ac_status); }; }; then
        !          4074:   ac_header_compiler=yes
        !          4075: else
        !          4076:   echo "$as_me: failed program was:" >&5
        !          4077: sed 's/^/| /' conftest.$ac_ext >&5
        !          4078: 
        !          4079:        ac_header_compiler=no
        !          4080: fi
        !          4081: 
        !          4082: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          4083: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
        !          4084: echo "${ECHO_T}$ac_header_compiler" >&6; }
        !          4085: 
        !          4086: # Is the header present?
        !          4087: { echo "$as_me:$LINENO: checking png.h presence" >&5
        !          4088: echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
        !          4089: cat >conftest.$ac_ext <<_ACEOF
        !          4090: /* confdefs.h.  */
        !          4091: _ACEOF
        !          4092: cat confdefs.h >>conftest.$ac_ext
        !          4093: cat >>conftest.$ac_ext <<_ACEOF
        !          4094: /* end confdefs.h.  */
        !          4095: #include <png.h>
        !          4096: _ACEOF
        !          4097: if { (ac_try="$ac_cpp conftest.$ac_ext"
        !          4098: case "(($ac_try" in
        !          4099:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          4100:   *) ac_try_echo=$ac_try;;
        !          4101: esac
        !          4102: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4103:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
        !          4104:   ac_status=$?
        !          4105:   grep -v '^ *+' conftest.er1 >conftest.err
        !          4106:   rm -f conftest.er1
        !          4107:   cat conftest.err >&5
        !          4108:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4109:   (exit $ac_status); } >/dev/null; then
        !          4110:   if test -s conftest.err; then
        !          4111:     ac_cpp_err=$ac_c_preproc_warn_flag
        !          4112:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
        !          4113:   else
        !          4114:     ac_cpp_err=
        !          4115:   fi
        !          4116: else
        !          4117:   ac_cpp_err=yes
        !          4118: fi
        !          4119: if test -z "$ac_cpp_err"; then
        !          4120:   ac_header_preproc=yes
        !          4121: else
        !          4122:   echo "$as_me: failed program was:" >&5
        !          4123: sed 's/^/| /' conftest.$ac_ext >&5
        !          4124: 
        !          4125:   ac_header_preproc=no
        !          4126: fi
        !          4127: 
        !          4128: rm -f conftest.err conftest.$ac_ext
        !          4129: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
        !          4130: echo "${ECHO_T}$ac_header_preproc" >&6; }
        !          4131: 
        !          4132: # So?  What about this header?
        !          4133: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
        !          4134:   yes:no: )
        !          4135:     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
        !          4136: echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
        !          4137:     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
        !          4138: echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
        !          4139:     ac_header_preproc=yes
        !          4140:     ;;
        !          4141:   no:yes:* )
        !          4142:     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
        !          4143: echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
        !          4144:     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
        !          4145: echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
        !          4146:     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
        !          4147: echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
        !          4148:     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
        !          4149: echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
        !          4150:     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
        !          4151: echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
        !          4152:     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
        !          4153: echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
        !          4154: 
        !          4155:     ;;
        !          4156: esac
        !          4157: { echo "$as_me:$LINENO: checking for png.h" >&5
        !          4158: echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
        !          4159: if test "${ac_cv_header_png_h+set}" = set; then
        !          4160:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          4161: else
        !          4162:   ac_cv_header_png_h=$ac_header_preproc
        !          4163: fi
        !          4164: { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
        !          4165: echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
        !          4166: 
        !          4167: fi
        !          4168: if test $ac_cv_header_png_h = yes; then
        !          4169:   png_ok=yes
        !          4170: else
        !          4171:   png_ok=no
        !          4172: fi
        !          4173: 
        !          4174: 
        !          4175: else
        !          4176:   png_ok=no
        !          4177: fi
        !          4178: 
        !          4179: if test "x${png_ok}" = "xyes"; then
        !          4180: 
        !          4181: cat >>confdefs.h <<\_ACEOF
        !          4182: #define HAVE_LIBPNG 1
        !          4183: _ACEOF
        !          4184: 
        !          4185:   LIBS="${LIBS} -lpng"
        !          4186: else
        !          4187:   { echo "$as_me:$LINENO: WARNING: *** Saving PNG screenshots will not be supported! ***" >&5
        !          4188: echo "$as_me: WARNING: *** Saving PNG screenshots will not be supported! ***" >&2;}
        !          4189: fi
        !          4190: 
        !          4191: SDL_VERSION=1.2.0
        !          4192: 
        !          4193: # Check whether --with-sdl-prefix was given.
        !          4194: if test "${with_sdl_prefix+set}" = set; then
        !          4195:   withval=$with_sdl_prefix; sdl_prefix="$withval"
        !          4196: else
        !          4197:   sdl_prefix=""
        !          4198: fi
        !          4199: 
        !          4200: 
        !          4201: # Check whether --with-sdl-exec-prefix was given.
        !          4202: if test "${with_sdl_exec_prefix+set}" = set; then
        !          4203:   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
        !          4204: else
        !          4205:   sdl_exec_prefix=""
        !          4206: fi
        !          4207: 
        !          4208: # Check whether --enable-sdltest was given.
        !          4209: if test "${enable_sdltest+set}" = set; then
        !          4210:   enableval=$enable_sdltest;
        !          4211: else
        !          4212:   enable_sdltest=yes
        !          4213: fi
        !          4214: 
        !          4215: 
        !          4216:   if test x$sdl_exec_prefix != x ; then
        !          4217:     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
        !          4218:     if test x${SDL_CONFIG+set} != xset ; then
        !          4219:       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
        !          4220:     fi
        !          4221:   fi
        !          4222:   if test x$sdl_prefix != x ; then
        !          4223:     sdl_args="$sdl_args --prefix=$sdl_prefix"
        !          4224:     if test x${SDL_CONFIG+set} != xset ; then
        !          4225:       SDL_CONFIG=$sdl_prefix/bin/sdl-config
        !          4226:     fi
        !          4227:   fi
        !          4228: 
        !          4229:   if test "x$prefix" != xNONE; then
        !          4230:     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
        !          4231:   fi
        !          4232:   # Extract the first word of "sdl-config", so it can be a program name with args.
        !          4233: set dummy sdl-config; ac_word=$2
        !          4234: { echo "$as_me:$LINENO: checking for $ac_word" >&5
        !          4235: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
        !          4236: if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
        !          4237:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          4238: else
        !          4239:   case $SDL_CONFIG in
        !          4240:   [\\/]* | ?:[\\/]*)
        !          4241:   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
        !          4242:   ;;
        !          4243:   *)
        !          4244:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          4245: for as_dir in $PATH
        !          4246: do
        !          4247:   IFS=$as_save_IFS
        !          4248:   test -z "$as_dir" && as_dir=.
        !          4249:   for ac_exec_ext in '' $ac_executable_extensions; do
        !          4250:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
        !          4251:     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
        !          4252:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          4253:     break 2
        !          4254:   fi
        !          4255: done
        !          4256: done
        !          4257: IFS=$as_save_IFS
        !          4258: 
        !          4259:   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
        !          4260:   ;;
        !          4261: esac
        !          4262: fi
        !          4263: SDL_CONFIG=$ac_cv_path_SDL_CONFIG
        !          4264: if test -n "$SDL_CONFIG"; then
        !          4265:   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
        !          4266: echo "${ECHO_T}$SDL_CONFIG" >&6; }
1.1       root     4267: else
1.1.1.8 ! root     4268:   { echo "$as_me:$LINENO: result: no" >&5
        !          4269: echo "${ECHO_T}no" >&6; }
1.1       root     4270: fi
1.1.1.6   root     4271: 
1.1       root     4272: 
1.1.1.8 ! root     4273:   min_sdl_version=$SDL_VERSION
        !          4274:   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
        !          4275: echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
        !          4276:   no_sdl=""
        !          4277:   if test "$SDL_CONFIG" = "no" ; then
        !          4278:     no_sdl=yes
        !          4279:   else
        !          4280:     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
        !          4281:     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
1.1       root     4282: 
1.1.1.8 ! root     4283:     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
        !          4284:            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
        !          4285:     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
        !          4286:            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
        !          4287:     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
        !          4288:            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
        !          4289:     if test "x$enable_sdltest" = "xyes" ; then
        !          4290:       ac_save_CFLAGS="$CFLAGS"
        !          4291:       ac_save_CXXFLAGS="$CXXFLAGS"
        !          4292:       ac_save_LIBS="$LIBS"
        !          4293:       CFLAGS="$CFLAGS $SDL_CFLAGS"
        !          4294:       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
        !          4295:       LIBS="$LIBS $SDL_LIBS"
        !          4296:       rm -f conf.sdltest
        !          4297:       if test "$cross_compiling" = yes; then
        !          4298:   echo $ac_n "cross compiling; assumed OK... $ac_c"
1.1       root     4299: else
                   4300:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     4301: /* confdefs.h.  */
                   4302: _ACEOF
                   4303: cat confdefs.h >>conftest.$ac_ext
                   4304: cat >>conftest.$ac_ext <<_ACEOF
                   4305: /* end confdefs.h.  */
1.1.1.8 ! root     4306: 
        !          4307: #include <stdio.h>
1.1       root     4308: #include <stdlib.h>
1.1.1.8 ! root     4309: #include <string.h>
        !          4310: #include "SDL.h"
1.1       root     4311: 
1.1.1.8 ! root     4312: char*
        !          4313: my_strdup (char *str)
        !          4314: {
        !          4315:   char *new_str;
1.1       root     4316: 
1.1.1.8 ! root     4317:   if (str)
        !          4318:     {
        !          4319:       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
        !          4320:       strcpy (new_str, str);
        !          4321:     }
        !          4322:   else
        !          4323:     new_str = NULL;
1.1       root     4324: 
1.1.1.8 ! root     4325:   return new_str;
        !          4326: }
1.1       root     4327: 
1.1.1.8 ! root     4328: int main (int argc, char *argv[])
1.1       root     4329: {
1.1.1.8 ! root     4330:   int major, minor, micro;
        !          4331:   char *tmp_version;
        !          4332: 
        !          4333:   /* This hangs on some systems (?)
        !          4334:   system ("touch conf.sdltest");
        !          4335:   */
        !          4336:   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
        !          4337: 
        !          4338:   /* HP/UX 9 (%@#!) writes to sscanf strings */
        !          4339:   tmp_version = my_strdup("$min_sdl_version");
        !          4340:   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
        !          4341:      printf("%s, bad version string\n", "$min_sdl_version");
        !          4342:      exit(1);
        !          4343:    }
        !          4344: 
        !          4345:    if (($sdl_major_version > major) ||
        !          4346:       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
        !          4347:       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
        !          4348:     {
        !          4349:       return 0;
        !          4350:     }
        !          4351:   else
        !          4352:     {
        !          4353:       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
        !          4354:       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
        !          4355:       printf("*** best to upgrade to the required version.\n");
        !          4356:       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
        !          4357:       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
        !          4358:       printf("*** config.cache before re-running configure\n");
        !          4359:       return 1;
        !          4360:     }
1.1       root     4361: }
1.1.1.8 ! root     4362: 
        !          4363: 
1.1       root     4364: _ACEOF
                   4365: rm -f conftest$ac_exeext
1.1.1.6   root     4366: if { (ac_try="$ac_link"
                   4367: case "(($ac_try" in
                   4368:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4369:   *) ac_try_echo=$ac_try;;
                   4370: esac
                   4371: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4372:   (eval "$ac_link") 2>&5
1.1       root     4373:   ac_status=$?
                   4374:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4375:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6   root     4376:   { (case "(($ac_try" in
                   4377:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4378:   *) ac_try_echo=$ac_try;;
                   4379: esac
                   4380: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4381:   (eval "$ac_try") 2>&5
1.1       root     4382:   ac_status=$?
                   4383:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4384:   (exit $ac_status); }; }; then
                   4385:   :
                   4386: else
                   4387:   echo "$as_me: program exited with status $ac_status" >&5
                   4388: echo "$as_me: failed program was:" >&5
1.1.1.3   root     4389: sed 's/^/| /' conftest.$ac_ext >&5
                   4390: 
1.1       root     4391: ( exit $ac_status )
1.1.1.8 ! root     4392: no_sdl=yes
1.1       root     4393: fi
1.1.1.6   root     4394: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       root     4395: fi
1.1.1.6   root     4396: 
                   4397: 
1.1.1.8 ! root     4398:        CFLAGS="$ac_save_CFLAGS"
        !          4399:        CXXFLAGS="$ac_save_CXXFLAGS"
        !          4400:        LIBS="$ac_save_LIBS"
        !          4401:      fi
        !          4402:   fi
        !          4403:   if test "x$no_sdl" = x ; then
        !          4404:      { echo "$as_me:$LINENO: result: yes" >&5
        !          4405: echo "${ECHO_T}yes" >&6; }
        !          4406:      :
        !          4407:   else
        !          4408:      { echo "$as_me:$LINENO: result: no" >&5
        !          4409: echo "${ECHO_T}no" >&6; }
        !          4410:      if test "$SDL_CONFIG" = "no" ; then
        !          4411:        echo "*** The sdl-config script installed by SDL could not be found"
        !          4412:        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
        !          4413:        echo "*** your path, or set the SDL_CONFIG environment variable to the"
        !          4414:        echo "*** full path to sdl-config."
        !          4415:      else
        !          4416:        if test -f conf.sdltest ; then
        !          4417:         :
        !          4418:        else
        !          4419:           echo "*** Could not run SDL test program, checking why..."
        !          4420:           CFLAGS="$CFLAGS $SDL_CFLAGS"
        !          4421:           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
        !          4422:           LIBS="$LIBS $SDL_LIBS"
        !          4423:           cat >conftest.$ac_ext <<_ACEOF
1.1.1.6   root     4424: /* confdefs.h.  */
                   4425: _ACEOF
                   4426: cat confdefs.h >>conftest.$ac_ext
                   4427: cat >>conftest.$ac_ext <<_ACEOF
                   4428: /* end confdefs.h.  */
                   4429: 
1.1.1.8 ! root     4430: #include <stdio.h>
        !          4431: #include "SDL.h"
        !          4432: 
        !          4433: int main(int argc, char *argv[])
        !          4434: { return 0; }
        !          4435: #undef  main
        !          4436: #define main K_and_R_C_main
        !          4437: 
        !          4438: int
        !          4439: main ()
        !          4440: {
        !          4441:  return 0;
        !          4442:   ;
        !          4443:   return 0;
        !          4444: }
1.1.1.6   root     4445: _ACEOF
1.1.1.8 ! root     4446: rm -f conftest.$ac_objext conftest$ac_exeext
        !          4447: if { (ac_try="$ac_link"
1.1.1.6   root     4448: case "(($ac_try" in
                   4449:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4450:   *) ac_try_echo=$ac_try;;
                   4451: esac
                   4452: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1.1.8 ! root     4453:   (eval "$ac_link") 2>conftest.er1
        !          4454:   ac_status=$?
        !          4455:   grep -v '^ *+' conftest.er1 >conftest.err
        !          4456:   rm -f conftest.er1
        !          4457:   cat conftest.err >&5
        !          4458:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4459:   (exit $ac_status); } &&
        !          4460:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          4461:   { (case "(($ac_try" in
        !          4462:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          4463:   *) ac_try_echo=$ac_try;;
        !          4464: esac
        !          4465: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4466:   (eval "$ac_try") 2>&5
1.1.1.6   root     4467:   ac_status=$?
                   4468:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     4469:   (exit $ac_status); }; } &&
        !          4470:         { ac_try='test -s conftest$ac_exeext'
        !          4471:   { (case "(($ac_try" in
        !          4472:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          4473:   *) ac_try_echo=$ac_try;;
        !          4474: esac
        !          4475: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4476:   (eval "$ac_try") 2>&5
        !          4477:   ac_status=$?
        !          4478:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4479:   (exit $ac_status); }; }; then
        !          4480:    echo "*** The test program compiled, but did not run. This usually means"
        !          4481:           echo "*** that the run-time linker is not finding SDL or finding the wrong"
        !          4482:           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
        !          4483:           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
        !          4484:           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
        !          4485:           echo "*** is required on your system"
        !          4486:          echo "***"
        !          4487:           echo "*** If you have an old version installed, it is best to remove it, although"
        !          4488:           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1.1.1.6   root     4489: else
                   4490:   echo "$as_me: failed program was:" >&5
                   4491: sed 's/^/| /' conftest.$ac_ext >&5
                   4492: 
1.1.1.8 ! root     4493:         echo "*** The test program failed to compile or link. See the file config.log for the"
        !          4494:           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
        !          4495:           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
        !          4496:           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
1.1.1.6   root     4497: fi
                   4498: 
1.1.1.8 ! root     4499: rm -f core conftest.err conftest.$ac_objext \
        !          4500:       conftest$ac_exeext conftest.$ac_ext
        !          4501:           CFLAGS="$ac_save_CFLAGS"
        !          4502:           CXXFLAGS="$ac_save_CXXFLAGS"
        !          4503:           LIBS="$ac_save_LIBS"
        !          4504:        fi
        !          4505:      fi
        !          4506:      SDL_CFLAGS=""
        !          4507:      SDL_LIBS=""
        !          4508:      { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
        !          4509: echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
        !          4510:    { (exit 1); exit 1; }; }
        !          4511:   fi
1.1.1.6   root     4512: 
                   4513: 
1.1.1.8 ! root     4514:   rm -f conf.sdltest
1.1.1.6   root     4515: 
                   4516: 
                   4517: 
                   4518:   { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
                   4519: echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
                   4520: if test "${vl_cv_lib_readline+set}" = set; then
                   4521:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4522: else
                   4523: 
                   4524:     ORIG_LIBS="$LIBS"
                   4525:     for readline_lib in readline edit editline; do
                   4526:       for termcap_lib in "" termcap curses ncurses; do
                   4527:         if test -z "$termcap_lib"; then
                   4528:           TRY_LIB="-l$readline_lib"
                   4529:         else
                   4530:           TRY_LIB="-l$readline_lib -l$termcap_lib"
                   4531:         fi
                   4532:         LIBS="$ORIG_LIBS $TRY_LIB"
                   4533:         cat >conftest.$ac_ext <<_ACEOF
                   4534: /* confdefs.h.  */
                   4535: _ACEOF
                   4536: cat confdefs.h >>conftest.$ac_ext
                   4537: cat >>conftest.$ac_ext <<_ACEOF
                   4538: /* end confdefs.h.  */
                   4539: 
                   4540: /* Override any GCC internal prototype to avoid an error.
                   4541:    Use char because int might match the return type of a GCC
                   4542:    builtin and then its argument prototype would still apply.  */
                   4543: #ifdef __cplusplus
                   4544: extern "C"
                   4545: #endif
                   4546: char readline ();
                   4547: int
                   4548: main ()
                   4549: {
                   4550: return readline ();
                   4551:   ;
                   4552:   return 0;
                   4553: }
                   4554: _ACEOF
                   4555: rm -f conftest.$ac_objext conftest$ac_exeext
                   4556: if { (ac_try="$ac_link"
                   4557: case "(($ac_try" in
                   4558:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4559:   *) ac_try_echo=$ac_try;;
                   4560: esac
                   4561: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4562:   (eval "$ac_link") 2>conftest.er1
                   4563:   ac_status=$?
                   4564:   grep -v '^ *+' conftest.er1 >conftest.err
                   4565:   rm -f conftest.er1
                   4566:   cat conftest.err >&5
                   4567:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     4568:   (exit $ac_status); } &&
        !          4569:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          4570:   { (case "(($ac_try" in
        !          4571:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          4572:   *) ac_try_echo=$ac_try;;
        !          4573: esac
        !          4574: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4575:   (eval "$ac_try") 2>&5
        !          4576:   ac_status=$?
        !          4577:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4578:   (exit $ac_status); }; } &&
        !          4579:         { ac_try='test -s conftest$ac_exeext'
        !          4580:   { (case "(($ac_try" in
        !          4581:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          4582:   *) ac_try_echo=$ac_try;;
        !          4583: esac
        !          4584: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4585:   (eval "$ac_try") 2>&5
        !          4586:   ac_status=$?
        !          4587:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4588:   (exit $ac_status); }; }; then
1.1.1.6   root     4589:   vl_cv_lib_readline="$TRY_LIB"
                   4590: else
                   4591:   echo "$as_me: failed program was:" >&5
                   4592: sed 's/^/| /' conftest.$ac_ext >&5
                   4593: 
                   4594: 
                   4595: fi
                   4596: 
1.1.1.8 ! root     4597: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     4598:       conftest$ac_exeext conftest.$ac_ext
                   4599:         if test -n "$vl_cv_lib_readline"; then
                   4600:           break
                   4601:         fi
                   4602:       done
                   4603:       if test -n "$vl_cv_lib_readline"; then
                   4604:         break
                   4605:       fi
                   4606:     done
                   4607:     if test -z "$vl_cv_lib_readline"; then
                   4608:       vl_cv_lib_readline="no"
                   4609:       LIBS="$ORIG_LIBS"
                   4610:     fi
                   4611: 
                   4612: fi
                   4613: { echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
                   4614: echo "${ECHO_T}$vl_cv_lib_readline" >&6; }
                   4615: 
                   4616:   if test "$vl_cv_lib_readline" != "no"; then
                   4617: 
                   4618: cat >>confdefs.h <<\_ACEOF
                   4619: #define HAVE_LIBREADLINE 1
                   4620: _ACEOF
                   4621: 
                   4622: 
                   4623: 
                   4624: for ac_header in readline.h readline/readline.h
                   4625: do
                   4626: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   4627: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   4628:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   4629: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   4630: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   4631:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4632: fi
                   4633: ac_res=`eval echo '${'$as_ac_Header'}'`
                   4634:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   4635: echo "${ECHO_T}$ac_res" >&6; }
                   4636: else
                   4637:   # Is the header compilable?
                   4638: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   4639: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   4640: cat >conftest.$ac_ext <<_ACEOF
                   4641: /* confdefs.h.  */
                   4642: _ACEOF
                   4643: cat confdefs.h >>conftest.$ac_ext
                   4644: cat >>conftest.$ac_ext <<_ACEOF
                   4645: /* end confdefs.h.  */
                   4646: $ac_includes_default
                   4647: #include <$ac_header>
                   4648: _ACEOF
                   4649: rm -f conftest.$ac_objext
                   4650: if { (ac_try="$ac_compile"
                   4651: case "(($ac_try" in
                   4652:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4653:   *) ac_try_echo=$ac_try;;
                   4654: esac
                   4655: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4656:   (eval "$ac_compile") 2>conftest.er1
                   4657:   ac_status=$?
                   4658:   grep -v '^ *+' conftest.er1 >conftest.err
                   4659:   rm -f conftest.er1
                   4660:   cat conftest.err >&5
                   4661:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     4662:   (exit $ac_status); } &&
        !          4663:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          4664:   { (case "(($ac_try" in
        !          4665:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          4666:   *) ac_try_echo=$ac_try;;
        !          4667: esac
        !          4668: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4669:   (eval "$ac_try") 2>&5
        !          4670:   ac_status=$?
        !          4671:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4672:   (exit $ac_status); }; } &&
        !          4673:         { ac_try='test -s conftest.$ac_objext'
        !          4674:   { (case "(($ac_try" in
        !          4675:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          4676:   *) ac_try_echo=$ac_try;;
        !          4677: esac
        !          4678: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4679:   (eval "$ac_try") 2>&5
        !          4680:   ac_status=$?
        !          4681:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4682:   (exit $ac_status); }; }; then
1.1.1.6   root     4683:   ac_header_compiler=yes
                   4684: else
                   4685:   echo "$as_me: failed program was:" >&5
                   4686: sed 's/^/| /' conftest.$ac_ext >&5
                   4687: 
                   4688:        ac_header_compiler=no
                   4689: fi
                   4690: 
                   4691: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4692: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   4693: echo "${ECHO_T}$ac_header_compiler" >&6; }
                   4694: 
                   4695: # Is the header present?
                   4696: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   4697: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   4698: cat >conftest.$ac_ext <<_ACEOF
                   4699: /* confdefs.h.  */
                   4700: _ACEOF
                   4701: cat confdefs.h >>conftest.$ac_ext
                   4702: cat >>conftest.$ac_ext <<_ACEOF
                   4703: /* end confdefs.h.  */
                   4704: #include <$ac_header>
                   4705: _ACEOF
                   4706: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   4707: case "(($ac_try" in
                   4708:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4709:   *) ac_try_echo=$ac_try;;
                   4710: esac
                   4711: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4712:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   4713:   ac_status=$?
                   4714:   grep -v '^ *+' conftest.er1 >conftest.err
                   4715:   rm -f conftest.er1
                   4716:   cat conftest.err >&5
                   4717:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     4718:   (exit $ac_status); } >/dev/null; then
        !          4719:   if test -s conftest.err; then
        !          4720:     ac_cpp_err=$ac_c_preproc_warn_flag
        !          4721:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
        !          4722:   else
        !          4723:     ac_cpp_err=
        !          4724:   fi
        !          4725: else
        !          4726:   ac_cpp_err=yes
        !          4727: fi
        !          4728: if test -z "$ac_cpp_err"; then
1.1.1.6   root     4729:   ac_header_preproc=yes
                   4730: else
                   4731:   echo "$as_me: failed program was:" >&5
                   4732: sed 's/^/| /' conftest.$ac_ext >&5
                   4733: 
                   4734:   ac_header_preproc=no
                   4735: fi
                   4736: 
                   4737: rm -f conftest.err conftest.$ac_ext
                   4738: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   4739: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   4740: 
                   4741: # So?  What about this header?
                   4742: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   4743:   yes:no: )
                   4744:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   4745: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   4746:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   4747: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   4748:     ac_header_preproc=yes
                   4749:     ;;
                   4750:   no:yes:* )
                   4751:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   4752: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   4753:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   4754: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   4755:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   4756: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   4757:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   4758: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   4759:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   4760: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   4761:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   4762: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
                   4763: 
                   4764:     ;;
                   4765: esac
                   4766: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   4767: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   4768: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   4769:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4770: else
                   4771:   eval "$as_ac_Header=\$ac_header_preproc"
                   4772: fi
                   4773: ac_res=`eval echo '${'$as_ac_Header'}'`
                   4774:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   4775: echo "${ECHO_T}$ac_res" >&6; }
                   4776: 
                   4777: fi
                   4778: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   4779:   cat >>confdefs.h <<_ACEOF
                   4780: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   4781: _ACEOF
                   4782: 
                   4783: fi
                   4784: 
                   4785: done
                   4786: 
                   4787:     { echo "$as_me:$LINENO: checking whether readline supports history" >&5
                   4788: echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
                   4789: if test "${vl_cv_lib_readline_history+set}" = set; then
                   4790:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4791: else
                   4792: 
                   4793:       vl_cv_lib_readline_history="no"
                   4794:       cat >conftest.$ac_ext <<_ACEOF
                   4795: /* confdefs.h.  */
                   4796: _ACEOF
                   4797: cat confdefs.h >>conftest.$ac_ext
                   4798: cat >>conftest.$ac_ext <<_ACEOF
                   4799: /* end confdefs.h.  */
                   4800: 
                   4801: /* Override any GCC internal prototype to avoid an error.
                   4802:    Use char because int might match the return type of a GCC
                   4803:    builtin and then its argument prototype would still apply.  */
                   4804: #ifdef __cplusplus
                   4805: extern "C"
                   4806: #endif
                   4807: char add_history ();
                   4808: int
                   4809: main ()
                   4810: {
                   4811: return add_history ();
                   4812:   ;
                   4813:   return 0;
                   4814: }
                   4815: _ACEOF
                   4816: rm -f conftest.$ac_objext conftest$ac_exeext
                   4817: if { (ac_try="$ac_link"
                   4818: case "(($ac_try" in
                   4819:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4820:   *) ac_try_echo=$ac_try;;
                   4821: esac
                   4822: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4823:   (eval "$ac_link") 2>conftest.er1
                   4824:   ac_status=$?
                   4825:   grep -v '^ *+' conftest.er1 >conftest.err
                   4826:   rm -f conftest.er1
                   4827:   cat conftest.err >&5
                   4828:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     4829:   (exit $ac_status); } &&
        !          4830:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          4831:   { (case "(($ac_try" in
        !          4832:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          4833:   *) ac_try_echo=$ac_try;;
        !          4834: esac
        !          4835: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4836:   (eval "$ac_try") 2>&5
        !          4837:   ac_status=$?
        !          4838:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4839:   (exit $ac_status); }; } &&
        !          4840:         { ac_try='test -s conftest$ac_exeext'
        !          4841:   { (case "(($ac_try" in
        !          4842:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          4843:   *) ac_try_echo=$ac_try;;
        !          4844: esac
        !          4845: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4846:   (eval "$ac_try") 2>&5
        !          4847:   ac_status=$?
        !          4848:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4849:   (exit $ac_status); }; }; then
1.1.1.6   root     4850:   vl_cv_lib_readline_history="yes"
                   4851: else
                   4852:   echo "$as_me: failed program was:" >&5
                   4853: sed 's/^/| /' conftest.$ac_ext >&5
                   4854: 
                   4855: 
                   4856: fi
                   4857: 
1.1.1.8 ! root     4858: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     4859:       conftest$ac_exeext conftest.$ac_ext
                   4860: 
                   4861: fi
                   4862: { echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
                   4863: echo "${ECHO_T}$vl_cv_lib_readline_history" >&6; }
                   4864:     if test "$vl_cv_lib_readline_history" = "yes"; then
                   4865: 
                   4866: cat >>confdefs.h <<\_ACEOF
                   4867: #define HAVE_READLINE_HISTORY 1
                   4868: _ACEOF
                   4869: 
                   4870: 
                   4871: 
                   4872: for ac_header in history.h readline/history.h
                   4873: do
                   4874: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   4875: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   4876:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   4877: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   4878: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   4879:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4880: fi
                   4881: ac_res=`eval echo '${'$as_ac_Header'}'`
                   4882:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   4883: echo "${ECHO_T}$ac_res" >&6; }
                   4884: else
                   4885:   # Is the header compilable?
                   4886: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   4887: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   4888: cat >conftest.$ac_ext <<_ACEOF
                   4889: /* confdefs.h.  */
                   4890: _ACEOF
                   4891: cat confdefs.h >>conftest.$ac_ext
                   4892: cat >>conftest.$ac_ext <<_ACEOF
                   4893: /* end confdefs.h.  */
                   4894: $ac_includes_default
                   4895: #include <$ac_header>
                   4896: _ACEOF
                   4897: rm -f conftest.$ac_objext
                   4898: if { (ac_try="$ac_compile"
                   4899: case "(($ac_try" in
                   4900:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4901:   *) ac_try_echo=$ac_try;;
                   4902: esac
                   4903: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4904:   (eval "$ac_compile") 2>conftest.er1
                   4905:   ac_status=$?
                   4906:   grep -v '^ *+' conftest.er1 >conftest.err
                   4907:   rm -f conftest.er1
                   4908:   cat conftest.err >&5
                   4909:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     4910:   (exit $ac_status); } &&
        !          4911:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          4912:   { (case "(($ac_try" in
        !          4913:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          4914:   *) ac_try_echo=$ac_try;;
        !          4915: esac
        !          4916: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4917:   (eval "$ac_try") 2>&5
        !          4918:   ac_status=$?
        !          4919:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4920:   (exit $ac_status); }; } &&
        !          4921:         { ac_try='test -s conftest.$ac_objext'
        !          4922:   { (case "(($ac_try" in
        !          4923:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          4924:   *) ac_try_echo=$ac_try;;
        !          4925: esac
        !          4926: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          4927:   (eval "$ac_try") 2>&5
        !          4928:   ac_status=$?
        !          4929:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4930:   (exit $ac_status); }; }; then
1.1.1.6   root     4931:   ac_header_compiler=yes
                   4932: else
                   4933:   echo "$as_me: failed program was:" >&5
                   4934: sed 's/^/| /' conftest.$ac_ext >&5
                   4935: 
                   4936:        ac_header_compiler=no
                   4937: fi
                   4938: 
                   4939: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4940: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   4941: echo "${ECHO_T}$ac_header_compiler" >&6; }
                   4942: 
                   4943: # Is the header present?
                   4944: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   4945: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   4946: cat >conftest.$ac_ext <<_ACEOF
                   4947: /* confdefs.h.  */
                   4948: _ACEOF
                   4949: cat confdefs.h >>conftest.$ac_ext
                   4950: cat >>conftest.$ac_ext <<_ACEOF
                   4951: /* end confdefs.h.  */
                   4952: #include <$ac_header>
                   4953: _ACEOF
                   4954: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   4955: case "(($ac_try" in
                   4956:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4957:   *) ac_try_echo=$ac_try;;
                   4958: esac
                   4959: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4960:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   4961:   ac_status=$?
                   4962:   grep -v '^ *+' conftest.er1 >conftest.err
                   4963:   rm -f conftest.er1
                   4964:   cat conftest.err >&5
                   4965:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     4966:   (exit $ac_status); } >/dev/null; then
        !          4967:   if test -s conftest.err; then
        !          4968:     ac_cpp_err=$ac_c_preproc_warn_flag
        !          4969:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
        !          4970:   else
        !          4971:     ac_cpp_err=
        !          4972:   fi
        !          4973: else
        !          4974:   ac_cpp_err=yes
        !          4975: fi
        !          4976: if test -z "$ac_cpp_err"; then
1.1.1.6   root     4977:   ac_header_preproc=yes
                   4978: else
                   4979:   echo "$as_me: failed program was:" >&5
                   4980: sed 's/^/| /' conftest.$ac_ext >&5
                   4981: 
                   4982:   ac_header_preproc=no
                   4983: fi
                   4984: 
                   4985: rm -f conftest.err conftest.$ac_ext
                   4986: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   4987: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   4988: 
                   4989: # So?  What about this header?
                   4990: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   4991:   yes:no: )
                   4992:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   4993: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   4994:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   4995: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   4996:     ac_header_preproc=yes
                   4997:     ;;
                   4998:   no:yes:* )
                   4999:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   5000: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   5001:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   5002: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   5003:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   5004: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   5005:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   5006: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   5007:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   5008: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   5009:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   5010: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
                   5011: 
                   5012:     ;;
                   5013: esac
                   5014: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   5015: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   5016: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   5017:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5018: else
                   5019:   eval "$as_ac_Header=\$ac_header_preproc"
                   5020: fi
                   5021: ac_res=`eval echo '${'$as_ac_Header'}'`
                   5022:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   5023: echo "${ECHO_T}$ac_res" >&6; }
                   5024: 
                   5025: fi
                   5026: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   5027:   cat >>confdefs.h <<_ACEOF
                   5028: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   5029: _ACEOF
                   5030: 
                   5031: fi
                   5032: 
                   5033: done
                   5034: 
                   5035:     fi
                   5036:   fi
                   5037: 
                   5038: 
                   5039: no_x=yes
                   5040: # Extract the first word of "pkg-config", so it can be a program name with args.
                   5041: set dummy pkg-config; ac_word=$2
                   5042: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   5043: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   5044: if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
                   5045:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5046: else
                   5047:   if test -n "$HAVE_PKG_CONFIG"; then
                   5048:   ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
                   5049: else
                   5050: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5051: for as_dir in $PATH
                   5052: do
                   5053:   IFS=$as_save_IFS
                   5054:   test -z "$as_dir" && as_dir=.
                   5055:   for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.8 ! root     5056:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.6   root     5057:     ac_cv_prog_HAVE_PKG_CONFIG="yes"
                   5058:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5059:     break 2
                   5060:   fi
                   5061: done
                   5062: done
                   5063: IFS=$as_save_IFS
                   5064: 
                   5065: fi
                   5066: fi
                   5067: HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
                   5068: if test -n "$HAVE_PKG_CONFIG"; then
                   5069:   { echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
                   5070: echo "${ECHO_T}$HAVE_PKG_CONFIG" >&6; }
                   5071: else
                   5072:   { echo "$as_me:$LINENO: result: no" >&5
                   5073: echo "${ECHO_T}no" >&6; }
                   5074: fi
                   5075: 
                   5076: 
                   5077: if test "x${HAVE_PKG_CONFIG}" = "xyes"; then
                   5078: 
                   5079: 
                   5080: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
                   5081:        if test -n "$ac_tool_prefix"; then
                   5082:   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
                   5083: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
                   5084: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   5085: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   5086: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
                   5087:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5088: else
                   5089:   case $PKG_CONFIG in
                   5090:   [\\/]* | ?:[\\/]*)
                   5091:   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
                   5092:   ;;
                   5093:   *)
                   5094:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5095: for as_dir in $PATH
                   5096: do
                   5097:   IFS=$as_save_IFS
                   5098:   test -z "$as_dir" && as_dir=.
                   5099:   for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.8 ! root     5100:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.6   root     5101:     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
                   5102:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5103:     break 2
                   5104:   fi
                   5105: done
                   5106: done
                   5107: IFS=$as_save_IFS
                   5108: 
                   5109:   ;;
                   5110: esac
                   5111: fi
                   5112: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
                   5113: if test -n "$PKG_CONFIG"; then
                   5114:   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
                   5115: echo "${ECHO_T}$PKG_CONFIG" >&6; }
                   5116: else
                   5117:   { echo "$as_me:$LINENO: result: no" >&5
                   5118: echo "${ECHO_T}no" >&6; }
                   5119: fi
                   5120: 
                   5121: 
                   5122: fi
                   5123: if test -z "$ac_cv_path_PKG_CONFIG"; then
                   5124:   ac_pt_PKG_CONFIG=$PKG_CONFIG
                   5125:   # Extract the first word of "pkg-config", so it can be a program name with args.
                   5126: set dummy pkg-config; ac_word=$2
                   5127: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   5128: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   5129: if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
                   5130:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5131: else
                   5132:   case $ac_pt_PKG_CONFIG in
                   5133:   [\\/]* | ?:[\\/]*)
                   5134:   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
                   5135:   ;;
                   5136:   *)
                   5137:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5138: for as_dir in $PATH
                   5139: do
                   5140:   IFS=$as_save_IFS
                   5141:   test -z "$as_dir" && as_dir=.
                   5142:   for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.8 ! root     5143:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.6   root     5144:     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
                   5145:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5146:     break 2
                   5147:   fi
                   5148: done
                   5149: done
                   5150: IFS=$as_save_IFS
                   5151: 
                   5152:   ;;
                   5153: esac
                   5154: fi
                   5155: ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
                   5156: if test -n "$ac_pt_PKG_CONFIG"; then
                   5157:   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
                   5158: echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
                   5159: else
                   5160:   { echo "$as_me:$LINENO: result: no" >&5
                   5161: echo "${ECHO_T}no" >&6; }
                   5162: fi
                   5163: 
                   5164:   if test "x$ac_pt_PKG_CONFIG" = x; then
                   5165:     PKG_CONFIG=""
                   5166:   else
                   5167:     case $cross_compiling:$ac_tool_warned in
                   5168: yes:)
                   5169: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   5170: whose name does not start with the host triplet.  If you think this
                   5171: configuration is useful to you, please write to [email protected]." >&5
                   5172: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   5173: whose name does not start with the host triplet.  If you think this
                   5174: configuration is useful to you, please write to [email protected]." >&2;}
                   5175: ac_tool_warned=yes ;;
                   5176: esac
                   5177:     PKG_CONFIG=$ac_pt_PKG_CONFIG
                   5178:   fi
                   5179: else
                   5180:   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
                   5181: fi
                   5182: 
                   5183: fi
                   5184: if test -n "$PKG_CONFIG"; then
                   5185:        _pkg_min_version=0.9.0
                   5186:        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
                   5187: echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
                   5188:        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
                   5189:                { echo "$as_me:$LINENO: result: yes" >&5
                   5190: echo "${ECHO_T}yes" >&6; }
                   5191:        else
                   5192:                { echo "$as_me:$LINENO: result: no" >&5
                   5193: echo "${ECHO_T}no" >&6; }
                   5194:                PKG_CONFIG=""
                   5195:        fi
                   5196: 
                   5197: fi
                   5198: 
                   5199: pkg_failed=no
                   5200: { echo "$as_me:$LINENO: checking for X" >&5
                   5201: echo $ECHO_N "checking for X... $ECHO_C" >&6; }
                   5202: 
                   5203: if test -n "$PKG_CONFIG"; then
                   5204:     if test -n "$X_CFLAGS"; then
                   5205:         pkg_cv_X_CFLAGS="$X_CFLAGS"
                   5206:     else
                   5207:         if test -n "$PKG_CONFIG" && \
                   5208:     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
                   5209:   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
                   5210:   ac_status=$?
                   5211:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   5212:   (exit $ac_status); }; then
                   5213:   pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
                   5214: else
                   5215:   pkg_failed=yes
                   5216: fi
                   5217:     fi
                   5218: else
                   5219:        pkg_failed=untried
                   5220: fi
                   5221: if test -n "$PKG_CONFIG"; then
                   5222:     if test -n "$X_LIBS"; then
                   5223:         pkg_cv_X_LIBS="$X_LIBS"
                   5224:     else
                   5225:         if test -n "$PKG_CONFIG" && \
                   5226:     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
                   5227:   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
                   5228:   ac_status=$?
                   5229:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   5230:   (exit $ac_status); }; then
                   5231:   pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
                   5232: else
                   5233:   pkg_failed=yes
                   5234: fi
                   5235:     fi
                   5236: else
                   5237:        pkg_failed=untried
                   5238: fi
                   5239: 
                   5240: 
                   5241: 
                   5242: if test $pkg_failed = yes; then
                   5243: 
                   5244: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
                   5245:         _pkg_short_errors_supported=yes
                   5246: else
                   5247:         _pkg_short_errors_supported=no
                   5248: fi
                   5249:         if test $_pkg_short_errors_supported = yes; then
                   5250:                X_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
                   5251:         else
                   5252:                X_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
                   5253:         fi
                   5254:        # Put the nasty error message in config.log where it belongs
                   5255:        echo "$X_PKG_ERRORS" >&5
                   5256: 
                   5257:        { echo "$as_me:$LINENO: result: no" >&5
                   5258: echo "${ECHO_T}no" >&6; }
                   5259:                 no_x=yes
                   5260: elif test $pkg_failed = untried; then
                   5261:        no_x=yes
                   5262: else
                   5263:        X_CFLAGS=$pkg_cv_X_CFLAGS
                   5264:        X_LIBS=$pkg_cv_X_LIBS
                   5265:         { echo "$as_me:$LINENO: result: yes" >&5
                   5266: echo "${ECHO_T}yes" >&6; }
                   5267:        no_x=no
                   5268: fi
                   5269: fi
                   5270: if test "x${no_x}" = "xyes"; then
                   5271:   { echo "$as_me:$LINENO: checking for X" >&5
                   5272: echo $ECHO_N "checking for X... $ECHO_C" >&6; }
                   5273: 
                   5274: 
                   5275: # Check whether --with-x was given.
                   5276: if test "${with_x+set}" = set; then
                   5277:   withval=$with_x;
                   5278: fi
                   5279: 
                   5280: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5281: if test "x$with_x" = xno; then
                   5282:   # The user explicitly disabled X.
                   5283:   have_x=disabled
                   5284: else
                   5285:   case $x_includes,$x_libraries in #(
                   5286:     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
                   5287: echo "$as_me: error: Cannot use X directory names containing '" >&2;}
                   5288:    { (exit 1); exit 1; }; };; #(
                   5289:     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
                   5290:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5291: else
                   5292:   # One or both of the vars are not set, and there is no cached value.
                   5293: ac_x_includes=no ac_x_libraries=no
                   5294: rm -f -r conftest.dir
                   5295: if mkdir conftest.dir; then
                   5296:   cd conftest.dir
                   5297:   cat >Imakefile <<'_ACEOF'
                   5298: incroot:
                   5299:        @echo incroot='${INCROOT}'
                   5300: usrlibdir:
                   5301:        @echo usrlibdir='${USRLIBDIR}'
                   5302: libdir:
                   5303:        @echo libdir='${LIBDIR}'
                   5304: _ACEOF
                   5305:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
                   5306:     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   5307:     for ac_var in incroot usrlibdir libdir; do
                   5308:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5309:     done
                   5310:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5311:     for ac_extension in a so sl; do
                   5312:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5313:         test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5314:        ac_im_usrlibdir=$ac_im_libdir; break
                   5315:       fi
                   5316:     done
                   5317:     # Screen out bogus values from the imake configuration.  They are
                   5318:     # bogus both because they are the default anyway, and because
                   5319:     # using them would break gcc on systems where it needs fixed includes.
                   5320:     case $ac_im_incroot in
                   5321:        /usr/include) ac_x_includes= ;;
                   5322:        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5323:     esac
                   5324:     case $ac_im_usrlibdir in
                   5325:        /usr/lib | /lib) ;;
                   5326:        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5327:     esac
                   5328:   fi
                   5329:   cd ..
                   5330:   rm -f -r conftest.dir
                   5331: fi
                   5332: 
                   5333: # Standard set of common directories for X headers.
                   5334: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5335: ac_x_header_dirs='
                   5336: /usr/X11/include
                   5337: /usr/X11R6/include
                   5338: /usr/X11R5/include
                   5339: /usr/X11R4/include
                   5340: 
                   5341: /usr/include/X11
                   5342: /usr/include/X11R6
                   5343: /usr/include/X11R5
                   5344: /usr/include/X11R4
                   5345: 
                   5346: /usr/local/X11/include
                   5347: /usr/local/X11R6/include
                   5348: /usr/local/X11R5/include
                   5349: /usr/local/X11R4/include
                   5350: 
                   5351: /usr/local/include/X11
                   5352: /usr/local/include/X11R6
                   5353: /usr/local/include/X11R5
                   5354: /usr/local/include/X11R4
                   5355: 
                   5356: /usr/X386/include
                   5357: /usr/x386/include
                   5358: /usr/XFree86/include/X11
                   5359: 
                   5360: /usr/include
                   5361: /usr/local/include
                   5362: /usr/unsupported/include
                   5363: /usr/athena/include
                   5364: /usr/local/x11r5/include
                   5365: /usr/lpp/Xamples/include
                   5366: 
                   5367: /usr/openwin/include
                   5368: /usr/openwin/share/include'
                   5369: 
                   5370: if test "$ac_x_includes" = no; then
                   5371:   # Guess where to find include files, by looking for Xlib.h.
                   5372:   # First, try using that file with no special directory specified.
                   5373:   cat >conftest.$ac_ext <<_ACEOF
                   5374: /* confdefs.h.  */
                   5375: _ACEOF
                   5376: cat confdefs.h >>conftest.$ac_ext
                   5377: cat >>conftest.$ac_ext <<_ACEOF
                   5378: /* end confdefs.h.  */
                   5379: #include <X11/Xlib.h>
                   5380: _ACEOF
                   5381: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5382: case "(($ac_try" in
                   5383:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5384:   *) ac_try_echo=$ac_try;;
                   5385: esac
                   5386: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5387:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   5388:   ac_status=$?
                   5389:   grep -v '^ *+' conftest.er1 >conftest.err
                   5390:   rm -f conftest.er1
                   5391:   cat conftest.err >&5
                   5392:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     5393:   (exit $ac_status); } >/dev/null; then
        !          5394:   if test -s conftest.err; then
        !          5395:     ac_cpp_err=$ac_c_preproc_warn_flag
        !          5396:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
        !          5397:   else
        !          5398:     ac_cpp_err=
        !          5399:   fi
        !          5400: else
        !          5401:   ac_cpp_err=yes
        !          5402: fi
        !          5403: if test -z "$ac_cpp_err"; then
1.1.1.6   root     5404:   # We can compile using X headers with no special include directory.
                   5405: ac_x_includes=
                   5406: else
                   5407:   echo "$as_me: failed program was:" >&5
                   5408: sed 's/^/| /' conftest.$ac_ext >&5
                   5409: 
                   5410:   for ac_dir in $ac_x_header_dirs; do
                   5411:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5412:     ac_x_includes=$ac_dir
                   5413:     break
                   5414:   fi
                   5415: done
                   5416: fi
                   5417: 
                   5418: rm -f conftest.err conftest.$ac_ext
                   5419: fi # $ac_x_includes = no
                   5420: 
                   5421: if test "$ac_x_libraries" = no; then
                   5422:   # Check for the libraries.
                   5423:   # See if we find them without any special options.
                   5424:   # Don't add to $LIBS permanently.
                   5425:   ac_save_LIBS=$LIBS
1.1.1.8 ! root     5426:   LIBS="-lXt $LIBS"
1.1.1.6   root     5427:   cat >conftest.$ac_ext <<_ACEOF
                   5428: /* confdefs.h.  */
                   5429: _ACEOF
                   5430: cat confdefs.h >>conftest.$ac_ext
                   5431: cat >>conftest.$ac_ext <<_ACEOF
                   5432: /* end confdefs.h.  */
                   5433: #include <X11/Xlib.h>
                   5434: int
                   5435: main ()
                   5436: {
                   5437: XrmInitialize ()
                   5438:   ;
                   5439:   return 0;
                   5440: }
                   5441: _ACEOF
                   5442: rm -f conftest.$ac_objext conftest$ac_exeext
                   5443: if { (ac_try="$ac_link"
                   5444: case "(($ac_try" in
                   5445:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5446:   *) ac_try_echo=$ac_try;;
                   5447: esac
                   5448: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5449:   (eval "$ac_link") 2>conftest.er1
                   5450:   ac_status=$?
                   5451:   grep -v '^ *+' conftest.er1 >conftest.err
                   5452:   rm -f conftest.er1
                   5453:   cat conftest.err >&5
                   5454:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     5455:   (exit $ac_status); } &&
        !          5456:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          5457:   { (case "(($ac_try" in
        !          5458:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          5459:   *) ac_try_echo=$ac_try;;
        !          5460: esac
        !          5461: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          5462:   (eval "$ac_try") 2>&5
        !          5463:   ac_status=$?
        !          5464:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          5465:   (exit $ac_status); }; } &&
        !          5466:         { ac_try='test -s conftest$ac_exeext'
        !          5467:   { (case "(($ac_try" in
        !          5468:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          5469:   *) ac_try_echo=$ac_try;;
        !          5470: esac
        !          5471: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          5472:   (eval "$ac_try") 2>&5
        !          5473:   ac_status=$?
        !          5474:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          5475:   (exit $ac_status); }; }; then
1.1.1.6   root     5476:   LIBS=$ac_save_LIBS
                   5477: # We can link X programs with no special library path.
                   5478: ac_x_libraries=
                   5479: else
                   5480:   echo "$as_me: failed program was:" >&5
                   5481: sed 's/^/| /' conftest.$ac_ext >&5
                   5482: 
                   5483:        LIBS=$ac_save_LIBS
                   5484: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5485: do
                   5486:   # Don't even attempt the hair of trying to link an X program!
                   5487:   for ac_extension in a so sl; do
1.1.1.8 ! root     5488:     if test -r "$ac_dir/libXt.$ac_extension"; then
1.1.1.6   root     5489:       ac_x_libraries=$ac_dir
                   5490:       break 2
                   5491:     fi
                   5492:   done
                   5493: done
                   5494: fi
                   5495: 
1.1.1.8 ! root     5496: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     5497:       conftest$ac_exeext conftest.$ac_ext
                   5498: fi # $ac_x_libraries = no
                   5499: 
                   5500: case $ac_x_includes,$ac_x_libraries in #(
                   5501:   no,* | *,no | *\'*)
                   5502:     # Didn't find X, or a directory has "'" in its name.
                   5503:     ac_cv_have_x="have_x=no";; #(
                   5504:   *)
                   5505:     # Record where we found X for the cache.
                   5506:     ac_cv_have_x="have_x=yes\
                   5507:        ac_x_includes='$ac_x_includes'\
                   5508:        ac_x_libraries='$ac_x_libraries'"
                   5509: esac
                   5510: fi
                   5511: ;; #(
                   5512:     *) have_x=yes;;
                   5513:   esac
                   5514:   eval "$ac_cv_have_x"
                   5515: fi # $with_x != no
                   5516: 
                   5517: if test "$have_x" != yes; then
                   5518:   { echo "$as_me:$LINENO: result: $have_x" >&5
                   5519: echo "${ECHO_T}$have_x" >&6; }
                   5520:   no_x=yes
                   5521: else
                   5522:   # If each of the values was on the command line, it overrides each guess.
                   5523:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5524:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5525:   # Update the cache value to reflect the command line values.
                   5526:   ac_cv_have_x="have_x=yes\
                   5527:        ac_x_includes='$x_includes'\
                   5528:        ac_x_libraries='$x_libraries'"
                   5529:   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
                   5530: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
                   5531: fi
                   5532: 
                   5533: if test "$no_x" = yes; then
                   5534:   # Not all programs may use this symbol, but it does not hurt to define it.
                   5535: 
                   5536: cat >>confdefs.h <<\_ACEOF
                   5537: #define X_DISPLAY_MISSING 1
                   5538: _ACEOF
                   5539: 
                   5540:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
                   5541: else
                   5542:   if test -n "$x_includes"; then
                   5543:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5544:   fi
                   5545: 
                   5546:   # It would also be nice to do this for all -L options, not just this one.
                   5547:   if test -n "$x_libraries"; then
                   5548:     X_LIBS="$X_LIBS -L$x_libraries"
                   5549:     # For Solaris; some versions of Sun CC require a space after -R and
                   5550:     # others require no space.  Words are not sufficient . . . .
1.1.1.8 ! root     5551:     case `(uname -sr) 2>/dev/null` in
        !          5552:     "SunOS 5"*)
        !          5553:       { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
1.1.1.6   root     5554: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
1.1.1.8 ! root     5555:       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
        !          5556:       cat >conftest.$ac_ext <<_ACEOF
1.1.1.6   root     5557: /* confdefs.h.  */
                   5558: _ACEOF
                   5559: cat confdefs.h >>conftest.$ac_ext
                   5560: cat >>conftest.$ac_ext <<_ACEOF
                   5561: /* end confdefs.h.  */
                   5562: 
                   5563: int
                   5564: main ()
                   5565: {
                   5566: 
                   5567:   ;
                   5568:   return 0;
                   5569: }
                   5570: _ACEOF
                   5571: rm -f conftest.$ac_objext conftest$ac_exeext
                   5572: if { (ac_try="$ac_link"
                   5573: case "(($ac_try" in
                   5574:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5575:   *) ac_try_echo=$ac_try;;
                   5576: esac
                   5577: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5578:   (eval "$ac_link") 2>conftest.er1
                   5579:   ac_status=$?
                   5580:   grep -v '^ *+' conftest.er1 >conftest.err
                   5581:   rm -f conftest.er1
                   5582:   cat conftest.err >&5
                   5583:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     5584:   (exit $ac_status); } &&
        !          5585:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          5586:   { (case "(($ac_try" in
        !          5587:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          5588:   *) ac_try_echo=$ac_try;;
        !          5589: esac
        !          5590: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          5591:   (eval "$ac_try") 2>&5
        !          5592:   ac_status=$?
        !          5593:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          5594:   (exit $ac_status); }; } &&
        !          5595:         { ac_try='test -s conftest$ac_exeext'
        !          5596:   { (case "(($ac_try" in
        !          5597:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          5598:   *) ac_try_echo=$ac_try;;
        !          5599: esac
        !          5600: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          5601:   (eval "$ac_try") 2>&5
        !          5602:   ac_status=$?
        !          5603:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          5604:   (exit $ac_status); }; }; then
        !          5605:   ac_R_nospace=yes
1.1.1.6   root     5606: else
                   5607:   echo "$as_me: failed program was:" >&5
                   5608: sed 's/^/| /' conftest.$ac_ext >&5
                   5609: 
1.1.1.8 ! root     5610:        ac_R_nospace=no
        !          5611: fi
        !          5612: 
        !          5613: rm -f core conftest.err conftest.$ac_objext \
        !          5614:       conftest$ac_exeext conftest.$ac_ext
        !          5615:       if test $ac_R_nospace = yes; then
        !          5616:        { echo "$as_me:$LINENO: result: no" >&5
        !          5617: echo "${ECHO_T}no" >&6; }
        !          5618:        X_LIBS="$X_LIBS -R$x_libraries"
        !          5619:       else
1.1.1.6   root     5620:        LIBS="$ac_xsave_LIBS -R $x_libraries"
1.1.1.8 ! root     5621:        cat >conftest.$ac_ext <<_ACEOF
1.1.1.6   root     5622: /* confdefs.h.  */
                   5623: _ACEOF
                   5624: cat confdefs.h >>conftest.$ac_ext
                   5625: cat >>conftest.$ac_ext <<_ACEOF
                   5626: /* end confdefs.h.  */
                   5627: 
                   5628: int
                   5629: main ()
                   5630: {
                   5631: 
                   5632:   ;
                   5633:   return 0;
                   5634: }
                   5635: _ACEOF
                   5636: rm -f conftest.$ac_objext conftest$ac_exeext
                   5637: if { (ac_try="$ac_link"
                   5638: case "(($ac_try" in
                   5639:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5640:   *) ac_try_echo=$ac_try;;
                   5641: esac
                   5642: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5643:   (eval "$ac_link") 2>conftest.er1
                   5644:   ac_status=$?
                   5645:   grep -v '^ *+' conftest.er1 >conftest.err
                   5646:   rm -f conftest.er1
                   5647:   cat conftest.err >&5
                   5648:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     5649:   (exit $ac_status); } &&
        !          5650:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          5651:   { (case "(($ac_try" in
        !          5652:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          5653:   *) ac_try_echo=$ac_try;;
        !          5654: esac
        !          5655: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          5656:   (eval "$ac_try") 2>&5
        !          5657:   ac_status=$?
        !          5658:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          5659:   (exit $ac_status); }; } &&
        !          5660:         { ac_try='test -s conftest$ac_exeext'
        !          5661:   { (case "(($ac_try" in
        !          5662:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          5663:   *) ac_try_echo=$ac_try;;
        !          5664: esac
        !          5665: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          5666:   (eval "$ac_try") 2>&5
        !          5667:   ac_status=$?
        !          5668:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          5669:   (exit $ac_status); }; }; then
        !          5670:   ac_R_space=yes
1.1.1.6   root     5671: else
                   5672:   echo "$as_me: failed program was:" >&5
                   5673: sed 's/^/| /' conftest.$ac_ext >&5
                   5674: 
1.1.1.8 ! root     5675:        ac_R_space=no
1.1.1.6   root     5676: fi
                   5677: 
1.1.1.8 ! root     5678: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     5679:       conftest$ac_exeext conftest.$ac_ext
1.1.1.8 ! root     5680:        if test $ac_R_space = yes; then
        !          5681:          { echo "$as_me:$LINENO: result: yes" >&5
        !          5682: echo "${ECHO_T}yes" >&6; }
        !          5683:          X_LIBS="$X_LIBS -R $x_libraries"
        !          5684:        else
        !          5685:          { echo "$as_me:$LINENO: result: neither works" >&5
        !          5686: echo "${ECHO_T}neither works" >&6; }
        !          5687:        fi
        !          5688:       fi
        !          5689:       LIBS=$ac_xsave_LIBS
        !          5690:     esac
1.1.1.6   root     5691:   fi
                   5692: 
                   5693:   # Check for system-dependent libraries X programs must link with.
                   5694:   # Do this before checking for the system-independent R6 libraries
                   5695:   # (-lICE), since we may need -lsocket or whatever for X linking.
                   5696: 
                   5697:   if test "$ISC" = yes; then
                   5698:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5699:   else
                   5700:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5701:     # libraries were built with DECnet support.  And Karl Berry says
                   5702:     # the Alpha needs dnet_stub (dnet does not exist).
                   5703:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5704:     cat >conftest.$ac_ext <<_ACEOF
                   5705: /* confdefs.h.  */
                   5706: _ACEOF
                   5707: cat confdefs.h >>conftest.$ac_ext
                   5708: cat >>conftest.$ac_ext <<_ACEOF
                   5709: /* end confdefs.h.  */
                   5710: 
                   5711: /* Override any GCC internal prototype to avoid an error.
                   5712:    Use char because int might match the return type of a GCC
                   5713:    builtin and then its argument prototype would still apply.  */
                   5714: #ifdef __cplusplus
                   5715: extern "C"
                   5716: #endif
                   5717: char XOpenDisplay ();
                   5718: int
                   5719: main ()
                   5720: {
                   5721: return XOpenDisplay ();
                   5722:   ;
                   5723:   return 0;
                   5724: }
                   5725: _ACEOF
                   5726: rm -f conftest.$ac_objext conftest$ac_exeext
                   5727: if { (ac_try="$ac_link"
                   5728: case "(($ac_try" in
                   5729:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5730:   *) ac_try_echo=$ac_try;;
                   5731: esac
                   5732: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5733:   (eval "$ac_link") 2>conftest.er1
                   5734:   ac_status=$?
                   5735:   grep -v '^ *+' conftest.er1 >conftest.err
                   5736:   rm -f conftest.er1
                   5737:   cat conftest.err >&5
                   5738:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     5739:   (exit $ac_status); } &&
        !          5740:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          5741:   { (case "(($ac_try" in
        !          5742:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          5743:   *) ac_try_echo=$ac_try;;
        !          5744: esac
        !          5745: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          5746:   (eval "$ac_try") 2>&5
        !          5747:   ac_status=$?
        !          5748:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          5749:   (exit $ac_status); }; } &&
        !          5750:         { ac_try='test -s conftest$ac_exeext'
        !          5751:   { (case "(($ac_try" in
        !          5752:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          5753:   *) ac_try_echo=$ac_try;;
        !          5754: esac
        !          5755: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          5756:   (eval "$ac_try") 2>&5
        !          5757:   ac_status=$?
        !          5758:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          5759:   (exit $ac_status); }; }; then
1.1.1.6   root     5760:   :
                   5761: else
                   5762:   echo "$as_me: failed program was:" >&5
                   5763: sed 's/^/| /' conftest.$ac_ext >&5
                   5764: 
                   5765:        { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
                   5766: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
                   5767: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
                   5768:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5769: else
                   5770:   ac_check_lib_save_LIBS=$LIBS
                   5771: LIBS="-ldnet  $LIBS"
                   5772: cat >conftest.$ac_ext <<_ACEOF
                   5773: /* confdefs.h.  */
                   5774: _ACEOF
                   5775: cat confdefs.h >>conftest.$ac_ext
                   5776: cat >>conftest.$ac_ext <<_ACEOF
                   5777: /* end confdefs.h.  */
                   5778: 
                   5779: /* Override any GCC internal prototype to avoid an error.
                   5780:    Use char because int might match the return type of a GCC
                   5781:    builtin and then its argument prototype would still apply.  */
                   5782: #ifdef __cplusplus
                   5783: extern "C"
                   5784: #endif
                   5785: char dnet_ntoa ();
                   5786: int
                   5787: main ()
                   5788: {
                   5789: return dnet_ntoa ();
                   5790:   ;
                   5791:   return 0;
                   5792: }
                   5793: _ACEOF
                   5794: rm -f conftest.$ac_objext conftest$ac_exeext
                   5795: if { (ac_try="$ac_link"
                   5796: case "(($ac_try" in
                   5797:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5798:   *) ac_try_echo=$ac_try;;
                   5799: esac
                   5800: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5801:   (eval "$ac_link") 2>conftest.er1
                   5802:   ac_status=$?
                   5803:   grep -v '^ *+' conftest.er1 >conftest.err
                   5804:   rm -f conftest.er1
                   5805:   cat conftest.err >&5
                   5806:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     5807:   (exit $ac_status); } &&
        !          5808:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          5809:   { (case "(($ac_try" in
        !          5810:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          5811:   *) ac_try_echo=$ac_try;;
        !          5812: esac
        !          5813: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          5814:   (eval "$ac_try") 2>&5
        !          5815:   ac_status=$?
        !          5816:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          5817:   (exit $ac_status); }; } &&
        !          5818:         { ac_try='test -s conftest$ac_exeext'
        !          5819:   { (case "(($ac_try" in
        !          5820:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          5821:   *) ac_try_echo=$ac_try;;
        !          5822: esac
        !          5823: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          5824:   (eval "$ac_try") 2>&5
        !          5825:   ac_status=$?
        !          5826:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          5827:   (exit $ac_status); }; }; then
1.1.1.6   root     5828:   ac_cv_lib_dnet_dnet_ntoa=yes
                   5829: else
                   5830:   echo "$as_me: failed program was:" >&5
                   5831: sed 's/^/| /' conftest.$ac_ext >&5
                   5832: 
                   5833:        ac_cv_lib_dnet_dnet_ntoa=no
                   5834: fi
                   5835: 
1.1.1.8 ! root     5836: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     5837:       conftest$ac_exeext conftest.$ac_ext
                   5838: LIBS=$ac_check_lib_save_LIBS
                   5839: fi
                   5840: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5841: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
                   5842: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
                   5843:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
                   5844: fi
                   5845: 
                   5846:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5847:       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
                   5848: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
                   5849: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
                   5850:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5851: else
                   5852:   ac_check_lib_save_LIBS=$LIBS
                   5853: LIBS="-ldnet_stub  $LIBS"
                   5854: cat >conftest.$ac_ext <<_ACEOF
                   5855: /* confdefs.h.  */
                   5856: _ACEOF
                   5857: cat confdefs.h >>conftest.$ac_ext
                   5858: cat >>conftest.$ac_ext <<_ACEOF
                   5859: /* end confdefs.h.  */
                   5860: 
                   5861: /* Override any GCC internal prototype to avoid an error.
                   5862:    Use char because int might match the return type of a GCC
                   5863:    builtin and then its argument prototype would still apply.  */
                   5864: #ifdef __cplusplus
                   5865: extern "C"
                   5866: #endif
                   5867: char dnet_ntoa ();
                   5868: int
                   5869: main ()
                   5870: {
                   5871: return dnet_ntoa ();
                   5872:   ;
                   5873:   return 0;
                   5874: }
                   5875: _ACEOF
                   5876: rm -f conftest.$ac_objext conftest$ac_exeext
                   5877: if { (ac_try="$ac_link"
                   5878: case "(($ac_try" in
                   5879:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5880:   *) ac_try_echo=$ac_try;;
                   5881: esac
                   5882: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5883:   (eval "$ac_link") 2>conftest.er1
                   5884:   ac_status=$?
                   5885:   grep -v '^ *+' conftest.er1 >conftest.err
                   5886:   rm -f conftest.er1
                   5887:   cat conftest.err >&5
                   5888:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     5889:   (exit $ac_status); } &&
        !          5890:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          5891:   { (case "(($ac_try" in
        !          5892:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          5893:   *) ac_try_echo=$ac_try;;
        !          5894: esac
        !          5895: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          5896:   (eval "$ac_try") 2>&5
        !          5897:   ac_status=$?
        !          5898:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          5899:   (exit $ac_status); }; } &&
        !          5900:         { ac_try='test -s conftest$ac_exeext'
        !          5901:   { (case "(($ac_try" in
        !          5902:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          5903:   *) ac_try_echo=$ac_try;;
        !          5904: esac
        !          5905: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          5906:   (eval "$ac_try") 2>&5
        !          5907:   ac_status=$?
        !          5908:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          5909:   (exit $ac_status); }; }; then
1.1.1.6   root     5910:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
                   5911: else
                   5912:   echo "$as_me: failed program was:" >&5
                   5913: sed 's/^/| /' conftest.$ac_ext >&5
                   5914: 
                   5915:        ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5916: fi
                   5917: 
1.1.1.8 ! root     5918: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     5919:       conftest$ac_exeext conftest.$ac_ext
                   5920: LIBS=$ac_check_lib_save_LIBS
                   5921: fi
                   5922: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5923: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
                   5924: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
                   5925:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5926: fi
                   5927: 
                   5928:     fi
                   5929: fi
                   5930: 
1.1.1.8 ! root     5931: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     5932:       conftest$ac_exeext conftest.$ac_ext
                   5933:     LIBS="$ac_xsave_LIBS"
                   5934: 
                   5935:     # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
                   5936:     # to get the SysV transport functions.
                   5937:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5938:     # needs -lnsl.
                   5939:     # The nsl library prevents programs from opening the X display
                   5940:     # on Irix 5.2, according to T.E. Dickey.
                   5941:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5942:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5943:     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
                   5944: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
                   5945: if test "${ac_cv_func_gethostbyname+set}" = set; then
                   5946:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5947: else
                   5948:   cat >conftest.$ac_ext <<_ACEOF
                   5949: /* confdefs.h.  */
                   5950: _ACEOF
                   5951: cat confdefs.h >>conftest.$ac_ext
                   5952: cat >>conftest.$ac_ext <<_ACEOF
                   5953: /* end confdefs.h.  */
                   5954: /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
                   5955:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   5956: #define gethostbyname innocuous_gethostbyname
                   5957: 
                   5958: /* System header to define __stub macros and hopefully few prototypes,
                   5959:     which can conflict with char gethostbyname (); below.
                   5960:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5961:     <limits.h> exists even on freestanding compilers.  */
                   5962: 
                   5963: #ifdef __STDC__
                   5964: # include <limits.h>
                   5965: #else
                   5966: # include <assert.h>
                   5967: #endif
                   5968: 
                   5969: #undef gethostbyname
                   5970: 
                   5971: /* Override any GCC internal prototype to avoid an error.
                   5972:    Use char because int might match the return type of a GCC
                   5973:    builtin and then its argument prototype would still apply.  */
                   5974: #ifdef __cplusplus
                   5975: extern "C"
                   5976: #endif
                   5977: char gethostbyname ();
                   5978: /* The GNU C library defines this for functions which it implements
                   5979:     to always fail with ENOSYS.  Some functions are actually named
                   5980:     something starting with __ and the normal name is an alias.  */
                   5981: #if defined __stub_gethostbyname || defined __stub___gethostbyname
                   5982: choke me
                   5983: #endif
                   5984: 
                   5985: int
                   5986: main ()
                   5987: {
                   5988: return gethostbyname ();
                   5989:   ;
                   5990:   return 0;
                   5991: }
                   5992: _ACEOF
                   5993: rm -f conftest.$ac_objext conftest$ac_exeext
                   5994: if { (ac_try="$ac_link"
                   5995: case "(($ac_try" in
                   5996:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5997:   *) ac_try_echo=$ac_try;;
                   5998: esac
                   5999: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6000:   (eval "$ac_link") 2>conftest.er1
                   6001:   ac_status=$?
                   6002:   grep -v '^ *+' conftest.er1 >conftest.err
                   6003:   rm -f conftest.er1
                   6004:   cat conftest.err >&5
                   6005:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     6006:   (exit $ac_status); } &&
        !          6007:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          6008:   { (case "(($ac_try" in
        !          6009:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6010:   *) ac_try_echo=$ac_try;;
        !          6011: esac
        !          6012: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6013:   (eval "$ac_try") 2>&5
        !          6014:   ac_status=$?
        !          6015:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6016:   (exit $ac_status); }; } &&
        !          6017:         { ac_try='test -s conftest$ac_exeext'
        !          6018:   { (case "(($ac_try" in
        !          6019:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6020:   *) ac_try_echo=$ac_try;;
        !          6021: esac
        !          6022: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6023:   (eval "$ac_try") 2>&5
        !          6024:   ac_status=$?
        !          6025:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6026:   (exit $ac_status); }; }; then
1.1.1.6   root     6027:   ac_cv_func_gethostbyname=yes
                   6028: else
                   6029:   echo "$as_me: failed program was:" >&5
                   6030: sed 's/^/| /' conftest.$ac_ext >&5
                   6031: 
                   6032:        ac_cv_func_gethostbyname=no
                   6033: fi
                   6034: 
1.1.1.8 ! root     6035: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     6036:       conftest$ac_exeext conftest.$ac_ext
                   6037: fi
                   6038: { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
                   6039: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
                   6040: 
                   6041:     if test $ac_cv_func_gethostbyname = no; then
                   6042:       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
                   6043: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
                   6044: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
                   6045:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6046: else
                   6047:   ac_check_lib_save_LIBS=$LIBS
                   6048: LIBS="-lnsl  $LIBS"
                   6049: cat >conftest.$ac_ext <<_ACEOF
                   6050: /* confdefs.h.  */
                   6051: _ACEOF
                   6052: cat confdefs.h >>conftest.$ac_ext
                   6053: cat >>conftest.$ac_ext <<_ACEOF
                   6054: /* end confdefs.h.  */
                   6055: 
                   6056: /* Override any GCC internal prototype to avoid an error.
                   6057:    Use char because int might match the return type of a GCC
                   6058:    builtin and then its argument prototype would still apply.  */
                   6059: #ifdef __cplusplus
                   6060: extern "C"
                   6061: #endif
                   6062: char gethostbyname ();
                   6063: int
                   6064: main ()
                   6065: {
                   6066: return gethostbyname ();
                   6067:   ;
                   6068:   return 0;
                   6069: }
                   6070: _ACEOF
                   6071: rm -f conftest.$ac_objext conftest$ac_exeext
                   6072: if { (ac_try="$ac_link"
                   6073: case "(($ac_try" in
                   6074:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6075:   *) ac_try_echo=$ac_try;;
                   6076: esac
                   6077: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6078:   (eval "$ac_link") 2>conftest.er1
                   6079:   ac_status=$?
                   6080:   grep -v '^ *+' conftest.er1 >conftest.err
                   6081:   rm -f conftest.er1
                   6082:   cat conftest.err >&5
                   6083:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     6084:   (exit $ac_status); } &&
        !          6085:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          6086:   { (case "(($ac_try" in
        !          6087:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6088:   *) ac_try_echo=$ac_try;;
        !          6089: esac
        !          6090: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6091:   (eval "$ac_try") 2>&5
        !          6092:   ac_status=$?
        !          6093:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6094:   (exit $ac_status); }; } &&
        !          6095:         { ac_try='test -s conftest$ac_exeext'
        !          6096:   { (case "(($ac_try" in
        !          6097:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6098:   *) ac_try_echo=$ac_try;;
        !          6099: esac
        !          6100: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6101:   (eval "$ac_try") 2>&5
        !          6102:   ac_status=$?
        !          6103:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6104:   (exit $ac_status); }; }; then
1.1.1.6   root     6105:   ac_cv_lib_nsl_gethostbyname=yes
                   6106: else
                   6107:   echo "$as_me: failed program was:" >&5
                   6108: sed 's/^/| /' conftest.$ac_ext >&5
                   6109: 
                   6110:        ac_cv_lib_nsl_gethostbyname=no
                   6111: fi
                   6112: 
1.1.1.8 ! root     6113: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     6114:       conftest$ac_exeext conftest.$ac_ext
                   6115: LIBS=$ac_check_lib_save_LIBS
                   6116: fi
                   6117: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   6118: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
                   6119: if test $ac_cv_lib_nsl_gethostbyname = yes; then
                   6120:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   6121: fi
                   6122: 
                   6123:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   6124:        { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
                   6125: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
                   6126: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
                   6127:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6128: else
                   6129:   ac_check_lib_save_LIBS=$LIBS
                   6130: LIBS="-lbsd  $LIBS"
                   6131: cat >conftest.$ac_ext <<_ACEOF
                   6132: /* confdefs.h.  */
                   6133: _ACEOF
                   6134: cat confdefs.h >>conftest.$ac_ext
                   6135: cat >>conftest.$ac_ext <<_ACEOF
                   6136: /* end confdefs.h.  */
                   6137: 
                   6138: /* Override any GCC internal prototype to avoid an error.
                   6139:    Use char because int might match the return type of a GCC
                   6140:    builtin and then its argument prototype would still apply.  */
                   6141: #ifdef __cplusplus
                   6142: extern "C"
                   6143: #endif
                   6144: char gethostbyname ();
                   6145: int
                   6146: main ()
                   6147: {
                   6148: return gethostbyname ();
                   6149:   ;
                   6150:   return 0;
                   6151: }
                   6152: _ACEOF
                   6153: rm -f conftest.$ac_objext conftest$ac_exeext
                   6154: if { (ac_try="$ac_link"
                   6155: case "(($ac_try" in
                   6156:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6157:   *) ac_try_echo=$ac_try;;
                   6158: esac
                   6159: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6160:   (eval "$ac_link") 2>conftest.er1
                   6161:   ac_status=$?
                   6162:   grep -v '^ *+' conftest.er1 >conftest.err
                   6163:   rm -f conftest.er1
                   6164:   cat conftest.err >&5
                   6165:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     6166:   (exit $ac_status); } &&
        !          6167:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          6168:   { (case "(($ac_try" in
        !          6169:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6170:   *) ac_try_echo=$ac_try;;
        !          6171: esac
        !          6172: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6173:   (eval "$ac_try") 2>&5
        !          6174:   ac_status=$?
        !          6175:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6176:   (exit $ac_status); }; } &&
        !          6177:         { ac_try='test -s conftest$ac_exeext'
        !          6178:   { (case "(($ac_try" in
        !          6179:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6180:   *) ac_try_echo=$ac_try;;
        !          6181: esac
        !          6182: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6183:   (eval "$ac_try") 2>&5
        !          6184:   ac_status=$?
        !          6185:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6186:   (exit $ac_status); }; }; then
1.1.1.6   root     6187:   ac_cv_lib_bsd_gethostbyname=yes
                   6188: else
                   6189:   echo "$as_me: failed program was:" >&5
                   6190: sed 's/^/| /' conftest.$ac_ext >&5
                   6191: 
                   6192:        ac_cv_lib_bsd_gethostbyname=no
                   6193: fi
                   6194: 
1.1.1.8 ! root     6195: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     6196:       conftest$ac_exeext conftest.$ac_ext
                   6197: LIBS=$ac_check_lib_save_LIBS
                   6198: fi
                   6199: { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   6200: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
                   6201: if test $ac_cv_lib_bsd_gethostbyname = yes; then
                   6202:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   6203: fi
                   6204: 
                   6205:       fi
                   6206:     fi
                   6207: 
                   6208:     # [email protected] says without -lsocket,
                   6209:     # socket/setsockopt and other routines are undefined under SCO ODT
                   6210:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   6211:     # on later versions), says Simon Leinen: it contains gethostby*
                   6212:     # variants that don't use the name server (or something).  -lsocket
                   6213:     # must be given before -lnsl if both are needed.  We assume that
                   6214:     # if connect needs -lnsl, so does gethostbyname.
                   6215:     { echo "$as_me:$LINENO: checking for connect" >&5
                   6216: echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
                   6217: if test "${ac_cv_func_connect+set}" = set; then
                   6218:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6219: else
                   6220:   cat >conftest.$ac_ext <<_ACEOF
                   6221: /* confdefs.h.  */
                   6222: _ACEOF
                   6223: cat confdefs.h >>conftest.$ac_ext
                   6224: cat >>conftest.$ac_ext <<_ACEOF
                   6225: /* end confdefs.h.  */
                   6226: /* Define connect to an innocuous variant, in case <limits.h> declares connect.
                   6227:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   6228: #define connect innocuous_connect
                   6229: 
                   6230: /* System header to define __stub macros and hopefully few prototypes,
                   6231:     which can conflict with char connect (); below.
                   6232:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   6233:     <limits.h> exists even on freestanding compilers.  */
                   6234: 
                   6235: #ifdef __STDC__
                   6236: # include <limits.h>
                   6237: #else
                   6238: # include <assert.h>
                   6239: #endif
                   6240: 
                   6241: #undef connect
                   6242: 
                   6243: /* Override any GCC internal prototype to avoid an error.
                   6244:    Use char because int might match the return type of a GCC
                   6245:    builtin and then its argument prototype would still apply.  */
                   6246: #ifdef __cplusplus
                   6247: extern "C"
                   6248: #endif
                   6249: char connect ();
                   6250: /* The GNU C library defines this for functions which it implements
                   6251:     to always fail with ENOSYS.  Some functions are actually named
                   6252:     something starting with __ and the normal name is an alias.  */
                   6253: #if defined __stub_connect || defined __stub___connect
                   6254: choke me
                   6255: #endif
                   6256: 
                   6257: int
                   6258: main ()
                   6259: {
                   6260: return connect ();
                   6261:   ;
                   6262:   return 0;
                   6263: }
                   6264: _ACEOF
                   6265: rm -f conftest.$ac_objext conftest$ac_exeext
                   6266: if { (ac_try="$ac_link"
                   6267: case "(($ac_try" in
                   6268:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6269:   *) ac_try_echo=$ac_try;;
                   6270: esac
                   6271: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6272:   (eval "$ac_link") 2>conftest.er1
                   6273:   ac_status=$?
                   6274:   grep -v '^ *+' conftest.er1 >conftest.err
                   6275:   rm -f conftest.er1
                   6276:   cat conftest.err >&5
                   6277:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     6278:   (exit $ac_status); } &&
        !          6279:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          6280:   { (case "(($ac_try" in
        !          6281:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6282:   *) ac_try_echo=$ac_try;;
        !          6283: esac
        !          6284: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6285:   (eval "$ac_try") 2>&5
        !          6286:   ac_status=$?
        !          6287:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6288:   (exit $ac_status); }; } &&
        !          6289:         { ac_try='test -s conftest$ac_exeext'
        !          6290:   { (case "(($ac_try" in
        !          6291:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6292:   *) ac_try_echo=$ac_try;;
        !          6293: esac
        !          6294: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6295:   (eval "$ac_try") 2>&5
        !          6296:   ac_status=$?
        !          6297:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6298:   (exit $ac_status); }; }; then
1.1.1.6   root     6299:   ac_cv_func_connect=yes
                   6300: else
                   6301:   echo "$as_me: failed program was:" >&5
                   6302: sed 's/^/| /' conftest.$ac_ext >&5
                   6303: 
                   6304:        ac_cv_func_connect=no
                   6305: fi
                   6306: 
1.1.1.8 ! root     6307: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     6308:       conftest$ac_exeext conftest.$ac_ext
                   6309: fi
                   6310: { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
                   6311: echo "${ECHO_T}$ac_cv_func_connect" >&6; }
                   6312: 
                   6313:     if test $ac_cv_func_connect = no; then
                   6314:       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
                   6315: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
                   6316: if test "${ac_cv_lib_socket_connect+set}" = set; then
                   6317:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6318: else
                   6319:   ac_check_lib_save_LIBS=$LIBS
                   6320: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   6321: cat >conftest.$ac_ext <<_ACEOF
                   6322: /* confdefs.h.  */
                   6323: _ACEOF
                   6324: cat confdefs.h >>conftest.$ac_ext
                   6325: cat >>conftest.$ac_ext <<_ACEOF
                   6326: /* end confdefs.h.  */
                   6327: 
                   6328: /* Override any GCC internal prototype to avoid an error.
                   6329:    Use char because int might match the return type of a GCC
                   6330:    builtin and then its argument prototype would still apply.  */
                   6331: #ifdef __cplusplus
                   6332: extern "C"
                   6333: #endif
                   6334: char connect ();
                   6335: int
                   6336: main ()
                   6337: {
                   6338: return connect ();
                   6339:   ;
                   6340:   return 0;
                   6341: }
                   6342: _ACEOF
                   6343: rm -f conftest.$ac_objext conftest$ac_exeext
                   6344: if { (ac_try="$ac_link"
                   6345: case "(($ac_try" in
                   6346:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6347:   *) ac_try_echo=$ac_try;;
                   6348: esac
                   6349: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6350:   (eval "$ac_link") 2>conftest.er1
                   6351:   ac_status=$?
                   6352:   grep -v '^ *+' conftest.er1 >conftest.err
                   6353:   rm -f conftest.er1
                   6354:   cat conftest.err >&5
                   6355:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     6356:   (exit $ac_status); } &&
        !          6357:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          6358:   { (case "(($ac_try" in
        !          6359:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6360:   *) ac_try_echo=$ac_try;;
        !          6361: esac
        !          6362: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6363:   (eval "$ac_try") 2>&5
        !          6364:   ac_status=$?
        !          6365:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6366:   (exit $ac_status); }; } &&
        !          6367:         { ac_try='test -s conftest$ac_exeext'
        !          6368:   { (case "(($ac_try" in
        !          6369:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6370:   *) ac_try_echo=$ac_try;;
        !          6371: esac
        !          6372: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6373:   (eval "$ac_try") 2>&5
        !          6374:   ac_status=$?
        !          6375:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6376:   (exit $ac_status); }; }; then
1.1.1.6   root     6377:   ac_cv_lib_socket_connect=yes
                   6378: else
                   6379:   echo "$as_me: failed program was:" >&5
                   6380: sed 's/^/| /' conftest.$ac_ext >&5
                   6381: 
                   6382:        ac_cv_lib_socket_connect=no
                   6383: fi
                   6384: 
1.1.1.8 ! root     6385: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     6386:       conftest$ac_exeext conftest.$ac_ext
                   6387: LIBS=$ac_check_lib_save_LIBS
                   6388: fi
                   6389: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
                   6390: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
                   6391: if test $ac_cv_lib_socket_connect = yes; then
                   6392:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   6393: fi
                   6394: 
                   6395:     fi
                   6396: 
                   6397:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   6398:     { echo "$as_me:$LINENO: checking for remove" >&5
                   6399: echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
                   6400: if test "${ac_cv_func_remove+set}" = set; then
                   6401:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6402: else
                   6403:   cat >conftest.$ac_ext <<_ACEOF
                   6404: /* confdefs.h.  */
                   6405: _ACEOF
                   6406: cat confdefs.h >>conftest.$ac_ext
                   6407: cat >>conftest.$ac_ext <<_ACEOF
                   6408: /* end confdefs.h.  */
                   6409: /* Define remove to an innocuous variant, in case <limits.h> declares remove.
                   6410:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   6411: #define remove innocuous_remove
                   6412: 
                   6413: /* System header to define __stub macros and hopefully few prototypes,
                   6414:     which can conflict with char remove (); below.
                   6415:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   6416:     <limits.h> exists even on freestanding compilers.  */
                   6417: 
                   6418: #ifdef __STDC__
                   6419: # include <limits.h>
                   6420: #else
                   6421: # include <assert.h>
                   6422: #endif
                   6423: 
                   6424: #undef remove
                   6425: 
                   6426: /* Override any GCC internal prototype to avoid an error.
                   6427:    Use char because int might match the return type of a GCC
                   6428:    builtin and then its argument prototype would still apply.  */
                   6429: #ifdef __cplusplus
                   6430: extern "C"
                   6431: #endif
                   6432: char remove ();
                   6433: /* The GNU C library defines this for functions which it implements
                   6434:     to always fail with ENOSYS.  Some functions are actually named
                   6435:     something starting with __ and the normal name is an alias.  */
                   6436: #if defined __stub_remove || defined __stub___remove
                   6437: choke me
                   6438: #endif
                   6439: 
                   6440: int
                   6441: main ()
                   6442: {
                   6443: return remove ();
                   6444:   ;
                   6445:   return 0;
                   6446: }
                   6447: _ACEOF
                   6448: rm -f conftest.$ac_objext conftest$ac_exeext
                   6449: if { (ac_try="$ac_link"
                   6450: case "(($ac_try" in
                   6451:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6452:   *) ac_try_echo=$ac_try;;
                   6453: esac
                   6454: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6455:   (eval "$ac_link") 2>conftest.er1
                   6456:   ac_status=$?
                   6457:   grep -v '^ *+' conftest.er1 >conftest.err
                   6458:   rm -f conftest.er1
                   6459:   cat conftest.err >&5
                   6460:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     6461:   (exit $ac_status); } &&
        !          6462:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          6463:   { (case "(($ac_try" in
        !          6464:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6465:   *) ac_try_echo=$ac_try;;
        !          6466: esac
        !          6467: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6468:   (eval "$ac_try") 2>&5
        !          6469:   ac_status=$?
        !          6470:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6471:   (exit $ac_status); }; } &&
        !          6472:         { ac_try='test -s conftest$ac_exeext'
        !          6473:   { (case "(($ac_try" in
        !          6474:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6475:   *) ac_try_echo=$ac_try;;
        !          6476: esac
        !          6477: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6478:   (eval "$ac_try") 2>&5
        !          6479:   ac_status=$?
        !          6480:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6481:   (exit $ac_status); }; }; then
1.1.1.6   root     6482:   ac_cv_func_remove=yes
                   6483: else
                   6484:   echo "$as_me: failed program was:" >&5
                   6485: sed 's/^/| /' conftest.$ac_ext >&5
                   6486: 
                   6487:        ac_cv_func_remove=no
                   6488: fi
                   6489: 
1.1.1.8 ! root     6490: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     6491:       conftest$ac_exeext conftest.$ac_ext
                   6492: fi
                   6493: { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
                   6494: echo "${ECHO_T}$ac_cv_func_remove" >&6; }
                   6495: 
                   6496:     if test $ac_cv_func_remove = no; then
                   6497:       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
                   6498: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
                   6499: if test "${ac_cv_lib_posix_remove+set}" = set; then
                   6500:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6501: else
                   6502:   ac_check_lib_save_LIBS=$LIBS
                   6503: LIBS="-lposix  $LIBS"
                   6504: cat >conftest.$ac_ext <<_ACEOF
                   6505: /* confdefs.h.  */
                   6506: _ACEOF
                   6507: cat confdefs.h >>conftest.$ac_ext
                   6508: cat >>conftest.$ac_ext <<_ACEOF
                   6509: /* end confdefs.h.  */
                   6510: 
                   6511: /* Override any GCC internal prototype to avoid an error.
                   6512:    Use char because int might match the return type of a GCC
                   6513:    builtin and then its argument prototype would still apply.  */
                   6514: #ifdef __cplusplus
                   6515: extern "C"
                   6516: #endif
                   6517: char remove ();
                   6518: int
                   6519: main ()
                   6520: {
                   6521: return remove ();
                   6522:   ;
                   6523:   return 0;
                   6524: }
                   6525: _ACEOF
                   6526: rm -f conftest.$ac_objext conftest$ac_exeext
                   6527: if { (ac_try="$ac_link"
                   6528: case "(($ac_try" in
                   6529:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6530:   *) ac_try_echo=$ac_try;;
                   6531: esac
                   6532: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6533:   (eval "$ac_link") 2>conftest.er1
                   6534:   ac_status=$?
                   6535:   grep -v '^ *+' conftest.er1 >conftest.err
                   6536:   rm -f conftest.er1
                   6537:   cat conftest.err >&5
                   6538:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     6539:   (exit $ac_status); } &&
        !          6540:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          6541:   { (case "(($ac_try" in
        !          6542:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6543:   *) ac_try_echo=$ac_try;;
        !          6544: esac
        !          6545: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6546:   (eval "$ac_try") 2>&5
        !          6547:   ac_status=$?
        !          6548:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6549:   (exit $ac_status); }; } &&
        !          6550:         { ac_try='test -s conftest$ac_exeext'
        !          6551:   { (case "(($ac_try" in
        !          6552:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6553:   *) ac_try_echo=$ac_try;;
        !          6554: esac
        !          6555: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6556:   (eval "$ac_try") 2>&5
        !          6557:   ac_status=$?
        !          6558:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6559:   (exit $ac_status); }; }; then
1.1.1.6   root     6560:   ac_cv_lib_posix_remove=yes
                   6561: else
                   6562:   echo "$as_me: failed program was:" >&5
                   6563: sed 's/^/| /' conftest.$ac_ext >&5
                   6564: 
                   6565:        ac_cv_lib_posix_remove=no
                   6566: fi
                   6567: 
1.1.1.8 ! root     6568: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     6569:       conftest$ac_exeext conftest.$ac_ext
                   6570: LIBS=$ac_check_lib_save_LIBS
                   6571: fi
                   6572: { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
                   6573: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
                   6574: if test $ac_cv_lib_posix_remove = yes; then
                   6575:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
                   6576: fi
                   6577: 
                   6578:     fi
                   6579: 
                   6580:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   6581:     { echo "$as_me:$LINENO: checking for shmat" >&5
                   6582: echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
                   6583: if test "${ac_cv_func_shmat+set}" = set; then
                   6584:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6585: else
                   6586:   cat >conftest.$ac_ext <<_ACEOF
                   6587: /* confdefs.h.  */
                   6588: _ACEOF
                   6589: cat confdefs.h >>conftest.$ac_ext
                   6590: cat >>conftest.$ac_ext <<_ACEOF
                   6591: /* end confdefs.h.  */
                   6592: /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
                   6593:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   6594: #define shmat innocuous_shmat
                   6595: 
                   6596: /* System header to define __stub macros and hopefully few prototypes,
                   6597:     which can conflict with char shmat (); below.
                   6598:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   6599:     <limits.h> exists even on freestanding compilers.  */
                   6600: 
                   6601: #ifdef __STDC__
                   6602: # include <limits.h>
                   6603: #else
                   6604: # include <assert.h>
                   6605: #endif
                   6606: 
                   6607: #undef shmat
                   6608: 
                   6609: /* Override any GCC internal prototype to avoid an error.
                   6610:    Use char because int might match the return type of a GCC
                   6611:    builtin and then its argument prototype would still apply.  */
                   6612: #ifdef __cplusplus
                   6613: extern "C"
                   6614: #endif
                   6615: char shmat ();
                   6616: /* The GNU C library defines this for functions which it implements
                   6617:     to always fail with ENOSYS.  Some functions are actually named
                   6618:     something starting with __ and the normal name is an alias.  */
                   6619: #if defined __stub_shmat || defined __stub___shmat
                   6620: choke me
                   6621: #endif
                   6622: 
                   6623: int
                   6624: main ()
                   6625: {
                   6626: return shmat ();
                   6627:   ;
                   6628:   return 0;
                   6629: }
                   6630: _ACEOF
                   6631: rm -f conftest.$ac_objext conftest$ac_exeext
                   6632: if { (ac_try="$ac_link"
                   6633: case "(($ac_try" in
                   6634:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6635:   *) ac_try_echo=$ac_try;;
                   6636: esac
                   6637: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6638:   (eval "$ac_link") 2>conftest.er1
                   6639:   ac_status=$?
                   6640:   grep -v '^ *+' conftest.er1 >conftest.err
                   6641:   rm -f conftest.er1
                   6642:   cat conftest.err >&5
                   6643:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     6644:   (exit $ac_status); } &&
        !          6645:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          6646:   { (case "(($ac_try" in
        !          6647:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6648:   *) ac_try_echo=$ac_try;;
        !          6649: esac
        !          6650: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6651:   (eval "$ac_try") 2>&5
        !          6652:   ac_status=$?
        !          6653:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6654:   (exit $ac_status); }; } &&
        !          6655:         { ac_try='test -s conftest$ac_exeext'
        !          6656:   { (case "(($ac_try" in
        !          6657:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6658:   *) ac_try_echo=$ac_try;;
        !          6659: esac
        !          6660: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6661:   (eval "$ac_try") 2>&5
        !          6662:   ac_status=$?
        !          6663:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6664:   (exit $ac_status); }; }; then
1.1.1.6   root     6665:   ac_cv_func_shmat=yes
                   6666: else
                   6667:   echo "$as_me: failed program was:" >&5
                   6668: sed 's/^/| /' conftest.$ac_ext >&5
                   6669: 
                   6670:        ac_cv_func_shmat=no
                   6671: fi
                   6672: 
1.1.1.8 ! root     6673: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     6674:       conftest$ac_exeext conftest.$ac_ext
                   6675: fi
                   6676: { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
                   6677: echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
                   6678: 
                   6679:     if test $ac_cv_func_shmat = no; then
                   6680:       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
                   6681: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
                   6682: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
                   6683:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6684: else
                   6685:   ac_check_lib_save_LIBS=$LIBS
                   6686: LIBS="-lipc  $LIBS"
                   6687: cat >conftest.$ac_ext <<_ACEOF
                   6688: /* confdefs.h.  */
                   6689: _ACEOF
                   6690: cat confdefs.h >>conftest.$ac_ext
                   6691: cat >>conftest.$ac_ext <<_ACEOF
                   6692: /* end confdefs.h.  */
                   6693: 
                   6694: /* Override any GCC internal prototype to avoid an error.
                   6695:    Use char because int might match the return type of a GCC
                   6696:    builtin and then its argument prototype would still apply.  */
                   6697: #ifdef __cplusplus
                   6698: extern "C"
                   6699: #endif
                   6700: char shmat ();
                   6701: int
                   6702: main ()
                   6703: {
                   6704: return shmat ();
                   6705:   ;
                   6706:   return 0;
                   6707: }
                   6708: _ACEOF
                   6709: rm -f conftest.$ac_objext conftest$ac_exeext
                   6710: if { (ac_try="$ac_link"
                   6711: case "(($ac_try" in
                   6712:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6713:   *) ac_try_echo=$ac_try;;
                   6714: esac
                   6715: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6716:   (eval "$ac_link") 2>conftest.er1
                   6717:   ac_status=$?
                   6718:   grep -v '^ *+' conftest.er1 >conftest.err
                   6719:   rm -f conftest.er1
                   6720:   cat conftest.err >&5
                   6721:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     6722:   (exit $ac_status); } &&
        !          6723:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          6724:   { (case "(($ac_try" in
        !          6725:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6726:   *) ac_try_echo=$ac_try;;
        !          6727: esac
        !          6728: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6729:   (eval "$ac_try") 2>&5
        !          6730:   ac_status=$?
        !          6731:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6732:   (exit $ac_status); }; } &&
        !          6733:         { ac_try='test -s conftest$ac_exeext'
        !          6734:   { (case "(($ac_try" in
        !          6735:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6736:   *) ac_try_echo=$ac_try;;
        !          6737: esac
        !          6738: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6739:   (eval "$ac_try") 2>&5
        !          6740:   ac_status=$?
        !          6741:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6742:   (exit $ac_status); }; }; then
1.1.1.6   root     6743:   ac_cv_lib_ipc_shmat=yes
                   6744: else
                   6745:   echo "$as_me: failed program was:" >&5
                   6746: sed 's/^/| /' conftest.$ac_ext >&5
                   6747: 
                   6748:        ac_cv_lib_ipc_shmat=no
                   6749: fi
                   6750: 
1.1.1.8 ! root     6751: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     6752:       conftest$ac_exeext conftest.$ac_ext
                   6753: LIBS=$ac_check_lib_save_LIBS
                   6754: fi
                   6755: { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
                   6756: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
                   6757: if test $ac_cv_lib_ipc_shmat = yes; then
                   6758:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   6759: fi
                   6760: 
                   6761:     fi
                   6762:   fi
                   6763: 
                   6764:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   6765:   ac_save_LDFLAGS=$LDFLAGS
                   6766:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   6767:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   6768:   # check for ICE first), but we must link in the order -lSM -lICE or
                   6769:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   6770:   # These have to be linked with before -lX11, unlike the other
                   6771:   # libraries we check for below, so use a different variable.
                   6772:   # John Interrante, Karl Berry
                   6773:   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
                   6774: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
                   6775: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
                   6776:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6777: else
                   6778:   ac_check_lib_save_LIBS=$LIBS
                   6779: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   6780: cat >conftest.$ac_ext <<_ACEOF
                   6781: /* confdefs.h.  */
                   6782: _ACEOF
                   6783: cat confdefs.h >>conftest.$ac_ext
                   6784: cat >>conftest.$ac_ext <<_ACEOF
                   6785: /* end confdefs.h.  */
                   6786: 
                   6787: /* Override any GCC internal prototype to avoid an error.
                   6788:    Use char because int might match the return type of a GCC
                   6789:    builtin and then its argument prototype would still apply.  */
                   6790: #ifdef __cplusplus
                   6791: extern "C"
                   6792: #endif
                   6793: char IceConnectionNumber ();
                   6794: int
                   6795: main ()
                   6796: {
                   6797: return IceConnectionNumber ();
                   6798:   ;
                   6799:   return 0;
                   6800: }
                   6801: _ACEOF
                   6802: rm -f conftest.$ac_objext conftest$ac_exeext
                   6803: if { (ac_try="$ac_link"
                   6804: case "(($ac_try" in
                   6805:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6806:   *) ac_try_echo=$ac_try;;
                   6807: esac
                   6808: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6809:   (eval "$ac_link") 2>conftest.er1
                   6810:   ac_status=$?
                   6811:   grep -v '^ *+' conftest.er1 >conftest.err
                   6812:   rm -f conftest.er1
                   6813:   cat conftest.err >&5
                   6814:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     6815:   (exit $ac_status); } &&
        !          6816:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          6817:   { (case "(($ac_try" in
        !          6818:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6819:   *) ac_try_echo=$ac_try;;
        !          6820: esac
        !          6821: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6822:   (eval "$ac_try") 2>&5
        !          6823:   ac_status=$?
        !          6824:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6825:   (exit $ac_status); }; } &&
        !          6826:         { ac_try='test -s conftest$ac_exeext'
        !          6827:   { (case "(($ac_try" in
        !          6828:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6829:   *) ac_try_echo=$ac_try;;
        !          6830: esac
        !          6831: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6832:   (eval "$ac_try") 2>&5
        !          6833:   ac_status=$?
        !          6834:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6835:   (exit $ac_status); }; }; then
1.1.1.6   root     6836:   ac_cv_lib_ICE_IceConnectionNumber=yes
                   6837: else
                   6838:   echo "$as_me: failed program was:" >&5
                   6839: sed 's/^/| /' conftest.$ac_ext >&5
                   6840: 
                   6841:        ac_cv_lib_ICE_IceConnectionNumber=no
                   6842: fi
                   6843: 
1.1.1.8 ! root     6844: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     6845:       conftest$ac_exeext conftest.$ac_ext
                   6846: LIBS=$ac_check_lib_save_LIBS
                   6847: fi
                   6848: { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   6849: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
                   6850: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
                   6851:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   6852: fi
                   6853: 
                   6854:   LDFLAGS=$ac_save_LDFLAGS
                   6855: 
                   6856: fi
                   6857: 
                   6858: fi
                   6859: if test "x$with_x" = xno; then
                   6860:   no_x=yes
                   6861: fi
                   6862: if test "x${no_x}" = "xyes"; then
                   6863:   { echo "$as_me:$LINENO: No X11, disabled Hatari embedding support" >&5
                   6864: echo "$as_me: No X11, disabled Hatari embedding support" >&6;}
                   6865: else
                   6866: 
                   6867: cat >>confdefs.h <<\_ACEOF
                   6868: #define HAVE_X11 1
                   6869: _ACEOF
                   6870: 
                   6871: fi
                   6872: 
                   6873: CPPFLAGS="${CPPFLAGS} ${INCL}"
                   6874: 
                   6875: 
                   6876: 
                   6877: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
                   6878: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
                   6879: if test "${ac_cv_header_stdc+set}" = set; then
                   6880:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6881: else
                   6882:   cat >conftest.$ac_ext <<_ACEOF
                   6883: /* confdefs.h.  */
                   6884: _ACEOF
                   6885: cat confdefs.h >>conftest.$ac_ext
                   6886: cat >>conftest.$ac_ext <<_ACEOF
                   6887: /* end confdefs.h.  */
                   6888: #include <stdlib.h>
                   6889: #include <stdarg.h>
                   6890: #include <string.h>
                   6891: #include <float.h>
                   6892: 
                   6893: int
                   6894: main ()
                   6895: {
                   6896: 
                   6897:   ;
                   6898:   return 0;
                   6899: }
                   6900: _ACEOF
                   6901: rm -f conftest.$ac_objext
                   6902: if { (ac_try="$ac_compile"
                   6903: case "(($ac_try" in
                   6904:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6905:   *) ac_try_echo=$ac_try;;
                   6906: esac
                   6907: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6908:   (eval "$ac_compile") 2>conftest.er1
                   6909:   ac_status=$?
                   6910:   grep -v '^ *+' conftest.er1 >conftest.err
                   6911:   rm -f conftest.er1
                   6912:   cat conftest.err >&5
                   6913:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     6914:   (exit $ac_status); } &&
        !          6915:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          6916:   { (case "(($ac_try" in
        !          6917:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6918:   *) ac_try_echo=$ac_try;;
        !          6919: esac
        !          6920: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6921:   (eval "$ac_try") 2>&5
        !          6922:   ac_status=$?
        !          6923:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6924:   (exit $ac_status); }; } &&
        !          6925:         { ac_try='test -s conftest.$ac_objext'
        !          6926:   { (case "(($ac_try" in
        !          6927:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          6928:   *) ac_try_echo=$ac_try;;
        !          6929: esac
        !          6930: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          6931:   (eval "$ac_try") 2>&5
        !          6932:   ac_status=$?
        !          6933:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          6934:   (exit $ac_status); }; }; then
1.1.1.6   root     6935:   ac_cv_header_stdc=yes
                   6936: else
                   6937:   echo "$as_me: failed program was:" >&5
                   6938: sed 's/^/| /' conftest.$ac_ext >&5
                   6939: 
                   6940:        ac_cv_header_stdc=no
                   6941: fi
                   6942: 
                   6943: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6944: 
                   6945: if test $ac_cv_header_stdc = yes; then
                   6946:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   6947:   cat >conftest.$ac_ext <<_ACEOF
                   6948: /* confdefs.h.  */
                   6949: _ACEOF
                   6950: cat confdefs.h >>conftest.$ac_ext
                   6951: cat >>conftest.$ac_ext <<_ACEOF
                   6952: /* end confdefs.h.  */
                   6953: #include <string.h>
                   6954: 
                   6955: _ACEOF
                   6956: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6957:   $EGREP "memchr" >/dev/null 2>&1; then
                   6958:   :
                   6959: else
                   6960:   ac_cv_header_stdc=no
                   6961: fi
                   6962: rm -f conftest*
                   6963: 
                   6964: fi
                   6965: 
                   6966: if test $ac_cv_header_stdc = yes; then
                   6967:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   6968:   cat >conftest.$ac_ext <<_ACEOF
                   6969: /* confdefs.h.  */
                   6970: _ACEOF
                   6971: cat confdefs.h >>conftest.$ac_ext
                   6972: cat >>conftest.$ac_ext <<_ACEOF
                   6973: /* end confdefs.h.  */
                   6974: #include <stdlib.h>
                   6975: 
                   6976: _ACEOF
                   6977: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6978:   $EGREP "free" >/dev/null 2>&1; then
                   6979:   :
                   6980: else
                   6981:   ac_cv_header_stdc=no
                   6982: fi
                   6983: rm -f conftest*
                   6984: 
                   6985: fi
                   6986: 
                   6987: if test $ac_cv_header_stdc = yes; then
                   6988:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   6989:   if test "$cross_compiling" = yes; then
                   6990:   :
                   6991: else
                   6992:   cat >conftest.$ac_ext <<_ACEOF
                   6993: /* confdefs.h.  */
                   6994: _ACEOF
                   6995: cat confdefs.h >>conftest.$ac_ext
                   6996: cat >>conftest.$ac_ext <<_ACEOF
1.1.1.3   root     6997: /* end confdefs.h.  */
1.1.1.6   root     6998: #include <ctype.h>
                   6999: #include <stdlib.h>
                   7000: #if ((' ' & 0x0FF) == 0x020)
                   7001: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   7002: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   7003: #else
                   7004: # define ISLOWER(c) \
                   7005:                   (('a' <= (c) && (c) <= 'i') \
                   7006:                     || ('j' <= (c) && (c) <= 'r') \
                   7007:                     || ('s' <= (c) && (c) <= 'z'))
                   7008: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   7009: #endif
1.1       root     7010: 
1.1.1.6   root     7011: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       root     7012: int
                   7013: main ()
                   7014: {
1.1.1.6   root     7015:   int i;
                   7016:   for (i = 0; i < 256; i++)
                   7017:     if (XOR (islower (i), ISLOWER (i))
                   7018:        || toupper (i) != TOUPPER (i))
                   7019:       return 2;
1.1       root     7020:   return 0;
                   7021: }
                   7022: _ACEOF
1.1.1.6   root     7023: rm -f conftest$ac_exeext
                   7024: if { (ac_try="$ac_link"
                   7025: case "(($ac_try" in
                   7026:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   7027:   *) ac_try_echo=$ac_try;;
                   7028: esac
                   7029: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   7030:   (eval "$ac_link") 2>&5
1.1.1.3   root     7031:   ac_status=$?
                   7032:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.6   root     7033:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   7034:   { (case "(($ac_try" in
                   7035:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   7036:   *) ac_try_echo=$ac_try;;
                   7037: esac
                   7038: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   7039:   (eval "$ac_try") 2>&5
1.1       root     7040:   ac_status=$?
                   7041:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   7042:   (exit $ac_status); }; }; then
1.1.1.6   root     7043:   :
1.1       root     7044: else
1.1.1.6   root     7045:   echo "$as_me: program exited with status $ac_status" >&5
                   7046: echo "$as_me: failed program was:" >&5
1.1.1.3   root     7047: sed 's/^/| /' conftest.$ac_ext >&5
                   7048: 
1.1.1.6   root     7049: ( exit $ac_status )
                   7050: ac_cv_header_stdc=no
                   7051: fi
                   7052: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   7053: fi
                   7054: 
                   7055: 
1.1       root     7056: fi
                   7057: fi
1.1.1.6   root     7058: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
                   7059: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
                   7060: if test $ac_cv_header_stdc = yes; then
                   7061: 
                   7062: cat >>confdefs.h <<\_ACEOF
                   7063: #define STDC_HEADERS 1
1.1       root     7064: _ACEOF
                   7065: 
                   7066: fi
                   7067: 
1.1.1.6   root     7068: 
                   7069: 
                   7070: 
                   7071: 
                   7072: 
                   7073: ac_header_dirent=no
                   7074: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   7075:   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   7076: { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
                   7077: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
                   7078: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1       root     7079:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7080: else
1.1.1.6   root     7081:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     7082: /* confdefs.h.  */
                   7083: _ACEOF
                   7084: cat confdefs.h >>conftest.$ac_ext
                   7085: cat >>conftest.$ac_ext <<_ACEOF
                   7086: /* end confdefs.h.  */
1.1.1.6   root     7087: #include <sys/types.h>
                   7088: #include <$ac_hdr>
1.1       root     7089: 
                   7090: int
                   7091: main ()
                   7092: {
1.1.1.6   root     7093: if ((DIR *) 0)
                   7094: return 0;
1.1       root     7095:   ;
                   7096:   return 0;
                   7097: }
                   7098: _ACEOF
1.1.1.6   root     7099: rm -f conftest.$ac_objext
                   7100: if { (ac_try="$ac_compile"
                   7101: case "(($ac_try" in
                   7102:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   7103:   *) ac_try_echo=$ac_try;;
                   7104: esac
                   7105: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   7106:   (eval "$ac_compile") 2>conftest.er1
1.1       root     7107:   ac_status=$?
1.1.1.3   root     7108:   grep -v '^ *+' conftest.er1 >conftest.err
                   7109:   rm -f conftest.er1
                   7110:   cat conftest.err >&5
1.1       root     7111:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     7112:   (exit $ac_status); } &&
        !          7113:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          7114:   { (case "(($ac_try" in
        !          7115:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7116:   *) ac_try_echo=$ac_try;;
        !          7117: esac
        !          7118: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7119:   (eval "$ac_try") 2>&5
        !          7120:   ac_status=$?
        !          7121:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7122:   (exit $ac_status); }; } &&
        !          7123:         { ac_try='test -s conftest.$ac_objext'
        !          7124:   { (case "(($ac_try" in
        !          7125:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7126:   *) ac_try_echo=$ac_try;;
        !          7127: esac
        !          7128: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7129:   (eval "$ac_try") 2>&5
        !          7130:   ac_status=$?
        !          7131:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7132:   (exit $ac_status); }; }; then
1.1.1.6   root     7133:   eval "$as_ac_Header=yes"
1.1       root     7134: else
                   7135:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     7136: sed 's/^/| /' conftest.$ac_ext >&5
                   7137: 
1.1.1.6   root     7138:        eval "$as_ac_Header=no"
1.1       root     7139: fi
1.1.1.6   root     7140: 
                   7141: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7142: fi
                   7143: ac_res=`eval echo '${'$as_ac_Header'}'`
                   7144:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   7145: echo "${ECHO_T}$ac_res" >&6; }
                   7146: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   7147:   cat >>confdefs.h <<_ACEOF
                   7148: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   7149: _ACEOF
                   7150: 
                   7151: ac_header_dirent=$ac_hdr; break
                   7152: fi
                   7153: 
                   7154: done
                   7155: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   7156: if test $ac_header_dirent = dirent.h; then
                   7157:   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
                   7158: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
                   7159: if test "${ac_cv_search_opendir+set}" = set; then
                   7160:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7161: else
                   7162:   ac_func_search_save_LIBS=$LIBS
                   7163: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     7164: /* confdefs.h.  */
                   7165: _ACEOF
                   7166: cat confdefs.h >>conftest.$ac_ext
                   7167: cat >>conftest.$ac_ext <<_ACEOF
                   7168: /* end confdefs.h.  */
1.1       root     7169: 
1.1.1.6   root     7170: /* Override any GCC internal prototype to avoid an error.
                   7171:    Use char because int might match the return type of a GCC
                   7172:    builtin and then its argument prototype would still apply.  */
1.1       root     7173: #ifdef __cplusplus
                   7174: extern "C"
                   7175: #endif
                   7176: char opendir ();
                   7177: int
                   7178: main ()
                   7179: {
1.1.1.6   root     7180: return opendir ();
1.1       root     7181:   ;
                   7182:   return 0;
                   7183: }
                   7184: _ACEOF
1.1.1.6   root     7185: for ac_lib in '' dir; do
                   7186:   if test -z "$ac_lib"; then
                   7187:     ac_res="none required"
                   7188:   else
                   7189:     ac_res=-l$ac_lib
                   7190:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   7191:   fi
                   7192:   rm -f conftest.$ac_objext conftest$ac_exeext
                   7193: if { (ac_try="$ac_link"
                   7194: case "(($ac_try" in
                   7195:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   7196:   *) ac_try_echo=$ac_try;;
                   7197: esac
                   7198: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   7199:   (eval "$ac_link") 2>conftest.er1
1.1       root     7200:   ac_status=$?
1.1.1.3   root     7201:   grep -v '^ *+' conftest.er1 >conftest.err
                   7202:   rm -f conftest.er1
                   7203:   cat conftest.err >&5
1.1       root     7204:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     7205:   (exit $ac_status); } &&
        !          7206:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          7207:   { (case "(($ac_try" in
        !          7208:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7209:   *) ac_try_echo=$ac_try;;
        !          7210: esac
        !          7211: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7212:   (eval "$ac_try") 2>&5
        !          7213:   ac_status=$?
        !          7214:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7215:   (exit $ac_status); }; } &&
        !          7216:         { ac_try='test -s conftest$ac_exeext'
        !          7217:   { (case "(($ac_try" in
        !          7218:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7219:   *) ac_try_echo=$ac_try;;
        !          7220: esac
        !          7221: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7222:   (eval "$ac_try") 2>&5
        !          7223:   ac_status=$?
        !          7224:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7225:   (exit $ac_status); }; }; then
1.1.1.6   root     7226:   ac_cv_search_opendir=$ac_res
1.1       root     7227: else
                   7228:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     7229: sed 's/^/| /' conftest.$ac_ext >&5
                   7230: 
1.1.1.6   root     7231: 
1.1       root     7232: fi
1.1.1.6   root     7233: 
1.1.1.8 ! root     7234: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     7235:       conftest$ac_exeext
                   7236:   if test "${ac_cv_search_opendir+set}" = set; then
                   7237:   break
                   7238: fi
                   7239: done
                   7240: if test "${ac_cv_search_opendir+set}" = set; then
                   7241:   :
                   7242: else
                   7243:   ac_cv_search_opendir=no
1.1       root     7244: fi
1.1.1.6   root     7245: rm conftest.$ac_ext
1.1       root     7246: LIBS=$ac_func_search_save_LIBS
                   7247: fi
1.1.1.6   root     7248: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
                   7249: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
                   7250: ac_res=$ac_cv_search_opendir
                   7251: if test "$ac_res" != no; then
                   7252:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       root     7253: 
                   7254: fi
                   7255: 
                   7256: else
1.1.1.6   root     7257:   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
                   7258: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.1       root     7259: if test "${ac_cv_search_opendir+set}" = set; then
                   7260:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7261: else
                   7262:   ac_func_search_save_LIBS=$LIBS
                   7263: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     7264: /* confdefs.h.  */
                   7265: _ACEOF
                   7266: cat confdefs.h >>conftest.$ac_ext
                   7267: cat >>conftest.$ac_ext <<_ACEOF
                   7268: /* end confdefs.h.  */
1.1       root     7269: 
1.1.1.6   root     7270: /* Override any GCC internal prototype to avoid an error.
                   7271:    Use char because int might match the return type of a GCC
                   7272:    builtin and then its argument prototype would still apply.  */
1.1       root     7273: #ifdef __cplusplus
                   7274: extern "C"
                   7275: #endif
                   7276: char opendir ();
                   7277: int
                   7278: main ()
                   7279: {
1.1.1.6   root     7280: return opendir ();
1.1       root     7281:   ;
                   7282:   return 0;
                   7283: }
                   7284: _ACEOF
1.1.1.6   root     7285: for ac_lib in '' x; do
                   7286:   if test -z "$ac_lib"; then
                   7287:     ac_res="none required"
                   7288:   else
                   7289:     ac_res=-l$ac_lib
                   7290:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   7291:   fi
                   7292:   rm -f conftest.$ac_objext conftest$ac_exeext
                   7293: if { (ac_try="$ac_link"
                   7294: case "(($ac_try" in
                   7295:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   7296:   *) ac_try_echo=$ac_try;;
                   7297: esac
                   7298: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   7299:   (eval "$ac_link") 2>conftest.er1
1.1       root     7300:   ac_status=$?
1.1.1.3   root     7301:   grep -v '^ *+' conftest.er1 >conftest.err
                   7302:   rm -f conftest.er1
                   7303:   cat conftest.err >&5
1.1       root     7304:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     7305:   (exit $ac_status); } &&
        !          7306:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          7307:   { (case "(($ac_try" in
        !          7308:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7309:   *) ac_try_echo=$ac_try;;
        !          7310: esac
        !          7311: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7312:   (eval "$ac_try") 2>&5
        !          7313:   ac_status=$?
        !          7314:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7315:   (exit $ac_status); }; } &&
        !          7316:         { ac_try='test -s conftest$ac_exeext'
        !          7317:   { (case "(($ac_try" in
        !          7318:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7319:   *) ac_try_echo=$ac_try;;
        !          7320: esac
        !          7321: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7322:   (eval "$ac_try") 2>&5
        !          7323:   ac_status=$?
        !          7324:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7325:   (exit $ac_status); }; }; then
1.1.1.6   root     7326:   ac_cv_search_opendir=$ac_res
1.1       root     7327: else
                   7328:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     7329: sed 's/^/| /' conftest.$ac_ext >&5
                   7330: 
1.1       root     7331: 
1.1.1.6   root     7332: fi
1.1.1.3   root     7333: 
1.1.1.8 ! root     7334: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     7335:       conftest$ac_exeext
                   7336:   if test "${ac_cv_search_opendir+set}" = set; then
                   7337:   break
1.1       root     7338: fi
1.1.1.6   root     7339: done
                   7340: if test "${ac_cv_search_opendir+set}" = set; then
                   7341:   :
                   7342: else
                   7343:   ac_cv_search_opendir=no
1.1       root     7344: fi
1.1.1.6   root     7345: rm conftest.$ac_ext
1.1       root     7346: LIBS=$ac_func_search_save_LIBS
                   7347: fi
1.1.1.6   root     7348: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
                   7349: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
                   7350: ac_res=$ac_cv_search_opendir
                   7351: if test "$ac_res" != no; then
                   7352:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       root     7353: 
                   7354: fi
                   7355: 
                   7356: fi
                   7357: 
                   7358: 
                   7359: 
                   7360: 
1.1.1.6   root     7361: for ac_header in unistd.h zlib.h
1.1       root     7362: do
                   7363: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.6   root     7364: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   7365:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   7366: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   7367: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1       root     7368:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6   root     7369: fi
                   7370: ac_res=`eval echo '${'$as_ac_Header'}'`
                   7371:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   7372: echo "${ECHO_T}$ac_res" >&6; }
1.1       root     7373: else
1.1.1.6   root     7374:   # Is the header compilable?
                   7375: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   7376: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   7377: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     7378: /* confdefs.h.  */
                   7379: _ACEOF
                   7380: cat confdefs.h >>conftest.$ac_ext
                   7381: cat >>conftest.$ac_ext <<_ACEOF
                   7382: /* end confdefs.h.  */
1.1       root     7383: $ac_includes_default
                   7384: #include <$ac_header>
                   7385: _ACEOF
                   7386: rm -f conftest.$ac_objext
1.1.1.6   root     7387: if { (ac_try="$ac_compile"
                   7388: case "(($ac_try" in
                   7389:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   7390:   *) ac_try_echo=$ac_try;;
                   7391: esac
                   7392: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1.1.8 ! root     7393:   (eval "$ac_compile") 2>conftest.er1
        !          7394:   ac_status=$?
        !          7395:   grep -v '^ *+' conftest.er1 >conftest.err
        !          7396:   rm -f conftest.er1
        !          7397:   cat conftest.err >&5
        !          7398:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7399:   (exit $ac_status); } &&
        !          7400:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          7401:   { (case "(($ac_try" in
        !          7402:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7403:   *) ac_try_echo=$ac_try;;
        !          7404: esac
        !          7405: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7406:   (eval "$ac_try") 2>&5
        !          7407:   ac_status=$?
        !          7408:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7409:   (exit $ac_status); }; } &&
        !          7410:         { ac_try='test -s conftest.$ac_objext'
        !          7411:   { (case "(($ac_try" in
        !          7412:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7413:   *) ac_try_echo=$ac_try;;
        !          7414: esac
        !          7415: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7416:   (eval "$ac_try") 2>&5
1.1       root     7417:   ac_status=$?
                   7418:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     7419:   (exit $ac_status); }; }; then
1.1.1.6   root     7420:   ac_header_compiler=yes
                   7421: else
                   7422:   echo "$as_me: failed program was:" >&5
                   7423: sed 's/^/| /' conftest.$ac_ext >&5
                   7424: 
                   7425:        ac_header_compiler=no
                   7426: fi
                   7427: 
                   7428: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7429: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   7430: echo "${ECHO_T}$ac_header_compiler" >&6; }
                   7431: 
                   7432: # Is the header present?
                   7433: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   7434: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   7435: cat >conftest.$ac_ext <<_ACEOF
                   7436: /* confdefs.h.  */
                   7437: _ACEOF
                   7438: cat confdefs.h >>conftest.$ac_ext
                   7439: cat >>conftest.$ac_ext <<_ACEOF
                   7440: /* end confdefs.h.  */
                   7441: #include <$ac_header>
                   7442: _ACEOF
                   7443: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   7444: case "(($ac_try" in
                   7445:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   7446:   *) ac_try_echo=$ac_try;;
                   7447: esac
                   7448: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   7449:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1       root     7450:   ac_status=$?
1.1.1.6   root     7451:   grep -v '^ *+' conftest.er1 >conftest.err
                   7452:   rm -f conftest.er1
                   7453:   cat conftest.err >&5
1.1       root     7454:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     7455:   (exit $ac_status); } >/dev/null; then
        !          7456:   if test -s conftest.err; then
        !          7457:     ac_cpp_err=$ac_c_preproc_warn_flag
        !          7458:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
        !          7459:   else
        !          7460:     ac_cpp_err=
        !          7461:   fi
        !          7462: else
        !          7463:   ac_cpp_err=yes
        !          7464: fi
        !          7465: if test -z "$ac_cpp_err"; then
1.1.1.6   root     7466:   ac_header_preproc=yes
1.1       root     7467: else
                   7468:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     7469: sed 's/^/| /' conftest.$ac_ext >&5
                   7470: 
1.1.1.6   root     7471:   ac_header_preproc=no
                   7472: fi
                   7473: 
                   7474: rm -f conftest.err conftest.$ac_ext
                   7475: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   7476: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   7477: 
                   7478: # So?  What about this header?
                   7479: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   7480:   yes:no: )
                   7481:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   7482: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   7483:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   7484: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   7485:     ac_header_preproc=yes
                   7486:     ;;
                   7487:   no:yes:* )
                   7488:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   7489: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   7490:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   7491: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   7492:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   7493: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   7494:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   7495: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   7496:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   7497: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   7498:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   7499: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
                   7500: 
                   7501:     ;;
                   7502: esac
                   7503: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   7504: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   7505: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   7506:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7507: else
                   7508:   eval "$as_ac_Header=\$ac_header_preproc"
1.1       root     7509: fi
1.1.1.6   root     7510: ac_res=`eval echo '${'$as_ac_Header'}'`
                   7511:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   7512: echo "${ECHO_T}$ac_res" >&6; }
                   7513: 
1.1       root     7514: fi
                   7515: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   7516:   cat >>confdefs.h <<_ACEOF
                   7517: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   7518: _ACEOF
                   7519: 
1.1.1.6   root     7520: else
                   7521:   { { echo "$as_me:$LINENO: error: header file not found!" >&5
                   7522: echo "$as_me: error: header file not found!" >&2;}
                   7523:    { (exit 1); exit 1; }; }
1.1       root     7524: fi
                   7525: 
                   7526: done
                   7527: 
                   7528: 
                   7529: 
1.1.1.6   root     7530: for ac_header in termios.h glob.h
1.1       root     7531: do
                   7532: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.6   root     7533: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   7534:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   7535: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   7536: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1       root     7537:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7538: fi
1.1.1.6   root     7539: ac_res=`eval echo '${'$as_ac_Header'}'`
                   7540:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   7541: echo "${ECHO_T}$ac_res" >&6; }
1.1       root     7542: else
                   7543:   # Is the header compilable?
1.1.1.6   root     7544: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   7545: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1       root     7546: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     7547: /* confdefs.h.  */
                   7548: _ACEOF
                   7549: cat confdefs.h >>conftest.$ac_ext
                   7550: cat >>conftest.$ac_ext <<_ACEOF
                   7551: /* end confdefs.h.  */
1.1       root     7552: $ac_includes_default
                   7553: #include <$ac_header>
                   7554: _ACEOF
                   7555: rm -f conftest.$ac_objext
1.1.1.6   root     7556: if { (ac_try="$ac_compile"
                   7557: case "(($ac_try" in
                   7558:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   7559:   *) ac_try_echo=$ac_try;;
                   7560: esac
                   7561: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   7562:   (eval "$ac_compile") 2>conftest.er1
1.1       root     7563:   ac_status=$?
1.1.1.3   root     7564:   grep -v '^ *+' conftest.er1 >conftest.err
                   7565:   rm -f conftest.er1
                   7566:   cat conftest.err >&5
1.1       root     7567:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     7568:   (exit $ac_status); } &&
        !          7569:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          7570:   { (case "(($ac_try" in
        !          7571:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7572:   *) ac_try_echo=$ac_try;;
        !          7573: esac
        !          7574: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7575:   (eval "$ac_try") 2>&5
        !          7576:   ac_status=$?
        !          7577:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7578:   (exit $ac_status); }; } &&
        !          7579:         { ac_try='test -s conftest.$ac_objext'
        !          7580:   { (case "(($ac_try" in
        !          7581:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7582:   *) ac_try_echo=$ac_try;;
        !          7583: esac
        !          7584: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7585:   (eval "$ac_try") 2>&5
        !          7586:   ac_status=$?
        !          7587:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7588:   (exit $ac_status); }; }; then
1.1       root     7589:   ac_header_compiler=yes
                   7590: else
                   7591:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     7592: sed 's/^/| /' conftest.$ac_ext >&5
                   7593: 
1.1.1.6   root     7594:        ac_header_compiler=no
1.1       root     7595: fi
1.1.1.6   root     7596: 
                   7597: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7598: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   7599: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1       root     7600: 
                   7601: # Is the header present?
1.1.1.6   root     7602: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   7603: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1       root     7604: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     7605: /* confdefs.h.  */
                   7606: _ACEOF
                   7607: cat confdefs.h >>conftest.$ac_ext
                   7608: cat >>conftest.$ac_ext <<_ACEOF
                   7609: /* end confdefs.h.  */
1.1       root     7610: #include <$ac_header>
                   7611: _ACEOF
1.1.1.6   root     7612: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   7613: case "(($ac_try" in
                   7614:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   7615:   *) ac_try_echo=$ac_try;;
                   7616: esac
                   7617: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   7618:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1       root     7619:   ac_status=$?
1.1.1.3   root     7620:   grep -v '^ *+' conftest.er1 >conftest.err
1.1       root     7621:   rm -f conftest.er1
                   7622:   cat conftest.err >&5
                   7623:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     7624:   (exit $ac_status); } >/dev/null; then
        !          7625:   if test -s conftest.err; then
        !          7626:     ac_cpp_err=$ac_c_preproc_warn_flag
        !          7627:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
        !          7628:   else
        !          7629:     ac_cpp_err=
        !          7630:   fi
        !          7631: else
        !          7632:   ac_cpp_err=yes
        !          7633: fi
        !          7634: if test -z "$ac_cpp_err"; then
1.1       root     7635:   ac_header_preproc=yes
                   7636: else
                   7637:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     7638: sed 's/^/| /' conftest.$ac_ext >&5
                   7639: 
1.1       root     7640:   ac_header_preproc=no
                   7641: fi
1.1.1.6   root     7642: 
1.1       root     7643: rm -f conftest.err conftest.$ac_ext
1.1.1.6   root     7644: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   7645: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1       root     7646: 
                   7647: # So?  What about this header?
1.1.1.3   root     7648: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   7649:   yes:no: )
1.1       root     7650:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   7651: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.3   root     7652:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   7653: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   7654:     ac_header_preproc=yes
                   7655:     ;;
                   7656:   no:yes:* )
1.1       root     7657:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   7658: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.3   root     7659:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   7660: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   7661:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   7662: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   7663:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   7664: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
1.1       root     7665:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
1.1.1.3   root     7666: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   7667:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   7668: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.6   root     7669: 
1.1.1.3   root     7670:     ;;
1.1       root     7671: esac
1.1.1.6   root     7672: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   7673: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   7674: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1       root     7675:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7676: else
1.1.1.3   root     7677:   eval "$as_ac_Header=\$ac_header_preproc"
1.1       root     7678: fi
1.1.1.6   root     7679: ac_res=`eval echo '${'$as_ac_Header'}'`
                   7680:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   7681: echo "${ECHO_T}$ac_res" >&6; }
1.1       root     7682: 
                   7683: fi
                   7684: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   7685:   cat >>confdefs.h <<_ACEOF
                   7686: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   7687: _ACEOF
                   7688: 
                   7689: fi
                   7690: 
                   7691: done
                   7692: 
                   7693: 
1.1.1.6   root     7694: { echo "$as_me:$LINENO: checking for mode_t" >&5
                   7695: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
1.1       root     7696: if test "${ac_cv_type_mode_t+set}" = set; then
                   7697:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7698: else
                   7699:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     7700: /* confdefs.h.  */
                   7701: _ACEOF
                   7702: cat confdefs.h >>conftest.$ac_ext
                   7703: cat >>conftest.$ac_ext <<_ACEOF
                   7704: /* end confdefs.h.  */
1.1       root     7705: $ac_includes_default
1.1.1.6   root     7706: typedef mode_t ac__type_new_;
1.1       root     7707: int
                   7708: main ()
                   7709: {
1.1.1.6   root     7710: if ((ac__type_new_ *) 0)
1.1       root     7711:   return 0;
1.1.1.6   root     7712: if (sizeof (ac__type_new_))
1.1       root     7713:   return 0;
                   7714:   ;
                   7715:   return 0;
                   7716: }
                   7717: _ACEOF
                   7718: rm -f conftest.$ac_objext
1.1.1.6   root     7719: if { (ac_try="$ac_compile"
                   7720: case "(($ac_try" in
                   7721:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   7722:   *) ac_try_echo=$ac_try;;
                   7723: esac
                   7724: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   7725:   (eval "$ac_compile") 2>conftest.er1
1.1       root     7726:   ac_status=$?
1.1.1.3   root     7727:   grep -v '^ *+' conftest.er1 >conftest.err
                   7728:   rm -f conftest.er1
                   7729:   cat conftest.err >&5
1.1       root     7730:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     7731:   (exit $ac_status); } &&
        !          7732:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          7733:   { (case "(($ac_try" in
        !          7734:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7735:   *) ac_try_echo=$ac_try;;
        !          7736: esac
        !          7737: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7738:   (eval "$ac_try") 2>&5
        !          7739:   ac_status=$?
        !          7740:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7741:   (exit $ac_status); }; } &&
        !          7742:         { ac_try='test -s conftest.$ac_objext'
        !          7743:   { (case "(($ac_try" in
        !          7744:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7745:   *) ac_try_echo=$ac_try;;
        !          7746: esac
        !          7747: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7748:   (eval "$ac_try") 2>&5
        !          7749:   ac_status=$?
        !          7750:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7751:   (exit $ac_status); }; }; then
1.1       root     7752:   ac_cv_type_mode_t=yes
                   7753: else
                   7754:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     7755: sed 's/^/| /' conftest.$ac_ext >&5
                   7756: 
1.1.1.6   root     7757:        ac_cv_type_mode_t=no
1.1       root     7758: fi
1.1.1.6   root     7759: 
                   7760: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       root     7761: fi
1.1.1.6   root     7762: { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
                   7763: echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
1.1       root     7764: if test $ac_cv_type_mode_t = yes; then
                   7765:   :
                   7766: else
                   7767: 
                   7768: cat >>confdefs.h <<_ACEOF
                   7769: #define mode_t int
                   7770: _ACEOF
                   7771: 
                   7772: fi
                   7773: 
1.1.1.6   root     7774: { echo "$as_me:$LINENO: checking for size_t" >&5
                   7775: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
1.1       root     7776: if test "${ac_cv_type_size_t+set}" = set; then
                   7777:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7778: else
                   7779:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     7780: /* confdefs.h.  */
                   7781: _ACEOF
                   7782: cat confdefs.h >>conftest.$ac_ext
                   7783: cat >>conftest.$ac_ext <<_ACEOF
                   7784: /* end confdefs.h.  */
1.1       root     7785: $ac_includes_default
1.1.1.6   root     7786: typedef size_t ac__type_new_;
1.1       root     7787: int
                   7788: main ()
                   7789: {
1.1.1.6   root     7790: if ((ac__type_new_ *) 0)
1.1       root     7791:   return 0;
1.1.1.6   root     7792: if (sizeof (ac__type_new_))
1.1       root     7793:   return 0;
                   7794:   ;
                   7795:   return 0;
                   7796: }
                   7797: _ACEOF
                   7798: rm -f conftest.$ac_objext
1.1.1.6   root     7799: if { (ac_try="$ac_compile"
                   7800: case "(($ac_try" in
                   7801:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   7802:   *) ac_try_echo=$ac_try;;
                   7803: esac
                   7804: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   7805:   (eval "$ac_compile") 2>conftest.er1
1.1       root     7806:   ac_status=$?
1.1.1.3   root     7807:   grep -v '^ *+' conftest.er1 >conftest.err
                   7808:   rm -f conftest.er1
                   7809:   cat conftest.err >&5
1.1       root     7810:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     7811:   (exit $ac_status); } &&
        !          7812:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          7813:   { (case "(($ac_try" in
        !          7814:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7815:   *) ac_try_echo=$ac_try;;
        !          7816: esac
        !          7817: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7818:   (eval "$ac_try") 2>&5
        !          7819:   ac_status=$?
        !          7820:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7821:   (exit $ac_status); }; } &&
        !          7822:         { ac_try='test -s conftest.$ac_objext'
        !          7823:   { (case "(($ac_try" in
        !          7824:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7825:   *) ac_try_echo=$ac_try;;
        !          7826: esac
        !          7827: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7828:   (eval "$ac_try") 2>&5
        !          7829:   ac_status=$?
        !          7830:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7831:   (exit $ac_status); }; }; then
1.1       root     7832:   ac_cv_type_size_t=yes
                   7833: else
                   7834:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     7835: sed 's/^/| /' conftest.$ac_ext >&5
                   7836: 
1.1.1.6   root     7837:        ac_cv_type_size_t=no
1.1       root     7838: fi
1.1.1.6   root     7839: 
                   7840: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       root     7841: fi
1.1.1.6   root     7842: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
                   7843: echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
1.1       root     7844: if test $ac_cv_type_size_t = yes; then
                   7845:   :
                   7846: else
                   7847: 
                   7848: cat >>confdefs.h <<_ACEOF
1.1.1.6   root     7849: #define size_t unsigned int
1.1       root     7850: _ACEOF
                   7851: 
                   7852: fi
                   7853: 
                   7854: 
1.1.1.6   root     7855: { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
                   7856: echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
1.1       root     7857: if test "${ac_cv_struct_tm+set}" = set; then
                   7858:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7859: else
                   7860:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     7861: /* confdefs.h.  */
                   7862: _ACEOF
                   7863: cat confdefs.h >>conftest.$ac_ext
                   7864: cat >>conftest.$ac_ext <<_ACEOF
                   7865: /* end confdefs.h.  */
1.1       root     7866: #include <sys/types.h>
                   7867: #include <time.h>
                   7868: 
                   7869: int
                   7870: main ()
                   7871: {
1.1.1.8 ! root     7872: struct tm *tp; tp->tm_sec;
1.1       root     7873:   ;
                   7874:   return 0;
                   7875: }
                   7876: _ACEOF
                   7877: rm -f conftest.$ac_objext
1.1.1.6   root     7878: if { (ac_try="$ac_compile"
                   7879: case "(($ac_try" in
                   7880:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   7881:   *) ac_try_echo=$ac_try;;
                   7882: esac
                   7883: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   7884:   (eval "$ac_compile") 2>conftest.er1
1.1       root     7885:   ac_status=$?
1.1.1.3   root     7886:   grep -v '^ *+' conftest.er1 >conftest.err
                   7887:   rm -f conftest.er1
                   7888:   cat conftest.err >&5
1.1       root     7889:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     7890:   (exit $ac_status); } &&
        !          7891:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          7892:   { (case "(($ac_try" in
        !          7893:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7894:   *) ac_try_echo=$ac_try;;
        !          7895: esac
        !          7896: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7897:   (eval "$ac_try") 2>&5
        !          7898:   ac_status=$?
        !          7899:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7900:   (exit $ac_status); }; } &&
        !          7901:         { ac_try='test -s conftest.$ac_objext'
        !          7902:   { (case "(($ac_try" in
        !          7903:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          7904:   *) ac_try_echo=$ac_try;;
        !          7905: esac
        !          7906: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          7907:   (eval "$ac_try") 2>&5
        !          7908:   ac_status=$?
        !          7909:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          7910:   (exit $ac_status); }; }; then
1.1       root     7911:   ac_cv_struct_tm=time.h
                   7912: else
                   7913:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     7914: sed 's/^/| /' conftest.$ac_ext >&5
                   7915: 
1.1.1.6   root     7916:        ac_cv_struct_tm=sys/time.h
1.1       root     7917: fi
1.1.1.6   root     7918: 
                   7919: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       root     7920: fi
1.1.1.6   root     7921: { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
                   7922: echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
1.1       root     7923: if test $ac_cv_struct_tm = sys/time.h; then
                   7924: 
                   7925: cat >>confdefs.h <<\_ACEOF
                   7926: #define TM_IN_SYS_TIME 1
                   7927: _ACEOF
                   7928: 
                   7929: fi
                   7930: 
                   7931: 
                   7932: 
1.1.1.6   root     7933: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
                   7934: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
1.1       root     7935: if test "${ac_cv_c_const+set}" = set; then
                   7936:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7937: else
                   7938:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     7939: /* confdefs.h.  */
                   7940: _ACEOF
                   7941: cat confdefs.h >>conftest.$ac_ext
                   7942: cat >>conftest.$ac_ext <<_ACEOF
                   7943: /* end confdefs.h.  */
1.1       root     7944: 
                   7945: int
                   7946: main ()
                   7947: {
                   7948: /* FIXME: Include the comments suggested by Paul. */
                   7949: #ifndef __cplusplus
                   7950:   /* Ultrix mips cc rejects this.  */
                   7951:   typedef int charset[2];
1.1.1.8 ! root     7952:   const charset x;
1.1       root     7953:   /* SunOS 4.1.1 cc rejects this.  */
1.1.1.8 ! root     7954:   char const *const *ccp;
        !          7955:   char **p;
1.1       root     7956:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   7957:   struct point {int x, y;};
                   7958:   static struct point const zero = {0,0};
                   7959:   /* AIX XL C 1.02.0.0 rejects this.
                   7960:      It does not let you subtract one const X* pointer from another in
                   7961:      an arm of an if-expression whose if-part is not a constant
                   7962:      expression */
                   7963:   const char *g = "string";
1.1.1.8 ! root     7964:   ccp = &g + (g ? g-g : 0);
1.1       root     7965:   /* HPUX 7.0 cc rejects these. */
1.1.1.8 ! root     7966:   ++ccp;
        !          7967:   p = (char**) ccp;
        !          7968:   ccp = (char const *const *) p;
1.1       root     7969:   { /* SCO 3.2v4 cc rejects this.  */
                   7970:     char *t;
                   7971:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   7972: 
                   7973:     *t++ = 0;
1.1.1.6   root     7974:     if (s) return 0;
1.1       root     7975:   }
                   7976:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   7977:     int x[] = {25, 17};
                   7978:     const int *foo = &x[0];
                   7979:     ++foo;
                   7980:   }
                   7981:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   7982:     typedef const int *iptr;
                   7983:     iptr p = 0;
                   7984:     ++p;
                   7985:   }
                   7986:   { /* AIX XL C 1.02.0.0 rejects this saying
                   7987:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   7988:     struct s { int j; const int *ap[3]; };
                   7989:     struct s *b; b->j = 5;
                   7990:   }
                   7991:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   7992:     const int foo = 10;
1.1.1.6   root     7993:     if (!foo) return 0;
1.1       root     7994:   }
1.1.1.8 ! root     7995:   return !x[0] && !zero.x;
1.1       root     7996: #endif
                   7997: 
                   7998:   ;
                   7999:   return 0;
                   8000: }
                   8001: _ACEOF
                   8002: rm -f conftest.$ac_objext
1.1.1.6   root     8003: if { (ac_try="$ac_compile"
                   8004: case "(($ac_try" in
                   8005:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8006:   *) ac_try_echo=$ac_try;;
                   8007: esac
                   8008: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8009:   (eval "$ac_compile") 2>conftest.er1
1.1       root     8010:   ac_status=$?
1.1.1.3   root     8011:   grep -v '^ *+' conftest.er1 >conftest.err
                   8012:   rm -f conftest.er1
                   8013:   cat conftest.err >&5
1.1       root     8014:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     8015:   (exit $ac_status); } &&
        !          8016:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          8017:   { (case "(($ac_try" in
        !          8018:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          8019:   *) ac_try_echo=$ac_try;;
        !          8020: esac
        !          8021: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          8022:   (eval "$ac_try") 2>&5
        !          8023:   ac_status=$?
        !          8024:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8025:   (exit $ac_status); }; } &&
        !          8026:         { ac_try='test -s conftest.$ac_objext'
        !          8027:   { (case "(($ac_try" in
        !          8028:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          8029:   *) ac_try_echo=$ac_try;;
        !          8030: esac
        !          8031: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          8032:   (eval "$ac_try") 2>&5
        !          8033:   ac_status=$?
        !          8034:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8035:   (exit $ac_status); }; }; then
1.1       root     8036:   ac_cv_c_const=yes
                   8037: else
                   8038:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     8039: sed 's/^/| /' conftest.$ac_ext >&5
                   8040: 
1.1.1.6   root     8041:        ac_cv_c_const=no
1.1       root     8042: fi
1.1.1.6   root     8043: 
                   8044: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       root     8045: fi
1.1.1.6   root     8046: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
                   8047: echo "${ECHO_T}$ac_cv_c_const" >&6; }
1.1       root     8048: if test $ac_cv_c_const = no; then
                   8049: 
                   8050: cat >>confdefs.h <<\_ACEOF
                   8051: #define const
                   8052: _ACEOF
                   8053: 
                   8054: fi
                   8055: 
1.1.1.6   root     8056: { echo "$as_me:$LINENO: checking for inline" >&5
                   8057: echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
1.1       root     8058: if test "${ac_cv_c_inline+set}" = set; then
                   8059:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8060: else
                   8061:   ac_cv_c_inline=no
                   8062: for ac_kw in inline __inline__ __inline; do
                   8063:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     8064: /* confdefs.h.  */
                   8065: _ACEOF
                   8066: cat confdefs.h >>conftest.$ac_ext
                   8067: cat >>conftest.$ac_ext <<_ACEOF
                   8068: /* end confdefs.h.  */
1.1       root     8069: #ifndef __cplusplus
1.1.1.3   root     8070: typedef int foo_t;
                   8071: static $ac_kw foo_t static_foo () {return 0; }
                   8072: $ac_kw foo_t foo () {return 0; }
1.1       root     8073: #endif
                   8074: 
                   8075: _ACEOF
                   8076: rm -f conftest.$ac_objext
1.1.1.6   root     8077: if { (ac_try="$ac_compile"
                   8078: case "(($ac_try" in
                   8079:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8080:   *) ac_try_echo=$ac_try;;
                   8081: esac
                   8082: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8083:   (eval "$ac_compile") 2>conftest.er1
1.1       root     8084:   ac_status=$?
1.1.1.3   root     8085:   grep -v '^ *+' conftest.er1 >conftest.err
                   8086:   rm -f conftest.er1
                   8087:   cat conftest.err >&5
1.1       root     8088:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     8089:   (exit $ac_status); } &&
        !          8090:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          8091:   { (case "(($ac_try" in
        !          8092:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          8093:   *) ac_try_echo=$ac_try;;
        !          8094: esac
        !          8095: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          8096:   (eval "$ac_try") 2>&5
        !          8097:   ac_status=$?
        !          8098:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8099:   (exit $ac_status); }; } &&
        !          8100:         { ac_try='test -s conftest.$ac_objext'
        !          8101:   { (case "(($ac_try" in
        !          8102:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          8103:   *) ac_try_echo=$ac_try;;
        !          8104: esac
        !          8105: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          8106:   (eval "$ac_try") 2>&5
        !          8107:   ac_status=$?
        !          8108:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8109:   (exit $ac_status); }; }; then
1.1.1.6   root     8110:   ac_cv_c_inline=$ac_kw
1.1       root     8111: else
                   8112:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     8113: sed 's/^/| /' conftest.$ac_ext >&5
                   8114: 
1.1.1.6   root     8115: 
1.1       root     8116: fi
1.1.1.6   root     8117: 
                   8118: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8119:   test "$ac_cv_c_inline" != no && break
1.1       root     8120: done
                   8121: 
                   8122: fi
1.1.1.6   root     8123: { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
                   8124: echo "${ECHO_T}$ac_cv_c_inline" >&6; }
1.1.1.3   root     8125: 
                   8126: 
1.1       root     8127: case $ac_cv_c_inline in
                   8128:   inline | yes) ;;
1.1.1.3   root     8129:   *)
                   8130:     case $ac_cv_c_inline in
                   8131:       no) ac_val=;;
                   8132:       *) ac_val=$ac_cv_c_inline;;
                   8133:     esac
                   8134:     cat >>confdefs.h <<_ACEOF
                   8135: #ifndef __cplusplus
                   8136: #define inline $ac_val
                   8137: #endif
1.1       root     8138: _ACEOF
1.1.1.3   root     8139:     ;;
1.1       root     8140: esac
                   8141: 
1.1.1.6   root     8142: { echo "$as_me:$LINENO: checking for working volatile" >&5
                   8143: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
1.1       root     8144: if test "${ac_cv_c_volatile+set}" = set; then
                   8145:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8146: else
                   8147:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     8148: /* confdefs.h.  */
                   8149: _ACEOF
                   8150: cat confdefs.h >>conftest.$ac_ext
                   8151: cat >>conftest.$ac_ext <<_ACEOF
                   8152: /* end confdefs.h.  */
1.1       root     8153: 
                   8154: int
                   8155: main ()
                   8156: {
                   8157: 
                   8158: volatile int x;
1.1.1.6   root     8159: int * volatile y = (int *) 0;
                   8160: return !x && !y;
1.1       root     8161:   ;
                   8162:   return 0;
                   8163: }
                   8164: _ACEOF
                   8165: rm -f conftest.$ac_objext
1.1.1.6   root     8166: if { (ac_try="$ac_compile"
                   8167: case "(($ac_try" in
                   8168:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8169:   *) ac_try_echo=$ac_try;;
                   8170: esac
                   8171: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8172:   (eval "$ac_compile") 2>conftest.er1
1.1       root     8173:   ac_status=$?
1.1.1.3   root     8174:   grep -v '^ *+' conftest.er1 >conftest.err
                   8175:   rm -f conftest.er1
                   8176:   cat conftest.err >&5
1.1       root     8177:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     8178:   (exit $ac_status); } &&
        !          8179:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          8180:   { (case "(($ac_try" in
        !          8181:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          8182:   *) ac_try_echo=$ac_try;;
        !          8183: esac
        !          8184: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          8185:   (eval "$ac_try") 2>&5
        !          8186:   ac_status=$?
        !          8187:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8188:   (exit $ac_status); }; } &&
        !          8189:         { ac_try='test -s conftest.$ac_objext'
        !          8190:   { (case "(($ac_try" in
        !          8191:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          8192:   *) ac_try_echo=$ac_try;;
        !          8193: esac
        !          8194: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          8195:   (eval "$ac_try") 2>&5
        !          8196:   ac_status=$?
        !          8197:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8198:   (exit $ac_status); }; }; then
1.1       root     8199:   ac_cv_c_volatile=yes
                   8200: else
                   8201:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     8202: sed 's/^/| /' conftest.$ac_ext >&5
                   8203: 
1.1.1.6   root     8204:        ac_cv_c_volatile=no
1.1       root     8205: fi
1.1.1.6   root     8206: 
                   8207: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       root     8208: fi
1.1.1.6   root     8209: { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
                   8210: echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
1.1       root     8211: if test $ac_cv_c_volatile = no; then
                   8212: 
                   8213: cat >>confdefs.h <<\_ACEOF
                   8214: #define volatile
                   8215: _ACEOF
                   8216: 
                   8217: fi
                   8218: 
                   8219: 
                   8220: # Do we have GNU-C ?
                   8221: if test x"${GCC}" = xyes; then
                   8222: 
                   8223:   GCCVERSION=`${CC} -dumpversion`
                   8224:   case $GCCVERSION in
                   8225:    2.96*)
                   8226:     { echo "$as_me:$LINENO: WARNING: You have GCC $GCCVERSION - This compiler is probably buggy." >&5
                   8227: echo "$as_me: WARNING: You have GCC $GCCVERSION - This compiler is probably buggy." >&2;}
                   8228:     { echo "$as_me:$LINENO: WARNING: So I am using -O instead of -O2 (or greater) now!" >&5
                   8229: echo "$as_me: WARNING: So I am using -O instead of -O2 (or greater) now!" >&2;}
                   8230:     CFLAGS=`echo "${CFLAGS}" | sed 's/-O[2-9]/-O/'`
                   8231:     ;;
                   8232:   esac
                   8233: 
                   8234:   if test x"${ENABLE_WERROR}" != xno; then
                   8235:     CFLAGS="${CFLAGS} -Werror"
                   8236:   fi
                   8237:   CFLAGS="${CFLAGS} -Wall"
                   8238: 
                   8239: fi
                   8240: 
                   8241: 
                   8242: # Cross-compiling ?
                   8243: 
                   8244: HOSTCFLAGS="-O"
                   8245: HOSTLDFLAGS=""
                   8246: if test "${build}" != "${target}" -a "${HOSTCC}" == "${CC}"; then
                   8247:   { echo "$as_me:$LINENO: WARNING: Cross compiling... I will now use cc as host compiler!" >&5
                   8248: echo "$as_me: WARNING: Cross compiling... I will now use cc as host compiler!" >&2;}
                   8249:   HOSTCC=cc
                   8250: else
                   8251:   HOSTCFLAGS="${CFLAGS}"
                   8252:   HOSTLDFLAGS="${LDFLAGS}"
                   8253: fi
                   8254: 
                   8255: 
                   8256: 
                   8257: for ac_header in stdlib.h
                   8258: do
                   8259: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.6   root     8260: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   8261:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   8262: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   8263: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1       root     8264:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8265: fi
1.1.1.6   root     8266: ac_res=`eval echo '${'$as_ac_Header'}'`
                   8267:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   8268: echo "${ECHO_T}$ac_res" >&6; }
1.1       root     8269: else
                   8270:   # Is the header compilable?
1.1.1.6   root     8271: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   8272: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1       root     8273: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     8274: /* confdefs.h.  */
                   8275: _ACEOF
                   8276: cat confdefs.h >>conftest.$ac_ext
                   8277: cat >>conftest.$ac_ext <<_ACEOF
                   8278: /* end confdefs.h.  */
1.1       root     8279: $ac_includes_default
                   8280: #include <$ac_header>
                   8281: _ACEOF
                   8282: rm -f conftest.$ac_objext
1.1.1.6   root     8283: if { (ac_try="$ac_compile"
                   8284: case "(($ac_try" in
                   8285:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8286:   *) ac_try_echo=$ac_try;;
                   8287: esac
                   8288: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8289:   (eval "$ac_compile") 2>conftest.er1
1.1       root     8290:   ac_status=$?
1.1.1.3   root     8291:   grep -v '^ *+' conftest.er1 >conftest.err
                   8292:   rm -f conftest.er1
                   8293:   cat conftest.err >&5
1.1       root     8294:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     8295:   (exit $ac_status); } &&
        !          8296:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          8297:   { (case "(($ac_try" in
        !          8298:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          8299:   *) ac_try_echo=$ac_try;;
        !          8300: esac
        !          8301: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          8302:   (eval "$ac_try") 2>&5
        !          8303:   ac_status=$?
        !          8304:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8305:   (exit $ac_status); }; } &&
        !          8306:         { ac_try='test -s conftest.$ac_objext'
        !          8307:   { (case "(($ac_try" in
        !          8308:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          8309:   *) ac_try_echo=$ac_try;;
        !          8310: esac
        !          8311: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          8312:   (eval "$ac_try") 2>&5
        !          8313:   ac_status=$?
        !          8314:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8315:   (exit $ac_status); }; }; then
1.1       root     8316:   ac_header_compiler=yes
                   8317: else
                   8318:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     8319: sed 's/^/| /' conftest.$ac_ext >&5
                   8320: 
1.1.1.6   root     8321:        ac_header_compiler=no
1.1       root     8322: fi
1.1.1.6   root     8323: 
                   8324: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8325: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   8326: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1       root     8327: 
                   8328: # Is the header present?
1.1.1.6   root     8329: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   8330: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1       root     8331: cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     8332: /* confdefs.h.  */
                   8333: _ACEOF
                   8334: cat confdefs.h >>conftest.$ac_ext
                   8335: cat >>conftest.$ac_ext <<_ACEOF
                   8336: /* end confdefs.h.  */
1.1       root     8337: #include <$ac_header>
                   8338: _ACEOF
1.1.1.6   root     8339: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   8340: case "(($ac_try" in
                   8341:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8342:   *) ac_try_echo=$ac_try;;
                   8343: esac
                   8344: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8345:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1       root     8346:   ac_status=$?
1.1.1.3   root     8347:   grep -v '^ *+' conftest.er1 >conftest.err
1.1       root     8348:   rm -f conftest.er1
                   8349:   cat conftest.err >&5
                   8350:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     8351:   (exit $ac_status); } >/dev/null; then
        !          8352:   if test -s conftest.err; then
        !          8353:     ac_cpp_err=$ac_c_preproc_warn_flag
        !          8354:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
        !          8355:   else
        !          8356:     ac_cpp_err=
        !          8357:   fi
        !          8358: else
        !          8359:   ac_cpp_err=yes
        !          8360: fi
        !          8361: if test -z "$ac_cpp_err"; then
1.1       root     8362:   ac_header_preproc=yes
                   8363: else
                   8364:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     8365: sed 's/^/| /' conftest.$ac_ext >&5
                   8366: 
1.1       root     8367:   ac_header_preproc=no
                   8368: fi
1.1.1.6   root     8369: 
1.1       root     8370: rm -f conftest.err conftest.$ac_ext
1.1.1.6   root     8371: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   8372: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1       root     8373: 
                   8374: # So?  What about this header?
1.1.1.3   root     8375: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   8376:   yes:no: )
1.1       root     8377:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   8378: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.3   root     8379:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   8380: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   8381:     ac_header_preproc=yes
                   8382:     ;;
                   8383:   no:yes:* )
1.1       root     8384:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   8385: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.3   root     8386:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   8387: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   8388:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   8389: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   8390:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   8391: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
1.1       root     8392:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
1.1.1.3   root     8393: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   8394:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   8395: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.6   root     8396: 
1.1.1.3   root     8397:     ;;
1.1       root     8398: esac
1.1.1.6   root     8399: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   8400: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   8401: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1       root     8402:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8403: else
1.1.1.3   root     8404:   eval "$as_ac_Header=\$ac_header_preproc"
1.1       root     8405: fi
1.1.1.6   root     8406: ac_res=`eval echo '${'$as_ac_Header'}'`
                   8407:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   8408: echo "${ECHO_T}$ac_res" >&6; }
1.1       root     8409: 
                   8410: fi
                   8411: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   8412:   cat >>confdefs.h <<_ACEOF
                   8413: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   8414: _ACEOF
                   8415: 
                   8416: fi
                   8417: 
                   8418: done
                   8419: 
1.1.1.6   root     8420: { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
                   8421: echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
1.1.1.3   root     8422: if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
1.1       root     8423:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8424: else
                   8425:   if test "$cross_compiling" = yes; then
1.1.1.3   root     8426:   ac_cv_func_malloc_0_nonnull=no
1.1       root     8427: else
                   8428:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     8429: /* confdefs.h.  */
                   8430: _ACEOF
                   8431: cat confdefs.h >>conftest.$ac_ext
                   8432: cat >>conftest.$ac_ext <<_ACEOF
                   8433: /* end confdefs.h.  */
1.1.1.8 ! root     8434: #if STDC_HEADERS || HAVE_STDLIB_H
1.1       root     8435: # include <stdlib.h>
                   8436: #else
                   8437: char *malloc ();
                   8438: #endif
                   8439: 
                   8440: int
                   8441: main ()
                   8442: {
1.1.1.6   root     8443: return ! malloc (0);
1.1       root     8444:   ;
                   8445:   return 0;
                   8446: }
                   8447: _ACEOF
                   8448: rm -f conftest$ac_exeext
1.1.1.6   root     8449: if { (ac_try="$ac_link"
                   8450: case "(($ac_try" in
                   8451:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8452:   *) ac_try_echo=$ac_try;;
                   8453: esac
                   8454: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8455:   (eval "$ac_link") 2>&5
1.1       root     8456:   ac_status=$?
                   8457:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8458:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6   root     8459:   { (case "(($ac_try" in
                   8460:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8461:   *) ac_try_echo=$ac_try;;
                   8462: esac
                   8463: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8464:   (eval "$ac_try") 2>&5
1.1       root     8465:   ac_status=$?
                   8466:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8467:   (exit $ac_status); }; }; then
1.1.1.3   root     8468:   ac_cv_func_malloc_0_nonnull=yes
1.1       root     8469: else
                   8470:   echo "$as_me: program exited with status $ac_status" >&5
                   8471: echo "$as_me: failed program was:" >&5
1.1.1.3   root     8472: sed 's/^/| /' conftest.$ac_ext >&5
                   8473: 
1.1       root     8474: ( exit $ac_status )
1.1.1.3   root     8475: ac_cv_func_malloc_0_nonnull=no
1.1       root     8476: fi
1.1.1.6   root     8477: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       root     8478: fi
1.1.1.6   root     8479: 
                   8480: 
1.1       root     8481: fi
1.1.1.6   root     8482: { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
                   8483: echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
1.1.1.3   root     8484: if test $ac_cv_func_malloc_0_nonnull = yes; then
1.1       root     8485: 
                   8486: cat >>confdefs.h <<\_ACEOF
                   8487: #define HAVE_MALLOC 1
                   8488: _ACEOF
                   8489: 
1.1.1.3   root     8490: else
                   8491:   cat >>confdefs.h <<\_ACEOF
                   8492: #define HAVE_MALLOC 0
                   8493: _ACEOF
                   8494: 
1.1.1.6   root     8495:    case " $LIBOBJS " in
1.1.1.3   root     8496:   *" malloc.$ac_objext "* ) ;;
1.1.1.6   root     8497:   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
                   8498:  ;;
1.1.1.3   root     8499: esac
                   8500: 
                   8501: 
                   8502: cat >>confdefs.h <<\_ACEOF
                   8503: #define malloc rpl_malloc
                   8504: _ACEOF
                   8505: 
1.1       root     8506: fi
                   8507: 
1.1.1.3   root     8508: 
                   8509: 
1.1.1.6   root     8510: { echo "$as_me:$LINENO: checking for working memcmp" >&5
                   8511: echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
1.1       root     8512: if test "${ac_cv_func_memcmp_working+set}" = set; then
                   8513:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8514: else
                   8515:   if test "$cross_compiling" = yes; then
                   8516:   ac_cv_func_memcmp_working=no
                   8517: else
                   8518:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     8519: /* confdefs.h.  */
                   8520: _ACEOF
                   8521: cat confdefs.h >>conftest.$ac_ext
                   8522: cat >>conftest.$ac_ext <<_ACEOF
                   8523: /* end confdefs.h.  */
                   8524: $ac_includes_default
1.1       root     8525: int
                   8526: main ()
                   8527: {
                   8528: 
                   8529:   /* Some versions of memcmp are not 8-bit clean.  */
1.1.1.6   root     8530:   char c0 = '\100', c1 = '\200', c2 = '\201';
1.1       root     8531:   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
1.1.1.6   root     8532:     return 1;
1.1       root     8533: 
                   8534:   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
                   8535:      or more and with at least one buffer not starting on a 4-byte boundary.
                   8536:      William Lewis provided this test program.   */
                   8537:   {
                   8538:     char foo[21];
                   8539:     char bar[21];
                   8540:     int i;
                   8541:     for (i = 0; i < 4; i++)
                   8542:       {
1.1.1.3   root     8543:        char *a = foo + i;
                   8544:        char *b = bar + i;
                   8545:        strcpy (a, "--------01111111");
                   8546:        strcpy (b, "--------10000000");
                   8547:        if (memcmp (a, b, 16) >= 0)
1.1.1.6   root     8548:          return 1;
1.1       root     8549:       }
1.1.1.6   root     8550:     return 0;
1.1       root     8551:   }
                   8552: 
                   8553:   ;
                   8554:   return 0;
                   8555: }
                   8556: _ACEOF
                   8557: rm -f conftest$ac_exeext
1.1.1.6   root     8558: if { (ac_try="$ac_link"
                   8559: case "(($ac_try" in
                   8560:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8561:   *) ac_try_echo=$ac_try;;
                   8562: esac
                   8563: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8564:   (eval "$ac_link") 2>&5
1.1       root     8565:   ac_status=$?
                   8566:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8567:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6   root     8568:   { (case "(($ac_try" in
                   8569:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8570:   *) ac_try_echo=$ac_try;;
                   8571: esac
                   8572: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8573:   (eval "$ac_try") 2>&5
1.1       root     8574:   ac_status=$?
                   8575:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8576:   (exit $ac_status); }; }; then
                   8577:   ac_cv_func_memcmp_working=yes
                   8578: else
                   8579:   echo "$as_me: program exited with status $ac_status" >&5
                   8580: echo "$as_me: failed program was:" >&5
1.1.1.3   root     8581: sed 's/^/| /' conftest.$ac_ext >&5
                   8582: 
1.1       root     8583: ( exit $ac_status )
                   8584: ac_cv_func_memcmp_working=no
                   8585: fi
1.1.1.6   root     8586: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       root     8587: fi
1.1.1.6   root     8588: 
                   8589: 
1.1       root     8590: fi
1.1.1.6   root     8591: { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
                   8592: echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
                   8593: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
1.1.1.3   root     8594:   *" memcmp.$ac_objext "* ) ;;
1.1.1.6   root     8595:   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
                   8596:  ;;
1.1.1.3   root     8597: esac
                   8598: 
1.1       root     8599: 
                   8600: #AC_FUNC_REALLOC
1.1.1.6   root     8601: { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
                   8602: echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
1.1       root     8603: if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
                   8604:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8605: else
                   8606:   rm -f conftest.sym conftest.file
                   8607: echo >conftest.file
                   8608: if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
                   8609:   if test "$cross_compiling" = yes; then
                   8610:   ac_cv_func_lstat_dereferences_slashed_symlink=no
                   8611: else
                   8612:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     8613: /* confdefs.h.  */
                   8614: _ACEOF
                   8615: cat confdefs.h >>conftest.$ac_ext
                   8616: cat >>conftest.$ac_ext <<_ACEOF
                   8617: /* end confdefs.h.  */
1.1       root     8618: $ac_includes_default
                   8619: int
                   8620: main ()
                   8621: {
                   8622: struct stat sbuf;
                   8623:      /* Linux will dereference the symlink and fail.
1.1.1.3   root     8624:        That is better in the sense that it means we will not
                   8625:        have to compile and use the lstat wrapper.  */
1.1.1.6   root     8626:      return lstat ("conftest.sym/", &sbuf) == 0;
1.1       root     8627:   ;
                   8628:   return 0;
                   8629: }
                   8630: _ACEOF
                   8631: rm -f conftest$ac_exeext
1.1.1.6   root     8632: if { (ac_try="$ac_link"
                   8633: case "(($ac_try" in
                   8634:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8635:   *) ac_try_echo=$ac_try;;
                   8636: esac
                   8637: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8638:   (eval "$ac_link") 2>&5
1.1       root     8639:   ac_status=$?
                   8640:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8641:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6   root     8642:   { (case "(($ac_try" in
                   8643:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8644:   *) ac_try_echo=$ac_try;;
                   8645: esac
                   8646: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8647:   (eval "$ac_try") 2>&5
1.1       root     8648:   ac_status=$?
                   8649:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8650:   (exit $ac_status); }; }; then
                   8651:   ac_cv_func_lstat_dereferences_slashed_symlink=yes
                   8652: else
                   8653:   echo "$as_me: program exited with status $ac_status" >&5
                   8654: echo "$as_me: failed program was:" >&5
1.1.1.3   root     8655: sed 's/^/| /' conftest.$ac_ext >&5
                   8656: 
1.1       root     8657: ( exit $ac_status )
                   8658: ac_cv_func_lstat_dereferences_slashed_symlink=no
                   8659: fi
1.1.1.6   root     8660: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       root     8661: fi
1.1.1.6   root     8662: 
                   8663: 
1.1       root     8664: else
                   8665:   # If the `ln -s' command failed, then we probably don't even
                   8666:   # have an lstat function.
                   8667:   ac_cv_func_lstat_dereferences_slashed_symlink=no
                   8668: fi
                   8669: rm -f conftest.sym conftest.file
                   8670: 
                   8671: fi
1.1.1.6   root     8672: { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
                   8673: echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
1.1       root     8674: 
                   8675: test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
                   8676: 
                   8677: cat >>confdefs.h <<_ACEOF
                   8678: #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
                   8679: _ACEOF
                   8680: 
                   8681: 
                   8682: if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
1.1.1.6   root     8683:   case " $LIBOBJS " in
1.1.1.3   root     8684:   *" lstat.$ac_objext "* ) ;;
1.1.1.6   root     8685:   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
                   8686:  ;;
1.1.1.3   root     8687: esac
                   8688: 
1.1       root     8689: fi
                   8690: 
1.1.1.6   root     8691: { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
                   8692: echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
1.1       root     8693: if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
                   8694:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8695: else
                   8696:   if test "$cross_compiling" = yes; then
                   8697:   ac_cv_func_stat_empty_string_bug=yes
                   8698: else
                   8699:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     8700: /* confdefs.h.  */
                   8701: _ACEOF
                   8702: cat confdefs.h >>conftest.$ac_ext
                   8703: cat >>conftest.$ac_ext <<_ACEOF
                   8704: /* end confdefs.h.  */
1.1       root     8705: $ac_includes_default
                   8706: int
                   8707: main ()
                   8708: {
                   8709: struct stat sbuf;
1.1.1.6   root     8710:   return stat ("", &sbuf) == 0;
1.1       root     8711:   ;
                   8712:   return 0;
                   8713: }
                   8714: _ACEOF
                   8715: rm -f conftest$ac_exeext
1.1.1.6   root     8716: if { (ac_try="$ac_link"
                   8717: case "(($ac_try" in
                   8718:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8719:   *) ac_try_echo=$ac_try;;
                   8720: esac
                   8721: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8722:   (eval "$ac_link") 2>&5
1.1       root     8723:   ac_status=$?
                   8724:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8725:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.6   root     8726:   { (case "(($ac_try" in
                   8727:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8728:   *) ac_try_echo=$ac_try;;
                   8729: esac
                   8730: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8731:   (eval "$ac_try") 2>&5
1.1       root     8732:   ac_status=$?
                   8733:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8734:   (exit $ac_status); }; }; then
1.1.1.6   root     8735:   ac_cv_func_stat_empty_string_bug=no
1.1       root     8736: else
                   8737:   echo "$as_me: program exited with status $ac_status" >&5
                   8738: echo "$as_me: failed program was:" >&5
1.1.1.3   root     8739: sed 's/^/| /' conftest.$ac_ext >&5
                   8740: 
1.1       root     8741: ( exit $ac_status )
1.1.1.6   root     8742: ac_cv_func_stat_empty_string_bug=yes
1.1       root     8743: fi
1.1.1.6   root     8744: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       root     8745: fi
1.1.1.6   root     8746: 
                   8747: 
1.1       root     8748: fi
1.1.1.6   root     8749: { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
                   8750: echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
1.1       root     8751: if test $ac_cv_func_stat_empty_string_bug = yes; then
1.1.1.6   root     8752:   case " $LIBOBJS " in
1.1.1.3   root     8753:   *" stat.$ac_objext "* ) ;;
1.1.1.6   root     8754:   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
                   8755:  ;;
1.1.1.3   root     8756: esac
                   8757: 
1.1       root     8758: 
                   8759: cat >>confdefs.h <<_ACEOF
                   8760: #define HAVE_STAT_EMPTY_STRING_BUG 1
                   8761: _ACEOF
                   8762: 
                   8763: fi
                   8764: 
                   8765: 
                   8766: 
                   8767: 
                   8768: 
                   8769: 
                   8770: 
                   8771: 
                   8772: 
                   8773: 
                   8774: 
                   8775: 
                   8776: for ac_func in getcwd memmove memset mkdir rmdir strcasecmp \
                   8777:   strchr strerror strncasecmp strrchr strstr
                   8778: do
                   8779: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.6   root     8780: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   8781: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   8782: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1       root     8783:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8784: else
                   8785:   cat >conftest.$ac_ext <<_ACEOF
1.1.1.3   root     8786: /* confdefs.h.  */
                   8787: _ACEOF
                   8788: cat confdefs.h >>conftest.$ac_ext
                   8789: cat >>conftest.$ac_ext <<_ACEOF
                   8790: /* end confdefs.h.  */
                   8791: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   8792:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   8793: #define $ac_func innocuous_$ac_func
                   8794: 
1.1       root     8795: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.3   root     8796:     which can conflict with char $ac_func (); below.
                   8797:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   8798:     <limits.h> exists even on freestanding compilers.  */
                   8799: 
                   8800: #ifdef __STDC__
                   8801: # include <limits.h>
                   8802: #else
                   8803: # include <assert.h>
                   8804: #endif
                   8805: 
                   8806: #undef $ac_func
                   8807: 
1.1.1.6   root     8808: /* Override any GCC internal prototype to avoid an error.
                   8809:    Use char because int might match the return type of a GCC
                   8810:    builtin and then its argument prototype would still apply.  */
1.1       root     8811: #ifdef __cplusplus
                   8812: extern "C"
                   8813: #endif
                   8814: char $ac_func ();
                   8815: /* The GNU C library defines this for functions which it implements
                   8816:     to always fail with ENOSYS.  Some functions are actually named
                   8817:     something starting with __ and the normal name is an alias.  */
1.1.1.6   root     8818: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1       root     8819: choke me
                   8820: #endif
                   8821: 
1.1.1.3   root     8822: int
                   8823: main ()
                   8824: {
1.1.1.6   root     8825: return $ac_func ();
1.1       root     8826:   ;
                   8827:   return 0;
                   8828: }
                   8829: _ACEOF
                   8830: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.6   root     8831: if { (ac_try="$ac_link"
                   8832: case "(($ac_try" in
                   8833:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8834:   *) ac_try_echo=$ac_try;;
                   8835: esac
                   8836: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8837:   (eval "$ac_link") 2>conftest.er1
1.1       root     8838:   ac_status=$?
1.1.1.3   root     8839:   grep -v '^ *+' conftest.er1 >conftest.err
                   8840:   rm -f conftest.er1
                   8841:   cat conftest.err >&5
1.1       root     8842:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     8843:   (exit $ac_status); } &&
        !          8844:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          8845:   { (case "(($ac_try" in
        !          8846:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          8847:   *) ac_try_echo=$ac_try;;
        !          8848: esac
        !          8849: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          8850:   (eval "$ac_try") 2>&5
        !          8851:   ac_status=$?
        !          8852:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8853:   (exit $ac_status); }; } &&
        !          8854:         { ac_try='test -s conftest$ac_exeext'
        !          8855:   { (case "(($ac_try" in
        !          8856:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          8857:   *) ac_try_echo=$ac_try;;
        !          8858: esac
        !          8859: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          8860:   (eval "$ac_try") 2>&5
        !          8861:   ac_status=$?
        !          8862:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8863:   (exit $ac_status); }; }; then
1.1       root     8864:   eval "$as_ac_var=yes"
                   8865: else
                   8866:   echo "$as_me: failed program was:" >&5
1.1.1.3   root     8867: sed 's/^/| /' conftest.$ac_ext >&5
                   8868: 
1.1.1.6   root     8869:        eval "$as_ac_var=no"
1.1       root     8870: fi
1.1.1.6   root     8871: 
1.1.1.8 ! root     8872: rm -f core conftest.err conftest.$ac_objext \
1.1.1.3   root     8873:       conftest$ac_exeext conftest.$ac_ext
1.1       root     8874: fi
1.1.1.6   root     8875: ac_res=`eval echo '${'$as_ac_var'}'`
                   8876:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   8877: echo "${ECHO_T}$ac_res" >&6; }
1.1       root     8878: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   8879:   cat >>confdefs.h <<_ACEOF
                   8880: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   8881: _ACEOF
                   8882: 
                   8883: else
                   8884:   { { echo "$as_me:$LINENO: error: A necessary function could not be found." >&5
                   8885: echo "$as_me: error: A necessary function could not be found." >&2;}
                   8886:    { (exit 1); exit 1; }; }
                   8887: fi
                   8888: done
                   8889: 
                   8890: 
                   8891: 
1.1.1.6   root     8892: for ac_func in cfmakeraw setenv
                   8893: do
                   8894: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   8895: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   8896: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   8897: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   8898:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8899: else
                   8900:   cat >conftest.$ac_ext <<_ACEOF
                   8901: /* confdefs.h.  */
                   8902: _ACEOF
                   8903: cat confdefs.h >>conftest.$ac_ext
                   8904: cat >>conftest.$ac_ext <<_ACEOF
                   8905: /* end confdefs.h.  */
                   8906: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   8907:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   8908: #define $ac_func innocuous_$ac_func
                   8909: 
                   8910: /* System header to define __stub macros and hopefully few prototypes,
                   8911:     which can conflict with char $ac_func (); below.
                   8912:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   8913:     <limits.h> exists even on freestanding compilers.  */
                   8914: 
                   8915: #ifdef __STDC__
                   8916: # include <limits.h>
                   8917: #else
                   8918: # include <assert.h>
                   8919: #endif
                   8920: 
                   8921: #undef $ac_func
                   8922: 
                   8923: /* Override any GCC internal prototype to avoid an error.
                   8924:    Use char because int might match the return type of a GCC
                   8925:    builtin and then its argument prototype would still apply.  */
                   8926: #ifdef __cplusplus
                   8927: extern "C"
                   8928: #endif
                   8929: char $ac_func ();
                   8930: /* The GNU C library defines this for functions which it implements
                   8931:     to always fail with ENOSYS.  Some functions are actually named
                   8932:     something starting with __ and the normal name is an alias.  */
                   8933: #if defined __stub_$ac_func || defined __stub___$ac_func
                   8934: choke me
                   8935: #endif
                   8936: 
                   8937: int
                   8938: main ()
                   8939: {
                   8940: return $ac_func ();
                   8941:   ;
                   8942:   return 0;
                   8943: }
                   8944: _ACEOF
                   8945: rm -f conftest.$ac_objext conftest$ac_exeext
                   8946: if { (ac_try="$ac_link"
                   8947: case "(($ac_try" in
                   8948:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   8949:   *) ac_try_echo=$ac_try;;
                   8950: esac
                   8951: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   8952:   (eval "$ac_link") 2>conftest.er1
                   8953:   ac_status=$?
                   8954:   grep -v '^ *+' conftest.er1 >conftest.err
                   8955:   rm -f conftest.er1
                   8956:   cat conftest.err >&5
                   8957:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.8 ! root     8958:   (exit $ac_status); } &&
        !          8959:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          8960:   { (case "(($ac_try" in
        !          8961:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          8962:   *) ac_try_echo=$ac_try;;
        !          8963: esac
        !          8964: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          8965:   (eval "$ac_try") 2>&5
        !          8966:   ac_status=$?
        !          8967:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8968:   (exit $ac_status); }; } &&
        !          8969:         { ac_try='test -s conftest$ac_exeext'
        !          8970:   { (case "(($ac_try" in
        !          8971:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          8972:   *) ac_try_echo=$ac_try;;
        !          8973: esac
        !          8974: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          8975:   (eval "$ac_try") 2>&5
        !          8976:   ac_status=$?
        !          8977:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          8978:   (exit $ac_status); }; }; then
1.1.1.6   root     8979:   eval "$as_ac_var=yes"
                   8980: else
                   8981:   echo "$as_me: failed program was:" >&5
                   8982: sed 's/^/| /' conftest.$ac_ext >&5
                   8983: 
                   8984:        eval "$as_ac_var=no"
                   8985: fi
                   8986: 
1.1.1.8 ! root     8987: rm -f core conftest.err conftest.$ac_objext \
1.1.1.6   root     8988:       conftest$ac_exeext conftest.$ac_ext
                   8989: fi
                   8990: ac_res=`eval echo '${'$as_ac_var'}'`
                   8991:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   8992: echo "${ECHO_T}$ac_res" >&6; }
                   8993: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   8994:   cat >>confdefs.h <<_ACEOF
                   8995: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   8996: _ACEOF
                   8997: 
                   8998: fi
                   8999: done
                   9000: 
                   9001: 
1.1.1.8 ! root     9002: { echo "$as_me:$LINENO: checking for unix domain sockets" >&5
        !          9003: echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6; }
        !          9004: cat >conftest.$ac_ext <<_ACEOF
        !          9005: 
        !          9006: #include <sys/socket.h>
        !          9007: #include <sys/un.h>
        !          9008: int main() { return socket(AF_UNIX, SOCK_STREAM, 0); }
        !          9009: _ACEOF
        !          9010: rm -f conftest.$ac_objext
        !          9011: if { (ac_try="$ac_compile"
        !          9012: case "(($ac_try" in
        !          9013:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          9014:   *) ac_try_echo=$ac_try;;
        !          9015: esac
        !          9016: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          9017:   (eval "$ac_compile") 2>conftest.er1
        !          9018:   ac_status=$?
        !          9019:   grep -v '^ *+' conftest.er1 >conftest.err
        !          9020:   rm -f conftest.er1
        !          9021:   cat conftest.err >&5
        !          9022:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          9023:   (exit $ac_status); } &&
        !          9024:         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
        !          9025:   { (case "(($ac_try" in
        !          9026:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          9027:   *) ac_try_echo=$ac_try;;
        !          9028: esac
        !          9029: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          9030:   (eval "$ac_try") 2>&5
        !          9031:   ac_status=$?
        !          9032:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          9033:   (exit $ac_status); }; } &&
        !          9034:         { ac_try='test -s conftest.$ac_objext'
        !          9035:   { (case "(($ac_try" in
        !          9036:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          9037:   *) ac_try_echo=$ac_try;;
        !          9038: esac
        !          9039: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          9040:   (eval "$ac_try") 2>&5
        !          9041:   ac_status=$?
        !          9042:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          9043:   (exit $ac_status); }; }; then
        !          9044:   { echo "$as_me:$LINENO: result: yes" >&5
        !          9045: echo "${ECHO_T}yes" >&6; }
        !          9046: cat >>confdefs.h <<\_ACEOF
        !          9047: #define HAVE_UNIX_DOMAIN_SOCKETS 1
        !          9048: _ACEOF
        !          9049: 
        !          9050: else
        !          9051:   echo "$as_me: failed program was:" >&5
        !          9052: sed 's/^/| /' conftest.$ac_ext >&5
        !          9053: 
        !          9054:        { echo "$as_me:$LINENO: result: no" >&5
        !          9055: echo "${ECHO_T}no" >&6; }
        !          9056: fi
        !          9057: 
        !          9058: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          9059: 
1.1       root     9060: 
                   9061: 
1.1.1.6   root     9062: # Convert e.g. /usr/share to /usr/share/hatari :
1.1       root     9063: if test "${datadir}" = '${prefix}/share'; then
                   9064:   datadir='${prefix}/share/hatari'
                   9065: fi
1.1.1.6   root     9066: if test "${datadir}" = '${datarootdir}'; then
                   9067:   datadir='${datarootdir}/hatari'
                   9068: fi
                   9069: 
                   9070: for _lcl_i in bindir:datadir:bin2datadir; do
                   9071:   _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
                   9072:   _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
                   9073:   _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
                   9074:   _lcl_receval="$_lcl_from"
                   9075: _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
                   9076:      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
                   9077:      _lcl_receval_old=''
                   9078:      while test "$_lcl_receval_old" != "$_lcl_receval"; do
                   9079:        _lcl_receval_old="$_lcl_receval"
                   9080:        eval _lcl_receval="\"$_lcl_receval\""
                   9081:      done
                   9082:      echo "$_lcl_receval")`
                   9083:   _lcl_receval="$_lcl_to"
                   9084: _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
                   9085:      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
                   9086:      _lcl_receval_old=''
                   9087:      while test "$_lcl_receval_old" != "$_lcl_receval"; do
                   9088:        _lcl_receval_old="$_lcl_receval"
                   9089:        eval _lcl_receval="\"$_lcl_receval\""
                   9090:      done
                   9091:      echo "$_lcl_receval")`
                   9092:   _lcl_notation="$_lcl_from$_lcl_to"
                   9093:   case ":$_lcl_from:" in
                   9094: # change empty paths to '.'
                   9095:   ::) _lcl_from='.' ;;
                   9096: # strip trailing slashes
                   9097:   :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
                   9098:   :*:) ;;
                   9099: esac
                   9100: # squeze repeated slashes
                   9101: case '/' in
                   9102: # if the path contains any backslashes, turn slashes into backslashes
                   9103:  *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
                   9104: # if the path contains slashes, also turn backslashes into slashes
                   9105:  *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
                   9106: esac
                   9107:   case ":$_lcl_to:" in
                   9108: # change empty paths to '.'
                   9109:   ::) _lcl_to='.' ;;
                   9110: # strip trailing slashes
                   9111:   :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
                   9112:   :*:) ;;
                   9113: esac
                   9114: # squeze repeated slashes
                   9115: case '/' in
                   9116: # if the path contains any backslashes, turn slashes into backslashes
                   9117:  *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
                   9118: # if the path contains slashes, also turn backslashes into slashes
                   9119:  *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
                   9120: esac
                   9121:   _lcl_common_prefix=''
                   9122: _lcl_second_prefix_match=''
                   9123: while test "$_lcl_second_prefix_match" != 0; do
                   9124:   _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
                   9125:   _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
                   9126:   if test "$_lcl_second_prefix_match" != 0; then
                   9127:     if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
                   9128:       _lcl_common_prefix="$_lcl_first_prefix"
                   9129:     else
                   9130:       _lcl_second_prefix_match=0
                   9131:     fi
                   9132:   fi
                   9133: done
                   9134: _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
                   9135: _lcl_first_rel=''
                   9136: _lcl_tmp='xxx'
                   9137: while test "$_lcl_tmp" != ''; do
                   9138:   _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
                   9139:   if test "$_lcl_first_suffix" != ''; then
                   9140:      _lcl_first_suffix="$_lcl_tmp"
                   9141:      _lcl_first_rel="../$_lcl_first_rel"
                   9142:   fi
                   9143: done
                   9144: _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
                   9145: _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
                   9146:   case ":$_lcl_result_tmp:" in
                   9147: # change empty paths to '.'
                   9148:   ::) _lcl_result_tmp='.' ;;
                   9149: # strip trailing slashes
                   9150:   :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
                   9151:   :*:) ;;
                   9152: esac
                   9153: # squeze repeated slashes
                   9154: case "$_lcl_notation" in
                   9155: # if the path contains any backslashes, turn slashes into backslashes
                   9156:  *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
                   9157: # if the path contains slashes, also turn backslashes into slashes
                   9158:  *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
                   9159: esac
                   9160:   eval $_lcl_result_var='$_lcl_result_tmp'
                   9161: done
                   9162: 
                   9163: cat >>confdefs.h <<_ACEOF
                   9164: #define BIN2DATADIR "${bin2datadir}"
                   9165: _ACEOF
                   9166: 
1.1       root     9167: 
                   9168: 
                   9169: 
                   9170: 
                   9171: 
1.1.1.6   root     9172: ac_config_files="$ac_config_files Makefile.cnf"
                   9173: 
1.1       root     9174: cat >confcache <<\_ACEOF
                   9175: # This file is a shell script that caches the results of configure
                   9176: # tests run on this system so they can be shared between configure
                   9177: # scripts and configure runs, see configure's option --config-cache.
                   9178: # It is not useful on other systems.  If it contains results you don't
                   9179: # want to keep, you may remove or edit it.
                   9180: #
                   9181: # config.status only pays attention to the cache file if you give it
                   9182: # the --recheck option to rerun configure.
                   9183: #
1.1.1.3   root     9184: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.1       root     9185: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9186: # following values.
                   9187: 
                   9188: _ACEOF
                   9189: 
                   9190: # The following way of writing the cache mishandles newlines in values,
                   9191: # but we know of no workaround that is simple, portable, and efficient.
1.1.1.6   root     9192: # So, we kill variables containing newlines.
1.1       root     9193: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9194: # and sets the high bit in the cache file unless we assign to the vars.
1.1.1.6   root     9195: (
                   9196:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9197:     eval ac_val=\$$ac_var
                   9198:     case $ac_val in #(
                   9199:     *${as_nl}*)
                   9200:       case $ac_var in #(
                   9201:       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
                   9202: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
                   9203:       esac
                   9204:       case $ac_var in #(
                   9205:       _ | IFS | as_nl) ;; #(
                   9206:       *) $as_unset $ac_var ;;
                   9207:       esac ;;
                   9208:     esac
                   9209:   done
                   9210: 
1.1       root     9211:   (set) 2>&1 |
1.1.1.6   root     9212:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9213:     *${as_nl}ac_space=\ *)
1.1       root     9214:       # `set' does not quote correctly, so add quotes (double-quote
                   9215:       # substitution turns \\\\ into \\, and sed turns \\ into \).
                   9216:       sed -n \
1.1.1.3   root     9217:        "s/'/'\\\\''/g;
                   9218:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.1.1.6   root     9219:       ;; #(
1.1       root     9220:     *)
                   9221:       # `set' quotes correctly as required by POSIX, so do not add quotes.
1.1.1.6   root     9222:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1       root     9223:       ;;
1.1.1.6   root     9224:     esac |
                   9225:     sort
                   9226: ) |
1.1       root     9227:   sed '
1.1.1.6   root     9228:      /^ac_cv_env_/b end
1.1       root     9229:      t clear
1.1.1.6   root     9230:      :clear
1.1       root     9231:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9232:      t end
1.1.1.6   root     9233:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9234:      :end' >>confcache
                   9235: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9236:   if test -w "$cache_file"; then
                   9237:     test "x$cache_file" != "x/dev/null" &&
                   9238:       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
                   9239: echo "$as_me: updating cache $cache_file" >&6;}
1.1       root     9240:     cat confcache >$cache_file
                   9241:   else
1.1.1.6   root     9242:     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
                   9243: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       root     9244:   fi
                   9245: fi
                   9246: rm -f confcache
                   9247: 
                   9248: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9249: # Let make expand exec_prefix.
                   9250: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9251: 
1.1.1.6   root     9252: DEFS=-DHAVE_CONFIG_H
1.1       root     9253: 
1.1.1.3   root     9254: ac_libobjs=
                   9255: ac_ltlibobjs=
                   9256: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9257:   # 1. Remove the extension, and $U if already installed.
1.1.1.6   root     9258:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
                   9259:   ac_i=`echo "$ac_i" | sed "$ac_script"`
                   9260:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9261:   #    will be set to the directory where LIBOBJS objects are built.
                   9262:   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9263:   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
1.1.1.3   root     9264: done
                   9265: LIBOBJS=$ac_libobjs
                   9266: 
                   9267: LTLIBOBJS=$ac_ltlibobjs
                   9268: 
                   9269: 
1.1       root     9270: 
                   9271: : ${CONFIG_STATUS=./config.status}
                   9272: ac_clean_files_save=$ac_clean_files
                   9273: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
                   9274: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
                   9275: echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9276: cat >$CONFIG_STATUS <<_ACEOF
                   9277: #! $SHELL
                   9278: # Generated by $as_me.
                   9279: # Run this file to recreate the current configuration.
                   9280: # Compiler output produced by configure, useful for debugging
                   9281: # configure, is in config.log if it exists.
                   9282: 
                   9283: debug=false
1.1.1.3   root     9284: ac_cs_recheck=false
                   9285: ac_cs_silent=false
1.1       root     9286: SHELL=\${CONFIG_SHELL-$SHELL}
                   9287: _ACEOF
                   9288: 
                   9289: cat >>$CONFIG_STATUS <<\_ACEOF
                   9290: ## --------------------- ##
                   9291: ## M4sh Initialization.  ##
                   9292: ## --------------------- ##
                   9293: 
1.1.1.8 ! root     9294: # Be Bourne compatible
1.1       root     9295: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                   9296:   emulate sh
                   9297:   NULLCMD=:
1.1.1.3   root     9298:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                   9299:   # is contrary to our usage.  Disable this feature.
                   9300:   alias -g '${1+"$@"}'='"$@"'
1.1.1.6   root     9301:   setopt NO_GLOB_SUBST
                   9302: else
1.1.1.8 ! root     9303:   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
1.1.1.6   root     9304: fi
1.1.1.8 ! root     9305: BIN_SH=xpg4; export BIN_SH # for Tru64
        !          9306: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.6   root     9307: 
                   9308: 
                   9309: # PATH needs CR
                   9310: # Avoid depending upon Character Ranges.
                   9311: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   9312: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   9313: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   9314: as_cr_digits='0123456789'
                   9315: as_cr_alnum=$as_cr_Letters$as_cr_digits
                   9316: 
                   9317: # The user is always right.
                   9318: if test "${PATH_SEPARATOR+set}" != set; then
                   9319:   echo "#! /bin/sh" >conf$$.sh
                   9320:   echo  "exit 0"   >>conf$$.sh
                   9321:   chmod +x conf$$.sh
                   9322:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
                   9323:     PATH_SEPARATOR=';'
                   9324:   else
                   9325:     PATH_SEPARATOR=:
                   9326:   fi
                   9327:   rm -f conf$$.sh
1.1       root     9328: fi
                   9329: 
                   9330: # Support unset when possible.
1.1.1.3   root     9331: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.1       root     9332:   as_unset=unset
                   9333: else
                   9334:   as_unset=false
                   9335: fi
                   9336: 
1.1.1.3   root     9337: 
1.1.1.6   root     9338: # IFS
                   9339: # We need space, tab and new line, in precisely that order.  Quoting is
                   9340: # there to prevent editors from complaining about space-tab.
                   9341: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9342: # splitting by setting IFS to empty value.)
                   9343: as_nl='
                   9344: '
                   9345: IFS=" ""       $as_nl"
                   9346: 
                   9347: # Find who we are.  Look in the path if we contain no directory separator.
                   9348: case $0 in
                   9349:   *[\\/]* ) as_myself=$0 ;;
                   9350:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9351: for as_dir in $PATH
                   9352: do
                   9353:   IFS=$as_save_IFS
                   9354:   test -z "$as_dir" && as_dir=.
                   9355:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9356: done
                   9357: IFS=$as_save_IFS
                   9358: 
                   9359:      ;;
                   9360: esac
                   9361: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9362: # in which case we are not to be found in the path.
                   9363: if test "x$as_myself" = x; then
                   9364:   as_myself=$0
                   9365: fi
                   9366: if test ! -f "$as_myself"; then
                   9367:   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9368:   { (exit 1); exit 1; }
                   9369: fi
                   9370: 
1.1.1.3   root     9371: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.6   root     9372: for as_var in ENV MAIL MAILPATH
                   9373: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                   9374: done
1.1.1.3   root     9375: PS1='$ '
                   9376: PS2='> '
                   9377: PS4='+ '
                   9378: 
                   9379: # NLS nuisances.
                   9380: for as_var in \
                   9381:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
                   9382:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
                   9383:   LC_TELEPHONE LC_TIME
                   9384: do
                   9385:   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
                   9386:     eval $as_var=C; export $as_var
                   9387:   else
1.1.1.6   root     9388:     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1.1.3   root     9389:   fi
                   9390: done
                   9391: 
                   9392: # Required to use basename.
1.1.1.6   root     9393: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9394:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.3   root     9395:   as_expr=expr
                   9396: else
                   9397:   as_expr=false
                   9398: fi
                   9399: 
1.1.1.6   root     9400: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1.1.3   root     9401:   as_basename=basename
                   9402: else
                   9403:   as_basename=false
                   9404: fi
1.1       root     9405: 
                   9406: 
                   9407: # Name of the executable.
1.1.1.6   root     9408: as_me=`$as_basename -- "$0" ||
1.1       root     9409: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   9410:         X"$0" : 'X\(//\)$' \| \
1.1.1.6   root     9411:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1       root     9412: echo X/"$0" |
1.1.1.6   root     9413:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   9414:            s//\1/
                   9415:            q
                   9416:          }
                   9417:          /^X\/\(\/\/\)$/{
                   9418:            s//\1/
                   9419:            q
                   9420:          }
                   9421:          /^X\/\(\/\).*/{
                   9422:            s//\1/
                   9423:            q
                   9424:          }
                   9425:          s/.*/./; q'`
1.1       root     9426: 
1.1.1.6   root     9427: # CDPATH.
                   9428: $as_unset CDPATH
1.1       root     9429: 
                   9430: 
                   9431: 
                   9432:   as_lineno_1=$LINENO
                   9433:   as_lineno_2=$LINENO
                   9434:   test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.6   root     9435:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1       root     9436: 
                   9437:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                   9438:   # uniformly replaced by the line number.  The first 'sed' inserts a
1.1.1.6   root     9439:   # line-number line after each line using $LINENO; the second 'sed'
                   9440:   # does the real work.  The second script uses 'N' to pair each
                   9441:   # line-number line with the line containing $LINENO, and appends
                   9442:   # trailing '-' during substitution so that $LINENO is not a special
                   9443:   # case at line end.
1.1       root     9444:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.6   root     9445:   # scripts with optimization help from Paolo Bonzini.  Blame Lee
                   9446:   # E. McMahon (1931-1989) for sed's syntax.  :-)
                   9447:   sed -n '
                   9448:     p
                   9449:     /[$]LINENO/=
                   9450:   ' <$as_myself |
1.1       root     9451:     sed '
1.1.1.6   root     9452:       s/[$]LINENO.*/&-/
                   9453:       t lineno
                   9454:       b
                   9455:       :lineno
1.1       root     9456:       N
1.1.1.6   root     9457:       :loop
                   9458:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1       root     9459:       t loop
1.1.1.6   root     9460:       s/-\n.*//
1.1       root     9461:     ' >$as_me.lineno &&
1.1.1.6   root     9462:   chmod +x "$as_me.lineno" ||
                   9463:     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.1       root     9464:    { (exit 1); exit 1; }; }
                   9465: 
                   9466:   # Don't try to exec as it changes $[0], causing all sort of problems
                   9467:   # (the dirname of $[0] is not the place where we might find the
1.1.1.6   root     9468:   # original and so on.  Autoconf is especially sensitive to this).
                   9469:   . "./$as_me.lineno"
1.1       root     9470:   # Exit status is that of the last command.
                   9471:   exit
                   9472: }
                   9473: 
                   9474: 
1.1.1.6   root     9475: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   9476:   as_dirname=dirname
                   9477: else
                   9478:   as_dirname=false
                   9479: fi
                   9480: 
                   9481: ECHO_C= ECHO_N= ECHO_T=
                   9482: case `echo -n x` in
                   9483: -n*)
                   9484:   case `echo 'x\c'` in
                   9485:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                   9486:   *)   ECHO_C='\c';;
                   9487:   esac;;
                   9488: *)
                   9489:   ECHO_N='-n';;
1.1       root     9490: esac
                   9491: 
1.1.1.6   root     9492: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9493:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1       root     9494:   as_expr=expr
                   9495: else
                   9496:   as_expr=false
                   9497: fi
                   9498: 
                   9499: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.6   root     9500: if test -d conf$$.dir; then
                   9501:   rm -f conf$$.dir/conf$$.file
                   9502: else
                   9503:   rm -f conf$$.dir
                   9504:   mkdir conf$$.dir
                   9505: fi
1.1       root     9506: echo >conf$$.file
                   9507: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.1.1.6   root     9508:   as_ln_s='ln -s'
                   9509:   # ... but there are two gotchas:
                   9510:   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   9511:   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   9512:   # In both cases, we have to default to `cp -p'.
                   9513:   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1       root     9514:     as_ln_s='cp -p'
                   9515: elif ln conf$$.file conf$$ 2>/dev/null; then
                   9516:   as_ln_s=ln
                   9517: else
                   9518:   as_ln_s='cp -p'
                   9519: fi
1.1.1.6   root     9520: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   9521: rmdir conf$$.dir 2>/dev/null
1.1       root     9522: 
1.1.1.3   root     9523: if mkdir -p . 2>/dev/null; then
                   9524:   as_mkdir_p=:
                   9525: else
                   9526:   test -d ./-p && rmdir ./-p
                   9527:   as_mkdir_p=false
                   9528: fi
                   9529: 
1.1.1.8 ! root     9530: # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
        !          9531: # systems may use methods other than mode bits to determine executability.
        !          9532: cat >conf$$.file <<_ASEOF
        !          9533: #! /bin/sh
        !          9534: exit 0
        !          9535: _ASEOF
        !          9536: chmod +x conf$$.file
        !          9537: if test -x conf$$.file >/dev/null 2>&1; then
        !          9538:   as_executable_p="test -x"
1.1.1.6   root     9539: else
1.1.1.8 ! root     9540:   as_executable_p=:
1.1.1.6   root     9541: fi
1.1.1.8 ! root     9542: rm -f conf$$.file
1.1       root     9543: 
                   9544: # Sed expression to map a string onto a valid CPP name.
1.1.1.3   root     9545: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.1       root     9546: 
                   9547: # Sed expression to map a string onto a valid variable name.
1.1.1.3   root     9548: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.1       root     9549: 
                   9550: 
                   9551: exec 6>&1
                   9552: 
1.1.1.6   root     9553: # Save the log message, to keep $[0] and so on meaningful, and to
1.1       root     9554: # report actual input values of CONFIG_FILES etc. instead of their
1.1.1.6   root     9555: # values after options handling.
                   9556: ac_log="
1.1.1.8 ! root     9557: This file was extended by hatari $as_me 1.1.0, which was
        !          9558: generated by GNU Autoconf 2.60.  Invocation command line was
1.1       root     9559: 
                   9560:   CONFIG_FILES    = $CONFIG_FILES
                   9561:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   9562:   CONFIG_LINKS    = $CONFIG_LINKS
                   9563:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   9564:   $ $0 $@
                   9565: 
1.1.1.6   root     9566: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   9567: "
                   9568: 
1.1       root     9569: _ACEOF
                   9570: 
1.1.1.6   root     9571: cat >>$CONFIG_STATUS <<_ACEOF
1.1       root     9572: # Files that config.status was made for.
1.1.1.6   root     9573: config_files="$ac_config_files"
                   9574: config_headers="$ac_config_headers"
1.1       root     9575: 
1.1.1.6   root     9576: _ACEOF
1.1       root     9577: 
                   9578: cat >>$CONFIG_STATUS <<\_ACEOF
                   9579: ac_cs_usage="\
                   9580: \`$as_me' instantiates files from templates according to the
                   9581: current configuration.
                   9582: 
                   9583: Usage: $0 [OPTIONS] [FILE]...
                   9584: 
                   9585:   -h, --help       print this help, then exit
1.1.1.8 ! root     9586:   -V, --version    print version number, then exit
1.1.1.3   root     9587:   -q, --quiet      do not print progress messages
1.1       root     9588:   -d, --debug      don't remove temporary files
                   9589:       --recheck    update $as_me by reconfiguring in the same conditions
                   9590:   --file=FILE[:TEMPLATE]
1.1.1.3   root     9591:                   instantiate the configuration file FILE
1.1.1.6   root     9592:   --header=FILE[:TEMPLATE]
                   9593:                   instantiate the configuration header FILE
1.1       root     9594: 
                   9595: Configuration files:
                   9596: $config_files
                   9597: 
1.1.1.6   root     9598: Configuration headers:
                   9599: $config_headers
                   9600: 
1.1       root     9601: Report bugs to <[email protected]>."
                   9602: 
1.1.1.6   root     9603: _ACEOF
1.1       root     9604: cat >>$CONFIG_STATUS <<_ACEOF
                   9605: ac_cs_version="\\
1.1.1.8 ! root     9606: hatari config.status 1.1.0
        !          9607: configured by $0, generated by GNU Autoconf 2.60,
1.1.1.6   root     9608:   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.1       root     9609: 
1.1.1.6   root     9610: Copyright (C) 2006 Free Software Foundation, Inc.
1.1       root     9611: This config.status script is free software; the Free Software Foundation
                   9612: gives unlimited permission to copy, distribute and modify it."
1.1.1.6   root     9613: 
                   9614: ac_pwd='$ac_pwd'
                   9615: srcdir='$srcdir'
                   9616: INSTALL='$INSTALL'
1.1       root     9617: _ACEOF
                   9618: 
                   9619: cat >>$CONFIG_STATUS <<\_ACEOF
                   9620: # If no file are specified by the user, then we need to provide default
                   9621: # value.  By we need to know if files were specified by the user.
                   9622: ac_need_defaults=:
                   9623: while test $# != 0
                   9624: do
                   9625:   case $1 in
                   9626:   --*=*)
1.1.1.6   root     9627:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   9628:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.1.1.3   root     9629:     ac_shift=:
                   9630:     ;;
1.1.1.6   root     9631:   *)
1.1.1.3   root     9632:     ac_option=$1
                   9633:     ac_optarg=$2
                   9634:     ac_shift=shift
1.1       root     9635:     ;;
                   9636:   esac
                   9637: 
1.1.1.3   root     9638:   case $ac_option in
1.1       root     9639:   # Handling of the options.
1.1.1.3   root     9640:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   9641:     ac_cs_recheck=: ;;
1.1.1.6   root     9642:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
                   9643:     echo "$ac_cs_version"; exit ;;
                   9644:   --debug | --debu | --deb | --de | --d | -d )
1.1       root     9645:     debug=: ;;
                   9646:   --file | --fil | --fi | --f )
1.1.1.3   root     9647:     $ac_shift
                   9648:     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.1       root     9649:     ac_need_defaults=false;;
                   9650:   --header | --heade | --head | --hea )
1.1.1.3   root     9651:     $ac_shift
                   9652:     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.1       root     9653:     ac_need_defaults=false;;
1.1.1.6   root     9654:   --he | --h)
                   9655:     # Conflict between --help and --header
                   9656:     { echo "$as_me: error: ambiguous option: $1
                   9657: Try \`$0 --help' for more information." >&2
                   9658:    { (exit 1); exit 1; }; };;
                   9659:   --help | --hel | -h )
                   9660:     echo "$ac_cs_usage"; exit ;;
1.1.1.3   root     9661:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   9662:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   9663:     ac_cs_silent=: ;;
1.1       root     9664: 
                   9665:   # This is an error.
1.1.1.6   root     9666:   -*) { echo "$as_me: error: unrecognized option: $1
                   9667: Try \`$0 --help' for more information." >&2
1.1       root     9668:    { (exit 1); exit 1; }; } ;;
                   9669: 
1.1.1.6   root     9670:   *) ac_config_targets="$ac_config_targets $1"
                   9671:      ac_need_defaults=false ;;
1.1       root     9672: 
                   9673:   esac
                   9674:   shift
                   9675: done
                   9676: 
1.1.1.3   root     9677: ac_configure_extra_args=
                   9678: 
                   9679: if $ac_cs_silent; then
                   9680:   exec 6>/dev/null
                   9681:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   9682: fi
                   9683: 
                   9684: _ACEOF
                   9685: cat >>$CONFIG_STATUS <<_ACEOF
                   9686: if \$ac_cs_recheck; then
1.1.1.6   root     9687:   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
                   9688:   CONFIG_SHELL=$SHELL
                   9689:   export CONFIG_SHELL
                   9690:   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1.1.3   root     9691: fi
                   9692: 
1.1       root     9693: _ACEOF
1.1.1.6   root     9694: cat >>$CONFIG_STATUS <<\_ACEOF
                   9695: exec 5>>config.log
                   9696: {
                   9697:   echo
                   9698:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   9699: ## Running $as_me. ##
                   9700: _ASBOX
                   9701:   echo "$ac_log"
                   9702: } >&5
1.1       root     9703: 
1.1.1.6   root     9704: _ACEOF
                   9705: cat >>$CONFIG_STATUS <<_ACEOF
                   9706: _ACEOF
1.1       root     9707: 
                   9708: cat >>$CONFIG_STATUS <<\_ACEOF
1.1.1.6   root     9709: 
                   9710: # Handling of arguments.
1.1       root     9711: for ac_config_target in $ac_config_targets
                   9712: do
1.1.1.6   root     9713:   case $ac_config_target in
                   9714:     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
                   9715:     "Makefile.cnf") CONFIG_FILES="$CONFIG_FILES Makefile.cnf" ;;
                   9716: 
1.1       root     9717:   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
                   9718: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
                   9719:    { (exit 1); exit 1; }; };;
                   9720:   esac
                   9721: done
                   9722: 
1.1.1.6   root     9723: 
1.1       root     9724: # If the user did not use the arguments to specify the items to instantiate,
                   9725: # then the envvar interface is used.  Set only those that are not.
                   9726: # We use the long form for the default assignment because of an extremely
                   9727: # bizarre bug on SunOS 4.1.3.
                   9728: if $ac_need_defaults; then
                   9729:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1.1.1.6   root     9730:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1.1       root     9731: fi
                   9732: 
1.1.1.3   root     9733: # Have a temporary directory for convenience.  Make it in the build tree
1.1.1.6   root     9734: # simply because there is no reason against having it here, and in addition,
1.1.1.3   root     9735: # creating and moving files from /tmp can sometimes cause problems.
1.1.1.6   root     9736: # Hook for its removal unless debugging.
                   9737: # Note that there is a small window in which the directory will not be cleaned:
                   9738: # after its creation but before its name has been assigned to `$tmp'.
1.1       root     9739: $debug ||
                   9740: {
1.1.1.6   root     9741:   tmp=
                   9742:   trap 'exit_status=$?
                   9743:   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
                   9744: ' 0
1.1       root     9745:   trap '{ (exit 1); exit 1; }' 1 2 13 15
                   9746: }
                   9747: # Create a (secure) tmp directory for tmp files.
1.1.1.3   root     9748: 
1.1       root     9749: {
1.1.1.6   root     9750:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1       root     9751:   test -n "$tmp" && test -d "$tmp"
                   9752: }  ||
                   9753: {
1.1.1.6   root     9754:   tmp=./conf$$-$RANDOM
                   9755:   (umask 077 && mkdir "$tmp")
1.1       root     9756: } ||
                   9757: {
1.1.1.3   root     9758:    echo "$me: cannot create a temporary directory in ." >&2
1.1       root     9759:    { (exit 1); exit 1; }
                   9760: }
                   9761: 
                   9762: #
1.1.1.6   root     9763: # Set up the sed scripts for CONFIG_FILES section.
1.1       root     9764: #
                   9765: 
                   9766: # No need to generate the scripts if there are no CONFIG_FILES.
                   9767: # This happens for instance when ./config.status config.h
1.1.1.6   root     9768: if test -n "$CONFIG_FILES"; then
                   9769: 
                   9770: _ACEOF
                   9771: 
                   9772: 
                   9773: 
                   9774: ac_delim='%!_!# '
                   9775: for ac_last_try in false false false false false :; do
                   9776:   cat >conf$$subs.sed <<_ACEOF
                   9777: SHELL!$SHELL$ac_delim
                   9778: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
                   9779: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
                   9780: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
                   9781: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
                   9782: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
                   9783: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
                   9784: exec_prefix!$exec_prefix$ac_delim
                   9785: prefix!$prefix$ac_delim
                   9786: program_transform_name!$program_transform_name$ac_delim
                   9787: bindir!$bindir$ac_delim
                   9788: sbindir!$sbindir$ac_delim
                   9789: libexecdir!$libexecdir$ac_delim
                   9790: datarootdir!$datarootdir$ac_delim
                   9791: datadir!$datadir$ac_delim
                   9792: sysconfdir!$sysconfdir$ac_delim
                   9793: sharedstatedir!$sharedstatedir$ac_delim
                   9794: localstatedir!$localstatedir$ac_delim
                   9795: includedir!$includedir$ac_delim
                   9796: oldincludedir!$oldincludedir$ac_delim
                   9797: docdir!$docdir$ac_delim
                   9798: infodir!$infodir$ac_delim
                   9799: htmldir!$htmldir$ac_delim
                   9800: dvidir!$dvidir$ac_delim
                   9801: pdfdir!$pdfdir$ac_delim
                   9802: psdir!$psdir$ac_delim
                   9803: libdir!$libdir$ac_delim
                   9804: localedir!$localedir$ac_delim
                   9805: mandir!$mandir$ac_delim
                   9806: DEFS!$DEFS$ac_delim
                   9807: ECHO_C!$ECHO_C$ac_delim
                   9808: ECHO_N!$ECHO_N$ac_delim
                   9809: ECHO_T!$ECHO_T$ac_delim
                   9810: LIBS!$LIBS$ac_delim
                   9811: build_alias!$build_alias$ac_delim
                   9812: host_alias!$host_alias$ac_delim
                   9813: target_alias!$target_alias$ac_delim
                   9814: build!$build$ac_delim
                   9815: build_cpu!$build_cpu$ac_delim
                   9816: build_vendor!$build_vendor$ac_delim
                   9817: build_os!$build_os$ac_delim
                   9818: host!$host$ac_delim
                   9819: host_cpu!$host_cpu$ac_delim
                   9820: host_vendor!$host_vendor$ac_delim
                   9821: host_os!$host_os$ac_delim
                   9822: target!$target$ac_delim
                   9823: target_cpu!$target_cpu$ac_delim
                   9824: target_vendor!$target_vendor$ac_delim
                   9825: target_os!$target_os$ac_delim
                   9826: CC!$CC$ac_delim
                   9827: CFLAGS!$CFLAGS$ac_delim
                   9828: LDFLAGS!$LDFLAGS$ac_delim
                   9829: CPPFLAGS!$CPPFLAGS$ac_delim
                   9830: ac_ct_CC!$ac_ct_CC$ac_delim
                   9831: EXEEXT!$EXEEXT$ac_delim
                   9832: OBJEXT!$OBJEXT$ac_delim
                   9833: INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
                   9834: INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
                   9835: INSTALL_DATA!$INSTALL_DATA$ac_delim
                   9836: RANLIB!$RANLIB$ac_delim
                   9837: CPP!$CPP$ac_delim
                   9838: GREP!$GREP$ac_delim
                   9839: EGREP!$EGREP$ac_delim
1.1.1.8 ! root     9840: SDL_CONFIG!$SDL_CONFIG$ac_delim
        !          9841: SDL_CFLAGS!$SDL_CFLAGS$ac_delim
        !          9842: SDL_LIBS!$SDL_LIBS$ac_delim
1.1.1.6   root     9843: HAVE_PKG_CONFIG!$HAVE_PKG_CONFIG$ac_delim
                   9844: PKG_CONFIG!$PKG_CONFIG$ac_delim
                   9845: X_CFLAGS!$X_CFLAGS$ac_delim
                   9846: X_LIBS!$X_LIBS$ac_delim
                   9847: XMKMF!$XMKMF$ac_delim
                   9848: X_PRE_LIBS!$X_PRE_LIBS$ac_delim
                   9849: X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
                   9850: LIBOBJS!$LIBOBJS$ac_delim
                   9851: HOSTCC!$HOSTCC$ac_delim
                   9852: HOSTCFLAGS!$HOSTCFLAGS$ac_delim
                   9853: HOSTLDFLAGS!$HOSTLDFLAGS$ac_delim
                   9854: LTLIBOBJS!$LTLIBOBJS$ac_delim
                   9855: _ACEOF
                   9856: 
                   9857:   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
                   9858:     break
                   9859:   elif $ac_last_try; then
                   9860:     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
                   9861: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
                   9862:    { (exit 1); exit 1; }; }
                   9863:   else
                   9864:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1       root     9865:   fi
1.1.1.6   root     9866: done
                   9867: 
                   9868: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
                   9869: if test -n "$ac_eof"; then
                   9870:   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
                   9871:   ac_eof=`expr $ac_eof + 1`
                   9872: fi
1.1       root     9873: 
1.1.1.6   root     9874: cat >>$CONFIG_STATUS <<_ACEOF
                   9875: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
                   9876: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
1.1       root     9877: _ACEOF
1.1.1.6   root     9878: sed '
                   9879: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
                   9880: s/^/s,@/; s/!/@,|#_!!_#|/
                   9881: :n
                   9882: t n
                   9883: s/'"$ac_delim"'$/,g/; t
                   9884: s/$/\\/; p
                   9885: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
                   9886: ' >>$CONFIG_STATUS <conf$$subs.sed
                   9887: rm -f conf$$subs.sed
                   9888: cat >>$CONFIG_STATUS <<_ACEOF
                   9889: :end
                   9890: s/|#_!!_#|//g
                   9891: CEOF$ac_eof
                   9892: _ACEOF
                   9893: 
                   9894: 
                   9895: # VPATH may cause trouble with some makes, so we remove $(srcdir),
                   9896: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
                   9897: # trailing colons and then remove the whole line if VPATH becomes empty
                   9898: # (actually we leave an empty line to preserve line numbers).
                   9899: if test "x$srcdir" = x.; then
                   9900:   ac_vpsub='/^[         ]*VPATH[        ]*=/{
                   9901: s/:*\$(srcdir):*/:/
                   9902: s/:*\${srcdir}:*/:/
                   9903: s/:*@srcdir@:*/:/
                   9904: s/^\([^=]*=[    ]*\):*/\1/
                   9905: s/:*$//
                   9906: s/^[^=]*=[      ]*$//
                   9907: }'
                   9908: fi
                   9909: 
1.1       root     9910: cat >>$CONFIG_STATUS <<\_ACEOF
1.1.1.6   root     9911: fi # test -n "$CONFIG_FILES"
                   9912: 
                   9913: 
                   9914: for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
                   9915: do
                   9916:   case $ac_tag in
                   9917:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   9918:   esac
                   9919:   case $ac_mode$ac_tag in
                   9920:   :[FHL]*:*);;
                   9921:   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
                   9922: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
                   9923:    { (exit 1); exit 1; }; };;
                   9924:   :[FH]-) ac_tag=-:-;;
                   9925:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   9926:   esac
                   9927:   ac_save_IFS=$IFS
                   9928:   IFS=:
                   9929:   set x $ac_tag
                   9930:   IFS=$ac_save_IFS
                   9931:   shift
                   9932:   ac_file=$1
                   9933:   shift
                   9934: 
                   9935:   case $ac_mode in
                   9936:   :L) ac_source=$1;;
                   9937:   :[FH])
                   9938:     ac_file_inputs=
                   9939:     for ac_f
                   9940:     do
                   9941:       case $ac_f in
                   9942:       -) ac_f="$tmp/stdin";;
                   9943:       *) # Look for the file first in the build tree, then in the source tree
                   9944:         # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   9945:         # because $ac_f cannot contain `:'.
                   9946:         test -f "$ac_f" ||
                   9947:           case $ac_f in
                   9948:           [\\/$]*) false;;
                   9949:           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   9950:           esac ||
                   9951:           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
                   9952: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
                   9953:    { (exit 1); exit 1; }; };;
                   9954:       esac
                   9955:       ac_file_inputs="$ac_file_inputs $ac_f"
                   9956:     done
                   9957: 
                   9958:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   9959:     # use $as_me), people would be surprised to read:
                   9960:     #    /* config.h.  Generated by config.status.  */
                   9961:     configure_input="Generated from "`IFS=:
                   9962:          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
                   9963:     if test x"$ac_file" != x-; then
                   9964:       configure_input="$ac_file.  $configure_input"
                   9965:       { echo "$as_me:$LINENO: creating $ac_file" >&5
                   9966: echo "$as_me: creating $ac_file" >&6;}
                   9967:     fi
                   9968: 
                   9969:     case $ac_tag in
                   9970:     *:-:* | *:-) cat >"$tmp/stdin";;
                   9971:     esac
                   9972:     ;;
1.1       root     9973:   esac
                   9974: 
1.1.1.6   root     9975:   ac_dir=`$as_dirname -- "$ac_file" ||
1.1       root     9976: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.3   root     9977:         X"$ac_file" : 'X\(//\)[^/]' \| \
                   9978:         X"$ac_file" : 'X\(//\)$' \| \
1.1.1.6   root     9979:         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.1       root     9980: echo X"$ac_file" |
1.1.1.6   root     9981:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   9982:            s//\1/
                   9983:            q
                   9984:          }
                   9985:          /^X\(\/\/\)[^/].*/{
                   9986:            s//\1/
                   9987:            q
                   9988:          }
                   9989:          /^X\(\/\/\)$/{
                   9990:            s//\1/
                   9991:            q
                   9992:          }
                   9993:          /^X\(\/\).*/{
                   9994:            s//\1/
                   9995:            q
                   9996:          }
                   9997:          s/.*/./; q'`
                   9998:   { as_dir="$ac_dir"
                   9999:   case $as_dir in #(
                   10000:   -*) as_dir=./$as_dir;;
                   10001:   esac
                   10002:   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.1.1.3   root     10003:     as_dirs=
1.1.1.6   root     10004:     while :; do
                   10005:       case $as_dir in #(
                   10006:       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
                   10007:       *) as_qdir=$as_dir;;
                   10008:       esac
                   10009:       as_dirs="'$as_qdir' $as_dirs"
                   10010:       as_dir=`$as_dirname -- "$as_dir" ||
1.1.1.3   root     10011: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10012:         X"$as_dir" : 'X\(//\)[^/]' \| \
                   10013:         X"$as_dir" : 'X\(//\)$' \| \
1.1.1.6   root     10014:         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.3   root     10015: echo X"$as_dir" |
1.1.1.6   root     10016:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10017:            s//\1/
                   10018:            q
                   10019:          }
                   10020:          /^X\(\/\/\)[^/].*/{
                   10021:            s//\1/
                   10022:            q
                   10023:          }
                   10024:          /^X\(\/\/\)$/{
                   10025:            s//\1/
                   10026:            q
                   10027:          }
                   10028:          /^X\(\/\).*/{
                   10029:            s//\1/
                   10030:            q
                   10031:          }
                   10032:          s/.*/./; q'`
                   10033:       test -d "$as_dir" && break
1.1.1.3   root     10034:     done
1.1.1.6   root     10035:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                   10036:   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
                   10037: echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.1.1.3   root     10038:    { (exit 1); exit 1; }; }; }
1.1       root     10039:   ac_builddir=.
                   10040: 
1.1.1.6   root     10041: case "$ac_dir" in
                   10042: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10043: *)
1.1       root     10044:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.6   root     10045:   # A ".." for each directory in $ac_dir_suffix.
                   10046:   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
                   10047:   case $ac_top_builddir_sub in
                   10048:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10049:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10050:   esac ;;
                   10051: esac
                   10052: ac_abs_top_builddir=$ac_pwd
                   10053: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10054: # for backward compatibility:
                   10055: ac_top_builddir=$ac_top_build_prefix
1.1       root     10056: 
                   10057: case $srcdir in
1.1.1.6   root     10058:   .)  # We are building in place.
1.1       root     10059:     ac_srcdir=.
1.1.1.6   root     10060:     ac_top_srcdir=$ac_top_builddir_sub
                   10061:     ac_abs_top_srcdir=$ac_pwd ;;
                   10062:   [\\/]* | ?:[\\/]* )  # Absolute name.
1.1       root     10063:     ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.6   root     10064:     ac_top_srcdir=$srcdir
                   10065:     ac_abs_top_srcdir=$srcdir ;;
                   10066:   *) # Relative name.
                   10067:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10068:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10069:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.1       root     10070: esac
1.1.1.6   root     10071: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1.1.3   root     10072: 
1.1       root     10073: 
1.1.1.6   root     10074:   case $ac_mode in
                   10075:   :F)
                   10076:   #
                   10077:   # CONFIG_FILE
                   10078:   #
1.1       root     10079: 
                   10080:   case $INSTALL in
                   10081:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.1.1.6   root     10082:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1       root     10083:   esac
1.1.1.6   root     10084: _ACEOF
1.1       root     10085: 
1.1.1.6   root     10086: cat >>$CONFIG_STATUS <<\_ACEOF
                   10087: # If the template does not know about datarootdir, expand it.
                   10088: # FIXME: This hack should be removed a few years after 2.60.
                   10089: ac_datarootdir_hack=; ac_datarootdir_seen=
                   10090: 
                   10091: case `sed -n '/datarootdir/ {
                   10092:   p
                   10093:   q
                   10094: }
                   10095: /@datadir@/p
                   10096: /@docdir@/p
                   10097: /@infodir@/p
                   10098: /@localedir@/p
                   10099: /@mandir@/p
                   10100: ' $ac_file_inputs` in
                   10101: *datarootdir*) ac_datarootdir_seen=yes;;
                   10102: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
                   10103:   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10104: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       root     10105: _ACEOF
                   10106: cat >>$CONFIG_STATUS <<_ACEOF
1.1.1.6   root     10107:   ac_datarootdir_hack='
                   10108:   s&@datadir@&$datadir&g
                   10109:   s&@docdir@&$docdir&g
                   10110:   s&@infodir@&$infodir&g
                   10111:   s&@localedir@&$localedir&g
                   10112:   s&@mandir@&$mandir&g
                   10113:     s&\\\${datarootdir}&$datarootdir&g' ;;
                   10114: esac
                   10115: _ACEOF
                   10116: 
                   10117: # Neutralize VPATH when `$srcdir' = `.'.
                   10118: # Shell code in configure.ac might set extrasub.
                   10119: # FIXME: do we really want to maintain this feature?
                   10120: cat >>$CONFIG_STATUS <<_ACEOF
1.1       root     10121:   sed "$ac_vpsub
                   10122: $extrasub
                   10123: _ACEOF
                   10124: cat >>$CONFIG_STATUS <<\_ACEOF
                   10125: :t
                   10126: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.1.1.6   root     10127: s&@configure_input@&$configure_input&;t t
                   10128: s&@top_builddir@&$ac_top_builddir_sub&;t t
                   10129: s&@srcdir@&$ac_srcdir&;t t
                   10130: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10131: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10132: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10133: s&@builddir@&$ac_builddir&;t t
                   10134: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10135: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10136: s&@INSTALL@&$ac_INSTALL&;t t
                   10137: $ac_datarootdir_hack
                   10138: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
                   10139: 
                   10140: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   10141:   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
                   10142:   { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
                   10143:   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   10144: which seems to be undefined.  Please make sure it is defined." >&5
                   10145: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   10146: which seems to be undefined.  Please make sure it is defined." >&2;}
                   10147: 
                   10148:   rm -f "$tmp/stdin"
                   10149:   case $ac_file in
                   10150:   -) cat "$tmp/out"; rm -f "$tmp/out";;
                   10151:   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
                   10152:   esac
                   10153:  ;;
                   10154:   :H)
                   10155:   #
                   10156:   # CONFIG_HEADER
                   10157:   #
                   10158: _ACEOF
                   10159: 
                   10160: # Transform confdefs.h into a sed script `conftest.defines', that
                   10161: # substitutes the proper values into config.h.in to produce config.h.
                   10162: rm -f conftest.defines conftest.tail
                   10163: # First, append a space to every undef/define line, to ease matching.
                   10164: echo 's/$/ /' >conftest.defines
                   10165: # Then, protect against being on the right side of a sed subst, or in
                   10166: # an unquoted here document, in config.status.  If some macros were
                   10167: # called several times there might be several #defines for the same
                   10168: # symbol, which is useless.  But do not sort them, since the last
                   10169: # AC_DEFINE must be honored.
                   10170: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10171: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
                   10172: # NAME is the cpp macro being defined, VALUE is the value it is being given.
                   10173: # PARAMS is the parameter list in the macro definition--in most cases, it's
                   10174: # just an empty string.
                   10175: ac_dA='s,^\\([  #]*\\)[^        ]*\\([  ]*'
                   10176: ac_dB='\\)[     (].*,\\1define\\2'
                   10177: ac_dC=' '
                   10178: ac_dD=' ,'
                   10179: 
                   10180: uniq confdefs.h |
                   10181:   sed -n '
                   10182:        t rset
                   10183:        :rset
                   10184:        s/^[     ]*#[    ]*define[       ][      ]*//
                   10185:        t ok
                   10186:        d
                   10187:        :ok
                   10188:        s/[\\&,]/\\&/g
                   10189:        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
                   10190:        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
                   10191:   ' >>conftest.defines
                   10192: 
                   10193: # Remove the space that was appended to ease matching.
                   10194: # Then replace #undef with comments.  This is necessary, for
                   10195: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   10196: # on some systems where configure will not decide to define it.
                   10197: # (The regexp can be short, since the line contains either #define or #undef.)
                   10198: echo 's/ $//
                   10199: s,^[    #]*u.*,/* & */,' >>conftest.defines
                   10200: 
                   10201: # Break up conftest.defines:
                   10202: ac_max_sed_lines=50
                   10203: 
                   10204: # First sed command is:         sed -f defines.sed $ac_file_inputs >"$tmp/out1"
                   10205: # Second one is:        sed -f defines.sed "$tmp/out1" >"$tmp/out2"
                   10206: # Third one will be:    sed -f defines.sed "$tmp/out2" >"$tmp/out1"
                   10207: # et cetera.
                   10208: ac_in='$ac_file_inputs'
                   10209: ac_out='"$tmp/out1"'
                   10210: ac_nxt='"$tmp/out2"'
                   10211: 
                   10212: while :
                   10213: do
                   10214:   # Write a here document:
                   10215:     cat >>$CONFIG_STATUS <<_ACEOF
                   10216:     # First, check the format of the line:
                   10217:     cat >"\$tmp/defines.sed" <<\\CEOF
                   10218: /^[     ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
                   10219: /^[     ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
                   10220: b
                   10221: :def
                   10222: _ACEOF
                   10223:   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
                   10224:   echo 'CEOF
                   10225:     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
                   10226:   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
                   10227:   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
                   10228:   grep . conftest.tail >/dev/null || break
                   10229:   rm -f conftest.defines
                   10230:   mv conftest.tail conftest.defines
                   10231: done
                   10232: rm -f conftest.defines conftest.tail
                   10233: 
                   10234: echo "ac_result=$ac_in" >>$CONFIG_STATUS
                   10235: cat >>$CONFIG_STATUS <<\_ACEOF
1.1       root     10236:   if test x"$ac_file" != x-; then
1.1.1.6   root     10237:     echo "/* $configure_input  */" >"$tmp/config.h"
                   10238:     cat "$ac_result" >>"$tmp/config.h"
                   10239:     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
                   10240:       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
                   10241: echo "$as_me: $ac_file is unchanged" >&6;}
                   10242:     else
                   10243:       rm -f $ac_file
                   10244:       mv "$tmp/config.h" $ac_file
                   10245:     fi
1.1       root     10246:   else
1.1.1.6   root     10247:     echo "/* $configure_input  */"
                   10248:     cat "$ac_result"
1.1       root     10249:   fi
1.1.1.6   root     10250:   rm -f "$tmp/out12"
                   10251:  ;;
1.1       root     10252: 
                   10253: 
1.1.1.6   root     10254:   esac
                   10255: 
                   10256: done # for ac_tag
                   10257: 
1.1       root     10258: 
                   10259: { (exit 0); exit 0; }
                   10260: _ACEOF
                   10261: chmod +x $CONFIG_STATUS
                   10262: ac_clean_files=$ac_clean_files_save
                   10263: 
                   10264: 
                   10265: # configure is writing to config.log, and then calls config.status.
                   10266: # config.status does its own redirection, appending to config.log.
                   10267: # Unfortunately, on DOS this fails, as config.log is still kept open
                   10268: # by configure, so config.status won't be able to write to it; its
                   10269: # output is simply discarded.  So we exec the FD to /dev/null,
                   10270: # effectively closing config.log, so it can be properly (re)opened and
                   10271: # appended to by config.status.  When coming back to configure, we
                   10272: # need to make the FD available again.
                   10273: if test "$no_create" != yes; then
                   10274:   ac_cs_success=:
1.1.1.3   root     10275:   ac_config_status_args=
                   10276:   test "$silent" = yes &&
                   10277:     ac_config_status_args="$ac_config_status_args --quiet"
1.1       root     10278:   exec 5>/dev/null
1.1.1.3   root     10279:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.1       root     10280:   exec 5>>config.log
                   10281:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   10282:   # would make configure fail if this is the last instruction.
                   10283:   $ac_cs_success || { (exit 1); exit 1; }
                   10284: fi
                   10285: 
                   10286: 
                   10287: 
                   10288: { echo "$as_me:$LINENO: +-----------------------------------------------------+" >&5
                   10289: echo "$as_me: +-----------------------------------------------------+" >&6;}
                   10290: { echo "$as_me:$LINENO: |                                                     |" >&5
                   10291: echo "$as_me: |                                                     |" >&6;}
                   10292: { echo "$as_me:$LINENO: | Configuration finished. Now you can compile Hatari. |" >&5
                   10293: echo "$as_me: | Configuration finished. Now you can compile Hatari. |" >&6;}
                   10294: { echo "$as_me:$LINENO: | Note that you have to use GNU-Make to build it.     |" >&5
                   10295: echo "$as_me: | Note that you have to use GNU-Make to build it.     |" >&6;}
                   10296: { echo "$as_me:$LINENO: |                                                     |" >&5
                   10297: echo "$as_me: |                                                     |" >&6;}
                   10298: { echo "$as_me:$LINENO: | - If you are using Linux then type:  make           |" >&5
                   10299: echo "$as_me: | - If you are using Linux then type:  make           |" >&6;}
                   10300: { echo "$as_me:$LINENO: | - If you are using *BSD then try :   gmake          |" >&5
                   10301: echo "$as_me: | - If you are using *BSD then try :   gmake          |" >&6;}
                   10302: { echo "$as_me:$LINENO: |                                                     |" >&5
                   10303: echo "$as_me: |                                                     |" >&6;}
                   10304: { echo "$as_me:$LINENO: | After compiling, you can install the program by     |" >&5
                   10305: echo "$as_me: | After compiling, you can install the program by     |" >&6;}
                   10306: { echo "$as_me:$LINENO: | typing:  make install  (or: gmake install)          |" >&5
                   10307: echo "$as_me: | typing:  make install  (or: gmake install)          |" >&6;}
                   10308: { echo "$as_me:$LINENO: |                                                     |" >&5
                   10309: echo "$as_me: |                                                     |" >&6;}
                   10310: { echo "$as_me:$LINENO: | For information about the configuration variables,  |" >&5
                   10311: echo "$as_me: | For information about the configuration variables,  |" >&6;}
1.1.1.6   root     10312: { echo "$as_me:$LINENO: | please have a look at Makefile.cnf and config.h.    |" >&5
                   10313: echo "$as_me: | please have a look at Makefile.cnf and config.h.    |" >&6;}
1.1       root     10314: { echo "$as_me:$LINENO: |                                                     |" >&5
                   10315: echo "$as_me: |                                                     |" >&6;}
                   10316: { echo "$as_me:$LINENO: +-----------------------------------------------------+" >&5
                   10317: 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.