Annotation of libaitio/configure, revision 1.54.2.2

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

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