Annotation of libaitio/configure, revision 1.33

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

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