~ubuntu-branches/ubuntu/maverick/texinfo/maverick

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2005-10-28 15:10:30 UTC
  • mto: (2.1.1 dapper) (3.1.4 hardy)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051028151030-9nsf2s2k2z3fktjt
Tags: upstream-4.8
ImportĀ upstreamĀ versionĀ 4.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by Autoconf 2.52.
 
3
# Generated by GNU Autoconf 2.59 for GNU Texinfo 4.8.
4
4
#
5
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6
 
# Free Software Foundation, Inc.
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Avoid depending upon Character Ranges.
11
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14
 
as_cr_digits='0123456789'
15
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
16
 
 
17
 
# Sed expression to map a string onto a valid variable name.
18
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
 
 
20
 
# Sed expression to map a string onto a valid CPP name.
21
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
22
11
 
23
12
# Be Bourne compatible
24
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25
14
  emulate sh
26
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
27
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28
20
  set -o posix
29
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
30
64
 
31
65
# Name of the executable.
32
 
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
33
193
 
34
194
if expr a : '\(a\)' >/dev/null 2>&1; then
35
195
  as_expr=expr
55
215
fi
56
216
rm -f conf$$ conf$$.exe conf$$.file
57
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
58
225
as_executable_p="test -f"
59
226
 
60
 
# Support unset when possible.
61
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62
 
  as_unset=unset
63
 
else
64
 
  as_unset=false
65
 
fi
66
 
 
67
 
# NLS nuisances.
68
 
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69
 
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70
 
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71
 
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72
 
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73
 
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74
 
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75
 
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
76
233
 
77
234
# IFS
78
235
# We need space, tab and new line, in precisely that order.
81
238
IFS="   $as_nl"
82
239
 
83
240
# CDPATH.
84
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
241
$as_unset CDPATH
 
242
 
85
243
 
86
244
# Name of the host.
87
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
94
252
# Initializations.
95
253
#
96
254
ac_default_prefix=/usr/local
 
255
ac_config_libobj_dir=.
97
256
cross_compiling=no
98
257
subdirs=
99
 
MFLAGS= MAKEFLAGS=
 
258
MFLAGS=
 
259
MAKEFLAGS=
100
260
SHELL=${CONFIG_SHELL-/bin/sh}
101
261
 
102
262
# Maximum number of lines to put in a shell here document.
104
264
# only ac_max_sed_lines should be used.
105
265
: ${ac_max_here_lines=38}
106
266
 
 
267
# Identity of this package.
 
268
PACKAGE_NAME='GNU Texinfo'
 
269
PACKAGE_TARNAME='texinfo'
 
270
PACKAGE_VERSION='4.8'
 
271
PACKAGE_STRING='GNU Texinfo 4.8'
 
272
PACKAGE_BUGREPORT=''
 
273
 
107
274
ac_unique_file="makeinfo/makeinfo.c"
108
275
# Factoring default headers for most tests.
109
276
ac_includes_default="\
142
309
# include <unistd.h>
143
310
#endif"
144
311
 
 
312
gl_header_list=
 
313
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB HELP2MAN ALLOCA LIBOBJS build build_cpu build_vendor build_os native_tools TOOLS_ONLY_TRUE TOOLS_ONLY_FALSE TERMLIBS host host_cpu host_vendor host_os INSTALL_WARNINGS_TRUE INSTALL_WARNINGS_FALSE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
 
314
ac_subst_files=''
 
315
 
145
316
# Initialize some variables set by options.
146
317
ac_init_help=
147
318
ac_init_version=false
180
351
infodir='${prefix}/info'
181
352
mandir='${prefix}/man'
182
353
 
183
 
# Identity of this package.
184
 
PACKAGE_NAME=
185
 
PACKAGE_TARNAME=
186
 
PACKAGE_VERSION=
187
 
PACKAGE_STRING=
188
 
PACKAGE_BUGREPORT=
189
 
 
190
354
ac_prev=
191
355
for ac_option
192
356
do
319
483
    with_fp=no ;;
320
484
 
321
485
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322
 
  | --no-cr | --no-c)
 
486
  | --no-cr | --no-c | -n)
323
487
    no_create=yes ;;
324
488
 
325
489
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
498
662
  eval ac_val=$`echo $ac_var`
499
663
  case $ac_val in
500
664
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501
 
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
665
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
502
666
   { (exit 1); exit 1; }; };;
503
667
  esac
504
668
done
505
669
 
506
670
# Be sure to have absolute paths.
507
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508
 
              localstatedir libdir includedir oldincludedir infodir mandir
 
672
              localstatedir libdir includedir oldincludedir infodir mandir
509
673
do
510
674
  eval ac_val=$`echo $ac_var`
511
675
  case $ac_val in
512
676
    [\\/$]* | ?:[\\/]* ) ;;
513
 
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
677
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
514
678
   { (exit 1); exit 1; }; };;
515
679
  esac
516
680
done
517
681
 
518
682
# There might be people who depend on the old broken behavior: `$host'
519
683
# used to hold the argument of --host etc.
 
684
# FIXME: To remove some day.
520
685
build=$build_alias
521
686
host=$host_alias
522
687
target=$target_alias
523
688
 
524
 
# FIXME: should be removed in autoconf 3.0.
 
689
# FIXME: To remove some day.
525
690
if test "x$host_alias" != x; then
526
691
  if test "x$build_alias" = x; then
527
692
    cross_compiling=maybe
537
702
 
538
703
test "$silent" = yes && exec 6>/dev/null
539
704
 
 
705
 
540
706
# Find the source files, if location was not specified.
541
707
if test -z "$srcdir"; then
542
708
  ac_srcdir_defaulted=yes
543
709
  # Try the directory containing this script, then its parent.
544
 
  ac_prog=$0
545
 
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
710
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
712
         X"$0" : 'X\(//\)[^/]' \| \
 
713
         X"$0" : 'X\(//\)$' \| \
 
714
         X"$0" : 'X\(/\)' \| \
 
715
         .     : '\(.\)' 2>/dev/null ||
 
716
echo X"$0" |
 
717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
718
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
719
          /^X\(\/\/\)$/{ s//\1/; q; }
 
720
          /^X\(\/\).*/{ s//\1/; q; }
 
721
          s/.*/./; q'`
547
722
  srcdir=$ac_confdir
548
723
  if test ! -r $srcdir/$ac_unique_file; then
549
724
    srcdir=..
553
728
fi
554
729
if test ! -r $srcdir/$ac_unique_file; then
555
730
  if test "$ac_srcdir_defaulted" = yes; then
556
 
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
 
731
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
557
732
   { (exit 1); exit 1; }; }
558
733
  else
559
 
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
 
734
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
560
735
   { (exit 1); exit 1; }; }
561
736
  fi
562
737
fi
 
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
739
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
740
   { (exit 1); exit 1; }; }
563
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564
742
ac_env_build_alias_set=${build_alias+set}
565
743
ac_env_build_alias_value=$build_alias
600
778
if test "$ac_init_help" = "long"; then
601
779
  # Omit some internal or obsolete options to make the list less imposing.
602
780
  # This message is too long to be a string in the A/UX 3.1 sh.
603
 
  cat <<EOF
604
 
\`configure' configures this package to adapt to many kinds of systems.
 
781
  cat <<_ACEOF
 
782
\`configure' configures GNU Texinfo 4.8 to adapt to many kinds of systems.
605
783
 
606
784
Usage: $0 [OPTION]... [VAR=VALUE]...
607
785
 
621
799
  -n, --no-create         do not create output files
622
800
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
623
801
 
624
 
EOF
 
802
_ACEOF
625
803
 
626
 
  cat <<EOF
 
804
  cat <<_ACEOF
627
805
Installation directories:
628
806
  --prefix=PREFIX         install architecture-independent files in PREFIX
629
 
                          [$ac_default_prefix]
 
807
                          [$ac_default_prefix]
630
808
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
631
 
                          [PREFIX]
 
809
                          [PREFIX]
632
810
 
633
811
By default, \`make install' will install all the files in
634
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
650
828
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
651
829
  --infodir=DIR          info documentation [PREFIX/info]
652
830
  --mandir=DIR           man documentation [PREFIX/man]
653
 
EOF
 
831
_ACEOF
654
832
 
655
 
  cat <<\EOF
 
833
  cat <<\_ACEOF
656
834
 
657
835
Program names:
658
836
  --program-prefix=PREFIX            prepend PREFIX to installed program names
661
839
 
662
840
System types:
663
841
  --build=BUILD     configure for building on BUILD [guessed]
664
 
  --host=HOST       build programs to run on HOST [BUILD]
665
 
EOF
 
842
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
843
_ACEOF
666
844
fi
667
845
 
668
846
if test -n "$ac_init_help"; then
669
 
 
670
 
  cat <<\EOF
 
847
  case $ac_init_help in
 
848
     short | recursive ) echo "Configuration of GNU Texinfo 4.8:";;
 
849
   esac
 
850
  cat <<\_ACEOF
671
851
 
672
852
Optional Features:
673
853
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
674
854
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
675
 
  --disable-dependency-tracking Speeds up one-time builds
676
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
855
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
856
                          (and sometimes confusing) to the casual installer
 
857
  --disable-dependency-tracking  speeds up one-time build
 
858
  --enable-dependency-tracking   do not reject slow dependency extractors
 
859
  --enable-multiplatform      put executables in bin/PLATFORM
 
860
  --disable-install-warnings  omit make install warnings about TeX files
677
861
  --disable-nls           do not use Native Language Support
 
862
  --disable-rpath         do not hardcode runtime library paths
678
863
 
679
864
Optional Packages:
680
865
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
681
866
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
682
867
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
683
 
  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
 
868
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
684
869
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
685
870
  --with-included-gettext use the GNU gettext library included here
686
 
  --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
 
871
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
687
872
  --without-libintl-prefix     don't search for libintl in includedir and libdir
688
873
 
689
874
Some influential environment variables:
698
883
Use these variables to override the choices made by `configure' or to help
699
884
it to find libraries and programs with nonstandard names/locations.
700
885
 
701
 
EOF
 
886
_ACEOF
702
887
fi
703
888
 
704
889
if test "$ac_init_help" = "recursive"; then
705
890
  # If there are subdirs, report their specific --help.
706
891
  ac_popdir=`pwd`
707
 
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
708
 
    cd $ac_subdir
709
 
    # A "../" for each directory in /$ac_subdir.
710
 
    ac_dots=`echo $ac_subdir |
711
 
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
712
 
 
713
 
    case $srcdir in
714
 
    .) # No --srcdir option.  We are building in place.
715
 
      ac_sub_srcdir=$srcdir ;;
716
 
    [\\/]* | ?:[\\/]* ) # Absolute path.
717
 
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
718
 
    *) # Relative path.
719
 
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
720
 
    esac
721
 
 
 
892
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
893
    test -d $ac_dir || continue
 
894
    ac_builddir=.
 
895
 
 
896
if test "$ac_dir" != .; then
 
897
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
898
  # A "../" for each directory in $ac_dir_suffix.
 
899
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
900
else
 
901
  ac_dir_suffix= ac_top_builddir=
 
902
fi
 
903
 
 
904
case $srcdir in
 
905
  .)  # No --srcdir option.  We are building in place.
 
906
    ac_srcdir=.
 
907
    if test -z "$ac_top_builddir"; then
 
908
       ac_top_srcdir=.
 
909
    else
 
910
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
911
    fi ;;
 
912
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
913
    ac_srcdir=$srcdir$ac_dir_suffix;
 
914
    ac_top_srcdir=$srcdir ;;
 
915
  *) # Relative path.
 
916
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
917
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
918
esac
 
919
 
 
920
# Do not use `cd foo && pwd` to compute absolute paths, because
 
921
# the directories may not exist.
 
922
case `pwd` in
 
923
.) ac_abs_builddir="$ac_dir";;
 
924
*)
 
925
  case "$ac_dir" in
 
926
  .) ac_abs_builddir=`pwd`;;
 
927
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
928
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
929
  esac;;
 
930
esac
 
931
case $ac_abs_builddir in
 
932
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
933
*)
 
934
  case ${ac_top_builddir}. in
 
935
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
936
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
937
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
938
  esac;;
 
939
esac
 
940
case $ac_abs_builddir in
 
941
.) ac_abs_srcdir=$ac_srcdir;;
 
942
*)
 
943
  case $ac_srcdir in
 
944
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
945
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
946
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
947
  esac;;
 
948
esac
 
949
case $ac_abs_builddir in
 
950
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
951
*)
 
952
  case $ac_top_srcdir in
 
953
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
954
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
955
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
956
  esac;;
 
957
esac
 
958
 
 
959
    cd $ac_dir
722
960
    # Check for guested configure; otherwise get Cygnus style configure.
723
 
    if test -f $ac_sub_srcdir/configure.gnu; then
724
 
      echo
725
 
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
726
 
    elif test -f $ac_sub_srcdir/configure; then
727
 
      echo
728
 
      $SHELL $ac_sub_srcdir/configure  --help=recursive
729
 
    elif test -f $ac_sub_srcdir/configure.ac ||
730
 
           test -f $ac_sub_srcdir/configure.in; then
 
961
    if test -f $ac_srcdir/configure.gnu; then
 
962
      echo
 
963
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
964
    elif test -f $ac_srcdir/configure; then
 
965
      echo
 
966
      $SHELL $ac_srcdir/configure  --help=recursive
 
967
    elif test -f $ac_srcdir/configure.ac ||
 
968
           test -f $ac_srcdir/configure.in; then
731
969
      echo
732
970
      $ac_configure --help
733
971
    else
734
 
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
 
972
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
735
973
    fi
736
974
    cd $ac_popdir
737
975
  done
739
977
 
740
978
test -n "$ac_init_help" && exit 0
741
979
if $ac_init_version; then
742
 
  cat <<\EOF
 
980
  cat <<\_ACEOF
 
981
GNU Texinfo configure 4.8
 
982
generated by GNU Autoconf 2.59
743
983
 
744
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
745
 
Free Software Foundation, Inc.
 
984
Copyright (C) 2003 Free Software Foundation, Inc.
746
985
This configure script is free software; the Free Software Foundation
747
986
gives unlimited permission to copy, distribute and modify it.
748
 
EOF
 
987
_ACEOF
749
988
  exit 0
750
989
fi
751
990
exec 5>config.log
752
 
cat >&5 <<EOF
 
991
cat >&5 <<_ACEOF
753
992
This file contains any messages produced by compilers while
754
993
running configure, to aid debugging if configure makes a mistake.
755
994
 
756
 
It was created by $as_me, which was
757
 
generated by GNU Autoconf 2.52.  Invocation command line was
 
995
It was created by GNU Texinfo $as_me 4.8, which was
 
996
generated by GNU Autoconf 2.59.  Invocation command line was
758
997
 
759
998
  $ $0 $@
760
999
 
761
 
EOF
 
1000
_ACEOF
762
1001
{
763
1002
cat <<_ASUNAME
764
 
## ---------- ##
765
 
## Platform.  ##
766
 
## ---------- ##
 
1003
## --------- ##
 
1004
## Platform. ##
 
1005
## --------- ##
767
1006
 
768
1007
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
769
1008
uname -m = `(uname -m) 2>/dev/null || echo unknown`
782
1021
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
783
1022
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
784
1023
 
785
 
PATH = $PATH
786
 
 
787
1024
_ASUNAME
 
1025
 
 
1026
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1027
for as_dir in $PATH
 
1028
do
 
1029
  IFS=$as_save_IFS
 
1030
  test -z "$as_dir" && as_dir=.
 
1031
  echo "PATH: $as_dir"
 
1032
done
 
1033
 
788
1034
} >&5
789
1035
 
790
 
cat >&5 <<EOF
791
 
## ------------ ##
792
 
## Core tests.  ##
793
 
## ------------ ##
794
 
 
795
 
EOF
 
1036
cat >&5 <<_ACEOF
 
1037
 
 
1038
 
 
1039
## ----------- ##
 
1040
## Core tests. ##
 
1041
## ----------- ##
 
1042
 
 
1043
_ACEOF
 
1044
 
796
1045
 
797
1046
# Keep a trace of the command line.
798
1047
# Strip out --no-create and --no-recursion so they do not pile up.
 
1048
# Strip out --silent because we don't want to record it for future runs.
799
1049
# Also quote any args containing shell meta-characters.
 
1050
# Make two passes to allow for proper duplicate-argument suppression.
800
1051
ac_configure_args=
 
1052
ac_configure_args0=
 
1053
ac_configure_args1=
801
1054
ac_sep=
802
 
for ac_arg
 
1055
ac_must_keep_next=false
 
1056
for ac_pass in 1 2
803
1057
do
804
 
  case $ac_arg in
805
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
806
 
  | --no-cr | --no-c) ;;
807
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
808
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
809
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
810
 
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
811
 
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
812
 
    ac_sep=" " ;;
813
 
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
814
 
     ac_sep=" " ;;
815
 
  esac
816
 
  # Get rid of the leading space.
 
1058
  for ac_arg
 
1059
  do
 
1060
    case $ac_arg in
 
1061
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1062
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1063
    | -silent | --silent | --silen | --sile | --sil)
 
1064
      continue ;;
 
1065
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1066
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1067
    esac
 
1068
    case $ac_pass in
 
1069
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1070
    2)
 
1071
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1072
      if test $ac_must_keep_next = true; then
 
1073
        ac_must_keep_next=false # Got value, back to normal.
 
1074
      else
 
1075
        case $ac_arg in
 
1076
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1077
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1078
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1079
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1080
            case "$ac_configure_args0 " in
 
1081
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1082
            esac
 
1083
            ;;
 
1084
          -* ) ac_must_keep_next=true ;;
 
1085
        esac
 
1086
      fi
 
1087
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1088
      # Get rid of the leading space.
 
1089
      ac_sep=" "
 
1090
      ;;
 
1091
    esac
 
1092
  done
817
1093
done
 
1094
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1095
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
818
1096
 
819
1097
# When interrupted or exit'd, cleanup temporary files, and complete
820
1098
# config.log.  We remove comments because anyway the quotes in there
821
1099
# would cause problems or look ugly.
 
1100
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1101
# such as our DU 5.0 friend, will then `close' the trap.
822
1102
trap 'exit_status=$?
823
1103
  # Save into config.log some information that might help in debugging.
824
 
  echo >&5
825
 
  echo "## ----------------- ##" >&5
826
 
  echo "## Cache variables.  ##" >&5
827
 
  echo "## ----------------- ##" >&5
828
 
  echo >&5
829
 
  # The following way of writing the cache mishandles newlines in values,
 
1104
  {
 
1105
    echo
 
1106
 
 
1107
    cat <<\_ASBOX
 
1108
## ---------------- ##
 
1109
## Cache variables. ##
 
1110
## ---------------- ##
 
1111
_ASBOX
 
1112
    echo
 
1113
    # The following way of writing the cache mishandles newlines in values,
830
1114
{
831
1115
  (set) 2>&1 |
832
1116
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
833
1117
    *ac_space=\ *)
834
1118
      sed -n \
835
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
836
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1119
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1120
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
837
1121
      ;;
838
1122
    *)
839
1123
      sed -n \
840
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1124
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
841
1125
      ;;
842
1126
    esac;
843
 
} >&5
844
 
  sed "/^$/d" confdefs.h >conftest.log
845
 
  if test -s conftest.log; then
846
 
    echo >&5
847
 
    echo "## ------------ ##" >&5
848
 
    echo "## confdefs.h.  ##" >&5
849
 
    echo "## ------------ ##" >&5
850
 
    echo >&5
851
 
    cat conftest.log >&5
852
 
  fi
853
 
  (echo; echo) >&5
854
 
  test "$ac_signal" != 0 &&
855
 
    echo "$as_me: caught signal $ac_signal" >&5
856
 
  echo "$as_me: exit $exit_status" >&5
857
 
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
 
1127
}
 
1128
    echo
 
1129
 
 
1130
    cat <<\_ASBOX
 
1131
## ----------------- ##
 
1132
## Output variables. ##
 
1133
## ----------------- ##
 
1134
_ASBOX
 
1135
    echo
 
1136
    for ac_var in $ac_subst_vars
 
1137
    do
 
1138
      eval ac_val=$`echo $ac_var`
 
1139
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1140
    done | sort
 
1141
    echo
 
1142
 
 
1143
    if test -n "$ac_subst_files"; then
 
1144
      cat <<\_ASBOX
 
1145
## ------------- ##
 
1146
## Output files. ##
 
1147
## ------------- ##
 
1148
_ASBOX
 
1149
      echo
 
1150
      for ac_var in $ac_subst_files
 
1151
      do
 
1152
        eval ac_val=$`echo $ac_var`
 
1153
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1154
      done | sort
 
1155
      echo
 
1156
    fi
 
1157
 
 
1158
    if test -s confdefs.h; then
 
1159
      cat <<\_ASBOX
 
1160
## ----------- ##
 
1161
## confdefs.h. ##
 
1162
## ----------- ##
 
1163
_ASBOX
 
1164
      echo
 
1165
      sed "/^$/d" confdefs.h | sort
 
1166
      echo
 
1167
    fi
 
1168
    test "$ac_signal" != 0 &&
 
1169
      echo "$as_me: caught signal $ac_signal"
 
1170
    echo "$as_me: exit $exit_status"
 
1171
  } >&5
 
1172
  rm -f core *.core &&
 
1173
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
858
1174
    exit $exit_status
859
1175
     ' 0
860
1176
for ac_signal in 1 2 13 15; do
867
1183
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
868
1184
echo >confdefs.h
869
1185
 
 
1186
# Predefined preprocessor variables.
 
1187
 
 
1188
cat >>confdefs.h <<_ACEOF
 
1189
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1190
_ACEOF
 
1191
 
 
1192
 
 
1193
cat >>confdefs.h <<_ACEOF
 
1194
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1195
_ACEOF
 
1196
 
 
1197
 
 
1198
cat >>confdefs.h <<_ACEOF
 
1199
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1200
_ACEOF
 
1201
 
 
1202
 
 
1203
cat >>confdefs.h <<_ACEOF
 
1204
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1205
_ACEOF
 
1206
 
 
1207
 
 
1208
cat >>confdefs.h <<_ACEOF
 
1209
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1210
_ACEOF
 
1211
 
 
1212
 
870
1213
# Let the site file select an alternate cache file if it wants to.
871
1214
# Prefer explicitly selected file to automatically selected ones.
872
1215
if test -z "$CONFIG_SITE"; then
878
1221
fi
879
1222
for ac_site_file in $CONFIG_SITE; do
880
1223
  if test -r "$ac_site_file"; then
881
 
    { echo "$as_me:881: loading site script $ac_site_file" >&5
 
1224
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
882
1225
echo "$as_me: loading site script $ac_site_file" >&6;}
883
 
    cat "$ac_site_file" >&5
 
1226
    sed 's/^/| /' "$ac_site_file" >&5
884
1227
    . "$ac_site_file"
885
1228
  fi
886
1229
done
889
1232
  # Some versions of bash will fail to source /dev/null (special
890
1233
  # files actually), so we avoid doing that.
891
1234
  if test -f "$cache_file"; then
892
 
    { echo "$as_me:892: loading cache $cache_file" >&5
 
1235
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
893
1236
echo "$as_me: loading cache $cache_file" >&6;}
894
1237
    case $cache_file in
895
1238
      [\\/]* | ?:[\\/]* ) . $cache_file;;
897
1240
    esac
898
1241
  fi
899
1242
else
900
 
  { echo "$as_me:900: creating cache $cache_file" >&5
 
1243
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
901
1244
echo "$as_me: creating cache $cache_file" >&6;}
902
1245
  >$cache_file
903
1246
fi
906
1249
# value.
907
1250
ac_cache_corrupted=false
908
1251
for ac_var in `(set) 2>&1 |
909
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1252
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
910
1253
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
911
1254
  eval ac_new_set=\$ac_env_${ac_var}_set
912
1255
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
913
1256
  eval ac_new_val="\$ac_env_${ac_var}_value"
914
1257
  case $ac_old_set,$ac_new_set in
915
1258
    set,)
916
 
      { echo "$as_me:916: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1259
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
917
1260
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
918
1261
      ac_cache_corrupted=: ;;
919
1262
    ,set)
920
 
      { echo "$as_me:920: error: \`$ac_var' was not set in the previous run" >&5
 
1263
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
921
1264
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
922
1265
      ac_cache_corrupted=: ;;
923
1266
    ,);;
924
1267
    *)
925
1268
      if test "x$ac_old_val" != "x$ac_new_val"; then
926
 
        { echo "$as_me:926: error: \`$ac_var' has changed since the previous run:" >&5
 
1269
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
927
1270
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
928
 
        { echo "$as_me:928:   former value:  $ac_old_val" >&5
 
1271
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
929
1272
echo "$as_me:   former value:  $ac_old_val" >&2;}
930
 
        { echo "$as_me:930:   current value: $ac_new_val" >&5
 
1273
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
931
1274
echo "$as_me:   current value: $ac_new_val" >&2;}
932
 
        ac_cache_corrupted=:
 
1275
        ac_cache_corrupted=:
933
1276
      fi;;
934
1277
  esac
935
 
  # Pass precious variables to config.status.  It doesn't matter if
936
 
  # we pass some twice (in addition to the command line arguments).
 
1278
  # Pass precious variables to config.status.
937
1279
  if test "$ac_new_set" = set; then
938
1280
    case $ac_new_val in
939
1281
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
940
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
941
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
942
 
      ;;
943
 
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
944
 
       ;;
 
1282
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1283
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1284
    esac
 
1285
    case " $ac_configure_args " in
 
1286
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1287
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
945
1288
    esac
946
1289
  fi
947
1290
done
948
1291
if $ac_cache_corrupted; then
949
 
  { echo "$as_me:949: error: changes in the environment can compromise the build" >&5
 
1292
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
950
1293
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
951
 
  { { echo "$as_me:951: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1294
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
952
1295
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
953
1296
   { (exit 1); exit 1; }; }
954
1297
fi
959
1302
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
960
1303
ac_compiler_gnu=$ac_cv_c_compiler_gnu
961
1304
 
962
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
963
 
  *c*,-n*) ECHO_N= ECHO_C='
964
 
' ECHO_T='      ' ;;
965
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
966
 
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
967
 
esac
968
 
echo "#! $SHELL" >conftest.sh
969
 
echo  "exit 0"   >>conftest.sh
970
 
chmod +x conftest.sh
971
 
if { (echo "$as_me:971: PATH=\".;.\"; conftest.sh") >&5
972
 
  (PATH=".;."; conftest.sh) 2>&5
973
 
  ac_status=$?
974
 
  echo "$as_me:974: \$? = $ac_status" >&5
975
 
  (exit $ac_status); }; then
976
 
  ac_path_separator=';'
977
 
else
978
 
  ac_path_separator=:
979
 
fi
980
 
PATH_SEPARATOR="$ac_path_separator"
981
 
rm -f conftest.sh
982
 
 
983
 
                                                    ac_config_headers="$ac_config_headers config.h:config.in"
984
 
 
 
1305
 
 
1306
gl_header_list="$gl_header_list fcntl.h"
 
1307
gl_header_list="$gl_header_list sys/time.h"
 
1308
gl_header_list="$gl_header_list unistd.h"
 
1309
 
 
1310
 
 
1311
 
 
1312
 
 
1313
 
 
1314
 
 
1315
 
 
1316
 
 
1317
 
 
1318
 
 
1319
 
 
1320
 
 
1321
 
 
1322
 
 
1323
 
 
1324
 
 
1325
 
 
1326
 
 
1327
 
 
1328
 
 
1329
 
 
1330
 
 
1331
 
 
1332
 
 
1333
 
 
1334
          ac_config_headers="$ac_config_headers config.h:config.in"
 
1335
# Keep filename to 8.3 for MS-DOS.
 
1336
 
 
1337
am__api_version="1.9"
985
1338
ac_aux_dir=
986
1339
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
987
1340
  if test -f $ac_dir/install-sh; then
999
1352
  fi
1000
1353
done
1001
1354
if test -z "$ac_aux_dir"; then
1002
 
  { { echo "$as_me:1002: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1355
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1003
1356
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1004
1357
   { (exit 1); exit 1; }; }
1005
1358
fi
1018
1371
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1019
1372
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1020
1373
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1374
# OS/2's system install, which has a completely different semantic
1021
1375
# ./install, which can be erroneously created by make from ./install.sh.
1022
 
echo "$as_me:1022: checking for a BSD compatible install" >&5
1023
 
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 
1376
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1377
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1024
1378
if test -z "$INSTALL"; then
1025
1379
if test "${ac_cv_path_install+set}" = set; then
1026
1380
  echo $ECHO_N "(cached) $ECHO_C" >&6
1027
1381
else
1028
 
    ac_save_IFS=$IFS; IFS=$ac_path_separator
1029
 
  for ac_dir in $PATH; do
1030
 
    IFS=$ac_save_IFS
1031
 
    # Account for people who put trailing slashes in PATH elements.
1032
 
    case $ac_dir/ in
1033
 
    / | ./ | .// | /cC/* \
1034
 
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1035
 
    | /usr/ucb/* ) ;;
1036
 
    *)
1037
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
1038
 
      # Don't use installbsd from OSF since it installs stuff as root
1039
 
      # by default.
1040
 
      for ac_prog in ginstall scoinst install; do
1041
 
        if $as_executable_p "$ac_dir/$ac_prog"; then
 
1382
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1383
for as_dir in $PATH
 
1384
do
 
1385
  IFS=$as_save_IFS
 
1386
  test -z "$as_dir" && as_dir=.
 
1387
  # Account for people who put trailing slashes in PATH elements.
 
1388
case $as_dir/ in
 
1389
  ./ | .// | /cC/* | \
 
1390
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1391
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1392
  /usr/ucb/* ) ;;
 
1393
  *)
 
1394
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1395
    # Don't use installbsd from OSF since it installs stuff as root
 
1396
    # by default.
 
1397
    for ac_prog in ginstall scoinst install; do
 
1398
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1399
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1042
1400
          if test $ac_prog = install &&
1043
 
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
1401
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1044
1402
            # AIX install.  It has an incompatible calling convention.
1045
1403
            :
1046
1404
          elif test $ac_prog = install &&
1047
 
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
1405
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1048
1406
            # program-specific install script used by HP pwplus--don't use.
1049
1407
            :
1050
1408
          else
1051
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1052
 
            break 2
 
1409
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1410
            break 3
1053
1411
          fi
1054
1412
        fi
1055
1413
      done
1056
 
      ;;
1057
 
    esac
1058
 
  done
 
1414
    done
 
1415
    ;;
 
1416
esac
 
1417
done
 
1418
 
1059
1419
 
1060
1420
fi
1061
1421
  if test "${ac_cv_path_install+set}" = set; then
1068
1428
    INSTALL=$ac_install_sh
1069
1429
  fi
1070
1430
fi
1071
 
echo "$as_me:1071: result: $INSTALL" >&5
 
1431
echo "$as_me:$LINENO: result: $INSTALL" >&5
1072
1432
echo "${ECHO_T}$INSTALL" >&6
1073
1433
 
1074
1434
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1079
1439
 
1080
1440
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1081
1441
 
1082
 
echo "$as_me:1082: checking whether build environment is sane" >&5
 
1442
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1083
1443
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1084
1444
# Just in case
1085
1445
sleep 1
1103
1463
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1104
1464
      # broken ls alias from the environment.  This has actually
1105
1465
      # happened.  Such a system could not be considered "sane".
1106
 
      { { echo "$as_me:1106: error: ls -t appears to fail.  Make sure there is not a broken
 
1466
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1107
1467
alias in your environment" >&5
1108
1468
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1109
1469
alias in your environment" >&2;}
1116
1476
   # Ok.
1117
1477
   :
1118
1478
else
1119
 
   { { echo "$as_me:1119: error: newly created file is older than distributed files!
 
1479
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1120
1480
Check your system clock" >&5
1121
1481
echo "$as_me: error: newly created file is older than distributed files!
1122
1482
Check your system clock" >&2;}
1123
1483
   { (exit 1); exit 1; }; }
1124
1484
fi
1125
 
echo "$as_me:1125: result: yes" >&5
 
1485
echo "$as_me:$LINENO: result: yes" >&5
1126
1486
echo "${ECHO_T}yes" >&6
1127
1487
test "$program_prefix" != NONE &&
1128
1488
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1138
1498
rm conftest.sed
1139
1499
 
1140
1500
# expand $ac_aux_dir to an absolute path
1141
 
am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
 
1501
am_aux_dir=`cd $ac_aux_dir && pwd`
1142
1502
 
1143
1503
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1144
1504
# Use eval to expand $SHELL
1146
1506
  am_missing_run="$MISSING --run "
1147
1507
else
1148
1508
  am_missing_run=
1149
 
  am_backtick='`'
1150
 
  { echo "$as_me:1150: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1151
 
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1152
 
fi
1153
 
 
1154
 
for ac_prog in mawk gawk nawk awk
 
1509
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1510
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1511
fi
 
1512
 
 
1513
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1514
  # We used to keeping the `.' as first argument, in order to
 
1515
  # allow $(mkdir_p) to be used without argument.  As in
 
1516
  #   $(mkdir_p) $(somedir)
 
1517
  # where $(somedir) is conditionally defined.  However this is wrong
 
1518
  # for two reasons:
 
1519
  #  1. if the package is installed by a user who cannot write `.'
 
1520
  #     make install will fail,
 
1521
  #  2. the above comment should most certainly read
 
1522
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1523
  #     so it does not work when $(somedir) is undefined and
 
1524
  #     $(DESTDIR) is not.
 
1525
  #  To support the latter case, we have to write
 
1526
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1527
  #  so the `.' trick is pointless.
 
1528
  mkdir_p='mkdir -p --'
 
1529
else
 
1530
  # On NextStep and OpenStep, the `mkdir' command does not
 
1531
  # recognize any option.  It will interpret all options as
 
1532
  # directories to create, and then abort because `.' already
 
1533
  # exists.
 
1534
  for d in ./-p ./--version;
 
1535
  do
 
1536
    test -d $d && rmdir $d
 
1537
  done
 
1538
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1539
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1540
    mkdir_p='$(mkinstalldirs)'
 
1541
  else
 
1542
    mkdir_p='$(install_sh) -d'
 
1543
  fi
 
1544
fi
 
1545
 
 
1546
for ac_prog in gawk mawk nawk awk
1155
1547
do
1156
1548
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1157
1549
set dummy $ac_prog; ac_word=$2
1158
 
echo "$as_me:1158: checking for $ac_word" >&5
 
1550
echo "$as_me:$LINENO: checking for $ac_word" >&5
1159
1551
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1160
1552
if test "${ac_cv_prog_AWK+set}" = set; then
1161
1553
  echo $ECHO_N "(cached) $ECHO_C" >&6
1163
1555
  if test -n "$AWK"; then
1164
1556
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1165
1557
else
1166
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1167
 
ac_dummy="$PATH"
1168
 
for ac_dir in $ac_dummy; do
1169
 
  IFS=$ac_save_IFS
1170
 
  test -z "$ac_dir" && ac_dir=.
1171
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1172
 
ac_cv_prog_AWK="$ac_prog"
1173
 
echo "$as_me:1173: found $ac_dir/$ac_word" >&5
1174
 
break
 
1558
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1559
for as_dir in $PATH
 
1560
do
 
1561
  IFS=$as_save_IFS
 
1562
  test -z "$as_dir" && as_dir=.
 
1563
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1564
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1565
    ac_cv_prog_AWK="$ac_prog"
 
1566
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1567
    break 2
 
1568
  fi
 
1569
done
1175
1570
done
1176
1571
 
1177
1572
fi
1178
1573
fi
1179
1574
AWK=$ac_cv_prog_AWK
1180
1575
if test -n "$AWK"; then
1181
 
  echo "$as_me:1181: result: $AWK" >&5
 
1576
  echo "$as_me:$LINENO: result: $AWK" >&5
1182
1577
echo "${ECHO_T}$AWK" >&6
1183
1578
else
1184
 
  echo "$as_me:1184: result: no" >&5
 
1579
  echo "$as_me:$LINENO: result: no" >&5
1185
1580
echo "${ECHO_T}no" >&6
1186
1581
fi
1187
1582
 
1188
1583
  test -n "$AWK" && break
1189
1584
done
1190
1585
 
1191
 
echo "$as_me:1191: checking whether ${MAKE-make} sets \${MAKE}" >&5
1192
 
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1193
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1586
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1587
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1588
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1194
1589
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1195
1590
  echo $ECHO_N "(cached) $ECHO_C" >&6
1196
1591
else
1197
 
  cat >conftest.make <<\EOF
 
1592
  cat >conftest.make <<\_ACEOF
1198
1593
all:
1199
 
        @echo 'ac_maketemp="${MAKE}"'
1200
 
EOF
 
1594
        @echo 'ac_maketemp="$(MAKE)"'
 
1595
_ACEOF
1201
1596
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1202
1597
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1203
1598
if test -n "$ac_maketemp"; then
1208
1603
rm -f conftest.make
1209
1604
fi
1210
1605
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1211
 
  echo "$as_me:1211: result: yes" >&5
 
1606
  echo "$as_me:$LINENO: result: yes" >&5
1212
1607
echo "${ECHO_T}yes" >&6
1213
1608
  SET_MAKE=
1214
1609
else
1215
 
  echo "$as_me:1215: result: no" >&5
 
1610
  echo "$as_me:$LINENO: result: no" >&5
1216
1611
echo "${ECHO_T}no" >&6
1217
1612
  SET_MAKE="MAKE=${MAKE-make}"
1218
1613
fi
1219
1614
 
1220
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1221
 
if test "${enable_dependency_tracking+set}" = set; then
1222
 
  enableval="$enable_dependency_tracking"
1223
 
 
1224
 
fi;
1225
 
if test "x$enable_dependency_tracking" != xno; then
1226
 
  am_depcomp="$ac_aux_dir/depcomp"
1227
 
  AMDEPBACKSLASH='\'
1228
 
fi
1229
 
 
1230
 
if test "x$enable_dependency_tracking" != xno; then
1231
 
  AMDEP_TRUE=
1232
 
  AMDEP_FALSE='#'
1233
 
else
1234
 
  AMDEP_TRUE='#'
1235
 
  AMDEP_FALSE=
1236
 
fi
1237
 
 
1238
 
rm -f .deps 2>/dev/null
1239
 
mkdir .deps 2>/dev/null
1240
 
if test -d .deps; then
1241
 
  DEPDIR=.deps
1242
 
else
1243
 
  # MS-DOS does not allow filenames that begin with a dot.
1244
 
  DEPDIR=_deps
1245
 
fi
1246
 
rmdir .deps 2>/dev/null
 
1615
rm -rf .tst 2>/dev/null
 
1616
mkdir .tst 2>/dev/null
 
1617
if test -d .tst; then
 
1618
  am__leading_dot=.
 
1619
else
 
1620
  am__leading_dot=_
 
1621
fi
 
1622
rmdir .tst 2>/dev/null
1247
1623
 
1248
1624
# test to see if srcdir already configured
1249
 
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
 
1625
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1250
1626
   test -f $srcdir/config.status; then
1251
 
  { { echo "$as_me:1251: error: source directory already configured; run \"make distclean\" there first" >&5
 
1627
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1252
1628
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1253
1629
   { (exit 1); exit 1; }; }
1254
1630
fi
1255
1631
 
 
1632
# test whether we have cygpath
 
1633
if test -z "$CYGPATH_W"; then
 
1634
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1635
    CYGPATH_W='cygpath -w'
 
1636
  else
 
1637
    CYGPATH_W=echo
 
1638
  fi
 
1639
fi
 
1640
 
 
1641
 
1256
1642
# Define the identity of the package.
1257
 
PACKAGE=texinfo
1258
 
VERSION=4.1
1259
 
 
1260
 
cat >>confdefs.h <<EOF
 
1643
 PACKAGE='texinfo'
 
1644
 VERSION='4.8'
 
1645
 
 
1646
 
 
1647
cat >>confdefs.h <<_ACEOF
1261
1648
#define PACKAGE "$PACKAGE"
1262
 
EOF
1263
 
 
1264
 
cat >>confdefs.h <<EOF
 
1649
_ACEOF
 
1650
 
 
1651
 
 
1652
cat >>confdefs.h <<_ACEOF
1265
1653
#define VERSION "$VERSION"
1266
 
EOF
1267
 
 
1268
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1269
 
# the ones we care about.
1270
 
 
1271
 
# Autoconf 2.50 always computes EXEEXT.  However we need to be
1272
 
# compatible with 2.13, for now.  So we always define EXEEXT, but we
1273
 
# don't compute it.
1274
 
 
1275
 
# Similar for OBJEXT -- only we only use OBJEXT if the user actually
1276
 
# requests that it be used.  This is a bit dumb.
1277
 
: ${OBJEXT=o}
 
1654
_ACEOF
1278
1655
 
1279
1656
# Some tools Automake needs.
1280
1657
 
1281
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
 
1658
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1659
 
1282
1660
 
1283
1661
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1284
1662
 
1285
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
 
1663
 
 
1664
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1665
 
1286
1666
 
1287
1667
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1288
1668
 
 
1669
 
1289
1670
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1290
1671
 
1291
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1292
 
 
1293
1672
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1294
1673
 
 
1674
# Installed binaries are usually stripped using `strip' when the user
 
1675
# run `make install-strip'.  However `strip' might not be the right
 
1676
# tool to use in cross-compilation environments, therefore Automake
 
1677
# will honor the `STRIP' environment variable to overrule this program.
 
1678
if test "$cross_compiling" != no; then
 
1679
  if test -n "$ac_tool_prefix"; then
 
1680
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1681
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1682
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1683
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1684
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1686
else
 
1687
  if test -n "$STRIP"; then
 
1688
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1689
else
 
1690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1691
for as_dir in $PATH
 
1692
do
 
1693
  IFS=$as_save_IFS
 
1694
  test -z "$as_dir" && as_dir=.
 
1695
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1696
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1697
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1698
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1699
    break 2
 
1700
  fi
 
1701
done
 
1702
done
 
1703
 
 
1704
fi
 
1705
fi
 
1706
STRIP=$ac_cv_prog_STRIP
 
1707
if test -n "$STRIP"; then
 
1708
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1709
echo "${ECHO_T}$STRIP" >&6
 
1710
else
 
1711
  echo "$as_me:$LINENO: result: no" >&5
 
1712
echo "${ECHO_T}no" >&6
 
1713
fi
 
1714
 
 
1715
fi
 
1716
if test -z "$ac_cv_prog_STRIP"; then
 
1717
  ac_ct_STRIP=$STRIP
 
1718
  # Extract the first word of "strip", so it can be a program name with args.
 
1719
set dummy strip; ac_word=$2
 
1720
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1721
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1722
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1723
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1724
else
 
1725
  if test -n "$ac_ct_STRIP"; then
 
1726
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1727
else
 
1728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1729
for as_dir in $PATH
 
1730
do
 
1731
  IFS=$as_save_IFS
 
1732
  test -z "$as_dir" && as_dir=.
 
1733
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1734
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1735
    ac_cv_prog_ac_ct_STRIP="strip"
 
1736
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1737
    break 2
 
1738
  fi
 
1739
done
 
1740
done
 
1741
 
 
1742
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1743
fi
 
1744
fi
 
1745
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1746
if test -n "$ac_ct_STRIP"; then
 
1747
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1748
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1749
else
 
1750
  echo "$as_me:$LINENO: result: no" >&5
 
1751
echo "${ECHO_T}no" >&6
 
1752
fi
 
1753
 
 
1754
  STRIP=$ac_ct_STRIP
 
1755
else
 
1756
  STRIP="$ac_cv_prog_STRIP"
 
1757
fi
 
1758
 
 
1759
fi
1295
1760
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1296
1761
 
1297
1762
# We need awk for the "check" target.  The system "awk" is bad on
1298
1763
# some platforms.
1299
 
 
1300
 
if test -n "$TEXINFO_MAINT"; then
1301
 
  TEXINFO_MAINT_TRUE=
1302
 
  TEXINFO_MAINT_FALSE='#'
1303
 
else
1304
 
  TEXINFO_MAINT_TRUE='#'
1305
 
  TEXINFO_MAINT_FALSE=
 
1764
# Always define AMTAR for backward compatibility.
 
1765
 
 
1766
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1767
 
 
1768
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1769
 
 
1770
 
 
1771
 
 
1772
 
 
1773
 
 
1774
 
 
1775
# When the Texinfo source is imported into other repositories
 
1776
# (NetBSD and TeX Live), timestamps are generally not preserved.  This
 
1777
# causes lots of annoyance, so --enable-maintainer-mode.  Sorry.
 
1778
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1779
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1780
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1781
if test "${enable_maintainer_mode+set}" = set; then
 
1782
  enableval="$enable_maintainer_mode"
 
1783
  USE_MAINTAINER_MODE=$enableval
 
1784
else
 
1785
  USE_MAINTAINER_MODE=no
 
1786
fi;
 
1787
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1788
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1789
 
 
1790
 
 
1791
if test $USE_MAINTAINER_MODE = yes; then
 
1792
  MAINTAINER_MODE_TRUE=
 
1793
  MAINTAINER_MODE_FALSE='#'
 
1794
else
 
1795
  MAINTAINER_MODE_TRUE='#'
 
1796
  MAINTAINER_MODE_FALSE=
1306
1797
fi
1307
1798
 
 
1799
  MAINT=$MAINTAINER_MODE_TRUE
 
1800
 
 
1801
 
 
1802
 
 
1803
# Checks for programs.
1308
1804
ac_ext=c
1309
1805
ac_cpp='$CPP $CPPFLAGS'
1310
1806
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313
1809
if test -n "$ac_tool_prefix"; then
1314
1810
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1315
1811
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1316
 
echo "$as_me:1316: checking for $ac_word" >&5
 
1812
echo "$as_me:$LINENO: checking for $ac_word" >&5
1317
1813
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1318
1814
if test "${ac_cv_prog_CC+set}" = set; then
1319
1815
  echo $ECHO_N "(cached) $ECHO_C" >&6
1321
1817
  if test -n "$CC"; then
1322
1818
  ac_cv_prog_CC="$CC" # Let the user override the test.
1323
1819
else
1324
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1325
 
ac_dummy="$PATH"
1326
 
for ac_dir in $ac_dummy; do
1327
 
  IFS=$ac_save_IFS
1328
 
  test -z "$ac_dir" && ac_dir=.
1329
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1330
 
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1331
 
echo "$as_me:1331: found $ac_dir/$ac_word" >&5
1332
 
break
 
1820
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1821
for as_dir in $PATH
 
1822
do
 
1823
  IFS=$as_save_IFS
 
1824
  test -z "$as_dir" && as_dir=.
 
1825
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1826
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1827
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1828
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1829
    break 2
 
1830
  fi
 
1831
done
1333
1832
done
1334
1833
 
1335
1834
fi
1336
1835
fi
1337
1836
CC=$ac_cv_prog_CC
1338
1837
if test -n "$CC"; then
1339
 
  echo "$as_me:1339: result: $CC" >&5
 
1838
  echo "$as_me:$LINENO: result: $CC" >&5
1340
1839
echo "${ECHO_T}$CC" >&6
1341
1840
else
1342
 
  echo "$as_me:1342: result: no" >&5
 
1841
  echo "$as_me:$LINENO: result: no" >&5
1343
1842
echo "${ECHO_T}no" >&6
1344
1843
fi
1345
1844
 
1348
1847
  ac_ct_CC=$CC
1349
1848
  # Extract the first word of "gcc", so it can be a program name with args.
1350
1849
set dummy gcc; ac_word=$2
1351
 
echo "$as_me:1351: checking for $ac_word" >&5
 
1850
echo "$as_me:$LINENO: checking for $ac_word" >&5
1352
1851
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353
1852
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1354
1853
  echo $ECHO_N "(cached) $ECHO_C" >&6
1356
1855
  if test -n "$ac_ct_CC"; then
1357
1856
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1358
1857
else
1359
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1360
 
ac_dummy="$PATH"
1361
 
for ac_dir in $ac_dummy; do
1362
 
  IFS=$ac_save_IFS
1363
 
  test -z "$ac_dir" && ac_dir=.
1364
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1365
 
ac_cv_prog_ac_ct_CC="gcc"
1366
 
echo "$as_me:1366: found $ac_dir/$ac_word" >&5
1367
 
break
 
1858
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1859
for as_dir in $PATH
 
1860
do
 
1861
  IFS=$as_save_IFS
 
1862
  test -z "$as_dir" && as_dir=.
 
1863
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1864
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1865
    ac_cv_prog_ac_ct_CC="gcc"
 
1866
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1867
    break 2
 
1868
  fi
 
1869
done
1368
1870
done
1369
1871
 
1370
1872
fi
1371
1873
fi
1372
1874
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1373
1875
if test -n "$ac_ct_CC"; then
1374
 
  echo "$as_me:1374: result: $ac_ct_CC" >&5
 
1876
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1375
1877
echo "${ECHO_T}$ac_ct_CC" >&6
1376
1878
else
1377
 
  echo "$as_me:1377: result: no" >&5
 
1879
  echo "$as_me:$LINENO: result: no" >&5
1378
1880
echo "${ECHO_T}no" >&6
1379
1881
fi
1380
1882
 
1387
1889
  if test -n "$ac_tool_prefix"; then
1388
1890
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1389
1891
set dummy ${ac_tool_prefix}cc; ac_word=$2
1390
 
echo "$as_me:1390: checking for $ac_word" >&5
 
1892
echo "$as_me:$LINENO: checking for $ac_word" >&5
1391
1893
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1392
1894
if test "${ac_cv_prog_CC+set}" = set; then
1393
1895
  echo $ECHO_N "(cached) $ECHO_C" >&6
1395
1897
  if test -n "$CC"; then
1396
1898
  ac_cv_prog_CC="$CC" # Let the user override the test.
1397
1899
else
1398
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1399
 
ac_dummy="$PATH"
1400
 
for ac_dir in $ac_dummy; do
1401
 
  IFS=$ac_save_IFS
1402
 
  test -z "$ac_dir" && ac_dir=.
1403
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1404
 
ac_cv_prog_CC="${ac_tool_prefix}cc"
1405
 
echo "$as_me:1405: found $ac_dir/$ac_word" >&5
1406
 
break
 
1900
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1901
for as_dir in $PATH
 
1902
do
 
1903
  IFS=$as_save_IFS
 
1904
  test -z "$as_dir" && as_dir=.
 
1905
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1906
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1907
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1908
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1909
    break 2
 
1910
  fi
 
1911
done
1407
1912
done
1408
1913
 
1409
1914
fi
1410
1915
fi
1411
1916
CC=$ac_cv_prog_CC
1412
1917
if test -n "$CC"; then
1413
 
  echo "$as_me:1413: result: $CC" >&5
 
1918
  echo "$as_me:$LINENO: result: $CC" >&5
1414
1919
echo "${ECHO_T}$CC" >&6
1415
1920
else
1416
 
  echo "$as_me:1416: result: no" >&5
 
1921
  echo "$as_me:$LINENO: result: no" >&5
1417
1922
echo "${ECHO_T}no" >&6
1418
1923
fi
1419
1924
 
1422
1927
  ac_ct_CC=$CC
1423
1928
  # Extract the first word of "cc", so it can be a program name with args.
1424
1929
set dummy cc; ac_word=$2
1425
 
echo "$as_me:1425: checking for $ac_word" >&5
 
1930
echo "$as_me:$LINENO: checking for $ac_word" >&5
1426
1931
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427
1932
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1428
1933
  echo $ECHO_N "(cached) $ECHO_C" >&6
1430
1935
  if test -n "$ac_ct_CC"; then
1431
1936
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1432
1937
else
1433
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1434
 
ac_dummy="$PATH"
1435
 
for ac_dir in $ac_dummy; do
1436
 
  IFS=$ac_save_IFS
1437
 
  test -z "$ac_dir" && ac_dir=.
1438
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1439
 
ac_cv_prog_ac_ct_CC="cc"
1440
 
echo "$as_me:1440: found $ac_dir/$ac_word" >&5
1441
 
break
 
1938
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1939
for as_dir in $PATH
 
1940
do
 
1941
  IFS=$as_save_IFS
 
1942
  test -z "$as_dir" && as_dir=.
 
1943
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1944
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1945
    ac_cv_prog_ac_ct_CC="cc"
 
1946
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1947
    break 2
 
1948
  fi
 
1949
done
1442
1950
done
1443
1951
 
1444
1952
fi
1445
1953
fi
1446
1954
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1447
1955
if test -n "$ac_ct_CC"; then
1448
 
  echo "$as_me:1448: result: $ac_ct_CC" >&5
 
1956
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1449
1957
echo "${ECHO_T}$ac_ct_CC" >&6
1450
1958
else
1451
 
  echo "$as_me:1451: result: no" >&5
 
1959
  echo "$as_me:$LINENO: result: no" >&5
1452
1960
echo "${ECHO_T}no" >&6
1453
1961
fi
1454
1962
 
1461
1969
if test -z "$CC"; then
1462
1970
  # Extract the first word of "cc", so it can be a program name with args.
1463
1971
set dummy cc; ac_word=$2
1464
 
echo "$as_me:1464: checking for $ac_word" >&5
 
1972
echo "$as_me:$LINENO: checking for $ac_word" >&5
1465
1973
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466
1974
if test "${ac_cv_prog_CC+set}" = set; then
1467
1975
  echo $ECHO_N "(cached) $ECHO_C" >&6
1470
1978
  ac_cv_prog_CC="$CC" # Let the user override the test.
1471
1979
else
1472
1980
  ac_prog_rejected=no
1473
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1474
 
ac_dummy="$PATH"
1475
 
for ac_dir in $ac_dummy; do
1476
 
  IFS=$ac_save_IFS
1477
 
  test -z "$ac_dir" && ac_dir=.
1478
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1479
 
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1480
 
  ac_prog_rejected=yes
1481
 
  continue
1482
 
fi
1483
 
ac_cv_prog_CC="cc"
1484
 
echo "$as_me:1484: found $ac_dir/$ac_word" >&5
1485
 
break
 
1981
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1982
for as_dir in $PATH
 
1983
do
 
1984
  IFS=$as_save_IFS
 
1985
  test -z "$as_dir" && as_dir=.
 
1986
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1987
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1988
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1989
       ac_prog_rejected=yes
 
1990
       continue
 
1991
     fi
 
1992
    ac_cv_prog_CC="cc"
 
1993
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1994
    break 2
 
1995
  fi
 
1996
done
1486
1997
done
1487
1998
 
1488
1999
if test $ac_prog_rejected = yes; then
1494
2005
    # However, it has the same basename, so the bogon will be chosen
1495
2006
    # first if we set CC to just the basename; use the full file name.
1496
2007
    shift
1497
 
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1498
 
    shift
1499
 
    ac_cv_prog_CC="$@"
 
2008
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1500
2009
  fi
1501
2010
fi
1502
2011
fi
1503
2012
fi
1504
2013
CC=$ac_cv_prog_CC
1505
2014
if test -n "$CC"; then
1506
 
  echo "$as_me:1506: result: $CC" >&5
 
2015
  echo "$as_me:$LINENO: result: $CC" >&5
1507
2016
echo "${ECHO_T}$CC" >&6
1508
2017
else
1509
 
  echo "$as_me:1509: result: no" >&5
 
2018
  echo "$as_me:$LINENO: result: no" >&5
1510
2019
echo "${ECHO_T}no" >&6
1511
2020
fi
1512
2021
 
1517
2026
  do
1518
2027
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1519
2028
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1520
 
echo "$as_me:1520: checking for $ac_word" >&5
 
2029
echo "$as_me:$LINENO: checking for $ac_word" >&5
1521
2030
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522
2031
if test "${ac_cv_prog_CC+set}" = set; then
1523
2032
  echo $ECHO_N "(cached) $ECHO_C" >&6
1525
2034
  if test -n "$CC"; then
1526
2035
  ac_cv_prog_CC="$CC" # Let the user override the test.
1527
2036
else
1528
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1529
 
ac_dummy="$PATH"
1530
 
for ac_dir in $ac_dummy; do
1531
 
  IFS=$ac_save_IFS
1532
 
  test -z "$ac_dir" && ac_dir=.
1533
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1534
 
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1535
 
echo "$as_me:1535: found $ac_dir/$ac_word" >&5
1536
 
break
 
2037
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2038
for as_dir in $PATH
 
2039
do
 
2040
  IFS=$as_save_IFS
 
2041
  test -z "$as_dir" && as_dir=.
 
2042
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2043
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2044
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2045
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2046
    break 2
 
2047
  fi
 
2048
done
1537
2049
done
1538
2050
 
1539
2051
fi
1540
2052
fi
1541
2053
CC=$ac_cv_prog_CC
1542
2054
if test -n "$CC"; then
1543
 
  echo "$as_me:1543: result: $CC" >&5
 
2055
  echo "$as_me:$LINENO: result: $CC" >&5
1544
2056
echo "${ECHO_T}$CC" >&6
1545
2057
else
1546
 
  echo "$as_me:1546: result: no" >&5
 
2058
  echo "$as_me:$LINENO: result: no" >&5
1547
2059
echo "${ECHO_T}no" >&6
1548
2060
fi
1549
2061
 
1556
2068
do
1557
2069
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1558
2070
set dummy $ac_prog; ac_word=$2
1559
 
echo "$as_me:1559: checking for $ac_word" >&5
 
2071
echo "$as_me:$LINENO: checking for $ac_word" >&5
1560
2072
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561
2073
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562
2074
  echo $ECHO_N "(cached) $ECHO_C" >&6
1564
2076
  if test -n "$ac_ct_CC"; then
1565
2077
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566
2078
else
1567
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1568
 
ac_dummy="$PATH"
1569
 
for ac_dir in $ac_dummy; do
1570
 
  IFS=$ac_save_IFS
1571
 
  test -z "$ac_dir" && ac_dir=.
1572
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1573
 
ac_cv_prog_ac_ct_CC="$ac_prog"
1574
 
echo "$as_me:1574: found $ac_dir/$ac_word" >&5
1575
 
break
 
2079
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2080
for as_dir in $PATH
 
2081
do
 
2082
  IFS=$as_save_IFS
 
2083
  test -z "$as_dir" && as_dir=.
 
2084
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2085
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2086
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2087
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2088
    break 2
 
2089
  fi
 
2090
done
1576
2091
done
1577
2092
 
1578
2093
fi
1579
2094
fi
1580
2095
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581
2096
if test -n "$ac_ct_CC"; then
1582
 
  echo "$as_me:1582: result: $ac_ct_CC" >&5
 
2097
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583
2098
echo "${ECHO_T}$ac_ct_CC" >&6
1584
2099
else
1585
 
  echo "$as_me:1585: result: no" >&5
 
2100
  echo "$as_me:$LINENO: result: no" >&5
1586
2101
echo "${ECHO_T}no" >&6
1587
2102
fi
1588
2103
 
1594
2109
 
1595
2110
fi
1596
2111
 
1597
 
test -z "$CC" && { { echo "$as_me:1597: error: no acceptable cc found in \$PATH" >&5
1598
 
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 
2112
 
 
2113
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2114
See \`config.log' for more details." >&5
 
2115
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2116
See \`config.log' for more details." >&2;}
1599
2117
   { (exit 1); exit 1; }; }
1600
2118
 
1601
2119
# Provide some information about the compiler.
1602
 
echo "$as_me:1602:" \
 
2120
echo "$as_me:$LINENO:" \
1603
2121
     "checking for C compiler version" >&5
1604
2122
ac_compiler=`set X $ac_compile; echo $2`
1605
 
{ (eval echo "$as_me:1605: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2123
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1606
2124
  (eval $ac_compiler --version </dev/null >&5) 2>&5
1607
2125
  ac_status=$?
1608
 
  echo "$as_me:1608: \$? = $ac_status" >&5
 
2126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1609
2127
  (exit $ac_status); }
1610
 
{ (eval echo "$as_me:1610: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2128
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1611
2129
  (eval $ac_compiler -v </dev/null >&5) 2>&5
1612
2130
  ac_status=$?
1613
 
  echo "$as_me:1613: \$? = $ac_status" >&5
 
2131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1614
2132
  (exit $ac_status); }
1615
 
{ (eval echo "$as_me:1615: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2133
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1616
2134
  (eval $ac_compiler -V </dev/null >&5) 2>&5
1617
2135
  ac_status=$?
1618
 
  echo "$as_me:1618: \$? = $ac_status" >&5
 
2136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1619
2137
  (exit $ac_status); }
1620
2138
 
1621
2139
cat >conftest.$ac_ext <<_ACEOF
1622
 
#line 1622 "configure"
1623
 
#include "confdefs.h"
 
2140
/* confdefs.h.  */
 
2141
_ACEOF
 
2142
cat confdefs.h >>conftest.$ac_ext
 
2143
cat >>conftest.$ac_ext <<_ACEOF
 
2144
/* end confdefs.h.  */
1624
2145
 
1625
2146
int
1626
2147
main ()
1631
2152
}
1632
2153
_ACEOF
1633
2154
ac_clean_files_save=$ac_clean_files
1634
 
ac_clean_files="$ac_clean_files a.out a.exe"
 
2155
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1635
2156
# Try to create an executable without -o first, disregard a.out.
1636
2157
# It will help us diagnose broken compilers, and finding out an intuition
1637
2158
# of exeext.
1638
 
echo "$as_me:1638: checking for C compiler default output" >&5
1639
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2159
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2160
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1640
2161
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1641
 
if { (eval echo "$as_me:1641: \"$ac_link_default\"") >&5
 
2162
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1642
2163
  (eval $ac_link_default) 2>&5
1643
2164
  ac_status=$?
1644
 
  echo "$as_me:1644: \$? = $ac_status" >&5
 
2165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1645
2166
  (exit $ac_status); }; then
1646
2167
  # Find the output, starting from the most likely.  This scheme is
1647
2168
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1648
2169
# resort.
1649
 
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1650
 
                ls a.out conftest 2>/dev/null;
1651
 
                ls a.* conftest.* 2>/dev/null`; do
 
2170
 
 
2171
# Be careful to initialize this variable, since it used to be cached.
 
2172
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2173
ac_cv_exeext=
 
2174
# b.out is created by i960 compilers.
 
2175
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2176
do
 
2177
  test -f "$ac_file" || continue
1652
2178
  case $ac_file in
1653
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1654
 
    a.out ) # We found the default executable, but exeext='' is most
1655
 
            # certainly right.
1656
 
            break;;
1657
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1658
 
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1659
 
          export ac_cv_exeext
1660
 
          break;;
1661
 
    * ) break;;
 
2179
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2180
        ;;
 
2181
    conftest.$ac_ext )
 
2182
        # This is the source file.
 
2183
        ;;
 
2184
    [ab].out )
 
2185
        # We found the default executable, but exeext='' is most
 
2186
        # certainly right.
 
2187
        break;;
 
2188
    *.* )
 
2189
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2190
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2191
        # but it would be cool to find out if it's true.  Does anybody
 
2192
        # maintain Libtool? --akim.
 
2193
        export ac_cv_exeext
 
2194
        break;;
 
2195
    * )
 
2196
        break;;
1662
2197
  esac
1663
2198
done
1664
2199
else
1665
2200
  echo "$as_me: failed program was:" >&5
1666
 
cat conftest.$ac_ext >&5
1667
 
{ { echo "$as_me:1667: error: C compiler cannot create executables" >&5
1668
 
echo "$as_me: error: C compiler cannot create executables" >&2;}
 
2201
sed 's/^/| /' conftest.$ac_ext >&5
 
2202
 
 
2203
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2204
See \`config.log' for more details." >&5
 
2205
echo "$as_me: error: C compiler cannot create executables
 
2206
See \`config.log' for more details." >&2;}
1669
2207
   { (exit 77); exit 77; }; }
1670
2208
fi
1671
2209
 
1672
2210
ac_exeext=$ac_cv_exeext
1673
 
echo "$as_me:1673: result: $ac_file" >&5
 
2211
echo "$as_me:$LINENO: result: $ac_file" >&5
1674
2212
echo "${ECHO_T}$ac_file" >&6
1675
2213
 
1676
2214
# Check the compiler produces executables we can run.  If not, either
1677
2215
# the compiler is broken, or we cross compile.
1678
 
echo "$as_me:1678: checking whether the C compiler works" >&5
 
2216
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1679
2217
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1680
2218
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1681
2219
# If not cross compiling, check that we can run a simple program.
1682
2220
if test "$cross_compiling" != yes; then
1683
2221
  if { ac_try='./$ac_file'
1684
 
  { (eval echo "$as_me:1684: \"$ac_try\"") >&5
 
2222
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1685
2223
  (eval $ac_try) 2>&5
1686
2224
  ac_status=$?
1687
 
  echo "$as_me:1687: \$? = $ac_status" >&5
 
2225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1688
2226
  (exit $ac_status); }; }; then
1689
2227
    cross_compiling=no
1690
2228
  else
1691
2229
    if test "$cross_compiling" = maybe; then
1692
2230
        cross_compiling=yes
1693
2231
    else
1694
 
        { { echo "$as_me:1694: error: cannot run C compiled programs.
1695
 
If you meant to cross compile, use \`--host'." >&5
 
2232
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2233
If you meant to cross compile, use \`--host'.
 
2234
See \`config.log' for more details." >&5
1696
2235
echo "$as_me: error: cannot run C compiled programs.
1697
 
If you meant to cross compile, use \`--host'." >&2;}
 
2236
If you meant to cross compile, use \`--host'.
 
2237
See \`config.log' for more details." >&2;}
1698
2238
   { (exit 1); exit 1; }; }
1699
2239
    fi
1700
2240
  fi
1701
2241
fi
1702
 
echo "$as_me:1702: result: yes" >&5
 
2242
echo "$as_me:$LINENO: result: yes" >&5
1703
2243
echo "${ECHO_T}yes" >&6
1704
2244
 
1705
 
rm -f a.out a.exe conftest$ac_cv_exeext
 
2245
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1706
2246
ac_clean_files=$ac_clean_files_save
1707
2247
# Check the compiler produces executables we can run.  If not, either
1708
2248
# the compiler is broken, or we cross compile.
1709
 
echo "$as_me:1709: checking whether we are cross compiling" >&5
 
2249
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1710
2250
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1711
 
echo "$as_me:1711: result: $cross_compiling" >&5
 
2251
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1712
2252
echo "${ECHO_T}$cross_compiling" >&6
1713
2253
 
1714
 
echo "$as_me:1714: checking for executable suffix" >&5
1715
 
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1716
 
if { (eval echo "$as_me:1716: \"$ac_link\"") >&5
 
2254
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2255
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2256
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1717
2257
  (eval $ac_link) 2>&5
1718
2258
  ac_status=$?
1719
 
  echo "$as_me:1719: \$? = $ac_status" >&5
 
2259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720
2260
  (exit $ac_status); }; then
1721
2261
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1722
2262
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1723
2263
# work properly (i.e., refer to `conftest.exe'), while it won't with
1724
2264
# `rm'.
1725
 
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
2265
for ac_file in conftest.exe conftest conftest.*; do
 
2266
  test -f "$ac_file" || continue
1726
2267
  case $ac_file in
1727
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2268
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1728
2269
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1729
 
          export ac_cv_exeext
1730
 
          break;;
 
2270
          export ac_cv_exeext
 
2271
          break;;
1731
2272
    * ) break;;
1732
2273
  esac
1733
2274
done
1734
2275
else
1735
 
  { { echo "$as_me:1735: error: cannot compute EXEEXT: cannot compile and link" >&5
1736
 
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
 
2276
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2277
See \`config.log' for more details." >&5
 
2278
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2279
See \`config.log' for more details." >&2;}
1737
2280
   { (exit 1); exit 1; }; }
1738
2281
fi
1739
2282
 
1740
2283
rm -f conftest$ac_cv_exeext
1741
 
echo "$as_me:1741: result: $ac_cv_exeext" >&5
 
2284
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1742
2285
echo "${ECHO_T}$ac_cv_exeext" >&6
1743
2286
 
1744
2287
rm -f conftest.$ac_ext
1745
2288
EXEEXT=$ac_cv_exeext
1746
2289
ac_exeext=$EXEEXT
1747
 
echo "$as_me:1747: checking for object suffix" >&5
1748
 
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
 
2290
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2291
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1749
2292
if test "${ac_cv_objext+set}" = set; then
1750
2293
  echo $ECHO_N "(cached) $ECHO_C" >&6
1751
2294
else
1752
2295
  cat >conftest.$ac_ext <<_ACEOF
1753
 
#line 1753 "configure"
1754
 
#include "confdefs.h"
 
2296
/* confdefs.h.  */
 
2297
_ACEOF
 
2298
cat confdefs.h >>conftest.$ac_ext
 
2299
cat >>conftest.$ac_ext <<_ACEOF
 
2300
/* end confdefs.h.  */
1755
2301
 
1756
2302
int
1757
2303
main ()
1762
2308
}
1763
2309
_ACEOF
1764
2310
rm -f conftest.o conftest.obj
1765
 
if { (eval echo "$as_me:1765: \"$ac_compile\"") >&5
 
2311
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1766
2312
  (eval $ac_compile) 2>&5
1767
2313
  ac_status=$?
1768
 
  echo "$as_me:1768: \$? = $ac_status" >&5
 
2314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769
2315
  (exit $ac_status); }; then
1770
2316
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1771
2317
  case $ac_file in
1772
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2318
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1773
2319
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1774
2320
       break;;
1775
2321
  esac
1776
2322
done
1777
2323
else
1778
2324
  echo "$as_me: failed program was:" >&5
1779
 
cat conftest.$ac_ext >&5
1780
 
{ { echo "$as_me:1780: error: cannot compute OBJEXT: cannot compile" >&5
1781
 
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
 
2325
sed 's/^/| /' conftest.$ac_ext >&5
 
2326
 
 
2327
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2328
See \`config.log' for more details." >&5
 
2329
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2330
See \`config.log' for more details." >&2;}
1782
2331
   { (exit 1); exit 1; }; }
1783
2332
fi
1784
2333
 
1785
2334
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1786
2335
fi
1787
 
echo "$as_me:1787: result: $ac_cv_objext" >&5
 
2336
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1788
2337
echo "${ECHO_T}$ac_cv_objext" >&6
1789
2338
OBJEXT=$ac_cv_objext
1790
2339
ac_objext=$OBJEXT
1791
 
echo "$as_me:1791: checking whether we are using the GNU C compiler" >&5
 
2340
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1792
2341
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1793
2342
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1794
2343
  echo $ECHO_N "(cached) $ECHO_C" >&6
1795
2344
else
1796
2345
  cat >conftest.$ac_ext <<_ACEOF
1797
 
#line 1797 "configure"
1798
 
#include "confdefs.h"
 
2346
/* confdefs.h.  */
 
2347
_ACEOF
 
2348
cat confdefs.h >>conftest.$ac_ext
 
2349
cat >>conftest.$ac_ext <<_ACEOF
 
2350
/* end confdefs.h.  */
1799
2351
 
1800
2352
int
1801
2353
main ()
1809
2361
}
1810
2362
_ACEOF
1811
2363
rm -f conftest.$ac_objext
1812
 
if { (eval echo "$as_me:1812: \"$ac_compile\"") >&5
1813
 
  (eval $ac_compile) 2>&5
 
2364
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2365
  (eval $ac_compile) 2>conftest.er1
1814
2366
  ac_status=$?
1815
 
  echo "$as_me:1815: \$? = $ac_status" >&5
 
2367
  grep -v '^ *+' conftest.er1 >conftest.err
 
2368
  rm -f conftest.er1
 
2369
  cat conftest.err >&5
 
2370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816
2371
  (exit $ac_status); } &&
1817
 
         { ac_try='test -s conftest.$ac_objext'
1818
 
  { (eval echo "$as_me:1818: \"$ac_try\"") >&5
1819
 
  (eval $ac_try) 2>&5
1820
 
  ac_status=$?
1821
 
  echo "$as_me:1821: \$? = $ac_status" >&5
 
2372
         { ac_try='test -z "$ac_c_werror_flag"
 
2373
                         || test ! -s conftest.err'
 
2374
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2375
  (eval $ac_try) 2>&5
 
2376
  ac_status=$?
 
2377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2378
  (exit $ac_status); }; } &&
 
2379
         { ac_try='test -s conftest.$ac_objext'
 
2380
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2381
  (eval $ac_try) 2>&5
 
2382
  ac_status=$?
 
2383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822
2384
  (exit $ac_status); }; }; then
1823
2385
  ac_compiler_gnu=yes
1824
2386
else
1825
2387
  echo "$as_me: failed program was:" >&5
1826
 
cat conftest.$ac_ext >&5
 
2388
sed 's/^/| /' conftest.$ac_ext >&5
 
2389
 
1827
2390
ac_compiler_gnu=no
1828
2391
fi
1829
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2392
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1830
2393
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1831
2394
 
1832
2395
fi
1833
 
echo "$as_me:1833: result: $ac_cv_c_compiler_gnu" >&5
 
2396
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1834
2397
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1835
2398
GCC=`test $ac_compiler_gnu = yes && echo yes`
1836
2399
ac_test_CFLAGS=${CFLAGS+set}
1837
2400
ac_save_CFLAGS=$CFLAGS
1838
2401
CFLAGS="-g"
1839
 
echo "$as_me:1839: checking whether $CC accepts -g" >&5
 
2402
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1840
2403
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1841
2404
if test "${ac_cv_prog_cc_g+set}" = set; then
1842
2405
  echo $ECHO_N "(cached) $ECHO_C" >&6
1843
2406
else
1844
2407
  cat >conftest.$ac_ext <<_ACEOF
1845
 
#line 1845 "configure"
1846
 
#include "confdefs.h"
 
2408
/* confdefs.h.  */
 
2409
_ACEOF
 
2410
cat confdefs.h >>conftest.$ac_ext
 
2411
cat >>conftest.$ac_ext <<_ACEOF
 
2412
/* end confdefs.h.  */
1847
2413
 
1848
2414
int
1849
2415
main ()
1854
2420
}
1855
2421
_ACEOF
1856
2422
rm -f conftest.$ac_objext
1857
 
if { (eval echo "$as_me:1857: \"$ac_compile\"") >&5
1858
 
  (eval $ac_compile) 2>&5
 
2423
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2424
  (eval $ac_compile) 2>conftest.er1
1859
2425
  ac_status=$?
1860
 
  echo "$as_me:1860: \$? = $ac_status" >&5
 
2426
  grep -v '^ *+' conftest.er1 >conftest.err
 
2427
  rm -f conftest.er1
 
2428
  cat conftest.err >&5
 
2429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861
2430
  (exit $ac_status); } &&
1862
 
         { ac_try='test -s conftest.$ac_objext'
1863
 
  { (eval echo "$as_me:1863: \"$ac_try\"") >&5
1864
 
  (eval $ac_try) 2>&5
1865
 
  ac_status=$?
1866
 
  echo "$as_me:1866: \$? = $ac_status" >&5
 
2431
         { ac_try='test -z "$ac_c_werror_flag"
 
2432
                         || test ! -s conftest.err'
 
2433
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2434
  (eval $ac_try) 2>&5
 
2435
  ac_status=$?
 
2436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2437
  (exit $ac_status); }; } &&
 
2438
         { ac_try='test -s conftest.$ac_objext'
 
2439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2440
  (eval $ac_try) 2>&5
 
2441
  ac_status=$?
 
2442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867
2443
  (exit $ac_status); }; }; then
1868
2444
  ac_cv_prog_cc_g=yes
1869
2445
else
1870
2446
  echo "$as_me: failed program was:" >&5
1871
 
cat conftest.$ac_ext >&5
 
2447
sed 's/^/| /' conftest.$ac_ext >&5
 
2448
 
1872
2449
ac_cv_prog_cc_g=no
1873
2450
fi
1874
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2451
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1875
2452
fi
1876
 
echo "$as_me:1876: result: $ac_cv_prog_cc_g" >&5
 
2453
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1877
2454
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1878
2455
if test "$ac_test_CFLAGS" = set; then
1879
2456
  CFLAGS=$ac_save_CFLAGS
1890
2467
    CFLAGS=
1891
2468
  fi
1892
2469
fi
 
2470
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2471
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2472
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2474
else
 
2475
  ac_cv_prog_cc_stdc=no
 
2476
ac_save_CC=$CC
 
2477
cat >conftest.$ac_ext <<_ACEOF
 
2478
/* confdefs.h.  */
 
2479
_ACEOF
 
2480
cat confdefs.h >>conftest.$ac_ext
 
2481
cat >>conftest.$ac_ext <<_ACEOF
 
2482
/* end confdefs.h.  */
 
2483
#include <stdarg.h>
 
2484
#include <stdio.h>
 
2485
#include <sys/types.h>
 
2486
#include <sys/stat.h>
 
2487
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2488
struct buf { int x; };
 
2489
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2490
static char *e (p, i)
 
2491
     char **p;
 
2492
     int i;
 
2493
{
 
2494
  return p[i];
 
2495
}
 
2496
static char *f (char * (*g) (char **, int), char **p, ...)
 
2497
{
 
2498
  char *s;
 
2499
  va_list v;
 
2500
  va_start (v,p);
 
2501
  s = g (p, va_arg (v,int));
 
2502
  va_end (v);
 
2503
  return s;
 
2504
}
 
2505
 
 
2506
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2507
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2508
   These don't provoke an error unfortunately, instead are silently treated
 
2509
   as 'x'.  The following induces an error, until -std1 is added to get
 
2510
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2511
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2512
   that's true only with -std1.  */
 
2513
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2514
 
 
2515
int test (int i, double x);
 
2516
struct s1 {int (*f) (int a);};
 
2517
struct s2 {int (*f) (double a);};
 
2518
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2519
int argc;
 
2520
char **argv;
 
2521
int
 
2522
main ()
 
2523
{
 
2524
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2525
  ;
 
2526
  return 0;
 
2527
}
 
2528
_ACEOF
 
2529
# Don't try gcc -ansi; that turns off useful extensions and
 
2530
# breaks some systems' header files.
 
2531
# AIX                   -qlanglvl=ansi
 
2532
# Ultrix and OSF/1      -std1
 
2533
# HP-UX 10.20 and later -Ae
 
2534
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2535
# SVR4                  -Xc -D__EXTENSIONS__
 
2536
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2537
do
 
2538
  CC="$ac_save_CC $ac_arg"
 
2539
  rm -f conftest.$ac_objext
 
2540
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2541
  (eval $ac_compile) 2>conftest.er1
 
2542
  ac_status=$?
 
2543
  grep -v '^ *+' conftest.er1 >conftest.err
 
2544
  rm -f conftest.er1
 
2545
  cat conftest.err >&5
 
2546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2547
  (exit $ac_status); } &&
 
2548
         { ac_try='test -z "$ac_c_werror_flag"
 
2549
                         || test ! -s conftest.err'
 
2550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2551
  (eval $ac_try) 2>&5
 
2552
  ac_status=$?
 
2553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2554
  (exit $ac_status); }; } &&
 
2555
         { ac_try='test -s conftest.$ac_objext'
 
2556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2557
  (eval $ac_try) 2>&5
 
2558
  ac_status=$?
 
2559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2560
  (exit $ac_status); }; }; then
 
2561
  ac_cv_prog_cc_stdc=$ac_arg
 
2562
break
 
2563
else
 
2564
  echo "$as_me: failed program was:" >&5
 
2565
sed 's/^/| /' conftest.$ac_ext >&5
 
2566
 
 
2567
fi
 
2568
rm -f conftest.err conftest.$ac_objext
 
2569
done
 
2570
rm -f conftest.$ac_ext conftest.$ac_objext
 
2571
CC=$ac_save_CC
 
2572
 
 
2573
fi
 
2574
 
 
2575
case "x$ac_cv_prog_cc_stdc" in
 
2576
  x|xno)
 
2577
    echo "$as_me:$LINENO: result: none needed" >&5
 
2578
echo "${ECHO_T}none needed" >&6 ;;
 
2579
  *)
 
2580
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2581
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2582
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2583
esac
 
2584
 
1893
2585
# Some people use a C++ compiler to compile C.  Since we use `exit',
1894
2586
# in C++ we need to declare it.  In case someone uses the same compiler
1895
2587
# for both compiling C and C++ we need to have the C++ compiler decide
1900
2592
#endif
1901
2593
_ACEOF
1902
2594
rm -f conftest.$ac_objext
1903
 
if { (eval echo "$as_me:1903: \"$ac_compile\"") >&5
1904
 
  (eval $ac_compile) 2>&5
 
2595
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2596
  (eval $ac_compile) 2>conftest.er1
1905
2597
  ac_status=$?
1906
 
  echo "$as_me:1906: \$? = $ac_status" >&5
 
2598
  grep -v '^ *+' conftest.er1 >conftest.err
 
2599
  rm -f conftest.er1
 
2600
  cat conftest.err >&5
 
2601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907
2602
  (exit $ac_status); } &&
1908
 
         { ac_try='test -s conftest.$ac_objext'
1909
 
  { (eval echo "$as_me:1909: \"$ac_try\"") >&5
1910
 
  (eval $ac_try) 2>&5
1911
 
  ac_status=$?
1912
 
  echo "$as_me:1912: \$? = $ac_status" >&5
 
2603
         { ac_try='test -z "$ac_c_werror_flag"
 
2604
                         || test ! -s conftest.err'
 
2605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2606
  (eval $ac_try) 2>&5
 
2607
  ac_status=$?
 
2608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2609
  (exit $ac_status); }; } &&
 
2610
         { ac_try='test -s conftest.$ac_objext'
 
2611
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2612
  (eval $ac_try) 2>&5
 
2613
  ac_status=$?
 
2614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913
2615
  (exit $ac_status); }; }; then
1914
2616
  for ac_declaration in \
1915
 
   ''\
1916
 
   '#include <stdlib.h>' \
 
2617
   '' \
1917
2618
   'extern "C" void std::exit (int) throw (); using std::exit;' \
1918
2619
   'extern "C" void std::exit (int); using std::exit;' \
1919
2620
   'extern "C" void exit (int) throw ();' \
1921
2622
   'void exit (int);'
1922
2623
do
1923
2624
  cat >conftest.$ac_ext <<_ACEOF
1924
 
#line 1924 "configure"
1925
 
#include "confdefs.h"
 
2625
/* confdefs.h.  */
 
2626
_ACEOF
 
2627
cat confdefs.h >>conftest.$ac_ext
 
2628
cat >>conftest.$ac_ext <<_ACEOF
 
2629
/* end confdefs.h.  */
 
2630
$ac_declaration
1926
2631
#include <stdlib.h>
1927
 
$ac_declaration
1928
2632
int
1929
2633
main ()
1930
2634
{
1934
2638
}
1935
2639
_ACEOF
1936
2640
rm -f conftest.$ac_objext
1937
 
if { (eval echo "$as_me:1937: \"$ac_compile\"") >&5
1938
 
  (eval $ac_compile) 2>&5
 
2641
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2642
  (eval $ac_compile) 2>conftest.er1
1939
2643
  ac_status=$?
1940
 
  echo "$as_me:1940: \$? = $ac_status" >&5
 
2644
  grep -v '^ *+' conftest.er1 >conftest.err
 
2645
  rm -f conftest.er1
 
2646
  cat conftest.err >&5
 
2647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941
2648
  (exit $ac_status); } &&
1942
 
         { ac_try='test -s conftest.$ac_objext'
1943
 
  { (eval echo "$as_me:1943: \"$ac_try\"") >&5
1944
 
  (eval $ac_try) 2>&5
1945
 
  ac_status=$?
1946
 
  echo "$as_me:1946: \$? = $ac_status" >&5
 
2649
         { ac_try='test -z "$ac_c_werror_flag"
 
2650
                         || test ! -s conftest.err'
 
2651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2652
  (eval $ac_try) 2>&5
 
2653
  ac_status=$?
 
2654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2655
  (exit $ac_status); }; } &&
 
2656
         { ac_try='test -s conftest.$ac_objext'
 
2657
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2658
  (eval $ac_try) 2>&5
 
2659
  ac_status=$?
 
2660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947
2661
  (exit $ac_status); }; }; then
1948
2662
  :
1949
2663
else
1950
2664
  echo "$as_me: failed program was:" >&5
1951
 
cat conftest.$ac_ext >&5
 
2665
sed 's/^/| /' conftest.$ac_ext >&5
 
2666
 
1952
2667
continue
1953
2668
fi
1954
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2669
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1955
2670
  cat >conftest.$ac_ext <<_ACEOF
1956
 
#line 1956 "configure"
1957
 
#include "confdefs.h"
 
2671
/* confdefs.h.  */
 
2672
_ACEOF
 
2673
cat confdefs.h >>conftest.$ac_ext
 
2674
cat >>conftest.$ac_ext <<_ACEOF
 
2675
/* end confdefs.h.  */
1958
2676
$ac_declaration
1959
2677
int
1960
2678
main ()
1965
2683
}
1966
2684
_ACEOF
1967
2685
rm -f conftest.$ac_objext
1968
 
if { (eval echo "$as_me:1968: \"$ac_compile\"") >&5
1969
 
  (eval $ac_compile) 2>&5
 
2686
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2687
  (eval $ac_compile) 2>conftest.er1
1970
2688
  ac_status=$?
1971
 
  echo "$as_me:1971: \$? = $ac_status" >&5
 
2689
  grep -v '^ *+' conftest.er1 >conftest.err
 
2690
  rm -f conftest.er1
 
2691
  cat conftest.err >&5
 
2692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972
2693
  (exit $ac_status); } &&
1973
 
         { ac_try='test -s conftest.$ac_objext'
1974
 
  { (eval echo "$as_me:1974: \"$ac_try\"") >&5
1975
 
  (eval $ac_try) 2>&5
1976
 
  ac_status=$?
1977
 
  echo "$as_me:1977: \$? = $ac_status" >&5
 
2694
         { ac_try='test -z "$ac_c_werror_flag"
 
2695
                         || test ! -s conftest.err'
 
2696
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2697
  (eval $ac_try) 2>&5
 
2698
  ac_status=$?
 
2699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2700
  (exit $ac_status); }; } &&
 
2701
         { ac_try='test -s conftest.$ac_objext'
 
2702
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2703
  (eval $ac_try) 2>&5
 
2704
  ac_status=$?
 
2705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978
2706
  (exit $ac_status); }; }; then
1979
2707
  break
1980
2708
else
1981
2709
  echo "$as_me: failed program was:" >&5
1982
 
cat conftest.$ac_ext >&5
 
2710
sed 's/^/| /' conftest.$ac_ext >&5
 
2711
 
1983
2712
fi
1984
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2713
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1985
2714
done
1986
2715
rm -f conftest*
1987
2716
if test -n "$ac_declaration"; then
1992
2721
 
1993
2722
else
1994
2723
  echo "$as_me: failed program was:" >&5
1995
 
cat conftest.$ac_ext >&5
 
2724
sed 's/^/| /' conftest.$ac_ext >&5
 
2725
 
1996
2726
fi
1997
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2727
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1998
2728
ac_ext=c
1999
2729
ac_cpp='$CPP $CPPFLAGS'
2000
2730
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001
2731
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002
2732
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003
 
 
2004
 
ac_config_commands="$ac_config_commands default-1"
 
2733
DEPDIR="${am__leading_dot}deps"
 
2734
 
 
2735
          ac_config_commands="$ac_config_commands depfiles"
 
2736
 
2005
2737
 
2006
2738
am_make=${MAKE-make}
2007
2739
cat > confinc << 'END'
2008
 
doit:
 
2740
am__doit:
2009
2741
        @echo done
 
2742
.PHONY: am__doit
2010
2743
END
2011
2744
# If we don't find an include directive, just comment out the code.
2012
 
echo "$as_me:2012: checking for style of include used by $am_make" >&5
 
2745
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2013
2746
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2014
 
am__include='#'
 
2747
am__include="#"
2015
2748
am__quote=
2016
2749
_am_result=none
2017
2750
# First try GNU make style include.
2021
2754
# In particular we don't look at `^make:' because GNU make might
2022
2755
# be invoked under some other name (usually "gmake"), in which
2023
2756
# case it prints its new name instead of `make'.
2024
 
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
 
2757
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2025
2758
   am__include=include
2026
2759
   am__quote=
2027
2760
   _am_result=GNU
2031
2764
   echo '.include "confinc"' > confmf
2032
2765
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2033
2766
      am__include=.include
2034
 
      am__quote='"'
 
2767
      am__quote="\""
2035
2768
      _am_result=BSD
2036
2769
   fi
2037
2770
fi
2038
2771
 
2039
 
echo "$as_me:2039: result: $_am_result" >&5
 
2772
 
 
2773
echo "$as_me:$LINENO: result: $_am_result" >&5
2040
2774
echo "${ECHO_T}$_am_result" >&6
2041
2775
rm -f confinc confmf
2042
2776
 
 
2777
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2778
if test "${enable_dependency_tracking+set}" = set; then
 
2779
  enableval="$enable_dependency_tracking"
 
2780
 
 
2781
fi;
 
2782
if test "x$enable_dependency_tracking" != xno; then
 
2783
  am_depcomp="$ac_aux_dir/depcomp"
 
2784
  AMDEPBACKSLASH='\'
 
2785
fi
 
2786
 
 
2787
 
 
2788
if test "x$enable_dependency_tracking" != xno; then
 
2789
  AMDEP_TRUE=
 
2790
  AMDEP_FALSE='#'
 
2791
else
 
2792
  AMDEP_TRUE='#'
 
2793
  AMDEP_FALSE=
 
2794
fi
 
2795
 
 
2796
 
 
2797
 
 
2798
 
2043
2799
depcc="$CC"   am_compiler_list=
2044
2800
 
2045
 
echo "$as_me:2045: checking dependency style of $depcc" >&5
 
2801
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2046
2802
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2047
2803
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2048
2804
  echo $ECHO_N "(cached) $ECHO_C" >&6
2058
2814
  # using a relative directory.
2059
2815
  cp "$am_depcomp" conftest.dir
2060
2816
  cd conftest.dir
 
2817
  # We will build objects and dependencies in a subdirectory because
 
2818
  # it helps to detect inapplicable dependency modes.  For instance
 
2819
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2820
  # side effect of compilation, but ICC will put the dependencies in
 
2821
  # the current directory while Tru64 will put them in the object
 
2822
  # directory.
 
2823
  mkdir sub
2061
2824
 
2062
2825
  am_cv_CC_dependencies_compiler_type=none
2063
2826
  if test "$am_compiler_list" = ""; then
2064
2827
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2065
2828
  fi
2066
2829
  for depmode in $am_compiler_list; do
 
2830
    # Setup a source with many dependencies, because some compilers
 
2831
    # like to wrap large dependency lists on column 80 (with \), and
 
2832
    # we should not choose a depcomp mode which is confused by this.
 
2833
    #
2067
2834
    # We need to recreate these files for each test, as the compiler may
2068
2835
    # overwrite some of them when testing with obscure command lines.
2069
2836
    # This happens at least with the AIX C compiler.
2070
 
    echo '#include "conftest.h"' > conftest.c
2071
 
    echo 'int i;' > conftest.h
2072
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
2837
    : > sub/conftest.c
 
2838
    for i in 1 2 3 4 5 6; do
 
2839
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
2840
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
2841
      # Solaris 8's {/usr,}/bin/sh.
 
2842
      touch sub/conftst$i.h
 
2843
    done
 
2844
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2073
2845
 
2074
2846
    case $depmode in
2075
2847
    nosideeffect)
2087
2859
    # mode.  It turns out that the SunPro C++ compiler does not properly
2088
2860
    # handle `-M -o', and we need to detect this.
2089
2861
    if depmode=$depmode \
2090
 
       source=conftest.c object=conftest.o \
2091
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
2092
 
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2093
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
2862
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
2863
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
2864
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
2865
         >/dev/null 2>conftest.err &&
 
2866
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
2867
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2094
2868
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2095
 
      am_cv_CC_dependencies_compiler_type=$depmode
2096
 
      break
 
2869
      # icc doesn't choke on unknown options, it will just issue warnings
 
2870
      # or remarks (even with -Werror).  So we grep stderr for any message
 
2871
      # that says an option was ignored or not supported.
 
2872
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
2873
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
2874
      # The diagnosis changed in icc 8.0:
 
2875
      #   icc: Command line remark: option '-MP' not supported
 
2876
      if (grep 'ignoring option' conftest.err ||
 
2877
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
2878
        am_cv_CC_dependencies_compiler_type=$depmode
 
2879
        break
 
2880
      fi
2097
2881
    fi
2098
2882
  done
2099
2883
 
2104
2888
fi
2105
2889
 
2106
2890
fi
2107
 
echo "$as_me:2107: result: $am_cv_CC_dependencies_compiler_type" >&5
 
2891
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2108
2892
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2109
 
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
 
2893
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
2894
 
 
2895
 
 
2896
 
 
2897
if
 
2898
  test "x$enable_dependency_tracking" != xno \
 
2899
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
2900
  am__fastdepCC_TRUE=
 
2901
  am__fastdepCC_FALSE='#'
 
2902
else
 
2903
  am__fastdepCC_TRUE='#'
 
2904
  am__fastdepCC_FALSE=
 
2905
fi
 
2906
 
 
2907
 
2110
2908
 
2111
2909
ac_ext=c
2112
2910
ac_cpp='$CPP $CPPFLAGS'
2113
2911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2114
2912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2115
2913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2116
 
echo "$as_me:2116: checking how to run the C preprocessor" >&5
 
2914
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2117
2915
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2118
2916
# On Suns, sometimes $CPP names a directory.
2119
2917
if test -n "$CPP" && test -d "$CPP"; then
2131
2929
do
2132
2930
  # Use a header file that comes with gcc, so configuring glibc
2133
2931
  # with a fresh cross-compiler works.
 
2932
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2933
  # <limits.h> exists even on freestanding compilers.
2134
2934
  # On the NeXT, cc -E runs the code through the compiler's parser,
2135
2935
  # not just through cpp. "Syntax error" is here to catch this case.
2136
2936
  cat >conftest.$ac_ext <<_ACEOF
2137
 
#line 2137 "configure"
2138
 
#include "confdefs.h"
2139
 
#include <assert.h>
2140
 
                     Syntax error
2141
 
_ACEOF
2142
 
if { (eval echo "$as_me:2142: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2937
/* confdefs.h.  */
 
2938
_ACEOF
 
2939
cat confdefs.h >>conftest.$ac_ext
 
2940
cat >>conftest.$ac_ext <<_ACEOF
 
2941
/* end confdefs.h.  */
 
2942
#ifdef __STDC__
 
2943
# include <limits.h>
 
2944
#else
 
2945
# include <assert.h>
 
2946
#endif
 
2947
                     Syntax error
 
2948
_ACEOF
 
2949
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2143
2950
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2144
2951
  ac_status=$?
2145
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2952
  grep -v '^ *+' conftest.er1 >conftest.err
2146
2953
  rm -f conftest.er1
2147
2954
  cat conftest.err >&5
2148
 
  echo "$as_me:2148: \$? = $ac_status" >&5
 
2955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149
2956
  (exit $ac_status); } >/dev/null; then
2150
2957
  if test -s conftest.err; then
2151
2958
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2959
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2152
2960
  else
2153
2961
    ac_cpp_err=
2154
2962
  fi
2159
2967
  :
2160
2968
else
2161
2969
  echo "$as_me: failed program was:" >&5
2162
 
  cat conftest.$ac_ext >&5
 
2970
sed 's/^/| /' conftest.$ac_ext >&5
 
2971
 
2163
2972
  # Broken: fails on valid input.
2164
2973
continue
2165
2974
fi
2168
2977
  # OK, works on sane cases.  Now check whether non-existent headers
2169
2978
  # can be detected and how.
2170
2979
  cat >conftest.$ac_ext <<_ACEOF
2171
 
#line 2171 "configure"
2172
 
#include "confdefs.h"
 
2980
/* confdefs.h.  */
 
2981
_ACEOF
 
2982
cat confdefs.h >>conftest.$ac_ext
 
2983
cat >>conftest.$ac_ext <<_ACEOF
 
2984
/* end confdefs.h.  */
2173
2985
#include <ac_nonexistent.h>
2174
2986
_ACEOF
2175
 
if { (eval echo "$as_me:2175: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2987
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2176
2988
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2177
2989
  ac_status=$?
2178
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2990
  grep -v '^ *+' conftest.er1 >conftest.err
2179
2991
  rm -f conftest.er1
2180
2992
  cat conftest.err >&5
2181
 
  echo "$as_me:2181: \$? = $ac_status" >&5
 
2993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182
2994
  (exit $ac_status); } >/dev/null; then
2183
2995
  if test -s conftest.err; then
2184
2996
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2997
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2185
2998
  else
2186
2999
    ac_cpp_err=
2187
3000
  fi
2193
3006
continue
2194
3007
else
2195
3008
  echo "$as_me: failed program was:" >&5
2196
 
  cat conftest.$ac_ext >&5
 
3009
sed 's/^/| /' conftest.$ac_ext >&5
 
3010
 
2197
3011
  # Passes both tests.
2198
3012
ac_preproc_ok=:
2199
3013
break
2215
3029
else
2216
3030
  ac_cv_prog_CPP=$CPP
2217
3031
fi
2218
 
echo "$as_me:2218: result: $CPP" >&5
 
3032
echo "$as_me:$LINENO: result: $CPP" >&5
2219
3033
echo "${ECHO_T}$CPP" >&6
2220
3034
ac_preproc_ok=false
2221
3035
for ac_c_preproc_warn_flag in '' yes
2222
3036
do
2223
3037
  # Use a header file that comes with gcc, so configuring glibc
2224
3038
  # with a fresh cross-compiler works.
 
3039
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3040
  # <limits.h> exists even on freestanding compilers.
2225
3041
  # On the NeXT, cc -E runs the code through the compiler's parser,
2226
3042
  # not just through cpp. "Syntax error" is here to catch this case.
2227
3043
  cat >conftest.$ac_ext <<_ACEOF
2228
 
#line 2228 "configure"
2229
 
#include "confdefs.h"
2230
 
#include <assert.h>
2231
 
                     Syntax error
2232
 
_ACEOF
2233
 
if { (eval echo "$as_me:2233: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3044
/* confdefs.h.  */
 
3045
_ACEOF
 
3046
cat confdefs.h >>conftest.$ac_ext
 
3047
cat >>conftest.$ac_ext <<_ACEOF
 
3048
/* end confdefs.h.  */
 
3049
#ifdef __STDC__
 
3050
# include <limits.h>
 
3051
#else
 
3052
# include <assert.h>
 
3053
#endif
 
3054
                     Syntax error
 
3055
_ACEOF
 
3056
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2234
3057
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2235
3058
  ac_status=$?
2236
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3059
  grep -v '^ *+' conftest.er1 >conftest.err
2237
3060
  rm -f conftest.er1
2238
3061
  cat conftest.err >&5
2239
 
  echo "$as_me:2239: \$? = $ac_status" >&5
 
3062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240
3063
  (exit $ac_status); } >/dev/null; then
2241
3064
  if test -s conftest.err; then
2242
3065
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3066
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2243
3067
  else
2244
3068
    ac_cpp_err=
2245
3069
  fi
2250
3074
  :
2251
3075
else
2252
3076
  echo "$as_me: failed program was:" >&5
2253
 
  cat conftest.$ac_ext >&5
 
3077
sed 's/^/| /' conftest.$ac_ext >&5
 
3078
 
2254
3079
  # Broken: fails on valid input.
2255
3080
continue
2256
3081
fi
2259
3084
  # OK, works on sane cases.  Now check whether non-existent headers
2260
3085
  # can be detected and how.
2261
3086
  cat >conftest.$ac_ext <<_ACEOF
2262
 
#line 2262 "configure"
2263
 
#include "confdefs.h"
 
3087
/* confdefs.h.  */
 
3088
_ACEOF
 
3089
cat confdefs.h >>conftest.$ac_ext
 
3090
cat >>conftest.$ac_ext <<_ACEOF
 
3091
/* end confdefs.h.  */
2264
3092
#include <ac_nonexistent.h>
2265
3093
_ACEOF
2266
 
if { (eval echo "$as_me:2266: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3094
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2267
3095
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2268
3096
  ac_status=$?
2269
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3097
  grep -v '^ *+' conftest.er1 >conftest.err
2270
3098
  rm -f conftest.er1
2271
3099
  cat conftest.err >&5
2272
 
  echo "$as_me:2272: \$? = $ac_status" >&5
 
3100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273
3101
  (exit $ac_status); } >/dev/null; then
2274
3102
  if test -s conftest.err; then
2275
3103
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3104
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2276
3105
  else
2277
3106
    ac_cpp_err=
2278
3107
  fi
2284
3113
continue
2285
3114
else
2286
3115
  echo "$as_me: failed program was:" >&5
2287
 
  cat conftest.$ac_ext >&5
 
3116
sed 's/^/| /' conftest.$ac_ext >&5
 
3117
 
2288
3118
  # Passes both tests.
2289
3119
ac_preproc_ok=:
2290
3120
break
2297
3127
if $ac_preproc_ok; then
2298
3128
  :
2299
3129
else
2300
 
  { { echo "$as_me:2300: error: C preprocessor \"$CPP\" fails sanity check" >&5
2301
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
 
3130
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3131
See \`config.log' for more details." >&5
 
3132
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3133
See \`config.log' for more details." >&2;}
2302
3134
   { (exit 1); exit 1; }; }
2303
3135
fi
2304
3136
 
2308
3140
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309
3141
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310
3142
 
 
3143
 
 
3144
echo "$as_me:$LINENO: checking for egrep" >&5
 
3145
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3146
if test "${ac_cv_prog_egrep+set}" = set; then
 
3147
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3148
else
 
3149
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3150
    then ac_cv_prog_egrep='grep -E'
 
3151
    else ac_cv_prog_egrep='egrep'
 
3152
    fi
 
3153
fi
 
3154
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3155
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3156
 EGREP=$ac_cv_prog_egrep
 
3157
 
 
3158
 
2311
3159
if test $ac_cv_c_compiler_gnu = yes; then
2312
 
    echo "$as_me:2312: checking whether $CC needs -traditional" >&5
 
3160
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2313
3161
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2314
3162
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2315
3163
  echo $ECHO_N "(cached) $ECHO_C" >&6
2316
3164
else
2317
3165
    ac_pattern="Autoconf.*'x'"
2318
3166
  cat >conftest.$ac_ext <<_ACEOF
2319
 
#line 2319 "configure"
2320
 
#include "confdefs.h"
 
3167
/* confdefs.h.  */
 
3168
_ACEOF
 
3169
cat confdefs.h >>conftest.$ac_ext
 
3170
cat >>conftest.$ac_ext <<_ACEOF
 
3171
/* end confdefs.h.  */
2321
3172
#include <sgtty.h>
2322
3173
Autoconf TIOCGETP
2323
3174
_ACEOF
2324
3175
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2325
 
  egrep "$ac_pattern" >/dev/null 2>&1; then
 
3176
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2326
3177
  ac_cv_prog_gcc_traditional=yes
2327
3178
else
2328
3179
  ac_cv_prog_gcc_traditional=no
2329
3180
fi
2330
3181
rm -f conftest*
2331
3182
 
 
3183
 
2332
3184
  if test $ac_cv_prog_gcc_traditional = no; then
2333
3185
    cat >conftest.$ac_ext <<_ACEOF
2334
 
#line 2334 "configure"
2335
 
#include "confdefs.h"
 
3186
/* confdefs.h.  */
 
3187
_ACEOF
 
3188
cat confdefs.h >>conftest.$ac_ext
 
3189
cat >>conftest.$ac_ext <<_ACEOF
 
3190
/* end confdefs.h.  */
2336
3191
#include <termio.h>
2337
3192
Autoconf TCGETA
2338
3193
_ACEOF
2339
3194
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2340
 
  egrep "$ac_pattern" >/dev/null 2>&1; then
 
3195
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2341
3196
  ac_cv_prog_gcc_traditional=yes
2342
3197
fi
2343
3198
rm -f conftest*
2344
3199
 
2345
3200
  fi
2346
3201
fi
2347
 
echo "$as_me:2347: result: $ac_cv_prog_gcc_traditional" >&5
 
3202
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2348
3203
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2349
3204
  if test $ac_cv_prog_gcc_traditional = yes; then
2350
3205
    CC="$CC -traditional"
2362
3217
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2363
3218
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2364
3219
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3220
# OS/2's system install, which has a completely different semantic
2365
3221
# ./install, which can be erroneously created by make from ./install.sh.
2366
 
echo "$as_me:2366: checking for a BSD compatible install" >&5
2367
 
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 
3222
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3223
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2368
3224
if test -z "$INSTALL"; then
2369
3225
if test "${ac_cv_path_install+set}" = set; then
2370
3226
  echo $ECHO_N "(cached) $ECHO_C" >&6
2371
3227
else
2372
 
    ac_save_IFS=$IFS; IFS=$ac_path_separator
2373
 
  for ac_dir in $PATH; do
2374
 
    IFS=$ac_save_IFS
2375
 
    # Account for people who put trailing slashes in PATH elements.
2376
 
    case $ac_dir/ in
2377
 
    / | ./ | .// | /cC/* \
2378
 
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2379
 
    | /usr/ucb/* ) ;;
2380
 
    *)
2381
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
2382
 
      # Don't use installbsd from OSF since it installs stuff as root
2383
 
      # by default.
2384
 
      for ac_prog in ginstall scoinst install; do
2385
 
        if $as_executable_p "$ac_dir/$ac_prog"; then
 
3228
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3229
for as_dir in $PATH
 
3230
do
 
3231
  IFS=$as_save_IFS
 
3232
  test -z "$as_dir" && as_dir=.
 
3233
  # Account for people who put trailing slashes in PATH elements.
 
3234
case $as_dir/ in
 
3235
  ./ | .// | /cC/* | \
 
3236
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3237
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3238
  /usr/ucb/* ) ;;
 
3239
  *)
 
3240
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3241
    # Don't use installbsd from OSF since it installs stuff as root
 
3242
    # by default.
 
3243
    for ac_prog in ginstall scoinst install; do
 
3244
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3245
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2386
3246
          if test $ac_prog = install &&
2387
 
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
3247
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2388
3248
            # AIX install.  It has an incompatible calling convention.
2389
3249
            :
2390
3250
          elif test $ac_prog = install &&
2391
 
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
3251
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2392
3252
            # program-specific install script used by HP pwplus--don't use.
2393
3253
            :
2394
3254
          else
2395
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
2396
 
            break 2
 
3255
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3256
            break 3
2397
3257
          fi
2398
3258
        fi
2399
3259
      done
2400
 
      ;;
2401
 
    esac
2402
 
  done
 
3260
    done
 
3261
    ;;
 
3262
esac
 
3263
done
 
3264
 
2403
3265
 
2404
3266
fi
2405
3267
  if test "${ac_cv_path_install+set}" = set; then
2412
3274
    INSTALL=$ac_install_sh
2413
3275
  fi
2414
3276
fi
2415
 
echo "$as_me:2415: result: $INSTALL" >&5
 
3277
echo "$as_me:$LINENO: result: $INSTALL" >&5
2416
3278
echo "${ECHO_T}$INSTALL" >&6
2417
3279
 
2418
3280
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2423
3285
 
2424
3286
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2425
3287
 
 
3288
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3289
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
3290
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
3291
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
3292
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3293
else
 
3294
  cat >conftest.make <<\_ACEOF
 
3295
all:
 
3296
        @echo 'ac_maketemp="$(MAKE)"'
 
3297
_ACEOF
 
3298
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3299
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
3300
if test -n "$ac_maketemp"; then
 
3301
  eval ac_cv_prog_make_${ac_make}_set=yes
 
3302
else
 
3303
  eval ac_cv_prog_make_${ac_make}_set=no
 
3304
fi
 
3305
rm -f conftest.make
 
3306
fi
 
3307
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
3308
  echo "$as_me:$LINENO: result: yes" >&5
 
3309
echo "${ECHO_T}yes" >&6
 
3310
  SET_MAKE=
 
3311
else
 
3312
  echo "$as_me:$LINENO: result: no" >&5
 
3313
echo "${ECHO_T}no" >&6
 
3314
  SET_MAKE="MAKE=${MAKE-make}"
 
3315
fi
 
3316
 
2426
3317
if test -n "$ac_tool_prefix"; then
2427
3318
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2428
3319
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2429
 
echo "$as_me:2429: checking for $ac_word" >&5
 
3320
echo "$as_me:$LINENO: checking for $ac_word" >&5
2430
3321
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431
3322
if test "${ac_cv_prog_RANLIB+set}" = set; then
2432
3323
  echo $ECHO_N "(cached) $ECHO_C" >&6
2434
3325
  if test -n "$RANLIB"; then
2435
3326
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2436
3327
else
2437
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2438
 
ac_dummy="$PATH"
2439
 
for ac_dir in $ac_dummy; do
2440
 
  IFS=$ac_save_IFS
2441
 
  test -z "$ac_dir" && ac_dir=.
2442
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2443
 
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2444
 
echo "$as_me:2444: found $ac_dir/$ac_word" >&5
2445
 
break
 
3328
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3329
for as_dir in $PATH
 
3330
do
 
3331
  IFS=$as_save_IFS
 
3332
  test -z "$as_dir" && as_dir=.
 
3333
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3334
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3335
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3336
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3337
    break 2
 
3338
  fi
 
3339
done
2446
3340
done
2447
3341
 
2448
3342
fi
2449
3343
fi
2450
3344
RANLIB=$ac_cv_prog_RANLIB
2451
3345
if test -n "$RANLIB"; then
2452
 
  echo "$as_me:2452: result: $RANLIB" >&5
 
3346
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2453
3347
echo "${ECHO_T}$RANLIB" >&6
2454
3348
else
2455
 
  echo "$as_me:2455: result: no" >&5
 
3349
  echo "$as_me:$LINENO: result: no" >&5
2456
3350
echo "${ECHO_T}no" >&6
2457
3351
fi
2458
3352
 
2461
3355
  ac_ct_RANLIB=$RANLIB
2462
3356
  # Extract the first word of "ranlib", so it can be a program name with args.
2463
3357
set dummy ranlib; ac_word=$2
2464
 
echo "$as_me:2464: checking for $ac_word" >&5
 
3358
echo "$as_me:$LINENO: checking for $ac_word" >&5
2465
3359
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2466
3360
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2467
3361
  echo $ECHO_N "(cached) $ECHO_C" >&6
2469
3363
  if test -n "$ac_ct_RANLIB"; then
2470
3364
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2471
3365
else
2472
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2473
 
ac_dummy="$PATH"
2474
 
for ac_dir in $ac_dummy; do
2475
 
  IFS=$ac_save_IFS
2476
 
  test -z "$ac_dir" && ac_dir=.
2477
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2478
 
ac_cv_prog_ac_ct_RANLIB="ranlib"
2479
 
echo "$as_me:2479: found $ac_dir/$ac_word" >&5
2480
 
break
 
3366
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3367
for as_dir in $PATH
 
3368
do
 
3369
  IFS=$as_save_IFS
 
3370
  test -z "$as_dir" && as_dir=.
 
3371
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3372
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3373
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3374
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3375
    break 2
 
3376
  fi
 
3377
done
2481
3378
done
2482
3379
 
2483
3380
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2485
3382
fi
2486
3383
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2487
3384
if test -n "$ac_ct_RANLIB"; then
2488
 
  echo "$as_me:2488: result: $ac_ct_RANLIB" >&5
 
3385
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2489
3386
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2490
3387
else
2491
 
  echo "$as_me:2491: result: no" >&5
 
3388
  echo "$as_me:$LINENO: result: no" >&5
2492
3389
echo "${ECHO_T}no" >&6
2493
3390
fi
2494
3391
 
2497
3394
  RANLIB="$ac_cv_prog_RANLIB"
2498
3395
fi
2499
3396
 
2500
 
        echo "$as_me:2500: checking for strerror in -lcposix" >&5
2501
 
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2502
 
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
3397
 
 
3398
HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
 
3399
 
 
3400
 
 
3401
echo "$as_me:$LINENO: checking for library containing strerror" >&5
 
3402
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
 
3403
if test "${ac_cv_search_strerror+set}" = set; then
2503
3404
  echo $ECHO_N "(cached) $ECHO_C" >&6
2504
3405
else
2505
 
  ac_check_lib_save_LIBS=$LIBS
2506
 
LIBS="-lcposix  $LIBS"
 
3406
  ac_func_search_save_LIBS=$LIBS
 
3407
ac_cv_search_strerror=no
2507
3408
cat >conftest.$ac_ext <<_ACEOF
2508
 
#line 2508 "configure"
2509
 
#include "confdefs.h"
2510
 
 
2511
 
/* Override any gcc2 internal prototype to avoid an error.  */
2512
 
#ifdef __cplusplus
2513
 
extern "C"
2514
 
#endif
2515
 
/* We use char because int might match the return type of a gcc2
2516
 
   builtin and then its argument prototype would still apply.  */
2517
 
char strerror ();
2518
 
int
2519
 
main ()
2520
 
{
2521
 
strerror ();
2522
 
  ;
2523
 
  return 0;
2524
 
}
2525
 
_ACEOF
2526
 
rm -f conftest.$ac_objext conftest$ac_exeext
2527
 
if { (eval echo "$as_me:2527: \"$ac_link\"") >&5
 
3409
/* confdefs.h.  */
 
3410
_ACEOF
 
3411
cat confdefs.h >>conftest.$ac_ext
 
3412
cat >>conftest.$ac_ext <<_ACEOF
 
3413
/* end confdefs.h.  */
 
3414
 
 
3415
/* Override any gcc2 internal prototype to avoid an error.  */
 
3416
#ifdef __cplusplus
 
3417
extern "C"
 
3418
#endif
 
3419
/* We use char because int might match the return type of a gcc2
 
3420
   builtin and then its argument prototype would still apply.  */
 
3421
char strerror ();
 
3422
int
 
3423
main ()
 
3424
{
 
3425
strerror ();
 
3426
  ;
 
3427
  return 0;
 
3428
}
 
3429
_ACEOF
 
3430
rm -f conftest.$ac_objext conftest$ac_exeext
 
3431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3432
  (eval $ac_link) 2>conftest.er1
 
3433
  ac_status=$?
 
3434
  grep -v '^ *+' conftest.er1 >conftest.err
 
3435
  rm -f conftest.er1
 
3436
  cat conftest.err >&5
 
3437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3438
  (exit $ac_status); } &&
 
3439
         { ac_try='test -z "$ac_c_werror_flag"
 
3440
                         || test ! -s conftest.err'
 
3441
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3442
  (eval $ac_try) 2>&5
 
3443
  ac_status=$?
 
3444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3445
  (exit $ac_status); }; } &&
 
3446
         { ac_try='test -s conftest$ac_exeext'
 
3447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3448
  (eval $ac_try) 2>&5
 
3449
  ac_status=$?
 
3450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3451
  (exit $ac_status); }; }; then
 
3452
  ac_cv_search_strerror="none required"
 
3453
else
 
3454
  echo "$as_me: failed program was:" >&5
 
3455
sed 's/^/| /' conftest.$ac_ext >&5
 
3456
 
 
3457
fi
 
3458
rm -f conftest.err conftest.$ac_objext \
 
3459
      conftest$ac_exeext conftest.$ac_ext
 
3460
if test "$ac_cv_search_strerror" = no; then
 
3461
  for ac_lib in cposix; do
 
3462
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
3463
    cat >conftest.$ac_ext <<_ACEOF
 
3464
/* confdefs.h.  */
 
3465
_ACEOF
 
3466
cat confdefs.h >>conftest.$ac_ext
 
3467
cat >>conftest.$ac_ext <<_ACEOF
 
3468
/* end confdefs.h.  */
 
3469
 
 
3470
/* Override any gcc2 internal prototype to avoid an error.  */
 
3471
#ifdef __cplusplus
 
3472
extern "C"
 
3473
#endif
 
3474
/* We use char because int might match the return type of a gcc2
 
3475
   builtin and then its argument prototype would still apply.  */
 
3476
char strerror ();
 
3477
int
 
3478
main ()
 
3479
{
 
3480
strerror ();
 
3481
  ;
 
3482
  return 0;
 
3483
}
 
3484
_ACEOF
 
3485
rm -f conftest.$ac_objext conftest$ac_exeext
 
3486
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3487
  (eval $ac_link) 2>conftest.er1
 
3488
  ac_status=$?
 
3489
  grep -v '^ *+' conftest.er1 >conftest.err
 
3490
  rm -f conftest.er1
 
3491
  cat conftest.err >&5
 
3492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3493
  (exit $ac_status); } &&
 
3494
         { ac_try='test -z "$ac_c_werror_flag"
 
3495
                         || test ! -s conftest.err'
 
3496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3497
  (eval $ac_try) 2>&5
 
3498
  ac_status=$?
 
3499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3500
  (exit $ac_status); }; } &&
 
3501
         { ac_try='test -s conftest$ac_exeext'
 
3502
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3503
  (eval $ac_try) 2>&5
 
3504
  ac_status=$?
 
3505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3506
  (exit $ac_status); }; }; then
 
3507
  ac_cv_search_strerror="-l$ac_lib"
 
3508
break
 
3509
else
 
3510
  echo "$as_me: failed program was:" >&5
 
3511
sed 's/^/| /' conftest.$ac_ext >&5
 
3512
 
 
3513
fi
 
3514
rm -f conftest.err conftest.$ac_objext \
 
3515
      conftest$ac_exeext conftest.$ac_ext
 
3516
  done
 
3517
fi
 
3518
LIBS=$ac_func_search_save_LIBS
 
3519
fi
 
3520
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
 
3521
echo "${ECHO_T}$ac_cv_search_strerror" >&6
 
3522
if test "$ac_cv_search_strerror" != no; then
 
3523
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
 
3524
 
 
3525
fi
 
3526
 
 
3527
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3528
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3529
if test "${ac_cv_header_stdc+set}" = set; then
 
3530
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3531
else
 
3532
  cat >conftest.$ac_ext <<_ACEOF
 
3533
/* confdefs.h.  */
 
3534
_ACEOF
 
3535
cat confdefs.h >>conftest.$ac_ext
 
3536
cat >>conftest.$ac_ext <<_ACEOF
 
3537
/* end confdefs.h.  */
 
3538
#include <stdlib.h>
 
3539
#include <stdarg.h>
 
3540
#include <string.h>
 
3541
#include <float.h>
 
3542
 
 
3543
int
 
3544
main ()
 
3545
{
 
3546
 
 
3547
  ;
 
3548
  return 0;
 
3549
}
 
3550
_ACEOF
 
3551
rm -f conftest.$ac_objext
 
3552
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3553
  (eval $ac_compile) 2>conftest.er1
 
3554
  ac_status=$?
 
3555
  grep -v '^ *+' conftest.er1 >conftest.err
 
3556
  rm -f conftest.er1
 
3557
  cat conftest.err >&5
 
3558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3559
  (exit $ac_status); } &&
 
3560
         { ac_try='test -z "$ac_c_werror_flag"
 
3561
                         || test ! -s conftest.err'
 
3562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3563
  (eval $ac_try) 2>&5
 
3564
  ac_status=$?
 
3565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3566
  (exit $ac_status); }; } &&
 
3567
         { ac_try='test -s conftest.$ac_objext'
 
3568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3569
  (eval $ac_try) 2>&5
 
3570
  ac_status=$?
 
3571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3572
  (exit $ac_status); }; }; then
 
3573
  ac_cv_header_stdc=yes
 
3574
else
 
3575
  echo "$as_me: failed program was:" >&5
 
3576
sed 's/^/| /' conftest.$ac_ext >&5
 
3577
 
 
3578
ac_cv_header_stdc=no
 
3579
fi
 
3580
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3581
 
 
3582
if test $ac_cv_header_stdc = yes; then
 
3583
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3584
  cat >conftest.$ac_ext <<_ACEOF
 
3585
/* confdefs.h.  */
 
3586
_ACEOF
 
3587
cat confdefs.h >>conftest.$ac_ext
 
3588
cat >>conftest.$ac_ext <<_ACEOF
 
3589
/* end confdefs.h.  */
 
3590
#include <string.h>
 
3591
 
 
3592
_ACEOF
 
3593
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3594
  $EGREP "memchr" >/dev/null 2>&1; then
 
3595
  :
 
3596
else
 
3597
  ac_cv_header_stdc=no
 
3598
fi
 
3599
rm -f conftest*
 
3600
 
 
3601
fi
 
3602
 
 
3603
if test $ac_cv_header_stdc = yes; then
 
3604
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3605
  cat >conftest.$ac_ext <<_ACEOF
 
3606
/* confdefs.h.  */
 
3607
_ACEOF
 
3608
cat confdefs.h >>conftest.$ac_ext
 
3609
cat >>conftest.$ac_ext <<_ACEOF
 
3610
/* end confdefs.h.  */
 
3611
#include <stdlib.h>
 
3612
 
 
3613
_ACEOF
 
3614
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3615
  $EGREP "free" >/dev/null 2>&1; then
 
3616
  :
 
3617
else
 
3618
  ac_cv_header_stdc=no
 
3619
fi
 
3620
rm -f conftest*
 
3621
 
 
3622
fi
 
3623
 
 
3624
if test $ac_cv_header_stdc = yes; then
 
3625
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3626
  if test "$cross_compiling" = yes; then
 
3627
  :
 
3628
else
 
3629
  cat >conftest.$ac_ext <<_ACEOF
 
3630
/* confdefs.h.  */
 
3631
_ACEOF
 
3632
cat confdefs.h >>conftest.$ac_ext
 
3633
cat >>conftest.$ac_ext <<_ACEOF
 
3634
/* end confdefs.h.  */
 
3635
#include <ctype.h>
 
3636
#if ((' ' & 0x0FF) == 0x020)
 
3637
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3638
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3639
#else
 
3640
# define ISLOWER(c) \
 
3641
                   (('a' <= (c) && (c) <= 'i') \
 
3642
                     || ('j' <= (c) && (c) <= 'r') \
 
3643
                     || ('s' <= (c) && (c) <= 'z'))
 
3644
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3645
#endif
 
3646
 
 
3647
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3648
int
 
3649
main ()
 
3650
{
 
3651
  int i;
 
3652
  for (i = 0; i < 256; i++)
 
3653
    if (XOR (islower (i), ISLOWER (i))
 
3654
        || toupper (i) != TOUPPER (i))
 
3655
      exit(2);
 
3656
  exit (0);
 
3657
}
 
3658
_ACEOF
 
3659
rm -f conftest$ac_exeext
 
3660
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2528
3661
  (eval $ac_link) 2>&5
2529
3662
  ac_status=$?
2530
 
  echo "$as_me:2530: \$? = $ac_status" >&5
 
3663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3664
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3666
  (eval $ac_try) 2>&5
 
3667
  ac_status=$?
 
3668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3669
  (exit $ac_status); }; }; then
 
3670
  :
 
3671
else
 
3672
  echo "$as_me: program exited with status $ac_status" >&5
 
3673
echo "$as_me: failed program was:" >&5
 
3674
sed 's/^/| /' conftest.$ac_ext >&5
 
3675
 
 
3676
( exit $ac_status )
 
3677
ac_cv_header_stdc=no
 
3678
fi
 
3679
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3680
fi
 
3681
fi
 
3682
fi
 
3683
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3684
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3685
if test $ac_cv_header_stdc = yes; then
 
3686
 
 
3687
cat >>confdefs.h <<\_ACEOF
 
3688
#define STDC_HEADERS 1
 
3689
_ACEOF
 
3690
 
 
3691
fi
 
3692
 
 
3693
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3694
 
 
3695
 
 
3696
 
 
3697
 
 
3698
 
 
3699
 
 
3700
 
 
3701
 
 
3702
 
 
3703
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3704
                  inttypes.h stdint.h unistd.h
 
3705
do
 
3706
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3707
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3708
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3709
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3710
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3711
else
 
3712
  cat >conftest.$ac_ext <<_ACEOF
 
3713
/* confdefs.h.  */
 
3714
_ACEOF
 
3715
cat confdefs.h >>conftest.$ac_ext
 
3716
cat >>conftest.$ac_ext <<_ACEOF
 
3717
/* end confdefs.h.  */
 
3718
$ac_includes_default
 
3719
 
 
3720
#include <$ac_header>
 
3721
_ACEOF
 
3722
rm -f conftest.$ac_objext
 
3723
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3724
  (eval $ac_compile) 2>conftest.er1
 
3725
  ac_status=$?
 
3726
  grep -v '^ *+' conftest.er1 >conftest.err
 
3727
  rm -f conftest.er1
 
3728
  cat conftest.err >&5
 
3729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531
3730
  (exit $ac_status); } &&
2532
 
         { ac_try='test -s conftest$ac_exeext'
2533
 
  { (eval echo "$as_me:2533: \"$ac_try\"") >&5
2534
 
  (eval $ac_try) 2>&5
2535
 
  ac_status=$?
2536
 
  echo "$as_me:2536: \$? = $ac_status" >&5
 
3731
         { ac_try='test -z "$ac_c_werror_flag"
 
3732
                         || test ! -s conftest.err'
 
3733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3734
  (eval $ac_try) 2>&5
 
3735
  ac_status=$?
 
3736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3737
  (exit $ac_status); }; } &&
 
3738
         { ac_try='test -s conftest.$ac_objext'
 
3739
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3740
  (eval $ac_try) 2>&5
 
3741
  ac_status=$?
 
3742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537
3743
  (exit $ac_status); }; }; then
2538
 
  ac_cv_lib_cposix_strerror=yes
 
3744
  eval "$as_ac_Header=yes"
2539
3745
else
2540
3746
  echo "$as_me: failed program was:" >&5
2541
 
cat conftest.$ac_ext >&5
2542
 
ac_cv_lib_cposix_strerror=no
2543
 
fi
2544
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2545
 
LIBS=$ac_check_lib_save_LIBS
2546
 
fi
2547
 
echo "$as_me:2547: result: $ac_cv_lib_cposix_strerror" >&5
2548
 
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2549
 
if test $ac_cv_lib_cposix_strerror = yes; then
2550
 
  LIBS="$LIBS -lcposix"
2551
 
fi
2552
 
 
2553
 
echo "$as_me:2553: checking for minix/config.h" >&5
 
3747
sed 's/^/| /' conftest.$ac_ext >&5
 
3748
 
 
3749
eval "$as_ac_Header=no"
 
3750
fi
 
3751
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3752
fi
 
3753
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3754
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3755
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3756
  cat >>confdefs.h <<_ACEOF
 
3757
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3758
_ACEOF
 
3759
 
 
3760
fi
 
3761
 
 
3762
done
 
3763
 
 
3764
 
 
3765
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3766
  echo "$as_me:$LINENO: checking for minix/config.h" >&5
2554
3767
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2555
3768
if test "${ac_cv_header_minix_config_h+set}" = set; then
2556
3769
  echo $ECHO_N "(cached) $ECHO_C" >&6
2557
 
else
2558
 
  cat >conftest.$ac_ext <<_ACEOF
2559
 
#line 2559 "configure"
2560
 
#include "confdefs.h"
2561
 
#include <minix/config.h>
2562
 
_ACEOF
2563
 
if { (eval echo "$as_me:2563: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3770
fi
 
3771
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
3772
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
 
3773
else
 
3774
  # Is the header compilable?
 
3775
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
3776
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
 
3777
cat >conftest.$ac_ext <<_ACEOF
 
3778
/* confdefs.h.  */
 
3779
_ACEOF
 
3780
cat confdefs.h >>conftest.$ac_ext
 
3781
cat >>conftest.$ac_ext <<_ACEOF
 
3782
/* end confdefs.h.  */
 
3783
$ac_includes_default
 
3784
#include <minix/config.h>
 
3785
_ACEOF
 
3786
rm -f conftest.$ac_objext
 
3787
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3788
  (eval $ac_compile) 2>conftest.er1
 
3789
  ac_status=$?
 
3790
  grep -v '^ *+' conftest.er1 >conftest.err
 
3791
  rm -f conftest.er1
 
3792
  cat conftest.err >&5
 
3793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3794
  (exit $ac_status); } &&
 
3795
         { ac_try='test -z "$ac_c_werror_flag"
 
3796
                         || test ! -s conftest.err'
 
3797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3798
  (eval $ac_try) 2>&5
 
3799
  ac_status=$?
 
3800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3801
  (exit $ac_status); }; } &&
 
3802
         { ac_try='test -s conftest.$ac_objext'
 
3803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3804
  (eval $ac_try) 2>&5
 
3805
  ac_status=$?
 
3806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3807
  (exit $ac_status); }; }; then
 
3808
  ac_header_compiler=yes
 
3809
else
 
3810
  echo "$as_me: failed program was:" >&5
 
3811
sed 's/^/| /' conftest.$ac_ext >&5
 
3812
 
 
3813
ac_header_compiler=no
 
3814
fi
 
3815
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3816
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3817
echo "${ECHO_T}$ac_header_compiler" >&6
 
3818
 
 
3819
# Is the header present?
 
3820
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
3821
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
 
3822
cat >conftest.$ac_ext <<_ACEOF
 
3823
/* confdefs.h.  */
 
3824
_ACEOF
 
3825
cat confdefs.h >>conftest.$ac_ext
 
3826
cat >>conftest.$ac_ext <<_ACEOF
 
3827
/* end confdefs.h.  */
 
3828
#include <minix/config.h>
 
3829
_ACEOF
 
3830
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2564
3831
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2565
3832
  ac_status=$?
2566
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3833
  grep -v '^ *+' conftest.er1 >conftest.err
2567
3834
  rm -f conftest.er1
2568
3835
  cat conftest.err >&5
2569
 
  echo "$as_me:2569: \$? = $ac_status" >&5
 
3836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570
3837
  (exit $ac_status); } >/dev/null; then
2571
3838
  if test -s conftest.err; then
2572
3839
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3840
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2573
3841
  else
2574
3842
    ac_cpp_err=
2575
3843
  fi
2577
3845
  ac_cpp_err=yes
2578
3846
fi
2579
3847
if test -z "$ac_cpp_err"; then
2580
 
  ac_cv_header_minix_config_h=yes
 
3848
  ac_header_preproc=yes
2581
3849
else
2582
3850
  echo "$as_me: failed program was:" >&5
2583
 
  cat conftest.$ac_ext >&5
2584
 
  ac_cv_header_minix_config_h=no
 
3851
sed 's/^/| /' conftest.$ac_ext >&5
 
3852
 
 
3853
  ac_header_preproc=no
2585
3854
fi
2586
3855
rm -f conftest.err conftest.$ac_ext
 
3856
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3857
echo "${ECHO_T}$ac_header_preproc" >&6
 
3858
 
 
3859
# So?  What about this header?
 
3860
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3861
  yes:no: )
 
3862
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
3863
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3864
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
3865
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
3866
    ac_header_preproc=yes
 
3867
    ;;
 
3868
  no:yes:* )
 
3869
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
3870
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
3871
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
3872
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
3873
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
3874
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
3875
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
3876
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3877
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
3878
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
3879
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
3880
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
3881
    (
 
3882
      cat <<\_ASBOX
 
3883
## -------------------------------------- ##
 
3884
## Report this to the GNU Texinfo lists.  ##
 
3885
## -------------------------------------- ##
 
3886
_ASBOX
 
3887
    ) |
 
3888
      sed "s/^/$as_me: WARNING:     /" >&2
 
3889
    ;;
 
3890
esac
 
3891
echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
3892
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
 
3893
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
3894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3895
else
 
3896
  ac_cv_header_minix_config_h=$ac_header_preproc
2587
3897
fi
2588
 
echo "$as_me:2588: result: $ac_cv_header_minix_config_h" >&5
 
3898
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2589
3899
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
 
3900
 
 
3901
fi
2590
3902
if test $ac_cv_header_minix_config_h = yes; then
2591
3903
  MINIX=yes
2592
3904
else
2593
3905
  MINIX=
2594
3906
fi
2595
3907
 
 
3908
 
2596
3909
if test "$MINIX" = yes; then
2597
3910
 
2598
 
cat >>confdefs.h <<\EOF
 
3911
cat >>confdefs.h <<\_ACEOF
2599
3912
#define _POSIX_SOURCE 1
2600
 
EOF
2601
 
 
2602
 
cat >>confdefs.h <<\EOF
 
3913
_ACEOF
 
3914
 
 
3915
 
 
3916
cat >>confdefs.h <<\_ACEOF
2603
3917
#define _POSIX_1_SOURCE 2
2604
 
EOF
2605
 
 
2606
 
cat >>confdefs.h <<\EOF
 
3918
_ACEOF
 
3919
 
 
3920
 
 
3921
cat >>confdefs.h <<\_ACEOF
2607
3922
#define _MINIX 1
2608
 
EOF
 
3923
_ACEOF
2609
3924
 
2610
3925
fi
2611
3926
 
 
3927
 
2612
3928
# Needed on sysV68 for sigblock, sigsetmask.  But check for it in libc first.
2613
 
echo "$as_me:2613: checking for sigblock" >&5
 
3929
echo "$as_me:$LINENO: checking for sigblock" >&5
2614
3930
echo $ECHO_N "checking for sigblock... $ECHO_C" >&6
2615
3931
if test "${ac_cv_func_sigblock+set}" = set; then
2616
3932
  echo $ECHO_N "(cached) $ECHO_C" >&6
2617
3933
else
2618
3934
  cat >conftest.$ac_ext <<_ACEOF
2619
 
#line 2619 "configure"
2620
 
#include "confdefs.h"
 
3935
/* confdefs.h.  */
 
3936
_ACEOF
 
3937
cat confdefs.h >>conftest.$ac_ext
 
3938
cat >>conftest.$ac_ext <<_ACEOF
 
3939
/* end confdefs.h.  */
 
3940
/* Define sigblock to an innocuous variant, in case <limits.h> declares sigblock.
 
3941
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3942
#define sigblock innocuous_sigblock
 
3943
 
2621
3944
/* System header to define __stub macros and hopefully few prototypes,
2622
 
    which can conflict with char sigblock (); below.  */
2623
 
#include <assert.h>
 
3945
    which can conflict with char sigblock (); below.
 
3946
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3947
    <limits.h> exists even on freestanding compilers.  */
 
3948
 
 
3949
#ifdef __STDC__
 
3950
# include <limits.h>
 
3951
#else
 
3952
# include <assert.h>
 
3953
#endif
 
3954
 
 
3955
#undef sigblock
 
3956
 
2624
3957
/* Override any gcc2 internal prototype to avoid an error.  */
2625
3958
#ifdef __cplusplus
2626
3959
extern "C"
 
3960
{
2627
3961
#endif
2628
3962
/* We use char because int might match the return type of a gcc2
2629
3963
   builtin and then its argument prototype would still apply.  */
2630
3964
char sigblock ();
2631
 
char (*f) ();
2632
 
 
2633
 
int
2634
 
main ()
2635
 
{
2636
3965
/* The GNU C library defines this for functions which it implements
2637
3966
    to always fail with ENOSYS.  Some functions are actually named
2638
3967
    something starting with __ and the normal name is an alias.  */
2639
3968
#if defined (__stub_sigblock) || defined (__stub___sigblock)
2640
3969
choke me
2641
3970
#else
2642
 
f = sigblock;
 
3971
char (*f) () = sigblock;
 
3972
#endif
 
3973
#ifdef __cplusplus
 
3974
}
2643
3975
#endif
2644
3976
 
 
3977
int
 
3978
main ()
 
3979
{
 
3980
return f != sigblock;
2645
3981
  ;
2646
3982
  return 0;
2647
3983
}
2648
3984
_ACEOF
2649
3985
rm -f conftest.$ac_objext conftest$ac_exeext
2650
 
if { (eval echo "$as_me:2650: \"$ac_link\"") >&5
2651
 
  (eval $ac_link) 2>&5
 
3986
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3987
  (eval $ac_link) 2>conftest.er1
2652
3988
  ac_status=$?
2653
 
  echo "$as_me:2653: \$? = $ac_status" >&5
 
3989
  grep -v '^ *+' conftest.er1 >conftest.err
 
3990
  rm -f conftest.er1
 
3991
  cat conftest.err >&5
 
3992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654
3993
  (exit $ac_status); } &&
2655
 
         { ac_try='test -s conftest$ac_exeext'
2656
 
  { (eval echo "$as_me:2656: \"$ac_try\"") >&5
2657
 
  (eval $ac_try) 2>&5
2658
 
  ac_status=$?
2659
 
  echo "$as_me:2659: \$? = $ac_status" >&5
 
3994
         { ac_try='test -z "$ac_c_werror_flag"
 
3995
                         || test ! -s conftest.err'
 
3996
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3997
  (eval $ac_try) 2>&5
 
3998
  ac_status=$?
 
3999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4000
  (exit $ac_status); }; } &&
 
4001
         { ac_try='test -s conftest$ac_exeext'
 
4002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4003
  (eval $ac_try) 2>&5
 
4004
  ac_status=$?
 
4005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660
4006
  (exit $ac_status); }; }; then
2661
4007
  ac_cv_func_sigblock=yes
2662
4008
else
2663
4009
  echo "$as_me: failed program was:" >&5
2664
 
cat conftest.$ac_ext >&5
 
4010
sed 's/^/| /' conftest.$ac_ext >&5
 
4011
 
2665
4012
ac_cv_func_sigblock=no
2666
4013
fi
2667
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4014
rm -f conftest.err conftest.$ac_objext \
 
4015
      conftest$ac_exeext conftest.$ac_ext
2668
4016
fi
2669
 
echo "$as_me:2669: result: $ac_cv_func_sigblock" >&5
 
4017
echo "$as_me:$LINENO: result: $ac_cv_func_sigblock" >&5
2670
4018
echo "${ECHO_T}$ac_cv_func_sigblock" >&6
2671
4019
if test $ac_cv_func_sigblock = yes; then
2672
4020
  :
2673
4021
else
2674
4022
 
2675
 
echo "$as_me:2675: checking for sigblock in -lbsd" >&5
 
4023
echo "$as_me:$LINENO: checking for sigblock in -lbsd" >&5
2676
4024
echo $ECHO_N "checking for sigblock in -lbsd... $ECHO_C" >&6
2677
4025
if test "${ac_cv_lib_bsd_sigblock+set}" = set; then
2678
4026
  echo $ECHO_N "(cached) $ECHO_C" >&6
2680
4028
  ac_check_lib_save_LIBS=$LIBS
2681
4029
LIBS="-lbsd  $LIBS"
2682
4030
cat >conftest.$ac_ext <<_ACEOF
2683
 
#line 2683 "configure"
2684
 
#include "confdefs.h"
 
4031
/* confdefs.h.  */
 
4032
_ACEOF
 
4033
cat confdefs.h >>conftest.$ac_ext
 
4034
cat >>conftest.$ac_ext <<_ACEOF
 
4035
/* end confdefs.h.  */
2685
4036
 
2686
4037
/* Override any gcc2 internal prototype to avoid an error.  */
2687
4038
#ifdef __cplusplus
2699
4050
}
2700
4051
_ACEOF
2701
4052
rm -f conftest.$ac_objext conftest$ac_exeext
2702
 
if { (eval echo "$as_me:2702: \"$ac_link\"") >&5
2703
 
  (eval $ac_link) 2>&5
 
4053
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4054
  (eval $ac_link) 2>conftest.er1
2704
4055
  ac_status=$?
2705
 
  echo "$as_me:2705: \$? = $ac_status" >&5
 
4056
  grep -v '^ *+' conftest.er1 >conftest.err
 
4057
  rm -f conftest.er1
 
4058
  cat conftest.err >&5
 
4059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706
4060
  (exit $ac_status); } &&
2707
 
         { ac_try='test -s conftest$ac_exeext'
2708
 
  { (eval echo "$as_me:2708: \"$ac_try\"") >&5
2709
 
  (eval $ac_try) 2>&5
2710
 
  ac_status=$?
2711
 
  echo "$as_me:2711: \$? = $ac_status" >&5
 
4061
         { ac_try='test -z "$ac_c_werror_flag"
 
4062
                         || test ! -s conftest.err'
 
4063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4064
  (eval $ac_try) 2>&5
 
4065
  ac_status=$?
 
4066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4067
  (exit $ac_status); }; } &&
 
4068
         { ac_try='test -s conftest$ac_exeext'
 
4069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4070
  (eval $ac_try) 2>&5
 
4071
  ac_status=$?
 
4072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712
4073
  (exit $ac_status); }; }; then
2713
4074
  ac_cv_lib_bsd_sigblock=yes
2714
4075
else
2715
4076
  echo "$as_me: failed program was:" >&5
2716
 
cat conftest.$ac_ext >&5
 
4077
sed 's/^/| /' conftest.$ac_ext >&5
 
4078
 
2717
4079
ac_cv_lib_bsd_sigblock=no
2718
4080
fi
2719
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4081
rm -f conftest.err conftest.$ac_objext \
 
4082
      conftest$ac_exeext conftest.$ac_ext
2720
4083
LIBS=$ac_check_lib_save_LIBS
2721
4084
fi
2722
 
echo "$as_me:2722: result: $ac_cv_lib_bsd_sigblock" >&5
 
4085
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_sigblock" >&5
2723
4086
echo "${ECHO_T}$ac_cv_lib_bsd_sigblock" >&6
2724
4087
if test $ac_cv_lib_bsd_sigblock = yes; then
2725
 
  cat >>confdefs.h <<EOF
 
4088
  cat >>confdefs.h <<_ACEOF
2726
4089
#define HAVE_LIBBSD 1
2727
 
EOF
 
4090
_ACEOF
2728
4091
 
2729
4092
  LIBS="-lbsd $LIBS"
2730
4093
 
2732
4095
 
2733
4096
fi
2734
4097
 
2735
 
# Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
2736
 
# rather ncurses.  So we check for it.
2737
 
TERMLIBS=
2738
 
# Check for termlib before termcap because Solaris termcap needs libucb.
2739
 
for termlib in ncurses curses termlib termcap terminfo; do
2740
 
   as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
2741
 
echo "$as_me:2741: checking for tgetent in -l${termlib}" >&5
2742
 
echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
2743
 
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
2744
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2745
 
else
2746
 
  ac_check_lib_save_LIBS=$LIBS
2747
 
LIBS="-l${termlib}  $LIBS"
2748
 
cat >conftest.$ac_ext <<_ACEOF
2749
 
#line 2749 "configure"
2750
 
#include "confdefs.h"
2751
 
 
2752
 
/* Override any gcc2 internal prototype to avoid an error.  */
2753
 
#ifdef __cplusplus
2754
 
extern "C"
2755
 
#endif
2756
 
/* We use char because int might match the return type of a gcc2
2757
 
   builtin and then its argument prototype would still apply.  */
2758
 
char tgetent ();
2759
 
int
2760
 
main ()
2761
 
{
2762
 
tgetent ();
2763
 
  ;
2764
 
  return 0;
2765
 
}
2766
 
_ACEOF
2767
 
rm -f conftest.$ac_objext conftest$ac_exeext
2768
 
if { (eval echo "$as_me:2768: \"$ac_link\"") >&5
2769
 
  (eval $ac_link) 2>&5
2770
 
  ac_status=$?
2771
 
  echo "$as_me:2771: \$? = $ac_status" >&5
2772
 
  (exit $ac_status); } &&
2773
 
         { ac_try='test -s conftest$ac_exeext'
2774
 
  { (eval echo "$as_me:2774: \"$ac_try\"") >&5
2775
 
  (eval $ac_try) 2>&5
2776
 
  ac_status=$?
2777
 
  echo "$as_me:2777: \$? = $ac_status" >&5
2778
 
  (exit $ac_status); }; }; then
2779
 
  eval "$as_ac_Lib=yes"
2780
 
else
2781
 
  echo "$as_me: failed program was:" >&5
2782
 
cat conftest.$ac_ext >&5
2783
 
eval "$as_ac_Lib=no"
2784
 
fi
2785
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2786
 
LIBS=$ac_check_lib_save_LIBS
2787
 
fi
2788
 
echo "$as_me:2788: result: `eval echo '${'$as_ac_Lib'}'`" >&5
2789
 
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
2790
 
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2791
 
  TERMLIBS="${TERMLIBS} -l${termlib}"; break
2792
 
fi
2793
 
 
2794
 
done
2795
 
 
2796
 
if test "x$termlib" = xncurses; then
2797
 
 
2798
 
for ac_header in ncurses/termcap.h
2799
 
do
2800
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2801
 
echo "$as_me:2801: checking for $ac_header" >&5
2802
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2803
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2804
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2805
 
else
2806
 
  cat >conftest.$ac_ext <<_ACEOF
2807
 
#line 2807 "configure"
2808
 
#include "confdefs.h"
2809
 
#include <$ac_header>
2810
 
_ACEOF
2811
 
if { (eval echo "$as_me:2811: \"$ac_cpp conftest.$ac_ext\"") >&5
2812
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2813
 
  ac_status=$?
2814
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2815
 
  rm -f conftest.er1
2816
 
  cat conftest.err >&5
2817
 
  echo "$as_me:2817: \$? = $ac_status" >&5
2818
 
  (exit $ac_status); } >/dev/null; then
2819
 
  if test -s conftest.err; then
2820
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2821
 
  else
2822
 
    ac_cpp_err=
2823
 
  fi
2824
 
else
2825
 
  ac_cpp_err=yes
2826
 
fi
2827
 
if test -z "$ac_cpp_err"; then
2828
 
  eval "$as_ac_Header=yes"
2829
 
else
2830
 
  echo "$as_me: failed program was:" >&5
2831
 
  cat conftest.$ac_ext >&5
2832
 
  eval "$as_ac_Header=no"
2833
 
fi
2834
 
rm -f conftest.err conftest.$ac_ext
2835
 
fi
2836
 
echo "$as_me:2836: result: `eval echo '${'$as_ac_Header'}'`" >&5
2837
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2838
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2839
 
  cat >>confdefs.h <<EOF
2840
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2841
 
EOF
2842
 
 
2843
 
fi
2844
 
done
2845
 
 
2846
 
fi
2847
 
echo "$as_me:2847: checking whether stat file-mode macros are broken" >&5
 
4098
 
 
4099
# Checks for header files.
 
4100
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
2848
4101
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
2849
4102
if test "${ac_cv_header_stat_broken+set}" = set; then
2850
4103
  echo $ECHO_N "(cached) $ECHO_C" >&6
2851
4104
else
2852
4105
  cat >conftest.$ac_ext <<_ACEOF
2853
 
#line 2853 "configure"
2854
 
#include "confdefs.h"
 
4106
/* confdefs.h.  */
 
4107
_ACEOF
 
4108
cat confdefs.h >>conftest.$ac_ext
 
4109
cat >>conftest.$ac_ext <<_ACEOF
 
4110
/* end confdefs.h.  */
2855
4111
#include <sys/types.h>
2856
4112
#include <sys/stat.h>
2857
4113
 
2881
4137
 
2882
4138
_ACEOF
2883
4139
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2884
 
  egrep "You lose" >/dev/null 2>&1; then
 
4140
  $EGREP "You lose" >/dev/null 2>&1; then
2885
4141
  ac_cv_header_stat_broken=yes
2886
4142
else
2887
4143
  ac_cv_header_stat_broken=no
2889
4145
rm -f conftest*
2890
4146
 
2891
4147
fi
2892
 
echo "$as_me:2892: result: $ac_cv_header_stat_broken" >&5
 
4148
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
2893
4149
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
2894
4150
if test $ac_cv_header_stat_broken = yes; then
2895
4151
 
2896
 
cat >>confdefs.h <<\EOF
 
4152
cat >>confdefs.h <<\_ACEOF
2897
4153
#define STAT_MACROS_BROKEN 1
2898
 
EOF
 
4154
_ACEOF
2899
4155
 
2900
4156
fi
2901
4157
 
2902
 
echo "$as_me:2902: checking for ANSI C header files" >&5
 
4158
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2903
4159
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2904
4160
if test "${ac_cv_header_stdc+set}" = set; then
2905
4161
  echo $ECHO_N "(cached) $ECHO_C" >&6
2906
4162
else
2907
4163
  cat >conftest.$ac_ext <<_ACEOF
2908
 
#line 2908 "configure"
2909
 
#include "confdefs.h"
 
4164
/* confdefs.h.  */
 
4165
_ACEOF
 
4166
cat confdefs.h >>conftest.$ac_ext
 
4167
cat >>conftest.$ac_ext <<_ACEOF
 
4168
/* end confdefs.h.  */
2910
4169
#include <stdlib.h>
2911
4170
#include <stdarg.h>
2912
4171
#include <string.h>
2913
4172
#include <float.h>
2914
4173
 
 
4174
int
 
4175
main ()
 
4176
{
 
4177
 
 
4178
  ;
 
4179
  return 0;
 
4180
}
2915
4181
_ACEOF
2916
 
if { (eval echo "$as_me:2916: \"$ac_cpp conftest.$ac_ext\"") >&5
2917
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4182
rm -f conftest.$ac_objext
 
4183
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4184
  (eval $ac_compile) 2>conftest.er1
2918
4185
  ac_status=$?
2919
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4186
  grep -v '^ *+' conftest.er1 >conftest.err
2920
4187
  rm -f conftest.er1
2921
4188
  cat conftest.err >&5
2922
 
  echo "$as_me:2922: \$? = $ac_status" >&5
2923
 
  (exit $ac_status); } >/dev/null; then
2924
 
  if test -s conftest.err; then
2925
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2926
 
  else
2927
 
    ac_cpp_err=
2928
 
  fi
2929
 
else
2930
 
  ac_cpp_err=yes
2931
 
fi
2932
 
if test -z "$ac_cpp_err"; then
 
4189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4190
  (exit $ac_status); } &&
 
4191
         { ac_try='test -z "$ac_c_werror_flag"
 
4192
                         || test ! -s conftest.err'
 
4193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4194
  (eval $ac_try) 2>&5
 
4195
  ac_status=$?
 
4196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4197
  (exit $ac_status); }; } &&
 
4198
         { ac_try='test -s conftest.$ac_objext'
 
4199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4200
  (eval $ac_try) 2>&5
 
4201
  ac_status=$?
 
4202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4203
  (exit $ac_status); }; }; then
2933
4204
  ac_cv_header_stdc=yes
2934
4205
else
2935
4206
  echo "$as_me: failed program was:" >&5
2936
 
  cat conftest.$ac_ext >&5
2937
 
  ac_cv_header_stdc=no
 
4207
sed 's/^/| /' conftest.$ac_ext >&5
 
4208
 
 
4209
ac_cv_header_stdc=no
2938
4210
fi
2939
 
rm -f conftest.err conftest.$ac_ext
 
4211
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2940
4212
 
2941
4213
if test $ac_cv_header_stdc = yes; then
2942
4214
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2943
4215
  cat >conftest.$ac_ext <<_ACEOF
2944
 
#line 2944 "configure"
2945
 
#include "confdefs.h"
 
4216
/* confdefs.h.  */
 
4217
_ACEOF
 
4218
cat confdefs.h >>conftest.$ac_ext
 
4219
cat >>conftest.$ac_ext <<_ACEOF
 
4220
/* end confdefs.h.  */
2946
4221
#include <string.h>
2947
4222
 
2948
4223
_ACEOF
2949
4224
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2950
 
  egrep "memchr" >/dev/null 2>&1; then
 
4225
  $EGREP "memchr" >/dev/null 2>&1; then
2951
4226
  :
2952
4227
else
2953
4228
  ac_cv_header_stdc=no
2959
4234
if test $ac_cv_header_stdc = yes; then
2960
4235
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2961
4236
  cat >conftest.$ac_ext <<_ACEOF
2962
 
#line 2962 "configure"
2963
 
#include "confdefs.h"
 
4237
/* confdefs.h.  */
 
4238
_ACEOF
 
4239
cat confdefs.h >>conftest.$ac_ext
 
4240
cat >>conftest.$ac_ext <<_ACEOF
 
4241
/* end confdefs.h.  */
2964
4242
#include <stdlib.h>
2965
4243
 
2966
4244
_ACEOF
2967
4245
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2968
 
  egrep "free" >/dev/null 2>&1; then
 
4246
  $EGREP "free" >/dev/null 2>&1; then
2969
4247
  :
2970
4248
else
2971
4249
  ac_cv_header_stdc=no
2980
4258
  :
2981
4259
else
2982
4260
  cat >conftest.$ac_ext <<_ACEOF
2983
 
#line 2983 "configure"
2984
 
#include "confdefs.h"
 
4261
/* confdefs.h.  */
 
4262
_ACEOF
 
4263
cat confdefs.h >>conftest.$ac_ext
 
4264
cat >>conftest.$ac_ext <<_ACEOF
 
4265
/* end confdefs.h.  */
2985
4266
#include <ctype.h>
2986
4267
#if ((' ' & 0x0FF) == 0x020)
2987
4268
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2988
4269
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2989
4270
#else
2990
 
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2991
 
                     || ('j' <= (c) && (c) <= 'r') \
2992
 
                     || ('s' <= (c) && (c) <= 'z'))
 
4271
# define ISLOWER(c) \
 
4272
                   (('a' <= (c) && (c) <= 'i') \
 
4273
                     || ('j' <= (c) && (c) <= 'r') \
 
4274
                     || ('s' <= (c) && (c) <= 'z'))
2993
4275
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2994
4276
#endif
2995
4277
 
3000
4282
  int i;
3001
4283
  for (i = 0; i < 256; i++)
3002
4284
    if (XOR (islower (i), ISLOWER (i))
3003
 
        || toupper (i) != TOUPPER (i))
 
4285
        || toupper (i) != TOUPPER (i))
3004
4286
      exit(2);
3005
4287
  exit (0);
3006
4288
}
3007
4289
_ACEOF
3008
4290
rm -f conftest$ac_exeext
3009
 
if { (eval echo "$as_me:3009: \"$ac_link\"") >&5
 
4291
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3010
4292
  (eval $ac_link) 2>&5
3011
4293
  ac_status=$?
3012
 
  echo "$as_me:3012: \$? = $ac_status" >&5
 
4294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013
4295
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3014
 
  { (eval echo "$as_me:3014: \"$ac_try\"") >&5
 
4296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015
4297
  (eval $ac_try) 2>&5
3016
4298
  ac_status=$?
3017
 
  echo "$as_me:3017: \$? = $ac_status" >&5
 
4299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018
4300
  (exit $ac_status); }; }; then
3019
4301
  :
3020
4302
else
3021
4303
  echo "$as_me: program exited with status $ac_status" >&5
3022
4304
echo "$as_me: failed program was:" >&5
3023
 
cat conftest.$ac_ext >&5
 
4305
sed 's/^/| /' conftest.$ac_ext >&5
 
4306
 
 
4307
( exit $ac_status )
3024
4308
ac_cv_header_stdc=no
3025
4309
fi
3026
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3027
 
fi
3028
 
fi
3029
 
fi
3030
 
echo "$as_me:3030: result: $ac_cv_header_stdc" >&5
 
4310
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4311
fi
 
4312
fi
 
4313
fi
 
4314
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3031
4315
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3032
4316
if test $ac_cv_header_stdc = yes; then
3033
4317
 
3034
 
cat >>confdefs.h <<\EOF
 
4318
cat >>confdefs.h <<\_ACEOF
3035
4319
#define STDC_HEADERS 1
3036
 
EOF
 
4320
_ACEOF
3037
4321
 
3038
4322
fi
3039
4323
 
 
4324
 
 
4325
 
 
4326
 
 
4327
 
 
4328
 
 
4329
 
 
4330
 
 
4331
 
 
4332
 
 
4333
 
 
4334
 
 
4335
 
 
4336
 
 
4337
 
 
4338
 
 
4339
 
3040
4340
for ac_header in fcntl.h io.h limits.h pwd.h string.h strings.h \
3041
4341
  termcap.h termio.h termios.h unistd.h \
3042
 
  sys/fcntl.h sys/file.h sys/ptem.h sys/time.h sys/ttold.h sys/wait.h
 
4342
  sys/fcntl.h sys/file.h sys/stream.h sys/time.h sys/ttold.h sys/wait.h
3043
4343
do
3044
4344
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3045
 
echo "$as_me:3045: checking for $ac_header" >&5
 
4345
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4346
  echo "$as_me:$LINENO: checking for $ac_header" >&5
3046
4347
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3047
4348
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3048
4349
  echo $ECHO_N "(cached) $ECHO_C" >&6
3049
 
else
3050
 
  cat >conftest.$ac_ext <<_ACEOF
3051
 
#line 3051 "configure"
3052
 
#include "confdefs.h"
3053
 
#include <$ac_header>
3054
 
_ACEOF
3055
 
if { (eval echo "$as_me:3055: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4350
fi
 
4351
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4352
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4353
else
 
4354
  # Is the header compilable?
 
4355
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4356
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4357
cat >conftest.$ac_ext <<_ACEOF
 
4358
/* confdefs.h.  */
 
4359
_ACEOF
 
4360
cat confdefs.h >>conftest.$ac_ext
 
4361
cat >>conftest.$ac_ext <<_ACEOF
 
4362
/* end confdefs.h.  */
 
4363
$ac_includes_default
 
4364
#include <$ac_header>
 
4365
_ACEOF
 
4366
rm -f conftest.$ac_objext
 
4367
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4368
  (eval $ac_compile) 2>conftest.er1
 
4369
  ac_status=$?
 
4370
  grep -v '^ *+' conftest.er1 >conftest.err
 
4371
  rm -f conftest.er1
 
4372
  cat conftest.err >&5
 
4373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4374
  (exit $ac_status); } &&
 
4375
         { ac_try='test -z "$ac_c_werror_flag"
 
4376
                         || test ! -s conftest.err'
 
4377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4378
  (eval $ac_try) 2>&5
 
4379
  ac_status=$?
 
4380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4381
  (exit $ac_status); }; } &&
 
4382
         { ac_try='test -s conftest.$ac_objext'
 
4383
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4384
  (eval $ac_try) 2>&5
 
4385
  ac_status=$?
 
4386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4387
  (exit $ac_status); }; }; then
 
4388
  ac_header_compiler=yes
 
4389
else
 
4390
  echo "$as_me: failed program was:" >&5
 
4391
sed 's/^/| /' conftest.$ac_ext >&5
 
4392
 
 
4393
ac_header_compiler=no
 
4394
fi
 
4395
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4396
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4397
echo "${ECHO_T}$ac_header_compiler" >&6
 
4398
 
 
4399
# Is the header present?
 
4400
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4401
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4402
cat >conftest.$ac_ext <<_ACEOF
 
4403
/* confdefs.h.  */
 
4404
_ACEOF
 
4405
cat confdefs.h >>conftest.$ac_ext
 
4406
cat >>conftest.$ac_ext <<_ACEOF
 
4407
/* end confdefs.h.  */
 
4408
#include <$ac_header>
 
4409
_ACEOF
 
4410
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056
4411
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057
4412
  ac_status=$?
3058
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4413
  grep -v '^ *+' conftest.er1 >conftest.err
3059
4414
  rm -f conftest.er1
3060
4415
  cat conftest.err >&5
3061
 
  echo "$as_me:3061: \$? = $ac_status" >&5
 
4416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062
4417
  (exit $ac_status); } >/dev/null; then
3063
4418
  if test -s conftest.err; then
3064
4419
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4420
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3065
4421
  else
3066
4422
    ac_cpp_err=
3067
4423
  fi
3069
4425
  ac_cpp_err=yes
3070
4426
fi
3071
4427
if test -z "$ac_cpp_err"; then
 
4428
  ac_header_preproc=yes
 
4429
else
 
4430
  echo "$as_me: failed program was:" >&5
 
4431
sed 's/^/| /' conftest.$ac_ext >&5
 
4432
 
 
4433
  ac_header_preproc=no
 
4434
fi
 
4435
rm -f conftest.err conftest.$ac_ext
 
4436
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4437
echo "${ECHO_T}$ac_header_preproc" >&6
 
4438
 
 
4439
# So?  What about this header?
 
4440
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4441
  yes:no: )
 
4442
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4443
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4444
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4445
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4446
    ac_header_preproc=yes
 
4447
    ;;
 
4448
  no:yes:* )
 
4449
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4450
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4451
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4452
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4453
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4454
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4455
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4456
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4457
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4458
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4459
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4460
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4461
    (
 
4462
      cat <<\_ASBOX
 
4463
## -------------------------------------- ##
 
4464
## Report this to the GNU Texinfo lists.  ##
 
4465
## -------------------------------------- ##
 
4466
_ASBOX
 
4467
    ) |
 
4468
      sed "s/^/$as_me: WARNING:     /" >&2
 
4469
    ;;
 
4470
esac
 
4471
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4472
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4473
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4475
else
 
4476
  eval "$as_ac_Header=\$ac_header_preproc"
 
4477
fi
 
4478
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4479
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4480
 
 
4481
fi
 
4482
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4483
  cat >>confdefs.h <<_ACEOF
 
4484
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4485
_ACEOF
 
4486
 
 
4487
fi
 
4488
 
 
4489
done
 
4490
 
 
4491
 
 
4492
# sys/ptem.h requires sys/stream.h for mblk_t on Solaris.
 
4493
 
 
4494
for ac_header in sys/ptem.h
 
4495
do
 
4496
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4497
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4498
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4499
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4501
else
 
4502
  cat >conftest.$ac_ext <<_ACEOF
 
4503
/* confdefs.h.  */
 
4504
_ACEOF
 
4505
cat confdefs.h >>conftest.$ac_ext
 
4506
cat >>conftest.$ac_ext <<_ACEOF
 
4507
/* end confdefs.h.  */
 
4508
#if HAVE_SYS_STREAM_H
 
4509
#include <sys/stream.h>
 
4510
#endif
 
4511
 
 
4512
 
 
4513
#include <$ac_header>
 
4514
_ACEOF
 
4515
rm -f conftest.$ac_objext
 
4516
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4517
  (eval $ac_compile) 2>conftest.er1
 
4518
  ac_status=$?
 
4519
  grep -v '^ *+' conftest.er1 >conftest.err
 
4520
  rm -f conftest.er1
 
4521
  cat conftest.err >&5
 
4522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4523
  (exit $ac_status); } &&
 
4524
         { ac_try='test -z "$ac_c_werror_flag"
 
4525
                         || test ! -s conftest.err'
 
4526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4527
  (eval $ac_try) 2>&5
 
4528
  ac_status=$?
 
4529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4530
  (exit $ac_status); }; } &&
 
4531
         { ac_try='test -s conftest.$ac_objext'
 
4532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4533
  (eval $ac_try) 2>&5
 
4534
  ac_status=$?
 
4535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4536
  (exit $ac_status); }; }; then
3072
4537
  eval "$as_ac_Header=yes"
3073
4538
else
3074
4539
  echo "$as_me: failed program was:" >&5
3075
 
  cat conftest.$ac_ext >&5
3076
 
  eval "$as_ac_Header=no"
3077
 
fi
3078
 
rm -f conftest.err conftest.$ac_ext
3079
 
fi
3080
 
echo "$as_me:3080: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4540
sed 's/^/| /' conftest.$ac_ext >&5
 
4541
 
 
4542
eval "$as_ac_Header=no"
 
4543
fi
 
4544
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4545
fi
 
4546
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3081
4547
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3082
4548
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3083
 
  cat >>confdefs.h <<EOF
 
4549
  cat >>confdefs.h <<_ACEOF
3084
4550
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3085
 
EOF
 
4551
_ACEOF
3086
4552
 
3087
4553
fi
 
4554
 
3088
4555
done
3089
4556
 
3090
 
echo "$as_me:3090: checking POSIX termios" >&5
 
4557
 
 
4558
echo "$as_me:$LINENO: checking POSIX termios" >&5
3091
4559
echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
3092
4560
if test "${ac_cv_sys_posix_termios+set}" = set; then
3093
4561
  echo $ECHO_N "(cached) $ECHO_C" >&6
3094
4562
else
3095
4563
  cat >conftest.$ac_ext <<_ACEOF
3096
 
#line 3096 "configure"
3097
 
#include "confdefs.h"
 
4564
/* confdefs.h.  */
 
4565
_ACEOF
 
4566
cat confdefs.h >>conftest.$ac_ext
 
4567
cat >>conftest.$ac_ext <<_ACEOF
 
4568
/* end confdefs.h.  */
3098
4569
#include <sys/types.h>
3099
4570
#include <unistd.h>
3100
4571
#include <termios.h>
 
4572
 
3101
4573
int
3102
4574
main ()
3103
4575
{
3108
4580
}
3109
4581
_ACEOF
3110
4582
rm -f conftest.$ac_objext conftest$ac_exeext
3111
 
if { (eval echo "$as_me:3111: \"$ac_link\"") >&5
3112
 
  (eval $ac_link) 2>&5
 
4583
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4584
  (eval $ac_link) 2>conftest.er1
3113
4585
  ac_status=$?
3114
 
  echo "$as_me:3114: \$? = $ac_status" >&5
 
4586
  grep -v '^ *+' conftest.er1 >conftest.err
 
4587
  rm -f conftest.er1
 
4588
  cat conftest.err >&5
 
4589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115
4590
  (exit $ac_status); } &&
3116
 
         { ac_try='test -s conftest$ac_exeext'
3117
 
  { (eval echo "$as_me:3117: \"$ac_try\"") >&5
3118
 
  (eval $ac_try) 2>&5
3119
 
  ac_status=$?
3120
 
  echo "$as_me:3120: \$? = $ac_status" >&5
 
4591
         { ac_try='test -z "$ac_c_werror_flag"
 
4592
                         || test ! -s conftest.err'
 
4593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4594
  (eval $ac_try) 2>&5
 
4595
  ac_status=$?
 
4596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4597
  (exit $ac_status); }; } &&
 
4598
         { ac_try='test -s conftest$ac_exeext'
 
4599
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4600
  (eval $ac_try) 2>&5
 
4601
  ac_status=$?
 
4602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121
4603
  (exit $ac_status); }; }; then
3122
4604
  ac_cv_sys_posix_termios=yes
3123
4605
else
3124
4606
  echo "$as_me: failed program was:" >&5
3125
 
cat conftest.$ac_ext >&5
 
4607
sed 's/^/| /' conftest.$ac_ext >&5
 
4608
 
3126
4609
ac_cv_sys_posix_termios=no
3127
4610
fi
3128
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4611
rm -f conftest.err conftest.$ac_objext \
 
4612
      conftest$ac_exeext conftest.$ac_ext
3129
4613
fi
3130
 
echo "$as_me:3130: result: $ac_cv_sys_posix_termios" >&5
 
4614
echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
3131
4615
echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
3132
4616
 
3133
 
if test $ac_cv_sys_posix_termios = yes; then
3134
 
  echo "$as_me:3134: checking whether termios.h defines TIOCGWINSZ" >&5
 
4617
echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
3135
4618
echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
3136
4619
if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
3137
4620
  echo $ECHO_N "(cached) $ECHO_C" >&6
3138
4621
else
3139
4622
  cat >conftest.$ac_ext <<_ACEOF
3140
 
#line 3140 "configure"
3141
 
#include "confdefs.h"
 
4623
/* confdefs.h.  */
 
4624
_ACEOF
 
4625
cat confdefs.h >>conftest.$ac_ext
 
4626
cat >>conftest.$ac_ext <<_ACEOF
 
4627
/* end confdefs.h.  */
3142
4628
#include <sys/types.h>
3143
4629
#include <termios.h>
3144
4630
#ifdef TIOCGWINSZ
3147
4633
 
3148
4634
_ACEOF
3149
4635
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3150
 
  egrep "yes" >/dev/null 2>&1; then
 
4636
  $EGREP "yes" >/dev/null 2>&1; then
3151
4637
  ac_cv_sys_tiocgwinsz_in_termios_h=yes
3152
4638
else
3153
4639
  ac_cv_sys_tiocgwinsz_in_termios_h=no
3155
4641
rm -f conftest*
3156
4642
 
3157
4643
fi
3158
 
echo "$as_me:3158: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
 
4644
echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
3159
4645
echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
3160
4646
 
3161
 
fi
3162
4647
if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
3163
 
  echo "$as_me:3163: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
 
4648
  echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
3164
4649
echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
3165
4650
if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
3166
4651
  echo $ECHO_N "(cached) $ECHO_C" >&6
3167
4652
else
3168
4653
  cat >conftest.$ac_ext <<_ACEOF
3169
 
#line 3169 "configure"
3170
 
#include "confdefs.h"
 
4654
/* confdefs.h.  */
 
4655
_ACEOF
 
4656
cat confdefs.h >>conftest.$ac_ext
 
4657
cat >>conftest.$ac_ext <<_ACEOF
 
4658
/* end confdefs.h.  */
3171
4659
#include <sys/types.h>
3172
4660
#include <sys/ioctl.h>
3173
4661
#ifdef TIOCGWINSZ
3176
4664
 
3177
4665
_ACEOF
3178
4666
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3179
 
  egrep "yes" >/dev/null 2>&1; then
 
4667
  $EGREP "yes" >/dev/null 2>&1; then
3180
4668
  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
3181
4669
else
3182
4670
  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
3184
4672
rm -f conftest*
3185
4673
 
3186
4674
fi
3187
 
echo "$as_me:3187: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
 
4675
echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
3188
4676
echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
3189
4677
 
3190
4678
  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
3191
4679
 
3192
 
cat >>confdefs.h <<\EOF
 
4680
cat >>confdefs.h <<\_ACEOF
3193
4681
#define GWINSZ_IN_SYS_IOCTL 1
3194
 
EOF
 
4682
_ACEOF
3195
4683
 
3196
4684
  fi
3197
4685
fi
3198
4686
 
3199
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3200
 
 
3201
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3202
 
                  inttypes.h stdint.h unistd.h
3203
 
do
3204
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3205
 
echo "$as_me:3205: checking for $ac_header" >&5
3206
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3207
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3208
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3209
 
else
3210
 
  cat >conftest.$ac_ext <<_ACEOF
3211
 
#line 3211 "configure"
3212
 
#include "confdefs.h"
3213
 
$ac_includes_default
3214
 
#include <$ac_header>
3215
 
_ACEOF
3216
 
rm -f conftest.$ac_objext
3217
 
if { (eval echo "$as_me:3217: \"$ac_compile\"") >&5
3218
 
  (eval $ac_compile) 2>&5
3219
 
  ac_status=$?
3220
 
  echo "$as_me:3220: \$? = $ac_status" >&5
3221
 
  (exit $ac_status); } &&
3222
 
         { ac_try='test -s conftest.$ac_objext'
3223
 
  { (eval echo "$as_me:3223: \"$ac_try\"") >&5
3224
 
  (eval $ac_try) 2>&5
3225
 
  ac_status=$?
3226
 
  echo "$as_me:3226: \$? = $ac_status" >&5
3227
 
  (exit $ac_status); }; }; then
3228
 
  eval "$as_ac_Header=yes"
3229
 
else
3230
 
  echo "$as_me: failed program was:" >&5
3231
 
cat conftest.$ac_ext >&5
3232
 
eval "$as_ac_Header=no"
3233
 
fi
3234
 
rm -f conftest.$ac_objext conftest.$ac_ext
3235
 
fi
3236
 
echo "$as_me:3236: result: `eval echo '${'$as_ac_Header'}'`" >&5
3237
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3238
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3239
 
  cat >>confdefs.h <<EOF
3240
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3241
 
EOF
3242
 
 
3243
 
fi
3244
 
done
3245
 
 
3246
 
echo "$as_me:3246: checking for off_t" >&5
 
4687
 
 
4688
# Checks for typedefs, structures, and compiler characteristics.
 
4689
echo "$as_me:$LINENO: checking for off_t" >&5
3247
4690
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3248
4691
if test "${ac_cv_type_off_t+set}" = set; then
3249
4692
  echo $ECHO_N "(cached) $ECHO_C" >&6
3250
4693
else
3251
4694
  cat >conftest.$ac_ext <<_ACEOF
3252
 
#line 3252 "configure"
3253
 
#include "confdefs.h"
 
4695
/* confdefs.h.  */
 
4696
_ACEOF
 
4697
cat confdefs.h >>conftest.$ac_ext
 
4698
cat >>conftest.$ac_ext <<_ACEOF
 
4699
/* end confdefs.h.  */
3254
4700
$ac_includes_default
3255
4701
int
3256
4702
main ()
3264
4710
}
3265
4711
_ACEOF
3266
4712
rm -f conftest.$ac_objext
3267
 
if { (eval echo "$as_me:3267: \"$ac_compile\"") >&5
3268
 
  (eval $ac_compile) 2>&5
 
4713
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4714
  (eval $ac_compile) 2>conftest.er1
3269
4715
  ac_status=$?
3270
 
  echo "$as_me:3270: \$? = $ac_status" >&5
 
4716
  grep -v '^ *+' conftest.er1 >conftest.err
 
4717
  rm -f conftest.er1
 
4718
  cat conftest.err >&5
 
4719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271
4720
  (exit $ac_status); } &&
3272
 
         { ac_try='test -s conftest.$ac_objext'
3273
 
  { (eval echo "$as_me:3273: \"$ac_try\"") >&5
3274
 
  (eval $ac_try) 2>&5
3275
 
  ac_status=$?
3276
 
  echo "$as_me:3276: \$? = $ac_status" >&5
 
4721
         { ac_try='test -z "$ac_c_werror_flag"
 
4722
                         || test ! -s conftest.err'
 
4723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4724
  (eval $ac_try) 2>&5
 
4725
  ac_status=$?
 
4726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4727
  (exit $ac_status); }; } &&
 
4728
         { ac_try='test -s conftest.$ac_objext'
 
4729
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4730
  (eval $ac_try) 2>&5
 
4731
  ac_status=$?
 
4732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277
4733
  (exit $ac_status); }; }; then
3278
4734
  ac_cv_type_off_t=yes
3279
4735
else
3280
4736
  echo "$as_me: failed program was:" >&5
3281
 
cat conftest.$ac_ext >&5
 
4737
sed 's/^/| /' conftest.$ac_ext >&5
 
4738
 
3282
4739
ac_cv_type_off_t=no
3283
4740
fi
3284
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4741
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3285
4742
fi
3286
 
echo "$as_me:3286: result: $ac_cv_type_off_t" >&5
 
4743
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3287
4744
echo "${ECHO_T}$ac_cv_type_off_t" >&6
3288
4745
if test $ac_cv_type_off_t = yes; then
3289
4746
  :
3290
4747
else
3291
4748
 
3292
 
cat >>confdefs.h <<EOF
 
4749
cat >>confdefs.h <<_ACEOF
3293
4750
#define off_t long
3294
 
EOF
 
4751
_ACEOF
3295
4752
 
3296
4753
fi
3297
4754
 
3298
 
echo "$as_me:3298: checking return type of signal handlers" >&5
 
4755
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3299
4756
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3300
4757
if test "${ac_cv_type_signal+set}" = set; then
3301
4758
  echo $ECHO_N "(cached) $ECHO_C" >&6
3302
4759
else
3303
4760
  cat >conftest.$ac_ext <<_ACEOF
3304
 
#line 3304 "configure"
3305
 
#include "confdefs.h"
 
4761
/* confdefs.h.  */
 
4762
_ACEOF
 
4763
cat confdefs.h >>conftest.$ac_ext
 
4764
cat >>conftest.$ac_ext <<_ACEOF
 
4765
/* end confdefs.h.  */
3306
4766
#include <sys/types.h>
3307
4767
#include <signal.h>
3308
4768
#ifdef signal
3323
4783
}
3324
4784
_ACEOF
3325
4785
rm -f conftest.$ac_objext
3326
 
if { (eval echo "$as_me:3326: \"$ac_compile\"") >&5
3327
 
  (eval $ac_compile) 2>&5
 
4786
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4787
  (eval $ac_compile) 2>conftest.er1
3328
4788
  ac_status=$?
3329
 
  echo "$as_me:3329: \$? = $ac_status" >&5
 
4789
  grep -v '^ *+' conftest.er1 >conftest.err
 
4790
  rm -f conftest.er1
 
4791
  cat conftest.err >&5
 
4792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330
4793
  (exit $ac_status); } &&
3331
 
         { ac_try='test -s conftest.$ac_objext'
3332
 
  { (eval echo "$as_me:3332: \"$ac_try\"") >&5
3333
 
  (eval $ac_try) 2>&5
3334
 
  ac_status=$?
3335
 
  echo "$as_me:3335: \$? = $ac_status" >&5
 
4794
         { ac_try='test -z "$ac_c_werror_flag"
 
4795
                         || test ! -s conftest.err'
 
4796
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4797
  (eval $ac_try) 2>&5
 
4798
  ac_status=$?
 
4799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4800
  (exit $ac_status); }; } &&
 
4801
         { ac_try='test -s conftest.$ac_objext'
 
4802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4803
  (eval $ac_try) 2>&5
 
4804
  ac_status=$?
 
4805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336
4806
  (exit $ac_status); }; }; then
3337
4807
  ac_cv_type_signal=void
3338
4808
else
3339
4809
  echo "$as_me: failed program was:" >&5
3340
 
cat conftest.$ac_ext >&5
 
4810
sed 's/^/| /' conftest.$ac_ext >&5
 
4811
 
3341
4812
ac_cv_type_signal=int
3342
4813
fi
3343
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4814
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3344
4815
fi
3345
 
echo "$as_me:3345: result: $ac_cv_type_signal" >&5
 
4816
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3346
4817
echo "${ECHO_T}$ac_cv_type_signal" >&6
3347
4818
 
3348
 
cat >>confdefs.h <<EOF
 
4819
cat >>confdefs.h <<_ACEOF
3349
4820
#define RETSIGTYPE $ac_cv_type_signal
3350
 
EOF
3351
 
 
3352
 
echo "$as_me:3352: checking for $CC option to accept ANSI C" >&5
3353
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3354
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3355
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3356
 
else
3357
 
  ac_cv_prog_cc_stdc=no
3358
 
ac_save_CC=$CC
3359
 
cat >conftest.$ac_ext <<_ACEOF
3360
 
#line 3360 "configure"
3361
 
#include "confdefs.h"
3362
 
#include <stdarg.h>
3363
 
#include <stdio.h>
3364
 
#include <sys/types.h>
3365
 
#include <sys/stat.h>
3366
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3367
 
struct buf { int x; };
3368
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3369
 
static char *e (p, i)
3370
 
     char **p;
3371
 
     int i;
3372
 
{
3373
 
  return p[i];
3374
 
}
3375
 
static char *f (char * (*g) (char **, int), char **p, ...)
3376
 
{
3377
 
  char *s;
3378
 
  va_list v;
3379
 
  va_start (v,p);
3380
 
  s = g (p, va_arg (v,int));
3381
 
  va_end (v);
3382
 
  return s;
3383
 
}
3384
 
int test (int i, double x);
3385
 
struct s1 {int (*f) (int a);};
3386
 
struct s2 {int (*f) (double a);};
3387
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3388
 
int argc;
3389
 
char **argv;
3390
 
int
3391
 
main ()
3392
 
{
3393
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3394
 
  ;
3395
 
  return 0;
3396
 
}
3397
4821
_ACEOF
3398
 
# Don't try gcc -ansi; that turns off useful extensions and
3399
 
# breaks some systems' header files.
3400
 
# AIX                   -qlanglvl=ansi
3401
 
# Ultrix and OSF/1      -std1
3402
 
# HP-UX 10.20 and later -Ae
3403
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
3404
 
# SVR4                  -Xc -D__EXTENSIONS__
3405
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3406
 
do
3407
 
  CC="$ac_save_CC $ac_arg"
3408
 
  rm -f conftest.$ac_objext
3409
 
if { (eval echo "$as_me:3409: \"$ac_compile\"") >&5
3410
 
  (eval $ac_compile) 2>&5
3411
 
  ac_status=$?
3412
 
  echo "$as_me:3412: \$? = $ac_status" >&5
3413
 
  (exit $ac_status); } &&
3414
 
         { ac_try='test -s conftest.$ac_objext'
3415
 
  { (eval echo "$as_me:3415: \"$ac_try\"") >&5
3416
 
  (eval $ac_try) 2>&5
3417
 
  ac_status=$?
3418
 
  echo "$as_me:3418: \$? = $ac_status" >&5
3419
 
  (exit $ac_status); }; }; then
3420
 
  ac_cv_prog_cc_stdc=$ac_arg
3421
 
break
3422
 
else
3423
 
  echo "$as_me: failed program was:" >&5
3424
 
cat conftest.$ac_ext >&5
3425
 
fi
3426
 
rm -f conftest.$ac_objext
3427
 
done
3428
 
rm -f conftest.$ac_ext conftest.$ac_objext
3429
 
CC=$ac_save_CC
3430
 
 
3431
 
fi
3432
 
 
3433
 
case "x$ac_cv_prog_cc_stdc" in
3434
 
  x|xno)
3435
 
    echo "$as_me:3435: result: none needed" >&5
3436
 
echo "${ECHO_T}none needed" >&6 ;;
3437
 
  *)
3438
 
    echo "$as_me:3438: result: $ac_cv_prog_cc_stdc" >&5
3439
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3440
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
3441
 
esac
3442
 
 
3443
 
echo "$as_me:3443: checking for an ANSI C-conforming const" >&5
 
4822
 
 
4823
 
 
4824
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3444
4825
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3445
4826
if test "${ac_cv_c_const+set}" = set; then
3446
4827
  echo $ECHO_N "(cached) $ECHO_C" >&6
3447
4828
else
3448
4829
  cat >conftest.$ac_ext <<_ACEOF
3449
 
#line 3449 "configure"
3450
 
#include "confdefs.h"
 
4830
/* confdefs.h.  */
 
4831
_ACEOF
 
4832
cat confdefs.h >>conftest.$ac_ext
 
4833
cat >>conftest.$ac_ext <<_ACEOF
 
4834
/* end confdefs.h.  */
3451
4835
 
3452
4836
int
3453
4837
main ()
3504
4888
}
3505
4889
_ACEOF
3506
4890
rm -f conftest.$ac_objext
3507
 
if { (eval echo "$as_me:3507: \"$ac_compile\"") >&5
3508
 
  (eval $ac_compile) 2>&5
 
4891
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4892
  (eval $ac_compile) 2>conftest.er1
3509
4893
  ac_status=$?
3510
 
  echo "$as_me:3510: \$? = $ac_status" >&5
 
4894
  grep -v '^ *+' conftest.er1 >conftest.err
 
4895
  rm -f conftest.er1
 
4896
  cat conftest.err >&5
 
4897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511
4898
  (exit $ac_status); } &&
3512
 
         { ac_try='test -s conftest.$ac_objext'
3513
 
  { (eval echo "$as_me:3513: \"$ac_try\"") >&5
3514
 
  (eval $ac_try) 2>&5
3515
 
  ac_status=$?
3516
 
  echo "$as_me:3516: \$? = $ac_status" >&5
 
4899
         { ac_try='test -z "$ac_c_werror_flag"
 
4900
                         || test ! -s conftest.err'
 
4901
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4902
  (eval $ac_try) 2>&5
 
4903
  ac_status=$?
 
4904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4905
  (exit $ac_status); }; } &&
 
4906
         { ac_try='test -s conftest.$ac_objext'
 
4907
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4908
  (eval $ac_try) 2>&5
 
4909
  ac_status=$?
 
4910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517
4911
  (exit $ac_status); }; }; then
3518
4912
  ac_cv_c_const=yes
3519
4913
else
3520
4914
  echo "$as_me: failed program was:" >&5
3521
 
cat conftest.$ac_ext >&5
 
4915
sed 's/^/| /' conftest.$ac_ext >&5
 
4916
 
3522
4917
ac_cv_c_const=no
3523
4918
fi
3524
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4919
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3525
4920
fi
3526
 
echo "$as_me:3526: result: $ac_cv_c_const" >&5
 
4921
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3527
4922
echo "${ECHO_T}$ac_cv_c_const" >&6
3528
4923
if test $ac_cv_c_const = no; then
3529
4924
 
3530
 
cat >>confdefs.h <<\EOF
 
4925
cat >>confdefs.h <<\_ACEOF
3531
4926
#define const
3532
 
EOF
 
4927
_ACEOF
3533
4928
 
3534
4929
fi
3535
4930
 
3536
 
echo "$as_me:3536: checking whether struct tm is in sys/time.h or time.h" >&5
 
4931
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3537
4932
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3538
4933
if test "${ac_cv_struct_tm+set}" = set; then
3539
4934
  echo $ECHO_N "(cached) $ECHO_C" >&6
3540
4935
else
3541
4936
  cat >conftest.$ac_ext <<_ACEOF
3542
 
#line 3542 "configure"
3543
 
#include "confdefs.h"
 
4937
/* confdefs.h.  */
 
4938
_ACEOF
 
4939
cat confdefs.h >>conftest.$ac_ext
 
4940
cat >>conftest.$ac_ext <<_ACEOF
 
4941
/* end confdefs.h.  */
3544
4942
#include <sys/types.h>
3545
4943
#include <time.h>
3546
4944
 
3553
4951
}
3554
4952
_ACEOF
3555
4953
rm -f conftest.$ac_objext
3556
 
if { (eval echo "$as_me:3556: \"$ac_compile\"") >&5
3557
 
  (eval $ac_compile) 2>&5
 
4954
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4955
  (eval $ac_compile) 2>conftest.er1
3558
4956
  ac_status=$?
3559
 
  echo "$as_me:3559: \$? = $ac_status" >&5
 
4957
  grep -v '^ *+' conftest.er1 >conftest.err
 
4958
  rm -f conftest.er1
 
4959
  cat conftest.err >&5
 
4960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560
4961
  (exit $ac_status); } &&
3561
 
         { ac_try='test -s conftest.$ac_objext'
3562
 
  { (eval echo "$as_me:3562: \"$ac_try\"") >&5
3563
 
  (eval $ac_try) 2>&5
3564
 
  ac_status=$?
3565
 
  echo "$as_me:3565: \$? = $ac_status" >&5
 
4962
         { ac_try='test -z "$ac_c_werror_flag"
 
4963
                         || test ! -s conftest.err'
 
4964
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4965
  (eval $ac_try) 2>&5
 
4966
  ac_status=$?
 
4967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4968
  (exit $ac_status); }; } &&
 
4969
         { ac_try='test -s conftest.$ac_objext'
 
4970
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4971
  (eval $ac_try) 2>&5
 
4972
  ac_status=$?
 
4973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566
4974
  (exit $ac_status); }; }; then
3567
4975
  ac_cv_struct_tm=time.h
3568
4976
else
3569
4977
  echo "$as_me: failed program was:" >&5
3570
 
cat conftest.$ac_ext >&5
 
4978
sed 's/^/| /' conftest.$ac_ext >&5
 
4979
 
3571
4980
ac_cv_struct_tm=sys/time.h
3572
4981
fi
3573
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4982
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3574
4983
fi
3575
 
echo "$as_me:3575: result: $ac_cv_struct_tm" >&5
 
4984
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3576
4985
echo "${ECHO_T}$ac_cv_struct_tm" >&6
3577
4986
if test $ac_cv_struct_tm = sys/time.h; then
3578
4987
 
3579
 
cat >>confdefs.h <<\EOF
 
4988
cat >>confdefs.h <<\_ACEOF
3580
4989
#define TM_IN_SYS_TIME 1
3581
 
EOF
3582
 
 
3583
 
fi
3584
 
 
3585
 
  headers='
3586
 
#include <stdio.h>
3587
 
#ifdef HAVE_STRING_H
3588
 
# if !STDC_HEADERS && HAVE_MEMORY_H
3589
 
#  include <memory.h>
3590
 
# endif
3591
 
# include <string.h>
3592
 
#else
3593
 
# ifdef HAVE_STRINGS_H
3594
 
#  include <strings.h>
3595
 
# endif
3596
 
#endif
3597
 
#ifdef HAVE_STDLIB_H
3598
 
# include <stdlib.h>
3599
 
#endif
3600
 
#ifdef HAVE_UNISTD_H
3601
 
# include <unistd.h>
3602
 
#endif
3603
 
'
3604
 
 
3605
 
  if test x = y; then
3606
 
 
3607
 
cat >>confdefs.h <<\EOF
 
4990
_ACEOF
 
4991
 
 
4992
fi
 
4993
 
 
4994
 
 
4995
# Checks for function declarations.
 
4996
echo "$as_me:$LINENO: checking whether memchr is declared" >&5
 
4997
echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
 
4998
if test "${ac_cv_have_decl_memchr+set}" = set; then
 
4999
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5000
else
 
5001
  cat >conftest.$ac_ext <<_ACEOF
 
5002
/* confdefs.h.  */
 
5003
_ACEOF
 
5004
cat confdefs.h >>conftest.$ac_ext
 
5005
cat >>conftest.$ac_ext <<_ACEOF
 
5006
/* end confdefs.h.  */
 
5007
$ac_includes_default
 
5008
int
 
5009
main ()
 
5010
{
 
5011
#ifndef memchr
 
5012
  char *p = (char *) memchr;
 
5013
#endif
 
5014
 
 
5015
  ;
 
5016
  return 0;
 
5017
}
 
5018
_ACEOF
 
5019
rm -f conftest.$ac_objext
 
5020
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5021
  (eval $ac_compile) 2>conftest.er1
 
5022
  ac_status=$?
 
5023
  grep -v '^ *+' conftest.er1 >conftest.err
 
5024
  rm -f conftest.er1
 
5025
  cat conftest.err >&5
 
5026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5027
  (exit $ac_status); } &&
 
5028
         { ac_try='test -z "$ac_c_werror_flag"
 
5029
                         || test ! -s conftest.err'
 
5030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5031
  (eval $ac_try) 2>&5
 
5032
  ac_status=$?
 
5033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5034
  (exit $ac_status); }; } &&
 
5035
         { ac_try='test -s conftest.$ac_objext'
 
5036
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5037
  (eval $ac_try) 2>&5
 
5038
  ac_status=$?
 
5039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5040
  (exit $ac_status); }; }; then
 
5041
  ac_cv_have_decl_memchr=yes
 
5042
else
 
5043
  echo "$as_me: failed program was:" >&5
 
5044
sed 's/^/| /' conftest.$ac_ext >&5
 
5045
 
 
5046
ac_cv_have_decl_memchr=no
 
5047
fi
 
5048
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5049
fi
 
5050
echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
 
5051
echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
 
5052
if test $ac_cv_have_decl_memchr = yes; then
 
5053
 
 
5054
cat >>confdefs.h <<_ACEOF
 
5055
#define HAVE_DECL_MEMCHR 1
 
5056
_ACEOF
 
5057
 
 
5058
 
 
5059
else
 
5060
  cat >>confdefs.h <<_ACEOF
 
5061
#define HAVE_DECL_MEMCHR 0
 
5062
_ACEOF
 
5063
 
 
5064
 
 
5065
fi
 
5066
echo "$as_me:$LINENO: checking whether strcoll is declared" >&5
 
5067
echo $ECHO_N "checking whether strcoll is declared... $ECHO_C" >&6
 
5068
if test "${ac_cv_have_decl_strcoll+set}" = set; then
 
5069
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5070
else
 
5071
  cat >conftest.$ac_ext <<_ACEOF
 
5072
/* confdefs.h.  */
 
5073
_ACEOF
 
5074
cat confdefs.h >>conftest.$ac_ext
 
5075
cat >>conftest.$ac_ext <<_ACEOF
 
5076
/* end confdefs.h.  */
 
5077
$ac_includes_default
 
5078
int
 
5079
main ()
 
5080
{
 
5081
#ifndef strcoll
 
5082
  char *p = (char *) strcoll;
 
5083
#endif
 
5084
 
 
5085
  ;
 
5086
  return 0;
 
5087
}
 
5088
_ACEOF
 
5089
rm -f conftest.$ac_objext
 
5090
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5091
  (eval $ac_compile) 2>conftest.er1
 
5092
  ac_status=$?
 
5093
  grep -v '^ *+' conftest.er1 >conftest.err
 
5094
  rm -f conftest.er1
 
5095
  cat conftest.err >&5
 
5096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5097
  (exit $ac_status); } &&
 
5098
         { ac_try='test -z "$ac_c_werror_flag"
 
5099
                         || test ! -s conftest.err'
 
5100
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5101
  (eval $ac_try) 2>&5
 
5102
  ac_status=$?
 
5103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5104
  (exit $ac_status); }; } &&
 
5105
         { ac_try='test -s conftest.$ac_objext'
 
5106
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5107
  (eval $ac_try) 2>&5
 
5108
  ac_status=$?
 
5109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5110
  (exit $ac_status); }; }; then
 
5111
  ac_cv_have_decl_strcoll=yes
 
5112
else
 
5113
  echo "$as_me: failed program was:" >&5
 
5114
sed 's/^/| /' conftest.$ac_ext >&5
 
5115
 
 
5116
ac_cv_have_decl_strcoll=no
 
5117
fi
 
5118
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5119
fi
 
5120
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcoll" >&5
 
5121
echo "${ECHO_T}$ac_cv_have_decl_strcoll" >&6
 
5122
if test $ac_cv_have_decl_strcoll = yes; then
 
5123
 
 
5124
cat >>confdefs.h <<_ACEOF
 
5125
#define HAVE_DECL_STRCOLL 1
 
5126
_ACEOF
 
5127
 
 
5128
 
 
5129
else
 
5130
  cat >>confdefs.h <<_ACEOF
 
5131
#define HAVE_DECL_STRCOLL 0
 
5132
_ACEOF
 
5133
 
 
5134
 
 
5135
fi
 
5136
echo "$as_me:$LINENO: checking whether strerror is declared" >&5
 
5137
echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
 
5138
if test "${ac_cv_have_decl_strerror+set}" = set; then
 
5139
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5140
else
 
5141
  cat >conftest.$ac_ext <<_ACEOF
 
5142
/* confdefs.h.  */
 
5143
_ACEOF
 
5144
cat confdefs.h >>conftest.$ac_ext
 
5145
cat >>conftest.$ac_ext <<_ACEOF
 
5146
/* end confdefs.h.  */
 
5147
$ac_includes_default
 
5148
int
 
5149
main ()
 
5150
{
 
5151
#ifndef strerror
 
5152
  char *p = (char *) strerror;
 
5153
#endif
 
5154
 
 
5155
  ;
 
5156
  return 0;
 
5157
}
 
5158
_ACEOF
 
5159
rm -f conftest.$ac_objext
 
5160
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5161
  (eval $ac_compile) 2>conftest.er1
 
5162
  ac_status=$?
 
5163
  grep -v '^ *+' conftest.er1 >conftest.err
 
5164
  rm -f conftest.er1
 
5165
  cat conftest.err >&5
 
5166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5167
  (exit $ac_status); } &&
 
5168
         { ac_try='test -z "$ac_c_werror_flag"
 
5169
                         || test ! -s conftest.err'
 
5170
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5171
  (eval $ac_try) 2>&5
 
5172
  ac_status=$?
 
5173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5174
  (exit $ac_status); }; } &&
 
5175
         { ac_try='test -s conftest.$ac_objext'
 
5176
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5177
  (eval $ac_try) 2>&5
 
5178
  ac_status=$?
 
5179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5180
  (exit $ac_status); }; }; then
 
5181
  ac_cv_have_decl_strerror=yes
 
5182
else
 
5183
  echo "$as_me: failed program was:" >&5
 
5184
sed 's/^/| /' conftest.$ac_ext >&5
 
5185
 
 
5186
ac_cv_have_decl_strerror=no
 
5187
fi
 
5188
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5189
fi
 
5190
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
 
5191
echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
 
5192
if test $ac_cv_have_decl_strerror = yes; then
 
5193
 
 
5194
cat >>confdefs.h <<_ACEOF
3608
5195
#define HAVE_DECL_STRERROR 1
3609
 
EOF
3610
 
 
3611
 
cat >>confdefs.h <<\EOF
3612
 
#define HAVE_DECL_STRCASECMP 1
3613
 
EOF
3614
 
 
3615
 
cat >>confdefs.h <<\EOF
3616
 
#define HAVE_DECL_STRNCASECMP 1
3617
 
EOF
3618
 
 
3619
 
cat >>confdefs.h <<\EOF
3620
 
#define HAVE_DECL_STRCOLL 1
3621
 
EOF
3622
 
 
3623
 
  fi
3624
 
 
3625
 
  for jm_func in strerror strcasecmp strncasecmp strcoll
3626
 
  do
3627
 
 
3628
 
    test -z "$ac_cv_header_memory_h" &&
3629
 
for ac_header in memory.h
3630
 
do
3631
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3632
 
echo "$as_me:3632: checking for $ac_header" >&5
3633
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3634
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3635
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3636
 
else
3637
 
  cat >conftest.$ac_ext <<_ACEOF
3638
 
#line 3638 "configure"
3639
 
#include "confdefs.h"
3640
 
#include <$ac_header>
3641
 
_ACEOF
3642
 
if { (eval echo "$as_me:3642: \"$ac_cpp conftest.$ac_ext\"") >&5
3643
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3644
 
  ac_status=$?
3645
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
3646
 
  rm -f conftest.er1
3647
 
  cat conftest.err >&5
3648
 
  echo "$as_me:3648: \$? = $ac_status" >&5
3649
 
  (exit $ac_status); } >/dev/null; then
3650
 
  if test -s conftest.err; then
3651
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3652
 
  else
3653
 
    ac_cpp_err=
3654
 
  fi
3655
 
else
3656
 
  ac_cpp_err=yes
3657
 
fi
3658
 
if test -z "$ac_cpp_err"; then
3659
 
  eval "$as_ac_Header=yes"
3660
 
else
3661
 
  echo "$as_me: failed program was:" >&5
3662
 
  cat conftest.$ac_ext >&5
3663
 
  eval "$as_ac_Header=no"
3664
 
fi
3665
 
rm -f conftest.err conftest.$ac_ext
3666
 
fi
3667
 
echo "$as_me:3667: result: `eval echo '${'$as_ac_Header'}'`" >&5
3668
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3669
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3670
 
  cat >>confdefs.h <<EOF
3671
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3672
 
EOF
3673
 
 
3674
 
fi
3675
 
done
3676
 
 
3677
 
  test -z "$ac_cv_header_string_h" &&
3678
 
for ac_header in string.h
3679
 
do
3680
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3681
 
echo "$as_me:3681: checking for $ac_header" >&5
3682
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3683
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3684
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3685
 
else
3686
 
  cat >conftest.$ac_ext <<_ACEOF
3687
 
#line 3687 "configure"
3688
 
#include "confdefs.h"
3689
 
#include <$ac_header>
3690
 
_ACEOF
3691
 
if { (eval echo "$as_me:3691: \"$ac_cpp conftest.$ac_ext\"") >&5
3692
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3693
 
  ac_status=$?
3694
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
3695
 
  rm -f conftest.er1
3696
 
  cat conftest.err >&5
3697
 
  echo "$as_me:3697: \$? = $ac_status" >&5
3698
 
  (exit $ac_status); } >/dev/null; then
3699
 
  if test -s conftest.err; then
3700
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3701
 
  else
3702
 
    ac_cpp_err=
3703
 
  fi
3704
 
else
3705
 
  ac_cpp_err=yes
3706
 
fi
3707
 
if test -z "$ac_cpp_err"; then
3708
 
  eval "$as_ac_Header=yes"
3709
 
else
3710
 
  echo "$as_me: failed program was:" >&5
3711
 
  cat conftest.$ac_ext >&5
3712
 
  eval "$as_ac_Header=no"
3713
 
fi
3714
 
rm -f conftest.err conftest.$ac_ext
3715
 
fi
3716
 
echo "$as_me:3716: result: `eval echo '${'$as_ac_Header'}'`" >&5
3717
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3718
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3719
 
  cat >>confdefs.h <<EOF
3720
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3721
 
EOF
3722
 
 
3723
 
fi
3724
 
done
3725
 
 
3726
 
  test -z "$ac_cv_header_strings_h" &&
3727
 
for ac_header in strings.h
3728
 
do
3729
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3730
 
echo "$as_me:3730: checking for $ac_header" >&5
3731
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3732
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3733
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3734
 
else
3735
 
  cat >conftest.$ac_ext <<_ACEOF
3736
 
#line 3736 "configure"
3737
 
#include "confdefs.h"
3738
 
#include <$ac_header>
3739
 
_ACEOF
3740
 
if { (eval echo "$as_me:3740: \"$ac_cpp conftest.$ac_ext\"") >&5
3741
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3742
 
  ac_status=$?
3743
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
3744
 
  rm -f conftest.er1
3745
 
  cat conftest.err >&5
3746
 
  echo "$as_me:3746: \$? = $ac_status" >&5
3747
 
  (exit $ac_status); } >/dev/null; then
3748
 
  if test -s conftest.err; then
3749
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3750
 
  else
3751
 
    ac_cpp_err=
3752
 
  fi
3753
 
else
3754
 
  ac_cpp_err=yes
3755
 
fi
3756
 
if test -z "$ac_cpp_err"; then
3757
 
  eval "$as_ac_Header=yes"
3758
 
else
3759
 
  echo "$as_me: failed program was:" >&5
3760
 
  cat conftest.$ac_ext >&5
3761
 
  eval "$as_ac_Header=no"
3762
 
fi
3763
 
rm -f conftest.err conftest.$ac_ext
3764
 
fi
3765
 
echo "$as_me:3765: result: `eval echo '${'$as_ac_Header'}'`" >&5
3766
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3767
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3768
 
  cat >>confdefs.h <<EOF
3769
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3770
 
EOF
3771
 
 
3772
 
fi
3773
 
done
3774
 
 
3775
 
  test -z "$ac_cv_header_stdlib_h" &&
3776
 
for ac_header in stdlib.h
3777
 
do
3778
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3779
 
echo "$as_me:3779: checking for $ac_header" >&5
3780
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3781
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3782
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3783
 
else
3784
 
  cat >conftest.$ac_ext <<_ACEOF
3785
 
#line 3785 "configure"
3786
 
#include "confdefs.h"
3787
 
#include <$ac_header>
3788
 
_ACEOF
3789
 
if { (eval echo "$as_me:3789: \"$ac_cpp conftest.$ac_ext\"") >&5
3790
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3791
 
  ac_status=$?
3792
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
3793
 
  rm -f conftest.er1
3794
 
  cat conftest.err >&5
3795
 
  echo "$as_me:3795: \$? = $ac_status" >&5
3796
 
  (exit $ac_status); } >/dev/null; then
3797
 
  if test -s conftest.err; then
3798
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3799
 
  else
3800
 
    ac_cpp_err=
3801
 
  fi
3802
 
else
3803
 
  ac_cpp_err=yes
3804
 
fi
3805
 
if test -z "$ac_cpp_err"; then
3806
 
  eval "$as_ac_Header=yes"
3807
 
else
3808
 
  echo "$as_me: failed program was:" >&5
3809
 
  cat conftest.$ac_ext >&5
3810
 
  eval "$as_ac_Header=no"
3811
 
fi
3812
 
rm -f conftest.err conftest.$ac_ext
3813
 
fi
3814
 
echo "$as_me:3814: result: `eval echo '${'$as_ac_Header'}'`" >&5
3815
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3816
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3817
 
  cat >>confdefs.h <<EOF
3818
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3819
 
EOF
3820
 
 
3821
 
fi
3822
 
done
3823
 
 
3824
 
  test -z "$ac_cv_header_unistd_h" &&
3825
 
for ac_header in unistd.h
3826
 
do
3827
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3828
 
echo "$as_me:3828: checking for $ac_header" >&5
3829
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3830
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3831
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3832
 
else
3833
 
  cat >conftest.$ac_ext <<_ACEOF
3834
 
#line 3834 "configure"
3835
 
#include "confdefs.h"
3836
 
#include <$ac_header>
3837
 
_ACEOF
3838
 
if { (eval echo "$as_me:3838: \"$ac_cpp conftest.$ac_ext\"") >&5
3839
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3840
 
  ac_status=$?
3841
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
3842
 
  rm -f conftest.er1
3843
 
  cat conftest.err >&5
3844
 
  echo "$as_me:3844: \$? = $ac_status" >&5
3845
 
  (exit $ac_status); } >/dev/null; then
3846
 
  if test -s conftest.err; then
3847
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3848
 
  else
3849
 
    ac_cpp_err=
3850
 
  fi
3851
 
else
3852
 
  ac_cpp_err=yes
3853
 
fi
3854
 
if test -z "$ac_cpp_err"; then
3855
 
  eval "$as_ac_Header=yes"
3856
 
else
3857
 
  echo "$as_me: failed program was:" >&5
3858
 
  cat conftest.$ac_ext >&5
3859
 
  eval "$as_ac_Header=no"
3860
 
fi
3861
 
rm -f conftest.err conftest.$ac_ext
3862
 
fi
3863
 
echo "$as_me:3863: result: `eval echo '${'$as_ac_Header'}'`" >&5
3864
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3865
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3866
 
  cat >>confdefs.h <<EOF
3867
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3868
 
EOF
3869
 
 
3870
 
fi
3871
 
done
3872
 
 
3873
 
  echo "$as_me:3873: checking whether $jm_func is declared" >&5
3874
 
echo $ECHO_N "checking whether $jm_func is declared... $ECHO_C" >&6
3875
 
  if eval "test \"\${jm_cv_func_decl_$jm_func+set}\" = set"; then
3876
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3877
 
else
3878
 
  cat >conftest.$ac_ext <<_ACEOF
3879
 
#line 3879 "configure"
3880
 
#include "confdefs.h"
3881
 
$headers
3882
 
int
3883
 
main ()
3884
 
{
3885
 
 
3886
 
#ifndef $jm_func
3887
 
char *(*pfn) = (char *(*)) $jm_func
3888
 
#endif
3889
 
 
3890
 
  ;
3891
 
  return 0;
3892
 
}
3893
 
_ACEOF
3894
 
rm -f conftest.$ac_objext
3895
 
if { (eval echo "$as_me:3895: \"$ac_compile\"") >&5
3896
 
  (eval $ac_compile) 2>&5
3897
 
  ac_status=$?
3898
 
  echo "$as_me:3898: \$? = $ac_status" >&5
3899
 
  (exit $ac_status); } &&
3900
 
         { ac_try='test -s conftest.$ac_objext'
3901
 
  { (eval echo "$as_me:3901: \"$ac_try\"") >&5
3902
 
  (eval $ac_try) 2>&5
3903
 
  ac_status=$?
3904
 
  echo "$as_me:3904: \$? = $ac_status" >&5
3905
 
  (exit $ac_status); }; }; then
3906
 
  eval "jm_cv_func_decl_$jm_func=yes"
3907
 
else
3908
 
  echo "$as_me: failed program was:" >&5
3909
 
cat conftest.$ac_ext >&5
3910
 
eval "jm_cv_func_decl_$jm_func=no"
3911
 
fi
3912
 
rm -f conftest.$ac_objext conftest.$ac_ext
3913
 
fi
3914
 
 
3915
 
  if eval "test \"`echo '$jm_cv_func_decl_'$jm_func`\" = yes"; then
3916
 
    echo "$as_me:3916: result: yes" >&5
3917
 
echo "${ECHO_T}yes" >&6
3918
 
 
3919
 
      jm_tr_func=HAVE_DECL_`echo $jm_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
3920
 
      cat >>confdefs.h <<EOF
3921
 
#define $jm_tr_func 1
3922
 
EOF
3923
 
 
3924
 
  else
3925
 
    echo "$as_me:3925: result: no" >&5
3926
 
echo "${ECHO_T}no" >&6
3927
 
      fi
3928
 
  done
3929
 
 
 
5196
_ACEOF
 
5197
 
 
5198
 
 
5199
else
 
5200
  cat >>confdefs.h <<_ACEOF
 
5201
#define HAVE_DECL_STRERROR 0
 
5202
_ACEOF
 
5203
 
 
5204
 
 
5205
fi
 
5206
 
 
5207
 
 
5208
 
 
5209
# Checks for library functions.
3930
5210
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3931
5211
# for constant arguments.  Useless!
3932
 
echo "$as_me:3932: checking for working alloca.h" >&5
 
5212
echo "$as_me:$LINENO: checking for working alloca.h" >&5
3933
5213
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3934
5214
if test "${ac_cv_working_alloca_h+set}" = set; then
3935
5215
  echo $ECHO_N "(cached) $ECHO_C" >&6
3936
5216
else
3937
5217
  cat >conftest.$ac_ext <<_ACEOF
3938
 
#line 3938 "configure"
3939
 
#include "confdefs.h"
 
5218
/* confdefs.h.  */
 
5219
_ACEOF
 
5220
cat confdefs.h >>conftest.$ac_ext
 
5221
cat >>conftest.$ac_ext <<_ACEOF
 
5222
/* end confdefs.h.  */
3940
5223
#include <alloca.h>
3941
5224
int
3942
5225
main ()
3947
5230
}
3948
5231
_ACEOF
3949
5232
rm -f conftest.$ac_objext conftest$ac_exeext
3950
 
if { (eval echo "$as_me:3950: \"$ac_link\"") >&5
3951
 
  (eval $ac_link) 2>&5
 
5233
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5234
  (eval $ac_link) 2>conftest.er1
3952
5235
  ac_status=$?
3953
 
  echo "$as_me:3953: \$? = $ac_status" >&5
 
5236
  grep -v '^ *+' conftest.er1 >conftest.err
 
5237
  rm -f conftest.er1
 
5238
  cat conftest.err >&5
 
5239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954
5240
  (exit $ac_status); } &&
3955
 
         { ac_try='test -s conftest$ac_exeext'
3956
 
  { (eval echo "$as_me:3956: \"$ac_try\"") >&5
3957
 
  (eval $ac_try) 2>&5
3958
 
  ac_status=$?
3959
 
  echo "$as_me:3959: \$? = $ac_status" >&5
 
5241
         { ac_try='test -z "$ac_c_werror_flag"
 
5242
                         || test ! -s conftest.err'
 
5243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5244
  (eval $ac_try) 2>&5
 
5245
  ac_status=$?
 
5246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5247
  (exit $ac_status); }; } &&
 
5248
         { ac_try='test -s conftest$ac_exeext'
 
5249
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5250
  (eval $ac_try) 2>&5
 
5251
  ac_status=$?
 
5252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960
5253
  (exit $ac_status); }; }; then
3961
5254
  ac_cv_working_alloca_h=yes
3962
5255
else
3963
5256
  echo "$as_me: failed program was:" >&5
3964
 
cat conftest.$ac_ext >&5
 
5257
sed 's/^/| /' conftest.$ac_ext >&5
 
5258
 
3965
5259
ac_cv_working_alloca_h=no
3966
5260
fi
3967
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5261
rm -f conftest.err conftest.$ac_objext \
 
5262
      conftest$ac_exeext conftest.$ac_ext
3968
5263
fi
3969
 
echo "$as_me:3969: result: $ac_cv_working_alloca_h" >&5
 
5264
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3970
5265
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3971
5266
if test $ac_cv_working_alloca_h = yes; then
3972
5267
 
3973
 
cat >>confdefs.h <<\EOF
 
5268
cat >>confdefs.h <<\_ACEOF
3974
5269
#define HAVE_ALLOCA_H 1
3975
 
EOF
 
5270
_ACEOF
3976
5271
 
3977
5272
fi
3978
5273
 
3979
 
echo "$as_me:3979: checking for alloca" >&5
 
5274
echo "$as_me:$LINENO: checking for alloca" >&5
3980
5275
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3981
5276
if test "${ac_cv_func_alloca_works+set}" = set; then
3982
5277
  echo $ECHO_N "(cached) $ECHO_C" >&6
3983
5278
else
3984
5279
  cat >conftest.$ac_ext <<_ACEOF
3985
 
#line 3985 "configure"
3986
 
#include "confdefs.h"
 
5280
/* confdefs.h.  */
 
5281
_ACEOF
 
5282
cat confdefs.h >>conftest.$ac_ext
 
5283
cat >>conftest.$ac_ext <<_ACEOF
 
5284
/* end confdefs.h.  */
3987
5285
#ifdef __GNUC__
3988
5286
# define alloca __builtin_alloca
3989
5287
#else
4014
5312
}
4015
5313
_ACEOF
4016
5314
rm -f conftest.$ac_objext conftest$ac_exeext
4017
 
if { (eval echo "$as_me:4017: \"$ac_link\"") >&5
4018
 
  (eval $ac_link) 2>&5
 
5315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5316
  (eval $ac_link) 2>conftest.er1
4019
5317
  ac_status=$?
4020
 
  echo "$as_me:4020: \$? = $ac_status" >&5
 
5318
  grep -v '^ *+' conftest.er1 >conftest.err
 
5319
  rm -f conftest.er1
 
5320
  cat conftest.err >&5
 
5321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021
5322
  (exit $ac_status); } &&
4022
 
         { ac_try='test -s conftest$ac_exeext'
4023
 
  { (eval echo "$as_me:4023: \"$ac_try\"") >&5
4024
 
  (eval $ac_try) 2>&5
4025
 
  ac_status=$?
4026
 
  echo "$as_me:4026: \$? = $ac_status" >&5
 
5323
         { ac_try='test -z "$ac_c_werror_flag"
 
5324
                         || test ! -s conftest.err'
 
5325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5326
  (eval $ac_try) 2>&5
 
5327
  ac_status=$?
 
5328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5329
  (exit $ac_status); }; } &&
 
5330
         { ac_try='test -s conftest$ac_exeext'
 
5331
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5332
  (eval $ac_try) 2>&5
 
5333
  ac_status=$?
 
5334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027
5335
  (exit $ac_status); }; }; then
4028
5336
  ac_cv_func_alloca_works=yes
4029
5337
else
4030
5338
  echo "$as_me: failed program was:" >&5
4031
 
cat conftest.$ac_ext >&5
 
5339
sed 's/^/| /' conftest.$ac_ext >&5
 
5340
 
4032
5341
ac_cv_func_alloca_works=no
4033
5342
fi
4034
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5343
rm -f conftest.err conftest.$ac_objext \
 
5344
      conftest$ac_exeext conftest.$ac_ext
4035
5345
fi
4036
 
echo "$as_me:4036: result: $ac_cv_func_alloca_works" >&5
 
5346
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4037
5347
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4038
5348
 
4039
5349
if test $ac_cv_func_alloca_works = yes; then
4040
5350
 
4041
 
cat >>confdefs.h <<\EOF
 
5351
cat >>confdefs.h <<\_ACEOF
4042
5352
#define HAVE_ALLOCA 1
4043
 
EOF
 
5353
_ACEOF
4044
5354
 
4045
5355
else
4046
5356
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4050
5360
 
4051
5361
ALLOCA=alloca.$ac_objext
4052
5362
 
4053
 
cat >>confdefs.h <<\EOF
 
5363
cat >>confdefs.h <<\_ACEOF
4054
5364
#define C_ALLOCA 1
4055
 
EOF
4056
 
 
4057
 
echo "$as_me:4057: checking whether \`alloca.c' needs Cray hooks" >&5
 
5365
_ACEOF
 
5366
 
 
5367
 
 
5368
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4058
5369
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4059
5370
if test "${ac_cv_os_cray+set}" = set; then
4060
5371
  echo $ECHO_N "(cached) $ECHO_C" >&6
4061
5372
else
4062
5373
  cat >conftest.$ac_ext <<_ACEOF
4063
 
#line 4063 "configure"
4064
 
#include "confdefs.h"
 
5374
/* confdefs.h.  */
 
5375
_ACEOF
 
5376
cat confdefs.h >>conftest.$ac_ext
 
5377
cat >>conftest.$ac_ext <<_ACEOF
 
5378
/* end confdefs.h.  */
4065
5379
#if defined(CRAY) && ! defined(CRAY2)
4066
5380
webecray
4067
5381
#else
4070
5384
 
4071
5385
_ACEOF
4072
5386
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4073
 
  egrep "webecray" >/dev/null 2>&1; then
 
5387
  $EGREP "webecray" >/dev/null 2>&1; then
4074
5388
  ac_cv_os_cray=yes
4075
5389
else
4076
5390
  ac_cv_os_cray=no
4078
5392
rm -f conftest*
4079
5393
 
4080
5394
fi
4081
 
echo "$as_me:4081: result: $ac_cv_os_cray" >&5
 
5395
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4082
5396
echo "${ECHO_T}$ac_cv_os_cray" >&6
4083
5397
if test $ac_cv_os_cray = yes; then
4084
5398
  for ac_func in _getb67 GETB67 getb67; do
4085
5399
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4086
 
echo "$as_me:4086: checking for $ac_func" >&5
 
5400
echo "$as_me:$LINENO: checking for $ac_func" >&5
4087
5401
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4088
5402
if eval "test \"\${$as_ac_var+set}\" = set"; then
4089
5403
  echo $ECHO_N "(cached) $ECHO_C" >&6
4090
5404
else
4091
5405
  cat >conftest.$ac_ext <<_ACEOF
4092
 
#line 4092 "configure"
4093
 
#include "confdefs.h"
 
5406
/* confdefs.h.  */
 
5407
_ACEOF
 
5408
cat confdefs.h >>conftest.$ac_ext
 
5409
cat >>conftest.$ac_ext <<_ACEOF
 
5410
/* end confdefs.h.  */
 
5411
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5412
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5413
#define $ac_func innocuous_$ac_func
 
5414
 
4094
5415
/* System header to define __stub macros and hopefully few prototypes,
4095
 
    which can conflict with char $ac_func (); below.  */
4096
 
#include <assert.h>
 
5416
    which can conflict with char $ac_func (); below.
 
5417
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5418
    <limits.h> exists even on freestanding compilers.  */
 
5419
 
 
5420
#ifdef __STDC__
 
5421
# include <limits.h>
 
5422
#else
 
5423
# include <assert.h>
 
5424
#endif
 
5425
 
 
5426
#undef $ac_func
 
5427
 
4097
5428
/* Override any gcc2 internal prototype to avoid an error.  */
4098
5429
#ifdef __cplusplus
4099
5430
extern "C"
 
5431
{
4100
5432
#endif
4101
5433
/* We use char because int might match the return type of a gcc2
4102
5434
   builtin and then its argument prototype would still apply.  */
4103
5435
char $ac_func ();
4104
 
char (*f) ();
4105
 
 
4106
 
int
4107
 
main ()
4108
 
{
4109
5436
/* The GNU C library defines this for functions which it implements
4110
5437
    to always fail with ENOSYS.  Some functions are actually named
4111
5438
    something starting with __ and the normal name is an alias.  */
4112
5439
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4113
5440
choke me
4114
5441
#else
4115
 
f = $ac_func;
 
5442
char (*f) () = $ac_func;
 
5443
#endif
 
5444
#ifdef __cplusplus
 
5445
}
4116
5446
#endif
4117
5447
 
 
5448
int
 
5449
main ()
 
5450
{
 
5451
return f != $ac_func;
4118
5452
  ;
4119
5453
  return 0;
4120
5454
}
4121
5455
_ACEOF
4122
5456
rm -f conftest.$ac_objext conftest$ac_exeext
4123
 
if { (eval echo "$as_me:4123: \"$ac_link\"") >&5
4124
 
  (eval $ac_link) 2>&5
 
5457
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5458
  (eval $ac_link) 2>conftest.er1
4125
5459
  ac_status=$?
4126
 
  echo "$as_me:4126: \$? = $ac_status" >&5
 
5460
  grep -v '^ *+' conftest.er1 >conftest.err
 
5461
  rm -f conftest.er1
 
5462
  cat conftest.err >&5
 
5463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127
5464
  (exit $ac_status); } &&
4128
 
         { ac_try='test -s conftest$ac_exeext'
4129
 
  { (eval echo "$as_me:4129: \"$ac_try\"") >&5
4130
 
  (eval $ac_try) 2>&5
4131
 
  ac_status=$?
4132
 
  echo "$as_me:4132: \$? = $ac_status" >&5
 
5465
         { ac_try='test -z "$ac_c_werror_flag"
 
5466
                         || test ! -s conftest.err'
 
5467
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5468
  (eval $ac_try) 2>&5
 
5469
  ac_status=$?
 
5470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5471
  (exit $ac_status); }; } &&
 
5472
         { ac_try='test -s conftest$ac_exeext'
 
5473
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5474
  (eval $ac_try) 2>&5
 
5475
  ac_status=$?
 
5476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133
5477
  (exit $ac_status); }; }; then
4134
5478
  eval "$as_ac_var=yes"
4135
5479
else
4136
5480
  echo "$as_me: failed program was:" >&5
4137
 
cat conftest.$ac_ext >&5
 
5481
sed 's/^/| /' conftest.$ac_ext >&5
 
5482
 
4138
5483
eval "$as_ac_var=no"
4139
5484
fi
4140
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5485
rm -f conftest.err conftest.$ac_objext \
 
5486
      conftest$ac_exeext conftest.$ac_ext
4141
5487
fi
4142
 
echo "$as_me:4142: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5488
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4143
5489
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4144
5490
if test `eval echo '${'$as_ac_var'}'` = yes; then
4145
5491
 
4146
 
cat >>confdefs.h <<EOF
 
5492
cat >>confdefs.h <<_ACEOF
4147
5493
#define CRAY_STACKSEG_END $ac_func
4148
 
EOF
 
5494
_ACEOF
4149
5495
 
4150
5496
    break
4151
5497
fi
4153
5499
  done
4154
5500
fi
4155
5501
 
4156
 
echo "$as_me:4156: checking stack direction for C alloca" >&5
 
5502
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4157
5503
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4158
5504
if test "${ac_cv_c_stack_direction+set}" = set; then
4159
5505
  echo $ECHO_N "(cached) $ECHO_C" >&6
4162
5508
  ac_cv_c_stack_direction=0
4163
5509
else
4164
5510
  cat >conftest.$ac_ext <<_ACEOF
4165
 
#line 4165 "configure"
4166
 
#include "confdefs.h"
 
5511
/* confdefs.h.  */
 
5512
_ACEOF
 
5513
cat confdefs.h >>conftest.$ac_ext
 
5514
cat >>conftest.$ac_ext <<_ACEOF
 
5515
/* end confdefs.h.  */
4167
5516
int
4168
5517
find_stack_direction ()
4169
5518
{
4185
5534
}
4186
5535
_ACEOF
4187
5536
rm -f conftest$ac_exeext
4188
 
if { (eval echo "$as_me:4188: \"$ac_link\"") >&5
 
5537
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4189
5538
  (eval $ac_link) 2>&5
4190
5539
  ac_status=$?
4191
 
  echo "$as_me:4191: \$? = $ac_status" >&5
 
5540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192
5541
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4193
 
  { (eval echo "$as_me:4193: \"$ac_try\"") >&5
 
5542
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194
5543
  (eval $ac_try) 2>&5
4195
5544
  ac_status=$?
4196
 
  echo "$as_me:4196: \$? = $ac_status" >&5
 
5545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197
5546
  (exit $ac_status); }; }; then
4198
5547
  ac_cv_c_stack_direction=1
4199
5548
else
4200
5549
  echo "$as_me: program exited with status $ac_status" >&5
4201
5550
echo "$as_me: failed program was:" >&5
4202
 
cat conftest.$ac_ext >&5
 
5551
sed 's/^/| /' conftest.$ac_ext >&5
 
5552
 
 
5553
( exit $ac_status )
4203
5554
ac_cv_c_stack_direction=-1
4204
5555
fi
4205
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4206
 
fi
4207
 
fi
4208
 
echo "$as_me:4208: result: $ac_cv_c_stack_direction" >&5
 
5556
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5557
fi
 
5558
fi
 
5559
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4209
5560
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4210
5561
 
4211
 
cat >>confdefs.h <<EOF
 
5562
cat >>confdefs.h <<_ACEOF
4212
5563
#define STACK_DIRECTION $ac_cv_c_stack_direction
4213
 
EOF
 
5564
_ACEOF
 
5565
 
4214
5566
 
4215
5567
fi
4216
5568
 
4217
 
echo "$as_me:4217: checking for working strcoll" >&5
 
5569
echo "$as_me:$LINENO: checking for working strcoll" >&5
4218
5570
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4219
5571
if test "${ac_cv_func_strcoll_works+set}" = set; then
4220
5572
  echo $ECHO_N "(cached) $ECHO_C" >&6
4223
5575
  ac_cv_func_strcoll_works=no
4224
5576
else
4225
5577
  cat >conftest.$ac_ext <<_ACEOF
4226
 
#line 4226 "configure"
4227
 
#include "confdefs.h"
 
5578
/* confdefs.h.  */
 
5579
_ACEOF
 
5580
cat confdefs.h >>conftest.$ac_ext
 
5581
cat >>conftest.$ac_ext <<_ACEOF
 
5582
/* end confdefs.h.  */
4228
5583
$ac_includes_default
4229
5584
int
4230
5585
main ()
4237
5592
}
4238
5593
_ACEOF
4239
5594
rm -f conftest$ac_exeext
4240
 
if { (eval echo "$as_me:4240: \"$ac_link\"") >&5
 
5595
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4241
5596
  (eval $ac_link) 2>&5
4242
5597
  ac_status=$?
4243
 
  echo "$as_me:4243: \$? = $ac_status" >&5
 
5598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244
5599
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4245
 
  { (eval echo "$as_me:4245: \"$ac_try\"") >&5
 
5600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246
5601
  (eval $ac_try) 2>&5
4247
5602
  ac_status=$?
4248
 
  echo "$as_me:4248: \$? = $ac_status" >&5
 
5603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249
5604
  (exit $ac_status); }; }; then
4250
5605
  ac_cv_func_strcoll_works=yes
4251
5606
else
4252
5607
  echo "$as_me: program exited with status $ac_status" >&5
4253
5608
echo "$as_me: failed program was:" >&5
4254
 
cat conftest.$ac_ext >&5
 
5609
sed 's/^/| /' conftest.$ac_ext >&5
 
5610
 
 
5611
( exit $ac_status )
4255
5612
ac_cv_func_strcoll_works=no
4256
5613
fi
4257
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4258
 
fi
4259
 
fi
4260
 
echo "$as_me:4260: result: $ac_cv_func_strcoll_works" >&5
 
5614
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5615
fi
 
5616
fi
 
5617
echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4261
5618
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4262
5619
if test $ac_cv_func_strcoll_works = yes; then
4263
5620
 
4264
 
cat >>confdefs.h <<\EOF
 
5621
cat >>confdefs.h <<\_ACEOF
4265
5622
#define HAVE_STRCOLL 1
4266
 
EOF
 
5623
_ACEOF
4267
5624
 
4268
5625
fi
4269
5626
 
 
5627
 
4270
5628
for ac_func in vprintf
4271
5629
do
4272
5630
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4273
 
echo "$as_me:4273: checking for $ac_func" >&5
 
5631
echo "$as_me:$LINENO: checking for $ac_func" >&5
4274
5632
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4275
5633
if eval "test \"\${$as_ac_var+set}\" = set"; then
4276
5634
  echo $ECHO_N "(cached) $ECHO_C" >&6
4277
5635
else
4278
5636
  cat >conftest.$ac_ext <<_ACEOF
4279
 
#line 4279 "configure"
4280
 
#include "confdefs.h"
 
5637
/* confdefs.h.  */
 
5638
_ACEOF
 
5639
cat confdefs.h >>conftest.$ac_ext
 
5640
cat >>conftest.$ac_ext <<_ACEOF
 
5641
/* end confdefs.h.  */
 
5642
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5643
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5644
#define $ac_func innocuous_$ac_func
 
5645
 
4281
5646
/* System header to define __stub macros and hopefully few prototypes,
4282
 
    which can conflict with char $ac_func (); below.  */
4283
 
#include <assert.h>
 
5647
    which can conflict with char $ac_func (); below.
 
5648
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5649
    <limits.h> exists even on freestanding compilers.  */
 
5650
 
 
5651
#ifdef __STDC__
 
5652
# include <limits.h>
 
5653
#else
 
5654
# include <assert.h>
 
5655
#endif
 
5656
 
 
5657
#undef $ac_func
 
5658
 
4284
5659
/* Override any gcc2 internal prototype to avoid an error.  */
4285
5660
#ifdef __cplusplus
4286
5661
extern "C"
 
5662
{
4287
5663
#endif
4288
5664
/* We use char because int might match the return type of a gcc2
4289
5665
   builtin and then its argument prototype would still apply.  */
4290
5666
char $ac_func ();
4291
 
char (*f) ();
4292
 
 
4293
 
int
4294
 
main ()
4295
 
{
4296
5667
/* The GNU C library defines this for functions which it implements
4297
5668
    to always fail with ENOSYS.  Some functions are actually named
4298
5669
    something starting with __ and the normal name is an alias.  */
4299
5670
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4300
5671
choke me
4301
5672
#else
4302
 
f = $ac_func;
 
5673
char (*f) () = $ac_func;
 
5674
#endif
 
5675
#ifdef __cplusplus
 
5676
}
4303
5677
#endif
4304
5678
 
 
5679
int
 
5680
main ()
 
5681
{
 
5682
return f != $ac_func;
4305
5683
  ;
4306
5684
  return 0;
4307
5685
}
4308
5686
_ACEOF
4309
5687
rm -f conftest.$ac_objext conftest$ac_exeext
4310
 
if { (eval echo "$as_me:4310: \"$ac_link\"") >&5
4311
 
  (eval $ac_link) 2>&5
 
5688
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5689
  (eval $ac_link) 2>conftest.er1
4312
5690
  ac_status=$?
4313
 
  echo "$as_me:4313: \$? = $ac_status" >&5
 
5691
  grep -v '^ *+' conftest.er1 >conftest.err
 
5692
  rm -f conftest.er1
 
5693
  cat conftest.err >&5
 
5694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314
5695
  (exit $ac_status); } &&
4315
 
         { ac_try='test -s conftest$ac_exeext'
4316
 
  { (eval echo "$as_me:4316: \"$ac_try\"") >&5
4317
 
  (eval $ac_try) 2>&5
4318
 
  ac_status=$?
4319
 
  echo "$as_me:4319: \$? = $ac_status" >&5
 
5696
         { ac_try='test -z "$ac_c_werror_flag"
 
5697
                         || test ! -s conftest.err'
 
5698
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5699
  (eval $ac_try) 2>&5
 
5700
  ac_status=$?
 
5701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5702
  (exit $ac_status); }; } &&
 
5703
         { ac_try='test -s conftest$ac_exeext'
 
5704
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5705
  (eval $ac_try) 2>&5
 
5706
  ac_status=$?
 
5707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320
5708
  (exit $ac_status); }; }; then
4321
5709
  eval "$as_ac_var=yes"
4322
5710
else
4323
5711
  echo "$as_me: failed program was:" >&5
4324
 
cat conftest.$ac_ext >&5
 
5712
sed 's/^/| /' conftest.$ac_ext >&5
 
5713
 
4325
5714
eval "$as_ac_var=no"
4326
5715
fi
4327
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5716
rm -f conftest.err conftest.$ac_objext \
 
5717
      conftest$ac_exeext conftest.$ac_ext
4328
5718
fi
4329
 
echo "$as_me:4329: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5719
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4330
5720
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4331
5721
if test `eval echo '${'$as_ac_var'}'` = yes; then
4332
 
  cat >>confdefs.h <<EOF
 
5722
  cat >>confdefs.h <<_ACEOF
4333
5723
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4334
 
EOF
 
5724
_ACEOF
4335
5725
 
4336
 
echo "$as_me:4336: checking for _doprnt" >&5
 
5726
echo "$as_me:$LINENO: checking for _doprnt" >&5
4337
5727
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4338
5728
if test "${ac_cv_func__doprnt+set}" = set; then
4339
5729
  echo $ECHO_N "(cached) $ECHO_C" >&6
4340
5730
else
4341
5731
  cat >conftest.$ac_ext <<_ACEOF
4342
 
#line 4342 "configure"
4343
 
#include "confdefs.h"
 
5732
/* confdefs.h.  */
 
5733
_ACEOF
 
5734
cat confdefs.h >>conftest.$ac_ext
 
5735
cat >>conftest.$ac_ext <<_ACEOF
 
5736
/* end confdefs.h.  */
 
5737
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
5738
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5739
#define _doprnt innocuous__doprnt
 
5740
 
4344
5741
/* System header to define __stub macros and hopefully few prototypes,
4345
 
    which can conflict with char _doprnt (); below.  */
4346
 
#include <assert.h>
 
5742
    which can conflict with char _doprnt (); below.
 
5743
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5744
    <limits.h> exists even on freestanding compilers.  */
 
5745
 
 
5746
#ifdef __STDC__
 
5747
# include <limits.h>
 
5748
#else
 
5749
# include <assert.h>
 
5750
#endif
 
5751
 
 
5752
#undef _doprnt
 
5753
 
4347
5754
/* Override any gcc2 internal prototype to avoid an error.  */
4348
5755
#ifdef __cplusplus
4349
5756
extern "C"
 
5757
{
4350
5758
#endif
4351
5759
/* We use char because int might match the return type of a gcc2
4352
5760
   builtin and then its argument prototype would still apply.  */
4353
5761
char _doprnt ();
4354
 
char (*f) ();
4355
 
 
4356
 
int
4357
 
main ()
4358
 
{
4359
5762
/* The GNU C library defines this for functions which it implements
4360
5763
    to always fail with ENOSYS.  Some functions are actually named
4361
5764
    something starting with __ and the normal name is an alias.  */
4362
5765
#if defined (__stub__doprnt) || defined (__stub____doprnt)
4363
5766
choke me
4364
5767
#else
4365
 
f = _doprnt;
 
5768
char (*f) () = _doprnt;
 
5769
#endif
 
5770
#ifdef __cplusplus
 
5771
}
4366
5772
#endif
4367
5773
 
 
5774
int
 
5775
main ()
 
5776
{
 
5777
return f != _doprnt;
4368
5778
  ;
4369
5779
  return 0;
4370
5780
}
4371
5781
_ACEOF
4372
5782
rm -f conftest.$ac_objext conftest$ac_exeext
4373
 
if { (eval echo "$as_me:4373: \"$ac_link\"") >&5
4374
 
  (eval $ac_link) 2>&5
 
5783
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5784
  (eval $ac_link) 2>conftest.er1
4375
5785
  ac_status=$?
4376
 
  echo "$as_me:4376: \$? = $ac_status" >&5
 
5786
  grep -v '^ *+' conftest.er1 >conftest.err
 
5787
  rm -f conftest.er1
 
5788
  cat conftest.err >&5
 
5789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377
5790
  (exit $ac_status); } &&
4378
 
         { ac_try='test -s conftest$ac_exeext'
4379
 
  { (eval echo "$as_me:4379: \"$ac_try\"") >&5
4380
 
  (eval $ac_try) 2>&5
4381
 
  ac_status=$?
4382
 
  echo "$as_me:4382: \$? = $ac_status" >&5
 
5791
         { ac_try='test -z "$ac_c_werror_flag"
 
5792
                         || test ! -s conftest.err'
 
5793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5794
  (eval $ac_try) 2>&5
 
5795
  ac_status=$?
 
5796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5797
  (exit $ac_status); }; } &&
 
5798
         { ac_try='test -s conftest$ac_exeext'
 
5799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5800
  (eval $ac_try) 2>&5
 
5801
  ac_status=$?
 
5802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383
5803
  (exit $ac_status); }; }; then
4384
5804
  ac_cv_func__doprnt=yes
4385
5805
else
4386
5806
  echo "$as_me: failed program was:" >&5
4387
 
cat conftest.$ac_ext >&5
 
5807
sed 's/^/| /' conftest.$ac_ext >&5
 
5808
 
4388
5809
ac_cv_func__doprnt=no
4389
5810
fi
4390
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5811
rm -f conftest.err conftest.$ac_objext \
 
5812
      conftest$ac_exeext conftest.$ac_ext
4391
5813
fi
4392
 
echo "$as_me:4392: result: $ac_cv_func__doprnt" >&5
 
5814
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4393
5815
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4394
5816
if test $ac_cv_func__doprnt = yes; then
4395
5817
 
4396
 
cat >>confdefs.h <<\EOF
 
5818
cat >>confdefs.h <<\_ACEOF
4397
5819
#define HAVE_DOPRNT 1
4398
 
EOF
4399
 
 
4400
 
fi
4401
 
 
4402
 
fi
4403
 
done
4404
 
 
4405
 
for ac_func in setvbuf getcwd memset bzero strchr sigprocmask sigsetmask
4406
 
do
4407
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4408
 
echo "$as_me:4408: checking for $ac_func" >&5
4409
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4410
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
4411
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4412
 
else
4413
 
  cat >conftest.$ac_ext <<_ACEOF
4414
 
#line 4414 "configure"
4415
 
#include "confdefs.h"
4416
 
/* System header to define __stub macros and hopefully few prototypes,
4417
 
    which can conflict with char $ac_func (); below.  */
4418
 
#include <assert.h>
4419
 
/* Override any gcc2 internal prototype to avoid an error.  */
4420
 
#ifdef __cplusplus
4421
 
extern "C"
4422
 
#endif
4423
 
/* We use char because int might match the return type of a gcc2
4424
 
   builtin and then its argument prototype would still apply.  */
4425
 
char $ac_func ();
4426
 
char (*f) ();
4427
 
 
4428
 
int
4429
 
main ()
4430
 
{
4431
 
/* The GNU C library defines this for functions which it implements
4432
 
    to always fail with ENOSYS.  Some functions are actually named
4433
 
    something starting with __ and the normal name is an alias.  */
4434
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4435
 
choke me
4436
 
#else
4437
 
f = $ac_func;
4438
 
#endif
4439
 
 
4440
 
  ;
4441
 
  return 0;
4442
 
}
4443
 
_ACEOF
4444
 
rm -f conftest.$ac_objext conftest$ac_exeext
4445
 
if { (eval echo "$as_me:4445: \"$ac_link\"") >&5
4446
 
  (eval $ac_link) 2>&5
4447
 
  ac_status=$?
4448
 
  echo "$as_me:4448: \$? = $ac_status" >&5
4449
 
  (exit $ac_status); } &&
4450
 
         { ac_try='test -s conftest$ac_exeext'
4451
 
  { (eval echo "$as_me:4451: \"$ac_try\"") >&5
4452
 
  (eval $ac_try) 2>&5
4453
 
  ac_status=$?
4454
 
  echo "$as_me:4454: \$? = $ac_status" >&5
4455
 
  (exit $ac_status); }; }; then
4456
 
  eval "$as_ac_var=yes"
4457
 
else
4458
 
  echo "$as_me: failed program was:" >&5
4459
 
cat conftest.$ac_ext >&5
4460
 
eval "$as_ac_var=no"
4461
 
fi
4462
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4463
 
fi
4464
 
echo "$as_me:4464: result: `eval echo '${'$as_ac_var'}'`" >&5
4465
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4466
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
4467
 
  cat >>confdefs.h <<EOF
4468
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4469
 
EOF
4470
 
 
4471
 
fi
4472
 
done
4473
 
 
4474
 
for ac_func in memcpy memmove strdup strcasecmp strerror strncasecmp
4475
 
do
4476
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4477
 
echo "$as_me:4477: checking for $ac_func" >&5
4478
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4479
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
4480
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4481
 
else
4482
 
  cat >conftest.$ac_ext <<_ACEOF
4483
 
#line 4483 "configure"
4484
 
#include "confdefs.h"
4485
 
/* System header to define __stub macros and hopefully few prototypes,
4486
 
    which can conflict with char $ac_func (); below.  */
4487
 
#include <assert.h>
4488
 
/* Override any gcc2 internal prototype to avoid an error.  */
4489
 
#ifdef __cplusplus
4490
 
extern "C"
4491
 
#endif
4492
 
/* We use char because int might match the return type of a gcc2
4493
 
   builtin and then its argument prototype would still apply.  */
4494
 
char $ac_func ();
4495
 
char (*f) ();
4496
 
 
4497
 
int
4498
 
main ()
4499
 
{
4500
 
/* The GNU C library defines this for functions which it implements
4501
 
    to always fail with ENOSYS.  Some functions are actually named
4502
 
    something starting with __ and the normal name is an alias.  */
4503
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4504
 
choke me
4505
 
#else
4506
 
f = $ac_func;
4507
 
#endif
4508
 
 
4509
 
  ;
4510
 
  return 0;
4511
 
}
4512
 
_ACEOF
4513
 
rm -f conftest.$ac_objext conftest$ac_exeext
4514
 
if { (eval echo "$as_me:4514: \"$ac_link\"") >&5
4515
 
  (eval $ac_link) 2>&5
4516
 
  ac_status=$?
4517
 
  echo "$as_me:4517: \$? = $ac_status" >&5
4518
 
  (exit $ac_status); } &&
4519
 
         { ac_try='test -s conftest$ac_exeext'
4520
 
  { (eval echo "$as_me:4520: \"$ac_try\"") >&5
4521
 
  (eval $ac_try) 2>&5
4522
 
  ac_status=$?
4523
 
  echo "$as_me:4523: \$? = $ac_status" >&5
4524
 
  (exit $ac_status); }; }; then
4525
 
  eval "$as_ac_var=yes"
4526
 
else
4527
 
  echo "$as_me: failed program was:" >&5
4528
 
cat conftest.$ac_ext >&5
4529
 
eval "$as_ac_var=no"
4530
 
fi
4531
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4532
 
fi
4533
 
echo "$as_me:4533: result: `eval echo '${'$as_ac_var'}'`" >&5
4534
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4535
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
4536
 
  cat >>confdefs.h <<EOF
4537
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4538
 
EOF
4539
 
 
4540
 
else
4541
 
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4542
 
fi
4543
 
done
4544
 
 
 
5820
_ACEOF
 
5821
 
 
5822
fi
 
5823
 
 
5824
fi
 
5825
done
 
5826
 
 
5827
 
 
5828
# in theory only pre-sysvr3 systems needed this and it's not likely
 
5829
# that anyone compiling new texinfo still has such a thing? we'll see.
 
5830
# AC_FUNC_SETVBUF_REVERSED
 
5831
 
 
5832
 
 
5833
 
 
5834
 
 
5835
 
 
5836
 
 
5837
 
 
5838
 
 
5839
for ac_func in bzero getcwd memset setvbuf sigaction sigprocmask \
 
5840
               sigsetmask strchr
 
5841
do
 
5842
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5843
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5844
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5845
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5846
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5847
else
 
5848
  cat >conftest.$ac_ext <<_ACEOF
 
5849
/* confdefs.h.  */
 
5850
_ACEOF
 
5851
cat confdefs.h >>conftest.$ac_ext
 
5852
cat >>conftest.$ac_ext <<_ACEOF
 
5853
/* end confdefs.h.  */
 
5854
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5855
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5856
#define $ac_func innocuous_$ac_func
 
5857
 
 
5858
/* System header to define __stub macros and hopefully few prototypes,
 
5859
    which can conflict with char $ac_func (); below.
 
5860
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5861
    <limits.h> exists even on freestanding compilers.  */
 
5862
 
 
5863
#ifdef __STDC__
 
5864
# include <limits.h>
 
5865
#else
 
5866
# include <assert.h>
 
5867
#endif
 
5868
 
 
5869
#undef $ac_func
 
5870
 
 
5871
/* Override any gcc2 internal prototype to avoid an error.  */
 
5872
#ifdef __cplusplus
 
5873
extern "C"
 
5874
{
 
5875
#endif
 
5876
/* We use char because int might match the return type of a gcc2
 
5877
   builtin and then its argument prototype would still apply.  */
 
5878
char $ac_func ();
 
5879
/* The GNU C library defines this for functions which it implements
 
5880
    to always fail with ENOSYS.  Some functions are actually named
 
5881
    something starting with __ and the normal name is an alias.  */
 
5882
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5883
choke me
 
5884
#else
 
5885
char (*f) () = $ac_func;
 
5886
#endif
 
5887
#ifdef __cplusplus
 
5888
}
 
5889
#endif
 
5890
 
 
5891
int
 
5892
main ()
 
5893
{
 
5894
return f != $ac_func;
 
5895
  ;
 
5896
  return 0;
 
5897
}
 
5898
_ACEOF
 
5899
rm -f conftest.$ac_objext conftest$ac_exeext
 
5900
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5901
  (eval $ac_link) 2>conftest.er1
 
5902
  ac_status=$?
 
5903
  grep -v '^ *+' conftest.er1 >conftest.err
 
5904
  rm -f conftest.er1
 
5905
  cat conftest.err >&5
 
5906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5907
  (exit $ac_status); } &&
 
5908
         { ac_try='test -z "$ac_c_werror_flag"
 
5909
                         || test ! -s conftest.err'
 
5910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5911
  (eval $ac_try) 2>&5
 
5912
  ac_status=$?
 
5913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5914
  (exit $ac_status); }; } &&
 
5915
         { ac_try='test -s conftest$ac_exeext'
 
5916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5917
  (eval $ac_try) 2>&5
 
5918
  ac_status=$?
 
5919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5920
  (exit $ac_status); }; }; then
 
5921
  eval "$as_ac_var=yes"
 
5922
else
 
5923
  echo "$as_me: failed program was:" >&5
 
5924
sed 's/^/| /' conftest.$ac_ext >&5
 
5925
 
 
5926
eval "$as_ac_var=no"
 
5927
fi
 
5928
rm -f conftest.err conftest.$ac_objext \
 
5929
      conftest$ac_exeext conftest.$ac_ext
 
5930
fi
 
5931
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5932
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5933
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5934
  cat >>confdefs.h <<_ACEOF
 
5935
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5936
_ACEOF
 
5937
 
 
5938
fi
 
5939
done
 
5940
 
 
5941
 
 
5942
 
 
5943
 
 
5944
 
 
5945
for ac_func in memcpy memmove strdup strerror
 
5946
do
 
5947
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5948
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5949
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5950
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5952
else
 
5953
  cat >conftest.$ac_ext <<_ACEOF
 
5954
/* confdefs.h.  */
 
5955
_ACEOF
 
5956
cat confdefs.h >>conftest.$ac_ext
 
5957
cat >>conftest.$ac_ext <<_ACEOF
 
5958
/* end confdefs.h.  */
 
5959
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5960
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5961
#define $ac_func innocuous_$ac_func
 
5962
 
 
5963
/* System header to define __stub macros and hopefully few prototypes,
 
5964
    which can conflict with char $ac_func (); below.
 
5965
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5966
    <limits.h> exists even on freestanding compilers.  */
 
5967
 
 
5968
#ifdef __STDC__
 
5969
# include <limits.h>
 
5970
#else
 
5971
# include <assert.h>
 
5972
#endif
 
5973
 
 
5974
#undef $ac_func
 
5975
 
 
5976
/* Override any gcc2 internal prototype to avoid an error.  */
 
5977
#ifdef __cplusplus
 
5978
extern "C"
 
5979
{
 
5980
#endif
 
5981
/* We use char because int might match the return type of a gcc2
 
5982
   builtin and then its argument prototype would still apply.  */
 
5983
char $ac_func ();
 
5984
/* The GNU C library defines this for functions which it implements
 
5985
    to always fail with ENOSYS.  Some functions are actually named
 
5986
    something starting with __ and the normal name is an alias.  */
 
5987
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5988
choke me
 
5989
#else
 
5990
char (*f) () = $ac_func;
 
5991
#endif
 
5992
#ifdef __cplusplus
 
5993
}
 
5994
#endif
 
5995
 
 
5996
int
 
5997
main ()
 
5998
{
 
5999
return f != $ac_func;
 
6000
  ;
 
6001
  return 0;
 
6002
}
 
6003
_ACEOF
 
6004
rm -f conftest.$ac_objext conftest$ac_exeext
 
6005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6006
  (eval $ac_link) 2>conftest.er1
 
6007
  ac_status=$?
 
6008
  grep -v '^ *+' conftest.er1 >conftest.err
 
6009
  rm -f conftest.er1
 
6010
  cat conftest.err >&5
 
6011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6012
  (exit $ac_status); } &&
 
6013
         { ac_try='test -z "$ac_c_werror_flag"
 
6014
                         || test ! -s conftest.err'
 
6015
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6016
  (eval $ac_try) 2>&5
 
6017
  ac_status=$?
 
6018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6019
  (exit $ac_status); }; } &&
 
6020
         { ac_try='test -s conftest$ac_exeext'
 
6021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6022
  (eval $ac_try) 2>&5
 
6023
  ac_status=$?
 
6024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6025
  (exit $ac_status); }; }; then
 
6026
  eval "$as_ac_var=yes"
 
6027
else
 
6028
  echo "$as_me: failed program was:" >&5
 
6029
sed 's/^/| /' conftest.$ac_ext >&5
 
6030
 
 
6031
eval "$as_ac_var=no"
 
6032
fi
 
6033
rm -f conftest.err conftest.$ac_objext \
 
6034
      conftest$ac_exeext conftest.$ac_ext
 
6035
fi
 
6036
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6037
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6038
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6039
  cat >>confdefs.h <<_ACEOF
 
6040
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6041
_ACEOF
 
6042
 
 
6043
else
 
6044
  case $LIBOBJS in
 
6045
    "$ac_func.$ac_objext"   | \
 
6046
  *" $ac_func.$ac_objext"   | \
 
6047
    "$ac_func.$ac_objext "* | \
 
6048
  *" $ac_func.$ac_objext "* ) ;;
 
6049
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
6050
esac
 
6051
 
 
6052
fi
 
6053
done
 
6054
 
 
6055
 
 
6056
 
 
6057
# strcasecmp and strncasecmp, gnulib-style.
 
6058
 
 
6059
 
 
6060
 
 
6061
for ac_func in strcasecmp
 
6062
do
 
6063
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6064
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6065
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6066
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
6067
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6068
else
 
6069
  cat >conftest.$ac_ext <<_ACEOF
 
6070
/* confdefs.h.  */
 
6071
_ACEOF
 
6072
cat confdefs.h >>conftest.$ac_ext
 
6073
cat >>conftest.$ac_ext <<_ACEOF
 
6074
/* end confdefs.h.  */
 
6075
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6076
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6077
#define $ac_func innocuous_$ac_func
 
6078
 
 
6079
/* System header to define __stub macros and hopefully few prototypes,
 
6080
    which can conflict with char $ac_func (); below.
 
6081
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6082
    <limits.h> exists even on freestanding compilers.  */
 
6083
 
 
6084
#ifdef __STDC__
 
6085
# include <limits.h>
 
6086
#else
 
6087
# include <assert.h>
 
6088
#endif
 
6089
 
 
6090
#undef $ac_func
 
6091
 
 
6092
/* Override any gcc2 internal prototype to avoid an error.  */
 
6093
#ifdef __cplusplus
 
6094
extern "C"
 
6095
{
 
6096
#endif
 
6097
/* We use char because int might match the return type of a gcc2
 
6098
   builtin and then its argument prototype would still apply.  */
 
6099
char $ac_func ();
 
6100
/* The GNU C library defines this for functions which it implements
 
6101
    to always fail with ENOSYS.  Some functions are actually named
 
6102
    something starting with __ and the normal name is an alias.  */
 
6103
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6104
choke me
 
6105
#else
 
6106
char (*f) () = $ac_func;
 
6107
#endif
 
6108
#ifdef __cplusplus
 
6109
}
 
6110
#endif
 
6111
 
 
6112
int
 
6113
main ()
 
6114
{
 
6115
return f != $ac_func;
 
6116
  ;
 
6117
  return 0;
 
6118
}
 
6119
_ACEOF
 
6120
rm -f conftest.$ac_objext conftest$ac_exeext
 
6121
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6122
  (eval $ac_link) 2>conftest.er1
 
6123
  ac_status=$?
 
6124
  grep -v '^ *+' conftest.er1 >conftest.err
 
6125
  rm -f conftest.er1
 
6126
  cat conftest.err >&5
 
6127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6128
  (exit $ac_status); } &&
 
6129
         { ac_try='test -z "$ac_c_werror_flag"
 
6130
                         || test ! -s conftest.err'
 
6131
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6132
  (eval $ac_try) 2>&5
 
6133
  ac_status=$?
 
6134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6135
  (exit $ac_status); }; } &&
 
6136
         { ac_try='test -s conftest$ac_exeext'
 
6137
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6138
  (eval $ac_try) 2>&5
 
6139
  ac_status=$?
 
6140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6141
  (exit $ac_status); }; }; then
 
6142
  eval "$as_ac_var=yes"
 
6143
else
 
6144
  echo "$as_me: failed program was:" >&5
 
6145
sed 's/^/| /' conftest.$ac_ext >&5
 
6146
 
 
6147
eval "$as_ac_var=no"
 
6148
fi
 
6149
rm -f conftest.err conftest.$ac_objext \
 
6150
      conftest$ac_exeext conftest.$ac_ext
 
6151
fi
 
6152
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6153
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6154
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6155
  cat >>confdefs.h <<_ACEOF
 
6156
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6157
_ACEOF
 
6158
 
 
6159
else
 
6160
  case $LIBOBJS in
 
6161
    "$ac_func.$ac_objext"   | \
 
6162
  *" $ac_func.$ac_objext"   | \
 
6163
    "$ac_func.$ac_objext "* | \
 
6164
  *" $ac_func.$ac_objext "* ) ;;
 
6165
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
6166
esac
 
6167
 
 
6168
fi
 
6169
done
 
6170
 
 
6171
 
 
6172
  if test $ac_cv_func_strcasecmp = no; then
 
6173
 
 
6174
  :
 
6175
 
 
6176
  fi
 
6177
 
 
6178
 
 
6179
 
 
6180
for ac_func in strncasecmp
 
6181
do
 
6182
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6183
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6184
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6185
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
6186
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6187
else
 
6188
  cat >conftest.$ac_ext <<_ACEOF
 
6189
/* confdefs.h.  */
 
6190
_ACEOF
 
6191
cat confdefs.h >>conftest.$ac_ext
 
6192
cat >>conftest.$ac_ext <<_ACEOF
 
6193
/* end confdefs.h.  */
 
6194
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6195
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6196
#define $ac_func innocuous_$ac_func
 
6197
 
 
6198
/* System header to define __stub macros and hopefully few prototypes,
 
6199
    which can conflict with char $ac_func (); below.
 
6200
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6201
    <limits.h> exists even on freestanding compilers.  */
 
6202
 
 
6203
#ifdef __STDC__
 
6204
# include <limits.h>
 
6205
#else
 
6206
# include <assert.h>
 
6207
#endif
 
6208
 
 
6209
#undef $ac_func
 
6210
 
 
6211
/* Override any gcc2 internal prototype to avoid an error.  */
 
6212
#ifdef __cplusplus
 
6213
extern "C"
 
6214
{
 
6215
#endif
 
6216
/* We use char because int might match the return type of a gcc2
 
6217
   builtin and then its argument prototype would still apply.  */
 
6218
char $ac_func ();
 
6219
/* The GNU C library defines this for functions which it implements
 
6220
    to always fail with ENOSYS.  Some functions are actually named
 
6221
    something starting with __ and the normal name is an alias.  */
 
6222
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6223
choke me
 
6224
#else
 
6225
char (*f) () = $ac_func;
 
6226
#endif
 
6227
#ifdef __cplusplus
 
6228
}
 
6229
#endif
 
6230
 
 
6231
int
 
6232
main ()
 
6233
{
 
6234
return f != $ac_func;
 
6235
  ;
 
6236
  return 0;
 
6237
}
 
6238
_ACEOF
 
6239
rm -f conftest.$ac_objext conftest$ac_exeext
 
6240
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6241
  (eval $ac_link) 2>conftest.er1
 
6242
  ac_status=$?
 
6243
  grep -v '^ *+' conftest.er1 >conftest.err
 
6244
  rm -f conftest.er1
 
6245
  cat conftest.err >&5
 
6246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6247
  (exit $ac_status); } &&
 
6248
         { ac_try='test -z "$ac_c_werror_flag"
 
6249
                         || test ! -s conftest.err'
 
6250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6251
  (eval $ac_try) 2>&5
 
6252
  ac_status=$?
 
6253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6254
  (exit $ac_status); }; } &&
 
6255
         { ac_try='test -s conftest$ac_exeext'
 
6256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6257
  (eval $ac_try) 2>&5
 
6258
  ac_status=$?
 
6259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6260
  (exit $ac_status); }; }; then
 
6261
  eval "$as_ac_var=yes"
 
6262
else
 
6263
  echo "$as_me: failed program was:" >&5
 
6264
sed 's/^/| /' conftest.$ac_ext >&5
 
6265
 
 
6266
eval "$as_ac_var=no"
 
6267
fi
 
6268
rm -f conftest.err conftest.$ac_objext \
 
6269
      conftest$ac_exeext conftest.$ac_ext
 
6270
fi
 
6271
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6272
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6273
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6274
  cat >>confdefs.h <<_ACEOF
 
6275
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6276
_ACEOF
 
6277
 
 
6278
else
 
6279
  case $LIBOBJS in
 
6280
    "$ac_func.$ac_objext"   | \
 
6281
  *" $ac_func.$ac_objext"   | \
 
6282
    "$ac_func.$ac_objext "* | \
 
6283
  *" $ac_func.$ac_objext "* ) ;;
 
6284
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
6285
esac
 
6286
 
 
6287
fi
 
6288
done
 
6289
 
 
6290
 
 
6291
  if test $ac_cv_func_strncasecmp = no; then
 
6292
 
 
6293
  :
 
6294
 
 
6295
  fi
 
6296
 
 
6297
 
 
6298
 
 
6299
# We want to recognize djgpp to avoid the useless warning about no
 
6300
# term library.
 
6301
# Make sure we can run config.sub.
 
6302
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
6303
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
6304
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
6305
   { (exit 1); exit 1; }; }
 
6306
 
 
6307
echo "$as_me:$LINENO: checking build system type" >&5
 
6308
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
6309
if test "${ac_cv_build+set}" = set; then
 
6310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6311
else
 
6312
  ac_cv_build_alias=$build_alias
 
6313
test -z "$ac_cv_build_alias" &&
 
6314
  ac_cv_build_alias=`$ac_config_guess`
 
6315
test -z "$ac_cv_build_alias" &&
 
6316
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
6317
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
6318
   { (exit 1); exit 1; }; }
 
6319
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
6320
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
6321
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
6322
   { (exit 1); exit 1; }; }
 
6323
 
 
6324
fi
 
6325
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
6326
echo "${ECHO_T}$ac_cv_build" >&6
 
6327
build=$ac_cv_build
 
6328
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
6329
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
6330
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
6331
 
 
6332
 
 
6333
 
 
6334
# We need to run some of our own binaries, most notably makedoc, but as
 
6335
# long as we have this process, we also use our own makeinfo and
 
6336
# install-info.
 
6337
#
 
6338
# This means that if we are cross compiling, we have to configure the
 
6339
# package twice: once with the native compiler (this is done in a
 
6340
# subdirectory $native_tools), and once with the cross compiler.
 
6341
# The former is invoked automatically here, with --host=$build.
 
6342
# $native_tools is also added to SUBDIRS in the main Makefile.am,
 
6343
# so that make compiles the native tools first.
 
6344
#
 
6345
if test "$cross_compiling" = no; then
 
6346
  native_tools=
 
6347
else
 
6348
  native_tools=tools
 
6349
  test -d "$native_tools" || mkdir "$native_tools"
 
6350
  confdir=`(cd "$srcdir";pwd)`
 
6351
  # Make sure the secondary configure won't fail with
 
6352
  # "error: source directory already configured".
 
6353
  rm -f config.status
 
6354
  { echo "$as_me:$LINENO: Doing configure of native tools (${build})." >&5
 
6355
echo "$as_me: Doing configure of native tools (${build})." >&6;}
 
6356
  cd "$native_tools" || exit 1
 
6357
  # Run secondary configure in alternate environment or
 
6358
  # it gets the wrong CC etc.  env -i gives this build host configure
 
6359
  # a clean environment.
 
6360
  env -i CC="${BUILD_CC}" AR="${BUILD_AR}" RANLIB="${BUILD_RANLIB}" \
 
6361
      PATH="${PATH}" \
 
6362
      tools_only=1 \
 
6363
    ${confdir}/configure --build=${build} --host=${build} \
 
6364
                         --disable-rpath --disable-nls
 
6365
  cd .. || exit 1
 
6366
  { echo "$as_me:$LINENO: Continuing with main configure (${host})." >&5
 
6367
echo "$as_me: Continuing with main configure (${host})." >&6;}
 
6368
fi
 
6369
 
 
6370
 
 
6371
 
 
6372
if test "x$tools_only" = x1; then
 
6373
  TOOLS_ONLY_TRUE=
 
6374
  TOOLS_ONLY_FALSE='#'
 
6375
else
 
6376
  TOOLS_ONLY_TRUE='#'
 
6377
  TOOLS_ONLY_FALSE=
 
6378
fi
 
6379
 
 
6380
 
 
6381
# Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
 
6382
# rather ncurses.  So we check for it.
 
6383
TERMLIBS=
 
6384
# Check for termlib before termcap because Solaris termcap needs libucb.
 
6385
TERMLIB_VARIANTS="ncurses curses termlib termcap terminfo"
 
6386
for termlib in ${TERMLIB_VARIANTS}; do
 
6387
  as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
 
6388
echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
 
6389
echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
 
6390
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
 
6391
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6392
else
 
6393
  ac_check_lib_save_LIBS=$LIBS
 
6394
LIBS="-l${termlib}  $LIBS"
 
6395
cat >conftest.$ac_ext <<_ACEOF
 
6396
/* confdefs.h.  */
 
6397
_ACEOF
 
6398
cat confdefs.h >>conftest.$ac_ext
 
6399
cat >>conftest.$ac_ext <<_ACEOF
 
6400
/* end confdefs.h.  */
 
6401
 
 
6402
/* Override any gcc2 internal prototype to avoid an error.  */
 
6403
#ifdef __cplusplus
 
6404
extern "C"
 
6405
#endif
 
6406
/* We use char because int might match the return type of a gcc2
 
6407
   builtin and then its argument prototype would still apply.  */
 
6408
char tgetent ();
 
6409
int
 
6410
main ()
 
6411
{
 
6412
tgetent ();
 
6413
  ;
 
6414
  return 0;
 
6415
}
 
6416
_ACEOF
 
6417
rm -f conftest.$ac_objext conftest$ac_exeext
 
6418
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6419
  (eval $ac_link) 2>conftest.er1
 
6420
  ac_status=$?
 
6421
  grep -v '^ *+' conftest.er1 >conftest.err
 
6422
  rm -f conftest.er1
 
6423
  cat conftest.err >&5
 
6424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6425
  (exit $ac_status); } &&
 
6426
         { ac_try='test -z "$ac_c_werror_flag"
 
6427
                         || test ! -s conftest.err'
 
6428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6429
  (eval $ac_try) 2>&5
 
6430
  ac_status=$?
 
6431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6432
  (exit $ac_status); }; } &&
 
6433
         { ac_try='test -s conftest$ac_exeext'
 
6434
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6435
  (eval $ac_try) 2>&5
 
6436
  ac_status=$?
 
6437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6438
  (exit $ac_status); }; }; then
 
6439
  eval "$as_ac_Lib=yes"
 
6440
else
 
6441
  echo "$as_me: failed program was:" >&5
 
6442
sed 's/^/| /' conftest.$ac_ext >&5
 
6443
 
 
6444
eval "$as_ac_Lib=no"
 
6445
fi
 
6446
rm -f conftest.err conftest.$ac_objext \
 
6447
      conftest$ac_exeext conftest.$ac_ext
 
6448
LIBS=$ac_check_lib_save_LIBS
 
6449
fi
 
6450
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
6451
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
 
6452
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
6453
  TERMLIBS="${TERMLIBS} -l${termlib}"; break
 
6454
fi
 
6455
 
 
6456
done
 
6457
# don't bother warning on djgpp, it doesn't have a term library, it
 
6458
# ports each termcap-needing program separately according to its needs.
 
6459
if test -z "$TERMLIBS" && echo "$build" | grep -v djgpp >/dev/null; then
 
6460
  { echo "$as_me:$LINENO: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&5
 
6461
echo "$as_me: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&2;}
 
6462
fi
 
6463
 
 
6464
# Checks for variables.
4545
6465
# HP-UX 9 (at least) needs -lncurses which defines termcap variables PC etc.
4546
 
echo "$as_me:4546: checking for library with termcap variables" >&5
 
6466
echo "$as_me:$LINENO: checking for library with termcap variables" >&5
4547
6467
echo $ECHO_N "checking for library with termcap variables... $ECHO_C" >&6
4548
6468
if test "${ac_cv_var_ospeed+set}" = set; then
4549
6469
  echo $ECHO_N "(cached) $ECHO_C" >&6
4550
6470
else
4551
6471
  oldLIBS=$LIBS
4552
 
for trylib in $termlib ncurses curses termlib termcap terminfo; do
 
6472
for trylib in $termlib ${TERMLIB_VARIANTS}; do
4553
6473
   if test "x$trylib" != "x$termlib"; then
4554
6474
     LIBS="$oldLIBS -l$termlib -l$trylib"
4555
6475
   else
4556
6476
     LIBS="$oldLIBS -l$termlib"
4557
6477
   fi
4558
6478
   cat >conftest.$ac_ext <<_ACEOF
4559
 
#line 4559 "configure"
4560
 
#include "confdefs.h"
 
6479
/* confdefs.h.  */
 
6480
_ACEOF
 
6481
cat confdefs.h >>conftest.$ac_ext
 
6482
cat >>conftest.$ac_ext <<_ACEOF
 
6483
/* end confdefs.h.  */
4561
6484
 
4562
6485
int
4563
6486
main ()
4576
6499
#endif
4577
6500
#endif
4578
6501
/* Make sure all variables actually exist.  AIX 4.3 has ospeed but no BC.
4579
 
   --Andreas Ley <andy@rz.uni-karlsruhe.de>
4580
 
  ;
4581
 
  return 0;
4582
 
}
4583
 
_ACEOF
4584
 
rm -f conftest.$ac_objext conftest$ac_exeext
4585
 
if { (eval echo "$as_me:4585: \"$ac_link\"") >&5
4586
 
  (eval $ac_link) 2>&5
4587
 
  ac_status=$?
4588
 
  echo "$as_me:4588: \$? = $ac_status" >&5
4589
 
  (exit $ac_status); } &&
4590
 
         { ac_try='test -s conftest$ac_exeext'
4591
 
  { (eval echo "$as_me:4591: \"$ac_try\"") >&5
4592
 
  (eval $ac_try) 2>&5
4593
 
  ac_status=$?
4594
 
  echo "$as_me:4594: \$? = $ac_status" >&5
4595
 
  (exit $ac_status); }; }; then
4596
 
  24 Aug 2000.  */
 
6502
   --Andreas Ley <andy@rz.uni-karlsruhe.de> 24 Aug 2000.  */
4597
6503
BC++;
4598
 
UP++
 
6504
UP++;
4599
6505
PC++;
4600
6506
return ospeed != 0;
4601
6507
 
 
6508
  ;
 
6509
  return 0;
 
6510
}
 
6511
_ACEOF
 
6512
rm -f conftest.$ac_objext conftest$ac_exeext
 
6513
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6514
  (eval $ac_link) 2>conftest.er1
 
6515
  ac_status=$?
 
6516
  grep -v '^ *+' conftest.er1 >conftest.err
 
6517
  rm -f conftest.er1
 
6518
  cat conftest.err >&5
 
6519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6520
  (exit $ac_status); } &&
 
6521
         { ac_try='test -z "$ac_c_werror_flag"
 
6522
                         || test ! -s conftest.err'
 
6523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6524
  (eval $ac_try) 2>&5
 
6525
  ac_status=$?
 
6526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6527
  (exit $ac_status); }; } &&
 
6528
         { ac_try='test -s conftest$ac_exeext'
 
6529
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6530
  (eval $ac_try) 2>&5
 
6531
  ac_status=$?
 
6532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6533
  (exit $ac_status); }; }; then
 
6534
  ac_cv_var_ospeed=$trylib; break
4602
6535
else
4603
6536
  echo "$as_me: failed program was:" >&5
4604
 
cat conftest.$ac_ext >&5
4605
 
ac_cv_var_ospeed=$trylib; break
 
6537
sed 's/^/| /' conftest.$ac_ext >&5
 
6538
 
4606
6539
fi
4607
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6540
rm -f conftest.err conftest.$ac_objext \
 
6541
      conftest$ac_exeext conftest.$ac_ext
4608
6542
done
4609
6543
LIBS=$oldLIBS
4610
6544
 
4611
6545
fi
4612
6546
 
4613
 
echo "$as_me:4613: result: $ac_cv_var_ospeed" >&5
 
6547
echo "$as_me:$LINENO: result: $ac_cv_var_ospeed" >&5
4614
6548
echo "${ECHO_T}$ac_cv_var_ospeed" >&6
4615
6549
if test -n "$ac_cv_var_ospeed" \
4616
6550
   && test "x$termlib" != "x$ac_cv_var_ospeed"; then
4617
6551
  TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}"
4618
6552
fi
 
6553
#
 
6554
 
 
6555
# Do not use <ncurses/termcap.h> unless we're linking with ncurses.
 
6556
# Must come after the termlib tests.
 
6557
if test "x$termlib" = xncurses; then
 
6558
  # Use AC_CHECK_HEADERS so the HAVE_*_H symbol gets defined.
 
6559
 
 
6560
for ac_header in ncurses/termcap.h
 
6561
do
 
6562
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6563
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6564
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6565
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6566
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6567
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6568
fi
 
6569
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6570
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6571
else
 
6572
  # Is the header compilable?
 
6573
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6574
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6575
cat >conftest.$ac_ext <<_ACEOF
 
6576
/* confdefs.h.  */
 
6577
_ACEOF
 
6578
cat confdefs.h >>conftest.$ac_ext
 
6579
cat >>conftest.$ac_ext <<_ACEOF
 
6580
/* end confdefs.h.  */
 
6581
$ac_includes_default
 
6582
#include <$ac_header>
 
6583
_ACEOF
 
6584
rm -f conftest.$ac_objext
 
6585
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6586
  (eval $ac_compile) 2>conftest.er1
 
6587
  ac_status=$?
 
6588
  grep -v '^ *+' conftest.er1 >conftest.err
 
6589
  rm -f conftest.er1
 
6590
  cat conftest.err >&5
 
6591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6592
  (exit $ac_status); } &&
 
6593
         { ac_try='test -z "$ac_c_werror_flag"
 
6594
                         || test ! -s conftest.err'
 
6595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6596
  (eval $ac_try) 2>&5
 
6597
  ac_status=$?
 
6598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6599
  (exit $ac_status); }; } &&
 
6600
         { ac_try='test -s conftest.$ac_objext'
 
6601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6602
  (eval $ac_try) 2>&5
 
6603
  ac_status=$?
 
6604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6605
  (exit $ac_status); }; }; then
 
6606
  ac_header_compiler=yes
 
6607
else
 
6608
  echo "$as_me: failed program was:" >&5
 
6609
sed 's/^/| /' conftest.$ac_ext >&5
 
6610
 
 
6611
ac_header_compiler=no
 
6612
fi
 
6613
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6614
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6615
echo "${ECHO_T}$ac_header_compiler" >&6
 
6616
 
 
6617
# Is the header present?
 
6618
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6619
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6620
cat >conftest.$ac_ext <<_ACEOF
 
6621
/* confdefs.h.  */
 
6622
_ACEOF
 
6623
cat confdefs.h >>conftest.$ac_ext
 
6624
cat >>conftest.$ac_ext <<_ACEOF
 
6625
/* end confdefs.h.  */
 
6626
#include <$ac_header>
 
6627
_ACEOF
 
6628
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6629
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6630
  ac_status=$?
 
6631
  grep -v '^ *+' conftest.er1 >conftest.err
 
6632
  rm -f conftest.er1
 
6633
  cat conftest.err >&5
 
6634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6635
  (exit $ac_status); } >/dev/null; then
 
6636
  if test -s conftest.err; then
 
6637
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6638
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6639
  else
 
6640
    ac_cpp_err=
 
6641
  fi
 
6642
else
 
6643
  ac_cpp_err=yes
 
6644
fi
 
6645
if test -z "$ac_cpp_err"; then
 
6646
  ac_header_preproc=yes
 
6647
else
 
6648
  echo "$as_me: failed program was:" >&5
 
6649
sed 's/^/| /' conftest.$ac_ext >&5
 
6650
 
 
6651
  ac_header_preproc=no
 
6652
fi
 
6653
rm -f conftest.err conftest.$ac_ext
 
6654
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6655
echo "${ECHO_T}$ac_header_preproc" >&6
 
6656
 
 
6657
# So?  What about this header?
 
6658
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6659
  yes:no: )
 
6660
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6661
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6662
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6663
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6664
    ac_header_preproc=yes
 
6665
    ;;
 
6666
  no:yes:* )
 
6667
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6668
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6669
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6670
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6671
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6672
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6673
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6674
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6675
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6676
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6677
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6678
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6679
    (
 
6680
      cat <<\_ASBOX
 
6681
## -------------------------------------- ##
 
6682
## Report this to the GNU Texinfo lists.  ##
 
6683
## -------------------------------------- ##
 
6684
_ASBOX
 
6685
    ) |
 
6686
      sed "s/^/$as_me: WARNING:     /" >&2
 
6687
    ;;
 
6688
esac
 
6689
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6690
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6691
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6693
else
 
6694
  eval "$as_ac_Header=\$ac_header_preproc"
 
6695
fi
 
6696
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6697
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6698
 
 
6699
fi
 
6700
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6701
  cat >>confdefs.h <<_ACEOF
 
6702
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6703
_ACEOF
 
6704
 
 
6705
fi
 
6706
 
 
6707
done
 
6708
 
 
6709
fi
 
6710
 
 
6711
# gnulib.
 
6712
 
 
6713
 
 
6714
 
 
6715
 
 
6716
 
 
6717
for ac_header in $gl_header_list
 
6718
do
 
6719
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6720
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6721
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6722
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6723
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6724
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6725
fi
 
6726
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6727
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6728
else
 
6729
  # Is the header compilable?
 
6730
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6731
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6732
cat >conftest.$ac_ext <<_ACEOF
 
6733
/* confdefs.h.  */
 
6734
_ACEOF
 
6735
cat confdefs.h >>conftest.$ac_ext
 
6736
cat >>conftest.$ac_ext <<_ACEOF
 
6737
/* end confdefs.h.  */
 
6738
$ac_includes_default
 
6739
#include <$ac_header>
 
6740
_ACEOF
 
6741
rm -f conftest.$ac_objext
 
6742
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6743
  (eval $ac_compile) 2>conftest.er1
 
6744
  ac_status=$?
 
6745
  grep -v '^ *+' conftest.er1 >conftest.err
 
6746
  rm -f conftest.er1
 
6747
  cat conftest.err >&5
 
6748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6749
  (exit $ac_status); } &&
 
6750
         { ac_try='test -z "$ac_c_werror_flag"
 
6751
                         || test ! -s conftest.err'
 
6752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6753
  (eval $ac_try) 2>&5
 
6754
  ac_status=$?
 
6755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6756
  (exit $ac_status); }; } &&
 
6757
         { ac_try='test -s conftest.$ac_objext'
 
6758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6759
  (eval $ac_try) 2>&5
 
6760
  ac_status=$?
 
6761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6762
  (exit $ac_status); }; }; then
 
6763
  ac_header_compiler=yes
 
6764
else
 
6765
  echo "$as_me: failed program was:" >&5
 
6766
sed 's/^/| /' conftest.$ac_ext >&5
 
6767
 
 
6768
ac_header_compiler=no
 
6769
fi
 
6770
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6771
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6772
echo "${ECHO_T}$ac_header_compiler" >&6
 
6773
 
 
6774
# Is the header present?
 
6775
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6776
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6777
cat >conftest.$ac_ext <<_ACEOF
 
6778
/* confdefs.h.  */
 
6779
_ACEOF
 
6780
cat confdefs.h >>conftest.$ac_ext
 
6781
cat >>conftest.$ac_ext <<_ACEOF
 
6782
/* end confdefs.h.  */
 
6783
#include <$ac_header>
 
6784
_ACEOF
 
6785
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6786
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6787
  ac_status=$?
 
6788
  grep -v '^ *+' conftest.er1 >conftest.err
 
6789
  rm -f conftest.er1
 
6790
  cat conftest.err >&5
 
6791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6792
  (exit $ac_status); } >/dev/null; then
 
6793
  if test -s conftest.err; then
 
6794
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6795
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6796
  else
 
6797
    ac_cpp_err=
 
6798
  fi
 
6799
else
 
6800
  ac_cpp_err=yes
 
6801
fi
 
6802
if test -z "$ac_cpp_err"; then
 
6803
  ac_header_preproc=yes
 
6804
else
 
6805
  echo "$as_me: failed program was:" >&5
 
6806
sed 's/^/| /' conftest.$ac_ext >&5
 
6807
 
 
6808
  ac_header_preproc=no
 
6809
fi
 
6810
rm -f conftest.err conftest.$ac_ext
 
6811
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6812
echo "${ECHO_T}$ac_header_preproc" >&6
 
6813
 
 
6814
# So?  What about this header?
 
6815
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6816
  yes:no: )
 
6817
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6818
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6819
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6820
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6821
    ac_header_preproc=yes
 
6822
    ;;
 
6823
  no:yes:* )
 
6824
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6825
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6826
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6827
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6828
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6829
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6830
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6831
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6832
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6833
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6834
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6835
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6836
    (
 
6837
      cat <<\_ASBOX
 
6838
## -------------------------------------- ##
 
6839
## Report this to the GNU Texinfo lists.  ##
 
6840
## -------------------------------------- ##
 
6841
_ASBOX
 
6842
    ) |
 
6843
      sed "s/^/$as_me: WARNING:     /" >&2
 
6844
    ;;
 
6845
esac
 
6846
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6847
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6848
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6849
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6850
else
 
6851
  eval "$as_ac_Header=\$ac_header_preproc"
 
6852
fi
 
6853
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6854
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6855
 
 
6856
fi
 
6857
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6858
  cat >>confdefs.h <<_ACEOF
 
6859
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6860
_ACEOF
 
6861
 
 
6862
fi
 
6863
 
 
6864
done
 
6865
 
 
6866
 
 
6867
 
 
6868
 
 
6869
 
 
6870
 
 
6871
 
 
6872
 
 
6873
 
 
6874
 
 
6875
 
 
6876
 
 
6877
 
 
6878
 
 
6879
 
 
6880
 
 
6881
 
 
6882
 
 
6883
 
 
6884
      echo "$as_me:$LINENO: checking whether getenv is declared" >&5
 
6885
echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
 
6886
if test "${ac_cv_have_decl_getenv+set}" = set; then
 
6887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6888
else
 
6889
  cat >conftest.$ac_ext <<_ACEOF
 
6890
/* confdefs.h.  */
 
6891
_ACEOF
 
6892
cat confdefs.h >>conftest.$ac_ext
 
6893
cat >>conftest.$ac_ext <<_ACEOF
 
6894
/* end confdefs.h.  */
 
6895
$ac_includes_default
 
6896
int
 
6897
main ()
 
6898
{
 
6899
#ifndef getenv
 
6900
  char *p = (char *) getenv;
 
6901
#endif
 
6902
 
 
6903
  ;
 
6904
  return 0;
 
6905
}
 
6906
_ACEOF
 
6907
rm -f conftest.$ac_objext
 
6908
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6909
  (eval $ac_compile) 2>conftest.er1
 
6910
  ac_status=$?
 
6911
  grep -v '^ *+' conftest.er1 >conftest.err
 
6912
  rm -f conftest.er1
 
6913
  cat conftest.err >&5
 
6914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6915
  (exit $ac_status); } &&
 
6916
         { ac_try='test -z "$ac_c_werror_flag"
 
6917
                         || test ! -s conftest.err'
 
6918
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6919
  (eval $ac_try) 2>&5
 
6920
  ac_status=$?
 
6921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6922
  (exit $ac_status); }; } &&
 
6923
         { ac_try='test -s conftest.$ac_objext'
 
6924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6925
  (eval $ac_try) 2>&5
 
6926
  ac_status=$?
 
6927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6928
  (exit $ac_status); }; }; then
 
6929
  ac_cv_have_decl_getenv=yes
 
6930
else
 
6931
  echo "$as_me: failed program was:" >&5
 
6932
sed 's/^/| /' conftest.$ac_ext >&5
 
6933
 
 
6934
ac_cv_have_decl_getenv=no
 
6935
fi
 
6936
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6937
fi
 
6938
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
 
6939
echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
 
6940
if test $ac_cv_have_decl_getenv = yes; then
 
6941
 
 
6942
cat >>confdefs.h <<_ACEOF
 
6943
#define HAVE_DECL_GETENV 1
 
6944
_ACEOF
 
6945
 
 
6946
 
 
6947
else
 
6948
  cat >>confdefs.h <<_ACEOF
 
6949
#define HAVE_DECL_GETENV 0
 
6950
_ACEOF
 
6951
 
 
6952
 
 
6953
fi
 
6954
 
 
6955
 
 
6956
 
 
6957
 
 
6958
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
6959
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
 
6960
if test "${gl_cv_header_inttypes_h+set}" = set; then
 
6961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6962
else
 
6963
  cat >conftest.$ac_ext <<_ACEOF
 
6964
/* confdefs.h.  */
 
6965
_ACEOF
 
6966
cat confdefs.h >>conftest.$ac_ext
 
6967
cat >>conftest.$ac_ext <<_ACEOF
 
6968
/* end confdefs.h.  */
 
6969
#include <sys/types.h>
 
6970
#include <inttypes.h>
 
6971
int
 
6972
main ()
 
6973
{
 
6974
uintmax_t i = (uintmax_t) -1;
 
6975
  ;
 
6976
  return 0;
 
6977
}
 
6978
_ACEOF
 
6979
rm -f conftest.$ac_objext
 
6980
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6981
  (eval $ac_compile) 2>conftest.er1
 
6982
  ac_status=$?
 
6983
  grep -v '^ *+' conftest.er1 >conftest.err
 
6984
  rm -f conftest.er1
 
6985
  cat conftest.err >&5
 
6986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6987
  (exit $ac_status); } &&
 
6988
         { ac_try='test -z "$ac_c_werror_flag"
 
6989
                         || test ! -s conftest.err'
 
6990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6991
  (eval $ac_try) 2>&5
 
6992
  ac_status=$?
 
6993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6994
  (exit $ac_status); }; } &&
 
6995
         { ac_try='test -s conftest.$ac_objext'
 
6996
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6997
  (eval $ac_try) 2>&5
 
6998
  ac_status=$?
 
6999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7000
  (exit $ac_status); }; }; then
 
7001
  gl_cv_header_inttypes_h=yes
 
7002
else
 
7003
  echo "$as_me: failed program was:" >&5
 
7004
sed 's/^/| /' conftest.$ac_ext >&5
 
7005
 
 
7006
gl_cv_header_inttypes_h=no
 
7007
fi
 
7008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7009
fi
 
7010
echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
 
7011
echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
 
7012
  if test $gl_cv_header_inttypes_h = yes; then
 
7013
 
 
7014
cat >>confdefs.h <<_ACEOF
 
7015
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
 
7016
_ACEOF
 
7017
 
 
7018
  fi
 
7019
 
 
7020
 
 
7021
  echo "$as_me:$LINENO: checking for stdint.h" >&5
 
7022
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
 
7023
if test "${gl_cv_header_stdint_h+set}" = set; then
 
7024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7025
else
 
7026
  cat >conftest.$ac_ext <<_ACEOF
 
7027
/* confdefs.h.  */
 
7028
_ACEOF
 
7029
cat confdefs.h >>conftest.$ac_ext
 
7030
cat >>conftest.$ac_ext <<_ACEOF
 
7031
/* end confdefs.h.  */
 
7032
#include <sys/types.h>
 
7033
#include <stdint.h>
 
7034
int
 
7035
main ()
 
7036
{
 
7037
uintmax_t i = (uintmax_t) -1;
 
7038
  ;
 
7039
  return 0;
 
7040
}
 
7041
_ACEOF
 
7042
rm -f conftest.$ac_objext
 
7043
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7044
  (eval $ac_compile) 2>conftest.er1
 
7045
  ac_status=$?
 
7046
  grep -v '^ *+' conftest.er1 >conftest.err
 
7047
  rm -f conftest.er1
 
7048
  cat conftest.err >&5
 
7049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7050
  (exit $ac_status); } &&
 
7051
         { ac_try='test -z "$ac_c_werror_flag"
 
7052
                         || test ! -s conftest.err'
 
7053
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7054
  (eval $ac_try) 2>&5
 
7055
  ac_status=$?
 
7056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7057
  (exit $ac_status); }; } &&
 
7058
         { ac_try='test -s conftest.$ac_objext'
 
7059
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7060
  (eval $ac_try) 2>&5
 
7061
  ac_status=$?
 
7062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7063
  (exit $ac_status); }; }; then
 
7064
  gl_cv_header_stdint_h=yes
 
7065
else
 
7066
  echo "$as_me: failed program was:" >&5
 
7067
sed 's/^/| /' conftest.$ac_ext >&5
 
7068
 
 
7069
gl_cv_header_stdint_h=no
 
7070
fi
 
7071
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7072
fi
 
7073
echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
 
7074
echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
 
7075
  if test $gl_cv_header_stdint_h = yes; then
 
7076
 
 
7077
cat >>confdefs.h <<_ACEOF
 
7078
#define HAVE_STDINT_H_WITH_UINTMAX 1
 
7079
_ACEOF
 
7080
 
 
7081
  fi
 
7082
 
 
7083
 
 
7084
  echo "$as_me:$LINENO: checking for unsigned long long" >&5
 
7085
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
 
7086
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
 
7087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7088
else
 
7089
  cat >conftest.$ac_ext <<_ACEOF
 
7090
/* confdefs.h.  */
 
7091
_ACEOF
 
7092
cat confdefs.h >>conftest.$ac_ext
 
7093
cat >>conftest.$ac_ext <<_ACEOF
 
7094
/* end confdefs.h.  */
 
7095
unsigned long long ull = 1ULL; int i = 63;
 
7096
int
 
7097
main ()
 
7098
{
 
7099
unsigned long long ullmax = (unsigned long long) -1;
 
7100
     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
 
7101
  ;
 
7102
  return 0;
 
7103
}
 
7104
_ACEOF
 
7105
rm -f conftest.$ac_objext conftest$ac_exeext
 
7106
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7107
  (eval $ac_link) 2>conftest.er1
 
7108
  ac_status=$?
 
7109
  grep -v '^ *+' conftest.er1 >conftest.err
 
7110
  rm -f conftest.er1
 
7111
  cat conftest.err >&5
 
7112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7113
  (exit $ac_status); } &&
 
7114
         { ac_try='test -z "$ac_c_werror_flag"
 
7115
                         || test ! -s conftest.err'
 
7116
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7117
  (eval $ac_try) 2>&5
 
7118
  ac_status=$?
 
7119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7120
  (exit $ac_status); }; } &&
 
7121
         { ac_try='test -s conftest$ac_exeext'
 
7122
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7123
  (eval $ac_try) 2>&5
 
7124
  ac_status=$?
 
7125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7126
  (exit $ac_status); }; }; then
 
7127
  ac_cv_type_unsigned_long_long=yes
 
7128
else
 
7129
  echo "$as_me: failed program was:" >&5
 
7130
sed 's/^/| /' conftest.$ac_ext >&5
 
7131
 
 
7132
ac_cv_type_unsigned_long_long=no
 
7133
fi
 
7134
rm -f conftest.err conftest.$ac_objext \
 
7135
      conftest$ac_exeext conftest.$ac_ext
 
7136
fi
 
7137
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
 
7138
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
 
7139
  if test $ac_cv_type_unsigned_long_long = yes; then
 
7140
 
 
7141
cat >>confdefs.h <<\_ACEOF
 
7142
#define HAVE_UNSIGNED_LONG_LONG 1
 
7143
_ACEOF
 
7144
 
 
7145
  fi
 
7146
 
 
7147
 
 
7148
 
 
7149
 
 
7150
  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
 
7151
 
 
7152
    test $ac_cv_type_unsigned_long_long = yes \
 
7153
      && ac_type='unsigned long long' \
 
7154
      || ac_type='unsigned long'
 
7155
 
 
7156
cat >>confdefs.h <<_ACEOF
 
7157
#define uintmax_t $ac_type
 
7158
_ACEOF
 
7159
 
 
7160
  else
 
7161
 
 
7162
cat >>confdefs.h <<\_ACEOF
 
7163
#define HAVE_UINTMAX_T 1
 
7164
_ACEOF
 
7165
 
 
7166
  fi
 
7167
 
 
7168
 
 
7169
for ac_func in mkstemp
 
7170
do
 
7171
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
7172
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
7173
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
7174
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
7175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7176
else
 
7177
  cat >conftest.$ac_ext <<_ACEOF
 
7178
/* confdefs.h.  */
 
7179
_ACEOF
 
7180
cat confdefs.h >>conftest.$ac_ext
 
7181
cat >>conftest.$ac_ext <<_ACEOF
 
7182
/* end confdefs.h.  */
 
7183
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
7184
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7185
#define $ac_func innocuous_$ac_func
 
7186
 
 
7187
/* System header to define __stub macros and hopefully few prototypes,
 
7188
    which can conflict with char $ac_func (); below.
 
7189
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7190
    <limits.h> exists even on freestanding compilers.  */
 
7191
 
 
7192
#ifdef __STDC__
 
7193
# include <limits.h>
 
7194
#else
 
7195
# include <assert.h>
 
7196
#endif
 
7197
 
 
7198
#undef $ac_func
 
7199
 
 
7200
/* Override any gcc2 internal prototype to avoid an error.  */
 
7201
#ifdef __cplusplus
 
7202
extern "C"
 
7203
{
 
7204
#endif
 
7205
/* We use char because int might match the return type of a gcc2
 
7206
   builtin and then its argument prototype would still apply.  */
 
7207
char $ac_func ();
 
7208
/* The GNU C library defines this for functions which it implements
 
7209
    to always fail with ENOSYS.  Some functions are actually named
 
7210
    something starting with __ and the normal name is an alias.  */
 
7211
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
7212
choke me
 
7213
#else
 
7214
char (*f) () = $ac_func;
 
7215
#endif
 
7216
#ifdef __cplusplus
 
7217
}
 
7218
#endif
 
7219
 
 
7220
int
 
7221
main ()
 
7222
{
 
7223
return f != $ac_func;
 
7224
  ;
 
7225
  return 0;
 
7226
}
 
7227
_ACEOF
 
7228
rm -f conftest.$ac_objext conftest$ac_exeext
 
7229
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7230
  (eval $ac_link) 2>conftest.er1
 
7231
  ac_status=$?
 
7232
  grep -v '^ *+' conftest.er1 >conftest.err
 
7233
  rm -f conftest.er1
 
7234
  cat conftest.err >&5
 
7235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7236
  (exit $ac_status); } &&
 
7237
         { ac_try='test -z "$ac_c_werror_flag"
 
7238
                         || test ! -s conftest.err'
 
7239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7240
  (eval $ac_try) 2>&5
 
7241
  ac_status=$?
 
7242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7243
  (exit $ac_status); }; } &&
 
7244
         { ac_try='test -s conftest$ac_exeext'
 
7245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7246
  (eval $ac_try) 2>&5
 
7247
  ac_status=$?
 
7248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7249
  (exit $ac_status); }; }; then
 
7250
  eval "$as_ac_var=yes"
 
7251
else
 
7252
  echo "$as_me: failed program was:" >&5
 
7253
sed 's/^/| /' conftest.$ac_ext >&5
 
7254
 
 
7255
eval "$as_ac_var=no"
 
7256
fi
 
7257
rm -f conftest.err conftest.$ac_objext \
 
7258
      conftest$ac_exeext conftest.$ac_ext
 
7259
fi
 
7260
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
7261
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
7262
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
7263
  cat >>confdefs.h <<_ACEOF
 
7264
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
7265
_ACEOF
 
7266
 
 
7267
else
 
7268
  case $LIBOBJS in
 
7269
    "$ac_func.$ac_objext"   | \
 
7270
  *" $ac_func.$ac_objext"   | \
 
7271
    "$ac_func.$ac_objext "* | \
 
7272
  *" $ac_func.$ac_objext "* ) ;;
 
7273
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
7274
esac
 
7275
 
 
7276
fi
 
7277
done
 
7278
 
 
7279
 
 
7280
  if test $ac_cv_func_mkstemp = no; then
 
7281
    gl_cv_func_mkstemp_limitations=yes
 
7282
  else
 
7283
    echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
 
7284
echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
 
7285
if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
 
7286
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7287
else
 
7288
 
 
7289
        if test "$cross_compiling" = yes; then
 
7290
  gl_cv_func_mkstemp_limitations=yes
 
7291
 
 
7292
else
 
7293
  cat >conftest.$ac_ext <<_ACEOF
 
7294
/* confdefs.h.  */
 
7295
_ACEOF
 
7296
cat confdefs.h >>conftest.$ac_ext
 
7297
cat >>conftest.$ac_ext <<_ACEOF
 
7298
/* end confdefs.h.  */
 
7299
 
 
7300
#         include <stdlib.h>
 
7301
          int main ()
 
7302
          {
 
7303
            int i;
 
7304
            for (i = 0; i < 70; i++)
 
7305
              {
 
7306
                char template[] = "conftestXXXXXX";
 
7307
                int fd = mkstemp (template);
 
7308
                if (fd == -1)
 
7309
                  exit (1);
 
7310
                close (fd);
 
7311
              }
 
7312
            exit (0);
 
7313
          }
 
7314
 
 
7315
_ACEOF
 
7316
rm -f conftest$ac_exeext
 
7317
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7318
  (eval $ac_link) 2>&5
 
7319
  ac_status=$?
 
7320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7321
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7323
  (eval $ac_try) 2>&5
 
7324
  ac_status=$?
 
7325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7326
  (exit $ac_status); }; }; then
 
7327
  gl_cv_func_mkstemp_limitations=no
 
7328
else
 
7329
  echo "$as_me: program exited with status $ac_status" >&5
 
7330
echo "$as_me: failed program was:" >&5
 
7331
sed 's/^/| /' conftest.$ac_ext >&5
 
7332
 
 
7333
( exit $ac_status )
 
7334
gl_cv_func_mkstemp_limitations=yes
 
7335
fi
 
7336
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7337
fi
 
7338
 
 
7339
 
 
7340
fi
 
7341
echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
 
7342
echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6
 
7343
  fi
 
7344
 
 
7345
  if test $gl_cv_func_mkstemp_limitations = yes; then
 
7346
    case $LIBOBJS in
 
7347
    "mkstemp.$ac_objext"   | \
 
7348
  *" mkstemp.$ac_objext"   | \
 
7349
    "mkstemp.$ac_objext "* | \
 
7350
  *" mkstemp.$ac_objext "* ) ;;
 
7351
  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
 
7352
esac
 
7353
 
 
7354
    case $LIBOBJS in
 
7355
    "tempname.$ac_objext"   | \
 
7356
  *" tempname.$ac_objext"   | \
 
7357
    "tempname.$ac_objext "* | \
 
7358
  *" tempname.$ac_objext "* ) ;;
 
7359
  *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;;
 
7360
esac
 
7361
 
 
7362
 
 
7363
cat >>confdefs.h <<\_ACEOF
 
7364
#define mkstemp rpl_mkstemp
 
7365
_ACEOF
 
7366
 
 
7367
 
 
7368
 
 
7369
 
 
7370
 
 
7371
 
 
7372
  :
 
7373
 
 
7374
 
 
7375
 
 
7376
 
 
7377
 
 
7378
 
 
7379
 
 
7380
 
 
7381
 
 
7382
 
 
7383
 
 
7384
 
 
7385
for ac_header in stdint.h
 
7386
do
 
7387
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7388
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7389
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7390
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7391
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7392
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7393
fi
 
7394
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7395
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7396
else
 
7397
  # Is the header compilable?
 
7398
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7399
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7400
cat >conftest.$ac_ext <<_ACEOF
 
7401
/* confdefs.h.  */
 
7402
_ACEOF
 
7403
cat confdefs.h >>conftest.$ac_ext
 
7404
cat >>conftest.$ac_ext <<_ACEOF
 
7405
/* end confdefs.h.  */
 
7406
$ac_includes_default
 
7407
#include <$ac_header>
 
7408
_ACEOF
 
7409
rm -f conftest.$ac_objext
 
7410
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7411
  (eval $ac_compile) 2>conftest.er1
 
7412
  ac_status=$?
 
7413
  grep -v '^ *+' conftest.er1 >conftest.err
 
7414
  rm -f conftest.er1
 
7415
  cat conftest.err >&5
 
7416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7417
  (exit $ac_status); } &&
 
7418
         { ac_try='test -z "$ac_c_werror_flag"
 
7419
                         || test ! -s conftest.err'
 
7420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7421
  (eval $ac_try) 2>&5
 
7422
  ac_status=$?
 
7423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7424
  (exit $ac_status); }; } &&
 
7425
         { ac_try='test -s conftest.$ac_objext'
 
7426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7427
  (eval $ac_try) 2>&5
 
7428
  ac_status=$?
 
7429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7430
  (exit $ac_status); }; }; then
 
7431
  ac_header_compiler=yes
 
7432
else
 
7433
  echo "$as_me: failed program was:" >&5
 
7434
sed 's/^/| /' conftest.$ac_ext >&5
 
7435
 
 
7436
ac_header_compiler=no
 
7437
fi
 
7438
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7439
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7440
echo "${ECHO_T}$ac_header_compiler" >&6
 
7441
 
 
7442
# Is the header present?
 
7443
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7444
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7445
cat >conftest.$ac_ext <<_ACEOF
 
7446
/* confdefs.h.  */
 
7447
_ACEOF
 
7448
cat confdefs.h >>conftest.$ac_ext
 
7449
cat >>conftest.$ac_ext <<_ACEOF
 
7450
/* end confdefs.h.  */
 
7451
#include <$ac_header>
 
7452
_ACEOF
 
7453
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7454
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7455
  ac_status=$?
 
7456
  grep -v '^ *+' conftest.er1 >conftest.err
 
7457
  rm -f conftest.er1
 
7458
  cat conftest.err >&5
 
7459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7460
  (exit $ac_status); } >/dev/null; then
 
7461
  if test -s conftest.err; then
 
7462
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7463
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7464
  else
 
7465
    ac_cpp_err=
 
7466
  fi
 
7467
else
 
7468
  ac_cpp_err=yes
 
7469
fi
 
7470
if test -z "$ac_cpp_err"; then
 
7471
  ac_header_preproc=yes
 
7472
else
 
7473
  echo "$as_me: failed program was:" >&5
 
7474
sed 's/^/| /' conftest.$ac_ext >&5
 
7475
 
 
7476
  ac_header_preproc=no
 
7477
fi
 
7478
rm -f conftest.err conftest.$ac_ext
 
7479
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7480
echo "${ECHO_T}$ac_header_preproc" >&6
 
7481
 
 
7482
# So?  What about this header?
 
7483
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7484
  yes:no: )
 
7485
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7486
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7487
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7488
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7489
    ac_header_preproc=yes
 
7490
    ;;
 
7491
  no:yes:* )
 
7492
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7493
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7494
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7495
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7496
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7497
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7498
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7499
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7500
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7501
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7502
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7503
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7504
    (
 
7505
      cat <<\_ASBOX
 
7506
## -------------------------------------- ##
 
7507
## Report this to the GNU Texinfo lists.  ##
 
7508
## -------------------------------------- ##
 
7509
_ASBOX
 
7510
    ) |
 
7511
      sed "s/^/$as_me: WARNING:     /" >&2
 
7512
    ;;
 
7513
esac
 
7514
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7515
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7516
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7518
else
 
7519
  eval "$as_ac_Header=\$ac_header_preproc"
 
7520
fi
 
7521
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7522
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7523
 
 
7524
fi
 
7525
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7526
  cat >>confdefs.h <<_ACEOF
 
7527
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7528
_ACEOF
 
7529
 
 
7530
fi
 
7531
 
 
7532
done
 
7533
 
 
7534
 
 
7535
 
 
7536
for ac_func in __secure_getenv gettimeofday
 
7537
do
 
7538
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
7539
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
7540
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
7541
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
7542
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7543
else
 
7544
  cat >conftest.$ac_ext <<_ACEOF
 
7545
/* confdefs.h.  */
 
7546
_ACEOF
 
7547
cat confdefs.h >>conftest.$ac_ext
 
7548
cat >>conftest.$ac_ext <<_ACEOF
 
7549
/* end confdefs.h.  */
 
7550
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
7551
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7552
#define $ac_func innocuous_$ac_func
 
7553
 
 
7554
/* System header to define __stub macros and hopefully few prototypes,
 
7555
    which can conflict with char $ac_func (); below.
 
7556
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7557
    <limits.h> exists even on freestanding compilers.  */
 
7558
 
 
7559
#ifdef __STDC__
 
7560
# include <limits.h>
 
7561
#else
 
7562
# include <assert.h>
 
7563
#endif
 
7564
 
 
7565
#undef $ac_func
 
7566
 
 
7567
/* Override any gcc2 internal prototype to avoid an error.  */
 
7568
#ifdef __cplusplus
 
7569
extern "C"
 
7570
{
 
7571
#endif
 
7572
/* We use char because int might match the return type of a gcc2
 
7573
   builtin and then its argument prototype would still apply.  */
 
7574
char $ac_func ();
 
7575
/* The GNU C library defines this for functions which it implements
 
7576
    to always fail with ENOSYS.  Some functions are actually named
 
7577
    something starting with __ and the normal name is an alias.  */
 
7578
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
7579
choke me
 
7580
#else
 
7581
char (*f) () = $ac_func;
 
7582
#endif
 
7583
#ifdef __cplusplus
 
7584
}
 
7585
#endif
 
7586
 
 
7587
int
 
7588
main ()
 
7589
{
 
7590
return f != $ac_func;
 
7591
  ;
 
7592
  return 0;
 
7593
}
 
7594
_ACEOF
 
7595
rm -f conftest.$ac_objext conftest$ac_exeext
 
7596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7597
  (eval $ac_link) 2>conftest.er1
 
7598
  ac_status=$?
 
7599
  grep -v '^ *+' conftest.er1 >conftest.err
 
7600
  rm -f conftest.er1
 
7601
  cat conftest.err >&5
 
7602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7603
  (exit $ac_status); } &&
 
7604
         { ac_try='test -z "$ac_c_werror_flag"
 
7605
                         || test ! -s conftest.err'
 
7606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7607
  (eval $ac_try) 2>&5
 
7608
  ac_status=$?
 
7609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7610
  (exit $ac_status); }; } &&
 
7611
         { ac_try='test -s conftest$ac_exeext'
 
7612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7613
  (eval $ac_try) 2>&5
 
7614
  ac_status=$?
 
7615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7616
  (exit $ac_status); }; }; then
 
7617
  eval "$as_ac_var=yes"
 
7618
else
 
7619
  echo "$as_me: failed program was:" >&5
 
7620
sed 's/^/| /' conftest.$ac_ext >&5
 
7621
 
 
7622
eval "$as_ac_var=no"
 
7623
fi
 
7624
rm -f conftest.err conftest.$ac_objext \
 
7625
      conftest$ac_exeext conftest.$ac_ext
 
7626
fi
 
7627
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
7628
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
7629
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
7630
  cat >>confdefs.h <<_ACEOF
 
7631
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
7632
_ACEOF
 
7633
 
 
7634
fi
 
7635
done
 
7636
 
 
7637
 
 
7638
  :
 
7639
 
 
7640
 
 
7641
 
 
7642
 
 
7643
 
 
7644
 
 
7645
 
 
7646
  fi
 
7647
 
 
7648
 
 
7649
# For teTeX and TeX Live.
 
7650
echo "$as_me:$LINENO: checking host system type" >&5
 
7651
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
7652
if test "${ac_cv_host+set}" = set; then
 
7653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7654
else
 
7655
  ac_cv_host_alias=$host_alias
 
7656
test -z "$ac_cv_host_alias" &&
 
7657
  ac_cv_host_alias=$ac_cv_build_alias
 
7658
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
7659
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
7660
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
7661
   { (exit 1); exit 1; }; }
 
7662
 
 
7663
fi
 
7664
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
7665
echo "${ECHO_T}$ac_cv_host" >&6
 
7666
host=$ac_cv_host
 
7667
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
7668
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
7669
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
7670
 
 
7671
 
 
7672
# Check whether --enable-multiplatform or --disable-multiplatform was given.
 
7673
if test "${enable_multiplatform+set}" = set; then
 
7674
  enableval="$enable_multiplatform"
 
7675
 
 
7676
fi;
 
7677
# if enable_multiplatform is set in the environment, use that.
 
7678
test "x$enable_multiplatform" = xyes \
 
7679
&& test "x$bindir" = 'x${exec_prefix}/bin' \
 
7680
&& bindir="$bindir/$host"
 
7681
 
 
7682
# Taken from the example in
 
7683
# http://www.gnu.org/software/automake/manual/html_node/Conditionals.html.
 
7684
# Check whether --enable-install-warnings or --disable-install-warnings was given.
 
7685
if test "${enable_install_warnings+set}" = set; then
 
7686
  enableval="$enable_install_warnings"
 
7687
  case "${enableval}" in
 
7688
     yes) install_warnings=true ;;
 
7689
      no) install_warnings=false ;;
 
7690
       *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-install-warnings" >&5
 
7691
echo "$as_me: error: bad value ${enableval} for --enable-install-warnings" >&2;}
 
7692
   { (exit 1); exit 1; }; } ;;
 
7693
   esac
 
7694
else
 
7695
  install_warnings=true
 
7696
fi;
 
7697
 
 
7698
 
 
7699
if test x"$install_warnings" = xtrue || test x"$install_warnings" = xyes; then
 
7700
  INSTALL_WARNINGS_TRUE=
 
7701
  INSTALL_WARNINGS_FALSE='#'
 
7702
else
 
7703
  INSTALL_WARNINGS_TRUE='#'
 
7704
  INSTALL_WARNINGS_FALSE=
 
7705
fi
 
7706
 
 
7707
 
 
7708
# i18n support.  To update to a new version of gettext, run:
 
7709
# gettextize -f -c --intl
 
7710
 
4619
7711
 
4620
7712
        MKINSTALLDIRS=
4621
7713
  if test -n "$ac_aux_dir"; then
4622
 
    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
7714
    case "$ac_aux_dir" in
 
7715
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
 
7716
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
 
7717
    esac
4623
7718
  fi
4624
7719
  if test -z "$MKINSTALLDIRS"; then
4625
7720
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4626
7721
  fi
4627
7722
 
4628
 
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
7723
 
 
7724
 
 
7725
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
7726
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
 
7727
    # Check whether --enable-nls or --disable-nls was given.
 
7728
if test "${enable_nls+set}" = set; then
 
7729
  enableval="$enable_nls"
 
7730
  USE_NLS=$enableval
 
7731
else
 
7732
  USE_NLS=yes
 
7733
fi;
 
7734
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
7735
echo "${ECHO_T}$USE_NLS" >&6
 
7736
 
 
7737
 
 
7738
 
 
7739
 
 
7740
 
 
7741
 
 
7742
# Prepare PATH_SEPARATOR.
 
7743
# The user is always right.
 
7744
if test "${PATH_SEPARATOR+set}" != set; then
 
7745
  echo "#! /bin/sh" >conf$$.sh
 
7746
  echo  "exit 0"   >>conf$$.sh
 
7747
  chmod +x conf$$.sh
 
7748
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
7749
    PATH_SEPARATOR=';'
 
7750
  else
 
7751
    PATH_SEPARATOR=:
 
7752
  fi
 
7753
  rm -f conf$$.sh
 
7754
fi
 
7755
 
 
7756
# Find out how to test for executable files. Don't use a zero-byte file,
 
7757
# as systems may use methods other than mode bits to determine executability.
 
7758
cat >conf$$.file <<_ASEOF
 
7759
#! /bin/sh
 
7760
exit 0
 
7761
_ASEOF
 
7762
chmod +x conf$$.file
 
7763
if test -x conf$$.file >/dev/null 2>&1; then
 
7764
  ac_executable_p="test -x"
 
7765
else
 
7766
  ac_executable_p="test -f"
 
7767
fi
 
7768
rm -f conf$$.file
 
7769
 
 
7770
# Extract the first word of "msgfmt", so it can be a program name with args.
4629
7771
set dummy msgfmt; ac_word=$2
4630
 
echo "$as_me:4630: checking for $ac_word" >&5
 
7772
echo "$as_me:$LINENO: checking for $ac_word" >&5
4631
7773
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632
7774
if test "${ac_cv_path_MSGFMT+set}" = set; then
4633
7775
  echo $ECHO_N "(cached) $ECHO_C" >&6
4634
7776
else
4635
7777
  case "$MSGFMT" in
4636
 
  /*)
4637
 
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4638
 
  ;;
 
7778
  [\\/]* | ?:[\\/]*)
 
7779
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
7780
    ;;
4639
7781
  *)
4640
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4641
 
  for ac_dir in $PATH; do
4642
 
    test -z "$ac_dir" && ac_dir=.
4643
 
    if test -f $ac_dir/$ac_word; then
4644
 
      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
 
7782
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7783
    for ac_dir in $PATH; do
 
7784
      IFS="$ac_save_IFS"
 
7785
      test -z "$ac_dir" && ac_dir=.
 
7786
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7787
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
7788
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4645
7789
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4646
 
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4647
 
        break
4648
 
      fi
4649
 
    fi
4650
 
  done
4651
 
  IFS="$ac_save_ifs"
 
7790
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
7791
            break 2
 
7792
          fi
 
7793
        fi
 
7794
      done
 
7795
    done
 
7796
    IFS="$ac_save_IFS"
4652
7797
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4653
 
  ;;
 
7798
    ;;
4654
7799
esac
4655
7800
fi
4656
7801
MSGFMT="$ac_cv_path_MSGFMT"
4657
7802
if test "$MSGFMT" != ":"; then
4658
 
  echo "$as_me:4658: result: $MSGFMT" >&5
 
7803
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
4659
7804
echo "${ECHO_T}$MSGFMT" >&6
4660
7805
else
4661
 
  echo "$as_me:4661: result: no" >&5
 
7806
  echo "$as_me:$LINENO: result: no" >&5
4662
7807
echo "${ECHO_T}no" >&6
4663
7808
fi
4664
7809
 
4665
7810
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
4666
7811
set dummy gmsgfmt; ac_word=$2
4667
 
echo "$as_me:4667: checking for $ac_word" >&5
 
7812
echo "$as_me:$LINENO: checking for $ac_word" >&5
4668
7813
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4669
7814
if test "${ac_cv_path_GMSGFMT+set}" = set; then
4670
7815
  echo $ECHO_N "(cached) $ECHO_C" >&6
4674
7819
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4675
7820
  ;;
4676
7821
  *)
4677
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4678
 
ac_dummy="$PATH"
4679
 
for ac_dir in $ac_dummy; do
4680
 
  IFS=$ac_save_IFS
4681
 
  test -z "$ac_dir" && ac_dir=.
4682
 
  if $as_executable_p "$ac_dir/$ac_word"; then
4683
 
   ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4684
 
   echo "$as_me:4684: found $ac_dir/$ac_word" >&5
4685
 
   break
4686
 
fi
 
7822
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7823
for as_dir in $PATH
 
7824
do
 
7825
  IFS=$as_save_IFS
 
7826
  test -z "$as_dir" && as_dir=.
 
7827
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7828
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7829
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
7830
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7831
    break 2
 
7832
  fi
 
7833
done
4687
7834
done
4688
7835
 
4689
7836
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4693
7840
GMSGFMT=$ac_cv_path_GMSGFMT
4694
7841
 
4695
7842
if test -n "$GMSGFMT"; then
4696
 
  echo "$as_me:4696: result: $GMSGFMT" >&5
 
7843
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4697
7844
echo "${ECHO_T}$GMSGFMT" >&6
4698
7845
else
4699
 
  echo "$as_me:4699: result: no" >&5
 
7846
  echo "$as_me:$LINENO: result: no" >&5
4700
7847
echo "${ECHO_T}no" >&6
4701
7848
fi
4702
7849
 
4703
 
        # Extract the first word of "xgettext", so it can be a program name with args.
 
7850
 
 
7851
 
 
7852
# Prepare PATH_SEPARATOR.
 
7853
# The user is always right.
 
7854
if test "${PATH_SEPARATOR+set}" != set; then
 
7855
  echo "#! /bin/sh" >conf$$.sh
 
7856
  echo  "exit 0"   >>conf$$.sh
 
7857
  chmod +x conf$$.sh
 
7858
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
7859
    PATH_SEPARATOR=';'
 
7860
  else
 
7861
    PATH_SEPARATOR=:
 
7862
  fi
 
7863
  rm -f conf$$.sh
 
7864
fi
 
7865
 
 
7866
# Find out how to test for executable files. Don't use a zero-byte file,
 
7867
# as systems may use methods other than mode bits to determine executability.
 
7868
cat >conf$$.file <<_ASEOF
 
7869
#! /bin/sh
 
7870
exit 0
 
7871
_ASEOF
 
7872
chmod +x conf$$.file
 
7873
if test -x conf$$.file >/dev/null 2>&1; then
 
7874
  ac_executable_p="test -x"
 
7875
else
 
7876
  ac_executable_p="test -f"
 
7877
fi
 
7878
rm -f conf$$.file
 
7879
 
 
7880
# Extract the first word of "xgettext", so it can be a program name with args.
4704
7881
set dummy xgettext; ac_word=$2
4705
 
echo "$as_me:4705: checking for $ac_word" >&5
 
7882
echo "$as_me:$LINENO: checking for $ac_word" >&5
4706
7883
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707
7884
if test "${ac_cv_path_XGETTEXT+set}" = set; then
4708
7885
  echo $ECHO_N "(cached) $ECHO_C" >&6
4709
7886
else
4710
7887
  case "$XGETTEXT" in
4711
 
  /*)
4712
 
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4713
 
  ;;
 
7888
  [\\/]* | ?:[\\/]*)
 
7889
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
7890
    ;;
4714
7891
  *)
4715
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4716
 
  for ac_dir in $PATH; do
4717
 
    test -z "$ac_dir" && ac_dir=.
4718
 
    if test -f $ac_dir/$ac_word; then
4719
 
      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
4720
 
     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4721
 
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4722
 
        break
4723
 
      fi
4724
 
    fi
4725
 
  done
4726
 
  IFS="$ac_save_ifs"
 
7892
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7893
    for ac_dir in $PATH; do
 
7894
      IFS="$ac_save_IFS"
 
7895
      test -z "$ac_dir" && ac_dir=.
 
7896
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7897
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
7898
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
7899
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
7900
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
7901
            break 2
 
7902
          fi
 
7903
        fi
 
7904
      done
 
7905
    done
 
7906
    IFS="$ac_save_IFS"
4727
7907
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4728
 
  ;;
 
7908
    ;;
4729
7909
esac
4730
7910
fi
4731
7911
XGETTEXT="$ac_cv_path_XGETTEXT"
4732
7912
if test "$XGETTEXT" != ":"; then
4733
 
  echo "$as_me:4733: result: $XGETTEXT" >&5
 
7913
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4734
7914
echo "${ECHO_T}$XGETTEXT" >&6
4735
7915
else
4736
 
  echo "$as_me:4736: result: no" >&5
 
7916
  echo "$as_me:$LINENO: result: no" >&5
4737
7917
echo "${ECHO_T}no" >&6
4738
7918
fi
4739
7919
 
4740
7920
    rm -f messages.po
4741
7921
 
4742
 
    # Extract the first word of "msgmerge", so it can be a program name with args.
 
7922
 
 
7923
# Prepare PATH_SEPARATOR.
 
7924
# The user is always right.
 
7925
if test "${PATH_SEPARATOR+set}" != set; then
 
7926
  echo "#! /bin/sh" >conf$$.sh
 
7927
  echo  "exit 0"   >>conf$$.sh
 
7928
  chmod +x conf$$.sh
 
7929
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
7930
    PATH_SEPARATOR=';'
 
7931
  else
 
7932
    PATH_SEPARATOR=:
 
7933
  fi
 
7934
  rm -f conf$$.sh
 
7935
fi
 
7936
 
 
7937
# Find out how to test for executable files. Don't use a zero-byte file,
 
7938
# as systems may use methods other than mode bits to determine executability.
 
7939
cat >conf$$.file <<_ASEOF
 
7940
#! /bin/sh
 
7941
exit 0
 
7942
_ASEOF
 
7943
chmod +x conf$$.file
 
7944
if test -x conf$$.file >/dev/null 2>&1; then
 
7945
  ac_executable_p="test -x"
 
7946
else
 
7947
  ac_executable_p="test -f"
 
7948
fi
 
7949
rm -f conf$$.file
 
7950
 
 
7951
# Extract the first word of "msgmerge", so it can be a program name with args.
4743
7952
set dummy msgmerge; ac_word=$2
4744
 
echo "$as_me:4744: checking for $ac_word" >&5
 
7953
echo "$as_me:$LINENO: checking for $ac_word" >&5
4745
7954
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4746
7955
if test "${ac_cv_path_MSGMERGE+set}" = set; then
4747
7956
  echo $ECHO_N "(cached) $ECHO_C" >&6
4748
7957
else
4749
7958
  case "$MSGMERGE" in
4750
 
  /*)
4751
 
  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4752
 
  ;;
 
7959
  [\\/]* | ?:[\\/]*)
 
7960
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
7961
    ;;
4753
7962
  *)
4754
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4755
 
  for ac_dir in $PATH; do
4756
 
    test -z "$ac_dir" && ac_dir=.
4757
 
    if test -f $ac_dir/$ac_word; then
4758
 
      if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4759
 
        ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
4760
 
        break
4761
 
      fi
4762
 
    fi
4763
 
  done
4764
 
  IFS="$ac_save_ifs"
 
7963
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7964
    for ac_dir in $PATH; do
 
7965
      IFS="$ac_save_IFS"
 
7966
      test -z "$ac_dir" && ac_dir=.
 
7967
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7968
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
7969
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
 
7970
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
7971
            break 2
 
7972
          fi
 
7973
        fi
 
7974
      done
 
7975
    done
 
7976
    IFS="$ac_save_IFS"
4765
7977
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4766
 
  ;;
 
7978
    ;;
4767
7979
esac
4768
7980
fi
4769
7981
MSGMERGE="$ac_cv_path_MSGMERGE"
4770
7982
if test "$MSGMERGE" != ":"; then
4771
 
  echo "$as_me:4771: result: $MSGMERGE" >&5
 
7983
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4772
7984
echo "${ECHO_T}$MSGMERGE" >&6
4773
7985
else
4774
 
  echo "$as_me:4774: result: no" >&5
 
7986
  echo "$as_me:$LINENO: result: no" >&5
4775
7987
echo "${ECHO_T}no" >&6
4776
7988
fi
4777
7989
 
 
7990
 
4778
7991
      if test "$GMSGFMT" != ":"; then
4779
7992
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4780
7993
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4781
7994
      : ;
4782
7995
    else
4783
7996
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4784
 
      echo "$as_me:4784: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
 
7997
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4785
7998
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4786
7999
      GMSGFMT=":"
4787
8000
    fi
4788
8001
  fi
4789
8002
 
4790
8003
      if test "$XGETTEXT" != ":"; then
4791
 
            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
4792
 
       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
8004
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
8005
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4793
8006
      : ;
4794
8007
    else
4795
 
      echo "$as_me:4795: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
8008
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4796
8009
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4797
8010
      XGETTEXT=":"
4798
8011
    fi
4799
8012
        rm -f messages.po
4800
8013
  fi
4801
8014
 
4802
 
  ac_config_commands="$ac_config_commands default-2"
4803
 
 
4804
 
# Make sure we can run config.sub.
4805
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
4806
 
  { { echo "$as_me:4806: error: cannot run $ac_config_sub" >&5
4807
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4808
 
   { (exit 1); exit 1; }; }
4809
 
 
4810
 
echo "$as_me:4810: checking build system type" >&5
4811
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
4812
 
if test "${ac_cv_build+set}" = set; then
4813
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4814
 
else
4815
 
  ac_cv_build_alias=$build_alias
4816
 
test -z "$ac_cv_build_alias" &&
4817
 
  ac_cv_build_alias=`$ac_config_guess`
4818
 
test -z "$ac_cv_build_alias" &&
4819
 
  { { echo "$as_me:4819: error: cannot guess build type; you must specify one" >&5
4820
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4821
 
   { (exit 1); exit 1; }; }
4822
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4823
 
  { { echo "$as_me:4823: error: $ac_config_sub $ac_cv_build_alias failed." >&5
4824
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
4825
 
   { (exit 1); exit 1; }; }
4826
 
 
4827
 
fi
4828
 
echo "$as_me:4828: result: $ac_cv_build" >&5
4829
 
echo "${ECHO_T}$ac_cv_build" >&6
4830
 
build=$ac_cv_build
4831
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4832
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4833
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4834
 
 
4835
 
echo "$as_me:4835: checking host system type" >&5
4836
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
4837
 
if test "${ac_cv_host+set}" = set; then
4838
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4839
 
else
4840
 
  ac_cv_host_alias=$host_alias
4841
 
test -z "$ac_cv_host_alias" &&
4842
 
  ac_cv_host_alias=$ac_cv_build_alias
4843
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4844
 
  { { echo "$as_me:4844: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4845
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4846
 
   { (exit 1); exit 1; }; }
4847
 
 
4848
 
fi
4849
 
echo "$as_me:4849: result: $ac_cv_host" >&5
4850
 
echo "${ECHO_T}$ac_cv_host" >&6
4851
 
host=$ac_cv_host
4852
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4853
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4854
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4855
 
 
4856
 
echo "$as_me:4856: checking for inline" >&5
 
8015
            ac_config_commands="$ac_config_commands default-1"
 
8016
 
 
8017
 
 
8018
 
 
8019
  echo "$as_me:$LINENO: checking for signed" >&5
 
8020
echo $ECHO_N "checking for signed... $ECHO_C" >&6
 
8021
if test "${bh_cv_c_signed+set}" = set; then
 
8022
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8023
else
 
8024
  cat >conftest.$ac_ext <<_ACEOF
 
8025
/* confdefs.h.  */
 
8026
_ACEOF
 
8027
cat confdefs.h >>conftest.$ac_ext
 
8028
cat >>conftest.$ac_ext <<_ACEOF
 
8029
/* end confdefs.h.  */
 
8030
 
 
8031
int
 
8032
main ()
 
8033
{
 
8034
signed char x;
 
8035
  ;
 
8036
  return 0;
 
8037
}
 
8038
_ACEOF
 
8039
rm -f conftest.$ac_objext
 
8040
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8041
  (eval $ac_compile) 2>conftest.er1
 
8042
  ac_status=$?
 
8043
  grep -v '^ *+' conftest.er1 >conftest.err
 
8044
  rm -f conftest.er1
 
8045
  cat conftest.err >&5
 
8046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8047
  (exit $ac_status); } &&
 
8048
         { ac_try='test -z "$ac_c_werror_flag"
 
8049
                         || test ! -s conftest.err'
 
8050
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8051
  (eval $ac_try) 2>&5
 
8052
  ac_status=$?
 
8053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8054
  (exit $ac_status); }; } &&
 
8055
         { ac_try='test -s conftest.$ac_objext'
 
8056
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8057
  (eval $ac_try) 2>&5
 
8058
  ac_status=$?
 
8059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8060
  (exit $ac_status); }; }; then
 
8061
  bh_cv_c_signed=yes
 
8062
else
 
8063
  echo "$as_me: failed program was:" >&5
 
8064
sed 's/^/| /' conftest.$ac_ext >&5
 
8065
 
 
8066
bh_cv_c_signed=no
 
8067
fi
 
8068
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8069
fi
 
8070
echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
 
8071
echo "${ECHO_T}$bh_cv_c_signed" >&6
 
8072
  if test $bh_cv_c_signed = no; then
 
8073
 
 
8074
cat >>confdefs.h <<\_ACEOF
 
8075
#define signed
 
8076
_ACEOF
 
8077
 
 
8078
  fi
 
8079
 
 
8080
echo "$as_me:$LINENO: checking for inline" >&5
4857
8081
echo $ECHO_N "checking for inline... $ECHO_C" >&6
4858
8082
if test "${ac_cv_c_inline+set}" = set; then
4859
8083
  echo $ECHO_N "(cached) $ECHO_C" >&6
4861
8085
  ac_cv_c_inline=no
4862
8086
for ac_kw in inline __inline__ __inline; do
4863
8087
  cat >conftest.$ac_ext <<_ACEOF
4864
 
#line 4864 "configure"
4865
 
#include "confdefs.h"
 
8088
/* confdefs.h.  */
 
8089
_ACEOF
 
8090
cat confdefs.h >>conftest.$ac_ext
 
8091
cat >>conftest.$ac_ext <<_ACEOF
 
8092
/* end confdefs.h.  */
4866
8093
#ifndef __cplusplus
4867
 
static $ac_kw int static_foo () {return 0; }
4868
 
$ac_kw int foo () {return 0; }
 
8094
typedef int foo_t;
 
8095
static $ac_kw foo_t static_foo () {return 0; }
 
8096
$ac_kw foo_t foo () {return 0; }
4869
8097
#endif
4870
8098
 
4871
8099
_ACEOF
4872
8100
rm -f conftest.$ac_objext
4873
 
if { (eval echo "$as_me:4873: \"$ac_compile\"") >&5
4874
 
  (eval $ac_compile) 2>&5
 
8101
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8102
  (eval $ac_compile) 2>conftest.er1
4875
8103
  ac_status=$?
4876
 
  echo "$as_me:4876: \$? = $ac_status" >&5
 
8104
  grep -v '^ *+' conftest.er1 >conftest.err
 
8105
  rm -f conftest.er1
 
8106
  cat conftest.err >&5
 
8107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877
8108
  (exit $ac_status); } &&
4878
 
         { ac_try='test -s conftest.$ac_objext'
4879
 
  { (eval echo "$as_me:4879: \"$ac_try\"") >&5
4880
 
  (eval $ac_try) 2>&5
4881
 
  ac_status=$?
4882
 
  echo "$as_me:4882: \$? = $ac_status" >&5
 
8109
         { ac_try='test -z "$ac_c_werror_flag"
 
8110
                         || test ! -s conftest.err'
 
8111
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8112
  (eval $ac_try) 2>&5
 
8113
  ac_status=$?
 
8114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8115
  (exit $ac_status); }; } &&
 
8116
         { ac_try='test -s conftest.$ac_objext'
 
8117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8118
  (eval $ac_try) 2>&5
 
8119
  ac_status=$?
 
8120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883
8121
  (exit $ac_status); }; }; then
4884
8122
  ac_cv_c_inline=$ac_kw; break
4885
8123
else
4886
8124
  echo "$as_me: failed program was:" >&5
4887
 
cat conftest.$ac_ext >&5
 
8125
sed 's/^/| /' conftest.$ac_ext >&5
 
8126
 
4888
8127
fi
4889
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
8128
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4890
8129
done
4891
8130
 
4892
8131
fi
4893
 
echo "$as_me:4893: result: $ac_cv_c_inline" >&5
 
8132
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4894
8133
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
8134
 
 
8135
 
4895
8136
case $ac_cv_c_inline in
4896
8137
  inline | yes) ;;
4897
 
  no)
4898
 
cat >>confdefs.h <<\EOF
4899
 
#define inline
4900
 
EOF
4901
 
 ;;
4902
 
  *)  cat >>confdefs.h <<EOF
4903
 
#define inline $ac_cv_c_inline
4904
 
EOF
4905
 
 ;;
 
8138
  *)
 
8139
    case $ac_cv_c_inline in
 
8140
      no) ac_val=;;
 
8141
      *) ac_val=$ac_cv_c_inline;;
 
8142
    esac
 
8143
    cat >>confdefs.h <<_ACEOF
 
8144
#ifndef __cplusplus
 
8145
#define inline $ac_val
 
8146
#endif
 
8147
_ACEOF
 
8148
    ;;
4906
8149
esac
4907
8150
 
4908
 
echo "$as_me:4908: checking for size_t" >&5
 
8151
echo "$as_me:$LINENO: checking for size_t" >&5
4909
8152
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4910
8153
if test "${ac_cv_type_size_t+set}" = set; then
4911
8154
  echo $ECHO_N "(cached) $ECHO_C" >&6
4912
8155
else
4913
8156
  cat >conftest.$ac_ext <<_ACEOF
4914
 
#line 4914 "configure"
4915
 
#include "confdefs.h"
 
8157
/* confdefs.h.  */
 
8158
_ACEOF
 
8159
cat confdefs.h >>conftest.$ac_ext
 
8160
cat >>conftest.$ac_ext <<_ACEOF
 
8161
/* end confdefs.h.  */
4916
8162
$ac_includes_default
4917
8163
int
4918
8164
main ()
4926
8172
}
4927
8173
_ACEOF
4928
8174
rm -f conftest.$ac_objext
4929
 
if { (eval echo "$as_me:4929: \"$ac_compile\"") >&5
4930
 
  (eval $ac_compile) 2>&5
 
8175
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8176
  (eval $ac_compile) 2>conftest.er1
4931
8177
  ac_status=$?
4932
 
  echo "$as_me:4932: \$? = $ac_status" >&5
 
8178
  grep -v '^ *+' conftest.er1 >conftest.err
 
8179
  rm -f conftest.er1
 
8180
  cat conftest.err >&5
 
8181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933
8182
  (exit $ac_status); } &&
4934
 
         { ac_try='test -s conftest.$ac_objext'
4935
 
  { (eval echo "$as_me:4935: \"$ac_try\"") >&5
4936
 
  (eval $ac_try) 2>&5
4937
 
  ac_status=$?
4938
 
  echo "$as_me:4938: \$? = $ac_status" >&5
 
8183
         { ac_try='test -z "$ac_c_werror_flag"
 
8184
                         || test ! -s conftest.err'
 
8185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8186
  (eval $ac_try) 2>&5
 
8187
  ac_status=$?
 
8188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8189
  (exit $ac_status); }; } &&
 
8190
         { ac_try='test -s conftest.$ac_objext'
 
8191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8192
  (eval $ac_try) 2>&5
 
8193
  ac_status=$?
 
8194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939
8195
  (exit $ac_status); }; }; then
4940
8196
  ac_cv_type_size_t=yes
4941
8197
else
4942
8198
  echo "$as_me: failed program was:" >&5
4943
 
cat conftest.$ac_ext >&5
 
8199
sed 's/^/| /' conftest.$ac_ext >&5
 
8200
 
4944
8201
ac_cv_type_size_t=no
4945
8202
fi
4946
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
8203
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4947
8204
fi
4948
 
echo "$as_me:4948: result: $ac_cv_type_size_t" >&5
 
8205
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4949
8206
echo "${ECHO_T}$ac_cv_type_size_t" >&6
4950
8207
if test $ac_cv_type_size_t = yes; then
4951
8208
  :
4952
8209
else
4953
8210
 
4954
 
cat >>confdefs.h <<EOF
 
8211
cat >>confdefs.h <<_ACEOF
4955
8212
#define size_t unsigned
4956
 
EOF
4957
 
 
4958
 
fi
 
8213
_ACEOF
 
8214
 
 
8215
fi
 
8216
 
 
8217
 
 
8218
  echo "$as_me:$LINENO: checking for long long" >&5
 
8219
echo $ECHO_N "checking for long long... $ECHO_C" >&6
 
8220
if test "${ac_cv_type_long_long+set}" = set; then
 
8221
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8222
else
 
8223
  cat >conftest.$ac_ext <<_ACEOF
 
8224
/* confdefs.h.  */
 
8225
_ACEOF
 
8226
cat confdefs.h >>conftest.$ac_ext
 
8227
cat >>conftest.$ac_ext <<_ACEOF
 
8228
/* end confdefs.h.  */
 
8229
long long ll = 1LL; int i = 63;
 
8230
int
 
8231
main ()
 
8232
{
 
8233
long long llmax = (long long) -1;
 
8234
     return ll << i | ll >> i | llmax / ll | llmax % ll;
 
8235
  ;
 
8236
  return 0;
 
8237
}
 
8238
_ACEOF
 
8239
rm -f conftest.$ac_objext conftest$ac_exeext
 
8240
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8241
  (eval $ac_link) 2>conftest.er1
 
8242
  ac_status=$?
 
8243
  grep -v '^ *+' conftest.er1 >conftest.err
 
8244
  rm -f conftest.er1
 
8245
  cat conftest.err >&5
 
8246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8247
  (exit $ac_status); } &&
 
8248
         { ac_try='test -z "$ac_c_werror_flag"
 
8249
                         || test ! -s conftest.err'
 
8250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8251
  (eval $ac_try) 2>&5
 
8252
  ac_status=$?
 
8253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8254
  (exit $ac_status); }; } &&
 
8255
         { ac_try='test -s conftest$ac_exeext'
 
8256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8257
  (eval $ac_try) 2>&5
 
8258
  ac_status=$?
 
8259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8260
  (exit $ac_status); }; }; then
 
8261
  ac_cv_type_long_long=yes
 
8262
else
 
8263
  echo "$as_me: failed program was:" >&5
 
8264
sed 's/^/| /' conftest.$ac_ext >&5
 
8265
 
 
8266
ac_cv_type_long_long=no
 
8267
fi
 
8268
rm -f conftest.err conftest.$ac_objext \
 
8269
      conftest$ac_exeext conftest.$ac_ext
 
8270
fi
 
8271
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
8272
echo "${ECHO_T}$ac_cv_type_long_long" >&6
 
8273
  if test $ac_cv_type_long_long = yes; then
 
8274
 
 
8275
cat >>confdefs.h <<\_ACEOF
 
8276
#define HAVE_LONG_LONG 1
 
8277
_ACEOF
 
8278
 
 
8279
  fi
 
8280
 
 
8281
 
 
8282
  echo "$as_me:$LINENO: checking for long double" >&5
 
8283
echo $ECHO_N "checking for long double... $ECHO_C" >&6
 
8284
if test "${gt_cv_c_long_double+set}" = set; then
 
8285
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8286
else
 
8287
  if test "$GCC" = yes; then
 
8288
       gt_cv_c_long_double=yes
 
8289
     else
 
8290
       cat >conftest.$ac_ext <<_ACEOF
 
8291
/* confdefs.h.  */
 
8292
_ACEOF
 
8293
cat confdefs.h >>conftest.$ac_ext
 
8294
cat >>conftest.$ac_ext <<_ACEOF
 
8295
/* end confdefs.h.  */
 
8296
 
 
8297
         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
 
8298
         long double foo = 0.0;
 
8299
         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
 
8300
         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
 
8301
 
 
8302
int
 
8303
main ()
 
8304
{
 
8305
 
 
8306
  ;
 
8307
  return 0;
 
8308
}
 
8309
_ACEOF
 
8310
rm -f conftest.$ac_objext
 
8311
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8312
  (eval $ac_compile) 2>conftest.er1
 
8313
  ac_status=$?
 
8314
  grep -v '^ *+' conftest.er1 >conftest.err
 
8315
  rm -f conftest.er1
 
8316
  cat conftest.err >&5
 
8317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8318
  (exit $ac_status); } &&
 
8319
         { ac_try='test -z "$ac_c_werror_flag"
 
8320
                         || test ! -s conftest.err'
 
8321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8322
  (eval $ac_try) 2>&5
 
8323
  ac_status=$?
 
8324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8325
  (exit $ac_status); }; } &&
 
8326
         { ac_try='test -s conftest.$ac_objext'
 
8327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8328
  (eval $ac_try) 2>&5
 
8329
  ac_status=$?
 
8330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8331
  (exit $ac_status); }; }; then
 
8332
  gt_cv_c_long_double=yes
 
8333
else
 
8334
  echo "$as_me: failed program was:" >&5
 
8335
sed 's/^/| /' conftest.$ac_ext >&5
 
8336
 
 
8337
gt_cv_c_long_double=no
 
8338
fi
 
8339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8340
     fi
 
8341
fi
 
8342
echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
 
8343
echo "${ECHO_T}$gt_cv_c_long_double" >&6
 
8344
  if test $gt_cv_c_long_double = yes; then
 
8345
 
 
8346
cat >>confdefs.h <<\_ACEOF
 
8347
#define HAVE_LONG_DOUBLE 1
 
8348
_ACEOF
 
8349
 
 
8350
  fi
 
8351
 
 
8352
 
 
8353
  echo "$as_me:$LINENO: checking for wchar_t" >&5
 
8354
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
 
8355
if test "${gt_cv_c_wchar_t+set}" = set; then
 
8356
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8357
else
 
8358
  cat >conftest.$ac_ext <<_ACEOF
 
8359
/* confdefs.h.  */
 
8360
_ACEOF
 
8361
cat confdefs.h >>conftest.$ac_ext
 
8362
cat >>conftest.$ac_ext <<_ACEOF
 
8363
/* end confdefs.h.  */
 
8364
#include <stddef.h>
 
8365
       wchar_t foo = (wchar_t)'\0';
 
8366
int
 
8367
main ()
 
8368
{
 
8369
 
 
8370
  ;
 
8371
  return 0;
 
8372
}
 
8373
_ACEOF
 
8374
rm -f conftest.$ac_objext
 
8375
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8376
  (eval $ac_compile) 2>conftest.er1
 
8377
  ac_status=$?
 
8378
  grep -v '^ *+' conftest.er1 >conftest.err
 
8379
  rm -f conftest.er1
 
8380
  cat conftest.err >&5
 
8381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8382
  (exit $ac_status); } &&
 
8383
         { ac_try='test -z "$ac_c_werror_flag"
 
8384
                         || test ! -s conftest.err'
 
8385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8386
  (eval $ac_try) 2>&5
 
8387
  ac_status=$?
 
8388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8389
  (exit $ac_status); }; } &&
 
8390
         { ac_try='test -s conftest.$ac_objext'
 
8391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8392
  (eval $ac_try) 2>&5
 
8393
  ac_status=$?
 
8394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8395
  (exit $ac_status); }; }; then
 
8396
  gt_cv_c_wchar_t=yes
 
8397
else
 
8398
  echo "$as_me: failed program was:" >&5
 
8399
sed 's/^/| /' conftest.$ac_ext >&5
 
8400
 
 
8401
gt_cv_c_wchar_t=no
 
8402
fi
 
8403
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8404
fi
 
8405
echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
 
8406
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
 
8407
  if test $gt_cv_c_wchar_t = yes; then
 
8408
 
 
8409
cat >>confdefs.h <<\_ACEOF
 
8410
#define HAVE_WCHAR_T 1
 
8411
_ACEOF
 
8412
 
 
8413
  fi
 
8414
 
 
8415
 
 
8416
  echo "$as_me:$LINENO: checking for wint_t" >&5
 
8417
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
 
8418
if test "${gt_cv_c_wint_t+set}" = set; then
 
8419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8420
else
 
8421
  cat >conftest.$ac_ext <<_ACEOF
 
8422
/* confdefs.h.  */
 
8423
_ACEOF
 
8424
cat confdefs.h >>conftest.$ac_ext
 
8425
cat >>conftest.$ac_ext <<_ACEOF
 
8426
/* end confdefs.h.  */
 
8427
#include <wchar.h>
 
8428
       wint_t foo = (wchar_t)'\0';
 
8429
int
 
8430
main ()
 
8431
{
 
8432
 
 
8433
  ;
 
8434
  return 0;
 
8435
}
 
8436
_ACEOF
 
8437
rm -f conftest.$ac_objext
 
8438
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8439
  (eval $ac_compile) 2>conftest.er1
 
8440
  ac_status=$?
 
8441
  grep -v '^ *+' conftest.er1 >conftest.err
 
8442
  rm -f conftest.er1
 
8443
  cat conftest.err >&5
 
8444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8445
  (exit $ac_status); } &&
 
8446
         { ac_try='test -z "$ac_c_werror_flag"
 
8447
                         || test ! -s conftest.err'
 
8448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8449
  (eval $ac_try) 2>&5
 
8450
  ac_status=$?
 
8451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8452
  (exit $ac_status); }; } &&
 
8453
         { ac_try='test -s conftest.$ac_objext'
 
8454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8455
  (eval $ac_try) 2>&5
 
8456
  ac_status=$?
 
8457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8458
  (exit $ac_status); }; }; then
 
8459
  gt_cv_c_wint_t=yes
 
8460
else
 
8461
  echo "$as_me: failed program was:" >&5
 
8462
sed 's/^/| /' conftest.$ac_ext >&5
 
8463
 
 
8464
gt_cv_c_wint_t=no
 
8465
fi
 
8466
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8467
fi
 
8468
echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
8469
echo "${ECHO_T}$gt_cv_c_wint_t" >&6
 
8470
  if test $gt_cv_c_wint_t = yes; then
 
8471
 
 
8472
cat >>confdefs.h <<\_ACEOF
 
8473
#define HAVE_WINT_T 1
 
8474
_ACEOF
 
8475
 
 
8476
  fi
 
8477
 
 
8478
 
 
8479
 
 
8480
 
 
8481
  echo "$as_me:$LINENO: checking for intmax_t" >&5
 
8482
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
 
8483
if test "${gt_cv_c_intmax_t+set}" = set; then
 
8484
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8485
else
 
8486
  cat >conftest.$ac_ext <<_ACEOF
 
8487
/* confdefs.h.  */
 
8488
_ACEOF
 
8489
cat confdefs.h >>conftest.$ac_ext
 
8490
cat >>conftest.$ac_ext <<_ACEOF
 
8491
/* end confdefs.h.  */
 
8492
 
 
8493
#include <stddef.h>
 
8494
#include <stdlib.h>
 
8495
#if HAVE_STDINT_H_WITH_UINTMAX
 
8496
#include <stdint.h>
 
8497
#endif
 
8498
#if HAVE_INTTYPES_H_WITH_UINTMAX
 
8499
#include <inttypes.h>
 
8500
#endif
 
8501
 
 
8502
int
 
8503
main ()
 
8504
{
 
8505
intmax_t x = -1;
 
8506
  ;
 
8507
  return 0;
 
8508
}
 
8509
_ACEOF
 
8510
rm -f conftest.$ac_objext
 
8511
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8512
  (eval $ac_compile) 2>conftest.er1
 
8513
  ac_status=$?
 
8514
  grep -v '^ *+' conftest.er1 >conftest.err
 
8515
  rm -f conftest.er1
 
8516
  cat conftest.err >&5
 
8517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8518
  (exit $ac_status); } &&
 
8519
         { ac_try='test -z "$ac_c_werror_flag"
 
8520
                         || test ! -s conftest.err'
 
8521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8522
  (eval $ac_try) 2>&5
 
8523
  ac_status=$?
 
8524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8525
  (exit $ac_status); }; } &&
 
8526
         { ac_try='test -s conftest.$ac_objext'
 
8527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8528
  (eval $ac_try) 2>&5
 
8529
  ac_status=$?
 
8530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8531
  (exit $ac_status); }; }; then
 
8532
  gt_cv_c_intmax_t=yes
 
8533
else
 
8534
  echo "$as_me: failed program was:" >&5
 
8535
sed 's/^/| /' conftest.$ac_ext >&5
 
8536
 
 
8537
gt_cv_c_intmax_t=no
 
8538
fi
 
8539
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8540
fi
 
8541
echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
 
8542
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
 
8543
  if test $gt_cv_c_intmax_t = yes; then
 
8544
 
 
8545
cat >>confdefs.h <<\_ACEOF
 
8546
#define HAVE_INTMAX_T 1
 
8547
_ACEOF
 
8548
 
 
8549
  fi
 
8550
 
 
8551
 
 
8552
 
 
8553
  echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
 
8554
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
 
8555
if test "${gt_cv_func_printf_posix+set}" = set; then
 
8556
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8557
else
 
8558
 
 
8559
      if test "$cross_compiling" = yes; then
 
8560
 
 
8561
        cat >conftest.$ac_ext <<_ACEOF
 
8562
/* confdefs.h.  */
 
8563
_ACEOF
 
8564
cat confdefs.h >>conftest.$ac_ext
 
8565
cat >>conftest.$ac_ext <<_ACEOF
 
8566
/* end confdefs.h.  */
 
8567
 
 
8568
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
 
8569
  notposix
 
8570
#endif
 
8571
 
 
8572
_ACEOF
 
8573
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8574
  $EGREP "notposix" >/dev/null 2>&1; then
 
8575
  gt_cv_func_printf_posix="guessing no"
 
8576
else
 
8577
  gt_cv_func_printf_posix="guessing yes"
 
8578
fi
 
8579
rm -f conftest*
 
8580
 
 
8581
 
 
8582
else
 
8583
  cat >conftest.$ac_ext <<_ACEOF
 
8584
/* confdefs.h.  */
 
8585
_ACEOF
 
8586
cat confdefs.h >>conftest.$ac_ext
 
8587
cat >>conftest.$ac_ext <<_ACEOF
 
8588
/* end confdefs.h.  */
 
8589
 
 
8590
#include <stdio.h>
 
8591
#include <string.h>
 
8592
/* The string "%2$d %1$d", with dollar characters protected from the shell's
 
8593
   dollar expansion (possibly an autoconf bug).  */
 
8594
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
 
8595
static char buf[100];
 
8596
int main ()
 
8597
{
 
8598
  sprintf (buf, format, 33, 55);
 
8599
  return (strcmp (buf, "55 33") != 0);
 
8600
}
 
8601
_ACEOF
 
8602
rm -f conftest$ac_exeext
 
8603
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8604
  (eval $ac_link) 2>&5
 
8605
  ac_status=$?
 
8606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8607
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8609
  (eval $ac_try) 2>&5
 
8610
  ac_status=$?
 
8611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8612
  (exit $ac_status); }; }; then
 
8613
  gt_cv_func_printf_posix=yes
 
8614
else
 
8615
  echo "$as_me: program exited with status $ac_status" >&5
 
8616
echo "$as_me: failed program was:" >&5
 
8617
sed 's/^/| /' conftest.$ac_ext >&5
 
8618
 
 
8619
( exit $ac_status )
 
8620
gt_cv_func_printf_posix=no
 
8621
fi
 
8622
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8623
fi
 
8624
 
 
8625
fi
 
8626
echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
 
8627
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
 
8628
  case $gt_cv_func_printf_posix in
 
8629
    *yes)
 
8630
 
 
8631
cat >>confdefs.h <<\_ACEOF
 
8632
#define HAVE_POSIX_PRINTF 1
 
8633
_ACEOF
 
8634
 
 
8635
      ;;
 
8636
  esac
 
8637
 
 
8638
 
4959
8639
 
4960
8640
for ac_header in stdlib.h unistd.h
4961
8641
do
4962
8642
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963
 
echo "$as_me:4963: checking for $ac_header" >&5
 
8643
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8644
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4964
8645
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4965
8646
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4966
8647
  echo $ECHO_N "(cached) $ECHO_C" >&6
4967
 
else
4968
 
  cat >conftest.$ac_ext <<_ACEOF
4969
 
#line 4969 "configure"
4970
 
#include "confdefs.h"
4971
 
#include <$ac_header>
4972
 
_ACEOF
4973
 
if { (eval echo "$as_me:4973: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8648
fi
 
8649
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8650
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8651
else
 
8652
  # Is the header compilable?
 
8653
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8654
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8655
cat >conftest.$ac_ext <<_ACEOF
 
8656
/* confdefs.h.  */
 
8657
_ACEOF
 
8658
cat confdefs.h >>conftest.$ac_ext
 
8659
cat >>conftest.$ac_ext <<_ACEOF
 
8660
/* end confdefs.h.  */
 
8661
$ac_includes_default
 
8662
#include <$ac_header>
 
8663
_ACEOF
 
8664
rm -f conftest.$ac_objext
 
8665
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8666
  (eval $ac_compile) 2>conftest.er1
 
8667
  ac_status=$?
 
8668
  grep -v '^ *+' conftest.er1 >conftest.err
 
8669
  rm -f conftest.er1
 
8670
  cat conftest.err >&5
 
8671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8672
  (exit $ac_status); } &&
 
8673
         { ac_try='test -z "$ac_c_werror_flag"
 
8674
                         || test ! -s conftest.err'
 
8675
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8676
  (eval $ac_try) 2>&5
 
8677
  ac_status=$?
 
8678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8679
  (exit $ac_status); }; } &&
 
8680
         { ac_try='test -s conftest.$ac_objext'
 
8681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8682
  (eval $ac_try) 2>&5
 
8683
  ac_status=$?
 
8684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8685
  (exit $ac_status); }; }; then
 
8686
  ac_header_compiler=yes
 
8687
else
 
8688
  echo "$as_me: failed program was:" >&5
 
8689
sed 's/^/| /' conftest.$ac_ext >&5
 
8690
 
 
8691
ac_header_compiler=no
 
8692
fi
 
8693
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8694
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8695
echo "${ECHO_T}$ac_header_compiler" >&6
 
8696
 
 
8697
# Is the header present?
 
8698
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8699
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8700
cat >conftest.$ac_ext <<_ACEOF
 
8701
/* confdefs.h.  */
 
8702
_ACEOF
 
8703
cat confdefs.h >>conftest.$ac_ext
 
8704
cat >>conftest.$ac_ext <<_ACEOF
 
8705
/* end confdefs.h.  */
 
8706
#include <$ac_header>
 
8707
_ACEOF
 
8708
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4974
8709
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4975
8710
  ac_status=$?
4976
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
8711
  grep -v '^ *+' conftest.er1 >conftest.err
4977
8712
  rm -f conftest.er1
4978
8713
  cat conftest.err >&5
4979
 
  echo "$as_me:4979: \$? = $ac_status" >&5
 
8714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980
8715
  (exit $ac_status); } >/dev/null; then
4981
8716
  if test -s conftest.err; then
4982
8717
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8718
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4983
8719
  else
4984
8720
    ac_cpp_err=
4985
8721
  fi
4987
8723
  ac_cpp_err=yes
4988
8724
fi
4989
8725
if test -z "$ac_cpp_err"; then
4990
 
  eval "$as_ac_Header=yes"
 
8726
  ac_header_preproc=yes
4991
8727
else
4992
8728
  echo "$as_me: failed program was:" >&5
4993
 
  cat conftest.$ac_ext >&5
4994
 
  eval "$as_ac_Header=no"
 
8729
sed 's/^/| /' conftest.$ac_ext >&5
 
8730
 
 
8731
  ac_header_preproc=no
4995
8732
fi
4996
8733
rm -f conftest.err conftest.$ac_ext
 
8734
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8735
echo "${ECHO_T}$ac_header_preproc" >&6
 
8736
 
 
8737
# So?  What about this header?
 
8738
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8739
  yes:no: )
 
8740
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8741
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8742
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8743
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8744
    ac_header_preproc=yes
 
8745
    ;;
 
8746
  no:yes:* )
 
8747
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8748
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8749
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8750
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8751
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8752
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8753
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8754
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8755
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8756
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8757
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8758
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8759
    (
 
8760
      cat <<\_ASBOX
 
8761
## -------------------------------------- ##
 
8762
## Report this to the GNU Texinfo lists.  ##
 
8763
## -------------------------------------- ##
 
8764
_ASBOX
 
8765
    ) |
 
8766
      sed "s/^/$as_me: WARNING:     /" >&2
 
8767
    ;;
 
8768
esac
 
8769
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8770
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8771
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8773
else
 
8774
  eval "$as_ac_Header=\$ac_header_preproc"
4997
8775
fi
4998
 
echo "$as_me:4998: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8776
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4999
8777
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8778
 
 
8779
fi
5000
8780
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5001
 
  cat >>confdefs.h <<EOF
 
8781
  cat >>confdefs.h <<_ACEOF
5002
8782
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5003
 
EOF
 
8783
_ACEOF
5004
8784
 
5005
8785
fi
 
8786
 
5006
8787
done
5007
8788
 
 
8789
 
5008
8790
for ac_func in getpagesize
5009
8791
do
5010
8792
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5011
 
echo "$as_me:5011: checking for $ac_func" >&5
 
8793
echo "$as_me:$LINENO: checking for $ac_func" >&5
5012
8794
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5013
8795
if eval "test \"\${$as_ac_var+set}\" = set"; then
5014
8796
  echo $ECHO_N "(cached) $ECHO_C" >&6
5015
8797
else
5016
8798
  cat >conftest.$ac_ext <<_ACEOF
5017
 
#line 5017 "configure"
5018
 
#include "confdefs.h"
 
8799
/* confdefs.h.  */
 
8800
_ACEOF
 
8801
cat confdefs.h >>conftest.$ac_ext
 
8802
cat >>conftest.$ac_ext <<_ACEOF
 
8803
/* end confdefs.h.  */
 
8804
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
8805
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8806
#define $ac_func innocuous_$ac_func
 
8807
 
5019
8808
/* System header to define __stub macros and hopefully few prototypes,
5020
 
    which can conflict with char $ac_func (); below.  */
5021
 
#include <assert.h>
 
8809
    which can conflict with char $ac_func (); below.
 
8810
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8811
    <limits.h> exists even on freestanding compilers.  */
 
8812
 
 
8813
#ifdef __STDC__
 
8814
# include <limits.h>
 
8815
#else
 
8816
# include <assert.h>
 
8817
#endif
 
8818
 
 
8819
#undef $ac_func
 
8820
 
5022
8821
/* Override any gcc2 internal prototype to avoid an error.  */
5023
8822
#ifdef __cplusplus
5024
8823
extern "C"
 
8824
{
5025
8825
#endif
5026
8826
/* We use char because int might match the return type of a gcc2
5027
8827
   builtin and then its argument prototype would still apply.  */
5028
8828
char $ac_func ();
5029
 
char (*f) ();
5030
 
 
5031
 
int
5032
 
main ()
5033
 
{
5034
8829
/* The GNU C library defines this for functions which it implements
5035
8830
    to always fail with ENOSYS.  Some functions are actually named
5036
8831
    something starting with __ and the normal name is an alias.  */
5037
8832
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5038
8833
choke me
5039
8834
#else
5040
 
f = $ac_func;
 
8835
char (*f) () = $ac_func;
 
8836
#endif
 
8837
#ifdef __cplusplus
 
8838
}
5041
8839
#endif
5042
8840
 
 
8841
int
 
8842
main ()
 
8843
{
 
8844
return f != $ac_func;
5043
8845
  ;
5044
8846
  return 0;
5045
8847
}
5046
8848
_ACEOF
5047
8849
rm -f conftest.$ac_objext conftest$ac_exeext
5048
 
if { (eval echo "$as_me:5048: \"$ac_link\"") >&5
5049
 
  (eval $ac_link) 2>&5
 
8850
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8851
  (eval $ac_link) 2>conftest.er1
5050
8852
  ac_status=$?
5051
 
  echo "$as_me:5051: \$? = $ac_status" >&5
 
8853
  grep -v '^ *+' conftest.er1 >conftest.err
 
8854
  rm -f conftest.er1
 
8855
  cat conftest.err >&5
 
8856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052
8857
  (exit $ac_status); } &&
5053
 
         { ac_try='test -s conftest$ac_exeext'
5054
 
  { (eval echo "$as_me:5054: \"$ac_try\"") >&5
5055
 
  (eval $ac_try) 2>&5
5056
 
  ac_status=$?
5057
 
  echo "$as_me:5057: \$? = $ac_status" >&5
 
8858
         { ac_try='test -z "$ac_c_werror_flag"
 
8859
                         || test ! -s conftest.err'
 
8860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8861
  (eval $ac_try) 2>&5
 
8862
  ac_status=$?
 
8863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8864
  (exit $ac_status); }; } &&
 
8865
         { ac_try='test -s conftest$ac_exeext'
 
8866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8867
  (eval $ac_try) 2>&5
 
8868
  ac_status=$?
 
8869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058
8870
  (exit $ac_status); }; }; then
5059
8871
  eval "$as_ac_var=yes"
5060
8872
else
5061
8873
  echo "$as_me: failed program was:" >&5
5062
 
cat conftest.$ac_ext >&5
 
8874
sed 's/^/| /' conftest.$ac_ext >&5
 
8875
 
5063
8876
eval "$as_ac_var=no"
5064
8877
fi
5065
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8878
rm -f conftest.err conftest.$ac_objext \
 
8879
      conftest$ac_exeext conftest.$ac_ext
5066
8880
fi
5067
 
echo "$as_me:5067: result: `eval echo '${'$as_ac_var'}'`" >&5
 
8881
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5068
8882
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5069
8883
if test `eval echo '${'$as_ac_var'}'` = yes; then
5070
 
  cat >>confdefs.h <<EOF
 
8884
  cat >>confdefs.h <<_ACEOF
5071
8885
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5072
 
EOF
 
8886
_ACEOF
5073
8887
 
5074
8888
fi
5075
8889
done
5076
8890
 
5077
 
echo "$as_me:5077: checking for working mmap" >&5
 
8891
echo "$as_me:$LINENO: checking for working mmap" >&5
5078
8892
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5079
8893
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5080
8894
  echo $ECHO_N "(cached) $ECHO_C" >&6
5083
8897
  ac_cv_func_mmap_fixed_mapped=no
5084
8898
else
5085
8899
  cat >conftest.$ac_ext <<_ACEOF
5086
 
#line 5086 "configure"
5087
 
#include "confdefs.h"
 
8900
/* confdefs.h.  */
 
8901
_ACEOF
 
8902
cat confdefs.h >>conftest.$ac_ext
 
8903
cat >>conftest.$ac_ext <<_ACEOF
 
8904
/* end confdefs.h.  */
5088
8905
$ac_includes_default
 
8906
/* malloc might have been renamed as rpl_malloc. */
 
8907
#undef malloc
 
8908
 
5089
8909
/* Thanks to Mike Haertel and Jim Avera for this test.
5090
8910
   Here is a matrix of mmap possibilities:
5091
8911
        mmap private not fixed
5101
8921
   VM page cache was not coherent with the file system buffer cache
5102
8922
   like early versions of FreeBSD and possibly contemporary NetBSD.)
5103
8923
   For shared mappings, we should conversely verify that changes get
5104
 
   propogated back to all the places they're supposed to be.
 
8924
   propagated back to all the places they're supposed to be.
5105
8925
 
5106
8926
   Grep wants private fixed already mapped.
5107
8927
   The main things grep needs to know about mmap are:
5184
9004
  data2 = (char *) malloc (2 * pagesize);
5185
9005
  if (!data2)
5186
9006
    exit (1);
5187
 
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
 
9007
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5188
9008
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5189
 
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
9009
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
5190
9010
    exit (1);
5191
9011
  for (i = 0; i < pagesize; ++i)
5192
9012
    if (*(data + i) != *(data2 + i))
5210
9030
}
5211
9031
_ACEOF
5212
9032
rm -f conftest$ac_exeext
5213
 
if { (eval echo "$as_me:5213: \"$ac_link\"") >&5
 
9033
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5214
9034
  (eval $ac_link) 2>&5
5215
9035
  ac_status=$?
5216
 
  echo "$as_me:5216: \$? = $ac_status" >&5
 
9036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217
9037
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5218
 
  { (eval echo "$as_me:5218: \"$ac_try\"") >&5
 
9038
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219
9039
  (eval $ac_try) 2>&5
5220
9040
  ac_status=$?
5221
 
  echo "$as_me:5221: \$? = $ac_status" >&5
 
9041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222
9042
  (exit $ac_status); }; }; then
5223
9043
  ac_cv_func_mmap_fixed_mapped=yes
5224
9044
else
5225
9045
  echo "$as_me: program exited with status $ac_status" >&5
5226
9046
echo "$as_me: failed program was:" >&5
5227
 
cat conftest.$ac_ext >&5
 
9047
sed 's/^/| /' conftest.$ac_ext >&5
 
9048
 
 
9049
( exit $ac_status )
5228
9050
ac_cv_func_mmap_fixed_mapped=no
5229
9051
fi
5230
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5231
 
fi
5232
 
fi
5233
 
echo "$as_me:5233: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
9052
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9053
fi
 
9054
fi
 
9055
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5234
9056
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5235
9057
if test $ac_cv_func_mmap_fixed_mapped = yes; then
5236
9058
 
5237
 
cat >>confdefs.h <<\EOF
 
9059
cat >>confdefs.h <<\_ACEOF
5238
9060
#define HAVE_MMAP 1
5239
 
EOF
 
9061
_ACEOF
5240
9062
 
5241
9063
fi
5242
9064
rm -f conftest.mmap
5243
9065
 
5244
 
    echo "$as_me:5244: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
9066
 
 
9067
    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5245
9068
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5246
9069
if test "${ac_cv_gnu_library_2_1+set}" = set; then
5247
9070
  echo $ECHO_N "(cached) $ECHO_C" >&6
5248
9071
else
5249
9072
  cat >conftest.$ac_ext <<_ACEOF
5250
 
#line 5250 "configure"
5251
 
#include "confdefs.h"
 
9073
/* confdefs.h.  */
 
9074
_ACEOF
 
9075
cat confdefs.h >>conftest.$ac_ext
 
9076
cat >>conftest.$ac_ext <<_ACEOF
 
9077
/* end confdefs.h.  */
5252
9078
 
5253
9079
#include <features.h>
5254
9080
#ifdef __GNU_LIBRARY__
5259
9085
 
5260
9086
_ACEOF
5261
9087
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5262
 
  egrep "Lucky GNU user" >/dev/null 2>&1; then
 
9088
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5263
9089
  ac_cv_gnu_library_2_1=yes
5264
9090
else
5265
9091
  ac_cv_gnu_library_2_1=no
5266
9092
fi
5267
9093
rm -f conftest*
5268
9094
 
 
9095
 
 
9096
 
5269
9097
fi
5270
 
echo "$as_me:5270: result: $ac_cv_gnu_library_2_1" >&5
 
9098
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5271
9099
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5272
9100
 
5273
9101
    GLIBC21="$ac_cv_gnu_library_2_1"
5274
9102
 
 
9103
 
 
9104
 
 
9105
 
 
9106
  echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
 
9107
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
 
9108
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
 
9109
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9110
else
 
9111
 
 
9112
      if test "$cross_compiling" = yes; then
 
9113
 
 
9114
          # Guess based on the CPU.
 
9115
          case "$host_cpu" in
 
9116
            alpha* | i3456786 | m68k | s390*)
 
9117
              gt_cv_int_divbyzero_sigfpe="guessing yes";;
 
9118
            *)
 
9119
              gt_cv_int_divbyzero_sigfpe="guessing no";;
 
9120
          esac
 
9121
 
 
9122
else
 
9123
  cat >conftest.$ac_ext <<_ACEOF
 
9124
/* confdefs.h.  */
 
9125
_ACEOF
 
9126
cat confdefs.h >>conftest.$ac_ext
 
9127
cat >>conftest.$ac_ext <<_ACEOF
 
9128
/* end confdefs.h.  */
 
9129
 
 
9130
#include <stdlib.h>
 
9131
#include <signal.h>
 
9132
 
 
9133
static void
 
9134
#ifdef __cplusplus
 
9135
sigfpe_handler (int sig)
 
9136
#else
 
9137
sigfpe_handler (sig) int sig;
 
9138
#endif
 
9139
{
 
9140
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
 
9141
  exit (sig != SIGFPE);
 
9142
}
 
9143
 
 
9144
int x = 1;
 
9145
int y = 0;
 
9146
int z;
 
9147
int nan;
 
9148
 
 
9149
int main ()
 
9150
{
 
9151
  signal (SIGFPE, sigfpe_handler);
 
9152
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
 
9153
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
 
9154
  signal (SIGTRAP, sigfpe_handler);
 
9155
#endif
 
9156
/* Linux/SPARC yields signal SIGILL.  */
 
9157
#if defined (__sparc__) && defined (__linux__)
 
9158
  signal (SIGILL, sigfpe_handler);
 
9159
#endif
 
9160
 
 
9161
  z = x / y;
 
9162
  nan = y / y;
 
9163
  exit (1);
 
9164
}
 
9165
 
 
9166
_ACEOF
 
9167
rm -f conftest$ac_exeext
 
9168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9169
  (eval $ac_link) 2>&5
 
9170
  ac_status=$?
 
9171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9172
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9173
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9174
  (eval $ac_try) 2>&5
 
9175
  ac_status=$?
 
9176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9177
  (exit $ac_status); }; }; then
 
9178
  gt_cv_int_divbyzero_sigfpe=yes
 
9179
else
 
9180
  echo "$as_me: program exited with status $ac_status" >&5
 
9181
echo "$as_me: failed program was:" >&5
 
9182
sed 's/^/| /' conftest.$ac_ext >&5
 
9183
 
 
9184
( exit $ac_status )
 
9185
gt_cv_int_divbyzero_sigfpe=no
 
9186
fi
 
9187
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9188
fi
 
9189
 
 
9190
fi
 
9191
echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
 
9192
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
 
9193
  case "$gt_cv_int_divbyzero_sigfpe" in
 
9194
    *yes) value=1;;
 
9195
    *) value=0;;
 
9196
  esac
 
9197
 
 
9198
cat >>confdefs.h <<_ACEOF
 
9199
#define INTDIV0_RAISES_SIGFPE $value
 
9200
_ACEOF
 
9201
 
 
9202
 
 
9203
 
 
9204
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
9205
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
 
9206
if test "${gt_cv_header_inttypes_h+set}" = set; then
 
9207
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9208
else
 
9209
 
 
9210
    cat >conftest.$ac_ext <<_ACEOF
 
9211
/* confdefs.h.  */
 
9212
_ACEOF
 
9213
cat confdefs.h >>conftest.$ac_ext
 
9214
cat >>conftest.$ac_ext <<_ACEOF
 
9215
/* end confdefs.h.  */
 
9216
#include <sys/types.h>
 
9217
#include <inttypes.h>
 
9218
int
 
9219
main ()
 
9220
{
 
9221
 
 
9222
  ;
 
9223
  return 0;
 
9224
}
 
9225
_ACEOF
 
9226
rm -f conftest.$ac_objext
 
9227
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9228
  (eval $ac_compile) 2>conftest.er1
 
9229
  ac_status=$?
 
9230
  grep -v '^ *+' conftest.er1 >conftest.err
 
9231
  rm -f conftest.er1
 
9232
  cat conftest.err >&5
 
9233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9234
  (exit $ac_status); } &&
 
9235
         { ac_try='test -z "$ac_c_werror_flag"
 
9236
                         || test ! -s conftest.err'
 
9237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9238
  (eval $ac_try) 2>&5
 
9239
  ac_status=$?
 
9240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9241
  (exit $ac_status); }; } &&
 
9242
         { ac_try='test -s conftest.$ac_objext'
 
9243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9244
  (eval $ac_try) 2>&5
 
9245
  ac_status=$?
 
9246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9247
  (exit $ac_status); }; }; then
 
9248
  gt_cv_header_inttypes_h=yes
 
9249
else
 
9250
  echo "$as_me: failed program was:" >&5
 
9251
sed 's/^/| /' conftest.$ac_ext >&5
 
9252
 
 
9253
gt_cv_header_inttypes_h=no
 
9254
fi
 
9255
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9256
 
 
9257
fi
 
9258
echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
 
9259
echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
 
9260
  if test $gt_cv_header_inttypes_h = yes; then
 
9261
 
 
9262
cat >>confdefs.h <<_ACEOF
 
9263
#define HAVE_INTTYPES_H 1
 
9264
_ACEOF
 
9265
 
 
9266
  fi
 
9267
 
 
9268
 
 
9269
 
 
9270
  if test $gt_cv_header_inttypes_h = yes; then
 
9271
    echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
 
9272
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
 
9273
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
 
9274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9275
else
 
9276
 
 
9277
        cat >conftest.$ac_ext <<_ACEOF
 
9278
/* confdefs.h.  */
 
9279
_ACEOF
 
9280
cat confdefs.h >>conftest.$ac_ext
 
9281
cat >>conftest.$ac_ext <<_ACEOF
 
9282
/* end confdefs.h.  */
 
9283
#include <inttypes.h>
 
9284
#ifdef PRId32
 
9285
char *p = PRId32;
 
9286
#endif
 
9287
 
 
9288
int
 
9289
main ()
 
9290
{
 
9291
 
 
9292
  ;
 
9293
  return 0;
 
9294
}
 
9295
_ACEOF
 
9296
rm -f conftest.$ac_objext
 
9297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9298
  (eval $ac_compile) 2>conftest.er1
 
9299
  ac_status=$?
 
9300
  grep -v '^ *+' conftest.er1 >conftest.err
 
9301
  rm -f conftest.er1
 
9302
  cat conftest.err >&5
 
9303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9304
  (exit $ac_status); } &&
 
9305
         { ac_try='test -z "$ac_c_werror_flag"
 
9306
                         || test ! -s conftest.err'
 
9307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9308
  (eval $ac_try) 2>&5
 
9309
  ac_status=$?
 
9310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9311
  (exit $ac_status); }; } &&
 
9312
         { ac_try='test -s conftest.$ac_objext'
 
9313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9314
  (eval $ac_try) 2>&5
 
9315
  ac_status=$?
 
9316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9317
  (exit $ac_status); }; }; then
 
9318
  gt_cv_inttypes_pri_broken=no
 
9319
else
 
9320
  echo "$as_me: failed program was:" >&5
 
9321
sed 's/^/| /' conftest.$ac_ext >&5
 
9322
 
 
9323
gt_cv_inttypes_pri_broken=yes
 
9324
fi
 
9325
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9326
 
 
9327
fi
 
9328
echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
 
9329
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
 
9330
  fi
 
9331
  if test "$gt_cv_inttypes_pri_broken" = yes; then
 
9332
 
 
9333
cat >>confdefs.h <<_ACEOF
 
9334
#define PRI_MACROS_BROKEN 1
 
9335
_ACEOF
 
9336
 
 
9337
  fi
 
9338
 
 
9339
 
 
9340
 
 
9341
for ac_header in stdint.h
 
9342
do
 
9343
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9344
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9345
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9346
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9347
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9348
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9349
fi
 
9350
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9351
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9352
else
 
9353
  # Is the header compilable?
 
9354
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9355
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9356
cat >conftest.$ac_ext <<_ACEOF
 
9357
/* confdefs.h.  */
 
9358
_ACEOF
 
9359
cat confdefs.h >>conftest.$ac_ext
 
9360
cat >>conftest.$ac_ext <<_ACEOF
 
9361
/* end confdefs.h.  */
 
9362
$ac_includes_default
 
9363
#include <$ac_header>
 
9364
_ACEOF
 
9365
rm -f conftest.$ac_objext
 
9366
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9367
  (eval $ac_compile) 2>conftest.er1
 
9368
  ac_status=$?
 
9369
  grep -v '^ *+' conftest.er1 >conftest.err
 
9370
  rm -f conftest.er1
 
9371
  cat conftest.err >&5
 
9372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9373
  (exit $ac_status); } &&
 
9374
         { ac_try='test -z "$ac_c_werror_flag"
 
9375
                         || test ! -s conftest.err'
 
9376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9377
  (eval $ac_try) 2>&5
 
9378
  ac_status=$?
 
9379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9380
  (exit $ac_status); }; } &&
 
9381
         { ac_try='test -s conftest.$ac_objext'
 
9382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9383
  (eval $ac_try) 2>&5
 
9384
  ac_status=$?
 
9385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9386
  (exit $ac_status); }; }; then
 
9387
  ac_header_compiler=yes
 
9388
else
 
9389
  echo "$as_me: failed program was:" >&5
 
9390
sed 's/^/| /' conftest.$ac_ext >&5
 
9391
 
 
9392
ac_header_compiler=no
 
9393
fi
 
9394
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9395
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9396
echo "${ECHO_T}$ac_header_compiler" >&6
 
9397
 
 
9398
# Is the header present?
 
9399
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9400
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9401
cat >conftest.$ac_ext <<_ACEOF
 
9402
/* confdefs.h.  */
 
9403
_ACEOF
 
9404
cat confdefs.h >>conftest.$ac_ext
 
9405
cat >>conftest.$ac_ext <<_ACEOF
 
9406
/* end confdefs.h.  */
 
9407
#include <$ac_header>
 
9408
_ACEOF
 
9409
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9410
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9411
  ac_status=$?
 
9412
  grep -v '^ *+' conftest.er1 >conftest.err
 
9413
  rm -f conftest.er1
 
9414
  cat conftest.err >&5
 
9415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9416
  (exit $ac_status); } >/dev/null; then
 
9417
  if test -s conftest.err; then
 
9418
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9419
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9420
  else
 
9421
    ac_cpp_err=
 
9422
  fi
 
9423
else
 
9424
  ac_cpp_err=yes
 
9425
fi
 
9426
if test -z "$ac_cpp_err"; then
 
9427
  ac_header_preproc=yes
 
9428
else
 
9429
  echo "$as_me: failed program was:" >&5
 
9430
sed 's/^/| /' conftest.$ac_ext >&5
 
9431
 
 
9432
  ac_header_preproc=no
 
9433
fi
 
9434
rm -f conftest.err conftest.$ac_ext
 
9435
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9436
echo "${ECHO_T}$ac_header_preproc" >&6
 
9437
 
 
9438
# So?  What about this header?
 
9439
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9440
  yes:no: )
 
9441
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9442
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9443
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9444
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9445
    ac_header_preproc=yes
 
9446
    ;;
 
9447
  no:yes:* )
 
9448
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9449
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9450
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9451
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9452
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9453
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9454
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9455
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9456
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9457
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9458
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9459
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9460
    (
 
9461
      cat <<\_ASBOX
 
9462
## -------------------------------------- ##
 
9463
## Report this to the GNU Texinfo lists.  ##
 
9464
## -------------------------------------- ##
 
9465
_ASBOX
 
9466
    ) |
 
9467
      sed "s/^/$as_me: WARNING:     /" >&2
 
9468
    ;;
 
9469
esac
 
9470
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9471
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9472
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9474
else
 
9475
  eval "$as_ac_Header=\$ac_header_preproc"
 
9476
fi
 
9477
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9478
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9479
 
 
9480
fi
 
9481
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9482
  cat >>confdefs.h <<_ACEOF
 
9483
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9484
_ACEOF
 
9485
 
 
9486
fi
 
9487
 
 
9488
done
 
9489
 
 
9490
    echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
 
9491
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
 
9492
  result=
 
9493
  cat >conftest.$ac_ext <<_ACEOF
 
9494
/* confdefs.h.  */
 
9495
_ACEOF
 
9496
cat confdefs.h >>conftest.$ac_ext
 
9497
cat >>conftest.$ac_ext <<_ACEOF
 
9498
/* end confdefs.h.  */
 
9499
 
 
9500
#include <limits.h>
 
9501
#if HAVE_STDINT_H
 
9502
#include <stdint.h>
 
9503
#endif
 
9504
#ifdef SIZE_MAX
 
9505
Found it
 
9506
#endif
 
9507
 
 
9508
_ACEOF
 
9509
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9510
  $EGREP "Found it" >/dev/null 2>&1; then
 
9511
  result=yes
 
9512
fi
 
9513
rm -f conftest*
 
9514
 
 
9515
  if test -z "$result"; then
 
9516
                    if test "$cross_compiling" = yes; then
 
9517
  # Depending upon the size, compute the lo and hi bounds.
 
9518
cat >conftest.$ac_ext <<_ACEOF
 
9519
/* confdefs.h.  */
 
9520
_ACEOF
 
9521
cat confdefs.h >>conftest.$ac_ext
 
9522
cat >>conftest.$ac_ext <<_ACEOF
 
9523
/* end confdefs.h.  */
 
9524
#include <stddef.h>
 
9525
int
 
9526
main ()
 
9527
{
 
9528
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
 
9529
test_array [0] = 0
 
9530
 
 
9531
  ;
 
9532
  return 0;
 
9533
}
 
9534
_ACEOF
 
9535
rm -f conftest.$ac_objext
 
9536
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9537
  (eval $ac_compile) 2>conftest.er1
 
9538
  ac_status=$?
 
9539
  grep -v '^ *+' conftest.er1 >conftest.err
 
9540
  rm -f conftest.er1
 
9541
  cat conftest.err >&5
 
9542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9543
  (exit $ac_status); } &&
 
9544
         { ac_try='test -z "$ac_c_werror_flag"
 
9545
                         || test ! -s conftest.err'
 
9546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9547
  (eval $ac_try) 2>&5
 
9548
  ac_status=$?
 
9549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9550
  (exit $ac_status); }; } &&
 
9551
         { ac_try='test -s conftest.$ac_objext'
 
9552
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9553
  (eval $ac_try) 2>&5
 
9554
  ac_status=$?
 
9555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9556
  (exit $ac_status); }; }; then
 
9557
  ac_lo=0 ac_mid=0
 
9558
  while :; do
 
9559
    cat >conftest.$ac_ext <<_ACEOF
 
9560
/* confdefs.h.  */
 
9561
_ACEOF
 
9562
cat confdefs.h >>conftest.$ac_ext
 
9563
cat >>conftest.$ac_ext <<_ACEOF
 
9564
/* end confdefs.h.  */
 
9565
#include <stddef.h>
 
9566
int
 
9567
main ()
 
9568
{
 
9569
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
 
9570
test_array [0] = 0
 
9571
 
 
9572
  ;
 
9573
  return 0;
 
9574
}
 
9575
_ACEOF
 
9576
rm -f conftest.$ac_objext
 
9577
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9578
  (eval $ac_compile) 2>conftest.er1
 
9579
  ac_status=$?
 
9580
  grep -v '^ *+' conftest.er1 >conftest.err
 
9581
  rm -f conftest.er1
 
9582
  cat conftest.err >&5
 
9583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9584
  (exit $ac_status); } &&
 
9585
         { ac_try='test -z "$ac_c_werror_flag"
 
9586
                         || test ! -s conftest.err'
 
9587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9588
  (eval $ac_try) 2>&5
 
9589
  ac_status=$?
 
9590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9591
  (exit $ac_status); }; } &&
 
9592
         { ac_try='test -s conftest.$ac_objext'
 
9593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9594
  (eval $ac_try) 2>&5
 
9595
  ac_status=$?
 
9596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9597
  (exit $ac_status); }; }; then
 
9598
  ac_hi=$ac_mid; break
 
9599
else
 
9600
  echo "$as_me: failed program was:" >&5
 
9601
sed 's/^/| /' conftest.$ac_ext >&5
 
9602
 
 
9603
ac_lo=`expr $ac_mid + 1`
 
9604
                    if test $ac_lo -le $ac_mid; then
 
9605
                      ac_lo= ac_hi=
 
9606
                      break
 
9607
                    fi
 
9608
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
9609
fi
 
9610
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9611
  done
 
9612
else
 
9613
  echo "$as_me: failed program was:" >&5
 
9614
sed 's/^/| /' conftest.$ac_ext >&5
 
9615
 
 
9616
cat >conftest.$ac_ext <<_ACEOF
 
9617
/* confdefs.h.  */
 
9618
_ACEOF
 
9619
cat confdefs.h >>conftest.$ac_ext
 
9620
cat >>conftest.$ac_ext <<_ACEOF
 
9621
/* end confdefs.h.  */
 
9622
#include <stddef.h>
 
9623
int
 
9624
main ()
 
9625
{
 
9626
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
 
9627
test_array [0] = 0
 
9628
 
 
9629
  ;
 
9630
  return 0;
 
9631
}
 
9632
_ACEOF
 
9633
rm -f conftest.$ac_objext
 
9634
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9635
  (eval $ac_compile) 2>conftest.er1
 
9636
  ac_status=$?
 
9637
  grep -v '^ *+' conftest.er1 >conftest.err
 
9638
  rm -f conftest.er1
 
9639
  cat conftest.err >&5
 
9640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9641
  (exit $ac_status); } &&
 
9642
         { ac_try='test -z "$ac_c_werror_flag"
 
9643
                         || test ! -s conftest.err'
 
9644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9645
  (eval $ac_try) 2>&5
 
9646
  ac_status=$?
 
9647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9648
  (exit $ac_status); }; } &&
 
9649
         { ac_try='test -s conftest.$ac_objext'
 
9650
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9651
  (eval $ac_try) 2>&5
 
9652
  ac_status=$?
 
9653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9654
  (exit $ac_status); }; }; then
 
9655
  ac_hi=-1 ac_mid=-1
 
9656
  while :; do
 
9657
    cat >conftest.$ac_ext <<_ACEOF
 
9658
/* confdefs.h.  */
 
9659
_ACEOF
 
9660
cat confdefs.h >>conftest.$ac_ext
 
9661
cat >>conftest.$ac_ext <<_ACEOF
 
9662
/* end confdefs.h.  */
 
9663
#include <stddef.h>
 
9664
int
 
9665
main ()
 
9666
{
 
9667
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
 
9668
test_array [0] = 0
 
9669
 
 
9670
  ;
 
9671
  return 0;
 
9672
}
 
9673
_ACEOF
 
9674
rm -f conftest.$ac_objext
 
9675
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9676
  (eval $ac_compile) 2>conftest.er1
 
9677
  ac_status=$?
 
9678
  grep -v '^ *+' conftest.er1 >conftest.err
 
9679
  rm -f conftest.er1
 
9680
  cat conftest.err >&5
 
9681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9682
  (exit $ac_status); } &&
 
9683
         { ac_try='test -z "$ac_c_werror_flag"
 
9684
                         || test ! -s conftest.err'
 
9685
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9686
  (eval $ac_try) 2>&5
 
9687
  ac_status=$?
 
9688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9689
  (exit $ac_status); }; } &&
 
9690
         { ac_try='test -s conftest.$ac_objext'
 
9691
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9692
  (eval $ac_try) 2>&5
 
9693
  ac_status=$?
 
9694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9695
  (exit $ac_status); }; }; then
 
9696
  ac_lo=$ac_mid; break
 
9697
else
 
9698
  echo "$as_me: failed program was:" >&5
 
9699
sed 's/^/| /' conftest.$ac_ext >&5
 
9700
 
 
9701
ac_hi=`expr '(' $ac_mid ')' - 1`
 
9702
                       if test $ac_mid -le $ac_hi; then
 
9703
                         ac_lo= ac_hi=
 
9704
                         break
 
9705
                       fi
 
9706
                       ac_mid=`expr 2 '*' $ac_mid`
 
9707
fi
 
9708
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9709
  done
 
9710
else
 
9711
  echo "$as_me: failed program was:" >&5
 
9712
sed 's/^/| /' conftest.$ac_ext >&5
 
9713
 
 
9714
ac_lo= ac_hi=
 
9715
fi
 
9716
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9717
fi
 
9718
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9719
# Binary search between lo and hi bounds.
 
9720
while test "x$ac_lo" != "x$ac_hi"; do
 
9721
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
9722
  cat >conftest.$ac_ext <<_ACEOF
 
9723
/* confdefs.h.  */
 
9724
_ACEOF
 
9725
cat confdefs.h >>conftest.$ac_ext
 
9726
cat >>conftest.$ac_ext <<_ACEOF
 
9727
/* end confdefs.h.  */
 
9728
#include <stddef.h>
 
9729
int
 
9730
main ()
 
9731
{
 
9732
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
 
9733
test_array [0] = 0
 
9734
 
 
9735
  ;
 
9736
  return 0;
 
9737
}
 
9738
_ACEOF
 
9739
rm -f conftest.$ac_objext
 
9740
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9741
  (eval $ac_compile) 2>conftest.er1
 
9742
  ac_status=$?
 
9743
  grep -v '^ *+' conftest.er1 >conftest.err
 
9744
  rm -f conftest.er1
 
9745
  cat conftest.err >&5
 
9746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9747
  (exit $ac_status); } &&
 
9748
         { ac_try='test -z "$ac_c_werror_flag"
 
9749
                         || test ! -s conftest.err'
 
9750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9751
  (eval $ac_try) 2>&5
 
9752
  ac_status=$?
 
9753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9754
  (exit $ac_status); }; } &&
 
9755
         { ac_try='test -s conftest.$ac_objext'
 
9756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9757
  (eval $ac_try) 2>&5
 
9758
  ac_status=$?
 
9759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9760
  (exit $ac_status); }; }; then
 
9761
  ac_hi=$ac_mid
 
9762
else
 
9763
  echo "$as_me: failed program was:" >&5
 
9764
sed 's/^/| /' conftest.$ac_ext >&5
 
9765
 
 
9766
ac_lo=`expr '(' $ac_mid ')' + 1`
 
9767
fi
 
9768
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9769
done
 
9770
case $ac_lo in
 
9771
?*) res_hi=$ac_lo;;
 
9772
'') result=? ;;
 
9773
esac
 
9774
else
 
9775
  if test "$cross_compiling" = yes; then
 
9776
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
9777
See \`config.log' for more details." >&5
 
9778
echo "$as_me: error: cannot run test program while cross compiling
 
9779
See \`config.log' for more details." >&2;}
 
9780
   { (exit 1); exit 1; }; }
 
9781
else
 
9782
  cat >conftest.$ac_ext <<_ACEOF
 
9783
/* confdefs.h.  */
 
9784
_ACEOF
 
9785
cat confdefs.h >>conftest.$ac_ext
 
9786
cat >>conftest.$ac_ext <<_ACEOF
 
9787
/* end confdefs.h.  */
 
9788
#include <stddef.h>
 
9789
long longval () { return ~(size_t)0 / 10; }
 
9790
unsigned long ulongval () { return ~(size_t)0 / 10; }
 
9791
#include <stdio.h>
 
9792
#include <stdlib.h>
 
9793
int
 
9794
main ()
 
9795
{
 
9796
 
 
9797
  FILE *f = fopen ("conftest.val", "w");
 
9798
  if (! f)
 
9799
    exit (1);
 
9800
  if ((~(size_t)0 / 10) < 0)
 
9801
    {
 
9802
      long i = longval ();
 
9803
      if (i != (~(size_t)0 / 10))
 
9804
        exit (1);
 
9805
      fprintf (f, "%ld\n", i);
 
9806
    }
 
9807
  else
 
9808
    {
 
9809
      unsigned long i = ulongval ();
 
9810
      if (i != (~(size_t)0 / 10))
 
9811
        exit (1);
 
9812
      fprintf (f, "%lu\n", i);
 
9813
    }
 
9814
  exit (ferror (f) || fclose (f) != 0);
 
9815
 
 
9816
  ;
 
9817
  return 0;
 
9818
}
 
9819
_ACEOF
 
9820
rm -f conftest$ac_exeext
 
9821
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9822
  (eval $ac_link) 2>&5
 
9823
  ac_status=$?
 
9824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9825
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9827
  (eval $ac_try) 2>&5
 
9828
  ac_status=$?
 
9829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9830
  (exit $ac_status); }; }; then
 
9831
  res_hi=`cat conftest.val`
 
9832
else
 
9833
  echo "$as_me: program exited with status $ac_status" >&5
 
9834
echo "$as_me: failed program was:" >&5
 
9835
sed 's/^/| /' conftest.$ac_ext >&5
 
9836
 
 
9837
( exit $ac_status )
 
9838
result=?
 
9839
fi
 
9840
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9841
fi
 
9842
fi
 
9843
rm -f conftest.val
 
9844
    if test "$cross_compiling" = yes; then
 
9845
  # Depending upon the size, compute the lo and hi bounds.
 
9846
cat >conftest.$ac_ext <<_ACEOF
 
9847
/* confdefs.h.  */
 
9848
_ACEOF
 
9849
cat confdefs.h >>conftest.$ac_ext
 
9850
cat >>conftest.$ac_ext <<_ACEOF
 
9851
/* end confdefs.h.  */
 
9852
#include <stddef.h>
 
9853
int
 
9854
main ()
 
9855
{
 
9856
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
 
9857
test_array [0] = 0
 
9858
 
 
9859
  ;
 
9860
  return 0;
 
9861
}
 
9862
_ACEOF
 
9863
rm -f conftest.$ac_objext
 
9864
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9865
  (eval $ac_compile) 2>conftest.er1
 
9866
  ac_status=$?
 
9867
  grep -v '^ *+' conftest.er1 >conftest.err
 
9868
  rm -f conftest.er1
 
9869
  cat conftest.err >&5
 
9870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9871
  (exit $ac_status); } &&
 
9872
         { ac_try='test -z "$ac_c_werror_flag"
 
9873
                         || test ! -s conftest.err'
 
9874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9875
  (eval $ac_try) 2>&5
 
9876
  ac_status=$?
 
9877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9878
  (exit $ac_status); }; } &&
 
9879
         { ac_try='test -s conftest.$ac_objext'
 
9880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9881
  (eval $ac_try) 2>&5
 
9882
  ac_status=$?
 
9883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9884
  (exit $ac_status); }; }; then
 
9885
  ac_lo=0 ac_mid=0
 
9886
  while :; do
 
9887
    cat >conftest.$ac_ext <<_ACEOF
 
9888
/* confdefs.h.  */
 
9889
_ACEOF
 
9890
cat confdefs.h >>conftest.$ac_ext
 
9891
cat >>conftest.$ac_ext <<_ACEOF
 
9892
/* end confdefs.h.  */
 
9893
#include <stddef.h>
 
9894
int
 
9895
main ()
 
9896
{
 
9897
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
 
9898
test_array [0] = 0
 
9899
 
 
9900
  ;
 
9901
  return 0;
 
9902
}
 
9903
_ACEOF
 
9904
rm -f conftest.$ac_objext
 
9905
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9906
  (eval $ac_compile) 2>conftest.er1
 
9907
  ac_status=$?
 
9908
  grep -v '^ *+' conftest.er1 >conftest.err
 
9909
  rm -f conftest.er1
 
9910
  cat conftest.err >&5
 
9911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9912
  (exit $ac_status); } &&
 
9913
         { ac_try='test -z "$ac_c_werror_flag"
 
9914
                         || test ! -s conftest.err'
 
9915
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9916
  (eval $ac_try) 2>&5
 
9917
  ac_status=$?
 
9918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9919
  (exit $ac_status); }; } &&
 
9920
         { ac_try='test -s conftest.$ac_objext'
 
9921
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9922
  (eval $ac_try) 2>&5
 
9923
  ac_status=$?
 
9924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9925
  (exit $ac_status); }; }; then
 
9926
  ac_hi=$ac_mid; break
 
9927
else
 
9928
  echo "$as_me: failed program was:" >&5
 
9929
sed 's/^/| /' conftest.$ac_ext >&5
 
9930
 
 
9931
ac_lo=`expr $ac_mid + 1`
 
9932
                    if test $ac_lo -le $ac_mid; then
 
9933
                      ac_lo= ac_hi=
 
9934
                      break
 
9935
                    fi
 
9936
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
9937
fi
 
9938
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9939
  done
 
9940
else
 
9941
  echo "$as_me: failed program was:" >&5
 
9942
sed 's/^/| /' conftest.$ac_ext >&5
 
9943
 
 
9944
cat >conftest.$ac_ext <<_ACEOF
 
9945
/* confdefs.h.  */
 
9946
_ACEOF
 
9947
cat confdefs.h >>conftest.$ac_ext
 
9948
cat >>conftest.$ac_ext <<_ACEOF
 
9949
/* end confdefs.h.  */
 
9950
#include <stddef.h>
 
9951
int
 
9952
main ()
 
9953
{
 
9954
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
 
9955
test_array [0] = 0
 
9956
 
 
9957
  ;
 
9958
  return 0;
 
9959
}
 
9960
_ACEOF
 
9961
rm -f conftest.$ac_objext
 
9962
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9963
  (eval $ac_compile) 2>conftest.er1
 
9964
  ac_status=$?
 
9965
  grep -v '^ *+' conftest.er1 >conftest.err
 
9966
  rm -f conftest.er1
 
9967
  cat conftest.err >&5
 
9968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9969
  (exit $ac_status); } &&
 
9970
         { ac_try='test -z "$ac_c_werror_flag"
 
9971
                         || test ! -s conftest.err'
 
9972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9973
  (eval $ac_try) 2>&5
 
9974
  ac_status=$?
 
9975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9976
  (exit $ac_status); }; } &&
 
9977
         { ac_try='test -s conftest.$ac_objext'
 
9978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9979
  (eval $ac_try) 2>&5
 
9980
  ac_status=$?
 
9981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9982
  (exit $ac_status); }; }; then
 
9983
  ac_hi=-1 ac_mid=-1
 
9984
  while :; do
 
9985
    cat >conftest.$ac_ext <<_ACEOF
 
9986
/* confdefs.h.  */
 
9987
_ACEOF
 
9988
cat confdefs.h >>conftest.$ac_ext
 
9989
cat >>conftest.$ac_ext <<_ACEOF
 
9990
/* end confdefs.h.  */
 
9991
#include <stddef.h>
 
9992
int
 
9993
main ()
 
9994
{
 
9995
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
 
9996
test_array [0] = 0
 
9997
 
 
9998
  ;
 
9999
  return 0;
 
10000
}
 
10001
_ACEOF
 
10002
rm -f conftest.$ac_objext
 
10003
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10004
  (eval $ac_compile) 2>conftest.er1
 
10005
  ac_status=$?
 
10006
  grep -v '^ *+' conftest.er1 >conftest.err
 
10007
  rm -f conftest.er1
 
10008
  cat conftest.err >&5
 
10009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10010
  (exit $ac_status); } &&
 
10011
         { ac_try='test -z "$ac_c_werror_flag"
 
10012
                         || test ! -s conftest.err'
 
10013
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10014
  (eval $ac_try) 2>&5
 
10015
  ac_status=$?
 
10016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10017
  (exit $ac_status); }; } &&
 
10018
         { ac_try='test -s conftest.$ac_objext'
 
10019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10020
  (eval $ac_try) 2>&5
 
10021
  ac_status=$?
 
10022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10023
  (exit $ac_status); }; }; then
 
10024
  ac_lo=$ac_mid; break
 
10025
else
 
10026
  echo "$as_me: failed program was:" >&5
 
10027
sed 's/^/| /' conftest.$ac_ext >&5
 
10028
 
 
10029
ac_hi=`expr '(' $ac_mid ')' - 1`
 
10030
                       if test $ac_mid -le $ac_hi; then
 
10031
                         ac_lo= ac_hi=
 
10032
                         break
 
10033
                       fi
 
10034
                       ac_mid=`expr 2 '*' $ac_mid`
 
10035
fi
 
10036
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10037
  done
 
10038
else
 
10039
  echo "$as_me: failed program was:" >&5
 
10040
sed 's/^/| /' conftest.$ac_ext >&5
 
10041
 
 
10042
ac_lo= ac_hi=
 
10043
fi
 
10044
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10045
fi
 
10046
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10047
# Binary search between lo and hi bounds.
 
10048
while test "x$ac_lo" != "x$ac_hi"; do
 
10049
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
10050
  cat >conftest.$ac_ext <<_ACEOF
 
10051
/* confdefs.h.  */
 
10052
_ACEOF
 
10053
cat confdefs.h >>conftest.$ac_ext
 
10054
cat >>conftest.$ac_ext <<_ACEOF
 
10055
/* end confdefs.h.  */
 
10056
#include <stddef.h>
 
10057
int
 
10058
main ()
 
10059
{
 
10060
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
 
10061
test_array [0] = 0
 
10062
 
 
10063
  ;
 
10064
  return 0;
 
10065
}
 
10066
_ACEOF
 
10067
rm -f conftest.$ac_objext
 
10068
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10069
  (eval $ac_compile) 2>conftest.er1
 
10070
  ac_status=$?
 
10071
  grep -v '^ *+' conftest.er1 >conftest.err
 
10072
  rm -f conftest.er1
 
10073
  cat conftest.err >&5
 
10074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10075
  (exit $ac_status); } &&
 
10076
         { ac_try='test -z "$ac_c_werror_flag"
 
10077
                         || test ! -s conftest.err'
 
10078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10079
  (eval $ac_try) 2>&5
 
10080
  ac_status=$?
 
10081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10082
  (exit $ac_status); }; } &&
 
10083
         { ac_try='test -s conftest.$ac_objext'
 
10084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10085
  (eval $ac_try) 2>&5
 
10086
  ac_status=$?
 
10087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10088
  (exit $ac_status); }; }; then
 
10089
  ac_hi=$ac_mid
 
10090
else
 
10091
  echo "$as_me: failed program was:" >&5
 
10092
sed 's/^/| /' conftest.$ac_ext >&5
 
10093
 
 
10094
ac_lo=`expr '(' $ac_mid ')' + 1`
 
10095
fi
 
10096
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10097
done
 
10098
case $ac_lo in
 
10099
?*) res_lo=$ac_lo;;
 
10100
'') result=? ;;
 
10101
esac
 
10102
else
 
10103
  if test "$cross_compiling" = yes; then
 
10104
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
10105
See \`config.log' for more details." >&5
 
10106
echo "$as_me: error: cannot run test program while cross compiling
 
10107
See \`config.log' for more details." >&2;}
 
10108
   { (exit 1); exit 1; }; }
 
10109
else
 
10110
  cat >conftest.$ac_ext <<_ACEOF
 
10111
/* confdefs.h.  */
 
10112
_ACEOF
 
10113
cat confdefs.h >>conftest.$ac_ext
 
10114
cat >>conftest.$ac_ext <<_ACEOF
 
10115
/* end confdefs.h.  */
 
10116
#include <stddef.h>
 
10117
long longval () { return ~(size_t)0 % 10; }
 
10118
unsigned long ulongval () { return ~(size_t)0 % 10; }
 
10119
#include <stdio.h>
 
10120
#include <stdlib.h>
 
10121
int
 
10122
main ()
 
10123
{
 
10124
 
 
10125
  FILE *f = fopen ("conftest.val", "w");
 
10126
  if (! f)
 
10127
    exit (1);
 
10128
  if ((~(size_t)0 % 10) < 0)
 
10129
    {
 
10130
      long i = longval ();
 
10131
      if (i != (~(size_t)0 % 10))
 
10132
        exit (1);
 
10133
      fprintf (f, "%ld\n", i);
 
10134
    }
 
10135
  else
 
10136
    {
 
10137
      unsigned long i = ulongval ();
 
10138
      if (i != (~(size_t)0 % 10))
 
10139
        exit (1);
 
10140
      fprintf (f, "%lu\n", i);
 
10141
    }
 
10142
  exit (ferror (f) || fclose (f) != 0);
 
10143
 
 
10144
  ;
 
10145
  return 0;
 
10146
}
 
10147
_ACEOF
 
10148
rm -f conftest$ac_exeext
 
10149
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10150
  (eval $ac_link) 2>&5
 
10151
  ac_status=$?
 
10152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10153
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10155
  (eval $ac_try) 2>&5
 
10156
  ac_status=$?
 
10157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10158
  (exit $ac_status); }; }; then
 
10159
  res_lo=`cat conftest.val`
 
10160
else
 
10161
  echo "$as_me: program exited with status $ac_status" >&5
 
10162
echo "$as_me: failed program was:" >&5
 
10163
sed 's/^/| /' conftest.$ac_ext >&5
 
10164
 
 
10165
( exit $ac_status )
 
10166
result=?
 
10167
fi
 
10168
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10169
fi
 
10170
fi
 
10171
rm -f conftest.val
 
10172
    if test "$cross_compiling" = yes; then
 
10173
  # Depending upon the size, compute the lo and hi bounds.
 
10174
cat >conftest.$ac_ext <<_ACEOF
 
10175
/* confdefs.h.  */
 
10176
_ACEOF
 
10177
cat confdefs.h >>conftest.$ac_ext
 
10178
cat >>conftest.$ac_ext <<_ACEOF
 
10179
/* end confdefs.h.  */
 
10180
#include <stddef.h>
 
10181
int
 
10182
main ()
 
10183
{
 
10184
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
 
10185
test_array [0] = 0
 
10186
 
 
10187
  ;
 
10188
  return 0;
 
10189
}
 
10190
_ACEOF
 
10191
rm -f conftest.$ac_objext
 
10192
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10193
  (eval $ac_compile) 2>conftest.er1
 
10194
  ac_status=$?
 
10195
  grep -v '^ *+' conftest.er1 >conftest.err
 
10196
  rm -f conftest.er1
 
10197
  cat conftest.err >&5
 
10198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10199
  (exit $ac_status); } &&
 
10200
         { ac_try='test -z "$ac_c_werror_flag"
 
10201
                         || test ! -s conftest.err'
 
10202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10203
  (eval $ac_try) 2>&5
 
10204
  ac_status=$?
 
10205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10206
  (exit $ac_status); }; } &&
 
10207
         { ac_try='test -s conftest.$ac_objext'
 
10208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10209
  (eval $ac_try) 2>&5
 
10210
  ac_status=$?
 
10211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10212
  (exit $ac_status); }; }; then
 
10213
  ac_lo=0 ac_mid=0
 
10214
  while :; do
 
10215
    cat >conftest.$ac_ext <<_ACEOF
 
10216
/* confdefs.h.  */
 
10217
_ACEOF
 
10218
cat confdefs.h >>conftest.$ac_ext
 
10219
cat >>conftest.$ac_ext <<_ACEOF
 
10220
/* end confdefs.h.  */
 
10221
#include <stddef.h>
 
10222
int
 
10223
main ()
 
10224
{
 
10225
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
10226
test_array [0] = 0
 
10227
 
 
10228
  ;
 
10229
  return 0;
 
10230
}
 
10231
_ACEOF
 
10232
rm -f conftest.$ac_objext
 
10233
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10234
  (eval $ac_compile) 2>conftest.er1
 
10235
  ac_status=$?
 
10236
  grep -v '^ *+' conftest.er1 >conftest.err
 
10237
  rm -f conftest.er1
 
10238
  cat conftest.err >&5
 
10239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10240
  (exit $ac_status); } &&
 
10241
         { ac_try='test -z "$ac_c_werror_flag"
 
10242
                         || test ! -s conftest.err'
 
10243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10244
  (eval $ac_try) 2>&5
 
10245
  ac_status=$?
 
10246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10247
  (exit $ac_status); }; } &&
 
10248
         { ac_try='test -s conftest.$ac_objext'
 
10249
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10250
  (eval $ac_try) 2>&5
 
10251
  ac_status=$?
 
10252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10253
  (exit $ac_status); }; }; then
 
10254
  ac_hi=$ac_mid; break
 
10255
else
 
10256
  echo "$as_me: failed program was:" >&5
 
10257
sed 's/^/| /' conftest.$ac_ext >&5
 
10258
 
 
10259
ac_lo=`expr $ac_mid + 1`
 
10260
                    if test $ac_lo -le $ac_mid; then
 
10261
                      ac_lo= ac_hi=
 
10262
                      break
 
10263
                    fi
 
10264
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
10265
fi
 
10266
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10267
  done
 
10268
else
 
10269
  echo "$as_me: failed program was:" >&5
 
10270
sed 's/^/| /' conftest.$ac_ext >&5
 
10271
 
 
10272
cat >conftest.$ac_ext <<_ACEOF
 
10273
/* confdefs.h.  */
 
10274
_ACEOF
 
10275
cat confdefs.h >>conftest.$ac_ext
 
10276
cat >>conftest.$ac_ext <<_ACEOF
 
10277
/* end confdefs.h.  */
 
10278
#include <stddef.h>
 
10279
int
 
10280
main ()
 
10281
{
 
10282
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
 
10283
test_array [0] = 0
 
10284
 
 
10285
  ;
 
10286
  return 0;
 
10287
}
 
10288
_ACEOF
 
10289
rm -f conftest.$ac_objext
 
10290
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10291
  (eval $ac_compile) 2>conftest.er1
 
10292
  ac_status=$?
 
10293
  grep -v '^ *+' conftest.er1 >conftest.err
 
10294
  rm -f conftest.er1
 
10295
  cat conftest.err >&5
 
10296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10297
  (exit $ac_status); } &&
 
10298
         { ac_try='test -z "$ac_c_werror_flag"
 
10299
                         || test ! -s conftest.err'
 
10300
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10301
  (eval $ac_try) 2>&5
 
10302
  ac_status=$?
 
10303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10304
  (exit $ac_status); }; } &&
 
10305
         { ac_try='test -s conftest.$ac_objext'
 
10306
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10307
  (eval $ac_try) 2>&5
 
10308
  ac_status=$?
 
10309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10310
  (exit $ac_status); }; }; then
 
10311
  ac_hi=-1 ac_mid=-1
 
10312
  while :; do
 
10313
    cat >conftest.$ac_ext <<_ACEOF
 
10314
/* confdefs.h.  */
 
10315
_ACEOF
 
10316
cat confdefs.h >>conftest.$ac_ext
 
10317
cat >>conftest.$ac_ext <<_ACEOF
 
10318
/* end confdefs.h.  */
 
10319
#include <stddef.h>
 
10320
int
 
10321
main ()
 
10322
{
 
10323
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
 
10324
test_array [0] = 0
 
10325
 
 
10326
  ;
 
10327
  return 0;
 
10328
}
 
10329
_ACEOF
 
10330
rm -f conftest.$ac_objext
 
10331
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10332
  (eval $ac_compile) 2>conftest.er1
 
10333
  ac_status=$?
 
10334
  grep -v '^ *+' conftest.er1 >conftest.err
 
10335
  rm -f conftest.er1
 
10336
  cat conftest.err >&5
 
10337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10338
  (exit $ac_status); } &&
 
10339
         { ac_try='test -z "$ac_c_werror_flag"
 
10340
                         || test ! -s conftest.err'
 
10341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10342
  (eval $ac_try) 2>&5
 
10343
  ac_status=$?
 
10344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10345
  (exit $ac_status); }; } &&
 
10346
         { ac_try='test -s conftest.$ac_objext'
 
10347
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10348
  (eval $ac_try) 2>&5
 
10349
  ac_status=$?
 
10350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10351
  (exit $ac_status); }; }; then
 
10352
  ac_lo=$ac_mid; break
 
10353
else
 
10354
  echo "$as_me: failed program was:" >&5
 
10355
sed 's/^/| /' conftest.$ac_ext >&5
 
10356
 
 
10357
ac_hi=`expr '(' $ac_mid ')' - 1`
 
10358
                       if test $ac_mid -le $ac_hi; then
 
10359
                         ac_lo= ac_hi=
 
10360
                         break
 
10361
                       fi
 
10362
                       ac_mid=`expr 2 '*' $ac_mid`
 
10363
fi
 
10364
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10365
  done
 
10366
else
 
10367
  echo "$as_me: failed program was:" >&5
 
10368
sed 's/^/| /' conftest.$ac_ext >&5
 
10369
 
 
10370
ac_lo= ac_hi=
 
10371
fi
 
10372
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10373
fi
 
10374
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10375
# Binary search between lo and hi bounds.
 
10376
while test "x$ac_lo" != "x$ac_hi"; do
 
10377
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
10378
  cat >conftest.$ac_ext <<_ACEOF
 
10379
/* confdefs.h.  */
 
10380
_ACEOF
 
10381
cat confdefs.h >>conftest.$ac_ext
 
10382
cat >>conftest.$ac_ext <<_ACEOF
 
10383
/* end confdefs.h.  */
 
10384
#include <stddef.h>
 
10385
int
 
10386
main ()
 
10387
{
 
10388
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
10389
test_array [0] = 0
 
10390
 
 
10391
  ;
 
10392
  return 0;
 
10393
}
 
10394
_ACEOF
 
10395
rm -f conftest.$ac_objext
 
10396
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10397
  (eval $ac_compile) 2>conftest.er1
 
10398
  ac_status=$?
 
10399
  grep -v '^ *+' conftest.er1 >conftest.err
 
10400
  rm -f conftest.er1
 
10401
  cat conftest.err >&5
 
10402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10403
  (exit $ac_status); } &&
 
10404
         { ac_try='test -z "$ac_c_werror_flag"
 
10405
                         || test ! -s conftest.err'
 
10406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10407
  (eval $ac_try) 2>&5
 
10408
  ac_status=$?
 
10409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10410
  (exit $ac_status); }; } &&
 
10411
         { ac_try='test -s conftest.$ac_objext'
 
10412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10413
  (eval $ac_try) 2>&5
 
10414
  ac_status=$?
 
10415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10416
  (exit $ac_status); }; }; then
 
10417
  ac_hi=$ac_mid
 
10418
else
 
10419
  echo "$as_me: failed program was:" >&5
 
10420
sed 's/^/| /' conftest.$ac_ext >&5
 
10421
 
 
10422
ac_lo=`expr '(' $ac_mid ')' + 1`
 
10423
fi
 
10424
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10425
done
 
10426
case $ac_lo in
 
10427
?*) fits_in_uint=$ac_lo;;
 
10428
'') result=? ;;
 
10429
esac
 
10430
else
 
10431
  if test "$cross_compiling" = yes; then
 
10432
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
10433
See \`config.log' for more details." >&5
 
10434
echo "$as_me: error: cannot run test program while cross compiling
 
10435
See \`config.log' for more details." >&2;}
 
10436
   { (exit 1); exit 1; }; }
 
10437
else
 
10438
  cat >conftest.$ac_ext <<_ACEOF
 
10439
/* confdefs.h.  */
 
10440
_ACEOF
 
10441
cat confdefs.h >>conftest.$ac_ext
 
10442
cat >>conftest.$ac_ext <<_ACEOF
 
10443
/* end confdefs.h.  */
 
10444
#include <stddef.h>
 
10445
long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
10446
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
10447
#include <stdio.h>
 
10448
#include <stdlib.h>
 
10449
int
 
10450
main ()
 
10451
{
 
10452
 
 
10453
  FILE *f = fopen ("conftest.val", "w");
 
10454
  if (! f)
 
10455
    exit (1);
 
10456
  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
 
10457
    {
 
10458
      long i = longval ();
 
10459
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
10460
        exit (1);
 
10461
      fprintf (f, "%ld\n", i);
 
10462
    }
 
10463
  else
 
10464
    {
 
10465
      unsigned long i = ulongval ();
 
10466
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
10467
        exit (1);
 
10468
      fprintf (f, "%lu\n", i);
 
10469
    }
 
10470
  exit (ferror (f) || fclose (f) != 0);
 
10471
 
 
10472
  ;
 
10473
  return 0;
 
10474
}
 
10475
_ACEOF
 
10476
rm -f conftest$ac_exeext
 
10477
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10478
  (eval $ac_link) 2>&5
 
10479
  ac_status=$?
 
10480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10481
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10483
  (eval $ac_try) 2>&5
 
10484
  ac_status=$?
 
10485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10486
  (exit $ac_status); }; }; then
 
10487
  fits_in_uint=`cat conftest.val`
 
10488
else
 
10489
  echo "$as_me: program exited with status $ac_status" >&5
 
10490
echo "$as_me: failed program was:" >&5
 
10491
sed 's/^/| /' conftest.$ac_ext >&5
 
10492
 
 
10493
( exit $ac_status )
 
10494
result=?
 
10495
fi
 
10496
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10497
fi
 
10498
fi
 
10499
rm -f conftest.val
 
10500
    if test "$fits_in_uint" = 1; then
 
10501
                  cat >conftest.$ac_ext <<_ACEOF
 
10502
/* confdefs.h.  */
 
10503
_ACEOF
 
10504
cat confdefs.h >>conftest.$ac_ext
 
10505
cat >>conftest.$ac_ext <<_ACEOF
 
10506
/* end confdefs.h.  */
 
10507
#include <stddef.h>
 
10508
        extern size_t foo;
 
10509
        extern unsigned long foo;
 
10510
 
 
10511
int
 
10512
main ()
 
10513
{
 
10514
 
 
10515
  ;
 
10516
  return 0;
 
10517
}
 
10518
_ACEOF
 
10519
rm -f conftest.$ac_objext
 
10520
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10521
  (eval $ac_compile) 2>conftest.er1
 
10522
  ac_status=$?
 
10523
  grep -v '^ *+' conftest.er1 >conftest.err
 
10524
  rm -f conftest.er1
 
10525
  cat conftest.err >&5
 
10526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10527
  (exit $ac_status); } &&
 
10528
         { ac_try='test -z "$ac_c_werror_flag"
 
10529
                         || test ! -s conftest.err'
 
10530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10531
  (eval $ac_try) 2>&5
 
10532
  ac_status=$?
 
10533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10534
  (exit $ac_status); }; } &&
 
10535
         { ac_try='test -s conftest.$ac_objext'
 
10536
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10537
  (eval $ac_try) 2>&5
 
10538
  ac_status=$?
 
10539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10540
  (exit $ac_status); }; }; then
 
10541
  fits_in_uint=0
 
10542
else
 
10543
  echo "$as_me: failed program was:" >&5
 
10544
sed 's/^/| /' conftest.$ac_ext >&5
 
10545
 
 
10546
fi
 
10547
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10548
    fi
 
10549
    if test -z "$result"; then
 
10550
      if test "$fits_in_uint" = 1; then
 
10551
        result="$res_hi$res_lo"U
 
10552
      else
 
10553
        result="$res_hi$res_lo"UL
 
10554
      fi
 
10555
    else
 
10556
            result='~(size_t)0'
 
10557
    fi
 
10558
  fi
 
10559
  echo "$as_me:$LINENO: result: $result" >&5
 
10560
echo "${ECHO_T}$result" >&6
 
10561
  if test "$result" != yes; then
 
10562
 
 
10563
cat >>confdefs.h <<_ACEOF
 
10564
#define SIZE_MAX $result
 
10565
_ACEOF
 
10566
 
 
10567
  fi
 
10568
 
 
10569
 
 
10570
 
 
10571
 
 
10572
for ac_header in stdint.h
 
10573
do
 
10574
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10575
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10576
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10577
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10578
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10579
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10580
fi
 
10581
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10582
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10583
else
 
10584
  # Is the header compilable?
 
10585
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
10586
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
10587
cat >conftest.$ac_ext <<_ACEOF
 
10588
/* confdefs.h.  */
 
10589
_ACEOF
 
10590
cat confdefs.h >>conftest.$ac_ext
 
10591
cat >>conftest.$ac_ext <<_ACEOF
 
10592
/* end confdefs.h.  */
 
10593
$ac_includes_default
 
10594
#include <$ac_header>
 
10595
_ACEOF
 
10596
rm -f conftest.$ac_objext
 
10597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10598
  (eval $ac_compile) 2>conftest.er1
 
10599
  ac_status=$?
 
10600
  grep -v '^ *+' conftest.er1 >conftest.err
 
10601
  rm -f conftest.er1
 
10602
  cat conftest.err >&5
 
10603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10604
  (exit $ac_status); } &&
 
10605
         { ac_try='test -z "$ac_c_werror_flag"
 
10606
                         || test ! -s conftest.err'
 
10607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10608
  (eval $ac_try) 2>&5
 
10609
  ac_status=$?
 
10610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10611
  (exit $ac_status); }; } &&
 
10612
         { ac_try='test -s conftest.$ac_objext'
 
10613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10614
  (eval $ac_try) 2>&5
 
10615
  ac_status=$?
 
10616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10617
  (exit $ac_status); }; }; then
 
10618
  ac_header_compiler=yes
 
10619
else
 
10620
  echo "$as_me: failed program was:" >&5
 
10621
sed 's/^/| /' conftest.$ac_ext >&5
 
10622
 
 
10623
ac_header_compiler=no
 
10624
fi
 
10625
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10626
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10627
echo "${ECHO_T}$ac_header_compiler" >&6
 
10628
 
 
10629
# Is the header present?
 
10630
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
10631
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
10632
cat >conftest.$ac_ext <<_ACEOF
 
10633
/* confdefs.h.  */
 
10634
_ACEOF
 
10635
cat confdefs.h >>conftest.$ac_ext
 
10636
cat >>conftest.$ac_ext <<_ACEOF
 
10637
/* end confdefs.h.  */
 
10638
#include <$ac_header>
 
10639
_ACEOF
 
10640
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10641
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10642
  ac_status=$?
 
10643
  grep -v '^ *+' conftest.er1 >conftest.err
 
10644
  rm -f conftest.er1
 
10645
  cat conftest.err >&5
 
10646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10647
  (exit $ac_status); } >/dev/null; then
 
10648
  if test -s conftest.err; then
 
10649
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10650
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
10651
  else
 
10652
    ac_cpp_err=
 
10653
  fi
 
10654
else
 
10655
  ac_cpp_err=yes
 
10656
fi
 
10657
if test -z "$ac_cpp_err"; then
 
10658
  ac_header_preproc=yes
 
10659
else
 
10660
  echo "$as_me: failed program was:" >&5
 
10661
sed 's/^/| /' conftest.$ac_ext >&5
 
10662
 
 
10663
  ac_header_preproc=no
 
10664
fi
 
10665
rm -f conftest.err conftest.$ac_ext
 
10666
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10667
echo "${ECHO_T}$ac_header_preproc" >&6
 
10668
 
 
10669
# So?  What about this header?
 
10670
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10671
  yes:no: )
 
10672
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
10673
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10674
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
10675
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
10676
    ac_header_preproc=yes
 
10677
    ;;
 
10678
  no:yes:* )
 
10679
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
10680
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
10681
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
10682
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
10683
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
10684
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
10685
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
10686
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
10687
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
10688
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
10689
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
10690
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
10691
    (
 
10692
      cat <<\_ASBOX
 
10693
## -------------------------------------- ##
 
10694
## Report this to the GNU Texinfo lists.  ##
 
10695
## -------------------------------------- ##
 
10696
_ASBOX
 
10697
    ) |
 
10698
      sed "s/^/$as_me: WARNING:     /" >&2
 
10699
    ;;
 
10700
esac
 
10701
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10702
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10703
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10704
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10705
else
 
10706
  eval "$as_ac_Header=\$ac_header_preproc"
 
10707
fi
 
10708
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10709
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10710
 
 
10711
fi
 
10712
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10713
  cat >>confdefs.h <<_ACEOF
 
10714
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10715
_ACEOF
 
10716
 
 
10717
fi
 
10718
 
 
10719
done
 
10720
 
 
10721
 
 
10722
 
5275
10723
      if test "X$prefix" = "XNONE"; then
5276
10724
    acl_final_prefix="$ac_default_prefix"
5277
10725
  else
5287
10735
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5288
10736
  prefix="$acl_save_prefix"
5289
10737
 
 
10738
 
5290
10739
# Check whether --with-gnu-ld or --without-gnu-ld was given.
5291
10740
if test "${with_gnu_ld+set}" = set; then
5292
10741
  withval="$with_gnu_ld"
5294
10743
else
5295
10744
  with_gnu_ld=no
5296
10745
fi;
 
10746
# Prepare PATH_SEPARATOR.
 
10747
# The user is always right.
 
10748
if test "${PATH_SEPARATOR+set}" != set; then
 
10749
  echo "#! /bin/sh" >conf$$.sh
 
10750
  echo  "exit 0"   >>conf$$.sh
 
10751
  chmod +x conf$$.sh
 
10752
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
10753
    PATH_SEPARATOR=';'
 
10754
  else
 
10755
    PATH_SEPARATOR=:
 
10756
  fi
 
10757
  rm -f conf$$.sh
 
10758
fi
5297
10759
ac_prog=ld
5298
10760
if test "$GCC" = yes; then
5299
10761
  # Check if gcc -print-prog-name=ld gives a path.
5300
 
  echo "$as_me:5300: checking for ld used by GCC" >&5
 
10762
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5301
10763
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5302
10764
  case $host in
5303
10765
  *-*-mingw*)
5327
10789
    ;;
5328
10790
  esac
5329
10791
elif test "$with_gnu_ld" = yes; then
5330
 
  echo "$as_me:5330: checking for GNU ld" >&5
 
10792
  echo "$as_me:$LINENO: checking for GNU ld" >&5
5331
10793
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5332
10794
else
5333
 
  echo "$as_me:5333: checking for non-GNU ld" >&5
 
10795
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5334
10796
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5335
10797
fi
5336
10798
if test "${acl_cv_path_LD+set}" = set; then
5345
10807
      # Check to see if the program is GNU ld.  I'd rather use --version,
5346
10808
      # but apparently some GNU ld's only accept -v.
5347
10809
      # Break only if it was the GNU/non-GNU ld that we prefer.
5348
 
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5349
 
        test "$with_gnu_ld" != no && break
5350
 
      else
5351
 
        test "$with_gnu_ld" != yes && break
5352
 
      fi
 
10810
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
10811
      *GNU* | *'with BFD'*)
 
10812
        test "$with_gnu_ld" != no && break ;;
 
10813
      *)
 
10814
        test "$with_gnu_ld" != yes && break ;;
 
10815
      esac
5353
10816
    fi
5354
10817
  done
5355
10818
  IFS="$ac_save_ifs"
5360
10823
 
5361
10824
LD="$acl_cv_path_LD"
5362
10825
if test -n "$LD"; then
5363
 
  echo "$as_me:5363: result: $LD" >&5
 
10826
  echo "$as_me:$LINENO: result: $LD" >&5
5364
10827
echo "${ECHO_T}$LD" >&6
5365
10828
else
5366
 
  echo "$as_me:5366: result: no" >&5
 
10829
  echo "$as_me:$LINENO: result: no" >&5
5367
10830
echo "${ECHO_T}no" >&6
5368
10831
fi
5369
 
test -z "$LD" && { { echo "$as_me:5369: error: no acceptable ld found in \$PATH" >&5
 
10832
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5370
10833
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5371
10834
   { (exit 1); exit 1; }; }
5372
 
echo "$as_me:5372: checking if the linker ($LD) is GNU ld" >&5
 
10835
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5373
10836
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5374
10837
if test "${acl_cv_prog_gnu_ld+set}" = set; then
5375
10838
  echo $ECHO_N "(cached) $ECHO_C" >&6
5376
10839
else
5377
10840
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5378
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5379
 
  acl_cv_prog_gnu_ld=yes
5380
 
else
5381
 
  acl_cv_prog_gnu_ld=no
5382
 
fi
5383
 
fi
5384
 
echo "$as_me:5384: result: $acl_cv_prog_gnu_ld" >&5
 
10841
case `$LD -v 2>&1 </dev/null` in
 
10842
*GNU* | *'with BFD'*)
 
10843
  acl_cv_prog_gnu_ld=yes ;;
 
10844
*)
 
10845
  acl_cv_prog_gnu_ld=no ;;
 
10846
esac
 
10847
fi
 
10848
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5385
10849
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5386
10850
with_gnu_ld=$acl_cv_prog_gnu_ld
5387
10851
 
5388
 
                                                echo "$as_me:5388: checking for shared library run path origin" >&5
 
10852
 
 
10853
 
 
10854
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5389
10855
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5390
10856
if test "${acl_cv_rpath+set}" = set; then
5391
10857
  echo $ECHO_N "(cached) $ECHO_C" >&6
5398
10864
    acl_cv_rpath=done
5399
10865
 
5400
10866
fi
5401
 
echo "$as_me:5401: result: $acl_cv_rpath" >&5
 
10867
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5402
10868
echo "${ECHO_T}$acl_cv_rpath" >&6
5403
10869
  wl="$acl_cv_wl"
5404
10870
  libext="$acl_cv_libext"
5407
10873
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5408
10874
  hardcode_direct="$acl_cv_hardcode_direct"
5409
10875
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
5410
 
  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
5411
 
  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
 
10876
    # Check whether --enable-rpath or --disable-rpath was given.
 
10877
if test "${enable_rpath+set}" = set; then
 
10878
  enableval="$enable_rpath"
 
10879
  :
 
10880
else
 
10881
  enable_rpath=yes
 
10882
fi;
 
10883
 
 
10884
 
 
10885
 
 
10886
 
 
10887
 
 
10888
 
5412
10889
 
5413
10890
    use_additional=yes
5414
10891
 
5423
10900
  exec_prefix="$acl_save_exec_prefix"
5424
10901
  prefix="$acl_save_prefix"
5425
10902
 
 
10903
 
5426
10904
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5427
10905
if test "${with_libiconv_prefix+set}" = set; then
5428
10906
  withval="$with_libiconv_prefix"
5542
11020
          if test "X$found_dir" != "X"; then
5543
11021
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5544
11022
            if test "X$found_so" != "X"; then
5545
 
                                                        if test "X$found_dir" = "X/usr/lib"; then
 
11023
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5546
11024
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5547
11025
              else
5548
11026
                                                                                haveit=
5712
11190
                      fi
5713
11191
                    fi
5714
11192
                    ;;
 
11193
                  -R*)
 
11194
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
11195
                    if test "$enable_rpath" != no; then
 
11196
                                                                  haveit=
 
11197
                      for x in $rpathdirs; do
 
11198
                        if test "X$x" = "X$dir"; then
 
11199
                          haveit=yes
 
11200
                          break
 
11201
                        fi
 
11202
                      done
 
11203
                      if test -z "$haveit"; then
 
11204
                        rpathdirs="$rpathdirs $dir"
 
11205
                      fi
 
11206
                                                                  haveit=
 
11207
                      for x in $ltrpathdirs; do
 
11208
                        if test "X$x" = "X$dir"; then
 
11209
                          haveit=yes
 
11210
                          break
 
11211
                        fi
 
11212
                      done
 
11213
                      if test -z "$haveit"; then
 
11214
                        ltrpathdirs="$ltrpathdirs $dir"
 
11215
                      fi
 
11216
                    fi
 
11217
                    ;;
5715
11218
                  -l*)
5716
11219
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5717
11220
                    ;;
5760
11263
    done
5761
11264
  fi
5762
11265
 
 
11266
 
 
11267
 
 
11268
 
 
11269
 
 
11270
 
 
11271
 
 
11272
 
 
11273
  echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
 
11274
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
 
11275
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
 
11276
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11277
else
 
11278
  cat >conftest.$ac_ext <<_ACEOF
 
11279
/* confdefs.h.  */
 
11280
_ACEOF
 
11281
cat confdefs.h >>conftest.$ac_ext
 
11282
cat >>conftest.$ac_ext <<_ACEOF
 
11283
/* end confdefs.h.  */
 
11284
$ac_includes_default
 
11285
int
 
11286
main ()
 
11287
{
 
11288
if ((ptrdiff_t *) 0)
 
11289
  return 0;
 
11290
if (sizeof (ptrdiff_t))
 
11291
  return 0;
 
11292
  ;
 
11293
  return 0;
 
11294
}
 
11295
_ACEOF
 
11296
rm -f conftest.$ac_objext
 
11297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11298
  (eval $ac_compile) 2>conftest.er1
 
11299
  ac_status=$?
 
11300
  grep -v '^ *+' conftest.er1 >conftest.err
 
11301
  rm -f conftest.er1
 
11302
  cat conftest.err >&5
 
11303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11304
  (exit $ac_status); } &&
 
11305
         { ac_try='test -z "$ac_c_werror_flag"
 
11306
                         || test ! -s conftest.err'
 
11307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11308
  (eval $ac_try) 2>&5
 
11309
  ac_status=$?
 
11310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11311
  (exit $ac_status); }; } &&
 
11312
         { ac_try='test -s conftest.$ac_objext'
 
11313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11314
  (eval $ac_try) 2>&5
 
11315
  ac_status=$?
 
11316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11317
  (exit $ac_status); }; }; then
 
11318
  ac_cv_type_ptrdiff_t=yes
 
11319
else
 
11320
  echo "$as_me: failed program was:" >&5
 
11321
sed 's/^/| /' conftest.$ac_ext >&5
 
11322
 
 
11323
ac_cv_type_ptrdiff_t=no
 
11324
fi
 
11325
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11326
fi
 
11327
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
 
11328
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
 
11329
if test $ac_cv_type_ptrdiff_t = yes; then
 
11330
  :
 
11331
else
 
11332
 
 
11333
cat >>confdefs.h <<\_ACEOF
 
11334
#define ptrdiff_t long
 
11335
_ACEOF
 
11336
 
 
11337
 
 
11338
fi
 
11339
 
 
11340
 
 
11341
 
 
11342
 
 
11343
 
 
11344
 
 
11345
 
 
11346
 
 
11347
 
 
11348
 
 
11349
 
 
11350
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
 
11351
stdlib.h string.h unistd.h sys/param.h
 
11352
do
 
11353
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11354
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11355
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11356
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11357
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11358
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11359
fi
 
11360
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11361
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11362
else
 
11363
  # Is the header compilable?
 
11364
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11365
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11366
cat >conftest.$ac_ext <<_ACEOF
 
11367
/* confdefs.h.  */
 
11368
_ACEOF
 
11369
cat confdefs.h >>conftest.$ac_ext
 
11370
cat >>conftest.$ac_ext <<_ACEOF
 
11371
/* end confdefs.h.  */
 
11372
$ac_includes_default
 
11373
#include <$ac_header>
 
11374
_ACEOF
 
11375
rm -f conftest.$ac_objext
 
11376
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11377
  (eval $ac_compile) 2>conftest.er1
 
11378
  ac_status=$?
 
11379
  grep -v '^ *+' conftest.er1 >conftest.err
 
11380
  rm -f conftest.er1
 
11381
  cat conftest.err >&5
 
11382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11383
  (exit $ac_status); } &&
 
11384
         { ac_try='test -z "$ac_c_werror_flag"
 
11385
                         || test ! -s conftest.err'
 
11386
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11387
  (eval $ac_try) 2>&5
 
11388
  ac_status=$?
 
11389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11390
  (exit $ac_status); }; } &&
 
11391
         { ac_try='test -s conftest.$ac_objext'
 
11392
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11393
  (eval $ac_try) 2>&5
 
11394
  ac_status=$?
 
11395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11396
  (exit $ac_status); }; }; then
 
11397
  ac_header_compiler=yes
 
11398
else
 
11399
  echo "$as_me: failed program was:" >&5
 
11400
sed 's/^/| /' conftest.$ac_ext >&5
 
11401
 
 
11402
ac_header_compiler=no
 
11403
fi
 
11404
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11405
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11406
echo "${ECHO_T}$ac_header_compiler" >&6
 
11407
 
 
11408
# Is the header present?
 
11409
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11410
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11411
cat >conftest.$ac_ext <<_ACEOF
 
11412
/* confdefs.h.  */
 
11413
_ACEOF
 
11414
cat confdefs.h >>conftest.$ac_ext
 
11415
cat >>conftest.$ac_ext <<_ACEOF
 
11416
/* end confdefs.h.  */
 
11417
#include <$ac_header>
 
11418
_ACEOF
 
11419
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11420
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11421
  ac_status=$?
 
11422
  grep -v '^ *+' conftest.er1 >conftest.err
 
11423
  rm -f conftest.er1
 
11424
  cat conftest.err >&5
 
11425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11426
  (exit $ac_status); } >/dev/null; then
 
11427
  if test -s conftest.err; then
 
11428
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11429
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11430
  else
 
11431
    ac_cpp_err=
 
11432
  fi
 
11433
else
 
11434
  ac_cpp_err=yes
 
11435
fi
 
11436
if test -z "$ac_cpp_err"; then
 
11437
  ac_header_preproc=yes
 
11438
else
 
11439
  echo "$as_me: failed program was:" >&5
 
11440
sed 's/^/| /' conftest.$ac_ext >&5
 
11441
 
 
11442
  ac_header_preproc=no
 
11443
fi
 
11444
rm -f conftest.err conftest.$ac_ext
 
11445
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11446
echo "${ECHO_T}$ac_header_preproc" >&6
 
11447
 
 
11448
# So?  What about this header?
 
11449
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11450
  yes:no: )
 
11451
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11452
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11453
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11454
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11455
    ac_header_preproc=yes
 
11456
    ;;
 
11457
  no:yes:* )
 
11458
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11459
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11460
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11461
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11462
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11463
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11464
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11465
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11466
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11467
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11468
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11469
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11470
    (
 
11471
      cat <<\_ASBOX
 
11472
## -------------------------------------- ##
 
11473
## Report this to the GNU Texinfo lists.  ##
 
11474
## -------------------------------------- ##
 
11475
_ASBOX
 
11476
    ) |
 
11477
      sed "s/^/$as_me: WARNING:     /" >&2
 
11478
    ;;
 
11479
esac
 
11480
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11481
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11482
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11483
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11484
else
 
11485
  eval "$as_ac_Header=\$ac_header_preproc"
 
11486
fi
 
11487
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11488
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11489
 
 
11490
fi
 
11491
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11492
  cat >>confdefs.h <<_ACEOF
 
11493
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11494
_ACEOF
 
11495
 
 
11496
fi
 
11497
 
 
11498
done
 
11499
 
 
11500
 
 
11501
 
 
11502
 
 
11503
 
 
11504
 
 
11505
 
 
11506
 
 
11507
 
 
11508
 
 
11509
 
 
11510
 
 
11511
 
 
11512
 
 
11513
 
 
11514
 
 
11515
 
 
11516
 
 
11517
 
 
11518
 
 
11519
 
 
11520
 
 
11521
 
 
11522
 
 
11523
for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
 
11524
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
 
11525
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
 
11526
__fsetlocking
 
11527
do
 
11528
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11529
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11530
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11531
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11532
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11533
else
 
11534
  cat >conftest.$ac_ext <<_ACEOF
 
11535
/* confdefs.h.  */
 
11536
_ACEOF
 
11537
cat confdefs.h >>conftest.$ac_ext
 
11538
cat >>conftest.$ac_ext <<_ACEOF
 
11539
/* end confdefs.h.  */
 
11540
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
11541
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11542
#define $ac_func innocuous_$ac_func
 
11543
 
 
11544
/* System header to define __stub macros and hopefully few prototypes,
 
11545
    which can conflict with char $ac_func (); below.
 
11546
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11547
    <limits.h> exists even on freestanding compilers.  */
 
11548
 
 
11549
#ifdef __STDC__
 
11550
# include <limits.h>
 
11551
#else
 
11552
# include <assert.h>
 
11553
#endif
 
11554
 
 
11555
#undef $ac_func
 
11556
 
 
11557
/* Override any gcc2 internal prototype to avoid an error.  */
 
11558
#ifdef __cplusplus
 
11559
extern "C"
 
11560
{
 
11561
#endif
 
11562
/* We use char because int might match the return type of a gcc2
 
11563
   builtin and then its argument prototype would still apply.  */
 
11564
char $ac_func ();
 
11565
/* The GNU C library defines this for functions which it implements
 
11566
    to always fail with ENOSYS.  Some functions are actually named
 
11567
    something starting with __ and the normal name is an alias.  */
 
11568
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11569
choke me
 
11570
#else
 
11571
char (*f) () = $ac_func;
 
11572
#endif
 
11573
#ifdef __cplusplus
 
11574
}
 
11575
#endif
 
11576
 
 
11577
int
 
11578
main ()
 
11579
{
 
11580
return f != $ac_func;
 
11581
  ;
 
11582
  return 0;
 
11583
}
 
11584
_ACEOF
 
11585
rm -f conftest.$ac_objext conftest$ac_exeext
 
11586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11587
  (eval $ac_link) 2>conftest.er1
 
11588
  ac_status=$?
 
11589
  grep -v '^ *+' conftest.er1 >conftest.err
 
11590
  rm -f conftest.er1
 
11591
  cat conftest.err >&5
 
11592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11593
  (exit $ac_status); } &&
 
11594
         { ac_try='test -z "$ac_c_werror_flag"
 
11595
                         || test ! -s conftest.err'
 
11596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11597
  (eval $ac_try) 2>&5
 
11598
  ac_status=$?
 
11599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11600
  (exit $ac_status); }; } &&
 
11601
         { ac_try='test -s conftest$ac_exeext'
 
11602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11603
  (eval $ac_try) 2>&5
 
11604
  ac_status=$?
 
11605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11606
  (exit $ac_status); }; }; then
 
11607
  eval "$as_ac_var=yes"
 
11608
else
 
11609
  echo "$as_me: failed program was:" >&5
 
11610
sed 's/^/| /' conftest.$ac_ext >&5
 
11611
 
 
11612
eval "$as_ac_var=no"
 
11613
fi
 
11614
rm -f conftest.err conftest.$ac_objext \
 
11615
      conftest$ac_exeext conftest.$ac_ext
 
11616
fi
 
11617
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11618
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11619
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11620
  cat >>confdefs.h <<_ACEOF
 
11621
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11622
_ACEOF
 
11623
 
 
11624
fi
 
11625
done
 
11626
 
 
11627
 
 
11628
 
 
11629
  echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
 
11630
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
 
11631
if test "${ac_cv_have_decl__snprintf+set}" = set; then
 
11632
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11633
else
 
11634
  cat >conftest.$ac_ext <<_ACEOF
 
11635
/* confdefs.h.  */
 
11636
_ACEOF
 
11637
cat confdefs.h >>conftest.$ac_ext
 
11638
cat >>conftest.$ac_ext <<_ACEOF
 
11639
/* end confdefs.h.  */
 
11640
#include <stdio.h>
 
11641
int
 
11642
main ()
 
11643
{
 
11644
 
 
11645
#ifndef _snprintf
 
11646
  char *p = (char *) _snprintf;
 
11647
#endif
 
11648
 
 
11649
  ;
 
11650
  return 0;
 
11651
}
 
11652
_ACEOF
 
11653
rm -f conftest.$ac_objext
 
11654
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11655
  (eval $ac_compile) 2>conftest.er1
 
11656
  ac_status=$?
 
11657
  grep -v '^ *+' conftest.er1 >conftest.err
 
11658
  rm -f conftest.er1
 
11659
  cat conftest.err >&5
 
11660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11661
  (exit $ac_status); } &&
 
11662
         { ac_try='test -z "$ac_c_werror_flag"
 
11663
                         || test ! -s conftest.err'
 
11664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11665
  (eval $ac_try) 2>&5
 
11666
  ac_status=$?
 
11667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11668
  (exit $ac_status); }; } &&
 
11669
         { ac_try='test -s conftest.$ac_objext'
 
11670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11671
  (eval $ac_try) 2>&5
 
11672
  ac_status=$?
 
11673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11674
  (exit $ac_status); }; }; then
 
11675
  ac_cv_have_decl__snprintf=yes
 
11676
else
 
11677
  echo "$as_me: failed program was:" >&5
 
11678
sed 's/^/| /' conftest.$ac_ext >&5
 
11679
 
 
11680
ac_cv_have_decl__snprintf=no
 
11681
fi
 
11682
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11683
fi
 
11684
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
 
11685
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
 
11686
  if test $ac_cv_have_decl__snprintf = yes; then
 
11687
    gt_value=1
 
11688
  else
 
11689
    gt_value=0
 
11690
  fi
 
11691
 
 
11692
cat >>confdefs.h <<_ACEOF
 
11693
#define HAVE_DECL__SNPRINTF $gt_value
 
11694
_ACEOF
 
11695
 
 
11696
 
 
11697
 
 
11698
  echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
 
11699
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
 
11700
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
 
11701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11702
else
 
11703
  cat >conftest.$ac_ext <<_ACEOF
 
11704
/* confdefs.h.  */
 
11705
_ACEOF
 
11706
cat confdefs.h >>conftest.$ac_ext
 
11707
cat >>conftest.$ac_ext <<_ACEOF
 
11708
/* end confdefs.h.  */
 
11709
#include <stdio.h>
 
11710
int
 
11711
main ()
 
11712
{
 
11713
 
 
11714
#ifndef _snwprintf
 
11715
  char *p = (char *) _snwprintf;
 
11716
#endif
 
11717
 
 
11718
  ;
 
11719
  return 0;
 
11720
}
 
11721
_ACEOF
 
11722
rm -f conftest.$ac_objext
 
11723
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11724
  (eval $ac_compile) 2>conftest.er1
 
11725
  ac_status=$?
 
11726
  grep -v '^ *+' conftest.er1 >conftest.err
 
11727
  rm -f conftest.er1
 
11728
  cat conftest.err >&5
 
11729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11730
  (exit $ac_status); } &&
 
11731
         { ac_try='test -z "$ac_c_werror_flag"
 
11732
                         || test ! -s conftest.err'
 
11733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11734
  (eval $ac_try) 2>&5
 
11735
  ac_status=$?
 
11736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11737
  (exit $ac_status); }; } &&
 
11738
         { ac_try='test -s conftest.$ac_objext'
 
11739
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11740
  (eval $ac_try) 2>&5
 
11741
  ac_status=$?
 
11742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11743
  (exit $ac_status); }; }; then
 
11744
  ac_cv_have_decl__snwprintf=yes
 
11745
else
 
11746
  echo "$as_me: failed program was:" >&5
 
11747
sed 's/^/| /' conftest.$ac_ext >&5
 
11748
 
 
11749
ac_cv_have_decl__snwprintf=no
 
11750
fi
 
11751
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11752
fi
 
11753
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
 
11754
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
 
11755
  if test $ac_cv_have_decl__snwprintf = yes; then
 
11756
    gt_value=1
 
11757
  else
 
11758
    gt_value=0
 
11759
  fi
 
11760
 
 
11761
cat >>confdefs.h <<_ACEOF
 
11762
#define HAVE_DECL__SNWPRINTF $gt_value
 
11763
_ACEOF
 
11764
 
 
11765
 
 
11766
 
 
11767
 
 
11768
  echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
 
11769
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
 
11770
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
 
11771
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11772
else
 
11773
  cat >conftest.$ac_ext <<_ACEOF
 
11774
/* confdefs.h.  */
 
11775
_ACEOF
 
11776
cat confdefs.h >>conftest.$ac_ext
 
11777
cat >>conftest.$ac_ext <<_ACEOF
 
11778
/* end confdefs.h.  */
 
11779
#include <stdio.h>
 
11780
int
 
11781
main ()
 
11782
{
 
11783
 
 
11784
#ifndef feof_unlocked
 
11785
  char *p = (char *) feof_unlocked;
 
11786
#endif
 
11787
 
 
11788
  ;
 
11789
  return 0;
 
11790
}
 
11791
_ACEOF
 
11792
rm -f conftest.$ac_objext
 
11793
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11794
  (eval $ac_compile) 2>conftest.er1
 
11795
  ac_status=$?
 
11796
  grep -v '^ *+' conftest.er1 >conftest.err
 
11797
  rm -f conftest.er1
 
11798
  cat conftest.err >&5
 
11799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11800
  (exit $ac_status); } &&
 
11801
         { ac_try='test -z "$ac_c_werror_flag"
 
11802
                         || test ! -s conftest.err'
 
11803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11804
  (eval $ac_try) 2>&5
 
11805
  ac_status=$?
 
11806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11807
  (exit $ac_status); }; } &&
 
11808
         { ac_try='test -s conftest.$ac_objext'
 
11809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11810
  (eval $ac_try) 2>&5
 
11811
  ac_status=$?
 
11812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11813
  (exit $ac_status); }; }; then
 
11814
  ac_cv_have_decl_feof_unlocked=yes
 
11815
else
 
11816
  echo "$as_me: failed program was:" >&5
 
11817
sed 's/^/| /' conftest.$ac_ext >&5
 
11818
 
 
11819
ac_cv_have_decl_feof_unlocked=no
 
11820
fi
 
11821
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11822
fi
 
11823
echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
 
11824
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
 
11825
  if test $ac_cv_have_decl_feof_unlocked = yes; then
 
11826
    gt_value=1
 
11827
  else
 
11828
    gt_value=0
 
11829
  fi
 
11830
 
 
11831
cat >>confdefs.h <<_ACEOF
 
11832
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
 
11833
_ACEOF
 
11834
 
 
11835
 
 
11836
 
 
11837
  echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
 
11838
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
 
11839
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
 
11840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11841
else
 
11842
  cat >conftest.$ac_ext <<_ACEOF
 
11843
/* confdefs.h.  */
 
11844
_ACEOF
 
11845
cat confdefs.h >>conftest.$ac_ext
 
11846
cat >>conftest.$ac_ext <<_ACEOF
 
11847
/* end confdefs.h.  */
 
11848
#include <stdio.h>
 
11849
int
 
11850
main ()
 
11851
{
 
11852
 
 
11853
#ifndef fgets_unlocked
 
11854
  char *p = (char *) fgets_unlocked;
 
11855
#endif
 
11856
 
 
11857
  ;
 
11858
  return 0;
 
11859
}
 
11860
_ACEOF
 
11861
rm -f conftest.$ac_objext
 
11862
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11863
  (eval $ac_compile) 2>conftest.er1
 
11864
  ac_status=$?
 
11865
  grep -v '^ *+' conftest.er1 >conftest.err
 
11866
  rm -f conftest.er1
 
11867
  cat conftest.err >&5
 
11868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11869
  (exit $ac_status); } &&
 
11870
         { ac_try='test -z "$ac_c_werror_flag"
 
11871
                         || test ! -s conftest.err'
 
11872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11873
  (eval $ac_try) 2>&5
 
11874
  ac_status=$?
 
11875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11876
  (exit $ac_status); }; } &&
 
11877
         { ac_try='test -s conftest.$ac_objext'
 
11878
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11879
  (eval $ac_try) 2>&5
 
11880
  ac_status=$?
 
11881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11882
  (exit $ac_status); }; }; then
 
11883
  ac_cv_have_decl_fgets_unlocked=yes
 
11884
else
 
11885
  echo "$as_me: failed program was:" >&5
 
11886
sed 's/^/| /' conftest.$ac_ext >&5
 
11887
 
 
11888
ac_cv_have_decl_fgets_unlocked=no
 
11889
fi
 
11890
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11891
fi
 
11892
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
 
11893
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
 
11894
  if test $ac_cv_have_decl_fgets_unlocked = yes; then
 
11895
    gt_value=1
 
11896
  else
 
11897
    gt_value=0
 
11898
  fi
 
11899
 
 
11900
cat >>confdefs.h <<_ACEOF
 
11901
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
 
11902
_ACEOF
 
11903
 
 
11904
 
 
11905
 
 
11906
  echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
 
11907
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
 
11908
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
 
11909
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11910
else
 
11911
  cat >conftest.$ac_ext <<_ACEOF
 
11912
/* confdefs.h.  */
 
11913
_ACEOF
 
11914
cat confdefs.h >>conftest.$ac_ext
 
11915
cat >>conftest.$ac_ext <<_ACEOF
 
11916
/* end confdefs.h.  */
 
11917
#include <stdio.h>
 
11918
int
 
11919
main ()
 
11920
{
 
11921
 
 
11922
#ifndef getc_unlocked
 
11923
  char *p = (char *) getc_unlocked;
 
11924
#endif
 
11925
 
 
11926
  ;
 
11927
  return 0;
 
11928
}
 
11929
_ACEOF
 
11930
rm -f conftest.$ac_objext
 
11931
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11932
  (eval $ac_compile) 2>conftest.er1
 
11933
  ac_status=$?
 
11934
  grep -v '^ *+' conftest.er1 >conftest.err
 
11935
  rm -f conftest.er1
 
11936
  cat conftest.err >&5
 
11937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11938
  (exit $ac_status); } &&
 
11939
         { ac_try='test -z "$ac_c_werror_flag"
 
11940
                         || test ! -s conftest.err'
 
11941
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11942
  (eval $ac_try) 2>&5
 
11943
  ac_status=$?
 
11944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11945
  (exit $ac_status); }; } &&
 
11946
         { ac_try='test -s conftest.$ac_objext'
 
11947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11948
  (eval $ac_try) 2>&5
 
11949
  ac_status=$?
 
11950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11951
  (exit $ac_status); }; }; then
 
11952
  ac_cv_have_decl_getc_unlocked=yes
 
11953
else
 
11954
  echo "$as_me: failed program was:" >&5
 
11955
sed 's/^/| /' conftest.$ac_ext >&5
 
11956
 
 
11957
ac_cv_have_decl_getc_unlocked=no
 
11958
fi
 
11959
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11960
fi
 
11961
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
 
11962
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
 
11963
  if test $ac_cv_have_decl_getc_unlocked = yes; then
 
11964
    gt_value=1
 
11965
  else
 
11966
    gt_value=0
 
11967
  fi
 
11968
 
 
11969
cat >>confdefs.h <<_ACEOF
 
11970
#define HAVE_DECL_GETC_UNLOCKED $gt_value
 
11971
_ACEOF
 
11972
 
 
11973
 
 
11974
 
 
11975
  case $gt_cv_func_printf_posix in
 
11976
    *yes) HAVE_POSIX_PRINTF=1 ;;
 
11977
    *) HAVE_POSIX_PRINTF=0 ;;
 
11978
  esac
 
11979
 
 
11980
  if test "$ac_cv_func_asprintf" = yes; then
 
11981
    HAVE_ASPRINTF=1
 
11982
  else
 
11983
    HAVE_ASPRINTF=0
 
11984
  fi
 
11985
 
 
11986
  if test "$ac_cv_func_snprintf" = yes; then
 
11987
    HAVE_SNPRINTF=1
 
11988
  else
 
11989
    HAVE_SNPRINTF=0
 
11990
  fi
 
11991
 
 
11992
  if test "$ac_cv_func_wprintf" = yes; then
 
11993
    HAVE_WPRINTF=1
 
11994
  else
 
11995
    HAVE_WPRINTF=0
 
11996
  fi
 
11997
 
 
11998
 
 
11999
 
 
12000
 
 
12001
 
 
12002
 
 
12003
 
5763
12004
          am_save_CPPFLAGS="$CPPFLAGS"
5764
12005
 
5765
12006
  for element in $INCICONV; do
5784
12025
    fi
5785
12026
  done
5786
12027
 
5787
 
  echo "$as_me:5787: checking for iconv" >&5
 
12028
 
 
12029
  echo "$as_me:$LINENO: checking for iconv" >&5
5788
12030
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5789
12031
if test "${am_cv_func_iconv+set}" = set; then
5790
12032
  echo $ECHO_N "(cached) $ECHO_C" >&6
5793
12035
    am_cv_func_iconv="no, consider installing GNU libiconv"
5794
12036
    am_cv_lib_iconv=no
5795
12037
    cat >conftest.$ac_ext <<_ACEOF
5796
 
#line 5796 "configure"
5797
 
#include "confdefs.h"
 
12038
/* confdefs.h.  */
 
12039
_ACEOF
 
12040
cat confdefs.h >>conftest.$ac_ext
 
12041
cat >>conftest.$ac_ext <<_ACEOF
 
12042
/* end confdefs.h.  */
5798
12043
#include <stdlib.h>
5799
12044
#include <iconv.h>
5800
12045
int
5808
12053
}
5809
12054
_ACEOF
5810
12055
rm -f conftest.$ac_objext conftest$ac_exeext
5811
 
if { (eval echo "$as_me:5811: \"$ac_link\"") >&5
5812
 
  (eval $ac_link) 2>&5
 
12056
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12057
  (eval $ac_link) 2>conftest.er1
5813
12058
  ac_status=$?
5814
 
  echo "$as_me:5814: \$? = $ac_status" >&5
 
12059
  grep -v '^ *+' conftest.er1 >conftest.err
 
12060
  rm -f conftest.er1
 
12061
  cat conftest.err >&5
 
12062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815
12063
  (exit $ac_status); } &&
5816
 
         { ac_try='test -s conftest$ac_exeext'
5817
 
  { (eval echo "$as_me:5817: \"$ac_try\"") >&5
5818
 
  (eval $ac_try) 2>&5
5819
 
  ac_status=$?
5820
 
  echo "$as_me:5820: \$? = $ac_status" >&5
 
12064
         { ac_try='test -z "$ac_c_werror_flag"
 
12065
                         || test ! -s conftest.err'
 
12066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12067
  (eval $ac_try) 2>&5
 
12068
  ac_status=$?
 
12069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12070
  (exit $ac_status); }; } &&
 
12071
         { ac_try='test -s conftest$ac_exeext'
 
12072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12073
  (eval $ac_try) 2>&5
 
12074
  ac_status=$?
 
12075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821
12076
  (exit $ac_status); }; }; then
5822
12077
  am_cv_func_iconv=yes
5823
12078
else
5824
12079
  echo "$as_me: failed program was:" >&5
5825
 
cat conftest.$ac_ext >&5
 
12080
sed 's/^/| /' conftest.$ac_ext >&5
 
12081
 
5826
12082
fi
5827
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12083
rm -f conftest.err conftest.$ac_objext \
 
12084
      conftest$ac_exeext conftest.$ac_ext
5828
12085
    if test "$am_cv_func_iconv" != yes; then
5829
12086
      am_save_LIBS="$LIBS"
5830
12087
      LIBS="$LIBS $LIBICONV"
5831
12088
      cat >conftest.$ac_ext <<_ACEOF
5832
 
#line 5832 "configure"
5833
 
#include "confdefs.h"
 
12089
/* confdefs.h.  */
 
12090
_ACEOF
 
12091
cat confdefs.h >>conftest.$ac_ext
 
12092
cat >>conftest.$ac_ext <<_ACEOF
 
12093
/* end confdefs.h.  */
5834
12094
#include <stdlib.h>
5835
12095
#include <iconv.h>
5836
12096
int
5844
12104
}
5845
12105
_ACEOF
5846
12106
rm -f conftest.$ac_objext conftest$ac_exeext
5847
 
if { (eval echo "$as_me:5847: \"$ac_link\"") >&5
5848
 
  (eval $ac_link) 2>&5
 
12107
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12108
  (eval $ac_link) 2>conftest.er1
5849
12109
  ac_status=$?
5850
 
  echo "$as_me:5850: \$? = $ac_status" >&5
 
12110
  grep -v '^ *+' conftest.er1 >conftest.err
 
12111
  rm -f conftest.er1
 
12112
  cat conftest.err >&5
 
12113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851
12114
  (exit $ac_status); } &&
5852
 
         { ac_try='test -s conftest$ac_exeext'
5853
 
  { (eval echo "$as_me:5853: \"$ac_try\"") >&5
5854
 
  (eval $ac_try) 2>&5
5855
 
  ac_status=$?
5856
 
  echo "$as_me:5856: \$? = $ac_status" >&5
 
12115
         { ac_try='test -z "$ac_c_werror_flag"
 
12116
                         || test ! -s conftest.err'
 
12117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12118
  (eval $ac_try) 2>&5
 
12119
  ac_status=$?
 
12120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12121
  (exit $ac_status); }; } &&
 
12122
         { ac_try='test -s conftest$ac_exeext'
 
12123
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12124
  (eval $ac_try) 2>&5
 
12125
  ac_status=$?
 
12126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857
12127
  (exit $ac_status); }; }; then
5858
12128
  am_cv_lib_iconv=yes
5859
12129
        am_cv_func_iconv=yes
5860
12130
else
5861
12131
  echo "$as_me: failed program was:" >&5
5862
 
cat conftest.$ac_ext >&5
 
12132
sed 's/^/| /' conftest.$ac_ext >&5
 
12133
 
5863
12134
fi
5864
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12135
rm -f conftest.err conftest.$ac_objext \
 
12136
      conftest$ac_exeext conftest.$ac_ext
5865
12137
      LIBS="$am_save_LIBS"
5866
12138
    fi
5867
12139
 
5868
12140
fi
5869
 
echo "$as_me:5869: result: $am_cv_func_iconv" >&5
 
12141
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5870
12142
echo "${ECHO_T}$am_cv_func_iconv" >&6
5871
12143
  if test "$am_cv_func_iconv" = yes; then
5872
12144
 
5873
 
cat >>confdefs.h <<\EOF
 
12145
cat >>confdefs.h <<\_ACEOF
5874
12146
#define HAVE_ICONV 1
5875
 
EOF
 
12147
_ACEOF
5876
12148
 
5877
12149
  fi
5878
12150
  if test "$am_cv_lib_iconv" = yes; then
5879
 
    echo "$as_me:5879: checking how to link with libiconv" >&5
 
12151
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5880
12152
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
5881
 
    echo "$as_me:5881: result: $LIBICONV" >&5
 
12153
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
5882
12154
echo "${ECHO_T}$LIBICONV" >&6
5883
12155
  else
5884
12156
            CPPFLAGS="$am_save_CPPFLAGS"
5886
12158
    LTLIBICONV=
5887
12159
  fi
5888
12160
 
5889
 
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5890
 
stdlib.h string.h unistd.h sys/param.h
5891
 
do
5892
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5893
 
echo "$as_me:5893: checking for $ac_header" >&5
5894
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5895
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5896
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5897
 
else
5898
 
  cat >conftest.$ac_ext <<_ACEOF
5899
 
#line 5899 "configure"
5900
 
#include "confdefs.h"
5901
 
#include <$ac_header>
5902
 
_ACEOF
5903
 
if { (eval echo "$as_me:5903: \"$ac_cpp conftest.$ac_ext\"") >&5
5904
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5905
 
  ac_status=$?
5906
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
5907
 
  rm -f conftest.er1
5908
 
  cat conftest.err >&5
5909
 
  echo "$as_me:5909: \$? = $ac_status" >&5
5910
 
  (exit $ac_status); } >/dev/null; then
5911
 
  if test -s conftest.err; then
5912
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5913
 
  else
5914
 
    ac_cpp_err=
5915
 
  fi
5916
 
else
5917
 
  ac_cpp_err=yes
5918
 
fi
5919
 
if test -z "$ac_cpp_err"; then
5920
 
  eval "$as_ac_Header=yes"
5921
 
else
5922
 
  echo "$as_me: failed program was:" >&5
5923
 
  cat conftest.$ac_ext >&5
5924
 
  eval "$as_ac_Header=no"
5925
 
fi
5926
 
rm -f conftest.err conftest.$ac_ext
5927
 
fi
5928
 
echo "$as_me:5928: result: `eval echo '${'$as_ac_Header'}'`" >&5
5929
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5930
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5931
 
  cat >>confdefs.h <<EOF
5932
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5933
 
EOF
5934
 
 
5935
 
fi
5936
 
done
5937
 
 
5938
 
for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5939
 
geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5940
 
strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5941
 
do
5942
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5943
 
echo "$as_me:5943: checking for $ac_func" >&5
5944
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5945
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
5946
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5947
 
else
5948
 
  cat >conftest.$ac_ext <<_ACEOF
5949
 
#line 5949 "configure"
5950
 
#include "confdefs.h"
5951
 
/* System header to define __stub macros and hopefully few prototypes,
5952
 
    which can conflict with char $ac_func (); below.  */
5953
 
#include <assert.h>
5954
 
/* Override any gcc2 internal prototype to avoid an error.  */
5955
 
#ifdef __cplusplus
5956
 
extern "C"
5957
 
#endif
5958
 
/* We use char because int might match the return type of a gcc2
5959
 
   builtin and then its argument prototype would still apply.  */
5960
 
char $ac_func ();
5961
 
char (*f) ();
5962
 
 
5963
 
int
5964
 
main ()
5965
 
{
5966
 
/* The GNU C library defines this for functions which it implements
5967
 
    to always fail with ENOSYS.  Some functions are actually named
5968
 
    something starting with __ and the normal name is an alias.  */
5969
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5970
 
choke me
5971
 
#else
5972
 
f = $ac_func;
5973
 
#endif
5974
 
 
5975
 
  ;
5976
 
  return 0;
5977
 
}
5978
 
_ACEOF
5979
 
rm -f conftest.$ac_objext conftest$ac_exeext
5980
 
if { (eval echo "$as_me:5980: \"$ac_link\"") >&5
5981
 
  (eval $ac_link) 2>&5
5982
 
  ac_status=$?
5983
 
  echo "$as_me:5983: \$? = $ac_status" >&5
5984
 
  (exit $ac_status); } &&
5985
 
         { ac_try='test -s conftest$ac_exeext'
5986
 
  { (eval echo "$as_me:5986: \"$ac_try\"") >&5
5987
 
  (eval $ac_try) 2>&5
5988
 
  ac_status=$?
5989
 
  echo "$as_me:5989: \$? = $ac_status" >&5
5990
 
  (exit $ac_status); }; }; then
5991
 
  eval "$as_ac_var=yes"
5992
 
else
5993
 
  echo "$as_me: failed program was:" >&5
5994
 
cat conftest.$ac_ext >&5
5995
 
eval "$as_ac_var=no"
5996
 
fi
5997
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5998
 
fi
5999
 
echo "$as_me:5999: result: `eval echo '${'$as_ac_var'}'`" >&5
6000
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6001
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
6002
 
  cat >>confdefs.h <<EOF
6003
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6004
 
EOF
6005
 
 
6006
 
fi
6007
 
done
 
12161
 
6008
12162
 
6009
12163
  if test "$am_cv_func_iconv" = yes; then
6010
 
    echo "$as_me:6010: checking for iconv declaration" >&5
 
12164
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
6011
12165
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6012
12166
    if test "${am_cv_proto_iconv+set}" = set; then
6013
12167
  echo $ECHO_N "(cached) $ECHO_C" >&6
6014
12168
else
6015
12169
 
6016
12170
      cat >conftest.$ac_ext <<_ACEOF
6017
 
#line 6017 "configure"
6018
 
#include "confdefs.h"
 
12171
/* confdefs.h.  */
 
12172
_ACEOF
 
12173
cat confdefs.h >>conftest.$ac_ext
 
12174
cat >>conftest.$ac_ext <<_ACEOF
 
12175
/* end confdefs.h.  */
6019
12176
 
6020
12177
#include <stdlib.h>
6021
12178
#include <iconv.h>
6038
12195
}
6039
12196
_ACEOF
6040
12197
rm -f conftest.$ac_objext
6041
 
if { (eval echo "$as_me:6041: \"$ac_compile\"") >&5
6042
 
  (eval $ac_compile) 2>&5
 
12198
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12199
  (eval $ac_compile) 2>conftest.er1
6043
12200
  ac_status=$?
6044
 
  echo "$as_me:6044: \$? = $ac_status" >&5
 
12201
  grep -v '^ *+' conftest.er1 >conftest.err
 
12202
  rm -f conftest.er1
 
12203
  cat conftest.err >&5
 
12204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045
12205
  (exit $ac_status); } &&
6046
 
         { ac_try='test -s conftest.$ac_objext'
6047
 
  { (eval echo "$as_me:6047: \"$ac_try\"") >&5
6048
 
  (eval $ac_try) 2>&5
6049
 
  ac_status=$?
6050
 
  echo "$as_me:6050: \$? = $ac_status" >&5
 
12206
         { ac_try='test -z "$ac_c_werror_flag"
 
12207
                         || test ! -s conftest.err'
 
12208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12209
  (eval $ac_try) 2>&5
 
12210
  ac_status=$?
 
12211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12212
  (exit $ac_status); }; } &&
 
12213
         { ac_try='test -s conftest.$ac_objext'
 
12214
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12215
  (eval $ac_try) 2>&5
 
12216
  ac_status=$?
 
12217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051
12218
  (exit $ac_status); }; }; then
6052
12219
  am_cv_proto_iconv_arg1=""
6053
12220
else
6054
12221
  echo "$as_me: failed program was:" >&5
6055
 
cat conftest.$ac_ext >&5
 
12222
sed 's/^/| /' conftest.$ac_ext >&5
 
12223
 
6056
12224
am_cv_proto_iconv_arg1="const"
6057
12225
fi
6058
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
12226
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6059
12227
      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);"
6060
12228
fi
6061
12229
 
6062
12230
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6063
 
    echo "$as_me:6063: result: ${ac_t:-
 
12231
    echo "$as_me:$LINENO: result: ${ac_t:-
6064
12232
         }$am_cv_proto_iconv" >&5
6065
12233
echo "${ECHO_T}${ac_t:-
6066
12234
         }$am_cv_proto_iconv" >&6
6067
12235
 
6068
 
cat >>confdefs.h <<EOF
 
12236
cat >>confdefs.h <<_ACEOF
6069
12237
#define ICONV_CONST $am_cv_proto_iconv_arg1
6070
 
EOF
 
12238
_ACEOF
6071
12239
 
6072
12240
  fi
6073
12241
 
6074
 
  echo "$as_me:6074: checking for nl_langinfo and CODESET" >&5
 
12242
 
 
12243
  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6075
12244
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6076
12245
if test "${am_cv_langinfo_codeset+set}" = set; then
6077
12246
  echo $ECHO_N "(cached) $ECHO_C" >&6
6078
12247
else
6079
12248
  cat >conftest.$ac_ext <<_ACEOF
6080
 
#line 6080 "configure"
6081
 
#include "confdefs.h"
 
12249
/* confdefs.h.  */
 
12250
_ACEOF
 
12251
cat confdefs.h >>conftest.$ac_ext
 
12252
cat >>conftest.$ac_ext <<_ACEOF
 
12253
/* end confdefs.h.  */
6082
12254
#include <langinfo.h>
6083
12255
int
6084
12256
main ()
6089
12261
}
6090
12262
_ACEOF
6091
12263
rm -f conftest.$ac_objext conftest$ac_exeext
6092
 
if { (eval echo "$as_me:6092: \"$ac_link\"") >&5
6093
 
  (eval $ac_link) 2>&5
 
12264
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12265
  (eval $ac_link) 2>conftest.er1
6094
12266
  ac_status=$?
6095
 
  echo "$as_me:6095: \$? = $ac_status" >&5
 
12267
  grep -v '^ *+' conftest.er1 >conftest.err
 
12268
  rm -f conftest.er1
 
12269
  cat conftest.err >&5
 
12270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096
12271
  (exit $ac_status); } &&
6097
 
         { ac_try='test -s conftest$ac_exeext'
6098
 
  { (eval echo "$as_me:6098: \"$ac_try\"") >&5
6099
 
  (eval $ac_try) 2>&5
6100
 
  ac_status=$?
6101
 
  echo "$as_me:6101: \$? = $ac_status" >&5
 
12272
         { ac_try='test -z "$ac_c_werror_flag"
 
12273
                         || test ! -s conftest.err'
 
12274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12275
  (eval $ac_try) 2>&5
 
12276
  ac_status=$?
 
12277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12278
  (exit $ac_status); }; } &&
 
12279
         { ac_try='test -s conftest$ac_exeext'
 
12280
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12281
  (eval $ac_try) 2>&5
 
12282
  ac_status=$?
 
12283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102
12284
  (exit $ac_status); }; }; then
6103
12285
  am_cv_langinfo_codeset=yes
6104
12286
else
6105
12287
  echo "$as_me: failed program was:" >&5
6106
 
cat conftest.$ac_ext >&5
 
12288
sed 's/^/| /' conftest.$ac_ext >&5
 
12289
 
6107
12290
am_cv_langinfo_codeset=no
6108
12291
fi
6109
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12292
rm -f conftest.err conftest.$ac_objext \
 
12293
      conftest$ac_exeext conftest.$ac_ext
6110
12294
 
6111
12295
fi
6112
 
echo "$as_me:6112: result: $am_cv_langinfo_codeset" >&5
 
12296
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
6113
12297
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6114
12298
  if test $am_cv_langinfo_codeset = yes; then
6115
12299
 
6116
 
cat >>confdefs.h <<\EOF
 
12300
cat >>confdefs.h <<\_ACEOF
6117
12301
#define HAVE_LANGINFO_CODESET 1
6118
 
EOF
 
12302
_ACEOF
6119
12303
 
6120
12304
  fi
6121
12305
 
6122
12306
  if test $ac_cv_header_locale_h = yes; then
6123
 
    echo "$as_me:6123: checking for LC_MESSAGES" >&5
 
12307
 
 
12308
  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6124
12309
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6125
12310
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6126
12311
  echo $ECHO_N "(cached) $ECHO_C" >&6
6127
12312
else
6128
12313
  cat >conftest.$ac_ext <<_ACEOF
6129
 
#line 6129 "configure"
6130
 
#include "confdefs.h"
 
12314
/* confdefs.h.  */
 
12315
_ACEOF
 
12316
cat confdefs.h >>conftest.$ac_ext
 
12317
cat >>conftest.$ac_ext <<_ACEOF
 
12318
/* end confdefs.h.  */
6131
12319
#include <locale.h>
6132
12320
int
6133
12321
main ()
6138
12326
}
6139
12327
_ACEOF
6140
12328
rm -f conftest.$ac_objext conftest$ac_exeext
6141
 
if { (eval echo "$as_me:6141: \"$ac_link\"") >&5
6142
 
  (eval $ac_link) 2>&5
 
12329
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12330
  (eval $ac_link) 2>conftest.er1
6143
12331
  ac_status=$?
6144
 
  echo "$as_me:6144: \$? = $ac_status" >&5
 
12332
  grep -v '^ *+' conftest.er1 >conftest.err
 
12333
  rm -f conftest.er1
 
12334
  cat conftest.err >&5
 
12335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145
12336
  (exit $ac_status); } &&
6146
 
         { ac_try='test -s conftest$ac_exeext'
6147
 
  { (eval echo "$as_me:6147: \"$ac_try\"") >&5
6148
 
  (eval $ac_try) 2>&5
6149
 
  ac_status=$?
6150
 
  echo "$as_me:6150: \$? = $ac_status" >&5
 
12337
         { ac_try='test -z "$ac_c_werror_flag"
 
12338
                         || test ! -s conftest.err'
 
12339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12340
  (eval $ac_try) 2>&5
 
12341
  ac_status=$?
 
12342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12343
  (exit $ac_status); }; } &&
 
12344
         { ac_try='test -s conftest$ac_exeext'
 
12345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12346
  (eval $ac_try) 2>&5
 
12347
  ac_status=$?
 
12348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151
12349
  (exit $ac_status); }; }; then
6152
12350
  am_cv_val_LC_MESSAGES=yes
6153
12351
else
6154
12352
  echo "$as_me: failed program was:" >&5
6155
 
cat conftest.$ac_ext >&5
 
12353
sed 's/^/| /' conftest.$ac_ext >&5
 
12354
 
6156
12355
am_cv_val_LC_MESSAGES=no
6157
12356
fi
6158
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12357
rm -f conftest.err conftest.$ac_objext \
 
12358
      conftest$ac_exeext conftest.$ac_ext
6159
12359
fi
6160
 
echo "$as_me:6160: result: $am_cv_val_LC_MESSAGES" >&5
 
12360
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6161
12361
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6162
 
    if test $am_cv_val_LC_MESSAGES = yes; then
 
12362
  if test $am_cv_val_LC_MESSAGES = yes; then
6163
12363
 
6164
 
cat >>confdefs.h <<\EOF
 
12364
cat >>confdefs.h <<\_ACEOF
6165
12365
#define HAVE_LC_MESSAGES 1
6166
 
EOF
6167
 
 
6168
 
    fi
 
12366
_ACEOF
 
12367
 
 
12368
  fi
 
12369
 
6169
12370
  fi
6170
12371
 
6171
12372
                      for ac_prog in bison
6172
12373
do
6173
12374
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6174
12375
set dummy $ac_prog; ac_word=$2
6175
 
echo "$as_me:6175: checking for $ac_word" >&5
 
12376
echo "$as_me:$LINENO: checking for $ac_word" >&5
6176
12377
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6177
12378
if test "${ac_cv_prog_INTLBISON+set}" = set; then
6178
12379
  echo $ECHO_N "(cached) $ECHO_C" >&6
6180
12381
  if test -n "$INTLBISON"; then
6181
12382
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
6182
12383
else
6183
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
6184
 
ac_dummy="$PATH"
6185
 
for ac_dir in $ac_dummy; do
6186
 
  IFS=$ac_save_IFS
6187
 
  test -z "$ac_dir" && ac_dir=.
6188
 
  $as_executable_p "$ac_dir/$ac_word" || continue
6189
 
ac_cv_prog_INTLBISON="$ac_prog"
6190
 
echo "$as_me:6190: found $ac_dir/$ac_word" >&5
6191
 
break
 
12384
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12385
for as_dir in $PATH
 
12386
do
 
12387
  IFS=$as_save_IFS
 
12388
  test -z "$as_dir" && as_dir=.
 
12389
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12390
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12391
    ac_cv_prog_INTLBISON="$ac_prog"
 
12392
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12393
    break 2
 
12394
  fi
 
12395
done
6192
12396
done
6193
12397
 
6194
12398
fi
6195
12399
fi
6196
12400
INTLBISON=$ac_cv_prog_INTLBISON
6197
12401
if test -n "$INTLBISON"; then
6198
 
  echo "$as_me:6198: result: $INTLBISON" >&5
 
12402
  echo "$as_me:$LINENO: result: $INTLBISON" >&5
6199
12403
echo "${ECHO_T}$INTLBISON" >&6
6200
12404
else
6201
 
  echo "$as_me:6201: result: no" >&5
 
12405
  echo "$as_me:$LINENO: result: no" >&5
6202
12406
echo "${ECHO_T}no" >&6
6203
12407
fi
6204
12408
 
6208
12412
  if test -z "$INTLBISON"; then
6209
12413
    ac_verc_fail=yes
6210
12414
  else
6211
 
        echo "$as_me:6211: checking version of bison" >&5
 
12415
        echo "$as_me:$LINENO: checking version of bison" >&5
6212
12416
echo $ECHO_N "checking version of bison... $ECHO_C" >&6
6213
12417
    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6214
12418
    case $ac_prog_version in
6217
12421
         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
6218
12422
      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
6219
12423
    esac
6220
 
    echo "$as_me:6220: result: $ac_prog_version" >&5
 
12424
    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
6221
12425
echo "${ECHO_T}$ac_prog_version" >&6
6222
12426
  fi
6223
12427
  if test $ac_verc_fail = yes; then
6224
12428
    INTLBISON=:
6225
12429
  fi
6226
12430
 
6227
 
  echo "$as_me:6227: checking whether NLS is requested" >&5
 
12431
 
 
12432
 
 
12433
 
 
12434
 
 
12435
 
 
12436
 
 
12437
 
 
12438
 
 
12439
 
 
12440
 
 
12441
 
 
12442
 
 
12443
 
 
12444
 
 
12445
 
 
12446
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6228
12447
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6229
12448
    # Check whether --enable-nls or --disable-nls was given.
6230
12449
if test "${enable_nls+set}" = set; then
6233
12452
else
6234
12453
  USE_NLS=yes
6235
12454
fi;
6236
 
  echo "$as_me:6236: result: $USE_NLS" >&5
 
12455
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
6237
12456
echo "${ECHO_T}$USE_NLS" >&6
6238
12457
 
 
12458
 
 
12459
 
 
12460
 
6239
12461
    BUILD_INCLUDED_LIBINTL=no
6240
12462
    USE_INCLUDED_LIBINTL=no
6241
12463
 
6246
12468
    if test "$USE_NLS" = "yes"; then
6247
12469
    gt_use_preinstalled_gnugettext=no
6248
12470
 
6249
 
      echo "$as_me:6249: checking whether included gettext is requested" >&5
 
12471
      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6250
12472
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6251
12473
 
6252
12474
# Check whether --with-included-gettext or --without-included-gettext was given.
6256
12478
else
6257
12479
  nls_cv_force_use_gnu_gettext=no
6258
12480
fi;
6259
 
      echo "$as_me:6259: result: $nls_cv_force_use_gnu_gettext" >&5
 
12481
      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6260
12482
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6261
12483
 
6262
12484
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6263
12485
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6264
12486
 
6265
 
        echo "$as_me:6265: checking for GNU gettext in libc" >&5
 
12487
 
 
12488
 
 
12489
 
 
12490
 
 
12491
 
 
12492
        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6266
12493
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6267
12494
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6268
12495
  echo $ECHO_N "(cached) $ECHO_C" >&6
6269
12496
else
6270
12497
  cat >conftest.$ac_ext <<_ACEOF
6271
 
#line 6271 "configure"
6272
 
#include "confdefs.h"
 
12498
/* confdefs.h.  */
 
12499
_ACEOF
 
12500
cat confdefs.h >>conftest.$ac_ext
 
12501
cat >>conftest.$ac_ext <<_ACEOF
 
12502
/* end confdefs.h.  */
6273
12503
#include <libintl.h>
6274
12504
extern int _nl_msg_cat_cntr;
 
12505
extern int *_nl_domain_bindings;
6275
12506
int
6276
12507
main ()
6277
12508
{
6278
12509
bindtextdomain ("", "");
6279
 
return (int) gettext ("") + _nl_msg_cat_cntr
 
12510
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6280
12511
  ;
6281
12512
  return 0;
6282
12513
}
6283
12514
_ACEOF
6284
12515
rm -f conftest.$ac_objext conftest$ac_exeext
6285
 
if { (eval echo "$as_me:6285: \"$ac_link\"") >&5
6286
 
  (eval $ac_link) 2>&5
 
12516
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12517
  (eval $ac_link) 2>conftest.er1
6287
12518
  ac_status=$?
6288
 
  echo "$as_me:6288: \$? = $ac_status" >&5
 
12519
  grep -v '^ *+' conftest.er1 >conftest.err
 
12520
  rm -f conftest.er1
 
12521
  cat conftest.err >&5
 
12522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289
12523
  (exit $ac_status); } &&
6290
 
         { ac_try='test -s conftest$ac_exeext'
6291
 
  { (eval echo "$as_me:6291: \"$ac_try\"") >&5
6292
 
  (eval $ac_try) 2>&5
6293
 
  ac_status=$?
6294
 
  echo "$as_me:6294: \$? = $ac_status" >&5
 
12524
         { ac_try='test -z "$ac_c_werror_flag"
 
12525
                         || test ! -s conftest.err'
 
12526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12527
  (eval $ac_try) 2>&5
 
12528
  ac_status=$?
 
12529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12530
  (exit $ac_status); }; } &&
 
12531
         { ac_try='test -s conftest$ac_exeext'
 
12532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12533
  (eval $ac_try) 2>&5
 
12534
  ac_status=$?
 
12535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295
12536
  (exit $ac_status); }; }; then
6296
12537
  gt_cv_func_gnugettext1_libc=yes
6297
12538
else
6298
12539
  echo "$as_me: failed program was:" >&5
6299
 
cat conftest.$ac_ext >&5
 
12540
sed 's/^/| /' conftest.$ac_ext >&5
 
12541
 
6300
12542
gt_cv_func_gnugettext1_libc=no
6301
12543
fi
6302
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12544
rm -f conftest.err conftest.$ac_objext \
 
12545
      conftest$ac_exeext conftest.$ac_ext
6303
12546
fi
6304
 
echo "$as_me:6304: result: $gt_cv_func_gnugettext1_libc" >&5
 
12547
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6305
12548
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6306
12549
 
6307
12550
        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6308
12551
 
 
12552
 
 
12553
 
6309
12554
    use_additional=yes
6310
12555
 
6311
12556
  acl_save_prefix="$prefix"
6319
12564
  exec_prefix="$acl_save_exec_prefix"
6320
12565
  prefix="$acl_save_prefix"
6321
12566
 
 
12567
 
6322
12568
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6323
12569
if test "${with_libintl_prefix+set}" = set; then
6324
12570
  withval="$with_libintl_prefix"
6438
12684
          if test "X$found_dir" != "X"; then
6439
12685
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6440
12686
            if test "X$found_so" != "X"; then
6441
 
                                                        if test "X$found_dir" = "X/usr/lib"; then
 
12687
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6442
12688
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6443
12689
              else
6444
12690
                                                                                haveit=
6608
12854
                      fi
6609
12855
                    fi
6610
12856
                    ;;
 
12857
                  -R*)
 
12858
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
12859
                    if test "$enable_rpath" != no; then
 
12860
                                                                  haveit=
 
12861
                      for x in $rpathdirs; do
 
12862
                        if test "X$x" = "X$dir"; then
 
12863
                          haveit=yes
 
12864
                          break
 
12865
                        fi
 
12866
                      done
 
12867
                      if test -z "$haveit"; then
 
12868
                        rpathdirs="$rpathdirs $dir"
 
12869
                      fi
 
12870
                                                                  haveit=
 
12871
                      for x in $ltrpathdirs; do
 
12872
                        if test "X$x" = "X$dir"; then
 
12873
                          haveit=yes
 
12874
                          break
 
12875
                        fi
 
12876
                      done
 
12877
                      if test -z "$haveit"; then
 
12878
                        ltrpathdirs="$ltrpathdirs $dir"
 
12879
                      fi
 
12880
                    fi
 
12881
                    ;;
6611
12882
                  -l*)
6612
12883
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6613
12884
                    ;;
6656
12927
    done
6657
12928
  fi
6658
12929
 
6659
 
          echo "$as_me:6659: checking for GNU gettext in libintl" >&5
 
12930
          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6660
12931
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6661
12932
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6662
12933
  echo $ECHO_N "(cached) $ECHO_C" >&6
6666
12937
            gt_save_LIBS="$LIBS"
6667
12938
            LIBS="$LIBS $LIBINTL"
6668
12939
                        cat >conftest.$ac_ext <<_ACEOF
6669
 
#line 6669 "configure"
6670
 
#include "confdefs.h"
 
12940
/* confdefs.h.  */
 
12941
_ACEOF
 
12942
cat confdefs.h >>conftest.$ac_ext
 
12943
cat >>conftest.$ac_ext <<_ACEOF
 
12944
/* end confdefs.h.  */
6671
12945
#include <libintl.h>
6672
12946
extern int _nl_msg_cat_cntr;
 
12947
extern
 
12948
#ifdef __cplusplus
 
12949
"C"
 
12950
#endif
 
12951
const char *_nl_expand_alias ();
6673
12952
int
6674
12953
main ()
6675
12954
{
6676
12955
bindtextdomain ("", "");
6677
 
return (int) gettext ("") + _nl_msg_cat_cntr
 
12956
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6678
12957
  ;
6679
12958
  return 0;
6680
12959
}
6681
12960
_ACEOF
6682
12961
rm -f conftest.$ac_objext conftest$ac_exeext
6683
 
if { (eval echo "$as_me:6683: \"$ac_link\"") >&5
6684
 
  (eval $ac_link) 2>&5
 
12962
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12963
  (eval $ac_link) 2>conftest.er1
6685
12964
  ac_status=$?
6686
 
  echo "$as_me:6686: \$? = $ac_status" >&5
 
12965
  grep -v '^ *+' conftest.er1 >conftest.err
 
12966
  rm -f conftest.er1
 
12967
  cat conftest.err >&5
 
12968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687
12969
  (exit $ac_status); } &&
6688
 
         { ac_try='test -s conftest$ac_exeext'
6689
 
  { (eval echo "$as_me:6689: \"$ac_try\"") >&5
6690
 
  (eval $ac_try) 2>&5
6691
 
  ac_status=$?
6692
 
  echo "$as_me:6692: \$? = $ac_status" >&5
 
12970
         { ac_try='test -z "$ac_c_werror_flag"
 
12971
                         || test ! -s conftest.err'
 
12972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12973
  (eval $ac_try) 2>&5
 
12974
  ac_status=$?
 
12975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12976
  (exit $ac_status); }; } &&
 
12977
         { ac_try='test -s conftest$ac_exeext'
 
12978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12979
  (eval $ac_try) 2>&5
 
12980
  ac_status=$?
 
12981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693
12982
  (exit $ac_status); }; }; then
6694
12983
  gt_cv_func_gnugettext1_libintl=yes
6695
12984
else
6696
12985
  echo "$as_me: failed program was:" >&5
6697
 
cat conftest.$ac_ext >&5
 
12986
sed 's/^/| /' conftest.$ac_ext >&5
 
12987
 
6698
12988
gt_cv_func_gnugettext1_libintl=no
6699
12989
fi
6700
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12990
rm -f conftest.err conftest.$ac_objext \
 
12991
      conftest$ac_exeext conftest.$ac_ext
6701
12992
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6702
12993
              LIBS="$LIBS $LIBICONV"
6703
12994
              cat >conftest.$ac_ext <<_ACEOF
6704
 
#line 6704 "configure"
6705
 
#include "confdefs.h"
 
12995
/* confdefs.h.  */
 
12996
_ACEOF
 
12997
cat confdefs.h >>conftest.$ac_ext
 
12998
cat >>conftest.$ac_ext <<_ACEOF
 
12999
/* end confdefs.h.  */
6706
13000
#include <libintl.h>
6707
13001
extern int _nl_msg_cat_cntr;
 
13002
extern
 
13003
#ifdef __cplusplus
 
13004
"C"
 
13005
#endif
 
13006
const char *_nl_expand_alias ();
6708
13007
int
6709
13008
main ()
6710
13009
{
6711
13010
bindtextdomain ("", "");
6712
 
return (int) gettext ("") + _nl_msg_cat_cntr
 
13011
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6713
13012
  ;
6714
13013
  return 0;
6715
13014
}
6716
13015
_ACEOF
6717
13016
rm -f conftest.$ac_objext conftest$ac_exeext
6718
 
if { (eval echo "$as_me:6718: \"$ac_link\"") >&5
6719
 
  (eval $ac_link) 2>&5
 
13017
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13018
  (eval $ac_link) 2>conftest.er1
6720
13019
  ac_status=$?
6721
 
  echo "$as_me:6721: \$? = $ac_status" >&5
 
13020
  grep -v '^ *+' conftest.er1 >conftest.err
 
13021
  rm -f conftest.er1
 
13022
  cat conftest.err >&5
 
13023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722
13024
  (exit $ac_status); } &&
6723
 
         { ac_try='test -s conftest$ac_exeext'
6724
 
  { (eval echo "$as_me:6724: \"$ac_try\"") >&5
6725
 
  (eval $ac_try) 2>&5
6726
 
  ac_status=$?
6727
 
  echo "$as_me:6727: \$? = $ac_status" >&5
 
13025
         { ac_try='test -z "$ac_c_werror_flag"
 
13026
                         || test ! -s conftest.err'
 
13027
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13028
  (eval $ac_try) 2>&5
 
13029
  ac_status=$?
 
13030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13031
  (exit $ac_status); }; } &&
 
13032
         { ac_try='test -s conftest$ac_exeext'
 
13033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13034
  (eval $ac_try) 2>&5
 
13035
  ac_status=$?
 
13036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728
13037
  (exit $ac_status); }; }; then
6729
13038
  LIBINTL="$LIBINTL $LIBICONV"
6730
13039
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6732
13041
 
6733
13042
else
6734
13043
  echo "$as_me: failed program was:" >&5
6735
 
cat conftest.$ac_ext >&5
 
13044
sed 's/^/| /' conftest.$ac_ext >&5
 
13045
 
6736
13046
fi
6737
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13047
rm -f conftest.err conftest.$ac_objext \
 
13048
      conftest$ac_exeext conftest.$ac_ext
6738
13049
            fi
6739
13050
            CPPFLAGS="$gt_save_CPPFLAGS"
6740
13051
            LIBS="$gt_save_LIBS"
6741
13052
fi
6742
 
echo "$as_me:6742: result: $gt_cv_func_gnugettext1_libintl" >&5
 
13053
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6743
13054
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6744
13055
        fi
6745
13056
 
6746
13057
                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6747
13058
           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6748
 
                && test "$PACKAGE" != gettext; }; then
 
13059
                && test "$PACKAGE" != gettext-runtime \
 
13060
                && test "$PACKAGE" != gettext-tools; }; then
6749
13061
          gt_use_preinstalled_gnugettext=yes
 
13062
        else
 
13063
                    LIBINTL=
 
13064
          LTLIBINTL=
 
13065
          INCINTL=
6750
13066
        fi
6751
13067
 
 
13068
 
6752
13069
        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
6753
13070
                              nls_cv_use_gnu_gettext=yes
6754
13071
        fi
6755
13072
      fi
6756
13073
 
6757
13074
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
6758
 
                INTLOBJS="\$(GETTOBJS)"
6759
 
        BUILD_INCLUDED_LIBINTL=yes
 
13075
                BUILD_INCLUDED_LIBINTL=yes
6760
13076
        USE_INCLUDED_LIBINTL=yes
6761
13077
        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
6762
13078
        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6768
13084
                CATOBJEXT=.gmo
6769
13085
      fi
6770
13086
 
 
13087
 
6771
13088
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
6772
13089
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
6773
13090
 
6774
 
cat >>confdefs.h <<\EOF
 
13091
cat >>confdefs.h <<\_ACEOF
6775
13092
#define ENABLE_NLS 1
6776
 
EOF
 
13093
_ACEOF
6777
13094
 
6778
13095
    else
6779
13096
      USE_NLS=no
6780
13097
    fi
6781
13098
  fi
6782
13099
 
6783
 
  if test "$USE_NLS" = "yes"; then
6784
 
 
6785
 
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6786
 
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6787
 
        echo "$as_me:6787: checking how to link with libintl" >&5
 
13100
  echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
13101
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
 
13102
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
13103
echo "${ECHO_T}$USE_NLS" >&6
 
13104
  if test "$USE_NLS" = "yes"; then
 
13105
    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
13106
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
 
13107
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
13108
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
13109
        gt_source="external libintl"
 
13110
      else
 
13111
        gt_source="libc"
 
13112
      fi
 
13113
    else
 
13114
      gt_source="included intl directory"
 
13115
    fi
 
13116
    echo "$as_me:$LINENO: result: $gt_source" >&5
 
13117
echo "${ECHO_T}$gt_source" >&6
 
13118
  fi
 
13119
 
 
13120
  if test "$USE_NLS" = "yes"; then
 
13121
 
 
13122
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
13123
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
13124
        echo "$as_me:$LINENO: checking how to link with libintl" >&5
6788
13125
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6789
 
        echo "$as_me:6789: result: $LIBINTL" >&5
 
13126
        echo "$as_me:$LINENO: result: $LIBINTL" >&5
6790
13127
echo "${ECHO_T}$LIBINTL" >&6
6791
13128
 
6792
13129
  for element in $INCINTL; do
6813
13150
 
6814
13151
      fi
6815
13152
 
6816
 
cat >>confdefs.h <<\EOF
 
13153
 
 
13154
cat >>confdefs.h <<\_ACEOF
6817
13155
#define HAVE_GETTEXT 1
6818
 
EOF
6819
 
 
6820
 
cat >>confdefs.h <<\EOF
 
13156
_ACEOF
 
13157
 
 
13158
 
 
13159
cat >>confdefs.h <<\_ACEOF
6821
13160
#define HAVE_DCGETTEXT 1
6822
 
EOF
 
13161
_ACEOF
6823
13162
 
6824
13163
    fi
6825
13164
 
6826
13165
        POSUB=po
6827
13166
  fi
6828
13167
 
6829
 
            if test "$PACKAGE" = gettext; then
 
13168
 
 
13169
            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
6830
13170
      BUILD_INCLUDED_LIBINTL=yes
6831
13171
    fi
6832
13172
 
 
13173
 
 
13174
 
 
13175
 
 
13176
 
6833
13177
        nls_cv_header_intl=
6834
13178
    nls_cv_header_libgt=
6835
13179
 
6836
13180
        DATADIRNAME=share
6837
13181
 
 
13182
 
6838
13183
        INSTOBJEXT=.mo
6839
13184
 
 
13185
 
6840
13186
        GENCAT=gencat
6841
13187
 
 
13188
 
 
13189
        if test "$USE_INCLUDED_LIBINTL" = yes; then
 
13190
      INTLOBJS="\$(GETTOBJS)"
 
13191
    fi
 
13192
 
 
13193
 
6842
13194
        INTL_LIBTOOL_SUFFIX_PREFIX=
6843
13195
 
 
13196
 
 
13197
 
6844
13198
    INTLLIBS="$LIBINTL"
6845
13199
 
6846
 
ac_config_files="$ac_config_files Makefile doc/Makefile info/Makefile intl/Makefile lib/Makefile m4/Makefile makeinfo/Makefile makeinfo/tests/Makefile po/Makefile.in util/Makefile"
 
13200
 
 
13201
 
 
13202
 
 
13203
 
 
13204
 
 
13205
 
 
13206
                                                                                                    ac_config_files="$ac_config_files Makefile doc/Makefile info/Makefile intl/Makefile lib/Makefile m4/Makefile makeinfo/Makefile makeinfo/tests/Makefile po/Makefile.in util/Makefile"
6847
13207
 
6848
13208
cat >confcache <<\_ACEOF
6849
13209
# This file is a shell script that caches the results of configure
6855
13215
# config.status only pays attention to the cache file if you give it
6856
13216
# the --recheck option to rerun configure.
6857
13217
#
6858
 
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
13218
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6859
13219
# loading this file, other *unset* `ac_cv_foo' will be assigned the
6860
13220
# following values.
6861
13221
 
6873
13233
      # `set' does not quote correctly, so add quotes (double-quote
6874
13234
      # substitution turns \\\\ into \\, and sed turns \\ into \).
6875
13235
      sed -n \
6876
 
        "s/'/'\\\\''/g;
6877
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
13236
        "s/'/'\\\\''/g;
 
13237
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6878
13238
      ;;
6879
13239
    *)
6880
13240
      # `set' quotes correctly as required by POSIX, so do not add quotes.
6881
13241
      sed -n \
6882
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
13242
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6883
13243
      ;;
6884
13244
    esac;
6885
13245
} |
6890
13250
     t end
6891
13251
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6892
13252
     : end' >>confcache
6893
 
if cmp -s $cache_file confcache; then :; else
 
13253
if diff $cache_file confcache >/dev/null 2>&1; then :; else
6894
13254
  if test -w $cache_file; then
6895
13255
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6896
13256
    cat confcache >$cache_file
6909
13269
# trailing colons and then remove the whole line if VPATH becomes empty
6910
13270
# (actually we leave an empty line to preserve line numbers).
6911
13271
if test "x$srcdir" = x.; then
6912
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
13272
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
6913
13273
s/:*\$(srcdir):*/:/;
6914
13274
s/:*\${srcdir}:*/:/;
6915
13275
s/:*@srcdir@:*/:/;
6916
 
s/^\([^=]*=[    ]*\):*/\1/;
 
13276
s/^\([^=]*=[     ]*\):*/\1/;
6917
13277
s/:*$//;
6918
 
s/^[^=]*=[      ]*$//;
 
13278
s/^[^=]*=[       ]*$//;
6919
13279
}'
6920
13280
fi
6921
13281
 
6922
13282
DEFS=-DHAVE_CONFIG_H
6923
13283
 
 
13284
ac_libobjs=
 
13285
ac_ltlibobjs=
 
13286
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
13287
  # 1. Remove the extension, and $U if already installed.
 
13288
  ac_i=`echo "$ac_i" |
 
13289
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
13290
  # 2. Add them.
 
13291
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
13292
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
13293
done
 
13294
LIBOBJS=$ac_libobjs
 
13295
 
 
13296
LTLIBOBJS=$ac_ltlibobjs
 
13297
 
 
13298
 
 
13299
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
13300
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
13301
Usually this means the macro was only invoked conditionally." >&5
 
13302
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
13303
Usually this means the macro was only invoked conditionally." >&2;}
 
13304
   { (exit 1); exit 1; }; }
 
13305
fi
 
13306
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
13307
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
13308
Usually this means the macro was only invoked conditionally." >&5
 
13309
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
13310
Usually this means the macro was only invoked conditionally." >&2;}
 
13311
   { (exit 1); exit 1; }; }
 
13312
fi
 
13313
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13314
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
13315
Usually this means the macro was only invoked conditionally." >&5
 
13316
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
13317
Usually this means the macro was only invoked conditionally." >&2;}
 
13318
   { (exit 1); exit 1; }; }
 
13319
fi
 
13320
if test -z "${TOOLS_ONLY_TRUE}" && test -z "${TOOLS_ONLY_FALSE}"; then
 
13321
  { { echo "$as_me:$LINENO: error: conditional \"TOOLS_ONLY\" was never defined.
 
13322
Usually this means the macro was only invoked conditionally." >&5
 
13323
echo "$as_me: error: conditional \"TOOLS_ONLY\" was never defined.
 
13324
Usually this means the macro was only invoked conditionally." >&2;}
 
13325
   { (exit 1); exit 1; }; }
 
13326
fi
 
13327
if test -z "${INSTALL_WARNINGS_TRUE}" && test -z "${INSTALL_WARNINGS_FALSE}"; then
 
13328
  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_WARNINGS\" was never defined.
 
13329
Usually this means the macro was only invoked conditionally." >&5
 
13330
echo "$as_me: error: conditional \"INSTALL_WARNINGS\" was never defined.
 
13331
Usually this means the macro was only invoked conditionally." >&2;}
 
13332
   { (exit 1); exit 1; }; }
 
13333
fi
 
13334
 
6924
13335
: ${CONFIG_STATUS=./config.status}
6925
13336
ac_clean_files_save=$ac_clean_files
6926
13337
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6927
 
{ echo "$as_me:6927: creating $CONFIG_STATUS" >&5
 
13338
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6928
13339
echo "$as_me: creating $CONFIG_STATUS" >&6;}
6929
13340
cat >$CONFIG_STATUS <<_ACEOF
6930
13341
#! $SHELL
6931
 
# Generated automatically by configure.
 
13342
# Generated by $as_me.
6932
13343
# Run this file to recreate the current configuration.
6933
13344
# Compiler output produced by configure, useful for debugging
6934
13345
# configure, is in config.log if it exists.
6935
13346
 
6936
13347
debug=false
 
13348
ac_cs_recheck=false
 
13349
ac_cs_silent=false
6937
13350
SHELL=\${CONFIG_SHELL-$SHELL}
6938
 
ac_cs_invocation="\$0 \$@"
6939
 
 
6940
13351
_ACEOF
6941
13352
 
6942
13353
cat >>$CONFIG_STATUS <<\_ACEOF
 
13354
## --------------------- ##
 
13355
## M4sh Initialization.  ##
 
13356
## --------------------- ##
 
13357
 
6943
13358
# Be Bourne compatible
6944
13359
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6945
13360
  emulate sh
6946
13361
  NULLCMD=:
 
13362
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
13363
  # is contrary to our usage.  Disable this feature.
 
13364
  alias -g '${1+"$@"}'='"$@"'
6947
13365
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6948
13366
  set -o posix
6949
13367
fi
 
13368
DUALCASE=1; export DUALCASE # for MKS sh
 
13369
 
 
13370
# Support unset when possible.
 
13371
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
13372
  as_unset=unset
 
13373
else
 
13374
  as_unset=false
 
13375
fi
 
13376
 
 
13377
 
 
13378
# Work around bugs in pre-3.0 UWIN ksh.
 
13379
$as_unset ENV MAIL MAILPATH
 
13380
PS1='$ '
 
13381
PS2='> '
 
13382
PS4='+ '
 
13383
 
 
13384
# NLS nuisances.
 
13385
for as_var in \
 
13386
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
13387
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
13388
  LC_TELEPHONE LC_TIME
 
13389
do
 
13390
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
13391
    eval $as_var=C; export $as_var
 
13392
  else
 
13393
    $as_unset $as_var
 
13394
  fi
 
13395
done
 
13396
 
 
13397
# Required to use basename.
 
13398
if expr a : '\(a\)' >/dev/null 2>&1; then
 
13399
  as_expr=expr
 
13400
else
 
13401
  as_expr=false
 
13402
fi
 
13403
 
 
13404
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
13405
  as_basename=basename
 
13406
else
 
13407
  as_basename=false
 
13408
fi
 
13409
 
6950
13410
 
6951
13411
# Name of the executable.
6952
 
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
13412
as_me=`$as_basename "$0" ||
 
13413
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
13414
         X"$0" : 'X\(//\)$' \| \
 
13415
         X"$0" : 'X\(/\)$' \| \
 
13416
         .     : '\(.\)' 2>/dev/null ||
 
13417
echo X/"$0" |
 
13418
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
13419
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
13420
          /^X\/\(\/\).*/{ s//\1/; q; }
 
13421
          s/.*/./; q'`
 
13422
 
 
13423
 
 
13424
# PATH needs CR, and LINENO needs CR and PATH.
 
13425
# Avoid depending upon Character Ranges.
 
13426
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13427
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13428
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
13429
as_cr_digits='0123456789'
 
13430
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13431
 
 
13432
# The user is always right.
 
13433
if test "${PATH_SEPARATOR+set}" != set; then
 
13434
  echo "#! /bin/sh" >conf$$.sh
 
13435
  echo  "exit 0"   >>conf$$.sh
 
13436
  chmod +x conf$$.sh
 
13437
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
13438
    PATH_SEPARATOR=';'
 
13439
  else
 
13440
    PATH_SEPARATOR=:
 
13441
  fi
 
13442
  rm -f conf$$.sh
 
13443
fi
 
13444
 
 
13445
 
 
13446
  as_lineno_1=$LINENO
 
13447
  as_lineno_2=$LINENO
 
13448
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
13449
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
13450
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
13451
  # Find who we are.  Look in the path if we contain no path at all
 
13452
  # relative or not.
 
13453
  case $0 in
 
13454
    *[\\/]* ) as_myself=$0 ;;
 
13455
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13456
for as_dir in $PATH
 
13457
do
 
13458
  IFS=$as_save_IFS
 
13459
  test -z "$as_dir" && as_dir=.
 
13460
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13461
done
 
13462
 
 
13463
       ;;
 
13464
  esac
 
13465
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
13466
  # in which case we are not to be found in the path.
 
13467
  if test "x$as_myself" = x; then
 
13468
    as_myself=$0
 
13469
  fi
 
13470
  if test ! -f "$as_myself"; then
 
13471
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
13472
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
13473
   { (exit 1); exit 1; }; }
 
13474
  fi
 
13475
  case $CONFIG_SHELL in
 
13476
  '')
 
13477
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13478
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
13479
do
 
13480
  IFS=$as_save_IFS
 
13481
  test -z "$as_dir" && as_dir=.
 
13482
  for as_base in sh bash ksh sh5; do
 
13483
         case $as_dir in
 
13484
         /*)
 
13485
           if ("$as_dir/$as_base" -c '
 
13486
  as_lineno_1=$LINENO
 
13487
  as_lineno_2=$LINENO
 
13488
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
13489
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
13490
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
13491
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
13492
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
13493
             CONFIG_SHELL=$as_dir/$as_base
 
13494
             export CONFIG_SHELL
 
13495
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
13496
           fi;;
 
13497
         esac
 
13498
       done
 
13499
done
 
13500
;;
 
13501
  esac
 
13502
 
 
13503
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
13504
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
13505
  # line-number line before each line; the second 'sed' does the real
 
13506
  # work.  The second script uses 'N' to pair each line-number line
 
13507
  # with the numbered line, and appends trailing '-' during
 
13508
  # substitution so that $LINENO is not a special case at line end.
 
13509
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
13510
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
13511
  sed '=' <$as_myself |
 
13512
    sed '
 
13513
      N
 
13514
      s,$,-,
 
13515
      : loop
 
13516
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
13517
      t loop
 
13518
      s,-$,,
 
13519
      s,^['$as_cr_digits']*\n,,
 
13520
    ' >$as_me.lineno &&
 
13521
  chmod +x $as_me.lineno ||
 
13522
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
13523
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
13524
   { (exit 1); exit 1; }; }
 
13525
 
 
13526
  # Don't try to exec as it changes $[0], causing all sort of problems
 
13527
  # (the dirname of $[0] is not the place where we might find the
 
13528
  # original and so on.  Autoconf is especially sensible to this).
 
13529
  . ./$as_me.lineno
 
13530
  # Exit status is that of the last command.
 
13531
  exit
 
13532
}
 
13533
 
 
13534
 
 
13535
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
13536
  *c*,-n*) ECHO_N= ECHO_C='
 
13537
' ECHO_T='      ' ;;
 
13538
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
13539
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
13540
esac
6953
13541
 
6954
13542
if expr a : '\(a\)' >/dev/null 2>&1; then
6955
13543
  as_expr=expr
6975
13563
fi
6976
13564
rm -f conf$$ conf$$.exe conf$$.file
6977
13565
 
 
13566
if mkdir -p . 2>/dev/null; then
 
13567
  as_mkdir_p=:
 
13568
else
 
13569
  test -d ./-p && rmdir ./-p
 
13570
  as_mkdir_p=false
 
13571
fi
 
13572
 
6978
13573
as_executable_p="test -f"
6979
13574
 
6980
 
# Support unset when possible.
6981
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6982
 
  as_unset=unset
6983
 
else
6984
 
  as_unset=false
6985
 
fi
6986
 
 
6987
 
# NLS nuisances.
6988
 
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
6989
 
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
6990
 
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
6991
 
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
6992
 
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
6993
 
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
6994
 
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
6995
 
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
13575
# Sed expression to map a string onto a valid CPP name.
 
13576
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
13577
 
 
13578
# Sed expression to map a string onto a valid variable name.
 
13579
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
13580
 
6996
13581
 
6997
13582
# IFS
6998
13583
# We need space, tab and new line, in precisely that order.
7001
13586
IFS="   $as_nl"
7002
13587
 
7003
13588
# CDPATH.
7004
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
13589
$as_unset CDPATH
7005
13590
 
7006
13591
exec 6>&1
7007
13592
 
 
13593
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
13594
# report actual input values of CONFIG_FILES etc. instead of their
 
13595
# values after options handling.  Logging --version etc. is OK.
 
13596
exec 5>>config.log
 
13597
{
 
13598
  echo
 
13599
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
13600
## Running $as_me. ##
 
13601
_ASBOX
 
13602
} >&5
 
13603
cat >&5 <<_CSEOF
 
13604
 
 
13605
This file was extended by GNU Texinfo $as_me 4.8, which was
 
13606
generated by GNU Autoconf 2.59.  Invocation command line was
 
13607
 
 
13608
  CONFIG_FILES    = $CONFIG_FILES
 
13609
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
13610
  CONFIG_LINKS    = $CONFIG_LINKS
 
13611
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
13612
  $ $0 $@
 
13613
 
 
13614
_CSEOF
 
13615
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
13616
echo >&5
7008
13617
_ACEOF
7009
13618
 
7010
13619
# Files that config.status was made for.
7024
13633
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7025
13634
fi
7026
13635
 
7027
 
cat >>$CONFIG_STATUS <<\EOF
 
13636
cat >>$CONFIG_STATUS <<\_ACEOF
7028
13637
 
7029
13638
ac_cs_usage="\
7030
13639
\`$as_me' instantiates files from templates according to the
7034
13643
 
7035
13644
  -h, --help       print this help, then exit
7036
13645
  -V, --version    print version number, then exit
 
13646
  -q, --quiet      do not print progress messages
7037
13647
  -d, --debug      don't remove temporary files
7038
13648
      --recheck    update $as_me by reconfiguring in the same conditions
7039
13649
  --file=FILE[:TEMPLATE]
7040
 
                   instantiate the configuration file FILE
 
13650
                   instantiate the configuration file FILE
7041
13651
  --header=FILE[:TEMPLATE]
7042
 
                   instantiate the configuration header FILE
 
13652
                   instantiate the configuration header FILE
7043
13653
 
7044
13654
Configuration files:
7045
13655
$config_files
7051
13661
$config_commands
7052
13662
 
7053
13663
Report bugs to <bug-autoconf@gnu.org>."
7054
 
EOF
 
13664
_ACEOF
7055
13665
 
7056
 
cat >>$CONFIG_STATUS <<EOF
 
13666
cat >>$CONFIG_STATUS <<_ACEOF
7057
13667
ac_cs_version="\\
7058
 
config.status
7059
 
configured by $0, generated by GNU Autoconf 2.52,
 
13668
GNU Texinfo config.status 4.8
 
13669
configured by $0, generated by GNU Autoconf 2.59,
7060
13670
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7061
13671
 
7062
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7063
 
Free Software Foundation, Inc.
 
13672
Copyright (C) 2003 Free Software Foundation, Inc.
7064
13673
This config.status script is free software; the Free Software Foundation
7065
13674
gives unlimited permission to copy, distribute and modify it."
7066
13675
srcdir=$srcdir
7067
13676
INSTALL="$INSTALL"
7068
 
EOF
 
13677
_ACEOF
7069
13678
 
7070
 
cat >>$CONFIG_STATUS <<\EOF
 
13679
cat >>$CONFIG_STATUS <<\_ACEOF
7071
13680
# If no file are specified by the user, then we need to provide default
7072
13681
# value.  By we need to know if files were specified by the user.
7073
13682
ac_need_defaults=:
7077
13686
  --*=*)
7078
13687
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7079
13688
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7080
 
    shift
7081
 
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7082
 
    shift
7083
 
    ;;
7084
 
  -*);;
 
13689
    ac_shift=:
 
13690
    ;;
 
13691
  -*)
 
13692
    ac_option=$1
 
13693
    ac_optarg=$2
 
13694
    ac_shift=shift
 
13695
    ;;
7085
13696
  *) # This is not an option, so the user has probably given explicit
7086
13697
     # arguments.
 
13698
     ac_option=$1
7087
13699
     ac_need_defaults=false;;
7088
13700
  esac
7089
13701
 
7090
 
  case $1 in
 
13702
  case $ac_option in
7091
13703
  # Handling of the options.
7092
 
EOF
7093
 
cat >>$CONFIG_STATUS <<EOF
 
13704
_ACEOF
 
13705
cat >>$CONFIG_STATUS <<\_ACEOF
7094
13706
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7095
 
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7096
 
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7097
 
EOF
7098
 
cat >>$CONFIG_STATUS <<\EOF
 
13707
    ac_cs_recheck=: ;;
7099
13708
  --version | --vers* | -V )
7100
13709
    echo "$ac_cs_version"; exit 0 ;;
7101
13710
  --he | --h)
7102
13711
    # Conflict between --help and --header
7103
 
    { { echo "$as_me:7103: error: ambiguous option: $1
 
13712
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7104
13713
Try \`$0 --help' for more information." >&5
7105
13714
echo "$as_me: error: ambiguous option: $1
7106
13715
Try \`$0 --help' for more information." >&2;}
7110
13719
  --debug | --d* | -d )
7111
13720
    debug=: ;;
7112
13721
  --file | --fil | --fi | --f )
7113
 
    shift
7114
 
    CONFIG_FILES="$CONFIG_FILES $1"
 
13722
    $ac_shift
 
13723
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7115
13724
    ac_need_defaults=false;;
7116
13725
  --header | --heade | --head | --hea )
7117
 
    shift
7118
 
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
13726
    $ac_shift
 
13727
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7119
13728
    ac_need_defaults=false;;
 
13729
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
13730
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
13731
    ac_cs_silent=: ;;
7120
13732
 
7121
13733
  # This is an error.
7122
 
  -*) { { echo "$as_me:7122: error: unrecognized option: $1
 
13734
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7123
13735
Try \`$0 --help' for more information." >&5
7124
13736
echo "$as_me: error: unrecognized option: $1
7125
13737
Try \`$0 --help' for more information." >&2;}
7131
13743
  shift
7132
13744
done
7133
13745
 
7134
 
exec 5>>config.log
7135
 
cat >&5 << _ACEOF
7136
 
 
7137
 
## ----------------------- ##
7138
 
## Running config.status.  ##
7139
 
## ----------------------- ##
7140
 
 
7141
 
This file was extended by $as_me 2.52, executed with
7142
 
  CONFIG_FILES    = $CONFIG_FILES
7143
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
7144
 
  CONFIG_LINKS    = $CONFIG_LINKS
7145
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
7146
 
  > $ac_cs_invocation
7147
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
7148
 
 
7149
 
_ACEOF
7150
 
EOF
7151
 
 
7152
 
cat >>$CONFIG_STATUS <<EOF
 
13746
ac_configure_extra_args=
 
13747
 
 
13748
if $ac_cs_silent; then
 
13749
  exec 6>/dev/null
 
13750
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
13751
fi
 
13752
 
 
13753
_ACEOF
 
13754
cat >>$CONFIG_STATUS <<_ACEOF
 
13755
if \$ac_cs_recheck; then
 
13756
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
13757
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
13758
fi
 
13759
 
 
13760
_ACEOF
 
13761
 
 
13762
cat >>$CONFIG_STATUS <<_ACEOF
7153
13763
#
7154
13764
# INIT-COMMANDS section.
7155
13765
#
7156
13766
 
7157
 
AMDEP_TRUE="$AMDEP_TRUE"
7158
 
ac_aux_dir="$ac_aux_dir"
7159
 
# Capture the value of obsolete $ALL_LINGUAS because we need it to compute
7160
 
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
 
13767
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
13768
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
13769
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
7161
13770
    # from automake.
7162
 
    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
 
13771
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7163
13772
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
7164
13773
    LINGUAS="${LINGUAS-%UNSET%}"
7165
13774
 
7166
 
EOF
7167
 
 
7168
 
cat >>$CONFIG_STATUS <<\EOF
 
13775
 
 
13776
_ACEOF
 
13777
 
 
13778
 
 
13779
 
 
13780
cat >>$CONFIG_STATUS <<\_ACEOF
7169
13781
for ac_config_target in $ac_config_targets
7170
13782
do
7171
13783
  case "$ac_config_target" in
7180
13792
  "makeinfo/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES makeinfo/tests/Makefile" ;;
7181
13793
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
7182
13794
  "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
 
13795
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7183
13796
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7184
 
  "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
7185
13797
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7186
 
  *) { { echo "$as_me:7186: error: invalid argument: $ac_config_target" >&5
 
13798
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7187
13799
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7188
13800
   { (exit 1); exit 1; }; };;
7189
13801
  esac
7199
13811
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7200
13812
fi
7201
13813
 
 
13814
# Have a temporary directory for convenience.  Make it in the build tree
 
13815
# simply because there is no reason to put it here, and in addition,
 
13816
# creating and moving files from /tmp can sometimes cause problems.
7202
13817
# Create a temporary directory, and hook for its removal unless debugging.
7203
13818
$debug ||
7204
13819
{
7207
13822
}
7208
13823
 
7209
13824
# Create a (secure) tmp directory for tmp files.
7210
 
: ${TMPDIR=/tmp}
 
13825
 
7211
13826
{
7212
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
13827
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7213
13828
  test -n "$tmp" && test -d "$tmp"
7214
13829
}  ||
7215
13830
{
7216
 
  tmp=$TMPDIR/cs$$-$RANDOM
 
13831
  tmp=./confstat$$-$RANDOM
7217
13832
  (umask 077 && mkdir $tmp)
7218
13833
} ||
7219
13834
{
7220
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
13835
   echo "$me: cannot create a temporary directory in ." >&2
7221
13836
   { (exit 1); exit 1; }
7222
13837
}
7223
13838
 
7224
 
EOF
 
13839
_ACEOF
7225
13840
 
7226
 
cat >>$CONFIG_STATUS <<EOF
 
13841
cat >>$CONFIG_STATUS <<_ACEOF
7227
13842
 
7228
13843
#
7229
13844
# CONFIG_FILES section.
7236
13851
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7237
13852
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7238
13853
s,@SHELL@,$SHELL,;t t
 
13854
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
13855
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
13856
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
13857
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
13858
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
13859
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7239
13860
s,@exec_prefix@,$exec_prefix,;t t
7240
13861
s,@prefix@,$prefix,;t t
7241
13862
s,@program_transform_name@,$program_transform_name,;t t
7251
13872
s,@oldincludedir@,$oldincludedir,;t t
7252
13873
s,@infodir@,$infodir,;t t
7253
13874
s,@mandir@,$mandir,;t t
7254
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7255
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7256
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7257
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7258
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7259
13875
s,@build_alias@,$build_alias,;t t
7260
13876
s,@host_alias@,$host_alias,;t t
7261
13877
s,@target_alias@,$target_alias,;t t
 
13878
s,@DEFS@,$DEFS,;t t
7262
13879
s,@ECHO_C@,$ECHO_C,;t t
7263
13880
s,@ECHO_N@,$ECHO_N,;t t
7264
13881
s,@ECHO_T@,$ECHO_T,;t t
7265
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7266
 
s,@DEFS@,$DEFS,;t t
7267
13882
s,@LIBS@,$LIBS,;t t
7268
13883
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7269
13884
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7270
13885
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
13886
s,@CYGPATH_W@,$CYGPATH_W,;t t
7271
13887
s,@PACKAGE@,$PACKAGE,;t t
7272
13888
s,@VERSION@,$VERSION,;t t
7273
 
s,@EXEEXT@,$EXEEXT,;t t
7274
 
s,@OBJEXT@,$OBJEXT,;t t
7275
13889
s,@ACLOCAL@,$ACLOCAL,;t t
7276
13890
s,@AUTOCONF@,$AUTOCONF,;t t
7277
13891
s,@AUTOMAKE@,$AUTOMAKE,;t t
7278
13892
s,@AUTOHEADER@,$AUTOHEADER,;t t
7279
13893
s,@MAKEINFO@,$MAKEINFO,;t t
7280
 
s,@AMTAR@,$AMTAR,;t t
7281
13894
s,@install_sh@,$install_sh,;t t
 
13895
s,@STRIP@,$STRIP,;t t
 
13896
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7282
13897
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
13898
s,@mkdir_p@,$mkdir_p,;t t
7283
13899
s,@AWK@,$AWK,;t t
7284
13900
s,@SET_MAKE@,$SET_MAKE,;t t
7285
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7286
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7287
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7288
 
s,@DEPDIR@,$DEPDIR,;t t
7289
 
s,@TEXINFO_MAINT_TRUE@,$TEXINFO_MAINT_TRUE,;t t
7290
 
s,@TEXINFO_MAINT_FALSE@,$TEXINFO_MAINT_FALSE,;t t
 
13901
s,@am__leading_dot@,$am__leading_dot,;t t
 
13902
s,@AMTAR@,$AMTAR,;t t
 
13903
s,@am__tar@,$am__tar,;t t
 
13904
s,@am__untar@,$am__untar,;t t
 
13905
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
13906
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
13907
s,@MAINT@,$MAINT,;t t
7291
13908
s,@CC@,$CC,;t t
7292
13909
s,@CFLAGS@,$CFLAGS,;t t
7293
13910
s,@LDFLAGS@,$LDFLAGS,;t t
7294
13911
s,@CPPFLAGS@,$CPPFLAGS,;t t
7295
13912
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
13913
s,@EXEEXT@,$EXEEXT,;t t
 
13914
s,@OBJEXT@,$OBJEXT,;t t
 
13915
s,@DEPDIR@,$DEPDIR,;t t
7296
13916
s,@am__include@,$am__include,;t t
7297
13917
s,@am__quote@,$am__quote,;t t
 
13918
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
13919
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
13920
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7298
13921
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
13922
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
13923
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7299
13924
s,@CPP@,$CPP,;t t
 
13925
s,@EGREP@,$EGREP,;t t
7300
13926
s,@RANLIB@,$RANLIB,;t t
7301
13927
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
13928
s,@HELP2MAN@,$HELP2MAN,;t t
7302
13929
s,@ALLOCA@,$ALLOCA,;t t
7303
13930
s,@LIBOBJS@,$LIBOBJS,;t t
7304
 
s,@TERMLIBS@,$TERMLIBS,;t t
7305
 
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7306
 
s,@MSGFMT@,$MSGFMT,;t t
7307
 
s,@GMSGFMT@,$GMSGFMT,;t t
7308
 
s,@XGETTEXT@,$XGETTEXT,;t t
7309
 
s,@MSGMERGE@,$MSGMERGE,;t t
7310
13931
s,@build@,$build,;t t
7311
13932
s,@build_cpu@,$build_cpu,;t t
7312
13933
s,@build_vendor@,$build_vendor,;t t
7313
13934
s,@build_os@,$build_os,;t t
 
13935
s,@native_tools@,$native_tools,;t t
 
13936
s,@TOOLS_ONLY_TRUE@,$TOOLS_ONLY_TRUE,;t t
 
13937
s,@TOOLS_ONLY_FALSE@,$TOOLS_ONLY_FALSE,;t t
 
13938
s,@TERMLIBS@,$TERMLIBS,;t t
7314
13939
s,@host@,$host,;t t
7315
13940
s,@host_cpu@,$host_cpu,;t t
7316
13941
s,@host_vendor@,$host_vendor,;t t
7317
13942
s,@host_os@,$host_os,;t t
 
13943
s,@INSTALL_WARNINGS_TRUE@,$INSTALL_WARNINGS_TRUE,;t t
 
13944
s,@INSTALL_WARNINGS_FALSE@,$INSTALL_WARNINGS_FALSE,;t t
 
13945
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
 
13946
s,@USE_NLS@,$USE_NLS,;t t
 
13947
s,@MSGFMT@,$MSGFMT,;t t
 
13948
s,@GMSGFMT@,$GMSGFMT,;t t
 
13949
s,@XGETTEXT@,$XGETTEXT,;t t
 
13950
s,@MSGMERGE@,$MSGMERGE,;t t
7318
13951
s,@GLIBC21@,$GLIBC21,;t t
 
13952
s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
 
13953
s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
 
13954
s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
 
13955
s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
7319
13956
s,@LIBICONV@,$LIBICONV,;t t
7320
13957
s,@LTLIBICONV@,$LTLIBICONV,;t t
7321
13958
s,@INTLBISON@,$INTLBISON,;t t
7322
 
s,@USE_NLS@,$USE_NLS,;t t
7323
13959
s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
7324
13960
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7325
13961
s,@CATOBJEXT@,$CATOBJEXT,;t t
7326
 
s,@INTLOBJS@,$INTLOBJS,;t t
7327
13962
s,@DATADIRNAME@,$DATADIRNAME,;t t
7328
13963
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7329
13964
s,@GENCAT@,$GENCAT,;t t
 
13965
s,@INTLOBJS@,$INTLOBJS,;t t
7330
13966
s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
7331
13967
s,@INTLLIBS@,$INTLLIBS,;t t
7332
13968
s,@LIBINTL@,$LIBINTL,;t t
7333
13969
s,@LTLIBINTL@,$LTLIBINTL,;t t
7334
13970
s,@POSUB@,$POSUB,;t t
 
13971
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7335
13972
CEOF
7336
13973
 
7337
 
EOF
 
13974
_ACEOF
7338
13975
 
7339
 
  cat >>$CONFIG_STATUS <<\EOF
 
13976
  cat >>$CONFIG_STATUS <<\_ACEOF
7340
13977
  # Split the substitutions into bite-sized pieces for seds with
7341
13978
  # small command number limits, like on Digital OSF/1 and HP-UX.
7342
13979
  ac_max_sed_lines=48
7361
13998
      (echo ':t
7362
13999
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7363
14000
      if test -z "$ac_sed_cmds"; then
7364
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
14001
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7365
14002
      else
7366
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
14003
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7367
14004
      fi
7368
14005
      ac_sed_frag=`expr $ac_sed_frag + 1`
7369
14006
      ac_beg=$ac_end
7375
14012
  fi
7376
14013
fi # test -n "$CONFIG_FILES"
7377
14014
 
7378
 
EOF
7379
 
cat >>$CONFIG_STATUS <<\EOF
 
14015
_ACEOF
 
14016
cat >>$CONFIG_STATUS <<\_ACEOF
7380
14017
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7381
14018
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7382
14019
  case $ac_file in
7383
14020
  - | *:- | *:-:* ) # input from stdin
7384
 
        cat >$tmp/stdin
7385
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7386
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
14021
        cat >$tmp/stdin
 
14022
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
14023
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7387
14024
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7388
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
14025
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7389
14026
  * )   ac_file_in=$ac_file.in ;;
7390
14027
  esac
7391
14028
 
7392
14029
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7393
 
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7394
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
7395
 
         X"$ac_file" : 'X\(//\)$' \| \
7396
 
         X"$ac_file" : 'X\(/\)' \| \
7397
 
         .     : '\(.\)' 2>/dev/null ||
 
14030
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
14031
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14032
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14033
         X"$ac_file" : 'X\(//\)$' \| \
 
14034
         X"$ac_file" : 'X\(/\)' \| \
 
14035
         .     : '\(.\)' 2>/dev/null ||
7398
14036
echo X"$ac_file" |
7399
14037
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7400
14038
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7401
14039
          /^X\(\/\/\)$/{ s//\1/; q; }
7402
14040
          /^X\(\/\).*/{ s//\1/; q; }
7403
14041
          s/.*/./; q'`
7404
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7405
 
    { case "$ac_dir" in
7406
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7407
 
  *)                      as_incr_dir=.;;
7408
 
esac
7409
 
as_dummy="$ac_dir"
7410
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7411
 
  case $as_mkdir_dir in
7412
 
    # Skip DOS drivespec
7413
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
7414
 
    *)
7415
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
7416
 
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7417
 
    ;;
7418
 
  esac
7419
 
done; }
7420
 
 
7421
 
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7422
 
    # A "../" for each directory in $ac_dir_suffix.
7423
 
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
 
14042
  { if $as_mkdir_p; then
 
14043
    mkdir -p "$ac_dir"
7424
14044
  else
7425
 
    ac_dir_suffix= ac_dots=
7426
 
  fi
7427
 
 
7428
 
  case $srcdir in
7429
 
  .)  ac_srcdir=.
7430
 
      if test -z "$ac_dots"; then
7431
 
         ac_top_srcdir=.
7432
 
      else
7433
 
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7434
 
      fi ;;
7435
 
  [\\/]* | ?:[\\/]* )
7436
 
      ac_srcdir=$srcdir$ac_dir_suffix;
7437
 
      ac_top_srcdir=$srcdir ;;
 
14045
    as_dir="$ac_dir"
 
14046
    as_dirs=
 
14047
    while test ! -d "$as_dir"; do
 
14048
      as_dirs="$as_dir $as_dirs"
 
14049
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
14050
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14051
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14052
         X"$as_dir" : 'X\(//\)$' \| \
 
14053
         X"$as_dir" : 'X\(/\)' \| \
 
14054
         .     : '\(.\)' 2>/dev/null ||
 
14055
echo X"$as_dir" |
 
14056
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14057
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14058
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14059
          /^X\(\/\).*/{ s//\1/; q; }
 
14060
          s/.*/./; q'`
 
14061
    done
 
14062
    test ! -n "$as_dirs" || mkdir $as_dirs
 
14063
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
14064
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
14065
   { (exit 1); exit 1; }; }; }
 
14066
 
 
14067
  ac_builddir=.
 
14068
 
 
14069
if test "$ac_dir" != .; then
 
14070
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
14071
  # A "../" for each directory in $ac_dir_suffix.
 
14072
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
14073
else
 
14074
  ac_dir_suffix= ac_top_builddir=
 
14075
fi
 
14076
 
 
14077
case $srcdir in
 
14078
  .)  # No --srcdir option.  We are building in place.
 
14079
    ac_srcdir=.
 
14080
    if test -z "$ac_top_builddir"; then
 
14081
       ac_top_srcdir=.
 
14082
    else
 
14083
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
14084
    fi ;;
 
14085
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
14086
    ac_srcdir=$srcdir$ac_dir_suffix;
 
14087
    ac_top_srcdir=$srcdir ;;
7438
14088
  *) # Relative path.
7439
 
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7440
 
    ac_top_srcdir=$ac_dots$srcdir ;;
7441
 
  esac
 
14089
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
14090
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
14091
esac
 
14092
 
 
14093
# Do not use `cd foo && pwd` to compute absolute paths, because
 
14094
# the directories may not exist.
 
14095
case `pwd` in
 
14096
.) ac_abs_builddir="$ac_dir";;
 
14097
*)
 
14098
  case "$ac_dir" in
 
14099
  .) ac_abs_builddir=`pwd`;;
 
14100
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
14101
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
14102
  esac;;
 
14103
esac
 
14104
case $ac_abs_builddir in
 
14105
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
14106
*)
 
14107
  case ${ac_top_builddir}. in
 
14108
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
14109
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
14110
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
14111
  esac;;
 
14112
esac
 
14113
case $ac_abs_builddir in
 
14114
.) ac_abs_srcdir=$ac_srcdir;;
 
14115
*)
 
14116
  case $ac_srcdir in
 
14117
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
14118
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
14119
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
14120
  esac;;
 
14121
esac
 
14122
case $ac_abs_builddir in
 
14123
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
14124
*)
 
14125
  case $ac_top_srcdir in
 
14126
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
14127
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
14128
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
14129
  esac;;
 
14130
esac
 
14131
 
7442
14132
 
7443
14133
  case $INSTALL in
7444
14134
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7445
 
  *) ac_INSTALL=$ac_dots$INSTALL ;;
 
14135
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7446
14136
  esac
7447
14137
 
7448
14138
  if test x"$ac_file" != x-; then
7449
 
    { echo "$as_me:7449: creating $ac_file" >&5
 
14139
    { echo "$as_me:$LINENO: creating $ac_file" >&5
7450
14140
echo "$as_me: creating $ac_file" >&6;}
7451
14141
    rm -f "$ac_file"
7452
14142
  fi
7453
14143
  # Let's still pretend it is `configure' which instantiates (i.e., don't
7454
14144
  # use $as_me), people would be surprised to read:
7455
 
  #    /* config.h.  Generated automatically by config.status.  */
7456
 
  configure_input="Generated automatically from `echo $ac_file_in |
7457
 
                                                 sed 's,.*/,,'` by configure."
 
14145
  #    /* config.h.  Generated by config.status.  */
 
14146
  if test x"$ac_file" = x-; then
 
14147
    configure_input=
 
14148
  else
 
14149
    configure_input="$ac_file.  "
 
14150
  fi
 
14151
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
14152
                                     sed 's,.*/,,'` by configure."
7458
14153
 
7459
14154
  # First look for the input files in the build tree, otherwise in the
7460
14155
  # src tree.
7463
14158
      case $f in
7464
14159
      -) echo $tmp/stdin ;;
7465
14160
      [\\/$]*)
7466
 
         # Absolute (can't be DOS-style, as IFS=:)
7467
 
         test -f "$f" || { { echo "$as_me:7467: error: cannot find input file: $f" >&5
 
14161
         # Absolute (can't be DOS-style, as IFS=:)
 
14162
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7468
14163
echo "$as_me: error: cannot find input file: $f" >&2;}
7469
14164
   { (exit 1); exit 1; }; }
7470
 
         echo $f;;
 
14165
         echo "$f";;
7471
14166
      *) # Relative
7472
 
         if test -f "$f"; then
7473
 
           # Build tree
7474
 
           echo $f
7475
 
         elif test -f "$srcdir/$f"; then
7476
 
           # Source tree
7477
 
           echo $srcdir/$f
7478
 
         else
7479
 
           # /dev/null tree
7480
 
           { { echo "$as_me:7480: error: cannot find input file: $f" >&5
 
14167
         if test -f "$f"; then
 
14168
           # Build tree
 
14169
           echo "$f"
 
14170
         elif test -f "$srcdir/$f"; then
 
14171
           # Source tree
 
14172
           echo "$srcdir/$f"
 
14173
         else
 
14174
           # /dev/null tree
 
14175
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7481
14176
echo "$as_me: error: cannot find input file: $f" >&2;}
7482
14177
   { (exit 1); exit 1; }; }
7483
 
         fi;;
 
14178
         fi;;
7484
14179
      esac
7485
14180
    done` || { (exit 1); exit 1; }
7486
 
EOF
7487
 
cat >>$CONFIG_STATUS <<EOF
 
14181
_ACEOF
 
14182
cat >>$CONFIG_STATUS <<_ACEOF
7488
14183
  sed "$ac_vpsub
7489
14184
$extrasub
7490
 
EOF
7491
 
cat >>$CONFIG_STATUS <<\EOF
 
14185
_ACEOF
 
14186
cat >>$CONFIG_STATUS <<\_ACEOF
7492
14187
:t
7493
14188
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7494
14189
s,@configure_input@,$configure_input,;t t
7495
14190
s,@srcdir@,$ac_srcdir,;t t
 
14191
s,@abs_srcdir@,$ac_abs_srcdir,;t t
7496
14192
s,@top_srcdir@,$ac_top_srcdir,;t t
 
14193
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
14194
s,@builddir@,$ac_builddir,;t t
 
14195
s,@abs_builddir@,$ac_abs_builddir,;t t
 
14196
s,@top_builddir@,$ac_top_builddir,;t t
 
14197
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7497
14198
s,@INSTALL@,$ac_INSTALL,;t t
7498
14199
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7499
14200
  rm -f $tmp/stdin
7505
14206
  fi
7506
14207
 
7507
14208
done
7508
 
EOF
7509
 
cat >>$CONFIG_STATUS <<\EOF
 
14209
_ACEOF
 
14210
cat >>$CONFIG_STATUS <<\_ACEOF
7510
14211
 
7511
14212
#
7512
14213
# CONFIG_HEADER section.
7516
14217
# NAME is the cpp macro being defined and VALUE is the value it is being given.
7517
14218
#
7518
14219
# ac_d sets the value in "#define NAME VALUE" lines.
7519
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7520
 
ac_dB='[        ].*$,\1#\2'
 
14220
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
14221
ac_dB='[         ].*$,\1#\2'
7521
14222
ac_dC=' '
7522
14223
ac_dD=',;t'
7523
14224
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7524
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
14225
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7525
14226
ac_uB='$,\1#\2define\3'
7526
14227
ac_uC=' '
7527
14228
ac_uD=',;t'
7530
14231
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7531
14232
  case $ac_file in
7532
14233
  - | *:- | *:-:* ) # input from stdin
7533
 
        cat >$tmp/stdin
7534
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7535
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
14234
        cat >$tmp/stdin
 
14235
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
14236
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7536
14237
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7537
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
14238
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7538
14239
  * )   ac_file_in=$ac_file.in ;;
7539
14240
  esac
7540
14241
 
7541
 
  test x"$ac_file" != x- && { echo "$as_me:7541: creating $ac_file" >&5
 
14242
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7542
14243
echo "$as_me: creating $ac_file" >&6;}
7543
14244
 
7544
14245
  # First look for the input files in the build tree, otherwise in the
7548
14249
      case $f in
7549
14250
      -) echo $tmp/stdin ;;
7550
14251
      [\\/$]*)
7551
 
         # Absolute (can't be DOS-style, as IFS=:)
7552
 
         test -f "$f" || { { echo "$as_me:7552: error: cannot find input file: $f" >&5
 
14252
         # Absolute (can't be DOS-style, as IFS=:)
 
14253
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7553
14254
echo "$as_me: error: cannot find input file: $f" >&2;}
7554
14255
   { (exit 1); exit 1; }; }
7555
 
         echo $f;;
 
14256
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
14257
         echo "$f";;
7556
14258
      *) # Relative
7557
 
         if test -f "$f"; then
7558
 
           # Build tree
7559
 
           echo $f
7560
 
         elif test -f "$srcdir/$f"; then
7561
 
           # Source tree
7562
 
           echo $srcdir/$f
7563
 
         else
7564
 
           # /dev/null tree
7565
 
           { { echo "$as_me:7565: error: cannot find input file: $f" >&5
 
14259
         if test -f "$f"; then
 
14260
           # Build tree
 
14261
           echo "$f"
 
14262
         elif test -f "$srcdir/$f"; then
 
14263
           # Source tree
 
14264
           echo "$srcdir/$f"
 
14265
         else
 
14266
           # /dev/null tree
 
14267
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7566
14268
echo "$as_me: error: cannot find input file: $f" >&2;}
7567
14269
   { (exit 1); exit 1; }; }
7568
 
         fi;;
 
14270
         fi;;
7569
14271
      esac
7570
14272
    done` || { (exit 1); exit 1; }
7571
14273
  # Remove the trailing spaces.
7572
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
14274
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7573
14275
 
7574
 
EOF
 
14276
_ACEOF
7575
14277
 
7576
14278
# Transform confdefs.h into two sed scripts, `conftest.defines' and
7577
14279
# `conftest.undefs', that substitutes the proper values into
7587
14289
# `end' is used to avoid that the second main sed command (meant for
7588
14290
# 0-ary CPP macros) applies to n-ary macro definitions.
7589
14291
# See the Autoconf documentation for `clear'.
7590
 
cat >confdef2sed.sed <<\EOF
 
14292
cat >confdef2sed.sed <<\_ACEOF
7591
14293
s/[\\&,]/\\&/g
7592
14294
s,[\\$`],\\&,g
7593
14295
t clear
7594
14296
: clear
7595
 
s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
 
14297
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7596
14298
t end
7597
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
14299
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7598
14300
: end
7599
 
EOF
 
14301
_ACEOF
7600
14302
# If some macros were called several times there might be several times
7601
14303
# the same #defines, which is useless.  Nevertheless, we may not want to
7602
14304
# sort them, since we want the *last* AC-DEFINE to be honored.
7607
14309
# This sed command replaces #undef with comments.  This is necessary, for
7608
14310
# example, in the case of _POSIX_SOURCE, which is predefined and required
7609
14311
# on some systems where configure will not decide to define it.
7610
 
cat >>conftest.undefs <<\EOF
7611
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7612
 
EOF
 
14312
cat >>conftest.undefs <<\_ACEOF
 
14313
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
14314
_ACEOF
7613
14315
 
7614
14316
# Break up conftest.defines because some shells have a limit on the size
7615
14317
# of here documents, and old seds have small limits too (100 cmds).
7616
14318
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7617
 
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
14319
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7618
14320
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7619
14321
echo '  :' >>$CONFIG_STATUS
7620
14322
rm -f conftest.tail
7623
14325
  # Write a limited-size here document to $tmp/defines.sed.
7624
14326
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7625
14327
  # Speed up: don't consider the non `#define' lines.
7626
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
14328
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
7627
14329
  # Work around the forget-to-reset-the-flag bug.
7628
14330
  echo 't clr' >>$CONFIG_STATUS
7629
14331
  echo ': clr' >>$CONFIG_STATUS
7638
14340
  mv conftest.tail conftest.defines
7639
14341
done
7640
14342
rm -f conftest.defines
7641
 
echo '  fi # egrep' >>$CONFIG_STATUS
 
14343
echo '  fi # grep' >>$CONFIG_STATUS
7642
14344
echo >>$CONFIG_STATUS
7643
14345
 
7644
14346
# Break up conftest.undefs because some shells have a limit on the size
7650
14352
  # Write a limited-size here document to $tmp/undefs.sed.
7651
14353
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7652
14354
  # Speed up: don't consider the non `#undef'
7653
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
14355
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7654
14356
  # Work around the forget-to-reset-the-flag bug.
7655
14357
  echo 't clr' >>$CONFIG_STATUS
7656
14358
  echo ': clr' >>$CONFIG_STATUS
7666
14368
done
7667
14369
rm -f conftest.undefs
7668
14370
 
7669
 
cat >>$CONFIG_STATUS <<\EOF
 
14371
cat >>$CONFIG_STATUS <<\_ACEOF
7670
14372
  # Let's still pretend it is `configure' which instantiates (i.e., don't
7671
14373
  # use $as_me), people would be surprised to read:
7672
 
  #    /* config.h.  Generated automatically by config.status.  */
 
14374
  #    /* config.h.  Generated by config.status.  */
7673
14375
  if test x"$ac_file" = x-; then
7674
 
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
 
14376
    echo "/* Generated by configure.  */" >$tmp/config.h
7675
14377
  else
7676
 
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
 
14378
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7677
14379
  fi
7678
14380
  cat $tmp/in >>$tmp/config.h
7679
14381
  rm -f $tmp/in
7680
14382
  if test x"$ac_file" != x-; then
7681
 
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7682
 
      { echo "$as_me:7682: $ac_file is unchanged" >&5
 
14383
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
14384
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7683
14385
echo "$as_me: $ac_file is unchanged" >&6;}
7684
14386
    else
7685
 
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7686
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
7687
 
         X"$ac_file" : 'X\(//\)$' \| \
7688
 
         X"$ac_file" : 'X\(/\)' \| \
7689
 
         .     : '\(.\)' 2>/dev/null ||
 
14387
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
14388
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14389
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14390
         X"$ac_file" : 'X\(//\)$' \| \
 
14391
         X"$ac_file" : 'X\(/\)' \| \
 
14392
         .     : '\(.\)' 2>/dev/null ||
7690
14393
echo X"$ac_file" |
7691
14394
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7692
14395
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7693
14396
          /^X\(\/\/\)$/{ s//\1/; q; }
7694
14397
          /^X\(\/\).*/{ s//\1/; q; }
7695
14398
          s/.*/./; q'`
7696
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7697
 
        { case "$ac_dir" in
7698
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7699
 
  *)                      as_incr_dir=.;;
7700
 
esac
7701
 
as_dummy="$ac_dir"
7702
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7703
 
  case $as_mkdir_dir in
7704
 
    # Skip DOS drivespec
7705
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
7706
 
    *)
7707
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
7708
 
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7709
 
    ;;
7710
 
  esac
7711
 
done; }
 
14399
      { if $as_mkdir_p; then
 
14400
    mkdir -p "$ac_dir"
 
14401
  else
 
14402
    as_dir="$ac_dir"
 
14403
    as_dirs=
 
14404
    while test ! -d "$as_dir"; do
 
14405
      as_dirs="$as_dir $as_dirs"
 
14406
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
14407
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14408
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14409
         X"$as_dir" : 'X\(//\)$' \| \
 
14410
         X"$as_dir" : 'X\(/\)' \| \
 
14411
         .     : '\(.\)' 2>/dev/null ||
 
14412
echo X"$as_dir" |
 
14413
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14414
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14415
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14416
          /^X\(\/\).*/{ s//\1/; q; }
 
14417
          s/.*/./; q'`
 
14418
    done
 
14419
    test ! -n "$as_dirs" || mkdir $as_dirs
 
14420
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
14421
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
14422
   { (exit 1); exit 1; }; }; }
7712
14423
 
7713
 
      fi
7714
14424
      rm -f $ac_file
7715
14425
      mv $tmp/config.h $ac_file
7716
14426
    fi
7718
14428
    cat $tmp/config.h
7719
14429
    rm -f $tmp/config.h
7720
14430
  fi
7721
 
  # Run the commands associated with the file.
7722
 
  case $ac_file in
7723
 
    config.h ) # update the timestamp
7724
 
echo timestamp >"./stamp-h1"
7725
 
 ;;
 
14431
# Compute $ac_file's index in $config_headers.
 
14432
_am_stamp_count=1
 
14433
for _am_header in $config_headers :; do
 
14434
  case $_am_header in
 
14435
    $ac_file | $ac_file:* )
 
14436
      break ;;
 
14437
    * )
 
14438
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7726
14439
  esac
7727
14440
done
7728
 
EOF
7729
 
cat >>$CONFIG_STATUS <<\EOF
 
14441
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
14442
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14443
         X$ac_file : 'X\(//\)[^/]' \| \
 
14444
         X$ac_file : 'X\(//\)$' \| \
 
14445
         X$ac_file : 'X\(/\)' \| \
 
14446
         .     : '\(.\)' 2>/dev/null ||
 
14447
echo X$ac_file |
 
14448
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14449
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14450
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14451
          /^X\(\/\).*/{ s//\1/; q; }
 
14452
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
14453
done
 
14454
_ACEOF
 
14455
cat >>$CONFIG_STATUS <<\_ACEOF
7730
14456
 
7731
14457
#
7732
14458
# CONFIG_COMMANDS section.
7734
14460
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7735
14461
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7736
14462
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7737
 
 
 
14463
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
14464
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14465
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
14466
         X"$ac_dest" : 'X\(//\)$' \| \
 
14467
         X"$ac_dest" : 'X\(/\)' \| \
 
14468
         .     : '\(.\)' 2>/dev/null ||
 
14469
echo X"$ac_dest" |
 
14470
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14471
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14472
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14473
          /^X\(\/\).*/{ s//\1/; q; }
 
14474
          s/.*/./; q'`
 
14475
  { if $as_mkdir_p; then
 
14476
    mkdir -p "$ac_dir"
 
14477
  else
 
14478
    as_dir="$ac_dir"
 
14479
    as_dirs=
 
14480
    while test ! -d "$as_dir"; do
 
14481
      as_dirs="$as_dir $as_dirs"
 
14482
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
14483
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14484
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14485
         X"$as_dir" : 'X\(//\)$' \| \
 
14486
         X"$as_dir" : 'X\(/\)' \| \
 
14487
         .     : '\(.\)' 2>/dev/null ||
 
14488
echo X"$as_dir" |
 
14489
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14490
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14491
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14492
          /^X\(\/\).*/{ s//\1/; q; }
 
14493
          s/.*/./; q'`
 
14494
    done
 
14495
    test ! -n "$as_dirs" || mkdir $as_dirs
 
14496
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
14497
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
14498
   { (exit 1); exit 1; }; }; }
 
14499
 
 
14500
  ac_builddir=.
 
14501
 
 
14502
if test "$ac_dir" != .; then
 
14503
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
14504
  # A "../" for each directory in $ac_dir_suffix.
 
14505
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
14506
else
 
14507
  ac_dir_suffix= ac_top_builddir=
 
14508
fi
 
14509
 
 
14510
case $srcdir in
 
14511
  .)  # No --srcdir option.  We are building in place.
 
14512
    ac_srcdir=.
 
14513
    if test -z "$ac_top_builddir"; then
 
14514
       ac_top_srcdir=.
 
14515
    else
 
14516
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
14517
    fi ;;
 
14518
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
14519
    ac_srcdir=$srcdir$ac_dir_suffix;
 
14520
    ac_top_srcdir=$srcdir ;;
 
14521
  *) # Relative path.
 
14522
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
14523
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
14524
esac
 
14525
 
 
14526
# Do not use `cd foo && pwd` to compute absolute paths, because
 
14527
# the directories may not exist.
 
14528
case `pwd` in
 
14529
.) ac_abs_builddir="$ac_dir";;
 
14530
*)
 
14531
  case "$ac_dir" in
 
14532
  .) ac_abs_builddir=`pwd`;;
 
14533
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
14534
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
14535
  esac;;
 
14536
esac
 
14537
case $ac_abs_builddir in
 
14538
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
14539
*)
 
14540
  case ${ac_top_builddir}. in
 
14541
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
14542
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
14543
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
14544
  esac;;
 
14545
esac
 
14546
case $ac_abs_builddir in
 
14547
.) ac_abs_srcdir=$ac_srcdir;;
 
14548
*)
 
14549
  case $ac_srcdir in
 
14550
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
14551
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
14552
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
14553
  esac;;
 
14554
esac
 
14555
case $ac_abs_builddir in
 
14556
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
14557
*)
 
14558
  case $ac_top_srcdir in
 
14559
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
14560
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
14561
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
14562
  esac;;
 
14563
esac
 
14564
 
 
14565
 
 
14566
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
14567
echo "$as_me: executing $ac_dest commands" >&6;}
7738
14568
  case $ac_dest in
7739
 
    default-1 )
7740
 
test x"$AMDEP_TRUE" != x"" ||
7741
 
for mf in $CONFIG_FILES; do
7742
 
  case "$mf" in
7743
 
  Makefile) dirpart=.;;
7744
 
  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
7745
 
  *) continue;;
7746
 
  esac
7747
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7748
 
  # Extract the definition of DEP_FILES from the Makefile without
7749
 
  # running `make'.
7750
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
14569
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
14570
  # Strip MF so we end up with the name of the file.
 
14571
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
14572
  # Check whether this is an Automake generated Makefile or not.
 
14573
  # We used to match only the files named `Makefile.in', but
 
14574
  # some people rename them; so instead we look at the file content.
 
14575
  # Grep'ing the first line is not enough: some people post-process
 
14576
  # each Makefile.in and add a new line on top of each file to say so.
 
14577
  # So let's grep whole file.
 
14578
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
14579
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
14580
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14581
         X"$mf" : 'X\(//\)[^/]' \| \
 
14582
         X"$mf" : 'X\(//\)$' \| \
 
14583
         X"$mf" : 'X\(/\)' \| \
 
14584
         .     : '\(.\)' 2>/dev/null ||
 
14585
echo X"$mf" |
 
14586
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14587
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14588
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14589
          /^X\(\/\).*/{ s//\1/; q; }
 
14590
          s/.*/./; q'`
 
14591
  else
 
14592
    continue
 
14593
  fi
 
14594
  # Extract the definition of DEPDIR, am__include, and am__quote
 
14595
  # from the Makefile without running `make'.
 
14596
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7751
14597
  test -z "$DEPDIR" && continue
 
14598
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
14599
  test -z "am__include" && continue
 
14600
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7752
14601
  # When using ansi2knr, U may be empty or an underscore; expand it
7753
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
7754
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7755
 
  # We invoke sed twice because it is the simplest approach to
7756
 
  # changing $(DEPDIR) to its actual value in the expansion.
7757
 
  for file in `sed -n -e '
7758
 
    /^DEP_FILES = .*\\\\$/ {
7759
 
      s/^DEP_FILES = //
7760
 
      :loop
7761
 
        s/\\\\$//
7762
 
        p
7763
 
        n
7764
 
        /\\\\$/ b loop
7765
 
      p
7766
 
    }
7767
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
14602
  U=`sed -n 's/^U = //p' < "$mf"`
 
14603
  # Find all dependency output files, they are included files with
 
14604
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
14605
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
14606
  # expansion.
 
14607
  for file in `sed -n "
 
14608
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7768
14609
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7769
14610
    # Make sure the directory exists.
7770
14611
    test -f "$dirpart/$file" && continue
7771
 
    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
7772
 
    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
 
14612
    fdir=`(dirname "$file") 2>/dev/null ||
 
14613
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14614
         X"$file" : 'X\(//\)[^/]' \| \
 
14615
         X"$file" : 'X\(//\)$' \| \
 
14616
         X"$file" : 'X\(/\)' \| \
 
14617
         .     : '\(.\)' 2>/dev/null ||
 
14618
echo X"$file" |
 
14619
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14620
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14621
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14622
          /^X\(\/\).*/{ s//\1/; q; }
 
14623
          s/.*/./; q'`
 
14624
    { if $as_mkdir_p; then
 
14625
    mkdir -p $dirpart/$fdir
 
14626
  else
 
14627
    as_dir=$dirpart/$fdir
 
14628
    as_dirs=
 
14629
    while test ! -d "$as_dir"; do
 
14630
      as_dirs="$as_dir $as_dirs"
 
14631
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
14632
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14633
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14634
         X"$as_dir" : 'X\(//\)$' \| \
 
14635
         X"$as_dir" : 'X\(/\)' \| \
 
14636
         .     : '\(.\)' 2>/dev/null ||
 
14637
echo X"$as_dir" |
 
14638
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
14639
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
14640
          /^X\(\/\/\)$/{ s//\1/; q; }
 
14641
          /^X\(\/\).*/{ s//\1/; q; }
 
14642
          s/.*/./; q'`
 
14643
    done
 
14644
    test ! -n "$as_dirs" || mkdir $as_dirs
 
14645
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
14646
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
14647
   { (exit 1); exit 1; }; }; }
 
14648
 
7773
14649
    # echo "creating $dirpart/$file"
7774
14650
    echo '# dummy' > "$dirpart/$file"
7775
14651
  done
7776
14652
done
7777
14653
 ;;
7778
 
    default-2 )
 
14654
    default-1 )
7779
14655
    for ac_file in $CONFIG_FILES; do
7780
14656
      # Support "outfile[:infile[:infile...]]"
7781
14657
      case "$ac_file" in
7799
14675
          rm -f "$ac_dir/POTFILES"
7800
14676
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7801
14677
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
7802
 
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
 
14678
          POMAKEFILEDEPS="POTFILES.in"
 
14679
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
7803
14680
          # on $ac_dir but don't depend on user-specified configuration
7804
14681
          # parameters.
7805
14682
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
7806
14683
            # The LINGUAS file contains the set of available languages.
7807
 
            if test -n "$ALL_LINGUAS"; then
 
14684
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
7808
14685
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
7809
14686
            fi
7810
14687
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
7811
14688
            # Hide the ALL_LINGUAS assigment from automake.
7812
14689
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
14690
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
14691
          else
 
14692
            # The set of available languages was given in configure.in.
 
14693
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
7813
14694
          fi
 
14695
          # Compute POFILES
 
14696
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
14697
          # Compute UPDATEPOFILES
 
14698
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
14699
          # Compute DUMMYPOFILES
 
14700
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
14701
          # Compute GMOFILES
 
14702
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
7814
14703
          case "$ac_given_srcdir" in
7815
14704
            .) srcdirpre= ;;
7816
14705
            *) srcdirpre='$(srcdir)/' ;;
7817
14706
          esac
7818
14707
          POFILES=
7819
 
          GMOFILES=
7820
14708
          UPDATEPOFILES=
7821
14709
          DUMMYPOFILES=
 
14710
          GMOFILES=
7822
14711
          for lang in $ALL_LINGUAS; do
7823
14712
            POFILES="$POFILES $srcdirpre$lang.po"
7824
 
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
7825
14713
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
7826
14714
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
14715
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
7827
14716
          done
7828
14717
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
7829
14718
          # environment variable.
7858
14747
            done
7859
14748
          fi
7860
14749
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7861
 
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
14750
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7862
14751
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
7863
14752
            if test -f "$f"; then
7864
14753
              case "$f" in
7873
14762
    done ;;
7874
14763
  esac
7875
14764
done
7876
 
EOF
 
14765
_ACEOF
7877
14766
 
7878
 
cat >>$CONFIG_STATUS <<\EOF
 
14767
cat >>$CONFIG_STATUS <<\_ACEOF
7879
14768
 
7880
14769
{ (exit 0); exit 0; }
7881
 
EOF
 
14770
_ACEOF
7882
14771
chmod +x $CONFIG_STATUS
7883
14772
ac_clean_files=$ac_clean_files_save
7884
14773
 
 
14774
 
7885
14775
# configure is writing to config.log, and then calls config.status.
7886
14776
# config.status does its own redirection, appending to config.log.
7887
14777
# Unfortunately, on DOS this fails, as config.log is still kept open
7892
14782
# need to make the FD available again.
7893
14783
if test "$no_create" != yes; then
7894
14784
  ac_cs_success=:
 
14785
  ac_config_status_args=
 
14786
  test "$silent" = yes &&
 
14787
    ac_config_status_args="$ac_config_status_args --quiet"
7895
14788
  exec 5>/dev/null
7896
 
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
14789
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7897
14790
  exec 5>>config.log
7898
14791
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7899
14792
  # would make configure fail if this is the last instruction.