configure revision 1.107
11.1Stv#! /bin/sh
21.1Stv# Guess values for system-dependent variables and create Makefiles.
31.84Schristos# Generated by GNU Autoconf 2.69 for libnbcompat noversion.
41.1Stv#
51.41Ssalo# Report bugs to <lib-bug-people@NetBSD.org>.
61.1Stv#
71.84Schristos#
81.84Schristos# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
91.84Schristos#
101.84Schristos#
111.1Stv# This configure script is free software; the Free Software Foundation
121.1Stv# gives unlimited permission to copy, distribute and modify it.
131.84Schristos## -------------------- ##
141.84Schristos## M4sh Initialization. ##
151.84Schristos## -------------------- ##
161.84Schristos
171.84Schristos# Be more Bourne compatible
181.84SchristosDUALCASE=1; export DUALCASE # for MKS sh
191.84Schristosif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
201.84Schristos  emulate sh
211.84Schristos  NULLCMD=:
221.84Schristos  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
231.84Schristos  # is contrary to our usage.  Disable this feature.
241.84Schristos  alias -g '${1+"$@"}'='"$@"'
251.84Schristos  setopt NO_GLOB_SUBST
261.84Schristoselse
271.84Schristos  case `(set -o) 2>/dev/null` in #(
281.84Schristos  *posix*) :
291.84Schristos    set -o posix ;; #(
301.84Schristos  *) :
311.84Schristos     ;;
321.84Schristosesac
331.84Schristosfi
341.84Schristos
351.84Schristos
361.84Schristosas_nl='
371.84Schristos'
381.84Schristosexport as_nl
391.84Schristos# Printing a long string crashes Solaris 7 /usr/bin/printf.
401.84Schristosas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
411.84Schristosas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
421.84Schristosas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
431.84Schristos# Prefer a ksh shell builtin over an external printf program on Solaris,
441.84Schristos# but without wasting forks for bash or zsh.
451.84Schristosif test -z "$BASH_VERSION$ZSH_VERSION" \
461.84Schristos    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
471.84Schristos  as_echo='print -r --'
481.84Schristos  as_echo_n='print -rn --'
491.84Schristoselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
501.84Schristos  as_echo='printf %s\n'
511.84Schristos  as_echo_n='printf %s'
521.84Schristoselse
531.84Schristos  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
541.84Schristos    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
551.84Schristos    as_echo_n='/usr/ucb/echo -n'
561.84Schristos  else
571.84Schristos    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
581.84Schristos    as_echo_n_body='eval
591.84Schristos      arg=$1;
601.84Schristos      case $arg in #(
611.84Schristos      *"$as_nl"*)
621.84Schristos	expr "X$arg" : "X\\(.*\\)$as_nl";
631.84Schristos	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
641.84Schristos      esac;
651.84Schristos      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
661.84Schristos    '
671.84Schristos    export as_echo_n_body
681.84Schristos    as_echo_n='sh -c $as_echo_n_body as_echo'
691.84Schristos  fi
701.84Schristos  export as_echo_body
711.84Schristos  as_echo='sh -c $as_echo_body as_echo'
721.84Schristosfi
731.84Schristos
741.84Schristos# The user is always right.
751.84Schristosif test "${PATH_SEPARATOR+set}" != set; then
761.84Schristos  PATH_SEPARATOR=:
771.84Schristos  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
781.84Schristos    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
791.84Schristos      PATH_SEPARATOR=';'
801.84Schristos  }
811.84Schristosfi
821.74Schristos
831.74Schristos
841.84Schristos# IFS
851.84Schristos# We need space, tab and new line, in precisely that order.  Quoting is
861.84Schristos# there to prevent editors from complaining about space-tab.
871.84Schristos# (If _AS_PATH_WALK were called with IFS unset, it would disable word
881.84Schristos# splitting by setting IFS to empty value.)
891.84SchristosIFS=" ""	$as_nl"
901.84Schristos
911.84Schristos# Find who we are.  Look in the path if we contain no directory separator.
921.84Schristosas_myself=
931.84Schristoscase $0 in #((
941.84Schristos  *[\\/]* ) as_myself=$0 ;;
951.84Schristos  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
961.84Schristosfor as_dir in $PATH
971.84Schristosdo
981.84Schristos  IFS=$as_save_IFS
991.84Schristos  test -z "$as_dir" && as_dir=.
1001.84Schristos    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1011.84Schristos  done
1021.84SchristosIFS=$as_save_IFS
1031.84Schristos
1041.84Schristos     ;;
1051.84Schristosesac
1061.84Schristos# We did not find ourselves, most probably we were run as `sh COMMAND'
1071.84Schristos# in which case we are not to be found in the path.
1081.84Schristosif test "x$as_myself" = x; then
1091.84Schristos  as_myself=$0
1101.84Schristosfi
1111.84Schristosif test ! -f "$as_myself"; then
1121.84Schristos  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1131.84Schristos  exit 1
1141.84Schristosfi
1151.84Schristos
1161.84Schristos# Unset variables that we do not need and which cause bugs (e.g. in
1171.84Schristos# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1181.84Schristos# suppresses any "Segmentation fault" message there.  '((' could
1191.84Schristos# trigger a bug in pdksh 5.2.14.
1201.84Schristosfor as_var in BASH_ENV ENV MAIL MAILPATH
1211.84Schristosdo eval test x\${$as_var+set} = xset \
1221.84Schristos  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1231.84Schristosdone
1241.84SchristosPS1='$ '
1251.84SchristosPS2='> '
1261.84SchristosPS4='+ '
1271.84Schristos
1281.84Schristos# NLS nuisances.
1291.84SchristosLC_ALL=C
1301.84Schristosexport LC_ALL
1311.84SchristosLANGUAGE=C
1321.84Schristosexport LANGUAGE
1331.74Schristos
1341.84Schristos# CDPATH.
1351.84Schristos(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1361.65Schristos
1371.84Schristos# Use a proper internal environment variable to ensure we don't fall
1381.84Schristos  # into an infinite loop, continuously re-executing ourselves.
1391.84Schristos  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
1401.84Schristos    _as_can_reexec=no; export _as_can_reexec;
1411.84Schristos    # We cannot yet assume a decent shell, so we have to provide a
1421.84Schristos# neutralization value for shells without unset; and this also
1431.84Schristos# works around shells that cannot unset nonexistent variables.
1441.84Schristos# Preserve -v and -x to the replacement shell.
1451.84SchristosBASH_ENV=/dev/null
1461.84SchristosENV=/dev/null
1471.84Schristos(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1481.84Schristoscase $- in # ((((
1491.84Schristos  *v*x* | *x*v* ) as_opts=-vx ;;
1501.84Schristos  *v* ) as_opts=-v ;;
1511.84Schristos  *x* ) as_opts=-x ;;
1521.84Schristos  * ) as_opts= ;;
1531.84Schristosesac
1541.84Schristosexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1551.84Schristos# Admittedly, this is quite paranoid, since all the known shells bail
1561.84Schristos# out after a failed `exec'.
1571.84Schristos$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
1581.84Schristosas_fn_exit 255
1591.84Schristos  fi
1601.84Schristos  # We don't want this to propagate to other subprocesses.
1611.84Schristos          { _as_can_reexec=; unset _as_can_reexec;}
1621.84Schristosif test "x$CONFIG_SHELL" = x; then
1631.84Schristos  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1641.65Schristos  emulate sh
1651.65Schristos  NULLCMD=:
1661.84Schristos  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1671.84Schristos  # is contrary to our usage.  Disable this feature.
1681.84Schristos  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1691.84Schristos  setopt NO_GLOB_SUBST
1701.84Schristoselse
1711.84Schristos  case \`(set -o) 2>/dev/null\` in #(
1721.84Schristos  *posix*) :
1731.84Schristos    set -o posix ;; #(
1741.84Schristos  *) :
1751.84Schristos     ;;
1761.84Schristosesac
1771.84Schristosfi
1781.84Schristos"
1791.84Schristos  as_required="as_fn_return () { (exit \$1); }
1801.84Schristosas_fn_success () { as_fn_return 0; }
1811.84Schristosas_fn_failure () { as_fn_return 1; }
1821.84Schristosas_fn_ret_success () { return 0; }
1831.84Schristosas_fn_ret_failure () { return 1; }
1841.84Schristos
1851.84Schristosexitcode=0
1861.84Schristosas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1871.84Schristosas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1881.84Schristosas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1891.84Schristosas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1901.84Schristosif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1911.84Schristos
1921.84Schristoselse
1931.84Schristos  exitcode=1; echo positional parameters were not saved.
1941.84Schristosfi
1951.84Schristostest x\$exitcode = x0 || exit 1
1961.84Schristostest -x / || exit 1"
1971.84Schristos  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1981.84Schristos  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1991.84Schristos  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
2001.84Schristos  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
2011.84Schristostest \$(( 1 + 1 )) = 2 || exit 1"
2021.84Schristos  if (eval "$as_required") 2>/dev/null; then :
2031.84Schristos  as_have_required=yes
2041.84Schristoselse
2051.84Schristos  as_have_required=no
2061.84Schristosfi
2071.84Schristos  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
2081.84Schristos
2091.84Schristoselse
2101.84Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111.84Schristosas_found=false
2121.84Schristosfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2131.84Schristosdo
2141.84Schristos  IFS=$as_save_IFS
2151.84Schristos  test -z "$as_dir" && as_dir=.
2161.84Schristos  as_found=:
2171.84Schristos  case $as_dir in #(
2181.84Schristos	 /*)
2191.84Schristos	   for as_base in sh bash ksh sh5; do
2201.84Schristos	     # Try only shells that exist, to save several forks.
2211.84Schristos	     as_shell=$as_dir/$as_base
2221.84Schristos	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2231.84Schristos		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2241.84Schristos  CONFIG_SHELL=$as_shell as_have_required=yes
2251.84Schristos		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2261.84Schristos  break 2
2271.84Schristosfi
2281.84Schristosfi
2291.84Schristos	   done;;
2301.84Schristos       esac
2311.84Schristos  as_found=false
2321.84Schristosdone
2331.84Schristos$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2341.84Schristos	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2351.84Schristos  CONFIG_SHELL=$SHELL as_have_required=yes
2361.84Schristosfi; }
2371.84SchristosIFS=$as_save_IFS
2381.84Schristos
2391.84Schristos
2401.84Schristos      if test "x$CONFIG_SHELL" != x; then :
2411.84Schristos  export CONFIG_SHELL
2421.84Schristos             # We cannot yet assume a decent shell, so we have to provide a
2431.84Schristos# neutralization value for shells without unset; and this also
2441.84Schristos# works around shells that cannot unset nonexistent variables.
2451.84Schristos# Preserve -v and -x to the replacement shell.
2461.84SchristosBASH_ENV=/dev/null
2471.84SchristosENV=/dev/null
2481.84Schristos(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2491.84Schristoscase $- in # ((((
2501.84Schristos  *v*x* | *x*v* ) as_opts=-vx ;;
2511.84Schristos  *v* ) as_opts=-v ;;
2521.84Schristos  *x* ) as_opts=-x ;;
2531.84Schristos  * ) as_opts= ;;
2541.84Schristosesac
2551.84Schristosexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
2561.84Schristos# Admittedly, this is quite paranoid, since all the known shells bail
2571.84Schristos# out after a failed `exec'.
2581.84Schristos$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
2591.84Schristosexit 255
2601.65Schristosfi
2611.61Schristos
2621.84Schristos    if test x$as_have_required = xno; then :
2631.84Schristos  $as_echo "$0: This script requires a shell more modern than all"
2641.84Schristos  $as_echo "$0: the shells that I found on your system."
2651.84Schristos  if test x${ZSH_VERSION+set} = xset ; then
2661.84Schristos    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2671.84Schristos    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2681.84Schristos  else
2691.84Schristos    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2701.84Schristos$0: lib-bug-people@NetBSD.org about your system, including
2711.84Schristos$0: any error possibly output before this message. Then
2721.84Schristos$0: install a modern shell, or manually run the script
2731.84Schristos$0: under such a shell if you do have one."
2741.84Schristos  fi
2751.84Schristos  exit 1
2761.84Schristosfi
2771.84Schristosfi
2781.84Schristosfi
2791.84SchristosSHELL=${CONFIG_SHELL-/bin/sh}
2801.84Schristosexport SHELL
2811.84Schristos# Unset more variables known to interfere with behavior of common tools.
2821.84SchristosCLICOLOR_FORCE= GREP_OPTIONS=
2831.84Schristosunset CLICOLOR_FORCE GREP_OPTIONS
2841.84Schristos
2851.84Schristos## --------------------- ##
2861.84Schristos## M4sh Shell Functions. ##
2871.84Schristos## --------------------- ##
2881.84Schristos# as_fn_unset VAR
2891.84Schristos# ---------------
2901.84Schristos# Portably unset VAR.
2911.84Schristosas_fn_unset ()
2921.84Schristos{
2931.84Schristos  { eval $1=; unset $1;}
2941.84Schristos}
2951.84Schristosas_unset=as_fn_unset
2961.84Schristos
2971.84Schristos# as_fn_set_status STATUS
2981.84Schristos# -----------------------
2991.84Schristos# Set $? to STATUS, without forking.
3001.84Schristosas_fn_set_status ()
3011.84Schristos{
3021.84Schristos  return $1
3031.84Schristos} # as_fn_set_status
3041.84Schristos
3051.84Schristos# as_fn_exit STATUS
3061.84Schristos# -----------------
3071.84Schristos# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3081.84Schristosas_fn_exit ()
3091.84Schristos{
3101.84Schristos  set +e
3111.84Schristos  as_fn_set_status $1
3121.84Schristos  exit $1
3131.84Schristos} # as_fn_exit
3141.84Schristos
3151.84Schristos# as_fn_mkdir_p
3161.84Schristos# -------------
3171.84Schristos# Create "$as_dir" as a directory, including parents if necessary.
3181.84Schristosas_fn_mkdir_p ()
3191.84Schristos{
3201.84Schristos
3211.84Schristos  case $as_dir in #(
3221.84Schristos  -*) as_dir=./$as_dir;;
3231.84Schristos  esac
3241.84Schristos  test -d "$as_dir" || eval $as_mkdir_p || {
3251.84Schristos    as_dirs=
3261.84Schristos    while :; do
3271.84Schristos      case $as_dir in #(
3281.84Schristos      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3291.84Schristos      *) as_qdir=$as_dir;;
3301.84Schristos      esac
3311.84Schristos      as_dirs="'$as_qdir' $as_dirs"
3321.84Schristos      as_dir=`$as_dirname -- "$as_dir" ||
3331.84Schristos$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3341.84Schristos	 X"$as_dir" : 'X\(//\)[^/]' \| \
3351.84Schristos	 X"$as_dir" : 'X\(//\)$' \| \
3361.84Schristos	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3371.84Schristos$as_echo X"$as_dir" |
3381.84Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3391.84Schristos	    s//\1/
3401.84Schristos	    q
3411.84Schristos	  }
3421.84Schristos	  /^X\(\/\/\)[^/].*/{
3431.84Schristos	    s//\1/
3441.84Schristos	    q
3451.84Schristos	  }
3461.84Schristos	  /^X\(\/\/\)$/{
3471.84Schristos	    s//\1/
3481.84Schristos	    q
3491.84Schristos	  }
3501.84Schristos	  /^X\(\/\).*/{
3511.84Schristos	    s//\1/
3521.84Schristos	    q
3531.84Schristos	  }
3541.84Schristos	  s/.*/./; q'`
3551.84Schristos      test -d "$as_dir" && break
3561.84Schristos    done
3571.84Schristos    test -z "$as_dirs" || eval "mkdir $as_dirs"
3581.84Schristos  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3591.84Schristos
3601.84Schristos
3611.84Schristos} # as_fn_mkdir_p
3621.84Schristos
3631.84Schristos# as_fn_executable_p FILE
3641.84Schristos# -----------------------
3651.84Schristos# Test if FILE is an executable regular file.
3661.84Schristosas_fn_executable_p ()
3671.84Schristos{
3681.84Schristos  test -f "$1" && test -x "$1"
3691.84Schristos} # as_fn_executable_p
3701.84Schristos# as_fn_append VAR VALUE
3711.84Schristos# ----------------------
3721.84Schristos# Append the text in VALUE to the end of the definition contained in VAR. Take
3731.84Schristos# advantage of any shell optimizations that allow amortized linear growth over
3741.84Schristos# repeated appends, instead of the typical quadratic growth present in naive
3751.84Schristos# implementations.
3761.84Schristosif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3771.84Schristos  eval 'as_fn_append ()
3781.84Schristos  {
3791.84Schristos    eval $1+=\$2
3801.84Schristos  }'
3811.84Schristoselse
3821.84Schristos  as_fn_append ()
3831.84Schristos  {
3841.84Schristos    eval $1=\$$1\$2
3851.84Schristos  }
3861.84Schristosfi # as_fn_append
3871.84Schristos
3881.84Schristos# as_fn_arith ARG...
3891.84Schristos# ------------------
3901.84Schristos# Perform arithmetic evaluation on the ARGs, and store the result in the
3911.84Schristos# global $as_val. Take advantage of shells that can avoid forks. The arguments
3921.84Schristos# must be portable across $(()) and expr.
3931.84Schristosif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3941.84Schristos  eval 'as_fn_arith ()
3951.84Schristos  {
3961.84Schristos    as_val=$(( $* ))
3971.84Schristos  }'
3981.84Schristoselse
3991.84Schristos  as_fn_arith ()
4001.84Schristos  {
4011.84Schristos    as_val=`expr "$@" || test $? -eq 1`
4021.84Schristos  }
4031.84Schristosfi # as_fn_arith
4041.84Schristos
4051.84Schristos
4061.84Schristos# as_fn_error STATUS ERROR [LINENO LOG_FD]
4071.84Schristos# ----------------------------------------
4081.84Schristos# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4091.84Schristos# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4101.84Schristos# script with STATUS, using 1 if that was 0.
4111.84Schristosas_fn_error ()
4121.84Schristos{
4131.84Schristos  as_status=$1; test $as_status -eq 0 && as_status=1
4141.84Schristos  if test "$4"; then
4151.84Schristos    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4161.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4171.84Schristos  fi
4181.84Schristos  $as_echo "$as_me: error: $2" >&2
4191.84Schristos  as_fn_exit $as_status
4201.84Schristos} # as_fn_error
4211.61Schristos
4221.84Schristosif expr a : '\(a\)' >/dev/null 2>&1 &&
4231.84Schristos   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4241.1Stv  as_expr=expr
4251.1Stvelse
4261.1Stv  as_expr=false
4271.1Stvfi
4281.1Stv
4291.84Schristosif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4301.84Schristos  as_basename=basename
4311.84Schristoselse
4321.84Schristos  as_basename=false
4331.84Schristosfi
4341.84Schristos
4351.84Schristosif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4361.84Schristos  as_dirname=dirname
4371.84Schristoselse
4381.84Schristos  as_dirname=false
4391.84Schristosfi
4401.84Schristos
4411.84Schristosas_me=`$as_basename -- "$0" ||
4421.84Schristos$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4431.84Schristos	 X"$0" : 'X\(//\)$' \| \
4441.84Schristos	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4451.84Schristos$as_echo X/"$0" |
4461.84Schristos    sed '/^.*\/\([^/][^/]*\)\/*$/{
4471.84Schristos	    s//\1/
4481.84Schristos	    q
4491.84Schristos	  }
4501.84Schristos	  /^X\/\(\/\/\)$/{
4511.84Schristos	    s//\1/
4521.84Schristos	    q
4531.84Schristos	  }
4541.84Schristos	  /^X\/\(\/\).*/{
4551.84Schristos	    s//\1/
4561.84Schristos	    q
4571.84Schristos	  }
4581.84Schristos	  s/.*/./; q'`
4591.84Schristos
4601.84Schristos# Avoid depending upon Character Ranges.
4611.84Schristosas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4621.84Schristosas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4631.84Schristosas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4641.84Schristosas_cr_digits='0123456789'
4651.84Schristosas_cr_alnum=$as_cr_Letters$as_cr_digits
4661.84Schristos
4671.84Schristos
4681.84Schristos  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4691.84Schristos  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4701.84Schristos  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4711.84Schristos  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4721.84Schristos  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4731.84Schristos  sed -n '
4741.84Schristos    p
4751.84Schristos    /[$]LINENO/=
4761.84Schristos  ' <$as_myself |
4771.84Schristos    sed '
4781.84Schristos      s/[$]LINENO.*/&-/
4791.84Schristos      t lineno
4801.84Schristos      b
4811.84Schristos      :lineno
4821.84Schristos      N
4831.84Schristos      :loop
4841.84Schristos      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4851.84Schristos      t loop
4861.84Schristos      s/-\n.*//
4871.84Schristos    ' >$as_me.lineno &&
4881.84Schristos  chmod +x "$as_me.lineno" ||
4891.84Schristos    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
4901.84Schristos
4911.84Schristos  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
4921.84Schristos  # already done that, so ensure we don't try to do so again and fall
4931.84Schristos  # in an infinite loop.  This has already happened in practice.
4941.84Schristos  _as_can_reexec=no; export _as_can_reexec
4951.84Schristos  # Don't try to exec as it changes $[0], causing all sort of problems
4961.84Schristos  # (the dirname of $[0] is not the place where we might find the
4971.84Schristos  # original and so on.  Autoconf is especially sensitive to this).
4981.84Schristos  . "./$as_me.lineno"
4991.84Schristos  # Exit status is that of the last command.
5001.84Schristos  exit
5011.84Schristos}
5021.84Schristos
5031.84SchristosECHO_C= ECHO_N= ECHO_T=
5041.84Schristoscase `echo -n x` in #(((((
5051.84Schristos-n*)
5061.84Schristos  case `echo 'xy\c'` in
5071.84Schristos  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5081.84Schristos  xy)  ECHO_C='\c';;
5091.84Schristos  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5101.84Schristos       ECHO_T='	';;
5111.84Schristos  esac;;
5121.84Schristos*)
5131.84Schristos  ECHO_N='-n';;
5141.84Schristosesac
5151.84Schristos
5161.1Stvrm -f conf$$ conf$$.exe conf$$.file
5171.84Schristosif test -d conf$$.dir; then
5181.84Schristos  rm -f conf$$.dir/conf$$.file
5191.84Schristoselse
5201.84Schristos  rm -f conf$$.dir
5211.84Schristos  mkdir conf$$.dir 2>/dev/null
5221.84Schristosfi
5231.84Schristosif (echo >conf$$.file) 2>/dev/null; then
5241.84Schristos  if ln -s conf$$.file conf$$ 2>/dev/null; then
5251.84Schristos    as_ln_s='ln -s'
5261.84Schristos    # ... but there are two gotchas:
5271.84Schristos    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5281.84Schristos    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5291.84Schristos    # In both cases, we have to default to `cp -pR'.
5301.84Schristos    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5311.84Schristos      as_ln_s='cp -pR'
5321.84Schristos  elif ln conf$$.file conf$$ 2>/dev/null; then
5331.84Schristos    as_ln_s=ln
5341.76Spooka  else
5351.84Schristos    as_ln_s='cp -pR'
5361.66Stsutsui  fi
5371.1Stvelse
5381.84Schristos  as_ln_s='cp -pR'
5391.1Stvfi
5401.84Schristosrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5411.84Schristosrmdir conf$$.dir 2>/dev/null
5421.63Sapb
5431.84Schristosif mkdir -p . 2>/dev/null; then
5441.84Schristos  as_mkdir_p='mkdir -p "$as_dir"'
5451.61Schristoselse
5461.84Schristos  test -d ./-p && rmdir ./-p
5471.84Schristos  as_mkdir_p=false
5481.61Schristosfi
5491.65Schristos
5501.84Schristosas_test_x='test -x'
5511.84Schristosas_executable_p=as_fn_executable_p
5521.84Schristos
5531.84Schristos# Sed expression to map a string onto a valid CPP name.
5541.84Schristosas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5551.84Schristos
5561.84Schristos# Sed expression to map a string onto a valid variable name.
5571.84Schristosas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5581.74Schristos
5591.74Schristos
5601.84Schristostest -n "$DJDIR" || exec 7<&0 </dev/null
5611.84Schristosexec 6>&1
5621.1Stv
5631.1Stv# Name of the host.
5641.84Schristos# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5651.1Stv# so uname gets run too.
5661.1Stvac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5671.1Stv
5681.1Stv#
5691.1Stv# Initializations.
5701.1Stv#
5711.1Stvac_default_prefix=/usr/local
5721.84Schristosac_clean_files=
5731.84Schristosac_config_libobj_dir=.
5741.84SchristosLIBOBJS=
5751.1Stvcross_compiling=no
5761.1Stvsubdirs=
5771.84SchristosMFLAGS=
5781.84SchristosMAKEFLAGS=
5791.1Stv
5801.84Schristos# Identity of this package.
5811.84SchristosPACKAGE_NAME='libnbcompat'
5821.84SchristosPACKAGE_TARNAME='libnbcompat'
5831.84SchristosPACKAGE_VERSION='noversion'
5841.84SchristosPACKAGE_STRING='libnbcompat noversion'
5851.84SchristosPACKAGE_BUGREPORT='lib-bug-people@NetBSD.org'
5861.84SchristosPACKAGE_URL=''
5871.1Stv
5881.1Stv# Factoring default headers for most tests.
5891.1Stvac_includes_default="\
5901.1Stv#include <stdio.h>
5911.84Schristos#ifdef HAVE_SYS_TYPES_H
5921.1Stv# include <sys/types.h>
5931.1Stv#endif
5941.84Schristos#ifdef HAVE_SYS_STAT_H
5951.1Stv# include <sys/stat.h>
5961.1Stv#endif
5971.84Schristos#ifdef STDC_HEADERS
5981.1Stv# include <stdlib.h>
5991.1Stv# include <stddef.h>
6001.1Stv#else
6011.84Schristos# ifdef HAVE_STDLIB_H
6021.1Stv#  include <stdlib.h>
6031.1Stv# endif
6041.1Stv#endif
6051.84Schristos#ifdef HAVE_STRING_H
6061.84Schristos# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6071.1Stv#  include <memory.h>
6081.1Stv# endif
6091.1Stv# include <string.h>
6101.1Stv#endif
6111.84Schristos#ifdef HAVE_STRINGS_H
6121.1Stv# include <strings.h>
6131.1Stv#endif
6141.84Schristos#ifdef HAVE_INTTYPES_H
6151.1Stv# include <inttypes.h>
6161.1Stv#endif
6171.84Schristos#ifdef HAVE_STDINT_H
6181.84Schristos# include <stdint.h>
6191.84Schristos#endif
6201.84Schristos#ifdef HAVE_UNISTD_H
6211.1Stv# include <unistd.h>
6221.1Stv#endif"
6231.1Stv
6241.84Schristosac_subst_vars='LTLIBOBJS
6251.84SchristosLIBOBJS
6261.102SlukemCC_WNO_STRINGOP_TRUNCATION
6271.102SlukemCC_WNO_STRINGOP_OVERFLOW
6281.103SlukemCC_WNO_RETURN_LOCAL_ADDR
6291.102SlukemCC_WNO_MAYBE_UNINITIALIZED
6301.103SlukemCC_WNO_IMPLICIT_FALLTHROUGH
6311.102SlukemCC_WNO_FORMAT_TRUNCATION
6321.103SlukemCC_WNO_FORMAT_OVERFLOW
6331.103SlukemCC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER
6341.103SlukemCC_WNO_CAST_FUNCTION_TYPE
6351.103SlukemCC_WNO_ADDRESS_OF_PACKED_MEMBER
6361.102SlukemCC_NO_CPP_PRECOMP
6371.84SchristosALLOCA
6381.84SchristosBSHELL
6391.84SchristosEGREP
6401.84SchristosGREP
6411.84SchristosCPP
6421.84SchristosOBJEXT
6431.84SchristosEXEEXT
6441.84Schristosac_ct_CC
6451.84SchristosCPPFLAGS
6461.84SchristosLDFLAGS
6471.84SchristosCFLAGS
6481.84SchristosCC
6491.84Schristostarget_alias
6501.84Schristoshost_alias
6511.84Schristosbuild_alias
6521.84SchristosLIBS
6531.84SchristosECHO_T
6541.84SchristosECHO_N
6551.84SchristosECHO_C
6561.84SchristosDEFS
6571.84Schristosmandir
6581.84Schristoslocaledir
6591.84Schristoslibdir
6601.84Schristospsdir
6611.84Schristospdfdir
6621.84Schristosdvidir
6631.84Schristoshtmldir
6641.84Schristosinfodir
6651.84Schristosdocdir
6661.84Schristosoldincludedir
6671.84Schristosincludedir
6681.84Schristoslocalstatedir
6691.84Schristossharedstatedir
6701.84Schristossysconfdir
6711.84Schristosdatadir
6721.84Schristosdatarootdir
6731.84Schristoslibexecdir
6741.84Schristossbindir
6751.84Schristosbindir
6761.84Schristosprogram_transform_name
6771.84Schristosprefix
6781.84Schristosexec_prefix
6791.84SchristosPACKAGE_URL
6801.84SchristosPACKAGE_BUGREPORT
6811.84SchristosPACKAGE_STRING
6821.84SchristosPACKAGE_VERSION
6831.84SchristosPACKAGE_TARNAME
6841.84SchristosPACKAGE_NAME
6851.84SchristosPATH_SEPARATOR
6861.84SchristosSHELL'
6871.84Schristosac_subst_files=''
6881.84Schristosac_user_opts='
6891.84Schristosenable_option_checking
6901.84Schristos'
6911.84Schristos      ac_precious_vars='build_alias
6921.84Schristoshost_alias
6931.84Schristostarget_alias
6941.84SchristosCC
6951.84SchristosCFLAGS
6961.84SchristosLDFLAGS
6971.84SchristosLIBS
6981.84SchristosCPPFLAGS
6991.84SchristosCPP'
7001.84Schristos
7011.84Schristos
7021.1Stv# Initialize some variables set by options.
7031.1Stvac_init_help=
7041.1Stvac_init_version=false
7051.84Schristosac_unrecognized_opts=
7061.84Schristosac_unrecognized_sep=
7071.1Stv# The variables have the same names as the options, with
7081.1Stv# dashes changed to underlines.
7091.1Stvcache_file=/dev/null
7101.1Stvexec_prefix=NONE
7111.1Stvno_create=
7121.1Stvno_recursion=
7131.1Stvprefix=NONE
7141.1Stvprogram_prefix=NONE
7151.1Stvprogram_suffix=NONE
7161.1Stvprogram_transform_name=s,x,x,
7171.1Stvsilent=
7181.1Stvsite=
7191.1Stvsrcdir=
7201.1Stvverbose=
7211.1Stvx_includes=NONE
7221.1Stvx_libraries=NONE
7231.1Stv
7241.1Stv# Installation directory options.
7251.1Stv# These are left unexpanded so users can "make install exec_prefix=/foo"
7261.1Stv# and all the variables that are supposed to be based on exec_prefix
7271.1Stv# by default will actually change.
7281.1Stv# Use braces instead of parens because sh, perl, etc. also accept them.
7291.84Schristos# (The list follows the same order as the GNU Coding Standards.)
7301.1Stvbindir='${exec_prefix}/bin'
7311.1Stvsbindir='${exec_prefix}/sbin'
7321.1Stvlibexecdir='${exec_prefix}/libexec'
7331.84Schristosdatarootdir='${prefix}/share'
7341.84Schristosdatadir='${datarootdir}'
7351.1Stvsysconfdir='${prefix}/etc'
7361.1Stvsharedstatedir='${prefix}/com'
7371.1Stvlocalstatedir='${prefix}/var'
7381.1Stvincludedir='${prefix}/include'
7391.1Stvoldincludedir='/usr/include'
7401.84Schristosdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
7411.84Schristosinfodir='${datarootdir}/info'
7421.84Schristoshtmldir='${docdir}'
7431.84Schristosdvidir='${docdir}'
7441.84Schristospdfdir='${docdir}'
7451.84Schristospsdir='${docdir}'
7461.84Schristoslibdir='${exec_prefix}/lib'
7471.84Schristoslocaledir='${datarootdir}/locale'
7481.84Schristosmandir='${datarootdir}/man'
7491.63Sapb
7501.1Stvac_prev=
7511.84Schristosac_dashdash=
7521.1Stvfor ac_option
7531.1Stvdo
7541.1Stv  # If the previous option needs an argument, assign it.
7551.1Stv  if test -n "$ac_prev"; then
7561.84Schristos    eval $ac_prev=\$ac_option
7571.1Stv    ac_prev=
7581.1Stv    continue
7591.1Stv  fi
7601.1Stv
7611.84Schristos  case $ac_option in
7621.84Schristos  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
7631.84Schristos  *=)   ac_optarg= ;;
7641.84Schristos  *)    ac_optarg=yes ;;
7651.84Schristos  esac
7661.1Stv
7671.1Stv  # Accept the important Cygnus configure options, so we can diagnose typos.
7681.1Stv
7691.84Schristos  case $ac_dashdash$ac_option in
7701.84Schristos  --)
7711.84Schristos    ac_dashdash=yes ;;
7721.1Stv
7731.1Stv  -bindir | --bindir | --bindi | --bind | --bin | --bi)
7741.1Stv    ac_prev=bindir ;;
7751.1Stv  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
7761.1Stv    bindir=$ac_optarg ;;
7771.1Stv
7781.1Stv  -build | --build | --buil | --bui | --bu)
7791.1Stv    ac_prev=build_alias ;;
7801.1Stv  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
7811.1Stv    build_alias=$ac_optarg ;;
7821.1Stv
7831.1Stv  -cache-file | --cache-file | --cache-fil | --cache-fi \
7841.1Stv  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7851.1Stv    ac_prev=cache_file ;;
7861.1Stv  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7871.1Stv  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7881.1Stv    cache_file=$ac_optarg ;;
7891.1Stv
7901.1Stv  --config-cache | -C)
7911.1Stv    cache_file=config.cache ;;
7921.1Stv
7931.84Schristos  -datadir | --datadir | --datadi | --datad)
7941.1Stv    ac_prev=datadir ;;
7951.84Schristos  -datadir=* | --datadir=* | --datadi=* | --datad=*)
7961.1Stv    datadir=$ac_optarg ;;
7971.1Stv
7981.84Schristos  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
7991.84Schristos  | --dataroo | --dataro | --datar)
8001.84Schristos    ac_prev=datarootdir ;;
8011.84Schristos  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8021.84Schristos  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8031.84Schristos    datarootdir=$ac_optarg ;;
8041.84Schristos
8051.1Stv  -disable-* | --disable-*)
8061.84Schristos    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8071.1Stv    # Reject names that are not valid shell variable names.
8081.84Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8091.84Schristos      as_fn_error $? "invalid feature name: $ac_useropt"
8101.84Schristos    ac_useropt_orig=$ac_useropt
8111.84Schristos    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8121.84Schristos    case $ac_user_opts in
8131.84Schristos      *"
8141.84Schristos"enable_$ac_useropt"
8151.84Schristos"*) ;;
8161.84Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8171.84Schristos	 ac_unrecognized_sep=', ';;
8181.84Schristos    esac
8191.84Schristos    eval enable_$ac_useropt=no ;;
8201.84Schristos
8211.84Schristos  -docdir | --docdir | --docdi | --doc | --do)
8221.84Schristos    ac_prev=docdir ;;
8231.84Schristos  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
8241.84Schristos    docdir=$ac_optarg ;;
8251.84Schristos
8261.84Schristos  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
8271.84Schristos    ac_prev=dvidir ;;
8281.84Schristos  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
8291.84Schristos    dvidir=$ac_optarg ;;
8301.1Stv
8311.1Stv  -enable-* | --enable-*)
8321.84Schristos    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
8331.1Stv    # Reject names that are not valid shell variable names.
8341.84Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8351.84Schristos      as_fn_error $? "invalid feature name: $ac_useropt"
8361.84Schristos    ac_useropt_orig=$ac_useropt
8371.84Schristos    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8381.84Schristos    case $ac_user_opts in
8391.84Schristos      *"
8401.84Schristos"enable_$ac_useropt"
8411.84Schristos"*) ;;
8421.84Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
8431.84Schristos	 ac_unrecognized_sep=', ';;
8441.66Stsutsui    esac
8451.84Schristos    eval enable_$ac_useropt=\$ac_optarg ;;
8461.1Stv
8471.1Stv  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
8481.1Stv  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
8491.1Stv  | --exec | --exe | --ex)
8501.1Stv    ac_prev=exec_prefix ;;
8511.1Stv  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
8521.1Stv  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
8531.1Stv  | --exec=* | --exe=* | --ex=*)
8541.1Stv    exec_prefix=$ac_optarg ;;
8551.1Stv
8561.1Stv  -gas | --gas | --ga | --g)
8571.1Stv    # Obsolete; use --with-gas.
8581.1Stv    with_gas=yes ;;
8591.1Stv
8601.1Stv  -help | --help | --hel | --he | -h)
8611.1Stv    ac_init_help=long ;;
8621.1Stv  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
8631.1Stv    ac_init_help=recursive ;;
8641.1Stv  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
8651.1Stv    ac_init_help=short ;;
8661.1Stv
8671.1Stv  -host | --host | --hos | --ho)
8681.1Stv    ac_prev=host_alias ;;
8691.1Stv  -host=* | --host=* | --hos=* | --ho=*)
8701.1Stv    host_alias=$ac_optarg ;;
8711.1Stv
8721.84Schristos  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
8731.84Schristos    ac_prev=htmldir ;;
8741.84Schristos  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
8751.84Schristos  | --ht=*)
8761.84Schristos    htmldir=$ac_optarg ;;
8771.84Schristos
8781.1Stv  -includedir | --includedir | --includedi | --included | --include \
8791.1Stv  | --includ | --inclu | --incl | --inc)
8801.1Stv    ac_prev=includedir ;;
8811.1Stv  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
8821.1Stv  | --includ=* | --inclu=* | --incl=* | --inc=*)
8831.1Stv    includedir=$ac_optarg ;;
8841.1Stv
8851.1Stv  -infodir | --infodir | --infodi | --infod | --info | --inf)
8861.1Stv    ac_prev=infodir ;;
8871.1Stv  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
8881.1Stv    infodir=$ac_optarg ;;
8891.1Stv
8901.1Stv  -libdir | --libdir | --libdi | --libd)
8911.1Stv    ac_prev=libdir ;;
8921.1Stv  -libdir=* | --libdir=* | --libdi=* | --libd=*)
8931.1Stv    libdir=$ac_optarg ;;
8941.1Stv
8951.1Stv  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
8961.1Stv  | --libexe | --libex | --libe)
8971.1Stv    ac_prev=libexecdir ;;
8981.1Stv  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
8991.1Stv  | --libexe=* | --libex=* | --libe=*)
9001.1Stv    libexecdir=$ac_optarg ;;
9011.1Stv
9021.84Schristos  -localedir | --localedir | --localedi | --localed | --locale)
9031.84Schristos    ac_prev=localedir ;;
9041.84Schristos  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9051.84Schristos    localedir=$ac_optarg ;;
9061.84Schristos
9071.1Stv  -localstatedir | --localstatedir | --localstatedi | --localstated \
9081.84Schristos  | --localstate | --localstat | --localsta | --localst | --locals)
9091.1Stv    ac_prev=localstatedir ;;
9101.1Stv  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9111.84Schristos  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9121.1Stv    localstatedir=$ac_optarg ;;
9131.1Stv
9141.1Stv  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9151.1Stv    ac_prev=mandir ;;
9161.1Stv  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9171.1Stv    mandir=$ac_optarg ;;
9181.1Stv
9191.1Stv  -nfp | --nfp | --nf)
9201.1Stv    # Obsolete; use --without-fp.
9211.1Stv    with_fp=no ;;
9221.1Stv
9231.1Stv  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9241.84Schristos  | --no-cr | --no-c | -n)
9251.1Stv    no_create=yes ;;
9261.1Stv
9271.1Stv  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9281.1Stv  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
9291.1Stv    no_recursion=yes ;;
9301.1Stv
9311.1Stv  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
9321.1Stv  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
9331.1Stv  | --oldin | --oldi | --old | --ol | --o)
9341.1Stv    ac_prev=oldincludedir ;;
9351.1Stv  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
9361.1Stv  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
9371.1Stv  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9381.1Stv    oldincludedir=$ac_optarg ;;
9391.1Stv
9401.1Stv  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9411.1Stv    ac_prev=prefix ;;
9421.1Stv  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9431.1Stv    prefix=$ac_optarg ;;
9441.1Stv
9451.1Stv  -program-prefix | --program-prefix | --program-prefi | --program-pref \
9461.1Stv  | --program-pre | --program-pr | --program-p)
9471.1Stv    ac_prev=program_prefix ;;
9481.1Stv  -program-prefix=* | --program-prefix=* | --program-prefi=* \
9491.1Stv  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9501.1Stv    program_prefix=$ac_optarg ;;
9511.1Stv
9521.1Stv  -program-suffix | --program-suffix | --program-suffi | --program-suff \
9531.1Stv  | --program-suf | --program-su | --program-s)
9541.1Stv    ac_prev=program_suffix ;;
9551.1Stv  -program-suffix=* | --program-suffix=* | --program-suffi=* \
9561.1Stv  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
9571.1Stv    program_suffix=$ac_optarg ;;
9581.1Stv
9591.1Stv  -program-transform-name | --program-transform-name \
9601.1Stv  | --program-transform-nam | --program-transform-na \
9611.1Stv  | --program-transform-n | --program-transform- \
9621.1Stv  | --program-transform | --program-transfor \
9631.1Stv  | --program-transfo | --program-transf \
9641.1Stv  | --program-trans | --program-tran \
9651.1Stv  | --progr-tra | --program-tr | --program-t)
9661.1Stv    ac_prev=program_transform_name ;;
9671.1Stv  -program-transform-name=* | --program-transform-name=* \
9681.1Stv  | --program-transform-nam=* | --program-transform-na=* \
9691.1Stv  | --program-transform-n=* | --program-transform-=* \
9701.1Stv  | --program-transform=* | --program-transfor=* \
9711.1Stv  | --program-transfo=* | --program-transf=* \
9721.1Stv  | --program-trans=* | --program-tran=* \
9731.1Stv  | --progr-tra=* | --program-tr=* | --program-t=*)
9741.1Stv    program_transform_name=$ac_optarg ;;
9751.1Stv
9761.84Schristos  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
9771.84Schristos    ac_prev=pdfdir ;;
9781.84Schristos  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
9791.84Schristos    pdfdir=$ac_optarg ;;
9801.84Schristos
9811.84Schristos  -psdir | --psdir | --psdi | --psd | --ps)
9821.84Schristos    ac_prev=psdir ;;
9831.84Schristos  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
9841.84Schristos    psdir=$ac_optarg ;;
9851.84Schristos
9861.1Stv  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9871.1Stv  | -silent | --silent | --silen | --sile | --sil)
9881.1Stv    silent=yes ;;
9891.1Stv
9901.1Stv  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
9911.1Stv    ac_prev=sbindir ;;
9921.1Stv  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
9931.1Stv  | --sbi=* | --sb=*)
9941.1Stv    sbindir=$ac_optarg ;;
9951.1Stv
9961.1Stv  -sharedstatedir | --sharedstatedir | --sharedstatedi \
9971.1Stv  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
9981.1Stv  | --sharedst | --shareds | --shared | --share | --shar \
9991.1Stv  | --sha | --sh)
10001.1Stv    ac_prev=sharedstatedir ;;
10011.1Stv  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10021.1Stv  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10031.1Stv  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10041.1Stv  | --sha=* | --sh=*)
10051.1Stv    sharedstatedir=$ac_optarg ;;
10061.1Stv
10071.1Stv  -site | --site | --sit)
10081.1Stv    ac_prev=site ;;
10091.1Stv  -site=* | --site=* | --sit=*)
10101.1Stv    site=$ac_optarg ;;
10111.1Stv
10121.1Stv  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10131.1Stv    ac_prev=srcdir ;;
10141.1Stv  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10151.1Stv    srcdir=$ac_optarg ;;
10161.1Stv
10171.1Stv  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10181.1Stv  | --syscon | --sysco | --sysc | --sys | --sy)
10191.1Stv    ac_prev=sysconfdir ;;
10201.1Stv  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10211.1Stv  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10221.1Stv    sysconfdir=$ac_optarg ;;
10231.1Stv
10241.1Stv  -target | --target | --targe | --targ | --tar | --ta | --t)
10251.1Stv    ac_prev=target_alias ;;
10261.1Stv  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
10271.1Stv    target_alias=$ac_optarg ;;
10281.1Stv
10291.1Stv  -v | -verbose | --verbose | --verbos | --verbo | --verb)
10301.1Stv    verbose=yes ;;
10311.1Stv
10321.1Stv  -version | --version | --versio | --versi | --vers | -V)
10331.1Stv    ac_init_version=: ;;
10341.1Stv
10351.1Stv  -with-* | --with-*)
10361.84Schristos    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10371.1Stv    # Reject names that are not valid shell variable names.
10381.84Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10391.84Schristos      as_fn_error $? "invalid package name: $ac_useropt"
10401.84Schristos    ac_useropt_orig=$ac_useropt
10411.84Schristos    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10421.84Schristos    case $ac_user_opts in
10431.84Schristos      *"
10441.84Schristos"with_$ac_useropt"
10451.84Schristos"*) ;;
10461.84Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
10471.84Schristos	 ac_unrecognized_sep=', ';;
10481.66Stsutsui    esac
10491.84Schristos    eval with_$ac_useropt=\$ac_optarg ;;
10501.1Stv
10511.1Stv  -without-* | --without-*)
10521.84Schristos    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10531.1Stv    # Reject names that are not valid shell variable names.
10541.84Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10551.84Schristos      as_fn_error $? "invalid package name: $ac_useropt"
10561.84Schristos    ac_useropt_orig=$ac_useropt
10571.84Schristos    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10581.84Schristos    case $ac_user_opts in
10591.84Schristos      *"
10601.84Schristos"with_$ac_useropt"
10611.84Schristos"*) ;;
10621.84Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
10631.84Schristos	 ac_unrecognized_sep=', ';;
10641.84Schristos    esac
10651.84Schristos    eval with_$ac_useropt=no ;;
10661.1Stv
10671.1Stv  --x)
10681.1Stv    # Obsolete; use --with-x.
10691.1Stv    with_x=yes ;;
10701.1Stv
10711.1Stv  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
10721.1Stv  | --x-incl | --x-inc | --x-in | --x-i)
10731.1Stv    ac_prev=x_includes ;;
10741.1Stv  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
10751.1Stv  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
10761.1Stv    x_includes=$ac_optarg ;;
10771.1Stv
10781.1Stv  -x-libraries | --x-libraries | --x-librarie | --x-librari \
10791.1Stv  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
10801.1Stv    ac_prev=x_libraries ;;
10811.1Stv  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
10821.1Stv  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
10831.1Stv    x_libraries=$ac_optarg ;;
10841.1Stv
10851.84Schristos  -*) as_fn_error $? "unrecognized option: \`$ac_option'
10861.84SchristosTry \`$0 --help' for more information"
10871.1Stv    ;;
10881.1Stv
10891.1Stv  *=*)
10901.1Stv    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
10911.1Stv    # Reject names that are not valid shell variable names.
10921.84Schristos    case $ac_envvar in #(
10931.84Schristos      '' | [0-9]* | *[!_$as_cr_alnum]* )
10941.84Schristos      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
10951.84Schristos    esac
10961.84Schristos    eval $ac_envvar=\$ac_optarg
10971.1Stv    export $ac_envvar ;;
10981.1Stv
10991.1Stv  *)
11001.1Stv    # FIXME: should be removed in autoconf 3.0.
11011.84Schristos    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11021.1Stv    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11031.84Schristos      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11041.84Schristos    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11051.1Stv    ;;
11061.1Stv
11071.1Stv  esac
11081.1Stvdone
11091.1Stv
11101.1Stvif test -n "$ac_prev"; then
11111.1Stv  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11121.84Schristos  as_fn_error $? "missing argument to $ac_option"
11131.84Schristosfi
11141.84Schristos
11151.84Schristosif test -n "$ac_unrecognized_opts"; then
11161.84Schristos  case $enable_option_checking in
11171.84Schristos    no) ;;
11181.84Schristos    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11191.84Schristos    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11201.84Schristos  esac
11211.74Schristosfi
11221.74Schristos
11231.84Schristos# Check all directory arguments for consistency.
11241.84Schristosfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11251.84Schristos		datadir sysconfdir sharedstatedir localstatedir includedir \
11261.84Schristos		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
11271.84Schristos		libdir localedir mandir
11281.76Spookado
11291.84Schristos  eval ac_val=\$$ac_var
11301.84Schristos  # Remove trailing slashes.
11311.76Spooka  case $ac_val in
11321.84Schristos    */ )
11331.84Schristos      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
11341.84Schristos      eval $ac_var=\$ac_val;;
11351.74Schristos  esac
11361.84Schristos  # Be sure to have absolute directory names.
11371.1Stv  case $ac_val in
11381.84Schristos    [\\/$]* | ?:[\\/]* )  continue;;
11391.84Schristos    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
11401.1Stv  esac
11411.84Schristos  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
11421.1Stvdone
11431.1Stv
11441.1Stv# There might be people who depend on the old broken behavior: `$host'
11451.1Stv# used to hold the argument of --host etc.
11461.84Schristos# FIXME: To remove some day.
11471.1Stvbuild=$build_alias
11481.1Stvhost=$host_alias
11491.1Stvtarget=$target_alias
11501.1Stv
11511.84Schristos# FIXME: To remove some day.
11521.1Stvif test "x$host_alias" != x; then
11531.1Stv  if test "x$build_alias" = x; then
11541.1Stv    cross_compiling=maybe
11551.1Stv  elif test "x$build_alias" != "x$host_alias"; then
11561.1Stv    cross_compiling=yes
11571.1Stv  fi
11581.1Stvfi
11591.1Stv
11601.1Stvac_tool_prefix=
11611.1Stvtest -n "$host_alias" && ac_tool_prefix=$host_alias-
11621.1Stv
11631.1Stvtest "$silent" = yes && exec 6>/dev/null
11641.1Stv
11651.84Schristos
11661.84Schristosac_pwd=`pwd` && test -n "$ac_pwd" &&
11671.84Schristosac_ls_di=`ls -di .` &&
11681.84Schristosac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
11691.84Schristos  as_fn_error $? "working directory cannot be determined"
11701.84Schristostest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
11711.84Schristos  as_fn_error $? "pwd does not report name of working directory"
11721.84Schristos
11731.84Schristos
11741.1Stv# Find the source files, if location was not specified.
11751.1Stvif test -z "$srcdir"; then
11761.1Stv  ac_srcdir_defaulted=yes
11771.84Schristos  # Try the directory containing this script, then the parent directory.
11781.84Schristos  ac_confdir=`$as_dirname -- "$as_myself" ||
11791.84Schristos$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11801.84Schristos	 X"$as_myself" : 'X\(//\)[^/]' \| \
11811.84Schristos	 X"$as_myself" : 'X\(//\)$' \| \
11821.84Schristos	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
11831.84Schristos$as_echo X"$as_myself" |
11841.84Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11851.84Schristos	    s//\1/
11861.84Schristos	    q
11871.84Schristos	  }
11881.84Schristos	  /^X\(\/\/\)[^/].*/{
11891.84Schristos	    s//\1/
11901.84Schristos	    q
11911.84Schristos	  }
11921.84Schristos	  /^X\(\/\/\)$/{
11931.84Schristos	    s//\1/
11941.84Schristos	    q
11951.84Schristos	  }
11961.84Schristos	  /^X\(\/\).*/{
11971.84Schristos	    s//\1/
11981.84Schristos	    q
11991.84Schristos	  }
12001.84Schristos	  s/.*/./; q'`
12011.1Stv  srcdir=$ac_confdir
12021.84Schristos  if test ! -r "$srcdir/$ac_unique_file"; then
12031.1Stv    srcdir=..
12041.1Stv  fi
12051.1Stvelse
12061.1Stv  ac_srcdir_defaulted=no
12071.1Stvfi
12081.84Schristosif test ! -r "$srcdir/$ac_unique_file"; then
12091.84Schristos  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12101.84Schristos  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12111.84Schristosfi
12121.84Schristosac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12131.84Schristosac_abs_confdir=`(
12141.84Schristos	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12151.84Schristos	pwd)`
12161.84Schristos# When building in place, set srcdir=.
12171.84Schristosif test "$ac_abs_confdir" = "$ac_pwd"; then
12181.84Schristos  srcdir=.
12191.84Schristosfi
12201.84Schristos# Remove unnecessary trailing slashes from srcdir.
12211.84Schristos# Double slashes in file names in object file debugging info
12221.84Schristos# mess up M-x gdb in Emacs.
12231.84Schristoscase $srcdir in
12241.84Schristos*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
12251.84Schristosesac
12261.84Schristosfor ac_var in $ac_precious_vars; do
12271.84Schristos  eval ac_env_${ac_var}_set=\${${ac_var}+set}
12281.84Schristos  eval ac_env_${ac_var}_value=\$${ac_var}
12291.84Schristos  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
12301.84Schristos  eval ac_cv_env_${ac_var}_value=\$${ac_var}
12311.84Schristosdone
12321.1Stv
12331.1Stv#
12341.1Stv# Report the --help message.
12351.1Stv#
12361.1Stvif test "$ac_init_help" = "long"; then
12371.1Stv  # Omit some internal or obsolete options to make the list less imposing.
12381.1Stv  # This message is too long to be a string in the A/UX 3.1 sh.
12391.84Schristos  cat <<_ACEOF
12401.1Stv\`configure' configures libnbcompat noversion to adapt to many kinds of systems.
12411.1Stv
12421.1StvUsage: $0 [OPTION]... [VAR=VALUE]...
12431.1Stv
12441.1StvTo assign environment variables (e.g., CC, CFLAGS...), specify them as
12451.1StvVAR=VALUE.  See below for descriptions of some of the useful variables.
12461.1Stv
12471.1StvDefaults for the options are specified in brackets.
12481.1Stv
12491.1StvConfiguration:
12501.1Stv  -h, --help              display this help and exit
12511.1Stv      --help=short        display options specific to this package
12521.1Stv      --help=recursive    display the short help of all the included packages
12531.1Stv  -V, --version           display version information and exit
12541.84Schristos  -q, --quiet, --silent   do not print \`checking ...' messages
12551.1Stv      --cache-file=FILE   cache test results in FILE [disabled]
12561.1Stv  -C, --config-cache      alias for \`--cache-file=config.cache'
12571.1Stv  -n, --no-create         do not create output files
12581.1Stv      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
12591.1Stv
12601.1StvInstallation directories:
12611.1Stv  --prefix=PREFIX         install architecture-independent files in PREFIX
12621.66Stsutsui                          [$ac_default_prefix]
12631.1Stv  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
12641.66Stsutsui                          [PREFIX]
12651.1Stv
12661.1StvBy default, \`make install' will install all the files in
12671.1Stv\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
12681.1Stvan installation prefix other than \`$ac_default_prefix' using \`--prefix',
12691.1Stvfor instance \`--prefix=\$HOME'.
12701.1Stv
12711.1StvFor better control, use the options below.
12721.1Stv
12731.1StvFine tuning of the installation directories:
12741.84Schristos  --bindir=DIR            user executables [EPREFIX/bin]
12751.84Schristos  --sbindir=DIR           system admin executables [EPREFIX/sbin]
12761.84Schristos  --libexecdir=DIR        program executables [EPREFIX/libexec]
12771.84Schristos  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
12781.84Schristos  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
12791.84Schristos  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
12801.84Schristos  --libdir=DIR            object code libraries [EPREFIX/lib]
12811.84Schristos  --includedir=DIR        C header files [PREFIX/include]
12821.84Schristos  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
12831.84Schristos  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
12841.84Schristos  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
12851.84Schristos  --infodir=DIR           info documentation [DATAROOTDIR/info]
12861.84Schristos  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
12871.84Schristos  --mandir=DIR            man documentation [DATAROOTDIR/man]
12881.84Schristos  --docdir=DIR            documentation root [DATAROOTDIR/doc/libnbcompat]
12891.84Schristos  --htmldir=DIR           html documentation [DOCDIR]
12901.84Schristos  --dvidir=DIR            dvi documentation [DOCDIR]
12911.84Schristos  --pdfdir=DIR            pdf documentation [DOCDIR]
12921.84Schristos  --psdir=DIR             ps documentation [DOCDIR]
12931.84Schristos_ACEOF
12941.1Stv
12951.84Schristos  cat <<\_ACEOF
12961.84Schristos_ACEOF
12971.1Stvfi
12981.1Stv
12991.1Stvif test -n "$ac_init_help"; then
13001.1Stv  case $ac_init_help in
13011.1Stv     short | recursive ) echo "Configuration of libnbcompat noversion:";;
13021.1Stv   esac
13031.84Schristos  cat <<\_ACEOF
13041.1Stv
13051.1StvSome influential environment variables:
13061.1Stv  CC          C compiler command
13071.1Stv  CFLAGS      C compiler flags
13081.1Stv  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
13091.1Stv              nonstandard directory <lib dir>
13101.84Schristos  LIBS        libraries to pass to the linker, e.g. -l<library>
13111.84Schristos  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
13121.84Schristos              you have headers in a nonstandard directory <include dir>
13131.1Stv  CPP         C preprocessor
13141.1Stv
13151.1StvUse these variables to override the choices made by `configure' or to help
13161.1Stvit to find libraries and programs with nonstandard names/locations.
13171.1Stv
13181.41SsaloReport bugs to <lib-bug-people@NetBSD.org>.
13191.84Schristos_ACEOF
13201.84Schristosac_status=$?
13211.1Stvfi
13221.1Stv
13231.1Stvif test "$ac_init_help" = "recursive"; then
13241.1Stv  # If there are subdirs, report their specific --help.
13251.84Schristos  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
13261.84Schristos    test -d "$ac_dir" ||
13271.84Schristos      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
13281.84Schristos      continue
13291.84Schristos    ac_builddir=.
13301.84Schristos
13311.84Schristoscase "$ac_dir" in
13321.84Schristos.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13331.84Schristos*)
13341.84Schristos  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13351.84Schristos  # A ".." for each directory in $ac_dir_suffix.
13361.84Schristos  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13371.84Schristos  case $ac_top_builddir_sub in
13381.84Schristos  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13391.84Schristos  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13401.84Schristos  esac ;;
13411.84Schristosesac
13421.84Schristosac_abs_top_builddir=$ac_pwd
13431.84Schristosac_abs_builddir=$ac_pwd$ac_dir_suffix
13441.84Schristos# for backward compatibility:
13451.84Schristosac_top_builddir=$ac_top_build_prefix
13461.84Schristos
13471.84Schristoscase $srcdir in
13481.84Schristos  .)  # We are building in place.
13491.84Schristos    ac_srcdir=.
13501.84Schristos    ac_top_srcdir=$ac_top_builddir_sub
13511.84Schristos    ac_abs_top_srcdir=$ac_pwd ;;
13521.84Schristos  [\\/]* | ?:[\\/]* )  # Absolute name.
13531.84Schristos    ac_srcdir=$srcdir$ac_dir_suffix;
13541.84Schristos    ac_top_srcdir=$srcdir
13551.84Schristos    ac_abs_top_srcdir=$srcdir ;;
13561.84Schristos  *) # Relative name.
13571.84Schristos    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13581.84Schristos    ac_top_srcdir=$ac_top_build_prefix$srcdir
13591.84Schristos    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13601.84Schristosesac
13611.84Schristosac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13621.1Stv
13631.84Schristos    cd "$ac_dir" || { ac_status=$?; continue; }
13641.84Schristos    # Check for guested configure.
13651.84Schristos    if test -f "$ac_srcdir/configure.gnu"; then
13661.84Schristos      echo &&
13671.84Schristos      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
13681.84Schristos    elif test -f "$ac_srcdir/configure"; then
13691.84Schristos      echo &&
13701.84Schristos      $SHELL "$ac_srcdir/configure" --help=recursive
13711.65Schristos    else
13721.84Schristos      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
13731.84Schristos    fi || ac_status=$?
13741.84Schristos    cd "$ac_pwd" || { ac_status=$?; break; }
13751.65Schristos  done
13761.1Stvfi
13771.1Stv
13781.84Schristostest -n "$ac_init_help" && exit $ac_status
13791.1Stvif $ac_init_version; then
13801.84Schristos  cat <<\_ACEOF
13811.1Stvlibnbcompat configure noversion
13821.84Schristosgenerated by GNU Autoconf 2.69
13831.1Stv
13841.84SchristosCopyright (C) 2012 Free Software Foundation, Inc.
13851.1StvThis configure script is free software; the Free Software Foundation
13861.1Stvgives unlimited permission to copy, distribute and modify it.
13871.84Schristos_ACEOF
13881.84Schristos  exit
13891.1Stvfi
13901.1Stv
13911.84Schristos## ------------------------ ##
13921.84Schristos## Autoconf initialization. ##
13931.84Schristos## ------------------------ ##
13941.84Schristos
13951.84Schristos# ac_fn_c_try_compile LINENO
13961.84Schristos# --------------------------
13971.84Schristos# Try to compile conftest.$ac_ext, and return whether this succeeded.
13981.84Schristosac_fn_c_try_compile ()
13991.84Schristos{
14001.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14011.84Schristos  rm -f conftest.$ac_objext
14021.84Schristos  if { { ac_try="$ac_compile"
14031.84Schristoscase "(($ac_try" in
14041.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051.84Schristos  *) ac_try_echo=$ac_try;;
14061.84Schristosesac
14071.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14081.84Schristos$as_echo "$ac_try_echo"; } >&5
14091.84Schristos  (eval "$ac_compile") 2>conftest.err
14101.84Schristos  ac_status=$?
14111.84Schristos  if test -s conftest.err; then
14121.84Schristos    grep -v '^ *+' conftest.err >conftest.er1
14131.84Schristos    cat conftest.er1 >&5
14141.84Schristos    mv -f conftest.er1 conftest.err
14151.84Schristos  fi
14161.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14171.84Schristos  test $ac_status = 0; } && {
14181.84Schristos	 test -z "$ac_c_werror_flag" ||
14191.84Schristos	 test ! -s conftest.err
14201.84Schristos       } && test -s conftest.$ac_objext; then :
14211.84Schristos  ac_retval=0
14221.84Schristoselse
14231.84Schristos  $as_echo "$as_me: failed program was:" >&5
14241.84Schristossed 's/^/| /' conftest.$ac_ext >&5
14251.84Schristos
14261.84Schristos	ac_retval=1
14271.84Schristosfi
14281.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14291.84Schristos  as_fn_set_status $ac_retval
14301.84Schristos
14311.84Schristos} # ac_fn_c_try_compile
14321.84Schristos
14331.84Schristos# ac_fn_c_try_cpp LINENO
14341.84Schristos# ----------------------
14351.84Schristos# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
14361.84Schristosac_fn_c_try_cpp ()
14371.84Schristos{
14381.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14391.84Schristos  if { { ac_try="$ac_cpp conftest.$ac_ext"
14401.84Schristoscase "(($ac_try" in
14411.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421.84Schristos  *) ac_try_echo=$ac_try;;
14431.84Schristosesac
14441.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14451.84Schristos$as_echo "$ac_try_echo"; } >&5
14461.84Schristos  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
14471.84Schristos  ac_status=$?
14481.84Schristos  if test -s conftest.err; then
14491.84Schristos    grep -v '^ *+' conftest.err >conftest.er1
14501.84Schristos    cat conftest.er1 >&5
14511.84Schristos    mv -f conftest.er1 conftest.err
14521.84Schristos  fi
14531.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14541.84Schristos  test $ac_status = 0; } > conftest.i && {
14551.84Schristos	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14561.84Schristos	 test ! -s conftest.err
14571.84Schristos       }; then :
14581.84Schristos  ac_retval=0
14591.84Schristoselse
14601.84Schristos  $as_echo "$as_me: failed program was:" >&5
14611.84Schristossed 's/^/| /' conftest.$ac_ext >&5
14621.84Schristos
14631.84Schristos    ac_retval=1
14641.84Schristosfi
14651.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14661.84Schristos  as_fn_set_status $ac_retval
14671.84Schristos
14681.84Schristos} # ac_fn_c_try_cpp
14691.84Schristos
14701.84Schristos# ac_fn_c_try_run LINENO
14711.84Schristos# ----------------------
14721.84Schristos# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
14731.84Schristos# that executables *can* be run.
14741.84Schristosac_fn_c_try_run ()
14751.84Schristos{
14761.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14771.84Schristos  if { { ac_try="$ac_link"
14781.84Schristoscase "(($ac_try" in
14791.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801.84Schristos  *) ac_try_echo=$ac_try;;
14811.84Schristosesac
14821.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14831.84Schristos$as_echo "$ac_try_echo"; } >&5
14841.84Schristos  (eval "$ac_link") 2>&5
14851.84Schristos  ac_status=$?
14861.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14871.84Schristos  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
14881.84Schristos  { { case "(($ac_try" in
14891.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901.84Schristos  *) ac_try_echo=$ac_try;;
14911.84Schristosesac
14921.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14931.84Schristos$as_echo "$ac_try_echo"; } >&5
14941.84Schristos  (eval "$ac_try") 2>&5
14951.84Schristos  ac_status=$?
14961.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14971.84Schristos  test $ac_status = 0; }; }; then :
14981.84Schristos  ac_retval=0
14991.84Schristoselse
15001.84Schristos  $as_echo "$as_me: program exited with status $ac_status" >&5
15011.84Schristos       $as_echo "$as_me: failed program was:" >&5
15021.84Schristossed 's/^/| /' conftest.$ac_ext >&5
15031.84Schristos
15041.84Schristos       ac_retval=$ac_status
15051.84Schristosfi
15061.84Schristos  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
15071.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15081.84Schristos  as_fn_set_status $ac_retval
15091.84Schristos
15101.84Schristos} # ac_fn_c_try_run
15111.84Schristos
15121.84Schristos# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
15131.84Schristos# -------------------------------------------------------
15141.84Schristos# Tests whether HEADER exists and can be compiled using the include files in
15151.84Schristos# INCLUDES, setting the cache variable VAR accordingly.
15161.84Schristosac_fn_c_check_header_compile ()
15171.84Schristos{
15181.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15191.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
15201.84Schristos$as_echo_n "checking for $2... " >&6; }
15211.84Schristosif eval \${$3+:} false; then :
15221.84Schristos  $as_echo_n "(cached) " >&6
15231.84Schristoselse
15241.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251.84Schristos/* end confdefs.h.  */
15261.84Schristos$4
15271.84Schristos#include <$2>
15281.84Schristos_ACEOF
15291.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
15301.84Schristos  eval "$3=yes"
15311.84Schristoselse
15321.84Schristos  eval "$3=no"
15331.84Schristosfi
15341.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15351.84Schristosfi
15361.84Schristoseval ac_res=\$$3
15371.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15381.84Schristos$as_echo "$ac_res" >&6; }
15391.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15401.84Schristos
15411.84Schristos} # ac_fn_c_check_header_compile
15421.84Schristos
15431.84Schristos# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
15441.84Schristos# -------------------------------------------------------
15451.84Schristos# Tests whether HEADER exists, giving a warning if it cannot be compiled using
15461.84Schristos# the include files in INCLUDES and setting the cache variable VAR
15471.84Schristos# accordingly.
15481.84Schristosac_fn_c_check_header_mongrel ()
15491.84Schristos{
15501.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15511.84Schristos  if eval \${$3+:} false; then :
15521.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
15531.84Schristos$as_echo_n "checking for $2... " >&6; }
15541.84Schristosif eval \${$3+:} false; then :
15551.84Schristos  $as_echo_n "(cached) " >&6
15561.84Schristosfi
15571.84Schristoseval ac_res=\$$3
15581.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15591.84Schristos$as_echo "$ac_res" >&6; }
15601.84Schristoselse
15611.84Schristos  # Is the header compilable?
15621.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
15631.84Schristos$as_echo_n "checking $2 usability... " >&6; }
15641.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651.84Schristos/* end confdefs.h.  */
15661.84Schristos$4
15671.84Schristos#include <$2>
15681.84Schristos_ACEOF
15691.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
15701.84Schristos  ac_header_compiler=yes
15711.84Schristoselse
15721.84Schristos  ac_header_compiler=no
15731.84Schristosfi
15741.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15751.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
15761.84Schristos$as_echo "$ac_header_compiler" >&6; }
15771.84Schristos
15781.84Schristos# Is the header present?
15791.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
15801.84Schristos$as_echo_n "checking $2 presence... " >&6; }
15811.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
15821.84Schristos/* end confdefs.h.  */
15831.84Schristos#include <$2>
15841.84Schristos_ACEOF
15851.84Schristosif ac_fn_c_try_cpp "$LINENO"; then :
15861.84Schristos  ac_header_preproc=yes
15871.84Schristoselse
15881.84Schristos  ac_header_preproc=no
15891.84Schristosfi
15901.84Schristosrm -f conftest.err conftest.i conftest.$ac_ext
15911.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
15921.84Schristos$as_echo "$ac_header_preproc" >&6; }
15931.84Schristos
15941.84Schristos# So?  What about this header?
15951.84Schristoscase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
15961.84Schristos  yes:no: )
15971.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
15981.84Schristos$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
15991.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
16001.84Schristos$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
16011.84Schristos    ;;
16021.84Schristos  no:yes:* )
16031.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
16041.84Schristos$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
16051.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
16061.84Schristos$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
16071.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
16081.84Schristos$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
16091.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
16101.84Schristos$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
16111.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
16121.84Schristos$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
16131.84Schristos( $as_echo "## ---------------------------------------- ##
16141.84Schristos## Report this to lib-bug-people@NetBSD.org ##
16151.84Schristos## ---------------------------------------- ##"
16161.84Schristos     ) | sed "s/^/$as_me: WARNING:     /" >&2
16171.84Schristos    ;;
16181.84Schristosesac
16191.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16201.84Schristos$as_echo_n "checking for $2... " >&6; }
16211.84Schristosif eval \${$3+:} false; then :
16221.84Schristos  $as_echo_n "(cached) " >&6
16231.84Schristoselse
16241.84Schristos  eval "$3=\$ac_header_compiler"
16251.84Schristosfi
16261.84Schristoseval ac_res=\$$3
16271.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16281.84Schristos$as_echo "$ac_res" >&6; }
16291.84Schristosfi
16301.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16311.84Schristos
16321.84Schristos} # ac_fn_c_check_header_mongrel
16331.84Schristos
16341.84Schristos# ac_fn_c_try_link LINENO
16351.84Schristos# -----------------------
16361.84Schristos# Try to link conftest.$ac_ext, and return whether this succeeded.
16371.84Schristosac_fn_c_try_link ()
16381.84Schristos{
16391.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16401.84Schristos  rm -f conftest.$ac_objext conftest$ac_exeext
16411.84Schristos  if { { ac_try="$ac_link"
16421.84Schristoscase "(($ac_try" in
16431.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16441.84Schristos  *) ac_try_echo=$ac_try;;
16451.84Schristosesac
16461.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16471.84Schristos$as_echo "$ac_try_echo"; } >&5
16481.84Schristos  (eval "$ac_link") 2>conftest.err
16491.84Schristos  ac_status=$?
16501.84Schristos  if test -s conftest.err; then
16511.84Schristos    grep -v '^ *+' conftest.err >conftest.er1
16521.84Schristos    cat conftest.er1 >&5
16531.84Schristos    mv -f conftest.er1 conftest.err
16541.84Schristos  fi
16551.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16561.84Schristos  test $ac_status = 0; } && {
16571.84Schristos	 test -z "$ac_c_werror_flag" ||
16581.84Schristos	 test ! -s conftest.err
16591.84Schristos       } && test -s conftest$ac_exeext && {
16601.84Schristos	 test "$cross_compiling" = yes ||
16611.84Schristos	 test -x conftest$ac_exeext
16621.84Schristos       }; then :
16631.84Schristos  ac_retval=0
16641.84Schristoselse
16651.84Schristos  $as_echo "$as_me: failed program was:" >&5
16661.84Schristossed 's/^/| /' conftest.$ac_ext >&5
16671.84Schristos
16681.84Schristos	ac_retval=1
16691.84Schristosfi
16701.84Schristos  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
16711.84Schristos  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
16721.84Schristos  # interfere with the next link command; also delete a directory that is
16731.84Schristos  # left behind by Apple's compiler.  We do this before executing the actions.
16741.84Schristos  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16751.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16761.84Schristos  as_fn_set_status $ac_retval
16771.74Schristos
16781.84Schristos} # ac_fn_c_try_link
16791.1Stv
16801.84Schristos# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
16811.84Schristos# -------------------------------------------
16821.84Schristos# Tests whether TYPE exists after having included INCLUDES, setting cache
16831.84Schristos# variable VAR accordingly.
16841.84Schristosac_fn_c_check_type ()
16851.84Schristos{
16861.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16871.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16881.84Schristos$as_echo_n "checking for $2... " >&6; }
16891.84Schristosif eval \${$3+:} false; then :
16901.84Schristos  $as_echo_n "(cached) " >&6
16911.84Schristoselse
16921.84Schristos  eval "$3=no"
16931.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941.84Schristos/* end confdefs.h.  */
16951.84Schristos$4
16961.84Schristosint
16971.84Schristosmain ()
16981.84Schristos{
16991.84Schristosif (sizeof ($2))
17001.84Schristos	 return 0;
17011.84Schristos  ;
17021.84Schristos  return 0;
17031.84Schristos}
17041.84Schristos_ACEOF
17051.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
17061.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071.84Schristos/* end confdefs.h.  */
17081.84Schristos$4
17091.84Schristosint
17101.84Schristosmain ()
17111.74Schristos{
17121.84Schristosif (sizeof (($2)))
17131.84Schristos	    return 0;
17141.84Schristos  ;
17151.84Schristos  return 0;
17161.84Schristos}
17171.84Schristos_ACEOF
17181.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
17191.84Schristos
17201.84Schristoselse
17211.84Schristos  eval "$3=yes"
17221.84Schristosfi
17231.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17241.84Schristosfi
17251.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17261.84Schristosfi
17271.84Schristoseval ac_res=\$$3
17281.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17291.84Schristos$as_echo "$ac_res" >&6; }
17301.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17311.84Schristos
17321.84Schristos} # ac_fn_c_check_type
17331.74Schristos
17341.84Schristos# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
17351.84Schristos# ----------------------------------------------------
17361.84Schristos# Tries to find if the field MEMBER exists in type AGGR, after including
17371.84Schristos# INCLUDES, setting cache variable VAR accordingly.
17381.84Schristosac_fn_c_check_member ()
17391.84Schristos{
17401.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17411.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
17421.84Schristos$as_echo_n "checking for $2.$3... " >&6; }
17431.84Schristosif eval \${$4+:} false; then :
17441.84Schristos  $as_echo_n "(cached) " >&6
17451.84Schristoselse
17461.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17471.84Schristos/* end confdefs.h.  */
17481.84Schristos$5
17491.84Schristosint
17501.84Schristosmain ()
17511.84Schristos{
17521.84Schristosstatic $2 ac_aggr;
17531.84Schristosif (ac_aggr.$3)
17541.84Schristosreturn 0;
17551.84Schristos  ;
17561.84Schristos  return 0;
17571.84Schristos}
17581.84Schristos_ACEOF
17591.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
17601.84Schristos  eval "$4=yes"
17611.84Schristoselse
17621.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631.84Schristos/* end confdefs.h.  */
17641.84Schristos$5
17651.84Schristosint
17661.84Schristosmain ()
17671.84Schristos{
17681.84Schristosstatic $2 ac_aggr;
17691.84Schristosif (sizeof ac_aggr.$3)
17701.84Schristosreturn 0;
17711.84Schristos  ;
17721.84Schristos  return 0;
17731.84Schristos}
17741.84Schristos_ACEOF
17751.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
17761.84Schristos  eval "$4=yes"
17771.84Schristoselse
17781.84Schristos  eval "$4=no"
17791.84Schristosfi
17801.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17811.84Schristosfi
17821.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17831.84Schristosfi
17841.84Schristoseval ac_res=\$$4
17851.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17861.84Schristos$as_echo "$ac_res" >&6; }
17871.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17881.74Schristos
17891.84Schristos} # ac_fn_c_check_member
17901.1Stv
17911.84Schristos# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
17921.84Schristos# ---------------------------------------------
17931.84Schristos# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
17941.84Schristos# accordingly.
17951.84Schristosac_fn_c_check_decl ()
17961.84Schristos{
17971.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17981.84Schristos  as_decl_name=`echo $2|sed 's/ *(.*//'`
17991.84Schristos  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
18001.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
18011.84Schristos$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
18021.84Schristosif eval \${$3+:} false; then :
18031.84Schristos  $as_echo_n "(cached) " >&6
18041.84Schristoselse
18051.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18061.84Schristos/* end confdefs.h.  */
18071.84Schristos$4
18081.84Schristosint
18091.84Schristosmain ()
18101.84Schristos{
18111.84Schristos#ifndef $as_decl_name
18121.84Schristos#ifdef __cplusplus
18131.84Schristos  (void) $as_decl_use;
18141.84Schristos#else
18151.84Schristos  (void) $as_decl_name;
18161.84Schristos#endif
18171.84Schristos#endif
18181.1Stv
18191.84Schristos  ;
18201.84Schristos  return 0;
18211.84Schristos}
18221.84Schristos_ACEOF
18231.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
18241.84Schristos  eval "$3=yes"
18251.84Schristoselse
18261.84Schristos  eval "$3=no"
18271.84Schristosfi
18281.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18291.84Schristosfi
18301.84Schristoseval ac_res=\$$3
18311.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18321.84Schristos$as_echo "$ac_res" >&6; }
18331.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18341.1Stv
18351.84Schristos} # ac_fn_c_check_decl
18361.1Stv
18371.84Schristos# ac_fn_c_check_func LINENO FUNC VAR
18381.84Schristos# ----------------------------------
18391.84Schristos# Tests whether FUNC exists, setting the cache variable VAR accordingly
18401.84Schristosac_fn_c_check_func ()
18411.84Schristos{
18421.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18431.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18441.84Schristos$as_echo_n "checking for $2... " >&6; }
18451.84Schristosif eval \${$3+:} false; then :
18461.84Schristos  $as_echo_n "(cached) " >&6
18471.84Schristoselse
18481.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18491.84Schristos/* end confdefs.h.  */
18501.84Schristos/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18511.84Schristos   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18521.84Schristos#define $2 innocuous_$2
18531.84Schristos
18541.84Schristos/* System header to define __stub macros and hopefully few prototypes,
18551.84Schristos    which can conflict with char $2 (); below.
18561.84Schristos    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18571.84Schristos    <limits.h> exists even on freestanding compilers.  */
18581.84Schristos
18591.84Schristos#ifdef __STDC__
18601.84Schristos# include <limits.h>
18611.84Schristos#else
18621.84Schristos# include <assert.h>
18631.84Schristos#endif
18641.84Schristos
18651.84Schristos#undef $2
18661.84Schristos
18671.84Schristos/* Override any GCC internal prototype to avoid an error.
18681.84Schristos   Use char because int might match the return type of a GCC
18691.84Schristos   builtin and then its argument prototype would still apply.  */
18701.84Schristos#ifdef __cplusplus
18711.84Schristosextern "C"
18721.84Schristos#endif
18731.84Schristoschar $2 ();
18741.84Schristos/* The GNU C library defines this for functions which it implements
18751.84Schristos    to always fail with ENOSYS.  Some functions are actually named
18761.84Schristos    something starting with __ and the normal name is an alias.  */
18771.84Schristos#if defined __stub_$2 || defined __stub___$2
18781.84Schristoschoke me
18791.84Schristos#endif
18801.84Schristos
18811.84Schristosint
18821.84Schristosmain ()
18831.84Schristos{
18841.84Schristosreturn $2 ();
18851.84Schristos  ;
18861.84Schristos  return 0;
18871.84Schristos}
18881.84Schristos_ACEOF
18891.84Schristosif ac_fn_c_try_link "$LINENO"; then :
18901.84Schristos  eval "$3=yes"
18911.84Schristoselse
18921.84Schristos  eval "$3=no"
18931.84Schristosfi
18941.84Schristosrm -f core conftest.err conftest.$ac_objext \
18951.84Schristos    conftest$ac_exeext conftest.$ac_ext
18961.84Schristosfi
18971.84Schristoseval ac_res=\$$3
18981.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18991.84Schristos$as_echo "$ac_res" >&6; }
19001.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19011.84Schristos
19021.84Schristos} # ac_fn_c_check_func
19031.84Schristoscat >config.log <<_ACEOF
19041.84SchristosThis file contains any messages produced by compilers while
19051.84Schristosrunning configure, to aid debugging if configure makes a mistake.
19061.84Schristos
19071.84SchristosIt was created by libnbcompat $as_me noversion, which was
19081.84Schristosgenerated by GNU Autoconf 2.69.  Invocation command line was
19091.84Schristos
19101.84Schristos  $ $0 $@
19111.84Schristos
19121.84Schristos_ACEOF
19131.84Schristosexec 5>>config.log
19141.84Schristos{
19151.84Schristoscat <<_ASUNAME
19161.84Schristos## --------- ##
19171.84Schristos## Platform. ##
19181.84Schristos## --------- ##
19191.84Schristos
19201.84Schristoshostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
19211.84Schristosuname -m = `(uname -m) 2>/dev/null || echo unknown`
19221.84Schristosuname -r = `(uname -r) 2>/dev/null || echo unknown`
19231.84Schristosuname -s = `(uname -s) 2>/dev/null || echo unknown`
19241.84Schristosuname -v = `(uname -v) 2>/dev/null || echo unknown`
19251.84Schristos
19261.84Schristos/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
19271.84Schristos/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
19281.84Schristos
19291.84Schristos/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
19301.84Schristos/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
19311.84Schristos/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
19321.84Schristos/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
19331.84Schristos/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
19341.84Schristos/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
19351.84Schristos/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
19361.84Schristos
19371.84Schristos_ASUNAME
19381.84Schristos
19391.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19401.84Schristosfor as_dir in $PATH
19411.84Schristosdo
19421.84Schristos  IFS=$as_save_IFS
19431.84Schristos  test -z "$as_dir" && as_dir=.
19441.84Schristos    $as_echo "PATH: $as_dir"
19451.84Schristos  done
19461.84SchristosIFS=$as_save_IFS
19471.84Schristos
19481.84Schristos} >&5
19491.84Schristos
19501.84Schristoscat >&5 <<_ACEOF
19511.84Schristos
19521.84Schristos
19531.84Schristos## ----------- ##
19541.84Schristos## Core tests. ##
19551.84Schristos## ----------- ##
19561.84Schristos
19571.84Schristos_ACEOF
19581.66Stsutsui
19591.1Stv
19601.76Spooka# Keep a trace of the command line.
19611.76Spooka# Strip out --no-create and --no-recursion so they do not pile up.
19621.84Schristos# Strip out --silent because we don't want to record it for future runs.
19631.76Spooka# Also quote any args containing shell meta-characters.
19641.84Schristos# Make two passes to allow for proper duplicate-argument suppression.
19651.76Spookaac_configure_args=
19661.84Schristosac_configure_args0=
19671.84Schristosac_configure_args1=
19681.84Schristosac_must_keep_next=false
19691.84Schristosfor ac_pass in 1 2
19701.76Spookado
19711.84Schristos  for ac_arg
19721.84Schristos  do
19731.84Schristos    case $ac_arg in
19741.84Schristos    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
19751.84Schristos    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19761.84Schristos    | -silent | --silent | --silen | --sile | --sil)
19771.84Schristos      continue ;;
19781.84Schristos    *\'*)
19791.84Schristos      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19801.84Schristos    esac
19811.84Schristos    case $ac_pass in
19821.84Schristos    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
19831.84Schristos    2)
19841.84Schristos      as_fn_append ac_configure_args1 " '$ac_arg'"
19851.84Schristos      if test $ac_must_keep_next = true; then
19861.84Schristos	ac_must_keep_next=false # Got value, back to normal.
19871.84Schristos      else
19881.84Schristos	case $ac_arg in
19891.84Schristos	  *=* | --config-cache | -C | -disable-* | --disable-* \
19901.84Schristos	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
19911.84Schristos	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
19921.84Schristos	  | -with-* | --with-* | -without-* | --without-* | --x)
19931.84Schristos	    case "$ac_configure_args0 " in
19941.84Schristos	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
19951.84Schristos	    esac
19961.84Schristos	    ;;
19971.84Schristos	  -* ) ac_must_keep_next=true ;;
19981.84Schristos	esac
19991.84Schristos      fi
20001.84Schristos      as_fn_append ac_configure_args " '$ac_arg'"
20011.84Schristos      ;;
20021.84Schristos    esac
20031.84Schristos  done
20041.1Stvdone
20051.84Schristos{ ac_configure_args0=; unset ac_configure_args0;}
20061.84Schristos{ ac_configure_args1=; unset ac_configure_args1;}
20071.1Stv
20081.1Stv# When interrupted or exit'd, cleanup temporary files, and complete
20091.1Stv# config.log.  We remove comments because anyway the quotes in there
20101.1Stv# would cause problems or look ugly.
20111.84Schristos# WARNING: Use '\'' to represent an apostrophe within the trap.
20121.84Schristos# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
20131.1Stvtrap 'exit_status=$?
20141.1Stv  # Save into config.log some information that might help in debugging.
20151.84Schristos  {
20161.84Schristos    echo
20171.84Schristos
20181.84Schristos    $as_echo "## ---------------- ##
20191.84Schristos## Cache variables. ##
20201.84Schristos## ---------------- ##"
20211.84Schristos    echo
20221.84Schristos    # The following way of writing the cache mishandles newlines in values,
20231.84Schristos(
20241.84Schristos  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
20251.84Schristos    eval ac_val=\$$ac_var
20261.84Schristos    case $ac_val in #(
20271.84Schristos    *${as_nl}*)
20281.84Schristos      case $ac_var in #(
20291.84Schristos      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20301.84Schristos$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20311.84Schristos      esac
20321.84Schristos      case $ac_var in #(
20331.84Schristos      _ | IFS | as_nl) ;; #(
20341.84Schristos      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20351.84Schristos      *) { eval $ac_var=; unset $ac_var;} ;;
20361.84Schristos      esac ;;
20371.84Schristos    esac
20381.84Schristos  done
20391.1Stv  (set) 2>&1 |
20401.84Schristos    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
20411.84Schristos    *${as_nl}ac_space=\ *)
20421.1Stv      sed -n \
20431.84Schristos	"s/'\''/'\''\\\\'\'''\''/g;
20441.84Schristos	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
20451.84Schristos      ;; #(
20461.1Stv    *)
20471.84Schristos      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20481.1Stv      ;;
20491.84Schristos    esac |
20501.84Schristos    sort
20511.84Schristos)
20521.84Schristos    echo
20531.84Schristos
20541.84Schristos    $as_echo "## ----------------- ##
20551.84Schristos## Output variables. ##
20561.84Schristos## ----------------- ##"
20571.84Schristos    echo
20581.84Schristos    for ac_var in $ac_subst_vars
20591.84Schristos    do
20601.84Schristos      eval ac_val=\$$ac_var
20611.84Schristos      case $ac_val in
20621.84Schristos      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
20631.84Schristos      esac
20641.84Schristos      $as_echo "$ac_var='\''$ac_val'\''"
20651.84Schristos    done | sort
20661.84Schristos    echo
20671.84Schristos
20681.84Schristos    if test -n "$ac_subst_files"; then
20691.84Schristos      $as_echo "## ------------------- ##
20701.84Schristos## File substitutions. ##
20711.84Schristos## ------------------- ##"
20721.84Schristos      echo
20731.84Schristos      for ac_var in $ac_subst_files
20741.84Schristos      do
20751.84Schristos	eval ac_val=\$$ac_var
20761.84Schristos	case $ac_val in
20771.84Schristos	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
20781.84Schristos	esac
20791.84Schristos	$as_echo "$ac_var='\''$ac_val'\''"
20801.84Schristos      done | sort
20811.84Schristos      echo
20821.84Schristos    fi
20831.84Schristos
20841.84Schristos    if test -s confdefs.h; then
20851.84Schristos      $as_echo "## ----------- ##
20861.84Schristos## confdefs.h. ##
20871.84Schristos## ----------- ##"
20881.84Schristos      echo
20891.84Schristos      cat confdefs.h
20901.84Schristos      echo
20911.84Schristos    fi
20921.84Schristos    test "$ac_signal" != 0 &&
20931.84Schristos      $as_echo "$as_me: caught signal $ac_signal"
20941.84Schristos    $as_echo "$as_me: exit $exit_status"
20951.84Schristos  } >&5
20961.84Schristos  rm -f core *.core core.conftest.* &&
20971.84Schristos    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
20981.1Stv    exit $exit_status
20991.84Schristos' 0
21001.1Stvfor ac_signal in 1 2 13 15; do
21011.84Schristos  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
21021.1Stvdone
21031.1Stvac_signal=0
21041.1Stv
21051.1Stv# confdefs.h avoids OS command line length limits that DEFS can exceed.
21061.84Schristosrm -f -r conftest* confdefs.h
21071.84Schristos
21081.84Schristos$as_echo "/* confdefs.h */" > confdefs.h
21091.84Schristos
21101.84Schristos# Predefined preprocessor variables.
21111.84Schristos
21121.84Schristoscat >>confdefs.h <<_ACEOF
21131.84Schristos#define PACKAGE_NAME "$PACKAGE_NAME"
21141.84Schristos_ACEOF
21151.84Schristos
21161.84Schristoscat >>confdefs.h <<_ACEOF
21171.84Schristos#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
21181.84Schristos_ACEOF
21191.84Schristos
21201.84Schristoscat >>confdefs.h <<_ACEOF
21211.84Schristos#define PACKAGE_VERSION "$PACKAGE_VERSION"
21221.84Schristos_ACEOF
21231.84Schristos
21241.84Schristoscat >>confdefs.h <<_ACEOF
21251.84Schristos#define PACKAGE_STRING "$PACKAGE_STRING"
21261.84Schristos_ACEOF
21271.84Schristos
21281.84Schristoscat >>confdefs.h <<_ACEOF
21291.84Schristos#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
21301.84Schristos_ACEOF
21311.84Schristos
21321.84Schristoscat >>confdefs.h <<_ACEOF
21331.84Schristos#define PACKAGE_URL "$PACKAGE_URL"
21341.84Schristos_ACEOF
21351.84Schristos
21361.1Stv
21371.1Stv# Let the site file select an alternate cache file if it wants to.
21381.84Schristos# Prefer an explicitly selected file to automatically selected ones.
21391.84Schristosac_site_file1=NONE
21401.84Schristosac_site_file2=NONE
21411.84Schristosif test -n "$CONFIG_SITE"; then
21421.84Schristos  # We do not want a PATH search for config.site.
21431.84Schristos  case $CONFIG_SITE in #((
21441.84Schristos    -*)  ac_site_file1=./$CONFIG_SITE;;
21451.84Schristos    */*) ac_site_file1=$CONFIG_SITE;;
21461.84Schristos    *)   ac_site_file1=./$CONFIG_SITE;;
21471.84Schristos  esac
21481.84Schristoselif test "x$prefix" != xNONE; then
21491.84Schristos  ac_site_file1=$prefix/share/config.site
21501.84Schristos  ac_site_file2=$prefix/etc/config.site
21511.84Schristoselse
21521.84Schristos  ac_site_file1=$ac_default_prefix/share/config.site
21531.84Schristos  ac_site_file2=$ac_default_prefix/etc/config.site
21541.1Stvfi
21551.84Schristosfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
21561.84Schristosdo
21571.84Schristos  test "x$ac_site_file" = xNONE && continue
21581.84Schristos  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
21591.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
21601.84Schristos$as_echo "$as_me: loading site script $ac_site_file" >&6;}
21611.84Schristos    sed 's/^/| /' "$ac_site_file" >&5
21621.84Schristos    . "$ac_site_file" \
21631.84Schristos      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21641.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21651.84Schristosas_fn_error $? "failed to load site script $ac_site_file
21661.84SchristosSee \`config.log' for more details" "$LINENO" 5; }
21671.1Stv  fi
21681.1Stvdone
21691.1Stv
21701.1Stvif test -r "$cache_file"; then
21711.84Schristos  # Some versions of bash will fail to source /dev/null (special files
21721.84Schristos  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
21731.84Schristos  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
21741.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
21751.84Schristos$as_echo "$as_me: loading cache $cache_file" >&6;}
21761.1Stv    case $cache_file in
21771.84Schristos      [\\/]* | ?:[\\/]* ) . "$cache_file";;
21781.84Schristos      *)                      . "./$cache_file";;
21791.1Stv    esac
21801.1Stv  fi
21811.1Stvelse
21821.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
21831.84Schristos$as_echo "$as_me: creating cache $cache_file" >&6;}
21841.1Stv  >$cache_file
21851.1Stvfi
21861.1Stv
21871.1Stv# Check that the precious variables saved in the cache have kept the same
21881.1Stv# value.
21891.1Stvac_cache_corrupted=false
21901.84Schristosfor ac_var in $ac_precious_vars; do
21911.1Stv  eval ac_old_set=\$ac_cv_env_${ac_var}_set
21921.1Stv  eval ac_new_set=\$ac_env_${ac_var}_set
21931.84Schristos  eval ac_old_val=\$ac_cv_env_${ac_var}_value
21941.84Schristos  eval ac_new_val=\$ac_env_${ac_var}_value
21951.1Stv  case $ac_old_set,$ac_new_set in
21961.1Stv    set,)
21971.84Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
21981.84Schristos$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
21991.1Stv      ac_cache_corrupted=: ;;
22001.1Stv    ,set)
22011.84Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
22021.84Schristos$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
22031.1Stv      ac_cache_corrupted=: ;;
22041.1Stv    ,);;
22051.1Stv    *)
22061.1Stv      if test "x$ac_old_val" != "x$ac_new_val"; then
22071.84Schristos	# differences in whitespace do not lead to failure.
22081.84Schristos	ac_old_val_w=`echo x $ac_old_val`
22091.84Schristos	ac_new_val_w=`echo x $ac_new_val`
22101.84Schristos	if test "$ac_old_val_w" != "$ac_new_val_w"; then
22111.84Schristos	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
22121.84Schristos$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
22131.84Schristos	  ac_cache_corrupted=:
22141.84Schristos	else
22151.84Schristos	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
22161.84Schristos$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
22171.84Schristos	  eval $ac_var=\$ac_old_val
22181.84Schristos	fi
22191.84Schristos	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
22201.84Schristos$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
22211.84Schristos	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
22221.84Schristos$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
22231.1Stv      fi;;
22241.1Stv  esac
22251.84Schristos  # Pass precious variables to config.status.
22261.1Stv  if test "$ac_new_set" = set; then
22271.1Stv    case $ac_new_val in
22281.84Schristos    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
22291.84Schristos    *) ac_arg=$ac_var=$ac_new_val ;;
22301.84Schristos    esac
22311.84Schristos    case " $ac_configure_args " in
22321.84Schristos      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
22331.84Schristos      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
22341.1Stv    esac
22351.1Stv  fi
22361.1Stvdone
22371.1Stvif $ac_cache_corrupted; then
22381.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22391.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22401.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
22411.84Schristos$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22421.84Schristos  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
22431.84Schristosfi
22441.84Schristos## -------------------- ##
22451.84Schristos## Main body of script. ##
22461.84Schristos## -------------------- ##
22471.1Stv
22481.1Stvac_ext=c
22491.1Stvac_cpp='$CPP $CPPFLAGS'
22501.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22511.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22521.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
22531.1Stv
22541.1Stv
22551.63Sapbac_config_headers="$ac_config_headers nbtool_config.h"
22561.1Stv
22571.63Sapbac_config_files="$ac_config_files defs.mk"
22581.1Stv
22591.84Schristos
22601.101Slukem
22611.101Slukem
22621.102Slukem
22631.102Slukem
22641.57Swiz# Autoheader header and footer
22651.57Swiz
22661.84Schristos
22671.84Schristos
22681.84Schristos
22691.20Sbjh21
22701.1Stvac_ext=c
22711.1Stvac_cpp='$CPP $CPPFLAGS'
22721.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22731.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22741.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
22751.1Stvif test -n "$ac_tool_prefix"; then
22761.1Stv  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22771.1Stvset dummy ${ac_tool_prefix}gcc; ac_word=$2
22781.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22791.84Schristos$as_echo_n "checking for $ac_word... " >&6; }
22801.84Schristosif ${ac_cv_prog_CC+:} false; then :
22811.84Schristos  $as_echo_n "(cached) " >&6
22821.1Stvelse
22831.1Stv  if test -n "$CC"; then
22841.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
22851.1Stvelse
22861.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22871.84Schristosfor as_dir in $PATH
22881.84Schristosdo
22891.84Schristos  IFS=$as_save_IFS
22901.84Schristos  test -z "$as_dir" && as_dir=.
22911.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
22921.84Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22931.84Schristos    ac_cv_prog_CC="${ac_tool_prefix}gcc"
22941.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22951.84Schristos    break 2
22961.84Schristos  fi
22971.1Stvdone
22981.84Schristos  done
22991.84SchristosIFS=$as_save_IFS
23001.1Stv
23011.1Stvfi
23021.1Stvfi
23031.1StvCC=$ac_cv_prog_CC
23041.1Stvif test -n "$CC"; then
23051.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
23061.84Schristos$as_echo "$CC" >&6; }
23071.1Stvelse
23081.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23091.84Schristos$as_echo "no" >&6; }
23101.1Stvfi
23111.1Stv
23121.84Schristos
23131.1Stvfi
23141.1Stvif test -z "$ac_cv_prog_CC"; then
23151.1Stv  ac_ct_CC=$CC
23161.1Stv  # Extract the first word of "gcc", so it can be a program name with args.
23171.1Stvset dummy gcc; ac_word=$2
23181.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23191.84Schristos$as_echo_n "checking for $ac_word... " >&6; }
23201.84Schristosif ${ac_cv_prog_ac_ct_CC+:} false; then :
23211.84Schristos  $as_echo_n "(cached) " >&6
23221.1Stvelse
23231.1Stv  if test -n "$ac_ct_CC"; then
23241.1Stv  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
23251.1Stvelse
23261.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23271.84Schristosfor as_dir in $PATH
23281.84Schristosdo
23291.84Schristos  IFS=$as_save_IFS
23301.84Schristos  test -z "$as_dir" && as_dir=.
23311.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
23321.84Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23331.84Schristos    ac_cv_prog_ac_ct_CC="gcc"
23341.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23351.84Schristos    break 2
23361.84Schristos  fi
23371.1Stvdone
23381.84Schristos  done
23391.84SchristosIFS=$as_save_IFS
23401.1Stv
23411.1Stvfi
23421.1Stvfi
23431.1Stvac_ct_CC=$ac_cv_prog_ac_ct_CC
23441.1Stvif test -n "$ac_ct_CC"; then
23451.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
23461.84Schristos$as_echo "$ac_ct_CC" >&6; }
23471.1Stvelse
23481.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23491.84Schristos$as_echo "no" >&6; }
23501.1Stvfi
23511.1Stv
23521.84Schristos  if test "x$ac_ct_CC" = x; then
23531.84Schristos    CC=""
23541.84Schristos  else
23551.84Schristos    case $cross_compiling:$ac_tool_warned in
23561.84Schristosyes:)
23571.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23581.84Schristos$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23591.84Schristosac_tool_warned=yes ;;
23601.84Schristosesac
23611.84Schristos    CC=$ac_ct_CC
23621.84Schristos  fi
23631.1Stvelse
23641.1Stv  CC="$ac_cv_prog_CC"
23651.1Stvfi
23661.1Stv
23671.1Stvif test -z "$CC"; then
23681.84Schristos          if test -n "$ac_tool_prefix"; then
23691.84Schristos    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
23701.1Stvset dummy ${ac_tool_prefix}cc; ac_word=$2
23711.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23721.84Schristos$as_echo_n "checking for $ac_word... " >&6; }
23731.84Schristosif ${ac_cv_prog_CC+:} false; then :
23741.84Schristos  $as_echo_n "(cached) " >&6
23751.1Stvelse
23761.1Stv  if test -n "$CC"; then
23771.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
23781.1Stvelse
23791.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23801.84Schristosfor as_dir in $PATH
23811.84Schristosdo
23821.84Schristos  IFS=$as_save_IFS
23831.84Schristos  test -z "$as_dir" && as_dir=.
23841.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
23851.84Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23861.84Schristos    ac_cv_prog_CC="${ac_tool_prefix}cc"
23871.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23881.84Schristos    break 2
23891.84Schristos  fi
23901.65Schristosdone
23911.84Schristos  done
23921.84SchristosIFS=$as_save_IFS
23931.1Stv
23941.1Stvfi
23951.1Stvfi
23961.1StvCC=$ac_cv_prog_CC
23971.1Stvif test -n "$CC"; then
23981.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
23991.84Schristos$as_echo "$CC" >&6; }
24001.76Spookaelse
24011.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24021.84Schristos$as_echo "no" >&6; }
24031.76Spookafi
24041.76Spooka
24051.1Stv
24061.84Schristos  fi
24071.1Stvfi
24081.1Stvif test -z "$CC"; then
24091.1Stv  # Extract the first word of "cc", so it can be a program name with args.
24101.1Stvset dummy cc; ac_word=$2
24111.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24121.84Schristos$as_echo_n "checking for $ac_word... " >&6; }
24131.84Schristosif ${ac_cv_prog_CC+:} false; then :
24141.84Schristos  $as_echo_n "(cached) " >&6
24151.1Stvelse
24161.1Stv  if test -n "$CC"; then
24171.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
24181.1Stvelse
24191.1Stv  ac_prog_rejected=no
24201.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24211.84Schristosfor as_dir in $PATH
24221.84Schristosdo
24231.84Schristos  IFS=$as_save_IFS
24241.84Schristos  test -z "$as_dir" && as_dir=.
24251.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
24261.84Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24271.84Schristos    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
24281.84Schristos       ac_prog_rejected=yes
24291.84Schristos       continue
24301.84Schristos     fi
24311.84Schristos    ac_cv_prog_CC="cc"
24321.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24331.84Schristos    break 2
24341.84Schristos  fi
24351.65Schristosdone
24361.84Schristos  done
24371.84SchristosIFS=$as_save_IFS
24381.1Stv
24391.1Stvif test $ac_prog_rejected = yes; then
24401.1Stv  # We found a bogon in the path, so make sure we never use it.
24411.1Stv  set dummy $ac_cv_prog_CC
24421.1Stv  shift
24431.1Stv  if test $# != 0; then
24441.1Stv    # We chose a different compiler from the bogus one.
24451.1Stv    # However, it has the same basename, so the bogon will be chosen
24461.1Stv    # first if we set CC to just the basename; use the full file name.
24471.1Stv    shift
24481.84Schristos    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
24491.1Stv  fi
24501.1Stvfi
24511.1Stvfi
24521.1Stvfi
24531.1StvCC=$ac_cv_prog_CC
24541.1Stvif test -n "$CC"; then
24551.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
24561.84Schristos$as_echo "$CC" >&6; }
24571.1Stvelse
24581.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24591.84Schristos$as_echo "no" >&6; }
24601.1Stvfi
24611.1Stv
24621.84Schristos
24631.1Stvfi
24641.1Stvif test -z "$CC"; then
24651.1Stv  if test -n "$ac_tool_prefix"; then
24661.84Schristos  for ac_prog in cl.exe
24671.1Stv  do
24681.1Stv    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24691.1Stvset dummy $ac_tool_prefix$ac_prog; ac_word=$2
24701.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24711.84Schristos$as_echo_n "checking for $ac_word... " >&6; }
24721.84Schristosif ${ac_cv_prog_CC+:} false; then :
24731.84Schristos  $as_echo_n "(cached) " >&6
24741.1Stvelse
24751.1Stv  if test -n "$CC"; then
24761.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
24771.1Stvelse
24781.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24791.84Schristosfor as_dir in $PATH
24801.84Schristosdo
24811.84Schristos  IFS=$as_save_IFS
24821.84Schristos  test -z "$as_dir" && as_dir=.
24831.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
24841.84Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24851.84Schristos    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
24861.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24871.84Schristos    break 2
24881.84Schristos  fi
24891.1Stvdone
24901.84Schristos  done
24911.84SchristosIFS=$as_save_IFS
24921.1Stv
24931.1Stvfi
24941.1Stvfi
24951.1StvCC=$ac_cv_prog_CC
24961.1Stvif test -n "$CC"; then
24971.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
24981.84Schristos$as_echo "$CC" >&6; }
24991.1Stvelse
25001.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25011.84Schristos$as_echo "no" >&6; }
25021.1Stvfi
25031.1Stv
25041.84Schristos
25051.1Stv    test -n "$CC" && break
25061.1Stv  done
25071.1Stvfi
25081.1Stvif test -z "$CC"; then
25091.1Stv  ac_ct_CC=$CC
25101.84Schristos  for ac_prog in cl.exe
25111.1Stvdo
25121.1Stv  # Extract the first word of "$ac_prog", so it can be a program name with args.
25131.1Stvset dummy $ac_prog; ac_word=$2
25141.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25151.84Schristos$as_echo_n "checking for $ac_word... " >&6; }
25161.84Schristosif ${ac_cv_prog_ac_ct_CC+:} false; then :
25171.84Schristos  $as_echo_n "(cached) " >&6
25181.1Stvelse
25191.1Stv  if test -n "$ac_ct_CC"; then
25201.1Stv  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
25211.1Stvelse
25221.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25231.84Schristosfor as_dir in $PATH
25241.84Schristosdo
25251.84Schristos  IFS=$as_save_IFS
25261.84Schristos  test -z "$as_dir" && as_dir=.
25271.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
25281.84Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25291.84Schristos    ac_cv_prog_ac_ct_CC="$ac_prog"
25301.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25311.84Schristos    break 2
25321.84Schristos  fi
25331.1Stvdone
25341.84Schristos  done
25351.84SchristosIFS=$as_save_IFS
25361.1Stv
25371.1Stvfi
25381.1Stvfi
25391.1Stvac_ct_CC=$ac_cv_prog_ac_ct_CC
25401.1Stvif test -n "$ac_ct_CC"; then
25411.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
25421.84Schristos$as_echo "$ac_ct_CC" >&6; }
25431.1Stvelse
25441.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25451.84Schristos$as_echo "no" >&6; }
25461.1Stvfi
25471.1Stv
25481.84Schristos
25491.1Stv  test -n "$ac_ct_CC" && break
25501.1Stvdone
25511.1Stv
25521.84Schristos  if test "x$ac_ct_CC" = x; then
25531.84Schristos    CC=""
25541.84Schristos  else
25551.84Schristos    case $cross_compiling:$ac_tool_warned in
25561.84Schristosyes:)
25571.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25581.84Schristos$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25591.84Schristosac_tool_warned=yes ;;
25601.84Schristosesac
25611.84Schristos    CC=$ac_ct_CC
25621.84Schristos  fi
25631.1Stvfi
25641.1Stv
25651.1Stvfi
25661.1Stv
25671.84Schristos
25681.84Schristostest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25691.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25701.84Schristosas_fn_error $? "no acceptable C compiler found in \$PATH
25711.84SchristosSee \`config.log' for more details" "$LINENO" 5; }
25721.1Stv
25731.1Stv# Provide some information about the compiler.
25741.84Schristos$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
25751.84Schristosset X $ac_compile
25761.84Schristosac_compiler=$2
25771.84Schristosfor ac_option in --version -v -V -qversion; do
25781.84Schristos  { { ac_try="$ac_compiler $ac_option >&5"
25791.84Schristoscase "(($ac_try" in
25801.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811.84Schristos  *) ac_try_echo=$ac_try;;
25821.84Schristosesac
25831.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25841.84Schristos$as_echo "$ac_try_echo"; } >&5
25851.84Schristos  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25861.76Spooka  ac_status=$?
25871.84Schristos  if test -s conftest.err; then
25881.84Schristos    sed '10a\
25891.84Schristos... rest of stderr output deleted ...
25901.84Schristos         10q' conftest.err >conftest.er1
25911.84Schristos    cat conftest.er1 >&5
25921.84Schristos  fi
25931.84Schristos  rm -f conftest.er1 conftest.err
25941.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25951.84Schristos  test $ac_status = 0; }
25961.84Schristosdone
25971.1Stv
25981.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
25991.84Schristos/* end confdefs.h.  */
26001.1Stv
26011.1Stvint
26021.1Stvmain ()
26031.1Stv{
26041.1Stv
26051.1Stv  ;
26061.1Stv  return 0;
26071.1Stv}
26081.1Stv_ACEOF
26091.1Stvac_clean_files_save=$ac_clean_files
26101.84Schristosac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
26111.1Stv# Try to create an executable without -o first, disregard a.out.
26121.1Stv# It will help us diagnose broken compilers, and finding out an intuition
26131.1Stv# of exeext.
26141.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
26151.84Schristos$as_echo_n "checking whether the C compiler works... " >&6; }
26161.84Schristosac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
26171.84Schristos
26181.84Schristos# The possible output files:
26191.84Schristosac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
26201.84Schristos
26211.84Schristosac_rmfiles=
26221.84Schristosfor ac_file in $ac_files
26231.84Schristosdo
26241.84Schristos  case $ac_file in
26251.84Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
26261.84Schristos    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
26271.84Schristos  esac
26281.84Schristosdone
26291.84Schristosrm -f $ac_rmfiles
26301.84Schristos
26311.84Schristosif { { ac_try="$ac_link_default"
26321.84Schristoscase "(($ac_try" in
26331.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26341.84Schristos  *) ac_try_echo=$ac_try;;
26351.84Schristosesac
26361.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26371.84Schristos$as_echo "$ac_try_echo"; } >&5
26381.84Schristos  (eval "$ac_link_default") 2>&5
26391.84Schristos  ac_status=$?
26401.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26411.84Schristos  test $ac_status = 0; }; then :
26421.84Schristos  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
26431.84Schristos# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
26441.84Schristos# in a Makefile.  We should not override ac_cv_exeext if it was cached,
26451.84Schristos# so that the user can short-circuit this test for compilers unknown to
26461.84Schristos# Autoconf.
26471.84Schristosfor ac_file in $ac_files ''
26481.84Schristosdo
26491.84Schristos  test -f "$ac_file" || continue
26501.74Schristos  case $ac_file in
26511.84Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
26521.84Schristos	;;
26531.84Schristos    [ab].out )
26541.84Schristos	# We found the default executable, but exeext='' is most
26551.84Schristos	# certainly right.
26561.84Schristos	break;;
26571.84Schristos    *.* )
26581.84Schristos	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
26591.84Schristos	then :; else
26601.84Schristos	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
26611.84Schristos	fi
26621.84Schristos	# We set ac_cv_exeext here because the later test for it is not
26631.84Schristos	# safe: cross compilers may not add the suffix if given an `-o'
26641.84Schristos	# argument, so we may need to know it at that point already.
26651.84Schristos	# Even if this section looks crufty: it has the advantage of
26661.84Schristos	# actually working.
26671.84Schristos	break;;
26681.84Schristos    * )
26691.84Schristos	break;;
26701.1Stv  esac
26711.1Stvdone
26721.84Schristostest "$ac_cv_exeext" = no && ac_cv_exeext=
26731.84Schristos
26741.1Stvelse
26751.84Schristos  ac_file=''
26761.1Stvfi
26771.84Schristosif test -z "$ac_file"; then :
26781.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26791.84Schristos$as_echo "no" >&6; }
26801.84Schristos$as_echo "$as_me: failed program was:" >&5
26811.84Schristossed 's/^/| /' conftest.$ac_ext >&5
26821.1Stv
26831.84Schristos{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26841.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26851.84Schristosas_fn_error 77 "C compiler cannot create executables
26861.84SchristosSee \`config.log' for more details" "$LINENO" 5; }
26871.84Schristoselse
26881.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26891.84Schristos$as_echo "yes" >&6; }
26901.84Schristosfi
26911.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
26921.84Schristos$as_echo_n "checking for C compiler default output file name... " >&6; }
26931.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
26941.84Schristos$as_echo "$ac_file" >&6; }
26951.76Spookaac_exeext=$ac_cv_exeext
26961.1Stv
26971.84Schristosrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
26981.1Stvac_clean_files=$ac_clean_files_save
26991.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
27001.84Schristos$as_echo_n "checking for suffix of executables... " >&6; }
27011.84Schristosif { { ac_try="$ac_link"
27021.84Schristoscase "(($ac_try" in
27031.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27041.84Schristos  *) ac_try_echo=$ac_try;;
27051.84Schristosesac
27061.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27071.84Schristos$as_echo "$ac_try_echo"; } >&5
27081.84Schristos  (eval "$ac_link") 2>&5
27091.1Stv  ac_status=$?
27101.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27111.84Schristos  test $ac_status = 0; }; then :
27121.1Stv  # If both `conftest.exe' and `conftest' are `present' (well, observable)
27131.1Stv# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
27141.1Stv# work properly (i.e., refer to `conftest.exe'), while it won't with
27151.1Stv# `rm'.
27161.84Schristosfor ac_file in conftest.exe conftest conftest.*; do
27171.84Schristos  test -f "$ac_file" || continue
27181.1Stv  case $ac_file in
27191.84Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
27201.1Stv    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
27211.84Schristos	  break;;
27221.1Stv    * ) break;;
27231.1Stv  esac
27241.1Stvdone
27251.1Stvelse
27261.84Schristos  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27271.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27281.84Schristosas_fn_error $? "cannot compute suffix of executables: cannot compile and link
27291.84SchristosSee \`config.log' for more details" "$LINENO" 5; }
27301.84Schristosfi
27311.84Schristosrm -f conftest conftest$ac_cv_exeext
27321.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
27331.84Schristos$as_echo "$ac_cv_exeext" >&6; }
27341.1Stv
27351.1Stvrm -f conftest.$ac_ext
27361.1StvEXEEXT=$ac_cv_exeext
27371.1Stvac_exeext=$EXEEXT
27381.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
27391.84Schristos/* end confdefs.h.  */
27401.84Schristos#include <stdio.h>
27411.1Stvint
27421.1Stvmain ()
27431.1Stv{
27441.84SchristosFILE *f = fopen ("conftest.out", "w");
27451.84Schristos return ferror (f) || fclose (f) != 0;
27461.1Stv
27471.1Stv  ;
27481.1Stv  return 0;
27491.1Stv}
27501.1Stv_ACEOF
27511.84Schristosac_clean_files="$ac_clean_files conftest.out"
27521.84Schristos# Check that the compiler produces executables we can run.  If not, either
27531.84Schristos# the compiler is broken, or we cross compile.
27541.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
27551.84Schristos$as_echo_n "checking whether we are cross compiling... " >&6; }
27561.84Schristosif test "$cross_compiling" != yes; then
27571.84Schristos  { { ac_try="$ac_link"
27581.84Schristoscase "(($ac_try" in
27591.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27601.84Schristos  *) ac_try_echo=$ac_try;;
27611.84Schristosesac
27621.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27631.84Schristos$as_echo "$ac_try_echo"; } >&5
27641.84Schristos  (eval "$ac_link") 2>&5
27651.84Schristos  ac_status=$?
27661.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27671.84Schristos  test $ac_status = 0; }
27681.84Schristos  if { ac_try='./conftest$ac_cv_exeext'
27691.84Schristos  { { case "(($ac_try" in
27701.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27711.84Schristos  *) ac_try_echo=$ac_try;;
27721.84Schristosesac
27731.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27741.84Schristos$as_echo "$ac_try_echo"; } >&5
27751.84Schristos  (eval "$ac_try") 2>&5
27761.1Stv  ac_status=$?
27771.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27781.84Schristos  test $ac_status = 0; }; }; then
27791.84Schristos    cross_compiling=no
27801.84Schristos  else
27811.84Schristos    if test "$cross_compiling" = maybe; then
27821.84Schristos	cross_compiling=yes
27831.84Schristos    else
27841.84Schristos	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27851.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27861.84Schristosas_fn_error $? "cannot run C compiled programs.
27871.84SchristosIf you meant to cross compile, use \`--host'.
27881.84SchristosSee \`config.log' for more details" "$LINENO" 5; }
27891.84Schristos    fi
27901.84Schristos  fi
27911.84Schristosfi
27921.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
27931.84Schristos$as_echo "$cross_compiling" >&6; }
27941.84Schristos
27951.84Schristosrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
27961.84Schristosac_clean_files=$ac_clean_files_save
27971.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
27981.84Schristos$as_echo_n "checking for suffix of object files... " >&6; }
27991.84Schristosif ${ac_cv_objext+:} false; then :
28001.84Schristos  $as_echo_n "(cached) " >&6
28011.76Spookaelse
28021.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28031.84Schristos/* end confdefs.h.  */
28041.74Schristos
28051.84Schristosint
28061.84Schristosmain ()
28071.84Schristos{
28081.84Schristos
28091.84Schristos  ;
28101.84Schristos  return 0;
28111.84Schristos}
28121.84Schristos_ACEOF
28131.84Schristosrm -f conftest.o conftest.obj
28141.84Schristosif { { ac_try="$ac_compile"
28151.84Schristoscase "(($ac_try" in
28161.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171.84Schristos  *) ac_try_echo=$ac_try;;
28181.84Schristosesac
28191.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28201.84Schristos$as_echo "$ac_try_echo"; } >&5
28211.84Schristos  (eval "$ac_compile") 2>&5
28221.84Schristos  ac_status=$?
28231.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28241.84Schristos  test $ac_status = 0; }; then :
28251.84Schristos  for ac_file in conftest.o conftest.obj conftest.*; do
28261.84Schristos  test -f "$ac_file" || continue;
28271.84Schristos  case $ac_file in
28281.84Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
28291.84Schristos    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
28301.84Schristos       break;;
28311.84Schristos  esac
28321.84Schristosdone
28331.84Schristoselse
28341.84Schristos  $as_echo "$as_me: failed program was:" >&5
28351.84Schristossed 's/^/| /' conftest.$ac_ext >&5
28361.84Schristos
28371.84Schristos{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28381.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28391.84Schristosas_fn_error $? "cannot compute suffix of object files: cannot compile
28401.84SchristosSee \`config.log' for more details" "$LINENO" 5; }
28411.84Schristosfi
28421.1Stvrm -f conftest.$ac_cv_objext conftest.$ac_ext
28431.1Stvfi
28441.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
28451.84Schristos$as_echo "$ac_cv_objext" >&6; }
28461.1StvOBJEXT=$ac_cv_objext
28471.1Stvac_objext=$OBJEXT
28481.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
28491.84Schristos$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
28501.84Schristosif ${ac_cv_c_compiler_gnu+:} false; then :
28511.84Schristos  $as_echo_n "(cached) " >&6
28521.84Schristoselse
28531.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28541.84Schristos/* end confdefs.h.  */
28551.1Stv
28561.1Stvint
28571.1Stvmain ()
28581.1Stv{
28591.1Stv#ifndef __GNUC__
28601.1Stv       choke me
28611.1Stv#endif
28621.1Stv
28631.1Stv  ;
28641.1Stv  return 0;
28651.1Stv}
28661.1Stv_ACEOF
28671.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
28681.1Stv  ac_compiler_gnu=yes
28691.1Stvelse
28701.84Schristos  ac_compiler_gnu=no
28711.1Stvfi
28721.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28731.1Stvac_cv_c_compiler_gnu=$ac_compiler_gnu
28741.1Stv
28751.1Stvfi
28761.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
28771.84Schristos$as_echo "$ac_cv_c_compiler_gnu" >&6; }
28781.84Schristosif test $ac_compiler_gnu = yes; then
28791.84Schristos  GCC=yes
28801.84Schristoselse
28811.84Schristos  GCC=
28821.84Schristosfi
28831.1Stvac_test_CFLAGS=${CFLAGS+set}
28841.1Stvac_save_CFLAGS=$CFLAGS
28851.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
28861.84Schristos$as_echo_n "checking whether $CC accepts -g... " >&6; }
28871.84Schristosif ${ac_cv_prog_cc_g+:} false; then :
28881.84Schristos  $as_echo_n "(cached) " >&6
28891.84Schristoselse
28901.84Schristos  ac_save_c_werror_flag=$ac_c_werror_flag
28911.84Schristos   ac_c_werror_flag=yes
28921.84Schristos   ac_cv_prog_cc_g=no
28931.84Schristos   CFLAGS="-g"
28941.84Schristos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28951.84Schristos/* end confdefs.h.  */
28961.1Stv
28971.1Stvint
28981.1Stvmain ()
28991.1Stv{
29001.1Stv
29011.1Stv  ;
29021.1Stv  return 0;
29031.1Stv}
29041.1Stv_ACEOF
29051.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
29061.1Stv  ac_cv_prog_cc_g=yes
29071.1Stvelse
29081.84Schristos  CFLAGS=""
29091.84Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29101.84Schristos/* end confdefs.h.  */
29111.84Schristos
29121.84Schristosint
29131.84Schristosmain ()
29141.84Schristos{
29151.84Schristos
29161.84Schristos  ;
29171.84Schristos  return 0;
29181.84Schristos}
29191.84Schristos_ACEOF
29201.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
29211.84Schristos
29221.84Schristoselse
29231.84Schristos  ac_c_werror_flag=$ac_save_c_werror_flag
29241.84Schristos	 CFLAGS="-g"
29251.84Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29261.84Schristos/* end confdefs.h.  */
29271.84Schristos
29281.84Schristosint
29291.84Schristosmain ()
29301.84Schristos{
29311.84Schristos
29321.84Schristos  ;
29331.84Schristos  return 0;
29341.84Schristos}
29351.84Schristos_ACEOF
29361.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
29371.84Schristos  ac_cv_prog_cc_g=yes
29381.84Schristosfi
29391.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29401.66Stsutsuifi
29411.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29421.66Stsutsuifi
29431.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29441.84Schristos   ac_c_werror_flag=$ac_save_c_werror_flag
29451.84Schristosfi
29461.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
29471.84Schristos$as_echo "$ac_cv_prog_cc_g" >&6; }
29481.66Stsutsuiif test "$ac_test_CFLAGS" = set; then
29491.66Stsutsui  CFLAGS=$ac_save_CFLAGS
29501.66Stsutsuielif test $ac_cv_prog_cc_g = yes; then
29511.66Stsutsui  if test "$GCC" = yes; then
29521.66Stsutsui    CFLAGS="-g -O2"
29531.66Stsutsui  else
29541.66Stsutsui    CFLAGS="-g"
29551.66Stsutsui  fi
29561.66Stsutsuielse
29571.66Stsutsui  if test "$GCC" = yes; then
29581.66Stsutsui    CFLAGS="-O2"
29591.66Stsutsui  else
29601.66Stsutsui    CFLAGS=
29611.66Stsutsui  fi
29621.66Stsutsuifi
29631.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
29641.84Schristos$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
29651.84Schristosif ${ac_cv_prog_cc_c89+:} false; then :
29661.84Schristos  $as_echo_n "(cached) " >&6
29671.84Schristoselse
29681.84Schristos  ac_cv_prog_cc_c89=no
29691.84Schristosac_save_CC=$CC
29701.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
29711.84Schristos/* end confdefs.h.  */
29721.84Schristos#include <stdarg.h>
29731.84Schristos#include <stdio.h>
29741.84Schristosstruct stat;
29751.84Schristos/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
29761.84Schristosstruct buf { int x; };
29771.84SchristosFILE * (*rcsopen) (struct buf *, struct stat *, int);
29781.84Schristosstatic char *e (p, i)
29791.84Schristos     char **p;
29801.84Schristos     int i;
29811.84Schristos{
29821.84Schristos  return p[i];
29831.84Schristos}
29841.84Schristosstatic char *f (char * (*g) (char **, int), char **p, ...)
29851.74Schristos{
29861.84Schristos  char *s;
29871.84Schristos  va_list v;
29881.84Schristos  va_start (v,p);
29891.84Schristos  s = g (p, va_arg (v,int));
29901.84Schristos  va_end (v);
29911.84Schristos  return s;
29921.74Schristos}
29931.84Schristos
29941.84Schristos/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
29951.84Schristos   function prototypes and stuff, but not '\xHH' hex character constants.
29961.84Schristos   These don't provoke an error unfortunately, instead are silently treated
29971.84Schristos   as 'x'.  The following induces an error, until -std is added to get
29981.84Schristos   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
29991.84Schristos   array size at least.  It's necessary to write '\x00'==0 to get something
30001.84Schristos   that's true only with -std.  */
30011.84Schristosint osf4_cc_array ['\x00' == 0 ? 1 : -1];
30021.84Schristos
30031.84Schristos/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
30041.84Schristos   inside strings and character constants.  */
30051.84Schristos#define FOO(x) 'x'
30061.84Schristosint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
30071.84Schristos
30081.84Schristosint test (int i, double x);
30091.84Schristosstruct s1 {int (*f) (int a);};
30101.84Schristosstruct s2 {int (*f) (double a);};
30111.84Schristosint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
30121.84Schristosint argc;
30131.84Schristoschar **argv;
30141.1Stvint
30151.1Stvmain ()
30161.1Stv{
30171.84Schristosreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
30181.1Stv  ;
30191.1Stv  return 0;
30201.1Stv}
30211.1Stv_ACEOF
30221.84Schristosfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
30231.84Schristos	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
30241.84Schristosdo
30251.84Schristos  CC="$ac_save_CC $ac_arg"
30261.84Schristos  if ac_fn_c_try_compile "$LINENO"; then :
30271.84Schristos  ac_cv_prog_cc_c89=$ac_arg
30281.65Schristosfi
30291.84Schristosrm -f core conftest.err conftest.$ac_objext
30301.84Schristos  test "x$ac_cv_prog_cc_c89" != "xno" && break
30311.66Stsutsuidone
30321.84Schristosrm -f conftest.$ac_ext
30331.84SchristosCC=$ac_save_CC
30341.84Schristos
30351.1Stvfi
30361.84Schristos# AC_CACHE_VAL
30371.84Schristoscase "x$ac_cv_prog_cc_c89" in
30381.84Schristos  x)
30391.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
30401.84Schristos$as_echo "none needed" >&6; } ;;
30411.84Schristos  xno)
30421.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
30431.84Schristos$as_echo "unsupported" >&6; } ;;
30441.84Schristos  *)
30451.84Schristos    CC="$CC $ac_cv_prog_cc_c89"
30461.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
30471.84Schristos$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
30481.84Schristosesac
30491.84Schristosif test "x$ac_cv_prog_cc_c89" != xno; then :
30501.1Stv
30511.65Schristosfi
30521.84Schristos
30531.1Stvac_ext=c
30541.1Stvac_cpp='$CPP $CPPFLAGS'
30551.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30561.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30571.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
30581.1Stv
30591.84Schristos
30601.1Stvac_ext=c
30611.1Stvac_cpp='$CPP $CPPFLAGS'
30621.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30631.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30641.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
30651.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
30661.84Schristos$as_echo_n "checking how to run the C preprocessor... " >&6; }
30671.1Stv# On Suns, sometimes $CPP names a directory.
30681.1Stvif test -n "$CPP" && test -d "$CPP"; then
30691.1Stv  CPP=
30701.1Stvfi
30711.1Stvif test -z "$CPP"; then
30721.84Schristos  if ${ac_cv_prog_CPP+:} false; then :
30731.84Schristos  $as_echo_n "(cached) " >&6
30741.1Stvelse
30751.1Stv      # Double quotes because CPP needs to be expanded
30761.1Stv    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
30771.1Stv    do
30781.1Stv      ac_preproc_ok=false
30791.1Stvfor ac_c_preproc_warn_flag in '' yes
30801.1Stvdo
30811.1Stv  # Use a header file that comes with gcc, so configuring glibc
30821.1Stv  # with a fresh cross-compiler works.
30831.84Schristos  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30841.84Schristos  # <limits.h> exists even on freestanding compilers.
30851.1Stv  # On the NeXT, cc -E runs the code through the compiler's parser,
30861.1Stv  # not just through cpp. "Syntax error" is here to catch this case.
30871.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30881.84Schristos/* end confdefs.h.  */
30891.84Schristos#ifdef __STDC__
30901.84Schristos# include <limits.h>
30911.84Schristos#else
30921.84Schristos# include <assert.h>
30931.84Schristos#endif
30941.84Schristos		     Syntax error
30951.48Sjmc_ACEOF
30961.84Schristosif ac_fn_c_try_cpp "$LINENO"; then :
30971.84Schristos
30981.1Stvelse
30991.1Stv  # Broken: fails on valid input.
31001.1Stvcontinue
31011.1Stvfi
31021.84Schristosrm -f conftest.err conftest.i conftest.$ac_ext
31031.1Stv
31041.84Schristos  # OK, works on sane cases.  Now check whether nonexistent headers
31051.1Stv  # can be detected and how.
31061.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31071.84Schristos/* end confdefs.h.  */
31081.1Stv#include <ac_nonexistent.h>
31091.1Stv_ACEOF
31101.84Schristosif ac_fn_c_try_cpp "$LINENO"; then :
31111.1Stv  # Broken: success on invalid input.
31121.1Stvcontinue
31131.1Stvelse
31141.1Stv  # Passes both tests.
31151.1Stvac_preproc_ok=:
31161.1Stvbreak
31171.1Stvfi
31181.84Schristosrm -f conftest.err conftest.i conftest.$ac_ext
31191.1Stv
31201.1Stvdone
31211.1Stv# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
31221.84Schristosrm -f conftest.i conftest.err conftest.$ac_ext
31231.84Schristosif $ac_preproc_ok; then :
31241.1Stv  break
31251.1Stvfi
31261.1Stv
31271.1Stv    done
31281.1Stv    ac_cv_prog_CPP=$CPP
31291.1Stv
31301.1Stvfi
31311.1Stv  CPP=$ac_cv_prog_CPP
31321.1Stvelse
31331.1Stv  ac_cv_prog_CPP=$CPP
31341.1Stvfi
31351.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
31361.84Schristos$as_echo "$CPP" >&6; }
31371.1Stvac_preproc_ok=false
31381.1Stvfor ac_c_preproc_warn_flag in '' yes
31391.1Stvdo
31401.1Stv  # Use a header file that comes with gcc, so configuring glibc
31411.1Stv  # with a fresh cross-compiler works.
31421.84Schristos  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31431.84Schristos  # <limits.h> exists even on freestanding compilers.
31441.1Stv  # On the NeXT, cc -E runs the code through the compiler's parser,
31451.1Stv  # not just through cpp. "Syntax error" is here to catch this case.
31461.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31471.84Schristos/* end confdefs.h.  */
31481.84Schristos#ifdef __STDC__
31491.84Schristos# include <limits.h>
31501.84Schristos#else
31511.84Schristos# include <assert.h>
31521.84Schristos#endif
31531.84Schristos		     Syntax error
31541.53Sdogcow_ACEOF
31551.84Schristosif ac_fn_c_try_cpp "$LINENO"; then :
31561.84Schristos
31571.1Stvelse
31581.1Stv  # Broken: fails on valid input.
31591.1Stvcontinue
31601.1Stvfi
31611.84Schristosrm -f conftest.err conftest.i conftest.$ac_ext
31621.1Stv
31631.84Schristos  # OK, works on sane cases.  Now check whether nonexistent headers
31641.1Stv  # can be detected and how.
31651.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31661.84Schristos/* end confdefs.h.  */
31671.1Stv#include <ac_nonexistent.h>
31681.1Stv_ACEOF
31691.84Schristosif ac_fn_c_try_cpp "$LINENO"; then :
31701.45Sjmc  # Broken: success on invalid input.
31711.45Sjmccontinue
31721.45Sjmcelse
31731.45Sjmc  # Passes both tests.
31741.45Sjmcac_preproc_ok=:
31751.45Sjmcbreak
31761.45Sjmcfi
31771.84Schristosrm -f conftest.err conftest.i conftest.$ac_ext
31781.45Sjmc
31791.45Sjmcdone
31801.45Sjmc# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
31811.84Schristosrm -f conftest.i conftest.err conftest.$ac_ext
31821.84Schristosif $ac_preproc_ok; then :
31831.84Schristos
31841.45Sjmcelse
31851.84Schristos  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31861.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31871.84Schristosas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
31881.84SchristosSee \`config.log' for more details" "$LINENO" 5; }
31891.45Sjmcfi
31901.45Sjmc
31911.45Sjmcac_ext=c
31921.45Sjmcac_cpp='$CPP $CPPFLAGS'
31931.45Sjmcac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31941.45Sjmcac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31951.45Sjmcac_compiler_gnu=$ac_cv_c_compiler_gnu
31961.45Sjmc
31971.84Schristos
31981.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
31991.84Schristos$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
32001.84Schristosif ${ac_cv_path_GREP+:} false; then :
32011.84Schristos  $as_echo_n "(cached) " >&6
32021.84Schristoselse
32031.84Schristos  if test -z "$GREP"; then
32041.84Schristos  ac_path_GREP_found=false
32051.84Schristos  # Loop through the user's path and test for each of PROGNAME-LIST
32061.84Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32071.84Schristosfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
32081.84Schristosdo
32091.84Schristos  IFS=$as_save_IFS
32101.84Schristos  test -z "$as_dir" && as_dir=.
32111.84Schristos    for ac_prog in grep ggrep; do
32121.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
32131.84Schristos      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
32141.84Schristos      as_fn_executable_p "$ac_path_GREP" || continue
32151.84Schristos# Check for GNU ac_path_GREP and select it if it is found.
32161.84Schristos  # Check for GNU $ac_path_GREP
32171.84Schristoscase `"$ac_path_GREP" --version 2>&1` in
32181.84Schristos*GNU*)
32191.84Schristos  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
32201.84Schristos*)
32211.84Schristos  ac_count=0
32221.84Schristos  $as_echo_n 0123456789 >"conftest.in"
32231.84Schristos  while :
32241.84Schristos  do
32251.84Schristos    cat "conftest.in" "conftest.in" >"conftest.tmp"
32261.84Schristos    mv "conftest.tmp" "conftest.in"
32271.84Schristos    cp "conftest.in" "conftest.nl"
32281.84Schristos    $as_echo 'GREP' >> "conftest.nl"
32291.84Schristos    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
32301.84Schristos    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
32311.84Schristos    as_fn_arith $ac_count + 1 && ac_count=$as_val
32321.84Schristos    if test $ac_count -gt ${ac_path_GREP_max-0}; then
32331.84Schristos      # Best one so far, save it but keep looking for a better one
32341.84Schristos      ac_cv_path_GREP="$ac_path_GREP"
32351.84Schristos      ac_path_GREP_max=$ac_count
32361.84Schristos    fi
32371.84Schristos    # 10*(2^10) chars as input seems more than enough
32381.84Schristos    test $ac_count -gt 10 && break
32391.84Schristos  done
32401.84Schristos  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
32411.84Schristosesac
32421.84Schristos
32431.84Schristos      $ac_path_GREP_found && break 3
32441.84Schristos    done
32451.84Schristos  done
32461.84Schristos  done
32471.84SchristosIFS=$as_save_IFS
32481.84Schristos  if test -z "$ac_cv_path_GREP"; then
32491.84Schristos    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
32501.84Schristos  fi
32511.84Schristoselse
32521.84Schristos  ac_cv_path_GREP=$GREP
32531.84Schristosfi
32541.84Schristos
32551.84Schristosfi
32561.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
32571.84Schristos$as_echo "$ac_cv_path_GREP" >&6; }
32581.84Schristos GREP="$ac_cv_path_GREP"
32591.84Schristos
32601.84Schristos
32611.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
32621.84Schristos$as_echo_n "checking for egrep... " >&6; }
32631.84Schristosif ${ac_cv_path_EGREP+:} false; then :
32641.84Schristos  $as_echo_n "(cached) " >&6
32651.84Schristoselse
32661.84Schristos  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
32671.84Schristos   then ac_cv_path_EGREP="$GREP -E"
32681.84Schristos   else
32691.84Schristos     if test -z "$EGREP"; then
32701.84Schristos  ac_path_EGREP_found=false
32711.84Schristos  # Loop through the user's path and test for each of PROGNAME-LIST
32721.84Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32731.84Schristosfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
32741.84Schristosdo
32751.84Schristos  IFS=$as_save_IFS
32761.84Schristos  test -z "$as_dir" && as_dir=.
32771.84Schristos    for ac_prog in egrep; do
32781.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
32791.84Schristos      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
32801.84Schristos      as_fn_executable_p "$ac_path_EGREP" || continue
32811.84Schristos# Check for GNU ac_path_EGREP and select it if it is found.
32821.84Schristos  # Check for GNU $ac_path_EGREP
32831.84Schristoscase `"$ac_path_EGREP" --version 2>&1` in
32841.84Schristos*GNU*)
32851.84Schristos  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
32861.84Schristos*)
32871.84Schristos  ac_count=0
32881.84Schristos  $as_echo_n 0123456789 >"conftest.in"
32891.84Schristos  while :
32901.84Schristos  do
32911.84Schristos    cat "conftest.in" "conftest.in" >"conftest.tmp"
32921.84Schristos    mv "conftest.tmp" "conftest.in"
32931.84Schristos    cp "conftest.in" "conftest.nl"
32941.84Schristos    $as_echo 'EGREP' >> "conftest.nl"
32951.84Schristos    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
32961.84Schristos    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
32971.84Schristos    as_fn_arith $ac_count + 1 && ac_count=$as_val
32981.84Schristos    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
32991.84Schristos      # Best one so far, save it but keep looking for a better one
33001.84Schristos      ac_cv_path_EGREP="$ac_path_EGREP"
33011.84Schristos      ac_path_EGREP_max=$ac_count
33021.84Schristos    fi
33031.84Schristos    # 10*(2^10) chars as input seems more than enough
33041.84Schristos    test $ac_count -gt 10 && break
33051.84Schristos  done
33061.84Schristos  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
33071.84Schristosesac
33081.84Schristos
33091.84Schristos      $ac_path_EGREP_found && break 3
33101.84Schristos    done
33111.84Schristos  done
33121.84Schristos  done
33131.84SchristosIFS=$as_save_IFS
33141.84Schristos  if test -z "$ac_cv_path_EGREP"; then
33151.84Schristos    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
33161.84Schristos  fi
33171.84Schristoselse
33181.84Schristos  ac_cv_path_EGREP=$EGREP
33191.84Schristosfi
33201.84Schristos
33211.84Schristos   fi
33221.84Schristosfi
33231.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
33241.84Schristos$as_echo "$ac_cv_path_EGREP" >&6; }
33251.84Schristos EGREP="$ac_cv_path_EGREP"
33261.84Schristos
33271.84Schristos
33281.101Slukem                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NetBSD" >&5
33291.84Schristos$as_echo_n "checking for NetBSD... " >&6; }
33301.84Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33311.84Schristos/* end confdefs.h.  */
33321.45Sjmc#ifdef __NetBSD__
33331.45Sjmc	yes
33341.45Sjmc	#endif
33351.45Sjmc
33361.45Sjmc_ACEOF
33371.45Sjmcif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33381.84Schristos  $EGREP "yes" >/dev/null 2>&1; then :
33391.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33401.84Schristos$as_echo "yes" >&6; }
33411.84Schristos
33421.84Schristos$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
33431.84Schristos
33441.74Schristos
33451.84Schristos$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
33461.74Schristos
33471.54Swiz
33481.84Schristos$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
33491.45Sjmc
33501.45Sjmcelse
33511.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33521.84Schristos$as_echo "no" >&6; }
33531.45Sjmcfi
33541.45Sjmcrm -f conftest*
33551.45Sjmc
33561.84Schristos
33571.45Sjmc# Extract the first word of "sh", so it can be a program name with args.
33581.45Sjmcset dummy sh; ac_word=$2
33591.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33601.84Schristos$as_echo_n "checking for $ac_word... " >&6; }
33611.84Schristosif ${ac_cv_path_BSHELL+:} false; then :
33621.84Schristos  $as_echo_n "(cached) " >&6
33631.45Sjmcelse
33641.45Sjmc  case $BSHELL in
33651.45Sjmc  [\\/]* | ?:[\\/]*)
33661.45Sjmc  ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
33671.45Sjmc  ;;
33681.45Sjmc  *)
33691.84Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33701.84Schristosfor as_dir in $PATH
33711.84Schristosdo
33721.84Schristos  IFS=$as_save_IFS
33731.84Schristos  test -z "$as_dir" && as_dir=.
33741.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
33751.84Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33761.84Schristos    ac_cv_path_BSHELL="$as_dir/$ac_word$ac_exec_ext"
33771.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33781.84Schristos    break 2
33791.84Schristos  fi
33801.65Schristosdone
33811.84Schristos  done
33821.84SchristosIFS=$as_save_IFS
33831.45Sjmc
33841.45Sjmc  ;;
33851.45Sjmcesac
33861.45Sjmcfi
33871.45SjmcBSHELL=$ac_cv_path_BSHELL
33881.45Sjmcif test -n "$BSHELL"; then
33891.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BSHELL" >&5
33901.84Schristos$as_echo "$BSHELL" >&6; }
33911.45Sjmcelse
33921.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33931.84Schristos$as_echo "no" >&6; }
33941.45Sjmcfi
33951.45Sjmc
33961.84Schristos
33971.45Sjmcif test x"$BSHELL" = x; then
33981.84Schristos	as_fn_error $? "sh must be somewhere on \$PATH" "$LINENO" 5
33991.45Sjmcfi
34001.54Swiz
34011.84Schristoscat >>confdefs.h <<_ACEOF
34021.45Sjmc#define PATH_BSHELL "$BSHELL"
34031.84Schristos_ACEOF
34041.84Schristos
34051.76Spooka
34061.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
34071.84Schristos$as_echo_n "checking for ANSI C header files... " >&6; }
34081.84Schristosif ${ac_cv_header_stdc+:} false; then :
34091.84Schristos  $as_echo_n "(cached) " >&6
34101.76Spookaelse
34111.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34121.84Schristos/* end confdefs.h.  */
34131.84Schristos#include <stdlib.h>
34141.84Schristos#include <stdarg.h>
34151.84Schristos#include <string.h>
34161.84Schristos#include <float.h>
34171.45Sjmc
34181.45Sjmcint
34191.45Sjmcmain ()
34201.45Sjmc{
34211.45Sjmc
34221.45Sjmc  ;
34231.45Sjmc  return 0;
34241.45Sjmc}
34251.45Sjmc_ACEOF
34261.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
34271.6Stv  ac_cv_header_stdc=yes
34281.6Stvelse
34291.66Stsutsui  ac_cv_header_stdc=no
34301.6Stvfi
34311.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34321.6Stv
34331.6Stvif test $ac_cv_header_stdc = yes; then
34341.6Stv  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
34351.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34361.84Schristos/* end confdefs.h.  */
34371.6Stv#include <string.h>
34381.6Stv
34391.6Stv_ACEOF
34401.6Stvif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34411.84Schristos  $EGREP "memchr" >/dev/null 2>&1; then :
34421.84Schristos
34431.6Stvelse
34441.6Stv  ac_cv_header_stdc=no
34451.6Stvfi
34461.6Stvrm -f conftest*
34471.6Stv
34481.6Stvfi
34491.6Stv
34501.6Stvif test $ac_cv_header_stdc = yes; then
34511.6Stv  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
34521.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34531.84Schristos/* end confdefs.h.  */
34541.6Stv#include <stdlib.h>
34551.6Stv
34561.6Stv_ACEOF
34571.6Stvif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34581.84Schristos  $EGREP "free" >/dev/null 2>&1; then :
34591.84Schristos
34601.6Stvelse
34611.6Stv  ac_cv_header_stdc=no
34621.6Stvfi
34631.6Stvrm -f conftest*
34641.6Stv
34651.6Stvfi
34661.6Stv
34671.6Stvif test $ac_cv_header_stdc = yes; then
34681.6Stv  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
34691.84Schristos  if test "$cross_compiling" = yes; then :
34701.6Stv  :
34711.6Stvelse
34721.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34731.84Schristos/* end confdefs.h.  */
34741.6Stv#include <ctype.h>
34751.84Schristos#include <stdlib.h>
34761.6Stv#if ((' ' & 0x0FF) == 0x020)
34771.6Stv# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
34781.6Stv# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
34791.6Stv#else
34801.84Schristos# define ISLOWER(c) \
34811.84Schristos		   (('a' <= (c) && (c) <= 'i') \
34821.84Schristos		     || ('j' <= (c) && (c) <= 'r') \
34831.84Schristos		     || ('s' <= (c) && (c) <= 'z'))
34841.6Stv# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
34851.6Stv#endif
34861.6Stv
34871.6Stv#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
34881.6Stvint
34891.6Stvmain ()
34901.6Stv{
34911.6Stv  int i;
34921.6Stv  for (i = 0; i < 256; i++)
34931.6Stv    if (XOR (islower (i), ISLOWER (i))
34941.84Schristos	|| toupper (i) != TOUPPER (i))
34951.84Schristos      return 2;
34961.84Schristos  return 0;
34971.6Stv}
34981.6Stv_ACEOF
34991.84Schristosif ac_fn_c_try_run "$LINENO"; then :
35001.84Schristos
35011.6Stvelse
35021.84Schristos  ac_cv_header_stdc=no
35031.6Stvfi
35041.84Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35051.84Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
35061.6Stvfi
35071.84Schristos
35081.6Stvfi
35091.6Stvfi
35101.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
35111.84Schristos$as_echo "$ac_cv_header_stdc" >&6; }
35121.6Stvif test $ac_cv_header_stdc = yes; then
35131.6Stv
35141.84Schristos$as_echo "#define STDC_HEADERS 1" >>confdefs.h
35151.6Stv
35161.6Stvfi
35171.6Stv
35181.84Schristos# On IRIX 5.3, sys/types and inttypes.h are conflicting.
35191.84Schristosfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
35201.84Schristos		  inttypes.h stdint.h unistd.h
35211.84Schristosdo :
35221.84Schristos  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35231.84Schristosac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
35241.84Schristos"
35251.84Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35261.84Schristos  cat >>confdefs.h <<_ACEOF
35271.84Schristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35281.61Schristos_ACEOF
35291.84Schristos
35301.74Schristosfi
35311.74Schristos
35321.84Schristosdone
35331.84Schristos
35341.84Schristos
35351.84Schristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
35361.84Schristos$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
35371.84Schristosif ${ac_cv_c_bigendian+:} false; then :
35381.84Schristos  $as_echo_n "(cached) " >&6
35391.52Sdbjelse
35401.84Schristos  ac_cv_c_bigendian=unknown
35411.84Schristos    # See if we're dealing with a universal compiler.
35421.84Schristos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35431.84Schristos/* end confdefs.h.  */
35441.84Schristos#ifndef __APPLE_CC__
35451.84Schristos	       not a universal capable compiler
35461.84Schristos	     #endif
35471.84Schristos	     typedef int dummy;
35481.84Schristos
35491.84Schristos_ACEOF
35501.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
35511.84Schristos
35521.84Schristos	# Check for potential -arch flags.  It is not universal unless
35531.84Schristos	# there are at least two -arch flags with different values.
35541.84Schristos	ac_arch=
35551.84Schristos	ac_prev=
35561.84Schristos	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
35571.84Schristos	 if test -n "$ac_prev"; then
35581.84Schristos	   case $ac_word in
35591.84Schristos	     i?86 | x86_64 | ppc | ppc64)
35601.84Schristos	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
35611.84Schristos		 ac_arch=$ac_word
35621.84Schristos	       else
35631.84Schristos		 ac_cv_c_bigendian=universal
35641.84Schristos		 break
35651.84Schristos	       fi
35661.84Schristos	       ;;
35671.84Schristos	   esac
35681.84Schristos	   ac_prev=
35691.84Schristos	 elif test "x$ac_word" = "x-arch"; then
35701.84Schristos	   ac_prev=arch
35711.84Schristos	 fi
35721.84Schristos       done
35731.84Schristosfi
35741.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35751.84Schristos    if test $ac_cv_c_bigendian = unknown; then
35761.84Schristos      # See if sys/param.h defines the BYTE_ORDER macro.
35771.84Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35781.84Schristos/* end confdefs.h.  */
35791.76Spooka#include <sys/types.h>
35801.84Schristos	     #include <sys/param.h>
35811.76Spooka
35821.76Spookaint
35831.76Spookamain ()
35841.76Spooka{
35851.84Schristos#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
35861.84Schristos		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
35871.84Schristos		     && LITTLE_ENDIAN)
35881.84Schristos	      bogus endian macros
35891.84Schristos	     #endif
35901.76Spooka
35911.76Spooka  ;
35921.76Spooka  return 0;
35931.76Spooka}
35941.76Spooka_ACEOF
35951.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
35961.84Schristos  # It does; now see whether it defined to BIG_ENDIAN or not.
35971.84Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35981.84Schristos/* end confdefs.h.  */
35991.84Schristos#include <sys/types.h>
36001.84Schristos		#include <sys/param.h>
36011.76Spooka
36021.76Spookaint
36031.76Spookamain ()
36041.76Spooka{
36051.84Schristos#if BYTE_ORDER != BIG_ENDIAN
36061.84Schristos		 not big endian
36071.84Schristos		#endif
36081.76Spooka
36091.76Spooka  ;
36101.76Spooka  return 0;
36111.76Spooka}
36121.76Spooka_ACEOF
36131.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
36141.84Schristos  ac_cv_c_bigendian=yes
36151.76Spookaelse
36161.84Schristos  ac_cv_c_bigendian=no
36171.76Spookafi
36181.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36191.76Spookafi
36201.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36211.84Schristos    fi
36221.84Schristos    if test $ac_cv_c_bigendian = unknown; then
36231.84Schristos      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
36241.84Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36251.84Schristos/* end confdefs.h.  */
36261.84Schristos#include <limits.h>
36271.76Spooka
36281.76Spookaint
36291.76Spookamain ()
36301.76Spooka{
36311.84Schristos#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
36321.84Schristos	      bogus endian macros
36331.84Schristos	     #endif
36341.76Spooka
36351.76Spooka  ;
36361.76Spooka  return 0;
36371.76Spooka}
36381.76Spooka_ACEOF
36391.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
36401.84Schristos  # It does; now see whether it defined to _BIG_ENDIAN or not.
36411.84Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36421.84Schristos/* end confdefs.h.  */
36431.84Schristos#include <limits.h>
36441.76Spooka
36451.76Spookaint
36461.76Spookamain ()
36471.76Spooka{
36481.84Schristos#ifndef _BIG_ENDIAN
36491.84Schristos		 not big endian
36501.84Schristos		#endif
36511.84Schristos
36521.76Spooka  ;
36531.76Spooka  return 0;
36541.76Spooka}
36551.76Spooka_ACEOF
36561.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
36571.84Schristos  ac_cv_c_bigendian=yes
36581.76Spookaelse
36591.84Schristos  ac_cv_c_bigendian=no
36601.76Spookafi
36611.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36621.76Spookafi
36631.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36641.84Schristos    fi
36651.84Schristos    if test $ac_cv_c_bigendian = unknown; then
36661.84Schristos      # Compile a test program.
36671.84Schristos      if test "$cross_compiling" = yes; then :
36681.84Schristos  # Try to guess by grepping values from an object file.
36691.84Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36701.84Schristos/* end confdefs.h.  */
36711.84Schristosshort int ascii_mm[] =
36721.84Schristos		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
36731.84Schristos		short int ascii_ii[] =
36741.84Schristos		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
36751.84Schristos		int use_ascii (int i) {
36761.84Schristos		  return ascii_mm[i] + ascii_ii[i];
36771.84Schristos		}
36781.84Schristos		short int ebcdic_ii[] =
36791.84Schristos		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
36801.84Schristos		short int ebcdic_mm[] =
36811.84Schristos		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
36821.84Schristos		int use_ebcdic (int i) {
36831.84Schristos		  return ebcdic_mm[i] + ebcdic_ii[i];
36841.84Schristos		}
36851.84Schristos		extern int foo;
36861.76Spooka
36871.76Spookaint
36881.76Spookamain ()
36891.76Spooka{
36901.84Schristosreturn use_ascii (foo) == use_ebcdic (foo);
36911.76Spooka  ;
36921.76Spooka  return 0;
36931.76Spooka}
36941.76Spooka_ACEOF
36951.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
36961.84Schristos  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
36971.84Schristos	      ac_cv_c_bigendian=yes
36981.84Schristos	    fi
36991.84Schristos	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
37001.84Schristos	      if test "$ac_cv_c_bigendian" = unknown; then
37011.84Schristos		ac_cv_c_bigendian=no
37021.84Schristos	      else
37031.84Schristos		# finding both strings is unlikely to happen, but who knows?
37041.84Schristos		ac_cv_c_bigendian=unknown
37051.84Schristos	      fi
37061.84Schristos	    fi
37071.76Spookafi
37081.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37091.76Spookaelse
37101.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37111.84Schristos/* end confdefs.h.  */
37121.84Schristos$ac_includes_default
37131.76Spookaint
37141.76Spookamain ()
37151.76Spooka{
37161.84Schristos
37171.84Schristos	     /* Are we little or big endian?  From Harbison&Steele.  */
37181.84Schristos	     union
37191.84Schristos	     {
37201.84Schristos	       long int l;
37211.84Schristos	       char c[sizeof (long int)];
37221.84Schristos	     } u;
37231.84Schristos	     u.l = 1;
37241.84Schristos	     return u.c[sizeof (long int) - 1] == 1;
37251.76Spooka
37261.76Spooka  ;
37271.76Spooka  return 0;
37281.76Spooka}
37291.76Spooka_ACEOF
37301.84Schristosif ac_fn_c_try_run "$LINENO"; then :
37311.84Schristos  ac_cv_c_bigendian=no
37321.76Spookaelse
37331.84Schristos  ac_cv_c_bigendian=yes
37341.76Spookafi
37351.84Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37361.84Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
37371.76Spookafi
37381.76Spooka
37391.84Schristos    fi
37401.76Spookafi
37411.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
37421.84Schristos$as_echo "$ac_cv_c_bigendian" >&6; }
37431.84Schristos case $ac_cv_c_bigendian in #(
37441.84Schristos   yes)
37451.84Schristos     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
37461.84Schristos;; #(
37471.84Schristos   no)
37481.84Schristos      ;; #(
37491.84Schristos   universal)
37501.84Schristos
37511.84Schristos$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
37521.84Schristos
37531.84Schristos     ;; #(
37541.84Schristos   *)
37551.84Schristos     as_fn_error $? "unknown endianness
37561.84Schristos presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
37571.84Schristos esac
37581.84Schristos
37591.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
37601.84Schristos$as_echo_n "checking for ANSI C header files... " >&6; }
37611.84Schristosif ${ac_cv_header_stdc+:} false; then :
37621.84Schristos  $as_echo_n "(cached) " >&6
37631.76Spookaelse
37641.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37651.84Schristos/* end confdefs.h.  */
37661.84Schristos#include <stdlib.h>
37671.84Schristos#include <stdarg.h>
37681.84Schristos#include <string.h>
37691.84Schristos#include <float.h>
37701.76Spooka
37711.76Spookaint
37721.76Spookamain ()
37731.76Spooka{
37741.84Schristos
37751.84Schristos  ;
37761.84Schristos  return 0;
37771.76Spooka}
37781.76Spooka_ACEOF
37791.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
37801.84Schristos  ac_cv_header_stdc=yes
37811.76Spookaelse
37821.84Schristos  ac_cv_header_stdc=no
37831.76Spookafi
37841.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37851.76Spooka
37861.84Schristosif test $ac_cv_header_stdc = yes; then
37871.84Schristos  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
37881.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37891.84Schristos/* end confdefs.h.  */
37901.84Schristos#include <string.h>
37911.76Spooka
37921.84Schristos_ACEOF
37931.84Schristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37941.84Schristos  $EGREP "memchr" >/dev/null 2>&1; then :
37951.76Spooka
37961.76Spookaelse
37971.84Schristos  ac_cv_header_stdc=no
37981.76Spookafi
37991.84Schristosrm -f conftest*
38001.76Spooka
38011.76Spookafi
38021.76Spooka
38031.84Schristosif test $ac_cv_header_stdc = yes; then
38041.84Schristos  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
38051.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38061.84Schristos/* end confdefs.h.  */
38071.84Schristos#include <stdlib.h>
38081.76Spooka
38091.84Schristos_ACEOF
38101.84Schristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38111.84Schristos  $EGREP "free" >/dev/null 2>&1; then :
38121.76Spooka
38131.76Spookaelse
38141.84Schristos  ac_cv_header_stdc=no
38151.76Spookafi
38161.84Schristosrm -f conftest*
38171.84Schristos
38181.76Spookafi
38191.76Spooka
38201.84Schristosif test $ac_cv_header_stdc = yes; then
38211.84Schristos  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
38221.84Schristos  if test "$cross_compiling" = yes; then :
38231.84Schristos  :
38241.76Spookaelse
38251.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38261.84Schristos/* end confdefs.h.  */
38271.84Schristos#include <ctype.h>
38281.84Schristos#include <stdlib.h>
38291.84Schristos#if ((' ' & 0x0FF) == 0x020)
38301.84Schristos# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
38311.84Schristos# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
38321.84Schristos#else
38331.84Schristos# define ISLOWER(c) \
38341.84Schristos		   (('a' <= (c) && (c) <= 'i') \
38351.84Schristos		     || ('j' <= (c) && (c) <= 'r') \
38361.84Schristos		     || ('s' <= (c) && (c) <= 'z'))
38371.84Schristos# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
38381.84Schristos#endif
38391.76Spooka
38401.84Schristos#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
38411.76Spookaint
38421.76Spookamain ()
38431.76Spooka{
38441.84Schristos  int i;
38451.84Schristos  for (i = 0; i < 256; i++)
38461.84Schristos    if (XOR (islower (i), ISLOWER (i))
38471.84Schristos	|| toupper (i) != TOUPPER (i))
38481.84Schristos      return 2;
38491.76Spooka  return 0;
38501.76Spooka}
38511.76Spooka_ACEOF
38521.84Schristosif ac_fn_c_try_run "$LINENO"; then :
38531.84Schristos
38541.76Spookaelse
38551.84Schristos  ac_cv_header_stdc=no
38561.76Spookafi
38571.84Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38581.84Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
38591.76Spookafi
38601.76Spooka
38611.84Schristosfi
38621.84Schristosfi
38631.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
38641.84Schristos$as_echo "$ac_cv_header_stdc" >&6; }
38651.84Schristosif test $ac_cv_header_stdc = yes; then
38661.76Spooka
38671.84Schristos$as_echo "#define STDC_HEADERS 1" >>confdefs.h
38681.76Spooka
38691.76Spookafi
38701.76Spooka
38711.76Spooka
38721.84Schristos# Confirm existence of zlib.  (This is available as a default install
38731.84Schristos# option on many OS's; this could be added as a reachover build in the
38741.84Schristos# future.)
38751.84Schristosac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
38761.84Schristosif test "x$ac_cv_header_zlib_h" = xyes; then :
38771.76Spooka
38781.76Spookaelse
38791.84Schristos  as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5
38801.76Spookafi
38811.76Spooka
38821.76Spooka
38831.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
38841.84Schristos$as_echo_n "checking for gzdopen in -lz... " >&6; }
38851.84Schristosif ${ac_cv_lib_z_gzdopen+:} false; then :
38861.84Schristos  $as_echo_n "(cached) " >&6
38871.76Spookaelse
38881.84Schristos  ac_check_lib_save_LIBS=$LIBS
38891.84SchristosLIBS="-lz  $LIBS"
38901.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
38911.84Schristos/* end confdefs.h.  */
38921.76Spooka
38931.84Schristos/* Override any GCC internal prototype to avoid an error.
38941.84Schristos   Use char because int might match the return type of a GCC
38951.84Schristos   builtin and then its argument prototype would still apply.  */
38961.84Schristos#ifdef __cplusplus
38971.84Schristosextern "C"
38981.84Schristos#endif
38991.84Schristoschar gzdopen ();
39001.76Spookaint
39011.76Spookamain ()
39021.76Spooka{
39031.84Schristosreturn gzdopen ();
39041.76Spooka  ;
39051.76Spooka  return 0;
39061.76Spooka}
39071.76Spooka_ACEOF
39081.84Schristosif ac_fn_c_try_link "$LINENO"; then :
39091.84Schristos  ac_cv_lib_z_gzdopen=yes
39101.76Spookaelse
39111.84Schristos  ac_cv_lib_z_gzdopen=no
39121.76Spookafi
39131.84Schristosrm -f core conftest.err conftest.$ac_objext \
39141.84Schristos    conftest$ac_exeext conftest.$ac_ext
39151.84SchristosLIBS=$ac_check_lib_save_LIBS
39161.76Spookafi
39171.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
39181.84Schristos$as_echo "$ac_cv_lib_z_gzdopen" >&6; }
39191.84Schristosif test "x$ac_cv_lib_z_gzdopen" = xyes; then :
39201.84Schristos  cat >>confdefs.h <<_ACEOF
39211.84Schristos#define HAVE_LIBZ 1
39221.84Schristos_ACEOF
39231.76Spooka
39241.84Schristos  LIBS="-lz $LIBS"
39251.76Spooka
39261.76Spookaelse
39271.84Schristos  as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5
39281.76Spookafi
39291.76Spooka
39301.76Spooka
39311.84Schristos# Make sure certain required headers are available.
39321.84Schristos# These are not necessarily required by the code, but they are not
39331.84Schristos# currently conditionalized.
39341.84Schristosfor ac_header in sys/ioctl.h sys/mman.h sys/param.h \
39351.84Schristos	sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
39361.84Schristos	sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
39371.84Schristos	netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
39381.84Schristos	termios.h unistd.h
39391.84Schristosdo :
39401.84Schristos  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39411.84Schristosac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39421.84Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39431.84Schristos  cat >>confdefs.h <<_ACEOF
39441.84Schristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39451.84Schristos_ACEOF
39461.76Spooka
39471.76Spookaelse
39481.84Schristos  as_fn_error $? "standard system header file not found" "$LINENO" 5
39491.76Spookafi
39501.76Spooka
39511.84Schristosdone
39521.76Spooka
39531.76Spooka
39541.84Schristos# Find headers that may not be available.
39551.84Schristosac_header_dirent=no
39561.84Schristosfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
39571.84Schristos  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
39581.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
39591.84Schristos$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
39601.84Schristosif eval \${$as_ac_Header+:} false; then :
39611.84Schristos  $as_echo_n "(cached) " >&6
39621.76Spookaelse
39631.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39641.84Schristos/* end confdefs.h.  */
39651.84Schristos#include <sys/types.h>
39661.84Schristos#include <$ac_hdr>
39671.76Spooka
39681.76Spookaint
39691.76Spookamain ()
39701.76Spooka{
39711.84Schristosif ((DIR *) 0)
39721.84Schristosreturn 0;
39731.76Spooka  ;
39741.76Spooka  return 0;
39751.76Spooka}
39761.76Spooka_ACEOF
39771.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
39781.84Schristos  eval "$as_ac_Header=yes"
39791.76Spookaelse
39801.84Schristos  eval "$as_ac_Header=no"
39811.76Spookafi
39821.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39831.76Spookafi
39841.84Schristoseval ac_res=\$$as_ac_Header
39851.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39861.84Schristos$as_echo "$ac_res" >&6; }
39871.84Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39881.84Schristos  cat >>confdefs.h <<_ACEOF
39891.84Schristos#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
39901.84Schristos_ACEOF
39911.74Schristos
39921.84Schristosac_header_dirent=$ac_hdr; break
39931.76Spookafi
39941.66Stsutsui
39951.84Schristosdone
39961.84Schristos# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
39971.84Schristosif test $ac_header_dirent = dirent.h; then
39981.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
39991.84Schristos$as_echo_n "checking for library containing opendir... " >&6; }
40001.84Schristosif ${ac_cv_search_opendir+:} false; then :
40011.84Schristos  $as_echo_n "(cached) " >&6
40021.66Stsutsuielse
40031.84Schristos  ac_func_search_save_LIBS=$LIBS
40041.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
40051.84Schristos/* end confdefs.h.  */
40061.76Spooka
40071.84Schristos/* Override any GCC internal prototype to avoid an error.
40081.84Schristos   Use char because int might match the return type of a GCC
40091.84Schristos   builtin and then its argument prototype would still apply.  */
40101.84Schristos#ifdef __cplusplus
40111.84Schristosextern "C"
40121.84Schristos#endif
40131.84Schristoschar opendir ();
40141.76Spookaint
40151.76Spookamain ()
40161.76Spooka{
40171.84Schristosreturn opendir ();
40181.76Spooka  ;
40191.76Spooka  return 0;
40201.76Spooka}
40211.6Stv_ACEOF
40221.84Schristosfor ac_lib in '' dir; do
40231.84Schristos  if test -z "$ac_lib"; then
40241.84Schristos    ac_res="none required"
40251.84Schristos  else
40261.84Schristos    ac_res=-l$ac_lib
40271.84Schristos    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40281.84Schristos  fi
40291.84Schristos  if ac_fn_c_try_link "$LINENO"; then :
40301.84Schristos  ac_cv_search_opendir=$ac_res
40311.84Schristosfi
40321.84Schristosrm -f core conftest.err conftest.$ac_objext \
40331.84Schristos    conftest$ac_exeext
40341.84Schristos  if ${ac_cv_search_opendir+:} false; then :
40351.84Schristos  break
40361.84Schristosfi
40371.84Schristosdone
40381.84Schristosif ${ac_cv_search_opendir+:} false; then :
40391.84Schristos
40401.76Spookaelse
40411.84Schristos  ac_cv_search_opendir=no
40421.76Spookafi
40431.84Schristosrm conftest.$ac_ext
40441.84SchristosLIBS=$ac_func_search_save_LIBS
40451.6Stvfi
40461.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
40471.84Schristos$as_echo "$ac_cv_search_opendir" >&6; }
40481.84Schristosac_res=$ac_cv_search_opendir
40491.84Schristosif test "$ac_res" != no; then :
40501.84Schristos  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40511.6Stv
40521.84Schristosfi
40531.38Sfredb
40541.76Spookaelse
40551.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
40561.84Schristos$as_echo_n "checking for library containing opendir... " >&6; }
40571.84Schristosif ${ac_cv_search_opendir+:} false; then :
40581.84Schristos  $as_echo_n "(cached) " >&6
40591.80Sapbelse
40601.84Schristos  ac_func_search_save_LIBS=$LIBS
40611.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
40621.84Schristos/* end confdefs.h.  */
40631.80Sapb
40641.84Schristos/* Override any GCC internal prototype to avoid an error.
40651.84Schristos   Use char because int might match the return type of a GCC
40661.84Schristos   builtin and then its argument prototype would still apply.  */
40671.84Schristos#ifdef __cplusplus
40681.84Schristosextern "C"
40691.84Schristos#endif
40701.84Schristoschar opendir ();
40711.80Sapbint
40721.80Sapbmain ()
40731.80Sapb{
40741.84Schristosreturn opendir ();
40751.80Sapb  ;
40761.80Sapb  return 0;
40771.80Sapb}
40781.80Sapb_ACEOF
40791.84Schristosfor ac_lib in '' x; do
40801.84Schristos  if test -z "$ac_lib"; then
40811.84Schristos    ac_res="none required"
40821.84Schristos  else
40831.84Schristos    ac_res=-l$ac_lib
40841.84Schristos    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40851.84Schristos  fi
40861.84Schristos  if ac_fn_c_try_link "$LINENO"; then :
40871.84Schristos  ac_cv_search_opendir=$ac_res
40881.84Schristosfi
40891.84Schristosrm -f core conftest.err conftest.$ac_objext \
40901.84Schristos    conftest$ac_exeext
40911.84Schristos  if ${ac_cv_search_opendir+:} false; then :
40921.84Schristos  break
40931.84Schristosfi
40941.84Schristosdone
40951.84Schristosif ${ac_cv_search_opendir+:} false; then :
40961.84Schristos
40971.80Sapbelse
40981.84Schristos  ac_cv_search_opendir=no
40991.80Sapbfi
41001.84Schristosrm conftest.$ac_ext
41011.84SchristosLIBS=$ac_func_search_save_LIBS
41021.84Schristosfi
41031.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
41041.84Schristos$as_echo "$ac_cv_search_opendir" >&6; }
41051.84Schristosac_res=$ac_cv_search_opendir
41061.84Schristosif test "$ac_res" != no; then :
41071.84Schristos  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
41081.84Schristos
41091.80Sapbfi
41101.80Sapb
41111.84Schristosfi
41121.80Sapb
41131.87Schristosfor ac_header in sys/mtio.h sys/sysmacros.h sys/syslimits.h stdio_ext.h \
41141.96Shannken	getopt.h features.h malloc.h sys/poll.h pthread.h stddef.h sys/uio.h
41151.84Schristosdo :
41161.84Schristos  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41171.84Schristosac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
41181.84Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41191.84Schristos  cat >>confdefs.h <<_ACEOF
41201.84Schristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41211.84Schristos_ACEOF
41221.80Sapb
41231.80Sapbfi
41241.45Sjmc
41251.84Schristosdone
41261.84Schristos
41271.84Schristosfor ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
41281.84Schristos	sys/endian.h sys/featuretest.h err.h inttypes.h libgen.h paths.h \
41291.86Schristos	libgen.h stdint.h util.h resolv.h arpa/nameser.h
41301.84Schristosdo :
41311.84Schristos  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41321.84Schristosac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
41331.84Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41341.84Schristos  cat >>confdefs.h <<_ACEOF
41351.84Schristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41361.84Schristos_ACEOF
41371.84Schristos
41381.76Spookaelse
41391.84Schristos  test -f include/$ac_header || touch include/$ac_header
41401.84Schristosfi
41411.7Stv
41421.84Schristosdone
41431.7Stv
41441.96Shannkenfor ac_header in rpc/types.h
41451.84Schristosdo :
41461.96Shannken  ac_fn_c_check_header_mongrel "$LINENO" "rpc/types.h" "ac_cv_header_rpc_types_h" "$ac_includes_default"
41471.96Shannkenif test "x$ac_cv_header_rpc_types_h" = xyes; then :
41481.96Shannken  cat >>confdefs.h <<_ACEOF
41491.96Shannken#define HAVE_RPC_TYPES_H 1
41501.96Shannken_ACEOF
41511.96Shannken
41521.96Shannkenelse
41531.96Shannken  echo '#include "nbtool_config.h"' >include/$ac_header.new
41541.96Shannken	echo '#include "'$srcdir/../../common/include/$ac_header'"' \
41551.96Shannken		>>include/$ac_header.new
41561.96Shannken	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
41571.96Shannken		rm -f include/$ac_header.new
41581.96Shannken	else
41591.96Shannken		mv -f include/$ac_header.new include/$ac_header
41601.96Shannken	fi
41611.96Shannkenfi
41621.96Shannken
41631.96Shannkendone
41641.96Shannken
41651.96Shannkenfor ac_header in netconfig.h
41661.96Shannkendo :
41671.96Shannken  ac_fn_c_check_header_mongrel "$LINENO" "netconfig.h" "ac_cv_header_netconfig_h" "$ac_includes_default"
41681.96Shannkenif test "x$ac_cv_header_netconfig_h" = xyes; then :
41691.84Schristos  cat >>confdefs.h <<_ACEOF
41701.96Shannken#define HAVE_NETCONFIG_H 1
41711.76Spooka_ACEOF
41721.84Schristos
41731.76Spookaelse
41741.84Schristos  echo '#include "nbtool_config.h"' >include/$ac_header.new
41751.84Schristos	echo '#include "'$srcdir/../../include/$ac_header'"' \
41761.84Schristos		>>include/$ac_header.new
41771.84Schristos	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
41781.84Schristos		rm -f include/$ac_header.new
41791.84Schristos	else
41801.84Schristos		mv -f include/$ac_header.new include/$ac_header
41811.84Schristos	fi
41821.76Spookafi
41831.35Sthorpej
41841.84Schristosdone
41851.84Schristos
41861.84Schristos
41871.84Schristos# Typedefs.
41881.84Schristosac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
41891.84Schristosif test "x$ac_cv_type_size_t" = xyes; then :
41901.9Stv
41911.76Spookaelse
41921.84Schristos
41931.84Schristoscat >>confdefs.h <<_ACEOF
41941.84Schristos#define size_t unsigned int
41951.84Schristos_ACEOF
41961.9Stv
41971.63Sapbfi
41981.65Schristos
41991.84Schristosac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
42001.84Schristosif test "x$ac_cv_type_id_t" = xyes; then :
42011.84Schristos
42021.84Schristoscat >>confdefs.h <<_ACEOF
42031.84Schristos#define HAVE_ID_T 1
42041.84Schristos_ACEOF
42051.76Spooka
42061.63Sapb
42071.84Schristosfi
42081.84Schristosac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
42091.84Schristosif test "x$ac_cv_type_long_long" = xyes; then :
42101.63Sapb
42111.84Schristoscat >>confdefs.h <<_ACEOF
42121.84Schristos#define HAVE_LONG_LONG 1
42131.76Spooka_ACEOF
42141.84Schristos
42151.84Schristos
42161.63Sapbfi
42171.84Schristosac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
42181.84Schristosif test "x$ac_cv_type_u_long" = xyes; then :
42191.84Schristos
42201.84Schristoscat >>confdefs.h <<_ACEOF
42211.84Schristos#define HAVE_U_LONG 1
42221.84Schristos_ACEOF
42231.84Schristos
42241.84Schristos
42251.76Spookafi
42261.84Schristosac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
42271.84Schristosif test "x$ac_cv_type_u_char" = xyes; then :
42281.74Schristos
42291.84Schristoscat >>confdefs.h <<_ACEOF
42301.84Schristos#define HAVE_U_CHAR 1
42311.84Schristos_ACEOF
42321.65Schristos
42331.65Schristos
42341.74Schristosfi
42351.84Schristosac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default"
42361.84Schristosif test "x$ac_cv_type_u_short" = xyes; then :
42371.84Schristos
42381.84Schristoscat >>confdefs.h <<_ACEOF
42391.84Schristos#define HAVE_U_SHORT 1
42401.84Schristos_ACEOF
42411.63Sapb
42421.74Schristos
42431.84Schristosfi
42441.84Schristosac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
42451.84Schristosif test "x$ac_cv_type_u_int" = xyes; then :
42461.74Schristos
42471.84Schristoscat >>confdefs.h <<_ACEOF
42481.84Schristos#define HAVE_U_INT 1
42491.76Spooka_ACEOF
42501.84Schristos
42511.84Schristos
42521.76Spookafi
42531.84Schristosac_fn_c_check_type "$LINENO" "u_quad_t" "ac_cv_type_u_quad_t" "$ac_includes_default"
42541.84Schristosif test "x$ac_cv_type_u_quad_t" = xyes; then :
42551.65Schristos
42561.84Schristoscat >>confdefs.h <<_ACEOF
42571.84Schristos#define HAVE_U_QUAD_T 1
42581.84Schristos_ACEOF
42591.53Sdogcow
42601.40Satatat
42611.40Satatatfi
42621.63Sapb
42631.95Skamilac_fn_c_check_type "$LINENO" "uchar_t" "ac_cv_type_uchar_t" "$ac_includes_default"
42641.95Skamilif test "x$ac_cv_type_uchar_t" = xyes; then :
42651.95Skamil
42661.95Skamilcat >>confdefs.h <<_ACEOF
42671.95Skamil#define HAVE_UCHAR_T 1
42681.95Skamil_ACEOF
42691.95Skamil
42701.95Skamil
42711.95Skamilfi
42721.95Skamilac_fn_c_check_type "$LINENO" "ushort_t" "ac_cv_type_ushort_t" "$ac_includes_default"
42731.95Skamilif test "x$ac_cv_type_ushort_t" = xyes; then :
42741.95Skamil
42751.95Skamilcat >>confdefs.h <<_ACEOF
42761.95Skamil#define HAVE_USHORT_T 1
42771.95Skamil_ACEOF
42781.95Skamil
42791.95Skamil
42801.95Skamilfi
42811.95Skamilac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
42821.95Skamilif test "x$ac_cv_type_uint_t" = xyes; then :
42831.95Skamil
42841.95Skamilcat >>confdefs.h <<_ACEOF
42851.95Skamil#define HAVE_UINT_T 1
42861.95Skamil_ACEOF
42871.95Skamil
42881.95Skamil
42891.95Skamilfi
42901.95Skamilac_fn_c_check_type "$LINENO" "ulong_t" "ac_cv_type_ulong_t" "$ac_includes_default"
42911.95Skamilif test "x$ac_cv_type_ulong_t" = xyes; then :
42921.95Skamil
42931.95Skamilcat >>confdefs.h <<_ACEOF
42941.95Skamil#define HAVE_ULONG_T 1
42951.95Skamil_ACEOF
42961.95Skamil
42971.95Skamil
42981.95Skamilfi
42991.95Skamil
43001.84Schristosac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
43011.84Schristos#ifdef HAVE_RPC_TYPES_H
43021.84Schristos#include <rpc/types.h>
43031.84Schristos#endif
43041.84Schristos#include <sys/socket.h>
43051.84Schristos"
43061.84Schristosif test "x$ac_cv_type_socklen_t" = xyes; then :
43071.65Schristos
43081.84Schristos$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
43091.65Schristos
43101.63Sapbfi
43111.65Schristos
43121.65Schristos
43131.94Skamil{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for enum uio_rw" >&5
43141.94Skamil$as_echo_n "checking for enum uio_rw... " >&6; }
43151.94Skamilcat confdefs.h - <<_ACEOF >conftest.$ac_ext
43161.94Skamil/* end confdefs.h.  */
43171.94Skamil
43181.94Skamil#include <sys/types.h>
43191.94Skamil#ifdef HAVE_SYS_UIO_H
43201.94Skamil#include <sys/uio.h>
43211.94Skamil#endif
43221.94Skamilint
43231.94Skamilmain ()
43241.94Skamil{
43251.94Skamilenum uio_rw rw;
43261.94Skamil  ;
43271.94Skamil  return 0;
43281.94Skamil}
43291.94Skamil_ACEOF
43301.94Skamilif ac_fn_c_try_compile "$LINENO"; then :
43311.98Suwe  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43321.98Suwe$as_echo "yes" >&6; }
43331.94Skamil
43341.94Skamil$as_echo "#define HAVE_ENUM_UIO_RW 1" >>confdefs.h
43351.94Skamil
43361.98Suweelse
43371.98Suwe  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43381.98Suwe$as_echo "no" >&6; }
43391.94Skamilfi
43401.94Skamilrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43411.94Skamil
43421.94Skamil{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for enum uio_seg" >&5
43431.94Skamil$as_echo_n "checking for enum uio_seg... " >&6; }
43441.94Skamilcat confdefs.h - <<_ACEOF >conftest.$ac_ext
43451.94Skamil/* end confdefs.h.  */
43461.94Skamil
43471.94Skamil#include <sys/types.h>
43481.94Skamil#ifdef HAVE_SYS_UIO_H
43491.94Skamil#include <sys/uio.h>
43501.94Skamil#endif
43511.94Skamilint
43521.94Skamilmain ()
43531.94Skamil{
43541.94Skamilenum uio_seg seg;
43551.94Skamil  ;
43561.94Skamil  return 0;
43571.94Skamil}
43581.94Skamil_ACEOF
43591.94Skamilif ac_fn_c_try_compile "$LINENO"; then :
43601.98Suwe  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43611.98Suwe$as_echo "yes" >&6; }
43621.94Skamil
43631.94Skamil$as_echo "#define HAVE_ENUM_UIO_SEG 1" >>confdefs.h
43641.94Skamil
43651.98Suweelse
43661.98Suwe  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43671.98Suwe$as_echo "no" >&6; }
43681.94Skamilfi
43691.94Skamilrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43701.94Skamil
43711.60Sapb
43721.84Schristos	ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
43731.84Schristosif test "x$ac_cv_type_uint8_t" = xyes; then :
43741.84Schristos
43751.81Schristoselse
43761.81Schristos
43771.84Schristos		ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
43781.84Schristosif test "x$ac_cv_type_u_int8_t" = xyes; then :
43791.81Schristos
43801.84Schristos$as_echo "#define uint8_t u_int8_t" >>confdefs.h
43811.81Schristos
43821.81Schristoselse
43831.84Schristos  as_fn_error $? "cannot find a suitable type for uint8_t" "$LINENO" 5
43841.81Schristosfi
43851.84Schristos
43861.84Schristos
43871.81Schristosfi
43881.81Schristos
43891.84Schristos	ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
43901.84Schristosif test "x$ac_cv_type_u_int8_t" = xyes; then :
43911.81Schristos
43921.81Schristoselse
43931.81Schristos
43941.84Schristos		ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
43951.84Schristosif test "x$ac_cv_type_uint8_t" = xyes; then :
43961.81Schristos
43971.84Schristos$as_echo "#define u_int8_t uint8_t" >>confdefs.h
43981.81Schristos
43991.81Schristoselse
44001.84Schristos  as_fn_error $? "cannot find a suitable type for u_int8_t" "$LINENO" 5
44011.81Schristosfi
44021.84Schristos
44031.84Schristos
44041.81Schristosfi
44051.81Schristos
44061.107Shans	ac_fn_c_check_type "$LINENO" "__uint8_t" "ac_cv_type___uint8_t" "$ac_includes_default"
44071.107Shansif test "x$ac_cv_type___uint8_t" = xyes; then :
44081.107Shans
44091.107Shanselse
44101.107Shans
44111.107Shans		ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
44121.107Shansif test "x$ac_cv_type_uint8_t" = xyes; then :
44131.107Shans
44141.107Shans$as_echo "#define __uint8_t uint8_t" >>confdefs.h
44151.107Shans
44161.107Shanselse
44171.107Shans  ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
44181.107Shansif test "x$ac_cv_type_u_int8_t" = xyes; then :
44191.107Shans
44201.107Shans$as_echo "#define uint8_t u_int8_t" >>confdefs.h
44211.107Shans
44221.107Shanselse
44231.107Shans  as_fn_error $? "cannot find a suitable type for __uint8_t" "$LINENO" 5
44241.107Shansfi
44251.107Shans
44261.107Shansfi
44271.107Shans
44281.107Shans
44291.107Shansfi
44301.107Shans
44311.107Shans	ac_fn_c_check_type "$LINENO" "__int8_t" "ac_cv_type___int8_t" "$ac_includes_default"
44321.107Shansif test "x$ac_cv_type___int8_t" = xyes; then :
44331.107Shans
44341.107Shanselse
44351.107Shans
44361.107Shans		ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
44371.107Shansif test "x$ac_cv_type_int8_t" = xyes; then :
44381.107Shans
44391.107Shans$as_echo "#define __int8_t int8_t" >>confdefs.h
44401.107Shans
44411.107Shanselse
44421.107Shans  as_fn_error $? "cannot find a suitable type for __int8_t" "$LINENO" 5
44431.107Shansfi
44441.107Shans
44451.107Shans
44461.107Shansfi
44471.107Shans
44481.81Schristos
44491.84Schristos	ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
44501.84Schristosif test "x$ac_cv_type_uint16_t" = xyes; then :
44511.84Schristos
44521.81Schristoselse
44531.81Schristos
44541.84Schristos		ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
44551.84Schristosif test "x$ac_cv_type_u_int16_t" = xyes; then :
44561.81Schristos
44571.84Schristos$as_echo "#define uint16_t u_int16_t" >>confdefs.h
44581.81Schristos
44591.81Schristoselse
44601.84Schristos  as_fn_error $? "cannot find a suitable type for uint16_t" "$LINENO" 5
44611.81Schristosfi
44621.84Schristos
44631.84Schristos
44641.81Schristosfi
44651.81Schristos
44661.84Schristos	ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
44671.84Schristosif test "x$ac_cv_type_u_int16_t" = xyes; then :
44681.81Schristos
44691.81Schristoselse
44701.81Schristos
44711.84Schristos		ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
44721.84Schristosif test "x$ac_cv_type_uint16_t" = xyes; then :
44731.81Schristos
44741.84Schristos$as_echo "#define u_int16_t uint16_t" >>confdefs.h
44751.81Schristos
44761.81Schristoselse
44771.84Schristos  as_fn_error $? "cannot find a suitable type for u_int16_t" "$LINENO" 5
44781.81Schristosfi
44791.84Schristos
44801.84Schristos
44811.81Schristosfi
44821.81Schristos
44831.107Shans	ac_fn_c_check_type "$LINENO" "__uint16_t" "ac_cv_type___uint16_t" "$ac_includes_default"
44841.107Shansif test "x$ac_cv_type___uint16_t" = xyes; then :
44851.107Shans
44861.107Shanselse
44871.107Shans
44881.107Shans		ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
44891.107Shansif test "x$ac_cv_type_uint16_t" = xyes; then :
44901.107Shans
44911.107Shans$as_echo "#define __uint16_t uint16_t" >>confdefs.h
44921.107Shans
44931.107Shanselse
44941.107Shans  ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
44951.107Shansif test "x$ac_cv_type_u_int16_t" = xyes; then :
44961.107Shans
44971.107Shans$as_echo "#define uint16_t u_int16_t" >>confdefs.h
44981.107Shans
44991.107Shanselse
45001.107Shans  as_fn_error $? "cannot find a suitable type for __uint16_t" "$LINENO" 5
45011.107Shansfi
45021.107Shans
45031.107Shansfi
45041.107Shans
45051.107Shans
45061.107Shansfi
45071.107Shans
45081.107Shans	ac_fn_c_check_type "$LINENO" "__int16_t" "ac_cv_type___int16_t" "$ac_includes_default"
45091.107Shansif test "x$ac_cv_type___int16_t" = xyes; then :
45101.107Shans
45111.107Shanselse
45121.107Shans
45131.107Shans		ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
45141.107Shansif test "x$ac_cv_type_int16_t" = xyes; then :
45151.107Shans
45161.107Shans$as_echo "#define __int16_t int16_t" >>confdefs.h
45171.107Shans
45181.107Shanselse
45191.107Shans  as_fn_error $? "cannot find a suitable type for __int16_t" "$LINENO" 5
45201.107Shansfi
45211.107Shans
45221.107Shans
45231.107Shansfi
45241.107Shans
45251.81Schristos
45261.84Schristos	ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
45271.84Schristosif test "x$ac_cv_type_uint32_t" = xyes; then :
45281.81Schristos
45291.63Sapbelse
45301.53Sdogcow
45311.84Schristos		ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
45321.84Schristosif test "x$ac_cv_type_u_int32_t" = xyes; then :
45331.84Schristos
45341.84Schristos$as_echo "#define uint32_t u_int32_t" >>confdefs.h
45351.65Schristos
45361.40Satatatelse
45371.84Schristos  as_fn_error $? "cannot find a suitable type for uint32_t" "$LINENO" 5
45381.40Satatatfi
45391.84Schristos
45401.84Schristos
45411.74Schristosfi
45421.61Schristos
45431.84Schristos	ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
45441.84Schristosif test "x$ac_cv_type_u_int32_t" = xyes; then :
45451.53Sdogcow
45461.7Stvelse
45471.7Stv
45481.84Schristos		ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
45491.84Schristosif test "x$ac_cv_type_uint32_t" = xyes; then :
45501.60Sapb
45511.84Schristos$as_echo "#define u_int32_t uint32_t" >>confdefs.h
45521.63Sapb
45531.7Stvelse
45541.84Schristos  as_fn_error $? "cannot find a suitable type for u_int32_t" "$LINENO" 5
45551.7Stvfi
45561.84Schristos
45571.84Schristos
45581.7Stvfi
45591.7Stv
45601.107Shans	ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
45611.107Shansif test "x$ac_cv_type___uint32_t" = xyes; then :
45621.107Shans
45631.107Shanselse
45641.107Shans
45651.107Shans		ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
45661.107Shansif test "x$ac_cv_type_uint32_t" = xyes; then :
45671.107Shans
45681.107Shans$as_echo "#define __uint32_t uint32_t" >>confdefs.h
45691.107Shans
45701.107Shanselse
45711.107Shans  ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
45721.107Shansif test "x$ac_cv_type_u_int32_t" = xyes; then :
45731.107Shans
45741.107Shans$as_echo "#define uint32_t u_int32_t" >>confdefs.h
45751.107Shans
45761.107Shanselse
45771.107Shans  as_fn_error $? "cannot find a suitable type for __uint32_t" "$LINENO" 5
45781.107Shansfi
45791.107Shans
45801.107Shansfi
45811.107Shans
45821.107Shans
45831.107Shansfi
45841.107Shans
45851.107Shans	ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
45861.107Shansif test "x$ac_cv_type___int32_t" = xyes; then :
45871.107Shans
45881.107Shanselse
45891.107Shans
45901.107Shans		ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
45911.107Shansif test "x$ac_cv_type_int32_t" = xyes; then :
45921.107Shans
45931.107Shans$as_echo "#define __int32_t int32_t" >>confdefs.h
45941.107Shans
45951.107Shanselse
45961.107Shans  as_fn_error $? "cannot find a suitable type for __int32_t" "$LINENO" 5
45971.107Shansfi
45981.107Shans
45991.107Shans
46001.107Shansfi
46011.107Shans
46021.84Schristos
46031.84Schristos	ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
46041.84Schristosif test "x$ac_cv_type_uint64_t" = xyes; then :
46051.4Stv
46061.76Spookaelse
46071.63Sapb
46081.84Schristos		ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
46091.84Schristosif test "x$ac_cv_type_u_int64_t" = xyes; then :
46101.65Schristos
46111.84Schristos$as_echo "#define uint64_t u_int64_t" >>confdefs.h
46121.63Sapb
46131.53Sdogcowelse
46141.84Schristos  as_fn_error $? "cannot find a suitable type for uint64_t" "$LINENO" 5
46151.53Sdogcowfi
46161.84Schristos
46171.84Schristos
46181.61Schristosfi
46191.65Schristos
46201.84Schristos	ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
46211.84Schristosif test "x$ac_cv_type_u_int64_t" = xyes; then :
46221.65Schristos
46231.65Schristoselse
46241.53Sdogcow
46251.84Schristos		ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
46261.84Schristosif test "x$ac_cv_type_uint64_t" = xyes; then :
46271.65Schristos
46281.84Schristos$as_echo "#define u_int64_t uint64_t" >>confdefs.h
46291.53Sdogcow
46301.7Stvelse
46311.84Schristos  as_fn_error $? "cannot find a suitable type for u_int64_t" "$LINENO" 5
46321.7Stvfi
46331.84Schristos
46341.84Schristos
46351.7Stvfi
46361.65Schristos
46371.107Shans	ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
46381.107Shansif test "x$ac_cv_type___uint64_t" = xyes; then :
46391.107Shans
46401.107Shanselse
46411.107Shans
46421.107Shans		ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
46431.107Shansif test "x$ac_cv_type_uint64_t" = xyes; then :
46441.107Shans
46451.107Shans$as_echo "#define __uint64_t uint64_t" >>confdefs.h
46461.107Shans
46471.107Shanselse
46481.107Shans  ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
46491.107Shansif test "x$ac_cv_type_u_int64_t" = xyes; then :
46501.107Shans
46511.107Shans$as_echo "#define uint64_t u_int64_t" >>confdefs.h
46521.107Shans
46531.107Shanselse
46541.107Shans  as_fn_error $? "cannot find a suitable type for __uint64_t" "$LINENO" 5
46551.107Shansfi
46561.107Shans
46571.107Shansfi
46581.107Shans
46591.107Shans
46601.107Shansfi
46611.107Shans
46621.107Shans	ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
46631.107Shansif test "x$ac_cv_type___int64_t" = xyes; then :
46641.107Shans
46651.107Shanselse
46661.107Shans
46671.107Shans		ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
46681.107Shansif test "x$ac_cv_type_int64_t" = xyes; then :
46691.107Shans
46701.107Shans$as_echo "#define __int64_t int64_t" >>confdefs.h
46711.107Shans
46721.107Shanselse
46731.107Shans  as_fn_error $? "cannot find a suitable type for __int64_t" "$LINENO" 5
46741.107Shansfi
46751.107Shans
46761.107Shans
46771.107Shansfi
46781.107Shans
46791.7Stv
46801.84Schristos
46811.84Schristos# Struct members.
46821.84Schristosac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" "#include <sys/types.h>
46831.84Schristos#include <dirent.h>
46841.84Schristos"
46851.84Schristosif test "x$ac_cv_member_DIR_dd_fd" = xyes; then :
46861.84Schristos
46871.84Schristoscat >>confdefs.h <<_ACEOF
46881.84Schristos#define HAVE_DIR_DD_FD 1
46891.84Schristos_ACEOF
46901.84Schristos
46911.61Schristos
46921.76Spookafi
46931.84Schristosac_fn_c_check_member "$LINENO" "DIR" "__dd_fd" "ac_cv_member_DIR___dd_fd" "#include <sys/types.h>
46941.84Schristos#include <dirent.h>
46951.84Schristos"
46961.84Schristosif test "x$ac_cv_member_DIR___dd_fd" = xyes; then :
46971.84Schristos
46981.84Schristoscat >>confdefs.h <<_ACEOF
46991.84Schristos#define HAVE_DIR___DD_FD 1
47001.84Schristos_ACEOF
47011.61Schristos
47021.7Stv
47031.7Stvfi
47041.84Schristosac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#include <sys/types.h>
47051.84Schristos#include <dirent.h>
47061.84Schristos"
47071.84Schristosif test "x$ac_cv_member_struct_dirent_d_namlen" = xyes; then :
47081.61Schristos
47091.84Schristoscat >>confdefs.h <<_ACEOF
47101.84Schristos#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
47111.84Schristos_ACEOF
47121.7Stv
47131.7Stv
47141.76Spookafi
47151.4Stv
47161.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "#include <sys/stat.h>
47171.84Schristos"
47181.84Schristosif test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
47191.4Stv
47201.84Schristoscat >>confdefs.h <<_ACEOF
47211.84Schristos#define HAVE_STRUCT_STAT_ST_FLAGS 1
47221.76Spooka_ACEOF
47231.84Schristos
47241.84Schristos
47251.4Stvfi
47261.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "#include <sys/stat.h>
47271.84Schristos"
47281.84Schristosif test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
47291.84Schristos
47301.84Schristoscat >>confdefs.h <<_ACEOF
47311.84Schristos#define HAVE_STRUCT_STAT_ST_GEN 1
47321.84Schristos_ACEOF
47331.84Schristos
47341.84Schristos
47351.4Stvfi
47361.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "#include <sys/stat.h>
47371.84Schristos"
47381.84Schristosif test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
47391.61Schristos
47401.84Schristoscat >>confdefs.h <<_ACEOF
47411.84Schristos#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
47421.84Schristos_ACEOF
47431.74Schristos
47441.74Schristos
47451.76Spookafi
47461.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/stat.h>
47471.84Schristos"
47481.84Schristosif test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
47491.84Schristos
47501.84Schristoscat >>confdefs.h <<_ACEOF
47511.84Schristos#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
47521.84Schristos_ACEOF
47531.84Schristos
47541.4Stv
47551.84Schristosfi
47561.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "#include <sys/stat.h>
47571.84Schristos"
47581.84Schristosif test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
47591.63Sapb
47601.84Schristoscat >>confdefs.h <<_ACEOF
47611.84Schristos#define HAVE_STRUCT_STAT_ST_ATIM 1
47621.76Spooka_ACEOF
47631.84Schristos
47641.84Schristos
47651.19Sbjh21fi
47661.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h>
47671.84Schristos"
47681.84Schristosif test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
47691.84Schristos
47701.84Schristoscat >>confdefs.h <<_ACEOF
47711.84Schristos#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
47721.84Schristos_ACEOF
47731.84Schristos
47741.84Schristos
47751.19Sbjh21fi
47761.63Sapb
47771.84Schristosac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "#include <sys/statvfs.h>
47781.84Schristos"
47791.84Schristosif test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes; then :
47801.84Schristos
47811.84Schristoscat >>confdefs.h <<_ACEOF
47821.84Schristos#define HAVE_STRUCT_STATVFS_F_IOSIZE 1
47831.84Schristos_ACEOF
47841.19Sbjh21
47851.19Sbjh21
47861.76Spookafi
47871.63Sapb
47881.84Schristosac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
47891.84Schristos"
47901.84Schristosif test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
47911.19Sbjh21
47921.84Schristoscat >>confdefs.h <<_ACEOF
47931.84Schristos#define HAVE_STRUCT_TM_TM_GMTOFF 1
47941.76Spooka_ACEOF
47951.84Schristos
47961.84Schristos
47971.19Sbjh21fi
47981.76Spooka
47991.74Schristos
48001.84Schristos# Global variable decls.
48011.86Schristosac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "
48021.86Schristos#include <stdio.h>
48031.86Schristos
48041.86Schristos"
48051.86Schristosif test "x$ac_cv_have_decl_asprintf" = xyes; then :
48061.86Schristos  ac_have_decl=1
48071.86Schristoselse
48081.86Schristos  ac_have_decl=0
48091.86Schristosfi
48101.86Schristos
48111.86Schristoscat >>confdefs.h <<_ACEOF
48121.86Schristos#define HAVE_DECL_ASPRINTF $ac_have_decl
48131.86Schristos_ACEOF
48141.88Ssevanac_fn_c_check_decl "$LINENO" "asnprintf" "ac_cv_have_decl_asnprintf" "
48151.88Ssevan#include <stdio.h>
48161.88Ssevan
48171.88Ssevan"
48181.88Ssevanif test "x$ac_cv_have_decl_asnprintf" = xyes; then :
48191.88Ssevan  ac_have_decl=1
48201.88Ssevanelse
48211.88Ssevan  ac_have_decl=0
48221.88Ssevanfi
48231.88Ssevan
48241.88Ssevancat >>confdefs.h <<_ACEOF
48251.88Ssevan#define HAVE_DECL_ASNPRINTF $ac_have_decl
48261.88Ssevan_ACEOF
48271.86Schristosac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "
48281.86Schristos#include <stdio.h>
48291.86Schristos
48301.86Schristos"
48311.86Schristosif test "x$ac_cv_have_decl_vasprintf" = xyes; then :
48321.86Schristos  ac_have_decl=1
48331.86Schristoselse
48341.86Schristos  ac_have_decl=0
48351.86Schristosfi
48361.86Schristos
48371.86Schristoscat >>confdefs.h <<_ACEOF
48381.86Schristos#define HAVE_DECL_VASPRINTF $ac_have_decl
48391.86Schristos_ACEOF
48401.86Schristosac_fn_c_check_decl "$LINENO" "vasnprintf" "ac_cv_have_decl_vasnprintf" "
48411.86Schristos#include <stdio.h>
48421.86Schristos
48431.86Schristos"
48441.86Schristosif test "x$ac_cv_have_decl_vasnprintf" = xyes; then :
48451.86Schristos  ac_have_decl=1
48461.86Schristoselse
48471.86Schristos  ac_have_decl=0
48481.86Schristosfi
48491.86Schristos
48501.86Schristoscat >>confdefs.h <<_ACEOF
48511.86Schristos#define HAVE_DECL_VASNPRINTF $ac_have_decl
48521.86Schristos_ACEOF
48531.86Schristosac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
48541.86Schristos#include <stdio.h>
48551.86Schristos
48561.86Schristos"
48571.86Schristosif test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
48581.86Schristos  ac_have_decl=1
48591.86Schristoselse
48601.86Schristos  ac_have_decl=0
48611.86Schristosfi
48621.86Schristos
48631.86Schristoscat >>confdefs.h <<_ACEOF
48641.86Schristos#define HAVE_DECL_VSNPRINTF $ac_have_decl
48651.86Schristos_ACEOF
48661.86Schristosac_fn_c_check_decl "$LINENO" "fgetln" "ac_cv_have_decl_fgetln" "
48671.86Schristos#include <stdio.h>
48681.86Schristos
48691.86Schristos"
48701.86Schristosif test "x$ac_cv_have_decl_fgetln" = xyes; then :
48711.86Schristos  ac_have_decl=1
48721.86Schristoselse
48731.86Schristos  ac_have_decl=0
48741.86Schristosfi
48751.86Schristos
48761.86Schristoscat >>confdefs.h <<_ACEOF
48771.86Schristos#define HAVE_DECL_FGETLN $ac_have_decl
48781.86Schristos_ACEOF
48791.87Schristosac_fn_c_check_decl "$LINENO" "fparseln" "ac_cv_have_decl_fparseln" "
48801.86Schristos#include <stdio.h>
48811.86Schristos
48821.86Schristos"
48831.87Schristosif test "x$ac_cv_have_decl_fparseln" = xyes; then :
48841.86Schristos  ac_have_decl=1
48851.86Schristoselse
48861.86Schristos  ac_have_decl=0
48871.86Schristosfi
48881.86Schristos
48891.86Schristoscat >>confdefs.h <<_ACEOF
48901.87Schristos#define HAVE_DECL_FPARSELN $ac_have_decl
48911.87Schristos_ACEOF
48921.87Schristosac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "
48931.87Schristos#include <stdio.h>
48941.87Schristos
48951.87Schristos"
48961.87Schristosif test "x$ac_cv_have_decl_fpurge" = xyes; then :
48971.87Schristos  ac_have_decl=1
48981.87Schristoselse
48991.87Schristos  ac_have_decl=0
49001.87Schristosfi
49011.87Schristos
49021.87Schristoscat >>confdefs.h <<_ACEOF
49031.87Schristos#define HAVE_DECL_FPURGE $ac_have_decl
49041.87Schristos_ACEOF
49051.87Schristosac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "
49061.87Schristos#include <stdio.h>
49071.87Schristos
49081.87Schristos"
49091.87Schristosif test "x$ac_cv_have_decl_getdelim" = xyes; then :
49101.87Schristos  ac_have_decl=1
49111.87Schristoselse
49121.87Schristos  ac_have_decl=0
49131.87Schristosfi
49141.87Schristos
49151.87Schristoscat >>confdefs.h <<_ACEOF
49161.87Schristos#define HAVE_DECL_GETDELIM $ac_have_decl
49171.86Schristos_ACEOF
49181.86Schristosac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "
49191.86Schristos#include <stdio.h>
49201.86Schristos
49211.86Schristos"
49221.86Schristosif test "x$ac_cv_have_decl_getline" = xyes; then :
49231.86Schristos  ac_have_decl=1
49241.86Schristoselse
49251.86Schristos  ac_have_decl=0
49261.86Schristosfi
49271.86Schristos
49281.86Schristoscat >>confdefs.h <<_ACEOF
49291.86Schristos#define HAVE_DECL_GETLINE $ac_have_decl
49301.86Schristos_ACEOF
49311.86Schristosac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "
49321.86Schristos#include <stdio.h>
49331.86Schristos
49341.86Schristos"
49351.86Schristosif test "x$ac_cv_have_decl_snprintf" = xyes; then :
49361.86Schristos  ac_have_decl=1
49371.86Schristoselse
49381.86Schristos  ac_have_decl=0
49391.86Schristosfi
49401.86Schristos
49411.86Schristoscat >>confdefs.h <<_ACEOF
49421.86Schristos#define HAVE_DECL_SNPRINTF $ac_have_decl
49431.86Schristos_ACEOF
49441.86Schristos
49451.86Schristos
49461.86Schristosac_fn_c_check_decl "$LINENO" "atoll" "ac_cv_have_decl_atoll" "
49471.86Schristos#include <stdlib.h>
49481.86Schristos
49491.86Schristos"
49501.86Schristosif test "x$ac_cv_have_decl_atoll" = xyes; then :
49511.86Schristos  ac_have_decl=1
49521.86Schristoselse
49531.86Schristos  ac_have_decl=0
49541.86Schristosfi
49551.86Schristos
49561.86Schristoscat >>confdefs.h <<_ACEOF
49571.86Schristos#define HAVE_DECL_ATOLL $ac_have_decl
49581.86Schristos_ACEOF
49591.86Schristosac_fn_c_check_decl "$LINENO" "heapsort" "ac_cv_have_decl_heapsort" "
49601.86Schristos#include <stdlib.h>
49611.86Schristos
49621.86Schristos"
49631.86Schristosif test "x$ac_cv_have_decl_heapsort" = xyes; then :
49641.86Schristos  ac_have_decl=1
49651.86Schristoselse
49661.86Schristos  ac_have_decl=0
49671.86Schristosfi
49681.86Schristos
49691.86Schristoscat >>confdefs.h <<_ACEOF
49701.86Schristos#define HAVE_DECL_HEAPSORT $ac_have_decl
49711.86Schristos_ACEOF
49721.86Schristosac_fn_c_check_decl "$LINENO" "mkdtemp" "ac_cv_have_decl_mkdtemp" "
49731.86Schristos#include <stdlib.h>
49741.86Schristos
49751.86Schristos"
49761.86Schristosif test "x$ac_cv_have_decl_mkdtemp" = xyes; then :
49771.86Schristos  ac_have_decl=1
49781.86Schristoselse
49791.86Schristos  ac_have_decl=0
49801.86Schristosfi
49811.86Schristos
49821.86Schristoscat >>confdefs.h <<_ACEOF
49831.86Schristos#define HAVE_DECL_MKDTEMP $ac_have_decl
49841.86Schristos_ACEOF
49851.86Schristosac_fn_c_check_decl "$LINENO" "mkstemp" "ac_cv_have_decl_mkstemp" "
49861.86Schristos#include <stdlib.h>
49871.86Schristos
49881.86Schristos"
49891.86Schristosif test "x$ac_cv_have_decl_mkstemp" = xyes; then :
49901.86Schristos  ac_have_decl=1
49911.86Schristoselse
49921.86Schristos  ac_have_decl=0
49931.86Schristosfi
49941.86Schristos
49951.86Schristoscat >>confdefs.h <<_ACEOF
49961.86Schristos#define HAVE_DECL_MKSTEMP $ac_have_decl
49971.86Schristos_ACEOF
49981.86Schristosac_fn_c_check_decl "$LINENO" "reallocarr" "ac_cv_have_decl_reallocarr" "
49991.86Schristos#include <stdlib.h>
50001.86Schristos
50011.86Schristos"
50021.86Schristosif test "x$ac_cv_have_decl_reallocarr" = xyes; then :
50031.86Schristos  ac_have_decl=1
50041.86Schristoselse
50051.86Schristos  ac_have_decl=0
50061.86Schristosfi
50071.86Schristos
50081.86Schristoscat >>confdefs.h <<_ACEOF
50091.86Schristos#define HAVE_DECL_REALLOCARR $ac_have_decl
50101.86Schristos_ACEOF
50111.99Schristosac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "
50121.99Schristos#include <stdlib.h>
50131.99Schristos
50141.99Schristos"
50151.99Schristosif test "x$ac_cv_have_decl_reallocarray" = xyes; then :
50161.99Schristos  ac_have_decl=1
50171.99Schristoselse
50181.99Schristos  ac_have_decl=0
50191.99Schristosfi
50201.99Schristos
50211.99Schristoscat >>confdefs.h <<_ACEOF
50221.99Schristos#define HAVE_DECL_REALLOCARRAY $ac_have_decl
50231.99Schristos_ACEOF
50241.93Schristosac_fn_c_check_decl "$LINENO" "getsubopt" "ac_cv_have_decl_getsubopt" "
50251.93Schristos#include <stdlib.h>
50261.93Schristos
50271.93Schristos"
50281.93Schristosif test "x$ac_cv_have_decl_getsubopt" = xyes; then :
50291.93Schristos  ac_have_decl=1
50301.93Schristoselse
50311.93Schristos  ac_have_decl=0
50321.93Schristosfi
50331.93Schristos
50341.93Schristoscat >>confdefs.h <<_ACEOF
50351.93Schristos#define HAVE_DECL_GETSUBOPT $ac_have_decl
50361.93Schristos_ACEOF
50371.86Schristosac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "
50381.86Schristos#include <stdlib.h>
50391.86Schristos
50401.86Schristos"
50411.86Schristosif test "x$ac_cv_have_decl_setenv" = xyes; then :
50421.86Schristos  ac_have_decl=1
50431.86Schristoselse
50441.86Schristos  ac_have_decl=0
50451.86Schristosfi
50461.86Schristos
50471.86Schristoscat >>confdefs.h <<_ACEOF
50481.86Schristos#define HAVE_DECL_SETENV $ac_have_decl
50491.86Schristos_ACEOF
50501.86Schristosac_fn_c_check_decl "$LINENO" "strtoi" "ac_cv_have_decl_strtoi" "
50511.86Schristos#include <stdlib.h>
50521.86Schristos
50531.86Schristos"
50541.86Schristosif test "x$ac_cv_have_decl_strtoi" = xyes; then :
50551.86Schristos  ac_have_decl=1
50561.86Schristoselse
50571.86Schristos  ac_have_decl=0
50581.86Schristosfi
50591.86Schristos
50601.86Schristoscat >>confdefs.h <<_ACEOF
50611.86Schristos#define HAVE_DECL_STRTOI $ac_have_decl
50621.86Schristos_ACEOF
50631.86Schristosac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "
50641.86Schristos#include <stdlib.h>
50651.86Schristos
50661.86Schristos"
50671.86Schristosif test "x$ac_cv_have_decl_strtoll" = xyes; then :
50681.86Schristos  ac_have_decl=1
50691.86Schristoselse
50701.86Schristos  ac_have_decl=0
50711.86Schristosfi
50721.86Schristos
50731.86Schristoscat >>confdefs.h <<_ACEOF
50741.86Schristos#define HAVE_DECL_STRTOLL $ac_have_decl
50751.86Schristos_ACEOF
50761.86Schristosac_fn_c_check_decl "$LINENO" "strtou" "ac_cv_have_decl_strtou" "
50771.86Schristos#include <stdlib.h>
50781.86Schristos
50791.86Schristos"
50801.86Schristosif test "x$ac_cv_have_decl_strtou" = xyes; then :
50811.86Schristos  ac_have_decl=1
50821.86Schristoselse
50831.86Schristos  ac_have_decl=0
50841.86Schristosfi
50851.86Schristos
50861.86Schristoscat >>confdefs.h <<_ACEOF
50871.86Schristos#define HAVE_DECL_STRTOU $ac_have_decl
50881.86Schristos_ACEOF
50891.86Schristosac_fn_c_check_decl "$LINENO" "setprogname" "ac_cv_have_decl_setprogname" "
50901.86Schristos#include <stdlib.h>
50911.86Schristos
50921.86Schristos"
50931.86Schristosif test "x$ac_cv_have_decl_setprogname" = xyes; then :
50941.86Schristos  ac_have_decl=1
50951.86Schristoselse
50961.86Schristos  ac_have_decl=0
50971.86Schristosfi
50981.86Schristos
50991.86Schristoscat >>confdefs.h <<_ACEOF
51001.86Schristos#define HAVE_DECL_SETPROGNAME $ac_have_decl
51011.86Schristos_ACEOF
51021.106Skreac_fn_c_check_decl "$LINENO" "shquote" "ac_cv_have_decl_shquote" "
51031.106Skre#include <stdlib.h>
51041.106Skre
51051.106Skre"
51061.106Skreif test "x$ac_cv_have_decl_shquote" = xyes; then :
51071.106Skre  ac_have_decl=1
51081.106Skreelse
51091.106Skre  ac_have_decl=0
51101.106Skrefi
51111.106Skre
51121.106Skrecat >>confdefs.h <<_ACEOF
51131.106Skre#define HAVE_DECL_SHQUOTE $ac_have_decl
51141.106Skre_ACEOF
51151.86Schristosac_fn_c_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "
51161.86Schristos#include <stdlib.h>
51171.86Schristos
51181.86Schristos"
51191.86Schristosif test "x$ac_cv_have_decl_getprogname" = xyes; then :
51201.86Schristos  ac_have_decl=1
51211.86Schristoselse
51221.86Schristos  ac_have_decl=0
51231.86Schristosfi
51241.86Schristos
51251.86Schristoscat >>confdefs.h <<_ACEOF
51261.86Schristos#define HAVE_DECL_GETPROGNAME $ac_have_decl
51271.86Schristos_ACEOF
51281.86Schristos
51291.86Schristos
51301.86Schristosac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "
51311.86Schristos#include <libgen.h>
51321.86Schristos
51331.86Schristos"
51341.86Schristosif test "x$ac_cv_have_decl_basename" = xyes; then :
51351.86Schristos  ac_have_decl=1
51361.86Schristoselse
51371.86Schristos  ac_have_decl=0
51381.86Schristosfi
51391.86Schristos
51401.86Schristoscat >>confdefs.h <<_ACEOF
51411.86Schristos#define HAVE_DECL_BASENAME $ac_have_decl
51421.86Schristos_ACEOF
51431.86Schristosac_fn_c_check_decl "$LINENO" "dirname" "ac_cv_have_decl_dirname" "
51441.86Schristos#include <libgen.h>
51451.86Schristos
51461.86Schristos"
51471.86Schristosif test "x$ac_cv_have_decl_dirname" = xyes; then :
51481.86Schristos  ac_have_decl=1
51491.86Schristoselse
51501.86Schristos  ac_have_decl=0
51511.86Schristosfi
51521.86Schristos
51531.86Schristoscat >>confdefs.h <<_ACEOF
51541.86Schristos#define HAVE_DECL_DIRNAME $ac_have_decl
51551.86Schristos_ACEOF
51561.86Schristos
51571.86Schristos
51581.86Schristosac_fn_c_check_decl "$LINENO" "raise_default_signal" "ac_cv_have_decl_raise_default_signal" "
51591.86Schristos#include <util.h>
51601.86Schristos
51611.86Schristos"
51621.86Schristosif test "x$ac_cv_have_decl_raise_default_signal" = xyes; then :
51631.86Schristos  ac_have_decl=1
51641.86Schristoselse
51651.86Schristos  ac_have_decl=0
51661.86Schristosfi
51671.86Schristos
51681.86Schristoscat >>confdefs.h <<_ACEOF
51691.86Schristos#define HAVE_DECL_RAISE_DEFAULT_SIGNAL $ac_have_decl
51701.86Schristos_ACEOF
51711.86Schristos
51721.86Schristos
51731.86Schristosac_fn_c_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "
51741.86Schristos#include <unistd.h>
51751.86Schristos
51761.86Schristos"
51771.86Schristosif test "x$ac_cv_have_decl_issetugid" = xyes; then :
51781.86Schristos  ac_have_decl=1
51791.86Schristoselse
51801.86Schristos  ac_have_decl=0
51811.86Schristosfi
51821.86Schristos
51831.86Schristoscat >>confdefs.h <<_ACEOF
51841.86Schristos#define HAVE_DECL_ISSETUGID $ac_have_decl
51851.86Schristos_ACEOF
51861.86Schristosac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
51871.86Schristos#include <unistd.h>
51881.86Schristos
51891.86Schristos"
51901.86Schristosif test "x$ac_cv_have_decl_pread" = xyes; then :
51911.86Schristos  ac_have_decl=1
51921.86Schristoselse
51931.86Schristos  ac_have_decl=0
51941.86Schristosfi
51951.86Schristos
51961.86Schristoscat >>confdefs.h <<_ACEOF
51971.86Schristos#define HAVE_DECL_PREAD $ac_have_decl
51981.86Schristos_ACEOF
51991.86Schristosac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
52001.86Schristos#include <unistd.h>
52011.86Schristos
52021.86Schristos"
52031.86Schristosif test "x$ac_cv_have_decl_pwrite" = xyes; then :
52041.86Schristos  ac_have_decl=1
52051.86Schristoselse
52061.86Schristos  ac_have_decl=0
52071.86Schristosfi
52081.86Schristos
52091.86Schristoscat >>confdefs.h <<_ACEOF
52101.86Schristos#define HAVE_DECL_PWRITE $ac_have_decl
52111.86Schristos_ACEOF
52121.86Schristos
52131.86Schristos
52141.86Schristosac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "
52151.86Schristos#include <unistd.h>
52161.86Schristos#include <string.h>
52171.86Schristos
52181.86Schristos"
52191.86Schristosif test "x$ac_cv_have_decl_strmode" = xyes; then :
52201.86Schristos  ac_have_decl=1
52211.86Schristoselse
52221.86Schristos  ac_have_decl=0
52231.86Schristosfi
52241.86Schristos
52251.86Schristoscat >>confdefs.h <<_ACEOF
52261.86Schristos#define HAVE_DECL_STRMODE $ac_have_decl
52271.86Schristos_ACEOF
52281.86Schristos
52291.86Schristos
52301.86Schristosac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "
52311.86Schristos#include <ctype.h>
52321.86Schristos
52331.86Schristos"
52341.86Schristosif test "x$ac_cv_have_decl_isblank" = xyes; then :
52351.86Schristos  ac_have_decl=1
52361.86Schristoselse
52371.86Schristos  ac_have_decl=0
52381.86Schristosfi
52391.86Schristos
52401.86Schristoscat >>confdefs.h <<_ACEOF
52411.86Schristos#define HAVE_DECL_ISBLANK $ac_have_decl
52421.86Schristos_ACEOF
52431.86Schristos
52441.86Schristos
52451.86Schristos
52461.84Schristosac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "
52471.84Schristos#include <stdio.h>
52481.84Schristos#include <stdlib.h>
52491.84Schristos#include <unistd.h>
52501.84Schristos#ifdef HAVE_GETOPT_H
52511.84Schristos#include <getopt.h>
52521.84Schristos#endif
52531.84Schristos
52541.84Schristos"
52551.84Schristosif test "x$ac_cv_have_decl_optind" = xyes; then :
52561.84Schristos  ac_have_decl=1
52571.76Spookaelse
52581.84Schristos  ac_have_decl=0
52591.19Sbjh21fi
52601.19Sbjh21
52611.84Schristoscat >>confdefs.h <<_ACEOF
52621.84Schristos#define HAVE_DECL_OPTIND $ac_have_decl
52631.84Schristos_ACEOF
52641.84Schristosac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "
52651.84Schristos#include <stdio.h>
52661.84Schristos#include <stdlib.h>
52671.84Schristos#include <unistd.h>
52681.84Schristos#ifdef HAVE_GETOPT_H
52691.84Schristos#include <getopt.h>
52701.76Spooka#endif
52711.19Sbjh21
52721.84Schristos"
52731.84Schristosif test "x$ac_cv_have_decl_optreset" = xyes; then :
52741.84Schristos  ac_have_decl=1
52751.84Schristoselse
52761.84Schristos  ac_have_decl=0
52771.84Schristosfi
52781.84Schristos
52791.84Schristoscat >>confdefs.h <<_ACEOF
52801.84Schristos#define HAVE_DECL_OPTRESET $ac_have_decl
52811.74Schristos_ACEOF
52821.84Schristos
52831.84Schristosac_fn_c_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "#include <signal.h>
52841.84Schristos"
52851.84Schristosif test "x$ac_cv_have_decl_sys_signame" = xyes; then :
52861.84Schristos  ac_have_decl=1
52871.76Spookaelse
52881.84Schristos  ac_have_decl=0
52891.63Sapbfi
52901.39Sfredb
52911.84Schristoscat >>confdefs.h <<_ACEOF
52921.84Schristos#define HAVE_DECL_SYS_SIGNAME $ac_have_decl
52931.84Schristos_ACEOF
52941.63Sapb
52951.61Schristos
52961.84Schristos# Library functions (where a .h check isn't enough).
52971.84Schristos# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
52981.84Schristos# for constant arguments.  Useless!
52991.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
53001.84Schristos$as_echo_n "checking for working alloca.h... " >&6; }
53011.84Schristosif ${ac_cv_working_alloca_h+:} false; then :
53021.84Schristos  $as_echo_n "(cached) " >&6
53031.76Spookaelse
53041.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53051.84Schristos/* end confdefs.h.  */
53061.84Schristos#include <alloca.h>
53071.76Spookaint
53081.76Spookamain ()
53091.76Spooka{
53101.84Schristoschar *p = (char *) alloca (2 * sizeof (int));
53111.84Schristos			  if (p) return 0;
53121.76Spooka  ;
53131.76Spooka  return 0;
53141.76Spooka}
53151.19Sbjh21_ACEOF
53161.84Schristosif ac_fn_c_try_link "$LINENO"; then :
53171.84Schristos  ac_cv_working_alloca_h=yes
53181.76Spookaelse
53191.84Schristos  ac_cv_working_alloca_h=no
53201.76Spookafi
53211.84Schristosrm -f core conftest.err conftest.$ac_objext \
53221.84Schristos    conftest$ac_exeext conftest.$ac_ext
53231.19Sbjh21fi
53241.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
53251.84Schristos$as_echo "$ac_cv_working_alloca_h" >&6; }
53261.84Schristosif test $ac_cv_working_alloca_h = yes; then
53271.63Sapb
53281.84Schristos$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
53291.63Sapb
53301.84Schristosfi
53311.19Sbjh21
53321.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
53331.84Schristos$as_echo_n "checking for alloca... " >&6; }
53341.84Schristosif ${ac_cv_func_alloca_works+:} false; then :
53351.84Schristos  $as_echo_n "(cached) " >&6
53361.76Spookaelse
53371.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53381.84Schristos/* end confdefs.h.  */
53391.84Schristos#ifdef __GNUC__
53401.84Schristos# define alloca __builtin_alloca
53411.84Schristos#else
53421.84Schristos# ifdef _MSC_VER
53431.84Schristos#  include <malloc.h>
53441.84Schristos#  define alloca _alloca
53451.97Shannken# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
53461.97Shannken#   include <stdlib.h>
53471.84Schristos# else
53481.84Schristos#  ifdef HAVE_ALLOCA_H
53491.84Schristos#   include <alloca.h>
53501.84Schristos#  else
53511.84Schristos#   ifdef _AIX
53521.84Schristos #pragma alloca
53531.84Schristos#   else
53541.84Schristos#    ifndef alloca /* predefined by HP cc +Olibcalls */
53551.84Schristosvoid *alloca (size_t);
53561.84Schristos#    endif
53571.84Schristos#   endif
53581.84Schristos#  endif
53591.84Schristos# endif
53601.84Schristos#endif
53611.76Spooka
53621.76Spookaint
53631.76Spookamain ()
53641.76Spooka{
53651.84Schristoschar *p = (char *) alloca (1);
53661.84Schristos				    if (p) return 0;
53671.76Spooka  ;
53681.76Spooka  return 0;
53691.76Spooka}
53701.74Schristos_ACEOF
53711.84Schristosif ac_fn_c_try_link "$LINENO"; then :
53721.84Schristos  ac_cv_func_alloca_works=yes
53731.76Spookaelse
53741.84Schristos  ac_cv_func_alloca_works=no
53751.76Spookafi
53761.84Schristosrm -f core conftest.err conftest.$ac_objext \
53771.84Schristos    conftest$ac_exeext conftest.$ac_ext
53781.19Sbjh21fi
53791.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
53801.84Schristos$as_echo "$ac_cv_func_alloca_works" >&6; }
53811.19Sbjh21
53821.84Schristosif test $ac_cv_func_alloca_works = yes; then
53831.84Schristos
53841.84Schristos$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
53851.19Sbjh21
53861.76Spookaelse
53871.84Schristos  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
53881.84Schristos# that cause trouble.  Some versions do not even contain alloca or
53891.84Schristos# contain a buggy version.  If you still want to use their alloca,
53901.84Schristos# use ar to extract alloca.o from them instead of compiling alloca.c.
53911.84Schristos
53921.84SchristosALLOCA=\${LIBOBJDIR}alloca.$ac_objext
53931.84Schristos
53941.84Schristos$as_echo "#define C_ALLOCA 1" >>confdefs.h
53951.19Sbjh21
53961.84Schristos
53971.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
53981.84Schristos$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
53991.84Schristosif ${ac_cv_os_cray+:} false; then :
54001.84Schristos  $as_echo_n "(cached) " >&6
54011.76Spookaelse
54021.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54031.84Schristos/* end confdefs.h.  */
54041.84Schristos#if defined CRAY && ! defined CRAY2
54051.84Schristoswebecray
54061.84Schristos#else
54071.84Schristoswenotbecray
54081.76Spooka#endif
54091.74Schristos
54101.74Schristos_ACEOF
54111.84Schristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54121.84Schristos  $EGREP "webecray" >/dev/null 2>&1; then :
54131.84Schristos  ac_cv_os_cray=yes
54141.76Spookaelse
54151.84Schristos  ac_cv_os_cray=no
54161.43Sdbjfi
54171.84Schristosrm -f conftest*
54181.84Schristos
54191.43Sdbjfi
54201.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
54211.84Schristos$as_echo "$ac_cv_os_cray" >&6; }
54221.84Schristosif test $ac_cv_os_cray = yes; then
54231.84Schristos  for ac_func in _getb67 GETB67 getb67; do
54241.84Schristos    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
54251.84Schristosac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
54261.84Schristosif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
54271.40Satatat
54281.84Schristoscat >>confdefs.h <<_ACEOF
54291.84Schristos#define CRAY_STACKSEG_END $ac_func
54301.84Schristos_ACEOF
54311.61Schristos
54321.84Schristos    break
54331.84Schristosfi
54341.61Schristos
54351.84Schristos  done
54361.74Schristosfi
54371.61Schristos
54381.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
54391.84Schristos$as_echo_n "checking stack direction for C alloca... " >&6; }
54401.84Schristosif ${ac_cv_c_stack_direction+:} false; then :
54411.84Schristos  $as_echo_n "(cached) " >&6
54421.76Spookaelse
54431.84Schristos  if test "$cross_compiling" = yes; then :
54441.84Schristos  ac_cv_c_stack_direction=0
54451.84Schristoselse
54461.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54471.84Schristos/* end confdefs.h.  */
54481.84Schristos$ac_includes_default
54491.84Schristosint
54501.84Schristosfind_stack_direction (int *addr, int depth)
54511.84Schristos{
54521.84Schristos  int dir, dummy = 0;
54531.84Schristos  if (! addr)
54541.84Schristos    addr = &dummy;
54551.84Schristos  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
54561.84Schristos  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
54571.84Schristos  return dir + dummy;
54581.84Schristos}
54591.61Schristos
54601.76Spookaint
54611.84Schristosmain (int argc, char **argv)
54621.76Spooka{
54631.84Schristos  return find_stack_direction (0, argc + !argv + 20) < 0;
54641.76Spooka}
54651.76Spooka_ACEOF
54661.84Schristosif ac_fn_c_try_run "$LINENO"; then :
54671.84Schristos  ac_cv_c_stack_direction=1
54681.63Sapbelse
54691.84Schristos  ac_cv_c_stack_direction=-1
54701.76Spookafi
54711.84Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54721.84Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
54731.63Sapbfi
54741.61Schristos
54751.84Schristosfi
54761.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
54771.84Schristos$as_echo "$ac_cv_c_stack_direction" >&6; }
54781.84Schristoscat >>confdefs.h <<_ACEOF
54791.84Schristos#define STACK_DIRECTION $ac_cv_c_stack_direction
54801.84Schristos_ACEOF
54811.61Schristos
54821.76Spooka
54831.63Sapbfi
54841.76Spooka
54851.84Schristosfor ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
54861.100Slukem	dispatch_semaphore_create \
54871.84Schristos	dprintf esetfunc fgetln flock fpurge __fpurge futimes getline \
54881.84Schristos	getopt getopt_long group_from_gid gid_from_group \
54891.84Schristos	heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
54901.105Slukem	mkdtemp poll posix_spawn pread putc_unlocked pwcache_userdb pwcache_groupdb \
54911.99Schristos	pwrite raise_default_signal random reallocarr reallocarray setenv \
54921.84Schristos	setgroupent setprogname setpassent \
54931.84Schristos	snprintb_m snprintf strlcat strlcpy strmode \
54941.92Schristos	strcasecmp strncasecmp strndup strnlen strsep strsuftoll strtoi \
54951.92Schristos	strtoll strtou \
54961.84Schristos	user_from_uid uid_from_user vasprintf vasnprintf vsnprintf
54971.84Schristosdo :
54981.84Schristos  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
54991.84Schristosac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
55001.84Schristosif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
55011.84Schristos  cat >>confdefs.h <<_ACEOF
55021.84Schristos#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
55031.84Schristos_ACEOF
55041.61Schristos
55051.76Spookafi
55061.84Schristosdone
55071.84Schristos
55081.45Sjmc
55091.84Schristosac_fn_c_check_decl "$LINENO" "user_from_uid" "ac_cv_have_decl_user_from_uid" "
55101.84Schristos#include <pwd.h>
55111.45Sjmc
55121.84Schristos"
55131.84Schristosif test "x$ac_cv_have_decl_user_from_uid" = xyes; then :
55141.84Schristos  ac_have_decl=1
55151.76Spookaelse
55161.84Schristos  ac_have_decl=0
55171.76Spookafi
55181.76Spooka
55191.84Schristoscat >>confdefs.h <<_ACEOF
55201.84Schristos#define HAVE_DECL_USER_FROM_UID $ac_have_decl
55211.84Schristos_ACEOF
55221.84Schristosac_fn_c_check_decl "$LINENO" "uid_from_user" "ac_cv_have_decl_uid_from_user" "
55231.84Schristos#include <pwd.h>
55241.76Spooka
55251.84Schristos"
55261.84Schristosif test "x$ac_cv_have_decl_uid_from_user" = xyes; then :
55271.84Schristos  ac_have_decl=1
55281.55Swizelse
55291.84Schristos  ac_have_decl=0
55301.55Swizfi
55311.76Spooka
55321.84Schristoscat >>confdefs.h <<_ACEOF
55331.84Schristos#define HAVE_DECL_UID_FROM_USER $ac_have_decl
55341.84Schristos_ACEOF
55351.84Schristosac_fn_c_check_decl "$LINENO" "pwcache_userdb" "ac_cv_have_decl_pwcache_userdb" "
55361.84Schristos#include <pwd.h>
55371.55Swiz
55381.84Schristos"
55391.84Schristosif test "x$ac_cv_have_decl_pwcache_userdb" = xyes; then :
55401.84Schristos  ac_have_decl=1
55411.76Spookaelse
55421.84Schristos  ac_have_decl=0
55431.55Swizfi
55441.55Swiz
55451.84Schristoscat >>confdefs.h <<_ACEOF
55461.84Schristos#define HAVE_DECL_PWCACHE_USERDB $ac_have_decl
55471.84Schristos_ACEOF
55481.53Sdogcow
55491.84Schristosac_fn_c_check_decl "$LINENO" "group_from_gid" "ac_cv_have_decl_group_from_gid" "
55501.84Schristos#include <grp.h>
55511.76Spooka
55521.84Schristos"
55531.84Schristosif test "x$ac_cv_have_decl_group_from_gid" = xyes; then :
55541.84Schristos  ac_have_decl=1
55551.48Sjmcelse
55561.84Schristos  ac_have_decl=0
55571.48Sjmcfi
55581.61Schristos
55591.84Schristoscat >>confdefs.h <<_ACEOF
55601.84Schristos#define HAVE_DECL_GROUP_FROM_GID $ac_have_decl
55611.84Schristos_ACEOF
55621.84Schristosac_fn_c_check_decl "$LINENO" "gid_from_group" "ac_cv_have_decl_gid_from_group" "
55631.84Schristos#include <grp.h>
55641.53Sdogcow
55651.84Schristos"
55661.84Schristosif test "x$ac_cv_have_decl_gid_from_group" = xyes; then :
55671.84Schristos  ac_have_decl=1
55681.76Spookaelse
55691.84Schristos  ac_have_decl=0
55701.76Spookafi
55711.53Sdogcow
55721.84Schristoscat >>confdefs.h <<_ACEOF
55731.84Schristos#define HAVE_DECL_GID_FROM_GROUP $ac_have_decl
55741.84Schristos_ACEOF
55751.84Schristosac_fn_c_check_decl "$LINENO" "pwcache_groupdb" "ac_cv_have_decl_pwcache_groupdb" "
55761.84Schristos#include <grp.h>
55771.53Sdogcow
55781.84Schristos"
55791.84Schristosif test "x$ac_cv_have_decl_pwcache_groupdb" = xyes; then :
55801.84Schristos  ac_have_decl=1
55811.53Sdogcowelse
55821.84Schristos  ac_have_decl=0
55831.53Sdogcowfi
55841.61Schristos
55851.84Schristoscat >>confdefs.h <<_ACEOF
55861.84Schristos#define HAVE_DECL_PWCACHE_GROUPDB $ac_have_decl
55871.84Schristos_ACEOF
55881.53Sdogcow
55891.91Schristosac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "
55901.91Schristos#include <string.h>
55911.91Schristos
55921.91Schristos"
55931.91Schristosif test "x$ac_cv_have_decl_strcasecmp" = xyes; then :
55941.91Schristos  ac_have_decl=1
55951.91Schristoselse
55961.91Schristos  ac_have_decl=0
55971.91Schristosfi
55981.91Schristos
55991.91Schristoscat >>confdefs.h <<_ACEOF
56001.91Schristos#define HAVE_DECL_STRCASECMP $ac_have_decl
56011.91Schristos_ACEOF
56021.92Schristosac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "
56031.92Schristos#include <string.h>
56041.92Schristos
56051.92Schristos"
56061.92Schristosif test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
56071.92Schristos  ac_have_decl=1
56081.92Schristoselse
56091.92Schristos  ac_have_decl=0
56101.92Schristosfi
56111.92Schristos
56121.92Schristoscat >>confdefs.h <<_ACEOF
56131.92Schristos#define HAVE_DECL_STRNCASECMP $ac_have_decl
56141.92Schristos_ACEOF
56151.85Schristosac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
56161.85Schristos#include <string.h>
56171.85Schristos
56181.85Schristos"
56191.85Schristosif test "x$ac_cv_have_decl_strlcpy" = xyes; then :
56201.85Schristos  ac_have_decl=1
56211.85Schristoselse
56221.85Schristos  ac_have_decl=0
56231.85Schristosfi
56241.85Schristos
56251.85Schristoscat >>confdefs.h <<_ACEOF
56261.85Schristos#define HAVE_DECL_STRLCPY $ac_have_decl
56271.85Schristos_ACEOF
56281.85Schristosac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "
56291.85Schristos#include <string.h>
56301.85Schristos
56311.85Schristos"
56321.85Schristosif test "x$ac_cv_have_decl_strlcat" = xyes; then :
56331.85Schristos  ac_have_decl=1
56341.85Schristoselse
56351.85Schristos  ac_have_decl=0
56361.85Schristosfi
56371.85Schristos
56381.85Schristoscat >>confdefs.h <<_ACEOF
56391.85Schristos#define HAVE_DECL_STRLCAT $ac_have_decl
56401.85Schristos_ACEOF
56411.85Schristosac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "
56421.85Schristos#include <string.h>
56431.85Schristos
56441.84Schristos"
56451.84Schristosif test "x$ac_cv_have_decl_strndup" = xyes; then :
56461.84Schristos  ac_have_decl=1
56471.76Spookaelse
56481.84Schristos  ac_have_decl=0
56491.63Sapbfi
56501.53Sdogcow
56511.84Schristoscat >>confdefs.h <<_ACEOF
56521.84Schristos#define HAVE_DECL_STRNDUP $ac_have_decl
56531.53Sdogcow_ACEOF
56541.85Schristosac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "
56551.85Schristos#include <string.h>
56561.85Schristos
56571.84Schristos"
56581.84Schristosif test "x$ac_cv_have_decl_strnlen" = xyes; then :
56591.84Schristos  ac_have_decl=1
56601.53Sdogcowelse
56611.84Schristos  ac_have_decl=0
56621.74Schristosfi
56631.53Sdogcow
56641.84Schristoscat >>confdefs.h <<_ACEOF
56651.84Schristos#define HAVE_DECL_STRNLEN $ac_have_decl
56661.84Schristos_ACEOF
56671.86Schristosac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
56681.86Schristos#include <string.h>
56691.86Schristos
56701.86Schristos"
56711.86Schristosif test "x$ac_cv_have_decl_strsep" = xyes; then :
56721.86Schristos  ac_have_decl=1
56731.86Schristoselse
56741.86Schristos  ac_have_decl=0
56751.86Schristosfi
56761.86Schristos
56771.86Schristoscat >>confdefs.h <<_ACEOF
56781.86Schristos#define HAVE_DECL_STRSEP $ac_have_decl
56791.86Schristos_ACEOF
56801.53Sdogcow
56811.84Schristosac_fn_c_check_decl "$LINENO" "strsuftoll" "ac_cv_have_decl_strsuftoll" "#include <stdlib.h>
56821.84Schristos"
56831.84Schristosif test "x$ac_cv_have_decl_strsuftoll" = xyes; then :
56841.84Schristos  ac_have_decl=1
56851.76Spookaelse
56861.84Schristos  ac_have_decl=0
56871.84Schristosfi
56881.53Sdogcow
56891.84Schristoscat >>confdefs.h <<_ACEOF
56901.84Schristos#define HAVE_DECL_STRSUFTOLL $ac_have_decl
56911.84Schristos_ACEOF
56921.85Schristosac_fn_c_check_decl "$LINENO" "mi_vector_hash" "ac_cv_have_decl_mi_vector_hash" "#include <stdlib.h>
56931.85Schristos"
56941.85Schristosif test "x$ac_cv_have_decl_mi_vector_hash" = xyes; then :
56951.85Schristos  ac_have_decl=1
56961.85Schristoselse
56971.85Schristos  ac_have_decl=0
56981.85Schristosfi
56991.85Schristos
57001.85Schristoscat >>confdefs.h <<_ACEOF
57011.85Schristos#define HAVE_DECL_MI_VECTOR_HASH $ac_have_decl
57021.85Schristos_ACEOF
57031.74Schristos
57041.84Schristosac_fn_c_check_decl "$LINENO" "lchflags" "ac_cv_have_decl_lchflags" "
57051.84Schristos#include <sys/stat.h>
57061.84Schristos#include <unistd.h>
57071.61Schristos
57081.84Schristos"
57091.84Schristosif test "x$ac_cv_have_decl_lchflags" = xyes; then :
57101.84Schristos  ac_have_decl=1
57111.53Sdogcowelse
57121.84Schristos  ac_have_decl=0
57131.76Spookafi
57141.53Sdogcow
57151.84Schristoscat >>confdefs.h <<_ACEOF
57161.84Schristos#define HAVE_DECL_LCHFLAGS $ac_have_decl
57171.84Schristos_ACEOF
57181.84Schristosac_fn_c_check_decl "$LINENO" "lchmod" "ac_cv_have_decl_lchmod" "
57191.84Schristos#include <sys/stat.h>
57201.84Schristos#include <unistd.h>
57211.53Sdogcow
57221.84Schristos"
57231.84Schristosif test "x$ac_cv_have_decl_lchmod" = xyes; then :
57241.84Schristos  ac_have_decl=1
57251.53Sdogcowelse
57261.84Schristos  ac_have_decl=0
57271.53Sdogcowfi
57281.76Spooka
57291.84Schristoscat >>confdefs.h <<_ACEOF
57301.84Schristos#define HAVE_DECL_LCHMOD $ac_have_decl
57311.84Schristos_ACEOF
57321.84Schristosac_fn_c_check_decl "$LINENO" "lchown" "ac_cv_have_decl_lchown" "
57331.84Schristos#include <sys/stat.h>
57341.84Schristos#include <unistd.h>
57351.61Schristos
57361.84Schristos"
57371.84Schristosif test "x$ac_cv_have_decl_lchown" = xyes; then :
57381.84Schristos  ac_have_decl=1
57391.53Sdogcowelse
57401.84Schristos  ac_have_decl=0
57411.76Spookafi
57421.53Sdogcow
57431.84Schristoscat >>confdefs.h <<_ACEOF
57441.84Schristos#define HAVE_DECL_LCHOWN $ac_have_decl
57451.84Schristos_ACEOF
57461.84Schristos
57471.84Schristos
57481.85Schristosac_fn_c_check_decl "$LINENO" "err" "ac_cv_have_decl_err" "
57491.85Schristos#ifdef HAVE_ERR_H
57501.85Schristos#include <err.h>
57511.85Schristos#endif
57521.85Schristos
57531.85Schristos"
57541.85Schristosif test "x$ac_cv_have_decl_err" = xyes; then :
57551.85Schristos  ac_have_decl=1
57561.85Schristoselse
57571.85Schristos  ac_have_decl=0
57581.85Schristosfi
57591.85Schristos
57601.85Schristoscat >>confdefs.h <<_ACEOF
57611.85Schristos#define HAVE_DECL_ERR $ac_have_decl
57621.85Schristos_ACEOF
57631.84Schristosac_fn_c_check_decl "$LINENO" "errc" "ac_cv_have_decl_errc" "
57641.84Schristos#ifdef HAVE_ERR_H
57651.84Schristos#include <err.h>
57661.84Schristos#endif
57671.61Schristos
57681.84Schristos"
57691.84Schristosif test "x$ac_cv_have_decl_errc" = xyes; then :
57701.84Schristos  ac_have_decl=1
57711.76Spookaelse
57721.84Schristos  ac_have_decl=0
57731.76Spookafi
57741.76Spooka
57751.84Schristoscat >>confdefs.h <<_ACEOF
57761.84Schristos#define HAVE_DECL_ERRC $ac_have_decl
57771.84Schristos_ACEOF
57781.85Schristosac_fn_c_check_decl "$LINENO" "errx" "ac_cv_have_decl_errx" "
57791.85Schristos#ifdef HAVE_ERR_H
57801.85Schristos#include <err.h>
57811.85Schristos#endif
57821.85Schristos
57831.85Schristos"
57841.85Schristosif test "x$ac_cv_have_decl_errx" = xyes; then :
57851.85Schristos  ac_have_decl=1
57861.85Schristoselse
57871.85Schristos  ac_have_decl=0
57881.85Schristosfi
57891.85Schristos
57901.85Schristoscat >>confdefs.h <<_ACEOF
57911.85Schristos#define HAVE_DECL_ERRX $ac_have_decl
57921.85Schristos_ACEOF
57931.84Schristosac_fn_c_check_decl "$LINENO" "verrc" "ac_cv_have_decl_verrc" "
57941.84Schristos#ifdef HAVE_ERR_H
57951.84Schristos#include <err.h>
57961.76Spooka#endif
57971.53Sdogcow
57981.84Schristos"
57991.84Schristosif test "x$ac_cv_have_decl_verrc" = xyes; then :
58001.84Schristos  ac_have_decl=1
58011.53Sdogcowelse
58021.84Schristos  ac_have_decl=0
58031.53Sdogcowfi
58041.61Schristos
58051.84Schristoscat >>confdefs.h <<_ACEOF
58061.84Schristos#define HAVE_DECL_VERRC $ac_have_decl
58071.84Schristos_ACEOF
58081.85Schristosac_fn_c_check_decl "$LINENO" "verrx" "ac_cv_have_decl_verrx" "
58091.85Schristos#ifdef HAVE_ERR_H
58101.85Schristos#include <err.h>
58111.85Schristos#endif
58121.85Schristos
58131.85Schristos"
58141.85Schristosif test "x$ac_cv_have_decl_verrx" = xyes; then :
58151.85Schristos  ac_have_decl=1
58161.85Schristoselse
58171.85Schristos  ac_have_decl=0
58181.85Schristosfi
58191.85Schristos
58201.85Schristoscat >>confdefs.h <<_ACEOF
58211.85Schristos#define HAVE_DECL_VERRX $ac_have_decl
58221.85Schristos_ACEOF
58231.85Schristosac_fn_c_check_decl "$LINENO" "warn" "ac_cv_have_decl_warn" "
58241.85Schristos#ifdef HAVE_ERR_H
58251.85Schristos#include <err.h>
58261.85Schristos#endif
58271.85Schristos
58281.85Schristos"
58291.85Schristosif test "x$ac_cv_have_decl_warn" = xyes; then :
58301.85Schristos  ac_have_decl=1
58311.85Schristoselse
58321.85Schristos  ac_have_decl=0
58331.85Schristosfi
58341.85Schristos
58351.85Schristoscat >>confdefs.h <<_ACEOF
58361.85Schristos#define HAVE_DECL_WARN $ac_have_decl
58371.85Schristos_ACEOF
58381.84Schristosac_fn_c_check_decl "$LINENO" "warnc" "ac_cv_have_decl_warnc" "
58391.84Schristos#ifdef HAVE_ERR_H
58401.84Schristos#include <err.h>
58411.84Schristos#endif
58421.53Sdogcow
58431.84Schristos"
58441.84Schristosif test "x$ac_cv_have_decl_warnc" = xyes; then :
58451.84Schristos  ac_have_decl=1
58461.53Sdogcowelse
58471.84Schristos  ac_have_decl=0
58481.53Sdogcowfi
58491.76Spooka
58501.84Schristoscat >>confdefs.h <<_ACEOF
58511.84Schristos#define HAVE_DECL_WARNC $ac_have_decl
58521.84Schristos_ACEOF
58531.85Schristosac_fn_c_check_decl "$LINENO" "warnx" "ac_cv_have_decl_warnx" "
58541.85Schristos#ifdef HAVE_ERR_H
58551.85Schristos#include <err.h>
58561.85Schristos#endif
58571.85Schristos
58581.85Schristos"
58591.85Schristosif test "x$ac_cv_have_decl_warnx" = xyes; then :
58601.85Schristos  ac_have_decl=1
58611.85Schristoselse
58621.85Schristos  ac_have_decl=0
58631.85Schristosfi
58641.85Schristos
58651.85Schristoscat >>confdefs.h <<_ACEOF
58661.85Schristos#define HAVE_DECL_WARNX $ac_have_decl
58671.85Schristos_ACEOF
58681.84Schristosac_fn_c_check_decl "$LINENO" "vwarnc" "ac_cv_have_decl_vwarnc" "
58691.84Schristos#ifdef HAVE_ERR_H
58701.84Schristos#include <err.h>
58711.76Spooka#endif
58721.53Sdogcow
58731.84Schristos"
58741.84Schristosif test "x$ac_cv_have_decl_vwarnc" = xyes; then :
58751.84Schristos  ac_have_decl=1
58761.53Sdogcowelse
58771.84Schristos  ac_have_decl=0
58781.76Spookafi
58791.61Schristos
58801.84Schristoscat >>confdefs.h <<_ACEOF
58811.84Schristos#define HAVE_DECL_VWARNC $ac_have_decl
58821.84Schristos_ACEOF
58831.85Schristosac_fn_c_check_decl "$LINENO" "vwarnx" "ac_cv_have_decl_vwarnx" "
58841.85Schristos#ifdef HAVE_ERR_H
58851.85Schristos#include <err.h>
58861.85Schristos#endif
58871.85Schristos
58881.85Schristos"
58891.85Schristosif test "x$ac_cv_have_decl_vwarnx" = xyes; then :
58901.85Schristos  ac_have_decl=1
58911.85Schristoselse
58921.85Schristos  ac_have_decl=0
58931.85Schristosfi
58941.85Schristos
58951.85Schristoscat >>confdefs.h <<_ACEOF
58961.85Schristos#define HAVE_DECL_VWARNX $ac_have_decl
58971.85Schristos_ACEOF
58981.84Schristos
58991.53Sdogcow
59001.84Schristosac_fn_c_check_decl "$LINENO" "htobe16" "ac_cv_have_decl_htobe16" "#include <sys/types.h>
59011.84Schristos"
59021.84Schristosif test "x$ac_cv_have_decl_htobe16" = xyes; then :
59031.84Schristos  ac_have_decl=1
59041.53Sdogcowelse
59051.84Schristos  ac_have_decl=0
59061.84Schristosfi
59071.76Spooka
59081.84Schristoscat >>confdefs.h <<_ACEOF
59091.84Schristos#define HAVE_DECL_HTOBE16 $ac_have_decl
59101.84Schristos_ACEOF
59111.84Schristosac_fn_c_check_decl "$LINENO" "htobe32" "ac_cv_have_decl_htobe32" "#include <sys/types.h>
59121.84Schristos"
59131.84Schristosif test "x$ac_cv_have_decl_htobe32" = xyes; then :
59141.84Schristos  ac_have_decl=1
59151.84Schristoselse
59161.84Schristos  ac_have_decl=0
59171.74Schristosfi
59181.84Schristos
59191.84Schristoscat >>confdefs.h <<_ACEOF
59201.84Schristos#define HAVE_DECL_HTOBE32 $ac_have_decl
59211.84Schristos_ACEOF
59221.84Schristosac_fn_c_check_decl "$LINENO" "htobe64" "ac_cv_have_decl_htobe64" "#include <sys/types.h>
59231.84Schristos"
59241.84Schristosif test "x$ac_cv_have_decl_htobe64" = xyes; then :
59251.84Schristos  ac_have_decl=1
59261.76Spookaelse
59271.84Schristos  ac_have_decl=0
59281.84Schristosfi
59291.76Spooka
59301.84Schristoscat >>confdefs.h <<_ACEOF
59311.84Schristos#define HAVE_DECL_HTOBE64 $ac_have_decl
59321.84Schristos_ACEOF
59331.84Schristosac_fn_c_check_decl "$LINENO" "htole16" "ac_cv_have_decl_htole16" "#include <sys/types.h>
59341.84Schristos"
59351.84Schristosif test "x$ac_cv_have_decl_htole16" = xyes; then :
59361.84Schristos  ac_have_decl=1
59371.84Schristoselse
59381.84Schristos  ac_have_decl=0
59391.84Schristosfi
59401.53Sdogcow
59411.84Schristoscat >>confdefs.h <<_ACEOF
59421.84Schristos#define HAVE_DECL_HTOLE16 $ac_have_decl
59431.74Schristos_ACEOF
59441.84Schristosac_fn_c_check_decl "$LINENO" "htole32" "ac_cv_have_decl_htole32" "#include <sys/types.h>
59451.84Schristos"
59461.84Schristosif test "x$ac_cv_have_decl_htole32" = xyes; then :
59471.84Schristos  ac_have_decl=1
59481.53Sdogcowelse
59491.84Schristos  ac_have_decl=0
59501.76Spookafi
59511.84Schristos
59521.84Schristoscat >>confdefs.h <<_ACEOF
59531.84Schristos#define HAVE_DECL_HTOLE32 $ac_have_decl
59541.84Schristos_ACEOF
59551.84Schristosac_fn_c_check_decl "$LINENO" "htole64" "ac_cv_have_decl_htole64" "#include <sys/types.h>
59561.84Schristos"
59571.84Schristosif test "x$ac_cv_have_decl_htole64" = xyes; then :
59581.84Schristos  ac_have_decl=1
59591.84Schristoselse
59601.84Schristos  ac_have_decl=0
59611.53Sdogcowfi
59621.61Schristos
59631.84Schristoscat >>confdefs.h <<_ACEOF
59641.84Schristos#define HAVE_DECL_HTOLE64 $ac_have_decl
59651.84Schristos_ACEOF
59661.84Schristosac_fn_c_check_decl "$LINENO" "be16toh" "ac_cv_have_decl_be16toh" "#include <sys/types.h>
59671.84Schristos"
59681.84Schristosif test "x$ac_cv_have_decl_be16toh" = xyes; then :
59691.84Schristos  ac_have_decl=1
59701.84Schristoselse
59711.84Schristos  ac_have_decl=0
59721.84Schristosfi
59731.53Sdogcow
59741.84Schristoscat >>confdefs.h <<_ACEOF
59751.84Schristos#define HAVE_DECL_BE16TOH $ac_have_decl
59761.84Schristos_ACEOF
59771.84Schristosac_fn_c_check_decl "$LINENO" "be32toh" "ac_cv_have_decl_be32toh" "#include <sys/types.h>
59781.84Schristos"
59791.84Schristosif test "x$ac_cv_have_decl_be32toh" = xyes; then :
59801.84Schristos  ac_have_decl=1
59811.53Sdogcowelse
59821.84Schristos  ac_have_decl=0
59831.84Schristosfi
59841.76Spooka
59851.84Schristoscat >>confdefs.h <<_ACEOF
59861.84Schristos#define HAVE_DECL_BE32TOH $ac_have_decl
59871.84Schristos_ACEOF
59881.84Schristosac_fn_c_check_decl "$LINENO" "be64toh" "ac_cv_have_decl_be64toh" "#include <sys/types.h>
59891.84Schristos"
59901.84Schristosif test "x$ac_cv_have_decl_be64toh" = xyes; then :
59911.84Schristos  ac_have_decl=1
59921.84Schristoselse
59931.84Schristos  ac_have_decl=0
59941.53Sdogcowfi
59951.84Schristos
59961.84Schristoscat >>confdefs.h <<_ACEOF
59971.84Schristos#define HAVE_DECL_BE64TOH $ac_have_decl
59981.84Schristos_ACEOF
59991.84Schristosac_fn_c_check_decl "$LINENO" "le16toh" "ac_cv_have_decl_le16toh" "#include <sys/types.h>
60001.84Schristos"
60011.84Schristosif test "x$ac_cv_have_decl_le16toh" = xyes; then :
60021.84Schristos  ac_have_decl=1
60031.76Spookaelse
60041.84Schristos  ac_have_decl=0
60051.84Schristosfi
60061.76Spooka
60071.84Schristoscat >>confdefs.h <<_ACEOF
60081.84Schristos#define HAVE_DECL_LE16TOH $ac_have_decl
60091.84Schristos_ACEOF
60101.84Schristosac_fn_c_check_decl "$LINENO" "le32toh" "ac_cv_have_decl_le32toh" "#include <sys/types.h>
60111.84Schristos"
60121.84Schristosif test "x$ac_cv_have_decl_le32toh" = xyes; then :
60131.84Schristos  ac_have_decl=1
60141.84Schristoselse
60151.84Schristos  ac_have_decl=0
60161.84Schristosfi
60171.53Sdogcow
60181.84Schristoscat >>confdefs.h <<_ACEOF
60191.84Schristos#define HAVE_DECL_LE32TOH $ac_have_decl
60201.74Schristos_ACEOF
60211.84Schristosac_fn_c_check_decl "$LINENO" "le64toh" "ac_cv_have_decl_le64toh" "#include <sys/types.h>
60221.84Schristos"
60231.84Schristosif test "x$ac_cv_have_decl_le64toh" = xyes; then :
60241.84Schristos  ac_have_decl=1
60251.53Sdogcowelse
60261.84Schristos  ac_have_decl=0
60271.53Sdogcowfi
60281.61Schristos
60291.84Schristoscat >>confdefs.h <<_ACEOF
60301.84Schristos#define HAVE_DECL_LE64TOH $ac_have_decl
60311.84Schristos_ACEOF
60321.84Schristos
60331.53Sdogcow
60341.84Schristosac_fn_c_check_decl "$LINENO" "bswap16" "ac_cv_have_decl_bswap16" "#include <machine/bswap.h>
60351.84Schristos"
60361.84Schristosif test "x$ac_cv_have_decl_bswap16" = xyes; then :
60371.84Schristos  ac_have_decl=1
60381.53Sdogcowelse
60391.84Schristos  ac_have_decl=0
60401.84Schristosfi
60411.76Spooka
60421.84Schristoscat >>confdefs.h <<_ACEOF
60431.84Schristos#define HAVE_DECL_BSWAP16 $ac_have_decl
60441.84Schristos_ACEOF
60451.84Schristosac_fn_c_check_decl "$LINENO" "bswap32" "ac_cv_have_decl_bswap32" "#include <machine/bswap.h>
60461.84Schristos"
60471.84Schristosif test "x$ac_cv_have_decl_bswap32" = xyes; then :
60481.84Schristos  ac_have_decl=1
60491.84Schristoselse
60501.84Schristos  ac_have_decl=0
60511.74Schristosfi
60521.53Sdogcow
60531.84Schristoscat >>confdefs.h <<_ACEOF
60541.84Schristos#define HAVE_DECL_BSWAP32 $ac_have_decl
60551.74Schristos_ACEOF
60561.84Schristosac_fn_c_check_decl "$LINENO" "bswap64" "ac_cv_have_decl_bswap64" "#include <machine/bswap.h>
60571.84Schristos"
60581.84Schristosif test "x$ac_cv_have_decl_bswap64" = xyes; then :
60591.84Schristos  ac_have_decl=1
60601.74Schristoselse
60611.84Schristos  ac_have_decl=0
60621.74Schristosfi
60631.74Schristos
60641.84Schristoscat >>confdefs.h <<_ACEOF
60651.84Schristos#define HAVE_DECL_BSWAP64 $ac_have_decl
60661.84Schristos_ACEOF
60671.84Schristos
60681.61Schristos
60691.84Schristosac_fn_c_check_decl "$LINENO" "be16enc" "ac_cv_have_decl_be16enc" "#include <sys/endian.h>
60701.84Schristos"
60711.84Schristosif test "x$ac_cv_have_decl_be16enc" = xyes; then :
60721.84Schristos  ac_have_decl=1
60731.74Schristoselse
60741.84Schristos  ac_have_decl=0
60751.84Schristosfi
60761.53Sdogcow
60771.84Schristoscat >>confdefs.h <<_ACEOF
60781.84Schristos#define HAVE_DECL_BE16ENC $ac_have_decl
60791.84Schristos_ACEOF
60801.84Schristosac_fn_c_check_decl "$LINENO" "le16enc" "ac_cv_have_decl_le16enc" "#include <sys/endian.h>
60811.84Schristos"
60821.84Schristosif test "x$ac_cv_have_decl_le16enc" = xyes; then :
60831.84Schristos  ac_have_decl=1
60841.84Schristoselse
60851.84Schristos  ac_have_decl=0
60861.74Schristosfi
60871.84Schristos
60881.84Schristoscat >>confdefs.h <<_ACEOF
60891.84Schristos#define HAVE_DECL_LE16ENC $ac_have_decl
60901.84Schristos_ACEOF
60911.84Schristosac_fn_c_check_decl "$LINENO" "be16dec" "ac_cv_have_decl_be16dec" "#include <sys/endian.h>
60921.84Schristos"
60931.84Schristosif test "x$ac_cv_have_decl_be16dec" = xyes; then :
60941.84Schristos  ac_have_decl=1
60951.74Schristoselse
60961.84Schristos  ac_have_decl=0
60971.84Schristosfi
60981.74Schristos
60991.84Schristoscat >>confdefs.h <<_ACEOF
61001.84Schristos#define HAVE_DECL_BE16DEC $ac_have_decl
61011.84Schristos_ACEOF
61021.84Schristosac_fn_c_check_decl "$LINENO" "le16dec" "ac_cv_have_decl_le16dec" "#include <sys/endian.h>
61031.84Schristos"
61041.84Schristosif test "x$ac_cv_have_decl_le16dec" = xyes; then :
61051.84Schristos  ac_have_decl=1
61061.84Schristoselse
61071.84Schristos  ac_have_decl=0
61081.84Schristosfi
61091.54Swiz
61101.84Schristoscat >>confdefs.h <<_ACEOF
61111.84Schristos#define HAVE_DECL_LE16DEC $ac_have_decl
61121.74Schristos_ACEOF
61131.84Schristosac_fn_c_check_decl "$LINENO" "be32enc" "ac_cv_have_decl_be32enc" "#include <sys/endian.h>
61141.84Schristos"
61151.84Schristosif test "x$ac_cv_have_decl_be32enc" = xyes; then :
61161.84Schristos  ac_have_decl=1
61171.74Schristoselse
61181.84Schristos  ac_have_decl=0
61191.74Schristosfi
61201.84Schristos
61211.84Schristoscat >>confdefs.h <<_ACEOF
61221.84Schristos#define HAVE_DECL_BE32ENC $ac_have_decl
61231.84Schristos_ACEOF
61241.84Schristosac_fn_c_check_decl "$LINENO" "le32enc" "ac_cv_have_decl_le32enc" "#include <sys/endian.h>
61251.84Schristos"
61261.84Schristosif test "x$ac_cv_have_decl_le32enc" = xyes; then :
61271.84Schristos  ac_have_decl=1
61281.84Schristoselse
61291.84Schristos  ac_have_decl=0
61301.54Swizfi
61311.61Schristos
61321.84Schristoscat >>confdefs.h <<_ACEOF
61331.84Schristos#define HAVE_DECL_LE32ENC $ac_have_decl
61341.84Schristos_ACEOF
61351.84Schristosac_fn_c_check_decl "$LINENO" "be32dec" "ac_cv_have_decl_be32dec" "#include <sys/endian.h>
61361.84Schristos"
61371.84Schristosif test "x$ac_cv_have_decl_be32dec" = xyes; then :
61381.84Schristos  ac_have_decl=1
61391.84Schristoselse
61401.84Schristos  ac_have_decl=0
61411.84Schristosfi
61421.74Schristos
61431.84Schristoscat >>confdefs.h <<_ACEOF
61441.84Schristos#define HAVE_DECL_BE32DEC $ac_have_decl
61451.84Schristos_ACEOF
61461.84Schristosac_fn_c_check_decl "$LINENO" "le32dec" "ac_cv_have_decl_le32dec" "#include <sys/endian.h>
61471.84Schristos"
61481.84Schristosif test "x$ac_cv_have_decl_le32dec" = xyes; then :
61491.84Schristos  ac_have_decl=1
61501.76Spookaelse
61511.84Schristos  ac_have_decl=0
61521.76Spookafi
61531.53Sdogcow
61541.84Schristoscat >>confdefs.h <<_ACEOF
61551.84Schristos#define HAVE_DECL_LE32DEC $ac_have_decl
61561.74Schristos_ACEOF
61571.84Schristosac_fn_c_check_decl "$LINENO" "be64enc" "ac_cv_have_decl_be64enc" "#include <sys/endian.h>
61581.84Schristos"
61591.84Schristosif test "x$ac_cv_have_decl_be64enc" = xyes; then :
61601.84Schristos  ac_have_decl=1
61611.74Schristoselse
61621.84Schristos  ac_have_decl=0
61631.54Swizfi
61641.74Schristos
61651.84Schristoscat >>confdefs.h <<_ACEOF
61661.84Schristos#define HAVE_DECL_BE64ENC $ac_have_decl
61671.84Schristos_ACEOF
61681.84Schristosac_fn_c_check_decl "$LINENO" "le64enc" "ac_cv_have_decl_le64enc" "#include <sys/endian.h>
61691.84Schristos"
61701.84Schristosif test "x$ac_cv_have_decl_le64enc" = xyes; then :
61711.84Schristos  ac_have_decl=1
61721.76Spookaelse
61731.84Schristos  ac_have_decl=0
61741.74Schristosfi
61751.54Swiz
61761.84Schristoscat >>confdefs.h <<_ACEOF
61771.84Schristos#define HAVE_DECL_LE64ENC $ac_have_decl
61781.84Schristos_ACEOF
61791.84Schristosac_fn_c_check_decl "$LINENO" "be64dec" "ac_cv_have_decl_be64dec" "#include <sys/endian.h>
61801.84Schristos"
61811.84Schristosif test "x$ac_cv_have_decl_be64dec" = xyes; then :
61821.84Schristos  ac_have_decl=1
61831.74Schristoselse
61841.84Schristos  ac_have_decl=0
61851.84Schristosfi
61861.74Schristos
61871.84Schristoscat >>confdefs.h <<_ACEOF
61881.84Schristos#define HAVE_DECL_BE64DEC $ac_have_decl
61891.74Schristos_ACEOF
61901.84Schristosac_fn_c_check_decl "$LINENO" "le64dec" "ac_cv_have_decl_le64dec" "#include <sys/endian.h>
61911.84Schristos"
61921.84Schristosif test "x$ac_cv_have_decl_le64dec" = xyes; then :
61931.84Schristos  ac_have_decl=1
61941.54Swizelse
61951.84Schristos  ac_have_decl=0
61961.74Schristosfi
61971.54Swiz
61981.84Schristoscat >>confdefs.h <<_ACEOF
61991.84Schristos#define HAVE_DECL_LE64DEC $ac_have_decl
62001.84Schristos_ACEOF
62011.84Schristos
62021.74Schristos
62031.84Schristosac_fn_c_check_decl "$LINENO" "fstatvfs" "ac_cv_have_decl_fstatvfs" "#include <sys/statvfs.h>
62041.84Schristos"
62051.84Schristosif test "x$ac_cv_have_decl_fstatvfs" = xyes; then :
62061.84Schristos  ac_have_decl=1
62071.74Schristoselse
62081.84Schristos  ac_have_decl=0
62091.84Schristosfi
62101.61Schristos
62111.84Schristoscat >>confdefs.h <<_ACEOF
62121.84Schristos#define HAVE_DECL_FSTATVFS $ac_have_decl
62131.84Schristos_ACEOF
62141.54Swiz
62151.54Swiz
62161.84Schristosac_fn_c_check_decl "$LINENO" "setgroupent" "ac_cv_have_decl_setgroupent" "
62171.76Spooka#include <sys/types.h>
62181.76Spooka#include <grp.h>
62191.76Spooka#include <pwd.h>
62201.45Sjmc
62211.84Schristos"
62221.84Schristosif test "x$ac_cv_have_decl_setgroupent" = xyes; then :
62231.84Schristos  ac_have_decl=1
62241.74Schristoselse
62251.84Schristos  ac_have_decl=0
62261.1Stvfi
62271.54Swiz
62281.84Schristoscat >>confdefs.h <<_ACEOF
62291.84Schristos#define HAVE_DECL_SETGROUPENT $ac_have_decl
62301.84Schristos_ACEOF
62311.84Schristosac_fn_c_check_decl "$LINENO" "setpassent" "ac_cv_have_decl_setpassent" "
62321.33Sthorpej#include <sys/types.h>
62331.8Stv#include <grp.h>
62341.8Stv#include <pwd.h>
62351.8Stv
62361.84Schristos"
62371.84Schristosif test "x$ac_cv_have_decl_setpassent" = xyes; then :
62381.84Schristos  ac_have_decl=1
62391.8Stvelse
62401.84Schristos  ac_have_decl=0
62411.8Stvfi
62421.8Stv
62431.84Schristoscat >>confdefs.h <<_ACEOF
62441.84Schristos#define HAVE_DECL_SETPASSENT $ac_have_decl
62451.84Schristos_ACEOF
62461.76Spooka
62471.8Stv
62481.4Stv# regcomp() and regexec() are also names of functions in the old V8
62491.4Stv# regexp package.  To avoid them, we need to find out who has regfree().
62501.4Stv
62511.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regfree in -lregex" >&5
62521.84Schristos$as_echo_n "checking for regfree in -lregex... " >&6; }
62531.84Schristosif ${ac_cv_lib_regex_regfree+:} false; then :
62541.84Schristos  $as_echo_n "(cached) " >&6
62551.4Stvelse
62561.4Stv  ac_check_lib_save_LIBS=$LIBS
62571.4StvLIBS="-lregex  $LIBS"
62581.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
62591.84Schristos/* end confdefs.h.  */
62601.4Stv
62611.84Schristos/* Override any GCC internal prototype to avoid an error.
62621.84Schristos   Use char because int might match the return type of a GCC
62631.84Schristos   builtin and then its argument prototype would still apply.  */
62641.4Stv#ifdef __cplusplus
62651.4Stvextern "C"
62661.4Stv#endif
62671.4Stvchar regfree ();
62681.4Stvint
62691.4Stvmain ()
62701.4Stv{
62711.84Schristosreturn regfree ();
62721.4Stv  ;
62731.4Stv  return 0;
62741.4Stv}
62751.4Stv_ACEOF
62761.84Schristosif ac_fn_c_try_link "$LINENO"; then :
62771.4Stv  ac_cv_lib_regex_regfree=yes
62781.4Stvelse
62791.84Schristos  ac_cv_lib_regex_regfree=no
62801.4Stvfi
62811.84Schristosrm -f core conftest.err conftest.$ac_objext \
62821.84Schristos    conftest$ac_exeext conftest.$ac_ext
62831.4StvLIBS=$ac_check_lib_save_LIBS
62841.4Stvfi
62851.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regfree" >&5
62861.84Schristos$as_echo "$ac_cv_lib_regex_regfree" >&6; }
62871.84Schristosif test "x$ac_cv_lib_regex_regfree" = xyes; then :
62881.84Schristos  cat >>confdefs.h <<_ACEOF
62891.4Stv#define HAVE_LIBREGEX 1
62901.84Schristos_ACEOF
62911.4Stv
62921.4Stv  LIBS="-lregex $LIBS"
62931.4Stv
62941.4Stvfi
62951.4Stv
62961.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
62971.84Schristos$as_echo_n "checking for library containing regfree... " >&6; }
62981.84Schristosif ${ac_cv_search_regfree+:} false; then :
62991.84Schristos  $as_echo_n "(cached) " >&6
63001.1Stvelse
63011.1Stv  ac_func_search_save_LIBS=$LIBS
63021.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
63031.84Schristos/* end confdefs.h.  */
63041.1Stv
63051.84Schristos/* Override any GCC internal prototype to avoid an error.
63061.84Schristos   Use char because int might match the return type of a GCC
63071.84Schristos   builtin and then its argument prototype would still apply.  */
63081.1Stv#ifdef __cplusplus
63091.1Stvextern "C"
63101.1Stv#endif
63111.4Stvchar regfree ();
63121.1Stvint
63131.1Stvmain ()
63141.1Stv{
63151.84Schristosreturn regfree ();
63161.1Stv  ;
63171.1Stv  return 0;
63181.1Stv}
63191.1Stv_ACEOF
63201.84Schristosfor ac_lib in '' rx posix; do
63211.84Schristos  if test -z "$ac_lib"; then
63221.84Schristos    ac_res="none required"
63231.84Schristos  else
63241.84Schristos    ac_res=-l$ac_lib
63251.66Stsutsui    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
63261.84Schristos  fi
63271.84Schristos  if ac_fn_c_try_link "$LINENO"; then :
63281.84Schristos  ac_cv_search_regfree=$ac_res
63291.84Schristosfi
63301.84Schristosrm -f core conftest.err conftest.$ac_objext \
63311.84Schristos    conftest$ac_exeext
63321.84Schristos  if ${ac_cv_search_regfree+:} false; then :
63331.84Schristos  break
63341.84Schristosfi
63351.84Schristosdone
63361.84Schristosif ${ac_cv_search_regfree+:} false; then :
63371.1Stv
63381.66Stsutsuielse
63391.84Schristos  ac_cv_search_regfree=no
63401.1Stvfi
63411.84Schristosrm conftest.$ac_ext
63421.1StvLIBS=$ac_func_search_save_LIBS
63431.1Stvfi
63441.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
63451.84Schristos$as_echo "$ac_cv_search_regfree" >&6; }
63461.84Schristosac_res=$ac_cv_search_regfree
63471.84Schristosif test "$ac_res" != no; then :
63481.84Schristos  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
63491.1Stv
63501.1Stvfi
63511.1Stv
63521.84Schristos
63531.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
63541.84Schristos$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
63551.84Schristosif ${ac_cv_lib_rt_clock_gettime+:} false; then :
63561.84Schristos  $as_echo_n "(cached) " >&6
63571.78Sjmcneillelse
63581.78Sjmcneill  ac_check_lib_save_LIBS=$LIBS
63591.78SjmcneillLIBS="-lrt  $LIBS"
63601.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
63611.84Schristos/* end confdefs.h.  */
63621.78Sjmcneill
63631.84Schristos/* Override any GCC internal prototype to avoid an error.
63641.84Schristos   Use char because int might match the return type of a GCC
63651.84Schristos   builtin and then its argument prototype would still apply.  */
63661.78Sjmcneill#ifdef __cplusplus
63671.78Sjmcneillextern "C"
63681.78Sjmcneill#endif
63691.78Sjmcneillchar clock_gettime ();
63701.78Sjmcneillint
63711.78Sjmcneillmain ()
63721.78Sjmcneill{
63731.84Schristosreturn clock_gettime ();
63741.78Sjmcneill  ;
63751.78Sjmcneill  return 0;
63761.78Sjmcneill}
63771.78Sjmcneill_ACEOF
63781.84Schristosif ac_fn_c_try_link "$LINENO"; then :
63791.78Sjmcneill  ac_cv_lib_rt_clock_gettime=yes
63801.78Sjmcneillelse
63811.84Schristos  ac_cv_lib_rt_clock_gettime=no
63821.78Sjmcneillfi
63831.84Schristosrm -f core conftest.err conftest.$ac_objext \
63841.84Schristos    conftest$ac_exeext conftest.$ac_ext
63851.78SjmcneillLIBS=$ac_check_lib_save_LIBS
63861.78Sjmcneillfi
63871.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
63881.84Schristos$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
63891.84Schristosif test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
63901.84Schristos  cat >>confdefs.h <<_ACEOF
63911.78Sjmcneill#define HAVE_LIBRT 1
63921.84Schristos_ACEOF
63931.78Sjmcneill
63941.78Sjmcneill  LIBS="-lrt $LIBS"
63951.78Sjmcneill
63961.78Sjmcneillfi
63971.78Sjmcneill
63981.84Schristos
63991.76Spookafor ac_func in fparseln
64001.84Schristosdo :
64011.84Schristos  ac_fn_c_check_func "$LINENO" "fparseln" "ac_cv_func_fparseln"
64021.84Schristosif test "x$ac_cv_func_fparseln" = xyes; then :
64031.84Schristos  cat >>confdefs.h <<_ACEOF
64041.84Schristos#define HAVE_FPARSELN 1
64051.84Schristos_ACEOF
64061.84Schristos
64071.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fparseln seems to work" >&5
64081.84Schristos$as_echo_n "checking if fparseln seems to work... " >&6; }
64091.84Schristos    if test "$cross_compiling" = yes; then :
64101.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking farseln" >&5
64111.84Schristos$as_echo "$as_me: WARNING: cross compiling: not checking farseln" >&2;}
64121.74Schristos
64131.84Schristoselse
64141.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64151.84Schristos/* end confdefs.h.  */
64161.68Stnozaki
64171.68Stnozaki#define _NETBSD_SOURCE
64181.68Stnozaki#include <stdio.h>
64191.68Stnozaki#include <stdlib.h>
64201.68Stnozaki#define CONFTEST	"conftest.fparseln"
64211.68Stnozaki#define COMMENT		'#'
64221.68Stnozakiint
64231.68Stnozakimain(void)
64241.68Stnozaki{
64251.68Stnozaki	static const char delim[3] = { '\0', '\0', COMMENT };
64261.68Stnozaki	FILE *fp;
64271.68Stnozaki	char *ptr;
64281.68Stnozaki	fp = fopen(CONFTEST, "w+");
64291.68Stnozaki	if (fp != NULL) {
64301.68Stnozaki		unlink(CONFTEST);
64311.68Stnozaki		ungetc(COMMENT, fp);
64321.68Stnozaki		ptr = fparseln(fp, NULL, NULL, delim,
64331.68Stnozaki		    FPARSELN_UNESCALL);
64341.68Stnozaki		fclose(fp);
64351.68Stnozaki		if (ptr == NULL)
64361.68Stnozaki			exit(0);
64371.68Stnozaki	}
64381.68Stnozaki	exit(1);
64391.68Stnozaki}
64401.68Stnozaki
64411.68Stnozaki_ACEOF
64421.84Schristosif ac_fn_c_try_run "$LINENO"; then :
64431.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64441.84Schristos$as_echo "yes" >&6; }
64451.84Schristoselse
64461.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64471.84Schristos$as_echo "no" >&6; }
64481.84Schristos
64491.84Schristos$as_echo "#define BROKEN_FPARSELN 1" >>confdefs.h
64501.68Stnozaki
64511.68Stnozakifi
64521.84Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
64531.84Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
64541.68Stnozakifi
64551.68Stnozaki
64561.84Schristos
64571.68Stnozakifi
64581.68Stnozakidone
64591.68Stnozaki
64601.84Schristos
64611.102Slukem
64621.104Slukemnb_cv_check_cc_flags=
64631.102Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
64641.102Slukem$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
64651.102Slukemif ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
64661.102Slukem  $as_echo_n "(cached) " >&6
64671.102Slukemelse
64681.102Slukem
64691.102Slukem  ax_check_save_flags=$CFLAGS
64701.102Slukem  CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
64711.102Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64721.102Slukem/* end confdefs.h.  */
64731.102Slukem
64741.102Slukemint
64751.102Slukemmain ()
64761.102Slukem{
64771.102Slukem
64781.102Slukem  ;
64791.102Slukem  return 0;
64801.102Slukem}
64811.102Slukem_ACEOF
64821.102Slukemif ac_fn_c_try_compile "$LINENO"; then :
64831.102Slukem  ax_cv_check_cflags___Werror_unknown_warning_option=yes
64841.102Slukemelse
64851.102Slukem  ax_cv_check_cflags___Werror_unknown_warning_option=no
64861.102Slukemfi
64871.102Slukemrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64881.102Slukem  CFLAGS=$ax_check_save_flags
64891.102Slukemfi
64901.102Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
64911.102Slukem$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
64921.102Slukemif test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
64931.104Slukem  nb_cv_check_cc_flags=-Werror=unknown-warning-option
64941.102Slukemelse
64951.102Slukem  :
64961.102Slukemfi
64971.102Slukem
64981.102Slukem
64991.104Slukemas_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-no-cpp-precomp" | $as_tr_sh`
65001.102Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-cpp-precomp" >&5
65011.102Slukem$as_echo_n "checking whether C compiler accepts -no-cpp-precomp... " >&6; }
65021.102Slukemif eval \${$as_CACHEVAR+:} false; then :
65031.102Slukem  $as_echo_n "(cached) " >&6
65041.102Slukemelse
65051.102Slukem
65061.102Slukem  ax_check_save_flags=$CFLAGS
65071.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -no-cpp-precomp"
65081.102Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65091.102Slukem/* end confdefs.h.  */
65101.102Slukem
65111.102Slukemint
65121.102Slukemmain ()
65131.102Slukem{
65141.102Slukem
65151.102Slukem  ;
65161.102Slukem  return 0;
65171.102Slukem}
65181.102Slukem_ACEOF
65191.102Slukemif ac_fn_c_try_compile "$LINENO"; then :
65201.102Slukem  eval "$as_CACHEVAR=yes"
65211.102Slukemelse
65221.102Slukem  eval "$as_CACHEVAR=no"
65231.102Slukemfi
65241.102Slukemrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65251.102Slukem  CFLAGS=$ax_check_save_flags
65261.102Slukemfi
65271.102Slukemeval ac_res=\$$as_CACHEVAR
65281.102Slukem	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
65291.102Slukem$as_echo "$ac_res" >&6; }
65301.102Slukemif eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
65311.102Slukem  CC_NO_CPP_PRECOMP=-no-cpp-precomp
65321.102Slukemelse
65331.102Slukem  :
65341.102Slukemfi
65351.102Slukem
65361.102Slukem
65371.102Slukem
65381.102Slukem
65391.104Slukemas_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Waddress-of-packed-member" | $as_tr_sh`
65401.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress-of-packed-member" >&5
65411.103Slukem$as_echo_n "checking whether C compiler accepts -Waddress-of-packed-member... " >&6; }
65421.103Slukemif eval \${$as_CACHEVAR+:} false; then :
65431.103Slukem  $as_echo_n "(cached) " >&6
65441.103Slukemelse
65451.103Slukem
65461.103Slukem  ax_check_save_flags=$CFLAGS
65471.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Waddress-of-packed-member"
65481.103Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65491.103Slukem/* end confdefs.h.  */
65501.103Slukem
65511.103Slukemint
65521.103Slukemmain ()
65531.103Slukem{
65541.103Slukem
65551.103Slukem  ;
65561.103Slukem  return 0;
65571.103Slukem}
65581.103Slukem_ACEOF
65591.103Slukemif ac_fn_c_try_compile "$LINENO"; then :
65601.103Slukem  eval "$as_CACHEVAR=yes"
65611.103Slukemelse
65621.103Slukem  eval "$as_CACHEVAR=no"
65631.103Slukemfi
65641.103Slukemrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65651.103Slukem  CFLAGS=$ax_check_save_flags
65661.103Slukemfi
65671.103Slukemeval ac_res=\$$as_CACHEVAR
65681.103Slukem	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
65691.103Slukem$as_echo "$ac_res" >&6; }
65701.103Slukemif eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
65711.103Slukem  CC_WNO_ADDRESS_OF_PACKED_MEMBER=-Wno-address-of-packed-member
65721.103Slukemelse
65731.103Slukem  :
65741.103Slukemfi
65751.103Slukem
65761.103Slukem
65771.103Slukem
65781.104Slukemas_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wcast-function-type" | $as_tr_sh`
65791.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-function-type" >&5
65801.103Slukem$as_echo_n "checking whether C compiler accepts -Wcast-function-type... " >&6; }
65811.103Slukemif eval \${$as_CACHEVAR+:} false; then :
65821.103Slukem  $as_echo_n "(cached) " >&6
65831.103Slukemelse
65841.103Slukem
65851.103Slukem  ax_check_save_flags=$CFLAGS
65861.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wcast-function-type"
65871.103Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65881.103Slukem/* end confdefs.h.  */
65891.103Slukem
65901.103Slukemint
65911.103Slukemmain ()
65921.103Slukem{
65931.103Slukem
65941.103Slukem  ;
65951.103Slukem  return 0;
65961.103Slukem}
65971.103Slukem_ACEOF
65981.103Slukemif ac_fn_c_try_compile "$LINENO"; then :
65991.103Slukem  eval "$as_CACHEVAR=yes"
66001.103Slukemelse
66011.103Slukem  eval "$as_CACHEVAR=no"
66021.103Slukemfi
66031.103Slukemrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66041.103Slukem  CFLAGS=$ax_check_save_flags
66051.103Slukemfi
66061.103Slukemeval ac_res=\$$as_CACHEVAR
66071.103Slukem	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
66081.103Slukem$as_echo "$ac_res" >&6; }
66091.103Slukemif eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
66101.103Slukem  CC_WNO_CAST_FUNCTION_TYPE=-Wno-cast-function-type
66111.103Slukemelse
66121.103Slukem  :
66131.103Slukemfi
66141.103Slukem
66151.103Slukem
66161.103Slukem
66171.104Slukemas_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Werror=address-of-packed-member" | $as_tr_sh`
66181.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=address-of-packed-member" >&5
66191.103Slukem$as_echo_n "checking whether C compiler accepts -Werror=address-of-packed-member... " >&6; }
66201.103Slukemif eval \${$as_CACHEVAR+:} false; then :
66211.103Slukem  $as_echo_n "(cached) " >&6
66221.103Slukemelse
66231.103Slukem
66241.103Slukem  ax_check_save_flags=$CFLAGS
66251.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Werror=address-of-packed-member"
66261.103Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66271.103Slukem/* end confdefs.h.  */
66281.103Slukem
66291.103Slukemint
66301.103Slukemmain ()
66311.103Slukem{
66321.103Slukem
66331.103Slukem  ;
66341.103Slukem  return 0;
66351.103Slukem}
66361.103Slukem_ACEOF
66371.103Slukemif ac_fn_c_try_compile "$LINENO"; then :
66381.103Slukem  eval "$as_CACHEVAR=yes"
66391.103Slukemelse
66401.103Slukem  eval "$as_CACHEVAR=no"
66411.103Slukemfi
66421.103Slukemrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66431.103Slukem  CFLAGS=$ax_check_save_flags
66441.103Slukemfi
66451.103Slukemeval ac_res=\$$as_CACHEVAR
66461.103Slukem	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
66471.103Slukem$as_echo "$ac_res" >&6; }
66481.103Slukemif eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
66491.103Slukem  CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER=-Wno-error=address-of-packed-member
66501.103Slukemelse
66511.103Slukem  :
66521.103Slukemfi
66531.103Slukem
66541.103Slukem
66551.103Slukem
66561.104Slukemas_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wformat-overflow" | $as_tr_sh`
66571.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-overflow" >&5
66581.103Slukem$as_echo_n "checking whether C compiler accepts -Wformat-overflow... " >&6; }
66591.103Slukemif eval \${$as_CACHEVAR+:} false; then :
66601.103Slukem  $as_echo_n "(cached) " >&6
66611.103Slukemelse
66621.103Slukem
66631.103Slukem  ax_check_save_flags=$CFLAGS
66641.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wformat-overflow"
66651.103Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66661.103Slukem/* end confdefs.h.  */
66671.103Slukem
66681.103Slukemint
66691.103Slukemmain ()
66701.103Slukem{
66711.103Slukem
66721.103Slukem  ;
66731.103Slukem  return 0;
66741.103Slukem}
66751.103Slukem_ACEOF
66761.103Slukemif ac_fn_c_try_compile "$LINENO"; then :
66771.103Slukem  eval "$as_CACHEVAR=yes"
66781.103Slukemelse
66791.103Slukem  eval "$as_CACHEVAR=no"
66801.103Slukemfi
66811.103Slukemrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66821.103Slukem  CFLAGS=$ax_check_save_flags
66831.103Slukemfi
66841.103Slukemeval ac_res=\$$as_CACHEVAR
66851.103Slukem	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
66861.103Slukem$as_echo "$ac_res" >&6; }
66871.103Slukemif eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
66881.103Slukem  CC_WNO_FORMAT_OVERFLOW=-Wno-format-overflow
66891.103Slukemelse
66901.103Slukem  :
66911.103Slukemfi
66921.103Slukem
66931.103Slukem
66941.103Slukem
66951.104Slukemas_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wformat-truncation" | $as_tr_sh`
66961.102Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5
66971.102Slukem$as_echo_n "checking whether C compiler accepts -Wformat-truncation... " >&6; }
66981.102Slukemif eval \${$as_CACHEVAR+:} false; then :
66991.102Slukem  $as_echo_n "(cached) " >&6
67001.102Slukemelse
67011.102Slukem
67021.102Slukem  ax_check_save_flags=$CFLAGS
67031.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wformat-truncation"
67041.102Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67051.102Slukem/* end confdefs.h.  */
67061.102Slukem
67071.102Slukemint
67081.102Slukemmain ()
67091.102Slukem{
67101.102Slukem
67111.102Slukem  ;
67121.102Slukem  return 0;
67131.102Slukem}
67141.102Slukem_ACEOF
67151.102Slukemif ac_fn_c_try_compile "$LINENO"; then :
67161.102Slukem  eval "$as_CACHEVAR=yes"
67171.102Slukemelse
67181.102Slukem  eval "$as_CACHEVAR=no"
67191.102Slukemfi
67201.102Slukemrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67211.102Slukem  CFLAGS=$ax_check_save_flags
67221.102Slukemfi
67231.102Slukemeval ac_res=\$$as_CACHEVAR
67241.102Slukem	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
67251.102Slukem$as_echo "$ac_res" >&6; }
67261.102Slukemif eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
67271.102Slukem  CC_WNO_FORMAT_TRUNCATION=-Wno-format-truncation
67281.102Slukemelse
67291.102Slukem  :
67301.102Slukemfi
67311.102Slukem
67321.102Slukem
67331.102Slukem
67341.104Slukemas_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wimplicit-fallthrough" | $as_tr_sh`
67351.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wimplicit-fallthrough" >&5
67361.103Slukem$as_echo_n "checking whether C compiler accepts -Wimplicit-fallthrough... " >&6; }
67371.103Slukemif eval \${$as_CACHEVAR+:} false; then :
67381.103Slukem  $as_echo_n "(cached) " >&6
67391.103Slukemelse
67401.103Slukem
67411.103Slukem  ax_check_save_flags=$CFLAGS
67421.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wimplicit-fallthrough"
67431.103Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67441.103Slukem/* end confdefs.h.  */
67451.103Slukem
67461.103Slukemint
67471.103Slukemmain ()
67481.103Slukem{
67491.103Slukem
67501.103Slukem  ;
67511.103Slukem  return 0;
67521.103Slukem}
67531.103Slukem_ACEOF
67541.103Slukemif ac_fn_c_try_compile "$LINENO"; then :
67551.103Slukem  eval "$as_CACHEVAR=yes"
67561.103Slukemelse
67571.103Slukem  eval "$as_CACHEVAR=no"
67581.103Slukemfi
67591.103Slukemrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67601.103Slukem  CFLAGS=$ax_check_save_flags
67611.103Slukemfi
67621.103Slukemeval ac_res=\$$as_CACHEVAR
67631.103Slukem	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
67641.103Slukem$as_echo "$ac_res" >&6; }
67651.103Slukemif eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
67661.103Slukem  CC_WNO_IMPLICIT_FALLTHROUGH=-Wno-implicit-fallthrough
67671.103Slukemelse
67681.103Slukem  :
67691.103Slukemfi
67701.103Slukem
67711.103Slukem
67721.103Slukem
67731.104Slukemas_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wmaybe-uninitialized" | $as_tr_sh`
67741.102Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmaybe-uninitialized" >&5
67751.102Slukem$as_echo_n "checking whether C compiler accepts -Wmaybe-uninitialized... " >&6; }
67761.102Slukemif eval \${$as_CACHEVAR+:} false; then :
67771.102Slukem  $as_echo_n "(cached) " >&6
67781.102Slukemelse
67791.102Slukem
67801.102Slukem  ax_check_save_flags=$CFLAGS
67811.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wmaybe-uninitialized"
67821.102Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67831.102Slukem/* end confdefs.h.  */
67841.102Slukem
67851.102Slukemint
67861.102Slukemmain ()
67871.102Slukem{
67881.102Slukem
67891.102Slukem  ;
67901.102Slukem  return 0;
67911.102Slukem}
67921.102Slukem_ACEOF
67931.102Slukemif ac_fn_c_try_compile "$LINENO"; then :
67941.102Slukem  eval "$as_CACHEVAR=yes"
67951.102Slukemelse
67961.102Slukem  eval "$as_CACHEVAR=no"
67971.102Slukemfi
67981.102Slukemrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67991.102Slukem  CFLAGS=$ax_check_save_flags
68001.102Slukemfi
68011.102Slukemeval ac_res=\$$as_CACHEVAR
68021.102Slukem	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
68031.102Slukem$as_echo "$ac_res" >&6; }
68041.102Slukemif eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
68051.102Slukem  CC_WNO_MAYBE_UNINITIALIZED=-Wno-maybe-uninitialized
68061.102Slukemelse
68071.102Slukem  :
68081.102Slukemfi
68091.102Slukem
68101.102Slukem
68111.102Slukem
68121.104Slukemas_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wreturn-local-addr" | $as_tr_sh`
68131.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wreturn-local-addr" >&5
68141.103Slukem$as_echo_n "checking whether C compiler accepts -Wreturn-local-addr... " >&6; }
68151.103Slukemif eval \${$as_CACHEVAR+:} false; then :
68161.103Slukem  $as_echo_n "(cached) " >&6
68171.103Slukemelse
68181.103Slukem
68191.103Slukem  ax_check_save_flags=$CFLAGS
68201.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wreturn-local-addr"
68211.103Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68221.103Slukem/* end confdefs.h.  */
68231.103Slukem
68241.103Slukemint
68251.103Slukemmain ()
68261.103Slukem{
68271.103Slukem
68281.103Slukem  ;
68291.103Slukem  return 0;
68301.103Slukem}
68311.103Slukem_ACEOF
68321.103Slukemif ac_fn_c_try_compile "$LINENO"; then :
68331.103Slukem  eval "$as_CACHEVAR=yes"
68341.103Slukemelse
68351.103Slukem  eval "$as_CACHEVAR=no"
68361.103Slukemfi
68371.103Slukemrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68381.103Slukem  CFLAGS=$ax_check_save_flags
68391.103Slukemfi
68401.103Slukemeval ac_res=\$$as_CACHEVAR
68411.103Slukem	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
68421.103Slukem$as_echo "$ac_res" >&6; }
68431.103Slukemif eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
68441.103Slukem  CC_WNO_RETURN_LOCAL_ADDR=-Wno-return-local-addr
68451.103Slukemelse
68461.103Slukem  :
68471.103Slukemfi
68481.103Slukem
68491.103Slukem
68501.103Slukem
68511.104Slukemas_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wstringop-overflow" | $as_tr_sh`
68521.102Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-overflow" >&5
68531.102Slukem$as_echo_n "checking whether C compiler accepts -Wstringop-overflow... " >&6; }
68541.102Slukemif eval \${$as_CACHEVAR+:} false; then :
68551.102Slukem  $as_echo_n "(cached) " >&6
68561.102Slukemelse
68571.102Slukem
68581.102Slukem  ax_check_save_flags=$CFLAGS
68591.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wstringop-overflow"
68601.102Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68611.102Slukem/* end confdefs.h.  */
68621.102Slukem
68631.102Slukemint
68641.102Slukemmain ()
68651.102Slukem{
68661.102Slukem
68671.102Slukem  ;
68681.102Slukem  return 0;
68691.102Slukem}
68701.102Slukem_ACEOF
68711.102Slukemif ac_fn_c_try_compile "$LINENO"; then :
68721.102Slukem  eval "$as_CACHEVAR=yes"
68731.102Slukemelse
68741.102Slukem  eval "$as_CACHEVAR=no"
68751.102Slukemfi
68761.102Slukemrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68771.102Slukem  CFLAGS=$ax_check_save_flags
68781.102Slukemfi
68791.102Slukemeval ac_res=\$$as_CACHEVAR
68801.102Slukem	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
68811.102Slukem$as_echo "$ac_res" >&6; }
68821.102Slukemif eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
68831.102Slukem  CC_WNO_STRINGOP_OVERFLOW=-Wno-stringop-overflow
68841.102Slukemelse
68851.102Slukem  :
68861.102Slukemfi
68871.102Slukem
68881.102Slukem
68891.102Slukem
68901.104Slukemas_CACHEVAR=`$as_echo "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wstringop-truncation" | $as_tr_sh`
68911.102Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-truncation" >&5
68921.102Slukem$as_echo_n "checking whether C compiler accepts -Wstringop-truncation... " >&6; }
68931.102Slukemif eval \${$as_CACHEVAR+:} false; then :
68941.102Slukem  $as_echo_n "(cached) " >&6
68951.102Slukemelse
68961.102Slukem
68971.102Slukem  ax_check_save_flags=$CFLAGS
68981.104Slukem  CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wstringop-truncation"
68991.102Slukem  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69001.102Slukem/* end confdefs.h.  */
69011.102Slukem
69021.102Slukemint
69031.102Slukemmain ()
69041.102Slukem{
69051.102Slukem
69061.102Slukem  ;
69071.102Slukem  return 0;
69081.102Slukem}
69091.102Slukem_ACEOF
69101.102Slukemif ac_fn_c_try_compile "$LINENO"; then :
69111.102Slukem  eval "$as_CACHEVAR=yes"
69121.102Slukemelse
69131.102Slukem  eval "$as_CACHEVAR=no"
69141.102Slukemfi
69151.102Slukemrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69161.102Slukem  CFLAGS=$ax_check_save_flags
69171.102Slukemfi
69181.102Slukemeval ac_res=\$$as_CACHEVAR
69191.102Slukem	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
69201.102Slukem$as_echo "$ac_res" >&6; }
69211.102Slukemif eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
69221.102Slukem  CC_WNO_STRINGOP_TRUNCATION=-Wno-stringop-truncation
69231.102Slukemelse
69241.102Slukem  :
69251.102Slukemfi
69261.102Slukem
69271.102Slukem
69281.102Slukem
69291.102Slukem
69301.1Stvcat >confcache <<\_ACEOF
69311.1Stv# This file is a shell script that caches the results of configure
69321.1Stv# tests run on this system so they can be shared between configure
69331.1Stv# scripts and configure runs, see configure's option --config-cache.
69341.1Stv# It is not useful on other systems.  If it contains results you don't
69351.1Stv# want to keep, you may remove or edit it.
69361.1Stv#
69371.1Stv# config.status only pays attention to the cache file if you give it
69381.1Stv# the --recheck option to rerun configure.
69391.1Stv#
69401.84Schristos# `ac_cv_env_foo' variables (set or unset) will be overridden when
69411.1Stv# loading this file, other *unset* `ac_cv_foo' will be assigned the
69421.1Stv# following values.
69431.1Stv
69441.1Stv_ACEOF
69451.1Stv
69461.1Stv# The following way of writing the cache mishandles newlines in values,
69471.1Stv# but we know of no workaround that is simple, portable, and efficient.
69481.84Schristos# So, we kill variables containing newlines.
69491.84Schristos# Ultrix sh set writes to stderr and can't be redirected directly,
69501.84Schristos# and sets the high bit in the cache file unless we assign to the vars.
69511.84Schristos(
69521.84Schristos  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
69531.84Schristos    eval ac_val=\$$ac_var
69541.84Schristos    case $ac_val in #(
69551.84Schristos    *${as_nl}*)
69561.84Schristos      case $ac_var in #(
69571.84Schristos      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
69581.84Schristos$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
69591.84Schristos      esac
69601.84Schristos      case $ac_var in #(
69611.84Schristos      _ | IFS | as_nl) ;; #(
69621.84Schristos      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
69631.84Schristos      *) { eval $ac_var=; unset $ac_var;} ;;
69641.84Schristos      esac ;;
69651.84Schristos    esac
69661.84Schristos  done
69671.84Schristos
69681.65Schristos  (set) 2>&1 |
69691.84Schristos    case $as_nl`(ac_space=' '; set) 2>&1` in #(
69701.84Schristos    *${as_nl}ac_space=\ *)
69711.84Schristos      # `set' does not quote correctly, so add quotes: double-quote
69721.84Schristos      # substitution turns \\\\ into \\, and sed turns \\ into \.
69731.65Schristos      sed -n \
69741.84Schristos	"s/'/'\\\\''/g;
69751.84Schristos	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
69761.84Schristos      ;; #(
69771.65Schristos    *)
69781.65Schristos      # `set' quotes correctly as required by POSIX, so do not add quotes.
69791.84Schristos      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
69801.65Schristos      ;;
69811.84Schristos    esac |
69821.84Schristos    sort
69831.84Schristos) |
69841.65Schristos  sed '
69851.84Schristos     /^ac_cv_env_/b end
69861.65Schristos     t clear
69871.84Schristos     :clear
69881.65Schristos     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
69891.65Schristos     t end
69901.84Schristos     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
69911.84Schristos     :end' >>confcache
69921.84Schristosif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
69931.84Schristos  if test -w "$cache_file"; then
69941.84Schristos    if test "x$cache_file" != "x/dev/null"; then
69951.84Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
69961.84Schristos$as_echo "$as_me: updating cache $cache_file" >&6;}
69971.84Schristos      if test ! -f "$cache_file" || test -h "$cache_file"; then
69981.84Schristos	cat confcache >"$cache_file"
69991.84Schristos      else
70001.84Schristos        case $cache_file in #(
70011.84Schristos        */* | ?:*)
70021.84Schristos	  mv -f confcache "$cache_file"$$ &&
70031.84Schristos	  mv -f "$cache_file"$$ "$cache_file" ;; #(
70041.84Schristos        *)
70051.84Schristos	  mv -f confcache "$cache_file" ;;
70061.84Schristos	esac
70071.84Schristos      fi
70081.84Schristos    fi
70091.65Schristos  else
70101.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
70111.84Schristos$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
70121.65Schristos  fi
70131.65Schristosfi
70141.66Stsutsuirm -f confcache
70151.65Schristos
70161.66Stsutsuitest "x$prefix" = xNONE && prefix=$ac_default_prefix
70171.66Stsutsui# Let make expand exec_prefix.
70181.66Stsutsuitest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
70191.65Schristos
70201.84SchristosDEFS=-DHAVE_CONFIG_H
70211.84Schristos
70221.84Schristosac_libobjs=
70231.84Schristosac_ltlibobjs=
70241.84SchristosU=
70251.84Schristosfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
70261.84Schristos  # 1. Remove the extension, and $U if already installed.
70271.84Schristos  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
70281.84Schristos  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
70291.84Schristos  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
70301.84Schristos  #    will be set to the directory where LIBOBJS objects are built.
70311.84Schristos  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
70321.84Schristos  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
70331.84Schristosdone
70341.84SchristosLIBOBJS=$ac_libobjs
70351.84Schristos
70361.84SchristosLTLIBOBJS=$ac_ltlibobjs
70371.84Schristos
70381.84Schristos
70391.76Spooka
70401.74Schristos
70411.84Schristos: "${CONFIG_STATUS=./config.status}"
70421.84Schristosac_write_fail=0
70431.66Stsutsuiac_clean_files_save=$ac_clean_files
70441.66Stsutsuiac_clean_files="$ac_clean_files $CONFIG_STATUS"
70451.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
70461.84Schristos$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
70471.84Schristosas_write_fail=0
70481.84Schristoscat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
70491.66Stsutsui#! $SHELL
70501.84Schristos# Generated by $as_me.
70511.66Stsutsui# Run this file to recreate the current configuration.
70521.66Stsutsui# Compiler output produced by configure, useful for debugging
70531.66Stsutsui# configure, is in config.log if it exists.
70541.65Schristos
70551.66Stsutsuidebug=false
70561.84Schristosac_cs_recheck=false
70571.84Schristosac_cs_silent=false
70581.84Schristos
70591.76SpookaSHELL=\${CONFIG_SHELL-$SHELL}
70601.84Schristosexport SHELL
70611.84Schristos_ASEOF
70621.84Schristoscat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
70631.84Schristos## -------------------- ##
70641.84Schristos## M4sh Initialization. ##
70651.84Schristos## -------------------- ##
70661.84Schristos
70671.84Schristos# Be more Bourne compatible
70681.84SchristosDUALCASE=1; export DUALCASE # for MKS sh
70691.84Schristosif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
70701.84Schristos  emulate sh
70711.84Schristos  NULLCMD=:
70721.84Schristos  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
70731.84Schristos  # is contrary to our usage.  Disable this feature.
70741.84Schristos  alias -g '${1+"$@"}'='"$@"'
70751.84Schristos  setopt NO_GLOB_SUBST
70761.84Schristoselse
70771.84Schristos  case `(set -o) 2>/dev/null` in #(
70781.84Schristos  *posix*) :
70791.84Schristos    set -o posix ;; #(
70801.84Schristos  *) :
70811.84Schristos     ;;
70821.84Schristosesac
70831.84Schristosfi
70841.84Schristos
70851.76Spooka
70861.84Schristosas_nl='
70871.84Schristos'
70881.84Schristosexport as_nl
70891.84Schristos# Printing a long string crashes Solaris 7 /usr/bin/printf.
70901.84Schristosas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
70911.84Schristosas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
70921.84Schristosas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
70931.84Schristos# Prefer a ksh shell builtin over an external printf program on Solaris,
70941.84Schristos# but without wasting forks for bash or zsh.
70951.84Schristosif test -z "$BASH_VERSION$ZSH_VERSION" \
70961.84Schristos    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
70971.84Schristos  as_echo='print -r --'
70981.84Schristos  as_echo_n='print -rn --'
70991.84Schristoselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
71001.84Schristos  as_echo='printf %s\n'
71011.84Schristos  as_echo_n='printf %s'
71021.84Schristoselse
71031.84Schristos  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
71041.84Schristos    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
71051.84Schristos    as_echo_n='/usr/ucb/echo -n'
71061.84Schristos  else
71071.84Schristos    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
71081.84Schristos    as_echo_n_body='eval
71091.84Schristos      arg=$1;
71101.84Schristos      case $arg in #(
71111.84Schristos      *"$as_nl"*)
71121.84Schristos	expr "X$arg" : "X\\(.*\\)$as_nl";
71131.84Schristos	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
71141.84Schristos      esac;
71151.84Schristos      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71161.84Schristos    '
71171.84Schristos    export as_echo_n_body
71181.84Schristos    as_echo_n='sh -c $as_echo_n_body as_echo'
71191.84Schristos  fi
71201.84Schristos  export as_echo_body
71211.84Schristos  as_echo='sh -c $as_echo_body as_echo'
71221.84Schristosfi
71231.74Schristos
71241.84Schristos# The user is always right.
71251.84Schristosif test "${PATH_SEPARATOR+set}" != set; then
71261.84Schristos  PATH_SEPARATOR=:
71271.84Schristos  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
71281.84Schristos    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
71291.84Schristos      PATH_SEPARATOR=';'
71301.84Schristos  }
71311.74Schristosfi
71321.65Schristos
71331.74Schristos
71341.84Schristos# IFS
71351.84Schristos# We need space, tab and new line, in precisely that order.  Quoting is
71361.84Schristos# there to prevent editors from complaining about space-tab.
71371.84Schristos# (If _AS_PATH_WALK were called with IFS unset, it would disable word
71381.84Schristos# splitting by setting IFS to empty value.)
71391.84SchristosIFS=" ""	$as_nl"
71401.84Schristos
71411.84Schristos# Find who we are.  Look in the path if we contain no directory separator.
71421.84Schristosas_myself=
71431.84Schristoscase $0 in #((
71441.84Schristos  *[\\/]* ) as_myself=$0 ;;
71451.84Schristos  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
71461.84Schristosfor as_dir in $PATH
71471.84Schristosdo
71481.84Schristos  IFS=$as_save_IFS
71491.84Schristos  test -z "$as_dir" && as_dir=.
71501.84Schristos    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
71511.84Schristos  done
71521.84SchristosIFS=$as_save_IFS
71531.84Schristos
71541.84Schristos     ;;
71551.84Schristosesac
71561.84Schristos# We did not find ourselves, most probably we were run as `sh COMMAND'
71571.84Schristos# in which case we are not to be found in the path.
71581.84Schristosif test "x$as_myself" = x; then
71591.84Schristos  as_myself=$0
71601.84Schristosfi
71611.84Schristosif test ! -f "$as_myself"; then
71621.84Schristos  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
71631.84Schristos  exit 1
71641.84Schristosfi
71651.84Schristos
71661.84Schristos# Unset variables that we do not need and which cause bugs (e.g. in
71671.84Schristos# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
71681.84Schristos# suppresses any "Segmentation fault" message there.  '((' could
71691.84Schristos# trigger a bug in pdksh 5.2.14.
71701.84Schristosfor as_var in BASH_ENV ENV MAIL MAILPATH
71711.84Schristosdo eval test x\${$as_var+set} = xset \
71721.84Schristos  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
71731.84Schristosdone
71741.84SchristosPS1='$ '
71751.84SchristosPS2='> '
71761.84SchristosPS4='+ '
71771.84Schristos
71781.84Schristos# NLS nuisances.
71791.84SchristosLC_ALL=C
71801.84Schristosexport LC_ALL
71811.84SchristosLANGUAGE=C
71821.84Schristosexport LANGUAGE
71831.84Schristos
71841.84Schristos# CDPATH.
71851.84Schristos(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
71861.84Schristos
71871.84Schristos
71881.84Schristos# as_fn_error STATUS ERROR [LINENO LOG_FD]
71891.84Schristos# ----------------------------------------
71901.84Schristos# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
71911.84Schristos# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
71921.84Schristos# script with STATUS, using 1 if that was 0.
71931.84Schristosas_fn_error ()
71941.84Schristos{
71951.84Schristos  as_status=$1; test $as_status -eq 0 && as_status=1
71961.84Schristos  if test "$4"; then
71971.84Schristos    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
71981.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
71991.84Schristos  fi
72001.84Schristos  $as_echo "$as_me: error: $2" >&2
72011.84Schristos  as_fn_exit $as_status
72021.84Schristos} # as_fn_error
72031.84Schristos
72041.84Schristos
72051.84Schristos# as_fn_set_status STATUS
72061.84Schristos# -----------------------
72071.84Schristos# Set $? to STATUS, without forking.
72081.84Schristosas_fn_set_status ()
72091.84Schristos{
72101.84Schristos  return $1
72111.84Schristos} # as_fn_set_status
72121.84Schristos
72131.84Schristos# as_fn_exit STATUS
72141.84Schristos# -----------------
72151.84Schristos# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
72161.84Schristosas_fn_exit ()
72171.84Schristos{
72181.84Schristos  set +e
72191.84Schristos  as_fn_set_status $1
72201.84Schristos  exit $1
72211.84Schristos} # as_fn_exit
72221.84Schristos
72231.84Schristos# as_fn_unset VAR
72241.84Schristos# ---------------
72251.84Schristos# Portably unset VAR.
72261.84Schristosas_fn_unset ()
72271.84Schristos{
72281.84Schristos  { eval $1=; unset $1;}
72291.84Schristos}
72301.84Schristosas_unset=as_fn_unset
72311.84Schristos# as_fn_append VAR VALUE
72321.84Schristos# ----------------------
72331.84Schristos# Append the text in VALUE to the end of the definition contained in VAR. Take
72341.84Schristos# advantage of any shell optimizations that allow amortized linear growth over
72351.84Schristos# repeated appends, instead of the typical quadratic growth present in naive
72361.84Schristos# implementations.
72371.84Schristosif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
72381.84Schristos  eval 'as_fn_append ()
72391.84Schristos  {
72401.84Schristos    eval $1+=\$2
72411.84Schristos  }'
72421.84Schristoselse
72431.84Schristos  as_fn_append ()
72441.84Schristos  {
72451.84Schristos    eval $1=\$$1\$2
72461.84Schristos  }
72471.84Schristosfi # as_fn_append
72481.84Schristos
72491.84Schristos# as_fn_arith ARG...
72501.84Schristos# ------------------
72511.84Schristos# Perform arithmetic evaluation on the ARGs, and store the result in the
72521.84Schristos# global $as_val. Take advantage of shells that can avoid forks. The arguments
72531.84Schristos# must be portable across $(()) and expr.
72541.84Schristosif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
72551.84Schristos  eval 'as_fn_arith ()
72561.84Schristos  {
72571.84Schristos    as_val=$(( $* ))
72581.84Schristos  }'
72591.84Schristoselse
72601.84Schristos  as_fn_arith ()
72611.84Schristos  {
72621.84Schristos    as_val=`expr "$@" || test $? -eq 1`
72631.84Schristos  }
72641.84Schristosfi # as_fn_arith
72651.84Schristos
72661.84Schristos
72671.84Schristosif expr a : '\(a\)' >/dev/null 2>&1 &&
72681.84Schristos   test "X`expr 00001 : '.*\(...\)'`" = X001; then
72691.1Stv  as_expr=expr
72701.1Stvelse
72711.1Stv  as_expr=false
72721.1Stvfi
72731.1Stv
72741.84Schristosif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
72751.84Schristos  as_basename=basename
72761.84Schristoselse
72771.84Schristos  as_basename=false
72781.84Schristosfi
72791.84Schristos
72801.84Schristosif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
72811.84Schristos  as_dirname=dirname
72821.84Schristoselse
72831.84Schristos  as_dirname=false
72841.84Schristosfi
72851.84Schristos
72861.84Schristosas_me=`$as_basename -- "$0" ||
72871.84Schristos$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72881.84Schristos	 X"$0" : 'X\(//\)$' \| \
72891.84Schristos	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
72901.84Schristos$as_echo X/"$0" |
72911.84Schristos    sed '/^.*\/\([^/][^/]*\)\/*$/{
72921.84Schristos	    s//\1/
72931.84Schristos	    q
72941.84Schristos	  }
72951.84Schristos	  /^X\/\(\/\/\)$/{
72961.84Schristos	    s//\1/
72971.84Schristos	    q
72981.84Schristos	  }
72991.84Schristos	  /^X\/\(\/\).*/{
73001.84Schristos	    s//\1/
73011.84Schristos	    q
73021.84Schristos	  }
73031.84Schristos	  s/.*/./; q'`
73041.84Schristos
73051.84Schristos# Avoid depending upon Character Ranges.
73061.84Schristosas_cr_letters='abcdefghijklmnopqrstuvwxyz'
73071.84Schristosas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
73081.84Schristosas_cr_Letters=$as_cr_letters$as_cr_LETTERS
73091.84Schristosas_cr_digits='0123456789'
73101.84Schristosas_cr_alnum=$as_cr_Letters$as_cr_digits
73111.84Schristos
73121.84SchristosECHO_C= ECHO_N= ECHO_T=
73131.84Schristoscase `echo -n x` in #(((((
73141.84Schristos-n*)
73151.84Schristos  case `echo 'xy\c'` in
73161.84Schristos  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
73171.84Schristos  xy)  ECHO_C='\c';;
73181.84Schristos  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
73191.84Schristos       ECHO_T='	';;
73201.84Schristos  esac;;
73211.84Schristos*)
73221.84Schristos  ECHO_N='-n';;
73231.84Schristosesac
73241.84Schristos
73251.1Stvrm -f conf$$ conf$$.exe conf$$.file
73261.84Schristosif test -d conf$$.dir; then
73271.84Schristos  rm -f conf$$.dir/conf$$.file
73281.84Schristoselse
73291.84Schristos  rm -f conf$$.dir
73301.84Schristos  mkdir conf$$.dir 2>/dev/null
73311.84Schristosfi
73321.84Schristosif (echo >conf$$.file) 2>/dev/null; then
73331.84Schristos  if ln -s conf$$.file conf$$ 2>/dev/null; then
73341.84Schristos    as_ln_s='ln -s'
73351.84Schristos    # ... but there are two gotchas:
73361.84Schristos    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
73371.84Schristos    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
73381.84Schristos    # In both cases, we have to default to `cp -pR'.
73391.84Schristos    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
73401.84Schristos      as_ln_s='cp -pR'
73411.84Schristos  elif ln conf$$.file conf$$ 2>/dev/null; then
73421.84Schristos    as_ln_s=ln
73431.76Spooka  else
73441.84Schristos    as_ln_s='cp -pR'
73451.66Stsutsui  fi
73461.1Stvelse
73471.84Schristos  as_ln_s='cp -pR'
73481.1Stvfi
73491.84Schristosrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
73501.84Schristosrmdir conf$$.dir 2>/dev/null
73511.84Schristos
73521.84Schristos
73531.84Schristos# as_fn_mkdir_p
73541.84Schristos# -------------
73551.84Schristos# Create "$as_dir" as a directory, including parents if necessary.
73561.84Schristosas_fn_mkdir_p ()
73571.84Schristos{
73581.84Schristos
73591.84Schristos  case $as_dir in #(
73601.84Schristos  -*) as_dir=./$as_dir;;
73611.84Schristos  esac
73621.84Schristos  test -d "$as_dir" || eval $as_mkdir_p || {
73631.84Schristos    as_dirs=
73641.84Schristos    while :; do
73651.84Schristos      case $as_dir in #(
73661.84Schristos      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
73671.84Schristos      *) as_qdir=$as_dir;;
73681.84Schristos      esac
73691.84Schristos      as_dirs="'$as_qdir' $as_dirs"
73701.84Schristos      as_dir=`$as_dirname -- "$as_dir" ||
73711.84Schristos$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73721.84Schristos	 X"$as_dir" : 'X\(//\)[^/]' \| \
73731.84Schristos	 X"$as_dir" : 'X\(//\)$' \| \
73741.84Schristos	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
73751.84Schristos$as_echo X"$as_dir" |
73761.84Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73771.84Schristos	    s//\1/
73781.84Schristos	    q
73791.84Schristos	  }
73801.84Schristos	  /^X\(\/\/\)[^/].*/{
73811.84Schristos	    s//\1/
73821.84Schristos	    q
73831.84Schristos	  }
73841.84Schristos	  /^X\(\/\/\)$/{
73851.84Schristos	    s//\1/
73861.84Schristos	    q
73871.84Schristos	  }
73881.84Schristos	  /^X\(\/\).*/{
73891.84Schristos	    s//\1/
73901.84Schristos	    q
73911.84Schristos	  }
73921.84Schristos	  s/.*/./; q'`
73931.84Schristos      test -d "$as_dir" && break
73941.84Schristos    done
73951.84Schristos    test -z "$as_dirs" || eval "mkdir $as_dirs"
73961.84Schristos  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
73971.1Stv
73981.63Sapb
73991.84Schristos} # as_fn_mkdir_p
74001.84Schristosif mkdir -p . 2>/dev/null; then
74011.84Schristos  as_mkdir_p='mkdir -p "$as_dir"'
74021.61Schristoselse
74031.84Schristos  test -d ./-p && rmdir ./-p
74041.84Schristos  as_mkdir_p=false
74051.61Schristosfi
74061.61Schristos
74071.1Stv
74081.84Schristos# as_fn_executable_p FILE
74091.84Schristos# -----------------------
74101.84Schristos# Test if FILE is an executable regular file.
74111.84Schristosas_fn_executable_p ()
74121.84Schristos{
74131.84Schristos  test -f "$1" && test -x "$1"
74141.84Schristos} # as_fn_executable_p
74151.84Schristosas_test_x='test -x'
74161.84Schristosas_executable_p=as_fn_executable_p
74171.84Schristos
74181.84Schristos# Sed expression to map a string onto a valid CPP name.
74191.84Schristosas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
74201.84Schristos
74211.84Schristos# Sed expression to map a string onto a valid variable name.
74221.84Schristosas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
74231.1Stv
74241.1Stv
74251.1Stvexec 6>&1
74261.84Schristos## ----------------------------------- ##
74271.84Schristos## Main body of $CONFIG_STATUS script. ##
74281.84Schristos## ----------------------------------- ##
74291.84Schristos_ASEOF
74301.84Schristostest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
74311.84Schristos
74321.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74331.84Schristos# Save the log message, to keep $0 and so on meaningful, and to
74341.84Schristos# report actual input values of CONFIG_FILES etc. instead of their
74351.84Schristos# values after options handling.
74361.84Schristosac_log="
74371.84SchristosThis file was extended by libnbcompat $as_me noversion, which was
74381.84Schristosgenerated by GNU Autoconf 2.69.  Invocation command line was
74391.84Schristos
74401.84Schristos  CONFIG_FILES    = $CONFIG_FILES
74411.84Schristos  CONFIG_HEADERS  = $CONFIG_HEADERS
74421.84Schristos  CONFIG_LINKS    = $CONFIG_LINKS
74431.84Schristos  CONFIG_COMMANDS = $CONFIG_COMMANDS
74441.84Schristos  $ $0 $@
74451.84Schristos
74461.84Schristoson `(hostname || uname -n) 2>/dev/null | sed 1q`
74471.84Schristos"
74481.1Stv
74491.66Stsutsui_ACEOF
74501.1Stv
74511.84Schristoscase $ac_config_files in *"
74521.84Schristos"*) set x $ac_config_files; shift; ac_config_files=$*;;
74531.84Schristosesac
74541.1Stv
74551.84Schristoscase $ac_config_headers in *"
74561.84Schristos"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
74571.84Schristosesac
74581.1Stv
74591.1Stv
74601.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74611.84Schristos# Files that config.status was made for.
74621.84Schristosconfig_files="$ac_config_files"
74631.84Schristosconfig_headers="$ac_config_headers"
74641.1Stv
74651.84Schristos_ACEOF
74661.1Stv
74671.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74681.1Stvac_cs_usage="\
74691.84Schristos\`$as_me' instantiates files and other configuration actions
74701.84Schristosfrom templates according to the current configuration.  Unless the files
74711.84Schristosand actions are specified as TAGs, all are instantiated by default.
74721.1Stv
74731.84SchristosUsage: $0 [OPTION]... [TAG]...
74741.1Stv
74751.1Stv  -h, --help       print this help, then exit
74761.84Schristos  -V, --version    print version number and configuration settings, then exit
74771.84Schristos      --config     print configuration, then exit
74781.84Schristos  -q, --quiet, --silent
74791.84Schristos                   do not print progress messages
74801.1Stv  -d, --debug      don't remove temporary files
74811.1Stv      --recheck    update $as_me by reconfiguring in the same conditions
74821.84Schristos      --file=FILE[:TEMPLATE]
74831.66Stsutsui                   instantiate the configuration file FILE
74841.84Schristos      --header=FILE[:TEMPLATE]
74851.66Stsutsui                   instantiate the configuration header FILE
74861.1Stv
74871.1StvConfiguration files:
74881.1Stv$config_files
74891.1Stv
74901.1StvConfiguration headers:
74911.1Stv$config_headers
74921.1Stv
74931.84SchristosReport bugs to <lib-bug-people@NetBSD.org>."
74941.1Stv
74951.84Schristos_ACEOF
74961.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74971.84Schristosac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
74981.1Stvac_cs_version="\\
74991.1Stvlibnbcompat config.status noversion
75001.84Schristosconfigured by $0, generated by GNU Autoconf 2.69,
75011.84Schristos  with options \\"\$ac_cs_config\\"
75021.1Stv
75031.84SchristosCopyright (C) 2012 Free Software Foundation, Inc.
75041.1StvThis config.status script is free software; the Free Software Foundation
75051.1Stvgives unlimited permission to copy, distribute and modify it."
75061.1Stv
75071.84Schristosac_pwd='$ac_pwd'
75081.84Schristossrcdir='$srcdir'
75091.84Schristostest -n "\$AWK" || AWK=awk
75101.84Schristos_ACEOF
75111.84Schristos
75121.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75131.84Schristos# The default lists apply if the user does not specify any file.
75141.1Stvac_need_defaults=:
75151.1Stvwhile test $# != 0
75161.1Stvdo
75171.1Stv  case $1 in
75181.84Schristos  --*=?*)
75191.84Schristos    ac_option=`expr "X$1" : 'X\([^=]*\)='`
75201.84Schristos    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
75211.84Schristos    ac_shift=:
75221.84Schristos    ;;
75231.84Schristos  --*=)
75241.84Schristos    ac_option=`expr "X$1" : 'X\([^=]*\)='`
75251.84Schristos    ac_optarg=
75261.84Schristos    ac_shift=:
75271.84Schristos    ;;
75281.84Schristos  *)
75291.84Schristos    ac_option=$1
75301.84Schristos    ac_optarg=$2
75311.84Schristos    ac_shift=shift
75321.1Stv    ;;
75331.1Stv  esac
75341.1Stv
75351.84Schristos  case $ac_option in
75361.1Stv  # Handling of the options.
75371.1Stv  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
75381.84Schristos    ac_cs_recheck=: ;;
75391.84Schristos  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
75401.84Schristos    $as_echo "$ac_cs_version"; exit ;;
75411.84Schristos  --config | --confi | --conf | --con | --co | --c )
75421.84Schristos    $as_echo "$ac_cs_config"; exit ;;
75431.84Schristos  --debug | --debu | --deb | --de | --d | -d )
75441.1Stv    debug=: ;;
75451.1Stv  --file | --fil | --fi | --f )
75461.84Schristos    $ac_shift
75471.84Schristos    case $ac_optarg in
75481.84Schristos    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
75491.84Schristos    '') as_fn_error $? "missing file argument" ;;
75501.84Schristos    esac
75511.84Schristos    as_fn_append CONFIG_FILES " '$ac_optarg'"
75521.1Stv    ac_need_defaults=false;;
75531.1Stv  --header | --heade | --head | --hea )
75541.84Schristos    $ac_shift
75551.84Schristos    case $ac_optarg in
75561.84Schristos    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
75571.84Schristos    esac
75581.84Schristos    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
75591.1Stv    ac_need_defaults=false;;
75601.84Schristos  --he | --h)
75611.84Schristos    # Conflict between --help and --header
75621.84Schristos    as_fn_error $? "ambiguous option: \`$1'
75631.84SchristosTry \`$0 --help' for more information.";;
75641.84Schristos  --help | --hel | -h )
75651.84Schristos    $as_echo "$ac_cs_usage"; exit ;;
75661.84Schristos  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
75671.84Schristos  | -silent | --silent | --silen | --sile | --sil | --si | --s)
75681.84Schristos    ac_cs_silent=: ;;
75691.1Stv
75701.1Stv  # This is an error.
75711.84Schristos  -*) as_fn_error $? "unrecognized option: \`$1'
75721.84SchristosTry \`$0 --help' for more information." ;;
75731.1Stv
75741.84Schristos  *) as_fn_append ac_config_targets " $1"
75751.84Schristos     ac_need_defaults=false ;;
75761.1Stv
75771.1Stv  esac
75781.1Stv  shift
75791.1Stvdone
75801.1Stv
75811.84Schristosac_configure_extra_args=
75821.84Schristos
75831.84Schristosif $ac_cs_silent; then
75841.84Schristos  exec 6>/dev/null
75851.84Schristos  ac_configure_extra_args="$ac_configure_extra_args --silent"
75861.84Schristosfi
75871.74Schristos
75881.84Schristos_ACEOF
75891.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75901.84Schristosif \$ac_cs_recheck; then
75911.84Schristos  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
75921.84Schristos  shift
75931.84Schristos  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
75941.84Schristos  CONFIG_SHELL='$SHELL'
75951.84Schristos  export CONFIG_SHELL
75961.84Schristos  exec "\$@"
75971.84Schristosfi
75981.1Stv
75991.84Schristos_ACEOF
76001.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
76011.84Schristosexec 5>>config.log
76021.84Schristos{
76031.84Schristos  echo
76041.84Schristos  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
76051.84Schristos## Running $as_me. ##
76061.84Schristos_ASBOX
76071.84Schristos  $as_echo "$ac_log"
76081.84Schristos} >&5
76091.1Stv
76101.1Stv_ACEOF
76111.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
76121.84Schristos_ACEOF
76131.84Schristos
76141.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
76151.1Stv
76161.84Schristos# Handling of arguments.
76171.1Stvfor ac_config_target in $ac_config_targets
76181.1Stvdo
76191.84Schristos  case $ac_config_target in
76201.84Schristos    "nbtool_config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
76211.84Schristos    "defs.mk") CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
76221.84Schristos
76231.84Schristos  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
76241.1Stv  esac
76251.1Stvdone
76261.1Stv
76271.84Schristos
76281.1Stv# If the user did not use the arguments to specify the items to instantiate,
76291.1Stv# then the envvar interface is used.  Set only those that are not.
76301.1Stv# We use the long form for the default assignment because of an extremely
76311.1Stv# bizarre bug on SunOS 4.1.3.
76321.1Stvif $ac_need_defaults; then
76331.1Stv  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
76341.1Stv  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
76351.1Stvfi
76361.1Stv
76371.84Schristos# Have a temporary directory for convenience.  Make it in the build tree
76381.84Schristos# simply because there is no reason against having it here, and in addition,
76391.84Schristos# creating and moving files from /tmp can sometimes cause problems.
76401.84Schristos# Hook for its removal unless debugging.
76411.84Schristos# Note that there is a small window in which the directory will not be cleaned:
76421.84Schristos# after its creation but before its name has been assigned to `$tmp'.
76431.1Stv$debug ||
76441.1Stv{
76451.84Schristos  tmp= ac_tmp=
76461.84Schristos  trap 'exit_status=$?
76471.84Schristos  : "${ac_tmp:=$tmp}"
76481.84Schristos  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
76491.84Schristos' 0
76501.84Schristos  trap 'as_fn_exit 1' 1 2 13 15
76511.1Stv}
76521.84Schristos# Create a (secure) tmp directory for tmp files.
76531.76Spooka
76541.1Stv{
76551.84Schristos  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
76561.84Schristos  test -d "$tmp"
76571.1Stv}  ||
76581.1Stv{
76591.84Schristos  tmp=./conf$$-$RANDOM
76601.84Schristos  (umask 077 && mkdir "$tmp")
76611.84Schristos} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
76621.84Schristosac_tmp=$tmp
76631.1Stv
76641.84Schristos# Set up the scripts for CONFIG_FILES section.
76651.84Schristos# No need to generate them if there are no CONFIG_FILES.
76661.84Schristos# This happens for instance with `./config.status config.h'.
76671.84Schristosif test -n "$CONFIG_FILES"; then
76681.66Stsutsui
76691.66Stsutsui
76701.84Schristosac_cr=`echo X | tr X '\015'`
76711.84Schristos# On cygwin, bash can eat \r inside `` if the user requested igncr.
76721.84Schristos# But we know of no other shell where ac_cr would be empty at this
76731.84Schristos# point, so we can use a bashism as a fallback.
76741.84Schristosif test "x$ac_cr" = x; then
76751.84Schristos  eval ac_cr=\$\'\\r\'
76761.84Schristosfi
76771.84Schristosac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
76781.84Schristosif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
76791.84Schristos  ac_cs_awk_cr='\\r'
76801.84Schristoselse
76811.84Schristos  ac_cs_awk_cr=$ac_cr
76821.84Schristosfi
76831.1Stv
76841.84Schristosecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
76851.84Schristos_ACEOF
76861.65Schristos
76871.65Schristos
76881.84Schristos{
76891.84Schristos  echo "cat >conf$$subs.awk <<_ACEOF" &&
76901.84Schristos  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
76911.84Schristos  echo "_ACEOF"
76921.84Schristos} >conf$$subs.sh ||
76931.84Schristos  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
76941.84Schristosac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
76951.84Schristosac_delim='%!_!# '
76961.84Schristosfor ac_last_try in false false false false false :; do
76971.84Schristos  . ./conf$$subs.sh ||
76981.84Schristos    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
76991.65Schristos
77001.84Schristos  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
77011.84Schristos  if test $ac_delim_n = $ac_delim_num; then
77021.84Schristos    break
77031.84Schristos  elif $ac_last_try; then
77041.84Schristos    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
77051.65Schristos  else
77061.84Schristos    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
77071.1Stv  fi
77081.84Schristosdone
77091.84Schristosrm -f conf$$subs.sh
77101.65Schristos
77111.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
77121.84Schristoscat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
77131.84Schristos_ACEOF
77141.84Schristossed -n '
77151.84Schristosh
77161.84Schristoss/^/S["/; s/!.*/"]=/
77171.84Schristosp
77181.84Schristosg
77191.84Schristoss/^[^!]*!//
77201.84Schristos:repl
77211.84Schristost repl
77221.84Schristoss/'"$ac_delim"'$//
77231.84Schristost delim
77241.84Schristos:nl
77251.84Schristosh
77261.84Schristoss/\(.\{148\}\)..*/\1/
77271.84Schristost more1
77281.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
77291.84Schristosp
77301.84Schristosn
77311.84Schristosb repl
77321.84Schristos:more1
77331.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/"\\/
77341.84Schristosp
77351.84Schristosg
77361.84Schristoss/.\{148\}//
77371.84Schristost nl
77381.84Schristos:delim
77391.84Schristosh
77401.84Schristoss/\(.\{148\}\)..*/\1/
77411.84Schristost more2
77421.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/"/
77431.84Schristosp
77441.84Schristosb
77451.84Schristos:more2
77461.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/"\\/
77471.84Schristosp
77481.84Schristosg
77491.84Schristoss/.\{148\}//
77501.84Schristost delim
77511.84Schristos' <conf$$subs.awk | sed '
77521.84Schristos/^[^""]/{
77531.84Schristos  N
77541.84Schristos  s/\n//
77551.84Schristos}
77561.84Schristos' >>$CONFIG_STATUS || ac_write_fail=1
77571.84Schristosrm -f conf$$subs.awk
77581.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
77591.84Schristos_ACAWK
77601.84Schristoscat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
77611.84Schristos  for (key in S) S_is_set[key] = 1
77621.84Schristos  FS = ""
77631.84Schristos
77641.84Schristos}
77651.84Schristos{
77661.84Schristos  line = $ 0
77671.84Schristos  nfields = split(line, field, "@")
77681.84Schristos  substed = 0
77691.84Schristos  len = length(field[1])
77701.84Schristos  for (i = 2; i < nfields; i++) {
77711.84Schristos    key = field[i]
77721.84Schristos    keylen = length(key)
77731.84Schristos    if (S_is_set[key]) {
77741.84Schristos      value = S[key]
77751.84Schristos      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
77761.84Schristos      len += length(value) + length(field[++i])
77771.84Schristos      substed = 1
77781.84Schristos    } else
77791.84Schristos      len += 1 + keylen
77801.84Schristos  }
77811.84Schristos
77821.84Schristos  print line
77831.84Schristos}
77841.84Schristos
77851.84Schristos_ACAWK
77861.84Schristos_ACEOF
77871.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
77881.84Schristosif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
77891.84Schristos  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
77901.84Schristoselse
77911.84Schristos  cat
77921.84Schristosfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
77931.84Schristos  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
77941.84Schristos_ACEOF
77951.84Schristos
77961.84Schristos# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
77971.84Schristos# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
77981.84Schristos# trailing colons and then remove the whole line if VPATH becomes empty
77991.84Schristos# (actually we leave an empty line to preserve line numbers).
78001.84Schristosif test "x$srcdir" = x.; then
78011.84Schristos  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
78021.84Schristosh
78031.84Schristoss///
78041.84Schristoss/^/:/
78051.84Schristoss/[	 ]*$/:/
78061.84Schristoss/:\$(srcdir):/:/g
78071.84Schristoss/:\${srcdir}:/:/g
78081.84Schristoss/:@srcdir@:/:/g
78091.84Schristoss/^:*//
78101.84Schristoss/:*$//
78111.84Schristosx
78121.84Schristoss/\(=[	 ]*\).*/\1/
78131.84SchristosG
78141.84Schristoss/\n//
78151.84Schristoss/^[^=]*=[	 ]*$//
78161.84Schristos}'
78171.84Schristosfi
78181.84Schristos
78191.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
78201.84Schristosfi # test -n "$CONFIG_FILES"
78211.74Schristos
78221.84Schristos# Set up the scripts for CONFIG_HEADERS section.
78231.84Schristos# No need to generate them if there are no CONFIG_HEADERS.
78241.84Schristos# This happens for instance with `./config.status Makefile'.
78251.84Schristosif test -n "$CONFIG_HEADERS"; then
78261.84Schristoscat >"$ac_tmp/defines.awk" <<\_ACAWK ||
78271.84SchristosBEGIN {
78281.84Schristos_ACEOF
78291.84Schristos
78301.84Schristos# Transform confdefs.h into an awk script `defines.awk', embedded as
78311.84Schristos# here-document in config.status, that substitutes the proper values into
78321.84Schristos# config.h.in to produce config.h.
78331.84Schristos
78341.84Schristos# Create a delimiter string that does not exist in confdefs.h, to ease
78351.84Schristos# handling of long lines.
78361.84Schristosac_delim='%!_!# '
78371.84Schristosfor ac_last_try in false false :; do
78381.84Schristos  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
78391.84Schristos  if test -z "$ac_tt"; then
78401.84Schristos    break
78411.84Schristos  elif $ac_last_try; then
78421.84Schristos    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
78431.66Stsutsui  else
78441.84Schristos    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
78451.66Stsutsui  fi
78461.66Stsutsuidone
78471.66Stsutsui
78481.84Schristos# For the awk script, D is an array of macro values keyed by name,
78491.84Schristos# likewise P contains macro parameters if any.  Preserve backslash
78501.84Schristos# newline sequences.
78511.84Schristos
78521.84Schristosac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
78531.84Schristossed -n '
78541.84Schristoss/.\{148\}/&'"$ac_delim"'/g
78551.84Schristost rset
78561.84Schristos:rset
78571.84Schristoss/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
78581.84Schristost def
78591.84Schristosd
78601.84Schristos:def
78611.84Schristoss/\\$//
78621.84Schristost bsnl
78631.84Schristoss/["\\]/\\&/g
78641.84Schristoss/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
78651.84SchristosD["\1"]=" \3"/p
78661.84Schristoss/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
78671.84Schristosd
78681.84Schristos:bsnl
78691.84Schristoss/["\\]/\\&/g
78701.84Schristoss/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
78711.84SchristosD["\1"]=" \3\\\\\\n"\\/p
78721.84Schristost cont
78731.84Schristoss/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
78741.84Schristost cont
78751.84Schristosd
78761.84Schristos:cont
78771.84Schristosn
78781.84Schristoss/.\{148\}/&'"$ac_delim"'/g
78791.84Schristost clear
78801.84Schristos:clear
78811.84Schristoss/\\$//
78821.84Schristost bsnlc
78831.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/"/p
78841.84Schristosd
78851.84Schristos:bsnlc
78861.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
78871.84Schristosb cont
78881.84Schristos' <confdefs.h | sed '
78891.84Schristoss/'"$ac_delim"'/"\\\
78901.84Schristos"/g' >>$CONFIG_STATUS || ac_write_fail=1
78911.84Schristos
78921.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
78931.84Schristos  for (key in D) D_is_set[key] = 1
78941.84Schristos  FS = ""
78951.84Schristos}
78961.84Schristos/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
78971.84Schristos  line = \$ 0
78981.84Schristos  split(line, arg, " ")
78991.84Schristos  if (arg[1] == "#") {
79001.84Schristos    defundef = arg[2]
79011.84Schristos    mac1 = arg[3]
79021.84Schristos  } else {
79031.84Schristos    defundef = substr(arg[1], 2)
79041.84Schristos    mac1 = arg[2]
79051.84Schristos  }
79061.84Schristos  split(mac1, mac2, "(") #)
79071.84Schristos  macro = mac2[1]
79081.84Schristos  prefix = substr(line, 1, index(line, defundef) - 1)
79091.84Schristos  if (D_is_set[macro]) {
79101.84Schristos    # Preserve the white space surrounding the "#".
79111.84Schristos    print prefix "define", macro P[macro] D[macro]
79121.84Schristos    next
79131.84Schristos  } else {
79141.84Schristos    # Replace #undef with comments.  This is necessary, for example,
79151.84Schristos    # in the case of _POSIX_SOURCE, which is predefined and required
79161.84Schristos    # on some systems where configure will not decide to define it.
79171.84Schristos    if (defundef == "undef") {
79181.84Schristos      print "/*", prefix defundef, macro, "*/"
79191.84Schristos      next
79201.84Schristos    }
79211.84Schristos  }
79221.84Schristos}
79231.84Schristos{ print }
79241.84Schristos_ACAWK
79251.84Schristos_ACEOF
79261.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79271.84Schristos  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
79281.84Schristosfi # test -n "$CONFIG_HEADERS"
79291.66Stsutsui
79301.1Stv
79311.84Schristoseval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
79321.84Schristosshift
79331.84Schristosfor ac_tag
79341.84Schristosdo
79351.84Schristos  case $ac_tag in
79361.84Schristos  :[FHLC]) ac_mode=$ac_tag; continue;;
79371.84Schristos  esac
79381.84Schristos  case $ac_mode$ac_tag in
79391.84Schristos  :[FHL]*:*);;
79401.84Schristos  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
79411.84Schristos  :[FH]-) ac_tag=-:-;;
79421.84Schristos  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
79431.74Schristos  esac
79441.84Schristos  ac_save_IFS=$IFS
79451.84Schristos  IFS=:
79461.84Schristos  set x $ac_tag
79471.84Schristos  IFS=$ac_save_IFS
79481.84Schristos  shift
79491.84Schristos  ac_file=$1
79501.84Schristos  shift
79511.84Schristos
79521.84Schristos  case $ac_mode in
79531.84Schristos  :L) ac_source=$1;;
79541.84Schristos  :[FH])
79551.84Schristos    ac_file_inputs=
79561.84Schristos    for ac_f
79571.84Schristos    do
79581.84Schristos      case $ac_f in
79591.84Schristos      -) ac_f="$ac_tmp/stdin";;
79601.84Schristos      *) # Look for the file first in the build tree, then in the source tree
79611.84Schristos	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
79621.84Schristos	 # because $ac_f cannot contain `:'.
79631.84Schristos	 test -f "$ac_f" ||
79641.84Schristos	   case $ac_f in
79651.84Schristos	   [\\/$]*) false;;
79661.84Schristos	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
79671.84Schristos	   esac ||
79681.84Schristos	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
79691.84Schristos      esac
79701.84Schristos      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
79711.84Schristos      as_fn_append ac_file_inputs " '$ac_f'"
79721.84Schristos    done
79731.74Schristos
79741.84Schristos    # Let's still pretend it is `configure' which instantiates (i.e., don't
79751.84Schristos    # use $as_me), people would be surprised to read:
79761.84Schristos    #    /* config.h.  Generated by config.status.  */
79771.84Schristos    configure_input='Generated from '`
79781.84Schristos	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
79791.84Schristos	`' by configure.'
79801.84Schristos    if test x"$ac_file" != x-; then
79811.84Schristos      configure_input="$ac_file.  $configure_input"
79821.84Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
79831.84Schristos$as_echo "$as_me: creating $ac_file" >&6;}
79841.84Schristos    fi
79851.84Schristos    # Neutralize special characters interpreted by sed in replacement strings.
79861.84Schristos    case $configure_input in #(
79871.84Schristos    *\&* | *\|* | *\\* )
79881.84Schristos       ac_sed_conf_input=`$as_echo "$configure_input" |
79891.84Schristos       sed 's/[\\\\&|]/\\\\&/g'`;; #(
79901.84Schristos    *) ac_sed_conf_input=$configure_input;;
79911.84Schristos    esac
79921.76Spooka
79931.84Schristos    case $ac_tag in
79941.84Schristos    *:-:* | *:-) cat >"$ac_tmp/stdin" \
79951.84Schristos      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
79961.84Schristos    esac
79971.66Stsutsui    ;;
79981.66Stsutsui  esac
79991.66Stsutsui
80001.84Schristos  ac_dir=`$as_dirname -- "$ac_file" ||
80011.84Schristos$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
80021.84Schristos	 X"$ac_file" : 'X\(//\)[^/]' \| \
80031.84Schristos	 X"$ac_file" : 'X\(//\)$' \| \
80041.84Schristos	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
80051.84Schristos$as_echo X"$ac_file" |
80061.84Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
80071.84Schristos	    s//\1/
80081.84Schristos	    q
80091.84Schristos	  }
80101.84Schristos	  /^X\(\/\/\)[^/].*/{
80111.84Schristos	    s//\1/
80121.84Schristos	    q
80131.84Schristos	  }
80141.84Schristos	  /^X\(\/\/\)$/{
80151.84Schristos	    s//\1/
80161.84Schristos	    q
80171.84Schristos	  }
80181.84Schristos	  /^X\(\/\).*/{
80191.84Schristos	    s//\1/
80201.84Schristos	    q
80211.84Schristos	  }
80221.84Schristos	  s/.*/./; q'`
80231.84Schristos  as_dir="$ac_dir"; as_fn_mkdir_p
80241.84Schristos  ac_builddir=.
80251.84Schristos
80261.84Schristoscase "$ac_dir" in
80271.84Schristos.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
80281.84Schristos*)
80291.84Schristos  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
80301.84Schristos  # A ".." for each directory in $ac_dir_suffix.
80311.84Schristos  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
80321.84Schristos  case $ac_top_builddir_sub in
80331.84Schristos  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
80341.84Schristos  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
80351.84Schristos  esac ;;
80361.84Schristosesac
80371.84Schristosac_abs_top_builddir=$ac_pwd
80381.84Schristosac_abs_builddir=$ac_pwd$ac_dir_suffix
80391.84Schristos# for backward compatibility:
80401.84Schristosac_top_builddir=$ac_top_build_prefix
80411.84Schristos
80421.84Schristoscase $srcdir in
80431.84Schristos  .)  # We are building in place.
80441.84Schristos    ac_srcdir=.
80451.84Schristos    ac_top_srcdir=$ac_top_builddir_sub
80461.84Schristos    ac_abs_top_srcdir=$ac_pwd ;;
80471.84Schristos  [\\/]* | ?:[\\/]* )  # Absolute name.
80481.84Schristos    ac_srcdir=$srcdir$ac_dir_suffix;
80491.84Schristos    ac_top_srcdir=$srcdir
80501.84Schristos    ac_abs_top_srcdir=$srcdir ;;
80511.84Schristos  *) # Relative name.
80521.84Schristos    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
80531.84Schristos    ac_top_srcdir=$ac_top_build_prefix$srcdir
80541.84Schristos    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
80551.84Schristosesac
80561.84Schristosac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
80571.84Schristos
80581.84Schristos
80591.84Schristos  case $ac_mode in
80601.84Schristos  :F)
80611.84Schristos  #
80621.84Schristos  # CONFIG_FILE
80631.84Schristos  #
80641.84Schristos
80651.84Schristos_ACEOF
80661.84Schristos
80671.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
80681.84Schristos# If the template does not know about datarootdir, expand it.
80691.84Schristos# FIXME: This hack should be removed a few years after 2.60.
80701.84Schristosac_datarootdir_hack=; ac_datarootdir_seen=
80711.84Schristosac_sed_dataroot='
80721.84Schristos/datarootdir/ {
80731.84Schristos  p
80741.84Schristos  q
80751.84Schristos}
80761.84Schristos/@datadir@/p
80771.84Schristos/@docdir@/p
80781.84Schristos/@infodir@/p
80791.84Schristos/@localedir@/p
80801.84Schristos/@mandir@/p'
80811.84Schristoscase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
80821.84Schristos*datarootdir*) ac_datarootdir_seen=yes;;
80831.84Schristos*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
80841.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
80851.84Schristos$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
80861.84Schristos_ACEOF
80871.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
80881.84Schristos  ac_datarootdir_hack='
80891.84Schristos  s&@datadir@&$datadir&g
80901.84Schristos  s&@docdir@&$docdir&g
80911.84Schristos  s&@infodir@&$infodir&g
80921.84Schristos  s&@localedir@&$localedir&g
80931.84Schristos  s&@mandir@&$mandir&g
80941.84Schristos  s&\\\${datarootdir}&$datarootdir&g' ;;
80951.84Schristosesac
80961.84Schristos_ACEOF
80971.84Schristos
80981.84Schristos# Neutralize VPATH when `$srcdir' = `.'.
80991.84Schristos# Shell code in configure.ac might set extrasub.
81001.84Schristos# FIXME: do we really want to maintain this feature?
81011.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
81021.84Schristosac_sed_extra="$ac_vpsub
81031.84Schristos$extrasub
81041.84Schristos_ACEOF
81051.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
81061.84Schristos:t
81071.84Schristos/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81081.84Schristoss|@configure_input@|$ac_sed_conf_input|;t t
81091.84Schristoss&@top_builddir@&$ac_top_builddir_sub&;t t
81101.84Schristoss&@top_build_prefix@&$ac_top_build_prefix&;t t
81111.84Schristoss&@srcdir@&$ac_srcdir&;t t
81121.84Schristoss&@abs_srcdir@&$ac_abs_srcdir&;t t
81131.84Schristoss&@top_srcdir@&$ac_top_srcdir&;t t
81141.84Schristoss&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
81151.84Schristoss&@builddir@&$ac_builddir&;t t
81161.84Schristoss&@abs_builddir@&$ac_abs_builddir&;t t
81171.84Schristoss&@abs_top_builddir@&$ac_abs_top_builddir&;t t
81181.84Schristos$ac_datarootdir_hack
81191.84Schristos"
81201.84Schristoseval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
81211.84Schristos  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81221.84Schristos
81231.84Schristostest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
81241.84Schristos  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
81251.84Schristos  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
81261.84Schristos      "$ac_tmp/out"`; test -z "$ac_out"; } &&
81271.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
81281.84Schristoswhich seems to be undefined.  Please make sure it is defined" >&5
81291.84Schristos$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
81301.84Schristoswhich seems to be undefined.  Please make sure it is defined" >&2;}
81311.84Schristos
81321.84Schristos  rm -f "$ac_tmp/stdin"
81331.84Schristos  case $ac_file in
81341.84Schristos  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
81351.84Schristos  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81361.84Schristos  esac \
81371.84Schristos  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81381.84Schristos ;;
81391.84Schristos  :H)
81401.84Schristos  #
81411.84Schristos  # CONFIG_HEADER
81421.84Schristos  #
81431.84Schristos  if test x"$ac_file" != x-; then
81441.84Schristos    {
81451.84Schristos      $as_echo "/* $configure_input  */" \
81461.84Schristos      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
81471.84Schristos    } >"$ac_tmp/config.h" \
81481.84Schristos      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81491.84Schristos    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81501.84Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
81511.84Schristos$as_echo "$as_me: $ac_file is unchanged" >&6;}
81521.84Schristos    else
81531.84Schristos      rm -f "$ac_file"
81541.84Schristos      mv "$ac_tmp/config.h" "$ac_file" \
81551.84Schristos	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
81561.1Stv    fi
81571.1Stv  else
81581.84Schristos    $as_echo "/* $configure_input  */" \
81591.84Schristos      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
81601.84Schristos      || as_fn_error $? "could not create -" "$LINENO" 5
81611.1Stv  fi
81621.84Schristos ;;
81631.84Schristos
81641.84Schristos
81651.84Schristos  esac
81661.84Schristos
81671.84Schristosdone # for ac_tag
81681.74Schristos
81691.74Schristos
81701.84Schristosas_fn_exit 0
81711.84Schristos_ACEOF
81721.1Stvac_clean_files=$ac_clean_files_save
81731.1Stv
81741.84Schristostest $ac_write_fail = 0 ||
81751.84Schristos  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81761.84Schristos
81771.84Schristos
81781.1Stv# configure is writing to config.log, and then calls config.status.
81791.1Stv# config.status does its own redirection, appending to config.log.
81801.1Stv# Unfortunately, on DOS this fails, as config.log is still kept open
81811.1Stv# by configure, so config.status won't be able to write to it; its
81821.1Stv# output is simply discarded.  So we exec the FD to /dev/null,
81831.1Stv# effectively closing config.log, so it can be properly (re)opened and
81841.1Stv# appended to by config.status.  When coming back to configure, we
81851.1Stv# need to make the FD available again.
81861.1Stvif test "$no_create" != yes; then
81871.1Stv  ac_cs_success=:
81881.84Schristos  ac_config_status_args=
81891.84Schristos  test "$silent" = yes &&
81901.84Schristos    ac_config_status_args="$ac_config_status_args --quiet"
81911.1Stv  exec 5>/dev/null
81921.84Schristos  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
81931.1Stv  exec 5>>config.log
81941.1Stv  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
81951.1Stv  # would make configure fail if this is the last instruction.
81961.84Schristos  $ac_cs_success || as_fn_exit 1
81971.84Schristosfi
81981.84Schristosif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
81991.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
82001.84Schristos$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
82011.1Stvfi
82021.96Shannken
82031.102Slukem
82041.104Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: ========= configure results for compat ==========" >&5
82051.104Slukem$as_echo "$as_me: ========= configure results for compat ==========" >&6;}
82061.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: CC                                      $CC" >&5
82071.103Slukem$as_echo "$as_me: CC                                      $CC" >&6;}
82081.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: LIBS                                    $LIBS" >&5
82091.103Slukem$as_echo "$as_me: LIBS                                    $LIBS" >&6;}
82101.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_NO_CPP_PRECOMP                       $CC_NO_CPP_PRECOMP" >&5
82111.103Slukem$as_echo "$as_me: CC_NO_CPP_PRECOMP                       $CC_NO_CPP_PRECOMP" >&6;}
82121.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_ADDRESS_OF_PACKED_MEMBER         $CC_WNO_ADDRESS_OF_PACKED_MEMBER" >&5
82131.103Slukem$as_echo "$as_me: CC_WNO_ADDRESS_OF_PACKED_MEMBER         $CC_WNO_ADDRESS_OF_PACKED_MEMBER" >&6;}
82141.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_CAST_FUNCTION_TYPE               $CC_WNO_CAST_FUNCTION_TYPE" >&5
82151.103Slukem$as_echo "$as_me: CC_WNO_CAST_FUNCTION_TYPE               $CC_WNO_CAST_FUNCTION_TYPE" >&6;}
82161.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER   $CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER" >&5
82171.103Slukem$as_echo "$as_me: CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER   $CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER" >&6;}
82181.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_FORMAT_OVERFLOW                  $CC_WNO_FORMAT_OVERFLOW" >&5
82191.103Slukem$as_echo "$as_me: CC_WNO_FORMAT_OVERFLOW                  $CC_WNO_FORMAT_OVERFLOW" >&6;}
82201.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_FORMAT_TRUNCATION                $CC_WNO_FORMAT_TRUNCATION" >&5
82211.103Slukem$as_echo "$as_me: CC_WNO_FORMAT_TRUNCATION                $CC_WNO_FORMAT_TRUNCATION" >&6;}
82221.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_IMPLICIT_FALLTHROUGH             $CC_WNO_IMPLICIT_FALLTHROUGH" >&5
82231.103Slukem$as_echo "$as_me: CC_WNO_IMPLICIT_FALLTHROUGH             $CC_WNO_IMPLICIT_FALLTHROUGH" >&6;}
82241.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_MAYBE_UNINITIALIZED              $CC_WNO_MAYBE_UNINITIALIZED" >&5
82251.103Slukem$as_echo "$as_me: CC_WNO_MAYBE_UNINITIALIZED              $CC_WNO_MAYBE_UNINITIALIZED" >&6;}
82261.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_RETURN_LOCAL_ADDR                $CC_WNO_RETURN_LOCAL_ADDR" >&5
82271.103Slukem$as_echo "$as_me: CC_WNO_RETURN_LOCAL_ADDR                $CC_WNO_RETURN_LOCAL_ADDR" >&6;}
82281.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_STRINGOP_OVERFLOW                $CC_WNO_STRINGOP_OVERFLOW" >&5
82291.103Slukem$as_echo "$as_me: CC_WNO_STRINGOP_OVERFLOW                $CC_WNO_STRINGOP_OVERFLOW" >&6;}
82301.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_STRINGOP_TRUNCATION              $CC_WNO_STRINGOP_TRUNCATION" >&5
82311.103Slukem$as_echo "$as_me: CC_WNO_STRINGOP_TRUNCATION              $CC_WNO_STRINGOP_TRUNCATION" >&6;}
82321.103Slukem
82331.103Slukem{ $as_echo "$as_me:${as_lineno-$LINENO}: ================================================" >&5
82341.103Slukem$as_echo "$as_me: ================================================" >&6;}
8235