configure revision 302408
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for tcsh 6.18.01.
4#
5# Report bugs to <http://bugs.gw.com/>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: http://bugs.gw.com/ about your system, including any
243$0: error possibly output before this message. Then install
244$0: a modern shell, or manually run the script under such a
245$0: shell if you do have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306	 X"$as_dir" : 'X\(//\)[^/]' \| \
307	 X"$as_dir" : 'X\(//\)$' \| \
308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\/\)[^/].*/{
315	    s//\1/
316	    q
317	  }
318	  /^X\(\/\/\)$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\).*/{
323	    s//\1/
324	    q
325	  }
326	  s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$1; test $as_status -eq 0 && as_status=1
378  if test "$4"; then
379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381  fi
382  $as_echo "$as_me: error: $2" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407	 X"$0" : 'X\(//\)$' \| \
408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411	    s//\1/
412	    q
413	  }
414	  /^X\/\(\/\/\)$/{
415	    s//\1/
416	    q
417	  }
418	  /^X\/\(\/\).*/{
419	    s//\1/
420	    q
421	  }
422	  s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T='	';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521	test -d "$1/.";
522      else
523	case $1 in #(
524	-*)set "./$1";;
525	esac;
526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527	???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540test -n "$DJDIR" || exec 7<&0 </dev/null
541exec 6>&1
542
543# Name of the host.
544# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
552ac_clean_files=
553ac_config_libobj_dir=.
554LIBOBJS=
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
559
560# Identity of this package.
561PACKAGE_NAME='tcsh'
562PACKAGE_TARNAME='tcsh'
563PACKAGE_VERSION='6.18.01'
564PACKAGE_STRING='tcsh 6.18.01'
565PACKAGE_BUGREPORT='http://bugs.gw.com/'
566PACKAGE_URL=''
567
568ac_unique_file="tc.vers.c"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='LTLIBOBJS
606LIBOBJS
607BUILD_CATALOGS
608HESLIB
609HESDEF
610DFLAGS
611LTLIBICONV
612LIBICONV
613CC_FOR_GETHOST
614GENCAT
615EGREP
616GREP
617CPP
618OBJEXT
619EXEEXT
620ac_ct_CC
621CPPFLAGS
622LDFLAGS
623CFLAGS
624CC
625host_os
626host_vendor
627host_cpu
628host
629build_os
630build_vendor
631build_cpu
632build
633INSTALL_DATA
634INSTALL_SCRIPT
635INSTALL_PROGRAM
636target_alias
637host_alias
638build_alias
639LIBS
640ECHO_T
641ECHO_N
642ECHO_C
643DEFS
644mandir
645localedir
646libdir
647psdir
648pdfdir
649dvidir
650htmldir
651infodir
652docdir
653oldincludedir
654includedir
655localstatedir
656sharedstatedir
657sysconfdir
658datadir
659datarootdir
660libexecdir
661sbindir
662bindir
663program_transform_name
664prefix
665exec_prefix
666PACKAGE_URL
667PACKAGE_BUGREPORT
668PACKAGE_STRING
669PACKAGE_VERSION
670PACKAGE_TARNAME
671PACKAGE_NAME
672PATH_SEPARATOR
673SHELL'
674ac_subst_files=''
675ac_user_opts='
676enable_option_checking
677with_gnu_ld
678enable_rpath
679with_libiconv_prefix
680enable_nls
681enable_nls_catalogs
682with_hesiod
683'
684      ac_precious_vars='build_alias
685host_alias
686target_alias
687CC
688CFLAGS
689LDFLAGS
690LIBS
691CPPFLAGS
692CPP'
693
694
695# Initialize some variables set by options.
696ac_init_help=
697ac_init_version=false
698ac_unrecognized_opts=
699ac_unrecognized_sep=
700# The variables have the same names as the options, with
701# dashes changed to underlines.
702cache_file=/dev/null
703exec_prefix=NONE
704no_create=
705no_recursion=
706prefix=NONE
707program_prefix=NONE
708program_suffix=NONE
709program_transform_name=s,x,x,
710silent=
711site=
712srcdir=
713verbose=
714x_includes=NONE
715x_libraries=NONE
716
717# Installation directory options.
718# These are left unexpanded so users can "make install exec_prefix=/foo"
719# and all the variables that are supposed to be based on exec_prefix
720# by default will actually change.
721# Use braces instead of parens because sh, perl, etc. also accept them.
722# (The list follows the same order as the GNU Coding Standards.)
723bindir='${exec_prefix}/bin'
724sbindir='${exec_prefix}/sbin'
725libexecdir='${exec_prefix}/libexec'
726datarootdir='${prefix}/share'
727datadir='${datarootdir}'
728sysconfdir='${prefix}/etc'
729sharedstatedir='${prefix}/com'
730localstatedir='${prefix}/var'
731includedir='${prefix}/include'
732oldincludedir='/usr/include'
733docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
734infodir='${datarootdir}/info'
735htmldir='${docdir}'
736dvidir='${docdir}'
737pdfdir='${docdir}'
738psdir='${docdir}'
739libdir='${exec_prefix}/lib'
740localedir='${datarootdir}/locale'
741mandir='${datarootdir}/man'
742
743ac_prev=
744ac_dashdash=
745for ac_option
746do
747  # If the previous option needs an argument, assign it.
748  if test -n "$ac_prev"; then
749    eval $ac_prev=\$ac_option
750    ac_prev=
751    continue
752  fi
753
754  case $ac_option in
755  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
756  *=)   ac_optarg= ;;
757  *)    ac_optarg=yes ;;
758  esac
759
760  # Accept the important Cygnus configure options, so we can diagnose typos.
761
762  case $ac_dashdash$ac_option in
763  --)
764    ac_dashdash=yes ;;
765
766  -bindir | --bindir | --bindi | --bind | --bin | --bi)
767    ac_prev=bindir ;;
768  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
769    bindir=$ac_optarg ;;
770
771  -build | --build | --buil | --bui | --bu)
772    ac_prev=build_alias ;;
773  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
774    build_alias=$ac_optarg ;;
775
776  -cache-file | --cache-file | --cache-fil | --cache-fi \
777  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
778    ac_prev=cache_file ;;
779  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
780  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
781    cache_file=$ac_optarg ;;
782
783  --config-cache | -C)
784    cache_file=config.cache ;;
785
786  -datadir | --datadir | --datadi | --datad)
787    ac_prev=datadir ;;
788  -datadir=* | --datadir=* | --datadi=* | --datad=*)
789    datadir=$ac_optarg ;;
790
791  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
792  | --dataroo | --dataro | --datar)
793    ac_prev=datarootdir ;;
794  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
795  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
796    datarootdir=$ac_optarg ;;
797
798  -disable-* | --disable-*)
799    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
800    # Reject names that are not valid shell variable names.
801    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
802      as_fn_error $? "invalid feature name: $ac_useropt"
803    ac_useropt_orig=$ac_useropt
804    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
805    case $ac_user_opts in
806      *"
807"enable_$ac_useropt"
808"*) ;;
809      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
810	 ac_unrecognized_sep=', ';;
811    esac
812    eval enable_$ac_useropt=no ;;
813
814  -docdir | --docdir | --docdi | --doc | --do)
815    ac_prev=docdir ;;
816  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
817    docdir=$ac_optarg ;;
818
819  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
820    ac_prev=dvidir ;;
821  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
822    dvidir=$ac_optarg ;;
823
824  -enable-* | --enable-*)
825    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
826    # Reject names that are not valid shell variable names.
827    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
828      as_fn_error $? "invalid feature name: $ac_useropt"
829    ac_useropt_orig=$ac_useropt
830    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831    case $ac_user_opts in
832      *"
833"enable_$ac_useropt"
834"*) ;;
835      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
836	 ac_unrecognized_sep=', ';;
837    esac
838    eval enable_$ac_useropt=\$ac_optarg ;;
839
840  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
841  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
842  | --exec | --exe | --ex)
843    ac_prev=exec_prefix ;;
844  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
845  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
846  | --exec=* | --exe=* | --ex=*)
847    exec_prefix=$ac_optarg ;;
848
849  -gas | --gas | --ga | --g)
850    # Obsolete; use --with-gas.
851    with_gas=yes ;;
852
853  -help | --help | --hel | --he | -h)
854    ac_init_help=long ;;
855  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
856    ac_init_help=recursive ;;
857  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
858    ac_init_help=short ;;
859
860  -host | --host | --hos | --ho)
861    ac_prev=host_alias ;;
862  -host=* | --host=* | --hos=* | --ho=*)
863    host_alias=$ac_optarg ;;
864
865  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
866    ac_prev=htmldir ;;
867  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
868  | --ht=*)
869    htmldir=$ac_optarg ;;
870
871  -includedir | --includedir | --includedi | --included | --include \
872  | --includ | --inclu | --incl | --inc)
873    ac_prev=includedir ;;
874  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
875  | --includ=* | --inclu=* | --incl=* | --inc=*)
876    includedir=$ac_optarg ;;
877
878  -infodir | --infodir | --infodi | --infod | --info | --inf)
879    ac_prev=infodir ;;
880  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
881    infodir=$ac_optarg ;;
882
883  -libdir | --libdir | --libdi | --libd)
884    ac_prev=libdir ;;
885  -libdir=* | --libdir=* | --libdi=* | --libd=*)
886    libdir=$ac_optarg ;;
887
888  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
889  | --libexe | --libex | --libe)
890    ac_prev=libexecdir ;;
891  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
892  | --libexe=* | --libex=* | --libe=*)
893    libexecdir=$ac_optarg ;;
894
895  -localedir | --localedir | --localedi | --localed | --locale)
896    ac_prev=localedir ;;
897  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
898    localedir=$ac_optarg ;;
899
900  -localstatedir | --localstatedir | --localstatedi | --localstated \
901  | --localstate | --localstat | --localsta | --localst | --locals)
902    ac_prev=localstatedir ;;
903  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
904  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
905    localstatedir=$ac_optarg ;;
906
907  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
908    ac_prev=mandir ;;
909  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
910    mandir=$ac_optarg ;;
911
912  -nfp | --nfp | --nf)
913    # Obsolete; use --without-fp.
914    with_fp=no ;;
915
916  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
917  | --no-cr | --no-c | -n)
918    no_create=yes ;;
919
920  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
921  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
922    no_recursion=yes ;;
923
924  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
925  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
926  | --oldin | --oldi | --old | --ol | --o)
927    ac_prev=oldincludedir ;;
928  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
929  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
930  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
931    oldincludedir=$ac_optarg ;;
932
933  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
934    ac_prev=prefix ;;
935  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
936    prefix=$ac_optarg ;;
937
938  -program-prefix | --program-prefix | --program-prefi | --program-pref \
939  | --program-pre | --program-pr | --program-p)
940    ac_prev=program_prefix ;;
941  -program-prefix=* | --program-prefix=* | --program-prefi=* \
942  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
943    program_prefix=$ac_optarg ;;
944
945  -program-suffix | --program-suffix | --program-suffi | --program-suff \
946  | --program-suf | --program-su | --program-s)
947    ac_prev=program_suffix ;;
948  -program-suffix=* | --program-suffix=* | --program-suffi=* \
949  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
950    program_suffix=$ac_optarg ;;
951
952  -program-transform-name | --program-transform-name \
953  | --program-transform-nam | --program-transform-na \
954  | --program-transform-n | --program-transform- \
955  | --program-transform | --program-transfor \
956  | --program-transfo | --program-transf \
957  | --program-trans | --program-tran \
958  | --progr-tra | --program-tr | --program-t)
959    ac_prev=program_transform_name ;;
960  -program-transform-name=* | --program-transform-name=* \
961  | --program-transform-nam=* | --program-transform-na=* \
962  | --program-transform-n=* | --program-transform-=* \
963  | --program-transform=* | --program-transfor=* \
964  | --program-transfo=* | --program-transf=* \
965  | --program-trans=* | --program-tran=* \
966  | --progr-tra=* | --program-tr=* | --program-t=*)
967    program_transform_name=$ac_optarg ;;
968
969  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
970    ac_prev=pdfdir ;;
971  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
972    pdfdir=$ac_optarg ;;
973
974  -psdir | --psdir | --psdi | --psd | --ps)
975    ac_prev=psdir ;;
976  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
977    psdir=$ac_optarg ;;
978
979  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
980  | -silent | --silent | --silen | --sile | --sil)
981    silent=yes ;;
982
983  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
984    ac_prev=sbindir ;;
985  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
986  | --sbi=* | --sb=*)
987    sbindir=$ac_optarg ;;
988
989  -sharedstatedir | --sharedstatedir | --sharedstatedi \
990  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
991  | --sharedst | --shareds | --shared | --share | --shar \
992  | --sha | --sh)
993    ac_prev=sharedstatedir ;;
994  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
995  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
996  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
997  | --sha=* | --sh=*)
998    sharedstatedir=$ac_optarg ;;
999
1000  -site | --site | --sit)
1001    ac_prev=site ;;
1002  -site=* | --site=* | --sit=*)
1003    site=$ac_optarg ;;
1004
1005  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1006    ac_prev=srcdir ;;
1007  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1008    srcdir=$ac_optarg ;;
1009
1010  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1011  | --syscon | --sysco | --sysc | --sys | --sy)
1012    ac_prev=sysconfdir ;;
1013  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1014  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1015    sysconfdir=$ac_optarg ;;
1016
1017  -target | --target | --targe | --targ | --tar | --ta | --t)
1018    ac_prev=target_alias ;;
1019  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1020    target_alias=$ac_optarg ;;
1021
1022  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1023    verbose=yes ;;
1024
1025  -version | --version | --versio | --versi | --vers | -V)
1026    ac_init_version=: ;;
1027
1028  -with-* | --with-*)
1029    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1030    # Reject names that are not valid shell variable names.
1031    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032      as_fn_error $? "invalid package name: $ac_useropt"
1033    ac_useropt_orig=$ac_useropt
1034    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035    case $ac_user_opts in
1036      *"
1037"with_$ac_useropt"
1038"*) ;;
1039      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1040	 ac_unrecognized_sep=', ';;
1041    esac
1042    eval with_$ac_useropt=\$ac_optarg ;;
1043
1044  -without-* | --without-*)
1045    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046    # Reject names that are not valid shell variable names.
1047    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048      as_fn_error $? "invalid package name: $ac_useropt"
1049    ac_useropt_orig=$ac_useropt
1050    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051    case $ac_user_opts in
1052      *"
1053"with_$ac_useropt"
1054"*) ;;
1055      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1056	 ac_unrecognized_sep=', ';;
1057    esac
1058    eval with_$ac_useropt=no ;;
1059
1060  --x)
1061    # Obsolete; use --with-x.
1062    with_x=yes ;;
1063
1064  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065  | --x-incl | --x-inc | --x-in | --x-i)
1066    ac_prev=x_includes ;;
1067  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069    x_includes=$ac_optarg ;;
1070
1071  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073    ac_prev=x_libraries ;;
1074  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076    x_libraries=$ac_optarg ;;
1077
1078  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1079Try \`$0 --help' for more information"
1080    ;;
1081
1082  *=*)
1083    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1084    # Reject names that are not valid shell variable names.
1085    case $ac_envvar in #(
1086      '' | [0-9]* | *[!_$as_cr_alnum]* )
1087      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1088    esac
1089    eval $ac_envvar=\$ac_optarg
1090    export $ac_envvar ;;
1091
1092  *)
1093    # FIXME: should be removed in autoconf 3.0.
1094    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1098    ;;
1099
1100  esac
1101done
1102
1103if test -n "$ac_prev"; then
1104  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105  as_fn_error $? "missing argument to $ac_option"
1106fi
1107
1108if test -n "$ac_unrecognized_opts"; then
1109  case $enable_option_checking in
1110    no) ;;
1111    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1112    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1113  esac
1114fi
1115
1116# Check all directory arguments for consistency.
1117for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1118		datadir sysconfdir sharedstatedir localstatedir includedir \
1119		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1120		libdir localedir mandir
1121do
1122  eval ac_val=\$$ac_var
1123  # Remove trailing slashes.
1124  case $ac_val in
1125    */ )
1126      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1127      eval $ac_var=\$ac_val;;
1128  esac
1129  # Be sure to have absolute directory names.
1130  case $ac_val in
1131    [\\/$]* | ?:[\\/]* )  continue;;
1132    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1133  esac
1134  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1135done
1136
1137# There might be people who depend on the old broken behavior: `$host'
1138# used to hold the argument of --host etc.
1139# FIXME: To remove some day.
1140build=$build_alias
1141host=$host_alias
1142target=$target_alias
1143
1144# FIXME: To remove some day.
1145if test "x$host_alias" != x; then
1146  if test "x$build_alias" = x; then
1147    cross_compiling=maybe
1148    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1149    If a cross compiler is detected then cross compile mode will be used" >&2
1150  elif test "x$build_alias" != "x$host_alias"; then
1151    cross_compiling=yes
1152  fi
1153fi
1154
1155ac_tool_prefix=
1156test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157
1158test "$silent" = yes && exec 6>/dev/null
1159
1160
1161ac_pwd=`pwd` && test -n "$ac_pwd" &&
1162ac_ls_di=`ls -di .` &&
1163ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1164  as_fn_error $? "working directory cannot be determined"
1165test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166  as_fn_error $? "pwd does not report name of working directory"
1167
1168
1169# Find the source files, if location was not specified.
1170if test -z "$srcdir"; then
1171  ac_srcdir_defaulted=yes
1172  # Try the directory containing this script, then the parent directory.
1173  ac_confdir=`$as_dirname -- "$as_myself" ||
1174$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175	 X"$as_myself" : 'X\(//\)[^/]' \| \
1176	 X"$as_myself" : 'X\(//\)$' \| \
1177	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1178$as_echo X"$as_myself" |
1179    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180	    s//\1/
1181	    q
1182	  }
1183	  /^X\(\/\/\)[^/].*/{
1184	    s//\1/
1185	    q
1186	  }
1187	  /^X\(\/\/\)$/{
1188	    s//\1/
1189	    q
1190	  }
1191	  /^X\(\/\).*/{
1192	    s//\1/
1193	    q
1194	  }
1195	  s/.*/./; q'`
1196  srcdir=$ac_confdir
1197  if test ! -r "$srcdir/$ac_unique_file"; then
1198    srcdir=..
1199  fi
1200else
1201  ac_srcdir_defaulted=no
1202fi
1203if test ! -r "$srcdir/$ac_unique_file"; then
1204  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1205  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1206fi
1207ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208ac_abs_confdir=`(
1209	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1210	pwd)`
1211# When building in place, set srcdir=.
1212if test "$ac_abs_confdir" = "$ac_pwd"; then
1213  srcdir=.
1214fi
1215# Remove unnecessary trailing slashes from srcdir.
1216# Double slashes in file names in object file debugging info
1217# mess up M-x gdb in Emacs.
1218case $srcdir in
1219*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220esac
1221for ac_var in $ac_precious_vars; do
1222  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1223  eval ac_env_${ac_var}_value=\$${ac_var}
1224  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1225  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1226done
1227
1228#
1229# Report the --help message.
1230#
1231if test "$ac_init_help" = "long"; then
1232  # Omit some internal or obsolete options to make the list less imposing.
1233  # This message is too long to be a string in the A/UX 3.1 sh.
1234  cat <<_ACEOF
1235\`configure' configures tcsh 6.18.01 to adapt to many kinds of systems.
1236
1237Usage: $0 [OPTION]... [VAR=VALUE]...
1238
1239To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240VAR=VALUE.  See below for descriptions of some of the useful variables.
1241
1242Defaults for the options are specified in brackets.
1243
1244Configuration:
1245  -h, --help              display this help and exit
1246      --help=short        display options specific to this package
1247      --help=recursive    display the short help of all the included packages
1248  -V, --version           display version information and exit
1249  -q, --quiet, --silent   do not print \`checking ...' messages
1250      --cache-file=FILE   cache test results in FILE [disabled]
1251  -C, --config-cache      alias for \`--cache-file=config.cache'
1252  -n, --no-create         do not create output files
1253      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1254
1255Installation directories:
1256  --prefix=PREFIX         install architecture-independent files in PREFIX
1257                          [$ac_default_prefix]
1258  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1259                          [PREFIX]
1260
1261By default, \`make install' will install all the files in
1262\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1263an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264for instance \`--prefix=\$HOME'.
1265
1266For better control, use the options below.
1267
1268Fine tuning of the installation directories:
1269  --bindir=DIR            user executables [EPREFIX/bin]
1270  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1271  --libexecdir=DIR        program executables [EPREFIX/libexec]
1272  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1273  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1274  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1275  --libdir=DIR            object code libraries [EPREFIX/lib]
1276  --includedir=DIR        C header files [PREFIX/include]
1277  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1278  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1279  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1280  --infodir=DIR           info documentation [DATAROOTDIR/info]
1281  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1282  --mandir=DIR            man documentation [DATAROOTDIR/man]
1283  --docdir=DIR            documentation root [DATAROOTDIR/doc/tcsh]
1284  --htmldir=DIR           html documentation [DOCDIR]
1285  --dvidir=DIR            dvi documentation [DOCDIR]
1286  --pdfdir=DIR            pdf documentation [DOCDIR]
1287  --psdir=DIR             ps documentation [DOCDIR]
1288_ACEOF
1289
1290  cat <<\_ACEOF
1291
1292System types:
1293  --build=BUILD     configure for building on BUILD [guessed]
1294  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1295_ACEOF
1296fi
1297
1298if test -n "$ac_init_help"; then
1299  case $ac_init_help in
1300     short | recursive ) echo "Configuration of tcsh 6.18.01:";;
1301   esac
1302  cat <<\_ACEOF
1303
1304Optional Features:
1305  --disable-option-checking  ignore unrecognized --enable/--with options
1306  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1307  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1308  --disable-rpath         do not hardcode runtime library paths
1309  --disable-nls           Disable NLS support
1310  --disable-nls-catalogs  Disable NLS catalog support
1311
1312Optional Packages:
1313  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1314  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1315  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1316  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1317  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1318  --with-hesiod=PREFIX    Use Hesiod lookup for ~ expansion
1319
1320Some influential environment variables:
1321  CC          C compiler command
1322  CFLAGS      C compiler flags
1323  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1324              nonstandard directory <lib dir>
1325  LIBS        libraries to pass to the linker, e.g. -l<library>
1326  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1327              you have headers in a nonstandard directory <include dir>
1328  CPP         C preprocessor
1329
1330Use these variables to override the choices made by `configure' or to help
1331it to find libraries and programs with nonstandard names/locations.
1332
1333Report bugs to <http://bugs.gw.com/>.
1334_ACEOF
1335ac_status=$?
1336fi
1337
1338if test "$ac_init_help" = "recursive"; then
1339  # If there are subdirs, report their specific --help.
1340  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1341    test -d "$ac_dir" ||
1342      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1343      continue
1344    ac_builddir=.
1345
1346case "$ac_dir" in
1347.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1348*)
1349  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1350  # A ".." for each directory in $ac_dir_suffix.
1351  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1352  case $ac_top_builddir_sub in
1353  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1354  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1355  esac ;;
1356esac
1357ac_abs_top_builddir=$ac_pwd
1358ac_abs_builddir=$ac_pwd$ac_dir_suffix
1359# for backward compatibility:
1360ac_top_builddir=$ac_top_build_prefix
1361
1362case $srcdir in
1363  .)  # We are building in place.
1364    ac_srcdir=.
1365    ac_top_srcdir=$ac_top_builddir_sub
1366    ac_abs_top_srcdir=$ac_pwd ;;
1367  [\\/]* | ?:[\\/]* )  # Absolute name.
1368    ac_srcdir=$srcdir$ac_dir_suffix;
1369    ac_top_srcdir=$srcdir
1370    ac_abs_top_srcdir=$srcdir ;;
1371  *) # Relative name.
1372    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1373    ac_top_srcdir=$ac_top_build_prefix$srcdir
1374    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1375esac
1376ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1377
1378    cd "$ac_dir" || { ac_status=$?; continue; }
1379    # Check for guested configure.
1380    if test -f "$ac_srcdir/configure.gnu"; then
1381      echo &&
1382      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1383    elif test -f "$ac_srcdir/configure"; then
1384      echo &&
1385      $SHELL "$ac_srcdir/configure" --help=recursive
1386    else
1387      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1388    fi || ac_status=$?
1389    cd "$ac_pwd" || { ac_status=$?; break; }
1390  done
1391fi
1392
1393test -n "$ac_init_help" && exit $ac_status
1394if $ac_init_version; then
1395  cat <<\_ACEOF
1396tcsh configure 6.18.01
1397generated by GNU Autoconf 2.68
1398
1399Copyright (C) 2010 Free Software Foundation, Inc.
1400This configure script is free software; the Free Software Foundation
1401gives unlimited permission to copy, distribute and modify it.
1402_ACEOF
1403  exit
1404fi
1405
1406## ------------------------ ##
1407## Autoconf initialization. ##
1408## ------------------------ ##
1409
1410# ac_fn_c_try_compile LINENO
1411# --------------------------
1412# Try to compile conftest.$ac_ext, and return whether this succeeded.
1413ac_fn_c_try_compile ()
1414{
1415  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1416  rm -f conftest.$ac_objext
1417  if { { ac_try="$ac_compile"
1418case "(($ac_try" in
1419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1420  *) ac_try_echo=$ac_try;;
1421esac
1422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1423$as_echo "$ac_try_echo"; } >&5
1424  (eval "$ac_compile") 2>conftest.err
1425  ac_status=$?
1426  if test -s conftest.err; then
1427    grep -v '^ *+' conftest.err >conftest.er1
1428    cat conftest.er1 >&5
1429    mv -f conftest.er1 conftest.err
1430  fi
1431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1432  test $ac_status = 0; } && {
1433	 test -z "$ac_c_werror_flag" ||
1434	 test ! -s conftest.err
1435       } && test -s conftest.$ac_objext; then :
1436  ac_retval=0
1437else
1438  $as_echo "$as_me: failed program was:" >&5
1439sed 's/^/| /' conftest.$ac_ext >&5
1440
1441	ac_retval=1
1442fi
1443  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1444  as_fn_set_status $ac_retval
1445
1446} # ac_fn_c_try_compile
1447
1448# ac_fn_c_try_cpp LINENO
1449# ----------------------
1450# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1451ac_fn_c_try_cpp ()
1452{
1453  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1454  if { { ac_try="$ac_cpp conftest.$ac_ext"
1455case "(($ac_try" in
1456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1457  *) ac_try_echo=$ac_try;;
1458esac
1459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1460$as_echo "$ac_try_echo"; } >&5
1461  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1462  ac_status=$?
1463  if test -s conftest.err; then
1464    grep -v '^ *+' conftest.err >conftest.er1
1465    cat conftest.er1 >&5
1466    mv -f conftest.er1 conftest.err
1467  fi
1468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1469  test $ac_status = 0; } > conftest.i && {
1470	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1471	 test ! -s conftest.err
1472       }; then :
1473  ac_retval=0
1474else
1475  $as_echo "$as_me: failed program was:" >&5
1476sed 's/^/| /' conftest.$ac_ext >&5
1477
1478    ac_retval=1
1479fi
1480  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1481  as_fn_set_status $ac_retval
1482
1483} # ac_fn_c_try_cpp
1484
1485# ac_fn_c_try_link LINENO
1486# -----------------------
1487# Try to link conftest.$ac_ext, and return whether this succeeded.
1488ac_fn_c_try_link ()
1489{
1490  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491  rm -f conftest.$ac_objext conftest$ac_exeext
1492  if { { ac_try="$ac_link"
1493case "(($ac_try" in
1494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495  *) ac_try_echo=$ac_try;;
1496esac
1497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498$as_echo "$ac_try_echo"; } >&5
1499  (eval "$ac_link") 2>conftest.err
1500  ac_status=$?
1501  if test -s conftest.err; then
1502    grep -v '^ *+' conftest.err >conftest.er1
1503    cat conftest.er1 >&5
1504    mv -f conftest.er1 conftest.err
1505  fi
1506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507  test $ac_status = 0; } && {
1508	 test -z "$ac_c_werror_flag" ||
1509	 test ! -s conftest.err
1510       } && test -s conftest$ac_exeext && {
1511	 test "$cross_compiling" = yes ||
1512	 $as_test_x conftest$ac_exeext
1513       }; then :
1514  ac_retval=0
1515else
1516  $as_echo "$as_me: failed program was:" >&5
1517sed 's/^/| /' conftest.$ac_ext >&5
1518
1519	ac_retval=1
1520fi
1521  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1522  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1523  # interfere with the next link command; also delete a directory that is
1524  # left behind by Apple's compiler.  We do this before executing the actions.
1525  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1526  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1527  as_fn_set_status $ac_retval
1528
1529} # ac_fn_c_try_link
1530
1531# ac_fn_c_try_run LINENO
1532# ----------------------
1533# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1534# that executables *can* be run.
1535ac_fn_c_try_run ()
1536{
1537  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538  if { { ac_try="$ac_link"
1539case "(($ac_try" in
1540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541  *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545  (eval "$ac_link") 2>&5
1546  ac_status=$?
1547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1549  { { case "(($ac_try" in
1550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551  *) ac_try_echo=$ac_try;;
1552esac
1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554$as_echo "$ac_try_echo"; } >&5
1555  (eval "$ac_try") 2>&5
1556  ac_status=$?
1557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558  test $ac_status = 0; }; }; then :
1559  ac_retval=0
1560else
1561  $as_echo "$as_me: program exited with status $ac_status" >&5
1562       $as_echo "$as_me: failed program was:" >&5
1563sed 's/^/| /' conftest.$ac_ext >&5
1564
1565       ac_retval=$ac_status
1566fi
1567  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1568  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569  as_fn_set_status $ac_retval
1570
1571} # ac_fn_c_try_run
1572
1573# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1574# -------------------------------------------------------
1575# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1576# the include files in INCLUDES and setting the cache variable VAR
1577# accordingly.
1578ac_fn_c_check_header_mongrel ()
1579{
1580  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581  if eval \${$3+:} false; then :
1582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583$as_echo_n "checking for $2... " >&6; }
1584if eval \${$3+:} false; then :
1585  $as_echo_n "(cached) " >&6
1586fi
1587eval ac_res=\$$3
1588	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589$as_echo "$ac_res" >&6; }
1590else
1591  # Is the header compilable?
1592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1593$as_echo_n "checking $2 usability... " >&6; }
1594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595/* end confdefs.h.  */
1596$4
1597#include <$2>
1598_ACEOF
1599if ac_fn_c_try_compile "$LINENO"; then :
1600  ac_header_compiler=yes
1601else
1602  ac_header_compiler=no
1603fi
1604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1606$as_echo "$ac_header_compiler" >&6; }
1607
1608# Is the header present?
1609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1610$as_echo_n "checking $2 presence... " >&6; }
1611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612/* end confdefs.h.  */
1613#include <$2>
1614_ACEOF
1615if ac_fn_c_try_cpp "$LINENO"; then :
1616  ac_header_preproc=yes
1617else
1618  ac_header_preproc=no
1619fi
1620rm -f conftest.err conftest.i conftest.$ac_ext
1621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1622$as_echo "$ac_header_preproc" >&6; }
1623
1624# So?  What about this header?
1625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1626  yes:no: )
1627    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1628$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1629    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1630$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1631    ;;
1632  no:yes:* )
1633    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1634$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1635    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1636$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1637    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1638$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1639    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1640$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1641    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1642$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643( $as_echo "## ---------------------------------- ##
1644## Report this to http://bugs.gw.com/ ##
1645## ---------------------------------- ##"
1646     ) | sed "s/^/$as_me: WARNING:     /" >&2
1647    ;;
1648esac
1649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650$as_echo_n "checking for $2... " >&6; }
1651if eval \${$3+:} false; then :
1652  $as_echo_n "(cached) " >&6
1653else
1654  eval "$3=\$ac_header_compiler"
1655fi
1656eval ac_res=\$$3
1657	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658$as_echo "$ac_res" >&6; }
1659fi
1660  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661
1662} # ac_fn_c_check_header_mongrel
1663
1664# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665# -------------------------------------------------------
1666# Tests whether HEADER exists and can be compiled using the include files in
1667# INCLUDES, setting the cache variable VAR accordingly.
1668ac_fn_c_check_header_compile ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672$as_echo_n "checking for $2... " >&6; }
1673if eval \${$3+:} false; then :
1674  $as_echo_n "(cached) " >&6
1675else
1676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h.  */
1678$4
1679#include <$2>
1680_ACEOF
1681if ac_fn_c_try_compile "$LINENO"; then :
1682  eval "$3=yes"
1683else
1684  eval "$3=no"
1685fi
1686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687fi
1688eval ac_res=\$$3
1689	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690$as_echo "$ac_res" >&6; }
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693} # ac_fn_c_check_header_compile
1694
1695# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1696# --------------------------------------------
1697# Tries to find the compile-time value of EXPR in a program that includes
1698# INCLUDES, setting VAR accordingly. Returns whether the value could be
1699# computed
1700ac_fn_c_compute_int ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  if test "$cross_compiling" = yes; then
1704    # Depending upon the size, compute the lo and hi bounds.
1705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h.  */
1707$4
1708int
1709main ()
1710{
1711static int test_array [1 - 2 * !(($2) >= 0)];
1712test_array [0] = 0
1713
1714  ;
1715  return 0;
1716}
1717_ACEOF
1718if ac_fn_c_try_compile "$LINENO"; then :
1719  ac_lo=0 ac_mid=0
1720  while :; do
1721    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722/* end confdefs.h.  */
1723$4
1724int
1725main ()
1726{
1727static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1728test_array [0] = 0
1729
1730  ;
1731  return 0;
1732}
1733_ACEOF
1734if ac_fn_c_try_compile "$LINENO"; then :
1735  ac_hi=$ac_mid; break
1736else
1737  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1738			if test $ac_lo -le $ac_mid; then
1739			  ac_lo= ac_hi=
1740			  break
1741			fi
1742			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1743fi
1744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745  done
1746else
1747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h.  */
1749$4
1750int
1751main ()
1752{
1753static int test_array [1 - 2 * !(($2) < 0)];
1754test_array [0] = 0
1755
1756  ;
1757  return 0;
1758}
1759_ACEOF
1760if ac_fn_c_try_compile "$LINENO"; then :
1761  ac_hi=-1 ac_mid=-1
1762  while :; do
1763    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h.  */
1765$4
1766int
1767main ()
1768{
1769static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1770test_array [0] = 0
1771
1772  ;
1773  return 0;
1774}
1775_ACEOF
1776if ac_fn_c_try_compile "$LINENO"; then :
1777  ac_lo=$ac_mid; break
1778else
1779  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1780			if test $ac_mid -le $ac_hi; then
1781			  ac_lo= ac_hi=
1782			  break
1783			fi
1784			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1785fi
1786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787  done
1788else
1789  ac_lo= ac_hi=
1790fi
1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792fi
1793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794# Binary search between lo and hi bounds.
1795while test "x$ac_lo" != "x$ac_hi"; do
1796  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h.  */
1799$4
1800int
1801main ()
1802{
1803static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1804test_array [0] = 0
1805
1806  ;
1807  return 0;
1808}
1809_ACEOF
1810if ac_fn_c_try_compile "$LINENO"; then :
1811  ac_hi=$ac_mid
1812else
1813  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1814fi
1815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816done
1817case $ac_lo in #((
1818?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1819'') ac_retval=1 ;;
1820esac
1821  else
1822    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h.  */
1824$4
1825static long int longval () { return $2; }
1826static unsigned long int ulongval () { return $2; }
1827#include <stdio.h>
1828#include <stdlib.h>
1829int
1830main ()
1831{
1832
1833  FILE *f = fopen ("conftest.val", "w");
1834  if (! f)
1835    return 1;
1836  if (($2) < 0)
1837    {
1838      long int i = longval ();
1839      if (i != ($2))
1840	return 1;
1841      fprintf (f, "%ld", i);
1842    }
1843  else
1844    {
1845      unsigned long int i = ulongval ();
1846      if (i != ($2))
1847	return 1;
1848      fprintf (f, "%lu", i);
1849    }
1850  /* Do not output a trailing newline, as this causes \r\n confusion
1851     on some platforms.  */
1852  return ferror (f) || fclose (f) != 0;
1853
1854  ;
1855  return 0;
1856}
1857_ACEOF
1858if ac_fn_c_try_run "$LINENO"; then :
1859  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1860else
1861  ac_retval=1
1862fi
1863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1864  conftest.$ac_objext conftest.beam conftest.$ac_ext
1865rm -f conftest.val
1866
1867  fi
1868  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869  as_fn_set_status $ac_retval
1870
1871} # ac_fn_c_compute_int
1872
1873# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1874# -------------------------------------------
1875# Tests whether TYPE exists after having included INCLUDES, setting cache
1876# variable VAR accordingly.
1877ac_fn_c_check_type ()
1878{
1879  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
1882if eval \${$3+:} false; then :
1883  $as_echo_n "(cached) " >&6
1884else
1885  eval "$3=no"
1886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887/* end confdefs.h.  */
1888$4
1889int
1890main ()
1891{
1892if (sizeof ($2))
1893	 return 0;
1894  ;
1895  return 0;
1896}
1897_ACEOF
1898if ac_fn_c_try_compile "$LINENO"; then :
1899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h.  */
1901$4
1902int
1903main ()
1904{
1905if (sizeof (($2)))
1906	    return 0;
1907  ;
1908  return 0;
1909}
1910_ACEOF
1911if ac_fn_c_try_compile "$LINENO"; then :
1912
1913else
1914  eval "$3=yes"
1915fi
1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917fi
1918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919fi
1920eval ac_res=\$$3
1921	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922$as_echo "$ac_res" >&6; }
1923  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924
1925} # ac_fn_c_check_type
1926
1927# ac_fn_c_find_uintX_t LINENO BITS VAR
1928# ------------------------------------
1929# Finds an unsigned integer type with width BITS, setting cache variable VAR
1930# accordingly.
1931ac_fn_c_find_uintX_t ()
1932{
1933  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1935$as_echo_n "checking for uint$2_t... " >&6; }
1936if eval \${$3+:} false; then :
1937  $as_echo_n "(cached) " >&6
1938else
1939  eval "$3=no"
1940     # Order is important - never check a type that is potentially smaller
1941     # than half of the expected target width.
1942     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1943	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1944       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945/* end confdefs.h.  */
1946$ac_includes_default
1947int
1948main ()
1949{
1950static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1951test_array [0] = 0
1952
1953  ;
1954  return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_compile "$LINENO"; then :
1958  case $ac_type in #(
1959  uint$2_t) :
1960    eval "$3=yes" ;; #(
1961  *) :
1962    eval "$3=\$ac_type" ;;
1963esac
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966       if eval test \"x\$"$3"\" = x"no"; then :
1967
1968else
1969  break
1970fi
1971     done
1972fi
1973eval ac_res=\$$3
1974	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975$as_echo "$ac_res" >&6; }
1976  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977
1978} # ac_fn_c_find_uintX_t
1979
1980# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1981# ----------------------------------------------------
1982# Tries to find if the field MEMBER exists in type AGGR, after including
1983# INCLUDES, setting cache variable VAR accordingly.
1984ac_fn_c_check_member ()
1985{
1986  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1988$as_echo_n "checking for $2.$3... " >&6; }
1989if eval \${$4+:} false; then :
1990  $as_echo_n "(cached) " >&6
1991else
1992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993/* end confdefs.h.  */
1994$5
1995int
1996main ()
1997{
1998static $2 ac_aggr;
1999if (ac_aggr.$3)
2000return 0;
2001  ;
2002  return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_compile "$LINENO"; then :
2006  eval "$4=yes"
2007else
2008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h.  */
2010$5
2011int
2012main ()
2013{
2014static $2 ac_aggr;
2015if (sizeof ac_aggr.$3)
2016return 0;
2017  ;
2018  return 0;
2019}
2020_ACEOF
2021if ac_fn_c_try_compile "$LINENO"; then :
2022  eval "$4=yes"
2023else
2024  eval "$4=no"
2025fi
2026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027fi
2028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029fi
2030eval ac_res=\$$4
2031	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032$as_echo "$ac_res" >&6; }
2033  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034
2035} # ac_fn_c_check_member
2036
2037# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2038# ---------------------------------------------
2039# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2040# accordingly.
2041ac_fn_c_check_decl ()
2042{
2043  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044  as_decl_name=`echo $2|sed 's/ *(.*//'`
2045  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2046  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2047$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2048if eval \${$3+:} false; then :
2049  $as_echo_n "(cached) " >&6
2050else
2051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052/* end confdefs.h.  */
2053$4
2054int
2055main ()
2056{
2057#ifndef $as_decl_name
2058#ifdef __cplusplus
2059  (void) $as_decl_use;
2060#else
2061  (void) $as_decl_name;
2062#endif
2063#endif
2064
2065  ;
2066  return 0;
2067}
2068_ACEOF
2069if ac_fn_c_try_compile "$LINENO"; then :
2070  eval "$3=yes"
2071else
2072  eval "$3=no"
2073fi
2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075fi
2076eval ac_res=\$$3
2077	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078$as_echo "$ac_res" >&6; }
2079  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081} # ac_fn_c_check_decl
2082
2083# ac_fn_c_check_func LINENO FUNC VAR
2084# ----------------------------------
2085# Tests whether FUNC exists, setting the cache variable VAR accordingly
2086ac_fn_c_check_func ()
2087{
2088  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090$as_echo_n "checking for $2... " >&6; }
2091if eval \${$3+:} false; then :
2092  $as_echo_n "(cached) " >&6
2093else
2094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h.  */
2096/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2097   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2098#define $2 innocuous_$2
2099
2100/* System header to define __stub macros and hopefully few prototypes,
2101    which can conflict with char $2 (); below.
2102    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2103    <limits.h> exists even on freestanding compilers.  */
2104
2105#ifdef __STDC__
2106# include <limits.h>
2107#else
2108# include <assert.h>
2109#endif
2110
2111#undef $2
2112
2113/* Override any GCC internal prototype to avoid an error.
2114   Use char because int might match the return type of a GCC
2115   builtin and then its argument prototype would still apply.  */
2116#ifdef __cplusplus
2117extern "C"
2118#endif
2119char $2 ();
2120/* The GNU C library defines this for functions which it implements
2121    to always fail with ENOSYS.  Some functions are actually named
2122    something starting with __ and the normal name is an alias.  */
2123#if defined __stub_$2 || defined __stub___$2
2124choke me
2125#endif
2126
2127int
2128main ()
2129{
2130return $2 ();
2131  ;
2132  return 0;
2133}
2134_ACEOF
2135if ac_fn_c_try_link "$LINENO"; then :
2136  eval "$3=yes"
2137else
2138  eval "$3=no"
2139fi
2140rm -f core conftest.err conftest.$ac_objext \
2141    conftest$ac_exeext conftest.$ac_ext
2142fi
2143eval ac_res=\$$3
2144	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145$as_echo "$ac_res" >&6; }
2146  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147
2148} # ac_fn_c_check_func
2149cat >config.log <<_ACEOF
2150This file contains any messages produced by compilers while
2151running configure, to aid debugging if configure makes a mistake.
2152
2153It was created by tcsh $as_me 6.18.01, which was
2154generated by GNU Autoconf 2.68.  Invocation command line was
2155
2156  $ $0 $@
2157
2158_ACEOF
2159exec 5>>config.log
2160{
2161cat <<_ASUNAME
2162## --------- ##
2163## Platform. ##
2164## --------- ##
2165
2166hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2167uname -m = `(uname -m) 2>/dev/null || echo unknown`
2168uname -r = `(uname -r) 2>/dev/null || echo unknown`
2169uname -s = `(uname -s) 2>/dev/null || echo unknown`
2170uname -v = `(uname -v) 2>/dev/null || echo unknown`
2171
2172/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2173/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2174
2175/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2176/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2177/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2178/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2179/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2180/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2181/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2182
2183_ASUNAME
2184
2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186for as_dir in $PATH
2187do
2188  IFS=$as_save_IFS
2189  test -z "$as_dir" && as_dir=.
2190    $as_echo "PATH: $as_dir"
2191  done
2192IFS=$as_save_IFS
2193
2194} >&5
2195
2196cat >&5 <<_ACEOF
2197
2198
2199## ----------- ##
2200## Core tests. ##
2201## ----------- ##
2202
2203_ACEOF
2204
2205
2206# Keep a trace of the command line.
2207# Strip out --no-create and --no-recursion so they do not pile up.
2208# Strip out --silent because we don't want to record it for future runs.
2209# Also quote any args containing shell meta-characters.
2210# Make two passes to allow for proper duplicate-argument suppression.
2211ac_configure_args=
2212ac_configure_args0=
2213ac_configure_args1=
2214ac_must_keep_next=false
2215for ac_pass in 1 2
2216do
2217  for ac_arg
2218  do
2219    case $ac_arg in
2220    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2221    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2222    | -silent | --silent | --silen | --sile | --sil)
2223      continue ;;
2224    *\'*)
2225      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2226    esac
2227    case $ac_pass in
2228    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2229    2)
2230      as_fn_append ac_configure_args1 " '$ac_arg'"
2231      if test $ac_must_keep_next = true; then
2232	ac_must_keep_next=false # Got value, back to normal.
2233      else
2234	case $ac_arg in
2235	  *=* | --config-cache | -C | -disable-* | --disable-* \
2236	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2237	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2238	  | -with-* | --with-* | -without-* | --without-* | --x)
2239	    case "$ac_configure_args0 " in
2240	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2241	    esac
2242	    ;;
2243	  -* ) ac_must_keep_next=true ;;
2244	esac
2245      fi
2246      as_fn_append ac_configure_args " '$ac_arg'"
2247      ;;
2248    esac
2249  done
2250done
2251{ ac_configure_args0=; unset ac_configure_args0;}
2252{ ac_configure_args1=; unset ac_configure_args1;}
2253
2254# When interrupted or exit'd, cleanup temporary files, and complete
2255# config.log.  We remove comments because anyway the quotes in there
2256# would cause problems or look ugly.
2257# WARNING: Use '\'' to represent an apostrophe within the trap.
2258# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2259trap 'exit_status=$?
2260  # Save into config.log some information that might help in debugging.
2261  {
2262    echo
2263
2264    $as_echo "## ---------------- ##
2265## Cache variables. ##
2266## ---------------- ##"
2267    echo
2268    # The following way of writing the cache mishandles newlines in values,
2269(
2270  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2271    eval ac_val=\$$ac_var
2272    case $ac_val in #(
2273    *${as_nl}*)
2274      case $ac_var in #(
2275      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2276$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2277      esac
2278      case $ac_var in #(
2279      _ | IFS | as_nl) ;; #(
2280      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2281      *) { eval $ac_var=; unset $ac_var;} ;;
2282      esac ;;
2283    esac
2284  done
2285  (set) 2>&1 |
2286    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2287    *${as_nl}ac_space=\ *)
2288      sed -n \
2289	"s/'\''/'\''\\\\'\'''\''/g;
2290	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2291      ;; #(
2292    *)
2293      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2294      ;;
2295    esac |
2296    sort
2297)
2298    echo
2299
2300    $as_echo "## ----------------- ##
2301## Output variables. ##
2302## ----------------- ##"
2303    echo
2304    for ac_var in $ac_subst_vars
2305    do
2306      eval ac_val=\$$ac_var
2307      case $ac_val in
2308      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2309      esac
2310      $as_echo "$ac_var='\''$ac_val'\''"
2311    done | sort
2312    echo
2313
2314    if test -n "$ac_subst_files"; then
2315      $as_echo "## ------------------- ##
2316## File substitutions. ##
2317## ------------------- ##"
2318      echo
2319      for ac_var in $ac_subst_files
2320      do
2321	eval ac_val=\$$ac_var
2322	case $ac_val in
2323	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2324	esac
2325	$as_echo "$ac_var='\''$ac_val'\''"
2326      done | sort
2327      echo
2328    fi
2329
2330    if test -s confdefs.h; then
2331      $as_echo "## ----------- ##
2332## confdefs.h. ##
2333## ----------- ##"
2334      echo
2335      cat confdefs.h
2336      echo
2337    fi
2338    test "$ac_signal" != 0 &&
2339      $as_echo "$as_me: caught signal $ac_signal"
2340    $as_echo "$as_me: exit $exit_status"
2341  } >&5
2342  rm -f core *.core core.conftest.* &&
2343    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2344    exit $exit_status
2345' 0
2346for ac_signal in 1 2 13 15; do
2347  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2348done
2349ac_signal=0
2350
2351# confdefs.h avoids OS command line length limits that DEFS can exceed.
2352rm -f -r conftest* confdefs.h
2353
2354$as_echo "/* confdefs.h */" > confdefs.h
2355
2356# Predefined preprocessor variables.
2357
2358cat >>confdefs.h <<_ACEOF
2359#define PACKAGE_NAME "$PACKAGE_NAME"
2360_ACEOF
2361
2362cat >>confdefs.h <<_ACEOF
2363#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2364_ACEOF
2365
2366cat >>confdefs.h <<_ACEOF
2367#define PACKAGE_VERSION "$PACKAGE_VERSION"
2368_ACEOF
2369
2370cat >>confdefs.h <<_ACEOF
2371#define PACKAGE_STRING "$PACKAGE_STRING"
2372_ACEOF
2373
2374cat >>confdefs.h <<_ACEOF
2375#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2376_ACEOF
2377
2378cat >>confdefs.h <<_ACEOF
2379#define PACKAGE_URL "$PACKAGE_URL"
2380_ACEOF
2381
2382
2383# Let the site file select an alternate cache file if it wants to.
2384# Prefer an explicitly selected file to automatically selected ones.
2385ac_site_file1=NONE
2386ac_site_file2=NONE
2387if test -n "$CONFIG_SITE"; then
2388  # We do not want a PATH search for config.site.
2389  case $CONFIG_SITE in #((
2390    -*)  ac_site_file1=./$CONFIG_SITE;;
2391    */*) ac_site_file1=$CONFIG_SITE;;
2392    *)   ac_site_file1=./$CONFIG_SITE;;
2393  esac
2394elif test "x$prefix" != xNONE; then
2395  ac_site_file1=$prefix/share/config.site
2396  ac_site_file2=$prefix/etc/config.site
2397else
2398  ac_site_file1=$ac_default_prefix/share/config.site
2399  ac_site_file2=$ac_default_prefix/etc/config.site
2400fi
2401for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2402do
2403  test "x$ac_site_file" = xNONE && continue
2404  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2405    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2406$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2407    sed 's/^/| /' "$ac_site_file" >&5
2408    . "$ac_site_file" \
2409      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411as_fn_error $? "failed to load site script $ac_site_file
2412See \`config.log' for more details" "$LINENO" 5; }
2413  fi
2414done
2415
2416if test -r "$cache_file"; then
2417  # Some versions of bash will fail to source /dev/null (special files
2418  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2419  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2420    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2421$as_echo "$as_me: loading cache $cache_file" >&6;}
2422    case $cache_file in
2423      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2424      *)                      . "./$cache_file";;
2425    esac
2426  fi
2427else
2428  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2429$as_echo "$as_me: creating cache $cache_file" >&6;}
2430  >$cache_file
2431fi
2432
2433# Check that the precious variables saved in the cache have kept the same
2434# value.
2435ac_cache_corrupted=false
2436for ac_var in $ac_precious_vars; do
2437  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2438  eval ac_new_set=\$ac_env_${ac_var}_set
2439  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2440  eval ac_new_val=\$ac_env_${ac_var}_value
2441  case $ac_old_set,$ac_new_set in
2442    set,)
2443      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2444$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2445      ac_cache_corrupted=: ;;
2446    ,set)
2447      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2448$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2449      ac_cache_corrupted=: ;;
2450    ,);;
2451    *)
2452      if test "x$ac_old_val" != "x$ac_new_val"; then
2453	# differences in whitespace do not lead to failure.
2454	ac_old_val_w=`echo x $ac_old_val`
2455	ac_new_val_w=`echo x $ac_new_val`
2456	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2457	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2458$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2459	  ac_cache_corrupted=:
2460	else
2461	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2462$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2463	  eval $ac_var=\$ac_old_val
2464	fi
2465	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2466$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2467	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2468$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2469      fi;;
2470  esac
2471  # Pass precious variables to config.status.
2472  if test "$ac_new_set" = set; then
2473    case $ac_new_val in
2474    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2475    *) ac_arg=$ac_var=$ac_new_val ;;
2476    esac
2477    case " $ac_configure_args " in
2478      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2479      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2480    esac
2481  fi
2482done
2483if $ac_cache_corrupted; then
2484  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2486  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2487$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2488  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2489fi
2490## -------------------- ##
2491## Main body of script. ##
2492## -------------------- ##
2493
2494ac_ext=c
2495ac_cpp='$CPP $CPPFLAGS'
2496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498ac_compiler_gnu=$ac_cv_c_compiler_gnu
2499
2500
2501
2502
2503ac_config_headers="$ac_config_headers config.h"
2504
2505ac_config_commands="$ac_config_commands ./atconfig"
2506
2507
2508ac_aux_dir=
2509for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2510  if test -f "$ac_dir/install-sh"; then
2511    ac_aux_dir=$ac_dir
2512    ac_install_sh="$ac_aux_dir/install-sh -c"
2513    break
2514  elif test -f "$ac_dir/install.sh"; then
2515    ac_aux_dir=$ac_dir
2516    ac_install_sh="$ac_aux_dir/install.sh -c"
2517    break
2518  elif test -f "$ac_dir/shtool"; then
2519    ac_aux_dir=$ac_dir
2520    ac_install_sh="$ac_aux_dir/shtool install -c"
2521    break
2522  fi
2523done
2524if test -z "$ac_aux_dir"; then
2525  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2526fi
2527
2528# These three variables are undocumented and unsupported,
2529# and are intended to be withdrawn in a future Autoconf release.
2530# They can cause serious problems if a builder's source tree is in a directory
2531# whose full name contains unusual characters.
2532ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2533ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2534ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2535
2536
2537# Find a good install program.  We prefer a C program (faster),
2538# so one script is as good as another.  But avoid the broken or
2539# incompatible versions:
2540# SysV /etc/install, /usr/sbin/install
2541# SunOS /usr/etc/install
2542# IRIX /sbin/install
2543# AIX /bin/install
2544# AmigaOS /C/install, which installs bootblocks on floppy discs
2545# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2546# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2547# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2548# OS/2's system install, which has a completely different semantic
2549# ./install, which can be erroneously created by make from ./install.sh.
2550# Reject install programs that cannot install multiple files.
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2552$as_echo_n "checking for a BSD-compatible install... " >&6; }
2553if test -z "$INSTALL"; then
2554if ${ac_cv_path_install+:} false; then :
2555  $as_echo_n "(cached) " >&6
2556else
2557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560  IFS=$as_save_IFS
2561  test -z "$as_dir" && as_dir=.
2562    # Account for people who put trailing slashes in PATH elements.
2563case $as_dir/ in #((
2564  ./ | .// | /[cC]/* | \
2565  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2566  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2567  /usr/ucb/* ) ;;
2568  *)
2569    # OSF1 and SCO ODT 3.0 have their own names for install.
2570    # Don't use installbsd from OSF since it installs stuff as root
2571    # by default.
2572    for ac_prog in ginstall scoinst install; do
2573      for ac_exec_ext in '' $ac_executable_extensions; do
2574	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2575	  if test $ac_prog = install &&
2576	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2577	    # AIX install.  It has an incompatible calling convention.
2578	    :
2579	  elif test $ac_prog = install &&
2580	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2581	    # program-specific install script used by HP pwplus--don't use.
2582	    :
2583	  else
2584	    rm -rf conftest.one conftest.two conftest.dir
2585	    echo one > conftest.one
2586	    echo two > conftest.two
2587	    mkdir conftest.dir
2588	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2589	      test -s conftest.one && test -s conftest.two &&
2590	      test -s conftest.dir/conftest.one &&
2591	      test -s conftest.dir/conftest.two
2592	    then
2593	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2594	      break 3
2595	    fi
2596	  fi
2597	fi
2598      done
2599    done
2600    ;;
2601esac
2602
2603  done
2604IFS=$as_save_IFS
2605
2606rm -rf conftest.one conftest.two conftest.dir
2607
2608fi
2609  if test "${ac_cv_path_install+set}" = set; then
2610    INSTALL=$ac_cv_path_install
2611  else
2612    # As a last resort, use the slow shell script.  Don't cache a
2613    # value for INSTALL within a source directory, because that will
2614    # break other packages using the cache if that directory is
2615    # removed, or if the value is a relative name.
2616    INSTALL=$ac_install_sh
2617  fi
2618fi
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2620$as_echo "$INSTALL" >&6; }
2621
2622# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2623# It thinks the first close brace ends the variable substitution.
2624test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2625
2626test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2627
2628test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2629
2630# Make sure we can run config.sub.
2631$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2632  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2633
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2635$as_echo_n "checking build system type... " >&6; }
2636if ${ac_cv_build+:} false; then :
2637  $as_echo_n "(cached) " >&6
2638else
2639  ac_build_alias=$build_alias
2640test "x$ac_build_alias" = x &&
2641  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2642test "x$ac_build_alias" = x &&
2643  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2644ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2645  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2646
2647fi
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2649$as_echo "$ac_cv_build" >&6; }
2650case $ac_cv_build in
2651*-*-*) ;;
2652*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2653esac
2654build=$ac_cv_build
2655ac_save_IFS=$IFS; IFS='-'
2656set x $ac_cv_build
2657shift
2658build_cpu=$1
2659build_vendor=$2
2660shift; shift
2661# Remember, the first character of IFS is used to create $*,
2662# except with old shells:
2663build_os=$*
2664IFS=$ac_save_IFS
2665case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2666
2667
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2669$as_echo_n "checking host system type... " >&6; }
2670if ${ac_cv_host+:} false; then :
2671  $as_echo_n "(cached) " >&6
2672else
2673  if test "x$host_alias" = x; then
2674  ac_cv_host=$ac_cv_build
2675else
2676  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2677    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2678fi
2679
2680fi
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2682$as_echo "$ac_cv_host" >&6; }
2683case $ac_cv_host in
2684*-*-*) ;;
2685*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2686esac
2687host=$ac_cv_host
2688ac_save_IFS=$IFS; IFS='-'
2689set x $ac_cv_host
2690shift
2691host_cpu=$1
2692host_vendor=$2
2693shift; shift
2694# Remember, the first character of IFS is used to create $*,
2695# except with old shells:
2696host_os=$*
2697IFS=$ac_save_IFS
2698case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2699
2700
2701
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking cached host tuple" >&5
2703$as_echo_n "checking cached host tuple... " >&6; }
2704if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2705     test x"$ac_cv_host_system_type" != x"$host"; }; then
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: different" >&5
2707$as_echo "different" >&6; }
2708  as_fn_error $? "remove config.cache and re-run configure" "$LINENO" 5
2709else
2710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2711$as_echo "ok" >&6; }
2712fi
2713ac_cv_host_system_type="$host"
2714
2715
2716
2717case "${host}" in
2718
2719  ## Alpha (DEC) machines.
2720  alpha*-dec-osf* )
2721    tcsh_config_file=decosf1
2722  ;;
2723
2724  ## Ultrix
2725  *-dec-ultrix* )
2726    tcsh_config_file=ultrix
2727  ;;
2728
2729  ## DGUX
2730  *-dg-dguxR4* )
2731    tcsh_config_file=dgux5.4
2732  ;;
2733  m88k-dg-dgux5.4R* )
2734    tcsh_config_file=dgux5.4
2735  ;;
2736
2737  ## HP/UX
2738  *-hp-hpux7* )
2739    tcsh_config_file=hpux7
2740  ;;
2741  *-hp-hpux[89]* )
2742    tcsh_config_file=hpux8
2743  ;;
2744  *-hp-hpux1[0-9]* )
2745    tcsh_config_file=hpux11
2746  ;;
2747
2748  ## IBM AIX systems
2749  *-ibm-aix*)
2750    tcsh_config_file=aix
2751  ;;
2752
2753  ## SX-4
2754  sx4-nec-*)
2755    CC='cc -h0,ansi,novector,float0'
2756    LDFLAGS='-Gsmall'
2757    tcsh_config_file=superux8
2758  ;;
2759
2760  ## IBM OS/390 systems
2761  *-ibm-os390*)
2762    CC='c89'
2763    tcsh_config_file=os390
2764  ;;
2765
2766  ## Android
2767  *-*-android*)
2768    tcsh_config_file=android
2769  ;;
2770
2771  ## Linux
2772  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2773    tcsh_config_file=linux
2774  ;;
2775
2776  ## Motorola systems
2777  m68k-motorola-sysv* )
2778    tcsh_config_file=sysV68
2779  ;;
2780  m88k-motorola-sysv3* )
2781    tcsh_config_file=sysV88
2782  ;;
2783
2784  ## NetBSD systems
2785  *-*-netbsd*)
2786    tcsh_config_file=bsd4.4
2787  ;;
2788
2789  ## FreeBSD systems
2790  *-*-freebsd*)
2791    tcsh_config_file=bsd4.4
2792  ;;
2793
2794  ## MidnightBSD systems
2795  *-*-midnightbsd*)
2796    tcsh_config_file=bsd4.4
2797  ;;
2798
2799  ## DragonFlyBSD systems
2800  *-*-dragonfly*)
2801    tcsh_config_file=bsd4.4
2802  ;;
2803
2804  ## OpenBSD systems
2805  *-*-openbsd*)
2806    tcsh_config_file=bsd4.4
2807  ;;
2808
2809  ## BSDI systems
2810  *-*-bsdi*)
2811    tcsh_config_file=bsd4.4
2812  ;;
2813
2814  ## Mac OS X Server
2815  *-*-rhapsody* )
2816    tcsh_config_file=bsd4.4
2817  ;;
2818
2819  ## Mac OS X Server
2820  *-*-darwin* )
2821    tcsh_config_file=bsd4.4
2822  ;;
2823
2824  ## DragonFly systems
2825  *-*-dragonfly*)
2826    tcsh_config_file=bsd4.4
2827  ;;
2828
2829  ## Silicon Graphics machines
2830  *-sgi-iri* )
2831    tcsh_config_file=irix
2832    case "${host_os}" in
2833      irix[34]*) # Irix-3.x - Irix 4.x
2834        NON_GNU_DFLAGS='-D__STDC__'
2835        LIBS='-lsun -lbsd -lc_s'
2836      ;;
2837      irix5* | irix6.[01]*) # Irix 5.x, Irix 6.0 - 6.1
2838        LIBS='-lbsd'
2839      ;;
2840      irix6.[2-9]*) # Irix 6.2 and later
2841	tcsh_config_file=irix62
2842      ;;
2843    esac
2844  ;;
2845
2846  ## Suns
2847  *-sun-sunos3* )
2848    tcsh_config_file=sunos35
2849  ;;
2850  *-sun-sunos4.0* )
2851    tcsh_config_file=sunos40
2852  ;;
2853  *-sun-sunos4.1.[12]* )
2854    tcsh_config_file=sunos41
2855  ;;
2856  *-sun-sunos4.1.[3456]* )
2857    tcsh_config_file=sunos413
2858  ;;
2859  *-*-solaris2.[01] ) # Should handle sparc or x86
2860    tcsh_config_file=sol2
2861  ;;
2862  *-sun-solaris2.2 ) # Sparc only release
2863    tcsh_config_file=sol22
2864  ;;
2865  *-sun-solaris2.3 ) # Sparc only release
2866    tcsh_config_file=sol23
2867  ;;
2868  *-*-solaris2.[45] ) # Should handle sparc, x86 and powerpc
2869    tcsh_config_file=sol24
2870  ;;
2871  *-*-solaris2.[678] ) # Should handle sparc, x86 and powerpc
2872    tcsh_config_file=sol26
2873  ;;
2874  *-*-solaris2.* ) # Should handle sparc, x86 and powerpc
2875    tcsh_config_file=sol29
2876  ;;
2877
2878  ## Dell SVR4
2879  *-dell-sysv4* )
2880    tcsh_config_file=sysv4
2881    DFLAGS="$DFLAGS -DDELL"
2882  ;;
2883
2884  ## SVR4 (Generic and otherwise)
2885  *-*-sysv4* )
2886    tcsh_config_file=sysv4
2887  ;;
2888
2889  ## Tektronix systems
2890  m68k-tektronix-bsd* )
2891    tcsh_config_file=bsd
2892    NON_GNU_DFLAGS='-DBSD -DUTek'
2893  ;;
2894  m88k-tektronix-sysv3* )
2895    tcsh_config_file=tekXD88
2896  ;;
2897
2898  ## SCO
2899  *-sco3.2v5*)
2900    tcsh_config_file=sco32v5
2901  ;;
2902  *-sco3.2v4*)
2903    tcsh_config_file=sco32v4
2904  ;;
2905  *-sco3.2v2*)
2906    tcsh_config_file=sco32v2
2907  ;;
2908
2909  ## Siemens BS2000 Mainframe
2910  bs2000-siemens-*)
2911    tcsh_config_file=bs2000
2912  ;;
2913
2914  ## Convex
2915  *-convex*)
2916    tcsh_config_file=convex
2917  ;;
2918
2919  ## Cray
2920  *-cray-unicos*)
2921    tcsh_config_file=cray
2922  ;;
2923
2924  ## Red Hat Cygwin
2925  *-cygwin)
2926    tcsh_config_file=cygwin
2927  ;;
2928
2929  ## mips-compaq-nonstopux
2930  *-*-nonstopux)
2931    tcsh_config_file=sysv4
2932  ;;
2933
2934  ## Apollo Domain/OS
2935  *-apollo-*)
2936    tcsh_config_file=apollo
2937  ;;
2938
2939  ## QNX6
2940  *-qnx6*)
2941    tcsh_config_file=qnx6
2942  ;;
2943
2944  * )
2945    as_fn_error $? "Tcsh can't guess the configuration file name
2946for \`${host}' systems.
2947Check tcsh's \`Ported' file for manual configuration instructions." "$LINENO" 5
2948    ;;
2949
2950esac
2951
2952echo "Tcsh will use configuration file \`$tcsh_config_file'."
2953cp ${srcdir}/config/${tcsh_config_file} config_p.h
2954
2955
2956ac_ext=c
2957ac_cpp='$CPP $CPPFLAGS'
2958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961if test -n "$ac_tool_prefix"; then
2962  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2963set dummy ${ac_tool_prefix}gcc; ac_word=$2
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965$as_echo_n "checking for $ac_word... " >&6; }
2966if ${ac_cv_prog_CC+:} false; then :
2967  $as_echo_n "(cached) " >&6
2968else
2969  if test -n "$CC"; then
2970  ac_cv_prog_CC="$CC" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  test -z "$as_dir" && as_dir=.
2977    for ac_exec_ext in '' $ac_executable_extensions; do
2978  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981    break 2
2982  fi
2983done
2984  done
2985IFS=$as_save_IFS
2986
2987fi
2988fi
2989CC=$ac_cv_prog_CC
2990if test -n "$CC"; then
2991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992$as_echo "$CC" >&6; }
2993else
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996fi
2997
2998
2999fi
3000if test -z "$ac_cv_prog_CC"; then
3001  ac_ct_CC=$CC
3002  # Extract the first word of "gcc", so it can be a program name with args.
3003set dummy gcc; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; }
3006if ${ac_cv_prog_ac_ct_CC+:} false; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  if test -n "$ac_ct_CC"; then
3010  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011else
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015  IFS=$as_save_IFS
3016  test -z "$as_dir" && as_dir=.
3017    for ac_exec_ext in '' $ac_executable_extensions; do
3018  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019    ac_cv_prog_ac_ct_CC="gcc"
3020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021    break 2
3022  fi
3023done
3024  done
3025IFS=$as_save_IFS
3026
3027fi
3028fi
3029ac_ct_CC=$ac_cv_prog_ac_ct_CC
3030if test -n "$ac_ct_CC"; then
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032$as_echo "$ac_ct_CC" >&6; }
3033else
3034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035$as_echo "no" >&6; }
3036fi
3037
3038  if test "x$ac_ct_CC" = x; then
3039    CC=""
3040  else
3041    case $cross_compiling:$ac_tool_warned in
3042yes:)
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045ac_tool_warned=yes ;;
3046esac
3047    CC=$ac_ct_CC
3048  fi
3049else
3050  CC="$ac_cv_prog_CC"
3051fi
3052
3053if test -z "$CC"; then
3054          if test -n "$ac_tool_prefix"; then
3055    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3056set dummy ${ac_tool_prefix}cc; ac_word=$2
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058$as_echo_n "checking for $ac_word... " >&6; }
3059if ${ac_cv_prog_CC+:} false; then :
3060  $as_echo_n "(cached) " >&6
3061else
3062  if test -n "$CC"; then
3063  ac_cv_prog_CC="$CC" # Let the user override the test.
3064else
3065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH
3067do
3068  IFS=$as_save_IFS
3069  test -z "$as_dir" && as_dir=.
3070    for ac_exec_ext in '' $ac_executable_extensions; do
3071  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072    ac_cv_prog_CC="${ac_tool_prefix}cc"
3073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074    break 2
3075  fi
3076done
3077  done
3078IFS=$as_save_IFS
3079
3080fi
3081fi
3082CC=$ac_cv_prog_CC
3083if test -n "$CC"; then
3084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085$as_echo "$CC" >&6; }
3086else
3087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088$as_echo "no" >&6; }
3089fi
3090
3091
3092  fi
3093fi
3094if test -z "$CC"; then
3095  # Extract the first word of "cc", so it can be a program name with args.
3096set dummy cc; ac_word=$2
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098$as_echo_n "checking for $ac_word... " >&6; }
3099if ${ac_cv_prog_CC+:} false; then :
3100  $as_echo_n "(cached) " >&6
3101else
3102  if test -n "$CC"; then
3103  ac_cv_prog_CC="$CC" # Let the user override the test.
3104else
3105  ac_prog_rejected=no
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109  IFS=$as_save_IFS
3110  test -z "$as_dir" && as_dir=.
3111    for ac_exec_ext in '' $ac_executable_extensions; do
3112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3114       ac_prog_rejected=yes
3115       continue
3116     fi
3117    ac_cv_prog_CC="cc"
3118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119    break 2
3120  fi
3121done
3122  done
3123IFS=$as_save_IFS
3124
3125if test $ac_prog_rejected = yes; then
3126  # We found a bogon in the path, so make sure we never use it.
3127  set dummy $ac_cv_prog_CC
3128  shift
3129  if test $# != 0; then
3130    # We chose a different compiler from the bogus one.
3131    # However, it has the same basename, so the bogon will be chosen
3132    # first if we set CC to just the basename; use the full file name.
3133    shift
3134    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3135  fi
3136fi
3137fi
3138fi
3139CC=$ac_cv_prog_CC
3140if test -n "$CC"; then
3141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142$as_echo "$CC" >&6; }
3143else
3144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145$as_echo "no" >&6; }
3146fi
3147
3148
3149fi
3150if test -z "$CC"; then
3151  if test -n "$ac_tool_prefix"; then
3152  for ac_prog in cl.exe
3153  do
3154    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3155set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157$as_echo_n "checking for $ac_word... " >&6; }
3158if ${ac_cv_prog_CC+:} false; then :
3159  $as_echo_n "(cached) " >&6
3160else
3161  if test -n "$CC"; then
3162  ac_cv_prog_CC="$CC" # Let the user override the test.
3163else
3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167  IFS=$as_save_IFS
3168  test -z "$as_dir" && as_dir=.
3169    for ac_exec_ext in '' $ac_executable_extensions; do
3170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173    break 2
3174  fi
3175done
3176  done
3177IFS=$as_save_IFS
3178
3179fi
3180fi
3181CC=$ac_cv_prog_CC
3182if test -n "$CC"; then
3183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184$as_echo "$CC" >&6; }
3185else
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187$as_echo "no" >&6; }
3188fi
3189
3190
3191    test -n "$CC" && break
3192  done
3193fi
3194if test -z "$CC"; then
3195  ac_ct_CC=$CC
3196  for ac_prog in cl.exe
3197do
3198  # Extract the first word of "$ac_prog", so it can be a program name with args.
3199set dummy $ac_prog; ac_word=$2
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201$as_echo_n "checking for $ac_word... " >&6; }
3202if ${ac_cv_prog_ac_ct_CC+:} false; then :
3203  $as_echo_n "(cached) " >&6
3204else
3205  if test -n "$ac_ct_CC"; then
3206  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3207else
3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209for as_dir in $PATH
3210do
3211  IFS=$as_save_IFS
3212  test -z "$as_dir" && as_dir=.
3213    for ac_exec_ext in '' $ac_executable_extensions; do
3214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215    ac_cv_prog_ac_ct_CC="$ac_prog"
3216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217    break 2
3218  fi
3219done
3220  done
3221IFS=$as_save_IFS
3222
3223fi
3224fi
3225ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226if test -n "$ac_ct_CC"; then
3227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228$as_echo "$ac_ct_CC" >&6; }
3229else
3230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231$as_echo "no" >&6; }
3232fi
3233
3234
3235  test -n "$ac_ct_CC" && break
3236done
3237
3238  if test "x$ac_ct_CC" = x; then
3239    CC=""
3240  else
3241    case $cross_compiling:$ac_tool_warned in
3242yes:)
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245ac_tool_warned=yes ;;
3246esac
3247    CC=$ac_ct_CC
3248  fi
3249fi
3250
3251fi
3252
3253
3254test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256as_fn_error $? "no acceptable C compiler found in \$PATH
3257See \`config.log' for more details" "$LINENO" 5; }
3258
3259# Provide some information about the compiler.
3260$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3261set X $ac_compile
3262ac_compiler=$2
3263for ac_option in --version -v -V -qversion; do
3264  { { ac_try="$ac_compiler $ac_option >&5"
3265case "(($ac_try" in
3266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267  *) ac_try_echo=$ac_try;;
3268esac
3269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270$as_echo "$ac_try_echo"; } >&5
3271  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3272  ac_status=$?
3273  if test -s conftest.err; then
3274    sed '10a\
3275... rest of stderr output deleted ...
3276         10q' conftest.err >conftest.er1
3277    cat conftest.er1 >&5
3278  fi
3279  rm -f conftest.er1 conftest.err
3280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281  test $ac_status = 0; }
3282done
3283
3284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285/* end confdefs.h.  */
3286
3287int
3288main ()
3289{
3290
3291  ;
3292  return 0;
3293}
3294_ACEOF
3295ac_clean_files_save=$ac_clean_files
3296ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3297# Try to create an executable without -o first, disregard a.out.
3298# It will help us diagnose broken compilers, and finding out an intuition
3299# of exeext.
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3301$as_echo_n "checking whether the C compiler works... " >&6; }
3302ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3303
3304# The possible output files:
3305ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3306
3307ac_rmfiles=
3308for ac_file in $ac_files
3309do
3310  case $ac_file in
3311    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3313  esac
3314done
3315rm -f $ac_rmfiles
3316
3317if { { ac_try="$ac_link_default"
3318case "(($ac_try" in
3319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320  *) ac_try_echo=$ac_try;;
3321esac
3322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323$as_echo "$ac_try_echo"; } >&5
3324  (eval "$ac_link_default") 2>&5
3325  ac_status=$?
3326  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327  test $ac_status = 0; }; then :
3328  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3329# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3330# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3331# so that the user can short-circuit this test for compilers unknown to
3332# Autoconf.
3333for ac_file in $ac_files ''
3334do
3335  test -f "$ac_file" || continue
3336  case $ac_file in
3337    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3338	;;
3339    [ab].out )
3340	# We found the default executable, but exeext='' is most
3341	# certainly right.
3342	break;;
3343    *.* )
3344	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3345	then :; else
3346	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347	fi
3348	# We set ac_cv_exeext here because the later test for it is not
3349	# safe: cross compilers may not add the suffix if given an `-o'
3350	# argument, so we may need to know it at that point already.
3351	# Even if this section looks crufty: it has the advantage of
3352	# actually working.
3353	break;;
3354    * )
3355	break;;
3356  esac
3357done
3358test "$ac_cv_exeext" = no && ac_cv_exeext=
3359
3360else
3361  ac_file=''
3362fi
3363if test -z "$ac_file"; then :
3364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365$as_echo "no" >&6; }
3366$as_echo "$as_me: failed program was:" >&5
3367sed 's/^/| /' conftest.$ac_ext >&5
3368
3369{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371as_fn_error 77 "C compiler cannot create executables
3372See \`config.log' for more details" "$LINENO" 5; }
3373else
3374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3375$as_echo "yes" >&6; }
3376fi
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3378$as_echo_n "checking for C compiler default output file name... " >&6; }
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3380$as_echo "$ac_file" >&6; }
3381ac_exeext=$ac_cv_exeext
3382
3383rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3384ac_clean_files=$ac_clean_files_save
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3386$as_echo_n "checking for suffix of executables... " >&6; }
3387if { { ac_try="$ac_link"
3388case "(($ac_try" in
3389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390  *) ac_try_echo=$ac_try;;
3391esac
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5
3394  (eval "$ac_link") 2>&5
3395  ac_status=$?
3396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397  test $ac_status = 0; }; then :
3398  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3399# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3400# work properly (i.e., refer to `conftest.exe'), while it won't with
3401# `rm'.
3402for ac_file in conftest.exe conftest conftest.*; do
3403  test -f "$ac_file" || continue
3404  case $ac_file in
3405    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407	  break;;
3408    * ) break;;
3409  esac
3410done
3411else
3412  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3415See \`config.log' for more details" "$LINENO" 5; }
3416fi
3417rm -f conftest conftest$ac_cv_exeext
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3419$as_echo "$ac_cv_exeext" >&6; }
3420
3421rm -f conftest.$ac_ext
3422EXEEXT=$ac_cv_exeext
3423ac_exeext=$EXEEXT
3424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425/* end confdefs.h.  */
3426#include <stdio.h>
3427int
3428main ()
3429{
3430FILE *f = fopen ("conftest.out", "w");
3431 return ferror (f) || fclose (f) != 0;
3432
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437ac_clean_files="$ac_clean_files conftest.out"
3438# Check that the compiler produces executables we can run.  If not, either
3439# the compiler is broken, or we cross compile.
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3441$as_echo_n "checking whether we are cross compiling... " >&6; }
3442if test "$cross_compiling" != yes; then
3443  { { ac_try="$ac_link"
3444case "(($ac_try" in
3445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446  *) ac_try_echo=$ac_try;;
3447esac
3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449$as_echo "$ac_try_echo"; } >&5
3450  (eval "$ac_link") 2>&5
3451  ac_status=$?
3452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453  test $ac_status = 0; }
3454  if { ac_try='./conftest$ac_cv_exeext'
3455  { { case "(($ac_try" in
3456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457  *) ac_try_echo=$ac_try;;
3458esac
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
3461  (eval "$ac_try") 2>&5
3462  ac_status=$?
3463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464  test $ac_status = 0; }; }; then
3465    cross_compiling=no
3466  else
3467    if test "$cross_compiling" = maybe; then
3468	cross_compiling=yes
3469    else
3470	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472as_fn_error $? "cannot run C compiled programs.
3473If you meant to cross compile, use \`--host'.
3474See \`config.log' for more details" "$LINENO" 5; }
3475    fi
3476  fi
3477fi
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3479$as_echo "$cross_compiling" >&6; }
3480
3481rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3482ac_clean_files=$ac_clean_files_save
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3484$as_echo_n "checking for suffix of object files... " >&6; }
3485if ${ac_cv_objext+:} false; then :
3486  $as_echo_n "(cached) " >&6
3487else
3488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489/* end confdefs.h.  */
3490
3491int
3492main ()
3493{
3494
3495  ;
3496  return 0;
3497}
3498_ACEOF
3499rm -f conftest.o conftest.obj
3500if { { ac_try="$ac_compile"
3501case "(($ac_try" in
3502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503  *) ac_try_echo=$ac_try;;
3504esac
3505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506$as_echo "$ac_try_echo"; } >&5
3507  (eval "$ac_compile") 2>&5
3508  ac_status=$?
3509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510  test $ac_status = 0; }; then :
3511  for ac_file in conftest.o conftest.obj conftest.*; do
3512  test -f "$ac_file" || continue;
3513  case $ac_file in
3514    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3515    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3516       break;;
3517  esac
3518done
3519else
3520  $as_echo "$as_me: failed program was:" >&5
3521sed 's/^/| /' conftest.$ac_ext >&5
3522
3523{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525as_fn_error $? "cannot compute suffix of object files: cannot compile
3526See \`config.log' for more details" "$LINENO" 5; }
3527fi
3528rm -f conftest.$ac_cv_objext conftest.$ac_ext
3529fi
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3531$as_echo "$ac_cv_objext" >&6; }
3532OBJEXT=$ac_cv_objext
3533ac_objext=$OBJEXT
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3535$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3536if ${ac_cv_c_compiler_gnu+:} false; then :
3537  $as_echo_n "(cached) " >&6
3538else
3539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h.  */
3541
3542int
3543main ()
3544{
3545#ifndef __GNUC__
3546       choke me
3547#endif
3548
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553if ac_fn_c_try_compile "$LINENO"; then :
3554  ac_compiler_gnu=yes
3555else
3556  ac_compiler_gnu=no
3557fi
3558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559ac_cv_c_compiler_gnu=$ac_compiler_gnu
3560
3561fi
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3563$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3564if test $ac_compiler_gnu = yes; then
3565  GCC=yes
3566else
3567  GCC=
3568fi
3569ac_test_CFLAGS=${CFLAGS+set}
3570ac_save_CFLAGS=$CFLAGS
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3572$as_echo_n "checking whether $CC accepts -g... " >&6; }
3573if ${ac_cv_prog_cc_g+:} false; then :
3574  $as_echo_n "(cached) " >&6
3575else
3576  ac_save_c_werror_flag=$ac_c_werror_flag
3577   ac_c_werror_flag=yes
3578   ac_cv_prog_cc_g=no
3579   CFLAGS="-g"
3580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h.  */
3582
3583int
3584main ()
3585{
3586
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591if ac_fn_c_try_compile "$LINENO"; then :
3592  ac_cv_prog_cc_g=yes
3593else
3594  CFLAGS=""
3595      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596/* end confdefs.h.  */
3597
3598int
3599main ()
3600{
3601
3602  ;
3603  return 0;
3604}
3605_ACEOF
3606if ac_fn_c_try_compile "$LINENO"; then :
3607
3608else
3609  ac_c_werror_flag=$ac_save_c_werror_flag
3610	 CFLAGS="-g"
3611	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h.  */
3613
3614int
3615main ()
3616{
3617
3618  ;
3619  return 0;
3620}
3621_ACEOF
3622if ac_fn_c_try_compile "$LINENO"; then :
3623  ac_cv_prog_cc_g=yes
3624fi
3625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626fi
3627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628fi
3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630   ac_c_werror_flag=$ac_save_c_werror_flag
3631fi
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3633$as_echo "$ac_cv_prog_cc_g" >&6; }
3634if test "$ac_test_CFLAGS" = set; then
3635  CFLAGS=$ac_save_CFLAGS
3636elif test $ac_cv_prog_cc_g = yes; then
3637  if test "$GCC" = yes; then
3638    CFLAGS="-g -O2"
3639  else
3640    CFLAGS="-g"
3641  fi
3642else
3643  if test "$GCC" = yes; then
3644    CFLAGS="-O2"
3645  else
3646    CFLAGS=
3647  fi
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3650$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3651if ${ac_cv_prog_cc_c89+:} false; then :
3652  $as_echo_n "(cached) " >&6
3653else
3654  ac_cv_prog_cc_c89=no
3655ac_save_CC=$CC
3656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657/* end confdefs.h.  */
3658#include <stdarg.h>
3659#include <stdio.h>
3660#include <sys/types.h>
3661#include <sys/stat.h>
3662/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3663struct buf { int x; };
3664FILE * (*rcsopen) (struct buf *, struct stat *, int);
3665static char *e (p, i)
3666     char **p;
3667     int i;
3668{
3669  return p[i];
3670}
3671static char *f (char * (*g) (char **, int), char **p, ...)
3672{
3673  char *s;
3674  va_list v;
3675  va_start (v,p);
3676  s = g (p, va_arg (v,int));
3677  va_end (v);
3678  return s;
3679}
3680
3681/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3682   function prototypes and stuff, but not '\xHH' hex character constants.
3683   These don't provoke an error unfortunately, instead are silently treated
3684   as 'x'.  The following induces an error, until -std is added to get
3685   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3686   array size at least.  It's necessary to write '\x00'==0 to get something
3687   that's true only with -std.  */
3688int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3689
3690/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3691   inside strings and character constants.  */
3692#define FOO(x) 'x'
3693int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3694
3695int test (int i, double x);
3696struct s1 {int (*f) (int a);};
3697struct s2 {int (*f) (double a);};
3698int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3699int argc;
3700char **argv;
3701int
3702main ()
3703{
3704return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3710	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711do
3712  CC="$ac_save_CC $ac_arg"
3713  if ac_fn_c_try_compile "$LINENO"; then :
3714  ac_cv_prog_cc_c89=$ac_arg
3715fi
3716rm -f core conftest.err conftest.$ac_objext
3717  test "x$ac_cv_prog_cc_c89" != "xno" && break
3718done
3719rm -f conftest.$ac_ext
3720CC=$ac_save_CC
3721
3722fi
3723# AC_CACHE_VAL
3724case "x$ac_cv_prog_cc_c89" in
3725  x)
3726    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3727$as_echo "none needed" >&6; } ;;
3728  xno)
3729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3730$as_echo "unsupported" >&6; } ;;
3731  *)
3732    CC="$CC $ac_cv_prog_cc_c89"
3733    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3734$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3735esac
3736if test "x$ac_cv_prog_cc_c89" != xno; then :
3737
3738fi
3739
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746ac_ext=c
3747ac_cpp='$CPP $CPPFLAGS'
3748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3752$as_echo_n "checking how to run the C preprocessor... " >&6; }
3753# On Suns, sometimes $CPP names a directory.
3754if test -n "$CPP" && test -d "$CPP"; then
3755  CPP=
3756fi
3757if test -z "$CPP"; then
3758  if ${ac_cv_prog_CPP+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761      # Double quotes because CPP needs to be expanded
3762    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3763    do
3764      ac_preproc_ok=false
3765for ac_c_preproc_warn_flag in '' yes
3766do
3767  # Use a header file that comes with gcc, so configuring glibc
3768  # with a fresh cross-compiler works.
3769  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770  # <limits.h> exists even on freestanding compilers.
3771  # On the NeXT, cc -E runs the code through the compiler's parser,
3772  # not just through cpp. "Syntax error" is here to catch this case.
3773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774/* end confdefs.h.  */
3775#ifdef __STDC__
3776# include <limits.h>
3777#else
3778# include <assert.h>
3779#endif
3780		     Syntax error
3781_ACEOF
3782if ac_fn_c_try_cpp "$LINENO"; then :
3783
3784else
3785  # Broken: fails on valid input.
3786continue
3787fi
3788rm -f conftest.err conftest.i conftest.$ac_ext
3789
3790  # OK, works on sane cases.  Now check whether nonexistent headers
3791  # can be detected and how.
3792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793/* end confdefs.h.  */
3794#include <ac_nonexistent.h>
3795_ACEOF
3796if ac_fn_c_try_cpp "$LINENO"; then :
3797  # Broken: success on invalid input.
3798continue
3799else
3800  # Passes both tests.
3801ac_preproc_ok=:
3802break
3803fi
3804rm -f conftest.err conftest.i conftest.$ac_ext
3805
3806done
3807# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3808rm -f conftest.i conftest.err conftest.$ac_ext
3809if $ac_preproc_ok; then :
3810  break
3811fi
3812
3813    done
3814    ac_cv_prog_CPP=$CPP
3815
3816fi
3817  CPP=$ac_cv_prog_CPP
3818else
3819  ac_cv_prog_CPP=$CPP
3820fi
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3822$as_echo "$CPP" >&6; }
3823ac_preproc_ok=false
3824for ac_c_preproc_warn_flag in '' yes
3825do
3826  # Use a header file that comes with gcc, so configuring glibc
3827  # with a fresh cross-compiler works.
3828  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829  # <limits.h> exists even on freestanding compilers.
3830  # On the NeXT, cc -E runs the code through the compiler's parser,
3831  # not just through cpp. "Syntax error" is here to catch this case.
3832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h.  */
3834#ifdef __STDC__
3835# include <limits.h>
3836#else
3837# include <assert.h>
3838#endif
3839		     Syntax error
3840_ACEOF
3841if ac_fn_c_try_cpp "$LINENO"; then :
3842
3843else
3844  # Broken: fails on valid input.
3845continue
3846fi
3847rm -f conftest.err conftest.i conftest.$ac_ext
3848
3849  # OK, works on sane cases.  Now check whether nonexistent headers
3850  # can be detected and how.
3851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852/* end confdefs.h.  */
3853#include <ac_nonexistent.h>
3854_ACEOF
3855if ac_fn_c_try_cpp "$LINENO"; then :
3856  # Broken: success on invalid input.
3857continue
3858else
3859  # Passes both tests.
3860ac_preproc_ok=:
3861break
3862fi
3863rm -f conftest.err conftest.i conftest.$ac_ext
3864
3865done
3866# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867rm -f conftest.i conftest.err conftest.$ac_ext
3868if $ac_preproc_ok; then :
3869
3870else
3871  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3874See \`config.log' for more details" "$LINENO" 5; }
3875fi
3876
3877ac_ext=c
3878ac_cpp='$CPP $CPPFLAGS'
3879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882
3883
3884
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3886$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3887if ${ac_cv_path_GREP+:} false; then :
3888  $as_echo_n "(cached) " >&6
3889else
3890  if test -z "$GREP"; then
3891  ac_path_GREP_found=false
3892  # Loop through the user's path and test for each of PROGNAME-LIST
3893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3895do
3896  IFS=$as_save_IFS
3897  test -z "$as_dir" && as_dir=.
3898    for ac_prog in grep ggrep; do
3899    for ac_exec_ext in '' $ac_executable_extensions; do
3900      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3901      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3902# Check for GNU ac_path_GREP and select it if it is found.
3903  # Check for GNU $ac_path_GREP
3904case `"$ac_path_GREP" --version 2>&1` in
3905*GNU*)
3906  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3907*)
3908  ac_count=0
3909  $as_echo_n 0123456789 >"conftest.in"
3910  while :
3911  do
3912    cat "conftest.in" "conftest.in" >"conftest.tmp"
3913    mv "conftest.tmp" "conftest.in"
3914    cp "conftest.in" "conftest.nl"
3915    $as_echo 'GREP' >> "conftest.nl"
3916    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3917    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3918    as_fn_arith $ac_count + 1 && ac_count=$as_val
3919    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3920      # Best one so far, save it but keep looking for a better one
3921      ac_cv_path_GREP="$ac_path_GREP"
3922      ac_path_GREP_max=$ac_count
3923    fi
3924    # 10*(2^10) chars as input seems more than enough
3925    test $ac_count -gt 10 && break
3926  done
3927  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3928esac
3929
3930      $ac_path_GREP_found && break 3
3931    done
3932  done
3933  done
3934IFS=$as_save_IFS
3935  if test -z "$ac_cv_path_GREP"; then
3936    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3937  fi
3938else
3939  ac_cv_path_GREP=$GREP
3940fi
3941
3942fi
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3944$as_echo "$ac_cv_path_GREP" >&6; }
3945 GREP="$ac_cv_path_GREP"
3946
3947
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3949$as_echo_n "checking for egrep... " >&6; }
3950if ${ac_cv_path_EGREP+:} false; then :
3951  $as_echo_n "(cached) " >&6
3952else
3953  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3954   then ac_cv_path_EGREP="$GREP -E"
3955   else
3956     if test -z "$EGREP"; then
3957  ac_path_EGREP_found=false
3958  # Loop through the user's path and test for each of PROGNAME-LIST
3959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961do
3962  IFS=$as_save_IFS
3963  test -z "$as_dir" && as_dir=.
3964    for ac_prog in egrep; do
3965    for ac_exec_ext in '' $ac_executable_extensions; do
3966      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3967      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3968# Check for GNU ac_path_EGREP and select it if it is found.
3969  # Check for GNU $ac_path_EGREP
3970case `"$ac_path_EGREP" --version 2>&1` in
3971*GNU*)
3972  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3973*)
3974  ac_count=0
3975  $as_echo_n 0123456789 >"conftest.in"
3976  while :
3977  do
3978    cat "conftest.in" "conftest.in" >"conftest.tmp"
3979    mv "conftest.tmp" "conftest.in"
3980    cp "conftest.in" "conftest.nl"
3981    $as_echo 'EGREP' >> "conftest.nl"
3982    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984    as_fn_arith $ac_count + 1 && ac_count=$as_val
3985    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3986      # Best one so far, save it but keep looking for a better one
3987      ac_cv_path_EGREP="$ac_path_EGREP"
3988      ac_path_EGREP_max=$ac_count
3989    fi
3990    # 10*(2^10) chars as input seems more than enough
3991    test $ac_count -gt 10 && break
3992  done
3993  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994esac
3995
3996      $ac_path_EGREP_found && break 3
3997    done
3998  done
3999  done
4000IFS=$as_save_IFS
4001  if test -z "$ac_cv_path_EGREP"; then
4002    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4003  fi
4004else
4005  ac_cv_path_EGREP=$EGREP
4006fi
4007
4008   fi
4009fi
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4011$as_echo "$ac_cv_path_EGREP" >&6; }
4012 EGREP="$ac_cv_path_EGREP"
4013
4014
4015if test $ac_cv_c_compiler_gnu = yes; then
4016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4017$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4018if ${ac_cv_prog_gcc_traditional+:} false; then :
4019  $as_echo_n "(cached) " >&6
4020else
4021    ac_pattern="Autoconf.*'x'"
4022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023/* end confdefs.h.  */
4024#include <sgtty.h>
4025Autoconf TIOCGETP
4026_ACEOF
4027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4028  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4029  ac_cv_prog_gcc_traditional=yes
4030else
4031  ac_cv_prog_gcc_traditional=no
4032fi
4033rm -f conftest*
4034
4035
4036  if test $ac_cv_prog_gcc_traditional = no; then
4037    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h.  */
4039#include <termio.h>
4040Autoconf TCGETA
4041_ACEOF
4042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4043  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4044  ac_cv_prog_gcc_traditional=yes
4045fi
4046rm -f conftest*
4047
4048  fi
4049fi
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4051$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4052  if test $ac_cv_prog_gcc_traditional = yes; then
4053    CC="$CC -traditional"
4054  fi
4055fi
4056
4057
4058# Extract the first word of "gencat", so it can be a program name with args.
4059set dummy gencat; ac_word=$2
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061$as_echo_n "checking for $ac_word... " >&6; }
4062if ${ac_cv_path_GENCAT+:} false; then :
4063  $as_echo_n "(cached) " >&6
4064else
4065  case $GENCAT in
4066  [\\/]* | ?:[\\/]*)
4067  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
4068  ;;
4069  *)
4070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071for as_dir in $PATH
4072do
4073  IFS=$as_save_IFS
4074  test -z "$as_dir" && as_dir=.
4075    for ac_exec_ext in '' $ac_executable_extensions; do
4076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4077    ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext"
4078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079    break 2
4080  fi
4081done
4082  done
4083IFS=$as_save_IFS
4084
4085  ;;
4086esac
4087fi
4088GENCAT=$ac_cv_path_GENCAT
4089if test -n "$GENCAT"; then
4090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCAT" >&5
4091$as_echo "$GENCAT" >&6; }
4092else
4093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094$as_echo "no" >&6; }
4095fi
4096
4097
4098
4099if test "x${cross_compiling}" = xyes ; then
4100  CC_FOR_GETHOST="cc"
4101else
4102  CC_FOR_GETHOST="\$(CC)"
4103fi
4104
4105
4106if test "x$GCC" != xyes ; then
4107  DFLAGS="$DFLAGS $NON_GNU_DFLAGS"
4108  CFLAGS="$CFLAGS $NON_GNU_CFLAGS"
4109fi
4110
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4112$as_echo_n "checking for library containing crypt... " >&6; }
4113if ${ac_cv_search_crypt+:} false; then :
4114  $as_echo_n "(cached) " >&6
4115else
4116  ac_func_search_save_LIBS=$LIBS
4117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h.  */
4119
4120/* Override any GCC internal prototype to avoid an error.
4121   Use char because int might match the return type of a GCC
4122   builtin and then its argument prototype would still apply.  */
4123#ifdef __cplusplus
4124extern "C"
4125#endif
4126char crypt ();
4127int
4128main ()
4129{
4130return crypt ();
4131  ;
4132  return 0;
4133}
4134_ACEOF
4135for ac_lib in '' crypt; do
4136  if test -z "$ac_lib"; then
4137    ac_res="none required"
4138  else
4139    ac_res=-l$ac_lib
4140    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4141  fi
4142  if ac_fn_c_try_link "$LINENO"; then :
4143  ac_cv_search_crypt=$ac_res
4144fi
4145rm -f core conftest.err conftest.$ac_objext \
4146    conftest$ac_exeext
4147  if ${ac_cv_search_crypt+:} false; then :
4148  break
4149fi
4150done
4151if ${ac_cv_search_crypt+:} false; then :
4152
4153else
4154  ac_cv_search_crypt=no
4155fi
4156rm conftest.$ac_ext
4157LIBS=$ac_func_search_save_LIBS
4158fi
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4160$as_echo "$ac_cv_search_crypt" >&6; }
4161ac_res=$ac_cv_search_crypt
4162if test "$ac_res" != no; then :
4163  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4164
4165fi
4166
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
4168$as_echo_n "checking for library containing getspnam... " >&6; }
4169if ${ac_cv_search_getspnam+:} false; then :
4170  $as_echo_n "(cached) " >&6
4171else
4172  ac_func_search_save_LIBS=$LIBS
4173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h.  */
4175
4176/* Override any GCC internal prototype to avoid an error.
4177   Use char because int might match the return type of a GCC
4178   builtin and then its argument prototype would still apply.  */
4179#ifdef __cplusplus
4180extern "C"
4181#endif
4182char getspnam ();
4183int
4184main ()
4185{
4186return getspnam ();
4187  ;
4188  return 0;
4189}
4190_ACEOF
4191for ac_lib in '' sec; do
4192  if test -z "$ac_lib"; then
4193    ac_res="none required"
4194  else
4195    ac_res=-l$ac_lib
4196    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4197  fi
4198  if ac_fn_c_try_link "$LINENO"; then :
4199  ac_cv_search_getspnam=$ac_res
4200fi
4201rm -f core conftest.err conftest.$ac_objext \
4202    conftest$ac_exeext
4203  if ${ac_cv_search_getspnam+:} false; then :
4204  break
4205fi
4206done
4207if ${ac_cv_search_getspnam+:} false; then :
4208
4209else
4210  ac_cv_search_getspnam=no
4211fi
4212rm conftest.$ac_ext
4213LIBS=$ac_func_search_save_LIBS
4214fi
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
4216$as_echo "$ac_cv_search_getspnam" >&6; }
4217ac_res=$ac_cv_search_getspnam
4218if test "$ac_res" != no; then :
4219  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4220
4221fi
4222
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
4224$as_echo_n "checking for library containing tgetent... " >&6; }
4225if ${ac_cv_search_tgetent+:} false; then :
4226  $as_echo_n "(cached) " >&6
4227else
4228  ac_func_search_save_LIBS=$LIBS
4229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h.  */
4231
4232/* Override any GCC internal prototype to avoid an error.
4233   Use char because int might match the return type of a GCC
4234   builtin and then its argument prototype would still apply.  */
4235#ifdef __cplusplus
4236extern "C"
4237#endif
4238char tgetent ();
4239int
4240main ()
4241{
4242return tgetent ();
4243  ;
4244  return 0;
4245}
4246_ACEOF
4247for ac_lib in '' termlib termcap curses ncurses; do
4248  if test -z "$ac_lib"; then
4249    ac_res="none required"
4250  else
4251    ac_res=-l$ac_lib
4252    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4253  fi
4254  if ac_fn_c_try_link "$LINENO"; then :
4255  ac_cv_search_tgetent=$ac_res
4256fi
4257rm -f core conftest.err conftest.$ac_objext \
4258    conftest$ac_exeext
4259  if ${ac_cv_search_tgetent+:} false; then :
4260  break
4261fi
4262done
4263if ${ac_cv_search_tgetent+:} false; then :
4264
4265else
4266  ac_cv_search_tgetent=no
4267fi
4268rm conftest.$ac_ext
4269LIBS=$ac_func_search_save_LIBS
4270fi
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
4272$as_echo "$ac_cv_search_tgetent" >&6; }
4273ac_res=$ac_cv_search_tgetent
4274if test "$ac_res" != no; then :
4275  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4276
4277fi
4278
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4280$as_echo_n "checking for library containing gethostbyname... " >&6; }
4281if ${ac_cv_search_gethostbyname+:} false; then :
4282  $as_echo_n "(cached) " >&6
4283else
4284  ac_func_search_save_LIBS=$LIBS
4285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286/* end confdefs.h.  */
4287
4288/* Override any GCC internal prototype to avoid an error.
4289   Use char because int might match the return type of a GCC
4290   builtin and then its argument prototype would still apply.  */
4291#ifdef __cplusplus
4292extern "C"
4293#endif
4294char gethostbyname ();
4295int
4296main ()
4297{
4298return gethostbyname ();
4299  ;
4300  return 0;
4301}
4302_ACEOF
4303for ac_lib in '' nsl; do
4304  if test -z "$ac_lib"; then
4305    ac_res="none required"
4306  else
4307    ac_res=-l$ac_lib
4308    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4309  fi
4310  if ac_fn_c_try_link "$LINENO"; then :
4311  ac_cv_search_gethostbyname=$ac_res
4312fi
4313rm -f core conftest.err conftest.$ac_objext \
4314    conftest$ac_exeext
4315  if ${ac_cv_search_gethostbyname+:} false; then :
4316  break
4317fi
4318done
4319if ${ac_cv_search_gethostbyname+:} false; then :
4320
4321else
4322  ac_cv_search_gethostbyname=no
4323fi
4324rm conftest.$ac_ext
4325LIBS=$ac_func_search_save_LIBS
4326fi
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4328$as_echo "$ac_cv_search_gethostbyname" >&6; }
4329ac_res=$ac_cv_search_gethostbyname
4330if test "$ac_res" != no; then :
4331  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4332
4333fi
4334
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
4336$as_echo_n "checking for library containing connect... " >&6; }
4337if ${ac_cv_search_connect+:} false; then :
4338  $as_echo_n "(cached) " >&6
4339else
4340  ac_func_search_save_LIBS=$LIBS
4341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342/* end confdefs.h.  */
4343
4344/* Override any GCC internal prototype to avoid an error.
4345   Use char because int might match the return type of a GCC
4346   builtin and then its argument prototype would still apply.  */
4347#ifdef __cplusplus
4348extern "C"
4349#endif
4350char connect ();
4351int
4352main ()
4353{
4354return connect ();
4355  ;
4356  return 0;
4357}
4358_ACEOF
4359for ac_lib in '' socket; do
4360  if test -z "$ac_lib"; then
4361    ac_res="none required"
4362  else
4363    ac_res=-l$ac_lib
4364    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4365  fi
4366  if ac_fn_c_try_link "$LINENO"; then :
4367  ac_cv_search_connect=$ac_res
4368fi
4369rm -f core conftest.err conftest.$ac_objext \
4370    conftest$ac_exeext
4371  if ${ac_cv_search_connect+:} false; then :
4372  break
4373fi
4374done
4375if ${ac_cv_search_connect+:} false; then :
4376
4377else
4378  ac_cv_search_connect=no
4379fi
4380rm conftest.$ac_ext
4381LIBS=$ac_func_search_save_LIBS
4382fi
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
4384$as_echo "$ac_cv_search_connect" >&6; }
4385ac_res=$ac_cv_search_connect
4386if test "$ac_res" != no; then :
4387  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4388
4389fi
4390
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing catgets" >&5
4392$as_echo_n "checking for library containing catgets... " >&6; }
4393if ${ac_cv_search_catgets+:} false; then :
4394  $as_echo_n "(cached) " >&6
4395else
4396  ac_func_search_save_LIBS=$LIBS
4397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h.  */
4399
4400/* Override any GCC internal prototype to avoid an error.
4401   Use char because int might match the return type of a GCC
4402   builtin and then its argument prototype would still apply.  */
4403#ifdef __cplusplus
4404extern "C"
4405#endif
4406char catgets ();
4407int
4408main ()
4409{
4410return catgets ();
4411  ;
4412  return 0;
4413}
4414_ACEOF
4415for ac_lib in '' catgets; do
4416  if test -z "$ac_lib"; then
4417    ac_res="none required"
4418  else
4419    ac_res=-l$ac_lib
4420    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4421  fi
4422  if ac_fn_c_try_link "$LINENO"; then :
4423  ac_cv_search_catgets=$ac_res
4424fi
4425rm -f core conftest.err conftest.$ac_objext \
4426    conftest$ac_exeext
4427  if ${ac_cv_search_catgets+:} false; then :
4428  break
4429fi
4430done
4431if ${ac_cv_search_catgets+:} false; then :
4432
4433else
4434  ac_cv_search_catgets=no
4435fi
4436rm conftest.$ac_ext
4437LIBS=$ac_func_search_save_LIBS
4438fi
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_catgets" >&5
4440$as_echo "$ac_cv_search_catgets" >&6; }
4441ac_res=$ac_cv_search_catgets
4442if test "$ac_res" != no; then :
4443  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4444
4445fi
4446
4447
4448      if test "X$prefix" = "XNONE"; then
4449    acl_final_prefix="$ac_default_prefix"
4450  else
4451    acl_final_prefix="$prefix"
4452  fi
4453  if test "X$exec_prefix" = "XNONE"; then
4454    acl_final_exec_prefix='${prefix}'
4455  else
4456    acl_final_exec_prefix="$exec_prefix"
4457  fi
4458  acl_save_prefix="$prefix"
4459  prefix="$acl_final_prefix"
4460  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4461  prefix="$acl_save_prefix"
4462
4463
4464# Check whether --with-gnu-ld was given.
4465if test "${with_gnu_ld+set}" = set; then :
4466  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4467else
4468  with_gnu_ld=no
4469fi
4470
4471# Prepare PATH_SEPARATOR.
4472# The user is always right.
4473if test "${PATH_SEPARATOR+set}" != set; then
4474  echo "#! /bin/sh" >conf$$.sh
4475  echo  "exit 0"   >>conf$$.sh
4476  chmod +x conf$$.sh
4477  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4478    PATH_SEPARATOR=';'
4479  else
4480    PATH_SEPARATOR=:
4481  fi
4482  rm -f conf$$.sh
4483fi
4484ac_prog=ld
4485if test "$GCC" = yes; then
4486  # Check if gcc -print-prog-name=ld gives a path.
4487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4488$as_echo_n "checking for ld used by GCC... " >&6; }
4489  case $host in
4490  *-*-mingw*)
4491    # gcc leaves a trailing carriage return which upsets mingw
4492    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4493  *)
4494    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4495  esac
4496  case $ac_prog in
4497    # Accept absolute paths.
4498    [\\/]* | [A-Za-z]:[\\/]*)
4499      re_direlt='/[^/][^/]*/\.\./'
4500      # Canonicalize the path of ld
4501      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4502      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4503        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4504      done
4505      test -z "$LD" && LD="$ac_prog"
4506      ;;
4507  "")
4508    # If it fails, then pretend we aren't using GCC.
4509    ac_prog=ld
4510    ;;
4511  *)
4512    # If it is relative, then search for the first ld in PATH.
4513    with_gnu_ld=unknown
4514    ;;
4515  esac
4516elif test "$with_gnu_ld" = yes; then
4517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4518$as_echo_n "checking for GNU ld... " >&6; }
4519else
4520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4521$as_echo_n "checking for non-GNU ld... " >&6; }
4522fi
4523if ${acl_cv_path_LD+:} false; then :
4524  $as_echo_n "(cached) " >&6
4525else
4526  if test -z "$LD"; then
4527  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4528  for ac_dir in $PATH; do
4529    test -z "$ac_dir" && ac_dir=.
4530    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4531      acl_cv_path_LD="$ac_dir/$ac_prog"
4532      # Check to see if the program is GNU ld.  I'd rather use --version,
4533      # but apparently some GNU ld's only accept -v.
4534      # Break only if it was the GNU/non-GNU ld that we prefer.
4535      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4536      *GNU* | *'with BFD'*)
4537        test "$with_gnu_ld" != no && break ;;
4538      *)
4539        test "$with_gnu_ld" != yes && break ;;
4540      esac
4541    fi
4542  done
4543  IFS="$ac_save_ifs"
4544else
4545  acl_cv_path_LD="$LD" # Let the user override the test with a path.
4546fi
4547fi
4548
4549LD="$acl_cv_path_LD"
4550if test -n "$LD"; then
4551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4552$as_echo "$LD" >&6; }
4553else
4554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555$as_echo "no" >&6; }
4556fi
4557test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4559$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4560if ${acl_cv_prog_gnu_ld+:} false; then :
4561  $as_echo_n "(cached) " >&6
4562else
4563  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4564case `$LD -v 2>&1 </dev/null` in
4565*GNU* | *'with BFD'*)
4566  acl_cv_prog_gnu_ld=yes ;;
4567*)
4568  acl_cv_prog_gnu_ld=no ;;
4569esac
4570fi
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4572$as_echo "$acl_cv_prog_gnu_ld" >&6; }
4573with_gnu_ld=$acl_cv_prog_gnu_ld
4574
4575
4576
4577
4578                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4579$as_echo_n "checking for shared library run path origin... " >&6; }
4580if ${acl_cv_rpath+:} false; then :
4581  $as_echo_n "(cached) " >&6
4582else
4583
4584    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4585    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4586    . ./conftest.sh
4587    rm -f ./conftest.sh
4588    acl_cv_rpath=done
4589
4590fi
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4592$as_echo "$acl_cv_rpath" >&6; }
4593  wl="$acl_cv_wl"
4594  acl_libext="$acl_cv_libext"
4595  acl_shlibext="$acl_cv_shlibext"
4596  acl_libname_spec="$acl_cv_libname_spec"
4597  acl_library_names_spec="$acl_cv_library_names_spec"
4598  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4599  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4600  acl_hardcode_direct="$acl_cv_hardcode_direct"
4601  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4602    # Check whether --enable-rpath was given.
4603if test "${enable_rpath+set}" = set; then :
4604  enableval=$enable_rpath; :
4605else
4606  enable_rpath=yes
4607fi
4608
4609
4610
4611
4612  acl_libdirstem=lib
4613  acl_libdirstem2=
4614  case "$host_os" in
4615    solaris*)
4616                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4617$as_echo_n "checking for 64-bit host... " >&6; }
4618if ${gl_cv_solaris_64bit+:} false; then :
4619  $as_echo_n "(cached) " >&6
4620else
4621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622/* end confdefs.h.  */
4623
4624#ifdef _LP64
4625sixtyfour bits
4626#endif
4627
4628_ACEOF
4629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4631  gl_cv_solaris_64bit=yes
4632else
4633  gl_cv_solaris_64bit=no
4634fi
4635rm -f conftest*
4636
4637
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4640$as_echo "$gl_cv_solaris_64bit" >&6; }
4641      if test $gl_cv_solaris_64bit = yes; then
4642        acl_libdirstem=lib/64
4643        case "$host_cpu" in
4644          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
4645          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4646        esac
4647      fi
4648      ;;
4649    *)
4650      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4651      if test -n "$searchpath"; then
4652        acl_save_IFS="${IFS= 	}"; IFS=":"
4653        for searchdir in $searchpath; do
4654          if test -d "$searchdir"; then
4655            case "$searchdir" in
4656              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4657              */../ | */.. )
4658                # Better ignore directories of this form. They are misleading.
4659                ;;
4660              *) searchdir=`cd "$searchdir" && pwd`
4661                 case "$searchdir" in
4662                   */lib64 ) acl_libdirstem=lib64 ;;
4663                 esac ;;
4664            esac
4665          fi
4666        done
4667        IFS="$acl_save_IFS"
4668      fi
4669      ;;
4670  esac
4671  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684    use_additional=yes
4685
4686  acl_save_prefix="$prefix"
4687  prefix="$acl_final_prefix"
4688  acl_save_exec_prefix="$exec_prefix"
4689  exec_prefix="$acl_final_exec_prefix"
4690
4691    eval additional_includedir=\"$includedir\"
4692    eval additional_libdir=\"$libdir\"
4693
4694  exec_prefix="$acl_save_exec_prefix"
4695  prefix="$acl_save_prefix"
4696
4697
4698# Check whether --with-libiconv-prefix was given.
4699if test "${with_libiconv_prefix+set}" = set; then :
4700  withval=$with_libiconv_prefix;
4701    if test "X$withval" = "Xno"; then
4702      use_additional=no
4703    else
4704      if test "X$withval" = "X"; then
4705
4706  acl_save_prefix="$prefix"
4707  prefix="$acl_final_prefix"
4708  acl_save_exec_prefix="$exec_prefix"
4709  exec_prefix="$acl_final_exec_prefix"
4710
4711          eval additional_includedir=\"$includedir\"
4712          eval additional_libdir=\"$libdir\"
4713
4714  exec_prefix="$acl_save_exec_prefix"
4715  prefix="$acl_save_prefix"
4716
4717      else
4718        additional_includedir="$withval/include"
4719        additional_libdir="$withval/$acl_libdirstem"
4720        if test "$acl_libdirstem2" != "$acl_libdirstem" \
4721           && ! test -d "$withval/$acl_libdirstem"; then
4722          additional_libdir="$withval/$acl_libdirstem2"
4723        fi
4724      fi
4725    fi
4726
4727fi
4728
4729      LIBICONV=
4730  LTLIBICONV=
4731  INCICONV=
4732  LIBICONV_PREFIX=
4733      HAVE_LIBICONV=
4734  rpathdirs=
4735  ltrpathdirs=
4736  names_already_handled=
4737  names_next_round='iconv '
4738  while test -n "$names_next_round"; do
4739    names_this_round="$names_next_round"
4740    names_next_round=
4741    for name in $names_this_round; do
4742      already_handled=
4743      for n in $names_already_handled; do
4744        if test "$n" = "$name"; then
4745          already_handled=yes
4746          break
4747        fi
4748      done
4749      if test -z "$already_handled"; then
4750        names_already_handled="$names_already_handled $name"
4751                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4752        eval value=\"\$HAVE_LIB$uppername\"
4753        if test -n "$value"; then
4754          if test "$value" = yes; then
4755            eval value=\"\$LIB$uppername\"
4756            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4757            eval value=\"\$LTLIB$uppername\"
4758            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4759          else
4760                                    :
4761          fi
4762        else
4763                              found_dir=
4764          found_la=
4765          found_so=
4766          found_a=
4767          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
4768          if test -n "$acl_shlibext"; then
4769            shrext=".$acl_shlibext"             # typically: shrext=.so
4770          else
4771            shrext=
4772          fi
4773          if test $use_additional = yes; then
4774            dir="$additional_libdir"
4775                                    if test -n "$acl_shlibext"; then
4776              if test -f "$dir/$libname$shrext"; then
4777                found_dir="$dir"
4778                found_so="$dir/$libname$shrext"
4779              else
4780                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4781                  ver=`(cd "$dir" && \
4782                        for f in "$libname$shrext".*; do echo "$f"; done \
4783                        | sed -e "s,^$libname$shrext\\\\.,," \
4784                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4785                        | sed 1q ) 2>/dev/null`
4786                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4787                    found_dir="$dir"
4788                    found_so="$dir/$libname$shrext.$ver"
4789                  fi
4790                else
4791                  eval library_names=\"$acl_library_names_spec\"
4792                  for f in $library_names; do
4793                    if test -f "$dir/$f"; then
4794                      found_dir="$dir"
4795                      found_so="$dir/$f"
4796                      break
4797                    fi
4798                  done
4799                fi
4800              fi
4801            fi
4802                        if test "X$found_dir" = "X"; then
4803              if test -f "$dir/$libname.$acl_libext"; then
4804                found_dir="$dir"
4805                found_a="$dir/$libname.$acl_libext"
4806              fi
4807            fi
4808            if test "X$found_dir" != "X"; then
4809              if test -f "$dir/$libname.la"; then
4810                found_la="$dir/$libname.la"
4811              fi
4812            fi
4813          fi
4814          if test "X$found_dir" = "X"; then
4815            for x in $LDFLAGS $LTLIBICONV; do
4816
4817  acl_save_prefix="$prefix"
4818  prefix="$acl_final_prefix"
4819  acl_save_exec_prefix="$exec_prefix"
4820  exec_prefix="$acl_final_exec_prefix"
4821  eval x=\"$x\"
4822  exec_prefix="$acl_save_exec_prefix"
4823  prefix="$acl_save_prefix"
4824
4825              case "$x" in
4826                -L*)
4827                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4828                                    if test -n "$acl_shlibext"; then
4829                    if test -f "$dir/$libname$shrext"; then
4830                      found_dir="$dir"
4831                      found_so="$dir/$libname$shrext"
4832                    else
4833                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4834                        ver=`(cd "$dir" && \
4835                              for f in "$libname$shrext".*; do echo "$f"; done \
4836                              | sed -e "s,^$libname$shrext\\\\.,," \
4837                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4838                              | sed 1q ) 2>/dev/null`
4839                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4840                          found_dir="$dir"
4841                          found_so="$dir/$libname$shrext.$ver"
4842                        fi
4843                      else
4844                        eval library_names=\"$acl_library_names_spec\"
4845                        for f in $library_names; do
4846                          if test -f "$dir/$f"; then
4847                            found_dir="$dir"
4848                            found_so="$dir/$f"
4849                            break
4850                          fi
4851                        done
4852                      fi
4853                    fi
4854                  fi
4855                                    if test "X$found_dir" = "X"; then
4856                    if test -f "$dir/$libname.$acl_libext"; then
4857                      found_dir="$dir"
4858                      found_a="$dir/$libname.$acl_libext"
4859                    fi
4860                  fi
4861                  if test "X$found_dir" != "X"; then
4862                    if test -f "$dir/$libname.la"; then
4863                      found_la="$dir/$libname.la"
4864                    fi
4865                  fi
4866                  ;;
4867              esac
4868              if test "X$found_dir" != "X"; then
4869                break
4870              fi
4871            done
4872          fi
4873          if test "X$found_dir" != "X"; then
4874                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4875            if test "X$found_so" != "X"; then
4876                                                        if test "$enable_rpath" = no \
4877                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
4878                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
4879                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4880              else
4881                                                                                haveit=
4882                for x in $ltrpathdirs; do
4883                  if test "X$x" = "X$found_dir"; then
4884                    haveit=yes
4885                    break
4886                  fi
4887                done
4888                if test -z "$haveit"; then
4889                  ltrpathdirs="$ltrpathdirs $found_dir"
4890                fi
4891                                if test "$acl_hardcode_direct" = yes; then
4892                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4893                else
4894                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4895                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4896                                                            haveit=
4897                    for x in $rpathdirs; do
4898                      if test "X$x" = "X$found_dir"; then
4899                        haveit=yes
4900                        break
4901                      fi
4902                    done
4903                    if test -z "$haveit"; then
4904                      rpathdirs="$rpathdirs $found_dir"
4905                    fi
4906                  else
4907                                                                                haveit=
4908                    for x in $LDFLAGS $LIBICONV; do
4909
4910  acl_save_prefix="$prefix"
4911  prefix="$acl_final_prefix"
4912  acl_save_exec_prefix="$exec_prefix"
4913  exec_prefix="$acl_final_exec_prefix"
4914  eval x=\"$x\"
4915  exec_prefix="$acl_save_exec_prefix"
4916  prefix="$acl_save_prefix"
4917
4918                      if test "X$x" = "X-L$found_dir"; then
4919                        haveit=yes
4920                        break
4921                      fi
4922                    done
4923                    if test -z "$haveit"; then
4924                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4925                    fi
4926                    if test "$acl_hardcode_minus_L" != no; then
4927                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4928                    else
4929                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4930                    fi
4931                  fi
4932                fi
4933              fi
4934            else
4935              if test "X$found_a" != "X"; then
4936                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4937              else
4938                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4939              fi
4940            fi
4941                        additional_includedir=
4942            case "$found_dir" in
4943              */$acl_libdirstem | */$acl_libdirstem/)
4944                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4945                if test "$name" = 'iconv'; then
4946                  LIBICONV_PREFIX="$basedir"
4947                fi
4948                additional_includedir="$basedir/include"
4949                ;;
4950              */$acl_libdirstem2 | */$acl_libdirstem2/)
4951                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
4952                if test "$name" = 'iconv'; then
4953                  LIBICONV_PREFIX="$basedir"
4954                fi
4955                additional_includedir="$basedir/include"
4956                ;;
4957            esac
4958            if test "X$additional_includedir" != "X"; then
4959                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
4960                haveit=
4961                if test "X$additional_includedir" = "X/usr/local/include"; then
4962                  if test -n "$GCC"; then
4963                    case $host_os in
4964                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4965                    esac
4966                  fi
4967                fi
4968                if test -z "$haveit"; then
4969                  for x in $CPPFLAGS $INCICONV; do
4970
4971  acl_save_prefix="$prefix"
4972  prefix="$acl_final_prefix"
4973  acl_save_exec_prefix="$exec_prefix"
4974  exec_prefix="$acl_final_exec_prefix"
4975  eval x=\"$x\"
4976  exec_prefix="$acl_save_exec_prefix"
4977  prefix="$acl_save_prefix"
4978
4979                    if test "X$x" = "X-I$additional_includedir"; then
4980                      haveit=yes
4981                      break
4982                    fi
4983                  done
4984                  if test -z "$haveit"; then
4985                    if test -d "$additional_includedir"; then
4986                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4987                    fi
4988                  fi
4989                fi
4990              fi
4991            fi
4992                        if test -n "$found_la"; then
4993                                                        save_libdir="$libdir"
4994              case "$found_la" in
4995                */* | *\\*) . "$found_la" ;;
4996                *) . "./$found_la" ;;
4997              esac
4998              libdir="$save_libdir"
4999                            for dep in $dependency_libs; do
5000                case "$dep" in
5001                  -L*)
5002                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5003                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5004                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5005                      haveit=
5006                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5007                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5008                        if test -n "$GCC"; then
5009                          case $host_os in
5010                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5011                          esac
5012                        fi
5013                      fi
5014                      if test -z "$haveit"; then
5015                        haveit=
5016                        for x in $LDFLAGS $LIBICONV; do
5017
5018  acl_save_prefix="$prefix"
5019  prefix="$acl_final_prefix"
5020  acl_save_exec_prefix="$exec_prefix"
5021  exec_prefix="$acl_final_exec_prefix"
5022  eval x=\"$x\"
5023  exec_prefix="$acl_save_exec_prefix"
5024  prefix="$acl_save_prefix"
5025
5026                          if test "X$x" = "X-L$additional_libdir"; then
5027                            haveit=yes
5028                            break
5029                          fi
5030                        done
5031                        if test -z "$haveit"; then
5032                          if test -d "$additional_libdir"; then
5033                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5034                          fi
5035                        fi
5036                        haveit=
5037                        for x in $LDFLAGS $LTLIBICONV; do
5038
5039  acl_save_prefix="$prefix"
5040  prefix="$acl_final_prefix"
5041  acl_save_exec_prefix="$exec_prefix"
5042  exec_prefix="$acl_final_exec_prefix"
5043  eval x=\"$x\"
5044  exec_prefix="$acl_save_exec_prefix"
5045  prefix="$acl_save_prefix"
5046
5047                          if test "X$x" = "X-L$additional_libdir"; then
5048                            haveit=yes
5049                            break
5050                          fi
5051                        done
5052                        if test -z "$haveit"; then
5053                          if test -d "$additional_libdir"; then
5054                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5055                          fi
5056                        fi
5057                      fi
5058                    fi
5059                    ;;
5060                  -R*)
5061                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5062                    if test "$enable_rpath" != no; then
5063                                                                  haveit=
5064                      for x in $rpathdirs; do
5065                        if test "X$x" = "X$dir"; then
5066                          haveit=yes
5067                          break
5068                        fi
5069                      done
5070                      if test -z "$haveit"; then
5071                        rpathdirs="$rpathdirs $dir"
5072                      fi
5073                                                                  haveit=
5074                      for x in $ltrpathdirs; do
5075                        if test "X$x" = "X$dir"; then
5076                          haveit=yes
5077                          break
5078                        fi
5079                      done
5080                      if test -z "$haveit"; then
5081                        ltrpathdirs="$ltrpathdirs $dir"
5082                      fi
5083                    fi
5084                    ;;
5085                  -l*)
5086                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5087                    ;;
5088                  *.la)
5089                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5090                    ;;
5091                  *)
5092                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5093                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5094                    ;;
5095                esac
5096              done
5097            fi
5098          else
5099                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5100            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5101          fi
5102        fi
5103      fi
5104    done
5105  done
5106  if test "X$rpathdirs" != "X"; then
5107    if test -n "$acl_hardcode_libdir_separator"; then
5108                        alldirs=
5109      for found_dir in $rpathdirs; do
5110        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5111      done
5112            acl_save_libdir="$libdir"
5113      libdir="$alldirs"
5114      eval flag=\"$acl_hardcode_libdir_flag_spec\"
5115      libdir="$acl_save_libdir"
5116      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5117    else
5118            for found_dir in $rpathdirs; do
5119        acl_save_libdir="$libdir"
5120        libdir="$found_dir"
5121        eval flag=\"$acl_hardcode_libdir_flag_spec\"
5122        libdir="$acl_save_libdir"
5123        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5124      done
5125    fi
5126  fi
5127  if test "X$ltrpathdirs" != "X"; then
5128            for found_dir in $ltrpathdirs; do
5129      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5130    done
5131  fi
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144          am_save_CPPFLAGS="$CPPFLAGS"
5145
5146  for element in $INCICONV; do
5147    haveit=
5148    for x in $CPPFLAGS; do
5149
5150  acl_save_prefix="$prefix"
5151  prefix="$acl_final_prefix"
5152  acl_save_exec_prefix="$exec_prefix"
5153  exec_prefix="$acl_final_exec_prefix"
5154  eval x=\"$x\"
5155  exec_prefix="$acl_save_exec_prefix"
5156  prefix="$acl_save_prefix"
5157
5158      if test "X$x" = "X$element"; then
5159        haveit=yes
5160        break
5161      fi
5162    done
5163    if test -z "$haveit"; then
5164      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5165    fi
5166  done
5167
5168
5169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5170$as_echo_n "checking for iconv... " >&6; }
5171if ${am_cv_func_iconv+:} false; then :
5172  $as_echo_n "(cached) " >&6
5173else
5174
5175    am_cv_func_iconv="no, consider installing GNU libiconv"
5176    am_cv_lib_iconv=no
5177    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178/* end confdefs.h.  */
5179#include <stdlib.h>
5180#include <iconv.h>
5181int
5182main ()
5183{
5184iconv_t cd = iconv_open("","");
5185       iconv(cd,NULL,NULL,NULL,NULL);
5186       iconv_close(cd);
5187  ;
5188  return 0;
5189}
5190_ACEOF
5191if ac_fn_c_try_link "$LINENO"; then :
5192  am_cv_func_iconv=yes
5193fi
5194rm -f core conftest.err conftest.$ac_objext \
5195    conftest$ac_exeext conftest.$ac_ext
5196    if test "$am_cv_func_iconv" != yes; then
5197      am_save_LIBS="$LIBS"
5198      LIBS="$LIBS $LIBICONV"
5199      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200/* end confdefs.h.  */
5201#include <stdlib.h>
5202#include <iconv.h>
5203int
5204main ()
5205{
5206iconv_t cd = iconv_open("","");
5207         iconv(cd,NULL,NULL,NULL,NULL);
5208         iconv_close(cd);
5209  ;
5210  return 0;
5211}
5212_ACEOF
5213if ac_fn_c_try_link "$LINENO"; then :
5214  am_cv_lib_iconv=yes
5215        am_cv_func_iconv=yes
5216fi
5217rm -f core conftest.err conftest.$ac_objext \
5218    conftest$ac_exeext conftest.$ac_ext
5219      LIBS="$am_save_LIBS"
5220    fi
5221
5222fi
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5224$as_echo "$am_cv_func_iconv" >&6; }
5225  if test "$am_cv_func_iconv" = yes; then
5226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5227$as_echo_n "checking for working iconv... " >&6; }
5228if ${am_cv_func_iconv_works+:} false; then :
5229  $as_echo_n "(cached) " >&6
5230else
5231
5232            am_save_LIBS="$LIBS"
5233      if test $am_cv_lib_iconv = yes; then
5234        LIBS="$LIBS $LIBICONV"
5235      fi
5236      if test "$cross_compiling" = yes; then :
5237  case "$host_os" in
5238           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5239           *)            am_cv_func_iconv_works="guessing yes" ;;
5240         esac
5241else
5242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243/* end confdefs.h.  */
5244
5245#include <iconv.h>
5246#include <string.h>
5247int main ()
5248{
5249  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5250     returns.  */
5251  {
5252    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5253    if (cd_utf8_to_88591 != (iconv_t)(-1))
5254      {
5255        static const char input[] = "\342\202\254"; /* EURO SIGN */
5256        char buf[10];
5257        const char *inptr = input;
5258        size_t inbytesleft = strlen (input);
5259        char *outptr = buf;
5260        size_t outbytesleft = sizeof (buf);
5261        size_t res = iconv (cd_utf8_to_88591,
5262                            (char **) &inptr, &inbytesleft,
5263                            &outptr, &outbytesleft);
5264        if (res == 0)
5265          return 1;
5266      }
5267  }
5268  /* Test against Solaris 10 bug: Failures are not distinguishable from
5269     successful returns.  */
5270  {
5271    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5272    if (cd_ascii_to_88591 != (iconv_t)(-1))
5273      {
5274        static const char input[] = "\263";
5275        char buf[10];
5276        const char *inptr = input;
5277        size_t inbytesleft = strlen (input);
5278        char *outptr = buf;
5279        size_t outbytesleft = sizeof (buf);
5280        size_t res = iconv (cd_ascii_to_88591,
5281                            (char **) &inptr, &inbytesleft,
5282                            &outptr, &outbytesleft);
5283        if (res == 0)
5284          return 1;
5285      }
5286  }
5287#if 0 /* This bug could be worked around by the caller.  */
5288  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
5289  {
5290    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5291    if (cd_88591_to_utf8 != (iconv_t)(-1))
5292      {
5293        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5294        char buf[50];
5295        const char *inptr = input;
5296        size_t inbytesleft = strlen (input);
5297        char *outptr = buf;
5298        size_t outbytesleft = sizeof (buf);
5299        size_t res = iconv (cd_88591_to_utf8,
5300                            (char **) &inptr, &inbytesleft,
5301                            &outptr, &outbytesleft);
5302        if ((int)res > 0)
5303          return 1;
5304      }
5305  }
5306#endif
5307  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5308     provided.  */
5309  if (/* Try standardized names.  */
5310      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5311      /* Try IRIX, OSF/1 names.  */
5312      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5313      /* Try AIX names.  */
5314      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5315      /* Try HP-UX names.  */
5316      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5317    return 1;
5318  return 0;
5319}
5320_ACEOF
5321if ac_fn_c_try_run "$LINENO"; then :
5322  am_cv_func_iconv_works=yes
5323else
5324  am_cv_func_iconv_works=no
5325fi
5326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5327  conftest.$ac_objext conftest.beam conftest.$ac_ext
5328fi
5329
5330      LIBS="$am_save_LIBS"
5331
5332fi
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5334$as_echo "$am_cv_func_iconv_works" >&6; }
5335    case "$am_cv_func_iconv_works" in
5336      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5337      *)   am_func_iconv=yes ;;
5338    esac
5339  else
5340    am_func_iconv=no am_cv_lib_iconv=no
5341  fi
5342  if test "$am_func_iconv" = yes; then
5343
5344$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5345
5346  fi
5347  if test "$am_cv_lib_iconv" = yes; then
5348    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5349$as_echo_n "checking how to link with libiconv... " >&6; }
5350    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5351$as_echo "$LIBICONV" >&6; }
5352  else
5353            CPPFLAGS="$am_save_CPPFLAGS"
5354    LIBICONV=
5355    LTLIBICONV=
5356  fi
5357
5358
5359
5360  if test "$am_cv_func_iconv" = yes; then
5361    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5362$as_echo_n "checking for iconv declaration... " >&6; }
5363    if ${am_cv_proto_iconv+:} false; then :
5364  $as_echo_n "(cached) " >&6
5365else
5366
5367      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368/* end confdefs.h.  */
5369
5370#include <stdlib.h>
5371#include <iconv.h>
5372extern
5373#ifdef __cplusplus
5374"C"
5375#endif
5376#if defined(__STDC__) || defined(__cplusplus)
5377size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5378#else
5379size_t iconv();
5380#endif
5381
5382int
5383main ()
5384{
5385
5386  ;
5387  return 0;
5388}
5389_ACEOF
5390if ac_fn_c_try_compile "$LINENO"; then :
5391  am_cv_proto_iconv_arg1=""
5392else
5393  am_cv_proto_iconv_arg1="const"
5394fi
5395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396      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);"
5397fi
5398
5399    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5400    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
5401         $am_cv_proto_iconv" >&5
5402$as_echo "
5403         $am_cv_proto_iconv" >&6; }
5404
5405cat >>confdefs.h <<_ACEOF
5406#define ICONV_CONST $am_cv_proto_iconv_arg1
5407_ACEOF
5408
5409  fi
5410
5411
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5413$as_echo_n "checking for ANSI C header files... " >&6; }
5414if ${ac_cv_header_stdc+:} false; then :
5415  $as_echo_n "(cached) " >&6
5416else
5417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418/* end confdefs.h.  */
5419#include <stdlib.h>
5420#include <stdarg.h>
5421#include <string.h>
5422#include <float.h>
5423
5424int
5425main ()
5426{
5427
5428  ;
5429  return 0;
5430}
5431_ACEOF
5432if ac_fn_c_try_compile "$LINENO"; then :
5433  ac_cv_header_stdc=yes
5434else
5435  ac_cv_header_stdc=no
5436fi
5437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438
5439if test $ac_cv_header_stdc = yes; then
5440  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442/* end confdefs.h.  */
5443#include <string.h>
5444
5445_ACEOF
5446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5447  $EGREP "memchr" >/dev/null 2>&1; then :
5448
5449else
5450  ac_cv_header_stdc=no
5451fi
5452rm -f conftest*
5453
5454fi
5455
5456if test $ac_cv_header_stdc = yes; then
5457  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459/* end confdefs.h.  */
5460#include <stdlib.h>
5461
5462_ACEOF
5463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464  $EGREP "free" >/dev/null 2>&1; then :
5465
5466else
5467  ac_cv_header_stdc=no
5468fi
5469rm -f conftest*
5470
5471fi
5472
5473if test $ac_cv_header_stdc = yes; then
5474  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5475  if test "$cross_compiling" = yes; then :
5476  :
5477else
5478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479/* end confdefs.h.  */
5480#include <ctype.h>
5481#include <stdlib.h>
5482#if ((' ' & 0x0FF) == 0x020)
5483# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5484# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5485#else
5486# define ISLOWER(c) \
5487		   (('a' <= (c) && (c) <= 'i') \
5488		     || ('j' <= (c) && (c) <= 'r') \
5489		     || ('s' <= (c) && (c) <= 'z'))
5490# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5491#endif
5492
5493#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5494int
5495main ()
5496{
5497  int i;
5498  for (i = 0; i < 256; i++)
5499    if (XOR (islower (i), ISLOWER (i))
5500	|| toupper (i) != TOUPPER (i))
5501      return 2;
5502  return 0;
5503}
5504_ACEOF
5505if ac_fn_c_try_run "$LINENO"; then :
5506
5507else
5508  ac_cv_header_stdc=no
5509fi
5510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5511  conftest.$ac_objext conftest.beam conftest.$ac_ext
5512fi
5513
5514fi
5515fi
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5517$as_echo "$ac_cv_header_stdc" >&6; }
5518if test $ac_cv_header_stdc = yes; then
5519
5520$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5521
5522fi
5523
5524# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5525for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5526		  inttypes.h stdint.h unistd.h
5527do :
5528  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5529ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5530"
5531if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5532  cat >>confdefs.h <<_ACEOF
5533#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5534_ACEOF
5535
5536fi
5537
5538done
5539
5540
5541for ac_header in auth.h crypt.h features.h inttypes.h paths.h 		 shadow.h stdint.h utmp.h utmpx.h
5542do :
5543  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5544ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5545if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5546  cat >>confdefs.h <<_ACEOF
5547#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5548_ACEOF
5549
5550fi
5551
5552done
5553
5554for ac_header in wchar.h
5555do :
5556  ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5557if test "x$ac_cv_header_wchar_h" = xyes; then :
5558  cat >>confdefs.h <<_ACEOF
5559#define HAVE_WCHAR_H 1
5560_ACEOF
5561 # The cast to long int works around a bug in the HP C Compiler
5562# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5563# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5564# This bug is HP SR number 8606223364.
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
5566$as_echo_n "checking size of wchar_t... " >&6; }
5567if ${ac_cv_sizeof_wchar_t+:} false; then :
5568  $as_echo_n "(cached) " >&6
5569else
5570  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <stdio.h>
5571#include <wchar.h>
5572"; then :
5573
5574else
5575  if test "$ac_cv_type_wchar_t" = yes; then
5576     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5578as_fn_error 77 "cannot compute sizeof (wchar_t)
5579See \`config.log' for more details" "$LINENO" 5; }
5580   else
5581     ac_cv_sizeof_wchar_t=0
5582   fi
5583fi
5584
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
5587$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
5588
5589
5590
5591cat >>confdefs.h <<_ACEOF
5592#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
5593_ACEOF
5594
5595
5596	for ac_header in wctype.h
5597do :
5598  ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
5599if test "x$ac_cv_header_wctype_h" = xyes; then :
5600  cat >>confdefs.h <<_ACEOF
5601#define HAVE_WCTYPE_H 1
5602_ACEOF
5603
5604fi
5605
5606done
5607
5608fi
5609
5610done
5611
5612ac_header_dirent=no
5613for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5614  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5616$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5617if eval \${$as_ac_Header+:} false; then :
5618  $as_echo_n "(cached) " >&6
5619else
5620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621/* end confdefs.h.  */
5622#include <sys/types.h>
5623#include <$ac_hdr>
5624
5625int
5626main ()
5627{
5628if ((DIR *) 0)
5629return 0;
5630  ;
5631  return 0;
5632}
5633_ACEOF
5634if ac_fn_c_try_compile "$LINENO"; then :
5635  eval "$as_ac_Header=yes"
5636else
5637  eval "$as_ac_Header=no"
5638fi
5639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640fi
5641eval ac_res=\$$as_ac_Header
5642	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5643$as_echo "$ac_res" >&6; }
5644if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5645  cat >>confdefs.h <<_ACEOF
5646#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5647_ACEOF
5648
5649ac_header_dirent=$ac_hdr; break
5650fi
5651
5652done
5653# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5654if test $ac_header_dirent = dirent.h; then
5655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5656$as_echo_n "checking for library containing opendir... " >&6; }
5657if ${ac_cv_search_opendir+:} false; then :
5658  $as_echo_n "(cached) " >&6
5659else
5660  ac_func_search_save_LIBS=$LIBS
5661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662/* end confdefs.h.  */
5663
5664/* Override any GCC internal prototype to avoid an error.
5665   Use char because int might match the return type of a GCC
5666   builtin and then its argument prototype would still apply.  */
5667#ifdef __cplusplus
5668extern "C"
5669#endif
5670char opendir ();
5671int
5672main ()
5673{
5674return opendir ();
5675  ;
5676  return 0;
5677}
5678_ACEOF
5679for ac_lib in '' dir; do
5680  if test -z "$ac_lib"; then
5681    ac_res="none required"
5682  else
5683    ac_res=-l$ac_lib
5684    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5685  fi
5686  if ac_fn_c_try_link "$LINENO"; then :
5687  ac_cv_search_opendir=$ac_res
5688fi
5689rm -f core conftest.err conftest.$ac_objext \
5690    conftest$ac_exeext
5691  if ${ac_cv_search_opendir+:} false; then :
5692  break
5693fi
5694done
5695if ${ac_cv_search_opendir+:} false; then :
5696
5697else
5698  ac_cv_search_opendir=no
5699fi
5700rm conftest.$ac_ext
5701LIBS=$ac_func_search_save_LIBS
5702fi
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5704$as_echo "$ac_cv_search_opendir" >&6; }
5705ac_res=$ac_cv_search_opendir
5706if test "$ac_res" != no; then :
5707  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5708
5709fi
5710
5711else
5712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5713$as_echo_n "checking for library containing opendir... " >&6; }
5714if ${ac_cv_search_opendir+:} false; then :
5715  $as_echo_n "(cached) " >&6
5716else
5717  ac_func_search_save_LIBS=$LIBS
5718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719/* end confdefs.h.  */
5720
5721/* Override any GCC internal prototype to avoid an error.
5722   Use char because int might match the return type of a GCC
5723   builtin and then its argument prototype would still apply.  */
5724#ifdef __cplusplus
5725extern "C"
5726#endif
5727char opendir ();
5728int
5729main ()
5730{
5731return opendir ();
5732  ;
5733  return 0;
5734}
5735_ACEOF
5736for ac_lib in '' x; do
5737  if test -z "$ac_lib"; then
5738    ac_res="none required"
5739  else
5740    ac_res=-l$ac_lib
5741    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5742  fi
5743  if ac_fn_c_try_link "$LINENO"; then :
5744  ac_cv_search_opendir=$ac_res
5745fi
5746rm -f core conftest.err conftest.$ac_objext \
5747    conftest$ac_exeext
5748  if ${ac_cv_search_opendir+:} false; then :
5749  break
5750fi
5751done
5752if ${ac_cv_search_opendir+:} false; then :
5753
5754else
5755  ac_cv_search_opendir=no
5756fi
5757rm conftest.$ac_ext
5758LIBS=$ac_func_search_save_LIBS
5759fi
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5761$as_echo "$ac_cv_search_opendir" >&6; }
5762ac_res=$ac_cv_search_opendir
5763if test "$ac_res" != no; then :
5764  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5765
5766fi
5767
5768fi
5769
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5771$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5772if ${ac_cv_header_stat_broken+:} false; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h.  */
5777#include <sys/types.h>
5778#include <sys/stat.h>
5779
5780#if defined S_ISBLK && defined S_IFDIR
5781extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5782#endif
5783
5784#if defined S_ISBLK && defined S_IFCHR
5785extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5786#endif
5787
5788#if defined S_ISLNK && defined S_IFREG
5789extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5790#endif
5791
5792#if defined S_ISSOCK && defined S_IFREG
5793extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5794#endif
5795
5796_ACEOF
5797if ac_fn_c_try_compile "$LINENO"; then :
5798  ac_cv_header_stat_broken=no
5799else
5800  ac_cv_header_stat_broken=yes
5801fi
5802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803fi
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5805$as_echo "$ac_cv_header_stat_broken" >&6; }
5806if test $ac_cv_header_stat_broken = yes; then
5807
5808$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5809
5810fi
5811
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5813$as_echo_n "checking for ANSI C header files... " >&6; }
5814if ${ac_cv_header_stdc+:} false; then :
5815  $as_echo_n "(cached) " >&6
5816else
5817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818/* end confdefs.h.  */
5819#include <stdlib.h>
5820#include <stdarg.h>
5821#include <string.h>
5822#include <float.h>
5823
5824int
5825main ()
5826{
5827
5828  ;
5829  return 0;
5830}
5831_ACEOF
5832if ac_fn_c_try_compile "$LINENO"; then :
5833  ac_cv_header_stdc=yes
5834else
5835  ac_cv_header_stdc=no
5836fi
5837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838
5839if test $ac_cv_header_stdc = yes; then
5840  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842/* end confdefs.h.  */
5843#include <string.h>
5844
5845_ACEOF
5846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5847  $EGREP "memchr" >/dev/null 2>&1; then :
5848
5849else
5850  ac_cv_header_stdc=no
5851fi
5852rm -f conftest*
5853
5854fi
5855
5856if test $ac_cv_header_stdc = yes; then
5857  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h.  */
5860#include <stdlib.h>
5861
5862_ACEOF
5863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5864  $EGREP "free" >/dev/null 2>&1; then :
5865
5866else
5867  ac_cv_header_stdc=no
5868fi
5869rm -f conftest*
5870
5871fi
5872
5873if test $ac_cv_header_stdc = yes; then
5874  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5875  if test "$cross_compiling" = yes; then :
5876  :
5877else
5878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879/* end confdefs.h.  */
5880#include <ctype.h>
5881#include <stdlib.h>
5882#if ((' ' & 0x0FF) == 0x020)
5883# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5884# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5885#else
5886# define ISLOWER(c) \
5887		   (('a' <= (c) && (c) <= 'i') \
5888		     || ('j' <= (c) && (c) <= 'r') \
5889		     || ('s' <= (c) && (c) <= 'z'))
5890# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5891#endif
5892
5893#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5894int
5895main ()
5896{
5897  int i;
5898  for (i = 0; i < 256; i++)
5899    if (XOR (islower (i), ISLOWER (i))
5900	|| toupper (i) != TOUPPER (i))
5901      return 2;
5902  return 0;
5903}
5904_ACEOF
5905if ac_fn_c_try_run "$LINENO"; then :
5906
5907else
5908  ac_cv_header_stdc=no
5909fi
5910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5911  conftest.$ac_objext conftest.beam conftest.$ac_ext
5912fi
5913
5914fi
5915fi
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5917$as_echo "$ac_cv_header_stdc" >&6; }
5918if test $ac_cv_header_stdc = yes; then
5919
5920$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5921
5922fi
5923
5924
5925ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5926if test "x$ac_cv_type_long_long" = xyes; then :
5927
5928cat >>confdefs.h <<_ACEOF
5929#define HAVE_LONG_LONG 1
5930_ACEOF
5931
5932
5933fi
5934
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5936$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5937if ${ac_cv_type_uid_t+:} false; then :
5938  $as_echo_n "(cached) " >&6
5939else
5940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941/* end confdefs.h.  */
5942#include <sys/types.h>
5943
5944_ACEOF
5945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946  $EGREP "uid_t" >/dev/null 2>&1; then :
5947  ac_cv_type_uid_t=yes
5948else
5949  ac_cv_type_uid_t=no
5950fi
5951rm -f conftest*
5952
5953fi
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5955$as_echo "$ac_cv_type_uid_t" >&6; }
5956if test $ac_cv_type_uid_t = no; then
5957
5958$as_echo "#define uid_t int" >>confdefs.h
5959
5960
5961$as_echo "#define gid_t int" >>confdefs.h
5962
5963fi
5964
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
5966$as_echo_n "checking type of array argument to getgroups... " >&6; }
5967if ${ac_cv_type_getgroups+:} false; then :
5968  $as_echo_n "(cached) " >&6
5969else
5970  if test "$cross_compiling" = yes; then :
5971  ac_cv_type_getgroups=cross
5972else
5973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974/* end confdefs.h.  */
5975/* Thanks to Mike Rendell for this test.  */
5976$ac_includes_default
5977#define NGID 256
5978#undef MAX
5979#define MAX(x, y) ((x) > (y) ? (x) : (y))
5980
5981int
5982main ()
5983{
5984  gid_t gidset[NGID];
5985  int i, n;
5986  union { gid_t gval; long int lval; }  val;
5987
5988  val.lval = -1;
5989  for (i = 0; i < NGID; i++)
5990    gidset[i] = val.gval;
5991  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5992		 gidset);
5993  /* Exit non-zero if getgroups seems to require an array of ints.  This
5994     happens when gid_t is short int but getgroups modifies an array
5995     of ints.  */
5996  return n > 0 && gidset[n] != val.gval;
5997}
5998_ACEOF
5999if ac_fn_c_try_run "$LINENO"; then :
6000  ac_cv_type_getgroups=gid_t
6001else
6002  ac_cv_type_getgroups=int
6003fi
6004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6005  conftest.$ac_objext conftest.beam conftest.$ac_ext
6006fi
6007
6008if test $ac_cv_type_getgroups = cross; then
6009        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010/* end confdefs.h.  */
6011#include <unistd.h>
6012
6013_ACEOF
6014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6015  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
6016  ac_cv_type_getgroups=gid_t
6017else
6018  ac_cv_type_getgroups=int
6019fi
6020rm -f conftest*
6021
6022fi
6023fi
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
6025$as_echo "$ac_cv_type_getgroups" >&6; }
6026
6027cat >>confdefs.h <<_ACEOF
6028#define GETGROUPS_T $ac_cv_type_getgroups
6029_ACEOF
6030
6031
6032ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6033if test "x$ac_cv_type_mode_t" = xyes; then :
6034
6035else
6036
6037cat >>confdefs.h <<_ACEOF
6038#define mode_t int
6039_ACEOF
6040
6041fi
6042
6043ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6044if test "x$ac_cv_type_size_t" = xyes; then :
6045
6046else
6047
6048cat >>confdefs.h <<_ACEOF
6049#define size_t unsigned int
6050_ACEOF
6051
6052fi
6053
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6055$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6056if ${ac_cv_type_uid_t+:} false; then :
6057  $as_echo_n "(cached) " >&6
6058else
6059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060/* end confdefs.h.  */
6061#include <sys/types.h>
6062
6063_ACEOF
6064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065  $EGREP "uid_t" >/dev/null 2>&1; then :
6066  ac_cv_type_uid_t=yes
6067else
6068  ac_cv_type_uid_t=no
6069fi
6070rm -f conftest*
6071
6072fi
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6074$as_echo "$ac_cv_type_uid_t" >&6; }
6075if test $ac_cv_type_uid_t = no; then
6076
6077$as_echo "#define uid_t int" >>confdefs.h
6078
6079
6080$as_echo "#define gid_t int" >>confdefs.h
6081
6082fi
6083
6084ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6085case $ac_cv_c_uint32_t in #(
6086  no|yes) ;; #(
6087  *)
6088
6089$as_echo "#define _UINT32_T 1" >>confdefs.h
6090
6091
6092cat >>confdefs.h <<_ACEOF
6093#define uint32_t $ac_cv_c_uint32_t
6094_ACEOF
6095;;
6096  esac
6097
6098
6099
6100
6101ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
6102#include <sys/types.h>
6103
6104"
6105if test "x$ac_cv_type_ssize_t" = xyes; then :
6106
6107else
6108
6109$as_echo "#define ssize_t int" >>confdefs.h
6110
6111fi
6112
6113
6114
6115
6116
6117ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
6118#include <sys/types.h>
6119#include <sys/socket.h>
6120
6121"
6122if test "x$ac_cv_type_socklen_t" = xyes; then :
6123
6124else
6125
6126$as_echo "#define socklen_t int" >>confdefs.h
6127
6128fi
6129
6130
6131
6132
6133ac_fn_c_check_member "$LINENO" "struct dirent" "d_ino" "ac_cv_member_struct_dirent_d_ino" "#ifdef HAVE_DIRENT_H
6134# include <dirent.h>
6135#else
6136# ifdef HAVE_NDIR_H
6137#  include <ndir.h>
6138# else
6139#  include <sys/dir.h>
6140# endif
6141# define dirent direct
6142#endif
6143"
6144if test "x$ac_cv_member_struct_dirent_d_ino" = xyes; then :
6145
6146cat >>confdefs.h <<_ACEOF
6147#define HAVE_STRUCT_DIRENT_D_INO 1
6148_ACEOF
6149
6150
6151fi
6152
6153ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "#include <sys/types.h>
6154#ifdef HAVE_UTMPX_H
6155#include <utmpx.h>
6156#define utmp utmpx
6157#elif defined HAVE_UTMP_H
6158#include <utmp.h>
6159#endif
6160"
6161if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
6162
6163cat >>confdefs.h <<_ACEOF
6164#define HAVE_STRUCT_UTMP_UT_HOST 1
6165_ACEOF
6166
6167
6168fi
6169ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "#include <sys/types.h>
6170#ifdef HAVE_UTMPX_H
6171#include <utmpx.h>
6172#define utmp utmpx
6173#elif defined HAVE_UTMP_H
6174#include <utmp.h>
6175#endif
6176"
6177if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
6178
6179cat >>confdefs.h <<_ACEOF
6180#define HAVE_STRUCT_UTMP_UT_USER 1
6181_ACEOF
6182
6183
6184fi
6185ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "#include <sys/types.h>
6186#ifdef HAVE_UTMPX_H
6187#include <utmpx.h>
6188#define utmp utmpx
6189#elif defined HAVE_UTMP_H
6190#include <utmp.h>
6191#endif
6192"
6193if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
6194
6195cat >>confdefs.h <<_ACEOF
6196#define HAVE_STRUCT_UTMP_UT_TV 1
6197_ACEOF
6198
6199
6200fi
6201ac_fn_c_check_member "$LINENO" "struct utmp" "ut_xtime" "ac_cv_member_struct_utmp_ut_xtime" "#include <sys/types.h>
6202#ifdef HAVE_UTMPX_H
6203#include <utmpx.h>
6204#define utmp utmpx
6205#elif defined HAVE_UTMP_H
6206#include <utmp.h>
6207#endif
6208"
6209if test "x$ac_cv_member_struct_utmp_ut_xtime" = xyes; then :
6210
6211cat >>confdefs.h <<_ACEOF
6212#define HAVE_STRUCT_UTMP_UT_XTIME 1
6213_ACEOF
6214
6215
6216fi
6217ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "#include <sys/types.h>
6218#ifdef HAVE_UTMPX_H
6219#include <utmpx.h>
6220#define utmp utmpx
6221#elif defined HAVE_UTMP_H
6222#include <utmp.h>
6223#endif
6224"
6225if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
6226
6227cat >>confdefs.h <<_ACEOF
6228#define HAVE_STRUCT_UTMPX_UT_HOST 1
6229_ACEOF
6230
6231
6232fi
6233ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_user" "ac_cv_member_struct_utmpx_ut_user" "#include <sys/types.h>
6234#ifdef HAVE_UTMPX_H
6235#include <utmpx.h>
6236#define utmp utmpx
6237#elif defined HAVE_UTMP_H
6238#include <utmp.h>
6239#endif
6240"
6241if test "x$ac_cv_member_struct_utmpx_ut_user" = xyes; then :
6242
6243cat >>confdefs.h <<_ACEOF
6244#define HAVE_STRUCT_UTMPX_UT_USER 1
6245_ACEOF
6246
6247
6248fi
6249ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "#include <sys/types.h>
6250#ifdef HAVE_UTMPX_H
6251#include <utmpx.h>
6252#define utmp utmpx
6253#elif defined HAVE_UTMP_H
6254#include <utmp.h>
6255#endif
6256"
6257if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
6258
6259cat >>confdefs.h <<_ACEOF
6260#define HAVE_STRUCT_UTMPX_UT_TV 1
6261_ACEOF
6262
6263
6264fi
6265ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_xtime" "ac_cv_member_struct_utmpx_ut_xtime" "#include <sys/types.h>
6266#ifdef HAVE_UTMPX_H
6267#include <utmpx.h>
6268#define utmp utmpx
6269#elif defined HAVE_UTMP_H
6270#include <utmp.h>
6271#endif
6272"
6273if test "x$ac_cv_member_struct_utmpx_ut_xtime" = xyes; then :
6274
6275cat >>confdefs.h <<_ACEOF
6276#define HAVE_STRUCT_UTMPX_UT_XTIME 1
6277_ACEOF
6278
6279
6280fi
6281
6282ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
6283#include <sys/socket.h>
6284"
6285if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
6286
6287cat >>confdefs.h <<_ACEOF
6288#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
6289_ACEOF
6290
6291
6292fi
6293
6294
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6296$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6297if ${ac_cv_c_const+:} false; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301/* end confdefs.h.  */
6302
6303int
6304main ()
6305{
6306/* FIXME: Include the comments suggested by Paul. */
6307#ifndef __cplusplus
6308  /* Ultrix mips cc rejects this.  */
6309  typedef int charset[2];
6310  const charset cs;
6311  /* SunOS 4.1.1 cc rejects this.  */
6312  char const *const *pcpcc;
6313  char **ppc;
6314  /* NEC SVR4.0.2 mips cc rejects this.  */
6315  struct point {int x, y;};
6316  static struct point const zero = {0,0};
6317  /* AIX XL C 1.02.0.0 rejects this.
6318     It does not let you subtract one const X* pointer from another in
6319     an arm of an if-expression whose if-part is not a constant
6320     expression */
6321  const char *g = "string";
6322  pcpcc = &g + (g ? g-g : 0);
6323  /* HPUX 7.0 cc rejects these. */
6324  ++pcpcc;
6325  ppc = (char**) pcpcc;
6326  pcpcc = (char const *const *) ppc;
6327  { /* SCO 3.2v4 cc rejects this.  */
6328    char *t;
6329    char const *s = 0 ? (char *) 0 : (char const *) 0;
6330
6331    *t++ = 0;
6332    if (s) return 0;
6333  }
6334  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6335    int x[] = {25, 17};
6336    const int *foo = &x[0];
6337    ++foo;
6338  }
6339  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6340    typedef const int *iptr;
6341    iptr p = 0;
6342    ++p;
6343  }
6344  { /* AIX XL C 1.02.0.0 rejects this saying
6345       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6346    struct s { int j; const int *ap[3]; };
6347    struct s *b; b->j = 5;
6348  }
6349  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6350    const int foo = 10;
6351    if (!foo) return 0;
6352  }
6353  return !cs[0] && !zero.x;
6354#endif
6355
6356  ;
6357  return 0;
6358}
6359_ACEOF
6360if ac_fn_c_try_compile "$LINENO"; then :
6361  ac_cv_c_const=yes
6362else
6363  ac_cv_c_const=no
6364fi
6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366fi
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6368$as_echo "$ac_cv_c_const" >&6; }
6369if test $ac_cv_c_const = no; then
6370
6371$as_echo "#define const /**/" >>confdefs.h
6372
6373fi
6374
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6376$as_echo_n "checking for working volatile... " >&6; }
6377if ${ac_cv_c_volatile+:} false; then :
6378  $as_echo_n "(cached) " >&6
6379else
6380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381/* end confdefs.h.  */
6382
6383int
6384main ()
6385{
6386
6387volatile int x;
6388int * volatile y = (int *) 0;
6389return !x && !y;
6390  ;
6391  return 0;
6392}
6393_ACEOF
6394if ac_fn_c_try_compile "$LINENO"; then :
6395  ac_cv_c_volatile=yes
6396else
6397  ac_cv_c_volatile=no
6398fi
6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400fi
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6402$as_echo "$ac_cv_c_volatile" >&6; }
6403if test $ac_cv_c_volatile = no; then
6404
6405$as_echo "#define volatile /**/" >>confdefs.h
6406
6407fi
6408
6409
6410ac_fn_c_check_decl "$LINENO" "crypt" "ac_cv_have_decl_crypt" "#include \"config_p.h\"
6411$ac_includes_default
6412#ifdef HAVE_CRYPT_H
6413#include <crypt.h>
6414#endif
6415
6416"
6417if test "x$ac_cv_have_decl_crypt" = xyes; then :
6418  ac_have_decl=1
6419else
6420  ac_have_decl=0
6421fi
6422
6423cat >>confdefs.h <<_ACEOF
6424#define HAVE_DECL_CRYPT $ac_have_decl
6425_ACEOF
6426ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "#include \"config_p.h\"
6427$ac_includes_default
6428#ifdef HAVE_CRYPT_H
6429#include <crypt.h>
6430#endif
6431
6432"
6433if test "x$ac_cv_have_decl_environ" = xyes; then :
6434  ac_have_decl=1
6435else
6436  ac_have_decl=0
6437fi
6438
6439cat >>confdefs.h <<_ACEOF
6440#define HAVE_DECL_ENVIRON $ac_have_decl
6441_ACEOF
6442ac_fn_c_check_decl "$LINENO" "gethostname" "ac_cv_have_decl_gethostname" "#include \"config_p.h\"
6443$ac_includes_default
6444#ifdef HAVE_CRYPT_H
6445#include <crypt.h>
6446#endif
6447
6448"
6449if test "x$ac_cv_have_decl_gethostname" = xyes; then :
6450  ac_have_decl=1
6451else
6452  ac_have_decl=0
6453fi
6454
6455cat >>confdefs.h <<_ACEOF
6456#define HAVE_DECL_GETHOSTNAME $ac_have_decl
6457_ACEOF
6458ac_fn_c_check_decl "$LINENO" "getpgrp" "ac_cv_have_decl_getpgrp" "#include \"config_p.h\"
6459$ac_includes_default
6460#ifdef HAVE_CRYPT_H
6461#include <crypt.h>
6462#endif
6463
6464"
6465if test "x$ac_cv_have_decl_getpgrp" = xyes; then :
6466  ac_have_decl=1
6467else
6468  ac_have_decl=0
6469fi
6470
6471cat >>confdefs.h <<_ACEOF
6472#define HAVE_DECL_GETPGRP $ac_have_decl
6473_ACEOF
6474
6475ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
6476if test "x$ac_cv_func_setlocale" = xyes; then :
6477  have_setlocale=yes
6478else
6479  have_setlocale=no
6480fi
6481
6482ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
6483if test "x$ac_cv_func_catgets" = xyes; then :
6484  have_catgets=yes
6485else
6486  have_catgets=no
6487fi
6488
6489for ac_func in dup2 getauthid getcwd gethostname getpwent 	getutent getutxent mallinfo memmove memset mkstemp nice 	nl_langinfo sbrk setpgid setpriority strerror strstr sysconf wcwidth
6490do :
6491  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6492ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6493if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6494  cat >>confdefs.h <<_ACEOF
6495#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6496_ACEOF
6497
6498fi
6499done
6500
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
6502$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
6503if ${ac_cv_func_getpgrp_void+:} false; then :
6504  $as_echo_n "(cached) " >&6
6505else
6506  # Use it with a single arg.
6507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508/* end confdefs.h.  */
6509$ac_includes_default
6510int
6511main ()
6512{
6513getpgrp (0);
6514  ;
6515  return 0;
6516}
6517_ACEOF
6518if ac_fn_c_try_compile "$LINENO"; then :
6519  ac_cv_func_getpgrp_void=no
6520else
6521  ac_cv_func_getpgrp_void=yes
6522fi
6523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524
6525fi
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
6527$as_echo "$ac_cv_func_getpgrp_void" >&6; }
6528if test $ac_cv_func_getpgrp_void = yes; then
6529
6530$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
6531
6532fi
6533
6534
6535  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
6536$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
6537if ${ac_cv_func_mbrtowc+:} false; then :
6538  $as_echo_n "(cached) " >&6
6539else
6540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541/* end confdefs.h.  */
6542#include <wchar.h>
6543int
6544main ()
6545{
6546wchar_t wc;
6547	      char const s[] = "";
6548	      size_t n = 1;
6549	      mbstate_t state;
6550	      return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
6551  ;
6552  return 0;
6553}
6554_ACEOF
6555if ac_fn_c_try_link "$LINENO"; then :
6556  ac_cv_func_mbrtowc=yes
6557else
6558  ac_cv_func_mbrtowc=no
6559fi
6560rm -f core conftest.err conftest.$ac_objext \
6561    conftest$ac_exeext conftest.$ac_ext
6562fi
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
6564$as_echo "$ac_cv_func_mbrtowc" >&6; }
6565  if test $ac_cv_func_mbrtowc = yes; then
6566
6567$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
6568
6569  fi
6570
6571if test "x${cross_compiling}" != xyes ; then
6572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
6573$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
6574if ${ac_cv_func_setpgrp_void+:} false; then :
6575  $as_echo_n "(cached) " >&6
6576else
6577  if test "$cross_compiling" = yes; then :
6578  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
6579else
6580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581/* end confdefs.h.  */
6582$ac_includes_default
6583int
6584main ()
6585{
6586/* If this system has a BSD-style setpgrp which takes arguments,
6587  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
6588  exit successfully. */
6589  return setpgrp (1,1) != -1;
6590  ;
6591  return 0;
6592}
6593_ACEOF
6594if ac_fn_c_try_run "$LINENO"; then :
6595  ac_cv_func_setpgrp_void=no
6596else
6597  ac_cv_func_setpgrp_void=yes
6598fi
6599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6600  conftest.$ac_objext conftest.beam conftest.$ac_ext
6601fi
6602
6603fi
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
6605$as_echo "$ac_cv_func_setpgrp_void" >&6; }
6606if test $ac_cv_func_setpgrp_void = yes; then
6607
6608$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
6609
6610fi
6611
6612else
6613  ac_cv_func_setpgrp_void=yes
6614fi
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
6616$as_echo_n "checking for working strcoll... " >&6; }
6617if ${ac_cv_func_strcoll_works+:} false; then :
6618  $as_echo_n "(cached) " >&6
6619else
6620  if test "$cross_compiling" = yes; then :
6621  ac_cv_func_strcoll_works=no
6622else
6623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h.  */
6625$ac_includes_default
6626int
6627main ()
6628{
6629return (strcoll ("abc", "def") >= 0 ||
6630	 strcoll ("ABC", "DEF") >= 0 ||
6631	 strcoll ("123", "456") >= 0)
6632  ;
6633  return 0;
6634}
6635_ACEOF
6636if ac_fn_c_try_run "$LINENO"; then :
6637  ac_cv_func_strcoll_works=yes
6638else
6639  ac_cv_func_strcoll_works=no
6640fi
6641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6642  conftest.$ac_objext conftest.beam conftest.$ac_ext
6643fi
6644
6645fi
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
6647$as_echo "$ac_cv_func_strcoll_works" >&6; }
6648if test $ac_cv_func_strcoll_works = yes; then
6649
6650$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
6651
6652fi
6653
6654
6655
6656
6657
6658if test "$have_setlocale" != no; then
6659  # Check whether --enable-nls was given.
6660if test "${enable_nls+set}" = set; then :
6661  enableval=$enable_nls;
6662else
6663  enable_nls=yes
6664fi
6665
6666  if test "x$enable_nls" != xno; then
6667
6668$as_echo "#define NLS 1" >>confdefs.h
6669
6670  fi
6671fi
6672
6673if test "x$enable_nls" != xno -a "$have_catgets" != no -a -n "$GENCAT" ; then
6674  # Check whether --enable-nls-catalogs was given.
6675if test "${enable_nls_catalogs+set}" = set; then :
6676  enableval=$enable_nls_catalogs;
6677else
6678  enable_nls_catalogs=yes
6679fi
6680
6681  if test "x$enable_nls_catalogs" != xno; then
6682    BUILD_CATALOGS="yes"
6683
6684$as_echo "#define NLS_CATALOGS 1" >>confdefs.h
6685
6686  fi
6687fi
6688
6689
6690# Check whether --with-hesiod was given.
6691if test "${with_hesiod+set}" = set; then :
6692  withval=$with_hesiod; hesiod="$withval"
6693else
6694  hesiod=no
6695fi
6696
6697if test "$hesiod" != no; then
6698  HESLIB="-lhesiod"
6699  ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
6700if test "x$ac_cv_func_res_send" = xyes; then :
6701  :
6702else
6703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
6704$as_echo_n "checking for res_send in -lresolv... " >&6; }
6705if ${ac_cv_lib_resolv_res_send+:} false; then :
6706  $as_echo_n "(cached) " >&6
6707else
6708  ac_check_lib_save_LIBS=$LIBS
6709LIBS="-lresolv  $LIBS"
6710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711/* end confdefs.h.  */
6712
6713/* Override any GCC internal prototype to avoid an error.
6714   Use char because int might match the return type of a GCC
6715   builtin and then its argument prototype would still apply.  */
6716#ifdef __cplusplus
6717extern "C"
6718#endif
6719char res_send ();
6720int
6721main ()
6722{
6723return res_send ();
6724  ;
6725  return 0;
6726}
6727_ACEOF
6728if ac_fn_c_try_link "$LINENO"; then :
6729  ac_cv_lib_resolv_res_send=yes
6730else
6731  ac_cv_lib_resolv_res_send=no
6732fi
6733rm -f core conftest.err conftest.$ac_objext \
6734    conftest$ac_exeext conftest.$ac_ext
6735LIBS=$ac_check_lib_save_LIBS
6736fi
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
6738$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
6739if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
6740  HESLIB="$HESLIB -lresolv"
6741fi
6742
6743fi
6744
6745  HESDEF=-DHESIOD
6746  if test "$hesiod" != yes; then
6747    HESDEF="$HESDEF -I$hesiod/include"
6748    HESLIB="-L$hesiod/lib $HESLIB"
6749  fi
6750fi
6751
6752
6753
6754
6755ac_config_files="$ac_config_files Makefile nls/Makefile"
6756
6757cat >confcache <<\_ACEOF
6758# This file is a shell script that caches the results of configure
6759# tests run on this system so they can be shared between configure
6760# scripts and configure runs, see configure's option --config-cache.
6761# It is not useful on other systems.  If it contains results you don't
6762# want to keep, you may remove or edit it.
6763#
6764# config.status only pays attention to the cache file if you give it
6765# the --recheck option to rerun configure.
6766#
6767# `ac_cv_env_foo' variables (set or unset) will be overridden when
6768# loading this file, other *unset* `ac_cv_foo' will be assigned the
6769# following values.
6770
6771_ACEOF
6772
6773# The following way of writing the cache mishandles newlines in values,
6774# but we know of no workaround that is simple, portable, and efficient.
6775# So, we kill variables containing newlines.
6776# Ultrix sh set writes to stderr and can't be redirected directly,
6777# and sets the high bit in the cache file unless we assign to the vars.
6778(
6779  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6780    eval ac_val=\$$ac_var
6781    case $ac_val in #(
6782    *${as_nl}*)
6783      case $ac_var in #(
6784      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6785$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6786      esac
6787      case $ac_var in #(
6788      _ | IFS | as_nl) ;; #(
6789      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6790      *) { eval $ac_var=; unset $ac_var;} ;;
6791      esac ;;
6792    esac
6793  done
6794
6795  (set) 2>&1 |
6796    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6797    *${as_nl}ac_space=\ *)
6798      # `set' does not quote correctly, so add quotes: double-quote
6799      # substitution turns \\\\ into \\, and sed turns \\ into \.
6800      sed -n \
6801	"s/'/'\\\\''/g;
6802	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6803      ;; #(
6804    *)
6805      # `set' quotes correctly as required by POSIX, so do not add quotes.
6806      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6807      ;;
6808    esac |
6809    sort
6810) |
6811  sed '
6812     /^ac_cv_env_/b end
6813     t clear
6814     :clear
6815     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6816     t end
6817     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6818     :end' >>confcache
6819if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6820  if test -w "$cache_file"; then
6821    if test "x$cache_file" != "x/dev/null"; then
6822      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6823$as_echo "$as_me: updating cache $cache_file" >&6;}
6824      if test ! -f "$cache_file" || test -h "$cache_file"; then
6825	cat confcache >"$cache_file"
6826      else
6827        case $cache_file in #(
6828        */* | ?:*)
6829	  mv -f confcache "$cache_file"$$ &&
6830	  mv -f "$cache_file"$$ "$cache_file" ;; #(
6831        *)
6832	  mv -f confcache "$cache_file" ;;
6833	esac
6834      fi
6835    fi
6836  else
6837    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6838$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6839  fi
6840fi
6841rm -f confcache
6842
6843test "x$prefix" = xNONE && prefix=$ac_default_prefix
6844# Let make expand exec_prefix.
6845test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6846
6847DEFS=-DHAVE_CONFIG_H
6848
6849ac_libobjs=
6850ac_ltlibobjs=
6851U=
6852for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6853  # 1. Remove the extension, and $U if already installed.
6854  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6855  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6856  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6857  #    will be set to the directory where LIBOBJS objects are built.
6858  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6859  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6860done
6861LIBOBJS=$ac_libobjs
6862
6863LTLIBOBJS=$ac_ltlibobjs
6864
6865
6866
6867: "${CONFIG_STATUS=./config.status}"
6868ac_write_fail=0
6869ac_clean_files_save=$ac_clean_files
6870ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6872$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6873as_write_fail=0
6874cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6875#! $SHELL
6876# Generated by $as_me.
6877# Run this file to recreate the current configuration.
6878# Compiler output produced by configure, useful for debugging
6879# configure, is in config.log if it exists.
6880
6881debug=false
6882ac_cs_recheck=false
6883ac_cs_silent=false
6884
6885SHELL=\${CONFIG_SHELL-$SHELL}
6886export SHELL
6887_ASEOF
6888cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6889## -------------------- ##
6890## M4sh Initialization. ##
6891## -------------------- ##
6892
6893# Be more Bourne compatible
6894DUALCASE=1; export DUALCASE # for MKS sh
6895if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6896  emulate sh
6897  NULLCMD=:
6898  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6899  # is contrary to our usage.  Disable this feature.
6900  alias -g '${1+"$@"}'='"$@"'
6901  setopt NO_GLOB_SUBST
6902else
6903  case `(set -o) 2>/dev/null` in #(
6904  *posix*) :
6905    set -o posix ;; #(
6906  *) :
6907     ;;
6908esac
6909fi
6910
6911
6912as_nl='
6913'
6914export as_nl
6915# Printing a long string crashes Solaris 7 /usr/bin/printf.
6916as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6917as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6918as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6919# Prefer a ksh shell builtin over an external printf program on Solaris,
6920# but without wasting forks for bash or zsh.
6921if test -z "$BASH_VERSION$ZSH_VERSION" \
6922    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6923  as_echo='print -r --'
6924  as_echo_n='print -rn --'
6925elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6926  as_echo='printf %s\n'
6927  as_echo_n='printf %s'
6928else
6929  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6930    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6931    as_echo_n='/usr/ucb/echo -n'
6932  else
6933    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6934    as_echo_n_body='eval
6935      arg=$1;
6936      case $arg in #(
6937      *"$as_nl"*)
6938	expr "X$arg" : "X\\(.*\\)$as_nl";
6939	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6940      esac;
6941      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6942    '
6943    export as_echo_n_body
6944    as_echo_n='sh -c $as_echo_n_body as_echo'
6945  fi
6946  export as_echo_body
6947  as_echo='sh -c $as_echo_body as_echo'
6948fi
6949
6950# The user is always right.
6951if test "${PATH_SEPARATOR+set}" != set; then
6952  PATH_SEPARATOR=:
6953  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6954    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6955      PATH_SEPARATOR=';'
6956  }
6957fi
6958
6959
6960# IFS
6961# We need space, tab and new line, in precisely that order.  Quoting is
6962# there to prevent editors from complaining about space-tab.
6963# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6964# splitting by setting IFS to empty value.)
6965IFS=" ""	$as_nl"
6966
6967# Find who we are.  Look in the path if we contain no directory separator.
6968as_myself=
6969case $0 in #((
6970  *[\\/]* ) as_myself=$0 ;;
6971  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974  IFS=$as_save_IFS
6975  test -z "$as_dir" && as_dir=.
6976    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6977  done
6978IFS=$as_save_IFS
6979
6980     ;;
6981esac
6982# We did not find ourselves, most probably we were run as `sh COMMAND'
6983# in which case we are not to be found in the path.
6984if test "x$as_myself" = x; then
6985  as_myself=$0
6986fi
6987if test ! -f "$as_myself"; then
6988  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6989  exit 1
6990fi
6991
6992# Unset variables that we do not need and which cause bugs (e.g. in
6993# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6994# suppresses any "Segmentation fault" message there.  '((' could
6995# trigger a bug in pdksh 5.2.14.
6996for as_var in BASH_ENV ENV MAIL MAILPATH
6997do eval test x\${$as_var+set} = xset \
6998  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6999done
7000PS1='$ '
7001PS2='> '
7002PS4='+ '
7003
7004# NLS nuisances.
7005LC_ALL=C
7006export LC_ALL
7007LANGUAGE=C
7008export LANGUAGE
7009
7010# CDPATH.
7011(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7012
7013
7014# as_fn_error STATUS ERROR [LINENO LOG_FD]
7015# ----------------------------------------
7016# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7017# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7018# script with STATUS, using 1 if that was 0.
7019as_fn_error ()
7020{
7021  as_status=$1; test $as_status -eq 0 && as_status=1
7022  if test "$4"; then
7023    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7024    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7025  fi
7026  $as_echo "$as_me: error: $2" >&2
7027  as_fn_exit $as_status
7028} # as_fn_error
7029
7030
7031# as_fn_set_status STATUS
7032# -----------------------
7033# Set $? to STATUS, without forking.
7034as_fn_set_status ()
7035{
7036  return $1
7037} # as_fn_set_status
7038
7039# as_fn_exit STATUS
7040# -----------------
7041# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7042as_fn_exit ()
7043{
7044  set +e
7045  as_fn_set_status $1
7046  exit $1
7047} # as_fn_exit
7048
7049# as_fn_unset VAR
7050# ---------------
7051# Portably unset VAR.
7052as_fn_unset ()
7053{
7054  { eval $1=; unset $1;}
7055}
7056as_unset=as_fn_unset
7057# as_fn_append VAR VALUE
7058# ----------------------
7059# Append the text in VALUE to the end of the definition contained in VAR. Take
7060# advantage of any shell optimizations that allow amortized linear growth over
7061# repeated appends, instead of the typical quadratic growth present in naive
7062# implementations.
7063if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7064  eval 'as_fn_append ()
7065  {
7066    eval $1+=\$2
7067  }'
7068else
7069  as_fn_append ()
7070  {
7071    eval $1=\$$1\$2
7072  }
7073fi # as_fn_append
7074
7075# as_fn_arith ARG...
7076# ------------------
7077# Perform arithmetic evaluation on the ARGs, and store the result in the
7078# global $as_val. Take advantage of shells that can avoid forks. The arguments
7079# must be portable across $(()) and expr.
7080if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7081  eval 'as_fn_arith ()
7082  {
7083    as_val=$(( $* ))
7084  }'
7085else
7086  as_fn_arith ()
7087  {
7088    as_val=`expr "$@" || test $? -eq 1`
7089  }
7090fi # as_fn_arith
7091
7092
7093if expr a : '\(a\)' >/dev/null 2>&1 &&
7094   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7095  as_expr=expr
7096else
7097  as_expr=false
7098fi
7099
7100if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7101  as_basename=basename
7102else
7103  as_basename=false
7104fi
7105
7106if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7107  as_dirname=dirname
7108else
7109  as_dirname=false
7110fi
7111
7112as_me=`$as_basename -- "$0" ||
7113$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7114	 X"$0" : 'X\(//\)$' \| \
7115	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7116$as_echo X/"$0" |
7117    sed '/^.*\/\([^/][^/]*\)\/*$/{
7118	    s//\1/
7119	    q
7120	  }
7121	  /^X\/\(\/\/\)$/{
7122	    s//\1/
7123	    q
7124	  }
7125	  /^X\/\(\/\).*/{
7126	    s//\1/
7127	    q
7128	  }
7129	  s/.*/./; q'`
7130
7131# Avoid depending upon Character Ranges.
7132as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7133as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7134as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7135as_cr_digits='0123456789'
7136as_cr_alnum=$as_cr_Letters$as_cr_digits
7137
7138ECHO_C= ECHO_N= ECHO_T=
7139case `echo -n x` in #(((((
7140-n*)
7141  case `echo 'xy\c'` in
7142  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7143  xy)  ECHO_C='\c';;
7144  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7145       ECHO_T='	';;
7146  esac;;
7147*)
7148  ECHO_N='-n';;
7149esac
7150
7151rm -f conf$$ conf$$.exe conf$$.file
7152if test -d conf$$.dir; then
7153  rm -f conf$$.dir/conf$$.file
7154else
7155  rm -f conf$$.dir
7156  mkdir conf$$.dir 2>/dev/null
7157fi
7158if (echo >conf$$.file) 2>/dev/null; then
7159  if ln -s conf$$.file conf$$ 2>/dev/null; then
7160    as_ln_s='ln -s'
7161    # ... but there are two gotchas:
7162    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7163    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7164    # In both cases, we have to default to `cp -p'.
7165    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7166      as_ln_s='cp -p'
7167  elif ln conf$$.file conf$$ 2>/dev/null; then
7168    as_ln_s=ln
7169  else
7170    as_ln_s='cp -p'
7171  fi
7172else
7173  as_ln_s='cp -p'
7174fi
7175rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7176rmdir conf$$.dir 2>/dev/null
7177
7178
7179# as_fn_mkdir_p
7180# -------------
7181# Create "$as_dir" as a directory, including parents if necessary.
7182as_fn_mkdir_p ()
7183{
7184
7185  case $as_dir in #(
7186  -*) as_dir=./$as_dir;;
7187  esac
7188  test -d "$as_dir" || eval $as_mkdir_p || {
7189    as_dirs=
7190    while :; do
7191      case $as_dir in #(
7192      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7193      *) as_qdir=$as_dir;;
7194      esac
7195      as_dirs="'$as_qdir' $as_dirs"
7196      as_dir=`$as_dirname -- "$as_dir" ||
7197$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7198	 X"$as_dir" : 'X\(//\)[^/]' \| \
7199	 X"$as_dir" : 'X\(//\)$' \| \
7200	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7201$as_echo X"$as_dir" |
7202    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7203	    s//\1/
7204	    q
7205	  }
7206	  /^X\(\/\/\)[^/].*/{
7207	    s//\1/
7208	    q
7209	  }
7210	  /^X\(\/\/\)$/{
7211	    s//\1/
7212	    q
7213	  }
7214	  /^X\(\/\).*/{
7215	    s//\1/
7216	    q
7217	  }
7218	  s/.*/./; q'`
7219      test -d "$as_dir" && break
7220    done
7221    test -z "$as_dirs" || eval "mkdir $as_dirs"
7222  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7223
7224
7225} # as_fn_mkdir_p
7226if mkdir -p . 2>/dev/null; then
7227  as_mkdir_p='mkdir -p "$as_dir"'
7228else
7229  test -d ./-p && rmdir ./-p
7230  as_mkdir_p=false
7231fi
7232
7233if test -x / >/dev/null 2>&1; then
7234  as_test_x='test -x'
7235else
7236  if ls -dL / >/dev/null 2>&1; then
7237    as_ls_L_option=L
7238  else
7239    as_ls_L_option=
7240  fi
7241  as_test_x='
7242    eval sh -c '\''
7243      if test -d "$1"; then
7244	test -d "$1/.";
7245      else
7246	case $1 in #(
7247	-*)set "./$1";;
7248	esac;
7249	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7250	???[sx]*):;;*)false;;esac;fi
7251    '\'' sh
7252  '
7253fi
7254as_executable_p=$as_test_x
7255
7256# Sed expression to map a string onto a valid CPP name.
7257as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7258
7259# Sed expression to map a string onto a valid variable name.
7260as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7261
7262
7263exec 6>&1
7264## ----------------------------------- ##
7265## Main body of $CONFIG_STATUS script. ##
7266## ----------------------------------- ##
7267_ASEOF
7268test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7269
7270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7271# Save the log message, to keep $0 and so on meaningful, and to
7272# report actual input values of CONFIG_FILES etc. instead of their
7273# values after options handling.
7274ac_log="
7275This file was extended by tcsh $as_me 6.18.01, which was
7276generated by GNU Autoconf 2.68.  Invocation command line was
7277
7278  CONFIG_FILES    = $CONFIG_FILES
7279  CONFIG_HEADERS  = $CONFIG_HEADERS
7280  CONFIG_LINKS    = $CONFIG_LINKS
7281  CONFIG_COMMANDS = $CONFIG_COMMANDS
7282  $ $0 $@
7283
7284on `(hostname || uname -n) 2>/dev/null | sed 1q`
7285"
7286
7287_ACEOF
7288
7289case $ac_config_files in *"
7290"*) set x $ac_config_files; shift; ac_config_files=$*;;
7291esac
7292
7293case $ac_config_headers in *"
7294"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7295esac
7296
7297
7298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7299# Files that config.status was made for.
7300config_files="$ac_config_files"
7301config_headers="$ac_config_headers"
7302config_commands="$ac_config_commands"
7303
7304_ACEOF
7305
7306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7307ac_cs_usage="\
7308\`$as_me' instantiates files and other configuration actions
7309from templates according to the current configuration.  Unless the files
7310and actions are specified as TAGs, all are instantiated by default.
7311
7312Usage: $0 [OPTION]... [TAG]...
7313
7314  -h, --help       print this help, then exit
7315  -V, --version    print version number and configuration settings, then exit
7316      --config     print configuration, then exit
7317  -q, --quiet, --silent
7318                   do not print progress messages
7319  -d, --debug      don't remove temporary files
7320      --recheck    update $as_me by reconfiguring in the same conditions
7321      --file=FILE[:TEMPLATE]
7322                   instantiate the configuration file FILE
7323      --header=FILE[:TEMPLATE]
7324                   instantiate the configuration header FILE
7325
7326Configuration files:
7327$config_files
7328
7329Configuration headers:
7330$config_headers
7331
7332Configuration commands:
7333$config_commands
7334
7335Report bugs to <http://bugs.gw.com/>."
7336
7337_ACEOF
7338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7339ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7340ac_cs_version="\\
7341tcsh config.status 6.18.01
7342configured by $0, generated by GNU Autoconf 2.68,
7343  with options \\"\$ac_cs_config\\"
7344
7345Copyright (C) 2010 Free Software Foundation, Inc.
7346This config.status script is free software; the Free Software Foundation
7347gives unlimited permission to copy, distribute and modify it."
7348
7349ac_pwd='$ac_pwd'
7350srcdir='$srcdir'
7351INSTALL='$INSTALL'
7352test -n "\$AWK" || AWK=awk
7353_ACEOF
7354
7355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7356# The default lists apply if the user does not specify any file.
7357ac_need_defaults=:
7358while test $# != 0
7359do
7360  case $1 in
7361  --*=?*)
7362    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7363    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7364    ac_shift=:
7365    ;;
7366  --*=)
7367    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7368    ac_optarg=
7369    ac_shift=:
7370    ;;
7371  *)
7372    ac_option=$1
7373    ac_optarg=$2
7374    ac_shift=shift
7375    ;;
7376  esac
7377
7378  case $ac_option in
7379  # Handling of the options.
7380  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7381    ac_cs_recheck=: ;;
7382  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7383    $as_echo "$ac_cs_version"; exit ;;
7384  --config | --confi | --conf | --con | --co | --c )
7385    $as_echo "$ac_cs_config"; exit ;;
7386  --debug | --debu | --deb | --de | --d | -d )
7387    debug=: ;;
7388  --file | --fil | --fi | --f )
7389    $ac_shift
7390    case $ac_optarg in
7391    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7392    '') as_fn_error $? "missing file argument" ;;
7393    esac
7394    as_fn_append CONFIG_FILES " '$ac_optarg'"
7395    ac_need_defaults=false;;
7396  --header | --heade | --head | --hea )
7397    $ac_shift
7398    case $ac_optarg in
7399    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7400    esac
7401    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7402    ac_need_defaults=false;;
7403  --he | --h)
7404    # Conflict between --help and --header
7405    as_fn_error $? "ambiguous option: \`$1'
7406Try \`$0 --help' for more information.";;
7407  --help | --hel | -h )
7408    $as_echo "$ac_cs_usage"; exit ;;
7409  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7410  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7411    ac_cs_silent=: ;;
7412
7413  # This is an error.
7414  -*) as_fn_error $? "unrecognized option: \`$1'
7415Try \`$0 --help' for more information." ;;
7416
7417  *) as_fn_append ac_config_targets " $1"
7418     ac_need_defaults=false ;;
7419
7420  esac
7421  shift
7422done
7423
7424ac_configure_extra_args=
7425
7426if $ac_cs_silent; then
7427  exec 6>/dev/null
7428  ac_configure_extra_args="$ac_configure_extra_args --silent"
7429fi
7430
7431_ACEOF
7432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7433if \$ac_cs_recheck; then
7434  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7435  shift
7436  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7437  CONFIG_SHELL='$SHELL'
7438  export CONFIG_SHELL
7439  exec "\$@"
7440fi
7441
7442_ACEOF
7443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7444exec 5>>config.log
7445{
7446  echo
7447  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7448## Running $as_me. ##
7449_ASBOX
7450  $as_echo "$ac_log"
7451} >&5
7452
7453_ACEOF
7454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7455#
7456# INIT-COMMANDS
7457#
7458
7459
7460_ACEOF
7461
7462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7463
7464# Handling of arguments.
7465for ac_config_target in $ac_config_targets
7466do
7467  case $ac_config_target in
7468    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7469    "./atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS ./atconfig" ;;
7470    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7471    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
7472
7473  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7474  esac
7475done
7476
7477
7478# If the user did not use the arguments to specify the items to instantiate,
7479# then the envvar interface is used.  Set only those that are not.
7480# We use the long form for the default assignment because of an extremely
7481# bizarre bug on SunOS 4.1.3.
7482if $ac_need_defaults; then
7483  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7484  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7485  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7486fi
7487
7488# Have a temporary directory for convenience.  Make it in the build tree
7489# simply because there is no reason against having it here, and in addition,
7490# creating and moving files from /tmp can sometimes cause problems.
7491# Hook for its removal unless debugging.
7492# Note that there is a small window in which the directory will not be cleaned:
7493# after its creation but before its name has been assigned to `$tmp'.
7494$debug ||
7495{
7496  tmp= ac_tmp=
7497  trap 'exit_status=$?
7498  : "${ac_tmp:=$tmp}"
7499  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7500' 0
7501  trap 'as_fn_exit 1' 1 2 13 15
7502}
7503# Create a (secure) tmp directory for tmp files.
7504
7505{
7506  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7507  test -d "$tmp"
7508}  ||
7509{
7510  tmp=./conf$$-$RANDOM
7511  (umask 077 && mkdir "$tmp")
7512} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7513ac_tmp=$tmp
7514
7515# Set up the scripts for CONFIG_FILES section.
7516# No need to generate them if there are no CONFIG_FILES.
7517# This happens for instance with `./config.status config.h'.
7518if test -n "$CONFIG_FILES"; then
7519
7520
7521ac_cr=`echo X | tr X '\015'`
7522# On cygwin, bash can eat \r inside `` if the user requested igncr.
7523# But we know of no other shell where ac_cr would be empty at this
7524# point, so we can use a bashism as a fallback.
7525if test "x$ac_cr" = x; then
7526  eval ac_cr=\$\'\\r\'
7527fi
7528ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7529if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7530  ac_cs_awk_cr='\\r'
7531else
7532  ac_cs_awk_cr=$ac_cr
7533fi
7534
7535echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7536_ACEOF
7537
7538
7539{
7540  echo "cat >conf$$subs.awk <<_ACEOF" &&
7541  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7542  echo "_ACEOF"
7543} >conf$$subs.sh ||
7544  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7545ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7546ac_delim='%!_!# '
7547for ac_last_try in false false false false false :; do
7548  . ./conf$$subs.sh ||
7549    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7550
7551  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7552  if test $ac_delim_n = $ac_delim_num; then
7553    break
7554  elif $ac_last_try; then
7555    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7556  else
7557    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7558  fi
7559done
7560rm -f conf$$subs.sh
7561
7562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7563cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7564_ACEOF
7565sed -n '
7566h
7567s/^/S["/; s/!.*/"]=/
7568p
7569g
7570s/^[^!]*!//
7571:repl
7572t repl
7573s/'"$ac_delim"'$//
7574t delim
7575:nl
7576h
7577s/\(.\{148\}\)..*/\1/
7578t more1
7579s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7580p
7581n
7582b repl
7583:more1
7584s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7585p
7586g
7587s/.\{148\}//
7588t nl
7589:delim
7590h
7591s/\(.\{148\}\)..*/\1/
7592t more2
7593s/["\\]/\\&/g; s/^/"/; s/$/"/
7594p
7595b
7596:more2
7597s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7598p
7599g
7600s/.\{148\}//
7601t delim
7602' <conf$$subs.awk | sed '
7603/^[^""]/{
7604  N
7605  s/\n//
7606}
7607' >>$CONFIG_STATUS || ac_write_fail=1
7608rm -f conf$$subs.awk
7609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7610_ACAWK
7611cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7612  for (key in S) S_is_set[key] = 1
7613  FS = ""
7614
7615}
7616{
7617  line = $ 0
7618  nfields = split(line, field, "@")
7619  substed = 0
7620  len = length(field[1])
7621  for (i = 2; i < nfields; i++) {
7622    key = field[i]
7623    keylen = length(key)
7624    if (S_is_set[key]) {
7625      value = S[key]
7626      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7627      len += length(value) + length(field[++i])
7628      substed = 1
7629    } else
7630      len += 1 + keylen
7631  }
7632
7633  print line
7634}
7635
7636_ACAWK
7637_ACEOF
7638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7639if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7640  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7641else
7642  cat
7643fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7644  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7645_ACEOF
7646
7647# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7648# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7649# trailing colons and then remove the whole line if VPATH becomes empty
7650# (actually we leave an empty line to preserve line numbers).
7651if test "x$srcdir" = x.; then
7652  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
7653h
7654s///
7655s/^/:/
7656s/[	 ]*$/:/
7657s/:\$(srcdir):/:/g
7658s/:\${srcdir}:/:/g
7659s/:@srcdir@:/:/g
7660s/^:*//
7661s/:*$//
7662x
7663s/\(=[	 ]*\).*/\1/
7664G
7665s/\n//
7666s/^[^=]*=[	 ]*$//
7667}'
7668fi
7669
7670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7671fi # test -n "$CONFIG_FILES"
7672
7673# Set up the scripts for CONFIG_HEADERS section.
7674# No need to generate them if there are no CONFIG_HEADERS.
7675# This happens for instance with `./config.status Makefile'.
7676if test -n "$CONFIG_HEADERS"; then
7677cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7678BEGIN {
7679_ACEOF
7680
7681# Transform confdefs.h into an awk script `defines.awk', embedded as
7682# here-document in config.status, that substitutes the proper values into
7683# config.h.in to produce config.h.
7684
7685# Create a delimiter string that does not exist in confdefs.h, to ease
7686# handling of long lines.
7687ac_delim='%!_!# '
7688for ac_last_try in false false :; do
7689  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7690  if test -z "$ac_tt"; then
7691    break
7692  elif $ac_last_try; then
7693    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7694  else
7695    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7696  fi
7697done
7698
7699# For the awk script, D is an array of macro values keyed by name,
7700# likewise P contains macro parameters if any.  Preserve backslash
7701# newline sequences.
7702
7703ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7704sed -n '
7705s/.\{148\}/&'"$ac_delim"'/g
7706t rset
7707:rset
7708s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
7709t def
7710d
7711:def
7712s/\\$//
7713t bsnl
7714s/["\\]/\\&/g
7715s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7716D["\1"]=" \3"/p
7717s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
7718d
7719:bsnl
7720s/["\\]/\\&/g
7721s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7722D["\1"]=" \3\\\\\\n"\\/p
7723t cont
7724s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7725t cont
7726d
7727:cont
7728n
7729s/.\{148\}/&'"$ac_delim"'/g
7730t clear
7731:clear
7732s/\\$//
7733t bsnlc
7734s/["\\]/\\&/g; s/^/"/; s/$/"/p
7735d
7736:bsnlc
7737s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7738b cont
7739' <confdefs.h | sed '
7740s/'"$ac_delim"'/"\\\
7741"/g' >>$CONFIG_STATUS || ac_write_fail=1
7742
7743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7744  for (key in D) D_is_set[key] = 1
7745  FS = ""
7746}
7747/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7748  line = \$ 0
7749  split(line, arg, " ")
7750  if (arg[1] == "#") {
7751    defundef = arg[2]
7752    mac1 = arg[3]
7753  } else {
7754    defundef = substr(arg[1], 2)
7755    mac1 = arg[2]
7756  }
7757  split(mac1, mac2, "(") #)
7758  macro = mac2[1]
7759  prefix = substr(line, 1, index(line, defundef) - 1)
7760  if (D_is_set[macro]) {
7761    # Preserve the white space surrounding the "#".
7762    print prefix "define", macro P[macro] D[macro]
7763    next
7764  } else {
7765    # Replace #undef with comments.  This is necessary, for example,
7766    # in the case of _POSIX_SOURCE, which is predefined and required
7767    # on some systems where configure will not decide to define it.
7768    if (defundef == "undef") {
7769      print "/*", prefix defundef, macro, "*/"
7770      next
7771    }
7772  }
7773}
7774{ print }
7775_ACAWK
7776_ACEOF
7777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7778  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7779fi # test -n "$CONFIG_HEADERS"
7780
7781
7782eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
7783shift
7784for ac_tag
7785do
7786  case $ac_tag in
7787  :[FHLC]) ac_mode=$ac_tag; continue;;
7788  esac
7789  case $ac_mode$ac_tag in
7790  :[FHL]*:*);;
7791  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7792  :[FH]-) ac_tag=-:-;;
7793  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7794  esac
7795  ac_save_IFS=$IFS
7796  IFS=:
7797  set x $ac_tag
7798  IFS=$ac_save_IFS
7799  shift
7800  ac_file=$1
7801  shift
7802
7803  case $ac_mode in
7804  :L) ac_source=$1;;
7805  :[FH])
7806    ac_file_inputs=
7807    for ac_f
7808    do
7809      case $ac_f in
7810      -) ac_f="$ac_tmp/stdin";;
7811      *) # Look for the file first in the build tree, then in the source tree
7812	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7813	 # because $ac_f cannot contain `:'.
7814	 test -f "$ac_f" ||
7815	   case $ac_f in
7816	   [\\/$]*) false;;
7817	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7818	   esac ||
7819	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7820      esac
7821      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7822      as_fn_append ac_file_inputs " '$ac_f'"
7823    done
7824
7825    # Let's still pretend it is `configure' which instantiates (i.e., don't
7826    # use $as_me), people would be surprised to read:
7827    #    /* config.h.  Generated by config.status.  */
7828    configure_input='Generated from '`
7829	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7830	`' by configure.'
7831    if test x"$ac_file" != x-; then
7832      configure_input="$ac_file.  $configure_input"
7833      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7834$as_echo "$as_me: creating $ac_file" >&6;}
7835    fi
7836    # Neutralize special characters interpreted by sed in replacement strings.
7837    case $configure_input in #(
7838    *\&* | *\|* | *\\* )
7839       ac_sed_conf_input=`$as_echo "$configure_input" |
7840       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7841    *) ac_sed_conf_input=$configure_input;;
7842    esac
7843
7844    case $ac_tag in
7845    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7846      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7847    esac
7848    ;;
7849  esac
7850
7851  ac_dir=`$as_dirname -- "$ac_file" ||
7852$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7853	 X"$ac_file" : 'X\(//\)[^/]' \| \
7854	 X"$ac_file" : 'X\(//\)$' \| \
7855	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7856$as_echo X"$ac_file" |
7857    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7858	    s//\1/
7859	    q
7860	  }
7861	  /^X\(\/\/\)[^/].*/{
7862	    s//\1/
7863	    q
7864	  }
7865	  /^X\(\/\/\)$/{
7866	    s//\1/
7867	    q
7868	  }
7869	  /^X\(\/\).*/{
7870	    s//\1/
7871	    q
7872	  }
7873	  s/.*/./; q'`
7874  as_dir="$ac_dir"; as_fn_mkdir_p
7875  ac_builddir=.
7876
7877case "$ac_dir" in
7878.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7879*)
7880  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7881  # A ".." for each directory in $ac_dir_suffix.
7882  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7883  case $ac_top_builddir_sub in
7884  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7885  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7886  esac ;;
7887esac
7888ac_abs_top_builddir=$ac_pwd
7889ac_abs_builddir=$ac_pwd$ac_dir_suffix
7890# for backward compatibility:
7891ac_top_builddir=$ac_top_build_prefix
7892
7893case $srcdir in
7894  .)  # We are building in place.
7895    ac_srcdir=.
7896    ac_top_srcdir=$ac_top_builddir_sub
7897    ac_abs_top_srcdir=$ac_pwd ;;
7898  [\\/]* | ?:[\\/]* )  # Absolute name.
7899    ac_srcdir=$srcdir$ac_dir_suffix;
7900    ac_top_srcdir=$srcdir
7901    ac_abs_top_srcdir=$srcdir ;;
7902  *) # Relative name.
7903    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7904    ac_top_srcdir=$ac_top_build_prefix$srcdir
7905    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7906esac
7907ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7908
7909
7910  case $ac_mode in
7911  :F)
7912  #
7913  # CONFIG_FILE
7914  #
7915
7916  case $INSTALL in
7917  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7918  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7919  esac
7920_ACEOF
7921
7922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7923# If the template does not know about datarootdir, expand it.
7924# FIXME: This hack should be removed a few years after 2.60.
7925ac_datarootdir_hack=; ac_datarootdir_seen=
7926ac_sed_dataroot='
7927/datarootdir/ {
7928  p
7929  q
7930}
7931/@datadir@/p
7932/@docdir@/p
7933/@infodir@/p
7934/@localedir@/p
7935/@mandir@/p'
7936case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7937*datarootdir*) ac_datarootdir_seen=yes;;
7938*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7939  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7940$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7941_ACEOF
7942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7943  ac_datarootdir_hack='
7944  s&@datadir@&$datadir&g
7945  s&@docdir@&$docdir&g
7946  s&@infodir@&$infodir&g
7947  s&@localedir@&$localedir&g
7948  s&@mandir@&$mandir&g
7949  s&\\\${datarootdir}&$datarootdir&g' ;;
7950esac
7951_ACEOF
7952
7953# Neutralize VPATH when `$srcdir' = `.'.
7954# Shell code in configure.ac might set extrasub.
7955# FIXME: do we really want to maintain this feature?
7956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7957ac_sed_extra="$ac_vpsub
7958$extrasub
7959_ACEOF
7960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7961:t
7962/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7963s|@configure_input@|$ac_sed_conf_input|;t t
7964s&@top_builddir@&$ac_top_builddir_sub&;t t
7965s&@top_build_prefix@&$ac_top_build_prefix&;t t
7966s&@srcdir@&$ac_srcdir&;t t
7967s&@abs_srcdir@&$ac_abs_srcdir&;t t
7968s&@top_srcdir@&$ac_top_srcdir&;t t
7969s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7970s&@builddir@&$ac_builddir&;t t
7971s&@abs_builddir@&$ac_abs_builddir&;t t
7972s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7973s&@INSTALL@&$ac_INSTALL&;t t
7974$ac_datarootdir_hack
7975"
7976eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7977  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7978
7979test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7980  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7981  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
7982      "$ac_tmp/out"`; test -z "$ac_out"; } &&
7983  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7984which seems to be undefined.  Please make sure it is defined" >&5
7985$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7986which seems to be undefined.  Please make sure it is defined" >&2;}
7987
7988  rm -f "$ac_tmp/stdin"
7989  case $ac_file in
7990  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7991  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7992  esac \
7993  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7994 ;;
7995  :H)
7996  #
7997  # CONFIG_HEADER
7998  #
7999  if test x"$ac_file" != x-; then
8000    {
8001      $as_echo "/* $configure_input  */" \
8002      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8003    } >"$ac_tmp/config.h" \
8004      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8005    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8006      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8007$as_echo "$as_me: $ac_file is unchanged" >&6;}
8008    else
8009      rm -f "$ac_file"
8010      mv "$ac_tmp/config.h" "$ac_file" \
8011	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8012    fi
8013  else
8014    $as_echo "/* $configure_input  */" \
8015      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8016      || as_fn_error $? "could not create -" "$LINENO" 5
8017  fi
8018 ;;
8019
8020  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8021$as_echo "$as_me: executing $ac_file commands" >&6;}
8022 ;;
8023  esac
8024
8025
8026  case $ac_file$ac_mode in
8027    "./atconfig":C) cat >./atconfig <<ATEOF
8028# Configurable variable values for building test suites.
8029# Generated by $0.
8030# Copyright (C) 2010 Free Software Foundation, Inc.
8031
8032# The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
8033at_testdir='.'
8034abs_builddir='$ac_abs_builddir'
8035at_srcdir='$ac_srcdir'
8036abs_srcdir='$ac_abs_srcdir'
8037at_top_srcdir='$ac_top_srcdir'
8038abs_top_srcdir='$ac_abs_top_srcdir'
8039at_top_build_prefix='$ac_top_build_prefix'
8040abs_top_builddir='$ac_abs_top_builddir'
8041
8042# Backward compatibility with Autotest <= 2.59b:
8043at_top_builddir=\$at_top_build_prefix
8044
8045AUTOTEST_PATH='.'
8046
8047SHELL=\${CONFIG_SHELL-'$SHELL'}
8048ATEOF
8049 ;;
8050
8051  esac
8052done # for ac_tag
8053
8054
8055as_fn_exit 0
8056_ACEOF
8057ac_clean_files=$ac_clean_files_save
8058
8059test $ac_write_fail = 0 ||
8060  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8061
8062
8063# configure is writing to config.log, and then calls config.status.
8064# config.status does its own redirection, appending to config.log.
8065# Unfortunately, on DOS this fails, as config.log is still kept open
8066# by configure, so config.status won't be able to write to it; its
8067# output is simply discarded.  So we exec the FD to /dev/null,
8068# effectively closing config.log, so it can be properly (re)opened and
8069# appended to by config.status.  When coming back to configure, we
8070# need to make the FD available again.
8071if test "$no_create" != yes; then
8072  ac_cs_success=:
8073  ac_config_status_args=
8074  test "$silent" = yes &&
8075    ac_config_status_args="$ac_config_status_args --quiet"
8076  exec 5>/dev/null
8077  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8078  exec 5>>config.log
8079  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8080  # would make configure fail if this is the last instruction.
8081  $ac_cs_success || as_fn_exit 1
8082fi
8083if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8084  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8085$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8086fi
8087
8088