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