169408Sache#! /bin/sh
269408Sache# Guess values for system-dependent variables and create Makefiles.
3354195Sbrooks# Generated by GNU Autoconf 2.69 for tcsh 6.21.00.
469408Sache#
5354195Sbrooks# Report bugs to <https://bugs.astron.com/>.
6167465Smp#
7231990Smp#
8316957Sdchagin# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9231990Smp#
10231990Smp#
1169408Sache# This configure script is free software; the Free Software Foundation
1269408Sache# gives unlimited permission to copy, distribute and modify it.
13231990Smp## -------------------- ##
14231990Smp## M4sh Initialization. ##
15231990Smp## -------------------- ##
1669408Sache
17195609Smp# Be more Bourne compatible
18195609SmpDUALCASE=1; export DUALCASE # for MKS sh
19231990Smpif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20131962Smp  emulate sh
21131962Smp  NULLCMD=:
22231990Smp  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23131962Smp  # is contrary to our usage.  Disable this feature.
24131962Smp  alias -g '${1+"$@"}'='"$@"'
25195609Smp  setopt NO_GLOB_SUBST
26195609Smpelse
27231990Smp  case `(set -o) 2>/dev/null` in #(
28231990Smp  *posix*) :
29231990Smp    set -o posix ;; #(
30231990Smp  *) :
31231990Smp     ;;
32195609Smpesac
33131962Smpfi
34131962Smp
35195609Smp
36231990Smpas_nl='
37231990Smp'
38231990Smpexport as_nl
39231990Smp# Printing a long string crashes Solaris 7 /usr/bin/printf.
40231990Smpas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41231990Smpas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42231990Smpas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43231990Smp# Prefer a ksh shell builtin over an external printf program on Solaris,
44231990Smp# but without wasting forks for bash or zsh.
45231990Smpif test -z "$BASH_VERSION$ZSH_VERSION" \
46231990Smp    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47231990Smp  as_echo='print -r --'
48231990Smp  as_echo_n='print -rn --'
49231990Smpelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50231990Smp  as_echo='printf %s\n'
51231990Smp  as_echo_n='printf %s'
52231990Smpelse
53231990Smp  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54231990Smp    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55231990Smp    as_echo_n='/usr/ucb/echo -n'
56195609Smp  else
57231990Smp    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58231990Smp    as_echo_n_body='eval
59231990Smp      arg=$1;
60231990Smp      case $arg in #(
61231990Smp      *"$as_nl"*)
62231990Smp	expr "X$arg" : "X\\(.*\\)$as_nl";
63231990Smp	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64231990Smp      esac;
65231990Smp      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66231990Smp    '
67231990Smp    export as_echo_n_body
68231990Smp    as_echo_n='sh -c $as_echo_n_body as_echo'
69195609Smp  fi
70231990Smp  export as_echo_body
71231990Smp  as_echo='sh -c $as_echo_body as_echo'
72195609Smpfi
73195609Smp
74231990Smp# The user is always right.
75231990Smpif test "${PATH_SEPARATOR+set}" != set; then
76231990Smp  PATH_SEPARATOR=:
77231990Smp  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78231990Smp    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79231990Smp      PATH_SEPARATOR=';'
80231990Smp  }
81131962Smpfi
82131962Smp
83131962Smp
84195609Smp# IFS
85195609Smp# We need space, tab and new line, in precisely that order.  Quoting is
86195609Smp# there to prevent editors from complaining about space-tab.
87195609Smp# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88195609Smp# splitting by setting IFS to empty value.)
89195609SmpIFS=" ""	$as_nl"
90195609Smp
91195609Smp# Find who we are.  Look in the path if we contain no directory separator.
92231990Smpas_myself=
93231990Smpcase $0 in #((
94195609Smp  *[\\/]* ) as_myself=$0 ;;
95195609Smp  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96195609Smpfor as_dir in $PATH
97195609Smpdo
98195609Smp  IFS=$as_save_IFS
99195609Smp  test -z "$as_dir" && as_dir=.
100231990Smp    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101231990Smp  done
102195609SmpIFS=$as_save_IFS
103195609Smp
104195609Smp     ;;
105195609Smpesac
106195609Smp# We did not find ourselves, most probably we were run as `sh COMMAND'
107195609Smp# in which case we are not to be found in the path.
108195609Smpif test "x$as_myself" = x; then
109195609Smp  as_myself=$0
110195609Smpfi
111195609Smpif test ! -f "$as_myself"; then
112231990Smp  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113231990Smp  exit 1
114195609Smpfi
115195609Smp
116231990Smp# Unset variables that we do not need and which cause bugs (e.g. in
117231990Smp# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118231990Smp# suppresses any "Segmentation fault" message there.  '((' could
119231990Smp# trigger a bug in pdksh 5.2.14.
120231990Smpfor as_var in BASH_ENV ENV MAIL MAILPATH
121231990Smpdo eval test x\${$as_var+set} = xset \
122231990Smp  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123195609Smpdone
124131962SmpPS1='$ '
125131962SmpPS2='> '
126131962SmpPS4='+ '
127131962Smp
128131962Smp# NLS nuisances.
129231990SmpLC_ALL=C
130231990Smpexport LC_ALL
131231990SmpLANGUAGE=C
132231990Smpexport LANGUAGE
133131962Smp
134195609Smp# CDPATH.
135231990Smp(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136131962Smp
137316957Sdchagin# Use a proper internal environment variable to ensure we don't fall
138316957Sdchagin  # into an infinite loop, continuously re-executing ourselves.
139316957Sdchagin  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140316957Sdchagin    _as_can_reexec=no; export _as_can_reexec;
141316957Sdchagin    # We cannot yet assume a decent shell, so we have to provide a
142316957Sdchagin# neutralization value for shells without unset; and this also
143316957Sdchagin# works around shells that cannot unset nonexistent variables.
144316957Sdchagin# Preserve -v and -x to the replacement shell.
145316957SdchaginBASH_ENV=/dev/null
146316957SdchaginENV=/dev/null
147316957Sdchagin(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148316957Sdchagincase $- in # ((((
149316957Sdchagin  *v*x* | *x*v* ) as_opts=-vx ;;
150316957Sdchagin  *v* ) as_opts=-v ;;
151316957Sdchagin  *x* ) as_opts=-x ;;
152316957Sdchagin  * ) as_opts= ;;
153316957Sdchaginesac
154316957Sdchaginexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155316957Sdchagin# Admittedly, this is quite paranoid, since all the known shells bail
156316957Sdchagin# out after a failed `exec'.
157316957Sdchagin$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158316957Sdchaginas_fn_exit 255
159316957Sdchagin  fi
160316957Sdchagin  # We don't want this to propagate to other subprocesses.
161316957Sdchagin          { _as_can_reexec=; unset _as_can_reexec;}
162195609Smpif test "x$CONFIG_SHELL" = x; then
163231990Smp  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164231990Smp  emulate sh
165231990Smp  NULLCMD=:
166231990Smp  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167231990Smp  # is contrary to our usage.  Disable this feature.
168231990Smp  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169231990Smp  setopt NO_GLOB_SUBST
170195609Smpelse
171231990Smp  case \`(set -o) 2>/dev/null\` in #(
172231990Smp  *posix*) :
173231990Smp    set -o posix ;; #(
174231990Smp  *) :
175231990Smp     ;;
176231990Smpesac
177131962Smpfi
178231990Smp"
179231990Smp  as_required="as_fn_return () { (exit \$1); }
180231990Smpas_fn_success () { as_fn_return 0; }
181231990Smpas_fn_failure () { as_fn_return 1; }
182231990Smpas_fn_ret_success () { return 0; }
183231990Smpas_fn_ret_failure () { return 1; }
184131962Smp
185195609Smpexitcode=0
186231990Smpas_fn_success || { exitcode=1; echo as_fn_success failed.; }
187231990Smpas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188231990Smpas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189231990Smpas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190231990Smpif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191131962Smp
192195609Smpelse
193231990Smp  exitcode=1; echo positional parameters were not saved.
194195609Smpfi
195316957Sdchagintest x\$exitcode = x0 || exit 1
196316957Sdchagintest -x / || exit 1"
197231990Smp  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198231990Smp  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199231990Smp  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200231990Smp  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201231990Smptest \$(( 1 + 1 )) = 2 || exit 1"
202231990Smp  if (eval "$as_required") 2>/dev/null; then :
203231990Smp  as_have_required=yes
204195609Smpelse
205231990Smp  as_have_required=no
206195609Smpfi
207231990Smp  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208195609Smp
209195609Smpelse
210231990Smp  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211231990Smpas_found=false
212131962Smpfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213131962Smpdo
214131962Smp  IFS=$as_save_IFS
215131962Smp  test -z "$as_dir" && as_dir=.
216231990Smp  as_found=:
217231990Smp  case $as_dir in #(
218131962Smp	 /*)
219195609Smp	   for as_base in sh bash ksh sh5; do
220231990Smp	     # Try only shells that exist, to save several forks.
221231990Smp	     as_shell=$as_dir/$as_base
222231990Smp	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223231990Smp		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224231990Smp  CONFIG_SHELL=$as_shell as_have_required=yes
225231990Smp		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226231990Smp  break 2
227231990Smpfi
228231990Smpfi
229195609Smp	   done;;
230195609Smp       esac
231231990Smp  as_found=false
232195609Smpdone
233231990Smp$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234231990Smp	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235231990Smp  CONFIG_SHELL=$SHELL as_have_required=yes
236231990Smpfi; }
237195609SmpIFS=$as_save_IFS
238195609Smp
239195609Smp
240231990Smp      if test "x$CONFIG_SHELL" != x; then :
241316957Sdchagin  export CONFIG_SHELL
242316957Sdchagin             # We cannot yet assume a decent shell, so we have to provide a
243316957Sdchagin# neutralization value for shells without unset; and this also
244316957Sdchagin# works around shells that cannot unset nonexistent variables.
245316957Sdchagin# Preserve -v and -x to the replacement shell.
246316957SdchaginBASH_ENV=/dev/null
247316957SdchaginENV=/dev/null
248316957Sdchagin(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249316957Sdchagincase $- in # ((((
250316957Sdchagin  *v*x* | *x*v* ) as_opts=-vx ;;
251316957Sdchagin  *v* ) as_opts=-v ;;
252316957Sdchagin  *x* ) as_opts=-x ;;
253316957Sdchagin  * ) as_opts= ;;
254316957Sdchaginesac
255316957Sdchaginexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256316957Sdchagin# Admittedly, this is quite paranoid, since all the known shells bail
257316957Sdchagin# out after a failed `exec'.
258316957Sdchagin$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259316957Sdchaginexit 255
260195609Smpfi
261195609Smp
262231990Smp    if test x$as_have_required = xno; then :
263231990Smp  $as_echo "$0: This script requires a shell more modern than all"
264231990Smp  $as_echo "$0: the shells that I found on your system."
265231990Smp  if test x${ZSH_VERSION+set} = xset ; then
266231990Smp    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267231990Smp    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268231990Smp  else
269231990Smp    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270354195Sbrooks$0: https://bugs.astron.com/ about your system, including
271354195Sbrooks$0: any error possibly output before this message. Then
272354195Sbrooks$0: install a modern shell, or manually run the script
273354195Sbrooks$0: under such a shell if you do have one."
274231990Smp  fi
275231990Smp  exit 1
276195609Smpfi
277195609Smpfi
278195609Smpfi
279231990SmpSHELL=${CONFIG_SHELL-/bin/sh}
280231990Smpexport SHELL
281231990Smp# Unset more variables known to interfere with behavior of common tools.
282231990SmpCLICOLOR_FORCE= GREP_OPTIONS=
283231990Smpunset CLICOLOR_FORCE GREP_OPTIONS
284195609Smp
285231990Smp## --------------------- ##
286231990Smp## M4sh Shell Functions. ##
287231990Smp## --------------------- ##
288231990Smp# as_fn_unset VAR
289231990Smp# ---------------
290231990Smp# Portably unset VAR.
291231990Smpas_fn_unset ()
292231990Smp{
293231990Smp  { eval $1=; unset $1;}
294231990Smp}
295231990Smpas_unset=as_fn_unset
296195609Smp
297231990Smp# as_fn_set_status STATUS
298231990Smp# -----------------------
299231990Smp# Set $? to STATUS, without forking.
300231990Smpas_fn_set_status ()
301231990Smp{
302231990Smp  return $1
303231990Smp} # as_fn_set_status
304195609Smp
305231990Smp# as_fn_exit STATUS
306231990Smp# -----------------
307231990Smp# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308231990Smpas_fn_exit ()
309231990Smp{
310231990Smp  set +e
311231990Smp  as_fn_set_status $1
312231990Smp  exit $1
313231990Smp} # as_fn_exit
314195609Smp
315231990Smp# as_fn_mkdir_p
316231990Smp# -------------
317231990Smp# Create "$as_dir" as a directory, including parents if necessary.
318231990Smpas_fn_mkdir_p ()
319231990Smp{
320195609Smp
321231990Smp  case $as_dir in #(
322231990Smp  -*) as_dir=./$as_dir;;
323231990Smp  esac
324231990Smp  test -d "$as_dir" || eval $as_mkdir_p || {
325231990Smp    as_dirs=
326231990Smp    while :; do
327231990Smp      case $as_dir in #(
328231990Smp      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329231990Smp      *) as_qdir=$as_dir;;
330231990Smp      esac
331231990Smp      as_dirs="'$as_qdir' $as_dirs"
332231990Smp      as_dir=`$as_dirname -- "$as_dir" ||
333231990Smp$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334231990Smp	 X"$as_dir" : 'X\(//\)[^/]' \| \
335231990Smp	 X"$as_dir" : 'X\(//\)$' \| \
336231990Smp	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337231990Smp$as_echo X"$as_dir" |
338231990Smp    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339231990Smp	    s//\1/
340231990Smp	    q
341231990Smp	  }
342231990Smp	  /^X\(\/\/\)[^/].*/{
343231990Smp	    s//\1/
344231990Smp	    q
345231990Smp	  }
346231990Smp	  /^X\(\/\/\)$/{
347231990Smp	    s//\1/
348231990Smp	    q
349231990Smp	  }
350231990Smp	  /^X\(\/\).*/{
351231990Smp	    s//\1/
352231990Smp	    q
353231990Smp	  }
354231990Smp	  s/.*/./; q'`
355231990Smp      test -d "$as_dir" && break
356231990Smp    done
357231990Smp    test -z "$as_dirs" || eval "mkdir $as_dirs"
358231990Smp  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359131962Smp
360195609Smp
361231990Smp} # as_fn_mkdir_p
362316957Sdchagin
363316957Sdchagin# as_fn_executable_p FILE
364316957Sdchagin# -----------------------
365316957Sdchagin# Test if FILE is an executable regular file.
366316957Sdchaginas_fn_executable_p ()
367316957Sdchagin{
368316957Sdchagin  test -f "$1" && test -x "$1"
369316957Sdchagin} # as_fn_executable_p
370231990Smp# as_fn_append VAR VALUE
371231990Smp# ----------------------
372231990Smp# Append the text in VALUE to the end of the definition contained in VAR. Take
373231990Smp# advantage of any shell optimizations that allow amortized linear growth over
374231990Smp# repeated appends, instead of the typical quadratic growth present in naive
375231990Smp# implementations.
376231990Smpif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377231990Smp  eval 'as_fn_append ()
378231990Smp  {
379231990Smp    eval $1+=\$2
380231990Smp  }'
381231990Smpelse
382231990Smp  as_fn_append ()
383231990Smp  {
384231990Smp    eval $1=\$$1\$2
385231990Smp  }
386231990Smpfi # as_fn_append
387195609Smp
388231990Smp# as_fn_arith ARG...
389231990Smp# ------------------
390231990Smp# Perform arithmetic evaluation on the ARGs, and store the result in the
391231990Smp# global $as_val. Take advantage of shells that can avoid forks. The arguments
392231990Smp# must be portable across $(()) and expr.
393231990Smpif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394231990Smp  eval 'as_fn_arith ()
395231990Smp  {
396231990Smp    as_val=$(( $* ))
397231990Smp  }'
398231990Smpelse
399231990Smp  as_fn_arith ()
400231990Smp  {
401231990Smp    as_val=`expr "$@" || test $? -eq 1`
402231990Smp  }
403231990Smpfi # as_fn_arith
404195609Smp
405195609Smp
406231990Smp# as_fn_error STATUS ERROR [LINENO LOG_FD]
407231990Smp# ----------------------------------------
408231990Smp# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409231990Smp# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410231990Smp# script with STATUS, using 1 if that was 0.
411231990Smpas_fn_error ()
412231990Smp{
413231990Smp  as_status=$1; test $as_status -eq 0 && as_status=1
414231990Smp  if test "$4"; then
415231990Smp    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416231990Smp    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417231990Smp  fi
418231990Smp  $as_echo "$as_me: error: $2" >&2
419231990Smp  as_fn_exit $as_status
420231990Smp} # as_fn_error
421195609Smp
422231990Smpif expr a : '\(a\)' >/dev/null 2>&1 &&
423231990Smp   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424231990Smp  as_expr=expr
425195609Smpelse
426231990Smp  as_expr=false
427195609Smpfi
428195609Smp
429231990Smpif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430231990Smp  as_basename=basename
431195609Smpelse
432231990Smp  as_basename=false
433195609Smpfi
434195609Smp
435231990Smpif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436231990Smp  as_dirname=dirname
437195609Smpelse
438231990Smp  as_dirname=false
439195609Smpfi
440195609Smp
441231990Smpas_me=`$as_basename -- "$0" ||
442231990Smp$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443231990Smp	 X"$0" : 'X\(//\)$' \| \
444231990Smp	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445231990Smp$as_echo X/"$0" |
446231990Smp    sed '/^.*\/\([^/][^/]*\)\/*$/{
447231990Smp	    s//\1/
448231990Smp	    q
449231990Smp	  }
450231990Smp	  /^X\/\(\/\/\)$/{
451231990Smp	    s//\1/
452231990Smp	    q
453231990Smp	  }
454231990Smp	  /^X\/\(\/\).*/{
455231990Smp	    s//\1/
456231990Smp	    q
457231990Smp	  }
458231990Smp	  s/.*/./; q'`
459195609Smp
460231990Smp# Avoid depending upon Character Ranges.
461231990Smpas_cr_letters='abcdefghijklmnopqrstuvwxyz'
462231990Smpas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463231990Smpas_cr_Letters=$as_cr_letters$as_cr_LETTERS
464231990Smpas_cr_digits='0123456789'
465231990Smpas_cr_alnum=$as_cr_Letters$as_cr_digits
466195609Smp
467195609Smp
468231990Smp  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469231990Smp  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470231990Smp  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471231990Smp  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472231990Smp  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473195609Smp  sed -n '
474195609Smp    p
475195609Smp    /[$]LINENO/=
476195609Smp  ' <$as_myself |
477131962Smp    sed '
478195609Smp      s/[$]LINENO.*/&-/
479195609Smp      t lineno
480195609Smp      b
481195609Smp      :lineno
482131962Smp      N
483195609Smp      :loop
484195609Smp      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485131962Smp      t loop
486195609Smp      s/-\n.*//
487131962Smp    ' >$as_me.lineno &&
488195609Smp  chmod +x "$as_me.lineno" ||
489231990Smp    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490131962Smp
491316957Sdchagin  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492316957Sdchagin  # already done that, so ensure we don't try to do so again and fall
493316957Sdchagin  # in an infinite loop.  This has already happened in practice.
494316957Sdchagin  _as_can_reexec=no; export _as_can_reexec
495131962Smp  # Don't try to exec as it changes $[0], causing all sort of problems
496131962Smp  # (the dirname of $[0] is not the place where we might find the
497195609Smp  # original and so on.  Autoconf is especially sensitive to this).
498195609Smp  . "./$as_me.lineno"
499131962Smp  # Exit status is that of the last command.
500131962Smp  exit
501131962Smp}
502131962Smp
503195609SmpECHO_C= ECHO_N= ECHO_T=
504231990Smpcase `echo -n x` in #(((((
505195609Smp-n*)
506231990Smp  case `echo 'xy\c'` in
507195609Smp  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508231990Smp  xy)  ECHO_C='\c';;
509231990Smp  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510231990Smp       ECHO_T='	';;
511195609Smp  esac;;
512195609Smp*)
513195609Smp  ECHO_N='-n';;
514131962Smpesac
515131962Smp
516131962Smprm -f conf$$ conf$$.exe conf$$.file
517195609Smpif test -d conf$$.dir; then
518195609Smp  rm -f conf$$.dir/conf$$.file
519195609Smpelse
520195609Smp  rm -f conf$$.dir
521231990Smp  mkdir conf$$.dir 2>/dev/null
522195609Smpfi
523231990Smpif (echo >conf$$.file) 2>/dev/null; then
524231990Smp  if ln -s conf$$.file conf$$ 2>/dev/null; then
525231990Smp    as_ln_s='ln -s'
526231990Smp    # ... but there are two gotchas:
527231990Smp    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528231990Smp    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529316957Sdchagin    # In both cases, we have to default to `cp -pR'.
530231990Smp    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531316957Sdchagin      as_ln_s='cp -pR'
532231990Smp  elif ln conf$$.file conf$$ 2>/dev/null; then
533231990Smp    as_ln_s=ln
534231990Smp  else
535316957Sdchagin    as_ln_s='cp -pR'
536231990Smp  fi
537131962Smpelse
538316957Sdchagin  as_ln_s='cp -pR'
539131962Smpfi
540195609Smprm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541195609Smprmdir conf$$.dir 2>/dev/null
542131962Smp
543131962Smpif mkdir -p . 2>/dev/null; then
544231990Smp  as_mkdir_p='mkdir -p "$as_dir"'
545131962Smpelse
546145479Smp  test -d ./-p && rmdir ./-p
547131962Smp  as_mkdir_p=false
548131962Smpfi
549131962Smp
550316957Sdchaginas_test_x='test -x'
551316957Sdchaginas_executable_p=as_fn_executable_p
552131962Smp
553131962Smp# Sed expression to map a string onto a valid CPP name.
554145479Smpas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555131962Smp
556131962Smp# Sed expression to map a string onto a valid variable name.
557145479Smpas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558131962Smp
559131962Smp
560231990Smptest -n "$DJDIR" || exec 7<&0 </dev/null
561231990Smpexec 6>&1
562131962Smp
563131962Smp# Name of the host.
564231990Smp# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565131962Smp# so uname gets run too.
566131962Smpac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567131962Smp
568131962Smp#
569131962Smp# Initializations.
570131962Smp#
57169408Sacheac_default_prefix=/usr/local
572195609Smpac_clean_files=
573131962Smpac_config_libobj_dir=.
574195609SmpLIBOBJS=
575131962Smpcross_compiling=no
576131962Smpsubdirs=
577131962SmpMFLAGS=
578131962SmpMAKEFLAGS=
57969408Sache
580131962Smp# Identity of this package.
581167465SmpPACKAGE_NAME='tcsh'
582167465SmpPACKAGE_TARNAME='tcsh'
583354195SbrooksPACKAGE_VERSION='6.21.00'
584354195SbrooksPACKAGE_STRING='tcsh 6.21.00'
585354195SbrooksPACKAGE_BUGREPORT='https://bugs.astron.com/'
586231990SmpPACKAGE_URL=''
587131962Smp
588131962Smpac_unique_file="tc.vers.c"
589145479Smp# Factoring default headers for most tests.
590145479Smpac_includes_default="\
591145479Smp#include <stdio.h>
592195609Smp#ifdef HAVE_SYS_TYPES_H
593145479Smp# include <sys/types.h>
594145479Smp#endif
595195609Smp#ifdef HAVE_SYS_STAT_H
596145479Smp# include <sys/stat.h>
597145479Smp#endif
598195609Smp#ifdef STDC_HEADERS
599145479Smp# include <stdlib.h>
600145479Smp# include <stddef.h>
601145479Smp#else
602195609Smp# ifdef HAVE_STDLIB_H
603145479Smp#  include <stdlib.h>
604145479Smp# endif
605145479Smp#endif
606195609Smp#ifdef HAVE_STRING_H
607195609Smp# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608145479Smp#  include <memory.h>
609145479Smp# endif
610145479Smp# include <string.h>
611145479Smp#endif
612195609Smp#ifdef HAVE_STRINGS_H
613145479Smp# include <strings.h>
614145479Smp#endif
615195609Smp#ifdef HAVE_INTTYPES_H
616145479Smp# include <inttypes.h>
617145479Smp#endif
618195609Smp#ifdef HAVE_STDINT_H
619195609Smp# include <stdint.h>
620195609Smp#endif
621195609Smp#ifdef HAVE_UNISTD_H
622145479Smp# include <unistd.h>
623145479Smp#endif"
624145479Smp
625231990Smpac_subst_vars='LTLIBOBJS
626231990SmpLIBOBJS
627231990SmpBUILD_CATALOGS
628231990SmpHESLIB
629231990SmpHESDEF
630231990SmpDFLAGS
631231990SmpLTLIBICONV
632231990SmpLIBICONV
633231990SmpCC_FOR_GETHOST
634231990SmpGENCAT
635231990SmpEGREP
636231990SmpGREP
637231990SmpCPP
638231990SmpOBJEXT
639231990SmpEXEEXT
640231990Smpac_ct_CC
641231990SmpCPPFLAGS
642231990SmpLDFLAGS
643231990SmpCFLAGS
644231990SmpCC
645231990Smphost_os
646231990Smphost_vendor
647231990Smphost_cpu
648231990Smphost
649231990Smpbuild_os
650231990Smpbuild_vendor
651231990Smpbuild_cpu
652231990Smpbuild
653231990SmpINSTALL_DATA
654231990SmpINSTALL_SCRIPT
655231990SmpINSTALL_PROGRAM
656231990Smptarget_alias
657231990Smphost_alias
658231990Smpbuild_alias
659231990SmpLIBS
660231990SmpECHO_T
661231990SmpECHO_N
662231990SmpECHO_C
663231990SmpDEFS
664231990Smpmandir
665231990Smplocaledir
666231990Smplibdir
667231990Smppsdir
668231990Smppdfdir
669231990Smpdvidir
670231990Smphtmldir
671231990Smpinfodir
672231990Smpdocdir
673231990Smpoldincludedir
674231990Smpincludedir
675231990Smplocalstatedir
676231990Smpsharedstatedir
677231990Smpsysconfdir
678231990Smpdatadir
679231990Smpdatarootdir
680231990Smplibexecdir
681231990Smpsbindir
682231990Smpbindir
683231990Smpprogram_transform_name
684231990Smpprefix
685231990Smpexec_prefix
686231990SmpPACKAGE_URL
687231990SmpPACKAGE_BUGREPORT
688231990SmpPACKAGE_STRING
689231990SmpPACKAGE_VERSION
690231990SmpPACKAGE_TARNAME
691231990SmpPACKAGE_NAME
692195609SmpPATH_SEPARATOR
693231990SmpSHELL'
694131962Smpac_subst_files=''
695231990Smpac_user_opts='
696231990Smpenable_option_checking
697231990Smpwith_gnu_ld
698231990Smpenable_rpath
699231990Smpwith_libiconv_prefix
700231990Smpenable_nls
701231990Smpenable_nls_catalogs
702231990Smpwith_hesiod
703231990Smp'
704195609Smp      ac_precious_vars='build_alias
705195609Smphost_alias
706195609Smptarget_alias
707195609SmpCC
708195609SmpCFLAGS
709195609SmpLDFLAGS
710195609SmpLIBS
711195609SmpCPPFLAGS
712195609SmpCPP'
713131962Smp
714195609Smp
71569408Sache# Initialize some variables set by options.
716131962Smpac_init_help=
717131962Smpac_init_version=false
718231990Smpac_unrecognized_opts=
719231990Smpac_unrecognized_sep=
72069408Sache# The variables have the same names as the options, with
72169408Sache# dashes changed to underlines.
722131962Smpcache_file=/dev/null
72369408Sacheexec_prefix=NONE
72469408Sacheno_create=
72569408Sacheno_recursion=
72669408Sacheprefix=NONE
72769408Sacheprogram_prefix=NONE
72869408Sacheprogram_suffix=NONE
72969408Sacheprogram_transform_name=s,x,x,
73069408Sachesilent=
73169408Sachesite=
73269408Sachesrcdir=
73369408Sacheverbose=
73469408Sachex_includes=NONE
73569408Sachex_libraries=NONE
736131962Smp
737131962Smp# Installation directory options.
738131962Smp# These are left unexpanded so users can "make install exec_prefix=/foo"
739131962Smp# and all the variables that are supposed to be based on exec_prefix
740131962Smp# by default will actually change.
741131962Smp# Use braces instead of parens because sh, perl, etc. also accept them.
742195609Smp# (The list follows the same order as the GNU Coding Standards.)
74369408Sachebindir='${exec_prefix}/bin'
74469408Sachesbindir='${exec_prefix}/sbin'
74569408Sachelibexecdir='${exec_prefix}/libexec'
746195609Smpdatarootdir='${prefix}/share'
747195609Smpdatadir='${datarootdir}'
74869408Sachesysconfdir='${prefix}/etc'
74969408Sachesharedstatedir='${prefix}/com'
75069408Sachelocalstatedir='${prefix}/var'
75169408Sacheincludedir='${prefix}/include'
75269408Sacheoldincludedir='/usr/include'
753195609Smpdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
754195609Smpinfodir='${datarootdir}/info'
755195609Smphtmldir='${docdir}'
756195609Smpdvidir='${docdir}'
757195609Smppdfdir='${docdir}'
758195609Smppsdir='${docdir}'
759195609Smplibdir='${exec_prefix}/lib'
760195609Smplocaledir='${datarootdir}/locale'
761195609Smpmandir='${datarootdir}/man'
76269408Sache
76369408Sacheac_prev=
764195609Smpac_dashdash=
76569408Sachefor ac_option
76669408Sachedo
76769408Sache  # If the previous option needs an argument, assign it.
76869408Sache  if test -n "$ac_prev"; then
769195609Smp    eval $ac_prev=\$ac_option
77069408Sache    ac_prev=
77169408Sache    continue
77269408Sache  fi
77369408Sache
774195609Smp  case $ac_option in
775231990Smp  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776231990Smp  *=)   ac_optarg= ;;
777231990Smp  *)    ac_optarg=yes ;;
778195609Smp  esac
77969408Sache
78069408Sache  # Accept the important Cygnus configure options, so we can diagnose typos.
78169408Sache
782195609Smp  case $ac_dashdash$ac_option in
783195609Smp  --)
784195609Smp    ac_dashdash=yes ;;
78569408Sache
78669408Sache  -bindir | --bindir | --bindi | --bind | --bin | --bi)
78769408Sache    ac_prev=bindir ;;
78869408Sache  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
789131962Smp    bindir=$ac_optarg ;;
79069408Sache
79169408Sache  -build | --build | --buil | --bui | --bu)
792131962Smp    ac_prev=build_alias ;;
79369408Sache  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
794131962Smp    build_alias=$ac_optarg ;;
79569408Sache
79669408Sache  -cache-file | --cache-file | --cache-fil | --cache-fi \
79769408Sache  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
79869408Sache    ac_prev=cache_file ;;
79969408Sache  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
80069408Sache  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
801131962Smp    cache_file=$ac_optarg ;;
80269408Sache
803131962Smp  --config-cache | -C)
804131962Smp    cache_file=config.cache ;;
805131962Smp
806195609Smp  -datadir | --datadir | --datadi | --datad)
80769408Sache    ac_prev=datadir ;;
808195609Smp  -datadir=* | --datadir=* | --datadi=* | --datad=*)
809131962Smp    datadir=$ac_optarg ;;
81069408Sache
811195609Smp  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
812195609Smp  | --dataroo | --dataro | --datar)
813195609Smp    ac_prev=datarootdir ;;
814195609Smp  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
815195609Smp  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
816195609Smp    datarootdir=$ac_optarg ;;
817195609Smp
81869408Sache  -disable-* | --disable-*)
819231990Smp    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
82069408Sache    # Reject names that are not valid shell variable names.
821231990Smp    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
822231990Smp      as_fn_error $? "invalid feature name: $ac_useropt"
823231990Smp    ac_useropt_orig=$ac_useropt
824231990Smp    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
825231990Smp    case $ac_user_opts in
826231990Smp      *"
827231990Smp"enable_$ac_useropt"
828231990Smp"*) ;;
829231990Smp      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
830231990Smp	 ac_unrecognized_sep=', ';;
831231990Smp    esac
832231990Smp    eval enable_$ac_useropt=no ;;
83369408Sache
834195609Smp  -docdir | --docdir | --docdi | --doc | --do)
835195609Smp    ac_prev=docdir ;;
836195609Smp  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
837195609Smp    docdir=$ac_optarg ;;
838195609Smp
839195609Smp  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
840195609Smp    ac_prev=dvidir ;;
841195609Smp  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
842195609Smp    dvidir=$ac_optarg ;;
843195609Smp
84469408Sache  -enable-* | --enable-*)
845231990Smp    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
84669408Sache    # Reject names that are not valid shell variable names.
847231990Smp    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
848231990Smp      as_fn_error $? "invalid feature name: $ac_useropt"
849231990Smp    ac_useropt_orig=$ac_useropt
850231990Smp    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
851231990Smp    case $ac_user_opts in
852231990Smp      *"
853231990Smp"enable_$ac_useropt"
854231990Smp"*) ;;
855231990Smp      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
856231990Smp	 ac_unrecognized_sep=', ';;
857231990Smp    esac
858231990Smp    eval enable_$ac_useropt=\$ac_optarg ;;
85969408Sache
86069408Sache  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
86169408Sache  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
86269408Sache  | --exec | --exe | --ex)
86369408Sache    ac_prev=exec_prefix ;;
86469408Sache  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
86569408Sache  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
86669408Sache  | --exec=* | --exe=* | --ex=*)
867131962Smp    exec_prefix=$ac_optarg ;;
86869408Sache
86969408Sache  -gas | --gas | --ga | --g)
87069408Sache    # Obsolete; use --with-gas.
87169408Sache    with_gas=yes ;;
87269408Sache
873131962Smp  -help | --help | --hel | --he | -h)
874131962Smp    ac_init_help=long ;;
875131962Smp  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
876131962Smp    ac_init_help=recursive ;;
877131962Smp  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
878131962Smp    ac_init_help=short ;;
87969408Sache
88069408Sache  -host | --host | --hos | --ho)
881131962Smp    ac_prev=host_alias ;;
88269408Sache  -host=* | --host=* | --hos=* | --ho=*)
883131962Smp    host_alias=$ac_optarg ;;
88469408Sache
885195609Smp  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
886195609Smp    ac_prev=htmldir ;;
887195609Smp  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
888195609Smp  | --ht=*)
889195609Smp    htmldir=$ac_optarg ;;
890195609Smp
89169408Sache  -includedir | --includedir | --includedi | --included | --include \
89269408Sache  | --includ | --inclu | --incl | --inc)
89369408Sache    ac_prev=includedir ;;
89469408Sache  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
89569408Sache  | --includ=* | --inclu=* | --incl=* | --inc=*)
896131962Smp    includedir=$ac_optarg ;;
89769408Sache
89869408Sache  -infodir | --infodir | --infodi | --infod | --info | --inf)
89969408Sache    ac_prev=infodir ;;
90069408Sache  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
901131962Smp    infodir=$ac_optarg ;;
90269408Sache
90369408Sache  -libdir | --libdir | --libdi | --libd)
90469408Sache    ac_prev=libdir ;;
90569408Sache  -libdir=* | --libdir=* | --libdi=* | --libd=*)
906131962Smp    libdir=$ac_optarg ;;
90769408Sache
90869408Sache  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
90969408Sache  | --libexe | --libex | --libe)
91069408Sache    ac_prev=libexecdir ;;
91169408Sache  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
91269408Sache  | --libexe=* | --libex=* | --libe=*)
913131962Smp    libexecdir=$ac_optarg ;;
91469408Sache
915195609Smp  -localedir | --localedir | --localedi | --localed | --locale)
916195609Smp    ac_prev=localedir ;;
917195609Smp  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
918195609Smp    localedir=$ac_optarg ;;
919195609Smp
92069408Sache  -localstatedir | --localstatedir | --localstatedi | --localstated \
921195609Smp  | --localstate | --localstat | --localsta | --localst | --locals)
92269408Sache    ac_prev=localstatedir ;;
92369408Sache  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
924195609Smp  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
925131962Smp    localstatedir=$ac_optarg ;;
92669408Sache
92769408Sache  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
92869408Sache    ac_prev=mandir ;;
92969408Sache  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
930131962Smp    mandir=$ac_optarg ;;
93169408Sache
93269408Sache  -nfp | --nfp | --nf)
93369408Sache    # Obsolete; use --without-fp.
93469408Sache    with_fp=no ;;
93569408Sache
93669408Sache  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
937131962Smp  | --no-cr | --no-c | -n)
93869408Sache    no_create=yes ;;
93969408Sache
94069408Sache  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
94169408Sache  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
94269408Sache    no_recursion=yes ;;
94369408Sache
94469408Sache  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
94569408Sache  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
94669408Sache  | --oldin | --oldi | --old | --ol | --o)
94769408Sache    ac_prev=oldincludedir ;;
94869408Sache  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
94969408Sache  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
95069408Sache  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
951131962Smp    oldincludedir=$ac_optarg ;;
95269408Sache
95369408Sache  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
95469408Sache    ac_prev=prefix ;;
95569408Sache  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
956131962Smp    prefix=$ac_optarg ;;
95769408Sache
95869408Sache  -program-prefix | --program-prefix | --program-prefi | --program-pref \
95969408Sache  | --program-pre | --program-pr | --program-p)
96069408Sache    ac_prev=program_prefix ;;
96169408Sache  -program-prefix=* | --program-prefix=* | --program-prefi=* \
96269408Sache  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
963131962Smp    program_prefix=$ac_optarg ;;
96469408Sache
96569408Sache  -program-suffix | --program-suffix | --program-suffi | --program-suff \
96669408Sache  | --program-suf | --program-su | --program-s)
96769408Sache    ac_prev=program_suffix ;;
96869408Sache  -program-suffix=* | --program-suffix=* | --program-suffi=* \
96969408Sache  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
970131962Smp    program_suffix=$ac_optarg ;;
97169408Sache
97269408Sache  -program-transform-name | --program-transform-name \
97369408Sache  | --program-transform-nam | --program-transform-na \
97469408Sache  | --program-transform-n | --program-transform- \
97569408Sache  | --program-transform | --program-transfor \
97669408Sache  | --program-transfo | --program-transf \
97769408Sache  | --program-trans | --program-tran \
97869408Sache  | --progr-tra | --program-tr | --program-t)
97969408Sache    ac_prev=program_transform_name ;;
98069408Sache  -program-transform-name=* | --program-transform-name=* \
98169408Sache  | --program-transform-nam=* | --program-transform-na=* \
98269408Sache  | --program-transform-n=* | --program-transform-=* \
98369408Sache  | --program-transform=* | --program-transfor=* \
98469408Sache  | --program-transfo=* | --program-transf=* \
98569408Sache  | --program-trans=* | --program-tran=* \
98669408Sache  | --progr-tra=* | --program-tr=* | --program-t=*)
987131962Smp    program_transform_name=$ac_optarg ;;
98869408Sache
989195609Smp  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
990195609Smp    ac_prev=pdfdir ;;
991195609Smp  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
992195609Smp    pdfdir=$ac_optarg ;;
993195609Smp
994195609Smp  -psdir | --psdir | --psdi | --psd | --ps)
995195609Smp    ac_prev=psdir ;;
996195609Smp  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
997195609Smp    psdir=$ac_optarg ;;
998195609Smp
99969408Sache  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
100069408Sache  | -silent | --silent | --silen | --sile | --sil)
100169408Sache    silent=yes ;;
100269408Sache
100369408Sache  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
100469408Sache    ac_prev=sbindir ;;
100569408Sache  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
100669408Sache  | --sbi=* | --sb=*)
1007131962Smp    sbindir=$ac_optarg ;;
100869408Sache
100969408Sache  -sharedstatedir | --sharedstatedir | --sharedstatedi \
101069408Sache  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
101169408Sache  | --sharedst | --shareds | --shared | --share | --shar \
101269408Sache  | --sha | --sh)
101369408Sache    ac_prev=sharedstatedir ;;
101469408Sache  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
101569408Sache  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
101669408Sache  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
101769408Sache  | --sha=* | --sh=*)
1018131962Smp    sharedstatedir=$ac_optarg ;;
101969408Sache
102069408Sache  -site | --site | --sit)
102169408Sache    ac_prev=site ;;
102269408Sache  -site=* | --site=* | --sit=*)
1023131962Smp    site=$ac_optarg ;;
102469408Sache
102569408Sache  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
102669408Sache    ac_prev=srcdir ;;
102769408Sache  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1028131962Smp    srcdir=$ac_optarg ;;
102969408Sache
103069408Sache  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
103169408Sache  | --syscon | --sysco | --sysc | --sys | --sy)
103269408Sache    ac_prev=sysconfdir ;;
103369408Sache  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
103469408Sache  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1035131962Smp    sysconfdir=$ac_optarg ;;
103669408Sache
103769408Sache  -target | --target | --targe | --targ | --tar | --ta | --t)
1038131962Smp    ac_prev=target_alias ;;
103969408Sache  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1040131962Smp    target_alias=$ac_optarg ;;
104169408Sache
104269408Sache  -v | -verbose | --verbose | --verbos | --verbo | --verb)
104369408Sache    verbose=yes ;;
104469408Sache
1045131962Smp  -version | --version | --versio | --versi | --vers | -V)
1046131962Smp    ac_init_version=: ;;
104769408Sache
104869408Sache  -with-* | --with-*)
1049231990Smp    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
105069408Sache    # Reject names that are not valid shell variable names.
1051231990Smp    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052231990Smp      as_fn_error $? "invalid package name: $ac_useropt"
1053231990Smp    ac_useropt_orig=$ac_useropt
1054231990Smp    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055231990Smp    case $ac_user_opts in
1056231990Smp      *"
1057231990Smp"with_$ac_useropt"
1058231990Smp"*) ;;
1059231990Smp      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1060231990Smp	 ac_unrecognized_sep=', ';;
1061231990Smp    esac
1062231990Smp    eval with_$ac_useropt=\$ac_optarg ;;
106369408Sache
106469408Sache  -without-* | --without-*)
1065231990Smp    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
106669408Sache    # Reject names that are not valid shell variable names.
1067231990Smp    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068231990Smp      as_fn_error $? "invalid package name: $ac_useropt"
1069231990Smp    ac_useropt_orig=$ac_useropt
1070231990Smp    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071231990Smp    case $ac_user_opts in
1072231990Smp      *"
1073231990Smp"with_$ac_useropt"
1074231990Smp"*) ;;
1075231990Smp      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1076231990Smp	 ac_unrecognized_sep=', ';;
1077231990Smp    esac
1078231990Smp    eval with_$ac_useropt=no ;;
107969408Sache
108069408Sache  --x)
108169408Sache    # Obsolete; use --with-x.
108269408Sache    with_x=yes ;;
108369408Sache
108469408Sache  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
108569408Sache  | --x-incl | --x-inc | --x-in | --x-i)
108669408Sache    ac_prev=x_includes ;;
108769408Sache  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
108869408Sache  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1089131962Smp    x_includes=$ac_optarg ;;
109069408Sache
109169408Sache  -x-libraries | --x-libraries | --x-librarie | --x-librari \
109269408Sache  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
109369408Sache    ac_prev=x_libraries ;;
109469408Sache  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
109569408Sache  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1096131962Smp    x_libraries=$ac_optarg ;;
109769408Sache
1098231990Smp  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1099231990SmpTry \`$0 --help' for more information"
110069408Sache    ;;
110169408Sache
1102131962Smp  *=*)
1103131962Smp    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104131962Smp    # Reject names that are not valid shell variable names.
1105231990Smp    case $ac_envvar in #(
1106231990Smp      '' | [0-9]* | *[!_$as_cr_alnum]* )
1107231990Smp      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1108231990Smp    esac
1109195609Smp    eval $ac_envvar=\$ac_optarg
1110131962Smp    export $ac_envvar ;;
1111131962Smp
111269408Sache  *)
1113131962Smp    # FIXME: should be removed in autoconf 3.0.
1114231990Smp    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1115131962Smp    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1116231990Smp      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1117231990Smp    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
111869408Sache    ;;
111969408Sache
112069408Sache  esac
112169408Sachedone
112269408Sache
112369408Sacheif test -n "$ac_prev"; then
1124131962Smp  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1125231990Smp  as_fn_error $? "missing argument to $ac_option"
112669408Sachefi
112769408Sache
1128231990Smpif test -n "$ac_unrecognized_opts"; then
1129231990Smp  case $enable_option_checking in
1130231990Smp    no) ;;
1131231990Smp    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1132231990Smp    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1133231990Smp  esac
1134231990Smpfi
1135231990Smp
1136231990Smp# Check all directory arguments for consistency.
1137195609Smpfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138195609Smp		datadir sysconfdir sharedstatedir localstatedir includedir \
1139195609Smp		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140195609Smp		libdir localedir mandir
1141131962Smpdo
1142195609Smp  eval ac_val=\$$ac_var
1143231990Smp  # Remove trailing slashes.
1144131962Smp  case $ac_val in
1145231990Smp    */ )
1146231990Smp      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1147231990Smp      eval $ac_var=\$ac_val;;
1148231990Smp  esac
1149231990Smp  # Be sure to have absolute directory names.
1150231990Smp  case $ac_val in
1151195609Smp    [\\/$]* | ?:[\\/]* )  continue;;
1152195609Smp    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1153131962Smp  esac
1154231990Smp  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1155131962Smpdone
115669408Sache
1157131962Smp# There might be people who depend on the old broken behavior: `$host'
1158131962Smp# used to hold the argument of --host etc.
1159131962Smp# FIXME: To remove some day.
1160131962Smpbuild=$build_alias
1161131962Smphost=$host_alias
1162131962Smptarget=$target_alias
116369408Sache
1164131962Smp# FIXME: To remove some day.
1165131962Smpif test "x$host_alias" != x; then
1166131962Smp  if test "x$build_alias" = x; then
1167131962Smp    cross_compiling=maybe
1168131962Smp  elif test "x$build_alias" != "x$host_alias"; then
1169131962Smp    cross_compiling=yes
1170131962Smp  fi
1171131962Smpfi
117269408Sache
1173131962Smpac_tool_prefix=
1174131962Smptest -n "$host_alias" && ac_tool_prefix=$host_alias-
117569408Sache
1176131962Smptest "$silent" = yes && exec 6>/dev/null
1177131962Smp
1178131962Smp
1179195609Smpac_pwd=`pwd` && test -n "$ac_pwd" &&
1180195609Smpac_ls_di=`ls -di .` &&
1181195609Smpac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1182231990Smp  as_fn_error $? "working directory cannot be determined"
1183195609Smptest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1184231990Smp  as_fn_error $? "pwd does not report name of working directory"
1185195609Smp
1186195609Smp
118769408Sache# Find the source files, if location was not specified.
118869408Sacheif test -z "$srcdir"; then
118969408Sache  ac_srcdir_defaulted=yes
1190195609Smp  # Try the directory containing this script, then the parent directory.
1191231990Smp  ac_confdir=`$as_dirname -- "$as_myself" ||
1192231990Smp$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193231990Smp	 X"$as_myself" : 'X\(//\)[^/]' \| \
1194231990Smp	 X"$as_myself" : 'X\(//\)$' \| \
1195231990Smp	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1196231990Smp$as_echo X"$as_myself" |
1197195609Smp    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198195609Smp	    s//\1/
1199195609Smp	    q
1200195609Smp	  }
1201195609Smp	  /^X\(\/\/\)[^/].*/{
1202195609Smp	    s//\1/
1203195609Smp	    q
1204195609Smp	  }
1205195609Smp	  /^X\(\/\/\)$/{
1206195609Smp	    s//\1/
1207195609Smp	    q
1208195609Smp	  }
1209195609Smp	  /^X\(\/\).*/{
1210195609Smp	    s//\1/
1211195609Smp	    q
1212195609Smp	  }
1213195609Smp	  s/.*/./; q'`
121469408Sache  srcdir=$ac_confdir
1215195609Smp  if test ! -r "$srcdir/$ac_unique_file"; then
121669408Sache    srcdir=..
121769408Sache  fi
121869408Sacheelse
121969408Sache  ac_srcdir_defaulted=no
122069408Sachefi
1221195609Smpif test ! -r "$srcdir/$ac_unique_file"; then
1222195609Smp  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1223231990Smp  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1224195609Smpfi
1225195609Smpac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1226195609Smpac_abs_confdir=`(
1227231990Smp	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1228195609Smp	pwd)`
1229195609Smp# When building in place, set srcdir=.
1230195609Smpif test "$ac_abs_confdir" = "$ac_pwd"; then
1231195609Smp  srcdir=.
123269408Sachefi
1233195609Smp# Remove unnecessary trailing slashes from srcdir.
1234195609Smp# Double slashes in file names in object file debugging info
1235195609Smp# mess up M-x gdb in Emacs.
1236195609Smpcase $srcdir in
1237195609Smp*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238195609Smpesac
1239195609Smpfor ac_var in $ac_precious_vars; do
1240195609Smp  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1241195609Smp  eval ac_env_${ac_var}_value=\$${ac_var}
1242195609Smp  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1243195609Smp  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1244195609Smpdone
124569408Sache
1246131962Smp#
1247131962Smp# Report the --help message.
1248131962Smp#
1249131962Smpif test "$ac_init_help" = "long"; then
1250131962Smp  # Omit some internal or obsolete options to make the list less imposing.
1251131962Smp  # This message is too long to be a string in the A/UX 3.1 sh.
1252131962Smp  cat <<_ACEOF
1253354195Sbrooks\`configure' configures tcsh 6.21.00 to adapt to many kinds of systems.
1254131962Smp
1255131962SmpUsage: $0 [OPTION]... [VAR=VALUE]...
1256131962Smp
1257131962SmpTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1258131962SmpVAR=VALUE.  See below for descriptions of some of the useful variables.
1259131962Smp
1260131962SmpDefaults for the options are specified in brackets.
1261131962Smp
1262131962SmpConfiguration:
1263131962Smp  -h, --help              display this help and exit
1264131962Smp      --help=short        display options specific to this package
1265131962Smp      --help=recursive    display the short help of all the included packages
1266131962Smp  -V, --version           display version information and exit
1267231990Smp  -q, --quiet, --silent   do not print \`checking ...' messages
1268131962Smp      --cache-file=FILE   cache test results in FILE [disabled]
1269131962Smp  -C, --config-cache      alias for \`--cache-file=config.cache'
1270131962Smp  -n, --no-create         do not create output files
1271131962Smp      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1272131962Smp
1273131962SmpInstallation directories:
1274131962Smp  --prefix=PREFIX         install architecture-independent files in PREFIX
1275231990Smp                          [$ac_default_prefix]
1276131962Smp  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1277231990Smp                          [PREFIX]
1278131962Smp
1279131962SmpBy default, \`make install' will install all the files in
1280131962Smp\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1281131962Smpan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282131962Smpfor instance \`--prefix=\$HOME'.
1283131962Smp
1284131962SmpFor better control, use the options below.
1285131962Smp
1286131962SmpFine tuning of the installation directories:
1287231990Smp  --bindir=DIR            user executables [EPREFIX/bin]
1288231990Smp  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1289231990Smp  --libexecdir=DIR        program executables [EPREFIX/libexec]
1290231990Smp  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1291231990Smp  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1292231990Smp  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1293231990Smp  --libdir=DIR            object code libraries [EPREFIX/lib]
1294231990Smp  --includedir=DIR        C header files [PREFIX/include]
1295231990Smp  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1296231990Smp  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1297231990Smp  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1298231990Smp  --infodir=DIR           info documentation [DATAROOTDIR/info]
1299231990Smp  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1300231990Smp  --mandir=DIR            man documentation [DATAROOTDIR/man]
1301231990Smp  --docdir=DIR            documentation root [DATAROOTDIR/doc/tcsh]
1302231990Smp  --htmldir=DIR           html documentation [DOCDIR]
1303231990Smp  --dvidir=DIR            dvi documentation [DOCDIR]
1304231990Smp  --pdfdir=DIR            pdf documentation [DOCDIR]
1305231990Smp  --psdir=DIR             ps documentation [DOCDIR]
1306131962Smp_ACEOF
1307131962Smp
1308131962Smp  cat <<\_ACEOF
1309131962Smp
1310131962SmpSystem types:
1311131962Smp  --build=BUILD     configure for building on BUILD [guessed]
1312131962Smp  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1313131962Smp_ACEOF
1314131962Smpfi
1315131962Smp
1316131962Smpif test -n "$ac_init_help"; then
1317167465Smp  case $ac_init_help in
1318354195Sbrooks     short | recursive ) echo "Configuration of tcsh 6.21.00:";;
1319167465Smp   esac
1320131962Smp  cat <<\_ACEOF
1321131962Smp
1322167465SmpOptional Features:
1323231990Smp  --disable-option-checking  ignore unrecognized --enable/--with options
1324167465Smp  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1325167465Smp  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1326167465Smp  --disable-rpath         do not hardcode runtime library paths
1327167465Smp  --disable-nls           Disable NLS support
1328231990Smp  --disable-nls-catalogs  Disable NLS catalog support
1329167465Smp
1330131962SmpOptional Packages:
1331131962Smp  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1332131962Smp  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1333316957Sdchagin  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1334167465Smp  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1335167465Smp  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1336131962Smp  --with-hesiod=PREFIX    Use Hesiod lookup for ~ expansion
1337131962Smp
1338131962SmpSome influential environment variables:
1339131962Smp  CC          C compiler command
1340131962Smp  CFLAGS      C compiler flags
1341131962Smp  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1342131962Smp              nonstandard directory <lib dir>
1343195609Smp  LIBS        libraries to pass to the linker, e.g. -l<library>
1344231990Smp  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1345195609Smp              you have headers in a nonstandard directory <include dir>
1346131962Smp  CPP         C preprocessor
1347131962Smp
1348131962SmpUse these variables to override the choices made by `configure' or to help
1349131962Smpit to find libraries and programs with nonstandard names/locations.
1350131962Smp
1351354195SbrooksReport bugs to <https://bugs.astron.com/>.
1352131962Smp_ACEOF
1353195609Smpac_status=$?
1354131962Smpfi
1355131962Smp
1356131962Smpif test "$ac_init_help" = "recursive"; then
1357131962Smp  # If there are subdirs, report their specific --help.
1358131962Smp  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1359231990Smp    test -d "$ac_dir" ||
1360231990Smp      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1361231990Smp      continue
1362131962Smp    ac_builddir=.
1363131962Smp
1364195609Smpcase "$ac_dir" in
1365195609Smp.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366195609Smp*)
1367231990Smp  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1368195609Smp  # A ".." for each directory in $ac_dir_suffix.
1369231990Smp  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1370195609Smp  case $ac_top_builddir_sub in
1371195609Smp  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372195609Smp  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1373195609Smp  esac ;;
1374195609Smpesac
1375195609Smpac_abs_top_builddir=$ac_pwd
1376195609Smpac_abs_builddir=$ac_pwd$ac_dir_suffix
1377195609Smp# for backward compatibility:
1378195609Smpac_top_builddir=$ac_top_build_prefix
1379131962Smp
1380131962Smpcase $srcdir in
1381195609Smp  .)  # We are building in place.
1382131962Smp    ac_srcdir=.
1383195609Smp    ac_top_srcdir=$ac_top_builddir_sub
1384195609Smp    ac_abs_top_srcdir=$ac_pwd ;;
1385195609Smp  [\\/]* | ?:[\\/]* )  # Absolute name.
1386131962Smp    ac_srcdir=$srcdir$ac_dir_suffix;
1387195609Smp    ac_top_srcdir=$srcdir
1388195609Smp    ac_abs_top_srcdir=$srcdir ;;
1389195609Smp  *) # Relative name.
1390195609Smp    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1391195609Smp    ac_top_srcdir=$ac_top_build_prefix$srcdir
1392195609Smp    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1393131962Smpesac
1394195609Smpac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1395131962Smp
1396195609Smp    cd "$ac_dir" || { ac_status=$?; continue; }
1397195609Smp    # Check for guested configure.
1398195609Smp    if test -f "$ac_srcdir/configure.gnu"; then
1399195609Smp      echo &&
1400195609Smp      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1401195609Smp    elif test -f "$ac_srcdir/configure"; then
1402195609Smp      echo &&
1403195609Smp      $SHELL "$ac_srcdir/configure" --help=recursive
1404131962Smp    else
1405231990Smp      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1406195609Smp    fi || ac_status=$?
1407195609Smp    cd "$ac_pwd" || { ac_status=$?; break; }
1408131962Smp  done
1409131962Smpfi
1410131962Smp
1411195609Smptest -n "$ac_init_help" && exit $ac_status
1412131962Smpif $ac_init_version; then
1413131962Smp  cat <<\_ACEOF
1414354195Sbrookstcsh configure 6.21.00
1415316957Sdchagingenerated by GNU Autoconf 2.69
1416131962Smp
1417316957SdchaginCopyright (C) 2012 Free Software Foundation, Inc.
1418131962SmpThis configure script is free software; the Free Software Foundation
1419131962Smpgives unlimited permission to copy, distribute and modify it.
1420131962Smp_ACEOF
1421195609Smp  exit
1422131962Smpfi
1423231990Smp
1424231990Smp## ------------------------ ##
1425231990Smp## Autoconf initialization. ##
1426231990Smp## ------------------------ ##
1427231990Smp
1428231990Smp# ac_fn_c_try_compile LINENO
1429231990Smp# --------------------------
1430231990Smp# Try to compile conftest.$ac_ext, and return whether this succeeded.
1431231990Smpac_fn_c_try_compile ()
1432231990Smp{
1433231990Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1434231990Smp  rm -f conftest.$ac_objext
1435231990Smp  if { { ac_try="$ac_compile"
1436231990Smpcase "(($ac_try" in
1437231990Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438231990Smp  *) ac_try_echo=$ac_try;;
1439231990Smpesac
1440231990Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441231990Smp$as_echo "$ac_try_echo"; } >&5
1442231990Smp  (eval "$ac_compile") 2>conftest.err
1443231990Smp  ac_status=$?
1444231990Smp  if test -s conftest.err; then
1445231990Smp    grep -v '^ *+' conftest.err >conftest.er1
1446231990Smp    cat conftest.er1 >&5
1447231990Smp    mv -f conftest.er1 conftest.err
1448231990Smp  fi
1449231990Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450231990Smp  test $ac_status = 0; } && {
1451231990Smp	 test -z "$ac_c_werror_flag" ||
1452231990Smp	 test ! -s conftest.err
1453231990Smp       } && test -s conftest.$ac_objext; then :
1454231990Smp  ac_retval=0
1455231990Smpelse
1456231990Smp  $as_echo "$as_me: failed program was:" >&5
1457231990Smpsed 's/^/| /' conftest.$ac_ext >&5
1458231990Smp
1459231990Smp	ac_retval=1
1460231990Smpfi
1461231990Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1462231990Smp  as_fn_set_status $ac_retval
1463231990Smp
1464231990Smp} # ac_fn_c_try_compile
1465231990Smp
1466231990Smp# ac_fn_c_try_cpp LINENO
1467231990Smp# ----------------------
1468231990Smp# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1469231990Smpac_fn_c_try_cpp ()
1470231990Smp{
1471231990Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472231990Smp  if { { ac_try="$ac_cpp conftest.$ac_ext"
1473231990Smpcase "(($ac_try" in
1474231990Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1475231990Smp  *) ac_try_echo=$ac_try;;
1476231990Smpesac
1477231990Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1478231990Smp$as_echo "$ac_try_echo"; } >&5
1479231990Smp  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1480231990Smp  ac_status=$?
1481231990Smp  if test -s conftest.err; then
1482231990Smp    grep -v '^ *+' conftest.err >conftest.er1
1483231990Smp    cat conftest.er1 >&5
1484231990Smp    mv -f conftest.er1 conftest.err
1485231990Smp  fi
1486231990Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1487231990Smp  test $ac_status = 0; } > conftest.i && {
1488231990Smp	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1489231990Smp	 test ! -s conftest.err
1490231990Smp       }; then :
1491231990Smp  ac_retval=0
1492231990Smpelse
1493231990Smp  $as_echo "$as_me: failed program was:" >&5
1494231990Smpsed 's/^/| /' conftest.$ac_ext >&5
1495231990Smp
1496231990Smp    ac_retval=1
1497231990Smpfi
1498231990Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1499231990Smp  as_fn_set_status $ac_retval
1500231990Smp
1501231990Smp} # ac_fn_c_try_cpp
1502231990Smp
1503231990Smp# ac_fn_c_try_link LINENO
1504231990Smp# -----------------------
1505231990Smp# Try to link conftest.$ac_ext, and return whether this succeeded.
1506231990Smpac_fn_c_try_link ()
1507231990Smp{
1508231990Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509231990Smp  rm -f conftest.$ac_objext conftest$ac_exeext
1510231990Smp  if { { ac_try="$ac_link"
1511231990Smpcase "(($ac_try" in
1512231990Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513231990Smp  *) ac_try_echo=$ac_try;;
1514231990Smpesac
1515231990Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516231990Smp$as_echo "$ac_try_echo"; } >&5
1517231990Smp  (eval "$ac_link") 2>conftest.err
1518231990Smp  ac_status=$?
1519231990Smp  if test -s conftest.err; then
1520231990Smp    grep -v '^ *+' conftest.err >conftest.er1
1521231990Smp    cat conftest.er1 >&5
1522231990Smp    mv -f conftest.er1 conftest.err
1523231990Smp  fi
1524231990Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525231990Smp  test $ac_status = 0; } && {
1526231990Smp	 test -z "$ac_c_werror_flag" ||
1527231990Smp	 test ! -s conftest.err
1528231990Smp       } && test -s conftest$ac_exeext && {
1529231990Smp	 test "$cross_compiling" = yes ||
1530316957Sdchagin	 test -x conftest$ac_exeext
1531231990Smp       }; then :
1532231990Smp  ac_retval=0
1533231990Smpelse
1534231990Smp  $as_echo "$as_me: failed program was:" >&5
1535231990Smpsed 's/^/| /' conftest.$ac_ext >&5
1536231990Smp
1537231990Smp	ac_retval=1
1538231990Smpfi
1539231990Smp  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1540231990Smp  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1541231990Smp  # interfere with the next link command; also delete a directory that is
1542231990Smp  # left behind by Apple's compiler.  We do this before executing the actions.
1543231990Smp  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1544231990Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1545231990Smp  as_fn_set_status $ac_retval
1546231990Smp
1547231990Smp} # ac_fn_c_try_link
1548231990Smp
1549231990Smp# ac_fn_c_try_run LINENO
1550231990Smp# ----------------------
1551231990Smp# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1552231990Smp# that executables *can* be run.
1553231990Smpac_fn_c_try_run ()
1554231990Smp{
1555231990Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556231990Smp  if { { ac_try="$ac_link"
1557231990Smpcase "(($ac_try" in
1558231990Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559231990Smp  *) ac_try_echo=$ac_try;;
1560231990Smpesac
1561231990Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562231990Smp$as_echo "$ac_try_echo"; } >&5
1563231990Smp  (eval "$ac_link") 2>&5
1564231990Smp  ac_status=$?
1565231990Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566231990Smp  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1567231990Smp  { { case "(($ac_try" in
1568231990Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569231990Smp  *) ac_try_echo=$ac_try;;
1570231990Smpesac
1571231990Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572231990Smp$as_echo "$ac_try_echo"; } >&5
1573231990Smp  (eval "$ac_try") 2>&5
1574231990Smp  ac_status=$?
1575231990Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576231990Smp  test $ac_status = 0; }; }; then :
1577231990Smp  ac_retval=0
1578231990Smpelse
1579231990Smp  $as_echo "$as_me: program exited with status $ac_status" >&5
1580231990Smp       $as_echo "$as_me: failed program was:" >&5
1581231990Smpsed 's/^/| /' conftest.$ac_ext >&5
1582231990Smp
1583231990Smp       ac_retval=$ac_status
1584231990Smpfi
1585231990Smp  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1586231990Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587231990Smp  as_fn_set_status $ac_retval
1588231990Smp
1589231990Smp} # ac_fn_c_try_run
1590231990Smp
1591231990Smp# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1592231990Smp# -------------------------------------------------------
1593231990Smp# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1594231990Smp# the include files in INCLUDES and setting the cache variable VAR
1595231990Smp# accordingly.
1596231990Smpac_fn_c_check_header_mongrel ()
1597231990Smp{
1598231990Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599231990Smp  if eval \${$3+:} false; then :
1600231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601231990Smp$as_echo_n "checking for $2... " >&6; }
1602231990Smpif eval \${$3+:} false; then :
1603231990Smp  $as_echo_n "(cached) " >&6
1604231990Smpfi
1605231990Smpeval ac_res=\$$3
1606231990Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1607231990Smp$as_echo "$ac_res" >&6; }
1608231990Smpelse
1609231990Smp  # Is the header compilable?
1610231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1611231990Smp$as_echo_n "checking $2 usability... " >&6; }
1612231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613231990Smp/* end confdefs.h.  */
1614231990Smp$4
1615231990Smp#include <$2>
1616231990Smp_ACEOF
1617231990Smpif ac_fn_c_try_compile "$LINENO"; then :
1618231990Smp  ac_header_compiler=yes
1619231990Smpelse
1620231990Smp  ac_header_compiler=no
1621231990Smpfi
1622231990Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1623231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1624231990Smp$as_echo "$ac_header_compiler" >&6; }
1625231990Smp
1626231990Smp# Is the header present?
1627231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1628231990Smp$as_echo_n "checking $2 presence... " >&6; }
1629231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630231990Smp/* end confdefs.h.  */
1631231990Smp#include <$2>
1632231990Smp_ACEOF
1633231990Smpif ac_fn_c_try_cpp "$LINENO"; then :
1634231990Smp  ac_header_preproc=yes
1635231990Smpelse
1636231990Smp  ac_header_preproc=no
1637231990Smpfi
1638231990Smprm -f conftest.err conftest.i conftest.$ac_ext
1639231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1640231990Smp$as_echo "$ac_header_preproc" >&6; }
1641231990Smp
1642231990Smp# So?  What about this header?
1643231990Smpcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1644231990Smp  yes:no: )
1645231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1646231990Smp$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1647231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1648231990Smp$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1649231990Smp    ;;
1650231990Smp  no:yes:* )
1651231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1652231990Smp$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1653231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1654231990Smp$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1655231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1656231990Smp$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1657231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1658231990Smp$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1659231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1660231990Smp$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661354195Sbrooks( $as_echo "## --------------------------------------- ##
1662354195Sbrooks## Report this to https://bugs.astron.com/ ##
1663354195Sbrooks## --------------------------------------- ##"
1664231990Smp     ) | sed "s/^/$as_me: WARNING:     /" >&2
1665231990Smp    ;;
1666231990Smpesac
1667231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668231990Smp$as_echo_n "checking for $2... " >&6; }
1669231990Smpif eval \${$3+:} false; then :
1670231990Smp  $as_echo_n "(cached) " >&6
1671231990Smpelse
1672231990Smp  eval "$3=\$ac_header_compiler"
1673231990Smpfi
1674231990Smpeval ac_res=\$$3
1675231990Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676231990Smp$as_echo "$ac_res" >&6; }
1677231990Smpfi
1678231990Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679231990Smp
1680231990Smp} # ac_fn_c_check_header_mongrel
1681231990Smp
1682231990Smp# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1683231990Smp# -------------------------------------------------------
1684231990Smp# Tests whether HEADER exists and can be compiled using the include files in
1685231990Smp# INCLUDES, setting the cache variable VAR accordingly.
1686231990Smpac_fn_c_check_header_compile ()
1687231990Smp{
1688231990Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690231990Smp$as_echo_n "checking for $2... " >&6; }
1691231990Smpif eval \${$3+:} false; then :
1692231990Smp  $as_echo_n "(cached) " >&6
1693231990Smpelse
1694231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695231990Smp/* end confdefs.h.  */
1696231990Smp$4
1697231990Smp#include <$2>
1698231990Smp_ACEOF
1699231990Smpif ac_fn_c_try_compile "$LINENO"; then :
1700231990Smp  eval "$3=yes"
1701231990Smpelse
1702231990Smp  eval "$3=no"
1703231990Smpfi
1704231990Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705231990Smpfi
1706231990Smpeval ac_res=\$$3
1707231990Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708231990Smp$as_echo "$ac_res" >&6; }
1709231990Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710231990Smp
1711231990Smp} # ac_fn_c_check_header_compile
1712231990Smp
1713231990Smp# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1714231990Smp# --------------------------------------------
1715231990Smp# Tries to find the compile-time value of EXPR in a program that includes
1716231990Smp# INCLUDES, setting VAR accordingly. Returns whether the value could be
1717231990Smp# computed
1718231990Smpac_fn_c_compute_int ()
1719231990Smp{
1720231990Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721231990Smp  if test "$cross_compiling" = yes; then
1722231990Smp    # Depending upon the size, compute the lo and hi bounds.
1723231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724231990Smp/* end confdefs.h.  */
1725231990Smp$4
1726231990Smpint
1727231990Smpmain ()
1728231990Smp{
1729231990Smpstatic int test_array [1 - 2 * !(($2) >= 0)];
1730316957Sdchagintest_array [0] = 0;
1731316957Sdchaginreturn test_array [0];
1732231990Smp
1733231990Smp  ;
1734231990Smp  return 0;
1735231990Smp}
1736231990Smp_ACEOF
1737231990Smpif ac_fn_c_try_compile "$LINENO"; then :
1738231990Smp  ac_lo=0 ac_mid=0
1739231990Smp  while :; do
1740231990Smp    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741231990Smp/* end confdefs.h.  */
1742231990Smp$4
1743231990Smpint
1744231990Smpmain ()
1745231990Smp{
1746231990Smpstatic int test_array [1 - 2 * !(($2) <= $ac_mid)];
1747316957Sdchagintest_array [0] = 0;
1748316957Sdchaginreturn test_array [0];
1749231990Smp
1750231990Smp  ;
1751231990Smp  return 0;
1752231990Smp}
1753231990Smp_ACEOF
1754231990Smpif ac_fn_c_try_compile "$LINENO"; then :
1755231990Smp  ac_hi=$ac_mid; break
1756231990Smpelse
1757231990Smp  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1758231990Smp			if test $ac_lo -le $ac_mid; then
1759231990Smp			  ac_lo= ac_hi=
1760231990Smp			  break
1761231990Smp			fi
1762231990Smp			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1763231990Smpfi
1764231990Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765231990Smp  done
1766231990Smpelse
1767231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768231990Smp/* end confdefs.h.  */
1769231990Smp$4
1770231990Smpint
1771231990Smpmain ()
1772231990Smp{
1773231990Smpstatic int test_array [1 - 2 * !(($2) < 0)];
1774316957Sdchagintest_array [0] = 0;
1775316957Sdchaginreturn test_array [0];
1776231990Smp
1777231990Smp  ;
1778231990Smp  return 0;
1779231990Smp}
1780231990Smp_ACEOF
1781231990Smpif ac_fn_c_try_compile "$LINENO"; then :
1782231990Smp  ac_hi=-1 ac_mid=-1
1783231990Smp  while :; do
1784231990Smp    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785231990Smp/* end confdefs.h.  */
1786231990Smp$4
1787231990Smpint
1788231990Smpmain ()
1789231990Smp{
1790231990Smpstatic int test_array [1 - 2 * !(($2) >= $ac_mid)];
1791316957Sdchagintest_array [0] = 0;
1792316957Sdchaginreturn test_array [0];
1793231990Smp
1794231990Smp  ;
1795231990Smp  return 0;
1796231990Smp}
1797231990Smp_ACEOF
1798231990Smpif ac_fn_c_try_compile "$LINENO"; then :
1799231990Smp  ac_lo=$ac_mid; break
1800231990Smpelse
1801231990Smp  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1802231990Smp			if test $ac_mid -le $ac_hi; then
1803231990Smp			  ac_lo= ac_hi=
1804231990Smp			  break
1805231990Smp			fi
1806231990Smp			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1807231990Smpfi
1808231990Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809231990Smp  done
1810231990Smpelse
1811231990Smp  ac_lo= ac_hi=
1812231990Smpfi
1813231990Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814231990Smpfi
1815231990Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816231990Smp# Binary search between lo and hi bounds.
1817231990Smpwhile test "x$ac_lo" != "x$ac_hi"; do
1818231990Smp  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1819231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820231990Smp/* end confdefs.h.  */
1821231990Smp$4
1822231990Smpint
1823231990Smpmain ()
1824231990Smp{
1825231990Smpstatic int test_array [1 - 2 * !(($2) <= $ac_mid)];
1826316957Sdchagintest_array [0] = 0;
1827316957Sdchaginreturn test_array [0];
1828231990Smp
1829231990Smp  ;
1830231990Smp  return 0;
1831231990Smp}
1832231990Smp_ACEOF
1833231990Smpif ac_fn_c_try_compile "$LINENO"; then :
1834231990Smp  ac_hi=$ac_mid
1835231990Smpelse
1836231990Smp  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1837231990Smpfi
1838231990Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839231990Smpdone
1840231990Smpcase $ac_lo in #((
1841231990Smp?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1842231990Smp'') ac_retval=1 ;;
1843231990Smpesac
1844231990Smp  else
1845231990Smp    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846231990Smp/* end confdefs.h.  */
1847231990Smp$4
1848231990Smpstatic long int longval () { return $2; }
1849231990Smpstatic unsigned long int ulongval () { return $2; }
1850231990Smp#include <stdio.h>
1851231990Smp#include <stdlib.h>
1852231990Smpint
1853231990Smpmain ()
1854231990Smp{
1855231990Smp
1856231990Smp  FILE *f = fopen ("conftest.val", "w");
1857231990Smp  if (! f)
1858231990Smp    return 1;
1859231990Smp  if (($2) < 0)
1860231990Smp    {
1861231990Smp      long int i = longval ();
1862231990Smp      if (i != ($2))
1863231990Smp	return 1;
1864231990Smp      fprintf (f, "%ld", i);
1865231990Smp    }
1866231990Smp  else
1867231990Smp    {
1868231990Smp      unsigned long int i = ulongval ();
1869231990Smp      if (i != ($2))
1870231990Smp	return 1;
1871231990Smp      fprintf (f, "%lu", i);
1872231990Smp    }
1873231990Smp  /* Do not output a trailing newline, as this causes \r\n confusion
1874231990Smp     on some platforms.  */
1875231990Smp  return ferror (f) || fclose (f) != 0;
1876231990Smp
1877231990Smp  ;
1878231990Smp  return 0;
1879231990Smp}
1880231990Smp_ACEOF
1881231990Smpif ac_fn_c_try_run "$LINENO"; then :
1882231990Smp  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1883231990Smpelse
1884231990Smp  ac_retval=1
1885231990Smpfi
1886231990Smprm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1887231990Smp  conftest.$ac_objext conftest.beam conftest.$ac_ext
1888231990Smprm -f conftest.val
1889231990Smp
1890231990Smp  fi
1891231990Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892231990Smp  as_fn_set_status $ac_retval
1893231990Smp
1894231990Smp} # ac_fn_c_compute_int
1895231990Smp
1896231990Smp# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1897231990Smp# -------------------------------------------
1898231990Smp# Tests whether TYPE exists after having included INCLUDES, setting cache
1899231990Smp# variable VAR accordingly.
1900231990Smpac_fn_c_check_type ()
1901231990Smp{
1902231990Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904231990Smp$as_echo_n "checking for $2... " >&6; }
1905231990Smpif eval \${$3+:} false; then :
1906231990Smp  $as_echo_n "(cached) " >&6
1907231990Smpelse
1908231990Smp  eval "$3=no"
1909231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910231990Smp/* end confdefs.h.  */
1911231990Smp$4
1912231990Smpint
1913231990Smpmain ()
1914231990Smp{
1915231990Smpif (sizeof ($2))
1916231990Smp	 return 0;
1917231990Smp  ;
1918231990Smp  return 0;
1919231990Smp}
1920231990Smp_ACEOF
1921231990Smpif ac_fn_c_try_compile "$LINENO"; then :
1922231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923231990Smp/* end confdefs.h.  */
1924231990Smp$4
1925231990Smpint
1926231990Smpmain ()
1927231990Smp{
1928231990Smpif (sizeof (($2)))
1929231990Smp	    return 0;
1930231990Smp  ;
1931231990Smp  return 0;
1932231990Smp}
1933231990Smp_ACEOF
1934231990Smpif ac_fn_c_try_compile "$LINENO"; then :
1935231990Smp
1936231990Smpelse
1937231990Smp  eval "$3=yes"
1938231990Smpfi
1939231990Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940231990Smpfi
1941231990Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942231990Smpfi
1943231990Smpeval ac_res=\$$3
1944231990Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945231990Smp$as_echo "$ac_res" >&6; }
1946231990Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947231990Smp
1948231990Smp} # ac_fn_c_check_type
1949231990Smp
1950231990Smp# ac_fn_c_find_uintX_t LINENO BITS VAR
1951231990Smp# ------------------------------------
1952231990Smp# Finds an unsigned integer type with width BITS, setting cache variable VAR
1953231990Smp# accordingly.
1954231990Smpac_fn_c_find_uintX_t ()
1955231990Smp{
1956231990Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1958231990Smp$as_echo_n "checking for uint$2_t... " >&6; }
1959231990Smpif eval \${$3+:} false; then :
1960231990Smp  $as_echo_n "(cached) " >&6
1961231990Smpelse
1962231990Smp  eval "$3=no"
1963231990Smp     # Order is important - never check a type that is potentially smaller
1964231990Smp     # than half of the expected target width.
1965231990Smp     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1966231990Smp	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1967231990Smp       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968231990Smp/* end confdefs.h.  */
1969231990Smp$ac_includes_default
1970231990Smpint
1971231990Smpmain ()
1972231990Smp{
1973231990Smpstatic int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1974316957Sdchagintest_array [0] = 0;
1975316957Sdchaginreturn test_array [0];
1976231990Smp
1977231990Smp  ;
1978231990Smp  return 0;
1979231990Smp}
1980231990Smp_ACEOF
1981231990Smpif ac_fn_c_try_compile "$LINENO"; then :
1982231990Smp  case $ac_type in #(
1983231990Smp  uint$2_t) :
1984231990Smp    eval "$3=yes" ;; #(
1985231990Smp  *) :
1986231990Smp    eval "$3=\$ac_type" ;;
1987231990Smpesac
1988231990Smpfi
1989231990Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990231990Smp       if eval test \"x\$"$3"\" = x"no"; then :
1991231990Smp
1992231990Smpelse
1993231990Smp  break
1994231990Smpfi
1995231990Smp     done
1996231990Smpfi
1997231990Smpeval ac_res=\$$3
1998231990Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999231990Smp$as_echo "$ac_res" >&6; }
2000231990Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001231990Smp
2002231990Smp} # ac_fn_c_find_uintX_t
2003231990Smp
2004231990Smp# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2005231990Smp# ----------------------------------------------------
2006231990Smp# Tries to find if the field MEMBER exists in type AGGR, after including
2007231990Smp# INCLUDES, setting cache variable VAR accordingly.
2008231990Smpac_fn_c_check_member ()
2009231990Smp{
2010231990Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2012231990Smp$as_echo_n "checking for $2.$3... " >&6; }
2013231990Smpif eval \${$4+:} false; then :
2014231990Smp  $as_echo_n "(cached) " >&6
2015231990Smpelse
2016231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017231990Smp/* end confdefs.h.  */
2018231990Smp$5
2019231990Smpint
2020231990Smpmain ()
2021231990Smp{
2022231990Smpstatic $2 ac_aggr;
2023231990Smpif (ac_aggr.$3)
2024231990Smpreturn 0;
2025231990Smp  ;
2026231990Smp  return 0;
2027231990Smp}
2028231990Smp_ACEOF
2029231990Smpif ac_fn_c_try_compile "$LINENO"; then :
2030231990Smp  eval "$4=yes"
2031231990Smpelse
2032231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033231990Smp/* end confdefs.h.  */
2034231990Smp$5
2035231990Smpint
2036231990Smpmain ()
2037231990Smp{
2038231990Smpstatic $2 ac_aggr;
2039231990Smpif (sizeof ac_aggr.$3)
2040231990Smpreturn 0;
2041231990Smp  ;
2042231990Smp  return 0;
2043231990Smp}
2044231990Smp_ACEOF
2045231990Smpif ac_fn_c_try_compile "$LINENO"; then :
2046231990Smp  eval "$4=yes"
2047231990Smpelse
2048231990Smp  eval "$4=no"
2049231990Smpfi
2050231990Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051231990Smpfi
2052231990Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053231990Smpfi
2054231990Smpeval ac_res=\$$4
2055231990Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056231990Smp$as_echo "$ac_res" >&6; }
2057231990Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058231990Smp
2059231990Smp} # ac_fn_c_check_member
2060231990Smp
2061231990Smp# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2062231990Smp# ---------------------------------------------
2063231990Smp# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2064231990Smp# accordingly.
2065231990Smpac_fn_c_check_decl ()
2066231990Smp{
2067231990Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068231990Smp  as_decl_name=`echo $2|sed 's/ *(.*//'`
2069231990Smp  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2070231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2071231990Smp$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2072231990Smpif eval \${$3+:} false; then :
2073231990Smp  $as_echo_n "(cached) " >&6
2074231990Smpelse
2075231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076231990Smp/* end confdefs.h.  */
2077231990Smp$4
2078231990Smpint
2079231990Smpmain ()
2080231990Smp{
2081231990Smp#ifndef $as_decl_name
2082231990Smp#ifdef __cplusplus
2083231990Smp  (void) $as_decl_use;
2084231990Smp#else
2085231990Smp  (void) $as_decl_name;
2086231990Smp#endif
2087231990Smp#endif
2088231990Smp
2089231990Smp  ;
2090231990Smp  return 0;
2091231990Smp}
2092231990Smp_ACEOF
2093231990Smpif ac_fn_c_try_compile "$LINENO"; then :
2094231990Smp  eval "$3=yes"
2095231990Smpelse
2096231990Smp  eval "$3=no"
2097231990Smpfi
2098231990Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099231990Smpfi
2100231990Smpeval ac_res=\$$3
2101231990Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102231990Smp$as_echo "$ac_res" >&6; }
2103231990Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104231990Smp
2105231990Smp} # ac_fn_c_check_decl
2106231990Smp
2107231990Smp# ac_fn_c_check_func LINENO FUNC VAR
2108231990Smp# ----------------------------------
2109231990Smp# Tests whether FUNC exists, setting the cache variable VAR accordingly
2110231990Smpac_fn_c_check_func ()
2111231990Smp{
2112231990Smp  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114231990Smp$as_echo_n "checking for $2... " >&6; }
2115231990Smpif eval \${$3+:} false; then :
2116231990Smp  $as_echo_n "(cached) " >&6
2117231990Smpelse
2118231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119231990Smp/* end confdefs.h.  */
2120231990Smp/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2121231990Smp   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2122231990Smp#define $2 innocuous_$2
2123231990Smp
2124231990Smp/* System header to define __stub macros and hopefully few prototypes,
2125231990Smp    which can conflict with char $2 (); below.
2126231990Smp    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2127231990Smp    <limits.h> exists even on freestanding compilers.  */
2128231990Smp
2129231990Smp#ifdef __STDC__
2130231990Smp# include <limits.h>
2131231990Smp#else
2132231990Smp# include <assert.h>
2133231990Smp#endif
2134231990Smp
2135231990Smp#undef $2
2136231990Smp
2137231990Smp/* Override any GCC internal prototype to avoid an error.
2138231990Smp   Use char because int might match the return type of a GCC
2139231990Smp   builtin and then its argument prototype would still apply.  */
2140231990Smp#ifdef __cplusplus
2141231990Smpextern "C"
2142231990Smp#endif
2143231990Smpchar $2 ();
2144231990Smp/* The GNU C library defines this for functions which it implements
2145231990Smp    to always fail with ENOSYS.  Some functions are actually named
2146231990Smp    something starting with __ and the normal name is an alias.  */
2147231990Smp#if defined __stub_$2 || defined __stub___$2
2148231990Smpchoke me
2149231990Smp#endif
2150231990Smp
2151231990Smpint
2152231990Smpmain ()
2153231990Smp{
2154231990Smpreturn $2 ();
2155231990Smp  ;
2156231990Smp  return 0;
2157231990Smp}
2158231990Smp_ACEOF
2159231990Smpif ac_fn_c_try_link "$LINENO"; then :
2160231990Smp  eval "$3=yes"
2161231990Smpelse
2162231990Smp  eval "$3=no"
2163231990Smpfi
2164231990Smprm -f core conftest.err conftest.$ac_objext \
2165231990Smp    conftest$ac_exeext conftest.$ac_ext
2166231990Smpfi
2167231990Smpeval ac_res=\$$3
2168231990Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169231990Smp$as_echo "$ac_res" >&6; }
2170231990Smp  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171231990Smp
2172231990Smp} # ac_fn_c_check_func
2173195609Smpcat >config.log <<_ACEOF
2174131962SmpThis file contains any messages produced by compilers while
2175131962Smprunning configure, to aid debugging if configure makes a mistake.
2176131962Smp
2177354195SbrooksIt was created by tcsh $as_me 6.21.00, which was
2178316957Sdchagingenerated by GNU Autoconf 2.69.  Invocation command line was
2179131962Smp
2180131962Smp  $ $0 $@
2181131962Smp
2182131962Smp_ACEOF
2183195609Smpexec 5>>config.log
2184131962Smp{
2185131962Smpcat <<_ASUNAME
2186131962Smp## --------- ##
2187131962Smp## Platform. ##
2188131962Smp## --------- ##
2189131962Smp
2190131962Smphostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2191131962Smpuname -m = `(uname -m) 2>/dev/null || echo unknown`
2192131962Smpuname -r = `(uname -r) 2>/dev/null || echo unknown`
2193131962Smpuname -s = `(uname -s) 2>/dev/null || echo unknown`
2194131962Smpuname -v = `(uname -v) 2>/dev/null || echo unknown`
2195131962Smp
2196131962Smp/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2197131962Smp/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2198131962Smp
2199131962Smp/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2200131962Smp/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2201131962Smp/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2202195609Smp/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2203131962Smp/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2204131962Smp/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2205131962Smp/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2206131962Smp
2207131962Smp_ASUNAME
2208131962Smp
2209131962Smpas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210131962Smpfor as_dir in $PATH
2211131962Smpdo
2212131962Smp  IFS=$as_save_IFS
2213131962Smp  test -z "$as_dir" && as_dir=.
2214231990Smp    $as_echo "PATH: $as_dir"
2215231990Smp  done
2216195609SmpIFS=$as_save_IFS
2217131962Smp
2218131962Smp} >&5
2219131962Smp
2220131962Smpcat >&5 <<_ACEOF
2221131962Smp
2222131962Smp
2223131962Smp## ----------- ##
2224131962Smp## Core tests. ##
2225131962Smp## ----------- ##
2226131962Smp
2227131962Smp_ACEOF
2228131962Smp
2229131962Smp
2230131962Smp# Keep a trace of the command line.
2231131962Smp# Strip out --no-create and --no-recursion so they do not pile up.
2232131962Smp# Strip out --silent because we don't want to record it for future runs.
2233131962Smp# Also quote any args containing shell meta-characters.
2234131962Smp# Make two passes to allow for proper duplicate-argument suppression.
2235131962Smpac_configure_args=
2236131962Smpac_configure_args0=
2237131962Smpac_configure_args1=
2238131962Smpac_must_keep_next=false
2239131962Smpfor ac_pass in 1 2
2240131962Smpdo
2241131962Smp  for ac_arg
2242131962Smp  do
2243131962Smp    case $ac_arg in
2244131962Smp    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2245131962Smp    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2246131962Smp    | -silent | --silent | --silen | --sile | --sil)
2247131962Smp      continue ;;
2248195609Smp    *\'*)
2249231990Smp      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2250131962Smp    esac
2251131962Smp    case $ac_pass in
2252231990Smp    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2253131962Smp    2)
2254231990Smp      as_fn_append ac_configure_args1 " '$ac_arg'"
2255131962Smp      if test $ac_must_keep_next = true; then
2256145479Smp	ac_must_keep_next=false # Got value, back to normal.
2257131962Smp      else
2258145479Smp	case $ac_arg in
2259145479Smp	  *=* | --config-cache | -C | -disable-* | --disable-* \
2260145479Smp	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2261145479Smp	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2262145479Smp	  | -with-* | --with-* | -without-* | --without-* | --x)
2263145479Smp	    case "$ac_configure_args0 " in
2264145479Smp	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2265145479Smp	    esac
2266145479Smp	    ;;
2267145479Smp	  -* ) ac_must_keep_next=true ;;
2268145479Smp	esac
2269131962Smp      fi
2270231990Smp      as_fn_append ac_configure_args " '$ac_arg'"
2271131962Smp      ;;
2272131962Smp    esac
2273131962Smp  done
2274131962Smpdone
2275231990Smp{ ac_configure_args0=; unset ac_configure_args0;}
2276231990Smp{ ac_configure_args1=; unset ac_configure_args1;}
2277131962Smp
2278131962Smp# When interrupted or exit'd, cleanup temporary files, and complete
2279131962Smp# config.log.  We remove comments because anyway the quotes in there
2280131962Smp# would cause problems or look ugly.
2281195609Smp# WARNING: Use '\'' to represent an apostrophe within the trap.
2282195609Smp# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2283131962Smptrap 'exit_status=$?
2284131962Smp  # Save into config.log some information that might help in debugging.
2285131962Smp  {
2286131962Smp    echo
2287131962Smp
2288231990Smp    $as_echo "## ---------------- ##
2289131962Smp## Cache variables. ##
2290231990Smp## ---------------- ##"
2291131962Smp    echo
2292131962Smp    # The following way of writing the cache mishandles newlines in values,
2293195609Smp(
2294195609Smp  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2295195609Smp    eval ac_val=\$$ac_var
2296195609Smp    case $ac_val in #(
2297195609Smp    *${as_nl}*)
2298195609Smp      case $ac_var in #(
2299231990Smp      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2300231990Smp$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2301195609Smp      esac
2302195609Smp      case $ac_var in #(
2303195609Smp      _ | IFS | as_nl) ;; #(
2304231990Smp      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2305231990Smp      *) { eval $ac_var=; unset $ac_var;} ;;
2306195609Smp      esac ;;
2307195609Smp    esac
2308195609Smp  done
2309131962Smp  (set) 2>&1 |
2310195609Smp    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2311195609Smp    *${as_nl}ac_space=\ *)
2312131962Smp      sed -n \
2313195609Smp	"s/'\''/'\''\\\\'\'''\''/g;
2314195609Smp	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2315195609Smp      ;; #(
2316131962Smp    *)
2317195609Smp      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2318131962Smp      ;;
2319195609Smp    esac |
2320195609Smp    sort
2321195609Smp)
2322131962Smp    echo
2323131962Smp
2324231990Smp    $as_echo "## ----------------- ##
2325131962Smp## Output variables. ##
2326231990Smp## ----------------- ##"
2327131962Smp    echo
2328131962Smp    for ac_var in $ac_subst_vars
2329131962Smp    do
2330195609Smp      eval ac_val=\$$ac_var
2331195609Smp      case $ac_val in
2332231990Smp      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333195609Smp      esac
2334231990Smp      $as_echo "$ac_var='\''$ac_val'\''"
2335131962Smp    done | sort
2336131962Smp    echo
2337131962Smp
2338131962Smp    if test -n "$ac_subst_files"; then
2339231990Smp      $as_echo "## ------------------- ##
2340195609Smp## File substitutions. ##
2341231990Smp## ------------------- ##"
2342131962Smp      echo
2343131962Smp      for ac_var in $ac_subst_files
2344131962Smp      do
2345195609Smp	eval ac_val=\$$ac_var
2346195609Smp	case $ac_val in
2347231990Smp	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348195609Smp	esac
2349231990Smp	$as_echo "$ac_var='\''$ac_val'\''"
2350131962Smp      done | sort
2351131962Smp      echo
2352131962Smp    fi
2353131962Smp
2354131962Smp    if test -s confdefs.h; then
2355231990Smp      $as_echo "## ----------- ##
2356131962Smp## confdefs.h. ##
2357231990Smp## ----------- ##"
2358131962Smp      echo
2359195609Smp      cat confdefs.h
2360131962Smp      echo
2361131962Smp    fi
2362131962Smp    test "$ac_signal" != 0 &&
2363231990Smp      $as_echo "$as_me: caught signal $ac_signal"
2364231990Smp    $as_echo "$as_me: exit $exit_status"
2365131962Smp  } >&5
2366195609Smp  rm -f core *.core core.conftest.* &&
2367195609Smp    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2368131962Smp    exit $exit_status
2369195609Smp' 0
2370131962Smpfor ac_signal in 1 2 13 15; do
2371231990Smp  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2372131962Smpdone
2373131962Smpac_signal=0
2374131962Smp
2375131962Smp# confdefs.h avoids OS command line length limits that DEFS can exceed.
2376195609Smprm -f -r conftest* confdefs.h
2377131962Smp
2378231990Smp$as_echo "/* confdefs.h */" > confdefs.h
2379231990Smp
2380131962Smp# Predefined preprocessor variables.
2381131962Smp
2382131962Smpcat >>confdefs.h <<_ACEOF
2383131962Smp#define PACKAGE_NAME "$PACKAGE_NAME"
2384131962Smp_ACEOF
2385131962Smp
2386131962Smpcat >>confdefs.h <<_ACEOF
2387131962Smp#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2388131962Smp_ACEOF
2389131962Smp
2390131962Smpcat >>confdefs.h <<_ACEOF
2391131962Smp#define PACKAGE_VERSION "$PACKAGE_VERSION"
2392131962Smp_ACEOF
2393131962Smp
2394131962Smpcat >>confdefs.h <<_ACEOF
2395131962Smp#define PACKAGE_STRING "$PACKAGE_STRING"
2396131962Smp_ACEOF
2397131962Smp
2398131962Smpcat >>confdefs.h <<_ACEOF
2399131962Smp#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2400131962Smp_ACEOF
2401131962Smp
2402231990Smpcat >>confdefs.h <<_ACEOF
2403231990Smp#define PACKAGE_URL "$PACKAGE_URL"
2404231990Smp_ACEOF
2405131962Smp
2406231990Smp
2407131962Smp# Let the site file select an alternate cache file if it wants to.
2408231990Smp# Prefer an explicitly selected file to automatically selected ones.
2409231990Smpac_site_file1=NONE
2410231990Smpac_site_file2=NONE
2411195609Smpif test -n "$CONFIG_SITE"; then
2412231990Smp  # We do not want a PATH search for config.site.
2413231990Smp  case $CONFIG_SITE in #((
2414231990Smp    -*)  ac_site_file1=./$CONFIG_SITE;;
2415231990Smp    */*) ac_site_file1=$CONFIG_SITE;;
2416231990Smp    *)   ac_site_file1=./$CONFIG_SITE;;
2417231990Smp  esac
2418195609Smpelif test "x$prefix" != xNONE; then
2419231990Smp  ac_site_file1=$prefix/share/config.site
2420231990Smp  ac_site_file2=$prefix/etc/config.site
2421195609Smpelse
2422231990Smp  ac_site_file1=$ac_default_prefix/share/config.site
2423231990Smp  ac_site_file2=$ac_default_prefix/etc/config.site
242469408Sachefi
2425231990Smpfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2426195609Smpdo
2427231990Smp  test "x$ac_site_file" = xNONE && continue
2428231990Smp  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2429231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2430231990Smp$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2431131962Smp    sed 's/^/| /' "$ac_site_file" >&5
2432231990Smp    . "$ac_site_file" \
2433231990Smp      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434231990Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435231990Smpas_fn_error $? "failed to load site script $ac_site_file
2436231990SmpSee \`config.log' for more details" "$LINENO" 5; }
243769408Sache  fi
243869408Sachedone
243969408Sache
244069408Sacheif test -r "$cache_file"; then
2441231990Smp  # Some versions of bash will fail to source /dev/null (special files
2442231990Smp  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2443231990Smp  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2444231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2445231990Smp$as_echo "$as_me: loading cache $cache_file" >&6;}
2446131962Smp    case $cache_file in
2447195609Smp      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2448195609Smp      *)                      . "./$cache_file";;
2449131962Smp    esac
2450131962Smp  fi
245169408Sacheelse
2452231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2453231990Smp$as_echo "$as_me: creating cache $cache_file" >&6;}
2454131962Smp  >$cache_file
245569408Sachefi
245669408Sache
2457131962Smp# Check that the precious variables saved in the cache have kept the same
2458131962Smp# value.
2459131962Smpac_cache_corrupted=false
2460195609Smpfor ac_var in $ac_precious_vars; do
2461131962Smp  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2462131962Smp  eval ac_new_set=\$ac_env_${ac_var}_set
2463195609Smp  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2464195609Smp  eval ac_new_val=\$ac_env_${ac_var}_value
2465131962Smp  case $ac_old_set,$ac_new_set in
2466131962Smp    set,)
2467231990Smp      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2468231990Smp$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2469131962Smp      ac_cache_corrupted=: ;;
2470131962Smp    ,set)
2471231990Smp      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2472231990Smp$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2473131962Smp      ac_cache_corrupted=: ;;
2474131962Smp    ,);;
2475131962Smp    *)
2476131962Smp      if test "x$ac_old_val" != "x$ac_new_val"; then
2477231990Smp	# differences in whitespace do not lead to failure.
2478231990Smp	ac_old_val_w=`echo x $ac_old_val`
2479231990Smp	ac_new_val_w=`echo x $ac_new_val`
2480231990Smp	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2481231990Smp	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2482231990Smp$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2483231990Smp	  ac_cache_corrupted=:
2484231990Smp	else
2485231990Smp	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2486231990Smp$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2487231990Smp	  eval $ac_var=\$ac_old_val
2488231990Smp	fi
2489231990Smp	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2490231990Smp$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2491231990Smp	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2492231990Smp$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2493131962Smp      fi;;
2494131962Smp  esac
2495131962Smp  # Pass precious variables to config.status.
2496131962Smp  if test "$ac_new_set" = set; then
2497131962Smp    case $ac_new_val in
2498231990Smp    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2499131962Smp    *) ac_arg=$ac_var=$ac_new_val ;;
2500131962Smp    esac
2501131962Smp    case " $ac_configure_args " in
2502131962Smp      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2503231990Smp      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2504131962Smp    esac
2505131962Smp  fi
2506131962Smpdone
2507131962Smpif $ac_cache_corrupted; then
2508231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509231990Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2511231990Smp$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2512231990Smp  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2513131962Smpfi
2514231990Smp## -------------------- ##
2515231990Smp## Main body of script. ##
2516231990Smp## -------------------- ##
2517131962Smp
2518195609Smpac_ext=c
2519195609Smpac_cpp='$CPP $CPPFLAGS'
2520195609Smpac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521195609Smpac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522195609Smpac_compiler_gnu=$ac_cv_c_compiler_gnu
2523167465Smp
2524167465Smp
2525167465Smp
2526231990Smp
2527195609Smpac_config_headers="$ac_config_headers config.h"
2528167465Smp
2529195609Smpac_config_commands="$ac_config_commands ./atconfig"
2530145479Smp
2531145479Smp
253269408Sacheac_aux_dir=
2533195609Smpfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2534195609Smp  if test -f "$ac_dir/install-sh"; then
253569408Sache    ac_aux_dir=$ac_dir
253669408Sache    ac_install_sh="$ac_aux_dir/install-sh -c"
253769408Sache    break
2538195609Smp  elif test -f "$ac_dir/install.sh"; then
253969408Sache    ac_aux_dir=$ac_dir
254069408Sache    ac_install_sh="$ac_aux_dir/install.sh -c"
254169408Sache    break
2542195609Smp  elif test -f "$ac_dir/shtool"; then
2543131962Smp    ac_aux_dir=$ac_dir
2544131962Smp    ac_install_sh="$ac_aux_dir/shtool install -c"
2545131962Smp    break
254669408Sache  fi
254769408Sachedone
254869408Sacheif test -z "$ac_aux_dir"; then
2549231990Smp  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
255069408Sachefi
255169408Sache
2552195609Smp# These three variables are undocumented and unsupported,
2553195609Smp# and are intended to be withdrawn in a future Autoconf release.
2554195609Smp# They can cause serious problems if a builder's source tree is in a directory
2555195609Smp# whose full name contains unusual characters.
2556195609Smpac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2557195609Smpac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2558195609Smpac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2559195609Smp
2560195609Smp
2561231990Smp# Find a good install program.  We prefer a C program (faster),
2562231990Smp# so one script is as good as another.  But avoid the broken or
2563231990Smp# incompatible versions:
2564231990Smp# SysV /etc/install, /usr/sbin/install
2565231990Smp# SunOS /usr/etc/install
2566231990Smp# IRIX /sbin/install
2567231990Smp# AIX /bin/install
2568231990Smp# AmigaOS /C/install, which installs bootblocks on floppy discs
2569231990Smp# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2570231990Smp# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2571231990Smp# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2572231990Smp# OS/2's system install, which has a completely different semantic
2573231990Smp# ./install, which can be erroneously created by make from ./install.sh.
2574231990Smp# Reject install programs that cannot install multiple files.
2575231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2576231990Smp$as_echo_n "checking for a BSD-compatible install... " >&6; }
2577231990Smpif test -z "$INSTALL"; then
2578231990Smpif ${ac_cv_path_install+:} false; then :
2579231990Smp  $as_echo_n "(cached) " >&6
2580231990Smpelse
2581231990Smp  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582231990Smpfor as_dir in $PATH
2583231990Smpdo
2584231990Smp  IFS=$as_save_IFS
2585231990Smp  test -z "$as_dir" && as_dir=.
2586231990Smp    # Account for people who put trailing slashes in PATH elements.
2587231990Smpcase $as_dir/ in #((
2588231990Smp  ./ | .// | /[cC]/* | \
2589231990Smp  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2590231990Smp  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2591231990Smp  /usr/ucb/* ) ;;
2592231990Smp  *)
2593231990Smp    # OSF1 and SCO ODT 3.0 have their own names for install.
2594231990Smp    # Don't use installbsd from OSF since it installs stuff as root
2595231990Smp    # by default.
2596231990Smp    for ac_prog in ginstall scoinst install; do
2597231990Smp      for ac_exec_ext in '' $ac_executable_extensions; do
2598316957Sdchagin	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2599231990Smp	  if test $ac_prog = install &&
2600231990Smp	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601231990Smp	    # AIX install.  It has an incompatible calling convention.
2602231990Smp	    :
2603231990Smp	  elif test $ac_prog = install &&
2604231990Smp	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605231990Smp	    # program-specific install script used by HP pwplus--don't use.
2606231990Smp	    :
2607231990Smp	  else
2608231990Smp	    rm -rf conftest.one conftest.two conftest.dir
2609231990Smp	    echo one > conftest.one
2610231990Smp	    echo two > conftest.two
2611231990Smp	    mkdir conftest.dir
2612231990Smp	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2613231990Smp	      test -s conftest.one && test -s conftest.two &&
2614231990Smp	      test -s conftest.dir/conftest.one &&
2615231990Smp	      test -s conftest.dir/conftest.two
2616231990Smp	    then
2617231990Smp	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2618231990Smp	      break 3
2619231990Smp	    fi
2620231990Smp	  fi
2621231990Smp	fi
2622231990Smp      done
2623231990Smp    done
2624231990Smp    ;;
2625231990Smpesac
2626231990Smp
2627231990Smp  done
2628231990SmpIFS=$as_save_IFS
2629231990Smp
2630231990Smprm -rf conftest.one conftest.two conftest.dir
2631231990Smp
2632231990Smpfi
2633231990Smp  if test "${ac_cv_path_install+set}" = set; then
2634231990Smp    INSTALL=$ac_cv_path_install
2635231990Smp  else
2636231990Smp    # As a last resort, use the slow shell script.  Don't cache a
2637231990Smp    # value for INSTALL within a source directory, because that will
2638231990Smp    # break other packages using the cache if that directory is
2639231990Smp    # removed, or if the value is a relative name.
2640231990Smp    INSTALL=$ac_install_sh
2641231990Smp  fi
2642231990Smpfi
2643231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2644231990Smp$as_echo "$INSTALL" >&6; }
2645231990Smp
2646231990Smp# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2647231990Smp# It thinks the first close brace ends the variable substitution.
2648231990Smptest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2649231990Smp
2650231990Smptest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2651231990Smp
2652231990Smptest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2653231990Smp
2654131962Smp# Make sure we can run config.sub.
2655195609Smp$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2656231990Smp  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
265769408Sache
2658231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2659231990Smp$as_echo_n "checking build system type... " >&6; }
2660231990Smpif ${ac_cv_build+:} false; then :
2661231990Smp  $as_echo_n "(cached) " >&6
2662131962Smpelse
2663195609Smp  ac_build_alias=$build_alias
2664195609Smptest "x$ac_build_alias" = x &&
2665195609Smp  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2666195609Smptest "x$ac_build_alias" = x &&
2667231990Smp  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2668195609Smpac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2669231990Smp  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2670131962Smp
267169408Sachefi
2672231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2673231990Smp$as_echo "$ac_cv_build" >&6; }
2674195609Smpcase $ac_cv_build in
2675195609Smp*-*-*) ;;
2676231990Smp*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2677195609Smpesac
2678131962Smpbuild=$ac_cv_build
2679195609Smpac_save_IFS=$IFS; IFS='-'
2680195609Smpset x $ac_cv_build
2681195609Smpshift
2682195609Smpbuild_cpu=$1
2683195609Smpbuild_vendor=$2
2684195609Smpshift; shift
2685195609Smp# Remember, the first character of IFS is used to create $*,
2686195609Smp# except with old shells:
2687195609Smpbuild_os=$*
2688195609SmpIFS=$ac_save_IFS
2689195609Smpcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
269069408Sache
269169408Sache
2692231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2693231990Smp$as_echo_n "checking host system type... " >&6; }
2694231990Smpif ${ac_cv_host+:} false; then :
2695231990Smp  $as_echo_n "(cached) " >&6
2696131962Smpelse
2697195609Smp  if test "x$host_alias" = x; then
2698195609Smp  ac_cv_host=$ac_cv_build
2699195609Smpelse
2700195609Smp  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2701231990Smp    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2702195609Smpfi
270369408Sache
2704131962Smpfi
2705231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2706231990Smp$as_echo "$ac_cv_host" >&6; }
2707195609Smpcase $ac_cv_host in
2708195609Smp*-*-*) ;;
2709231990Smp*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2710195609Smpesac
2711131962Smphost=$ac_cv_host
2712195609Smpac_save_IFS=$IFS; IFS='-'
2713195609Smpset x $ac_cv_host
2714195609Smpshift
2715195609Smphost_cpu=$1
2716195609Smphost_vendor=$2
2717195609Smpshift; shift
2718195609Smp# Remember, the first character of IFS is used to create $*,
2719195609Smp# except with old shells:
2720195609Smphost_os=$*
2721195609SmpIFS=$ac_save_IFS
2722195609Smpcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
272369408Sache
272469408Sache
2725131962Smp
2726231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking cached host tuple" >&5
2727231990Smp$as_echo_n "checking cached host tuple... " >&6; }
272869408Sacheif { test x"${ac_cv_host_system_type+set}" = x"set" &&
272969408Sache     test x"$ac_cv_host_system_type" != x"$host"; }; then
2730231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: different" >&5
2731231990Smp$as_echo "different" >&6; }
2732231990Smp  as_fn_error $? "remove config.cache and re-run configure" "$LINENO" 5
273369408Sacheelse
2734231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2735231990Smp$as_echo "ok" >&6; }
273669408Sachefi
273769408Sacheac_cv_host_system_type="$host"
273869408Sache
273969408Sache
274069408Sache
274169408Sachecase "${host}" in
274269408Sache
274369408Sache  ## Alpha (DEC) machines.
274469408Sache  alpha*-dec-osf* )
274569408Sache    tcsh_config_file=decosf1
274669408Sache  ;;
274769408Sache
274869408Sache  ## Ultrix
274969408Sache  *-dec-ultrix* )
275069408Sache    tcsh_config_file=ultrix
275169408Sache  ;;
275269408Sache
275369408Sache  ## DGUX
275469408Sache  *-dg-dguxR4* )
275569408Sache    tcsh_config_file=dgux5.4
275669408Sache  ;;
275769408Sache  m88k-dg-dgux5.4R* )
275869408Sache    tcsh_config_file=dgux5.4
275969408Sache  ;;
276069408Sache
276169408Sache  ## HP/UX
276269408Sache  *-hp-hpux7* )
276369408Sache    tcsh_config_file=hpux7
276469408Sache  ;;
276569408Sache  *-hp-hpux[89]* )
276669408Sache    tcsh_config_file=hpux8
276769408Sache  ;;
276869408Sache  *-hp-hpux1[0-9]* )
276983098Smp    tcsh_config_file=hpux11
277069408Sache  ;;
277169408Sache
277269408Sache  ## IBM AIX systems
277369408Sache  *-ibm-aix*)
277469408Sache    tcsh_config_file=aix
277569408Sache  ;;
277669408Sache
277769408Sache  ## SX-4
277869408Sache  sx4-nec-*)
277969408Sache    CC='cc -h0,ansi,novector,float0'
278069408Sache    LDFLAGS='-Gsmall'
278169408Sache    tcsh_config_file=superux8
278269408Sache  ;;
278369408Sache
278469408Sache  ## IBM OS/390 systems
278569408Sache  *-ibm-os390*)
278669408Sache    CC='c89'
278769408Sache    tcsh_config_file=os390
278869408Sache  ;;
278969408Sache
2790231990Smp  ## Android
2791231990Smp  *-*-android*)
2792231990Smp    tcsh_config_file=android
2793231990Smp  ;;
2794231990Smp
279569408Sache  ## Linux
2796145479Smp  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
279769408Sache    tcsh_config_file=linux
279869408Sache  ;;
279969408Sache
280069408Sache  ## Motorola systems
280169408Sache  m68k-motorola-sysv* )
280269408Sache    tcsh_config_file=sysV68
280369408Sache  ;;
280469408Sache  m88k-motorola-sysv3* )
280569408Sache    tcsh_config_file=sysV88
280669408Sache  ;;
280769408Sache
2808316957Sdchagin  ## Minix systems
2809316957Sdchagin  *-*-minix*)
2810316957Sdchagin    tcsh_config_file=minix
2811316957Sdchagin  ;;
2812316957Sdchagin
281369408Sache  ## NetBSD systems
281469408Sache  *-*-netbsd*)
281569408Sache    tcsh_config_file=bsd4.4
281669408Sache  ;;
281769408Sache
281869408Sache  ## FreeBSD systems
281969408Sache  *-*-freebsd*)
282069408Sache    tcsh_config_file=bsd4.4
282169408Sache  ;;
282269408Sache
2823195609Smp  ## MidnightBSD systems
2824195609Smp  *-*-midnightbsd*)
2825195609Smp    tcsh_config_file=bsd4.4
2826195609Smp  ;;
2827195609Smp
2828195609Smp  ## DragonFlyBSD systems
2829195609Smp  *-*-dragonfly*)
2830195609Smp    tcsh_config_file=bsd4.4
2831195609Smp  ;;
2832195609Smp
2833316957Sdchagin  ## MirBSD systems
2834316957Sdchagin  *-*-mirbsd*)
2835316957Sdchagin    tcsh_config_file=bsd4.4
2836316957Sdchagin  ;;
2837316957Sdchagin
283869408Sache  ## OpenBSD systems
283969408Sache  *-*-openbsd*)
284069408Sache    tcsh_config_file=bsd4.4
284169408Sache  ;;
284269408Sache
284369408Sache  ## BSDI systems
284469408Sache  *-*-bsdi*)
284569408Sache    tcsh_config_file=bsd4.4
284669408Sache  ;;
284769408Sache
284869408Sache  ## Mac OS X Server
284969408Sache  *-*-rhapsody* )
285069408Sache    tcsh_config_file=bsd4.4
285169408Sache  ;;
285269408Sache
2853100616Smp  ## Mac OS X Server
2854100616Smp  *-*-darwin* )
2855100616Smp    tcsh_config_file=bsd4.4
2856100616Smp  ;;
2857100616Smp
2858167465Smp  ## DragonFly systems
2859167465Smp  *-*-dragonfly*)
2860167465Smp    tcsh_config_file=bsd4.4
2861167465Smp  ;;
2862167465Smp
286369408Sache  ## Silicon Graphics machines
286469408Sache  *-sgi-iri* )
286569408Sache    tcsh_config_file=irix
286669408Sache    case "${host_os}" in
286769408Sache      irix[34]*) # Irix-3.x - Irix 4.x
286869408Sache        NON_GNU_DFLAGS='-D__STDC__'
286969408Sache        LIBS='-lsun -lbsd -lc_s'
287069408Sache      ;;
287169408Sache      irix5* | irix6.[01]*) # Irix 5.x, Irix 6.0 - 6.1
287269408Sache        LIBS='-lbsd'
287369408Sache      ;;
287469408Sache      irix6.[2-9]*) # Irix 6.2 and later
287569408Sache	tcsh_config_file=irix62
287669408Sache      ;;
287769408Sache    esac
287869408Sache  ;;
287969408Sache
288069408Sache  ## Suns
288169408Sache  *-sun-sunos3* )
288269408Sache    tcsh_config_file=sunos35
288369408Sache  ;;
288469408Sache  *-sun-sunos4.0* )
288569408Sache    tcsh_config_file=sunos40
288669408Sache  ;;
288769408Sache  *-sun-sunos4.1.[12]* )
288869408Sache    tcsh_config_file=sunos41
288969408Sache  ;;
289069408Sache  *-sun-sunos4.1.[3456]* )
289169408Sache    tcsh_config_file=sunos413
289269408Sache  ;;
2893167465Smp  *-*-solaris2.[01] ) # Should handle sparc or x86
289469408Sache    tcsh_config_file=sol2
289569408Sache  ;;
2896167465Smp  *-sun-solaris2.2 ) # Sparc only release
289769408Sache    tcsh_config_file=sol22
289869408Sache  ;;
2899167465Smp  *-sun-solaris2.3 ) # Sparc only release
290069408Sache    tcsh_config_file=sol23
290169408Sache  ;;
2902167465Smp  *-*-solaris2.[45] ) # Should handle sparc, x86 and powerpc
290369408Sache    tcsh_config_file=sol24
290469408Sache  ;;
2905231990Smp  *-*-solaris2.[678] ) # Should handle sparc, x86 and powerpc
290669408Sache    tcsh_config_file=sol26
290769408Sache  ;;
2908231990Smp  *-*-solaris2.* ) # Should handle sparc, x86 and powerpc
2909231990Smp    tcsh_config_file=sol29
2910231990Smp  ;;
291169408Sache
291269408Sache  ## Dell SVR4
291369408Sache  *-dell-sysv4* )
291469408Sache    tcsh_config_file=sysv4
291569408Sache    DFLAGS="$DFLAGS -DDELL"
291669408Sache  ;;
291769408Sache
291869408Sache  ## SVR4 (Generic and otherwise)
291969408Sache  *-*-sysv4* )
292069408Sache    tcsh_config_file=sysv4
292169408Sache  ;;
292269408Sache
292369408Sache  ## Tektronix systems
292469408Sache  m68k-tektronix-bsd* )
292569408Sache    tcsh_config_file=bsd
292669408Sache    NON_GNU_DFLAGS='-DBSD -DUTek'
292769408Sache  ;;
292869408Sache  m88k-tektronix-sysv3* )
292969408Sache    tcsh_config_file=tekXD88
293069408Sache  ;;
293169408Sache
293269408Sache  ## SCO
2933131962Smp  *-sco3.2v5*)
293469408Sache    tcsh_config_file=sco32v5
293569408Sache  ;;
293669408Sache  *-sco3.2v4*)
293769408Sache    tcsh_config_file=sco32v4
293869408Sache  ;;
293969408Sache  *-sco3.2v2*)
294069408Sache    tcsh_config_file=sco32v2
294169408Sache  ;;
294269408Sache
294369408Sache  ## Siemens BS2000 Mainframe
2944145479Smp  bs2000-siemens-*)
294569408Sache    tcsh_config_file=bs2000
294669408Sache  ;;
294769408Sache
294869408Sache  ## Convex
294969408Sache  *-convex*)
295069408Sache    tcsh_config_file=convex
295169408Sache  ;;
295269408Sache
295369408Sache  ## Cray
295469408Sache  *-cray-unicos*)
295569408Sache    tcsh_config_file=cray
295669408Sache  ;;
295769408Sache
2958145479Smp  ## Red Hat Cygwin
295969408Sache  *-cygwin)
2960231990Smp    tcsh_config_file=cygwin
296169408Sache  ;;
296269408Sache
296369408Sache  ## mips-compaq-nonstopux
296469408Sache  *-*-nonstopux)
296569408Sache    tcsh_config_file=sysv4
296669408Sache  ;;
296769408Sache
296883098Smp  ## Apollo Domain/OS
296983098Smp  *-apollo-*)
297083098Smp    tcsh_config_file=apollo
297183098Smp  ;;
297283098Smp
2973195609Smp  ## QNX6
2974195609Smp  *-qnx6*)
2975195609Smp    tcsh_config_file=qnx6
2976195609Smp  ;;
2977195609Smp
297869408Sache  * )
2979231990Smp    as_fn_error $? "Tcsh can't guess the configuration file name
298069408Sachefor \`${host}' systems.
2981231990SmpCheck tcsh's \`Ported' file for manual configuration instructions." "$LINENO" 5
298269408Sache    ;;
298369408Sache
298469408Sacheesac
298569408Sache
298669408Sacheecho "Tcsh will use configuration file \`$tcsh_config_file'."
2987145479Smpcp ${srcdir}/config/${tcsh_config_file} config_p.h
298869408Sache
298969408Sache
2990131962Smpac_ext=c
2991131962Smpac_cpp='$CPP $CPPFLAGS'
2992131962Smpac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993131962Smpac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994131962Smpac_compiler_gnu=$ac_cv_c_compiler_gnu
2995131962Smpif test -n "$ac_tool_prefix"; then
2996131962Smp  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2997131962Smpset dummy ${ac_tool_prefix}gcc; ac_word=$2
2998231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999231990Smp$as_echo_n "checking for $ac_word... " >&6; }
3000231990Smpif ${ac_cv_prog_CC+:} false; then :
3001231990Smp  $as_echo_n "(cached) " >&6
3002131962Smpelse
3003131962Smp  if test -n "$CC"; then
3004131962Smp  ac_cv_prog_CC="$CC" # Let the user override the test.
3005131962Smpelse
3006131962Smpas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007131962Smpfor as_dir in $PATH
3008131962Smpdo
3009131962Smp  IFS=$as_save_IFS
3010131962Smp  test -z "$as_dir" && as_dir=.
3011231990Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3012316957Sdchagin  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013131962Smp    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3014231990Smp    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015131962Smp    break 2
3016131962Smp  fi
3017131962Smpdone
3018231990Smp  done
3019195609SmpIFS=$as_save_IFS
3020131962Smp
3021131962Smpfi
3022131962Smpfi
3023131962SmpCC=$ac_cv_prog_CC
3024131962Smpif test -n "$CC"; then
3025231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026231990Smp$as_echo "$CC" >&6; }
3027131962Smpelse
3028231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029231990Smp$as_echo "no" >&6; }
3030131962Smpfi
3031131962Smp
3032195609Smp
3033131962Smpfi
3034131962Smpif test -z "$ac_cv_prog_CC"; then
3035131962Smp  ac_ct_CC=$CC
3036131962Smp  # Extract the first word of "gcc", so it can be a program name with args.
303769408Sacheset dummy gcc; ac_word=$2
3038231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039231990Smp$as_echo_n "checking for $ac_word... " >&6; }
3040231990Smpif ${ac_cv_prog_ac_ct_CC+:} false; then :
3041231990Smp  $as_echo_n "(cached) " >&6
304269408Sacheelse
3043131962Smp  if test -n "$ac_ct_CC"; then
3044131962Smp  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3045131962Smpelse
3046131962Smpas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047131962Smpfor as_dir in $PATH
3048131962Smpdo
3049131962Smp  IFS=$as_save_IFS
3050131962Smp  test -z "$as_dir" && as_dir=.
3051231990Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3052316957Sdchagin  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053131962Smp    ac_cv_prog_ac_ct_CC="gcc"
3054231990Smp    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055131962Smp    break 2
3056131962Smp  fi
3057131962Smpdone
3058231990Smp  done
3059195609SmpIFS=$as_save_IFS
3060131962Smp
3061131962Smpfi
3062131962Smpfi
3063131962Smpac_ct_CC=$ac_cv_prog_ac_ct_CC
3064131962Smpif test -n "$ac_ct_CC"; then
3065231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3066231990Smp$as_echo "$ac_ct_CC" >&6; }
3067131962Smpelse
3068231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069231990Smp$as_echo "no" >&6; }
3070131962Smpfi
3071131962Smp
3072195609Smp  if test "x$ac_ct_CC" = x; then
3073195609Smp    CC=""
3074195609Smp  else
3075195609Smp    case $cross_compiling:$ac_tool_warned in
3076195609Smpyes:)
3077231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3078231990Smp$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3079195609Smpac_tool_warned=yes ;;
3080195609Smpesac
3081195609Smp    CC=$ac_ct_CC
3082195609Smp  fi
3083131962Smpelse
3084131962Smp  CC="$ac_cv_prog_CC"
3085131962Smpfi
3086131962Smp
3087131962Smpif test -z "$CC"; then
3088195609Smp          if test -n "$ac_tool_prefix"; then
3089195609Smp    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3090131962Smpset dummy ${ac_tool_prefix}cc; ac_word=$2
3091231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092231990Smp$as_echo_n "checking for $ac_word... " >&6; }
3093231990Smpif ${ac_cv_prog_CC+:} false; then :
3094231990Smp  $as_echo_n "(cached) " >&6
3095131962Smpelse
309669408Sache  if test -n "$CC"; then
309769408Sache  ac_cv_prog_CC="$CC" # Let the user override the test.
309869408Sacheelse
3099131962Smpas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100131962Smpfor as_dir in $PATH
3101131962Smpdo
3102131962Smp  IFS=$as_save_IFS
3103131962Smp  test -z "$as_dir" && as_dir=.
3104231990Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3105316957Sdchagin  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106131962Smp    ac_cv_prog_CC="${ac_tool_prefix}cc"
3107231990Smp    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108131962Smp    break 2
3109131962Smp  fi
3110131962Smpdone
3111231990Smp  done
3112195609SmpIFS=$as_save_IFS
3113131962Smp
311469408Sachefi
311569408Sachefi
3116131962SmpCC=$ac_cv_prog_CC
311769408Sacheif test -n "$CC"; then
3118231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119231990Smp$as_echo "$CC" >&6; }
312069408Sacheelse
3121231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122231990Smp$as_echo "no" >&6; }
312369408Sachefi
312469408Sache
3125195609Smp
3126131962Smp  fi
3127131962Smpfi
312869408Sacheif test -z "$CC"; then
312969408Sache  # Extract the first word of "cc", so it can be a program name with args.
313069408Sacheset dummy cc; ac_word=$2
3131231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132231990Smp$as_echo_n "checking for $ac_word... " >&6; }
3133231990Smpif ${ac_cv_prog_CC+:} false; then :
3134231990Smp  $as_echo_n "(cached) " >&6
313569408Sacheelse
313669408Sache  if test -n "$CC"; then
313769408Sache  ac_cv_prog_CC="$CC" # Let the user override the test.
313869408Sacheelse
313969408Sache  ac_prog_rejected=no
3140131962Smpas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141131962Smpfor as_dir in $PATH
3142131962Smpdo
3143131962Smp  IFS=$as_save_IFS
3144131962Smp  test -z "$as_dir" && as_dir=.
3145231990Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3146316957Sdchagin  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147131962Smp    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3148131962Smp       ac_prog_rejected=yes
3149131962Smp       continue
3150131962Smp     fi
3151131962Smp    ac_cv_prog_CC="cc"
3152231990Smp    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153131962Smp    break 2
3154131962Smp  fi
3155131962Smpdone
3156231990Smp  done
3157195609SmpIFS=$as_save_IFS
3158131962Smp
315969408Sacheif test $ac_prog_rejected = yes; then
316069408Sache  # We found a bogon in the path, so make sure we never use it.
316169408Sache  set dummy $ac_cv_prog_CC
316269408Sache  shift
3163131962Smp  if test $# != 0; then
316469408Sache    # We chose a different compiler from the bogus one.
316569408Sache    # However, it has the same basename, so the bogon will be chosen
316669408Sache    # first if we set CC to just the basename; use the full file name.
316769408Sache    shift
3168131962Smp    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
316969408Sache  fi
317069408Sachefi
317169408Sachefi
317269408Sachefi
3173131962SmpCC=$ac_cv_prog_CC
317469408Sacheif test -n "$CC"; then
3175231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176231990Smp$as_echo "$CC" >&6; }
317769408Sacheelse
3178231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179231990Smp$as_echo "no" >&6; }
318069408Sachefi
318169408Sache
3182195609Smp
3183131962Smpfi
3184131962Smpif test -z "$CC"; then
3185131962Smp  if test -n "$ac_tool_prefix"; then
3186195609Smp  for ac_prog in cl.exe
3187131962Smp  do
3188131962Smp    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3189131962Smpset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3190231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191231990Smp$as_echo_n "checking for $ac_word... " >&6; }
3192231990Smpif ${ac_cv_prog_CC+:} false; then :
3193231990Smp  $as_echo_n "(cached) " >&6
319469408Sacheelse
319569408Sache  if test -n "$CC"; then
319669408Sache  ac_cv_prog_CC="$CC" # Let the user override the test.
319769408Sacheelse
3198131962Smpas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199131962Smpfor as_dir in $PATH
3200131962Smpdo
3201131962Smp  IFS=$as_save_IFS
3202131962Smp  test -z "$as_dir" && as_dir=.
3203231990Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3204316957Sdchagin  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205131962Smp    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3206231990Smp    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207131962Smp    break 2
3208131962Smp  fi
3209131962Smpdone
3210231990Smp  done
3211195609SmpIFS=$as_save_IFS
3212131962Smp
321369408Sachefi
321469408Sachefi
3215131962SmpCC=$ac_cv_prog_CC
321669408Sacheif test -n "$CC"; then
3217231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3218231990Smp$as_echo "$CC" >&6; }
321969408Sacheelse
3220231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221231990Smp$as_echo "no" >&6; }
322269408Sachefi
3223131962Smp
3224195609Smp
3225131962Smp    test -n "$CC" && break
3226131962Smp  done
3227131962Smpfi
3228131962Smpif test -z "$CC"; then
3229131962Smp  ac_ct_CC=$CC
3230195609Smp  for ac_prog in cl.exe
3231131962Smpdo
3232131962Smp  # Extract the first word of "$ac_prog", so it can be a program name with args.
3233131962Smpset dummy $ac_prog; ac_word=$2
3234231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235231990Smp$as_echo_n "checking for $ac_word... " >&6; }
3236231990Smpif ${ac_cv_prog_ac_ct_CC+:} false; then :
3237231990Smp  $as_echo_n "(cached) " >&6
3238131962Smpelse
3239131962Smp  if test -n "$ac_ct_CC"; then
3240131962Smp  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3241131962Smpelse
3242131962Smpas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243131962Smpfor as_dir in $PATH
3244131962Smpdo
3245131962Smp  IFS=$as_save_IFS
3246131962Smp  test -z "$as_dir" && as_dir=.
3247231990Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3248316957Sdchagin  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249131962Smp    ac_cv_prog_ac_ct_CC="$ac_prog"
3250231990Smp    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251131962Smp    break 2
325269408Sache  fi
3253131962Smpdone
3254231990Smp  done
3255195609SmpIFS=$as_save_IFS
3256131962Smp
325769408Sachefi
3258131962Smpfi
3259131962Smpac_ct_CC=$ac_cv_prog_ac_ct_CC
3260131962Smpif test -n "$ac_ct_CC"; then
3261231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3262231990Smp$as_echo "$ac_ct_CC" >&6; }
3263131962Smpelse
3264231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265231990Smp$as_echo "no" >&6; }
3266131962Smpfi
326769408Sache
3268195609Smp
3269131962Smp  test -n "$ac_ct_CC" && break
3270131962Smpdone
327169408Sache
3272195609Smp  if test "x$ac_ct_CC" = x; then
3273195609Smp    CC=""
3274195609Smp  else
3275195609Smp    case $cross_compiling:$ac_tool_warned in
3276195609Smpyes:)
3277231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3278231990Smp$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3279195609Smpac_tool_warned=yes ;;
3280195609Smpesac
3281195609Smp    CC=$ac_ct_CC
3282195609Smp  fi
3283131962Smpfi
328469408Sache
3285131962Smpfi
328669408Sache
328769408Sache
3288231990Smptest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289231990Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290231990Smpas_fn_error $? "no acceptable C compiler found in \$PATH
3291231990SmpSee \`config.log' for more details" "$LINENO" 5; }
3292131962Smp
3293131962Smp# Provide some information about the compiler.
3294231990Smp$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3295231990Smpset X $ac_compile
3296231990Smpac_compiler=$2
3297231990Smpfor ac_option in --version -v -V -qversion; do
3298231990Smp  { { ac_try="$ac_compiler $ac_option >&5"
3299195609Smpcase "(($ac_try" in
3300195609Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301195609Smp  *) ac_try_echo=$ac_try;;
3302195609Smpesac
3303231990Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304231990Smp$as_echo "$ac_try_echo"; } >&5
3305231990Smp  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3306131962Smp  ac_status=$?
3307231990Smp  if test -s conftest.err; then
3308231990Smp    sed '10a\
3309231990Smp... rest of stderr output deleted ...
3310231990Smp         10q' conftest.err >conftest.er1
3311231990Smp    cat conftest.er1 >&5
3312231990Smp  fi
3313231990Smp  rm -f conftest.er1 conftest.err
3314231990Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315231990Smp  test $ac_status = 0; }
3316231990Smpdone
3317131962Smp
3318231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319131962Smp/* end confdefs.h.  */
3320131962Smp
3321131962Smpint
3322131962Smpmain ()
3323131962Smp{
3324131962Smp
3325131962Smp  ;
3326131962Smp  return 0;
3327131962Smp}
3328131962Smp_ACEOF
3329131962Smpac_clean_files_save=$ac_clean_files
3330231990Smpac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3331131962Smp# Try to create an executable without -o first, disregard a.out.
3332131962Smp# It will help us diagnose broken compilers, and finding out an intuition
3333131962Smp# of exeext.
3334231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3335231990Smp$as_echo_n "checking whether the C compiler works... " >&6; }
3336231990Smpac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3337231990Smp
3338231990Smp# The possible output files:
3339231990Smpac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3340231990Smp
3341195609Smpac_rmfiles=
3342195609Smpfor ac_file in $ac_files
3343195609Smpdo
3344195609Smp  case $ac_file in
3345231990Smp    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3346195609Smp    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3347195609Smp  esac
3348195609Smpdone
3349195609Smprm -f $ac_rmfiles
3350195609Smp
3351231990Smpif { { ac_try="$ac_link_default"
3352195609Smpcase "(($ac_try" in
3353195609Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354195609Smp  *) ac_try_echo=$ac_try;;
3355195609Smpesac
3356231990Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357231990Smp$as_echo "$ac_try_echo"; } >&5
3358195609Smp  (eval "$ac_link_default") 2>&5
3359131962Smp  ac_status=$?
3360231990Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361231990Smp  test $ac_status = 0; }; then :
3362195609Smp  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3363195609Smp# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3364195609Smp# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3365195609Smp# so that the user can short-circuit this test for compilers unknown to
3366195609Smp# Autoconf.
3367195609Smpfor ac_file in $ac_files ''
3368131962Smpdo
3369131962Smp  test -f "$ac_file" || continue
3370131962Smp  case $ac_file in
3371231990Smp    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3372145479Smp	;;
3373131962Smp    [ab].out )
3374145479Smp	# We found the default executable, but exeext='' is most
3375145479Smp	# certainly right.
3376145479Smp	break;;
3377131962Smp    *.* )
3378231990Smp	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3379195609Smp	then :; else
3380195609Smp	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3381195609Smp	fi
3382195609Smp	# We set ac_cv_exeext here because the later test for it is not
3383195609Smp	# safe: cross compilers may not add the suffix if given an `-o'
3384195609Smp	# argument, so we may need to know it at that point already.
3385195609Smp	# Even if this section looks crufty: it has the advantage of
3386195609Smp	# actually working.
3387145479Smp	break;;
3388131962Smp    * )
3389145479Smp	break;;
3390131962Smp  esac
3391131962Smpdone
3392195609Smptest "$ac_cv_exeext" = no && ac_cv_exeext=
3393195609Smp
3394131962Smpelse
3395195609Smp  ac_file=''
3396195609Smpfi
3397231990Smpif test -z "$ac_file"; then :
3398231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399231990Smp$as_echo "no" >&6; }
3400231990Smp$as_echo "$as_me: failed program was:" >&5
3401131962Smpsed 's/^/| /' conftest.$ac_ext >&5
3402131962Smp
3403231990Smp{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404231990Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405231990Smpas_fn_error 77 "C compiler cannot create executables
3406231990SmpSee \`config.log' for more details" "$LINENO" 5; }
3407231990Smpelse
3408231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3409231990Smp$as_echo "yes" >&6; }
3410131962Smpfi
3411231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3412231990Smp$as_echo_n "checking for C compiler default output file name... " >&6; }
3413231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3414231990Smp$as_echo "$ac_file" >&6; }
3415131962Smpac_exeext=$ac_cv_exeext
3416131962Smp
3417231990Smprm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3418131962Smpac_clean_files=$ac_clean_files_save
3419231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3420231990Smp$as_echo_n "checking for suffix of executables... " >&6; }
3421231990Smpif { { ac_try="$ac_link"
3422195609Smpcase "(($ac_try" in
3423195609Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424195609Smp  *) ac_try_echo=$ac_try;;
3425195609Smpesac
3426231990Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427231990Smp$as_echo "$ac_try_echo"; } >&5
3428195609Smp  (eval "$ac_link") 2>&5
3429131962Smp  ac_status=$?
3430231990Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431231990Smp  test $ac_status = 0; }; then :
3432131962Smp  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3433131962Smp# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3434131962Smp# work properly (i.e., refer to `conftest.exe'), while it won't with
3435131962Smp# `rm'.
3436131962Smpfor ac_file in conftest.exe conftest conftest.*; do
3437131962Smp  test -f "$ac_file" || continue
3438131962Smp  case $ac_file in
3439231990Smp    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3440131962Smp    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3441145479Smp	  break;;
3442131962Smp    * ) break;;
3443131962Smp  esac
3444131962Smpdone
3445131962Smpelse
3446231990Smp  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447231990Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448231990Smpas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3449231990SmpSee \`config.log' for more details" "$LINENO" 5; }
345069408Sachefi
3451231990Smprm -f conftest conftest$ac_cv_exeext
3452231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3453231990Smp$as_echo "$ac_cv_exeext" >&6; }
345469408Sache
3455131962Smprm -f conftest.$ac_ext
3456131962SmpEXEEXT=$ac_cv_exeext
3457131962Smpac_exeext=$EXEEXT
3458231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459231990Smp/* end confdefs.h.  */
3460231990Smp#include <stdio.h>
3461231990Smpint
3462231990Smpmain ()
3463231990Smp{
3464231990SmpFILE *f = fopen ("conftest.out", "w");
3465231990Smp return ferror (f) || fclose (f) != 0;
3466231990Smp
3467231990Smp  ;
3468231990Smp  return 0;
3469231990Smp}
3470231990Smp_ACEOF
3471231990Smpac_clean_files="$ac_clean_files conftest.out"
3472231990Smp# Check that the compiler produces executables we can run.  If not, either
3473231990Smp# the compiler is broken, or we cross compile.
3474231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3475231990Smp$as_echo_n "checking whether we are cross compiling... " >&6; }
3476231990Smpif test "$cross_compiling" != yes; then
3477231990Smp  { { ac_try="$ac_link"
3478231990Smpcase "(($ac_try" in
3479231990Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480231990Smp  *) ac_try_echo=$ac_try;;
3481231990Smpesac
3482231990Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483231990Smp$as_echo "$ac_try_echo"; } >&5
3484231990Smp  (eval "$ac_link") 2>&5
3485231990Smp  ac_status=$?
3486231990Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487231990Smp  test $ac_status = 0; }
3488231990Smp  if { ac_try='./conftest$ac_cv_exeext'
3489231990Smp  { { case "(($ac_try" in
3490231990Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491231990Smp  *) ac_try_echo=$ac_try;;
3492231990Smpesac
3493231990Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494231990Smp$as_echo "$ac_try_echo"; } >&5
3495231990Smp  (eval "$ac_try") 2>&5
3496231990Smp  ac_status=$?
3497231990Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498231990Smp  test $ac_status = 0; }; }; then
3499231990Smp    cross_compiling=no
3500231990Smp  else
3501231990Smp    if test "$cross_compiling" = maybe; then
3502231990Smp	cross_compiling=yes
3503231990Smp    else
3504231990Smp	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505231990Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506231990Smpas_fn_error $? "cannot run C compiled programs.
3507231990SmpIf you meant to cross compile, use \`--host'.
3508231990SmpSee \`config.log' for more details" "$LINENO" 5; }
3509231990Smp    fi
3510231990Smp  fi
3511231990Smpfi
3512231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3513231990Smp$as_echo "$cross_compiling" >&6; }
3514231990Smp
3515231990Smprm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3516231990Smpac_clean_files=$ac_clean_files_save
3517231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3518231990Smp$as_echo_n "checking for suffix of object files... " >&6; }
3519231990Smpif ${ac_cv_objext+:} false; then :
3520231990Smp  $as_echo_n "(cached) " >&6
352169408Sacheelse
3522231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523131962Smp/* end confdefs.h.  */
3524131962Smp
3525131962Smpint
3526131962Smpmain ()
3527131962Smp{
3528131962Smp
3529131962Smp  ;
3530131962Smp  return 0;
3531131962Smp}
3532131962Smp_ACEOF
3533131962Smprm -f conftest.o conftest.obj
3534231990Smpif { { ac_try="$ac_compile"
3535195609Smpcase "(($ac_try" in
3536195609Smp  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537195609Smp  *) ac_try_echo=$ac_try;;
3538195609Smpesac
3539231990Smpeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540231990Smp$as_echo "$ac_try_echo"; } >&5
3541195609Smp  (eval "$ac_compile") 2>&5
3542131962Smp  ac_status=$?
3543231990Smp  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544231990Smp  test $ac_status = 0; }; then :
3545195609Smp  for ac_file in conftest.o conftest.obj conftest.*; do
3546195609Smp  test -f "$ac_file" || continue;
3547131962Smp  case $ac_file in
3548231990Smp    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3549131962Smp    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3550131962Smp       break;;
3551131962Smp  esac
3552131962Smpdone
355369408Sacheelse
3554231990Smp  $as_echo "$as_me: failed program was:" >&5
3555131962Smpsed 's/^/| /' conftest.$ac_ext >&5
3556131962Smp
3557231990Smp{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558231990Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559231990Smpas_fn_error $? "cannot compute suffix of object files: cannot compile
3560231990SmpSee \`config.log' for more details" "$LINENO" 5; }
356169408Sachefi
3562131962Smprm -f conftest.$ac_cv_objext conftest.$ac_ext
356369408Sachefi
3564231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3565231990Smp$as_echo "$ac_cv_objext" >&6; }
3566131962SmpOBJEXT=$ac_cv_objext
3567131962Smpac_objext=$OBJEXT
3568231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3569231990Smp$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3570231990Smpif ${ac_cv_c_compiler_gnu+:} false; then :
3571231990Smp  $as_echo_n "(cached) " >&6
3572131962Smpelse
3573231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574131962Smp/* end confdefs.h.  */
357569408Sache
3576131962Smpint
3577131962Smpmain ()
3578131962Smp{
3579131962Smp#ifndef __GNUC__
3580131962Smp       choke me
3581131962Smp#endif
358269408Sache
3583131962Smp  ;
3584131962Smp  return 0;
3585131962Smp}
3586131962Smp_ACEOF
3587231990Smpif ac_fn_c_try_compile "$LINENO"; then :
3588131962Smp  ac_compiler_gnu=yes
358969408Sacheelse
3590231990Smp  ac_compiler_gnu=no
359169408Sachefi
3592195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593131962Smpac_cv_c_compiler_gnu=$ac_compiler_gnu
359469408Sache
3595131962Smpfi
3596231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3597231990Smp$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3598231990Smpif test $ac_compiler_gnu = yes; then
3599231990Smp  GCC=yes
3600231990Smpelse
3601231990Smp  GCC=
3602231990Smpfi
3603131962Smpac_test_CFLAGS=${CFLAGS+set}
3604131962Smpac_save_CFLAGS=$CFLAGS
3605231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3606231990Smp$as_echo_n "checking whether $CC accepts -g... " >&6; }
3607231990Smpif ${ac_cv_prog_cc_g+:} false; then :
3608231990Smp  $as_echo_n "(cached) " >&6
360969408Sacheelse
3610195609Smp  ac_save_c_werror_flag=$ac_c_werror_flag
3611195609Smp   ac_c_werror_flag=yes
3612195609Smp   ac_cv_prog_cc_g=no
3613195609Smp   CFLAGS="-g"
3614231990Smp   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615131962Smp/* end confdefs.h.  */
3616131962Smp
3617131962Smpint
3618131962Smpmain ()
3619131962Smp{
3620131962Smp
3621131962Smp  ;
3622131962Smp  return 0;
3623131962Smp}
3624131962Smp_ACEOF
3625231990Smpif ac_fn_c_try_compile "$LINENO"; then :
3626195609Smp  ac_cv_prog_cc_g=yes
3627195609Smpelse
3628231990Smp  CFLAGS=""
3629231990Smp      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630195609Smp/* end confdefs.h.  */
3631195609Smp
3632195609Smpint
3633195609Smpmain ()
3634195609Smp{
3635195609Smp
3636195609Smp  ;
3637195609Smp  return 0;
3638195609Smp}
3639195609Smp_ACEOF
3640231990Smpif ac_fn_c_try_compile "$LINENO"; then :
3641231990Smp
3642195609Smpelse
3643231990Smp  ac_c_werror_flag=$ac_save_c_werror_flag
3644195609Smp	 CFLAGS="-g"
3645231990Smp	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646195609Smp/* end confdefs.h.  */
3647195609Smp
3648195609Smpint
3649195609Smpmain ()
3650195609Smp{
3651195609Smp
3652195609Smp  ;
3653195609Smp  return 0;
3654195609Smp}
3655195609Smp_ACEOF
3656231990Smpif ac_fn_c_try_compile "$LINENO"; then :
365769408Sache  ac_cv_prog_cc_g=yes
365869408Sachefi
3659195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660131962Smpfi
3661195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662195609Smpfi
3663195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664195609Smp   ac_c_werror_flag=$ac_save_c_werror_flag
3665195609Smpfi
3666231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3667231990Smp$as_echo "$ac_cv_prog_cc_g" >&6; }
366869408Sacheif test "$ac_test_CFLAGS" = set; then
3669131962Smp  CFLAGS=$ac_save_CFLAGS
367069408Sacheelif test $ac_cv_prog_cc_g = yes; then
367169408Sache  if test "$GCC" = yes; then
367269408Sache    CFLAGS="-g -O2"
367369408Sache  else
367469408Sache    CFLAGS="-g"
367569408Sache  fi
367669408Sacheelse
367769408Sache  if test "$GCC" = yes; then
367869408Sache    CFLAGS="-O2"
367969408Sache  else
368069408Sache    CFLAGS=
368169408Sache  fi
368269408Sachefi
3683231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3684231990Smp$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3685231990Smpif ${ac_cv_prog_cc_c89+:} false; then :
3686231990Smp  $as_echo_n "(cached) " >&6
3687131962Smpelse
3688195609Smp  ac_cv_prog_cc_c89=no
3689131962Smpac_save_CC=$CC
3690231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691131962Smp/* end confdefs.h.  */
3692131962Smp#include <stdarg.h>
3693131962Smp#include <stdio.h>
3694316957Sdchaginstruct stat;
3695131962Smp/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3696131962Smpstruct buf { int x; };
3697131962SmpFILE * (*rcsopen) (struct buf *, struct stat *, int);
3698131962Smpstatic char *e (p, i)
3699131962Smp     char **p;
3700131962Smp     int i;
3701131962Smp{
3702131962Smp  return p[i];
3703131962Smp}
3704131962Smpstatic char *f (char * (*g) (char **, int), char **p, ...)
3705131962Smp{
3706131962Smp  char *s;
3707131962Smp  va_list v;
3708131962Smp  va_start (v,p);
3709131962Smp  s = g (p, va_arg (v,int));
3710131962Smp  va_end (v);
3711131962Smp  return s;
3712131962Smp}
3713145479Smp
3714145479Smp/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3715145479Smp   function prototypes and stuff, but not '\xHH' hex character constants.
3716145479Smp   These don't provoke an error unfortunately, instead are silently treated
3717195609Smp   as 'x'.  The following induces an error, until -std is added to get
3718145479Smp   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3719145479Smp   array size at least.  It's necessary to write '\x00'==0 to get something
3720195609Smp   that's true only with -std.  */
3721145479Smpint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3722145479Smp
3723195609Smp/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3724195609Smp   inside strings and character constants.  */
3725195609Smp#define FOO(x) 'x'
3726195609Smpint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3727195609Smp
3728131962Smpint test (int i, double x);
3729131962Smpstruct s1 {int (*f) (int a);};
3730131962Smpstruct s2 {int (*f) (double a);};
3731131962Smpint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3732131962Smpint argc;
3733131962Smpchar **argv;
3734131962Smpint
3735131962Smpmain ()
3736131962Smp{
3737131962Smpreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3738131962Smp  ;
3739131962Smp  return 0;
3740131962Smp}
3741131962Smp_ACEOF
3742195609Smpfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3743195609Smp	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3744131962Smpdo
3745131962Smp  CC="$ac_save_CC $ac_arg"
3746231990Smp  if ac_fn_c_try_compile "$LINENO"; then :
3747195609Smp  ac_cv_prog_cc_c89=$ac_arg
3748131962Smpfi
3749195609Smprm -f core conftest.err conftest.$ac_objext
3750195609Smp  test "x$ac_cv_prog_cc_c89" != "xno" && break
3751131962Smpdone
3752195609Smprm -f conftest.$ac_ext
3753131962SmpCC=$ac_save_CC
3754131962Smp
3755131962Smpfi
3756195609Smp# AC_CACHE_VAL
3757195609Smpcase "x$ac_cv_prog_cc_c89" in
3758195609Smp  x)
3759231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3760231990Smp$as_echo "none needed" >&6; } ;;
3761195609Smp  xno)
3762231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3763231990Smp$as_echo "unsupported" >&6; } ;;
3764131962Smp  *)
3765195609Smp    CC="$CC $ac_cv_prog_cc_c89"
3766231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3767231990Smp$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3768131962Smpesac
3769231990Smpif test "x$ac_cv_prog_cc_c89" != xno; then :
3770131962Smp
3771231990Smpfi
3772131962Smp
3773131962Smpac_ext=c
3774131962Smpac_cpp='$CPP $CPPFLAGS'
3775131962Smpac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776131962Smpac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777131962Smpac_compiler_gnu=$ac_cv_c_compiler_gnu
3778131962Smp
3779131962Smpac_ext=c
3780131962Smpac_cpp='$CPP $CPPFLAGS'
3781131962Smpac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782131962Smpac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783131962Smpac_compiler_gnu=$ac_cv_c_compiler_gnu
3784231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3785231990Smp$as_echo_n "checking how to run the C preprocessor... " >&6; }
378669408Sache# On Suns, sometimes $CPP names a directory.
378769408Sacheif test -n "$CPP" && test -d "$CPP"; then
378869408Sache  CPP=
378969408Sachefi
379069408Sacheif test -z "$CPP"; then
3791231990Smp  if ${ac_cv_prog_CPP+:} false; then :
3792231990Smp  $as_echo_n "(cached) " >&6
379369408Sacheelse
3794131962Smp      # Double quotes because CPP needs to be expanded
3795131962Smp    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3796131962Smp    do
3797131962Smp      ac_preproc_ok=false
3798131962Smpfor ac_c_preproc_warn_flag in '' yes
3799131962Smpdo
3800131962Smp  # Use a header file that comes with gcc, so configuring glibc
3801131962Smp  # with a fresh cross-compiler works.
3802131962Smp  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803131962Smp  # <limits.h> exists even on freestanding compilers.
380469408Sache  # On the NeXT, cc -E runs the code through the compiler's parser,
3805131962Smp  # not just through cpp. "Syntax error" is here to catch this case.
3806231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807131962Smp/* end confdefs.h.  */
3808131962Smp#ifdef __STDC__
3809131962Smp# include <limits.h>
3810131962Smp#else
3811131962Smp# include <assert.h>
3812131962Smp#endif
3813145479Smp		     Syntax error
3814131962Smp_ACEOF
3815231990Smpif ac_fn_c_try_cpp "$LINENO"; then :
3816231990Smp
381769408Sacheelse
3818131962Smp  # Broken: fails on valid input.
3819131962Smpcontinue
3820131962Smpfi
3821231990Smprm -f conftest.err conftest.i conftest.$ac_ext
3822195609Smp
3823195609Smp  # OK, works on sane cases.  Now check whether nonexistent headers
3824131962Smp  # can be detected and how.
3825231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826131962Smp/* end confdefs.h.  */
3827131962Smp#include <ac_nonexistent.h>
3828131962Smp_ACEOF
3829231990Smpif ac_fn_c_try_cpp "$LINENO"; then :
3830131962Smp  # Broken: success on invalid input.
3831131962Smpcontinue
3832131962Smpelse
3833131962Smp  # Passes both tests.
3834131962Smpac_preproc_ok=:
3835131962Smpbreak
3836131962Smpfi
3837231990Smprm -f conftest.err conftest.i conftest.$ac_ext
3838195609Smp
3839131962Smpdone
3840131962Smp# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841231990Smprm -f conftest.i conftest.err conftest.$ac_ext
3842231990Smpif $ac_preproc_ok; then :
3843131962Smp  break
3844131962Smpfi
3845131962Smp
3846131962Smp    done
3847131962Smp    ac_cv_prog_CPP=$CPP
3848131962Smp
3849131962Smpfi
3850131962Smp  CPP=$ac_cv_prog_CPP
3851131962Smpelse
3852131962Smp  ac_cv_prog_CPP=$CPP
3853131962Smpfi
3854231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3855231990Smp$as_echo "$CPP" >&6; }
3856131962Smpac_preproc_ok=false
3857131962Smpfor ac_c_preproc_warn_flag in '' yes
3858131962Smpdo
3859131962Smp  # Use a header file that comes with gcc, so configuring glibc
3860131962Smp  # with a fresh cross-compiler works.
3861131962Smp  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3862131962Smp  # <limits.h> exists even on freestanding compilers.
3863131962Smp  # On the NeXT, cc -E runs the code through the compiler's parser,
3864131962Smp  # not just through cpp. "Syntax error" is here to catch this case.
3865231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866131962Smp/* end confdefs.h.  */
3867131962Smp#ifdef __STDC__
3868131962Smp# include <limits.h>
3869131962Smp#else
3870131962Smp# include <assert.h>
3871131962Smp#endif
3872145479Smp		     Syntax error
3873131962Smp_ACEOF
3874231990Smpif ac_fn_c_try_cpp "$LINENO"; then :
3875231990Smp
387669408Sacheelse
3877131962Smp  # Broken: fails on valid input.
3878131962Smpcontinue
387969408Sachefi
3880231990Smprm -f conftest.err conftest.i conftest.$ac_ext
3881195609Smp
3882195609Smp  # OK, works on sane cases.  Now check whether nonexistent headers
3883131962Smp  # can be detected and how.
3884231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885131962Smp/* end confdefs.h.  */
3886131962Smp#include <ac_nonexistent.h>
3887131962Smp_ACEOF
3888231990Smpif ac_fn_c_try_cpp "$LINENO"; then :
3889131962Smp  # Broken: success on invalid input.
3890131962Smpcontinue
3891131962Smpelse
3892131962Smp  # Passes both tests.
3893131962Smpac_preproc_ok=:
3894131962Smpbreak
389569408Sachefi
3896231990Smprm -f conftest.err conftest.i conftest.$ac_ext
3897195609Smp
3898131962Smpdone
3899131962Smp# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3900231990Smprm -f conftest.i conftest.err conftest.$ac_ext
3901231990Smpif $ac_preproc_ok; then :
3902231990Smp
3903131962Smpelse
3904231990Smp  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905231990Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906231990Smpas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3907231990SmpSee \`config.log' for more details" "$LINENO" 5; }
390869408Sachefi
3909131962Smp
3910131962Smpac_ext=c
3911131962Smpac_cpp='$CPP $CPPFLAGS'
3912131962Smpac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913131962Smpac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914131962Smpac_compiler_gnu=$ac_cv_c_compiler_gnu
3915131962Smp
3916131962Smp
3917131962Smp
3918231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3919231990Smp$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3920231990Smpif ${ac_cv_path_GREP+:} false; then :
3921231990Smp  $as_echo_n "(cached) " >&6
392269408Sacheelse
3923231990Smp  if test -z "$GREP"; then
3924195609Smp  ac_path_GREP_found=false
3925231990Smp  # Loop through the user's path and test for each of PROGNAME-LIST
3926231990Smp  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927195609Smpfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3928195609Smpdo
3929195609Smp  IFS=$as_save_IFS
3930195609Smp  test -z "$as_dir" && as_dir=.
3931231990Smp    for ac_prog in grep ggrep; do
3932231990Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3933231990Smp      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3934316957Sdchagin      as_fn_executable_p "$ac_path_GREP" || continue
3935231990Smp# Check for GNU ac_path_GREP and select it if it is found.
3936195609Smp  # Check for GNU $ac_path_GREP
3937195609Smpcase `"$ac_path_GREP" --version 2>&1` in
3938195609Smp*GNU*)
3939195609Smp  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3940195609Smp*)
3941195609Smp  ac_count=0
3942231990Smp  $as_echo_n 0123456789 >"conftest.in"
3943195609Smp  while :
3944195609Smp  do
3945195609Smp    cat "conftest.in" "conftest.in" >"conftest.tmp"
3946195609Smp    mv "conftest.tmp" "conftest.in"
3947195609Smp    cp "conftest.in" "conftest.nl"
3948231990Smp    $as_echo 'GREP' >> "conftest.nl"
3949195609Smp    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3950195609Smp    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3951231990Smp    as_fn_arith $ac_count + 1 && ac_count=$as_val
3952195609Smp    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3953195609Smp      # Best one so far, save it but keep looking for a better one
3954195609Smp      ac_cv_path_GREP="$ac_path_GREP"
3955195609Smp      ac_path_GREP_max=$ac_count
3956131962Smp    fi
3957195609Smp    # 10*(2^10) chars as input seems more than enough
3958195609Smp    test $ac_count -gt 10 && break
3959195609Smp  done
3960195609Smp  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3961195609Smpesac
3962195609Smp
3963231990Smp      $ac_path_GREP_found && break 3
3964231990Smp    done
3965195609Smp  done
3966231990Smp  done
3967195609SmpIFS=$as_save_IFS
3968231990Smp  if test -z "$ac_cv_path_GREP"; then
3969231990Smp    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3970231990Smp  fi
3971195609Smpelse
3972195609Smp  ac_cv_path_GREP=$GREP
3973195609Smpfi
3974195609Smp
3975195609Smpfi
3976231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3977231990Smp$as_echo "$ac_cv_path_GREP" >&6; }
3978195609Smp GREP="$ac_cv_path_GREP"
3979195609Smp
3980195609Smp
3981231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3982231990Smp$as_echo_n "checking for egrep... " >&6; }
3983231990Smpif ${ac_cv_path_EGREP+:} false; then :
3984231990Smp  $as_echo_n "(cached) " >&6
3985195609Smpelse
3986195609Smp  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3987195609Smp   then ac_cv_path_EGREP="$GREP -E"
3988195609Smp   else
3989231990Smp     if test -z "$EGREP"; then
3990195609Smp  ac_path_EGREP_found=false
3991231990Smp  # Loop through the user's path and test for each of PROGNAME-LIST
3992231990Smp  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993195609Smpfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3994195609Smpdo
3995195609Smp  IFS=$as_save_IFS
3996195609Smp  test -z "$as_dir" && as_dir=.
3997231990Smp    for ac_prog in egrep; do
3998231990Smp    for ac_exec_ext in '' $ac_executable_extensions; do
3999231990Smp      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4000316957Sdchagin      as_fn_executable_p "$ac_path_EGREP" || continue
4001231990Smp# Check for GNU ac_path_EGREP and select it if it is found.
4002195609Smp  # Check for GNU $ac_path_EGREP
4003195609Smpcase `"$ac_path_EGREP" --version 2>&1` in
4004195609Smp*GNU*)
4005195609Smp  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4006195609Smp*)
4007195609Smp  ac_count=0
4008231990Smp  $as_echo_n 0123456789 >"conftest.in"
4009195609Smp  while :
4010195609Smp  do
4011195609Smp    cat "conftest.in" "conftest.in" >"conftest.tmp"
4012195609Smp    mv "conftest.tmp" "conftest.in"
4013195609Smp    cp "conftest.in" "conftest.nl"
4014231990Smp    $as_echo 'EGREP' >> "conftest.nl"
4015195609Smp    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4016195609Smp    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4017231990Smp    as_fn_arith $ac_count + 1 && ac_count=$as_val
4018195609Smp    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4019195609Smp      # Best one so far, save it but keep looking for a better one
4020195609Smp      ac_cv_path_EGREP="$ac_path_EGREP"
4021195609Smp      ac_path_EGREP_max=$ac_count
4022195609Smp    fi
4023195609Smp    # 10*(2^10) chars as input seems more than enough
4024195609Smp    test $ac_count -gt 10 && break
4025195609Smp  done
4026195609Smp  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027195609Smpesac
4028195609Smp
4029231990Smp      $ac_path_EGREP_found && break 3
4030231990Smp    done
4031195609Smp  done
4032231990Smp  done
4033195609SmpIFS=$as_save_IFS
4034231990Smp  if test -z "$ac_cv_path_EGREP"; then
4035231990Smp    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4036231990Smp  fi
4037195609Smpelse
4038195609Smp  ac_cv_path_EGREP=$EGREP
4039195609Smpfi
4040195609Smp
4041195609Smp   fi
4042195609Smpfi
4043231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4044231990Smp$as_echo "$ac_cv_path_EGREP" >&6; }
4045195609Smp EGREP="$ac_cv_path_EGREP"
4046195609Smp
4047195609Smp
4048131962Smpif test $ac_cv_c_compiler_gnu = yes; then
4049231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4050231990Smp$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4051231990Smpif ${ac_cv_prog_gcc_traditional+:} false; then :
4052231990Smp  $as_echo_n "(cached) " >&6
405369408Sacheelse
405469408Sache    ac_pattern="Autoconf.*'x'"
4055231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056131962Smp/* end confdefs.h.  */
405769408Sache#include <sgtty.h>
405869408SacheAutoconf TIOCGETP
4059131962Smp_ACEOF
406069408Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4061231990Smp  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
406269408Sache  ac_cv_prog_gcc_traditional=yes
406369408Sacheelse
406469408Sache  ac_cv_prog_gcc_traditional=no
406569408Sachefi
406669408Sacherm -f conftest*
406769408Sache
406869408Sache
406969408Sache  if test $ac_cv_prog_gcc_traditional = no; then
4070231990Smp    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071131962Smp/* end confdefs.h.  */
407269408Sache#include <termio.h>
407369408SacheAutoconf TCGETA
4074131962Smp_ACEOF
407569408Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4076231990Smp  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
407769408Sache  ac_cv_prog_gcc_traditional=yes
407869408Sachefi
407969408Sacherm -f conftest*
408069408Sache
408169408Sache  fi
408269408Sachefi
4083231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4084231990Smp$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
408569408Sache  if test $ac_cv_prog_gcc_traditional = yes; then
408669408Sache    CC="$CC -traditional"
408769408Sache  fi
408869408Sachefi
408969408Sache
409069408Sache
4091231990Smp# Extract the first word of "gencat", so it can be a program name with args.
4092231990Smpset dummy gencat; ac_word=$2
4093231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094231990Smp$as_echo_n "checking for $ac_word... " >&6; }
4095231990Smpif ${ac_cv_path_GENCAT+:} false; then :
4096231990Smp  $as_echo_n "(cached) " >&6
4097231990Smpelse
4098231990Smp  case $GENCAT in
4099231990Smp  [\\/]* | ?:[\\/]*)
4100231990Smp  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
4101231990Smp  ;;
4102231990Smp  *)
4103231990Smp  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104231990Smpfor as_dir in $PATH
4105231990Smpdo
4106231990Smp  IFS=$as_save_IFS
4107231990Smp  test -z "$as_dir" && as_dir=.
4108231990Smp    for ac_exec_ext in '' $ac_executable_extensions; do
4109316957Sdchagin  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110231990Smp    ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext"
4111231990Smp    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112231990Smp    break 2
4113231990Smp  fi
4114231990Smpdone
4115231990Smp  done
4116231990SmpIFS=$as_save_IFS
4117231990Smp
4118231990Smp  ;;
4119231990Smpesac
4120231990Smpfi
4121231990SmpGENCAT=$ac_cv_path_GENCAT
4122231990Smpif test -n "$GENCAT"; then
4123231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCAT" >&5
4124231990Smp$as_echo "$GENCAT" >&6; }
4125231990Smpelse
4126231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127231990Smp$as_echo "no" >&6; }
4128231990Smpfi
4129231990Smp
4130231990Smp
4131231990Smp
4132231990Smpif test "x${cross_compiling}" = xyes ; then
4133231990Smp  CC_FOR_GETHOST="cc"
4134231990Smpelse
4135231990Smp  CC_FOR_GETHOST="\$(CC)"
4136231990Smpfi
4137231990Smp
4138231990Smp
4139145479Smpif test "x$GCC" != xyes ; then
414069408Sache  DFLAGS="$DFLAGS $NON_GNU_DFLAGS"
414169408Sache  CFLAGS="$CFLAGS $NON_GNU_CFLAGS"
414269408Sachefi
414369408Sache
4144316957Sdchagincase "${host}" in
4145316957Sdchagin  *-*-android*)
4146316957Sdchagin    CFLAGS="${CFLAGS} -fPIE"
4147316957Sdchagin    LDFLAGS="${LDFLAGS} -pie"
4148316957Sdchagin    ;;
4149316957Sdchaginesac
4150316957Sdchagin
4151231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4152231990Smp$as_echo_n "checking for library containing crypt... " >&6; }
4153231990Smpif ${ac_cv_search_crypt+:} false; then :
4154231990Smp  $as_echo_n "(cached) " >&6
4155131962Smpelse
4156131962Smp  ac_func_search_save_LIBS=$LIBS
4157231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158131962Smp/* end confdefs.h.  */
415969408Sache
4160195609Smp/* Override any GCC internal prototype to avoid an error.
4161195609Smp   Use char because int might match the return type of a GCC
4162195609Smp   builtin and then its argument prototype would still apply.  */
4163131962Smp#ifdef __cplusplus
4164131962Smpextern "C"
4165131962Smp#endif
4166131962Smpchar crypt ();
4167131962Smpint
4168131962Smpmain ()
4169131962Smp{
4170195609Smpreturn crypt ();
4171131962Smp  ;
4172131962Smp  return 0;
4173131962Smp}
4174131962Smp_ACEOF
4175195609Smpfor ac_lib in '' crypt; do
4176195609Smp  if test -z "$ac_lib"; then
4177195609Smp    ac_res="none required"
4178195609Smp  else
4179195609Smp    ac_res=-l$ac_lib
4180195609Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4181195609Smp  fi
4182231990Smp  if ac_fn_c_try_link "$LINENO"; then :
4183195609Smp  ac_cv_search_crypt=$ac_res
418469408Sachefi
4185231990Smprm -f core conftest.err conftest.$ac_objext \
4186231990Smp    conftest$ac_exeext
4187231990Smp  if ${ac_cv_search_crypt+:} false; then :
4188195609Smp  break
4189195609Smpfi
4190195609Smpdone
4191231990Smpif ${ac_cv_search_crypt+:} false; then :
4192231990Smp
419369408Sacheelse
4194195609Smp  ac_cv_search_crypt=no
419569408Sachefi
4196195609Smprm conftest.$ac_ext
4197131962SmpLIBS=$ac_func_search_save_LIBS
4198131962Smpfi
4199231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4200231990Smp$as_echo "$ac_cv_search_crypt" >&6; }
4201195609Smpac_res=$ac_cv_search_crypt
4202231990Smpif test "$ac_res" != no; then :
4203195609Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
420469408Sache
420569408Sachefi
420669408Sache
4207231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
4208231990Smp$as_echo_n "checking for library containing getspnam... " >&6; }
4209231990Smpif ${ac_cv_search_getspnam+:} false; then :
4210231990Smp  $as_echo_n "(cached) " >&6
4211145479Smpelse
4212145479Smp  ac_func_search_save_LIBS=$LIBS
4213231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214145479Smp/* end confdefs.h.  */
4215145479Smp
4216195609Smp/* Override any GCC internal prototype to avoid an error.
4217195609Smp   Use char because int might match the return type of a GCC
4218195609Smp   builtin and then its argument prototype would still apply.  */
4219145479Smp#ifdef __cplusplus
4220145479Smpextern "C"
4221145479Smp#endif
4222145479Smpchar getspnam ();
4223145479Smpint
4224145479Smpmain ()
4225145479Smp{
4226195609Smpreturn getspnam ();
4227145479Smp  ;
4228145479Smp  return 0;
4229145479Smp}
4230145479Smp_ACEOF
4231195609Smpfor ac_lib in '' sec; do
4232195609Smp  if test -z "$ac_lib"; then
4233195609Smp    ac_res="none required"
4234195609Smp  else
4235195609Smp    ac_res=-l$ac_lib
4236195609Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4237195609Smp  fi
4238231990Smp  if ac_fn_c_try_link "$LINENO"; then :
4239195609Smp  ac_cv_search_getspnam=$ac_res
4240145479Smpfi
4241231990Smprm -f core conftest.err conftest.$ac_objext \
4242231990Smp    conftest$ac_exeext
4243231990Smp  if ${ac_cv_search_getspnam+:} false; then :
4244195609Smp  break
4245195609Smpfi
4246195609Smpdone
4247231990Smpif ${ac_cv_search_getspnam+:} false; then :
4248231990Smp
4249145479Smpelse
4250195609Smp  ac_cv_search_getspnam=no
4251145479Smpfi
4252195609Smprm conftest.$ac_ext
4253145479SmpLIBS=$ac_func_search_save_LIBS
4254145479Smpfi
4255231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
4256231990Smp$as_echo "$ac_cv_search_getspnam" >&6; }
4257195609Smpac_res=$ac_cv_search_getspnam
4258231990Smpif test "$ac_res" != no; then :
4259195609Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4260145479Smp
4261145479Smpfi
4262145479Smp
4263231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
4264231990Smp$as_echo_n "checking for library containing tgetent... " >&6; }
4265231990Smpif ${ac_cv_search_tgetent+:} false; then :
4266231990Smp  $as_echo_n "(cached) " >&6
426769408Sacheelse
4268131962Smp  ac_func_search_save_LIBS=$LIBS
4269231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270131962Smp/* end confdefs.h.  */
4271131962Smp
4272195609Smp/* Override any GCC internal prototype to avoid an error.
4273195609Smp   Use char because int might match the return type of a GCC
4274195609Smp   builtin and then its argument prototype would still apply.  */
4275131962Smp#ifdef __cplusplus
4276131962Smpextern "C"
4277131962Smp#endif
4278131962Smpchar tgetent ();
4279131962Smpint
4280131962Smpmain ()
4281131962Smp{
4282195609Smpreturn tgetent ();
4283131962Smp  ;
4284131962Smp  return 0;
4285131962Smp}
4286131962Smp_ACEOF
4287354195Sbrooksfor ac_lib in '' termlib tinfo termcap curses ncurses; do
4288195609Smp  if test -z "$ac_lib"; then
4289195609Smp    ac_res="none required"
4290195609Smp  else
4291195609Smp    ac_res=-l$ac_lib
4292195609Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4293195609Smp  fi
4294231990Smp  if ac_fn_c_try_link "$LINENO"; then :
4295195609Smp  ac_cv_search_tgetent=$ac_res
429669408Sachefi
4297231990Smprm -f core conftest.err conftest.$ac_objext \
4298231990Smp    conftest$ac_exeext
4299231990Smp  if ${ac_cv_search_tgetent+:} false; then :
4300195609Smp  break
4301195609Smpfi
4302195609Smpdone
4303231990Smpif ${ac_cv_search_tgetent+:} false; then :
4304231990Smp
430569408Sacheelse
4306195609Smp  ac_cv_search_tgetent=no
430769408Sachefi
4308195609Smprm conftest.$ac_ext
4309131962SmpLIBS=$ac_func_search_save_LIBS
4310131962Smpfi
4311231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
4312231990Smp$as_echo "$ac_cv_search_tgetent" >&6; }
4313195609Smpac_res=$ac_cv_search_tgetent
4314231990Smpif test "$ac_res" != no; then :
4315195609Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
431669408Sache
4317316957Sdchaginelse
4318316957Sdchagin
4319316957Sdchagin   as_fn_error $? "unable to find the tgetent() function" "$LINENO" 5
4320316957Sdchagin
432169408Sachefi
432269408Sache
4323231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4324231990Smp$as_echo_n "checking for library containing gethostbyname... " >&6; }
4325231990Smpif ${ac_cv_search_gethostbyname+:} false; then :
4326231990Smp  $as_echo_n "(cached) " >&6
432769408Sacheelse
4328131962Smp  ac_func_search_save_LIBS=$LIBS
4329231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330131962Smp/* end confdefs.h.  */
4331131962Smp
4332195609Smp/* Override any GCC internal prototype to avoid an error.
4333195609Smp   Use char because int might match the return type of a GCC
4334195609Smp   builtin and then its argument prototype would still apply.  */
4335131962Smp#ifdef __cplusplus
4336131962Smpextern "C"
4337131962Smp#endif
4338131962Smpchar gethostbyname ();
4339131962Smpint
4340131962Smpmain ()
4341131962Smp{
4342195609Smpreturn gethostbyname ();
4343131962Smp  ;
4344131962Smp  return 0;
4345131962Smp}
4346131962Smp_ACEOF
4347195609Smpfor ac_lib in '' nsl; do
4348195609Smp  if test -z "$ac_lib"; then
4349195609Smp    ac_res="none required"
4350195609Smp  else
4351195609Smp    ac_res=-l$ac_lib
4352195609Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4353195609Smp  fi
4354231990Smp  if ac_fn_c_try_link "$LINENO"; then :
4355195609Smp  ac_cv_search_gethostbyname=$ac_res
435669408Sachefi
4357231990Smprm -f core conftest.err conftest.$ac_objext \
4358231990Smp    conftest$ac_exeext
4359231990Smp  if ${ac_cv_search_gethostbyname+:} false; then :
4360195609Smp  break
4361195609Smpfi
4362195609Smpdone
4363231990Smpif ${ac_cv_search_gethostbyname+:} false; then :
4364231990Smp
436569408Sacheelse
4366195609Smp  ac_cv_search_gethostbyname=no
436769408Sachefi
4368195609Smprm conftest.$ac_ext
4369131962SmpLIBS=$ac_func_search_save_LIBS
4370131962Smpfi
4371231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4372231990Smp$as_echo "$ac_cv_search_gethostbyname" >&6; }
4373195609Smpac_res=$ac_cv_search_gethostbyname
4374231990Smpif test "$ac_res" != no; then :
4375195609Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
437669408Sache
437769408Sachefi
437869408Sache
4379231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
4380231990Smp$as_echo_n "checking for library containing connect... " >&6; }
4381231990Smpif ${ac_cv_search_connect+:} false; then :
4382231990Smp  $as_echo_n "(cached) " >&6
438369408Sacheelse
4384131962Smp  ac_func_search_save_LIBS=$LIBS
4385231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386131962Smp/* end confdefs.h.  */
4387131962Smp
4388195609Smp/* Override any GCC internal prototype to avoid an error.
4389195609Smp   Use char because int might match the return type of a GCC
4390195609Smp   builtin and then its argument prototype would still apply.  */
4391131962Smp#ifdef __cplusplus
4392131962Smpextern "C"
4393131962Smp#endif
4394131962Smpchar connect ();
4395131962Smpint
4396131962Smpmain ()
4397131962Smp{
4398195609Smpreturn connect ();
4399131962Smp  ;
4400131962Smp  return 0;
4401131962Smp}
4402131962Smp_ACEOF
4403195609Smpfor ac_lib in '' socket; do
4404195609Smp  if test -z "$ac_lib"; then
4405195609Smp    ac_res="none required"
4406195609Smp  else
4407195609Smp    ac_res=-l$ac_lib
4408195609Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4409195609Smp  fi
4410231990Smp  if ac_fn_c_try_link "$LINENO"; then :
4411195609Smp  ac_cv_search_connect=$ac_res
4412231990Smpfi
4413231990Smprm -f core conftest.err conftest.$ac_objext \
4414231990Smp    conftest$ac_exeext
4415231990Smp  if ${ac_cv_search_connect+:} false; then :
4416231990Smp  break
4417231990Smpfi
4418231990Smpdone
4419231990Smpif ${ac_cv_search_connect+:} false; then :
4420231990Smp
442169408Sacheelse
4422231990Smp  ac_cv_search_connect=no
4423231990Smpfi
4424231990Smprm conftest.$ac_ext
4425231990SmpLIBS=$ac_func_search_save_LIBS
4426231990Smpfi
4427231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
4428231990Smp$as_echo "$ac_cv_search_connect" >&6; }
4429231990Smpac_res=$ac_cv_search_connect
4430231990Smpif test "$ac_res" != no; then :
4431231990Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4432131962Smp
4433231990Smpfi
4434195609Smp
4435231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing catgets" >&5
4436231990Smp$as_echo_n "checking for library containing catgets... " >&6; }
4437231990Smpif ${ac_cv_search_catgets+:} false; then :
4438231990Smp  $as_echo_n "(cached) " >&6
4439231990Smpelse
4440231990Smp  ac_func_search_save_LIBS=$LIBS
4441231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442231990Smp/* end confdefs.h.  */
4443231990Smp
4444231990Smp/* Override any GCC internal prototype to avoid an error.
4445231990Smp   Use char because int might match the return type of a GCC
4446231990Smp   builtin and then its argument prototype would still apply.  */
4447231990Smp#ifdef __cplusplus
4448231990Smpextern "C"
4449231990Smp#endif
4450231990Smpchar catgets ();
4451231990Smpint
4452231990Smpmain ()
4453231990Smp{
4454231990Smpreturn catgets ();
4455231990Smp  ;
4456231990Smp  return 0;
4457231990Smp}
4458231990Smp_ACEOF
4459231990Smpfor ac_lib in '' catgets; do
4460231990Smp  if test -z "$ac_lib"; then
4461231990Smp    ac_res="none required"
4462231990Smp  else
4463231990Smp    ac_res=-l$ac_lib
4464231990Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4465231990Smp  fi
4466231990Smp  if ac_fn_c_try_link "$LINENO"; then :
4467231990Smp  ac_cv_search_catgets=$ac_res
446869408Sachefi
4469231990Smprm -f core conftest.err conftest.$ac_objext \
4470231990Smp    conftest$ac_exeext
4471231990Smp  if ${ac_cv_search_catgets+:} false; then :
4472195609Smp  break
4473195609Smpfi
4474195609Smpdone
4475231990Smpif ${ac_cv_search_catgets+:} false; then :
4476231990Smp
447769408Sacheelse
4478231990Smp  ac_cv_search_catgets=no
447969408Sachefi
4480195609Smprm conftest.$ac_ext
4481131962SmpLIBS=$ac_func_search_save_LIBS
4482131962Smpfi
4483231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_catgets" >&5
4484231990Smp$as_echo "$ac_cv_search_catgets" >&6; }
4485231990Smpac_res=$ac_cv_search_catgets
4486231990Smpif test "$ac_res" != no; then :
4487195609Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
448869408Sache
448969408Sachefi
449069408Sache
4491167465Smp
4492167465Smp      if test "X$prefix" = "XNONE"; then
4493167465Smp    acl_final_prefix="$ac_default_prefix"
4494167465Smp  else
4495167465Smp    acl_final_prefix="$prefix"
4496167465Smp  fi
4497167465Smp  if test "X$exec_prefix" = "XNONE"; then
4498167465Smp    acl_final_exec_prefix='${prefix}'
4499167465Smp  else
4500167465Smp    acl_final_exec_prefix="$exec_prefix"
4501167465Smp  fi
4502167465Smp  acl_save_prefix="$prefix"
4503167465Smp  prefix="$acl_final_prefix"
4504167465Smp  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4505167465Smp  prefix="$acl_save_prefix"
4506167465Smp
4507167465Smp
4508316957Sdchagin
4509195609Smp# Check whether --with-gnu-ld was given.
4510231990Smpif test "${with_gnu_ld+set}" = set; then :
4511195609Smp  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4512167465Smpelse
4513167465Smp  with_gnu_ld=no
4514195609Smpfi
4515195609Smp
4516167465Smp# Prepare PATH_SEPARATOR.
4517167465Smp# The user is always right.
4518167465Smpif test "${PATH_SEPARATOR+set}" != set; then
4519316957Sdchagin  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4520316957Sdchagin  # contains only /bin. Note that ksh looks also at the FPATH variable,
4521316957Sdchagin  # so we have to set that as well for the test.
4522316957Sdchagin  PATH_SEPARATOR=:
4523316957Sdchagin  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4524316957Sdchagin    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4525316957Sdchagin           || PATH_SEPARATOR=';'
4526316957Sdchagin       }
4527167465Smpfi
4528316957Sdchagin
4529167465Smpac_prog=ld
4530167465Smpif test "$GCC" = yes; then
4531167465Smp  # Check if gcc -print-prog-name=ld gives a path.
4532316957Sdchagin  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4533316957Sdchagin$as_echo_n "checking for ld used by $CC... " >&6; }
4534167465Smp  case $host in
4535167465Smp  *-*-mingw*)
4536167465Smp    # gcc leaves a trailing carriage return which upsets mingw
4537167465Smp    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4538167465Smp  *)
4539167465Smp    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4540167465Smp  esac
4541167465Smp  case $ac_prog in
4542167465Smp    # Accept absolute paths.
4543316957Sdchagin    [\\/]* | ?:[\\/]*)
4544167465Smp      re_direlt='/[^/][^/]*/\.\./'
4545316957Sdchagin      # Canonicalize the pathname of ld
4546316957Sdchagin      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
4547316957Sdchagin      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
4548231990Smp        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4549167465Smp      done
4550167465Smp      test -z "$LD" && LD="$ac_prog"
4551167465Smp      ;;
4552167465Smp  "")
4553167465Smp    # If it fails, then pretend we aren't using GCC.
4554167465Smp    ac_prog=ld
4555167465Smp    ;;
4556167465Smp  *)
4557167465Smp    # If it is relative, then search for the first ld in PATH.
4558167465Smp    with_gnu_ld=unknown
4559167465Smp    ;;
4560167465Smp  esac
4561167465Smpelif test "$with_gnu_ld" = yes; then
4562231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4563231990Smp$as_echo_n "checking for GNU ld... " >&6; }
4564167465Smpelse
4565231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4566231990Smp$as_echo_n "checking for non-GNU ld... " >&6; }
4567167465Smpfi
4568231990Smpif ${acl_cv_path_LD+:} false; then :
4569231990Smp  $as_echo_n "(cached) " >&6
4570145479Smpelse
4571167465Smp  if test -z "$LD"; then
4572316957Sdchagin  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4573167465Smp  for ac_dir in $PATH; do
4574316957Sdchagin    IFS="$acl_save_ifs"
4575167465Smp    test -z "$ac_dir" && ac_dir=.
4576167465Smp    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4577167465Smp      acl_cv_path_LD="$ac_dir/$ac_prog"
4578167465Smp      # Check to see if the program is GNU ld.  I'd rather use --version,
4579316957Sdchagin      # but apparently some variants of GNU ld only accept -v.
4580167465Smp      # Break only if it was the GNU/non-GNU ld that we prefer.
4581316957Sdchagin      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
4582167465Smp      *GNU* | *'with BFD'*)
4583316957Sdchagin        test "$with_gnu_ld" != no && break
4584316957Sdchagin        ;;
4585167465Smp      *)
4586316957Sdchagin        test "$with_gnu_ld" != yes && break
4587316957Sdchagin        ;;
4588167465Smp      esac
4589167465Smp    fi
4590167465Smp  done
4591316957Sdchagin  IFS="$acl_save_ifs"
4592167465Smpelse
4593167465Smp  acl_cv_path_LD="$LD" # Let the user override the test with a path.
4594167465Smpfi
4595167465Smpfi
4596167465Smp
4597167465SmpLD="$acl_cv_path_LD"
4598167465Smpif test -n "$LD"; then
4599231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4600231990Smp$as_echo "$LD" >&6; }
4601167465Smpelse
4602231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603231990Smp$as_echo "no" >&6; }
4604167465Smpfi
4605231990Smptest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4606231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4607231990Smp$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4608231990Smpif ${acl_cv_prog_gnu_ld+:} false; then :
4609231990Smp  $as_echo_n "(cached) " >&6
4610167465Smpelse
4611316957Sdchagin  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4612167465Smpcase `$LD -v 2>&1 </dev/null` in
4613167465Smp*GNU* | *'with BFD'*)
4614316957Sdchagin  acl_cv_prog_gnu_ld=yes
4615316957Sdchagin  ;;
4616167465Smp*)
4617316957Sdchagin  acl_cv_prog_gnu_ld=no
4618316957Sdchagin  ;;
4619167465Smpesac
4620167465Smpfi
4621231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4622231990Smp$as_echo "$acl_cv_prog_gnu_ld" >&6; }
4623167465Smpwith_gnu_ld=$acl_cv_prog_gnu_ld
4624167465Smp
4625167465Smp
4626167465Smp
4627167465Smp
4628231990Smp                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4629231990Smp$as_echo_n "checking for shared library run path origin... " >&6; }
4630231990Smpif ${acl_cv_rpath+:} false; then :
4631231990Smp  $as_echo_n "(cached) " >&6
4632167465Smpelse
4633167465Smp
4634167465Smp    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4635167465Smp    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4636167465Smp    . ./conftest.sh
4637167465Smp    rm -f ./conftest.sh
4638167465Smp    acl_cv_rpath=done
4639167465Smp
4640167465Smpfi
4641231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4642231990Smp$as_echo "$acl_cv_rpath" >&6; }
4643167465Smp  wl="$acl_cv_wl"
4644231990Smp  acl_libext="$acl_cv_libext"
4645231990Smp  acl_shlibext="$acl_cv_shlibext"
4646231990Smp  acl_libname_spec="$acl_cv_libname_spec"
4647231990Smp  acl_library_names_spec="$acl_cv_library_names_spec"
4648231990Smp  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4649231990Smp  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4650231990Smp  acl_hardcode_direct="$acl_cv_hardcode_direct"
4651231990Smp  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4652195609Smp    # Check whether --enable-rpath was given.
4653231990Smpif test "${enable_rpath+set}" = set; then :
4654195609Smp  enableval=$enable_rpath; :
4655167465Smpelse
4656167465Smp  enable_rpath=yes
4657195609Smpfi
4658167465Smp
4659167465Smp
4660167465Smp
4661167465Smp
4662231990Smp  acl_libdirstem=lib
4663231990Smp  acl_libdirstem2=
4664231990Smp  case "$host_os" in
4665231990Smp    solaris*)
4666231990Smp                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4667231990Smp$as_echo_n "checking for 64-bit host... " >&6; }
4668231990Smpif ${gl_cv_solaris_64bit+:} false; then :
4669231990Smp  $as_echo_n "(cached) " >&6
4670231990Smpelse
4671231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672231990Smp/* end confdefs.h.  */
4673167465Smp
4674231990Smp#ifdef _LP64
4675231990Smpsixtyfour bits
4676231990Smp#endif
4677167465Smp
4678231990Smp_ACEOF
4679231990Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4680231990Smp  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4681231990Smp  gl_cv_solaris_64bit=yes
4682231990Smpelse
4683231990Smp  gl_cv_solaris_64bit=no
4684231990Smpfi
4685231990Smprm -f conftest*
4686167465Smp
4687195609Smp
4688231990Smpfi
4689231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4690231990Smp$as_echo "$gl_cv_solaris_64bit" >&6; }
4691231990Smp      if test $gl_cv_solaris_64bit = yes; then
4692231990Smp        acl_libdirstem=lib/64
4693231990Smp        case "$host_cpu" in
4694231990Smp          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
4695231990Smp          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4696231990Smp        esac
4697231990Smp      fi
4698231990Smp      ;;
4699231990Smp    *)
4700231990Smp      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4701231990Smp      if test -n "$searchpath"; then
4702231990Smp        acl_save_IFS="${IFS= 	}"; IFS=":"
4703231990Smp        for searchdir in $searchpath; do
4704231990Smp          if test -d "$searchdir"; then
4705231990Smp            case "$searchdir" in
4706231990Smp              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4707231990Smp              */../ | */.. )
4708231990Smp                # Better ignore directories of this form. They are misleading.
4709231990Smp                ;;
4710231990Smp              *) searchdir=`cd "$searchdir" && pwd`
4711231990Smp                 case "$searchdir" in
4712231990Smp                   */lib64 ) acl_libdirstem=lib64 ;;
4713231990Smp                 esac ;;
4714231990Smp            esac
4715231990Smp          fi
4716231990Smp        done
4717231990Smp        IFS="$acl_save_IFS"
4718231990Smp      fi
4719231990Smp      ;;
4720231990Smp  esac
4721231990Smp  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4722231990Smp
4723231990Smp
4724231990Smp
4725231990Smp
4726231990Smp
4727231990Smp
4728231990Smp
4729231990Smp
4730231990Smp
4731231990Smp
4732231990Smp
4733231990Smp
4734167465Smp    use_additional=yes
4735167465Smp
4736167465Smp  acl_save_prefix="$prefix"
4737167465Smp  prefix="$acl_final_prefix"
4738167465Smp  acl_save_exec_prefix="$exec_prefix"
4739167465Smp  exec_prefix="$acl_final_exec_prefix"
4740167465Smp
4741167465Smp    eval additional_includedir=\"$includedir\"
4742167465Smp    eval additional_libdir=\"$libdir\"
4743167465Smp
4744167465Smp  exec_prefix="$acl_save_exec_prefix"
4745167465Smp  prefix="$acl_save_prefix"
4746167465Smp
4747167465Smp
4748195609Smp# Check whether --with-libiconv-prefix was given.
4749231990Smpif test "${with_libiconv_prefix+set}" = set; then :
4750195609Smp  withval=$with_libiconv_prefix;
4751167465Smp    if test "X$withval" = "Xno"; then
4752167465Smp      use_additional=no
4753167465Smp    else
4754167465Smp      if test "X$withval" = "X"; then
4755167465Smp
4756167465Smp  acl_save_prefix="$prefix"
4757167465Smp  prefix="$acl_final_prefix"
4758167465Smp  acl_save_exec_prefix="$exec_prefix"
4759167465Smp  exec_prefix="$acl_final_exec_prefix"
4760167465Smp
4761167465Smp          eval additional_includedir=\"$includedir\"
4762167465Smp          eval additional_libdir=\"$libdir\"
4763167465Smp
4764167465Smp  exec_prefix="$acl_save_exec_prefix"
4765167465Smp  prefix="$acl_save_prefix"
4766167465Smp
4767167465Smp      else
4768167465Smp        additional_includedir="$withval/include"
4769231990Smp        additional_libdir="$withval/$acl_libdirstem"
4770231990Smp        if test "$acl_libdirstem2" != "$acl_libdirstem" \
4771231990Smp           && ! test -d "$withval/$acl_libdirstem"; then
4772231990Smp          additional_libdir="$withval/$acl_libdirstem2"
4773231990Smp        fi
4774167465Smp      fi
4775167465Smp    fi
4776167465Smp
4777195609Smpfi
4778195609Smp
4779167465Smp      LIBICONV=
4780167465Smp  LTLIBICONV=
4781167465Smp  INCICONV=
4782231990Smp  LIBICONV_PREFIX=
4783231990Smp      HAVE_LIBICONV=
4784167465Smp  rpathdirs=
4785167465Smp  ltrpathdirs=
4786167465Smp  names_already_handled=
4787167465Smp  names_next_round='iconv '
4788167465Smp  while test -n "$names_next_round"; do
4789167465Smp    names_this_round="$names_next_round"
4790167465Smp    names_next_round=
4791167465Smp    for name in $names_this_round; do
4792167465Smp      already_handled=
4793167465Smp      for n in $names_already_handled; do
4794167465Smp        if test "$n" = "$name"; then
4795167465Smp          already_handled=yes
4796167465Smp          break
4797167465Smp        fi
4798167465Smp      done
4799167465Smp      if test -z "$already_handled"; then
4800167465Smp        names_already_handled="$names_already_handled $name"
4801316957Sdchagin                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
4802167465Smp        eval value=\"\$HAVE_LIB$uppername\"
4803167465Smp        if test -n "$value"; then
4804167465Smp          if test "$value" = yes; then
4805167465Smp            eval value=\"\$LIB$uppername\"
4806167465Smp            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4807167465Smp            eval value=\"\$LTLIB$uppername\"
4808167465Smp            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4809167465Smp          else
4810167465Smp                                    :
4811167465Smp          fi
4812167465Smp        else
4813167465Smp                              found_dir=
4814167465Smp          found_la=
4815167465Smp          found_so=
4816167465Smp          found_a=
4817231990Smp          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
4818231990Smp          if test -n "$acl_shlibext"; then
4819231990Smp            shrext=".$acl_shlibext"             # typically: shrext=.so
4820231990Smp          else
4821231990Smp            shrext=
4822231990Smp          fi
4823167465Smp          if test $use_additional = yes; then
4824231990Smp            dir="$additional_libdir"
4825231990Smp                                    if test -n "$acl_shlibext"; then
4826231990Smp              if test -f "$dir/$libname$shrext"; then
4827231990Smp                found_dir="$dir"
4828231990Smp                found_so="$dir/$libname$shrext"
4829231990Smp              else
4830231990Smp                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4831231990Smp                  ver=`(cd "$dir" && \
4832231990Smp                        for f in "$libname$shrext".*; do echo "$f"; done \
4833231990Smp                        | sed -e "s,^$libname$shrext\\\\.,," \
4834231990Smp                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4835231990Smp                        | sed 1q ) 2>/dev/null`
4836231990Smp                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4837231990Smp                    found_dir="$dir"
4838231990Smp                    found_so="$dir/$libname$shrext.$ver"
4839231990Smp                  fi
4840231990Smp                else
4841231990Smp                  eval library_names=\"$acl_library_names_spec\"
4842231990Smp                  for f in $library_names; do
4843231990Smp                    if test -f "$dir/$f"; then
4844231990Smp                      found_dir="$dir"
4845231990Smp                      found_so="$dir/$f"
4846231990Smp                      break
4847231990Smp                    fi
4848231990Smp                  done
4849167465Smp                fi
4850167465Smp              fi
4851167465Smp            fi
4852231990Smp                        if test "X$found_dir" = "X"; then
4853231990Smp              if test -f "$dir/$libname.$acl_libext"; then
4854231990Smp                found_dir="$dir"
4855231990Smp                found_a="$dir/$libname.$acl_libext"
4856231990Smp              fi
4857231990Smp            fi
4858231990Smp            if test "X$found_dir" != "X"; then
4859231990Smp              if test -f "$dir/$libname.la"; then
4860231990Smp                found_la="$dir/$libname.la"
4861231990Smp              fi
4862231990Smp            fi
4863167465Smp          fi
4864167465Smp          if test "X$found_dir" = "X"; then
4865167465Smp            for x in $LDFLAGS $LTLIBICONV; do
4866167465Smp
4867167465Smp  acl_save_prefix="$prefix"
4868167465Smp  prefix="$acl_final_prefix"
4869167465Smp  acl_save_exec_prefix="$exec_prefix"
4870167465Smp  exec_prefix="$acl_final_exec_prefix"
4871167465Smp  eval x=\"$x\"
4872167465Smp  exec_prefix="$acl_save_exec_prefix"
4873167465Smp  prefix="$acl_save_prefix"
4874167465Smp
4875167465Smp              case "$x" in
4876167465Smp                -L*)
4877167465Smp                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4878231990Smp                                    if test -n "$acl_shlibext"; then
4879231990Smp                    if test -f "$dir/$libname$shrext"; then
4880167465Smp                      found_dir="$dir"
4881231990Smp                      found_so="$dir/$libname$shrext"
4882231990Smp                    else
4883231990Smp                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4884231990Smp                        ver=`(cd "$dir" && \
4885231990Smp                              for f in "$libname$shrext".*; do echo "$f"; done \
4886231990Smp                              | sed -e "s,^$libname$shrext\\\\.,," \
4887231990Smp                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4888231990Smp                              | sed 1q ) 2>/dev/null`
4889231990Smp                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4890231990Smp                          found_dir="$dir"
4891231990Smp                          found_so="$dir/$libname$shrext.$ver"
4892231990Smp                        fi
4893231990Smp                      else
4894231990Smp                        eval library_names=\"$acl_library_names_spec\"
4895231990Smp                        for f in $library_names; do
4896231990Smp                          if test -f "$dir/$f"; then
4897231990Smp                            found_dir="$dir"
4898231990Smp                            found_so="$dir/$f"
4899231990Smp                            break
4900231990Smp                          fi
4901231990Smp                        done
4902167465Smp                      fi
4903167465Smp                    fi
4904167465Smp                  fi
4905231990Smp                                    if test "X$found_dir" = "X"; then
4906231990Smp                    if test -f "$dir/$libname.$acl_libext"; then
4907231990Smp                      found_dir="$dir"
4908231990Smp                      found_a="$dir/$libname.$acl_libext"
4909231990Smp                    fi
4910231990Smp                  fi
4911231990Smp                  if test "X$found_dir" != "X"; then
4912231990Smp                    if test -f "$dir/$libname.la"; then
4913231990Smp                      found_la="$dir/$libname.la"
4914231990Smp                    fi
4915231990Smp                  fi
4916167465Smp                  ;;
4917167465Smp              esac
4918167465Smp              if test "X$found_dir" != "X"; then
4919167465Smp                break
4920167465Smp              fi
4921167465Smp            done
4922167465Smp          fi
4923167465Smp          if test "X$found_dir" != "X"; then
4924167465Smp                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4925167465Smp            if test "X$found_so" != "X"; then
4926231990Smp                                                        if test "$enable_rpath" = no \
4927231990Smp                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
4928231990Smp                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
4929167465Smp                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4930167465Smp              else
4931167465Smp                                                                                haveit=
4932167465Smp                for x in $ltrpathdirs; do
4933167465Smp                  if test "X$x" = "X$found_dir"; then
4934167465Smp                    haveit=yes
4935167465Smp                    break
4936167465Smp                  fi
4937167465Smp                done
4938167465Smp                if test -z "$haveit"; then
4939167465Smp                  ltrpathdirs="$ltrpathdirs $found_dir"
4940167465Smp                fi
4941231990Smp                                if test "$acl_hardcode_direct" = yes; then
4942167465Smp                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4943167465Smp                else
4944231990Smp                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4945167465Smp                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4946167465Smp                                                            haveit=
4947167465Smp                    for x in $rpathdirs; do
4948167465Smp                      if test "X$x" = "X$found_dir"; then
4949167465Smp                        haveit=yes
4950167465Smp                        break
4951167465Smp                      fi
4952167465Smp                    done
4953167465Smp                    if test -z "$haveit"; then
4954167465Smp                      rpathdirs="$rpathdirs $found_dir"
4955167465Smp                    fi
4956167465Smp                  else
4957167465Smp                                                                                haveit=
4958167465Smp                    for x in $LDFLAGS $LIBICONV; do
4959167465Smp
4960167465Smp  acl_save_prefix="$prefix"
4961167465Smp  prefix="$acl_final_prefix"
4962167465Smp  acl_save_exec_prefix="$exec_prefix"
4963167465Smp  exec_prefix="$acl_final_exec_prefix"
4964167465Smp  eval x=\"$x\"
4965167465Smp  exec_prefix="$acl_save_exec_prefix"
4966167465Smp  prefix="$acl_save_prefix"
4967167465Smp
4968167465Smp                      if test "X$x" = "X-L$found_dir"; then
4969167465Smp                        haveit=yes
4970167465Smp                        break
4971167465Smp                      fi
4972167465Smp                    done
4973167465Smp                    if test -z "$haveit"; then
4974167465Smp                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4975167465Smp                    fi
4976231990Smp                    if test "$acl_hardcode_minus_L" != no; then
4977167465Smp                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4978167465Smp                    else
4979167465Smp                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4980167465Smp                    fi
4981167465Smp                  fi
4982167465Smp                fi
4983167465Smp              fi
4984167465Smp            else
4985167465Smp              if test "X$found_a" != "X"; then
4986167465Smp                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4987167465Smp              else
4988167465Smp                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4989167465Smp              fi
4990167465Smp            fi
4991167465Smp                        additional_includedir=
4992167465Smp            case "$found_dir" in
4993231990Smp              */$acl_libdirstem | */$acl_libdirstem/)
4994231990Smp                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4995231990Smp                if test "$name" = 'iconv'; then
4996231990Smp                  LIBICONV_PREFIX="$basedir"
4997231990Smp                fi
4998167465Smp                additional_includedir="$basedir/include"
4999167465Smp                ;;
5000231990Smp              */$acl_libdirstem2 | */$acl_libdirstem2/)
5001231990Smp                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5002231990Smp                if test "$name" = 'iconv'; then
5003231990Smp                  LIBICONV_PREFIX="$basedir"
5004231990Smp                fi
5005231990Smp                additional_includedir="$basedir/include"
5006231990Smp                ;;
5007167465Smp            esac
5008167465Smp            if test "X$additional_includedir" != "X"; then
5009167465Smp                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5010167465Smp                haveit=
5011167465Smp                if test "X$additional_includedir" = "X/usr/local/include"; then
5012167465Smp                  if test -n "$GCC"; then
5013167465Smp                    case $host_os in
5014167465Smp                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5015167465Smp                    esac
5016167465Smp                  fi
5017167465Smp                fi
5018167465Smp                if test -z "$haveit"; then
5019167465Smp                  for x in $CPPFLAGS $INCICONV; do
5020167465Smp
5021167465Smp  acl_save_prefix="$prefix"
5022167465Smp  prefix="$acl_final_prefix"
5023167465Smp  acl_save_exec_prefix="$exec_prefix"
5024167465Smp  exec_prefix="$acl_final_exec_prefix"
5025167465Smp  eval x=\"$x\"
5026167465Smp  exec_prefix="$acl_save_exec_prefix"
5027167465Smp  prefix="$acl_save_prefix"
5028167465Smp
5029167465Smp                    if test "X$x" = "X-I$additional_includedir"; then
5030167465Smp                      haveit=yes
5031167465Smp                      break
5032167465Smp                    fi
5033167465Smp                  done
5034167465Smp                  if test -z "$haveit"; then
5035167465Smp                    if test -d "$additional_includedir"; then
5036167465Smp                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5037167465Smp                    fi
5038167465Smp                  fi
5039167465Smp                fi
5040167465Smp              fi
5041167465Smp            fi
5042167465Smp                        if test -n "$found_la"; then
5043167465Smp                                                        save_libdir="$libdir"
5044167465Smp              case "$found_la" in
5045167465Smp                */* | *\\*) . "$found_la" ;;
5046167465Smp                *) . "./$found_la" ;;
5047167465Smp              esac
5048167465Smp              libdir="$save_libdir"
5049167465Smp                            for dep in $dependency_libs; do
5050167465Smp                case "$dep" in
5051167465Smp                  -L*)
5052167465Smp                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5053231990Smp                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5054231990Smp                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5055167465Smp                      haveit=
5056231990Smp                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5057231990Smp                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5058167465Smp                        if test -n "$GCC"; then
5059167465Smp                          case $host_os in
5060167465Smp                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5061167465Smp                          esac
5062167465Smp                        fi
5063167465Smp                      fi
5064167465Smp                      if test -z "$haveit"; then
5065167465Smp                        haveit=
5066167465Smp                        for x in $LDFLAGS $LIBICONV; do
5067167465Smp
5068167465Smp  acl_save_prefix="$prefix"
5069167465Smp  prefix="$acl_final_prefix"
5070167465Smp  acl_save_exec_prefix="$exec_prefix"
5071167465Smp  exec_prefix="$acl_final_exec_prefix"
5072167465Smp  eval x=\"$x\"
5073167465Smp  exec_prefix="$acl_save_exec_prefix"
5074167465Smp  prefix="$acl_save_prefix"
5075167465Smp
5076167465Smp                          if test "X$x" = "X-L$additional_libdir"; then
5077167465Smp                            haveit=yes
5078167465Smp                            break
5079167465Smp                          fi
5080167465Smp                        done
5081167465Smp                        if test -z "$haveit"; then
5082167465Smp                          if test -d "$additional_libdir"; then
5083167465Smp                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5084167465Smp                          fi
5085167465Smp                        fi
5086167465Smp                        haveit=
5087167465Smp                        for x in $LDFLAGS $LTLIBICONV; do
5088167465Smp
5089167465Smp  acl_save_prefix="$prefix"
5090167465Smp  prefix="$acl_final_prefix"
5091167465Smp  acl_save_exec_prefix="$exec_prefix"
5092167465Smp  exec_prefix="$acl_final_exec_prefix"
5093167465Smp  eval x=\"$x\"
5094167465Smp  exec_prefix="$acl_save_exec_prefix"
5095167465Smp  prefix="$acl_save_prefix"
5096167465Smp
5097167465Smp                          if test "X$x" = "X-L$additional_libdir"; then
5098167465Smp                            haveit=yes
5099167465Smp                            break
5100167465Smp                          fi
5101167465Smp                        done
5102167465Smp                        if test -z "$haveit"; then
5103167465Smp                          if test -d "$additional_libdir"; then
5104167465Smp                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5105167465Smp                          fi
5106167465Smp                        fi
5107167465Smp                      fi
5108167465Smp                    fi
5109167465Smp                    ;;
5110167465Smp                  -R*)
5111167465Smp                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5112167465Smp                    if test "$enable_rpath" != no; then
5113167465Smp                                                                  haveit=
5114167465Smp                      for x in $rpathdirs; do
5115167465Smp                        if test "X$x" = "X$dir"; then
5116167465Smp                          haveit=yes
5117167465Smp                          break
5118167465Smp                        fi
5119167465Smp                      done
5120167465Smp                      if test -z "$haveit"; then
5121167465Smp                        rpathdirs="$rpathdirs $dir"
5122167465Smp                      fi
5123167465Smp                                                                  haveit=
5124167465Smp                      for x in $ltrpathdirs; do
5125167465Smp                        if test "X$x" = "X$dir"; then
5126167465Smp                          haveit=yes
5127167465Smp                          break
5128167465Smp                        fi
5129167465Smp                      done
5130167465Smp                      if test -z "$haveit"; then
5131167465Smp                        ltrpathdirs="$ltrpathdirs $dir"
5132167465Smp                      fi
5133167465Smp                    fi
5134167465Smp                    ;;
5135167465Smp                  -l*)
5136167465Smp                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5137167465Smp                    ;;
5138167465Smp                  *.la)
5139167465Smp                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5140167465Smp                    ;;
5141167465Smp                  *)
5142167465Smp                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5143167465Smp                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5144167465Smp                    ;;
5145167465Smp                esac
5146167465Smp              done
5147167465Smp            fi
5148167465Smp          else
5149167465Smp                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5150167465Smp            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5151167465Smp          fi
5152167465Smp        fi
5153167465Smp      fi
5154167465Smp    done
5155167465Smp  done
5156167465Smp  if test "X$rpathdirs" != "X"; then
5157231990Smp    if test -n "$acl_hardcode_libdir_separator"; then
5158167465Smp                        alldirs=
5159167465Smp      for found_dir in $rpathdirs; do
5160231990Smp        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5161167465Smp      done
5162167465Smp            acl_save_libdir="$libdir"
5163167465Smp      libdir="$alldirs"
5164231990Smp      eval flag=\"$acl_hardcode_libdir_flag_spec\"
5165167465Smp      libdir="$acl_save_libdir"
5166167465Smp      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5167167465Smp    else
5168167465Smp            for found_dir in $rpathdirs; do
5169167465Smp        acl_save_libdir="$libdir"
5170167465Smp        libdir="$found_dir"
5171231990Smp        eval flag=\"$acl_hardcode_libdir_flag_spec\"
5172167465Smp        libdir="$acl_save_libdir"
5173167465Smp        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5174167465Smp      done
5175167465Smp    fi
5176167465Smp  fi
5177167465Smp  if test "X$ltrpathdirs" != "X"; then
5178167465Smp            for found_dir in $ltrpathdirs; do
5179167465Smp      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5180167465Smp    done
5181167465Smp  fi
5182167465Smp
5183167465Smp
5184167465Smp
5185167465Smp
5186167465Smp
5187167465Smp
5188167465Smp
5189231990Smp
5190231990Smp
5191231990Smp
5192231990Smp
5193231990Smp
5194167465Smp          am_save_CPPFLAGS="$CPPFLAGS"
5195167465Smp
5196167465Smp  for element in $INCICONV; do
5197167465Smp    haveit=
5198167465Smp    for x in $CPPFLAGS; do
5199167465Smp
5200167465Smp  acl_save_prefix="$prefix"
5201167465Smp  prefix="$acl_final_prefix"
5202167465Smp  acl_save_exec_prefix="$exec_prefix"
5203167465Smp  exec_prefix="$acl_final_exec_prefix"
5204167465Smp  eval x=\"$x\"
5205167465Smp  exec_prefix="$acl_save_exec_prefix"
5206167465Smp  prefix="$acl_save_prefix"
5207167465Smp
5208167465Smp      if test "X$x" = "X$element"; then
5209167465Smp        haveit=yes
5210167465Smp        break
5211167465Smp      fi
5212167465Smp    done
5213167465Smp    if test -z "$haveit"; then
5214167465Smp      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5215167465Smp    fi
5216167465Smp  done
5217167465Smp
5218167465Smp
5219231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5220231990Smp$as_echo_n "checking for iconv... " >&6; }
5221231990Smpif ${am_cv_func_iconv+:} false; then :
5222231990Smp  $as_echo_n "(cached) " >&6
5223167465Smpelse
5224167465Smp
5225167465Smp    am_cv_func_iconv="no, consider installing GNU libiconv"
5226167465Smp    am_cv_lib_iconv=no
5227231990Smp    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228145479Smp/* end confdefs.h.  */
5229316957Sdchagin
5230167465Smp#include <stdlib.h>
5231167465Smp#include <iconv.h>
5232316957Sdchagin
5233145479Smpint
5234145479Smpmain ()
5235145479Smp{
5236167465Smpiconv_t cd = iconv_open("","");
5237316957Sdchagin           iconv(cd,NULL,NULL,NULL,NULL);
5238316957Sdchagin           iconv_close(cd);
5239145479Smp  ;
5240145479Smp  return 0;
5241145479Smp}
5242145479Smp_ACEOF
5243231990Smpif ac_fn_c_try_link "$LINENO"; then :
5244167465Smp  am_cv_func_iconv=yes
5245145479Smpfi
5246231990Smprm -f core conftest.err conftest.$ac_objext \
5247231990Smp    conftest$ac_exeext conftest.$ac_ext
5248167465Smp    if test "$am_cv_func_iconv" != yes; then
5249167465Smp      am_save_LIBS="$LIBS"
5250167465Smp      LIBS="$LIBS $LIBICONV"
5251231990Smp      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252145479Smp/* end confdefs.h.  */
5253316957Sdchagin
5254167465Smp#include <stdlib.h>
5255167465Smp#include <iconv.h>
5256316957Sdchagin
5257145479Smpint
5258145479Smpmain ()
5259145479Smp{
5260167465Smpiconv_t cd = iconv_open("","");
5261316957Sdchagin             iconv(cd,NULL,NULL,NULL,NULL);
5262316957Sdchagin             iconv_close(cd);
5263145479Smp  ;
5264145479Smp  return 0;
5265145479Smp}
5266145479Smp_ACEOF
5267231990Smpif ac_fn_c_try_link "$LINENO"; then :
5268167465Smp  am_cv_lib_iconv=yes
5269167465Smp        am_cv_func_iconv=yes
5270231990Smpfi
5271231990Smprm -f core conftest.err conftest.$ac_objext \
5272231990Smp    conftest$ac_exeext conftest.$ac_ext
5273231990Smp      LIBS="$am_save_LIBS"
5274231990Smp    fi
5275231990Smp
5276231990Smpfi
5277231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5278231990Smp$as_echo "$am_cv_func_iconv" >&6; }
5279231990Smp  if test "$am_cv_func_iconv" = yes; then
5280231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5281231990Smp$as_echo_n "checking for working iconv... " >&6; }
5282231990Smpif ${am_cv_func_iconv_works+:} false; then :
5283231990Smp  $as_echo_n "(cached) " >&6
5284145479Smpelse
5285145479Smp
5286316957Sdchagin                  am_save_LIBS="$LIBS"
5287231990Smp      if test $am_cv_lib_iconv = yes; then
5288231990Smp        LIBS="$LIBS $LIBICONV"
5289231990Smp      fi
5290316957Sdchagin      am_cv_func_iconv_works=no
5291316957Sdchagin      for ac_iconv_const in '' 'const'; do
5292316957Sdchagin        if test "$cross_compiling" = yes; then :
5293231990Smp  case "$host_os" in
5294316957Sdchagin             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5295316957Sdchagin             *)            am_cv_func_iconv_works="guessing yes" ;;
5296316957Sdchagin           esac
5297231990Smpelse
5298231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299231990Smp/* end confdefs.h.  */
5300195609Smp
5301231990Smp#include <iconv.h>
5302231990Smp#include <string.h>
5303316957Sdchagin
5304316957Sdchagin#ifndef ICONV_CONST
5305316957Sdchagin# define ICONV_CONST $ac_iconv_const
5306316957Sdchagin#endif
5307316957Sdchagin
5308316957Sdchaginint
5309316957Sdchaginmain ()
5310231990Smp{
5311316957Sdchaginint result = 0;
5312231990Smp  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5313231990Smp     returns.  */
5314231990Smp  {
5315231990Smp    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5316231990Smp    if (cd_utf8_to_88591 != (iconv_t)(-1))
5317231990Smp      {
5318316957Sdchagin        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
5319231990Smp        char buf[10];
5320316957Sdchagin        ICONV_CONST char *inptr = input;
5321231990Smp        size_t inbytesleft = strlen (input);
5322231990Smp        char *outptr = buf;
5323231990Smp        size_t outbytesleft = sizeof (buf);
5324231990Smp        size_t res = iconv (cd_utf8_to_88591,
5325316957Sdchagin                            &inptr, &inbytesleft,
5326231990Smp                            &outptr, &outbytesleft);
5327231990Smp        if (res == 0)
5328316957Sdchagin          result |= 1;
5329316957Sdchagin        iconv_close (cd_utf8_to_88591);
5330231990Smp      }
5331231990Smp  }
5332231990Smp  /* Test against Solaris 10 bug: Failures are not distinguishable from
5333231990Smp     successful returns.  */
5334231990Smp  {
5335231990Smp    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5336231990Smp    if (cd_ascii_to_88591 != (iconv_t)(-1))
5337231990Smp      {
5338316957Sdchagin        static ICONV_CONST char input[] = "\263";
5339231990Smp        char buf[10];
5340316957Sdchagin        ICONV_CONST char *inptr = input;
5341231990Smp        size_t inbytesleft = strlen (input);
5342231990Smp        char *outptr = buf;
5343231990Smp        size_t outbytesleft = sizeof (buf);
5344231990Smp        size_t res = iconv (cd_ascii_to_88591,
5345316957Sdchagin                            &inptr, &inbytesleft,
5346231990Smp                            &outptr, &outbytesleft);
5347231990Smp        if (res == 0)
5348316957Sdchagin          result |= 2;
5349316957Sdchagin        iconv_close (cd_ascii_to_88591);
5350231990Smp      }
5351231990Smp  }
5352316957Sdchagin  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
5353316957Sdchagin  {
5354316957Sdchagin    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
5355316957Sdchagin    if (cd_88591_to_utf8 != (iconv_t)(-1))
5356316957Sdchagin      {
5357316957Sdchagin        static ICONV_CONST char input[] = "\304";
5358316957Sdchagin        static char buf[2] = { (char)0xDE, (char)0xAD };
5359316957Sdchagin        ICONV_CONST char *inptr = input;
5360316957Sdchagin        size_t inbytesleft = 1;
5361316957Sdchagin        char *outptr = buf;
5362316957Sdchagin        size_t outbytesleft = 1;
5363316957Sdchagin        size_t res = iconv (cd_88591_to_utf8,
5364316957Sdchagin                            &inptr, &inbytesleft,
5365316957Sdchagin                            &outptr, &outbytesleft);
5366316957Sdchagin        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
5367316957Sdchagin          result |= 4;
5368316957Sdchagin        iconv_close (cd_88591_to_utf8);
5369316957Sdchagin      }
5370316957Sdchagin  }
5371231990Smp#if 0 /* This bug could be worked around by the caller.  */
5372231990Smp  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
5373231990Smp  {
5374231990Smp    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5375231990Smp    if (cd_88591_to_utf8 != (iconv_t)(-1))
5376231990Smp      {
5377316957Sdchagin        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5378231990Smp        char buf[50];
5379316957Sdchagin        ICONV_CONST char *inptr = input;
5380231990Smp        size_t inbytesleft = strlen (input);
5381231990Smp        char *outptr = buf;
5382231990Smp        size_t outbytesleft = sizeof (buf);
5383231990Smp        size_t res = iconv (cd_88591_to_utf8,
5384316957Sdchagin                            &inptr, &inbytesleft,
5385231990Smp                            &outptr, &outbytesleft);
5386231990Smp        if ((int)res > 0)
5387316957Sdchagin          result |= 8;
5388316957Sdchagin        iconv_close (cd_88591_to_utf8);
5389231990Smp      }
5390231990Smp  }
5391231990Smp#endif
5392231990Smp  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5393231990Smp     provided.  */
5394231990Smp  if (/* Try standardized names.  */
5395231990Smp      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5396231990Smp      /* Try IRIX, OSF/1 names.  */
5397231990Smp      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5398231990Smp      /* Try AIX names.  */
5399231990Smp      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5400231990Smp      /* Try HP-UX names.  */
5401231990Smp      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5402316957Sdchagin    result |= 16;
5403316957Sdchagin  return result;
5404316957Sdchagin
5405316957Sdchagin  ;
5406231990Smp  return 0;
5407231990Smp}
5408231990Smp_ACEOF
5409231990Smpif ac_fn_c_try_run "$LINENO"; then :
5410231990Smp  am_cv_func_iconv_works=yes
5411145479Smpfi
5412231990Smprm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5413231990Smp  conftest.$ac_objext conftest.beam conftest.$ac_ext
5414231990Smpfi
5415195609Smp
5416316957Sdchagin        test "$am_cv_func_iconv_works" = no || break
5417316957Sdchagin      done
5418167465Smp      LIBS="$am_save_LIBS"
5419167465Smp
5420145479Smpfi
5421231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5422231990Smp$as_echo "$am_cv_func_iconv_works" >&6; }
5423231990Smp    case "$am_cv_func_iconv_works" in
5424231990Smp      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5425231990Smp      *)   am_func_iconv=yes ;;
5426231990Smp    esac
5427231990Smp  else
5428231990Smp    am_func_iconv=no am_cv_lib_iconv=no
5429231990Smp  fi
5430231990Smp  if test "$am_func_iconv" = yes; then
5431145479Smp
5432231990Smp$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5433145479Smp
5434167465Smp  fi
5435167465Smp  if test "$am_cv_lib_iconv" = yes; then
5436231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5437231990Smp$as_echo_n "checking how to link with libiconv... " >&6; }
5438231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5439231990Smp$as_echo "$LIBICONV" >&6; }
5440167465Smp  else
5441167465Smp            CPPFLAGS="$am_save_CPPFLAGS"
5442167465Smp    LIBICONV=
5443167465Smp    LTLIBICONV=
5444167465Smp  fi
5445167465Smp
5446167465Smp
5447167465Smp
5448167465Smp  if test "$am_cv_func_iconv" = yes; then
5449231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5450231990Smp$as_echo_n "checking for iconv declaration... " >&6; }
5451231990Smp    if ${am_cv_proto_iconv+:} false; then :
5452231990Smp  $as_echo_n "(cached) " >&6
5453167465Smpelse
5454167465Smp
5455231990Smp      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456167465Smp/* end confdefs.h.  */
5457167465Smp
5458167465Smp#include <stdlib.h>
5459167465Smp#include <iconv.h>
5460167465Smpextern
5461167465Smp#ifdef __cplusplus
5462167465Smp"C"
5463167465Smp#endif
5464316957Sdchagin#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
5465167465Smpsize_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5466167465Smp#else
5467167465Smpsize_t iconv();
5468167465Smp#endif
5469167465Smp
5470167465Smpint
5471167465Smpmain ()
5472167465Smp{
5473167465Smp
5474167465Smp  ;
5475167465Smp  return 0;
5476167465Smp}
5477167465Smp_ACEOF
5478231990Smpif ac_fn_c_try_compile "$LINENO"; then :
5479167465Smp  am_cv_proto_iconv_arg1=""
5480167465Smpelse
5481231990Smp  am_cv_proto_iconv_arg1="const"
5482145479Smpfi
5483195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484167465Smp      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5485167465Smpfi
5486145479Smp
5487167465Smp    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5488231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
5489231990Smp         $am_cv_proto_iconv" >&5
5490231990Smp$as_echo "
5491231990Smp         $am_cv_proto_iconv" >&6; }
5492145479Smp
5493167465Smpcat >>confdefs.h <<_ACEOF
5494167465Smp#define ICONV_CONST $am_cv_proto_iconv_arg1
5495167465Smp_ACEOF
5496167465Smp
5497316957Sdchagin
5498167465Smp  fi
5499167465Smp
5500167465Smp
5501231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5502231990Smp$as_echo_n "checking for ANSI C header files... " >&6; }
5503231990Smpif ${ac_cv_header_stdc+:} false; then :
5504231990Smp  $as_echo_n "(cached) " >&6
5505100616Smpelse
5506231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507131962Smp/* end confdefs.h.  */
5508145479Smp#include <stdlib.h>
5509145479Smp#include <stdarg.h>
5510145479Smp#include <string.h>
5511145479Smp#include <float.h>
5512145479Smp
5513145479Smpint
5514145479Smpmain ()
5515145479Smp{
5516145479Smp
5517145479Smp  ;
5518145479Smp  return 0;
5519145479Smp}
5520145479Smp_ACEOF
5521231990Smpif ac_fn_c_try_compile "$LINENO"; then :
5522145479Smp  ac_cv_header_stdc=yes
5523145479Smpelse
5524231990Smp  ac_cv_header_stdc=no
5525145479Smpfi
5526195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527195609Smp
5528145479Smpif test $ac_cv_header_stdc = yes; then
5529145479Smp  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5530231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531145479Smp/* end confdefs.h.  */
5532145479Smp#include <string.h>
5533145479Smp
5534145479Smp_ACEOF
5535145479Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5536231990Smp  $EGREP "memchr" >/dev/null 2>&1; then :
5537231990Smp
5538145479Smpelse
5539145479Smp  ac_cv_header_stdc=no
5540145479Smpfi
5541145479Smprm -f conftest*
5542145479Smp
5543145479Smpfi
5544145479Smp
5545145479Smpif test $ac_cv_header_stdc = yes; then
5546145479Smp  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5547231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548145479Smp/* end confdefs.h.  */
5549145479Smp#include <stdlib.h>
5550145479Smp
5551145479Smp_ACEOF
5552145479Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5553231990Smp  $EGREP "free" >/dev/null 2>&1; then :
5554231990Smp
5555145479Smpelse
5556145479Smp  ac_cv_header_stdc=no
5557145479Smpfi
5558145479Smprm -f conftest*
5559145479Smp
5560145479Smpfi
5561145479Smp
5562145479Smpif test $ac_cv_header_stdc = yes; then
5563145479Smp  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5564231990Smp  if test "$cross_compiling" = yes; then :
5565145479Smp  :
5566145479Smpelse
5567231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568145479Smp/* end confdefs.h.  */
5569145479Smp#include <ctype.h>
5570195609Smp#include <stdlib.h>
5571145479Smp#if ((' ' & 0x0FF) == 0x020)
5572145479Smp# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5573145479Smp# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5574145479Smp#else
5575145479Smp# define ISLOWER(c) \
5576145479Smp		   (('a' <= (c) && (c) <= 'i') \
5577145479Smp		     || ('j' <= (c) && (c) <= 'r') \
5578145479Smp		     || ('s' <= (c) && (c) <= 'z'))
5579145479Smp# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5580145479Smp#endif
5581145479Smp
5582145479Smp#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5583145479Smpint
5584145479Smpmain ()
5585145479Smp{
5586145479Smp  int i;
5587145479Smp  for (i = 0; i < 256; i++)
5588145479Smp    if (XOR (islower (i), ISLOWER (i))
5589145479Smp	|| toupper (i) != TOUPPER (i))
5590195609Smp      return 2;
5591195609Smp  return 0;
5592145479Smp}
5593145479Smp_ACEOF
5594231990Smpif ac_fn_c_try_run "$LINENO"; then :
5595231990Smp
5596145479Smpelse
5597231990Smp  ac_cv_header_stdc=no
5598145479Smpfi
5599231990Smprm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5600231990Smp  conftest.$ac_objext conftest.beam conftest.$ac_ext
5601145479Smpfi
5602195609Smp
5603145479Smpfi
5604145479Smpfi
5605231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5606231990Smp$as_echo "$ac_cv_header_stdc" >&6; }
5607145479Smpif test $ac_cv_header_stdc = yes; then
5608145479Smp
5609231990Smp$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5610145479Smp
5611145479Smpfi
5612145479Smp
5613145479Smp# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5614145479Smpfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5615145479Smp		  inttypes.h stdint.h unistd.h
5616231990Smpdo :
5617231990Smp  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5618231990Smpac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5619231990Smp"
5620231990Smpif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5621145479Smp  cat >>confdefs.h <<_ACEOF
5622231990Smp#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5623145479Smp_ACEOF
5624145479Smp
5625145479Smpfi
5626145479Smp
5627145479Smpdone
5628145479Smp
5629145479Smp
5630231990Smpfor ac_header in auth.h crypt.h features.h inttypes.h paths.h 		 shadow.h stdint.h utmp.h utmpx.h
5631231990Smpdo :
5632231990Smp  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633231990Smpac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5634231990Smpif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5635145479Smp  cat >>confdefs.h <<_ACEOF
5636231990Smp#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5637145479Smp_ACEOF
5638145479Smp
5639145479Smpfi
5640145479Smp
5641145479Smpdone
5642145479Smp
5643145479Smpfor ac_header in wchar.h
5644231990Smpdo :
5645231990Smp  ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5646231990Smpif test "x$ac_cv_header_wchar_h" = xyes; then :
5647145479Smp  cat >>confdefs.h <<_ACEOF
5648231990Smp#define HAVE_WCHAR_H 1
5649145479Smp_ACEOF
5650231990Smp # The cast to long int works around a bug in the HP C Compiler
5651195609Smp# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5652195609Smp# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5653195609Smp# This bug is HP SR number 8606223364.
5654231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
5655231990Smp$as_echo_n "checking size of wchar_t... " >&6; }
5656231990Smpif ${ac_cv_sizeof_wchar_t+:} false; then :
5657231990Smp  $as_echo_n "(cached) " >&6
5658145479Smpelse
5659231990Smp  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <stdio.h>
5660145479Smp#include <wchar.h>
5661231990Smp"; then :
5662145479Smp
5663145479Smpelse
5664231990Smp  if test "$ac_cv_type_wchar_t" = yes; then
5665231990Smp     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5666231990Smp$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5667231990Smpas_fn_error 77 "cannot compute sizeof (wchar_t)
5668231990SmpSee \`config.log' for more details" "$LINENO" 5; }
5669195609Smp   else
5670195609Smp     ac_cv_sizeof_wchar_t=0
5671195609Smp   fi
5672145479Smpfi
5673231990Smp
5674145479Smpfi
5675231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
5676231990Smp$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
5677195609Smp
5678195609Smp
5679195609Smp
5680145479Smpcat >>confdefs.h <<_ACEOF
5681145479Smp#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
5682145479Smp_ACEOF
5683145479Smp
5684145479Smp
5685231990Smp	for ac_header in wctype.h
5686231990Smpdo :
5687231990Smp  ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
5688231990Smpif test "x$ac_cv_header_wctype_h" = xyes; then :
5689145479Smp  cat >>confdefs.h <<_ACEOF
5690231990Smp#define HAVE_WCTYPE_H 1
5691145479Smp_ACEOF
5692145479Smp
5693145479Smpfi
5694145479Smp
5695145479Smpdone
5696145479Smp
5697145479Smpfi
5698145479Smp
5699145479Smpdone
5700145479Smp
5701145479Smpac_header_dirent=no
5702145479Smpfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5703231990Smp  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5704231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5705231990Smp$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5706231990Smpif eval \${$as_ac_Header+:} false; then :
5707231990Smp  $as_echo_n "(cached) " >&6
5708145479Smpelse
5709231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710145479Smp/* end confdefs.h.  */
5711100616Smp#include <sys/types.h>
5712145479Smp#include <$ac_hdr>
5713145479Smp
5714145479Smpint
5715145479Smpmain ()
5716145479Smp{
5717145479Smpif ((DIR *) 0)
5718145479Smpreturn 0;
5719145479Smp  ;
5720145479Smp  return 0;
5721145479Smp}
5722145479Smp_ACEOF
5723231990Smpif ac_fn_c_try_compile "$LINENO"; then :
5724145479Smp  eval "$as_ac_Header=yes"
5725145479Smpelse
5726231990Smp  eval "$as_ac_Header=no"
5727145479Smpfi
5728195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729145479Smpfi
5730231990Smpeval ac_res=\$$as_ac_Header
5731231990Smp	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5732231990Smp$as_echo "$ac_res" >&6; }
5733231990Smpif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5734145479Smp  cat >>confdefs.h <<_ACEOF
5735231990Smp#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5736145479Smp_ACEOF
5737145479Smp
5738145479Smpac_header_dirent=$ac_hdr; break
5739145479Smpfi
5740145479Smp
5741145479Smpdone
5742145479Smp# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5743145479Smpif test $ac_header_dirent = dirent.h; then
5744231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5745231990Smp$as_echo_n "checking for library containing opendir... " >&6; }
5746231990Smpif ${ac_cv_search_opendir+:} false; then :
5747231990Smp  $as_echo_n "(cached) " >&6
5748145479Smpelse
5749145479Smp  ac_func_search_save_LIBS=$LIBS
5750231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751145479Smp/* end confdefs.h.  */
5752145479Smp
5753195609Smp/* Override any GCC internal prototype to avoid an error.
5754195609Smp   Use char because int might match the return type of a GCC
5755195609Smp   builtin and then its argument prototype would still apply.  */
5756145479Smp#ifdef __cplusplus
5757145479Smpextern "C"
5758145479Smp#endif
5759145479Smpchar opendir ();
5760145479Smpint
5761145479Smpmain ()
5762145479Smp{
5763195609Smpreturn opendir ();
5764145479Smp  ;
5765145479Smp  return 0;
5766145479Smp}
5767145479Smp_ACEOF
5768195609Smpfor ac_lib in '' dir; do
5769195609Smp  if test -z "$ac_lib"; then
5770195609Smp    ac_res="none required"
5771195609Smp  else
5772195609Smp    ac_res=-l$ac_lib
5773195609Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5774195609Smp  fi
5775231990Smp  if ac_fn_c_try_link "$LINENO"; then :
5776195609Smp  ac_cv_search_opendir=$ac_res
5777145479Smpfi
5778231990Smprm -f core conftest.err conftest.$ac_objext \
5779231990Smp    conftest$ac_exeext
5780231990Smp  if ${ac_cv_search_opendir+:} false; then :
5781195609Smp  break
5782195609Smpfi
5783195609Smpdone
5784231990Smpif ${ac_cv_search_opendir+:} false; then :
5785231990Smp
5786145479Smpelse
5787195609Smp  ac_cv_search_opendir=no
5788145479Smpfi
5789195609Smprm conftest.$ac_ext
5790145479SmpLIBS=$ac_func_search_save_LIBS
5791145479Smpfi
5792231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5793231990Smp$as_echo "$ac_cv_search_opendir" >&6; }
5794195609Smpac_res=$ac_cv_search_opendir
5795231990Smpif test "$ac_res" != no; then :
5796195609Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5797145479Smp
5798145479Smpfi
5799145479Smp
5800145479Smpelse
5801231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5802231990Smp$as_echo_n "checking for library containing opendir... " >&6; }
5803231990Smpif ${ac_cv_search_opendir+:} false; then :
5804231990Smp  $as_echo_n "(cached) " >&6
5805145479Smpelse
5806145479Smp  ac_func_search_save_LIBS=$LIBS
5807231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808145479Smp/* end confdefs.h.  */
5809145479Smp
5810195609Smp/* Override any GCC internal prototype to avoid an error.
5811195609Smp   Use char because int might match the return type of a GCC
5812195609Smp   builtin and then its argument prototype would still apply.  */
5813145479Smp#ifdef __cplusplus
5814145479Smpextern "C"
5815145479Smp#endif
5816145479Smpchar opendir ();
5817145479Smpint
5818145479Smpmain ()
5819145479Smp{
5820195609Smpreturn opendir ();
5821145479Smp  ;
5822145479Smp  return 0;
5823145479Smp}
5824145479Smp_ACEOF
5825195609Smpfor ac_lib in '' x; do
5826195609Smp  if test -z "$ac_lib"; then
5827195609Smp    ac_res="none required"
5828195609Smp  else
5829195609Smp    ac_res=-l$ac_lib
5830195609Smp    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5831195609Smp  fi
5832231990Smp  if ac_fn_c_try_link "$LINENO"; then :
5833195609Smp  ac_cv_search_opendir=$ac_res
5834145479Smpfi
5835231990Smprm -f core conftest.err conftest.$ac_objext \
5836231990Smp    conftest$ac_exeext
5837231990Smp  if ${ac_cv_search_opendir+:} false; then :
5838195609Smp  break
5839195609Smpfi
5840195609Smpdone
5841231990Smpif ${ac_cv_search_opendir+:} false; then :
5842231990Smp
5843145479Smpelse
5844195609Smp  ac_cv_search_opendir=no
5845145479Smpfi
5846195609Smprm conftest.$ac_ext
5847145479SmpLIBS=$ac_func_search_save_LIBS
5848145479Smpfi
5849231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5850231990Smp$as_echo "$ac_cv_search_opendir" >&6; }
5851195609Smpac_res=$ac_cv_search_opendir
5852231990Smpif test "$ac_res" != no; then :
5853195609Smp  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5854145479Smp
5855145479Smpfi
5856145479Smp
5857145479Smpfi
5858145479Smp
5859231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5860231990Smp$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5861231990Smpif ${ac_cv_header_stat_broken+:} false; then :
5862231990Smp  $as_echo_n "(cached) " >&6
5863145479Smpelse
5864231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865145479Smp/* end confdefs.h.  */
5866145479Smp#include <sys/types.h>
5867145479Smp#include <sys/stat.h>
5868145479Smp
5869195609Smp#if defined S_ISBLK && defined S_IFDIR
5870195609Smpextern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5871145479Smp#endif
5872145479Smp
5873195609Smp#if defined S_ISBLK && defined S_IFCHR
5874195609Smpextern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5875145479Smp#endif
5876145479Smp
5877195609Smp#if defined S_ISLNK && defined S_IFREG
5878195609Smpextern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5879145479Smp#endif
5880145479Smp
5881195609Smp#if defined S_ISSOCK && defined S_IFREG
5882195609Smpextern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5883145479Smp#endif
5884145479Smp
5885145479Smp_ACEOF
5886231990Smpif ac_fn_c_try_compile "$LINENO"; then :
5887195609Smp  ac_cv_header_stat_broken=no
5888145479Smpelse
5889231990Smp  ac_cv_header_stat_broken=yes
5890145479Smpfi
5891195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892145479Smpfi
5893231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5894231990Smp$as_echo "$ac_cv_header_stat_broken" >&6; }
5895145479Smpif test $ac_cv_header_stat_broken = yes; then
5896145479Smp
5897231990Smp$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5898145479Smp
5899145479Smpfi
5900145479Smp
5901231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5902231990Smp$as_echo_n "checking for ANSI C header files... " >&6; }
5903231990Smpif ${ac_cv_header_stdc+:} false; then :
5904231990Smp  $as_echo_n "(cached) " >&6
5905145479Smpelse
5906231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907145479Smp/* end confdefs.h.  */
5908145479Smp#include <stdlib.h>
5909145479Smp#include <stdarg.h>
5910145479Smp#include <string.h>
5911145479Smp#include <float.h>
5912145479Smp
5913145479Smpint
5914145479Smpmain ()
5915145479Smp{
5916145479Smp
5917145479Smp  ;
5918145479Smp  return 0;
5919145479Smp}
5920145479Smp_ACEOF
5921231990Smpif ac_fn_c_try_compile "$LINENO"; then :
5922145479Smp  ac_cv_header_stdc=yes
5923145479Smpelse
5924231990Smp  ac_cv_header_stdc=no
5925145479Smpfi
5926195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927195609Smp
5928145479Smpif test $ac_cv_header_stdc = yes; then
5929145479Smp  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5930231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931145479Smp/* end confdefs.h.  */
5932145479Smp#include <string.h>
5933145479Smp
5934145479Smp_ACEOF
5935145479Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5936231990Smp  $EGREP "memchr" >/dev/null 2>&1; then :
5937231990Smp
5938145479Smpelse
5939145479Smp  ac_cv_header_stdc=no
5940145479Smpfi
5941145479Smprm -f conftest*
5942145479Smp
5943145479Smpfi
5944145479Smp
5945145479Smpif test $ac_cv_header_stdc = yes; then
5946145479Smp  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5947231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948145479Smp/* end confdefs.h.  */
5949145479Smp#include <stdlib.h>
5950145479Smp
5951145479Smp_ACEOF
5952145479Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5953231990Smp  $EGREP "free" >/dev/null 2>&1; then :
5954231990Smp
5955145479Smpelse
5956145479Smp  ac_cv_header_stdc=no
5957145479Smpfi
5958145479Smprm -f conftest*
5959145479Smp
5960145479Smpfi
5961145479Smp
5962145479Smpif test $ac_cv_header_stdc = yes; then
5963145479Smp  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5964231990Smp  if test "$cross_compiling" = yes; then :
5965145479Smp  :
5966145479Smpelse
5967231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968145479Smp/* end confdefs.h.  */
5969145479Smp#include <ctype.h>
5970195609Smp#include <stdlib.h>
5971145479Smp#if ((' ' & 0x0FF) == 0x020)
5972145479Smp# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5973145479Smp# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5974145479Smp#else
5975145479Smp# define ISLOWER(c) \
5976145479Smp		   (('a' <= (c) && (c) <= 'i') \
5977145479Smp		     || ('j' <= (c) && (c) <= 'r') \
5978145479Smp		     || ('s' <= (c) && (c) <= 'z'))
5979145479Smp# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5980145479Smp#endif
5981145479Smp
5982145479Smp#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5983145479Smpint
5984145479Smpmain ()
5985145479Smp{
5986145479Smp  int i;
5987145479Smp  for (i = 0; i < 256; i++)
5988145479Smp    if (XOR (islower (i), ISLOWER (i))
5989145479Smp	|| toupper (i) != TOUPPER (i))
5990195609Smp      return 2;
5991195609Smp  return 0;
5992145479Smp}
5993145479Smp_ACEOF
5994231990Smpif ac_fn_c_try_run "$LINENO"; then :
5995231990Smp
5996145479Smpelse
5997231990Smp  ac_cv_header_stdc=no
5998145479Smpfi
5999231990Smprm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6000231990Smp  conftest.$ac_objext conftest.beam conftest.$ac_ext
6001145479Smpfi
6002195609Smp
6003145479Smpfi
6004145479Smpfi
6005231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6006231990Smp$as_echo "$ac_cv_header_stdc" >&6; }
6007145479Smpif test $ac_cv_header_stdc = yes; then
6008145479Smp
6009231990Smp$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6010145479Smp
6011145479Smpfi
6012145479Smp
6013145479Smp
6014231990Smpac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6015231990Smpif test "x$ac_cv_type_long_long" = xyes; then :
6016145479Smp
6017145479Smpcat >>confdefs.h <<_ACEOF
6018145479Smp#define HAVE_LONG_LONG 1
6019145479Smp_ACEOF
6020145479Smp
6021145479Smp
6022145479Smpfi
6023145479Smp
6024231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6025231990Smp$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6026231990Smpif ${ac_cv_type_uid_t+:} false; then :
6027231990Smp  $as_echo_n "(cached) " >&6
6028145479Smpelse
6029231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030145479Smp/* end confdefs.h.  */
6031145479Smp#include <sys/types.h>
6032145479Smp
6033145479Smp_ACEOF
6034145479Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6035231990Smp  $EGREP "uid_t" >/dev/null 2>&1; then :
6036145479Smp  ac_cv_type_uid_t=yes
6037145479Smpelse
6038145479Smp  ac_cv_type_uid_t=no
6039145479Smpfi
6040145479Smprm -f conftest*
6041145479Smp
6042145479Smpfi
6043231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6044231990Smp$as_echo "$ac_cv_type_uid_t" >&6; }
6045145479Smpif test $ac_cv_type_uid_t = no; then
6046145479Smp
6047231990Smp$as_echo "#define uid_t int" >>confdefs.h
6048145479Smp
6049145479Smp
6050231990Smp$as_echo "#define gid_t int" >>confdefs.h
6051145479Smp
6052145479Smpfi
6053145479Smp
6054231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
6055231990Smp$as_echo_n "checking type of array argument to getgroups... " >&6; }
6056231990Smpif ${ac_cv_type_getgroups+:} false; then :
6057231990Smp  $as_echo_n "(cached) " >&6
6058145479Smpelse
6059231990Smp  if test "$cross_compiling" = yes; then :
6060145479Smp  ac_cv_type_getgroups=cross
6061145479Smpelse
6062231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063145479Smp/* end confdefs.h.  */
6064145479Smp/* Thanks to Mike Rendell for this test.  */
6065195609Smp$ac_includes_default
6066145479Smp#define NGID 256
6067145479Smp#undef MAX
6068145479Smp#define MAX(x, y) ((x) > (y) ? (x) : (y))
6069145479Smp
6070145479Smpint
6071145479Smpmain ()
6072145479Smp{
6073145479Smp  gid_t gidset[NGID];
6074145479Smp  int i, n;
6075195609Smp  union { gid_t gval; long int lval; }  val;
6076145479Smp
6077145479Smp  val.lval = -1;
6078145479Smp  for (i = 0; i < NGID; i++)
6079145479Smp    gidset[i] = val.gval;
6080145479Smp  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6081145479Smp		 gidset);
6082145479Smp  /* Exit non-zero if getgroups seems to require an array of ints.  This
6083195609Smp     happens when gid_t is short int but getgroups modifies an array
6084195609Smp     of ints.  */
6085195609Smp  return n > 0 && gidset[n] != val.gval;
6086145479Smp}
6087145479Smp_ACEOF
6088231990Smpif ac_fn_c_try_run "$LINENO"; then :
6089145479Smp  ac_cv_type_getgroups=gid_t
6090145479Smpelse
6091231990Smp  ac_cv_type_getgroups=int
6092145479Smpfi
6093231990Smprm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6094231990Smp  conftest.$ac_objext conftest.beam conftest.$ac_ext
6095145479Smpfi
6096195609Smp
6097145479Smpif test $ac_cv_type_getgroups = cross; then
6098231990Smp        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099145479Smp/* end confdefs.h.  */
6100145479Smp#include <unistd.h>
6101145479Smp
6102145479Smp_ACEOF
6103145479Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6104231990Smp  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
6105145479Smp  ac_cv_type_getgroups=gid_t
6106145479Smpelse
6107145479Smp  ac_cv_type_getgroups=int
6108145479Smpfi
6109145479Smprm -f conftest*
6110145479Smp
6111145479Smpfi
6112145479Smpfi
6113231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
6114231990Smp$as_echo "$ac_cv_type_getgroups" >&6; }
6115145479Smp
6116145479Smpcat >>confdefs.h <<_ACEOF
6117145479Smp#define GETGROUPS_T $ac_cv_type_getgroups
6118145479Smp_ACEOF
6119145479Smp
6120145479Smp
6121231990Smpac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6122231990Smpif test "x$ac_cv_type_mode_t" = xyes; then :
6123145479Smp
6124145479Smpelse
6125145479Smp
6126145479Smpcat >>confdefs.h <<_ACEOF
6127145479Smp#define mode_t int
6128145479Smp_ACEOF
6129145479Smp
6130145479Smpfi
6131145479Smp
6132231990Smpac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6133231990Smpif test "x$ac_cv_type_size_t" = xyes; then :
6134145479Smp
6135145479Smpelse
6136145479Smp
6137145479Smpcat >>confdefs.h <<_ACEOF
6138195609Smp#define size_t unsigned int
6139145479Smp_ACEOF
6140145479Smp
6141145479Smpfi
6142145479Smp
6143231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6144231990Smp$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6145231990Smpif ${ac_cv_type_uid_t+:} false; then :
6146231990Smp  $as_echo_n "(cached) " >&6
6147145479Smpelse
6148231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149145479Smp/* end confdefs.h.  */
6150145479Smp#include <sys/types.h>
6151145479Smp
6152145479Smp_ACEOF
6153145479Smpif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6154231990Smp  $EGREP "uid_t" >/dev/null 2>&1; then :
6155145479Smp  ac_cv_type_uid_t=yes
6156145479Smpelse
6157145479Smp  ac_cv_type_uid_t=no
6158145479Smpfi
6159145479Smprm -f conftest*
6160145479Smp
6161145479Smpfi
6162231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6163231990Smp$as_echo "$ac_cv_type_uid_t" >&6; }
6164145479Smpif test $ac_cv_type_uid_t = no; then
6165145479Smp
6166231990Smp$as_echo "#define uid_t int" >>confdefs.h
6167145479Smp
6168145479Smp
6169231990Smp$as_echo "#define gid_t int" >>confdefs.h
6170145479Smp
6171145479Smpfi
6172145479Smp
6173231990Smpac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6174231990Smpcase $ac_cv_c_uint32_t in #(
6175231990Smp  no|yes) ;; #(
6176231990Smp  *)
6177145479Smp
6178231990Smp$as_echo "#define _UINT32_T 1" >>confdefs.h
6179145479Smp
6180145479Smp
6181231990Smpcat >>confdefs.h <<_ACEOF
6182231990Smp#define uint32_t $ac_cv_c_uint32_t
6183167465Smp_ACEOF
6184231990Smp;;
6185231990Smp  esac
6186167465Smp
6187167465Smp
6188167465Smp
6189167465Smp
6190231990Smpac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
6191231990Smp#include <sys/types.h>
6192195609Smp
6193231990Smp"
6194231990Smpif test "x$ac_cv_type_ssize_t" = xyes; then :
6195231990Smp
6196167465Smpelse
6197167465Smp
6198231990Smp$as_echo "#define ssize_t int" >>confdefs.h
6199167465Smp
6200167465Smpfi
6201167465Smp
6202167465Smp
6203167465Smp
6204167465Smp
6205167465Smp
6206231990Smpac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
6207145479Smp#include <sys/types.h>
6208100616Smp#include <sys/socket.h>
6209145479Smp
6210231990Smp"
6211231990Smpif test "x$ac_cv_type_socklen_t" = xyes; then :
6212145479Smp
6213100616Smpelse
6214131962Smp
6215231990Smp$as_echo "#define socklen_t int" >>confdefs.h
6216195609Smp
6217100616Smpfi
621869408Sache
6219145479Smp
622069408Sache
6221100616Smp
6222231990Smpac_fn_c_check_member "$LINENO" "struct dirent" "d_ino" "ac_cv_member_struct_dirent_d_ino" "#ifdef HAVE_DIRENT_H
6223145479Smp# include <dirent.h>
6224145479Smp#else
6225145479Smp# ifdef HAVE_NDIR_H
6226145479Smp#  include <ndir.h>
6227145479Smp# else
6228145479Smp#  include <sys/dir.h>
6229145479Smp# endif
6230145479Smp# define dirent direct
6231145479Smp#endif
6232231990Smp"
6233231990Smpif test "x$ac_cv_member_struct_dirent_d_ino" = xyes; then :
6234145479Smp
6235145479Smpcat >>confdefs.h <<_ACEOF
6236145479Smp#define HAVE_STRUCT_DIRENT_D_INO 1
6237145479Smp_ACEOF
6238145479Smp
6239145479Smp
6240145479Smpfi
6241145479Smp
6242231990Smpac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "#include <sys/types.h>
6243145479Smp#ifdef HAVE_UTMPX_H
6244145479Smp#include <utmpx.h>
6245145479Smp#define utmp utmpx
6246145479Smp#elif defined HAVE_UTMP_H
6247145479Smp#include <utmp.h>
6248145479Smp#endif
6249231990Smp"
6250231990Smpif test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
6251145479Smp
6252231990Smpcat >>confdefs.h <<_ACEOF
6253231990Smp#define HAVE_STRUCT_UTMP_UT_HOST 1
6254145479Smp_ACEOF
6255145479Smp
6256231990Smp
6257231990Smpfi
6258231990Smpac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "#include <sys/types.h>
6259145479Smp#ifdef HAVE_UTMPX_H
6260145479Smp#include <utmpx.h>
6261145479Smp#define utmp utmpx
6262145479Smp#elif defined HAVE_UTMP_H
6263145479Smp#include <utmp.h>
6264145479Smp#endif
6265231990Smp"
6266231990Smpif test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
6267145479Smp
6268145479Smpcat >>confdefs.h <<_ACEOF
6269231990Smp#define HAVE_STRUCT_UTMP_UT_USER 1
6270145479Smp_ACEOF
6271145479Smp
6272145479Smp
6273145479Smpfi
6274231990Smpac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "#include <sys/types.h>
6275145479Smp#ifdef HAVE_UTMPX_H
6276145479Smp#include <utmpx.h>
6277145479Smp#define utmp utmpx
6278145479Smp#elif defined HAVE_UTMP_H
6279145479Smp#include <utmp.h>
6280145479Smp#endif
6281231990Smp"
6282231990Smpif test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
6283145479Smp
6284231990Smpcat >>confdefs.h <<_ACEOF
6285231990Smp#define HAVE_STRUCT_UTMP_UT_TV 1
6286145479Smp_ACEOF
6287145479Smp
6288231990Smp
6289231990Smpfi
6290231990Smpac_fn_c_check_member "$LINENO" "struct utmp" "ut_xtime" "ac_cv_member_struct_utmp_ut_xtime" "#include <sys/types.h>
6291145479Smp#ifdef HAVE_UTMPX_H
6292145479Smp#include <utmpx.h>
6293145479Smp#define utmp utmpx
6294145479Smp#elif defined HAVE_UTMP_H
6295145479Smp#include <utmp.h>
6296145479Smp#endif
6297231990Smp"
6298231990Smpif test "x$ac_cv_member_struct_utmp_ut_xtime" = xyes; then :
6299145479Smp
6300145479Smpcat >>confdefs.h <<_ACEOF
6301231990Smp#define HAVE_STRUCT_UTMP_UT_XTIME 1
6302145479Smp_ACEOF
6303145479Smp
6304145479Smp
6305145479Smpfi
6306231990Smpac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "#include <sys/types.h>
6307145479Smp#ifdef HAVE_UTMPX_H
6308145479Smp#include <utmpx.h>
6309145479Smp#define utmp utmpx
6310145479Smp#elif defined HAVE_UTMP_H
6311145479Smp#include <utmp.h>
6312145479Smp#endif
6313231990Smp"
6314231990Smpif test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
6315145479Smp
6316231990Smpcat >>confdefs.h <<_ACEOF
6317231990Smp#define HAVE_STRUCT_UTMPX_UT_HOST 1
6318145479Smp_ACEOF
6319145479Smp
6320231990Smp
6321231990Smpfi
6322231990Smpac_fn_c_check_member "$LINENO" "struct utmpx" "ut_user" "ac_cv_member_struct_utmpx_ut_user" "#include <sys/types.h>
6323145479Smp#ifdef HAVE_UTMPX_H
6324145479Smp#include <utmpx.h>
6325145479Smp#define utmp utmpx
6326145479Smp#elif defined HAVE_UTMP_H
6327145479Smp#include <utmp.h>
6328145479Smp#endif
6329231990Smp"
6330231990Smpif test "x$ac_cv_member_struct_utmpx_ut_user" = xyes; then :
6331145479Smp
6332145479Smpcat >>confdefs.h <<_ACEOF
6333231990Smp#define HAVE_STRUCT_UTMPX_UT_USER 1
6334145479Smp_ACEOF
6335145479Smp
6336145479Smp
6337145479Smpfi
6338231990Smpac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "#include <sys/types.h>
6339145479Smp#ifdef HAVE_UTMPX_H
6340145479Smp#include <utmpx.h>
6341145479Smp#define utmp utmpx
6342145479Smp#elif defined HAVE_UTMP_H
6343145479Smp#include <utmp.h>
6344145479Smp#endif
6345231990Smp"
6346231990Smpif test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
6347145479Smp
6348231990Smpcat >>confdefs.h <<_ACEOF
6349231990Smp#define HAVE_STRUCT_UTMPX_UT_TV 1
6350145479Smp_ACEOF
6351145479Smp
6352231990Smp
6353231990Smpfi
6354231990Smpac_fn_c_check_member "$LINENO" "struct utmpx" "ut_xtime" "ac_cv_member_struct_utmpx_ut_xtime" "#include <sys/types.h>
6355145479Smp#ifdef HAVE_UTMPX_H
6356145479Smp#include <utmpx.h>
6357145479Smp#define utmp utmpx
6358145479Smp#elif defined HAVE_UTMP_H
6359145479Smp#include <utmp.h>
6360145479Smp#endif
6361231990Smp"
6362231990Smpif test "x$ac_cv_member_struct_utmpx_ut_xtime" = xyes; then :
6363145479Smp
6364145479Smpcat >>confdefs.h <<_ACEOF
6365231990Smp#define HAVE_STRUCT_UTMPX_UT_XTIME 1
6366145479Smp_ACEOF
6367145479Smp
6368145479Smp
6369145479Smpfi
6370145479Smp
6371231990Smpac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
6372145479Smp#include <sys/socket.h>
6373231990Smp"
6374231990Smpif test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
6375145479Smp
6376145479Smpcat >>confdefs.h <<_ACEOF
6377145479Smp#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
6378145479Smp_ACEOF
6379145479Smp
6380145479Smp
6381145479Smpfi
6382145479Smp
6383145479Smp
6384231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6385231990Smp$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6386231990Smpif ${ac_cv_c_const+:} false; then :
6387231990Smp  $as_echo_n "(cached) " >&6
6388145479Smpelse
6389231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390145479Smp/* end confdefs.h.  */
6391145479Smp
6392145479Smpint
6393145479Smpmain ()
6394145479Smp{
6395316957Sdchagin
6396145479Smp#ifndef __cplusplus
6397316957Sdchagin  /* Ultrix mips cc rejects this sort of thing.  */
6398145479Smp  typedef int charset[2];
6399316957Sdchagin  const charset cs = { 0, 0 };
6400145479Smp  /* SunOS 4.1.1 cc rejects this.  */
6401195609Smp  char const *const *pcpcc;
6402195609Smp  char **ppc;
6403145479Smp  /* NEC SVR4.0.2 mips cc rejects this.  */
6404145479Smp  struct point {int x, y;};
6405145479Smp  static struct point const zero = {0,0};
6406145479Smp  /* AIX XL C 1.02.0.0 rejects this.
6407145479Smp     It does not let you subtract one const X* pointer from another in
6408145479Smp     an arm of an if-expression whose if-part is not a constant
6409145479Smp     expression */
6410145479Smp  const char *g = "string";
6411195609Smp  pcpcc = &g + (g ? g-g : 0);
6412145479Smp  /* HPUX 7.0 cc rejects these. */
6413195609Smp  ++pcpcc;
6414195609Smp  ppc = (char**) pcpcc;
6415195609Smp  pcpcc = (char const *const *) ppc;
6416316957Sdchagin  { /* SCO 3.2v4 cc rejects this sort of thing.  */
6417316957Sdchagin    char tx;
6418316957Sdchagin    char *t = &tx;
6419145479Smp    char const *s = 0 ? (char *) 0 : (char const *) 0;
6420145479Smp
6421145479Smp    *t++ = 0;
6422195609Smp    if (s) return 0;
6423145479Smp  }
6424145479Smp  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6425145479Smp    int x[] = {25, 17};
6426145479Smp    const int *foo = &x[0];
6427145479Smp    ++foo;
6428145479Smp  }
6429145479Smp  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6430145479Smp    typedef const int *iptr;
6431145479Smp    iptr p = 0;
6432145479Smp    ++p;
6433145479Smp  }
6434316957Sdchagin  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6435145479Smp       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6436316957Sdchagin    struct s { int j; const int *ap[3]; } bx;
6437316957Sdchagin    struct s *b = &bx; b->j = 5;
6438145479Smp  }
6439145479Smp  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6440145479Smp    const int foo = 10;
6441195609Smp    if (!foo) return 0;
6442145479Smp  }
6443195609Smp  return !cs[0] && !zero.x;
6444145479Smp#endif
6445145479Smp
6446145479Smp  ;
6447145479Smp  return 0;
6448145479Smp}
6449145479Smp_ACEOF
6450231990Smpif ac_fn_c_try_compile "$LINENO"; then :
6451145479Smp  ac_cv_c_const=yes
6452145479Smpelse
6453231990Smp  ac_cv_c_const=no
6454145479Smpfi
6455195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456145479Smpfi
6457231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6458231990Smp$as_echo "$ac_cv_c_const" >&6; }
6459145479Smpif test $ac_cv_c_const = no; then
6460145479Smp
6461231990Smp$as_echo "#define const /**/" >>confdefs.h
6462145479Smp
6463145479Smpfi
6464145479Smp
6465231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6466231990Smp$as_echo_n "checking for working volatile... " >&6; }
6467231990Smpif ${ac_cv_c_volatile+:} false; then :
6468231990Smp  $as_echo_n "(cached) " >&6
6469145479Smpelse
6470231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471145479Smp/* end confdefs.h.  */
6472145479Smp
6473145479Smpint
6474145479Smpmain ()
6475145479Smp{
6476145479Smp
6477145479Smpvolatile int x;
6478195609Smpint * volatile y = (int *) 0;
6479195609Smpreturn !x && !y;
6480145479Smp  ;
6481145479Smp  return 0;
6482145479Smp}
6483145479Smp_ACEOF
6484231990Smpif ac_fn_c_try_compile "$LINENO"; then :
6485145479Smp  ac_cv_c_volatile=yes
6486145479Smpelse
6487231990Smp  ac_cv_c_volatile=no
6488145479Smpfi
6489195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490145479Smpfi
6491231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6492231990Smp$as_echo "$ac_cv_c_volatile" >&6; }
6493145479Smpif test $ac_cv_c_volatile = no; then
6494145479Smp
6495231990Smp$as_echo "#define volatile /**/" >>confdefs.h
6496145479Smp
6497145479Smpfi
6498145479Smp
6499145479Smp
6500231990Smpac_fn_c_check_decl "$LINENO" "crypt" "ac_cv_have_decl_crypt" "#include \"config_p.h\"
6501167465Smp$ac_includes_default
6502167465Smp#ifdef HAVE_CRYPT_H
6503167465Smp#include <crypt.h>
6504167465Smp#endif
6505167465Smp
6506231990Smp"
6507231990Smpif test "x$ac_cv_have_decl_crypt" = xyes; then :
6508231990Smp  ac_have_decl=1
6509167465Smpelse
6510231990Smp  ac_have_decl=0
6511167465Smpfi
6512195609Smp
6513167465Smpcat >>confdefs.h <<_ACEOF
6514231990Smp#define HAVE_DECL_CRYPT $ac_have_decl
6515167465Smp_ACEOF
6516231990Smpac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "#include \"config_p.h\"
6517167465Smp$ac_includes_default
6518167465Smp#ifdef HAVE_CRYPT_H
6519167465Smp#include <crypt.h>
6520167465Smp#endif
6521167465Smp
6522231990Smp"
6523231990Smpif test "x$ac_cv_have_decl_environ" = xyes; then :
6524231990Smp  ac_have_decl=1
6525167465Smpelse
6526231990Smp  ac_have_decl=0
6527167465Smpfi
6528195609Smp
6529167465Smpcat >>confdefs.h <<_ACEOF
6530231990Smp#define HAVE_DECL_ENVIRON $ac_have_decl
6531167465Smp_ACEOF
6532231990Smpac_fn_c_check_decl "$LINENO" "gethostname" "ac_cv_have_decl_gethostname" "#include \"config_p.h\"
6533145479Smp$ac_includes_default
6534167465Smp#ifdef HAVE_CRYPT_H
6535167465Smp#include <crypt.h>
6536167465Smp#endif
6537167465Smp
6538231990Smp"
6539231990Smpif test "x$ac_cv_have_decl_gethostname" = xyes; then :
6540231990Smp  ac_have_decl=1
6541145479Smpelse
6542231990Smp  ac_have_decl=0
6543145479Smpfi
6544195609Smp
6545145479Smpcat >>confdefs.h <<_ACEOF
6546231990Smp#define HAVE_DECL_GETHOSTNAME $ac_have_decl
6547145479Smp_ACEOF
6548231990Smpac_fn_c_check_decl "$LINENO" "getpgrp" "ac_cv_have_decl_getpgrp" "#include \"config_p.h\"
6549167465Smp$ac_includes_default
6550167465Smp#ifdef HAVE_CRYPT_H
6551167465Smp#include <crypt.h>
6552167465Smp#endif
6553145479Smp
6554231990Smp"
6555231990Smpif test "x$ac_cv_have_decl_getpgrp" = xyes; then :
6556231990Smp  ac_have_decl=1
6557167465Smpelse
6558231990Smp  ac_have_decl=0
6559167465Smpfi
6560195609Smp
6561167465Smpcat >>confdefs.h <<_ACEOF
6562231990Smp#define HAVE_DECL_GETPGRP $ac_have_decl
6563167465Smp_ACEOF
6564145479Smp
6565231990Smpac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
6566231990Smpif test "x$ac_cv_func_setlocale" = xyes; then :
6567167465Smp  have_setlocale=yes
6568167465Smpelse
6569167465Smp  have_setlocale=no
6570167465Smpfi
6571145479Smp
6572231990Smpac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
6573231990Smpif test "x$ac_cv_func_catgets" = xyes; then :
6574231990Smp  have_catgets=yes
6575145479Smpelse
6576231990Smp  have_catgets=no
6577145479Smpfi
6578195609Smp
6579316957Sdchaginfor ac_func in dup2 getauthid getcwd gethostname getpwent 	getutent getutxent mallinfo mblen memmove memset mkstemp nice 	nl_langinfo sbrk setpgid setpriority strerror strstr sysconf wcwidth
6580231990Smpdo :
6581231990Smp  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6582231990Smpac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6583231990Smpif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6584145479Smp  cat >>confdefs.h <<_ACEOF
6585231990Smp#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6586145479Smp_ACEOF
6587145479Smp
6588145479Smpfi
6589145479Smpdone
6590145479Smp
6591231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
6592231990Smp$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
6593231990Smpif ${ac_cv_func_getpgrp_void+:} false; then :
6594231990Smp  $as_echo_n "(cached) " >&6
6595145479Smpelse
6596145479Smp  # Use it with a single arg.
6597231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598145479Smp/* end confdefs.h.  */
6599145479Smp$ac_includes_default
6600145479Smpint
6601145479Smpmain ()
6602145479Smp{
6603145479Smpgetpgrp (0);
6604145479Smp  ;
6605145479Smp  return 0;
6606145479Smp}
6607145479Smp_ACEOF
6608231990Smpif ac_fn_c_try_compile "$LINENO"; then :
6609145479Smp  ac_cv_func_getpgrp_void=no
6610145479Smpelse
6611231990Smp  ac_cv_func_getpgrp_void=yes
6612145479Smpfi
6613195609Smprm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614195609Smp
6615145479Smpfi
6616231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
6617231990Smp$as_echo "$ac_cv_func_getpgrp_void" >&6; }
6618145479Smpif test $ac_cv_func_getpgrp_void = yes; then
6619145479Smp
6620231990Smp$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
6621145479Smp
6622145479Smpfi
6623145479Smp
6624167465Smp
6625231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
6626231990Smp$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
6627231990Smpif ${ac_cv_func_mbrtowc+:} false; then :
6628231990Smp  $as_echo_n "(cached) " >&6
6629167465Smpelse
6630231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631167465Smp/* end confdefs.h.  */
6632167465Smp#include <wchar.h>
6633167465Smpint
6634167465Smpmain ()
6635167465Smp{
6636195609Smpwchar_t wc;
6637195609Smp	      char const s[] = "";
6638195609Smp	      size_t n = 1;
6639195609Smp	      mbstate_t state;
6640195609Smp	      return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
6641167465Smp  ;
6642167465Smp  return 0;
6643167465Smp}
6644167465Smp_ACEOF
6645231990Smpif ac_fn_c_try_link "$LINENO"; then :
6646167465Smp  ac_cv_func_mbrtowc=yes
6647167465Smpelse
6648231990Smp  ac_cv_func_mbrtowc=no
6649167465Smpfi
6650231990Smprm -f core conftest.err conftest.$ac_objext \
6651231990Smp    conftest$ac_exeext conftest.$ac_ext
6652167465Smpfi
6653231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
6654231990Smp$as_echo "$ac_cv_func_mbrtowc" >&6; }
6655167465Smp  if test $ac_cv_func_mbrtowc = yes; then
6656167465Smp
6657231990Smp$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
6658167465Smp
6659167465Smp  fi
6660167465Smp
6661231990Smpif test "x${cross_compiling}" != xyes ; then
6662231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
6663231990Smp$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
6664231990Smpif ${ac_cv_func_setpgrp_void+:} false; then :
6665231990Smp  $as_echo_n "(cached) " >&6
6666145479Smpelse
6667231990Smp  if test "$cross_compiling" = yes; then :
6668231990Smp  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
6669145479Smpelse
6670231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671145479Smp/* end confdefs.h.  */
6672195609Smp$ac_includes_default
6673145479Smpint
6674145479Smpmain ()
6675145479Smp{
6676145479Smp/* If this system has a BSD-style setpgrp which takes arguments,
6677145479Smp  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
6678145479Smp  exit successfully. */
6679195609Smp  return setpgrp (1,1) != -1;
6680145479Smp  ;
6681145479Smp  return 0;
6682145479Smp}
6683145479Smp_ACEOF
6684231990Smpif ac_fn_c_try_run "$LINENO"; then :
6685145479Smp  ac_cv_func_setpgrp_void=no
6686145479Smpelse
6687231990Smp  ac_cv_func_setpgrp_void=yes
6688145479Smpfi
6689231990Smprm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6690231990Smp  conftest.$ac_objext conftest.beam conftest.$ac_ext
6691145479Smpfi
6692195609Smp
6693145479Smpfi
6694231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
6695231990Smp$as_echo "$ac_cv_func_setpgrp_void" >&6; }
6696145479Smpif test $ac_cv_func_setpgrp_void = yes; then
6697145479Smp
6698231990Smp$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
6699145479Smp
6700145479Smpfi
6701145479Smp
6702167465Smpelse
6703231990Smp  ac_cv_func_setpgrp_void=yes
6704231990Smpfi
6705231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
6706231990Smp$as_echo_n "checking for working strcoll... " >&6; }
6707231990Smpif ${ac_cv_func_strcoll_works+:} false; then :
6708231990Smp  $as_echo_n "(cached) " >&6
6709231990Smpelse
6710231990Smp  if test "$cross_compiling" = yes; then :
6711167465Smp  ac_cv_func_strcoll_works=no
6712167465Smpelse
6713231990Smp  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714167465Smp/* end confdefs.h.  */
6715167465Smp$ac_includes_default
6716167465Smpint
6717167465Smpmain ()
6718167465Smp{
6719195609Smpreturn (strcoll ("abc", "def") >= 0 ||
6720167465Smp	 strcoll ("ABC", "DEF") >= 0 ||
6721167465Smp	 strcoll ("123", "456") >= 0)
6722167465Smp  ;
6723167465Smp  return 0;
6724167465Smp}
6725167465Smp_ACEOF
6726231990Smpif ac_fn_c_try_run "$LINENO"; then :
6727167465Smp  ac_cv_func_strcoll_works=yes
6728167465Smpelse
6729231990Smp  ac_cv_func_strcoll_works=no
6730167465Smpfi
6731231990Smprm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6732231990Smp  conftest.$ac_objext conftest.beam conftest.$ac_ext
6733167465Smpfi
6734195609Smp
6735167465Smpfi
6736231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
6737231990Smp$as_echo "$ac_cv_func_strcoll_works" >&6; }
6738167465Smpif test $ac_cv_func_strcoll_works = yes; then
6739145479Smp
6740231990Smp$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
6741145479Smp
6742167465Smpfi
6743145479Smp
6744145479Smp
6745167465Smp
6746167465Smp
6747167465Smp
6748167465Smpif test "$have_setlocale" != no; then
6749195609Smp  # Check whether --enable-nls was given.
6750231990Smpif test "${enable_nls+set}" = set; then :
6751195609Smp  enableval=$enable_nls;
6752167465Smpelse
6753167465Smp  enable_nls=yes
6754195609Smpfi
6755195609Smp
6756167465Smp  if test "x$enable_nls" != xno; then
6757167465Smp
6758231990Smp$as_echo "#define NLS 1" >>confdefs.h
6759167465Smp
6760167465Smp  fi
6761167465Smpfi
6762167465Smp
6763231990Smpif test "x$enable_nls" != xno -a "$have_catgets" != no -a -n "$GENCAT" ; then
6764231990Smp  # Check whether --enable-nls-catalogs was given.
6765231990Smpif test "${enable_nls_catalogs+set}" = set; then :
6766231990Smp  enableval=$enable_nls_catalogs;
676769408Sacheelse
6768231990Smp  enable_nls_catalogs=yes
6769195609Smpfi
6770195609Smp
6771231990Smp  if test "x$enable_nls_catalogs" != xno; then
6772231990Smp    BUILD_CATALOGS="yes"
6773145479Smp
6774231990Smp$as_echo "#define NLS_CATALOGS 1" >>confdefs.h
6775145479Smp
6776231990Smp  fi
6777231990Smpfi
6778145479Smp
6779145479Smp
6780231990Smp# Check whether --with-hesiod was given.
6781231990Smpif test "${with_hesiod+set}" = set; then :
6782231990Smp  withval=$with_hesiod; hesiod="$withval"
678369408Sacheelse
6784231990Smp  hesiod=no
678569408Sachefi
6786195609Smp
6787231990Smpif test "$hesiod" != no; then
6788231990Smp  HESLIB="-lhesiod"
6789231990Smp  ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
6790231990Smpif test "x$ac_cv_func_res_send" = xyes; then :
679169408Sache  :
679269408Sacheelse
6793231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
6794231990Smp$as_echo_n "checking for res_send in -lresolv... " >&6; }
6795231990Smpif ${ac_cv_lib_resolv_res_send+:} false; then :
6796231990Smp  $as_echo_n "(cached) " >&6
679769408Sacheelse
6798131962Smp  ac_check_lib_save_LIBS=$LIBS
679969408SacheLIBS="-lresolv  $LIBS"
6800231990Smpcat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801131962Smp/* end confdefs.h.  */
6802131962Smp
6803195609Smp/* Override any GCC internal prototype to avoid an error.
6804195609Smp   Use char because int might match the return type of a GCC
6805195609Smp   builtin and then its argument prototype would still apply.  */
6806131962Smp#ifdef __cplusplus
6807131962Smpextern "C"
6808131962Smp#endif
6809131962Smpchar res_send ();
6810131962Smpint
6811131962Smpmain ()
6812131962Smp{
6813195609Smpreturn res_send ();
6814131962Smp  ;
6815131962Smp  return 0;
6816131962Smp}
6817131962Smp_ACEOF
6818231990Smpif ac_fn_c_try_link "$LINENO"; then :
6819131962Smp  ac_cv_lib_resolv_res_send=yes
682069408Sacheelse
6821231990Smp  ac_cv_lib_resolv_res_send=no
682269408Sachefi
6823231990Smprm -f core conftest.err conftest.$ac_objext \
6824231990Smp    conftest$ac_exeext conftest.$ac_ext
6825131962SmpLIBS=$ac_check_lib_save_LIBS
6826131962Smpfi
6827231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
6828231990Smp$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
6829231990Smpif test "x$ac_cv_lib_resolv_res_send" = xyes; then :
683069408Sache  HESLIB="$HESLIB -lresolv"
683169408Sachefi
683269408Sache
683369408Sachefi
683469408Sache
683569408Sache  HESDEF=-DHESIOD
683669408Sache  if test "$hesiod" != yes; then
683769408Sache    HESDEF="$HESDEF -I$hesiod/include"
683869408Sache    HESLIB="-L$hesiod/lib $HESLIB"
683969408Sache  fi
684069408Sachefi
684169408Sache
684269408Sache
684369408Sache
6844131962Smp
6845231990Smpac_config_files="$ac_config_files Makefile nls/Makefile"
6846231990Smp
6847131962Smpcat >confcache <<\_ACEOF
684869408Sache# This file is a shell script that caches the results of configure
684969408Sache# tests run on this system so they can be shared between configure
6850131962Smp# scripts and configure runs, see configure's option --config-cache.
6851131962Smp# It is not useful on other systems.  If it contains results you don't
6852131962Smp# want to keep, you may remove or edit it.
685369408Sache#
6854131962Smp# config.status only pays attention to the cache file if you give it
6855131962Smp# the --recheck option to rerun configure.
685669408Sache#
6857131962Smp# `ac_cv_env_foo' variables (set or unset) will be overridden when
6858131962Smp# loading this file, other *unset* `ac_cv_foo' will be assigned the
6859131962Smp# following values.
6860131962Smp
6861131962Smp_ACEOF
6862131962Smp
686369408Sache# The following way of writing the cache mishandles newlines in values,
686469408Sache# but we know of no workaround that is simple, portable, and efficient.
6865195609Smp# So, we kill variables containing newlines.
686669408Sache# Ultrix sh set writes to stderr and can't be redirected directly,
686769408Sache# and sets the high bit in the cache file unless we assign to the vars.
6868195609Smp(
6869195609Smp  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6870195609Smp    eval ac_val=\$$ac_var
6871195609Smp    case $ac_val in #(
6872195609Smp    *${as_nl}*)
6873195609Smp      case $ac_var in #(
6874231990Smp      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6875231990Smp$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6876195609Smp      esac
6877195609Smp      case $ac_var in #(
6878195609Smp      _ | IFS | as_nl) ;; #(
6879231990Smp      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6880231990Smp      *) { eval $ac_var=; unset $ac_var;} ;;
6881195609Smp      esac ;;
6882195609Smp    esac
6883195609Smp  done
6884195609Smp
6885131962Smp  (set) 2>&1 |
6886195609Smp    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6887195609Smp    *${as_nl}ac_space=\ *)
6888231990Smp      # `set' does not quote correctly, so add quotes: double-quote
6889231990Smp      # substitution turns \\\\ into \\, and sed turns \\ into \.
6890131962Smp      sed -n \
6891145479Smp	"s/'/'\\\\''/g;
6892145479Smp	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6893195609Smp      ;; #(
6894131962Smp    *)
6895131962Smp      # `set' quotes correctly as required by POSIX, so do not add quotes.
6896195609Smp      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6897131962Smp      ;;
6898195609Smp    esac |
6899195609Smp    sort
6900195609Smp) |
6901131962Smp  sed '
6902195609Smp     /^ac_cv_env_/b end
6903131962Smp     t clear
6904195609Smp     :clear
6905131962Smp     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6906131962Smp     t end
6907195609Smp     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6908195609Smp     :end' >>confcache
6909195609Smpif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6910195609Smp  if test -w "$cache_file"; then
6911231990Smp    if test "x$cache_file" != "x/dev/null"; then
6912231990Smp      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6913231990Smp$as_echo "$as_me: updating cache $cache_file" >&6;}
6914231990Smp      if test ! -f "$cache_file" || test -h "$cache_file"; then
6915231990Smp	cat confcache >"$cache_file"
6916231990Smp      else
6917231990Smp        case $cache_file in #(
6918231990Smp        */* | ?:*)
6919231990Smp	  mv -f confcache "$cache_file"$$ &&
6920231990Smp	  mv -f "$cache_file"$$ "$cache_file" ;; #(
6921231990Smp        *)
6922231990Smp	  mv -f confcache "$cache_file" ;;
6923231990Smp	esac
6924231990Smp      fi
6925231990Smp    fi
692669408Sache  else
6927231990Smp    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6928231990Smp$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
692969408Sache  fi
693069408Sachefi
693169408Sacherm -f confcache
693269408Sache
693369408Sachetest "x$prefix" = xNONE && prefix=$ac_default_prefix
693469408Sache# Let make expand exec_prefix.
693569408Sachetest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
693669408Sache
693769408SacheDEFS=-DHAVE_CONFIG_H
693869408Sache
6939131962Smpac_libobjs=
6940131962Smpac_ltlibobjs=
6941231990SmpU=
6942131962Smpfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6943131962Smp  # 1. Remove the extension, and $U if already installed.
6944195609Smp  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6945231990Smp  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6946195609Smp  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6947195609Smp  #    will be set to the directory where LIBOBJS objects are built.
6948231990Smp  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6949231990Smp  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6950131962Smpdone
6951131962SmpLIBOBJS=$ac_libobjs
6952131962Smp
6953131962SmpLTLIBOBJS=$ac_ltlibobjs
6954131962Smp
6955131962Smp
6956131962Smp
6957231990Smp: "${CONFIG_STATUS=./config.status}"
6958231990Smpac_write_fail=0
6959131962Smpac_clean_files_save=$ac_clean_files
6960131962Smpac_clean_files="$ac_clean_files $CONFIG_STATUS"
6961231990Smp{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6962231990Smp$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6963231990Smpas_write_fail=0
6964231990Smpcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6965131962Smp#! $SHELL
6966131962Smp# Generated by $as_me.
696769408Sache# Run this file to recreate the current configuration.
696869408Sache# Compiler output produced by configure, useful for debugging
6969131962Smp# configure, is in config.log if it exists.
697069408Sache
6971131962Smpdebug=false
6972131962Smpac_cs_recheck=false
6973131962Smpac_cs_silent=false
6974231990Smp
6975131962SmpSHELL=\${CONFIG_SHELL-$SHELL}
6976231990Smpexport SHELL
6977231990Smp_ASEOF
6978231990Smpcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6979231990Smp## -------------------- ##
6980231990Smp## M4sh Initialization. ##
6981231990Smp## -------------------- ##
6982131962Smp
6983195609Smp# Be more Bourne compatible
6984195609SmpDUALCASE=1; export DUALCASE # for MKS sh
6985231990Smpif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6986131962Smp  emulate sh
6987131962Smp  NULLCMD=:
6988231990Smp  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6989131962Smp  # is contrary to our usage.  Disable this feature.
6990131962Smp  alias -g '${1+"$@"}'='"$@"'
6991195609Smp  setopt NO_GLOB_SUBST
6992195609Smpelse
6993231990Smp  case `(set -o) 2>/dev/null` in #(
6994231990Smp  *posix*) :
6995231990Smp    set -o posix ;; #(
6996231990Smp  *) :
6997231990Smp     ;;
6998195609Smpesac
6999131962Smpfi
7000131962Smp
7001195609Smp
7002231990Smpas_nl='
7003231990Smp'
7004231990Smpexport as_nl
7005231990Smp# Printing a long string crashes Solaris 7 /usr/bin/printf.
7006231990Smpas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7007231990Smpas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7008231990Smpas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7009231990Smp# Prefer a ksh shell builtin over an external printf program on Solaris,
7010231990Smp# but without wasting forks for bash or zsh.
7011231990Smpif test -z "$BASH_VERSION$ZSH_VERSION" \
7012231990Smp    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7013231990Smp  as_echo='print -r --'
7014231990Smp  as_echo_n='print -rn --'
7015231990Smpelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7016231990Smp  as_echo='printf %s\n'
7017231990Smp  as_echo_n='printf %s'
7018231990Smpelse
7019231990Smp  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7020231990Smp    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7021231990Smp    as_echo_n='/usr/ucb/echo -n'
7022195609Smp  else
7023231990Smp    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7024231990Smp    as_echo_n_body='eval
7025231990Smp      arg=$1;
7026231990Smp      case $arg in #(
7027231990Smp      *"$as_nl"*)
7028231990Smp	expr "X$arg" : "X\\(.*\\)$as_nl";
7029231990Smp	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7030231990Smp      esac;
7031231990Smp      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7032231990Smp    '
7033231990Smp    export as_echo_n_body
7034231990Smp    as_echo_n='sh -c $as_echo_n_body as_echo'
7035195609Smp  fi
7036231990Smp  export as_echo_body
7037231990Smp  as_echo='sh -c $as_echo_body as_echo'
7038195609Smpfi
7039195609Smp
7040231990Smp# The user is always right.
7041231990Smpif test "${PATH_SEPARATOR+set}" != set; then
7042231990Smp  PATH_SEPARATOR=:
7043231990Smp  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7044231990Smp    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7045231990Smp      PATH_SEPARATOR=';'
7046231990Smp  }
7047131962Smpfi
7048131962Smp
7049131962Smp
7050195609Smp# IFS
7051195609Smp# We need space, tab and new line, in precisely that order.  Quoting is
7052195609Smp# there to prevent editors from complaining about space-tab.
7053195609Smp# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7054195609Smp# splitting by setting IFS to empty value.)
7055195609SmpIFS=" ""	$as_nl"
7056195609Smp
7057195609Smp# Find who we are.  Look in the path if we contain no directory separator.
7058231990Smpas_myself=
7059231990Smpcase $0 in #((
7060195609Smp  *[\\/]* ) as_myself=$0 ;;
7061195609Smp  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062195609Smpfor as_dir in $PATH
7063195609Smpdo
7064195609Smp  IFS=$as_save_IFS
7065195609Smp  test -z "$as_dir" && as_dir=.
7066231990Smp    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7067231990Smp  done
7068195609SmpIFS=$as_save_IFS
7069195609Smp
7070195609Smp     ;;
7071195609Smpesac
7072195609Smp# We did not find ourselves, most probably we were run as `sh COMMAND'
7073195609Smp# in which case we are not to be found in the path.
7074195609Smpif test "x$as_myself" = x; then
7075195609Smp  as_myself=$0
7076195609Smpfi
7077195609Smpif test ! -f "$as_myself"; then
7078231990Smp  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7079231990Smp  exit 1
7080195609Smpfi
7081195609Smp
7082231990Smp# Unset variables that we do not need and which cause bugs (e.g. in
7083231990Smp# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7084231990Smp# suppresses any "Segmentation fault" message there.  '((' could
7085231990Smp# trigger a bug in pdksh 5.2.14.
7086231990Smpfor as_var in BASH_ENV ENV MAIL MAILPATH
7087231990Smpdo eval test x\${$as_var+set} = xset \
7088231990Smp  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7089195609Smpdone
7090131962SmpPS1='$ '
7091131962SmpPS2='> '
7092131962SmpPS4='+ '
7093131962Smp
7094131962Smp# NLS nuisances.
7095231990SmpLC_ALL=C
7096231990Smpexport LC_ALL
7097231990SmpLANGUAGE=C
7098231990Smpexport LANGUAGE
7099231990Smp
7100231990Smp# CDPATH.
7101231990Smp(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7102231990Smp
7103231990Smp
7104231990Smp# as_fn_error STATUS ERROR [LINENO LOG_FD]
7105231990Smp# ----------------------------------------
7106231990Smp# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7107231990Smp# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7108231990Smp# script with STATUS, using 1 if that was 0.
7109231990Smpas_fn_error ()
7110231990Smp{
7111231990Smp  as_status=$1; test $as_status -eq 0 && as_status=1
7112231990Smp  if test "$4"; then
7113231990Smp    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7114231990Smp    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7115131962Smp  fi
7116231990Smp  $as_echo "$as_me: error: $2" >&2
7117231990Smp  as_fn_exit $as_status
7118231990Smp} # as_fn_error
711969408Sache
7120231990Smp
7121231990Smp# as_fn_set_status STATUS
7122231990Smp# -----------------------
7123231990Smp# Set $? to STATUS, without forking.
7124231990Smpas_fn_set_status ()
7125231990Smp{
7126231990Smp  return $1
7127231990Smp} # as_fn_set_status
7128231990Smp
7129231990Smp# as_fn_exit STATUS
7130231990Smp# -----------------
7131231990Smp# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7132231990Smpas_fn_exit ()
7133231990Smp{
7134231990Smp  set +e
7135231990Smp  as_fn_set_status $1
7136231990Smp  exit $1
7137231990Smp} # as_fn_exit
7138231990Smp
7139231990Smp# as_fn_unset VAR
7140231990Smp# ---------------
7141231990Smp# Portably unset VAR.
7142231990Smpas_fn_unset ()
7143231990Smp{
7144231990Smp  { eval $1=; unset $1;}
7145231990Smp}
7146231990Smpas_unset=as_fn_unset
7147231990Smp# as_fn_append VAR VALUE
7148231990Smp# ----------------------
7149231990Smp# Append the text in VALUE to the end of the definition contained in VAR. Take
7150231990Smp# advantage of any shell optimizations that allow amortized linear growth over
7151231990Smp# repeated appends, instead of the typical quadratic growth present in naive
7152231990Smp# implementations.
7153231990Smpif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7154231990Smp  eval 'as_fn_append ()
7155231990Smp  {
7156231990Smp    eval $1+=\$2
7157231990Smp  }'
7158231990Smpelse
7159231990Smp  as_fn_append ()
7160231990Smp  {
7161231990Smp    eval $1=\$$1\$2
7162231990Smp  }
7163231990Smpfi # as_fn_append
7164231990Smp
7165231990Smp# as_fn_arith ARG...
7166231990Smp# ------------------
7167231990Smp# Perform arithmetic evaluation on the ARGs, and store the result in the
7168231990Smp# global $as_val. Take advantage of shells that can avoid forks. The arguments
7169231990Smp# must be portable across $(()) and expr.
7170231990Smpif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7171231990Smp  eval 'as_fn_arith ()
7172231990Smp  {
7173231990Smp    as_val=$(( $* ))
7174231990Smp  }'
7175231990Smpelse
7176231990Smp  as_fn_arith ()
7177231990Smp  {
7178231990Smp    as_val=`expr "$@" || test $? -eq 1`
7179231990Smp  }
7180231990Smpfi # as_fn_arith
7181231990Smp
7182231990Smp
7183195609Smpif expr a : '\(a\)' >/dev/null 2>&1 &&
7184195609Smp   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7185131962Smp  as_expr=expr
7186131962Smpelse
7187131962Smp  as_expr=false
7188131962Smpfi
718969408Sache
7190195609Smpif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7191131962Smp  as_basename=basename
7192131962Smpelse
7193131962Smp  as_basename=false
7194131962Smpfi
719569408Sache
7196231990Smpif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7197231990Smp  as_dirname=dirname
7198231990Smpelse
7199231990Smp  as_dirname=false
7200231990Smpfi
720169408Sache
7202195609Smpas_me=`$as_basename -- "$0" ||
7203131962Smp$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7204131962Smp	 X"$0" : 'X\(//\)$' \| \
7205195609Smp	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7206231990Smp$as_echo X/"$0" |
7207195609Smp    sed '/^.*\/\([^/][^/]*\)\/*$/{
7208195609Smp	    s//\1/
7209195609Smp	    q
7210195609Smp	  }
7211195609Smp	  /^X\/\(\/\/\)$/{
7212195609Smp	    s//\1/
7213195609Smp	    q
7214195609Smp	  }
7215195609Smp	  /^X\/\(\/\).*/{
7216195609Smp	    s//\1/
7217195609Smp	    q
7218195609Smp	  }
7219195609Smp	  s/.*/./; q'`
722069408Sache
7221231990Smp# Avoid depending upon Character Ranges.
7222231990Smpas_cr_letters='abcdefghijklmnopqrstuvwxyz'
7223231990Smpas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7224231990Smpas_cr_Letters=$as_cr_letters$as_cr_LETTERS
7225231990Smpas_cr_digits='0123456789'
7226231990Smpas_cr_alnum=$as_cr_Letters$as_cr_digits
722769408Sache
7228195609SmpECHO_C= ECHO_N= ECHO_T=
7229231990Smpcase `echo -n x` in #(((((
7230195609Smp-n*)
7231231990Smp  case `echo 'xy\c'` in
7232195609Smp  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7233231990Smp  xy)  ECHO_C='\c';;
7234231990Smp  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7235231990Smp       ECHO_T='	';;
7236195609Smp  esac;;
7237195609Smp*)
7238195609Smp  ECHO_N='-n';;
7239131962Smpesac
7240131962Smp
7241131962Smprm -f conf$$ conf$$.exe conf$$.file
7242195609Smpif test -d conf$$.dir; then
7243195609Smp  rm -f conf$$.dir/conf$$.file
7244195609Smpelse
7245195609Smp  rm -f conf$$.dir
7246231990Smp  mkdir conf$$.dir 2>/dev/null
7247195609Smpfi
7248231990Smpif (echo >conf$$.file) 2>/dev/null; then
7249231990Smp  if ln -s conf$$.file conf$$ 2>/dev/null; then
7250231990Smp    as_ln_s='ln -s'
7251231990Smp    # ... but there are two gotchas:
7252231990Smp    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7253231990Smp    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7254316957Sdchagin    # In both cases, we have to default to `cp -pR'.
7255231990Smp    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7256316957Sdchagin      as_ln_s='cp -pR'
7257231990Smp  elif ln conf$$.file conf$$ 2>/dev/null; then
7258231990Smp    as_ln_s=ln
7259231990Smp  else
7260316957Sdchagin    as_ln_s='cp -pR'
7261231990Smp  fi
7262131962Smpelse
7263316957Sdchagin  as_ln_s='cp -pR'
7264131962Smpfi
7265195609Smprm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7266195609Smprmdir conf$$.dir 2>/dev/null
7267131962Smp
7268231990Smp
7269231990Smp# as_fn_mkdir_p
7270231990Smp# -------------
7271231990Smp# Create "$as_dir" as a directory, including parents if necessary.
7272231990Smpas_fn_mkdir_p ()
7273231990Smp{
7274231990Smp
7275231990Smp  case $as_dir in #(
7276231990Smp  -*) as_dir=./$as_dir;;
7277231990Smp  esac
7278231990Smp  test -d "$as_dir" || eval $as_mkdir_p || {
7279231990Smp    as_dirs=
7280231990Smp    while :; do
7281231990Smp      case $as_dir in #(
7282231990Smp      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7283231990Smp      *) as_qdir=$as_dir;;
7284231990Smp      esac
7285231990Smp      as_dirs="'$as_qdir' $as_dirs"
7286231990Smp      as_dir=`$as_dirname -- "$as_dir" ||
7287231990Smp$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7288231990Smp	 X"$as_dir" : 'X\(//\)[^/]' \| \
7289231990Smp	 X"$as_dir" : 'X\(//\)$' \| \
7290231990Smp	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7291231990Smp$as_echo X"$as_dir" |
7292231990Smp    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7293231990Smp	    s//\1/
7294231990Smp	    q
7295231990Smp	  }
7296231990Smp	  /^X\(\/\/\)[^/].*/{
7297231990Smp	    s//\1/
7298231990Smp	    q
7299231990Smp	  }
7300231990Smp	  /^X\(\/\/\)$/{
7301231990Smp	    s//\1/
7302231990Smp	    q
7303231990Smp	  }
7304231990Smp	  /^X\(\/\).*/{
7305231990Smp	    s//\1/
7306231990Smp	    q
7307231990Smp	  }
7308231990Smp	  s/.*/./; q'`
7309231990Smp      test -d "$as_dir" && break
7310231990Smp    done
7311231990Smp    test -z "$as_dirs" || eval "mkdir $as_dirs"
7312231990Smp  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7313231990Smp
7314231990Smp
7315231990Smp} # as_fn_mkdir_p
7316131962Smpif mkdir -p . 2>/dev/null; then
7317231990Smp  as_mkdir_p='mkdir -p "$as_dir"'
7318131962Smpelse
7319145479Smp  test -d ./-p && rmdir ./-p
7320131962Smp  as_mkdir_p=false
7321131962Smpfi
7322131962Smp
7323131962Smp
7324316957Sdchagin# as_fn_executable_p FILE
7325316957Sdchagin# -----------------------
7326316957Sdchagin# Test if FILE is an executable regular file.
7327316957Sdchaginas_fn_executable_p ()
7328316957Sdchagin{
7329316957Sdchagin  test -f "$1" && test -x "$1"
7330316957Sdchagin} # as_fn_executable_p
7331316957Sdchaginas_test_x='test -x'
7332316957Sdchaginas_executable_p=as_fn_executable_p
7333316957Sdchagin
7334131962Smp# Sed expression to map a string onto a valid CPP name.
7335145479Smpas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7336131962Smp
7337131962Smp# Sed expression to map a string onto a valid variable name.
7338145479Smpas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7339131962Smp
7340131962Smp
7341131962Smpexec 6>&1
7342231990Smp## ----------------------------------- ##
7343231990Smp## Main body of $CONFIG_STATUS script. ##
7344231990Smp## ----------------------------------- ##
7345231990Smp_ASEOF
7346231990Smptest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7347131962Smp
7348231990Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7349231990Smp# Save the log message, to keep $0 and so on meaningful, and to
7350131962Smp# report actual input values of CONFIG_FILES etc. instead of their
7351195609Smp# values after options handling.
7352195609Smpac_log="
7353354195SbrooksThis file was extended by tcsh $as_me 6.21.00, which was
7354316957Sdchagingenerated by GNU Autoconf 2.69.  Invocation command line was
7355131962Smp
7356131962Smp  CONFIG_FILES    = $CONFIG_FILES
7357131962Smp  CONFIG_HEADERS  = $CONFIG_HEADERS
7358131962Smp  CONFIG_LINKS    = $CONFIG_LINKS
7359131962Smp  CONFIG_COMMANDS = $CONFIG_COMMANDS
7360131962Smp  $ $0 $@
7361131962Smp
7362195609Smpon `(hostname || uname -n) 2>/dev/null | sed 1q`
7363195609Smp"
7364195609Smp
7365131962Smp_ACEOF
7366131962Smp
7367231990Smpcase $ac_config_files in *"
7368231990Smp"*) set x $ac_config_files; shift; ac_config_files=$*;;
7369231990Smpesac
7370231990Smp
7371231990Smpcase $ac_config_headers in *"
7372231990Smp"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7373231990Smpesac
7374231990Smp
7375231990Smp
7376231990Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7377131962Smp# Files that config.status was made for.
7378195609Smpconfig_files="$ac_config_files"
7379195609Smpconfig_headers="$ac_config_headers"
7380195609Smpconfig_commands="$ac_config_commands"
7381131962Smp
7382195609Smp_ACEOF
7383131962Smp
7384231990Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7385131962Smpac_cs_usage="\
7386231990Smp\`$as_me' instantiates files and other configuration actions
7387231990Smpfrom templates according to the current configuration.  Unless the files
7388231990Smpand actions are specified as TAGs, all are instantiated by default.
7389131962Smp
7390231990SmpUsage: $0 [OPTION]... [TAG]...
7391131962Smp
7392131962Smp  -h, --help       print this help, then exit
7393195609Smp  -V, --version    print version number and configuration settings, then exit
7394231990Smp      --config     print configuration, then exit
7395231990Smp  -q, --quiet, --silent
7396231990Smp                   do not print progress messages
7397131962Smp  -d, --debug      don't remove temporary files
7398131962Smp      --recheck    update $as_me by reconfiguring in the same conditions
7399231990Smp      --file=FILE[:TEMPLATE]
7400231990Smp                   instantiate the configuration file FILE
7401231990Smp      --header=FILE[:TEMPLATE]
7402231990Smp                   instantiate the configuration header FILE
7403131962Smp
7404131962SmpConfiguration files:
7405131962Smp$config_files
7406131962Smp
7407131962SmpConfiguration headers:
7408131962Smp$config_headers
7409131962Smp
7410167465SmpConfiguration commands:
7411167465Smp$config_commands
7412167465Smp
7413354195SbrooksReport bugs to <https://bugs.astron.com/>."
7414195609Smp
7415131962Smp_ACEOF
7416231990Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7417231990Smpac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7418131962Smpac_cs_version="\\
7419354195Sbrookstcsh config.status 6.21.00
7420316957Sdchaginconfigured by $0, generated by GNU Autoconf 2.69,
7421231990Smp  with options \\"\$ac_cs_config\\"
7422131962Smp
7423316957SdchaginCopyright (C) 2012 Free Software Foundation, Inc.
7424131962SmpThis config.status script is free software; the Free Software Foundation
7425131962Smpgives unlimited permission to copy, distribute and modify it."
7426195609Smp
7427195609Smpac_pwd='$ac_pwd'
7428195609Smpsrcdir='$srcdir'
7429231990SmpINSTALL='$INSTALL'
7430231990Smptest -n "\$AWK" || AWK=awk
7431131962Smp_ACEOF
7432131962Smp
7433231990Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7434231990Smp# The default lists apply if the user does not specify any file.
7435131962Smpac_need_defaults=:
7436131962Smpwhile test $# != 0
7437131962Smpdo
7438131962Smp  case $1 in
7439231990Smp  --*=?*)
7440195609Smp    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7441195609Smp    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7442131962Smp    ac_shift=:
7443131962Smp    ;;
7444231990Smp  --*=)
7445231990Smp    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7446231990Smp    ac_optarg=
7447231990Smp    ac_shift=:
7448231990Smp    ;;
7449195609Smp  *)
7450131962Smp    ac_option=$1
7451131962Smp    ac_optarg=$2
7452131962Smp    ac_shift=shift
7453131962Smp    ;;
7454131962Smp  esac
7455131962Smp
7456131962Smp  case $ac_option in
7457131962Smp  # Handling of the options.
7458131962Smp  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7459131962Smp    ac_cs_recheck=: ;;
7460195609Smp  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7461231990Smp    $as_echo "$ac_cs_version"; exit ;;
7462231990Smp  --config | --confi | --conf | --con | --co | --c )
7463231990Smp    $as_echo "$ac_cs_config"; exit ;;
7464195609Smp  --debug | --debu | --deb | --de | --d | -d )
7465131962Smp    debug=: ;;
7466131962Smp  --file | --fil | --fi | --f )
7467131962Smp    $ac_shift
7468231990Smp    case $ac_optarg in
7469231990Smp    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7470231990Smp    '') as_fn_error $? "missing file argument" ;;
7471231990Smp    esac
7472231990Smp    as_fn_append CONFIG_FILES " '$ac_optarg'"
7473131962Smp    ac_need_defaults=false;;
7474131962Smp  --header | --heade | --head | --hea )
7475131962Smp    $ac_shift
7476231990Smp    case $ac_optarg in
7477231990Smp    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7478231990Smp    esac
7479231990Smp    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7480131962Smp    ac_need_defaults=false;;
7481195609Smp  --he | --h)
7482195609Smp    # Conflict between --help and --header
7483231990Smp    as_fn_error $? "ambiguous option: \`$1'
7484231990SmpTry \`$0 --help' for more information.";;
7485195609Smp  --help | --hel | -h )
7486231990Smp    $as_echo "$ac_cs_usage"; exit ;;
7487131962Smp  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7488131962Smp  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7489131962Smp    ac_cs_silent=: ;;
7490131962Smp
7491131962Smp  # This is an error.
7492231990Smp  -*) as_fn_error $? "unrecognized option: \`$1'
7493231990SmpTry \`$0 --help' for more information." ;;
7494131962Smp
7495231990Smp  *) as_fn_append ac_config_targets " $1"
7496195609Smp     ac_need_defaults=false ;;
7497131962Smp
7498131962Smp  esac
7499131962Smp  shift
750069408Sachedone
7501131962Smp
7502131962Smpac_configure_extra_args=
7503131962Smp
7504131962Smpif $ac_cs_silent; then
7505131962Smp  exec 6>/dev/null
7506131962Smp  ac_configure_extra_args="$ac_configure_extra_args --silent"
750769408Sachefi
750869408Sache
7509131962Smp_ACEOF
7510231990Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7511131962Smpif \$ac_cs_recheck; then
7512316957Sdchagin  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7513231990Smp  shift
7514231990Smp  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7515231990Smp  CONFIG_SHELL='$SHELL'
7516195609Smp  export CONFIG_SHELL
7517231990Smp  exec "\$@"
7518131962Smpfi
751969408Sache
7520131962Smp_ACEOF
7521231990Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7522195609Smpexec 5>>config.log
7523195609Smp{
7524195609Smp  echo
7525195609Smp  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7526195609Smp## Running $as_me. ##
7527195609Smp_ASBOX
7528231990Smp  $as_echo "$ac_log"
7529195609Smp} >&5
7530131962Smp
7531195609Smp_ACEOF
7532231990Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7533231990Smp#
7534231990Smp# INIT-COMMANDS
7535231990Smp#
7536231990Smp
7537231990Smp
7538195609Smp_ACEOF
7539131962Smp
7540231990Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7541131962Smp
7542195609Smp# Handling of arguments.
7543131962Smpfor ac_config_target in $ac_config_targets
7544131962Smpdo
7545195609Smp  case $ac_config_target in
7546195609Smp    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7547195609Smp    "./atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS ./atconfig" ;;
7548195609Smp    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7549231990Smp    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
7550195609Smp
7551231990Smp  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7552131962Smp  esac
7553131962Smpdone
7554131962Smp
7555195609Smp
7556131962Smp# If the user did not use the arguments to specify the items to instantiate,
7557131962Smp# then the envvar interface is used.  Set only those that are not.
7558131962Smp# We use the long form for the default assignment because of an extremely
7559131962Smp# bizarre bug on SunOS 4.1.3.
7560131962Smpif $ac_need_defaults; then
7561131962Smp  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7562131962Smp  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7563167465Smp  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7564131962Smpfi
7565131962Smp
7566131962Smp# Have a temporary directory for convenience.  Make it in the build tree
7567195609Smp# simply because there is no reason against having it here, and in addition,
7568131962Smp# creating and moving files from /tmp can sometimes cause problems.
7569195609Smp# Hook for its removal unless debugging.
7570195609Smp# Note that there is a small window in which the directory will not be cleaned:
7571195609Smp# after its creation but before its name has been assigned to `$tmp'.
7572131962Smp$debug ||
7573131962Smp{
7574231990Smp  tmp= ac_tmp=
7575195609Smp  trap 'exit_status=$?
7576231990Smp  : "${ac_tmp:=$tmp}"
7577231990Smp  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7578195609Smp' 0
7579231990Smp  trap 'as_fn_exit 1' 1 2 13 15
7580131962Smp}
7581131962Smp# Create a (secure) tmp directory for tmp files.
7582131962Smp
7583131962Smp{
7584195609Smp  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7585231990Smp  test -d "$tmp"
7586131962Smp}  ||
7587131962Smp{
7588195609Smp  tmp=./conf$$-$RANDOM
7589195609Smp  (umask 077 && mkdir "$tmp")
7590231990Smp} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7591231990Smpac_tmp=$tmp
7592131962Smp
7593231990Smp# Set up the scripts for CONFIG_FILES section.
7594231990Smp# No need to generate them if there are no CONFIG_FILES.
7595231990Smp# This happens for instance with `./config.status config.h'.
7596195609Smpif test -n "$CONFIG_FILES"; then
7597131962Smp
7598231990Smp
7599231990Smpac_cr=`echo X | tr X '\015'`
7600231990Smp# On cygwin, bash can eat \r inside `` if the user requested igncr.
7601231990Smp# But we know of no other shell where ac_cr would be empty at this
7602231990Smp# point, so we can use a bashism as a fallback.
7603231990Smpif test "x$ac_cr" = x; then
7604231990Smp  eval ac_cr=\$\'\\r\'
7605231990Smpfi
7606231990Smpac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7607231990Smpif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7608231990Smp  ac_cs_awk_cr='\\r'
7609231990Smpelse
7610231990Smp  ac_cs_awk_cr=$ac_cr
7611231990Smpfi
7612231990Smp
7613231990Smpecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7614131962Smp_ACEOF
7615131962Smp
7616195609Smp
7617231990Smp{
7618231990Smp  echo "cat >conf$$subs.awk <<_ACEOF" &&
7619231990Smp  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7620231990Smp  echo "_ACEOF"
7621231990Smp} >conf$$subs.sh ||
7622231990Smp  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7623231990Smpac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7624195609Smpac_delim='%!_!# '
7625195609Smpfor ac_last_try in false false false false false :; do
7626231990Smp  . ./conf$$subs.sh ||
7627231990Smp    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7628195609Smp
7629231990Smp  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7630231990Smp  if test $ac_delim_n = $ac_delim_num; then
7631195609Smp    break
7632195609Smp  elif $ac_last_try; then
7633231990Smp    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7634195609Smp  else
7635195609Smp    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7636131962Smp  fi
7637195609Smpdone
7638231990Smprm -f conf$$subs.sh
7639131962Smp
7640231990Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7641231990Smpcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7642231990Smp_ACEOF
7643231990Smpsed -n '
7644231990Smph
7645231990Smps/^/S["/; s/!.*/"]=/
7646231990Smpp
7647231990Smpg
7648231990Smps/^[^!]*!//
7649231990Smp:repl
7650231990Smpt repl
7651231990Smps/'"$ac_delim"'$//
7652231990Smpt delim
7653231990Smp:nl
7654231990Smph
7655231990Smps/\(.\{148\}\)..*/\1/
7656231990Smpt more1
7657231990Smps/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7658231990Smpp
7659231990Smpn
7660231990Smpb repl
7661231990Smp:more1
7662231990Smps/["\\]/\\&/g; s/^/"/; s/$/"\\/
7663231990Smpp
7664231990Smpg
7665231990Smps/.\{148\}//
7666231990Smpt nl
7667231990Smp:delim
7668231990Smph
7669231990Smps/\(.\{148\}\)..*/\1/
7670231990Smpt more2
7671231990Smps/["\\]/\\&/g; s/^/"/; s/$/"/
7672231990Smpp
7673231990Smpb
7674231990Smp:more2
7675231990Smps/["\\]/\\&/g; s/^/"/; s/$/"\\/
7676231990Smpp
7677231990Smpg
7678231990Smps/.\{148\}//
7679231990Smpt delim
7680231990Smp' <conf$$subs.awk | sed '
7681231990Smp/^[^""]/{
7682231990Smp  N
7683231990Smp  s/\n//
7684231990Smp}
7685231990Smp' >>$CONFIG_STATUS || ac_write_fail=1
7686231990Smprm -f conf$$subs.awk
7687231990Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7688231990Smp_ACAWK
7689231990Smpcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7690231990Smp  for (key in S) S_is_set[key] = 1
7691231990Smp  FS = ""
7692195609Smp
7693231990Smp}
7694231990Smp{
7695231990Smp  line = $ 0
7696231990Smp  nfields = split(line, field, "@")
7697231990Smp  substed = 0
7698231990Smp  len = length(field[1])
7699231990Smp  for (i = 2; i < nfields; i++) {
7700231990Smp    key = field[i]
7701231990Smp    keylen = length(key)
7702231990Smp    if (S_is_set[key]) {
7703231990Smp      value = S[key]
7704231990Smp      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7705231990Smp      len += length(value) + length(field[++i])
7706231990Smp      substed = 1
7707231990Smp    } else
7708231990Smp      len += 1 + keylen
7709231990Smp  }
7710231990Smp
7711231990Smp  print line
7712231990Smp}
7713231990Smp
7714231990Smp_ACAWK
7715131962Smp_ACEOF
7716231990Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7717231990Smpif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7718231990Smp  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7719231990Smpelse
7720231990Smp  cat
7721231990Smpfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7722231990Smp  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7723195609Smp_ACEOF
7724195609Smp
7725231990Smp# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7726231990Smp# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7727195609Smp# trailing colons and then remove the whole line if VPATH becomes empty
7728195609Smp# (actually we leave an empty line to preserve line numbers).
7729195609Smpif test "x$srcdir" = x.; then
7730231990Smp  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
7731231990Smph
7732231990Smps///
7733231990Smps/^/:/
7734231990Smps/[	 ]*$/:/
7735231990Smps/:\$(srcdir):/:/g
7736231990Smps/:\${srcdir}:/:/g
7737231990Smps/:@srcdir@:/:/g
7738231990Smps/^:*//
7739195609Smps/:*$//
7740231990Smpx
7741231990Smps/\(=[	 ]*\).*/\1/
7742231990SmpG
7743231990Smps/\n//
7744195609Smps/^[^=]*=[	 ]*$//
7745195609Smp}'
7746195609Smpfi
7747195609Smp
7748231990Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7749195609Smpfi # test -n "$CONFIG_FILES"
7750195609Smp
7751231990Smp# Set up the scripts for CONFIG_HEADERS section.
7752231990Smp# No need to generate them if there are no CONFIG_HEADERS.
7753231990Smp# This happens for instance with `./config.status Makefile'.
7754231990Smpif test -n "$CONFIG_HEADERS"; then
7755231990Smpcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7756231990SmpBEGIN {
7757231990Smp_ACEOF
7758195609Smp
7759231990Smp# Transform confdefs.h into an awk script `defines.awk', embedded as
7760231990Smp# here-document in config.status, that substitutes the proper values into
7761231990Smp# config.h.in to produce config.h.
7762231990Smp
7763231990Smp# Create a delimiter string that does not exist in confdefs.h, to ease
7764231990Smp# handling of long lines.
7765231990Smpac_delim='%!_!# '
7766231990Smpfor ac_last_try in false false :; do
7767231990Smp  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7768231990Smp  if test -z "$ac_tt"; then
7769231990Smp    break
7770231990Smp  elif $ac_last_try; then
7771231990Smp    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7772231990Smp  else
7773231990Smp    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7774231990Smp  fi
7775231990Smpdone
7776231990Smp
7777231990Smp# For the awk script, D is an array of macro values keyed by name,
7778231990Smp# likewise P contains macro parameters if any.  Preserve backslash
7779231990Smp# newline sequences.
7780231990Smp
7781231990Smpac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7782231990Smpsed -n '
7783231990Smps/.\{148\}/&'"$ac_delim"'/g
7784231990Smpt rset
7785231990Smp:rset
7786231990Smps/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
7787231990Smpt def
7788231990Smpd
7789231990Smp:def
7790231990Smps/\\$//
7791231990Smpt bsnl
7792231990Smps/["\\]/\\&/g
7793231990Smps/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7794231990SmpD["\1"]=" \3"/p
7795231990Smps/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
7796231990Smpd
7797231990Smp:bsnl
7798231990Smps/["\\]/\\&/g
7799231990Smps/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7800231990SmpD["\1"]=" \3\\\\\\n"\\/p
7801231990Smpt cont
7802231990Smps/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7803231990Smpt cont
7804231990Smpd
7805231990Smp:cont
7806231990Smpn
7807231990Smps/.\{148\}/&'"$ac_delim"'/g
7808231990Smpt clear
7809231990Smp:clear
7810231990Smps/\\$//
7811231990Smpt bsnlc
7812231990Smps/["\\]/\\&/g; s/^/"/; s/$/"/p
7813231990Smpd
7814231990Smp:bsnlc
7815231990Smps/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7816231990Smpb cont
7817231990Smp' <confdefs.h | sed '
7818231990Smps/'"$ac_delim"'/"\\\
7819231990Smp"/g' >>$CONFIG_STATUS || ac_write_fail=1
7820231990Smp
7821231990Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7822231990Smp  for (key in D) D_is_set[key] = 1
7823231990Smp  FS = ""
7824231990Smp}
7825231990Smp/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7826231990Smp  line = \$ 0
7827231990Smp  split(line, arg, " ")
7828231990Smp  if (arg[1] == "#") {
7829231990Smp    defundef = arg[2]
7830231990Smp    mac1 = arg[3]
7831231990Smp  } else {
7832231990Smp    defundef = substr(arg[1], 2)
7833231990Smp    mac1 = arg[2]
7834231990Smp  }
7835231990Smp  split(mac1, mac2, "(") #)
7836231990Smp  macro = mac2[1]
7837231990Smp  prefix = substr(line, 1, index(line, defundef) - 1)
7838231990Smp  if (D_is_set[macro]) {
7839231990Smp    # Preserve the white space surrounding the "#".
7840231990Smp    print prefix "define", macro P[macro] D[macro]
7841231990Smp    next
7842231990Smp  } else {
7843231990Smp    # Replace #undef with comments.  This is necessary, for example,
7844231990Smp    # in the case of _POSIX_SOURCE, which is predefined and required
7845231990Smp    # on some systems where configure will not decide to define it.
7846231990Smp    if (defundef == "undef") {
7847231990Smp      print "/*", prefix defundef, macro, "*/"
7848231990Smp      next
7849231990Smp    }
7850231990Smp  }
7851231990Smp}
7852231990Smp{ print }
7853231990Smp_ACAWK
7854231990Smp_ACEOF
7855231990Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7856231990Smp  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7857231990Smpfi # test -n "$CONFIG_HEADERS"
7858231990Smp
7859231990Smp
7860231990Smpeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
7861231990Smpshift
7862231990Smpfor ac_tag
7863195609Smpdo
7864195609Smp  case $ac_tag in
7865195609Smp  :[FHLC]) ac_mode=$ac_tag; continue;;
786669408Sache  esac
7867195609Smp  case $ac_mode$ac_tag in
7868195609Smp  :[FHL]*:*);;
7869231990Smp  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7870195609Smp  :[FH]-) ac_tag=-:-;;
7871195609Smp  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7872195609Smp  esac
7873195609Smp  ac_save_IFS=$IFS
7874195609Smp  IFS=:
7875195609Smp  set x $ac_tag
7876195609Smp  IFS=$ac_save_IFS
7877195609Smp  shift
7878195609Smp  ac_file=$1
7879195609Smp  shift
788069408Sache
7881195609Smp  case $ac_mode in
7882195609Smp  :L) ac_source=$1;;
7883195609Smp  :[FH])
7884195609Smp    ac_file_inputs=
7885195609Smp    for ac_f
7886195609Smp    do
7887195609Smp      case $ac_f in
7888231990Smp      -) ac_f="$ac_tmp/stdin";;
7889195609Smp      *) # Look for the file first in the build tree, then in the source tree
7890195609Smp	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7891195609Smp	 # because $ac_f cannot contain `:'.
7892195609Smp	 test -f "$ac_f" ||
7893195609Smp	   case $ac_f in
7894195609Smp	   [\\/$]*) false;;
7895195609Smp	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7896195609Smp	   esac ||
7897231990Smp	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7898195609Smp      esac
7899231990Smp      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7900231990Smp      as_fn_append ac_file_inputs " '$ac_f'"
7901195609Smp    done
7902195609Smp
7903195609Smp    # Let's still pretend it is `configure' which instantiates (i.e., don't
7904195609Smp    # use $as_me), people would be surprised to read:
7905195609Smp    #    /* config.h.  Generated by config.status.  */
7906231990Smp    configure_input='Generated from '`
7907231990Smp	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7908231990Smp	`' by configure.'
7909195609Smp    if test x"$ac_file" != x-; then
7910195609Smp      configure_input="$ac_file.  $configure_input"
7911231990Smp      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7912231990Smp$as_echo "$as_me: creating $ac_file" >&6;}
7913195609Smp    fi
7914231990Smp    # Neutralize special characters interpreted by sed in replacement strings.
7915231990Smp    case $configure_input in #(
7916231990Smp    *\&* | *\|* | *\\* )
7917231990Smp       ac_sed_conf_input=`$as_echo "$configure_input" |
7918231990Smp       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7919231990Smp    *) ac_sed_conf_input=$configure_input;;
7920231990Smp    esac
7921195609Smp
7922195609Smp    case $ac_tag in
7923231990Smp    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7924231990Smp      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7925195609Smp    esac
7926195609Smp    ;;
7927195609Smp  esac
7928195609Smp
7929195609Smp  ac_dir=`$as_dirname -- "$ac_file" ||
7930131962Smp$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7931145479Smp	 X"$ac_file" : 'X\(//\)[^/]' \| \
7932145479Smp	 X"$ac_file" : 'X\(//\)$' \| \
7933195609Smp	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7934231990Smp$as_echo X"$ac_file" |
7935195609Smp    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7936195609Smp	    s//\1/
7937195609Smp	    q
7938195609Smp	  }
7939195609Smp	  /^X\(\/\/\)[^/].*/{
7940195609Smp	    s//\1/
7941195609Smp	    q
7942195609Smp	  }
7943195609Smp	  /^X\(\/\/\)$/{
7944195609Smp	    s//\1/
7945195609Smp	    q
7946195609Smp	  }
7947195609Smp	  /^X\(\/\).*/{
7948195609Smp	    s//\1/
7949195609Smp	    q
7950195609Smp	  }
7951195609Smp	  s/.*/./; q'`
7952231990Smp  as_dir="$ac_dir"; as_fn_mkdir_p
7953131962Smp  ac_builddir=.
7954131962Smp
7955195609Smpcase "$ac_dir" in
7956195609Smp.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7957195609Smp*)
7958231990Smp  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7959195609Smp  # A ".." for each directory in $ac_dir_suffix.
7960231990Smp  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7961195609Smp  case $ac_top_builddir_sub in
7962195609Smp  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7963195609Smp  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7964195609Smp  esac ;;
7965195609Smpesac
7966195609Smpac_abs_top_builddir=$ac_pwd
7967195609Smpac_abs_builddir=$ac_pwd$ac_dir_suffix
7968195609Smp# for backward compatibility:
7969195609Smpac_top_builddir=$ac_top_build_prefix
7970131962Smp
7971131962Smpcase $srcdir in
7972195609Smp  .)  # We are building in place.
7973131962Smp    ac_srcdir=.
7974195609Smp    ac_top_srcdir=$ac_top_builddir_sub
7975195609Smp    ac_abs_top_srcdir=$ac_pwd ;;
7976195609Smp  [\\/]* | ?:[\\/]* )  # Absolute name.
7977131962Smp    ac_srcdir=$srcdir$ac_dir_suffix;
7978195609Smp    ac_top_srcdir=$srcdir
7979195609Smp    ac_abs_top_srcdir=$srcdir ;;
7980195609Smp  *) # Relative name.
7981195609Smp    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7982195609Smp    ac_top_srcdir=$ac_top_build_prefix$srcdir
7983195609Smp    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7984131962Smpesac
7985195609Smpac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7986131962Smp
7987131962Smp
7988195609Smp  case $ac_mode in
7989195609Smp  :F)
7990195609Smp  #
7991195609Smp  # CONFIG_FILE
7992195609Smp  #
7993131962Smp
7994231990Smp  case $INSTALL in
7995231990Smp  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7996231990Smp  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7997231990Smp  esac
7998195609Smp_ACEOF
7999145479Smp
8000231990Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8001195609Smp# If the template does not know about datarootdir, expand it.
8002195609Smp# FIXME: This hack should be removed a few years after 2.60.
8003195609Smpac_datarootdir_hack=; ac_datarootdir_seen=
8004231990Smpac_sed_dataroot='
8005231990Smp/datarootdir/ {
8006195609Smp  p
8007195609Smp  q
8008195609Smp}
8009195609Smp/@datadir@/p
8010195609Smp/@docdir@/p
8011195609Smp/@infodir@/p
8012195609Smp/@localedir@/p
8013231990Smp/@mandir@/p'
8014231990Smpcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8015195609Smp*datarootdir*) ac_datarootdir_seen=yes;;
8016195609Smp*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8017231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8018231990Smp$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8019131962Smp_ACEOF
8020231990Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8021195609Smp  ac_datarootdir_hack='
8022195609Smp  s&@datadir@&$datadir&g
8023195609Smp  s&@docdir@&$docdir&g
8024195609Smp  s&@infodir@&$infodir&g
8025195609Smp  s&@localedir@&$localedir&g
8026195609Smp  s&@mandir@&$mandir&g
8027231990Smp  s&\\\${datarootdir}&$datarootdir&g' ;;
8028195609Smpesac
8029195609Smp_ACEOF
8030195609Smp
8031195609Smp# Neutralize VPATH when `$srcdir' = `.'.
8032195609Smp# Shell code in configure.ac might set extrasub.
8033195609Smp# FIXME: do we really want to maintain this feature?
8034231990Smpcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8035231990Smpac_sed_extra="$ac_vpsub
8036131962Smp$extrasub
8037131962Smp_ACEOF
8038231990Smpcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8039131962Smp:t
8040131962Smp/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8041231990Smps|@configure_input@|$ac_sed_conf_input|;t t
8042195609Smps&@top_builddir@&$ac_top_builddir_sub&;t t
8043231990Smps&@top_build_prefix@&$ac_top_build_prefix&;t t
8044195609Smps&@srcdir@&$ac_srcdir&;t t
8045195609Smps&@abs_srcdir@&$ac_abs_srcdir&;t t
8046195609Smps&@top_srcdir@&$ac_top_srcdir&;t t
8047195609Smps&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8048195609Smps&@builddir@&$ac_builddir&;t t
8049195609Smps&@abs_builddir@&$ac_abs_builddir&;t t
8050195609Smps&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8051231990Smps&@INSTALL@&$ac_INSTALL&;t t
8052195609Smp$ac_datarootdir_hack
8053231990Smp"
8054231990Smpeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8055231990Smp  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
805669408Sache
8057195609Smptest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8058231990Smp  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8059231990Smp  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8060231990Smp      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8061231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8062231990Smpwhich seems to be undefined.  Please make sure it is defined" >&5
8063231990Smp$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8064231990Smpwhich seems to be undefined.  Please make sure it is defined" >&2;}
806569408Sache
8066231990Smp  rm -f "$ac_tmp/stdin"
8067131962Smp  case $ac_file in
8068231990Smp  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8069231990Smp  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8070231990Smp  esac \
8071231990Smp  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8072195609Smp ;;
8073195609Smp  :H)
8074195609Smp  #
8075195609Smp  # CONFIG_HEADER
8076195609Smp  #
8077131962Smp  if test x"$ac_file" != x-; then
8078231990Smp    {
8079231990Smp      $as_echo "/* $configure_input  */" \
8080231990Smp      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8081231990Smp    } >"$ac_tmp/config.h" \
8082231990Smp      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8083231990Smp    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8084231990Smp      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8085231990Smp$as_echo "$as_me: $ac_file is unchanged" >&6;}
8086131962Smp    else
8087231990Smp      rm -f "$ac_file"
8088231990Smp      mv "$ac_tmp/config.h" "$ac_file" \
8089231990Smp	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
809069408Sache    fi
8091131962Smp  else
8092231990Smp    $as_echo "/* $configure_input  */" \
8093231990Smp      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8094231990Smp      || as_fn_error $? "could not create -" "$LINENO" 5
809569408Sache  fi
8096195609Smp ;;
809769408Sache
8098231990Smp  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8099231990Smp$as_echo "$as_me: executing $ac_file commands" >&6;}
8100195609Smp ;;
8101195609Smp  esac
8102167465Smp
8103167465Smp
8104195609Smp  case $ac_file$ac_mode in
8105195609Smp    "./atconfig":C) cat >./atconfig <<ATEOF
8106167465Smp# Configurable variable values for building test suites.
8107167465Smp# Generated by $0.
8108316957Sdchagin# Copyright (C) 2012 Free Software Foundation, Inc.
8109167465Smp
8110167465Smp# The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
8111167465Smpat_testdir='.'
8112167465Smpabs_builddir='$ac_abs_builddir'
8113167465Smpat_srcdir='$ac_srcdir'
8114167465Smpabs_srcdir='$ac_abs_srcdir'
8115167465Smpat_top_srcdir='$ac_top_srcdir'
8116167465Smpabs_top_srcdir='$ac_abs_top_srcdir'
8117195609Smpat_top_build_prefix='$ac_top_build_prefix'
8118167465Smpabs_top_builddir='$ac_abs_top_builddir'
8119167465Smp
8120195609Smp# Backward compatibility with Autotest <= 2.59b:
8121195609Smpat_top_builddir=\$at_top_build_prefix
8122195609Smp
8123167465SmpAUTOTEST_PATH='.'
8124167465Smp
8125167465SmpSHELL=\${CONFIG_SHELL-'$SHELL'}
8126167465SmpATEOF
8127167465Smp ;;
8128195609Smp
8129167465Smp  esac
8130195609Smpdone # for ac_tag
8131167465Smp
813269408Sache
8133231990Smpas_fn_exit 0
8134131962Smp_ACEOF
8135131962Smpac_clean_files=$ac_clean_files_save
813669408Sache
8137231990Smptest $ac_write_fail = 0 ||
8138231990Smp  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8139131962Smp
8140231990Smp
8141131962Smp# configure is writing to config.log, and then calls config.status.
8142131962Smp# config.status does its own redirection, appending to config.log.
8143131962Smp# Unfortunately, on DOS this fails, as config.log is still kept open
8144131962Smp# by configure, so config.status won't be able to write to it; its
8145131962Smp# output is simply discarded.  So we exec the FD to /dev/null,
8146131962Smp# effectively closing config.log, so it can be properly (re)opened and
8147131962Smp# appended to by config.status.  When coming back to configure, we
8148131962Smp# need to make the FD available again.
8149131962Smpif test "$no_create" != yes; then
8150131962Smp  ac_cs_success=:
8151131962Smp  ac_config_status_args=
8152131962Smp  test "$silent" = yes &&
8153131962Smp    ac_config_status_args="$ac_config_status_args --quiet"
8154131962Smp  exec 5>/dev/null
8155131962Smp  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8156131962Smp  exec 5>>config.log
8157131962Smp  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8158131962Smp  # would make configure fail if this is the last instruction.
8159231990Smp  $ac_cs_success || as_fn_exit 1
8160131962Smpfi
8161231990Smpif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8162231990Smp  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8163231990Smp$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8164231990Smpfi
8165131962Smp
8166