configure revision 1.101
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.84SchristosHAVE_PTHREAD_H
6271.84SchristosALLOCA
6281.84SchristosBSHELL
6291.84SchristosEGREP
6301.84SchristosGREP
6311.84SchristosCPP
6321.84SchristosOBJEXT
6331.84SchristosEXEEXT
6341.84Schristosac_ct_CC
6351.84SchristosCPPFLAGS
6361.84SchristosLDFLAGS
6371.84SchristosCFLAGS
6381.84SchristosCC
6391.84Schristostarget_alias
6401.84Schristoshost_alias
6411.84Schristosbuild_alias
6421.84SchristosLIBS
6431.84SchristosECHO_T
6441.84SchristosECHO_N
6451.84SchristosECHO_C
6461.84SchristosDEFS
6471.84Schristosmandir
6481.84Schristoslocaledir
6491.84Schristoslibdir
6501.84Schristospsdir
6511.84Schristospdfdir
6521.84Schristosdvidir
6531.84Schristoshtmldir
6541.84Schristosinfodir
6551.84Schristosdocdir
6561.84Schristosoldincludedir
6571.84Schristosincludedir
6581.84Schristoslocalstatedir
6591.84Schristossharedstatedir
6601.84Schristossysconfdir
6611.84Schristosdatadir
6621.84Schristosdatarootdir
6631.84Schristoslibexecdir
6641.84Schristossbindir
6651.84Schristosbindir
6661.84Schristosprogram_transform_name
6671.84Schristosprefix
6681.84Schristosexec_prefix
6691.84SchristosPACKAGE_URL
6701.84SchristosPACKAGE_BUGREPORT
6711.84SchristosPACKAGE_STRING
6721.84SchristosPACKAGE_VERSION
6731.84SchristosPACKAGE_TARNAME
6741.84SchristosPACKAGE_NAME
6751.84SchristosPATH_SEPARATOR
6761.84SchristosSHELL'
6771.84Schristosac_subst_files=''
6781.84Schristosac_user_opts='
6791.84Schristosenable_option_checking
6801.84Schristos'
6811.84Schristos      ac_precious_vars='build_alias
6821.84Schristoshost_alias
6831.84Schristostarget_alias
6841.84SchristosCC
6851.84SchristosCFLAGS
6861.84SchristosLDFLAGS
6871.84SchristosLIBS
6881.84SchristosCPPFLAGS
6891.84SchristosCPP'
6901.84Schristos
6911.84Schristos
6921.1Stv# Initialize some variables set by options.
6931.1Stvac_init_help=
6941.1Stvac_init_version=false
6951.84Schristosac_unrecognized_opts=
6961.84Schristosac_unrecognized_sep=
6971.1Stv# The variables have the same names as the options, with
6981.1Stv# dashes changed to underlines.
6991.1Stvcache_file=/dev/null
7001.1Stvexec_prefix=NONE
7011.1Stvno_create=
7021.1Stvno_recursion=
7031.1Stvprefix=NONE
7041.1Stvprogram_prefix=NONE
7051.1Stvprogram_suffix=NONE
7061.1Stvprogram_transform_name=s,x,x,
7071.1Stvsilent=
7081.1Stvsite=
7091.1Stvsrcdir=
7101.1Stvverbose=
7111.1Stvx_includes=NONE
7121.1Stvx_libraries=NONE
7131.1Stv
7141.1Stv# Installation directory options.
7151.1Stv# These are left unexpanded so users can "make install exec_prefix=/foo"
7161.1Stv# and all the variables that are supposed to be based on exec_prefix
7171.1Stv# by default will actually change.
7181.1Stv# Use braces instead of parens because sh, perl, etc. also accept them.
7191.84Schristos# (The list follows the same order as the GNU Coding Standards.)
7201.1Stvbindir='${exec_prefix}/bin'
7211.1Stvsbindir='${exec_prefix}/sbin'
7221.1Stvlibexecdir='${exec_prefix}/libexec'
7231.84Schristosdatarootdir='${prefix}/share'
7241.84Schristosdatadir='${datarootdir}'
7251.1Stvsysconfdir='${prefix}/etc'
7261.1Stvsharedstatedir='${prefix}/com'
7271.1Stvlocalstatedir='${prefix}/var'
7281.1Stvincludedir='${prefix}/include'
7291.1Stvoldincludedir='/usr/include'
7301.84Schristosdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
7311.84Schristosinfodir='${datarootdir}/info'
7321.84Schristoshtmldir='${docdir}'
7331.84Schristosdvidir='${docdir}'
7341.84Schristospdfdir='${docdir}'
7351.84Schristospsdir='${docdir}'
7361.84Schristoslibdir='${exec_prefix}/lib'
7371.84Schristoslocaledir='${datarootdir}/locale'
7381.84Schristosmandir='${datarootdir}/man'
7391.63Sapb
7401.1Stvac_prev=
7411.84Schristosac_dashdash=
7421.1Stvfor ac_option
7431.1Stvdo
7441.1Stv  # If the previous option needs an argument, assign it.
7451.1Stv  if test -n "$ac_prev"; then
7461.84Schristos    eval $ac_prev=\$ac_option
7471.1Stv    ac_prev=
7481.1Stv    continue
7491.1Stv  fi
7501.1Stv
7511.84Schristos  case $ac_option in
7521.84Schristos  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
7531.84Schristos  *=)   ac_optarg= ;;
7541.84Schristos  *)    ac_optarg=yes ;;
7551.84Schristos  esac
7561.1Stv
7571.1Stv  # Accept the important Cygnus configure options, so we can diagnose typos.
7581.1Stv
7591.84Schristos  case $ac_dashdash$ac_option in
7601.84Schristos  --)
7611.84Schristos    ac_dashdash=yes ;;
7621.1Stv
7631.1Stv  -bindir | --bindir | --bindi | --bind | --bin | --bi)
7641.1Stv    ac_prev=bindir ;;
7651.1Stv  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
7661.1Stv    bindir=$ac_optarg ;;
7671.1Stv
7681.1Stv  -build | --build | --buil | --bui | --bu)
7691.1Stv    ac_prev=build_alias ;;
7701.1Stv  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
7711.1Stv    build_alias=$ac_optarg ;;
7721.1Stv
7731.1Stv  -cache-file | --cache-file | --cache-fil | --cache-fi \
7741.1Stv  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7751.1Stv    ac_prev=cache_file ;;
7761.1Stv  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7771.1Stv  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7781.1Stv    cache_file=$ac_optarg ;;
7791.1Stv
7801.1Stv  --config-cache | -C)
7811.1Stv    cache_file=config.cache ;;
7821.1Stv
7831.84Schristos  -datadir | --datadir | --datadi | --datad)
7841.1Stv    ac_prev=datadir ;;
7851.84Schristos  -datadir=* | --datadir=* | --datadi=* | --datad=*)
7861.1Stv    datadir=$ac_optarg ;;
7871.1Stv
7881.84Schristos  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
7891.84Schristos  | --dataroo | --dataro | --datar)
7901.84Schristos    ac_prev=datarootdir ;;
7911.84Schristos  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
7921.84Schristos  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
7931.84Schristos    datarootdir=$ac_optarg ;;
7941.84Schristos
7951.1Stv  -disable-* | --disable-*)
7961.84Schristos    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
7971.1Stv    # Reject names that are not valid shell variable names.
7981.84Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
7991.84Schristos      as_fn_error $? "invalid feature name: $ac_useropt"
8001.84Schristos    ac_useropt_orig=$ac_useropt
8011.84Schristos    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8021.84Schristos    case $ac_user_opts in
8031.84Schristos      *"
8041.84Schristos"enable_$ac_useropt"
8051.84Schristos"*) ;;
8061.84Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8071.84Schristos	 ac_unrecognized_sep=', ';;
8081.84Schristos    esac
8091.84Schristos    eval enable_$ac_useropt=no ;;
8101.84Schristos
8111.84Schristos  -docdir | --docdir | --docdi | --doc | --do)
8121.84Schristos    ac_prev=docdir ;;
8131.84Schristos  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
8141.84Schristos    docdir=$ac_optarg ;;
8151.84Schristos
8161.84Schristos  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
8171.84Schristos    ac_prev=dvidir ;;
8181.84Schristos  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
8191.84Schristos    dvidir=$ac_optarg ;;
8201.1Stv
8211.1Stv  -enable-* | --enable-*)
8221.84Schristos    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
8231.1Stv    # Reject names that are not valid shell variable names.
8241.84Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8251.84Schristos      as_fn_error $? "invalid feature name: $ac_useropt"
8261.84Schristos    ac_useropt_orig=$ac_useropt
8271.84Schristos    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8281.84Schristos    case $ac_user_opts in
8291.84Schristos      *"
8301.84Schristos"enable_$ac_useropt"
8311.84Schristos"*) ;;
8321.84Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
8331.84Schristos	 ac_unrecognized_sep=', ';;
8341.66Stsutsui    esac
8351.84Schristos    eval enable_$ac_useropt=\$ac_optarg ;;
8361.1Stv
8371.1Stv  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
8381.1Stv  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
8391.1Stv  | --exec | --exe | --ex)
8401.1Stv    ac_prev=exec_prefix ;;
8411.1Stv  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
8421.1Stv  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
8431.1Stv  | --exec=* | --exe=* | --ex=*)
8441.1Stv    exec_prefix=$ac_optarg ;;
8451.1Stv
8461.1Stv  -gas | --gas | --ga | --g)
8471.1Stv    # Obsolete; use --with-gas.
8481.1Stv    with_gas=yes ;;
8491.1Stv
8501.1Stv  -help | --help | --hel | --he | -h)
8511.1Stv    ac_init_help=long ;;
8521.1Stv  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
8531.1Stv    ac_init_help=recursive ;;
8541.1Stv  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
8551.1Stv    ac_init_help=short ;;
8561.1Stv
8571.1Stv  -host | --host | --hos | --ho)
8581.1Stv    ac_prev=host_alias ;;
8591.1Stv  -host=* | --host=* | --hos=* | --ho=*)
8601.1Stv    host_alias=$ac_optarg ;;
8611.1Stv
8621.84Schristos  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
8631.84Schristos    ac_prev=htmldir ;;
8641.84Schristos  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
8651.84Schristos  | --ht=*)
8661.84Schristos    htmldir=$ac_optarg ;;
8671.84Schristos
8681.1Stv  -includedir | --includedir | --includedi | --included | --include \
8691.1Stv  | --includ | --inclu | --incl | --inc)
8701.1Stv    ac_prev=includedir ;;
8711.1Stv  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
8721.1Stv  | --includ=* | --inclu=* | --incl=* | --inc=*)
8731.1Stv    includedir=$ac_optarg ;;
8741.1Stv
8751.1Stv  -infodir | --infodir | --infodi | --infod | --info | --inf)
8761.1Stv    ac_prev=infodir ;;
8771.1Stv  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
8781.1Stv    infodir=$ac_optarg ;;
8791.1Stv
8801.1Stv  -libdir | --libdir | --libdi | --libd)
8811.1Stv    ac_prev=libdir ;;
8821.1Stv  -libdir=* | --libdir=* | --libdi=* | --libd=*)
8831.1Stv    libdir=$ac_optarg ;;
8841.1Stv
8851.1Stv  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
8861.1Stv  | --libexe | --libex | --libe)
8871.1Stv    ac_prev=libexecdir ;;
8881.1Stv  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
8891.1Stv  | --libexe=* | --libex=* | --libe=*)
8901.1Stv    libexecdir=$ac_optarg ;;
8911.1Stv
8921.84Schristos  -localedir | --localedir | --localedi | --localed | --locale)
8931.84Schristos    ac_prev=localedir ;;
8941.84Schristos  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
8951.84Schristos    localedir=$ac_optarg ;;
8961.84Schristos
8971.1Stv  -localstatedir | --localstatedir | --localstatedi | --localstated \
8981.84Schristos  | --localstate | --localstat | --localsta | --localst | --locals)
8991.1Stv    ac_prev=localstatedir ;;
9001.1Stv  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9011.84Schristos  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9021.1Stv    localstatedir=$ac_optarg ;;
9031.1Stv
9041.1Stv  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9051.1Stv    ac_prev=mandir ;;
9061.1Stv  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9071.1Stv    mandir=$ac_optarg ;;
9081.1Stv
9091.1Stv  -nfp | --nfp | --nf)
9101.1Stv    # Obsolete; use --without-fp.
9111.1Stv    with_fp=no ;;
9121.1Stv
9131.1Stv  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9141.84Schristos  | --no-cr | --no-c | -n)
9151.1Stv    no_create=yes ;;
9161.1Stv
9171.1Stv  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9181.1Stv  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
9191.1Stv    no_recursion=yes ;;
9201.1Stv
9211.1Stv  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
9221.1Stv  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
9231.1Stv  | --oldin | --oldi | --old | --ol | --o)
9241.1Stv    ac_prev=oldincludedir ;;
9251.1Stv  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
9261.1Stv  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
9271.1Stv  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9281.1Stv    oldincludedir=$ac_optarg ;;
9291.1Stv
9301.1Stv  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9311.1Stv    ac_prev=prefix ;;
9321.1Stv  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9331.1Stv    prefix=$ac_optarg ;;
9341.1Stv
9351.1Stv  -program-prefix | --program-prefix | --program-prefi | --program-pref \
9361.1Stv  | --program-pre | --program-pr | --program-p)
9371.1Stv    ac_prev=program_prefix ;;
9381.1Stv  -program-prefix=* | --program-prefix=* | --program-prefi=* \
9391.1Stv  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9401.1Stv    program_prefix=$ac_optarg ;;
9411.1Stv
9421.1Stv  -program-suffix | --program-suffix | --program-suffi | --program-suff \
9431.1Stv  | --program-suf | --program-su | --program-s)
9441.1Stv    ac_prev=program_suffix ;;
9451.1Stv  -program-suffix=* | --program-suffix=* | --program-suffi=* \
9461.1Stv  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
9471.1Stv    program_suffix=$ac_optarg ;;
9481.1Stv
9491.1Stv  -program-transform-name | --program-transform-name \
9501.1Stv  | --program-transform-nam | --program-transform-na \
9511.1Stv  | --program-transform-n | --program-transform- \
9521.1Stv  | --program-transform | --program-transfor \
9531.1Stv  | --program-transfo | --program-transf \
9541.1Stv  | --program-trans | --program-tran \
9551.1Stv  | --progr-tra | --program-tr | --program-t)
9561.1Stv    ac_prev=program_transform_name ;;
9571.1Stv  -program-transform-name=* | --program-transform-name=* \
9581.1Stv  | --program-transform-nam=* | --program-transform-na=* \
9591.1Stv  | --program-transform-n=* | --program-transform-=* \
9601.1Stv  | --program-transform=* | --program-transfor=* \
9611.1Stv  | --program-transfo=* | --program-transf=* \
9621.1Stv  | --program-trans=* | --program-tran=* \
9631.1Stv  | --progr-tra=* | --program-tr=* | --program-t=*)
9641.1Stv    program_transform_name=$ac_optarg ;;
9651.1Stv
9661.84Schristos  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
9671.84Schristos    ac_prev=pdfdir ;;
9681.84Schristos  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
9691.84Schristos    pdfdir=$ac_optarg ;;
9701.84Schristos
9711.84Schristos  -psdir | --psdir | --psdi | --psd | --ps)
9721.84Schristos    ac_prev=psdir ;;
9731.84Schristos  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
9741.84Schristos    psdir=$ac_optarg ;;
9751.84Schristos
9761.1Stv  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9771.1Stv  | -silent | --silent | --silen | --sile | --sil)
9781.1Stv    silent=yes ;;
9791.1Stv
9801.1Stv  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
9811.1Stv    ac_prev=sbindir ;;
9821.1Stv  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
9831.1Stv  | --sbi=* | --sb=*)
9841.1Stv    sbindir=$ac_optarg ;;
9851.1Stv
9861.1Stv  -sharedstatedir | --sharedstatedir | --sharedstatedi \
9871.1Stv  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
9881.1Stv  | --sharedst | --shareds | --shared | --share | --shar \
9891.1Stv  | --sha | --sh)
9901.1Stv    ac_prev=sharedstatedir ;;
9911.1Stv  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
9921.1Stv  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
9931.1Stv  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
9941.1Stv  | --sha=* | --sh=*)
9951.1Stv    sharedstatedir=$ac_optarg ;;
9961.1Stv
9971.1Stv  -site | --site | --sit)
9981.1Stv    ac_prev=site ;;
9991.1Stv  -site=* | --site=* | --sit=*)
10001.1Stv    site=$ac_optarg ;;
10011.1Stv
10021.1Stv  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10031.1Stv    ac_prev=srcdir ;;
10041.1Stv  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10051.1Stv    srcdir=$ac_optarg ;;
10061.1Stv
10071.1Stv  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10081.1Stv  | --syscon | --sysco | --sysc | --sys | --sy)
10091.1Stv    ac_prev=sysconfdir ;;
10101.1Stv  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10111.1Stv  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10121.1Stv    sysconfdir=$ac_optarg ;;
10131.1Stv
10141.1Stv  -target | --target | --targe | --targ | --tar | --ta | --t)
10151.1Stv    ac_prev=target_alias ;;
10161.1Stv  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
10171.1Stv    target_alias=$ac_optarg ;;
10181.1Stv
10191.1Stv  -v | -verbose | --verbose | --verbos | --verbo | --verb)
10201.1Stv    verbose=yes ;;
10211.1Stv
10221.1Stv  -version | --version | --versio | --versi | --vers | -V)
10231.1Stv    ac_init_version=: ;;
10241.1Stv
10251.1Stv  -with-* | --with-*)
10261.84Schristos    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10271.1Stv    # Reject names that are not valid shell variable names.
10281.84Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10291.84Schristos      as_fn_error $? "invalid package name: $ac_useropt"
10301.84Schristos    ac_useropt_orig=$ac_useropt
10311.84Schristos    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10321.84Schristos    case $ac_user_opts in
10331.84Schristos      *"
10341.84Schristos"with_$ac_useropt"
10351.84Schristos"*) ;;
10361.84Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
10371.84Schristos	 ac_unrecognized_sep=', ';;
10381.66Stsutsui    esac
10391.84Schristos    eval with_$ac_useropt=\$ac_optarg ;;
10401.1Stv
10411.1Stv  -without-* | --without-*)
10421.84Schristos    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10431.1Stv    # Reject names that are not valid shell variable names.
10441.84Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10451.84Schristos      as_fn_error $? "invalid package name: $ac_useropt"
10461.84Schristos    ac_useropt_orig=$ac_useropt
10471.84Schristos    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10481.84Schristos    case $ac_user_opts in
10491.84Schristos      *"
10501.84Schristos"with_$ac_useropt"
10511.84Schristos"*) ;;
10521.84Schristos      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
10531.84Schristos	 ac_unrecognized_sep=', ';;
10541.84Schristos    esac
10551.84Schristos    eval with_$ac_useropt=no ;;
10561.1Stv
10571.1Stv  --x)
10581.1Stv    # Obsolete; use --with-x.
10591.1Stv    with_x=yes ;;
10601.1Stv
10611.1Stv  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
10621.1Stv  | --x-incl | --x-inc | --x-in | --x-i)
10631.1Stv    ac_prev=x_includes ;;
10641.1Stv  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
10651.1Stv  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
10661.1Stv    x_includes=$ac_optarg ;;
10671.1Stv
10681.1Stv  -x-libraries | --x-libraries | --x-librarie | --x-librari \
10691.1Stv  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
10701.1Stv    ac_prev=x_libraries ;;
10711.1Stv  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
10721.1Stv  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
10731.1Stv    x_libraries=$ac_optarg ;;
10741.1Stv
10751.84Schristos  -*) as_fn_error $? "unrecognized option: \`$ac_option'
10761.84SchristosTry \`$0 --help' for more information"
10771.1Stv    ;;
10781.1Stv
10791.1Stv  *=*)
10801.1Stv    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
10811.1Stv    # Reject names that are not valid shell variable names.
10821.84Schristos    case $ac_envvar in #(
10831.84Schristos      '' | [0-9]* | *[!_$as_cr_alnum]* )
10841.84Schristos      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
10851.84Schristos    esac
10861.84Schristos    eval $ac_envvar=\$ac_optarg
10871.1Stv    export $ac_envvar ;;
10881.1Stv
10891.1Stv  *)
10901.1Stv    # FIXME: should be removed in autoconf 3.0.
10911.84Schristos    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
10921.1Stv    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
10931.84Schristos      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
10941.84Schristos    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
10951.1Stv    ;;
10961.1Stv
10971.1Stv  esac
10981.1Stvdone
10991.1Stv
11001.1Stvif test -n "$ac_prev"; then
11011.1Stv  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11021.84Schristos  as_fn_error $? "missing argument to $ac_option"
11031.84Schristosfi
11041.84Schristos
11051.84Schristosif test -n "$ac_unrecognized_opts"; then
11061.84Schristos  case $enable_option_checking in
11071.84Schristos    no) ;;
11081.84Schristos    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11091.84Schristos    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11101.84Schristos  esac
11111.74Schristosfi
11121.74Schristos
11131.84Schristos# Check all directory arguments for consistency.
11141.84Schristosfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11151.84Schristos		datadir sysconfdir sharedstatedir localstatedir includedir \
11161.84Schristos		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
11171.84Schristos		libdir localedir mandir
11181.76Spookado
11191.84Schristos  eval ac_val=\$$ac_var
11201.84Schristos  # Remove trailing slashes.
11211.76Spooka  case $ac_val in
11221.84Schristos    */ )
11231.84Schristos      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
11241.84Schristos      eval $ac_var=\$ac_val;;
11251.74Schristos  esac
11261.84Schristos  # Be sure to have absolute directory names.
11271.1Stv  case $ac_val in
11281.84Schristos    [\\/$]* | ?:[\\/]* )  continue;;
11291.84Schristos    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
11301.1Stv  esac
11311.84Schristos  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
11321.1Stvdone
11331.1Stv
11341.1Stv# There might be people who depend on the old broken behavior: `$host'
11351.1Stv# used to hold the argument of --host etc.
11361.84Schristos# FIXME: To remove some day.
11371.1Stvbuild=$build_alias
11381.1Stvhost=$host_alias
11391.1Stvtarget=$target_alias
11401.1Stv
11411.84Schristos# FIXME: To remove some day.
11421.1Stvif test "x$host_alias" != x; then
11431.1Stv  if test "x$build_alias" = x; then
11441.1Stv    cross_compiling=maybe
11451.1Stv  elif test "x$build_alias" != "x$host_alias"; then
11461.1Stv    cross_compiling=yes
11471.1Stv  fi
11481.1Stvfi
11491.1Stv
11501.1Stvac_tool_prefix=
11511.1Stvtest -n "$host_alias" && ac_tool_prefix=$host_alias-
11521.1Stv
11531.1Stvtest "$silent" = yes && exec 6>/dev/null
11541.1Stv
11551.84Schristos
11561.84Schristosac_pwd=`pwd` && test -n "$ac_pwd" &&
11571.84Schristosac_ls_di=`ls -di .` &&
11581.84Schristosac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
11591.84Schristos  as_fn_error $? "working directory cannot be determined"
11601.84Schristostest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
11611.84Schristos  as_fn_error $? "pwd does not report name of working directory"
11621.84Schristos
11631.84Schristos
11641.1Stv# Find the source files, if location was not specified.
11651.1Stvif test -z "$srcdir"; then
11661.1Stv  ac_srcdir_defaulted=yes
11671.84Schristos  # Try the directory containing this script, then the parent directory.
11681.84Schristos  ac_confdir=`$as_dirname -- "$as_myself" ||
11691.84Schristos$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11701.84Schristos	 X"$as_myself" : 'X\(//\)[^/]' \| \
11711.84Schristos	 X"$as_myself" : 'X\(//\)$' \| \
11721.84Schristos	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
11731.84Schristos$as_echo X"$as_myself" |
11741.84Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11751.84Schristos	    s//\1/
11761.84Schristos	    q
11771.84Schristos	  }
11781.84Schristos	  /^X\(\/\/\)[^/].*/{
11791.84Schristos	    s//\1/
11801.84Schristos	    q
11811.84Schristos	  }
11821.84Schristos	  /^X\(\/\/\)$/{
11831.84Schristos	    s//\1/
11841.84Schristos	    q
11851.84Schristos	  }
11861.84Schristos	  /^X\(\/\).*/{
11871.84Schristos	    s//\1/
11881.84Schristos	    q
11891.84Schristos	  }
11901.84Schristos	  s/.*/./; q'`
11911.1Stv  srcdir=$ac_confdir
11921.84Schristos  if test ! -r "$srcdir/$ac_unique_file"; then
11931.1Stv    srcdir=..
11941.1Stv  fi
11951.1Stvelse
11961.1Stv  ac_srcdir_defaulted=no
11971.1Stvfi
11981.84Schristosif test ! -r "$srcdir/$ac_unique_file"; then
11991.84Schristos  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12001.84Schristos  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12011.84Schristosfi
12021.84Schristosac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12031.84Schristosac_abs_confdir=`(
12041.84Schristos	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12051.84Schristos	pwd)`
12061.84Schristos# When building in place, set srcdir=.
12071.84Schristosif test "$ac_abs_confdir" = "$ac_pwd"; then
12081.84Schristos  srcdir=.
12091.84Schristosfi
12101.84Schristos# Remove unnecessary trailing slashes from srcdir.
12111.84Schristos# Double slashes in file names in object file debugging info
12121.84Schristos# mess up M-x gdb in Emacs.
12131.84Schristoscase $srcdir in
12141.84Schristos*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
12151.84Schristosesac
12161.84Schristosfor ac_var in $ac_precious_vars; do
12171.84Schristos  eval ac_env_${ac_var}_set=\${${ac_var}+set}
12181.84Schristos  eval ac_env_${ac_var}_value=\$${ac_var}
12191.84Schristos  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
12201.84Schristos  eval ac_cv_env_${ac_var}_value=\$${ac_var}
12211.84Schristosdone
12221.1Stv
12231.1Stv#
12241.1Stv# Report the --help message.
12251.1Stv#
12261.1Stvif test "$ac_init_help" = "long"; then
12271.1Stv  # Omit some internal or obsolete options to make the list less imposing.
12281.1Stv  # This message is too long to be a string in the A/UX 3.1 sh.
12291.84Schristos  cat <<_ACEOF
12301.1Stv\`configure' configures libnbcompat noversion to adapt to many kinds of systems.
12311.1Stv
12321.1StvUsage: $0 [OPTION]... [VAR=VALUE]...
12331.1Stv
12341.1StvTo assign environment variables (e.g., CC, CFLAGS...), specify them as
12351.1StvVAR=VALUE.  See below for descriptions of some of the useful variables.
12361.1Stv
12371.1StvDefaults for the options are specified in brackets.
12381.1Stv
12391.1StvConfiguration:
12401.1Stv  -h, --help              display this help and exit
12411.1Stv      --help=short        display options specific to this package
12421.1Stv      --help=recursive    display the short help of all the included packages
12431.1Stv  -V, --version           display version information and exit
12441.84Schristos  -q, --quiet, --silent   do not print \`checking ...' messages
12451.1Stv      --cache-file=FILE   cache test results in FILE [disabled]
12461.1Stv  -C, --config-cache      alias for \`--cache-file=config.cache'
12471.1Stv  -n, --no-create         do not create output files
12481.1Stv      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
12491.1Stv
12501.1StvInstallation directories:
12511.1Stv  --prefix=PREFIX         install architecture-independent files in PREFIX
12521.66Stsutsui                          [$ac_default_prefix]
12531.1Stv  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
12541.66Stsutsui                          [PREFIX]
12551.1Stv
12561.1StvBy default, \`make install' will install all the files in
12571.1Stv\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
12581.1Stvan installation prefix other than \`$ac_default_prefix' using \`--prefix',
12591.1Stvfor instance \`--prefix=\$HOME'.
12601.1Stv
12611.1StvFor better control, use the options below.
12621.1Stv
12631.1StvFine tuning of the installation directories:
12641.84Schristos  --bindir=DIR            user executables [EPREFIX/bin]
12651.84Schristos  --sbindir=DIR           system admin executables [EPREFIX/sbin]
12661.84Schristos  --libexecdir=DIR        program executables [EPREFIX/libexec]
12671.84Schristos  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
12681.84Schristos  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
12691.84Schristos  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
12701.84Schristos  --libdir=DIR            object code libraries [EPREFIX/lib]
12711.84Schristos  --includedir=DIR        C header files [PREFIX/include]
12721.84Schristos  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
12731.84Schristos  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
12741.84Schristos  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
12751.84Schristos  --infodir=DIR           info documentation [DATAROOTDIR/info]
12761.84Schristos  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
12771.84Schristos  --mandir=DIR            man documentation [DATAROOTDIR/man]
12781.84Schristos  --docdir=DIR            documentation root [DATAROOTDIR/doc/libnbcompat]
12791.84Schristos  --htmldir=DIR           html documentation [DOCDIR]
12801.84Schristos  --dvidir=DIR            dvi documentation [DOCDIR]
12811.84Schristos  --pdfdir=DIR            pdf documentation [DOCDIR]
12821.84Schristos  --psdir=DIR             ps documentation [DOCDIR]
12831.84Schristos_ACEOF
12841.1Stv
12851.84Schristos  cat <<\_ACEOF
12861.84Schristos_ACEOF
12871.1Stvfi
12881.1Stv
12891.1Stvif test -n "$ac_init_help"; then
12901.1Stv  case $ac_init_help in
12911.1Stv     short | recursive ) echo "Configuration of libnbcompat noversion:";;
12921.1Stv   esac
12931.84Schristos  cat <<\_ACEOF
12941.1Stv
12951.1StvSome influential environment variables:
12961.1Stv  CC          C compiler command
12971.1Stv  CFLAGS      C compiler flags
12981.1Stv  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
12991.1Stv              nonstandard directory <lib dir>
13001.84Schristos  LIBS        libraries to pass to the linker, e.g. -l<library>
13011.84Schristos  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
13021.84Schristos              you have headers in a nonstandard directory <include dir>
13031.1Stv  CPP         C preprocessor
13041.1Stv
13051.1StvUse these variables to override the choices made by `configure' or to help
13061.1Stvit to find libraries and programs with nonstandard names/locations.
13071.1Stv
13081.41SsaloReport bugs to <lib-bug-people@NetBSD.org>.
13091.84Schristos_ACEOF
13101.84Schristosac_status=$?
13111.1Stvfi
13121.1Stv
13131.1Stvif test "$ac_init_help" = "recursive"; then
13141.1Stv  # If there are subdirs, report their specific --help.
13151.84Schristos  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
13161.84Schristos    test -d "$ac_dir" ||
13171.84Schristos      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
13181.84Schristos      continue
13191.84Schristos    ac_builddir=.
13201.84Schristos
13211.84Schristoscase "$ac_dir" in
13221.84Schristos.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13231.84Schristos*)
13241.84Schristos  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13251.84Schristos  # A ".." for each directory in $ac_dir_suffix.
13261.84Schristos  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13271.84Schristos  case $ac_top_builddir_sub in
13281.84Schristos  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13291.84Schristos  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13301.84Schristos  esac ;;
13311.84Schristosesac
13321.84Schristosac_abs_top_builddir=$ac_pwd
13331.84Schristosac_abs_builddir=$ac_pwd$ac_dir_suffix
13341.84Schristos# for backward compatibility:
13351.84Schristosac_top_builddir=$ac_top_build_prefix
13361.84Schristos
13371.84Schristoscase $srcdir in
13381.84Schristos  .)  # We are building in place.
13391.84Schristos    ac_srcdir=.
13401.84Schristos    ac_top_srcdir=$ac_top_builddir_sub
13411.84Schristos    ac_abs_top_srcdir=$ac_pwd ;;
13421.84Schristos  [\\/]* | ?:[\\/]* )  # Absolute name.
13431.84Schristos    ac_srcdir=$srcdir$ac_dir_suffix;
13441.84Schristos    ac_top_srcdir=$srcdir
13451.84Schristos    ac_abs_top_srcdir=$srcdir ;;
13461.84Schristos  *) # Relative name.
13471.84Schristos    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13481.84Schristos    ac_top_srcdir=$ac_top_build_prefix$srcdir
13491.84Schristos    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13501.84Schristosesac
13511.84Schristosac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13521.1Stv
13531.84Schristos    cd "$ac_dir" || { ac_status=$?; continue; }
13541.84Schristos    # Check for guested configure.
13551.84Schristos    if test -f "$ac_srcdir/configure.gnu"; then
13561.84Schristos      echo &&
13571.84Schristos      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
13581.84Schristos    elif test -f "$ac_srcdir/configure"; then
13591.84Schristos      echo &&
13601.84Schristos      $SHELL "$ac_srcdir/configure" --help=recursive
13611.65Schristos    else
13621.84Schristos      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
13631.84Schristos    fi || ac_status=$?
13641.84Schristos    cd "$ac_pwd" || { ac_status=$?; break; }
13651.65Schristos  done
13661.1Stvfi
13671.1Stv
13681.84Schristostest -n "$ac_init_help" && exit $ac_status
13691.1Stvif $ac_init_version; then
13701.84Schristos  cat <<\_ACEOF
13711.1Stvlibnbcompat configure noversion
13721.84Schristosgenerated by GNU Autoconf 2.69
13731.1Stv
13741.84SchristosCopyright (C) 2012 Free Software Foundation, Inc.
13751.1StvThis configure script is free software; the Free Software Foundation
13761.1Stvgives unlimited permission to copy, distribute and modify it.
13771.84Schristos_ACEOF
13781.84Schristos  exit
13791.1Stvfi
13801.1Stv
13811.84Schristos## ------------------------ ##
13821.84Schristos## Autoconf initialization. ##
13831.84Schristos## ------------------------ ##
13841.84Schristos
13851.84Schristos# ac_fn_c_try_compile LINENO
13861.84Schristos# --------------------------
13871.84Schristos# Try to compile conftest.$ac_ext, and return whether this succeeded.
13881.84Schristosac_fn_c_try_compile ()
13891.84Schristos{
13901.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13911.84Schristos  rm -f conftest.$ac_objext
13921.84Schristos  if { { ac_try="$ac_compile"
13931.84Schristoscase "(($ac_try" in
13941.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951.84Schristos  *) ac_try_echo=$ac_try;;
13961.84Schristosesac
13971.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13981.84Schristos$as_echo "$ac_try_echo"; } >&5
13991.84Schristos  (eval "$ac_compile") 2>conftest.err
14001.84Schristos  ac_status=$?
14011.84Schristos  if test -s conftest.err; then
14021.84Schristos    grep -v '^ *+' conftest.err >conftest.er1
14031.84Schristos    cat conftest.er1 >&5
14041.84Schristos    mv -f conftest.er1 conftest.err
14051.84Schristos  fi
14061.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14071.84Schristos  test $ac_status = 0; } && {
14081.84Schristos	 test -z "$ac_c_werror_flag" ||
14091.84Schristos	 test ! -s conftest.err
14101.84Schristos       } && test -s conftest.$ac_objext; then :
14111.84Schristos  ac_retval=0
14121.84Schristoselse
14131.84Schristos  $as_echo "$as_me: failed program was:" >&5
14141.84Schristossed 's/^/| /' conftest.$ac_ext >&5
14151.84Schristos
14161.84Schristos	ac_retval=1
14171.84Schristosfi
14181.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14191.84Schristos  as_fn_set_status $ac_retval
14201.84Schristos
14211.84Schristos} # ac_fn_c_try_compile
14221.84Schristos
14231.84Schristos# ac_fn_c_try_cpp LINENO
14241.84Schristos# ----------------------
14251.84Schristos# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
14261.84Schristosac_fn_c_try_cpp ()
14271.84Schristos{
14281.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14291.84Schristos  if { { ac_try="$ac_cpp conftest.$ac_ext"
14301.84Schristoscase "(($ac_try" in
14311.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321.84Schristos  *) ac_try_echo=$ac_try;;
14331.84Schristosesac
14341.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14351.84Schristos$as_echo "$ac_try_echo"; } >&5
14361.84Schristos  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
14371.84Schristos  ac_status=$?
14381.84Schristos  if test -s conftest.err; then
14391.84Schristos    grep -v '^ *+' conftest.err >conftest.er1
14401.84Schristos    cat conftest.er1 >&5
14411.84Schristos    mv -f conftest.er1 conftest.err
14421.84Schristos  fi
14431.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14441.84Schristos  test $ac_status = 0; } > conftest.i && {
14451.84Schristos	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14461.84Schristos	 test ! -s conftest.err
14471.84Schristos       }; then :
14481.84Schristos  ac_retval=0
14491.84Schristoselse
14501.84Schristos  $as_echo "$as_me: failed program was:" >&5
14511.84Schristossed 's/^/| /' conftest.$ac_ext >&5
14521.84Schristos
14531.84Schristos    ac_retval=1
14541.84Schristosfi
14551.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14561.84Schristos  as_fn_set_status $ac_retval
14571.84Schristos
14581.84Schristos} # ac_fn_c_try_cpp
14591.84Schristos
14601.84Schristos# ac_fn_c_try_run LINENO
14611.84Schristos# ----------------------
14621.84Schristos# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
14631.84Schristos# that executables *can* be run.
14641.84Schristosac_fn_c_try_run ()
14651.84Schristos{
14661.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14671.84Schristos  if { { ac_try="$ac_link"
14681.84Schristoscase "(($ac_try" in
14691.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701.84Schristos  *) ac_try_echo=$ac_try;;
14711.84Schristosesac
14721.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14731.84Schristos$as_echo "$ac_try_echo"; } >&5
14741.84Schristos  (eval "$ac_link") 2>&5
14751.84Schristos  ac_status=$?
14761.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14771.84Schristos  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
14781.84Schristos  { { case "(($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_try") 2>&5
14851.84Schristos  ac_status=$?
14861.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14871.84Schristos  test $ac_status = 0; }; }; then :
14881.84Schristos  ac_retval=0
14891.84Schristoselse
14901.84Schristos  $as_echo "$as_me: program exited with status $ac_status" >&5
14911.84Schristos       $as_echo "$as_me: failed program was:" >&5
14921.84Schristossed 's/^/| /' conftest.$ac_ext >&5
14931.84Schristos
14941.84Schristos       ac_retval=$ac_status
14951.84Schristosfi
14961.84Schristos  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
14971.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14981.84Schristos  as_fn_set_status $ac_retval
14991.84Schristos
15001.84Schristos} # ac_fn_c_try_run
15011.84Schristos
15021.84Schristos# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
15031.84Schristos# -------------------------------------------------------
15041.84Schristos# Tests whether HEADER exists and can be compiled using the include files in
15051.84Schristos# INCLUDES, setting the cache variable VAR accordingly.
15061.84Schristosac_fn_c_check_header_compile ()
15071.84Schristos{
15081.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15091.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
15101.84Schristos$as_echo_n "checking for $2... " >&6; }
15111.84Schristosif eval \${$3+:} false; then :
15121.84Schristos  $as_echo_n "(cached) " >&6
15131.84Schristoselse
15141.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151.84Schristos/* end confdefs.h.  */
15161.84Schristos$4
15171.84Schristos#include <$2>
15181.84Schristos_ACEOF
15191.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
15201.84Schristos  eval "$3=yes"
15211.84Schristoselse
15221.84Schristos  eval "$3=no"
15231.84Schristosfi
15241.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251.84Schristosfi
15261.84Schristoseval ac_res=\$$3
15271.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15281.84Schristos$as_echo "$ac_res" >&6; }
15291.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15301.84Schristos
15311.84Schristos} # ac_fn_c_check_header_compile
15321.84Schristos
15331.84Schristos# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
15341.84Schristos# -------------------------------------------------------
15351.84Schristos# Tests whether HEADER exists, giving a warning if it cannot be compiled using
15361.84Schristos# the include files in INCLUDES and setting the cache variable VAR
15371.84Schristos# accordingly.
15381.84Schristosac_fn_c_check_header_mongrel ()
15391.84Schristos{
15401.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15411.84Schristos  if eval \${$3+:} false; then :
15421.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
15431.84Schristos$as_echo_n "checking for $2... " >&6; }
15441.84Schristosif eval \${$3+:} false; then :
15451.84Schristos  $as_echo_n "(cached) " >&6
15461.84Schristosfi
15471.84Schristoseval ac_res=\$$3
15481.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15491.84Schristos$as_echo "$ac_res" >&6; }
15501.84Schristoselse
15511.84Schristos  # Is the header compilable?
15521.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
15531.84Schristos$as_echo_n "checking $2 usability... " >&6; }
15541.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551.84Schristos/* end confdefs.h.  */
15561.84Schristos$4
15571.84Schristos#include <$2>
15581.84Schristos_ACEOF
15591.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
15601.84Schristos  ac_header_compiler=yes
15611.84Schristoselse
15621.84Schristos  ac_header_compiler=no
15631.84Schristosfi
15641.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
15661.84Schristos$as_echo "$ac_header_compiler" >&6; }
15671.84Schristos
15681.84Schristos# Is the header present?
15691.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
15701.84Schristos$as_echo_n "checking $2 presence... " >&6; }
15711.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721.84Schristos/* end confdefs.h.  */
15731.84Schristos#include <$2>
15741.84Schristos_ACEOF
15751.84Schristosif ac_fn_c_try_cpp "$LINENO"; then :
15761.84Schristos  ac_header_preproc=yes
15771.84Schristoselse
15781.84Schristos  ac_header_preproc=no
15791.84Schristosfi
15801.84Schristosrm -f conftest.err conftest.i conftest.$ac_ext
15811.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
15821.84Schristos$as_echo "$ac_header_preproc" >&6; }
15831.84Schristos
15841.84Schristos# So?  What about this header?
15851.84Schristoscase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
15861.84Schristos  yes:no: )
15871.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
15881.84Schristos$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
15891.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
15901.84Schristos$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
15911.84Schristos    ;;
15921.84Schristos  no:yes:* )
15931.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
15941.84Schristos$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
15951.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
15961.84Schristos$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
15971.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
15981.84Schristos$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
15991.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
16001.84Schristos$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
16011.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
16021.84Schristos$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
16031.84Schristos( $as_echo "## ---------------------------------------- ##
16041.84Schristos## Report this to lib-bug-people@NetBSD.org ##
16051.84Schristos## ---------------------------------------- ##"
16061.84Schristos     ) | sed "s/^/$as_me: WARNING:     /" >&2
16071.84Schristos    ;;
16081.84Schristosesac
16091.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16101.84Schristos$as_echo_n "checking for $2... " >&6; }
16111.84Schristosif eval \${$3+:} false; then :
16121.84Schristos  $as_echo_n "(cached) " >&6
16131.84Schristoselse
16141.84Schristos  eval "$3=\$ac_header_compiler"
16151.84Schristosfi
16161.84Schristoseval ac_res=\$$3
16171.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16181.84Schristos$as_echo "$ac_res" >&6; }
16191.84Schristosfi
16201.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16211.84Schristos
16221.84Schristos} # ac_fn_c_check_header_mongrel
16231.84Schristos
16241.84Schristos# ac_fn_c_try_link LINENO
16251.84Schristos# -----------------------
16261.84Schristos# Try to link conftest.$ac_ext, and return whether this succeeded.
16271.84Schristosac_fn_c_try_link ()
16281.84Schristos{
16291.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16301.84Schristos  rm -f conftest.$ac_objext conftest$ac_exeext
16311.84Schristos  if { { ac_try="$ac_link"
16321.84Schristoscase "(($ac_try" in
16331.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341.84Schristos  *) ac_try_echo=$ac_try;;
16351.84Schristosesac
16361.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16371.84Schristos$as_echo "$ac_try_echo"; } >&5
16381.84Schristos  (eval "$ac_link") 2>conftest.err
16391.84Schristos  ac_status=$?
16401.84Schristos  if test -s conftest.err; then
16411.84Schristos    grep -v '^ *+' conftest.err >conftest.er1
16421.84Schristos    cat conftest.er1 >&5
16431.84Schristos    mv -f conftest.er1 conftest.err
16441.84Schristos  fi
16451.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16461.84Schristos  test $ac_status = 0; } && {
16471.84Schristos	 test -z "$ac_c_werror_flag" ||
16481.84Schristos	 test ! -s conftest.err
16491.84Schristos       } && test -s conftest$ac_exeext && {
16501.84Schristos	 test "$cross_compiling" = yes ||
16511.84Schristos	 test -x conftest$ac_exeext
16521.84Schristos       }; then :
16531.84Schristos  ac_retval=0
16541.84Schristoselse
16551.84Schristos  $as_echo "$as_me: failed program was:" >&5
16561.84Schristossed 's/^/| /' conftest.$ac_ext >&5
16571.84Schristos
16581.84Schristos	ac_retval=1
16591.84Schristosfi
16601.84Schristos  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
16611.84Schristos  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
16621.84Schristos  # interfere with the next link command; also delete a directory that is
16631.84Schristos  # left behind by Apple's compiler.  We do this before executing the actions.
16641.84Schristos  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16651.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16661.84Schristos  as_fn_set_status $ac_retval
16671.74Schristos
16681.84Schristos} # ac_fn_c_try_link
16691.1Stv
16701.84Schristos# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
16711.84Schristos# -------------------------------------------
16721.84Schristos# Tests whether TYPE exists after having included INCLUDES, setting cache
16731.84Schristos# variable VAR accordingly.
16741.84Schristosac_fn_c_check_type ()
16751.84Schristos{
16761.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16771.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16781.84Schristos$as_echo_n "checking for $2... " >&6; }
16791.84Schristosif eval \${$3+:} false; then :
16801.84Schristos  $as_echo_n "(cached) " >&6
16811.84Schristoselse
16821.84Schristos  eval "$3=no"
16831.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841.84Schristos/* end confdefs.h.  */
16851.84Schristos$4
16861.84Schristosint
16871.84Schristosmain ()
16881.84Schristos{
16891.84Schristosif (sizeof ($2))
16901.84Schristos	 return 0;
16911.84Schristos  ;
16921.84Schristos  return 0;
16931.84Schristos}
16941.84Schristos_ACEOF
16951.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
16961.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971.84Schristos/* end confdefs.h.  */
16981.84Schristos$4
16991.84Schristosint
17001.84Schristosmain ()
17011.74Schristos{
17021.84Schristosif (sizeof (($2)))
17031.84Schristos	    return 0;
17041.84Schristos  ;
17051.84Schristos  return 0;
17061.84Schristos}
17071.84Schristos_ACEOF
17081.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
17091.84Schristos
17101.84Schristoselse
17111.84Schristos  eval "$3=yes"
17121.84Schristosfi
17131.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141.84Schristosfi
17151.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161.84Schristosfi
17171.84Schristoseval ac_res=\$$3
17181.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17191.84Schristos$as_echo "$ac_res" >&6; }
17201.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17211.84Schristos
17221.84Schristos} # ac_fn_c_check_type
17231.74Schristos
17241.84Schristos# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
17251.84Schristos# ----------------------------------------------------
17261.84Schristos# Tries to find if the field MEMBER exists in type AGGR, after including
17271.84Schristos# INCLUDES, setting cache variable VAR accordingly.
17281.84Schristosac_fn_c_check_member ()
17291.84Schristos{
17301.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17311.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
17321.84Schristos$as_echo_n "checking for $2.$3... " >&6; }
17331.84Schristosif eval \${$4+:} false; then :
17341.84Schristos  $as_echo_n "(cached) " >&6
17351.84Schristoselse
17361.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17371.84Schristos/* end confdefs.h.  */
17381.84Schristos$5
17391.84Schristosint
17401.84Schristosmain ()
17411.84Schristos{
17421.84Schristosstatic $2 ac_aggr;
17431.84Schristosif (ac_aggr.$3)
17441.84Schristosreturn 0;
17451.84Schristos  ;
17461.84Schristos  return 0;
17471.84Schristos}
17481.84Schristos_ACEOF
17491.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
17501.84Schristos  eval "$4=yes"
17511.84Schristoselse
17521.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531.84Schristos/* end confdefs.h.  */
17541.84Schristos$5
17551.84Schristosint
17561.84Schristosmain ()
17571.84Schristos{
17581.84Schristosstatic $2 ac_aggr;
17591.84Schristosif (sizeof ac_aggr.$3)
17601.84Schristosreturn 0;
17611.84Schristos  ;
17621.84Schristos  return 0;
17631.84Schristos}
17641.84Schristos_ACEOF
17651.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
17661.84Schristos  eval "$4=yes"
17671.84Schristoselse
17681.84Schristos  eval "$4=no"
17691.84Schristosfi
17701.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17711.84Schristosfi
17721.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17731.84Schristosfi
17741.84Schristoseval ac_res=\$$4
17751.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17761.84Schristos$as_echo "$ac_res" >&6; }
17771.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17781.74Schristos
17791.84Schristos} # ac_fn_c_check_member
17801.1Stv
17811.84Schristos# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
17821.84Schristos# ---------------------------------------------
17831.84Schristos# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
17841.84Schristos# accordingly.
17851.84Schristosac_fn_c_check_decl ()
17861.84Schristos{
17871.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17881.84Schristos  as_decl_name=`echo $2|sed 's/ *(.*//'`
17891.84Schristos  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
17901.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
17911.84Schristos$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
17921.84Schristosif eval \${$3+:} false; then :
17931.84Schristos  $as_echo_n "(cached) " >&6
17941.84Schristoselse
17951.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961.84Schristos/* end confdefs.h.  */
17971.84Schristos$4
17981.84Schristosint
17991.84Schristosmain ()
18001.84Schristos{
18011.84Schristos#ifndef $as_decl_name
18021.84Schristos#ifdef __cplusplus
18031.84Schristos  (void) $as_decl_use;
18041.84Schristos#else
18051.84Schristos  (void) $as_decl_name;
18061.84Schristos#endif
18071.84Schristos#endif
18081.1Stv
18091.84Schristos  ;
18101.84Schristos  return 0;
18111.84Schristos}
18121.84Schristos_ACEOF
18131.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
18141.84Schristos  eval "$3=yes"
18151.84Schristoselse
18161.84Schristos  eval "$3=no"
18171.84Schristosfi
18181.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18191.84Schristosfi
18201.84Schristoseval ac_res=\$$3
18211.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18221.84Schristos$as_echo "$ac_res" >&6; }
18231.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18241.1Stv
18251.84Schristos} # ac_fn_c_check_decl
18261.1Stv
18271.84Schristos# ac_fn_c_check_func LINENO FUNC VAR
18281.84Schristos# ----------------------------------
18291.84Schristos# Tests whether FUNC exists, setting the cache variable VAR accordingly
18301.84Schristosac_fn_c_check_func ()
18311.84Schristos{
18321.84Schristos  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18331.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18341.84Schristos$as_echo_n "checking for $2... " >&6; }
18351.84Schristosif eval \${$3+:} false; then :
18361.84Schristos  $as_echo_n "(cached) " >&6
18371.84Schristoselse
18381.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391.84Schristos/* end confdefs.h.  */
18401.84Schristos/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18411.84Schristos   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18421.84Schristos#define $2 innocuous_$2
18431.84Schristos
18441.84Schristos/* System header to define __stub macros and hopefully few prototypes,
18451.84Schristos    which can conflict with char $2 (); below.
18461.84Schristos    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18471.84Schristos    <limits.h> exists even on freestanding compilers.  */
18481.84Schristos
18491.84Schristos#ifdef __STDC__
18501.84Schristos# include <limits.h>
18511.84Schristos#else
18521.84Schristos# include <assert.h>
18531.84Schristos#endif
18541.84Schristos
18551.84Schristos#undef $2
18561.84Schristos
18571.84Schristos/* Override any GCC internal prototype to avoid an error.
18581.84Schristos   Use char because int might match the return type of a GCC
18591.84Schristos   builtin and then its argument prototype would still apply.  */
18601.84Schristos#ifdef __cplusplus
18611.84Schristosextern "C"
18621.84Schristos#endif
18631.84Schristoschar $2 ();
18641.84Schristos/* The GNU C library defines this for functions which it implements
18651.84Schristos    to always fail with ENOSYS.  Some functions are actually named
18661.84Schristos    something starting with __ and the normal name is an alias.  */
18671.84Schristos#if defined __stub_$2 || defined __stub___$2
18681.84Schristoschoke me
18691.84Schristos#endif
18701.84Schristos
18711.84Schristosint
18721.84Schristosmain ()
18731.84Schristos{
18741.84Schristosreturn $2 ();
18751.84Schristos  ;
18761.84Schristos  return 0;
18771.84Schristos}
18781.84Schristos_ACEOF
18791.84Schristosif ac_fn_c_try_link "$LINENO"; then :
18801.84Schristos  eval "$3=yes"
18811.84Schristoselse
18821.84Schristos  eval "$3=no"
18831.84Schristosfi
18841.84Schristosrm -f core conftest.err conftest.$ac_objext \
18851.84Schristos    conftest$ac_exeext conftest.$ac_ext
18861.84Schristosfi
18871.84Schristoseval ac_res=\$$3
18881.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18891.84Schristos$as_echo "$ac_res" >&6; }
18901.84Schristos  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18911.84Schristos
18921.84Schristos} # ac_fn_c_check_func
18931.84Schristoscat >config.log <<_ACEOF
18941.84SchristosThis file contains any messages produced by compilers while
18951.84Schristosrunning configure, to aid debugging if configure makes a mistake.
18961.84Schristos
18971.84SchristosIt was created by libnbcompat $as_me noversion, which was
18981.84Schristosgenerated by GNU Autoconf 2.69.  Invocation command line was
18991.84Schristos
19001.84Schristos  $ $0 $@
19011.84Schristos
19021.84Schristos_ACEOF
19031.84Schristosexec 5>>config.log
19041.84Schristos{
19051.84Schristoscat <<_ASUNAME
19061.84Schristos## --------- ##
19071.84Schristos## Platform. ##
19081.84Schristos## --------- ##
19091.84Schristos
19101.84Schristoshostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
19111.84Schristosuname -m = `(uname -m) 2>/dev/null || echo unknown`
19121.84Schristosuname -r = `(uname -r) 2>/dev/null || echo unknown`
19131.84Schristosuname -s = `(uname -s) 2>/dev/null || echo unknown`
19141.84Schristosuname -v = `(uname -v) 2>/dev/null || echo unknown`
19151.84Schristos
19161.84Schristos/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
19171.84Schristos/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
19181.84Schristos
19191.84Schristos/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
19201.84Schristos/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
19211.84Schristos/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
19221.84Schristos/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
19231.84Schristos/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
19241.84Schristos/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
19251.84Schristos/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
19261.84Schristos
19271.84Schristos_ASUNAME
19281.84Schristos
19291.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19301.84Schristosfor as_dir in $PATH
19311.84Schristosdo
19321.84Schristos  IFS=$as_save_IFS
19331.84Schristos  test -z "$as_dir" && as_dir=.
19341.84Schristos    $as_echo "PATH: $as_dir"
19351.84Schristos  done
19361.84SchristosIFS=$as_save_IFS
19371.84Schristos
19381.84Schristos} >&5
19391.84Schristos
19401.84Schristoscat >&5 <<_ACEOF
19411.84Schristos
19421.84Schristos
19431.84Schristos## ----------- ##
19441.84Schristos## Core tests. ##
19451.84Schristos## ----------- ##
19461.84Schristos
19471.84Schristos_ACEOF
19481.66Stsutsui
19491.1Stv
19501.76Spooka# Keep a trace of the command line.
19511.76Spooka# Strip out --no-create and --no-recursion so they do not pile up.
19521.84Schristos# Strip out --silent because we don't want to record it for future runs.
19531.76Spooka# Also quote any args containing shell meta-characters.
19541.84Schristos# Make two passes to allow for proper duplicate-argument suppression.
19551.76Spookaac_configure_args=
19561.84Schristosac_configure_args0=
19571.84Schristosac_configure_args1=
19581.84Schristosac_must_keep_next=false
19591.84Schristosfor ac_pass in 1 2
19601.76Spookado
19611.84Schristos  for ac_arg
19621.84Schristos  do
19631.84Schristos    case $ac_arg in
19641.84Schristos    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
19651.84Schristos    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19661.84Schristos    | -silent | --silent | --silen | --sile | --sil)
19671.84Schristos      continue ;;
19681.84Schristos    *\'*)
19691.84Schristos      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19701.84Schristos    esac
19711.84Schristos    case $ac_pass in
19721.84Schristos    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
19731.84Schristos    2)
19741.84Schristos      as_fn_append ac_configure_args1 " '$ac_arg'"
19751.84Schristos      if test $ac_must_keep_next = true; then
19761.84Schristos	ac_must_keep_next=false # Got value, back to normal.
19771.84Schristos      else
19781.84Schristos	case $ac_arg in
19791.84Schristos	  *=* | --config-cache | -C | -disable-* | --disable-* \
19801.84Schristos	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
19811.84Schristos	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
19821.84Schristos	  | -with-* | --with-* | -without-* | --without-* | --x)
19831.84Schristos	    case "$ac_configure_args0 " in
19841.84Schristos	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
19851.84Schristos	    esac
19861.84Schristos	    ;;
19871.84Schristos	  -* ) ac_must_keep_next=true ;;
19881.84Schristos	esac
19891.84Schristos      fi
19901.84Schristos      as_fn_append ac_configure_args " '$ac_arg'"
19911.84Schristos      ;;
19921.84Schristos    esac
19931.84Schristos  done
19941.1Stvdone
19951.84Schristos{ ac_configure_args0=; unset ac_configure_args0;}
19961.84Schristos{ ac_configure_args1=; unset ac_configure_args1;}
19971.1Stv
19981.1Stv# When interrupted or exit'd, cleanup temporary files, and complete
19991.1Stv# config.log.  We remove comments because anyway the quotes in there
20001.1Stv# would cause problems or look ugly.
20011.84Schristos# WARNING: Use '\'' to represent an apostrophe within the trap.
20021.84Schristos# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
20031.1Stvtrap 'exit_status=$?
20041.1Stv  # Save into config.log some information that might help in debugging.
20051.84Schristos  {
20061.84Schristos    echo
20071.84Schristos
20081.84Schristos    $as_echo "## ---------------- ##
20091.84Schristos## Cache variables. ##
20101.84Schristos## ---------------- ##"
20111.84Schristos    echo
20121.84Schristos    # The following way of writing the cache mishandles newlines in values,
20131.84Schristos(
20141.84Schristos  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
20151.84Schristos    eval ac_val=\$$ac_var
20161.84Schristos    case $ac_val in #(
20171.84Schristos    *${as_nl}*)
20181.84Schristos      case $ac_var in #(
20191.84Schristos      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20201.84Schristos$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20211.84Schristos      esac
20221.84Schristos      case $ac_var in #(
20231.84Schristos      _ | IFS | as_nl) ;; #(
20241.84Schristos      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20251.84Schristos      *) { eval $ac_var=; unset $ac_var;} ;;
20261.84Schristos      esac ;;
20271.84Schristos    esac
20281.84Schristos  done
20291.1Stv  (set) 2>&1 |
20301.84Schristos    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
20311.84Schristos    *${as_nl}ac_space=\ *)
20321.1Stv      sed -n \
20331.84Schristos	"s/'\''/'\''\\\\'\'''\''/g;
20341.84Schristos	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
20351.84Schristos      ;; #(
20361.1Stv    *)
20371.84Schristos      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20381.1Stv      ;;
20391.84Schristos    esac |
20401.84Schristos    sort
20411.84Schristos)
20421.84Schristos    echo
20431.84Schristos
20441.84Schristos    $as_echo "## ----------------- ##
20451.84Schristos## Output variables. ##
20461.84Schristos## ----------------- ##"
20471.84Schristos    echo
20481.84Schristos    for ac_var in $ac_subst_vars
20491.84Schristos    do
20501.84Schristos      eval ac_val=\$$ac_var
20511.84Schristos      case $ac_val in
20521.84Schristos      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
20531.84Schristos      esac
20541.84Schristos      $as_echo "$ac_var='\''$ac_val'\''"
20551.84Schristos    done | sort
20561.84Schristos    echo
20571.84Schristos
20581.84Schristos    if test -n "$ac_subst_files"; then
20591.84Schristos      $as_echo "## ------------------- ##
20601.84Schristos## File substitutions. ##
20611.84Schristos## ------------------- ##"
20621.84Schristos      echo
20631.84Schristos      for ac_var in $ac_subst_files
20641.84Schristos      do
20651.84Schristos	eval ac_val=\$$ac_var
20661.84Schristos	case $ac_val in
20671.84Schristos	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
20681.84Schristos	esac
20691.84Schristos	$as_echo "$ac_var='\''$ac_val'\''"
20701.84Schristos      done | sort
20711.84Schristos      echo
20721.84Schristos    fi
20731.84Schristos
20741.84Schristos    if test -s confdefs.h; then
20751.84Schristos      $as_echo "## ----------- ##
20761.84Schristos## confdefs.h. ##
20771.84Schristos## ----------- ##"
20781.84Schristos      echo
20791.84Schristos      cat confdefs.h
20801.84Schristos      echo
20811.84Schristos    fi
20821.84Schristos    test "$ac_signal" != 0 &&
20831.84Schristos      $as_echo "$as_me: caught signal $ac_signal"
20841.84Schristos    $as_echo "$as_me: exit $exit_status"
20851.84Schristos  } >&5
20861.84Schristos  rm -f core *.core core.conftest.* &&
20871.84Schristos    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
20881.1Stv    exit $exit_status
20891.84Schristos' 0
20901.1Stvfor ac_signal in 1 2 13 15; do
20911.84Schristos  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
20921.1Stvdone
20931.1Stvac_signal=0
20941.1Stv
20951.1Stv# confdefs.h avoids OS command line length limits that DEFS can exceed.
20961.84Schristosrm -f -r conftest* confdefs.h
20971.84Schristos
20981.84Schristos$as_echo "/* confdefs.h */" > confdefs.h
20991.84Schristos
21001.84Schristos# Predefined preprocessor variables.
21011.84Schristos
21021.84Schristoscat >>confdefs.h <<_ACEOF
21031.84Schristos#define PACKAGE_NAME "$PACKAGE_NAME"
21041.84Schristos_ACEOF
21051.84Schristos
21061.84Schristoscat >>confdefs.h <<_ACEOF
21071.84Schristos#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
21081.84Schristos_ACEOF
21091.84Schristos
21101.84Schristoscat >>confdefs.h <<_ACEOF
21111.84Schristos#define PACKAGE_VERSION "$PACKAGE_VERSION"
21121.84Schristos_ACEOF
21131.84Schristos
21141.84Schristoscat >>confdefs.h <<_ACEOF
21151.84Schristos#define PACKAGE_STRING "$PACKAGE_STRING"
21161.84Schristos_ACEOF
21171.84Schristos
21181.84Schristoscat >>confdefs.h <<_ACEOF
21191.84Schristos#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
21201.84Schristos_ACEOF
21211.84Schristos
21221.84Schristoscat >>confdefs.h <<_ACEOF
21231.84Schristos#define PACKAGE_URL "$PACKAGE_URL"
21241.84Schristos_ACEOF
21251.84Schristos
21261.1Stv
21271.1Stv# Let the site file select an alternate cache file if it wants to.
21281.84Schristos# Prefer an explicitly selected file to automatically selected ones.
21291.84Schristosac_site_file1=NONE
21301.84Schristosac_site_file2=NONE
21311.84Schristosif test -n "$CONFIG_SITE"; then
21321.84Schristos  # We do not want a PATH search for config.site.
21331.84Schristos  case $CONFIG_SITE in #((
21341.84Schristos    -*)  ac_site_file1=./$CONFIG_SITE;;
21351.84Schristos    */*) ac_site_file1=$CONFIG_SITE;;
21361.84Schristos    *)   ac_site_file1=./$CONFIG_SITE;;
21371.84Schristos  esac
21381.84Schristoselif test "x$prefix" != xNONE; then
21391.84Schristos  ac_site_file1=$prefix/share/config.site
21401.84Schristos  ac_site_file2=$prefix/etc/config.site
21411.84Schristoselse
21421.84Schristos  ac_site_file1=$ac_default_prefix/share/config.site
21431.84Schristos  ac_site_file2=$ac_default_prefix/etc/config.site
21441.1Stvfi
21451.84Schristosfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
21461.84Schristosdo
21471.84Schristos  test "x$ac_site_file" = xNONE && continue
21481.84Schristos  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
21491.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
21501.84Schristos$as_echo "$as_me: loading site script $ac_site_file" >&6;}
21511.84Schristos    sed 's/^/| /' "$ac_site_file" >&5
21521.84Schristos    . "$ac_site_file" \
21531.84Schristos      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21541.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21551.84Schristosas_fn_error $? "failed to load site script $ac_site_file
21561.84SchristosSee \`config.log' for more details" "$LINENO" 5; }
21571.1Stv  fi
21581.1Stvdone
21591.1Stv
21601.1Stvif test -r "$cache_file"; then
21611.84Schristos  # Some versions of bash will fail to source /dev/null (special files
21621.84Schristos  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
21631.84Schristos  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
21641.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
21651.84Schristos$as_echo "$as_me: loading cache $cache_file" >&6;}
21661.1Stv    case $cache_file in
21671.84Schristos      [\\/]* | ?:[\\/]* ) . "$cache_file";;
21681.84Schristos      *)                      . "./$cache_file";;
21691.1Stv    esac
21701.1Stv  fi
21711.1Stvelse
21721.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
21731.84Schristos$as_echo "$as_me: creating cache $cache_file" >&6;}
21741.1Stv  >$cache_file
21751.1Stvfi
21761.1Stv
21771.1Stv# Check that the precious variables saved in the cache have kept the same
21781.1Stv# value.
21791.1Stvac_cache_corrupted=false
21801.84Schristosfor ac_var in $ac_precious_vars; do
21811.1Stv  eval ac_old_set=\$ac_cv_env_${ac_var}_set
21821.1Stv  eval ac_new_set=\$ac_env_${ac_var}_set
21831.84Schristos  eval ac_old_val=\$ac_cv_env_${ac_var}_value
21841.84Schristos  eval ac_new_val=\$ac_env_${ac_var}_value
21851.1Stv  case $ac_old_set,$ac_new_set in
21861.1Stv    set,)
21871.84Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
21881.84Schristos$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
21891.1Stv      ac_cache_corrupted=: ;;
21901.1Stv    ,set)
21911.84Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
21921.84Schristos$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
21931.1Stv      ac_cache_corrupted=: ;;
21941.1Stv    ,);;
21951.1Stv    *)
21961.1Stv      if test "x$ac_old_val" != "x$ac_new_val"; then
21971.84Schristos	# differences in whitespace do not lead to failure.
21981.84Schristos	ac_old_val_w=`echo x $ac_old_val`
21991.84Schristos	ac_new_val_w=`echo x $ac_new_val`
22001.84Schristos	if test "$ac_old_val_w" != "$ac_new_val_w"; then
22011.84Schristos	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
22021.84Schristos$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
22031.84Schristos	  ac_cache_corrupted=:
22041.84Schristos	else
22051.84Schristos	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
22061.84Schristos$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
22071.84Schristos	  eval $ac_var=\$ac_old_val
22081.84Schristos	fi
22091.84Schristos	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
22101.84Schristos$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
22111.84Schristos	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
22121.84Schristos$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
22131.1Stv      fi;;
22141.1Stv  esac
22151.84Schristos  # Pass precious variables to config.status.
22161.1Stv  if test "$ac_new_set" = set; then
22171.1Stv    case $ac_new_val in
22181.84Schristos    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
22191.84Schristos    *) ac_arg=$ac_var=$ac_new_val ;;
22201.84Schristos    esac
22211.84Schristos    case " $ac_configure_args " in
22221.84Schristos      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
22231.84Schristos      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
22241.1Stv    esac
22251.1Stv  fi
22261.1Stvdone
22271.1Stvif $ac_cache_corrupted; then
22281.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22291.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22301.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
22311.84Schristos$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22321.84Schristos  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
22331.84Schristosfi
22341.84Schristos## -------------------- ##
22351.84Schristos## Main body of script. ##
22361.84Schristos## -------------------- ##
22371.1Stv
22381.1Stvac_ext=c
22391.1Stvac_cpp='$CPP $CPPFLAGS'
22401.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22411.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22421.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
22431.1Stv
22441.1Stv
22451.63Sapbac_config_headers="$ac_config_headers nbtool_config.h"
22461.1Stv
22471.63Sapbac_config_files="$ac_config_files defs.mk"
22481.1Stv
22491.84Schristos
22501.101Slukem
22511.101Slukem
22521.57Swiz# Autoheader header and footer
22531.57Swiz
22541.84Schristos
22551.84Schristos
22561.84Schristos
22571.20Sbjh21
22581.1Stvac_ext=c
22591.1Stvac_cpp='$CPP $CPPFLAGS'
22601.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22611.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22621.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
22631.1Stvif test -n "$ac_tool_prefix"; then
22641.1Stv  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22651.1Stvset dummy ${ac_tool_prefix}gcc; ac_word=$2
22661.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22671.84Schristos$as_echo_n "checking for $ac_word... " >&6; }
22681.84Schristosif ${ac_cv_prog_CC+:} false; then :
22691.84Schristos  $as_echo_n "(cached) " >&6
22701.1Stvelse
22711.1Stv  if test -n "$CC"; then
22721.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
22731.1Stvelse
22741.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22751.84Schristosfor as_dir in $PATH
22761.84Schristosdo
22771.84Schristos  IFS=$as_save_IFS
22781.84Schristos  test -z "$as_dir" && as_dir=.
22791.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
22801.84Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22811.84Schristos    ac_cv_prog_CC="${ac_tool_prefix}gcc"
22821.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22831.84Schristos    break 2
22841.84Schristos  fi
22851.1Stvdone
22861.84Schristos  done
22871.84SchristosIFS=$as_save_IFS
22881.1Stv
22891.1Stvfi
22901.1Stvfi
22911.1StvCC=$ac_cv_prog_CC
22921.1Stvif test -n "$CC"; then
22931.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
22941.84Schristos$as_echo "$CC" >&6; }
22951.1Stvelse
22961.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22971.84Schristos$as_echo "no" >&6; }
22981.1Stvfi
22991.1Stv
23001.84Schristos
23011.1Stvfi
23021.1Stvif test -z "$ac_cv_prog_CC"; then
23031.1Stv  ac_ct_CC=$CC
23041.1Stv  # Extract the first word of "gcc", so it can be a program name with args.
23051.1Stvset dummy gcc; ac_word=$2
23061.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23071.84Schristos$as_echo_n "checking for $ac_word... " >&6; }
23081.84Schristosif ${ac_cv_prog_ac_ct_CC+:} false; then :
23091.84Schristos  $as_echo_n "(cached) " >&6
23101.1Stvelse
23111.1Stv  if test -n "$ac_ct_CC"; then
23121.1Stv  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
23131.1Stvelse
23141.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23151.84Schristosfor as_dir in $PATH
23161.84Schristosdo
23171.84Schristos  IFS=$as_save_IFS
23181.84Schristos  test -z "$as_dir" && as_dir=.
23191.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
23201.84Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23211.84Schristos    ac_cv_prog_ac_ct_CC="gcc"
23221.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23231.84Schristos    break 2
23241.84Schristos  fi
23251.1Stvdone
23261.84Schristos  done
23271.84SchristosIFS=$as_save_IFS
23281.1Stv
23291.1Stvfi
23301.1Stvfi
23311.1Stvac_ct_CC=$ac_cv_prog_ac_ct_CC
23321.1Stvif test -n "$ac_ct_CC"; then
23331.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
23341.84Schristos$as_echo "$ac_ct_CC" >&6; }
23351.1Stvelse
23361.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23371.84Schristos$as_echo "no" >&6; }
23381.1Stvfi
23391.1Stv
23401.84Schristos  if test "x$ac_ct_CC" = x; then
23411.84Schristos    CC=""
23421.84Schristos  else
23431.84Schristos    case $cross_compiling:$ac_tool_warned in
23441.84Schristosyes:)
23451.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23461.84Schristos$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23471.84Schristosac_tool_warned=yes ;;
23481.84Schristosesac
23491.84Schristos    CC=$ac_ct_CC
23501.84Schristos  fi
23511.1Stvelse
23521.1Stv  CC="$ac_cv_prog_CC"
23531.1Stvfi
23541.1Stv
23551.1Stvif test -z "$CC"; then
23561.84Schristos          if test -n "$ac_tool_prefix"; then
23571.84Schristos    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
23581.1Stvset dummy ${ac_tool_prefix}cc; ac_word=$2
23591.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23601.84Schristos$as_echo_n "checking for $ac_word... " >&6; }
23611.84Schristosif ${ac_cv_prog_CC+:} false; then :
23621.84Schristos  $as_echo_n "(cached) " >&6
23631.1Stvelse
23641.1Stv  if test -n "$CC"; then
23651.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
23661.1Stvelse
23671.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23681.84Schristosfor as_dir in $PATH
23691.84Schristosdo
23701.84Schristos  IFS=$as_save_IFS
23711.84Schristos  test -z "$as_dir" && as_dir=.
23721.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
23731.84Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23741.84Schristos    ac_cv_prog_CC="${ac_tool_prefix}cc"
23751.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23761.84Schristos    break 2
23771.84Schristos  fi
23781.65Schristosdone
23791.84Schristos  done
23801.84SchristosIFS=$as_save_IFS
23811.1Stv
23821.1Stvfi
23831.1Stvfi
23841.1StvCC=$ac_cv_prog_CC
23851.1Stvif test -n "$CC"; then
23861.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
23871.84Schristos$as_echo "$CC" >&6; }
23881.76Spookaelse
23891.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23901.84Schristos$as_echo "no" >&6; }
23911.76Spookafi
23921.76Spooka
23931.1Stv
23941.84Schristos  fi
23951.1Stvfi
23961.1Stvif test -z "$CC"; then
23971.1Stv  # Extract the first word of "cc", so it can be a program name with args.
23981.1Stvset dummy cc; ac_word=$2
23991.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24001.84Schristos$as_echo_n "checking for $ac_word... " >&6; }
24011.84Schristosif ${ac_cv_prog_CC+:} false; then :
24021.84Schristos  $as_echo_n "(cached) " >&6
24031.1Stvelse
24041.1Stv  if test -n "$CC"; then
24051.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
24061.1Stvelse
24071.1Stv  ac_prog_rejected=no
24081.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24091.84Schristosfor as_dir in $PATH
24101.84Schristosdo
24111.84Schristos  IFS=$as_save_IFS
24121.84Schristos  test -z "$as_dir" && as_dir=.
24131.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
24141.84Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24151.84Schristos    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
24161.84Schristos       ac_prog_rejected=yes
24171.84Schristos       continue
24181.84Schristos     fi
24191.84Schristos    ac_cv_prog_CC="cc"
24201.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24211.84Schristos    break 2
24221.84Schristos  fi
24231.65Schristosdone
24241.84Schristos  done
24251.84SchristosIFS=$as_save_IFS
24261.1Stv
24271.1Stvif test $ac_prog_rejected = yes; then
24281.1Stv  # We found a bogon in the path, so make sure we never use it.
24291.1Stv  set dummy $ac_cv_prog_CC
24301.1Stv  shift
24311.1Stv  if test $# != 0; then
24321.1Stv    # We chose a different compiler from the bogus one.
24331.1Stv    # However, it has the same basename, so the bogon will be chosen
24341.1Stv    # first if we set CC to just the basename; use the full file name.
24351.1Stv    shift
24361.84Schristos    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
24371.1Stv  fi
24381.1Stvfi
24391.1Stvfi
24401.1Stvfi
24411.1StvCC=$ac_cv_prog_CC
24421.1Stvif test -n "$CC"; then
24431.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
24441.84Schristos$as_echo "$CC" >&6; }
24451.1Stvelse
24461.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24471.84Schristos$as_echo "no" >&6; }
24481.1Stvfi
24491.1Stv
24501.84Schristos
24511.1Stvfi
24521.1Stvif test -z "$CC"; then
24531.1Stv  if test -n "$ac_tool_prefix"; then
24541.84Schristos  for ac_prog in cl.exe
24551.1Stv  do
24561.1Stv    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24571.1Stvset dummy $ac_tool_prefix$ac_prog; ac_word=$2
24581.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24591.84Schristos$as_echo_n "checking for $ac_word... " >&6; }
24601.84Schristosif ${ac_cv_prog_CC+:} false; then :
24611.84Schristos  $as_echo_n "(cached) " >&6
24621.1Stvelse
24631.1Stv  if test -n "$CC"; then
24641.1Stv  ac_cv_prog_CC="$CC" # Let the user override the test.
24651.1Stvelse
24661.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24671.84Schristosfor as_dir in $PATH
24681.84Schristosdo
24691.84Schristos  IFS=$as_save_IFS
24701.84Schristos  test -z "$as_dir" && as_dir=.
24711.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
24721.84Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24731.84Schristos    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
24741.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24751.84Schristos    break 2
24761.84Schristos  fi
24771.1Stvdone
24781.84Schristos  done
24791.84SchristosIFS=$as_save_IFS
24801.1Stv
24811.1Stvfi
24821.1Stvfi
24831.1StvCC=$ac_cv_prog_CC
24841.1Stvif test -n "$CC"; then
24851.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
24861.84Schristos$as_echo "$CC" >&6; }
24871.1Stvelse
24881.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24891.84Schristos$as_echo "no" >&6; }
24901.1Stvfi
24911.1Stv
24921.84Schristos
24931.1Stv    test -n "$CC" && break
24941.1Stv  done
24951.1Stvfi
24961.1Stvif test -z "$CC"; then
24971.1Stv  ac_ct_CC=$CC
24981.84Schristos  for ac_prog in cl.exe
24991.1Stvdo
25001.1Stv  # Extract the first word of "$ac_prog", so it can be a program name with args.
25011.1Stvset dummy $ac_prog; ac_word=$2
25021.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25031.84Schristos$as_echo_n "checking for $ac_word... " >&6; }
25041.84Schristosif ${ac_cv_prog_ac_ct_CC+:} false; then :
25051.84Schristos  $as_echo_n "(cached) " >&6
25061.1Stvelse
25071.1Stv  if test -n "$ac_ct_CC"; then
25081.1Stv  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
25091.1Stvelse
25101.84Schristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25111.84Schristosfor as_dir in $PATH
25121.84Schristosdo
25131.84Schristos  IFS=$as_save_IFS
25141.84Schristos  test -z "$as_dir" && as_dir=.
25151.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
25161.84Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25171.84Schristos    ac_cv_prog_ac_ct_CC="$ac_prog"
25181.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25191.84Schristos    break 2
25201.84Schristos  fi
25211.1Stvdone
25221.84Schristos  done
25231.84SchristosIFS=$as_save_IFS
25241.1Stv
25251.1Stvfi
25261.1Stvfi
25271.1Stvac_ct_CC=$ac_cv_prog_ac_ct_CC
25281.1Stvif test -n "$ac_ct_CC"; then
25291.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
25301.84Schristos$as_echo "$ac_ct_CC" >&6; }
25311.1Stvelse
25321.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25331.84Schristos$as_echo "no" >&6; }
25341.1Stvfi
25351.1Stv
25361.84Schristos
25371.1Stv  test -n "$ac_ct_CC" && break
25381.1Stvdone
25391.1Stv
25401.84Schristos  if test "x$ac_ct_CC" = x; then
25411.84Schristos    CC=""
25421.84Schristos  else
25431.84Schristos    case $cross_compiling:$ac_tool_warned in
25441.84Schristosyes:)
25451.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25461.84Schristos$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25471.84Schristosac_tool_warned=yes ;;
25481.84Schristosesac
25491.84Schristos    CC=$ac_ct_CC
25501.84Schristos  fi
25511.1Stvfi
25521.1Stv
25531.1Stvfi
25541.1Stv
25551.84Schristos
25561.84Schristostest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25571.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25581.84Schristosas_fn_error $? "no acceptable C compiler found in \$PATH
25591.84SchristosSee \`config.log' for more details" "$LINENO" 5; }
25601.1Stv
25611.1Stv# Provide some information about the compiler.
25621.84Schristos$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
25631.84Schristosset X $ac_compile
25641.84Schristosac_compiler=$2
25651.84Schristosfor ac_option in --version -v -V -qversion; do
25661.84Schristos  { { ac_try="$ac_compiler $ac_option >&5"
25671.84Schristoscase "(($ac_try" in
25681.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691.84Schristos  *) ac_try_echo=$ac_try;;
25701.84Schristosesac
25711.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25721.84Schristos$as_echo "$ac_try_echo"; } >&5
25731.84Schristos  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25741.76Spooka  ac_status=$?
25751.84Schristos  if test -s conftest.err; then
25761.84Schristos    sed '10a\
25771.84Schristos... rest of stderr output deleted ...
25781.84Schristos         10q' conftest.err >conftest.er1
25791.84Schristos    cat conftest.er1 >&5
25801.84Schristos  fi
25811.84Schristos  rm -f conftest.er1 conftest.err
25821.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25831.84Schristos  test $ac_status = 0; }
25841.84Schristosdone
25851.1Stv
25861.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
25871.84Schristos/* end confdefs.h.  */
25881.1Stv
25891.1Stvint
25901.1Stvmain ()
25911.1Stv{
25921.1Stv
25931.1Stv  ;
25941.1Stv  return 0;
25951.1Stv}
25961.1Stv_ACEOF
25971.1Stvac_clean_files_save=$ac_clean_files
25981.84Schristosac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
25991.1Stv# Try to create an executable without -o first, disregard a.out.
26001.1Stv# It will help us diagnose broken compilers, and finding out an intuition
26011.1Stv# of exeext.
26021.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
26031.84Schristos$as_echo_n "checking whether the C compiler works... " >&6; }
26041.84Schristosac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
26051.84Schristos
26061.84Schristos# The possible output files:
26071.84Schristosac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
26081.84Schristos
26091.84Schristosac_rmfiles=
26101.84Schristosfor ac_file in $ac_files
26111.84Schristosdo
26121.84Schristos  case $ac_file in
26131.84Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
26141.84Schristos    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
26151.84Schristos  esac
26161.84Schristosdone
26171.84Schristosrm -f $ac_rmfiles
26181.84Schristos
26191.84Schristosif { { ac_try="$ac_link_default"
26201.84Schristoscase "(($ac_try" in
26211.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26221.84Schristos  *) ac_try_echo=$ac_try;;
26231.84Schristosesac
26241.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26251.84Schristos$as_echo "$ac_try_echo"; } >&5
26261.84Schristos  (eval "$ac_link_default") 2>&5
26271.84Schristos  ac_status=$?
26281.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26291.84Schristos  test $ac_status = 0; }; then :
26301.84Schristos  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
26311.84Schristos# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
26321.84Schristos# in a Makefile.  We should not override ac_cv_exeext if it was cached,
26331.84Schristos# so that the user can short-circuit this test for compilers unknown to
26341.84Schristos# Autoconf.
26351.84Schristosfor ac_file in $ac_files ''
26361.84Schristosdo
26371.84Schristos  test -f "$ac_file" || continue
26381.74Schristos  case $ac_file in
26391.84Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
26401.84Schristos	;;
26411.84Schristos    [ab].out )
26421.84Schristos	# We found the default executable, but exeext='' is most
26431.84Schristos	# certainly right.
26441.84Schristos	break;;
26451.84Schristos    *.* )
26461.84Schristos	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
26471.84Schristos	then :; else
26481.84Schristos	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
26491.84Schristos	fi
26501.84Schristos	# We set ac_cv_exeext here because the later test for it is not
26511.84Schristos	# safe: cross compilers may not add the suffix if given an `-o'
26521.84Schristos	# argument, so we may need to know it at that point already.
26531.84Schristos	# Even if this section looks crufty: it has the advantage of
26541.84Schristos	# actually working.
26551.84Schristos	break;;
26561.84Schristos    * )
26571.84Schristos	break;;
26581.1Stv  esac
26591.1Stvdone
26601.84Schristostest "$ac_cv_exeext" = no && ac_cv_exeext=
26611.84Schristos
26621.1Stvelse
26631.84Schristos  ac_file=''
26641.1Stvfi
26651.84Schristosif test -z "$ac_file"; then :
26661.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26671.84Schristos$as_echo "no" >&6; }
26681.84Schristos$as_echo "$as_me: failed program was:" >&5
26691.84Schristossed 's/^/| /' conftest.$ac_ext >&5
26701.1Stv
26711.84Schristos{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26721.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26731.84Schristosas_fn_error 77 "C compiler cannot create executables
26741.84SchristosSee \`config.log' for more details" "$LINENO" 5; }
26751.84Schristoselse
26761.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26771.84Schristos$as_echo "yes" >&6; }
26781.84Schristosfi
26791.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
26801.84Schristos$as_echo_n "checking for C compiler default output file name... " >&6; }
26811.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
26821.84Schristos$as_echo "$ac_file" >&6; }
26831.76Spookaac_exeext=$ac_cv_exeext
26841.1Stv
26851.84Schristosrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
26861.1Stvac_clean_files=$ac_clean_files_save
26871.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
26881.84Schristos$as_echo_n "checking for suffix of executables... " >&6; }
26891.84Schristosif { { ac_try="$ac_link"
26901.84Schristoscase "(($ac_try" in
26911.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26921.84Schristos  *) ac_try_echo=$ac_try;;
26931.84Schristosesac
26941.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26951.84Schristos$as_echo "$ac_try_echo"; } >&5
26961.84Schristos  (eval "$ac_link") 2>&5
26971.1Stv  ac_status=$?
26981.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26991.84Schristos  test $ac_status = 0; }; then :
27001.1Stv  # If both `conftest.exe' and `conftest' are `present' (well, observable)
27011.1Stv# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
27021.1Stv# work properly (i.e., refer to `conftest.exe'), while it won't with
27031.1Stv# `rm'.
27041.84Schristosfor ac_file in conftest.exe conftest conftest.*; do
27051.84Schristos  test -f "$ac_file" || continue
27061.1Stv  case $ac_file in
27071.84Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
27081.1Stv    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
27091.84Schristos	  break;;
27101.1Stv    * ) break;;
27111.1Stv  esac
27121.1Stvdone
27131.1Stvelse
27141.84Schristos  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27151.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27161.84Schristosas_fn_error $? "cannot compute suffix of executables: cannot compile and link
27171.84SchristosSee \`config.log' for more details" "$LINENO" 5; }
27181.84Schristosfi
27191.84Schristosrm -f conftest conftest$ac_cv_exeext
27201.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
27211.84Schristos$as_echo "$ac_cv_exeext" >&6; }
27221.1Stv
27231.1Stvrm -f conftest.$ac_ext
27241.1StvEXEEXT=$ac_cv_exeext
27251.1Stvac_exeext=$EXEEXT
27261.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
27271.84Schristos/* end confdefs.h.  */
27281.84Schristos#include <stdio.h>
27291.1Stvint
27301.1Stvmain ()
27311.1Stv{
27321.84SchristosFILE *f = fopen ("conftest.out", "w");
27331.84Schristos return ferror (f) || fclose (f) != 0;
27341.1Stv
27351.1Stv  ;
27361.1Stv  return 0;
27371.1Stv}
27381.1Stv_ACEOF
27391.84Schristosac_clean_files="$ac_clean_files conftest.out"
27401.84Schristos# Check that the compiler produces executables we can run.  If not, either
27411.84Schristos# the compiler is broken, or we cross compile.
27421.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
27431.84Schristos$as_echo_n "checking whether we are cross compiling... " >&6; }
27441.84Schristosif test "$cross_compiling" != yes; then
27451.84Schristos  { { ac_try="$ac_link"
27461.84Schristoscase "(($ac_try" in
27471.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481.84Schristos  *) ac_try_echo=$ac_try;;
27491.84Schristosesac
27501.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27511.84Schristos$as_echo "$ac_try_echo"; } >&5
27521.84Schristos  (eval "$ac_link") 2>&5
27531.84Schristos  ac_status=$?
27541.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27551.84Schristos  test $ac_status = 0; }
27561.84Schristos  if { ac_try='./conftest$ac_cv_exeext'
27571.84Schristos  { { case "(($ac_try" in
27581.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27591.84Schristos  *) ac_try_echo=$ac_try;;
27601.84Schristosesac
27611.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27621.84Schristos$as_echo "$ac_try_echo"; } >&5
27631.84Schristos  (eval "$ac_try") 2>&5
27641.1Stv  ac_status=$?
27651.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27661.84Schristos  test $ac_status = 0; }; }; then
27671.84Schristos    cross_compiling=no
27681.84Schristos  else
27691.84Schristos    if test "$cross_compiling" = maybe; then
27701.84Schristos	cross_compiling=yes
27711.84Schristos    else
27721.84Schristos	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27731.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27741.84Schristosas_fn_error $? "cannot run C compiled programs.
27751.84SchristosIf you meant to cross compile, use \`--host'.
27761.84SchristosSee \`config.log' for more details" "$LINENO" 5; }
27771.84Schristos    fi
27781.84Schristos  fi
27791.84Schristosfi
27801.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
27811.84Schristos$as_echo "$cross_compiling" >&6; }
27821.84Schristos
27831.84Schristosrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
27841.84Schristosac_clean_files=$ac_clean_files_save
27851.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
27861.84Schristos$as_echo_n "checking for suffix of object files... " >&6; }
27871.84Schristosif ${ac_cv_objext+:} false; then :
27881.84Schristos  $as_echo_n "(cached) " >&6
27891.76Spookaelse
27901.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27911.84Schristos/* end confdefs.h.  */
27921.74Schristos
27931.84Schristosint
27941.84Schristosmain ()
27951.84Schristos{
27961.84Schristos
27971.84Schristos  ;
27981.84Schristos  return 0;
27991.84Schristos}
28001.84Schristos_ACEOF
28011.84Schristosrm -f conftest.o conftest.obj
28021.84Schristosif { { ac_try="$ac_compile"
28031.84Schristoscase "(($ac_try" in
28041.84Schristos  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28051.84Schristos  *) ac_try_echo=$ac_try;;
28061.84Schristosesac
28071.84Schristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28081.84Schristos$as_echo "$ac_try_echo"; } >&5
28091.84Schristos  (eval "$ac_compile") 2>&5
28101.84Schristos  ac_status=$?
28111.84Schristos  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28121.84Schristos  test $ac_status = 0; }; then :
28131.84Schristos  for ac_file in conftest.o conftest.obj conftest.*; do
28141.84Schristos  test -f "$ac_file" || continue;
28151.84Schristos  case $ac_file in
28161.84Schristos    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
28171.84Schristos    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
28181.84Schristos       break;;
28191.84Schristos  esac
28201.84Schristosdone
28211.84Schristoselse
28221.84Schristos  $as_echo "$as_me: failed program was:" >&5
28231.84Schristossed 's/^/| /' conftest.$ac_ext >&5
28241.84Schristos
28251.84Schristos{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28261.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28271.84Schristosas_fn_error $? "cannot compute suffix of object files: cannot compile
28281.84SchristosSee \`config.log' for more details" "$LINENO" 5; }
28291.84Schristosfi
28301.1Stvrm -f conftest.$ac_cv_objext conftest.$ac_ext
28311.1Stvfi
28321.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
28331.84Schristos$as_echo "$ac_cv_objext" >&6; }
28341.1StvOBJEXT=$ac_cv_objext
28351.1Stvac_objext=$OBJEXT
28361.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
28371.84Schristos$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
28381.84Schristosif ${ac_cv_c_compiler_gnu+:} false; then :
28391.84Schristos  $as_echo_n "(cached) " >&6
28401.84Schristoselse
28411.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28421.84Schristos/* end confdefs.h.  */
28431.1Stv
28441.1Stvint
28451.1Stvmain ()
28461.1Stv{
28471.1Stv#ifndef __GNUC__
28481.1Stv       choke me
28491.1Stv#endif
28501.1Stv
28511.1Stv  ;
28521.1Stv  return 0;
28531.1Stv}
28541.1Stv_ACEOF
28551.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
28561.1Stv  ac_compiler_gnu=yes
28571.1Stvelse
28581.84Schristos  ac_compiler_gnu=no
28591.1Stvfi
28601.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28611.1Stvac_cv_c_compiler_gnu=$ac_compiler_gnu
28621.1Stv
28631.1Stvfi
28641.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
28651.84Schristos$as_echo "$ac_cv_c_compiler_gnu" >&6; }
28661.84Schristosif test $ac_compiler_gnu = yes; then
28671.84Schristos  GCC=yes
28681.84Schristoselse
28691.84Schristos  GCC=
28701.84Schristosfi
28711.1Stvac_test_CFLAGS=${CFLAGS+set}
28721.1Stvac_save_CFLAGS=$CFLAGS
28731.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
28741.84Schristos$as_echo_n "checking whether $CC accepts -g... " >&6; }
28751.84Schristosif ${ac_cv_prog_cc_g+:} false; then :
28761.84Schristos  $as_echo_n "(cached) " >&6
28771.84Schristoselse
28781.84Schristos  ac_save_c_werror_flag=$ac_c_werror_flag
28791.84Schristos   ac_c_werror_flag=yes
28801.84Schristos   ac_cv_prog_cc_g=no
28811.84Schristos   CFLAGS="-g"
28821.84Schristos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28831.84Schristos/* end confdefs.h.  */
28841.1Stv
28851.1Stvint
28861.1Stvmain ()
28871.1Stv{
28881.1Stv
28891.1Stv  ;
28901.1Stv  return 0;
28911.1Stv}
28921.1Stv_ACEOF
28931.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
28941.1Stv  ac_cv_prog_cc_g=yes
28951.1Stvelse
28961.84Schristos  CFLAGS=""
28971.84Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28981.84Schristos/* end confdefs.h.  */
28991.84Schristos
29001.84Schristosint
29011.84Schristosmain ()
29021.84Schristos{
29031.84Schristos
29041.84Schristos  ;
29051.84Schristos  return 0;
29061.84Schristos}
29071.84Schristos_ACEOF
29081.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
29091.84Schristos
29101.84Schristoselse
29111.84Schristos  ac_c_werror_flag=$ac_save_c_werror_flag
29121.84Schristos	 CFLAGS="-g"
29131.84Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29141.84Schristos/* end confdefs.h.  */
29151.84Schristos
29161.84Schristosint
29171.84Schristosmain ()
29181.84Schristos{
29191.84Schristos
29201.84Schristos  ;
29211.84Schristos  return 0;
29221.84Schristos}
29231.84Schristos_ACEOF
29241.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
29251.84Schristos  ac_cv_prog_cc_g=yes
29261.84Schristosfi
29271.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29281.66Stsutsuifi
29291.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29301.66Stsutsuifi
29311.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29321.84Schristos   ac_c_werror_flag=$ac_save_c_werror_flag
29331.84Schristosfi
29341.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
29351.84Schristos$as_echo "$ac_cv_prog_cc_g" >&6; }
29361.66Stsutsuiif test "$ac_test_CFLAGS" = set; then
29371.66Stsutsui  CFLAGS=$ac_save_CFLAGS
29381.66Stsutsuielif test $ac_cv_prog_cc_g = yes; then
29391.66Stsutsui  if test "$GCC" = yes; then
29401.66Stsutsui    CFLAGS="-g -O2"
29411.66Stsutsui  else
29421.66Stsutsui    CFLAGS="-g"
29431.66Stsutsui  fi
29441.66Stsutsuielse
29451.66Stsutsui  if test "$GCC" = yes; then
29461.66Stsutsui    CFLAGS="-O2"
29471.66Stsutsui  else
29481.66Stsutsui    CFLAGS=
29491.66Stsutsui  fi
29501.66Stsutsuifi
29511.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
29521.84Schristos$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
29531.84Schristosif ${ac_cv_prog_cc_c89+:} false; then :
29541.84Schristos  $as_echo_n "(cached) " >&6
29551.84Schristoselse
29561.84Schristos  ac_cv_prog_cc_c89=no
29571.84Schristosac_save_CC=$CC
29581.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
29591.84Schristos/* end confdefs.h.  */
29601.84Schristos#include <stdarg.h>
29611.84Schristos#include <stdio.h>
29621.84Schristosstruct stat;
29631.84Schristos/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
29641.84Schristosstruct buf { int x; };
29651.84SchristosFILE * (*rcsopen) (struct buf *, struct stat *, int);
29661.84Schristosstatic char *e (p, i)
29671.84Schristos     char **p;
29681.84Schristos     int i;
29691.84Schristos{
29701.84Schristos  return p[i];
29711.84Schristos}
29721.84Schristosstatic char *f (char * (*g) (char **, int), char **p, ...)
29731.74Schristos{
29741.84Schristos  char *s;
29751.84Schristos  va_list v;
29761.84Schristos  va_start (v,p);
29771.84Schristos  s = g (p, va_arg (v,int));
29781.84Schristos  va_end (v);
29791.84Schristos  return s;
29801.74Schristos}
29811.84Schristos
29821.84Schristos/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
29831.84Schristos   function prototypes and stuff, but not '\xHH' hex character constants.
29841.84Schristos   These don't provoke an error unfortunately, instead are silently treated
29851.84Schristos   as 'x'.  The following induces an error, until -std is added to get
29861.84Schristos   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
29871.84Schristos   array size at least.  It's necessary to write '\x00'==0 to get something
29881.84Schristos   that's true only with -std.  */
29891.84Schristosint osf4_cc_array ['\x00' == 0 ? 1 : -1];
29901.84Schristos
29911.84Schristos/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
29921.84Schristos   inside strings and character constants.  */
29931.84Schristos#define FOO(x) 'x'
29941.84Schristosint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
29951.84Schristos
29961.84Schristosint test (int i, double x);
29971.84Schristosstruct s1 {int (*f) (int a);};
29981.84Schristosstruct s2 {int (*f) (double a);};
29991.84Schristosint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
30001.84Schristosint argc;
30011.84Schristoschar **argv;
30021.1Stvint
30031.1Stvmain ()
30041.1Stv{
30051.84Schristosreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
30061.1Stv  ;
30071.1Stv  return 0;
30081.1Stv}
30091.1Stv_ACEOF
30101.84Schristosfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
30111.84Schristos	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
30121.84Schristosdo
30131.84Schristos  CC="$ac_save_CC $ac_arg"
30141.84Schristos  if ac_fn_c_try_compile "$LINENO"; then :
30151.84Schristos  ac_cv_prog_cc_c89=$ac_arg
30161.65Schristosfi
30171.84Schristosrm -f core conftest.err conftest.$ac_objext
30181.84Schristos  test "x$ac_cv_prog_cc_c89" != "xno" && break
30191.66Stsutsuidone
30201.84Schristosrm -f conftest.$ac_ext
30211.84SchristosCC=$ac_save_CC
30221.84Schristos
30231.1Stvfi
30241.84Schristos# AC_CACHE_VAL
30251.84Schristoscase "x$ac_cv_prog_cc_c89" in
30261.84Schristos  x)
30271.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
30281.84Schristos$as_echo "none needed" >&6; } ;;
30291.84Schristos  xno)
30301.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
30311.84Schristos$as_echo "unsupported" >&6; } ;;
30321.84Schristos  *)
30331.84Schristos    CC="$CC $ac_cv_prog_cc_c89"
30341.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
30351.84Schristos$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
30361.84Schristosesac
30371.84Schristosif test "x$ac_cv_prog_cc_c89" != xno; then :
30381.1Stv
30391.65Schristosfi
30401.84Schristos
30411.1Stvac_ext=c
30421.1Stvac_cpp='$CPP $CPPFLAGS'
30431.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30441.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30451.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
30461.1Stv
30471.84Schristos
30481.1Stvac_ext=c
30491.1Stvac_cpp='$CPP $CPPFLAGS'
30501.1Stvac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30511.1Stvac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30521.1Stvac_compiler_gnu=$ac_cv_c_compiler_gnu
30531.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
30541.84Schristos$as_echo_n "checking how to run the C preprocessor... " >&6; }
30551.1Stv# On Suns, sometimes $CPP names a directory.
30561.1Stvif test -n "$CPP" && test -d "$CPP"; then
30571.1Stv  CPP=
30581.1Stvfi
30591.1Stvif test -z "$CPP"; then
30601.84Schristos  if ${ac_cv_prog_CPP+:} false; then :
30611.84Schristos  $as_echo_n "(cached) " >&6
30621.1Stvelse
30631.1Stv      # Double quotes because CPP needs to be expanded
30641.1Stv    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
30651.1Stv    do
30661.1Stv      ac_preproc_ok=false
30671.1Stvfor ac_c_preproc_warn_flag in '' yes
30681.1Stvdo
30691.1Stv  # Use a header file that comes with gcc, so configuring glibc
30701.1Stv  # with a fresh cross-compiler works.
30711.84Schristos  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30721.84Schristos  # <limits.h> exists even on freestanding compilers.
30731.1Stv  # On the NeXT, cc -E runs the code through the compiler's parser,
30741.1Stv  # not just through cpp. "Syntax error" is here to catch this case.
30751.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30761.84Schristos/* end confdefs.h.  */
30771.84Schristos#ifdef __STDC__
30781.84Schristos# include <limits.h>
30791.84Schristos#else
30801.84Schristos# include <assert.h>
30811.84Schristos#endif
30821.84Schristos		     Syntax error
30831.48Sjmc_ACEOF
30841.84Schristosif ac_fn_c_try_cpp "$LINENO"; then :
30851.84Schristos
30861.1Stvelse
30871.1Stv  # Broken: fails on valid input.
30881.1Stvcontinue
30891.1Stvfi
30901.84Schristosrm -f conftest.err conftest.i conftest.$ac_ext
30911.1Stv
30921.84Schristos  # OK, works on sane cases.  Now check whether nonexistent headers
30931.1Stv  # can be detected and how.
30941.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30951.84Schristos/* end confdefs.h.  */
30961.1Stv#include <ac_nonexistent.h>
30971.1Stv_ACEOF
30981.84Schristosif ac_fn_c_try_cpp "$LINENO"; then :
30991.1Stv  # Broken: success on invalid input.
31001.1Stvcontinue
31011.1Stvelse
31021.1Stv  # Passes both tests.
31031.1Stvac_preproc_ok=:
31041.1Stvbreak
31051.1Stvfi
31061.84Schristosrm -f conftest.err conftest.i conftest.$ac_ext
31071.1Stv
31081.1Stvdone
31091.1Stv# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
31101.84Schristosrm -f conftest.i conftest.err conftest.$ac_ext
31111.84Schristosif $ac_preproc_ok; then :
31121.1Stv  break
31131.1Stvfi
31141.1Stv
31151.1Stv    done
31161.1Stv    ac_cv_prog_CPP=$CPP
31171.1Stv
31181.1Stvfi
31191.1Stv  CPP=$ac_cv_prog_CPP
31201.1Stvelse
31211.1Stv  ac_cv_prog_CPP=$CPP
31221.1Stvfi
31231.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
31241.84Schristos$as_echo "$CPP" >&6; }
31251.1Stvac_preproc_ok=false
31261.1Stvfor ac_c_preproc_warn_flag in '' yes
31271.1Stvdo
31281.1Stv  # Use a header file that comes with gcc, so configuring glibc
31291.1Stv  # with a fresh cross-compiler works.
31301.84Schristos  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31311.84Schristos  # <limits.h> exists even on freestanding compilers.
31321.1Stv  # On the NeXT, cc -E runs the code through the compiler's parser,
31331.1Stv  # not just through cpp. "Syntax error" is here to catch this case.
31341.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31351.84Schristos/* end confdefs.h.  */
31361.84Schristos#ifdef __STDC__
31371.84Schristos# include <limits.h>
31381.84Schristos#else
31391.84Schristos# include <assert.h>
31401.84Schristos#endif
31411.84Schristos		     Syntax error
31421.53Sdogcow_ACEOF
31431.84Schristosif ac_fn_c_try_cpp "$LINENO"; then :
31441.84Schristos
31451.1Stvelse
31461.1Stv  # Broken: fails on valid input.
31471.1Stvcontinue
31481.1Stvfi
31491.84Schristosrm -f conftest.err conftest.i conftest.$ac_ext
31501.1Stv
31511.84Schristos  # OK, works on sane cases.  Now check whether nonexistent headers
31521.1Stv  # can be detected and how.
31531.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31541.84Schristos/* end confdefs.h.  */
31551.1Stv#include <ac_nonexistent.h>
31561.1Stv_ACEOF
31571.84Schristosif ac_fn_c_try_cpp "$LINENO"; then :
31581.45Sjmc  # Broken: success on invalid input.
31591.45Sjmccontinue
31601.45Sjmcelse
31611.45Sjmc  # Passes both tests.
31621.45Sjmcac_preproc_ok=:
31631.45Sjmcbreak
31641.45Sjmcfi
31651.84Schristosrm -f conftest.err conftest.i conftest.$ac_ext
31661.45Sjmc
31671.45Sjmcdone
31681.45Sjmc# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
31691.84Schristosrm -f conftest.i conftest.err conftest.$ac_ext
31701.84Schristosif $ac_preproc_ok; then :
31711.84Schristos
31721.45Sjmcelse
31731.84Schristos  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31741.84Schristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31751.84Schristosas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
31761.84SchristosSee \`config.log' for more details" "$LINENO" 5; }
31771.45Sjmcfi
31781.45Sjmc
31791.45Sjmcac_ext=c
31801.45Sjmcac_cpp='$CPP $CPPFLAGS'
31811.45Sjmcac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31821.45Sjmcac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31831.45Sjmcac_compiler_gnu=$ac_cv_c_compiler_gnu
31841.45Sjmc
31851.84Schristos
31861.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
31871.84Schristos$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
31881.84Schristosif ${ac_cv_path_GREP+:} false; then :
31891.84Schristos  $as_echo_n "(cached) " >&6
31901.84Schristoselse
31911.84Schristos  if test -z "$GREP"; then
31921.84Schristos  ac_path_GREP_found=false
31931.84Schristos  # Loop through the user's path and test for each of PROGNAME-LIST
31941.84Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31951.84Schristosfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
31961.84Schristosdo
31971.84Schristos  IFS=$as_save_IFS
31981.84Schristos  test -z "$as_dir" && as_dir=.
31991.84Schristos    for ac_prog in grep ggrep; do
32001.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
32011.84Schristos      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
32021.84Schristos      as_fn_executable_p "$ac_path_GREP" || continue
32031.84Schristos# Check for GNU ac_path_GREP and select it if it is found.
32041.84Schristos  # Check for GNU $ac_path_GREP
32051.84Schristoscase `"$ac_path_GREP" --version 2>&1` in
32061.84Schristos*GNU*)
32071.84Schristos  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
32081.84Schristos*)
32091.84Schristos  ac_count=0
32101.84Schristos  $as_echo_n 0123456789 >"conftest.in"
32111.84Schristos  while :
32121.84Schristos  do
32131.84Schristos    cat "conftest.in" "conftest.in" >"conftest.tmp"
32141.84Schristos    mv "conftest.tmp" "conftest.in"
32151.84Schristos    cp "conftest.in" "conftest.nl"
32161.84Schristos    $as_echo 'GREP' >> "conftest.nl"
32171.84Schristos    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
32181.84Schristos    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
32191.84Schristos    as_fn_arith $ac_count + 1 && ac_count=$as_val
32201.84Schristos    if test $ac_count -gt ${ac_path_GREP_max-0}; then
32211.84Schristos      # Best one so far, save it but keep looking for a better one
32221.84Schristos      ac_cv_path_GREP="$ac_path_GREP"
32231.84Schristos      ac_path_GREP_max=$ac_count
32241.84Schristos    fi
32251.84Schristos    # 10*(2^10) chars as input seems more than enough
32261.84Schristos    test $ac_count -gt 10 && break
32271.84Schristos  done
32281.84Schristos  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
32291.84Schristosesac
32301.84Schristos
32311.84Schristos      $ac_path_GREP_found && break 3
32321.84Schristos    done
32331.84Schristos  done
32341.84Schristos  done
32351.84SchristosIFS=$as_save_IFS
32361.84Schristos  if test -z "$ac_cv_path_GREP"; then
32371.84Schristos    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
32381.84Schristos  fi
32391.84Schristoselse
32401.84Schristos  ac_cv_path_GREP=$GREP
32411.84Schristosfi
32421.84Schristos
32431.84Schristosfi
32441.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
32451.84Schristos$as_echo "$ac_cv_path_GREP" >&6; }
32461.84Schristos GREP="$ac_cv_path_GREP"
32471.84Schristos
32481.84Schristos
32491.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
32501.84Schristos$as_echo_n "checking for egrep... " >&6; }
32511.84Schristosif ${ac_cv_path_EGREP+:} false; then :
32521.84Schristos  $as_echo_n "(cached) " >&6
32531.84Schristoselse
32541.84Schristos  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
32551.84Schristos   then ac_cv_path_EGREP="$GREP -E"
32561.84Schristos   else
32571.84Schristos     if test -z "$EGREP"; then
32581.84Schristos  ac_path_EGREP_found=false
32591.84Schristos  # Loop through the user's path and test for each of PROGNAME-LIST
32601.84Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32611.84Schristosfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
32621.84Schristosdo
32631.84Schristos  IFS=$as_save_IFS
32641.84Schristos  test -z "$as_dir" && as_dir=.
32651.84Schristos    for ac_prog in egrep; do
32661.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
32671.84Schristos      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
32681.84Schristos      as_fn_executable_p "$ac_path_EGREP" || continue
32691.84Schristos# Check for GNU ac_path_EGREP and select it if it is found.
32701.84Schristos  # Check for GNU $ac_path_EGREP
32711.84Schristoscase `"$ac_path_EGREP" --version 2>&1` in
32721.84Schristos*GNU*)
32731.84Schristos  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
32741.84Schristos*)
32751.84Schristos  ac_count=0
32761.84Schristos  $as_echo_n 0123456789 >"conftest.in"
32771.84Schristos  while :
32781.84Schristos  do
32791.84Schristos    cat "conftest.in" "conftest.in" >"conftest.tmp"
32801.84Schristos    mv "conftest.tmp" "conftest.in"
32811.84Schristos    cp "conftest.in" "conftest.nl"
32821.84Schristos    $as_echo 'EGREP' >> "conftest.nl"
32831.84Schristos    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
32841.84Schristos    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
32851.84Schristos    as_fn_arith $ac_count + 1 && ac_count=$as_val
32861.84Schristos    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
32871.84Schristos      # Best one so far, save it but keep looking for a better one
32881.84Schristos      ac_cv_path_EGREP="$ac_path_EGREP"
32891.84Schristos      ac_path_EGREP_max=$ac_count
32901.84Schristos    fi
32911.84Schristos    # 10*(2^10) chars as input seems more than enough
32921.84Schristos    test $ac_count -gt 10 && break
32931.84Schristos  done
32941.84Schristos  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
32951.84Schristosesac
32961.84Schristos
32971.84Schristos      $ac_path_EGREP_found && break 3
32981.84Schristos    done
32991.84Schristos  done
33001.84Schristos  done
33011.84SchristosIFS=$as_save_IFS
33021.84Schristos  if test -z "$ac_cv_path_EGREP"; then
33031.84Schristos    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
33041.84Schristos  fi
33051.84Schristoselse
33061.84Schristos  ac_cv_path_EGREP=$EGREP
33071.84Schristosfi
33081.84Schristos
33091.84Schristos   fi
33101.84Schristosfi
33111.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
33121.84Schristos$as_echo "$ac_cv_path_EGREP" >&6; }
33131.84Schristos EGREP="$ac_cv_path_EGREP"
33141.84Schristos
33151.84Schristos
33161.101Slukem                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NetBSD" >&5
33171.84Schristos$as_echo_n "checking for NetBSD... " >&6; }
33181.84Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33191.84Schristos/* end confdefs.h.  */
33201.45Sjmc#ifdef __NetBSD__
33211.45Sjmc	yes
33221.45Sjmc	#endif
33231.45Sjmc
33241.45Sjmc_ACEOF
33251.45Sjmcif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33261.84Schristos  $EGREP "yes" >/dev/null 2>&1; then :
33271.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33281.84Schristos$as_echo "yes" >&6; }
33291.84Schristos
33301.84Schristos$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
33311.84Schristos
33321.74Schristos
33331.84Schristos$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
33341.74Schristos
33351.54Swiz
33361.84Schristos$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
33371.45Sjmc
33381.45Sjmcelse
33391.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33401.84Schristos$as_echo "no" >&6; }
33411.45Sjmcfi
33421.45Sjmcrm -f conftest*
33431.45Sjmc
33441.84Schristos
33451.45Sjmc# Extract the first word of "sh", so it can be a program name with args.
33461.45Sjmcset dummy sh; ac_word=$2
33471.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33481.84Schristos$as_echo_n "checking for $ac_word... " >&6; }
33491.84Schristosif ${ac_cv_path_BSHELL+:} false; then :
33501.84Schristos  $as_echo_n "(cached) " >&6
33511.45Sjmcelse
33521.45Sjmc  case $BSHELL in
33531.45Sjmc  [\\/]* | ?:[\\/]*)
33541.45Sjmc  ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
33551.45Sjmc  ;;
33561.45Sjmc  *)
33571.84Schristos  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33581.84Schristosfor as_dir in $PATH
33591.84Schristosdo
33601.84Schristos  IFS=$as_save_IFS
33611.84Schristos  test -z "$as_dir" && as_dir=.
33621.84Schristos    for ac_exec_ext in '' $ac_executable_extensions; do
33631.84Schristos  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33641.84Schristos    ac_cv_path_BSHELL="$as_dir/$ac_word$ac_exec_ext"
33651.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33661.84Schristos    break 2
33671.84Schristos  fi
33681.65Schristosdone
33691.84Schristos  done
33701.84SchristosIFS=$as_save_IFS
33711.45Sjmc
33721.45Sjmc  ;;
33731.45Sjmcesac
33741.45Sjmcfi
33751.45SjmcBSHELL=$ac_cv_path_BSHELL
33761.45Sjmcif test -n "$BSHELL"; then
33771.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BSHELL" >&5
33781.84Schristos$as_echo "$BSHELL" >&6; }
33791.45Sjmcelse
33801.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33811.84Schristos$as_echo "no" >&6; }
33821.45Sjmcfi
33831.45Sjmc
33841.84Schristos
33851.45Sjmcif test x"$BSHELL" = x; then
33861.84Schristos	as_fn_error $? "sh must be somewhere on \$PATH" "$LINENO" 5
33871.45Sjmcfi
33881.54Swiz
33891.84Schristoscat >>confdefs.h <<_ACEOF
33901.45Sjmc#define PATH_BSHELL "$BSHELL"
33911.84Schristos_ACEOF
33921.84Schristos
33931.76Spooka
33941.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
33951.84Schristos$as_echo_n "checking for ANSI C header files... " >&6; }
33961.84Schristosif ${ac_cv_header_stdc+:} false; then :
33971.84Schristos  $as_echo_n "(cached) " >&6
33981.76Spookaelse
33991.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34001.84Schristos/* end confdefs.h.  */
34011.84Schristos#include <stdlib.h>
34021.84Schristos#include <stdarg.h>
34031.84Schristos#include <string.h>
34041.84Schristos#include <float.h>
34051.45Sjmc
34061.45Sjmcint
34071.45Sjmcmain ()
34081.45Sjmc{
34091.45Sjmc
34101.45Sjmc  ;
34111.45Sjmc  return 0;
34121.45Sjmc}
34131.45Sjmc_ACEOF
34141.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
34151.6Stv  ac_cv_header_stdc=yes
34161.6Stvelse
34171.66Stsutsui  ac_cv_header_stdc=no
34181.6Stvfi
34191.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34201.6Stv
34211.6Stvif test $ac_cv_header_stdc = yes; then
34221.6Stv  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
34231.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34241.84Schristos/* end confdefs.h.  */
34251.6Stv#include <string.h>
34261.6Stv
34271.6Stv_ACEOF
34281.6Stvif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34291.84Schristos  $EGREP "memchr" >/dev/null 2>&1; then :
34301.84Schristos
34311.6Stvelse
34321.6Stv  ac_cv_header_stdc=no
34331.6Stvfi
34341.6Stvrm -f conftest*
34351.6Stv
34361.6Stvfi
34371.6Stv
34381.6Stvif test $ac_cv_header_stdc = yes; then
34391.6Stv  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
34401.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34411.84Schristos/* end confdefs.h.  */
34421.6Stv#include <stdlib.h>
34431.6Stv
34441.6Stv_ACEOF
34451.6Stvif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34461.84Schristos  $EGREP "free" >/dev/null 2>&1; then :
34471.84Schristos
34481.6Stvelse
34491.6Stv  ac_cv_header_stdc=no
34501.6Stvfi
34511.6Stvrm -f conftest*
34521.6Stv
34531.6Stvfi
34541.6Stv
34551.6Stvif test $ac_cv_header_stdc = yes; then
34561.6Stv  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
34571.84Schristos  if test "$cross_compiling" = yes; then :
34581.6Stv  :
34591.6Stvelse
34601.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34611.84Schristos/* end confdefs.h.  */
34621.6Stv#include <ctype.h>
34631.84Schristos#include <stdlib.h>
34641.6Stv#if ((' ' & 0x0FF) == 0x020)
34651.6Stv# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
34661.6Stv# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
34671.6Stv#else
34681.84Schristos# define ISLOWER(c) \
34691.84Schristos		   (('a' <= (c) && (c) <= 'i') \
34701.84Schristos		     || ('j' <= (c) && (c) <= 'r') \
34711.84Schristos		     || ('s' <= (c) && (c) <= 'z'))
34721.6Stv# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
34731.6Stv#endif
34741.6Stv
34751.6Stv#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
34761.6Stvint
34771.6Stvmain ()
34781.6Stv{
34791.6Stv  int i;
34801.6Stv  for (i = 0; i < 256; i++)
34811.6Stv    if (XOR (islower (i), ISLOWER (i))
34821.84Schristos	|| toupper (i) != TOUPPER (i))
34831.84Schristos      return 2;
34841.84Schristos  return 0;
34851.6Stv}
34861.6Stv_ACEOF
34871.84Schristosif ac_fn_c_try_run "$LINENO"; then :
34881.84Schristos
34891.6Stvelse
34901.84Schristos  ac_cv_header_stdc=no
34911.6Stvfi
34921.84Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34931.84Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
34941.6Stvfi
34951.84Schristos
34961.6Stvfi
34971.6Stvfi
34981.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
34991.84Schristos$as_echo "$ac_cv_header_stdc" >&6; }
35001.6Stvif test $ac_cv_header_stdc = yes; then
35011.6Stv
35021.84Schristos$as_echo "#define STDC_HEADERS 1" >>confdefs.h
35031.6Stv
35041.6Stvfi
35051.6Stv
35061.84Schristos# On IRIX 5.3, sys/types and inttypes.h are conflicting.
35071.84Schristosfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
35081.84Schristos		  inttypes.h stdint.h unistd.h
35091.84Schristosdo :
35101.84Schristos  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35111.84Schristosac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
35121.84Schristos"
35131.84Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35141.84Schristos  cat >>confdefs.h <<_ACEOF
35151.84Schristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35161.61Schristos_ACEOF
35171.84Schristos
35181.74Schristosfi
35191.74Schristos
35201.84Schristosdone
35211.84Schristos
35221.84Schristos
35231.84Schristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
35241.84Schristos$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
35251.84Schristosif ${ac_cv_c_bigendian+:} false; then :
35261.84Schristos  $as_echo_n "(cached) " >&6
35271.52Sdbjelse
35281.84Schristos  ac_cv_c_bigendian=unknown
35291.84Schristos    # See if we're dealing with a universal compiler.
35301.84Schristos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35311.84Schristos/* end confdefs.h.  */
35321.84Schristos#ifndef __APPLE_CC__
35331.84Schristos	       not a universal capable compiler
35341.84Schristos	     #endif
35351.84Schristos	     typedef int dummy;
35361.84Schristos
35371.84Schristos_ACEOF
35381.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
35391.84Schristos
35401.84Schristos	# Check for potential -arch flags.  It is not universal unless
35411.84Schristos	# there are at least two -arch flags with different values.
35421.84Schristos	ac_arch=
35431.84Schristos	ac_prev=
35441.84Schristos	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
35451.84Schristos	 if test -n "$ac_prev"; then
35461.84Schristos	   case $ac_word in
35471.84Schristos	     i?86 | x86_64 | ppc | ppc64)
35481.84Schristos	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
35491.84Schristos		 ac_arch=$ac_word
35501.84Schristos	       else
35511.84Schristos		 ac_cv_c_bigendian=universal
35521.84Schristos		 break
35531.84Schristos	       fi
35541.84Schristos	       ;;
35551.84Schristos	   esac
35561.84Schristos	   ac_prev=
35571.84Schristos	 elif test "x$ac_word" = "x-arch"; then
35581.84Schristos	   ac_prev=arch
35591.84Schristos	 fi
35601.84Schristos       done
35611.84Schristosfi
35621.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35631.84Schristos    if test $ac_cv_c_bigendian = unknown; then
35641.84Schristos      # See if sys/param.h defines the BYTE_ORDER macro.
35651.84Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35661.84Schristos/* end confdefs.h.  */
35671.76Spooka#include <sys/types.h>
35681.84Schristos	     #include <sys/param.h>
35691.76Spooka
35701.76Spookaint
35711.76Spookamain ()
35721.76Spooka{
35731.84Schristos#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
35741.84Schristos		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
35751.84Schristos		     && LITTLE_ENDIAN)
35761.84Schristos	      bogus endian macros
35771.84Schristos	     #endif
35781.76Spooka
35791.76Spooka  ;
35801.76Spooka  return 0;
35811.76Spooka}
35821.76Spooka_ACEOF
35831.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
35841.84Schristos  # It does; now see whether it defined to BIG_ENDIAN or not.
35851.84Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35861.84Schristos/* end confdefs.h.  */
35871.84Schristos#include <sys/types.h>
35881.84Schristos		#include <sys/param.h>
35891.76Spooka
35901.76Spookaint
35911.76Spookamain ()
35921.76Spooka{
35931.84Schristos#if BYTE_ORDER != BIG_ENDIAN
35941.84Schristos		 not big endian
35951.84Schristos		#endif
35961.76Spooka
35971.76Spooka  ;
35981.76Spooka  return 0;
35991.76Spooka}
36001.76Spooka_ACEOF
36011.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
36021.84Schristos  ac_cv_c_bigendian=yes
36031.76Spookaelse
36041.84Schristos  ac_cv_c_bigendian=no
36051.76Spookafi
36061.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36071.76Spookafi
36081.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36091.84Schristos    fi
36101.84Schristos    if test $ac_cv_c_bigendian = unknown; then
36111.84Schristos      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
36121.84Schristos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36131.84Schristos/* end confdefs.h.  */
36141.84Schristos#include <limits.h>
36151.76Spooka
36161.76Spookaint
36171.76Spookamain ()
36181.76Spooka{
36191.84Schristos#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
36201.84Schristos	      bogus endian macros
36211.84Schristos	     #endif
36221.76Spooka
36231.76Spooka  ;
36241.76Spooka  return 0;
36251.76Spooka}
36261.76Spooka_ACEOF
36271.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
36281.84Schristos  # It does; now see whether it defined to _BIG_ENDIAN or not.
36291.84Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36301.84Schristos/* end confdefs.h.  */
36311.84Schristos#include <limits.h>
36321.76Spooka
36331.76Spookaint
36341.76Spookamain ()
36351.76Spooka{
36361.84Schristos#ifndef _BIG_ENDIAN
36371.84Schristos		 not big endian
36381.84Schristos		#endif
36391.84Schristos
36401.76Spooka  ;
36411.76Spooka  return 0;
36421.76Spooka}
36431.76Spooka_ACEOF
36441.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
36451.84Schristos  ac_cv_c_bigendian=yes
36461.76Spookaelse
36471.84Schristos  ac_cv_c_bigendian=no
36481.76Spookafi
36491.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36501.76Spookafi
36511.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36521.84Schristos    fi
36531.84Schristos    if test $ac_cv_c_bigendian = unknown; then
36541.84Schristos      # Compile a test program.
36551.84Schristos      if test "$cross_compiling" = yes; then :
36561.84Schristos  # Try to guess by grepping values from an object file.
36571.84Schristos	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36581.84Schristos/* end confdefs.h.  */
36591.84Schristosshort int ascii_mm[] =
36601.84Schristos		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
36611.84Schristos		short int ascii_ii[] =
36621.84Schristos		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
36631.84Schristos		int use_ascii (int i) {
36641.84Schristos		  return ascii_mm[i] + ascii_ii[i];
36651.84Schristos		}
36661.84Schristos		short int ebcdic_ii[] =
36671.84Schristos		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
36681.84Schristos		short int ebcdic_mm[] =
36691.84Schristos		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
36701.84Schristos		int use_ebcdic (int i) {
36711.84Schristos		  return ebcdic_mm[i] + ebcdic_ii[i];
36721.84Schristos		}
36731.84Schristos		extern int foo;
36741.76Spooka
36751.76Spookaint
36761.76Spookamain ()
36771.76Spooka{
36781.84Schristosreturn use_ascii (foo) == use_ebcdic (foo);
36791.76Spooka  ;
36801.76Spooka  return 0;
36811.76Spooka}
36821.76Spooka_ACEOF
36831.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
36841.84Schristos  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
36851.84Schristos	      ac_cv_c_bigendian=yes
36861.84Schristos	    fi
36871.84Schristos	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
36881.84Schristos	      if test "$ac_cv_c_bigendian" = unknown; then
36891.84Schristos		ac_cv_c_bigendian=no
36901.84Schristos	      else
36911.84Schristos		# finding both strings is unlikely to happen, but who knows?
36921.84Schristos		ac_cv_c_bigendian=unknown
36931.84Schristos	      fi
36941.84Schristos	    fi
36951.76Spookafi
36961.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36971.76Spookaelse
36981.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36991.84Schristos/* end confdefs.h.  */
37001.84Schristos$ac_includes_default
37011.76Spookaint
37021.76Spookamain ()
37031.76Spooka{
37041.84Schristos
37051.84Schristos	     /* Are we little or big endian?  From Harbison&Steele.  */
37061.84Schristos	     union
37071.84Schristos	     {
37081.84Schristos	       long int l;
37091.84Schristos	       char c[sizeof (long int)];
37101.84Schristos	     } u;
37111.84Schristos	     u.l = 1;
37121.84Schristos	     return u.c[sizeof (long int) - 1] == 1;
37131.76Spooka
37141.76Spooka  ;
37151.76Spooka  return 0;
37161.76Spooka}
37171.76Spooka_ACEOF
37181.84Schristosif ac_fn_c_try_run "$LINENO"; then :
37191.84Schristos  ac_cv_c_bigendian=no
37201.76Spookaelse
37211.84Schristos  ac_cv_c_bigendian=yes
37221.76Spookafi
37231.84Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37241.84Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
37251.76Spookafi
37261.76Spooka
37271.84Schristos    fi
37281.76Spookafi
37291.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
37301.84Schristos$as_echo "$ac_cv_c_bigendian" >&6; }
37311.84Schristos case $ac_cv_c_bigendian in #(
37321.84Schristos   yes)
37331.84Schristos     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
37341.84Schristos;; #(
37351.84Schristos   no)
37361.84Schristos      ;; #(
37371.84Schristos   universal)
37381.84Schristos
37391.84Schristos$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
37401.84Schristos
37411.84Schristos     ;; #(
37421.84Schristos   *)
37431.84Schristos     as_fn_error $? "unknown endianness
37441.84Schristos presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
37451.84Schristos esac
37461.84Schristos
37471.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
37481.84Schristos$as_echo_n "checking for ANSI C header files... " >&6; }
37491.84Schristosif ${ac_cv_header_stdc+:} false; then :
37501.84Schristos  $as_echo_n "(cached) " >&6
37511.76Spookaelse
37521.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37531.84Schristos/* end confdefs.h.  */
37541.84Schristos#include <stdlib.h>
37551.84Schristos#include <stdarg.h>
37561.84Schristos#include <string.h>
37571.84Schristos#include <float.h>
37581.76Spooka
37591.76Spookaint
37601.76Spookamain ()
37611.76Spooka{
37621.84Schristos
37631.84Schristos  ;
37641.84Schristos  return 0;
37651.76Spooka}
37661.76Spooka_ACEOF
37671.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
37681.84Schristos  ac_cv_header_stdc=yes
37691.76Spookaelse
37701.84Schristos  ac_cv_header_stdc=no
37711.76Spookafi
37721.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37731.76Spooka
37741.84Schristosif test $ac_cv_header_stdc = yes; then
37751.84Schristos  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
37761.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37771.84Schristos/* end confdefs.h.  */
37781.84Schristos#include <string.h>
37791.76Spooka
37801.84Schristos_ACEOF
37811.84Schristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37821.84Schristos  $EGREP "memchr" >/dev/null 2>&1; then :
37831.76Spooka
37841.76Spookaelse
37851.84Schristos  ac_cv_header_stdc=no
37861.76Spookafi
37871.84Schristosrm -f conftest*
37881.76Spooka
37891.76Spookafi
37901.76Spooka
37911.84Schristosif test $ac_cv_header_stdc = yes; then
37921.84Schristos  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
37931.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37941.84Schristos/* end confdefs.h.  */
37951.84Schristos#include <stdlib.h>
37961.76Spooka
37971.84Schristos_ACEOF
37981.84Schristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37991.84Schristos  $EGREP "free" >/dev/null 2>&1; then :
38001.76Spooka
38011.76Spookaelse
38021.84Schristos  ac_cv_header_stdc=no
38031.76Spookafi
38041.84Schristosrm -f conftest*
38051.84Schristos
38061.76Spookafi
38071.76Spooka
38081.84Schristosif test $ac_cv_header_stdc = yes; then
38091.84Schristos  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
38101.84Schristos  if test "$cross_compiling" = yes; then :
38111.84Schristos  :
38121.76Spookaelse
38131.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38141.84Schristos/* end confdefs.h.  */
38151.84Schristos#include <ctype.h>
38161.84Schristos#include <stdlib.h>
38171.84Schristos#if ((' ' & 0x0FF) == 0x020)
38181.84Schristos# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
38191.84Schristos# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
38201.84Schristos#else
38211.84Schristos# define ISLOWER(c) \
38221.84Schristos		   (('a' <= (c) && (c) <= 'i') \
38231.84Schristos		     || ('j' <= (c) && (c) <= 'r') \
38241.84Schristos		     || ('s' <= (c) && (c) <= 'z'))
38251.84Schristos# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
38261.84Schristos#endif
38271.76Spooka
38281.84Schristos#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
38291.76Spookaint
38301.76Spookamain ()
38311.76Spooka{
38321.84Schristos  int i;
38331.84Schristos  for (i = 0; i < 256; i++)
38341.84Schristos    if (XOR (islower (i), ISLOWER (i))
38351.84Schristos	|| toupper (i) != TOUPPER (i))
38361.84Schristos      return 2;
38371.76Spooka  return 0;
38381.76Spooka}
38391.76Spooka_ACEOF
38401.84Schristosif ac_fn_c_try_run "$LINENO"; then :
38411.84Schristos
38421.76Spookaelse
38431.84Schristos  ac_cv_header_stdc=no
38441.76Spookafi
38451.84Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38461.84Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
38471.76Spookafi
38481.76Spooka
38491.84Schristosfi
38501.84Schristosfi
38511.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
38521.84Schristos$as_echo "$ac_cv_header_stdc" >&6; }
38531.84Schristosif test $ac_cv_header_stdc = yes; then
38541.76Spooka
38551.84Schristos$as_echo "#define STDC_HEADERS 1" >>confdefs.h
38561.76Spooka
38571.76Spookafi
38581.76Spooka
38591.76Spooka
38601.84Schristos# Confirm existence of zlib.  (This is available as a default install
38611.84Schristos# option on many OS's; this could be added as a reachover build in the
38621.84Schristos# future.)
38631.84Schristosac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
38641.84Schristosif test "x$ac_cv_header_zlib_h" = xyes; then :
38651.76Spooka
38661.76Spookaelse
38671.84Schristos  as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5
38681.76Spookafi
38691.76Spooka
38701.76Spooka
38711.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
38721.84Schristos$as_echo_n "checking for gzdopen in -lz... " >&6; }
38731.84Schristosif ${ac_cv_lib_z_gzdopen+:} false; then :
38741.84Schristos  $as_echo_n "(cached) " >&6
38751.76Spookaelse
38761.84Schristos  ac_check_lib_save_LIBS=$LIBS
38771.84SchristosLIBS="-lz  $LIBS"
38781.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
38791.84Schristos/* end confdefs.h.  */
38801.76Spooka
38811.84Schristos/* Override any GCC internal prototype to avoid an error.
38821.84Schristos   Use char because int might match the return type of a GCC
38831.84Schristos   builtin and then its argument prototype would still apply.  */
38841.84Schristos#ifdef __cplusplus
38851.84Schristosextern "C"
38861.84Schristos#endif
38871.84Schristoschar gzdopen ();
38881.76Spookaint
38891.76Spookamain ()
38901.76Spooka{
38911.84Schristosreturn gzdopen ();
38921.76Spooka  ;
38931.76Spooka  return 0;
38941.76Spooka}
38951.76Spooka_ACEOF
38961.84Schristosif ac_fn_c_try_link "$LINENO"; then :
38971.84Schristos  ac_cv_lib_z_gzdopen=yes
38981.76Spookaelse
38991.84Schristos  ac_cv_lib_z_gzdopen=no
39001.76Spookafi
39011.84Schristosrm -f core conftest.err conftest.$ac_objext \
39021.84Schristos    conftest$ac_exeext conftest.$ac_ext
39031.84SchristosLIBS=$ac_check_lib_save_LIBS
39041.76Spookafi
39051.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
39061.84Schristos$as_echo "$ac_cv_lib_z_gzdopen" >&6; }
39071.84Schristosif test "x$ac_cv_lib_z_gzdopen" = xyes; then :
39081.84Schristos  cat >>confdefs.h <<_ACEOF
39091.84Schristos#define HAVE_LIBZ 1
39101.84Schristos_ACEOF
39111.76Spooka
39121.84Schristos  LIBS="-lz $LIBS"
39131.76Spooka
39141.76Spookaelse
39151.84Schristos  as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5
39161.76Spookafi
39171.76Spooka
39181.76Spooka
39191.84Schristos# Make sure certain required headers are available.
39201.84Schristos# These are not necessarily required by the code, but they are not
39211.84Schristos# currently conditionalized.
39221.84Schristosfor ac_header in sys/ioctl.h sys/mman.h sys/param.h \
39231.84Schristos	sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
39241.84Schristos	sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
39251.84Schristos	netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
39261.84Schristos	termios.h unistd.h
39271.84Schristosdo :
39281.84Schristos  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39291.84Schristosac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39301.84Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39311.84Schristos  cat >>confdefs.h <<_ACEOF
39321.84Schristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39331.84Schristos_ACEOF
39341.76Spooka
39351.76Spookaelse
39361.84Schristos  as_fn_error $? "standard system header file not found" "$LINENO" 5
39371.76Spookafi
39381.76Spooka
39391.84Schristosdone
39401.76Spooka
39411.76Spooka
39421.84Schristos# Find headers that may not be available.
39431.84Schristosac_header_dirent=no
39441.84Schristosfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
39451.84Schristos  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
39461.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
39471.84Schristos$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
39481.84Schristosif eval \${$as_ac_Header+:} false; then :
39491.84Schristos  $as_echo_n "(cached) " >&6
39501.76Spookaelse
39511.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39521.84Schristos/* end confdefs.h.  */
39531.84Schristos#include <sys/types.h>
39541.84Schristos#include <$ac_hdr>
39551.76Spooka
39561.76Spookaint
39571.76Spookamain ()
39581.76Spooka{
39591.84Schristosif ((DIR *) 0)
39601.84Schristosreturn 0;
39611.76Spooka  ;
39621.76Spooka  return 0;
39631.76Spooka}
39641.76Spooka_ACEOF
39651.84Schristosif ac_fn_c_try_compile "$LINENO"; then :
39661.84Schristos  eval "$as_ac_Header=yes"
39671.76Spookaelse
39681.84Schristos  eval "$as_ac_Header=no"
39691.76Spookafi
39701.84Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39711.76Spookafi
39721.84Schristoseval ac_res=\$$as_ac_Header
39731.84Schristos	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39741.84Schristos$as_echo "$ac_res" >&6; }
39751.84Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39761.84Schristos  cat >>confdefs.h <<_ACEOF
39771.84Schristos#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
39781.84Schristos_ACEOF
39791.74Schristos
39801.84Schristosac_header_dirent=$ac_hdr; break
39811.76Spookafi
39821.66Stsutsui
39831.84Schristosdone
39841.84Schristos# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
39851.84Schristosif test $ac_header_dirent = dirent.h; then
39861.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
39871.84Schristos$as_echo_n "checking for library containing opendir... " >&6; }
39881.84Schristosif ${ac_cv_search_opendir+:} false; then :
39891.84Schristos  $as_echo_n "(cached) " >&6
39901.66Stsutsuielse
39911.84Schristos  ac_func_search_save_LIBS=$LIBS
39921.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
39931.84Schristos/* end confdefs.h.  */
39941.76Spooka
39951.84Schristos/* Override any GCC internal prototype to avoid an error.
39961.84Schristos   Use char because int might match the return type of a GCC
39971.84Schristos   builtin and then its argument prototype would still apply.  */
39981.84Schristos#ifdef __cplusplus
39991.84Schristosextern "C"
40001.84Schristos#endif
40011.84Schristoschar opendir ();
40021.76Spookaint
40031.76Spookamain ()
40041.76Spooka{
40051.84Schristosreturn opendir ();
40061.76Spooka  ;
40071.76Spooka  return 0;
40081.76Spooka}
40091.6Stv_ACEOF
40101.84Schristosfor ac_lib in '' dir; do
40111.84Schristos  if test -z "$ac_lib"; then
40121.84Schristos    ac_res="none required"
40131.84Schristos  else
40141.84Schristos    ac_res=-l$ac_lib
40151.84Schristos    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40161.84Schristos  fi
40171.84Schristos  if ac_fn_c_try_link "$LINENO"; then :
40181.84Schristos  ac_cv_search_opendir=$ac_res
40191.84Schristosfi
40201.84Schristosrm -f core conftest.err conftest.$ac_objext \
40211.84Schristos    conftest$ac_exeext
40221.84Schristos  if ${ac_cv_search_opendir+:} false; then :
40231.84Schristos  break
40241.84Schristosfi
40251.84Schristosdone
40261.84Schristosif ${ac_cv_search_opendir+:} false; then :
40271.84Schristos
40281.76Spookaelse
40291.84Schristos  ac_cv_search_opendir=no
40301.76Spookafi
40311.84Schristosrm conftest.$ac_ext
40321.84SchristosLIBS=$ac_func_search_save_LIBS
40331.6Stvfi
40341.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
40351.84Schristos$as_echo "$ac_cv_search_opendir" >&6; }
40361.84Schristosac_res=$ac_cv_search_opendir
40371.84Schristosif test "$ac_res" != no; then :
40381.84Schristos  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40391.6Stv
40401.84Schristosfi
40411.38Sfredb
40421.76Spookaelse
40431.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
40441.84Schristos$as_echo_n "checking for library containing opendir... " >&6; }
40451.84Schristosif ${ac_cv_search_opendir+:} false; then :
40461.84Schristos  $as_echo_n "(cached) " >&6
40471.80Sapbelse
40481.84Schristos  ac_func_search_save_LIBS=$LIBS
40491.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
40501.84Schristos/* end confdefs.h.  */
40511.80Sapb
40521.84Schristos/* Override any GCC internal prototype to avoid an error.
40531.84Schristos   Use char because int might match the return type of a GCC
40541.84Schristos   builtin and then its argument prototype would still apply.  */
40551.84Schristos#ifdef __cplusplus
40561.84Schristosextern "C"
40571.84Schristos#endif
40581.84Schristoschar opendir ();
40591.80Sapbint
40601.80Sapbmain ()
40611.80Sapb{
40621.84Schristosreturn opendir ();
40631.80Sapb  ;
40641.80Sapb  return 0;
40651.80Sapb}
40661.80Sapb_ACEOF
40671.84Schristosfor ac_lib in '' x; do
40681.84Schristos  if test -z "$ac_lib"; then
40691.84Schristos    ac_res="none required"
40701.84Schristos  else
40711.84Schristos    ac_res=-l$ac_lib
40721.84Schristos    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40731.84Schristos  fi
40741.84Schristos  if ac_fn_c_try_link "$LINENO"; then :
40751.84Schristos  ac_cv_search_opendir=$ac_res
40761.84Schristosfi
40771.84Schristosrm -f core conftest.err conftest.$ac_objext \
40781.84Schristos    conftest$ac_exeext
40791.84Schristos  if ${ac_cv_search_opendir+:} false; then :
40801.84Schristos  break
40811.84Schristosfi
40821.84Schristosdone
40831.84Schristosif ${ac_cv_search_opendir+:} false; then :
40841.84Schristos
40851.80Sapbelse
40861.84Schristos  ac_cv_search_opendir=no
40871.80Sapbfi
40881.84Schristosrm conftest.$ac_ext
40891.84SchristosLIBS=$ac_func_search_save_LIBS
40901.84Schristosfi
40911.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
40921.84Schristos$as_echo "$ac_cv_search_opendir" >&6; }
40931.84Schristosac_res=$ac_cv_search_opendir
40941.84Schristosif test "$ac_res" != no; then :
40951.84Schristos  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40961.84Schristos
40971.80Sapbfi
40981.80Sapb
40991.84Schristosfi
41001.80Sapb
41011.87Schristosfor ac_header in sys/mtio.h sys/sysmacros.h sys/syslimits.h stdio_ext.h \
41021.96Shannken	getopt.h features.h malloc.h sys/poll.h pthread.h stddef.h sys/uio.h
41031.84Schristosdo :
41041.84Schristos  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41051.84Schristosac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
41061.84Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41071.84Schristos  cat >>confdefs.h <<_ACEOF
41081.84Schristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41091.84Schristos_ACEOF
41101.80Sapb
41111.80Sapbfi
41121.45Sjmc
41131.84Schristosdone
41141.84Schristos
41151.84Schristosfor ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
41161.84Schristos	sys/endian.h sys/featuretest.h err.h inttypes.h libgen.h paths.h \
41171.86Schristos	libgen.h stdint.h util.h resolv.h arpa/nameser.h
41181.84Schristosdo :
41191.84Schristos  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41201.84Schristosac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
41211.84Schristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41221.84Schristos  cat >>confdefs.h <<_ACEOF
41231.84Schristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41241.84Schristos_ACEOF
41251.84Schristos
41261.76Spookaelse
41271.84Schristos  test -f include/$ac_header || touch include/$ac_header
41281.84Schristosfi
41291.7Stv
41301.84Schristosdone
41311.7Stv
41321.96Shannkenfor ac_header in rpc/types.h
41331.84Schristosdo :
41341.96Shannken  ac_fn_c_check_header_mongrel "$LINENO" "rpc/types.h" "ac_cv_header_rpc_types_h" "$ac_includes_default"
41351.96Shannkenif test "x$ac_cv_header_rpc_types_h" = xyes; then :
41361.96Shannken  cat >>confdefs.h <<_ACEOF
41371.96Shannken#define HAVE_RPC_TYPES_H 1
41381.96Shannken_ACEOF
41391.96Shannken
41401.96Shannkenelse
41411.96Shannken  echo '#include "nbtool_config.h"' >include/$ac_header.new
41421.96Shannken	echo '#include "'$srcdir/../../common/include/$ac_header'"' \
41431.96Shannken		>>include/$ac_header.new
41441.96Shannken	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
41451.96Shannken		rm -f include/$ac_header.new
41461.96Shannken	else
41471.96Shannken		mv -f include/$ac_header.new include/$ac_header
41481.96Shannken	fi
41491.96Shannkenfi
41501.96Shannken
41511.96Shannkendone
41521.96Shannken
41531.96Shannkenfor ac_header in netconfig.h
41541.96Shannkendo :
41551.96Shannken  ac_fn_c_check_header_mongrel "$LINENO" "netconfig.h" "ac_cv_header_netconfig_h" "$ac_includes_default"
41561.96Shannkenif test "x$ac_cv_header_netconfig_h" = xyes; then :
41571.84Schristos  cat >>confdefs.h <<_ACEOF
41581.96Shannken#define HAVE_NETCONFIG_H 1
41591.76Spooka_ACEOF
41601.84Schristos
41611.76Spookaelse
41621.84Schristos  echo '#include "nbtool_config.h"' >include/$ac_header.new
41631.84Schristos	echo '#include "'$srcdir/../../include/$ac_header'"' \
41641.84Schristos		>>include/$ac_header.new
41651.84Schristos	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
41661.84Schristos		rm -f include/$ac_header.new
41671.84Schristos	else
41681.84Schristos		mv -f include/$ac_header.new include/$ac_header
41691.84Schristos	fi
41701.76Spookafi
41711.35Sthorpej
41721.84Schristosdone
41731.84Schristos
41741.84Schristos
41751.84Schristos# Typedefs.
41761.84Schristosac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
41771.84Schristosif test "x$ac_cv_type_size_t" = xyes; then :
41781.9Stv
41791.76Spookaelse
41801.84Schristos
41811.84Schristoscat >>confdefs.h <<_ACEOF
41821.84Schristos#define size_t unsigned int
41831.84Schristos_ACEOF
41841.9Stv
41851.63Sapbfi
41861.65Schristos
41871.84Schristosac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
41881.84Schristosif test "x$ac_cv_type_id_t" = xyes; then :
41891.84Schristos
41901.84Schristoscat >>confdefs.h <<_ACEOF
41911.84Schristos#define HAVE_ID_T 1
41921.84Schristos_ACEOF
41931.76Spooka
41941.63Sapb
41951.84Schristosfi
41961.84Schristosac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
41971.84Schristosif test "x$ac_cv_type_long_long" = xyes; then :
41981.63Sapb
41991.84Schristoscat >>confdefs.h <<_ACEOF
42001.84Schristos#define HAVE_LONG_LONG 1
42011.76Spooka_ACEOF
42021.84Schristos
42031.84Schristos
42041.63Sapbfi
42051.84Schristosac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
42061.84Schristosif test "x$ac_cv_type_u_long" = xyes; then :
42071.84Schristos
42081.84Schristoscat >>confdefs.h <<_ACEOF
42091.84Schristos#define HAVE_U_LONG 1
42101.84Schristos_ACEOF
42111.84Schristos
42121.84Schristos
42131.76Spookafi
42141.84Schristosac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
42151.84Schristosif test "x$ac_cv_type_u_char" = xyes; then :
42161.74Schristos
42171.84Schristoscat >>confdefs.h <<_ACEOF
42181.84Schristos#define HAVE_U_CHAR 1
42191.84Schristos_ACEOF
42201.65Schristos
42211.65Schristos
42221.74Schristosfi
42231.84Schristosac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default"
42241.84Schristosif test "x$ac_cv_type_u_short" = xyes; then :
42251.84Schristos
42261.84Schristoscat >>confdefs.h <<_ACEOF
42271.84Schristos#define HAVE_U_SHORT 1
42281.84Schristos_ACEOF
42291.63Sapb
42301.74Schristos
42311.84Schristosfi
42321.84Schristosac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
42331.84Schristosif test "x$ac_cv_type_u_int" = xyes; then :
42341.74Schristos
42351.84Schristoscat >>confdefs.h <<_ACEOF
42361.84Schristos#define HAVE_U_INT 1
42371.76Spooka_ACEOF
42381.84Schristos
42391.84Schristos
42401.76Spookafi
42411.84Schristosac_fn_c_check_type "$LINENO" "u_quad_t" "ac_cv_type_u_quad_t" "$ac_includes_default"
42421.84Schristosif test "x$ac_cv_type_u_quad_t" = xyes; then :
42431.65Schristos
42441.84Schristoscat >>confdefs.h <<_ACEOF
42451.84Schristos#define HAVE_U_QUAD_T 1
42461.84Schristos_ACEOF
42471.53Sdogcow
42481.40Satatat
42491.40Satatatfi
42501.63Sapb
42511.95Skamilac_fn_c_check_type "$LINENO" "uchar_t" "ac_cv_type_uchar_t" "$ac_includes_default"
42521.95Skamilif test "x$ac_cv_type_uchar_t" = xyes; then :
42531.95Skamil
42541.95Skamilcat >>confdefs.h <<_ACEOF
42551.95Skamil#define HAVE_UCHAR_T 1
42561.95Skamil_ACEOF
42571.95Skamil
42581.95Skamil
42591.95Skamilfi
42601.95Skamilac_fn_c_check_type "$LINENO" "ushort_t" "ac_cv_type_ushort_t" "$ac_includes_default"
42611.95Skamilif test "x$ac_cv_type_ushort_t" = xyes; then :
42621.95Skamil
42631.95Skamilcat >>confdefs.h <<_ACEOF
42641.95Skamil#define HAVE_USHORT_T 1
42651.95Skamil_ACEOF
42661.95Skamil
42671.95Skamil
42681.95Skamilfi
42691.95Skamilac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
42701.95Skamilif test "x$ac_cv_type_uint_t" = xyes; then :
42711.95Skamil
42721.95Skamilcat >>confdefs.h <<_ACEOF
42731.95Skamil#define HAVE_UINT_T 1
42741.95Skamil_ACEOF
42751.95Skamil
42761.95Skamil
42771.95Skamilfi
42781.95Skamilac_fn_c_check_type "$LINENO" "ulong_t" "ac_cv_type_ulong_t" "$ac_includes_default"
42791.95Skamilif test "x$ac_cv_type_ulong_t" = xyes; then :
42801.95Skamil
42811.95Skamilcat >>confdefs.h <<_ACEOF
42821.95Skamil#define HAVE_ULONG_T 1
42831.95Skamil_ACEOF
42841.95Skamil
42851.95Skamil
42861.95Skamilfi
42871.95Skamil
42881.84Schristosac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
42891.84Schristos#ifdef HAVE_RPC_TYPES_H
42901.84Schristos#include <rpc/types.h>
42911.84Schristos#endif
42921.84Schristos#include <sys/socket.h>
42931.84Schristos"
42941.84Schristosif test "x$ac_cv_type_socklen_t" = xyes; then :
42951.65Schristos
42961.84Schristos$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
42971.65Schristos
42981.63Sapbfi
42991.65Schristos
43001.65Schristos
43011.94Skamil{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for enum uio_rw" >&5
43021.94Skamil$as_echo_n "checking for enum uio_rw... " >&6; }
43031.94Skamilcat confdefs.h - <<_ACEOF >conftest.$ac_ext
43041.94Skamil/* end confdefs.h.  */
43051.94Skamil
43061.94Skamil#include <sys/types.h>
43071.94Skamil#ifdef HAVE_SYS_UIO_H
43081.94Skamil#include <sys/uio.h>
43091.94Skamil#endif
43101.94Skamilint
43111.94Skamilmain ()
43121.94Skamil{
43131.94Skamilenum uio_rw rw;
43141.94Skamil  ;
43151.94Skamil  return 0;
43161.94Skamil}
43171.94Skamil_ACEOF
43181.94Skamilif ac_fn_c_try_compile "$LINENO"; then :
43191.98Suwe  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43201.98Suwe$as_echo "yes" >&6; }
43211.94Skamil
43221.94Skamil$as_echo "#define HAVE_ENUM_UIO_RW 1" >>confdefs.h
43231.94Skamil
43241.98Suweelse
43251.98Suwe  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43261.98Suwe$as_echo "no" >&6; }
43271.94Skamilfi
43281.94Skamilrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43291.94Skamil
43301.94Skamil{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for enum uio_seg" >&5
43311.94Skamil$as_echo_n "checking for enum uio_seg... " >&6; }
43321.94Skamilcat confdefs.h - <<_ACEOF >conftest.$ac_ext
43331.94Skamil/* end confdefs.h.  */
43341.94Skamil
43351.94Skamil#include <sys/types.h>
43361.94Skamil#ifdef HAVE_SYS_UIO_H
43371.94Skamil#include <sys/uio.h>
43381.94Skamil#endif
43391.94Skamilint
43401.94Skamilmain ()
43411.94Skamil{
43421.94Skamilenum uio_seg seg;
43431.94Skamil  ;
43441.94Skamil  return 0;
43451.94Skamil}
43461.94Skamil_ACEOF
43471.94Skamilif ac_fn_c_try_compile "$LINENO"; then :
43481.98Suwe  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43491.98Suwe$as_echo "yes" >&6; }
43501.94Skamil
43511.94Skamil$as_echo "#define HAVE_ENUM_UIO_SEG 1" >>confdefs.h
43521.94Skamil
43531.98Suweelse
43541.98Suwe  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43551.98Suwe$as_echo "no" >&6; }
43561.94Skamilfi
43571.94Skamilrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43581.94Skamil
43591.60Sapb
43601.84Schristos	ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
43611.84Schristosif test "x$ac_cv_type_uint8_t" = xyes; then :
43621.84Schristos
43631.81Schristoselse
43641.81Schristos
43651.84Schristos		ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
43661.84Schristosif test "x$ac_cv_type_u_int8_t" = xyes; then :
43671.81Schristos
43681.84Schristos$as_echo "#define uint8_t u_int8_t" >>confdefs.h
43691.81Schristos
43701.81Schristoselse
43711.84Schristos  as_fn_error $? "cannot find a suitable type for uint8_t" "$LINENO" 5
43721.81Schristosfi
43731.84Schristos
43741.84Schristos
43751.81Schristosfi
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.81Schristoselse
43811.81Schristos
43821.84Schristos		ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
43831.84Schristosif test "x$ac_cv_type_uint8_t" = xyes; then :
43841.81Schristos
43851.84Schristos$as_echo "#define u_int8_t uint8_t" >>confdefs.h
43861.81Schristos
43871.81Schristoselse
43881.84Schristos  as_fn_error $? "cannot find a suitable type for u_int8_t" "$LINENO" 5
43891.81Schristosfi
43901.84Schristos
43911.84Schristos
43921.81Schristosfi
43931.81Schristos
43941.81Schristos
43951.84Schristos	ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
43961.84Schristosif test "x$ac_cv_type_uint16_t" = xyes; then :
43971.84Schristos
43981.81Schristoselse
43991.81Schristos
44001.84Schristos		ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
44011.84Schristosif test "x$ac_cv_type_u_int16_t" = xyes; then :
44021.81Schristos
44031.84Schristos$as_echo "#define uint16_t u_int16_t" >>confdefs.h
44041.81Schristos
44051.81Schristoselse
44061.84Schristos  as_fn_error $? "cannot find a suitable type for uint16_t" "$LINENO" 5
44071.81Schristosfi
44081.84Schristos
44091.84Schristos
44101.81Schristosfi
44111.81Schristos
44121.84Schristos	ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
44131.84Schristosif test "x$ac_cv_type_u_int16_t" = xyes; then :
44141.81Schristos
44151.81Schristoselse
44161.81Schristos
44171.84Schristos		ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
44181.84Schristosif test "x$ac_cv_type_uint16_t" = xyes; then :
44191.81Schristos
44201.84Schristos$as_echo "#define u_int16_t uint16_t" >>confdefs.h
44211.81Schristos
44221.81Schristoselse
44231.84Schristos  as_fn_error $? "cannot find a suitable type for u_int16_t" "$LINENO" 5
44241.81Schristosfi
44251.84Schristos
44261.84Schristos
44271.81Schristosfi
44281.81Schristos
44291.81Schristos
44301.84Schristos	ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
44311.84Schristosif test "x$ac_cv_type_uint32_t" = xyes; then :
44321.81Schristos
44331.63Sapbelse
44341.53Sdogcow
44351.84Schristos		ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
44361.84Schristosif test "x$ac_cv_type_u_int32_t" = xyes; then :
44371.84Schristos
44381.84Schristos$as_echo "#define uint32_t u_int32_t" >>confdefs.h
44391.65Schristos
44401.40Satatatelse
44411.84Schristos  as_fn_error $? "cannot find a suitable type for uint32_t" "$LINENO" 5
44421.40Satatatfi
44431.84Schristos
44441.84Schristos
44451.74Schristosfi
44461.61Schristos
44471.84Schristos	ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
44481.84Schristosif test "x$ac_cv_type_u_int32_t" = xyes; then :
44491.53Sdogcow
44501.7Stvelse
44511.7Stv
44521.84Schristos		ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
44531.84Schristosif test "x$ac_cv_type_uint32_t" = xyes; then :
44541.60Sapb
44551.84Schristos$as_echo "#define u_int32_t uint32_t" >>confdefs.h
44561.63Sapb
44571.7Stvelse
44581.84Schristos  as_fn_error $? "cannot find a suitable type for u_int32_t" "$LINENO" 5
44591.7Stvfi
44601.84Schristos
44611.84Schristos
44621.7Stvfi
44631.7Stv
44641.84Schristos
44651.84Schristos	ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
44661.84Schristosif test "x$ac_cv_type_uint64_t" = xyes; then :
44671.4Stv
44681.76Spookaelse
44691.63Sapb
44701.84Schristos		ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
44711.84Schristosif test "x$ac_cv_type_u_int64_t" = xyes; then :
44721.65Schristos
44731.84Schristos$as_echo "#define uint64_t u_int64_t" >>confdefs.h
44741.63Sapb
44751.53Sdogcowelse
44761.84Schristos  as_fn_error $? "cannot find a suitable type for uint64_t" "$LINENO" 5
44771.53Sdogcowfi
44781.84Schristos
44791.84Schristos
44801.61Schristosfi
44811.65Schristos
44821.84Schristos	ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
44831.84Schristosif test "x$ac_cv_type_u_int64_t" = xyes; then :
44841.65Schristos
44851.65Schristoselse
44861.53Sdogcow
44871.84Schristos		ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
44881.84Schristosif test "x$ac_cv_type_uint64_t" = xyes; then :
44891.65Schristos
44901.84Schristos$as_echo "#define u_int64_t uint64_t" >>confdefs.h
44911.53Sdogcow
44921.7Stvelse
44931.84Schristos  as_fn_error $? "cannot find a suitable type for u_int64_t" "$LINENO" 5
44941.7Stvfi
44951.84Schristos
44961.84Schristos
44971.7Stvfi
44981.65Schristos
44991.7Stv
45001.84Schristos
45011.84Schristos# Struct members.
45021.84Schristosac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" "#include <sys/types.h>
45031.84Schristos#include <dirent.h>
45041.84Schristos"
45051.84Schristosif test "x$ac_cv_member_DIR_dd_fd" = xyes; then :
45061.84Schristos
45071.84Schristoscat >>confdefs.h <<_ACEOF
45081.84Schristos#define HAVE_DIR_DD_FD 1
45091.84Schristos_ACEOF
45101.84Schristos
45111.61Schristos
45121.76Spookafi
45131.84Schristosac_fn_c_check_member "$LINENO" "DIR" "__dd_fd" "ac_cv_member_DIR___dd_fd" "#include <sys/types.h>
45141.84Schristos#include <dirent.h>
45151.84Schristos"
45161.84Schristosif test "x$ac_cv_member_DIR___dd_fd" = xyes; then :
45171.84Schristos
45181.84Schristoscat >>confdefs.h <<_ACEOF
45191.84Schristos#define HAVE_DIR___DD_FD 1
45201.84Schristos_ACEOF
45211.61Schristos
45221.7Stv
45231.7Stvfi
45241.84Schristosac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#include <sys/types.h>
45251.84Schristos#include <dirent.h>
45261.84Schristos"
45271.84Schristosif test "x$ac_cv_member_struct_dirent_d_namlen" = xyes; then :
45281.61Schristos
45291.84Schristoscat >>confdefs.h <<_ACEOF
45301.84Schristos#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
45311.84Schristos_ACEOF
45321.7Stv
45331.7Stv
45341.76Spookafi
45351.4Stv
45361.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "#include <sys/stat.h>
45371.84Schristos"
45381.84Schristosif test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
45391.4Stv
45401.84Schristoscat >>confdefs.h <<_ACEOF
45411.84Schristos#define HAVE_STRUCT_STAT_ST_FLAGS 1
45421.76Spooka_ACEOF
45431.84Schristos
45441.84Schristos
45451.4Stvfi
45461.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "#include <sys/stat.h>
45471.84Schristos"
45481.84Schristosif test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
45491.84Schristos
45501.84Schristoscat >>confdefs.h <<_ACEOF
45511.84Schristos#define HAVE_STRUCT_STAT_ST_GEN 1
45521.84Schristos_ACEOF
45531.84Schristos
45541.84Schristos
45551.4Stvfi
45561.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "#include <sys/stat.h>
45571.84Schristos"
45581.84Schristosif test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
45591.61Schristos
45601.84Schristoscat >>confdefs.h <<_ACEOF
45611.84Schristos#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
45621.84Schristos_ACEOF
45631.74Schristos
45641.74Schristos
45651.76Spookafi
45661.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/stat.h>
45671.84Schristos"
45681.84Schristosif test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
45691.84Schristos
45701.84Schristoscat >>confdefs.h <<_ACEOF
45711.84Schristos#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
45721.84Schristos_ACEOF
45731.84Schristos
45741.4Stv
45751.84Schristosfi
45761.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "#include <sys/stat.h>
45771.84Schristos"
45781.84Schristosif test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
45791.63Sapb
45801.84Schristoscat >>confdefs.h <<_ACEOF
45811.84Schristos#define HAVE_STRUCT_STAT_ST_ATIM 1
45821.76Spooka_ACEOF
45831.84Schristos
45841.84Schristos
45851.19Sbjh21fi
45861.84Schristosac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h>
45871.84Schristos"
45881.84Schristosif test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
45891.84Schristos
45901.84Schristoscat >>confdefs.h <<_ACEOF
45911.84Schristos#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
45921.84Schristos_ACEOF
45931.84Schristos
45941.84Schristos
45951.19Sbjh21fi
45961.63Sapb
45971.84Schristosac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "#include <sys/statvfs.h>
45981.84Schristos"
45991.84Schristosif test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes; then :
46001.84Schristos
46011.84Schristoscat >>confdefs.h <<_ACEOF
46021.84Schristos#define HAVE_STRUCT_STATVFS_F_IOSIZE 1
46031.84Schristos_ACEOF
46041.19Sbjh21
46051.19Sbjh21
46061.76Spookafi
46071.63Sapb
46081.84Schristosac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
46091.84Schristos"
46101.84Schristosif test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
46111.19Sbjh21
46121.84Schristoscat >>confdefs.h <<_ACEOF
46131.84Schristos#define HAVE_STRUCT_TM_TM_GMTOFF 1
46141.76Spooka_ACEOF
46151.84Schristos
46161.84Schristos
46171.19Sbjh21fi
46181.76Spooka
46191.74Schristos
46201.84Schristos# Global variable decls.
46211.86Schristosac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "
46221.86Schristos#include <stdio.h>
46231.86Schristos
46241.86Schristos"
46251.86Schristosif test "x$ac_cv_have_decl_asprintf" = xyes; then :
46261.86Schristos  ac_have_decl=1
46271.86Schristoselse
46281.86Schristos  ac_have_decl=0
46291.86Schristosfi
46301.86Schristos
46311.86Schristoscat >>confdefs.h <<_ACEOF
46321.86Schristos#define HAVE_DECL_ASPRINTF $ac_have_decl
46331.86Schristos_ACEOF
46341.88Ssevanac_fn_c_check_decl "$LINENO" "asnprintf" "ac_cv_have_decl_asnprintf" "
46351.88Ssevan#include <stdio.h>
46361.88Ssevan
46371.88Ssevan"
46381.88Ssevanif test "x$ac_cv_have_decl_asnprintf" = xyes; then :
46391.88Ssevan  ac_have_decl=1
46401.88Ssevanelse
46411.88Ssevan  ac_have_decl=0
46421.88Ssevanfi
46431.88Ssevan
46441.88Ssevancat >>confdefs.h <<_ACEOF
46451.88Ssevan#define HAVE_DECL_ASNPRINTF $ac_have_decl
46461.88Ssevan_ACEOF
46471.86Schristosac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "
46481.86Schristos#include <stdio.h>
46491.86Schristos
46501.86Schristos"
46511.86Schristosif test "x$ac_cv_have_decl_vasprintf" = xyes; then :
46521.86Schristos  ac_have_decl=1
46531.86Schristoselse
46541.86Schristos  ac_have_decl=0
46551.86Schristosfi
46561.86Schristos
46571.86Schristoscat >>confdefs.h <<_ACEOF
46581.86Schristos#define HAVE_DECL_VASPRINTF $ac_have_decl
46591.86Schristos_ACEOF
46601.86Schristosac_fn_c_check_decl "$LINENO" "vasnprintf" "ac_cv_have_decl_vasnprintf" "
46611.86Schristos#include <stdio.h>
46621.86Schristos
46631.86Schristos"
46641.86Schristosif test "x$ac_cv_have_decl_vasnprintf" = xyes; then :
46651.86Schristos  ac_have_decl=1
46661.86Schristoselse
46671.86Schristos  ac_have_decl=0
46681.86Schristosfi
46691.86Schristos
46701.86Schristoscat >>confdefs.h <<_ACEOF
46711.86Schristos#define HAVE_DECL_VASNPRINTF $ac_have_decl
46721.86Schristos_ACEOF
46731.86Schristosac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
46741.86Schristos#include <stdio.h>
46751.86Schristos
46761.86Schristos"
46771.86Schristosif test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
46781.86Schristos  ac_have_decl=1
46791.86Schristoselse
46801.86Schristos  ac_have_decl=0
46811.86Schristosfi
46821.86Schristos
46831.86Schristoscat >>confdefs.h <<_ACEOF
46841.86Schristos#define HAVE_DECL_VSNPRINTF $ac_have_decl
46851.86Schristos_ACEOF
46861.86Schristosac_fn_c_check_decl "$LINENO" "fgetln" "ac_cv_have_decl_fgetln" "
46871.86Schristos#include <stdio.h>
46881.86Schristos
46891.86Schristos"
46901.86Schristosif test "x$ac_cv_have_decl_fgetln" = xyes; then :
46911.86Schristos  ac_have_decl=1
46921.86Schristoselse
46931.86Schristos  ac_have_decl=0
46941.86Schristosfi
46951.86Schristos
46961.86Schristoscat >>confdefs.h <<_ACEOF
46971.86Schristos#define HAVE_DECL_FGETLN $ac_have_decl
46981.86Schristos_ACEOF
46991.87Schristosac_fn_c_check_decl "$LINENO" "fparseln" "ac_cv_have_decl_fparseln" "
47001.86Schristos#include <stdio.h>
47011.86Schristos
47021.86Schristos"
47031.87Schristosif test "x$ac_cv_have_decl_fparseln" = xyes; then :
47041.86Schristos  ac_have_decl=1
47051.86Schristoselse
47061.86Schristos  ac_have_decl=0
47071.86Schristosfi
47081.86Schristos
47091.86Schristoscat >>confdefs.h <<_ACEOF
47101.87Schristos#define HAVE_DECL_FPARSELN $ac_have_decl
47111.87Schristos_ACEOF
47121.87Schristosac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "
47131.87Schristos#include <stdio.h>
47141.87Schristos
47151.87Schristos"
47161.87Schristosif test "x$ac_cv_have_decl_fpurge" = xyes; then :
47171.87Schristos  ac_have_decl=1
47181.87Schristoselse
47191.87Schristos  ac_have_decl=0
47201.87Schristosfi
47211.87Schristos
47221.87Schristoscat >>confdefs.h <<_ACEOF
47231.87Schristos#define HAVE_DECL_FPURGE $ac_have_decl
47241.87Schristos_ACEOF
47251.87Schristosac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "
47261.87Schristos#include <stdio.h>
47271.87Schristos
47281.87Schristos"
47291.87Schristosif test "x$ac_cv_have_decl_getdelim" = xyes; then :
47301.87Schristos  ac_have_decl=1
47311.87Schristoselse
47321.87Schristos  ac_have_decl=0
47331.87Schristosfi
47341.87Schristos
47351.87Schristoscat >>confdefs.h <<_ACEOF
47361.87Schristos#define HAVE_DECL_GETDELIM $ac_have_decl
47371.86Schristos_ACEOF
47381.86Schristosac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "
47391.86Schristos#include <stdio.h>
47401.86Schristos
47411.86Schristos"
47421.86Schristosif test "x$ac_cv_have_decl_getline" = xyes; then :
47431.86Schristos  ac_have_decl=1
47441.86Schristoselse
47451.86Schristos  ac_have_decl=0
47461.86Schristosfi
47471.86Schristos
47481.86Schristoscat >>confdefs.h <<_ACEOF
47491.86Schristos#define HAVE_DECL_GETLINE $ac_have_decl
47501.86Schristos_ACEOF
47511.86Schristosac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "
47521.86Schristos#include <stdio.h>
47531.86Schristos
47541.86Schristos"
47551.86Schristosif test "x$ac_cv_have_decl_snprintf" = xyes; then :
47561.86Schristos  ac_have_decl=1
47571.86Schristoselse
47581.86Schristos  ac_have_decl=0
47591.86Schristosfi
47601.86Schristos
47611.86Schristoscat >>confdefs.h <<_ACEOF
47621.86Schristos#define HAVE_DECL_SNPRINTF $ac_have_decl
47631.86Schristos_ACEOF
47641.86Schristos
47651.86Schristos
47661.86Schristosac_fn_c_check_decl "$LINENO" "atoll" "ac_cv_have_decl_atoll" "
47671.86Schristos#include <stdlib.h>
47681.86Schristos
47691.86Schristos"
47701.86Schristosif test "x$ac_cv_have_decl_atoll" = xyes; then :
47711.86Schristos  ac_have_decl=1
47721.86Schristoselse
47731.86Schristos  ac_have_decl=0
47741.86Schristosfi
47751.86Schristos
47761.86Schristoscat >>confdefs.h <<_ACEOF
47771.86Schristos#define HAVE_DECL_ATOLL $ac_have_decl
47781.86Schristos_ACEOF
47791.86Schristosac_fn_c_check_decl "$LINENO" "heapsort" "ac_cv_have_decl_heapsort" "
47801.86Schristos#include <stdlib.h>
47811.86Schristos
47821.86Schristos"
47831.86Schristosif test "x$ac_cv_have_decl_heapsort" = xyes; then :
47841.86Schristos  ac_have_decl=1
47851.86Schristoselse
47861.86Schristos  ac_have_decl=0
47871.86Schristosfi
47881.86Schristos
47891.86Schristoscat >>confdefs.h <<_ACEOF
47901.86Schristos#define HAVE_DECL_HEAPSORT $ac_have_decl
47911.86Schristos_ACEOF
47921.86Schristosac_fn_c_check_decl "$LINENO" "mkdtemp" "ac_cv_have_decl_mkdtemp" "
47931.86Schristos#include <stdlib.h>
47941.86Schristos
47951.86Schristos"
47961.86Schristosif test "x$ac_cv_have_decl_mkdtemp" = xyes; then :
47971.86Schristos  ac_have_decl=1
47981.86Schristoselse
47991.86Schristos  ac_have_decl=0
48001.86Schristosfi
48011.86Schristos
48021.86Schristoscat >>confdefs.h <<_ACEOF
48031.86Schristos#define HAVE_DECL_MKDTEMP $ac_have_decl
48041.86Schristos_ACEOF
48051.86Schristosac_fn_c_check_decl "$LINENO" "mkstemp" "ac_cv_have_decl_mkstemp" "
48061.86Schristos#include <stdlib.h>
48071.86Schristos
48081.86Schristos"
48091.86Schristosif test "x$ac_cv_have_decl_mkstemp" = xyes; then :
48101.86Schristos  ac_have_decl=1
48111.86Schristoselse
48121.86Schristos  ac_have_decl=0
48131.86Schristosfi
48141.86Schristos
48151.86Schristoscat >>confdefs.h <<_ACEOF
48161.86Schristos#define HAVE_DECL_MKSTEMP $ac_have_decl
48171.86Schristos_ACEOF
48181.86Schristosac_fn_c_check_decl "$LINENO" "reallocarr" "ac_cv_have_decl_reallocarr" "
48191.86Schristos#include <stdlib.h>
48201.86Schristos
48211.86Schristos"
48221.86Schristosif test "x$ac_cv_have_decl_reallocarr" = xyes; then :
48231.86Schristos  ac_have_decl=1
48241.86Schristoselse
48251.86Schristos  ac_have_decl=0
48261.86Schristosfi
48271.86Schristos
48281.86Schristoscat >>confdefs.h <<_ACEOF
48291.86Schristos#define HAVE_DECL_REALLOCARR $ac_have_decl
48301.86Schristos_ACEOF
48311.99Schristosac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "
48321.99Schristos#include <stdlib.h>
48331.99Schristos
48341.99Schristos"
48351.99Schristosif test "x$ac_cv_have_decl_reallocarray" = xyes; then :
48361.99Schristos  ac_have_decl=1
48371.99Schristoselse
48381.99Schristos  ac_have_decl=0
48391.99Schristosfi
48401.99Schristos
48411.99Schristoscat >>confdefs.h <<_ACEOF
48421.99Schristos#define HAVE_DECL_REALLOCARRAY $ac_have_decl
48431.99Schristos_ACEOF
48441.93Schristosac_fn_c_check_decl "$LINENO" "getsubopt" "ac_cv_have_decl_getsubopt" "
48451.93Schristos#include <stdlib.h>
48461.93Schristos
48471.93Schristos"
48481.93Schristosif test "x$ac_cv_have_decl_getsubopt" = xyes; then :
48491.93Schristos  ac_have_decl=1
48501.93Schristoselse
48511.93Schristos  ac_have_decl=0
48521.93Schristosfi
48531.93Schristos
48541.93Schristoscat >>confdefs.h <<_ACEOF
48551.93Schristos#define HAVE_DECL_GETSUBOPT $ac_have_decl
48561.93Schristos_ACEOF
48571.86Schristosac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "
48581.86Schristos#include <stdlib.h>
48591.86Schristos
48601.86Schristos"
48611.86Schristosif test "x$ac_cv_have_decl_setenv" = xyes; then :
48621.86Schristos  ac_have_decl=1
48631.86Schristoselse
48641.86Schristos  ac_have_decl=0
48651.86Schristosfi
48661.86Schristos
48671.86Schristoscat >>confdefs.h <<_ACEOF
48681.86Schristos#define HAVE_DECL_SETENV $ac_have_decl
48691.86Schristos_ACEOF
48701.86Schristosac_fn_c_check_decl "$LINENO" "strtoi" "ac_cv_have_decl_strtoi" "
48711.86Schristos#include <stdlib.h>
48721.86Schristos
48731.86Schristos"
48741.86Schristosif test "x$ac_cv_have_decl_strtoi" = xyes; then :
48751.86Schristos  ac_have_decl=1
48761.86Schristoselse
48771.86Schristos  ac_have_decl=0
48781.86Schristosfi
48791.86Schristos
48801.86Schristoscat >>confdefs.h <<_ACEOF
48811.86Schristos#define HAVE_DECL_STRTOI $ac_have_decl
48821.86Schristos_ACEOF
48831.86Schristosac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "
48841.86Schristos#include <stdlib.h>
48851.86Schristos
48861.86Schristos"
48871.86Schristosif test "x$ac_cv_have_decl_strtoll" = xyes; then :
48881.86Schristos  ac_have_decl=1
48891.86Schristoselse
48901.86Schristos  ac_have_decl=0
48911.86Schristosfi
48921.86Schristos
48931.86Schristoscat >>confdefs.h <<_ACEOF
48941.86Schristos#define HAVE_DECL_STRTOLL $ac_have_decl
48951.86Schristos_ACEOF
48961.86Schristosac_fn_c_check_decl "$LINENO" "strtou" "ac_cv_have_decl_strtou" "
48971.86Schristos#include <stdlib.h>
48981.86Schristos
48991.86Schristos"
49001.86Schristosif test "x$ac_cv_have_decl_strtou" = xyes; then :
49011.86Schristos  ac_have_decl=1
49021.86Schristoselse
49031.86Schristos  ac_have_decl=0
49041.86Schristosfi
49051.86Schristos
49061.86Schristoscat >>confdefs.h <<_ACEOF
49071.86Schristos#define HAVE_DECL_STRTOU $ac_have_decl
49081.86Schristos_ACEOF
49091.86Schristosac_fn_c_check_decl "$LINENO" "setprogname" "ac_cv_have_decl_setprogname" "
49101.86Schristos#include <stdlib.h>
49111.86Schristos
49121.86Schristos"
49131.86Schristosif test "x$ac_cv_have_decl_setprogname" = xyes; then :
49141.86Schristos  ac_have_decl=1
49151.86Schristoselse
49161.86Schristos  ac_have_decl=0
49171.86Schristosfi
49181.86Schristos
49191.86Schristoscat >>confdefs.h <<_ACEOF
49201.86Schristos#define HAVE_DECL_SETPROGNAME $ac_have_decl
49211.86Schristos_ACEOF
49221.86Schristosac_fn_c_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "
49231.86Schristos#include <stdlib.h>
49241.86Schristos
49251.86Schristos"
49261.86Schristosif test "x$ac_cv_have_decl_getprogname" = xyes; then :
49271.86Schristos  ac_have_decl=1
49281.86Schristoselse
49291.86Schristos  ac_have_decl=0
49301.86Schristosfi
49311.86Schristos
49321.86Schristoscat >>confdefs.h <<_ACEOF
49331.86Schristos#define HAVE_DECL_GETPROGNAME $ac_have_decl
49341.86Schristos_ACEOF
49351.86Schristos
49361.86Schristos
49371.86Schristosac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "
49381.86Schristos#include <libgen.h>
49391.86Schristos
49401.86Schristos"
49411.86Schristosif test "x$ac_cv_have_decl_basename" = xyes; then :
49421.86Schristos  ac_have_decl=1
49431.86Schristoselse
49441.86Schristos  ac_have_decl=0
49451.86Schristosfi
49461.86Schristos
49471.86Schristoscat >>confdefs.h <<_ACEOF
49481.86Schristos#define HAVE_DECL_BASENAME $ac_have_decl
49491.86Schristos_ACEOF
49501.86Schristosac_fn_c_check_decl "$LINENO" "dirname" "ac_cv_have_decl_dirname" "
49511.86Schristos#include <libgen.h>
49521.86Schristos
49531.86Schristos"
49541.86Schristosif test "x$ac_cv_have_decl_dirname" = xyes; then :
49551.86Schristos  ac_have_decl=1
49561.86Schristoselse
49571.86Schristos  ac_have_decl=0
49581.86Schristosfi
49591.86Schristos
49601.86Schristoscat >>confdefs.h <<_ACEOF
49611.86Schristos#define HAVE_DECL_DIRNAME $ac_have_decl
49621.86Schristos_ACEOF
49631.86Schristos
49641.86Schristos
49651.86Schristosac_fn_c_check_decl "$LINENO" "raise_default_signal" "ac_cv_have_decl_raise_default_signal" "
49661.86Schristos#include <util.h>
49671.86Schristos
49681.86Schristos"
49691.86Schristosif test "x$ac_cv_have_decl_raise_default_signal" = xyes; then :
49701.86Schristos  ac_have_decl=1
49711.86Schristoselse
49721.86Schristos  ac_have_decl=0
49731.86Schristosfi
49741.86Schristos
49751.86Schristoscat >>confdefs.h <<_ACEOF
49761.86Schristos#define HAVE_DECL_RAISE_DEFAULT_SIGNAL $ac_have_decl
49771.86Schristos_ACEOF
49781.86Schristos
49791.86Schristos
49801.86Schristosac_fn_c_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "
49811.86Schristos#include <unistd.h>
49821.86Schristos
49831.86Schristos"
49841.86Schristosif test "x$ac_cv_have_decl_issetugid" = xyes; then :
49851.86Schristos  ac_have_decl=1
49861.86Schristoselse
49871.86Schristos  ac_have_decl=0
49881.86Schristosfi
49891.86Schristos
49901.86Schristoscat >>confdefs.h <<_ACEOF
49911.86Schristos#define HAVE_DECL_ISSETUGID $ac_have_decl
49921.86Schristos_ACEOF
49931.86Schristosac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
49941.86Schristos#include <unistd.h>
49951.86Schristos
49961.86Schristos"
49971.86Schristosif test "x$ac_cv_have_decl_pread" = xyes; then :
49981.86Schristos  ac_have_decl=1
49991.86Schristoselse
50001.86Schristos  ac_have_decl=0
50011.86Schristosfi
50021.86Schristos
50031.86Schristoscat >>confdefs.h <<_ACEOF
50041.86Schristos#define HAVE_DECL_PREAD $ac_have_decl
50051.86Schristos_ACEOF
50061.86Schristosac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
50071.86Schristos#include <unistd.h>
50081.86Schristos
50091.86Schristos"
50101.86Schristosif test "x$ac_cv_have_decl_pwrite" = xyes; then :
50111.86Schristos  ac_have_decl=1
50121.86Schristoselse
50131.86Schristos  ac_have_decl=0
50141.86Schristosfi
50151.86Schristos
50161.86Schristoscat >>confdefs.h <<_ACEOF
50171.86Schristos#define HAVE_DECL_PWRITE $ac_have_decl
50181.86Schristos_ACEOF
50191.86Schristos
50201.86Schristos
50211.86Schristosac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "
50221.86Schristos#include <unistd.h>
50231.86Schristos#include <string.h>
50241.86Schristos
50251.86Schristos"
50261.86Schristosif test "x$ac_cv_have_decl_strmode" = xyes; then :
50271.86Schristos  ac_have_decl=1
50281.86Schristoselse
50291.86Schristos  ac_have_decl=0
50301.86Schristosfi
50311.86Schristos
50321.86Schristoscat >>confdefs.h <<_ACEOF
50331.86Schristos#define HAVE_DECL_STRMODE $ac_have_decl
50341.86Schristos_ACEOF
50351.86Schristos
50361.86Schristos
50371.86Schristosac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "
50381.86Schristos#include <ctype.h>
50391.86Schristos
50401.86Schristos"
50411.86Schristosif test "x$ac_cv_have_decl_isblank" = 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_ISBLANK $ac_have_decl
50491.86Schristos_ACEOF
50501.86Schristos
50511.86Schristos
50521.86Schristos
50531.84Schristosac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "
50541.84Schristos#include <stdio.h>
50551.84Schristos#include <stdlib.h>
50561.84Schristos#include <unistd.h>
50571.84Schristos#ifdef HAVE_GETOPT_H
50581.84Schristos#include <getopt.h>
50591.84Schristos#endif
50601.84Schristos
50611.84Schristos"
50621.84Schristosif test "x$ac_cv_have_decl_optind" = xyes; then :
50631.84Schristos  ac_have_decl=1
50641.76Spookaelse
50651.84Schristos  ac_have_decl=0
50661.19Sbjh21fi
50671.19Sbjh21
50681.84Schristoscat >>confdefs.h <<_ACEOF
50691.84Schristos#define HAVE_DECL_OPTIND $ac_have_decl
50701.84Schristos_ACEOF
50711.84Schristosac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "
50721.84Schristos#include <stdio.h>
50731.84Schristos#include <stdlib.h>
50741.84Schristos#include <unistd.h>
50751.84Schristos#ifdef HAVE_GETOPT_H
50761.84Schristos#include <getopt.h>
50771.76Spooka#endif
50781.19Sbjh21
50791.84Schristos"
50801.84Schristosif test "x$ac_cv_have_decl_optreset" = xyes; then :
50811.84Schristos  ac_have_decl=1
50821.84Schristoselse
50831.84Schristos  ac_have_decl=0
50841.84Schristosfi
50851.84Schristos
50861.84Schristoscat >>confdefs.h <<_ACEOF
50871.84Schristos#define HAVE_DECL_OPTRESET $ac_have_decl
50881.74Schristos_ACEOF
50891.84Schristos
50901.84Schristosac_fn_c_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "#include <signal.h>
50911.84Schristos"
50921.84Schristosif test "x$ac_cv_have_decl_sys_signame" = xyes; then :
50931.84Schristos  ac_have_decl=1
50941.76Spookaelse
50951.84Schristos  ac_have_decl=0
50961.63Sapbfi
50971.39Sfredb
50981.84Schristoscat >>confdefs.h <<_ACEOF
50991.84Schristos#define HAVE_DECL_SYS_SIGNAME $ac_have_decl
51001.84Schristos_ACEOF
51011.63Sapb
51021.61Schristos
51031.84Schristos# Library functions (where a .h check isn't enough).
51041.84Schristos# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
51051.84Schristos# for constant arguments.  Useless!
51061.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
51071.84Schristos$as_echo_n "checking for working alloca.h... " >&6; }
51081.84Schristosif ${ac_cv_working_alloca_h+:} false; then :
51091.84Schristos  $as_echo_n "(cached) " >&6
51101.76Spookaelse
51111.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51121.84Schristos/* end confdefs.h.  */
51131.84Schristos#include <alloca.h>
51141.76Spookaint
51151.76Spookamain ()
51161.76Spooka{
51171.84Schristoschar *p = (char *) alloca (2 * sizeof (int));
51181.84Schristos			  if (p) return 0;
51191.76Spooka  ;
51201.76Spooka  return 0;
51211.76Spooka}
51221.19Sbjh21_ACEOF
51231.84Schristosif ac_fn_c_try_link "$LINENO"; then :
51241.84Schristos  ac_cv_working_alloca_h=yes
51251.76Spookaelse
51261.84Schristos  ac_cv_working_alloca_h=no
51271.76Spookafi
51281.84Schristosrm -f core conftest.err conftest.$ac_objext \
51291.84Schristos    conftest$ac_exeext conftest.$ac_ext
51301.19Sbjh21fi
51311.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
51321.84Schristos$as_echo "$ac_cv_working_alloca_h" >&6; }
51331.84Schristosif test $ac_cv_working_alloca_h = yes; then
51341.63Sapb
51351.84Schristos$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
51361.63Sapb
51371.84Schristosfi
51381.19Sbjh21
51391.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
51401.84Schristos$as_echo_n "checking for alloca... " >&6; }
51411.84Schristosif ${ac_cv_func_alloca_works+:} false; then :
51421.84Schristos  $as_echo_n "(cached) " >&6
51431.76Spookaelse
51441.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51451.84Schristos/* end confdefs.h.  */
51461.84Schristos#ifdef __GNUC__
51471.84Schristos# define alloca __builtin_alloca
51481.84Schristos#else
51491.84Schristos# ifdef _MSC_VER
51501.84Schristos#  include <malloc.h>
51511.84Schristos#  define alloca _alloca
51521.97Shannken# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
51531.97Shannken#   include <stdlib.h>
51541.84Schristos# else
51551.84Schristos#  ifdef HAVE_ALLOCA_H
51561.84Schristos#   include <alloca.h>
51571.84Schristos#  else
51581.84Schristos#   ifdef _AIX
51591.84Schristos #pragma alloca
51601.84Schristos#   else
51611.84Schristos#    ifndef alloca /* predefined by HP cc +Olibcalls */
51621.84Schristosvoid *alloca (size_t);
51631.84Schristos#    endif
51641.84Schristos#   endif
51651.84Schristos#  endif
51661.84Schristos# endif
51671.84Schristos#endif
51681.76Spooka
51691.76Spookaint
51701.76Spookamain ()
51711.76Spooka{
51721.84Schristoschar *p = (char *) alloca (1);
51731.84Schristos				    if (p) return 0;
51741.76Spooka  ;
51751.76Spooka  return 0;
51761.76Spooka}
51771.74Schristos_ACEOF
51781.84Schristosif ac_fn_c_try_link "$LINENO"; then :
51791.84Schristos  ac_cv_func_alloca_works=yes
51801.76Spookaelse
51811.84Schristos  ac_cv_func_alloca_works=no
51821.76Spookafi
51831.84Schristosrm -f core conftest.err conftest.$ac_objext \
51841.84Schristos    conftest$ac_exeext conftest.$ac_ext
51851.19Sbjh21fi
51861.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
51871.84Schristos$as_echo "$ac_cv_func_alloca_works" >&6; }
51881.19Sbjh21
51891.84Schristosif test $ac_cv_func_alloca_works = yes; then
51901.84Schristos
51911.84Schristos$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
51921.19Sbjh21
51931.76Spookaelse
51941.84Schristos  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
51951.84Schristos# that cause trouble.  Some versions do not even contain alloca or
51961.84Schristos# contain a buggy version.  If you still want to use their alloca,
51971.84Schristos# use ar to extract alloca.o from them instead of compiling alloca.c.
51981.84Schristos
51991.84SchristosALLOCA=\${LIBOBJDIR}alloca.$ac_objext
52001.84Schristos
52011.84Schristos$as_echo "#define C_ALLOCA 1" >>confdefs.h
52021.19Sbjh21
52031.84Schristos
52041.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
52051.84Schristos$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
52061.84Schristosif ${ac_cv_os_cray+:} false; then :
52071.84Schristos  $as_echo_n "(cached) " >&6
52081.76Spookaelse
52091.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52101.84Schristos/* end confdefs.h.  */
52111.84Schristos#if defined CRAY && ! defined CRAY2
52121.84Schristoswebecray
52131.84Schristos#else
52141.84Schristoswenotbecray
52151.76Spooka#endif
52161.74Schristos
52171.74Schristos_ACEOF
52181.84Schristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52191.84Schristos  $EGREP "webecray" >/dev/null 2>&1; then :
52201.84Schristos  ac_cv_os_cray=yes
52211.76Spookaelse
52221.84Schristos  ac_cv_os_cray=no
52231.43Sdbjfi
52241.84Schristosrm -f conftest*
52251.84Schristos
52261.43Sdbjfi
52271.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
52281.84Schristos$as_echo "$ac_cv_os_cray" >&6; }
52291.84Schristosif test $ac_cv_os_cray = yes; then
52301.84Schristos  for ac_func in _getb67 GETB67 getb67; do
52311.84Schristos    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
52321.84Schristosac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
52331.84Schristosif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
52341.40Satatat
52351.84Schristoscat >>confdefs.h <<_ACEOF
52361.84Schristos#define CRAY_STACKSEG_END $ac_func
52371.84Schristos_ACEOF
52381.61Schristos
52391.84Schristos    break
52401.84Schristosfi
52411.61Schristos
52421.84Schristos  done
52431.74Schristosfi
52441.61Schristos
52451.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
52461.84Schristos$as_echo_n "checking stack direction for C alloca... " >&6; }
52471.84Schristosif ${ac_cv_c_stack_direction+:} false; then :
52481.84Schristos  $as_echo_n "(cached) " >&6
52491.76Spookaelse
52501.84Schristos  if test "$cross_compiling" = yes; then :
52511.84Schristos  ac_cv_c_stack_direction=0
52521.84Schristoselse
52531.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52541.84Schristos/* end confdefs.h.  */
52551.84Schristos$ac_includes_default
52561.84Schristosint
52571.84Schristosfind_stack_direction (int *addr, int depth)
52581.84Schristos{
52591.84Schristos  int dir, dummy = 0;
52601.84Schristos  if (! addr)
52611.84Schristos    addr = &dummy;
52621.84Schristos  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
52631.84Schristos  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
52641.84Schristos  return dir + dummy;
52651.84Schristos}
52661.61Schristos
52671.76Spookaint
52681.84Schristosmain (int argc, char **argv)
52691.76Spooka{
52701.84Schristos  return find_stack_direction (0, argc + !argv + 20) < 0;
52711.76Spooka}
52721.76Spooka_ACEOF
52731.84Schristosif ac_fn_c_try_run "$LINENO"; then :
52741.84Schristos  ac_cv_c_stack_direction=1
52751.63Sapbelse
52761.84Schristos  ac_cv_c_stack_direction=-1
52771.76Spookafi
52781.84Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52791.84Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
52801.63Sapbfi
52811.61Schristos
52821.84Schristosfi
52831.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
52841.84Schristos$as_echo "$ac_cv_c_stack_direction" >&6; }
52851.84Schristoscat >>confdefs.h <<_ACEOF
52861.84Schristos#define STACK_DIRECTION $ac_cv_c_stack_direction
52871.84Schristos_ACEOF
52881.61Schristos
52891.76Spooka
52901.63Sapbfi
52911.76Spooka
52921.84Schristosfor ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
52931.100Slukem	dispatch_semaphore_create \
52941.84Schristos	dprintf esetfunc fgetln flock fpurge __fpurge futimes getline \
52951.84Schristos	getopt getopt_long group_from_gid gid_from_group \
52961.84Schristos	heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
52971.84Schristos	mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb \
52981.99Schristos	pwrite raise_default_signal random reallocarr reallocarray setenv \
52991.84Schristos	setgroupent setprogname setpassent \
53001.84Schristos	snprintb_m snprintf strlcat strlcpy strmode \
53011.92Schristos	strcasecmp strncasecmp strndup strnlen strsep strsuftoll strtoi \
53021.92Schristos	strtoll strtou \
53031.84Schristos	user_from_uid uid_from_user vasprintf vasnprintf vsnprintf
53041.84Schristosdo :
53051.84Schristos  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
53061.84Schristosac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
53071.84Schristosif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
53081.84Schristos  cat >>confdefs.h <<_ACEOF
53091.84Schristos#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
53101.84Schristos_ACEOF
53111.61Schristos
53121.76Spookafi
53131.84Schristosdone
53141.84Schristos
53151.45Sjmc
53161.84Schristosac_fn_c_check_decl "$LINENO" "user_from_uid" "ac_cv_have_decl_user_from_uid" "
53171.84Schristos#include <pwd.h>
53181.45Sjmc
53191.84Schristos"
53201.84Schristosif test "x$ac_cv_have_decl_user_from_uid" = xyes; then :
53211.84Schristos  ac_have_decl=1
53221.76Spookaelse
53231.84Schristos  ac_have_decl=0
53241.76Spookafi
53251.76Spooka
53261.84Schristoscat >>confdefs.h <<_ACEOF
53271.84Schristos#define HAVE_DECL_USER_FROM_UID $ac_have_decl
53281.84Schristos_ACEOF
53291.84Schristosac_fn_c_check_decl "$LINENO" "uid_from_user" "ac_cv_have_decl_uid_from_user" "
53301.84Schristos#include <pwd.h>
53311.76Spooka
53321.84Schristos"
53331.84Schristosif test "x$ac_cv_have_decl_uid_from_user" = xyes; then :
53341.84Schristos  ac_have_decl=1
53351.55Swizelse
53361.84Schristos  ac_have_decl=0
53371.55Swizfi
53381.76Spooka
53391.84Schristoscat >>confdefs.h <<_ACEOF
53401.84Schristos#define HAVE_DECL_UID_FROM_USER $ac_have_decl
53411.84Schristos_ACEOF
53421.84Schristosac_fn_c_check_decl "$LINENO" "pwcache_userdb" "ac_cv_have_decl_pwcache_userdb" "
53431.84Schristos#include <pwd.h>
53441.55Swiz
53451.84Schristos"
53461.84Schristosif test "x$ac_cv_have_decl_pwcache_userdb" = xyes; then :
53471.84Schristos  ac_have_decl=1
53481.76Spookaelse
53491.84Schristos  ac_have_decl=0
53501.55Swizfi
53511.55Swiz
53521.84Schristoscat >>confdefs.h <<_ACEOF
53531.84Schristos#define HAVE_DECL_PWCACHE_USERDB $ac_have_decl
53541.84Schristos_ACEOF
53551.53Sdogcow
53561.84Schristosac_fn_c_check_decl "$LINENO" "group_from_gid" "ac_cv_have_decl_group_from_gid" "
53571.84Schristos#include <grp.h>
53581.76Spooka
53591.84Schristos"
53601.84Schristosif test "x$ac_cv_have_decl_group_from_gid" = xyes; then :
53611.84Schristos  ac_have_decl=1
53621.48Sjmcelse
53631.84Schristos  ac_have_decl=0
53641.48Sjmcfi
53651.61Schristos
53661.84Schristoscat >>confdefs.h <<_ACEOF
53671.84Schristos#define HAVE_DECL_GROUP_FROM_GID $ac_have_decl
53681.84Schristos_ACEOF
53691.84Schristosac_fn_c_check_decl "$LINENO" "gid_from_group" "ac_cv_have_decl_gid_from_group" "
53701.84Schristos#include <grp.h>
53711.53Sdogcow
53721.84Schristos"
53731.84Schristosif test "x$ac_cv_have_decl_gid_from_group" = xyes; then :
53741.84Schristos  ac_have_decl=1
53751.76Spookaelse
53761.84Schristos  ac_have_decl=0
53771.76Spookafi
53781.53Sdogcow
53791.84Schristoscat >>confdefs.h <<_ACEOF
53801.84Schristos#define HAVE_DECL_GID_FROM_GROUP $ac_have_decl
53811.84Schristos_ACEOF
53821.84Schristosac_fn_c_check_decl "$LINENO" "pwcache_groupdb" "ac_cv_have_decl_pwcache_groupdb" "
53831.84Schristos#include <grp.h>
53841.53Sdogcow
53851.84Schristos"
53861.84Schristosif test "x$ac_cv_have_decl_pwcache_groupdb" = xyes; then :
53871.84Schristos  ac_have_decl=1
53881.53Sdogcowelse
53891.84Schristos  ac_have_decl=0
53901.53Sdogcowfi
53911.61Schristos
53921.84Schristoscat >>confdefs.h <<_ACEOF
53931.84Schristos#define HAVE_DECL_PWCACHE_GROUPDB $ac_have_decl
53941.84Schristos_ACEOF
53951.53Sdogcow
53961.91Schristosac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "
53971.91Schristos#include <string.h>
53981.91Schristos
53991.91Schristos"
54001.91Schristosif test "x$ac_cv_have_decl_strcasecmp" = xyes; then :
54011.91Schristos  ac_have_decl=1
54021.91Schristoselse
54031.91Schristos  ac_have_decl=0
54041.91Schristosfi
54051.91Schristos
54061.91Schristoscat >>confdefs.h <<_ACEOF
54071.91Schristos#define HAVE_DECL_STRCASECMP $ac_have_decl
54081.91Schristos_ACEOF
54091.92Schristosac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "
54101.92Schristos#include <string.h>
54111.92Schristos
54121.92Schristos"
54131.92Schristosif test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
54141.92Schristos  ac_have_decl=1
54151.92Schristoselse
54161.92Schristos  ac_have_decl=0
54171.92Schristosfi
54181.92Schristos
54191.92Schristoscat >>confdefs.h <<_ACEOF
54201.92Schristos#define HAVE_DECL_STRNCASECMP $ac_have_decl
54211.92Schristos_ACEOF
54221.85Schristosac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
54231.85Schristos#include <string.h>
54241.85Schristos
54251.85Schristos"
54261.85Schristosif test "x$ac_cv_have_decl_strlcpy" = xyes; then :
54271.85Schristos  ac_have_decl=1
54281.85Schristoselse
54291.85Schristos  ac_have_decl=0
54301.85Schristosfi
54311.85Schristos
54321.85Schristoscat >>confdefs.h <<_ACEOF
54331.85Schristos#define HAVE_DECL_STRLCPY $ac_have_decl
54341.85Schristos_ACEOF
54351.85Schristosac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "
54361.85Schristos#include <string.h>
54371.85Schristos
54381.85Schristos"
54391.85Schristosif test "x$ac_cv_have_decl_strlcat" = xyes; then :
54401.85Schristos  ac_have_decl=1
54411.85Schristoselse
54421.85Schristos  ac_have_decl=0
54431.85Schristosfi
54441.85Schristos
54451.85Schristoscat >>confdefs.h <<_ACEOF
54461.85Schristos#define HAVE_DECL_STRLCAT $ac_have_decl
54471.85Schristos_ACEOF
54481.85Schristosac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "
54491.85Schristos#include <string.h>
54501.85Schristos
54511.84Schristos"
54521.84Schristosif test "x$ac_cv_have_decl_strndup" = xyes; then :
54531.84Schristos  ac_have_decl=1
54541.76Spookaelse
54551.84Schristos  ac_have_decl=0
54561.63Sapbfi
54571.53Sdogcow
54581.84Schristoscat >>confdefs.h <<_ACEOF
54591.84Schristos#define HAVE_DECL_STRNDUP $ac_have_decl
54601.53Sdogcow_ACEOF
54611.85Schristosac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "
54621.85Schristos#include <string.h>
54631.85Schristos
54641.84Schristos"
54651.84Schristosif test "x$ac_cv_have_decl_strnlen" = xyes; then :
54661.84Schristos  ac_have_decl=1
54671.53Sdogcowelse
54681.84Schristos  ac_have_decl=0
54691.74Schristosfi
54701.53Sdogcow
54711.84Schristoscat >>confdefs.h <<_ACEOF
54721.84Schristos#define HAVE_DECL_STRNLEN $ac_have_decl
54731.84Schristos_ACEOF
54741.86Schristosac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
54751.86Schristos#include <string.h>
54761.86Schristos
54771.86Schristos"
54781.86Schristosif test "x$ac_cv_have_decl_strsep" = xyes; then :
54791.86Schristos  ac_have_decl=1
54801.86Schristoselse
54811.86Schristos  ac_have_decl=0
54821.86Schristosfi
54831.86Schristos
54841.86Schristoscat >>confdefs.h <<_ACEOF
54851.86Schristos#define HAVE_DECL_STRSEP $ac_have_decl
54861.86Schristos_ACEOF
54871.53Sdogcow
54881.84Schristosac_fn_c_check_decl "$LINENO" "strsuftoll" "ac_cv_have_decl_strsuftoll" "#include <stdlib.h>
54891.84Schristos"
54901.84Schristosif test "x$ac_cv_have_decl_strsuftoll" = xyes; then :
54911.84Schristos  ac_have_decl=1
54921.76Spookaelse
54931.84Schristos  ac_have_decl=0
54941.84Schristosfi
54951.53Sdogcow
54961.84Schristoscat >>confdefs.h <<_ACEOF
54971.84Schristos#define HAVE_DECL_STRSUFTOLL $ac_have_decl
54981.84Schristos_ACEOF
54991.85Schristosac_fn_c_check_decl "$LINENO" "mi_vector_hash" "ac_cv_have_decl_mi_vector_hash" "#include <stdlib.h>
55001.85Schristos"
55011.85Schristosif test "x$ac_cv_have_decl_mi_vector_hash" = xyes; then :
55021.85Schristos  ac_have_decl=1
55031.85Schristoselse
55041.85Schristos  ac_have_decl=0
55051.85Schristosfi
55061.85Schristos
55071.85Schristoscat >>confdefs.h <<_ACEOF
55081.85Schristos#define HAVE_DECL_MI_VECTOR_HASH $ac_have_decl
55091.85Schristos_ACEOF
55101.74Schristos
55111.84Schristosac_fn_c_check_decl "$LINENO" "lchflags" "ac_cv_have_decl_lchflags" "
55121.84Schristos#include <sys/stat.h>
55131.84Schristos#include <unistd.h>
55141.61Schristos
55151.84Schristos"
55161.84Schristosif test "x$ac_cv_have_decl_lchflags" = xyes; then :
55171.84Schristos  ac_have_decl=1
55181.53Sdogcowelse
55191.84Schristos  ac_have_decl=0
55201.76Spookafi
55211.53Sdogcow
55221.84Schristoscat >>confdefs.h <<_ACEOF
55231.84Schristos#define HAVE_DECL_LCHFLAGS $ac_have_decl
55241.84Schristos_ACEOF
55251.84Schristosac_fn_c_check_decl "$LINENO" "lchmod" "ac_cv_have_decl_lchmod" "
55261.84Schristos#include <sys/stat.h>
55271.84Schristos#include <unistd.h>
55281.53Sdogcow
55291.84Schristos"
55301.84Schristosif test "x$ac_cv_have_decl_lchmod" = xyes; then :
55311.84Schristos  ac_have_decl=1
55321.53Sdogcowelse
55331.84Schristos  ac_have_decl=0
55341.53Sdogcowfi
55351.76Spooka
55361.84Schristoscat >>confdefs.h <<_ACEOF
55371.84Schristos#define HAVE_DECL_LCHMOD $ac_have_decl
55381.84Schristos_ACEOF
55391.84Schristosac_fn_c_check_decl "$LINENO" "lchown" "ac_cv_have_decl_lchown" "
55401.84Schristos#include <sys/stat.h>
55411.84Schristos#include <unistd.h>
55421.61Schristos
55431.84Schristos"
55441.84Schristosif test "x$ac_cv_have_decl_lchown" = xyes; then :
55451.84Schristos  ac_have_decl=1
55461.53Sdogcowelse
55471.84Schristos  ac_have_decl=0
55481.76Spookafi
55491.53Sdogcow
55501.84Schristoscat >>confdefs.h <<_ACEOF
55511.84Schristos#define HAVE_DECL_LCHOWN $ac_have_decl
55521.84Schristos_ACEOF
55531.84Schristos
55541.84Schristos
55551.85Schristosac_fn_c_check_decl "$LINENO" "err" "ac_cv_have_decl_err" "
55561.85Schristos#ifdef HAVE_ERR_H
55571.85Schristos#include <err.h>
55581.85Schristos#endif
55591.85Schristos
55601.85Schristos"
55611.85Schristosif test "x$ac_cv_have_decl_err" = xyes; then :
55621.85Schristos  ac_have_decl=1
55631.85Schristoselse
55641.85Schristos  ac_have_decl=0
55651.85Schristosfi
55661.85Schristos
55671.85Schristoscat >>confdefs.h <<_ACEOF
55681.85Schristos#define HAVE_DECL_ERR $ac_have_decl
55691.85Schristos_ACEOF
55701.84Schristosac_fn_c_check_decl "$LINENO" "errc" "ac_cv_have_decl_errc" "
55711.84Schristos#ifdef HAVE_ERR_H
55721.84Schristos#include <err.h>
55731.84Schristos#endif
55741.61Schristos
55751.84Schristos"
55761.84Schristosif test "x$ac_cv_have_decl_errc" = xyes; then :
55771.84Schristos  ac_have_decl=1
55781.76Spookaelse
55791.84Schristos  ac_have_decl=0
55801.76Spookafi
55811.76Spooka
55821.84Schristoscat >>confdefs.h <<_ACEOF
55831.84Schristos#define HAVE_DECL_ERRC $ac_have_decl
55841.84Schristos_ACEOF
55851.85Schristosac_fn_c_check_decl "$LINENO" "errx" "ac_cv_have_decl_errx" "
55861.85Schristos#ifdef HAVE_ERR_H
55871.85Schristos#include <err.h>
55881.85Schristos#endif
55891.85Schristos
55901.85Schristos"
55911.85Schristosif test "x$ac_cv_have_decl_errx" = xyes; then :
55921.85Schristos  ac_have_decl=1
55931.85Schristoselse
55941.85Schristos  ac_have_decl=0
55951.85Schristosfi
55961.85Schristos
55971.85Schristoscat >>confdefs.h <<_ACEOF
55981.85Schristos#define HAVE_DECL_ERRX $ac_have_decl
55991.85Schristos_ACEOF
56001.84Schristosac_fn_c_check_decl "$LINENO" "verrc" "ac_cv_have_decl_verrc" "
56011.84Schristos#ifdef HAVE_ERR_H
56021.84Schristos#include <err.h>
56031.76Spooka#endif
56041.53Sdogcow
56051.84Schristos"
56061.84Schristosif test "x$ac_cv_have_decl_verrc" = xyes; then :
56071.84Schristos  ac_have_decl=1
56081.53Sdogcowelse
56091.84Schristos  ac_have_decl=0
56101.53Sdogcowfi
56111.61Schristos
56121.84Schristoscat >>confdefs.h <<_ACEOF
56131.84Schristos#define HAVE_DECL_VERRC $ac_have_decl
56141.84Schristos_ACEOF
56151.85Schristosac_fn_c_check_decl "$LINENO" "verrx" "ac_cv_have_decl_verrx" "
56161.85Schristos#ifdef HAVE_ERR_H
56171.85Schristos#include <err.h>
56181.85Schristos#endif
56191.85Schristos
56201.85Schristos"
56211.85Schristosif test "x$ac_cv_have_decl_verrx" = xyes; then :
56221.85Schristos  ac_have_decl=1
56231.85Schristoselse
56241.85Schristos  ac_have_decl=0
56251.85Schristosfi
56261.85Schristos
56271.85Schristoscat >>confdefs.h <<_ACEOF
56281.85Schristos#define HAVE_DECL_VERRX $ac_have_decl
56291.85Schristos_ACEOF
56301.85Schristosac_fn_c_check_decl "$LINENO" "warn" "ac_cv_have_decl_warn" "
56311.85Schristos#ifdef HAVE_ERR_H
56321.85Schristos#include <err.h>
56331.85Schristos#endif
56341.85Schristos
56351.85Schristos"
56361.85Schristosif test "x$ac_cv_have_decl_warn" = xyes; then :
56371.85Schristos  ac_have_decl=1
56381.85Schristoselse
56391.85Schristos  ac_have_decl=0
56401.85Schristosfi
56411.85Schristos
56421.85Schristoscat >>confdefs.h <<_ACEOF
56431.85Schristos#define HAVE_DECL_WARN $ac_have_decl
56441.85Schristos_ACEOF
56451.84Schristosac_fn_c_check_decl "$LINENO" "warnc" "ac_cv_have_decl_warnc" "
56461.84Schristos#ifdef HAVE_ERR_H
56471.84Schristos#include <err.h>
56481.84Schristos#endif
56491.53Sdogcow
56501.84Schristos"
56511.84Schristosif test "x$ac_cv_have_decl_warnc" = xyes; then :
56521.84Schristos  ac_have_decl=1
56531.53Sdogcowelse
56541.84Schristos  ac_have_decl=0
56551.53Sdogcowfi
56561.76Spooka
56571.84Schristoscat >>confdefs.h <<_ACEOF
56581.84Schristos#define HAVE_DECL_WARNC $ac_have_decl
56591.84Schristos_ACEOF
56601.85Schristosac_fn_c_check_decl "$LINENO" "warnx" "ac_cv_have_decl_warnx" "
56611.85Schristos#ifdef HAVE_ERR_H
56621.85Schristos#include <err.h>
56631.85Schristos#endif
56641.85Schristos
56651.85Schristos"
56661.85Schristosif test "x$ac_cv_have_decl_warnx" = xyes; then :
56671.85Schristos  ac_have_decl=1
56681.85Schristoselse
56691.85Schristos  ac_have_decl=0
56701.85Schristosfi
56711.85Schristos
56721.85Schristoscat >>confdefs.h <<_ACEOF
56731.85Schristos#define HAVE_DECL_WARNX $ac_have_decl
56741.85Schristos_ACEOF
56751.84Schristosac_fn_c_check_decl "$LINENO" "vwarnc" "ac_cv_have_decl_vwarnc" "
56761.84Schristos#ifdef HAVE_ERR_H
56771.84Schristos#include <err.h>
56781.76Spooka#endif
56791.53Sdogcow
56801.84Schristos"
56811.84Schristosif test "x$ac_cv_have_decl_vwarnc" = xyes; then :
56821.84Schristos  ac_have_decl=1
56831.53Sdogcowelse
56841.84Schristos  ac_have_decl=0
56851.76Spookafi
56861.61Schristos
56871.84Schristoscat >>confdefs.h <<_ACEOF
56881.84Schristos#define HAVE_DECL_VWARNC $ac_have_decl
56891.84Schristos_ACEOF
56901.85Schristosac_fn_c_check_decl "$LINENO" "vwarnx" "ac_cv_have_decl_vwarnx" "
56911.85Schristos#ifdef HAVE_ERR_H
56921.85Schristos#include <err.h>
56931.85Schristos#endif
56941.85Schristos
56951.85Schristos"
56961.85Schristosif test "x$ac_cv_have_decl_vwarnx" = xyes; then :
56971.85Schristos  ac_have_decl=1
56981.85Schristoselse
56991.85Schristos  ac_have_decl=0
57001.85Schristosfi
57011.85Schristos
57021.85Schristoscat >>confdefs.h <<_ACEOF
57031.85Schristos#define HAVE_DECL_VWARNX $ac_have_decl
57041.85Schristos_ACEOF
57051.84Schristos
57061.53Sdogcow
57071.84Schristosac_fn_c_check_decl "$LINENO" "htobe16" "ac_cv_have_decl_htobe16" "#include <sys/types.h>
57081.84Schristos"
57091.84Schristosif test "x$ac_cv_have_decl_htobe16" = xyes; then :
57101.84Schristos  ac_have_decl=1
57111.53Sdogcowelse
57121.84Schristos  ac_have_decl=0
57131.84Schristosfi
57141.76Spooka
57151.84Schristoscat >>confdefs.h <<_ACEOF
57161.84Schristos#define HAVE_DECL_HTOBE16 $ac_have_decl
57171.84Schristos_ACEOF
57181.84Schristosac_fn_c_check_decl "$LINENO" "htobe32" "ac_cv_have_decl_htobe32" "#include <sys/types.h>
57191.84Schristos"
57201.84Schristosif test "x$ac_cv_have_decl_htobe32" = xyes; then :
57211.84Schristos  ac_have_decl=1
57221.84Schristoselse
57231.84Schristos  ac_have_decl=0
57241.74Schristosfi
57251.84Schristos
57261.84Schristoscat >>confdefs.h <<_ACEOF
57271.84Schristos#define HAVE_DECL_HTOBE32 $ac_have_decl
57281.84Schristos_ACEOF
57291.84Schristosac_fn_c_check_decl "$LINENO" "htobe64" "ac_cv_have_decl_htobe64" "#include <sys/types.h>
57301.84Schristos"
57311.84Schristosif test "x$ac_cv_have_decl_htobe64" = xyes; then :
57321.84Schristos  ac_have_decl=1
57331.76Spookaelse
57341.84Schristos  ac_have_decl=0
57351.84Schristosfi
57361.76Spooka
57371.84Schristoscat >>confdefs.h <<_ACEOF
57381.84Schristos#define HAVE_DECL_HTOBE64 $ac_have_decl
57391.84Schristos_ACEOF
57401.84Schristosac_fn_c_check_decl "$LINENO" "htole16" "ac_cv_have_decl_htole16" "#include <sys/types.h>
57411.84Schristos"
57421.84Schristosif test "x$ac_cv_have_decl_htole16" = xyes; then :
57431.84Schristos  ac_have_decl=1
57441.84Schristoselse
57451.84Schristos  ac_have_decl=0
57461.84Schristosfi
57471.53Sdogcow
57481.84Schristoscat >>confdefs.h <<_ACEOF
57491.84Schristos#define HAVE_DECL_HTOLE16 $ac_have_decl
57501.74Schristos_ACEOF
57511.84Schristosac_fn_c_check_decl "$LINENO" "htole32" "ac_cv_have_decl_htole32" "#include <sys/types.h>
57521.84Schristos"
57531.84Schristosif test "x$ac_cv_have_decl_htole32" = xyes; then :
57541.84Schristos  ac_have_decl=1
57551.53Sdogcowelse
57561.84Schristos  ac_have_decl=0
57571.76Spookafi
57581.84Schristos
57591.84Schristoscat >>confdefs.h <<_ACEOF
57601.84Schristos#define HAVE_DECL_HTOLE32 $ac_have_decl
57611.84Schristos_ACEOF
57621.84Schristosac_fn_c_check_decl "$LINENO" "htole64" "ac_cv_have_decl_htole64" "#include <sys/types.h>
57631.84Schristos"
57641.84Schristosif test "x$ac_cv_have_decl_htole64" = xyes; then :
57651.84Schristos  ac_have_decl=1
57661.84Schristoselse
57671.84Schristos  ac_have_decl=0
57681.53Sdogcowfi
57691.61Schristos
57701.84Schristoscat >>confdefs.h <<_ACEOF
57711.84Schristos#define HAVE_DECL_HTOLE64 $ac_have_decl
57721.84Schristos_ACEOF
57731.84Schristosac_fn_c_check_decl "$LINENO" "be16toh" "ac_cv_have_decl_be16toh" "#include <sys/types.h>
57741.84Schristos"
57751.84Schristosif test "x$ac_cv_have_decl_be16toh" = xyes; then :
57761.84Schristos  ac_have_decl=1
57771.84Schristoselse
57781.84Schristos  ac_have_decl=0
57791.84Schristosfi
57801.53Sdogcow
57811.84Schristoscat >>confdefs.h <<_ACEOF
57821.84Schristos#define HAVE_DECL_BE16TOH $ac_have_decl
57831.84Schristos_ACEOF
57841.84Schristosac_fn_c_check_decl "$LINENO" "be32toh" "ac_cv_have_decl_be32toh" "#include <sys/types.h>
57851.84Schristos"
57861.84Schristosif test "x$ac_cv_have_decl_be32toh" = xyes; then :
57871.84Schristos  ac_have_decl=1
57881.53Sdogcowelse
57891.84Schristos  ac_have_decl=0
57901.84Schristosfi
57911.76Spooka
57921.84Schristoscat >>confdefs.h <<_ACEOF
57931.84Schristos#define HAVE_DECL_BE32TOH $ac_have_decl
57941.84Schristos_ACEOF
57951.84Schristosac_fn_c_check_decl "$LINENO" "be64toh" "ac_cv_have_decl_be64toh" "#include <sys/types.h>
57961.84Schristos"
57971.84Schristosif test "x$ac_cv_have_decl_be64toh" = xyes; then :
57981.84Schristos  ac_have_decl=1
57991.84Schristoselse
58001.84Schristos  ac_have_decl=0
58011.53Sdogcowfi
58021.84Schristos
58031.84Schristoscat >>confdefs.h <<_ACEOF
58041.84Schristos#define HAVE_DECL_BE64TOH $ac_have_decl
58051.84Schristos_ACEOF
58061.84Schristosac_fn_c_check_decl "$LINENO" "le16toh" "ac_cv_have_decl_le16toh" "#include <sys/types.h>
58071.84Schristos"
58081.84Schristosif test "x$ac_cv_have_decl_le16toh" = xyes; then :
58091.84Schristos  ac_have_decl=1
58101.76Spookaelse
58111.84Schristos  ac_have_decl=0
58121.84Schristosfi
58131.76Spooka
58141.84Schristoscat >>confdefs.h <<_ACEOF
58151.84Schristos#define HAVE_DECL_LE16TOH $ac_have_decl
58161.84Schristos_ACEOF
58171.84Schristosac_fn_c_check_decl "$LINENO" "le32toh" "ac_cv_have_decl_le32toh" "#include <sys/types.h>
58181.84Schristos"
58191.84Schristosif test "x$ac_cv_have_decl_le32toh" = xyes; then :
58201.84Schristos  ac_have_decl=1
58211.84Schristoselse
58221.84Schristos  ac_have_decl=0
58231.84Schristosfi
58241.53Sdogcow
58251.84Schristoscat >>confdefs.h <<_ACEOF
58261.84Schristos#define HAVE_DECL_LE32TOH $ac_have_decl
58271.74Schristos_ACEOF
58281.84Schristosac_fn_c_check_decl "$LINENO" "le64toh" "ac_cv_have_decl_le64toh" "#include <sys/types.h>
58291.84Schristos"
58301.84Schristosif test "x$ac_cv_have_decl_le64toh" = xyes; then :
58311.84Schristos  ac_have_decl=1
58321.53Sdogcowelse
58331.84Schristos  ac_have_decl=0
58341.53Sdogcowfi
58351.61Schristos
58361.84Schristoscat >>confdefs.h <<_ACEOF
58371.84Schristos#define HAVE_DECL_LE64TOH $ac_have_decl
58381.84Schristos_ACEOF
58391.84Schristos
58401.53Sdogcow
58411.84Schristosac_fn_c_check_decl "$LINENO" "bswap16" "ac_cv_have_decl_bswap16" "#include <machine/bswap.h>
58421.84Schristos"
58431.84Schristosif test "x$ac_cv_have_decl_bswap16" = xyes; then :
58441.84Schristos  ac_have_decl=1
58451.53Sdogcowelse
58461.84Schristos  ac_have_decl=0
58471.84Schristosfi
58481.76Spooka
58491.84Schristoscat >>confdefs.h <<_ACEOF
58501.84Schristos#define HAVE_DECL_BSWAP16 $ac_have_decl
58511.84Schristos_ACEOF
58521.84Schristosac_fn_c_check_decl "$LINENO" "bswap32" "ac_cv_have_decl_bswap32" "#include <machine/bswap.h>
58531.84Schristos"
58541.84Schristosif test "x$ac_cv_have_decl_bswap32" = xyes; then :
58551.84Schristos  ac_have_decl=1
58561.84Schristoselse
58571.84Schristos  ac_have_decl=0
58581.74Schristosfi
58591.53Sdogcow
58601.84Schristoscat >>confdefs.h <<_ACEOF
58611.84Schristos#define HAVE_DECL_BSWAP32 $ac_have_decl
58621.74Schristos_ACEOF
58631.84Schristosac_fn_c_check_decl "$LINENO" "bswap64" "ac_cv_have_decl_bswap64" "#include <machine/bswap.h>
58641.84Schristos"
58651.84Schristosif test "x$ac_cv_have_decl_bswap64" = xyes; then :
58661.84Schristos  ac_have_decl=1
58671.74Schristoselse
58681.84Schristos  ac_have_decl=0
58691.74Schristosfi
58701.74Schristos
58711.84Schristoscat >>confdefs.h <<_ACEOF
58721.84Schristos#define HAVE_DECL_BSWAP64 $ac_have_decl
58731.84Schristos_ACEOF
58741.84Schristos
58751.61Schristos
58761.84Schristosac_fn_c_check_decl "$LINENO" "be16enc" "ac_cv_have_decl_be16enc" "#include <sys/endian.h>
58771.84Schristos"
58781.84Schristosif test "x$ac_cv_have_decl_be16enc" = xyes; then :
58791.84Schristos  ac_have_decl=1
58801.74Schristoselse
58811.84Schristos  ac_have_decl=0
58821.84Schristosfi
58831.53Sdogcow
58841.84Schristoscat >>confdefs.h <<_ACEOF
58851.84Schristos#define HAVE_DECL_BE16ENC $ac_have_decl
58861.84Schristos_ACEOF
58871.84Schristosac_fn_c_check_decl "$LINENO" "le16enc" "ac_cv_have_decl_le16enc" "#include <sys/endian.h>
58881.84Schristos"
58891.84Schristosif test "x$ac_cv_have_decl_le16enc" = xyes; then :
58901.84Schristos  ac_have_decl=1
58911.84Schristoselse
58921.84Schristos  ac_have_decl=0
58931.74Schristosfi
58941.84Schristos
58951.84Schristoscat >>confdefs.h <<_ACEOF
58961.84Schristos#define HAVE_DECL_LE16ENC $ac_have_decl
58971.84Schristos_ACEOF
58981.84Schristosac_fn_c_check_decl "$LINENO" "be16dec" "ac_cv_have_decl_be16dec" "#include <sys/endian.h>
58991.84Schristos"
59001.84Schristosif test "x$ac_cv_have_decl_be16dec" = xyes; then :
59011.84Schristos  ac_have_decl=1
59021.74Schristoselse
59031.84Schristos  ac_have_decl=0
59041.84Schristosfi
59051.74Schristos
59061.84Schristoscat >>confdefs.h <<_ACEOF
59071.84Schristos#define HAVE_DECL_BE16DEC $ac_have_decl
59081.84Schristos_ACEOF
59091.84Schristosac_fn_c_check_decl "$LINENO" "le16dec" "ac_cv_have_decl_le16dec" "#include <sys/endian.h>
59101.84Schristos"
59111.84Schristosif test "x$ac_cv_have_decl_le16dec" = xyes; then :
59121.84Schristos  ac_have_decl=1
59131.84Schristoselse
59141.84Schristos  ac_have_decl=0
59151.84Schristosfi
59161.54Swiz
59171.84Schristoscat >>confdefs.h <<_ACEOF
59181.84Schristos#define HAVE_DECL_LE16DEC $ac_have_decl
59191.74Schristos_ACEOF
59201.84Schristosac_fn_c_check_decl "$LINENO" "be32enc" "ac_cv_have_decl_be32enc" "#include <sys/endian.h>
59211.84Schristos"
59221.84Schristosif test "x$ac_cv_have_decl_be32enc" = xyes; then :
59231.84Schristos  ac_have_decl=1
59241.74Schristoselse
59251.84Schristos  ac_have_decl=0
59261.74Schristosfi
59271.84Schristos
59281.84Schristoscat >>confdefs.h <<_ACEOF
59291.84Schristos#define HAVE_DECL_BE32ENC $ac_have_decl
59301.84Schristos_ACEOF
59311.84Schristosac_fn_c_check_decl "$LINENO" "le32enc" "ac_cv_have_decl_le32enc" "#include <sys/endian.h>
59321.84Schristos"
59331.84Schristosif test "x$ac_cv_have_decl_le32enc" = xyes; then :
59341.84Schristos  ac_have_decl=1
59351.84Schristoselse
59361.84Schristos  ac_have_decl=0
59371.54Swizfi
59381.61Schristos
59391.84Schristoscat >>confdefs.h <<_ACEOF
59401.84Schristos#define HAVE_DECL_LE32ENC $ac_have_decl
59411.84Schristos_ACEOF
59421.84Schristosac_fn_c_check_decl "$LINENO" "be32dec" "ac_cv_have_decl_be32dec" "#include <sys/endian.h>
59431.84Schristos"
59441.84Schristosif test "x$ac_cv_have_decl_be32dec" = xyes; then :
59451.84Schristos  ac_have_decl=1
59461.84Schristoselse
59471.84Schristos  ac_have_decl=0
59481.84Schristosfi
59491.74Schristos
59501.84Schristoscat >>confdefs.h <<_ACEOF
59511.84Schristos#define HAVE_DECL_BE32DEC $ac_have_decl
59521.84Schristos_ACEOF
59531.84Schristosac_fn_c_check_decl "$LINENO" "le32dec" "ac_cv_have_decl_le32dec" "#include <sys/endian.h>
59541.84Schristos"
59551.84Schristosif test "x$ac_cv_have_decl_le32dec" = xyes; then :
59561.84Schristos  ac_have_decl=1
59571.76Spookaelse
59581.84Schristos  ac_have_decl=0
59591.76Spookafi
59601.53Sdogcow
59611.84Schristoscat >>confdefs.h <<_ACEOF
59621.84Schristos#define HAVE_DECL_LE32DEC $ac_have_decl
59631.74Schristos_ACEOF
59641.84Schristosac_fn_c_check_decl "$LINENO" "be64enc" "ac_cv_have_decl_be64enc" "#include <sys/endian.h>
59651.84Schristos"
59661.84Schristosif test "x$ac_cv_have_decl_be64enc" = xyes; then :
59671.84Schristos  ac_have_decl=1
59681.74Schristoselse
59691.84Schristos  ac_have_decl=0
59701.54Swizfi
59711.74Schristos
59721.84Schristoscat >>confdefs.h <<_ACEOF
59731.84Schristos#define HAVE_DECL_BE64ENC $ac_have_decl
59741.84Schristos_ACEOF
59751.84Schristosac_fn_c_check_decl "$LINENO" "le64enc" "ac_cv_have_decl_le64enc" "#include <sys/endian.h>
59761.84Schristos"
59771.84Schristosif test "x$ac_cv_have_decl_le64enc" = xyes; then :
59781.84Schristos  ac_have_decl=1
59791.76Spookaelse
59801.84Schristos  ac_have_decl=0
59811.74Schristosfi
59821.54Swiz
59831.84Schristoscat >>confdefs.h <<_ACEOF
59841.84Schristos#define HAVE_DECL_LE64ENC $ac_have_decl
59851.84Schristos_ACEOF
59861.84Schristosac_fn_c_check_decl "$LINENO" "be64dec" "ac_cv_have_decl_be64dec" "#include <sys/endian.h>
59871.84Schristos"
59881.84Schristosif test "x$ac_cv_have_decl_be64dec" = xyes; then :
59891.84Schristos  ac_have_decl=1
59901.74Schristoselse
59911.84Schristos  ac_have_decl=0
59921.84Schristosfi
59931.74Schristos
59941.84Schristoscat >>confdefs.h <<_ACEOF
59951.84Schristos#define HAVE_DECL_BE64DEC $ac_have_decl
59961.74Schristos_ACEOF
59971.84Schristosac_fn_c_check_decl "$LINENO" "le64dec" "ac_cv_have_decl_le64dec" "#include <sys/endian.h>
59981.84Schristos"
59991.84Schristosif test "x$ac_cv_have_decl_le64dec" = xyes; then :
60001.84Schristos  ac_have_decl=1
60011.54Swizelse
60021.84Schristos  ac_have_decl=0
60031.74Schristosfi
60041.54Swiz
60051.84Schristoscat >>confdefs.h <<_ACEOF
60061.84Schristos#define HAVE_DECL_LE64DEC $ac_have_decl
60071.84Schristos_ACEOF
60081.84Schristos
60091.74Schristos
60101.84Schristosac_fn_c_check_decl "$LINENO" "fstatvfs" "ac_cv_have_decl_fstatvfs" "#include <sys/statvfs.h>
60111.84Schristos"
60121.84Schristosif test "x$ac_cv_have_decl_fstatvfs" = xyes; then :
60131.84Schristos  ac_have_decl=1
60141.74Schristoselse
60151.84Schristos  ac_have_decl=0
60161.84Schristosfi
60171.61Schristos
60181.84Schristoscat >>confdefs.h <<_ACEOF
60191.84Schristos#define HAVE_DECL_FSTATVFS $ac_have_decl
60201.84Schristos_ACEOF
60211.54Swiz
60221.54Swiz
60231.84Schristosac_fn_c_check_decl "$LINENO" "setgroupent" "ac_cv_have_decl_setgroupent" "
60241.76Spooka#include <sys/types.h>
60251.76Spooka#include <grp.h>
60261.76Spooka#include <pwd.h>
60271.45Sjmc
60281.84Schristos"
60291.84Schristosif test "x$ac_cv_have_decl_setgroupent" = xyes; then :
60301.84Schristos  ac_have_decl=1
60311.74Schristoselse
60321.84Schristos  ac_have_decl=0
60331.1Stvfi
60341.54Swiz
60351.84Schristoscat >>confdefs.h <<_ACEOF
60361.84Schristos#define HAVE_DECL_SETGROUPENT $ac_have_decl
60371.84Schristos_ACEOF
60381.84Schristosac_fn_c_check_decl "$LINENO" "setpassent" "ac_cv_have_decl_setpassent" "
60391.33Sthorpej#include <sys/types.h>
60401.8Stv#include <grp.h>
60411.8Stv#include <pwd.h>
60421.8Stv
60431.84Schristos"
60441.84Schristosif test "x$ac_cv_have_decl_setpassent" = xyes; then :
60451.84Schristos  ac_have_decl=1
60461.8Stvelse
60471.84Schristos  ac_have_decl=0
60481.8Stvfi
60491.8Stv
60501.84Schristoscat >>confdefs.h <<_ACEOF
60511.84Schristos#define HAVE_DECL_SETPASSENT $ac_have_decl
60521.84Schristos_ACEOF
60531.76Spooka
60541.8Stv
60551.4Stv# regcomp() and regexec() are also names of functions in the old V8
60561.4Stv# regexp package.  To avoid them, we need to find out who has regfree().
60571.4Stv
60581.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regfree in -lregex" >&5
60591.84Schristos$as_echo_n "checking for regfree in -lregex... " >&6; }
60601.84Schristosif ${ac_cv_lib_regex_regfree+:} false; then :
60611.84Schristos  $as_echo_n "(cached) " >&6
60621.4Stvelse
60631.4Stv  ac_check_lib_save_LIBS=$LIBS
60641.4StvLIBS="-lregex  $LIBS"
60651.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
60661.84Schristos/* end confdefs.h.  */
60671.4Stv
60681.84Schristos/* Override any GCC internal prototype to avoid an error.
60691.84Schristos   Use char because int might match the return type of a GCC
60701.84Schristos   builtin and then its argument prototype would still apply.  */
60711.4Stv#ifdef __cplusplus
60721.4Stvextern "C"
60731.4Stv#endif
60741.4Stvchar regfree ();
60751.4Stvint
60761.4Stvmain ()
60771.4Stv{
60781.84Schristosreturn regfree ();
60791.4Stv  ;
60801.4Stv  return 0;
60811.4Stv}
60821.4Stv_ACEOF
60831.84Schristosif ac_fn_c_try_link "$LINENO"; then :
60841.4Stv  ac_cv_lib_regex_regfree=yes
60851.4Stvelse
60861.84Schristos  ac_cv_lib_regex_regfree=no
60871.4Stvfi
60881.84Schristosrm -f core conftest.err conftest.$ac_objext \
60891.84Schristos    conftest$ac_exeext conftest.$ac_ext
60901.4StvLIBS=$ac_check_lib_save_LIBS
60911.4Stvfi
60921.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regfree" >&5
60931.84Schristos$as_echo "$ac_cv_lib_regex_regfree" >&6; }
60941.84Schristosif test "x$ac_cv_lib_regex_regfree" = xyes; then :
60951.84Schristos  cat >>confdefs.h <<_ACEOF
60961.4Stv#define HAVE_LIBREGEX 1
60971.84Schristos_ACEOF
60981.4Stv
60991.4Stv  LIBS="-lregex $LIBS"
61001.4Stv
61011.4Stvfi
61021.4Stv
61031.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
61041.84Schristos$as_echo_n "checking for library containing regfree... " >&6; }
61051.84Schristosif ${ac_cv_search_regfree+:} false; then :
61061.84Schristos  $as_echo_n "(cached) " >&6
61071.1Stvelse
61081.1Stv  ac_func_search_save_LIBS=$LIBS
61091.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
61101.84Schristos/* end confdefs.h.  */
61111.1Stv
61121.84Schristos/* Override any GCC internal prototype to avoid an error.
61131.84Schristos   Use char because int might match the return type of a GCC
61141.84Schristos   builtin and then its argument prototype would still apply.  */
61151.1Stv#ifdef __cplusplus
61161.1Stvextern "C"
61171.1Stv#endif
61181.4Stvchar regfree ();
61191.1Stvint
61201.1Stvmain ()
61211.1Stv{
61221.84Schristosreturn regfree ();
61231.1Stv  ;
61241.1Stv  return 0;
61251.1Stv}
61261.1Stv_ACEOF
61271.84Schristosfor ac_lib in '' rx posix; do
61281.84Schristos  if test -z "$ac_lib"; then
61291.84Schristos    ac_res="none required"
61301.84Schristos  else
61311.84Schristos    ac_res=-l$ac_lib
61321.66Stsutsui    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
61331.84Schristos  fi
61341.84Schristos  if ac_fn_c_try_link "$LINENO"; then :
61351.84Schristos  ac_cv_search_regfree=$ac_res
61361.84Schristosfi
61371.84Schristosrm -f core conftest.err conftest.$ac_objext \
61381.84Schristos    conftest$ac_exeext
61391.84Schristos  if ${ac_cv_search_regfree+:} false; then :
61401.84Schristos  break
61411.84Schristosfi
61421.84Schristosdone
61431.84Schristosif ${ac_cv_search_regfree+:} false; then :
61441.1Stv
61451.66Stsutsuielse
61461.84Schristos  ac_cv_search_regfree=no
61471.1Stvfi
61481.84Schristosrm conftest.$ac_ext
61491.1StvLIBS=$ac_func_search_save_LIBS
61501.1Stvfi
61511.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
61521.84Schristos$as_echo "$ac_cv_search_regfree" >&6; }
61531.84Schristosac_res=$ac_cv_search_regfree
61541.84Schristosif test "$ac_res" != no; then :
61551.84Schristos  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
61561.1Stv
61571.1Stvfi
61581.1Stv
61591.84Schristos
61601.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
61611.84Schristos$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
61621.84Schristosif ${ac_cv_lib_rt_clock_gettime+:} false; then :
61631.84Schristos  $as_echo_n "(cached) " >&6
61641.78Sjmcneillelse
61651.78Sjmcneill  ac_check_lib_save_LIBS=$LIBS
61661.78SjmcneillLIBS="-lrt  $LIBS"
61671.84Schristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext
61681.84Schristos/* end confdefs.h.  */
61691.78Sjmcneill
61701.84Schristos/* Override any GCC internal prototype to avoid an error.
61711.84Schristos   Use char because int might match the return type of a GCC
61721.84Schristos   builtin and then its argument prototype would still apply.  */
61731.78Sjmcneill#ifdef __cplusplus
61741.78Sjmcneillextern "C"
61751.78Sjmcneill#endif
61761.78Sjmcneillchar clock_gettime ();
61771.78Sjmcneillint
61781.78Sjmcneillmain ()
61791.78Sjmcneill{
61801.84Schristosreturn clock_gettime ();
61811.78Sjmcneill  ;
61821.78Sjmcneill  return 0;
61831.78Sjmcneill}
61841.78Sjmcneill_ACEOF
61851.84Schristosif ac_fn_c_try_link "$LINENO"; then :
61861.78Sjmcneill  ac_cv_lib_rt_clock_gettime=yes
61871.78Sjmcneillelse
61881.84Schristos  ac_cv_lib_rt_clock_gettime=no
61891.78Sjmcneillfi
61901.84Schristosrm -f core conftest.err conftest.$ac_objext \
61911.84Schristos    conftest$ac_exeext conftest.$ac_ext
61921.78SjmcneillLIBS=$ac_check_lib_save_LIBS
61931.78Sjmcneillfi
61941.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
61951.84Schristos$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
61961.84Schristosif test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
61971.84Schristos  cat >>confdefs.h <<_ACEOF
61981.78Sjmcneill#define HAVE_LIBRT 1
61991.84Schristos_ACEOF
62001.78Sjmcneill
62011.78Sjmcneill  LIBS="-lrt $LIBS"
62021.78Sjmcneill
62031.78Sjmcneillfi
62041.78Sjmcneill
62051.84Schristos
62061.76Spookafor ac_func in fparseln
62071.84Schristosdo :
62081.84Schristos  ac_fn_c_check_func "$LINENO" "fparseln" "ac_cv_func_fparseln"
62091.84Schristosif test "x$ac_cv_func_fparseln" = xyes; then :
62101.84Schristos  cat >>confdefs.h <<_ACEOF
62111.84Schristos#define HAVE_FPARSELN 1
62121.84Schristos_ACEOF
62131.84Schristos
62141.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fparseln seems to work" >&5
62151.84Schristos$as_echo_n "checking if fparseln seems to work... " >&6; }
62161.84Schristos    if test "$cross_compiling" = yes; then :
62171.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking farseln" >&5
62181.84Schristos$as_echo "$as_me: WARNING: cross compiling: not checking farseln" >&2;}
62191.74Schristos
62201.84Schristoselse
62211.84Schristos  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62221.84Schristos/* end confdefs.h.  */
62231.68Stnozaki
62241.68Stnozaki#define _NETBSD_SOURCE
62251.68Stnozaki#include <stdio.h>
62261.68Stnozaki#include <stdlib.h>
62271.68Stnozaki#define CONFTEST	"conftest.fparseln"
62281.68Stnozaki#define COMMENT		'#'
62291.68Stnozakiint
62301.68Stnozakimain(void)
62311.68Stnozaki{
62321.68Stnozaki	static const char delim[3] = { '\0', '\0', COMMENT };
62331.68Stnozaki	FILE *fp;
62341.68Stnozaki	char *ptr;
62351.68Stnozaki	fp = fopen(CONFTEST, "w+");
62361.68Stnozaki	if (fp != NULL) {
62371.68Stnozaki		unlink(CONFTEST);
62381.68Stnozaki		ungetc(COMMENT, fp);
62391.68Stnozaki		ptr = fparseln(fp, NULL, NULL, delim,
62401.68Stnozaki		    FPARSELN_UNESCALL);
62411.68Stnozaki		fclose(fp);
62421.68Stnozaki		if (ptr == NULL)
62431.68Stnozaki			exit(0);
62441.68Stnozaki	}
62451.68Stnozaki	exit(1);
62461.68Stnozaki}
62471.68Stnozaki
62481.68Stnozaki_ACEOF
62491.84Schristosif ac_fn_c_try_run "$LINENO"; then :
62501.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62511.84Schristos$as_echo "yes" >&6; }
62521.84Schristoselse
62531.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62541.84Schristos$as_echo "no" >&6; }
62551.84Schristos
62561.84Schristos$as_echo "#define BROKEN_FPARSELN 1" >>confdefs.h
62571.68Stnozaki
62581.68Stnozakifi
62591.84Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
62601.84Schristos  conftest.$ac_objext conftest.beam conftest.$ac_ext
62611.68Stnozakifi
62621.68Stnozaki
62631.84Schristos
62641.68Stnozakifi
62651.68Stnozakidone
62661.68Stnozaki
62671.84Schristos
62681.72Sapb# Variables substituted via @VARNAME@ in defs.mk.in
62691.72SapbHAVE_PTHREAD_H=$ac_cv_header_pthread_h
62701.72Sapb
62711.84Schristos
62721.1Stvcat >confcache <<\_ACEOF
62731.1Stv# This file is a shell script that caches the results of configure
62741.1Stv# tests run on this system so they can be shared between configure
62751.1Stv# scripts and configure runs, see configure's option --config-cache.
62761.1Stv# It is not useful on other systems.  If it contains results you don't
62771.1Stv# want to keep, you may remove or edit it.
62781.1Stv#
62791.1Stv# config.status only pays attention to the cache file if you give it
62801.1Stv# the --recheck option to rerun configure.
62811.1Stv#
62821.84Schristos# `ac_cv_env_foo' variables (set or unset) will be overridden when
62831.1Stv# loading this file, other *unset* `ac_cv_foo' will be assigned the
62841.1Stv# following values.
62851.1Stv
62861.1Stv_ACEOF
62871.1Stv
62881.1Stv# The following way of writing the cache mishandles newlines in values,
62891.1Stv# but we know of no workaround that is simple, portable, and efficient.
62901.84Schristos# So, we kill variables containing newlines.
62911.84Schristos# Ultrix sh set writes to stderr and can't be redirected directly,
62921.84Schristos# and sets the high bit in the cache file unless we assign to the vars.
62931.84Schristos(
62941.84Schristos  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
62951.84Schristos    eval ac_val=\$$ac_var
62961.84Schristos    case $ac_val in #(
62971.84Schristos    *${as_nl}*)
62981.84Schristos      case $ac_var in #(
62991.84Schristos      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
63001.84Schristos$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
63011.84Schristos      esac
63021.84Schristos      case $ac_var in #(
63031.84Schristos      _ | IFS | as_nl) ;; #(
63041.84Schristos      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
63051.84Schristos      *) { eval $ac_var=; unset $ac_var;} ;;
63061.84Schristos      esac ;;
63071.84Schristos    esac
63081.84Schristos  done
63091.84Schristos
63101.65Schristos  (set) 2>&1 |
63111.84Schristos    case $as_nl`(ac_space=' '; set) 2>&1` in #(
63121.84Schristos    *${as_nl}ac_space=\ *)
63131.84Schristos      # `set' does not quote correctly, so add quotes: double-quote
63141.84Schristos      # substitution turns \\\\ into \\, and sed turns \\ into \.
63151.65Schristos      sed -n \
63161.84Schristos	"s/'/'\\\\''/g;
63171.84Schristos	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
63181.84Schristos      ;; #(
63191.65Schristos    *)
63201.65Schristos      # `set' quotes correctly as required by POSIX, so do not add quotes.
63211.84Schristos      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
63221.65Schristos      ;;
63231.84Schristos    esac |
63241.84Schristos    sort
63251.84Schristos) |
63261.65Schristos  sed '
63271.84Schristos     /^ac_cv_env_/b end
63281.65Schristos     t clear
63291.84Schristos     :clear
63301.65Schristos     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
63311.65Schristos     t end
63321.84Schristos     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
63331.84Schristos     :end' >>confcache
63341.84Schristosif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
63351.84Schristos  if test -w "$cache_file"; then
63361.84Schristos    if test "x$cache_file" != "x/dev/null"; then
63371.84Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
63381.84Schristos$as_echo "$as_me: updating cache $cache_file" >&6;}
63391.84Schristos      if test ! -f "$cache_file" || test -h "$cache_file"; then
63401.84Schristos	cat confcache >"$cache_file"
63411.84Schristos      else
63421.84Schristos        case $cache_file in #(
63431.84Schristos        */* | ?:*)
63441.84Schristos	  mv -f confcache "$cache_file"$$ &&
63451.84Schristos	  mv -f "$cache_file"$$ "$cache_file" ;; #(
63461.84Schristos        *)
63471.84Schristos	  mv -f confcache "$cache_file" ;;
63481.84Schristos	esac
63491.84Schristos      fi
63501.84Schristos    fi
63511.65Schristos  else
63521.84Schristos    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
63531.84Schristos$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
63541.65Schristos  fi
63551.65Schristosfi
63561.66Stsutsuirm -f confcache
63571.65Schristos
63581.66Stsutsuitest "x$prefix" = xNONE && prefix=$ac_default_prefix
63591.66Stsutsui# Let make expand exec_prefix.
63601.66Stsutsuitest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
63611.65Schristos
63621.84SchristosDEFS=-DHAVE_CONFIG_H
63631.84Schristos
63641.84Schristosac_libobjs=
63651.84Schristosac_ltlibobjs=
63661.84SchristosU=
63671.84Schristosfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
63681.84Schristos  # 1. Remove the extension, and $U if already installed.
63691.84Schristos  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
63701.84Schristos  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
63711.84Schristos  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
63721.84Schristos  #    will be set to the directory where LIBOBJS objects are built.
63731.84Schristos  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
63741.84Schristos  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
63751.84Schristosdone
63761.84SchristosLIBOBJS=$ac_libobjs
63771.84Schristos
63781.84SchristosLTLIBOBJS=$ac_ltlibobjs
63791.84Schristos
63801.84Schristos
63811.76Spooka
63821.74Schristos
63831.84Schristos: "${CONFIG_STATUS=./config.status}"
63841.84Schristosac_write_fail=0
63851.66Stsutsuiac_clean_files_save=$ac_clean_files
63861.66Stsutsuiac_clean_files="$ac_clean_files $CONFIG_STATUS"
63871.84Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
63881.84Schristos$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
63891.84Schristosas_write_fail=0
63901.84Schristoscat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
63911.66Stsutsui#! $SHELL
63921.84Schristos# Generated by $as_me.
63931.66Stsutsui# Run this file to recreate the current configuration.
63941.66Stsutsui# Compiler output produced by configure, useful for debugging
63951.66Stsutsui# configure, is in config.log if it exists.
63961.65Schristos
63971.66Stsutsuidebug=false
63981.84Schristosac_cs_recheck=false
63991.84Schristosac_cs_silent=false
64001.84Schristos
64011.76SpookaSHELL=\${CONFIG_SHELL-$SHELL}
64021.84Schristosexport SHELL
64031.84Schristos_ASEOF
64041.84Schristoscat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
64051.84Schristos## -------------------- ##
64061.84Schristos## M4sh Initialization. ##
64071.84Schristos## -------------------- ##
64081.84Schristos
64091.84Schristos# Be more Bourne compatible
64101.84SchristosDUALCASE=1; export DUALCASE # for MKS sh
64111.84Schristosif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
64121.84Schristos  emulate sh
64131.84Schristos  NULLCMD=:
64141.84Schristos  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
64151.84Schristos  # is contrary to our usage.  Disable this feature.
64161.84Schristos  alias -g '${1+"$@"}'='"$@"'
64171.84Schristos  setopt NO_GLOB_SUBST
64181.84Schristoselse
64191.84Schristos  case `(set -o) 2>/dev/null` in #(
64201.84Schristos  *posix*) :
64211.84Schristos    set -o posix ;; #(
64221.84Schristos  *) :
64231.84Schristos     ;;
64241.84Schristosesac
64251.84Schristosfi
64261.84Schristos
64271.76Spooka
64281.84Schristosas_nl='
64291.84Schristos'
64301.84Schristosexport as_nl
64311.84Schristos# Printing a long string crashes Solaris 7 /usr/bin/printf.
64321.84Schristosas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
64331.84Schristosas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
64341.84Schristosas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
64351.84Schristos# Prefer a ksh shell builtin over an external printf program on Solaris,
64361.84Schristos# but without wasting forks for bash or zsh.
64371.84Schristosif test -z "$BASH_VERSION$ZSH_VERSION" \
64381.84Schristos    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
64391.84Schristos  as_echo='print -r --'
64401.84Schristos  as_echo_n='print -rn --'
64411.84Schristoselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
64421.84Schristos  as_echo='printf %s\n'
64431.84Schristos  as_echo_n='printf %s'
64441.84Schristoselse
64451.84Schristos  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
64461.84Schristos    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
64471.84Schristos    as_echo_n='/usr/ucb/echo -n'
64481.84Schristos  else
64491.84Schristos    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64501.84Schristos    as_echo_n_body='eval
64511.84Schristos      arg=$1;
64521.84Schristos      case $arg in #(
64531.84Schristos      *"$as_nl"*)
64541.84Schristos	expr "X$arg" : "X\\(.*\\)$as_nl";
64551.84Schristos	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64561.84Schristos      esac;
64571.84Schristos      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64581.84Schristos    '
64591.84Schristos    export as_echo_n_body
64601.84Schristos    as_echo_n='sh -c $as_echo_n_body as_echo'
64611.84Schristos  fi
64621.84Schristos  export as_echo_body
64631.84Schristos  as_echo='sh -c $as_echo_body as_echo'
64641.84Schristosfi
64651.74Schristos
64661.84Schristos# The user is always right.
64671.84Schristosif test "${PATH_SEPARATOR+set}" != set; then
64681.84Schristos  PATH_SEPARATOR=:
64691.84Schristos  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
64701.84Schristos    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
64711.84Schristos      PATH_SEPARATOR=';'
64721.84Schristos  }
64731.74Schristosfi
64741.65Schristos
64751.74Schristos
64761.84Schristos# IFS
64771.84Schristos# We need space, tab and new line, in precisely that order.  Quoting is
64781.84Schristos# there to prevent editors from complaining about space-tab.
64791.84Schristos# (If _AS_PATH_WALK were called with IFS unset, it would disable word
64801.84Schristos# splitting by setting IFS to empty value.)
64811.84SchristosIFS=" ""	$as_nl"
64821.84Schristos
64831.84Schristos# Find who we are.  Look in the path if we contain no directory separator.
64841.84Schristosas_myself=
64851.84Schristoscase $0 in #((
64861.84Schristos  *[\\/]* ) as_myself=$0 ;;
64871.84Schristos  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
64881.84Schristosfor as_dir in $PATH
64891.84Schristosdo
64901.84Schristos  IFS=$as_save_IFS
64911.84Schristos  test -z "$as_dir" && as_dir=.
64921.84Schristos    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
64931.84Schristos  done
64941.84SchristosIFS=$as_save_IFS
64951.84Schristos
64961.84Schristos     ;;
64971.84Schristosesac
64981.84Schristos# We did not find ourselves, most probably we were run as `sh COMMAND'
64991.84Schristos# in which case we are not to be found in the path.
65001.84Schristosif test "x$as_myself" = x; then
65011.84Schristos  as_myself=$0
65021.84Schristosfi
65031.84Schristosif test ! -f "$as_myself"; then
65041.84Schristos  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
65051.84Schristos  exit 1
65061.84Schristosfi
65071.84Schristos
65081.84Schristos# Unset variables that we do not need and which cause bugs (e.g. in
65091.84Schristos# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
65101.84Schristos# suppresses any "Segmentation fault" message there.  '((' could
65111.84Schristos# trigger a bug in pdksh 5.2.14.
65121.84Schristosfor as_var in BASH_ENV ENV MAIL MAILPATH
65131.84Schristosdo eval test x\${$as_var+set} = xset \
65141.84Schristos  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
65151.84Schristosdone
65161.84SchristosPS1='$ '
65171.84SchristosPS2='> '
65181.84SchristosPS4='+ '
65191.84Schristos
65201.84Schristos# NLS nuisances.
65211.84SchristosLC_ALL=C
65221.84Schristosexport LC_ALL
65231.84SchristosLANGUAGE=C
65241.84Schristosexport LANGUAGE
65251.84Schristos
65261.84Schristos# CDPATH.
65271.84Schristos(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
65281.84Schristos
65291.84Schristos
65301.84Schristos# as_fn_error STATUS ERROR [LINENO LOG_FD]
65311.84Schristos# ----------------------------------------
65321.84Schristos# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
65331.84Schristos# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
65341.84Schristos# script with STATUS, using 1 if that was 0.
65351.84Schristosas_fn_error ()
65361.84Schristos{
65371.84Schristos  as_status=$1; test $as_status -eq 0 && as_status=1
65381.84Schristos  if test "$4"; then
65391.84Schristos    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
65401.84Schristos    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
65411.84Schristos  fi
65421.84Schristos  $as_echo "$as_me: error: $2" >&2
65431.84Schristos  as_fn_exit $as_status
65441.84Schristos} # as_fn_error
65451.84Schristos
65461.84Schristos
65471.84Schristos# as_fn_set_status STATUS
65481.84Schristos# -----------------------
65491.84Schristos# Set $? to STATUS, without forking.
65501.84Schristosas_fn_set_status ()
65511.84Schristos{
65521.84Schristos  return $1
65531.84Schristos} # as_fn_set_status
65541.84Schristos
65551.84Schristos# as_fn_exit STATUS
65561.84Schristos# -----------------
65571.84Schristos# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
65581.84Schristosas_fn_exit ()
65591.84Schristos{
65601.84Schristos  set +e
65611.84Schristos  as_fn_set_status $1
65621.84Schristos  exit $1
65631.84Schristos} # as_fn_exit
65641.84Schristos
65651.84Schristos# as_fn_unset VAR
65661.84Schristos# ---------------
65671.84Schristos# Portably unset VAR.
65681.84Schristosas_fn_unset ()
65691.84Schristos{
65701.84Schristos  { eval $1=; unset $1;}
65711.84Schristos}
65721.84Schristosas_unset=as_fn_unset
65731.84Schristos# as_fn_append VAR VALUE
65741.84Schristos# ----------------------
65751.84Schristos# Append the text in VALUE to the end of the definition contained in VAR. Take
65761.84Schristos# advantage of any shell optimizations that allow amortized linear growth over
65771.84Schristos# repeated appends, instead of the typical quadratic growth present in naive
65781.84Schristos# implementations.
65791.84Schristosif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
65801.84Schristos  eval 'as_fn_append ()
65811.84Schristos  {
65821.84Schristos    eval $1+=\$2
65831.84Schristos  }'
65841.84Schristoselse
65851.84Schristos  as_fn_append ()
65861.84Schristos  {
65871.84Schristos    eval $1=\$$1\$2
65881.84Schristos  }
65891.84Schristosfi # as_fn_append
65901.84Schristos
65911.84Schristos# as_fn_arith ARG...
65921.84Schristos# ------------------
65931.84Schristos# Perform arithmetic evaluation on the ARGs, and store the result in the
65941.84Schristos# global $as_val. Take advantage of shells that can avoid forks. The arguments
65951.84Schristos# must be portable across $(()) and expr.
65961.84Schristosif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
65971.84Schristos  eval 'as_fn_arith ()
65981.84Schristos  {
65991.84Schristos    as_val=$(( $* ))
66001.84Schristos  }'
66011.84Schristoselse
66021.84Schristos  as_fn_arith ()
66031.84Schristos  {
66041.84Schristos    as_val=`expr "$@" || test $? -eq 1`
66051.84Schristos  }
66061.84Schristosfi # as_fn_arith
66071.84Schristos
66081.84Schristos
66091.84Schristosif expr a : '\(a\)' >/dev/null 2>&1 &&
66101.84Schristos   test "X`expr 00001 : '.*\(...\)'`" = X001; then
66111.1Stv  as_expr=expr
66121.1Stvelse
66131.1Stv  as_expr=false
66141.1Stvfi
66151.1Stv
66161.84Schristosif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
66171.84Schristos  as_basename=basename
66181.84Schristoselse
66191.84Schristos  as_basename=false
66201.84Schristosfi
66211.84Schristos
66221.84Schristosif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
66231.84Schristos  as_dirname=dirname
66241.84Schristoselse
66251.84Schristos  as_dirname=false
66261.84Schristosfi
66271.84Schristos
66281.84Schristosas_me=`$as_basename -- "$0" ||
66291.84Schristos$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66301.84Schristos	 X"$0" : 'X\(//\)$' \| \
66311.84Schristos	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
66321.84Schristos$as_echo X/"$0" |
66331.84Schristos    sed '/^.*\/\([^/][^/]*\)\/*$/{
66341.84Schristos	    s//\1/
66351.84Schristos	    q
66361.84Schristos	  }
66371.84Schristos	  /^X\/\(\/\/\)$/{
66381.84Schristos	    s//\1/
66391.84Schristos	    q
66401.84Schristos	  }
66411.84Schristos	  /^X\/\(\/\).*/{
66421.84Schristos	    s//\1/
66431.84Schristos	    q
66441.84Schristos	  }
66451.84Schristos	  s/.*/./; q'`
66461.84Schristos
66471.84Schristos# Avoid depending upon Character Ranges.
66481.84Schristosas_cr_letters='abcdefghijklmnopqrstuvwxyz'
66491.84Schristosas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
66501.84Schristosas_cr_Letters=$as_cr_letters$as_cr_LETTERS
66511.84Schristosas_cr_digits='0123456789'
66521.84Schristosas_cr_alnum=$as_cr_Letters$as_cr_digits
66531.84Schristos
66541.84SchristosECHO_C= ECHO_N= ECHO_T=
66551.84Schristoscase `echo -n x` in #(((((
66561.84Schristos-n*)
66571.84Schristos  case `echo 'xy\c'` in
66581.84Schristos  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
66591.84Schristos  xy)  ECHO_C='\c';;
66601.84Schristos  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
66611.84Schristos       ECHO_T='	';;
66621.84Schristos  esac;;
66631.84Schristos*)
66641.84Schristos  ECHO_N='-n';;
66651.84Schristosesac
66661.84Schristos
66671.1Stvrm -f conf$$ conf$$.exe conf$$.file
66681.84Schristosif test -d conf$$.dir; then
66691.84Schristos  rm -f conf$$.dir/conf$$.file
66701.84Schristoselse
66711.84Schristos  rm -f conf$$.dir
66721.84Schristos  mkdir conf$$.dir 2>/dev/null
66731.84Schristosfi
66741.84Schristosif (echo >conf$$.file) 2>/dev/null; then
66751.84Schristos  if ln -s conf$$.file conf$$ 2>/dev/null; then
66761.84Schristos    as_ln_s='ln -s'
66771.84Schristos    # ... but there are two gotchas:
66781.84Schristos    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
66791.84Schristos    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
66801.84Schristos    # In both cases, we have to default to `cp -pR'.
66811.84Schristos    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
66821.84Schristos      as_ln_s='cp -pR'
66831.84Schristos  elif ln conf$$.file conf$$ 2>/dev/null; then
66841.84Schristos    as_ln_s=ln
66851.76Spooka  else
66861.84Schristos    as_ln_s='cp -pR'
66871.66Stsutsui  fi
66881.1Stvelse
66891.84Schristos  as_ln_s='cp -pR'
66901.1Stvfi
66911.84Schristosrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
66921.84Schristosrmdir conf$$.dir 2>/dev/null
66931.84Schristos
66941.84Schristos
66951.84Schristos# as_fn_mkdir_p
66961.84Schristos# -------------
66971.84Schristos# Create "$as_dir" as a directory, including parents if necessary.
66981.84Schristosas_fn_mkdir_p ()
66991.84Schristos{
67001.84Schristos
67011.84Schristos  case $as_dir in #(
67021.84Schristos  -*) as_dir=./$as_dir;;
67031.84Schristos  esac
67041.84Schristos  test -d "$as_dir" || eval $as_mkdir_p || {
67051.84Schristos    as_dirs=
67061.84Schristos    while :; do
67071.84Schristos      case $as_dir in #(
67081.84Schristos      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
67091.84Schristos      *) as_qdir=$as_dir;;
67101.84Schristos      esac
67111.84Schristos      as_dirs="'$as_qdir' $as_dirs"
67121.84Schristos      as_dir=`$as_dirname -- "$as_dir" ||
67131.84Schristos$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67141.84Schristos	 X"$as_dir" : 'X\(//\)[^/]' \| \
67151.84Schristos	 X"$as_dir" : 'X\(//\)$' \| \
67161.84Schristos	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
67171.84Schristos$as_echo X"$as_dir" |
67181.84Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
67191.84Schristos	    s//\1/
67201.84Schristos	    q
67211.84Schristos	  }
67221.84Schristos	  /^X\(\/\/\)[^/].*/{
67231.84Schristos	    s//\1/
67241.84Schristos	    q
67251.84Schristos	  }
67261.84Schristos	  /^X\(\/\/\)$/{
67271.84Schristos	    s//\1/
67281.84Schristos	    q
67291.84Schristos	  }
67301.84Schristos	  /^X\(\/\).*/{
67311.84Schristos	    s//\1/
67321.84Schristos	    q
67331.84Schristos	  }
67341.84Schristos	  s/.*/./; q'`
67351.84Schristos      test -d "$as_dir" && break
67361.84Schristos    done
67371.84Schristos    test -z "$as_dirs" || eval "mkdir $as_dirs"
67381.84Schristos  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
67391.1Stv
67401.63Sapb
67411.84Schristos} # as_fn_mkdir_p
67421.84Schristosif mkdir -p . 2>/dev/null; then
67431.84Schristos  as_mkdir_p='mkdir -p "$as_dir"'
67441.61Schristoselse
67451.84Schristos  test -d ./-p && rmdir ./-p
67461.84Schristos  as_mkdir_p=false
67471.61Schristosfi
67481.61Schristos
67491.1Stv
67501.84Schristos# as_fn_executable_p FILE
67511.84Schristos# -----------------------
67521.84Schristos# Test if FILE is an executable regular file.
67531.84Schristosas_fn_executable_p ()
67541.84Schristos{
67551.84Schristos  test -f "$1" && test -x "$1"
67561.84Schristos} # as_fn_executable_p
67571.84Schristosas_test_x='test -x'
67581.84Schristosas_executable_p=as_fn_executable_p
67591.84Schristos
67601.84Schristos# Sed expression to map a string onto a valid CPP name.
67611.84Schristosas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
67621.84Schristos
67631.84Schristos# Sed expression to map a string onto a valid variable name.
67641.84Schristosas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
67651.1Stv
67661.1Stv
67671.1Stvexec 6>&1
67681.84Schristos## ----------------------------------- ##
67691.84Schristos## Main body of $CONFIG_STATUS script. ##
67701.84Schristos## ----------------------------------- ##
67711.84Schristos_ASEOF
67721.84Schristostest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
67731.84Schristos
67741.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
67751.84Schristos# Save the log message, to keep $0 and so on meaningful, and to
67761.84Schristos# report actual input values of CONFIG_FILES etc. instead of their
67771.84Schristos# values after options handling.
67781.84Schristosac_log="
67791.84SchristosThis file was extended by libnbcompat $as_me noversion, which was
67801.84Schristosgenerated by GNU Autoconf 2.69.  Invocation command line was
67811.84Schristos
67821.84Schristos  CONFIG_FILES    = $CONFIG_FILES
67831.84Schristos  CONFIG_HEADERS  = $CONFIG_HEADERS
67841.84Schristos  CONFIG_LINKS    = $CONFIG_LINKS
67851.84Schristos  CONFIG_COMMANDS = $CONFIG_COMMANDS
67861.84Schristos  $ $0 $@
67871.84Schristos
67881.84Schristoson `(hostname || uname -n) 2>/dev/null | sed 1q`
67891.84Schristos"
67901.1Stv
67911.66Stsutsui_ACEOF
67921.1Stv
67931.84Schristoscase $ac_config_files in *"
67941.84Schristos"*) set x $ac_config_files; shift; ac_config_files=$*;;
67951.84Schristosesac
67961.1Stv
67971.84Schristoscase $ac_config_headers in *"
67981.84Schristos"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
67991.84Schristosesac
68001.1Stv
68011.1Stv
68021.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
68031.84Schristos# Files that config.status was made for.
68041.84Schristosconfig_files="$ac_config_files"
68051.84Schristosconfig_headers="$ac_config_headers"
68061.1Stv
68071.84Schristos_ACEOF
68081.1Stv
68091.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
68101.1Stvac_cs_usage="\
68111.84Schristos\`$as_me' instantiates files and other configuration actions
68121.84Schristosfrom templates according to the current configuration.  Unless the files
68131.84Schristosand actions are specified as TAGs, all are instantiated by default.
68141.1Stv
68151.84SchristosUsage: $0 [OPTION]... [TAG]...
68161.1Stv
68171.1Stv  -h, --help       print this help, then exit
68181.84Schristos  -V, --version    print version number and configuration settings, then exit
68191.84Schristos      --config     print configuration, then exit
68201.84Schristos  -q, --quiet, --silent
68211.84Schristos                   do not print progress messages
68221.1Stv  -d, --debug      don't remove temporary files
68231.1Stv      --recheck    update $as_me by reconfiguring in the same conditions
68241.84Schristos      --file=FILE[:TEMPLATE]
68251.66Stsutsui                   instantiate the configuration file FILE
68261.84Schristos      --header=FILE[:TEMPLATE]
68271.66Stsutsui                   instantiate the configuration header FILE
68281.1Stv
68291.1StvConfiguration files:
68301.1Stv$config_files
68311.1Stv
68321.1StvConfiguration headers:
68331.1Stv$config_headers
68341.1Stv
68351.84SchristosReport bugs to <lib-bug-people@NetBSD.org>."
68361.1Stv
68371.84Schristos_ACEOF
68381.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
68391.84Schristosac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
68401.1Stvac_cs_version="\\
68411.1Stvlibnbcompat config.status noversion
68421.84Schristosconfigured by $0, generated by GNU Autoconf 2.69,
68431.84Schristos  with options \\"\$ac_cs_config\\"
68441.1Stv
68451.84SchristosCopyright (C) 2012 Free Software Foundation, Inc.
68461.1StvThis config.status script is free software; the Free Software Foundation
68471.1Stvgives unlimited permission to copy, distribute and modify it."
68481.1Stv
68491.84Schristosac_pwd='$ac_pwd'
68501.84Schristossrcdir='$srcdir'
68511.84Schristostest -n "\$AWK" || AWK=awk
68521.84Schristos_ACEOF
68531.84Schristos
68541.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
68551.84Schristos# The default lists apply if the user does not specify any file.
68561.1Stvac_need_defaults=:
68571.1Stvwhile test $# != 0
68581.1Stvdo
68591.1Stv  case $1 in
68601.84Schristos  --*=?*)
68611.84Schristos    ac_option=`expr "X$1" : 'X\([^=]*\)='`
68621.84Schristos    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
68631.84Schristos    ac_shift=:
68641.84Schristos    ;;
68651.84Schristos  --*=)
68661.84Schristos    ac_option=`expr "X$1" : 'X\([^=]*\)='`
68671.84Schristos    ac_optarg=
68681.84Schristos    ac_shift=:
68691.84Schristos    ;;
68701.84Schristos  *)
68711.84Schristos    ac_option=$1
68721.84Schristos    ac_optarg=$2
68731.84Schristos    ac_shift=shift
68741.1Stv    ;;
68751.1Stv  esac
68761.1Stv
68771.84Schristos  case $ac_option in
68781.1Stv  # Handling of the options.
68791.1Stv  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
68801.84Schristos    ac_cs_recheck=: ;;
68811.84Schristos  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
68821.84Schristos    $as_echo "$ac_cs_version"; exit ;;
68831.84Schristos  --config | --confi | --conf | --con | --co | --c )
68841.84Schristos    $as_echo "$ac_cs_config"; exit ;;
68851.84Schristos  --debug | --debu | --deb | --de | --d | -d )
68861.1Stv    debug=: ;;
68871.1Stv  --file | --fil | --fi | --f )
68881.84Schristos    $ac_shift
68891.84Schristos    case $ac_optarg in
68901.84Schristos    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
68911.84Schristos    '') as_fn_error $? "missing file argument" ;;
68921.84Schristos    esac
68931.84Schristos    as_fn_append CONFIG_FILES " '$ac_optarg'"
68941.1Stv    ac_need_defaults=false;;
68951.1Stv  --header | --heade | --head | --hea )
68961.84Schristos    $ac_shift
68971.84Schristos    case $ac_optarg in
68981.84Schristos    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
68991.84Schristos    esac
69001.84Schristos    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
69011.1Stv    ac_need_defaults=false;;
69021.84Schristos  --he | --h)
69031.84Schristos    # Conflict between --help and --header
69041.84Schristos    as_fn_error $? "ambiguous option: \`$1'
69051.84SchristosTry \`$0 --help' for more information.";;
69061.84Schristos  --help | --hel | -h )
69071.84Schristos    $as_echo "$ac_cs_usage"; exit ;;
69081.84Schristos  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
69091.84Schristos  | -silent | --silent | --silen | --sile | --sil | --si | --s)
69101.84Schristos    ac_cs_silent=: ;;
69111.1Stv
69121.1Stv  # This is an error.
69131.84Schristos  -*) as_fn_error $? "unrecognized option: \`$1'
69141.84SchristosTry \`$0 --help' for more information." ;;
69151.1Stv
69161.84Schristos  *) as_fn_append ac_config_targets " $1"
69171.84Schristos     ac_need_defaults=false ;;
69181.1Stv
69191.1Stv  esac
69201.1Stv  shift
69211.1Stvdone
69221.1Stv
69231.84Schristosac_configure_extra_args=
69241.84Schristos
69251.84Schristosif $ac_cs_silent; then
69261.84Schristos  exec 6>/dev/null
69271.84Schristos  ac_configure_extra_args="$ac_configure_extra_args --silent"
69281.84Schristosfi
69291.74Schristos
69301.84Schristos_ACEOF
69311.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69321.84Schristosif \$ac_cs_recheck; then
69331.84Schristos  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
69341.84Schristos  shift
69351.84Schristos  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
69361.84Schristos  CONFIG_SHELL='$SHELL'
69371.84Schristos  export CONFIG_SHELL
69381.84Schristos  exec "\$@"
69391.84Schristosfi
69401.1Stv
69411.84Schristos_ACEOF
69421.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69431.84Schristosexec 5>>config.log
69441.84Schristos{
69451.84Schristos  echo
69461.84Schristos  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
69471.84Schristos## Running $as_me. ##
69481.84Schristos_ASBOX
69491.84Schristos  $as_echo "$ac_log"
69501.84Schristos} >&5
69511.1Stv
69521.1Stv_ACEOF
69531.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69541.84Schristos_ACEOF
69551.84Schristos
69561.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69571.1Stv
69581.84Schristos# Handling of arguments.
69591.1Stvfor ac_config_target in $ac_config_targets
69601.1Stvdo
69611.84Schristos  case $ac_config_target in
69621.84Schristos    "nbtool_config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
69631.84Schristos    "defs.mk") CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
69641.84Schristos
69651.84Schristos  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
69661.1Stv  esac
69671.1Stvdone
69681.1Stv
69691.84Schristos
69701.1Stv# If the user did not use the arguments to specify the items to instantiate,
69711.1Stv# then the envvar interface is used.  Set only those that are not.
69721.1Stv# We use the long form for the default assignment because of an extremely
69731.1Stv# bizarre bug on SunOS 4.1.3.
69741.1Stvif $ac_need_defaults; then
69751.1Stv  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
69761.1Stv  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
69771.1Stvfi
69781.1Stv
69791.84Schristos# Have a temporary directory for convenience.  Make it in the build tree
69801.84Schristos# simply because there is no reason against having it here, and in addition,
69811.84Schristos# creating and moving files from /tmp can sometimes cause problems.
69821.84Schristos# Hook for its removal unless debugging.
69831.84Schristos# Note that there is a small window in which the directory will not be cleaned:
69841.84Schristos# after its creation but before its name has been assigned to `$tmp'.
69851.1Stv$debug ||
69861.1Stv{
69871.84Schristos  tmp= ac_tmp=
69881.84Schristos  trap 'exit_status=$?
69891.84Schristos  : "${ac_tmp:=$tmp}"
69901.84Schristos  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
69911.84Schristos' 0
69921.84Schristos  trap 'as_fn_exit 1' 1 2 13 15
69931.1Stv}
69941.84Schristos# Create a (secure) tmp directory for tmp files.
69951.76Spooka
69961.1Stv{
69971.84Schristos  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
69981.84Schristos  test -d "$tmp"
69991.1Stv}  ||
70001.1Stv{
70011.84Schristos  tmp=./conf$$-$RANDOM
70021.84Schristos  (umask 077 && mkdir "$tmp")
70031.84Schristos} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
70041.84Schristosac_tmp=$tmp
70051.1Stv
70061.84Schristos# Set up the scripts for CONFIG_FILES section.
70071.84Schristos# No need to generate them if there are no CONFIG_FILES.
70081.84Schristos# This happens for instance with `./config.status config.h'.
70091.84Schristosif test -n "$CONFIG_FILES"; then
70101.66Stsutsui
70111.66Stsutsui
70121.84Schristosac_cr=`echo X | tr X '\015'`
70131.84Schristos# On cygwin, bash can eat \r inside `` if the user requested igncr.
70141.84Schristos# But we know of no other shell where ac_cr would be empty at this
70151.84Schristos# point, so we can use a bashism as a fallback.
70161.84Schristosif test "x$ac_cr" = x; then
70171.84Schristos  eval ac_cr=\$\'\\r\'
70181.84Schristosfi
70191.84Schristosac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
70201.84Schristosif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
70211.84Schristos  ac_cs_awk_cr='\\r'
70221.84Schristoselse
70231.84Schristos  ac_cs_awk_cr=$ac_cr
70241.84Schristosfi
70251.1Stv
70261.84Schristosecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
70271.84Schristos_ACEOF
70281.65Schristos
70291.65Schristos
70301.84Schristos{
70311.84Schristos  echo "cat >conf$$subs.awk <<_ACEOF" &&
70321.84Schristos  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
70331.84Schristos  echo "_ACEOF"
70341.84Schristos} >conf$$subs.sh ||
70351.84Schristos  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
70361.84Schristosac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
70371.84Schristosac_delim='%!_!# '
70381.84Schristosfor ac_last_try in false false false false false :; do
70391.84Schristos  . ./conf$$subs.sh ||
70401.84Schristos    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
70411.65Schristos
70421.84Schristos  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
70431.84Schristos  if test $ac_delim_n = $ac_delim_num; then
70441.84Schristos    break
70451.84Schristos  elif $ac_last_try; then
70461.84Schristos    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
70471.65Schristos  else
70481.84Schristos    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
70491.1Stv  fi
70501.84Schristosdone
70511.84Schristosrm -f conf$$subs.sh
70521.65Schristos
70531.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70541.84Schristoscat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
70551.84Schristos_ACEOF
70561.84Schristossed -n '
70571.84Schristosh
70581.84Schristoss/^/S["/; s/!.*/"]=/
70591.84Schristosp
70601.84Schristosg
70611.84Schristoss/^[^!]*!//
70621.84Schristos:repl
70631.84Schristost repl
70641.84Schristoss/'"$ac_delim"'$//
70651.84Schristost delim
70661.84Schristos:nl
70671.84Schristosh
70681.84Schristoss/\(.\{148\}\)..*/\1/
70691.84Schristost more1
70701.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
70711.84Schristosp
70721.84Schristosn
70731.84Schristosb repl
70741.84Schristos:more1
70751.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/"\\/
70761.84Schristosp
70771.84Schristosg
70781.84Schristoss/.\{148\}//
70791.84Schristost nl
70801.84Schristos:delim
70811.84Schristosh
70821.84Schristoss/\(.\{148\}\)..*/\1/
70831.84Schristost more2
70841.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/"/
70851.84Schristosp
70861.84Schristosb
70871.84Schristos:more2
70881.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/"\\/
70891.84Schristosp
70901.84Schristosg
70911.84Schristoss/.\{148\}//
70921.84Schristost delim
70931.84Schristos' <conf$$subs.awk | sed '
70941.84Schristos/^[^""]/{
70951.84Schristos  N
70961.84Schristos  s/\n//
70971.84Schristos}
70981.84Schristos' >>$CONFIG_STATUS || ac_write_fail=1
70991.84Schristosrm -f conf$$subs.awk
71001.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
71011.84Schristos_ACAWK
71021.84Schristoscat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
71031.84Schristos  for (key in S) S_is_set[key] = 1
71041.84Schristos  FS = ""
71051.84Schristos
71061.84Schristos}
71071.84Schristos{
71081.84Schristos  line = $ 0
71091.84Schristos  nfields = split(line, field, "@")
71101.84Schristos  substed = 0
71111.84Schristos  len = length(field[1])
71121.84Schristos  for (i = 2; i < nfields; i++) {
71131.84Schristos    key = field[i]
71141.84Schristos    keylen = length(key)
71151.84Schristos    if (S_is_set[key]) {
71161.84Schristos      value = S[key]
71171.84Schristos      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
71181.84Schristos      len += length(value) + length(field[++i])
71191.84Schristos      substed = 1
71201.84Schristos    } else
71211.84Schristos      len += 1 + keylen
71221.84Schristos  }
71231.84Schristos
71241.84Schristos  print line
71251.84Schristos}
71261.84Schristos
71271.84Schristos_ACAWK
71281.84Schristos_ACEOF
71291.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
71301.84Schristosif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
71311.84Schristos  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
71321.84Schristoselse
71331.84Schristos  cat
71341.84Schristosfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
71351.84Schristos  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
71361.84Schristos_ACEOF
71371.84Schristos
71381.84Schristos# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
71391.84Schristos# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
71401.84Schristos# trailing colons and then remove the whole line if VPATH becomes empty
71411.84Schristos# (actually we leave an empty line to preserve line numbers).
71421.84Schristosif test "x$srcdir" = x.; then
71431.84Schristos  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
71441.84Schristosh
71451.84Schristoss///
71461.84Schristoss/^/:/
71471.84Schristoss/[	 ]*$/:/
71481.84Schristoss/:\$(srcdir):/:/g
71491.84Schristoss/:\${srcdir}:/:/g
71501.84Schristoss/:@srcdir@:/:/g
71511.84Schristoss/^:*//
71521.84Schristoss/:*$//
71531.84Schristosx
71541.84Schristoss/\(=[	 ]*\).*/\1/
71551.84SchristosG
71561.84Schristoss/\n//
71571.84Schristoss/^[^=]*=[	 ]*$//
71581.84Schristos}'
71591.84Schristosfi
71601.84Schristos
71611.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
71621.84Schristosfi # test -n "$CONFIG_FILES"
71631.74Schristos
71641.84Schristos# Set up the scripts for CONFIG_HEADERS section.
71651.84Schristos# No need to generate them if there are no CONFIG_HEADERS.
71661.84Schristos# This happens for instance with `./config.status Makefile'.
71671.84Schristosif test -n "$CONFIG_HEADERS"; then
71681.84Schristoscat >"$ac_tmp/defines.awk" <<\_ACAWK ||
71691.84SchristosBEGIN {
71701.84Schristos_ACEOF
71711.84Schristos
71721.84Schristos# Transform confdefs.h into an awk script `defines.awk', embedded as
71731.84Schristos# here-document in config.status, that substitutes the proper values into
71741.84Schristos# config.h.in to produce config.h.
71751.84Schristos
71761.84Schristos# Create a delimiter string that does not exist in confdefs.h, to ease
71771.84Schristos# handling of long lines.
71781.84Schristosac_delim='%!_!# '
71791.84Schristosfor ac_last_try in false false :; do
71801.84Schristos  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
71811.84Schristos  if test -z "$ac_tt"; then
71821.84Schristos    break
71831.84Schristos  elif $ac_last_try; then
71841.84Schristos    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
71851.66Stsutsui  else
71861.84Schristos    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
71871.66Stsutsui  fi
71881.66Stsutsuidone
71891.66Stsutsui
71901.84Schristos# For the awk script, D is an array of macro values keyed by name,
71911.84Schristos# likewise P contains macro parameters if any.  Preserve backslash
71921.84Schristos# newline sequences.
71931.84Schristos
71941.84Schristosac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
71951.84Schristossed -n '
71961.84Schristoss/.\{148\}/&'"$ac_delim"'/g
71971.84Schristost rset
71981.84Schristos:rset
71991.84Schristoss/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
72001.84Schristost def
72011.84Schristosd
72021.84Schristos:def
72031.84Schristoss/\\$//
72041.84Schristost bsnl
72051.84Schristoss/["\\]/\\&/g
72061.84Schristoss/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
72071.84SchristosD["\1"]=" \3"/p
72081.84Schristoss/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
72091.84Schristosd
72101.84Schristos:bsnl
72111.84Schristoss/["\\]/\\&/g
72121.84Schristoss/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
72131.84SchristosD["\1"]=" \3\\\\\\n"\\/p
72141.84Schristost cont
72151.84Schristoss/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
72161.84Schristost cont
72171.84Schristosd
72181.84Schristos:cont
72191.84Schristosn
72201.84Schristoss/.\{148\}/&'"$ac_delim"'/g
72211.84Schristost clear
72221.84Schristos:clear
72231.84Schristoss/\\$//
72241.84Schristost bsnlc
72251.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/"/p
72261.84Schristosd
72271.84Schristos:bsnlc
72281.84Schristoss/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
72291.84Schristosb cont
72301.84Schristos' <confdefs.h | sed '
72311.84Schristoss/'"$ac_delim"'/"\\\
72321.84Schristos"/g' >>$CONFIG_STATUS || ac_write_fail=1
72331.84Schristos
72341.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72351.84Schristos  for (key in D) D_is_set[key] = 1
72361.84Schristos  FS = ""
72371.84Schristos}
72381.84Schristos/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
72391.84Schristos  line = \$ 0
72401.84Schristos  split(line, arg, " ")
72411.84Schristos  if (arg[1] == "#") {
72421.84Schristos    defundef = arg[2]
72431.84Schristos    mac1 = arg[3]
72441.84Schristos  } else {
72451.84Schristos    defundef = substr(arg[1], 2)
72461.84Schristos    mac1 = arg[2]
72471.84Schristos  }
72481.84Schristos  split(mac1, mac2, "(") #)
72491.84Schristos  macro = mac2[1]
72501.84Schristos  prefix = substr(line, 1, index(line, defundef) - 1)
72511.84Schristos  if (D_is_set[macro]) {
72521.84Schristos    # Preserve the white space surrounding the "#".
72531.84Schristos    print prefix "define", macro P[macro] D[macro]
72541.84Schristos    next
72551.84Schristos  } else {
72561.84Schristos    # Replace #undef with comments.  This is necessary, for example,
72571.84Schristos    # in the case of _POSIX_SOURCE, which is predefined and required
72581.84Schristos    # on some systems where configure will not decide to define it.
72591.84Schristos    if (defundef == "undef") {
72601.84Schristos      print "/*", prefix defundef, macro, "*/"
72611.84Schristos      next
72621.84Schristos    }
72631.84Schristos  }
72641.84Schristos}
72651.84Schristos{ print }
72661.84Schristos_ACAWK
72671.84Schristos_ACEOF
72681.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72691.84Schristos  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
72701.84Schristosfi # test -n "$CONFIG_HEADERS"
72711.66Stsutsui
72721.1Stv
72731.84Schristoseval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
72741.84Schristosshift
72751.84Schristosfor ac_tag
72761.84Schristosdo
72771.84Schristos  case $ac_tag in
72781.84Schristos  :[FHLC]) ac_mode=$ac_tag; continue;;
72791.84Schristos  esac
72801.84Schristos  case $ac_mode$ac_tag in
72811.84Schristos  :[FHL]*:*);;
72821.84Schristos  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
72831.84Schristos  :[FH]-) ac_tag=-:-;;
72841.84Schristos  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
72851.74Schristos  esac
72861.84Schristos  ac_save_IFS=$IFS
72871.84Schristos  IFS=:
72881.84Schristos  set x $ac_tag
72891.84Schristos  IFS=$ac_save_IFS
72901.84Schristos  shift
72911.84Schristos  ac_file=$1
72921.84Schristos  shift
72931.84Schristos
72941.84Schristos  case $ac_mode in
72951.84Schristos  :L) ac_source=$1;;
72961.84Schristos  :[FH])
72971.84Schristos    ac_file_inputs=
72981.84Schristos    for ac_f
72991.84Schristos    do
73001.84Schristos      case $ac_f in
73011.84Schristos      -) ac_f="$ac_tmp/stdin";;
73021.84Schristos      *) # Look for the file first in the build tree, then in the source tree
73031.84Schristos	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
73041.84Schristos	 # because $ac_f cannot contain `:'.
73051.84Schristos	 test -f "$ac_f" ||
73061.84Schristos	   case $ac_f in
73071.84Schristos	   [\\/$]*) false;;
73081.84Schristos	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
73091.84Schristos	   esac ||
73101.84Schristos	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
73111.84Schristos      esac
73121.84Schristos      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
73131.84Schristos      as_fn_append ac_file_inputs " '$ac_f'"
73141.84Schristos    done
73151.74Schristos
73161.84Schristos    # Let's still pretend it is `configure' which instantiates (i.e., don't
73171.84Schristos    # use $as_me), people would be surprised to read:
73181.84Schristos    #    /* config.h.  Generated by config.status.  */
73191.84Schristos    configure_input='Generated from '`
73201.84Schristos	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
73211.84Schristos	`' by configure.'
73221.84Schristos    if test x"$ac_file" != x-; then
73231.84Schristos      configure_input="$ac_file.  $configure_input"
73241.84Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
73251.84Schristos$as_echo "$as_me: creating $ac_file" >&6;}
73261.84Schristos    fi
73271.84Schristos    # Neutralize special characters interpreted by sed in replacement strings.
73281.84Schristos    case $configure_input in #(
73291.84Schristos    *\&* | *\|* | *\\* )
73301.84Schristos       ac_sed_conf_input=`$as_echo "$configure_input" |
73311.84Schristos       sed 's/[\\\\&|]/\\\\&/g'`;; #(
73321.84Schristos    *) ac_sed_conf_input=$configure_input;;
73331.84Schristos    esac
73341.76Spooka
73351.84Schristos    case $ac_tag in
73361.84Schristos    *:-:* | *:-) cat >"$ac_tmp/stdin" \
73371.84Schristos      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
73381.84Schristos    esac
73391.66Stsutsui    ;;
73401.66Stsutsui  esac
73411.66Stsutsui
73421.84Schristos  ac_dir=`$as_dirname -- "$ac_file" ||
73431.84Schristos$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73441.84Schristos	 X"$ac_file" : 'X\(//\)[^/]' \| \
73451.84Schristos	 X"$ac_file" : 'X\(//\)$' \| \
73461.84Schristos	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
73471.84Schristos$as_echo X"$ac_file" |
73481.84Schristos    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73491.84Schristos	    s//\1/
73501.84Schristos	    q
73511.84Schristos	  }
73521.84Schristos	  /^X\(\/\/\)[^/].*/{
73531.84Schristos	    s//\1/
73541.84Schristos	    q
73551.84Schristos	  }
73561.84Schristos	  /^X\(\/\/\)$/{
73571.84Schristos	    s//\1/
73581.84Schristos	    q
73591.84Schristos	  }
73601.84Schristos	  /^X\(\/\).*/{
73611.84Schristos	    s//\1/
73621.84Schristos	    q
73631.84Schristos	  }
73641.84Schristos	  s/.*/./; q'`
73651.84Schristos  as_dir="$ac_dir"; as_fn_mkdir_p
73661.84Schristos  ac_builddir=.
73671.84Schristos
73681.84Schristoscase "$ac_dir" in
73691.84Schristos.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
73701.84Schristos*)
73711.84Schristos  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
73721.84Schristos  # A ".." for each directory in $ac_dir_suffix.
73731.84Schristos  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
73741.84Schristos  case $ac_top_builddir_sub in
73751.84Schristos  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
73761.84Schristos  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
73771.84Schristos  esac ;;
73781.84Schristosesac
73791.84Schristosac_abs_top_builddir=$ac_pwd
73801.84Schristosac_abs_builddir=$ac_pwd$ac_dir_suffix
73811.84Schristos# for backward compatibility:
73821.84Schristosac_top_builddir=$ac_top_build_prefix
73831.84Schristos
73841.84Schristoscase $srcdir in
73851.84Schristos  .)  # We are building in place.
73861.84Schristos    ac_srcdir=.
73871.84Schristos    ac_top_srcdir=$ac_top_builddir_sub
73881.84Schristos    ac_abs_top_srcdir=$ac_pwd ;;
73891.84Schristos  [\\/]* | ?:[\\/]* )  # Absolute name.
73901.84Schristos    ac_srcdir=$srcdir$ac_dir_suffix;
73911.84Schristos    ac_top_srcdir=$srcdir
73921.84Schristos    ac_abs_top_srcdir=$srcdir ;;
73931.84Schristos  *) # Relative name.
73941.84Schristos    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
73951.84Schristos    ac_top_srcdir=$ac_top_build_prefix$srcdir
73961.84Schristos    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
73971.84Schristosesac
73981.84Schristosac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
73991.84Schristos
74001.84Schristos
74011.84Schristos  case $ac_mode in
74021.84Schristos  :F)
74031.84Schristos  #
74041.84Schristos  # CONFIG_FILE
74051.84Schristos  #
74061.84Schristos
74071.84Schristos_ACEOF
74081.84Schristos
74091.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74101.84Schristos# If the template does not know about datarootdir, expand it.
74111.84Schristos# FIXME: This hack should be removed a few years after 2.60.
74121.84Schristosac_datarootdir_hack=; ac_datarootdir_seen=
74131.84Schristosac_sed_dataroot='
74141.84Schristos/datarootdir/ {
74151.84Schristos  p
74161.84Schristos  q
74171.84Schristos}
74181.84Schristos/@datadir@/p
74191.84Schristos/@docdir@/p
74201.84Schristos/@infodir@/p
74211.84Schristos/@localedir@/p
74221.84Schristos/@mandir@/p'
74231.84Schristoscase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
74241.84Schristos*datarootdir*) ac_datarootdir_seen=yes;;
74251.84Schristos*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
74261.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
74271.84Schristos$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
74281.84Schristos_ACEOF
74291.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74301.84Schristos  ac_datarootdir_hack='
74311.84Schristos  s&@datadir@&$datadir&g
74321.84Schristos  s&@docdir@&$docdir&g
74331.84Schristos  s&@infodir@&$infodir&g
74341.84Schristos  s&@localedir@&$localedir&g
74351.84Schristos  s&@mandir@&$mandir&g
74361.84Schristos  s&\\\${datarootdir}&$datarootdir&g' ;;
74371.84Schristosesac
74381.84Schristos_ACEOF
74391.84Schristos
74401.84Schristos# Neutralize VPATH when `$srcdir' = `.'.
74411.84Schristos# Shell code in configure.ac might set extrasub.
74421.84Schristos# FIXME: do we really want to maintain this feature?
74431.84Schristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74441.84Schristosac_sed_extra="$ac_vpsub
74451.84Schristos$extrasub
74461.84Schristos_ACEOF
74471.84Schristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74481.84Schristos:t
74491.84Schristos/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
74501.84Schristoss|@configure_input@|$ac_sed_conf_input|;t t
74511.84Schristoss&@top_builddir@&$ac_top_builddir_sub&;t t
74521.84Schristoss&@top_build_prefix@&$ac_top_build_prefix&;t t
74531.84Schristoss&@srcdir@&$ac_srcdir&;t t
74541.84Schristoss&@abs_srcdir@&$ac_abs_srcdir&;t t
74551.84Schristoss&@top_srcdir@&$ac_top_srcdir&;t t
74561.84Schristoss&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
74571.84Schristoss&@builddir@&$ac_builddir&;t t
74581.84Schristoss&@abs_builddir@&$ac_abs_builddir&;t t
74591.84Schristoss&@abs_top_builddir@&$ac_abs_top_builddir&;t t
74601.84Schristos$ac_datarootdir_hack
74611.84Schristos"
74621.84Schristoseval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
74631.84Schristos  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
74641.84Schristos
74651.84Schristostest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
74661.84Schristos  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
74671.84Schristos  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
74681.84Schristos      "$ac_tmp/out"`; test -z "$ac_out"; } &&
74691.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
74701.84Schristoswhich seems to be undefined.  Please make sure it is defined" >&5
74711.84Schristos$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
74721.84Schristoswhich seems to be undefined.  Please make sure it is defined" >&2;}
74731.84Schristos
74741.84Schristos  rm -f "$ac_tmp/stdin"
74751.84Schristos  case $ac_file in
74761.84Schristos  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
74771.84Schristos  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
74781.84Schristos  esac \
74791.84Schristos  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
74801.84Schristos ;;
74811.84Schristos  :H)
74821.84Schristos  #
74831.84Schristos  # CONFIG_HEADER
74841.84Schristos  #
74851.84Schristos  if test x"$ac_file" != x-; then
74861.84Schristos    {
74871.84Schristos      $as_echo "/* $configure_input  */" \
74881.84Schristos      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
74891.84Schristos    } >"$ac_tmp/config.h" \
74901.84Schristos      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
74911.84Schristos    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
74921.84Schristos      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
74931.84Schristos$as_echo "$as_me: $ac_file is unchanged" >&6;}
74941.84Schristos    else
74951.84Schristos      rm -f "$ac_file"
74961.84Schristos      mv "$ac_tmp/config.h" "$ac_file" \
74971.84Schristos	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
74981.1Stv    fi
74991.1Stv  else
75001.84Schristos    $as_echo "/* $configure_input  */" \
75011.84Schristos      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
75021.84Schristos      || as_fn_error $? "could not create -" "$LINENO" 5
75031.1Stv  fi
75041.84Schristos ;;
75051.84Schristos
75061.84Schristos
75071.84Schristos  esac
75081.84Schristos
75091.84Schristosdone # for ac_tag
75101.74Schristos
75111.74Schristos
75121.84Schristosas_fn_exit 0
75131.84Schristos_ACEOF
75141.1Stvac_clean_files=$ac_clean_files_save
75151.1Stv
75161.84Schristostest $ac_write_fail = 0 ||
75171.84Schristos  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
75181.84Schristos
75191.84Schristos
75201.1Stv# configure is writing to config.log, and then calls config.status.
75211.1Stv# config.status does its own redirection, appending to config.log.
75221.1Stv# Unfortunately, on DOS this fails, as config.log is still kept open
75231.1Stv# by configure, so config.status won't be able to write to it; its
75241.1Stv# output is simply discarded.  So we exec the FD to /dev/null,
75251.1Stv# effectively closing config.log, so it can be properly (re)opened and
75261.1Stv# appended to by config.status.  When coming back to configure, we
75271.1Stv# need to make the FD available again.
75281.1Stvif test "$no_create" != yes; then
75291.1Stv  ac_cs_success=:
75301.84Schristos  ac_config_status_args=
75311.84Schristos  test "$silent" = yes &&
75321.84Schristos    ac_config_status_args="$ac_config_status_args --quiet"
75331.1Stv  exec 5>/dev/null
75341.84Schristos  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
75351.1Stv  exec 5>>config.log
75361.1Stv  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
75371.1Stv  # would make configure fail if this is the last instruction.
75381.84Schristos  $ac_cs_success || as_fn_exit 1
75391.84Schristosfi
75401.84Schristosif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
75411.84Schristos  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
75421.84Schristos$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
75431.1Stvfi
75441.96Shannken
7545