Annotation of embedtools/configure, revision 1.4.2.3

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>