]> git.decadent.org.uk Git - ap-utils.git/blob - configure
Imported Debian version 1.4.1+1.5pre1-1
[ap-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
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   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="lib/snmp.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839 System types:
840   --build=BUILD     configure for building on BUILD [guessed]
841   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --disable-dependency-tracking Speeds up one-time builds
853   --enable-dependency-tracking  Do not reject slow dependency extractors
854   --disable-nls           do not use Native Language Support
855   --disable-rpath         do not hardcode runtime library paths
856  --disable-regdomain     disable regulation domain channel restrictions
857
858 Optional Packages:
859   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
860   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
861   --with-gnu-ld           assume the C compiler uses GNU ld default=no
862   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
863   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
864   --with-included-gettext use the GNU gettext library included here
865   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
866   --without-libintl-prefix     don't search for libintl in includedir and libdir
867
868 Some influential environment variables:
869   CC          C compiler command
870   CFLAGS      C compiler flags
871   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
872               nonstandard directory <lib dir>
873   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
874               headers in a nonstandard directory <include dir>
875   CPP         C preprocessor
876
877 Use these variables to override the choices made by `configure' or to help
878 it to find libraries and programs with nonstandard names/locations.
879
880 _ACEOF
881 fi
882
883 if test "$ac_init_help" = "recursive"; then
884   # If there are subdirs, report their specific --help.
885   ac_popdir=`pwd`
886   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887     test -d $ac_dir || continue
888     ac_builddir=.
889
890 if test "$ac_dir" != .; then
891   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892   # A "../" for each directory in $ac_dir_suffix.
893   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 else
895   ac_dir_suffix= ac_top_builddir=
896 fi
897
898 case $srcdir in
899   .)  # No --srcdir option.  We are building in place.
900     ac_srcdir=.
901     if test -z "$ac_top_builddir"; then
902        ac_top_srcdir=.
903     else
904        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905     fi ;;
906   [\\/]* | ?:[\\/]* )  # Absolute path.
907     ac_srcdir=$srcdir$ac_dir_suffix;
908     ac_top_srcdir=$srcdir ;;
909   *) # Relative path.
910     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911     ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 esac
913
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
916 case `pwd` in
917 .) ac_abs_builddir="$ac_dir";;
918 *)
919   case "$ac_dir" in
920   .) ac_abs_builddir=`pwd`;;
921   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922   *) ac_abs_builddir=`pwd`/"$ac_dir";;
923   esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
927 *)
928   case ${ac_top_builddir}. in
929   .) ac_abs_top_builddir=$ac_abs_builddir;;
930   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932   esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
936 *)
937   case $ac_srcdir in
938   .) ac_abs_srcdir=$ac_abs_builddir;;
939   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941   esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
945 *)
946   case $ac_top_srcdir in
947   .) ac_abs_top_srcdir=$ac_abs_builddir;;
948   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950   esac;;
951 esac
952
953     cd $ac_dir
954     # Check for guested configure; otherwise get Cygnus style configure.
955     if test -f $ac_srcdir/configure.gnu; then
956       echo
957       $SHELL $ac_srcdir/configure.gnu  --help=recursive
958     elif test -f $ac_srcdir/configure; then
959       echo
960       $SHELL $ac_srcdir/configure  --help=recursive
961     elif test -f $ac_srcdir/configure.ac ||
962            test -f $ac_srcdir/configure.in; then
963       echo
964       $ac_configure --help
965     else
966       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967     fi
968     cd "$ac_popdir"
969   done
970 fi
971
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
974   cat <<\_ACEOF
975
976 Copyright (C) 2003 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
979 _ACEOF
980   exit 0
981 fi
982 exec 5>config.log
983 cat >&5 <<_ACEOF
984 This file contains any messages produced by compilers while
985 running configure, to aid debugging if configure makes a mistake.
986
987 It was created by $as_me, which was
988 generated by GNU Autoconf 2.59.  Invocation command line was
989
990   $ $0 $@
991
992 _ACEOF
993 {
994 cat <<_ASUNAME
995 ## --------- ##
996 ## Platform. ##
997 ## --------- ##
998
999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004
1005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1007
1008 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1009 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1012 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1013 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1014 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1015
1016 _ASUNAME
1017
1018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 for as_dir in $PATH
1020 do
1021   IFS=$as_save_IFS
1022   test -z "$as_dir" && as_dir=.
1023   echo "PATH: $as_dir"
1024 done
1025
1026 } >&5
1027
1028 cat >&5 <<_ACEOF
1029
1030
1031 ## ----------- ##
1032 ## Core tests. ##
1033 ## ----------- ##
1034
1035 _ACEOF
1036
1037
1038 # Keep a trace of the command line.
1039 # Strip out --no-create and --no-recursion so they do not pile up.
1040 # Strip out --silent because we don't want to record it for future runs.
1041 # Also quote any args containing shell meta-characters.
1042 # Make two passes to allow for proper duplicate-argument suppression.
1043 ac_configure_args=
1044 ac_configure_args0=
1045 ac_configure_args1=
1046 ac_sep=
1047 ac_must_keep_next=false
1048 for ac_pass in 1 2
1049 do
1050   for ac_arg
1051   do
1052     case $ac_arg in
1053     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055     | -silent | --silent | --silen | --sile | --sil)
1056       continue ;;
1057     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059     esac
1060     case $ac_pass in
1061     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062     2)
1063       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064       if test $ac_must_keep_next = true; then
1065         ac_must_keep_next=false # Got value, back to normal.
1066       else
1067         case $ac_arg in
1068           *=* | --config-cache | -C | -disable-* | --disable-* \
1069           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071           | -with-* | --with-* | -without-* | --without-* | --x)
1072             case "$ac_configure_args0 " in
1073               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074             esac
1075             ;;
1076           -* ) ac_must_keep_next=true ;;
1077         esac
1078       fi
1079       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080       # Get rid of the leading space.
1081       ac_sep=" "
1082       ;;
1083     esac
1084   done
1085 done
1086 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088
1089 # When interrupted or exit'd, cleanup temporary files, and complete
1090 # config.log.  We remove comments because anyway the quotes in there
1091 # would cause problems or look ugly.
1092 # WARNING: Be sure not to use single quotes in there, as some shells,
1093 # such as our DU 5.0 friend, will then `close' the trap.
1094 trap 'exit_status=$?
1095   # Save into config.log some information that might help in debugging.
1096   {
1097     echo
1098
1099     cat <<\_ASBOX
1100 ## ---------------- ##
1101 ## Cache variables. ##
1102 ## ---------------- ##
1103 _ASBOX
1104     echo
1105     # The following way of writing the cache mishandles newlines in values,
1106 {
1107   (set) 2>&1 |
1108     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109     *ac_space=\ *)
1110       sed -n \
1111         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113       ;;
1114     *)
1115       sed -n \
1116         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117       ;;
1118     esac;
1119 }
1120     echo
1121
1122     cat <<\_ASBOX
1123 ## ----------------- ##
1124 ## Output variables. ##
1125 ## ----------------- ##
1126 _ASBOX
1127     echo
1128     for ac_var in $ac_subst_vars
1129     do
1130       eval ac_val=$`echo $ac_var`
1131       echo "$ac_var='"'"'$ac_val'"'"'"
1132     done | sort
1133     echo
1134
1135     if test -n "$ac_subst_files"; then
1136       cat <<\_ASBOX
1137 ## ------------- ##
1138 ## Output files. ##
1139 ## ------------- ##
1140 _ASBOX
1141       echo
1142       for ac_var in $ac_subst_files
1143       do
1144         eval ac_val=$`echo $ac_var`
1145         echo "$ac_var='"'"'$ac_val'"'"'"
1146       done | sort
1147       echo
1148     fi
1149
1150     if test -s confdefs.h; then
1151       cat <<\_ASBOX
1152 ## ----------- ##
1153 ## confdefs.h. ##
1154 ## ----------- ##
1155 _ASBOX
1156       echo
1157       sed "/^$/d" confdefs.h | sort
1158       echo
1159     fi
1160     test "$ac_signal" != 0 &&
1161       echo "$as_me: caught signal $ac_signal"
1162     echo "$as_me: exit $exit_status"
1163   } >&5
1164   rm -f core *.core &&
1165   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166     exit $exit_status
1167      ' 0
1168 for ac_signal in 1 2 13 15; do
1169   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170 done
1171 ac_signal=0
1172
1173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1174 rm -rf conftest* confdefs.h
1175 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 echo >confdefs.h
1177
1178 # Predefined preprocessor variables.
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_NAME "$PACKAGE_NAME"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_STRING "$PACKAGE_STRING"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202 _ACEOF
1203
1204
1205 # Let the site file select an alternate cache file if it wants to.
1206 # Prefer explicitly selected file to automatically selected ones.
1207 if test -z "$CONFIG_SITE"; then
1208   if test "x$prefix" != xNONE; then
1209     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210   else
1211     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212   fi
1213 fi
1214 for ac_site_file in $CONFIG_SITE; do
1215   if test -r "$ac_site_file"; then
1216     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217 echo "$as_me: loading site script $ac_site_file" >&6;}
1218     sed 's/^/| /' "$ac_site_file" >&5
1219     . "$ac_site_file"
1220   fi
1221 done
1222
1223 if test -r "$cache_file"; then
1224   # Some versions of bash will fail to source /dev/null (special
1225   # files actually), so we avoid doing that.
1226   if test -f "$cache_file"; then
1227     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228 echo "$as_me: loading cache $cache_file" >&6;}
1229     case $cache_file in
1230       [\\/]* | ?:[\\/]* ) . $cache_file;;
1231       *)                      . ./$cache_file;;
1232     esac
1233   fi
1234 else
1235   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236 echo "$as_me: creating cache $cache_file" >&6;}
1237   >$cache_file
1238 fi
1239
1240 # Check that the precious variables saved in the cache have kept the same
1241 # value.
1242 ac_cache_corrupted=false
1243 for ac_var in `(set) 2>&1 |
1244                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1245   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246   eval ac_new_set=\$ac_env_${ac_var}_set
1247   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248   eval ac_new_val="\$ac_env_${ac_var}_value"
1249   case $ac_old_set,$ac_new_set in
1250     set,)
1251       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253       ac_cache_corrupted=: ;;
1254     ,set)
1255       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257       ac_cache_corrupted=: ;;
1258     ,);;
1259     *)
1260       if test "x$ac_old_val" != "x$ac_new_val"; then
1261         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1262 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1263         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1264 echo "$as_me:   former value:  $ac_old_val" >&2;}
1265         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1266 echo "$as_me:   current value: $ac_new_val" >&2;}
1267         ac_cache_corrupted=:
1268       fi;;
1269   esac
1270   # Pass precious variables to config.status.
1271   if test "$ac_new_set" = set; then
1272     case $ac_new_val in
1273     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1275     *) ac_arg=$ac_var=$ac_new_val ;;
1276     esac
1277     case " $ac_configure_args " in
1278       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1279       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1280     esac
1281   fi
1282 done
1283 if $ac_cache_corrupted; then
1284   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1287 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288    { (exit 1); exit 1; }; }
1289 fi
1290
1291 ac_ext=c
1292 ac_cpp='$CPP $CPPFLAGS'
1293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315 ac_aux_dir=
1316 for ac_dir in config $srcdir/config; do
1317   if test -f $ac_dir/install-sh; then
1318     ac_aux_dir=$ac_dir
1319     ac_install_sh="$ac_aux_dir/install-sh -c"
1320     break
1321   elif test -f $ac_dir/install.sh; then
1322     ac_aux_dir=$ac_dir
1323     ac_install_sh="$ac_aux_dir/install.sh -c"
1324     break
1325   elif test -f $ac_dir/shtool; then
1326     ac_aux_dir=$ac_dir
1327     ac_install_sh="$ac_aux_dir/shtool install -c"
1328     break
1329   fi
1330 done
1331 if test -z "$ac_aux_dir"; then
1332   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1333 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1334    { (exit 1); exit 1; }; }
1335 fi
1336 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1337 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1338 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1339
1340 am__api_version="1.7"
1341 # Find a good install program.  We prefer a C program (faster),
1342 # so one script is as good as another.  But avoid the broken or
1343 # incompatible versions:
1344 # SysV /etc/install, /usr/sbin/install
1345 # SunOS /usr/etc/install
1346 # IRIX /sbin/install
1347 # AIX /bin/install
1348 # AmigaOS /C/install, which installs bootblocks on floppy discs
1349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1352 # OS/2's system install, which has a completely different semantic
1353 # ./install, which can be erroneously created by make from ./install.sh.
1354 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1355 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1356 if test -z "$INSTALL"; then
1357 if test "${ac_cv_path_install+set}" = set; then
1358   echo $ECHO_N "(cached) $ECHO_C" >&6
1359 else
1360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1361 for as_dir in $PATH
1362 do
1363   IFS=$as_save_IFS
1364   test -z "$as_dir" && as_dir=.
1365   # Account for people who put trailing slashes in PATH elements.
1366 case $as_dir/ in
1367   ./ | .// | /cC/* | \
1368   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1369   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1370   /usr/ucb/* ) ;;
1371   *)
1372     # OSF1 and SCO ODT 3.0 have their own names for install.
1373     # Don't use installbsd from OSF since it installs stuff as root
1374     # by default.
1375     for ac_prog in ginstall scoinst install; do
1376       for ac_exec_ext in '' $ac_executable_extensions; do
1377         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1378           if test $ac_prog = install &&
1379             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1380             # AIX install.  It has an incompatible calling convention.
1381             :
1382           elif test $ac_prog = install &&
1383             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1384             # program-specific install script used by HP pwplus--don't use.
1385             :
1386           else
1387             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1388             break 3
1389           fi
1390         fi
1391       done
1392     done
1393     ;;
1394 esac
1395 done
1396
1397
1398 fi
1399   if test "${ac_cv_path_install+set}" = set; then
1400     INSTALL=$ac_cv_path_install
1401   else
1402     # As a last resort, use the slow shell script.  We don't cache a
1403     # path for INSTALL within a source directory, because that will
1404     # break other packages using the cache if that directory is
1405     # removed, or if the path is relative.
1406     INSTALL=$ac_install_sh
1407   fi
1408 fi
1409 echo "$as_me:$LINENO: result: $INSTALL" >&5
1410 echo "${ECHO_T}$INSTALL" >&6
1411
1412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1413 # It thinks the first close brace ends the variable substitution.
1414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1415
1416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1417
1418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1419
1420 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1421 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1422 # Just in case
1423 sleep 1
1424 echo timestamp > conftest.file
1425 # Do `set' in a subshell so we don't clobber the current shell's
1426 # arguments.  Must try -L first in case configure is actually a
1427 # symlink; some systems play weird games with the mod time of symlinks
1428 # (eg FreeBSD returns the mod time of the symlink's containing
1429 # directory).
1430 if (
1431    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1432    if test "$*" = "X"; then
1433       # -L didn't work.
1434       set X `ls -t $srcdir/configure conftest.file`
1435    fi
1436    rm -f conftest.file
1437    if test "$*" != "X $srcdir/configure conftest.file" \
1438       && test "$*" != "X conftest.file $srcdir/configure"; then
1439
1440       # If neither matched, then we have a broken ls.  This can happen
1441       # if, for instance, CONFIG_SHELL is bash and it inherits a
1442       # broken ls alias from the environment.  This has actually
1443       # happened.  Such a system could not be considered "sane".
1444       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1445 alias in your environment" >&5
1446 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1447 alias in your environment" >&2;}
1448    { (exit 1); exit 1; }; }
1449    fi
1450
1451    test "$2" = conftest.file
1452    )
1453 then
1454    # Ok.
1455    :
1456 else
1457    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1458 Check your system clock" >&5
1459 echo "$as_me: error: newly created file is older than distributed files!
1460 Check your system clock" >&2;}
1461    { (exit 1); exit 1; }; }
1462 fi
1463 echo "$as_me:$LINENO: result: yes" >&5
1464 echo "${ECHO_T}yes" >&6
1465 test "$program_prefix" != NONE &&
1466   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1467 # Use a double $ so make ignores it.
1468 test "$program_suffix" != NONE &&
1469   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1470 # Double any \ or $.  echo might interpret backslashes.
1471 # By default was `s,x,x', remove it if useless.
1472 cat <<\_ACEOF >conftest.sed
1473 s/[\\$]/&&/g;s/;s,x,x,$//
1474 _ACEOF
1475 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1476 rm conftest.sed
1477
1478
1479 # expand $ac_aux_dir to an absolute path
1480 am_aux_dir=`cd $ac_aux_dir && pwd`
1481
1482 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1483 # Use eval to expand $SHELL
1484 if eval "$MISSING --run true"; then
1485   am_missing_run="$MISSING --run "
1486 else
1487   am_missing_run=
1488   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1489 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1490 fi
1491
1492 for ac_prog in gawk mawk nawk awk
1493 do
1494   # Extract the first word of "$ac_prog", so it can be a program name with args.
1495 set dummy $ac_prog; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_AWK+set}" = set; then
1499   echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501   if test -n "$AWK"; then
1502   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1503 else
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1506 do
1507   IFS=$as_save_IFS
1508   test -z "$as_dir" && as_dir=.
1509   for ac_exec_ext in '' $ac_executable_extensions; do
1510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511     ac_cv_prog_AWK="$ac_prog"
1512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513     break 2
1514   fi
1515 done
1516 done
1517
1518 fi
1519 fi
1520 AWK=$ac_cv_prog_AWK
1521 if test -n "$AWK"; then
1522   echo "$as_me:$LINENO: result: $AWK" >&5
1523 echo "${ECHO_T}$AWK" >&6
1524 else
1525   echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1527 fi
1528
1529   test -n "$AWK" && break
1530 done
1531
1532 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1533 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1534 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1535 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1536   echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538   cat >conftest.make <<\_ACEOF
1539 all:
1540         @echo 'ac_maketemp="$(MAKE)"'
1541 _ACEOF
1542 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1543 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1544 if test -n "$ac_maketemp"; then
1545   eval ac_cv_prog_make_${ac_make}_set=yes
1546 else
1547   eval ac_cv_prog_make_${ac_make}_set=no
1548 fi
1549 rm -f conftest.make
1550 fi
1551 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1552   echo "$as_me:$LINENO: result: yes" >&5
1553 echo "${ECHO_T}yes" >&6
1554   SET_MAKE=
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558   SET_MAKE="MAKE=${MAKE-make}"
1559 fi
1560
1561 rm -rf .tst 2>/dev/null
1562 mkdir .tst 2>/dev/null
1563 if test -d .tst; then
1564   am__leading_dot=.
1565 else
1566   am__leading_dot=_
1567 fi
1568 rmdir .tst 2>/dev/null
1569
1570  # test to see if srcdir already configured
1571 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1572    test -f $srcdir/config.status; then
1573   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1574 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577
1578 # test whether we have cygpath
1579 if test -z "$CYGPATH_W"; then
1580   if (cygpath --version) >/dev/null 2>/dev/null; then
1581     CYGPATH_W='cygpath -w'
1582   else
1583     CYGPATH_W=echo
1584   fi
1585 fi
1586
1587
1588 # Define the identity of the package.
1589  PACKAGE=ap-utils
1590  VERSION=1.5pre1_FreedomOfUkraine
1591
1592
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE "$PACKAGE"
1595 _ACEOF
1596
1597
1598 cat >>confdefs.h <<_ACEOF
1599 #define VERSION "$VERSION"
1600 _ACEOF
1601
1602 # Some tools Automake needs.
1603
1604 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1605
1606
1607 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1608
1609
1610 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1611
1612
1613 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1614
1615
1616 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1617
1618
1619 AMTAR=${AMTAR-"${am_missing_run}tar"}
1620
1621 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1622
1623 # Installed binaries are usually stripped using `strip' when the user
1624 # run `make install-strip'.  However `strip' might not be the right
1625 # tool to use in cross-compilation environments, therefore Automake
1626 # will honor the `STRIP' environment variable to overrule this program.
1627 if test "$cross_compiling" != no; then
1628   if test -n "$ac_tool_prefix"; then
1629   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1630 set dummy ${ac_tool_prefix}strip; ac_word=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_STRIP+set}" = set; then
1634   echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636   if test -n "$STRIP"; then
1637   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1638 else
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 for as_dir in $PATH
1641 do
1642   IFS=$as_save_IFS
1643   test -z "$as_dir" && as_dir=.
1644   for ac_exec_ext in '' $ac_executable_extensions; do
1645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648     break 2
1649   fi
1650 done
1651 done
1652
1653 fi
1654 fi
1655 STRIP=$ac_cv_prog_STRIP
1656 if test -n "$STRIP"; then
1657   echo "$as_me:$LINENO: result: $STRIP" >&5
1658 echo "${ECHO_T}$STRIP" >&6
1659 else
1660   echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1662 fi
1663
1664 fi
1665 if test -z "$ac_cv_prog_STRIP"; then
1666   ac_ct_STRIP=$STRIP
1667   # Extract the first word of "strip", so it can be a program name with args.
1668 set dummy strip; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   if test -n "$ac_ct_STRIP"; then
1675   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1676 else
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 for as_dir in $PATH
1679 do
1680   IFS=$as_save_IFS
1681   test -z "$as_dir" && as_dir=.
1682   for ac_exec_ext in '' $ac_executable_extensions; do
1683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684     ac_cv_prog_ac_ct_STRIP="strip"
1685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686     break 2
1687   fi
1688 done
1689 done
1690
1691   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1692 fi
1693 fi
1694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1695 if test -n "$ac_ct_STRIP"; then
1696   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1697 echo "${ECHO_T}$ac_ct_STRIP" >&6
1698 else
1699   echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1701 fi
1702
1703   STRIP=$ac_ct_STRIP
1704 else
1705   STRIP="$ac_cv_prog_STRIP"
1706 fi
1707
1708 fi
1709 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1710
1711 # We need awk for the "check" target.  The system "awk" is bad on
1712 # some platforms.
1713
1714
1715
1716           ac_config_headers="$ac_config_headers config.h"
1717
1718
1719 ac_aux_dir=config
1720 ac_config_guess=config/config.guess
1721 ac_config_sub=config/config.sub
1722
1723 # Checks for programs.
1724 ac_ext=c
1725 ac_cpp='$CPP $CPPFLAGS'
1726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1729 if test -n "$ac_tool_prefix"; then
1730   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1731 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735   echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737   if test -n "$CC"; then
1738   ac_cv_prog_CC="$CC" # Let the user override the test.
1739 else
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743   IFS=$as_save_IFS
1744   test -z "$as_dir" && as_dir=.
1745   for ac_exec_ext in '' $ac_executable_extensions; do
1746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749     break 2
1750   fi
1751 done
1752 done
1753
1754 fi
1755 fi
1756 CC=$ac_cv_prog_CC
1757 if test -n "$CC"; then
1758   echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1760 else
1761   echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1763 fi
1764
1765 fi
1766 if test -z "$ac_cv_prog_CC"; then
1767   ac_ct_CC=$CC
1768   # Extract the first word of "gcc", so it can be a program name with args.
1769 set dummy gcc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1773   echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775   if test -n "$ac_ct_CC"; then
1776   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1777 else
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1780 do
1781   IFS=$as_save_IFS
1782   test -z "$as_dir" && as_dir=.
1783   for ac_exec_ext in '' $ac_executable_extensions; do
1784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785     ac_cv_prog_ac_ct_CC="gcc"
1786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787     break 2
1788   fi
1789 done
1790 done
1791
1792 fi
1793 fi
1794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795 if test -n "$ac_ct_CC"; then
1796   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1797 echo "${ECHO_T}$ac_ct_CC" >&6
1798 else
1799   echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1801 fi
1802
1803   CC=$ac_ct_CC
1804 else
1805   CC="$ac_cv_prog_CC"
1806 fi
1807
1808 if test -z "$CC"; then
1809   if test -n "$ac_tool_prefix"; then
1810   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1811 set dummy ${ac_tool_prefix}cc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_CC+set}" = set; then
1815   echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817   if test -n "$CC"; then
1818   ac_cv_prog_CC="$CC" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1822 do
1823   IFS=$as_save_IFS
1824   test -z "$as_dir" && as_dir=.
1825   for ac_exec_ext in '' $ac_executable_extensions; do
1826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827     ac_cv_prog_CC="${ac_tool_prefix}cc"
1828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829     break 2
1830   fi
1831 done
1832 done
1833
1834 fi
1835 fi
1836 CC=$ac_cv_prog_CC
1837 if test -n "$CC"; then
1838   echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1840 else
1841   echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 fi
1844
1845 fi
1846 if test -z "$ac_cv_prog_CC"; then
1847   ac_ct_CC=$CC
1848   # Extract the first word of "cc", so it can be a program name with args.
1849 set dummy cc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853   echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855   if test -n "$ac_ct_CC"; then
1856   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1857 else
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 for as_dir in $PATH
1860 do
1861   IFS=$as_save_IFS
1862   test -z "$as_dir" && as_dir=.
1863   for ac_exec_ext in '' $ac_executable_extensions; do
1864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865     ac_cv_prog_ac_ct_CC="cc"
1866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867     break 2
1868   fi
1869 done
1870 done
1871
1872 fi
1873 fi
1874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875 if test -n "$ac_ct_CC"; then
1876   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877 echo "${ECHO_T}$ac_ct_CC" >&6
1878 else
1879   echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1881 fi
1882
1883   CC=$ac_ct_CC
1884 else
1885   CC="$ac_cv_prog_CC"
1886 fi
1887
1888 fi
1889 if test -z "$CC"; then
1890   # Extract the first word of "cc", so it can be a program name with args.
1891 set dummy cc; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_CC+set}" = set; then
1895   echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897   if test -n "$CC"; then
1898   ac_cv_prog_CC="$CC" # Let the user override the test.
1899 else
1900   ac_prog_rejected=no
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 for as_dir in $PATH
1903 do
1904   IFS=$as_save_IFS
1905   test -z "$as_dir" && as_dir=.
1906   for ac_exec_ext in '' $ac_executable_extensions; do
1907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1909        ac_prog_rejected=yes
1910        continue
1911      fi
1912     ac_cv_prog_CC="cc"
1913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914     break 2
1915   fi
1916 done
1917 done
1918
1919 if test $ac_prog_rejected = yes; then
1920   # We found a bogon in the path, so make sure we never use it.
1921   set dummy $ac_cv_prog_CC
1922   shift
1923   if test $# != 0; then
1924     # We chose a different compiler from the bogus one.
1925     # However, it has the same basename, so the bogon will be chosen
1926     # first if we set CC to just the basename; use the full file name.
1927     shift
1928     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1929   fi
1930 fi
1931 fi
1932 fi
1933 CC=$ac_cv_prog_CC
1934 if test -n "$CC"; then
1935   echo "$as_me:$LINENO: result: $CC" >&5
1936 echo "${ECHO_T}$CC" >&6
1937 else
1938   echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1940 fi
1941
1942 fi
1943 if test -z "$CC"; then
1944   if test -n "$ac_tool_prefix"; then
1945   for ac_prog in cl
1946   do
1947     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_CC+set}" = set; then
1952   echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954   if test -n "$CC"; then
1955   ac_cv_prog_CC="$CC" # Let the user override the test.
1956 else
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1959 do
1960   IFS=$as_save_IFS
1961   test -z "$as_dir" && as_dir=.
1962   for ac_exec_ext in '' $ac_executable_extensions; do
1963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966     break 2
1967   fi
1968 done
1969 done
1970
1971 fi
1972 fi
1973 CC=$ac_cv_prog_CC
1974 if test -n "$CC"; then
1975   echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6
1977 else
1978   echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1980 fi
1981
1982     test -n "$CC" && break
1983   done
1984 fi
1985 if test -z "$CC"; then
1986   ac_ct_CC=$CC
1987   for ac_prog in cl
1988 do
1989   # Extract the first word of "$ac_prog", so it can be a program name with args.
1990 set dummy $ac_prog; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1994   echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996   if test -n "$ac_ct_CC"; then
1997   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1998 else
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002   IFS=$as_save_IFS
2003   test -z "$as_dir" && as_dir=.
2004   for ac_exec_ext in '' $ac_executable_extensions; do
2005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006     ac_cv_prog_ac_ct_CC="$ac_prog"
2007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008     break 2
2009   fi
2010 done
2011 done
2012
2013 fi
2014 fi
2015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2016 if test -n "$ac_ct_CC"; then
2017   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2018 echo "${ECHO_T}$ac_ct_CC" >&6
2019 else
2020   echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2022 fi
2023
2024   test -n "$ac_ct_CC" && break
2025 done
2026
2027   CC=$ac_ct_CC
2028 fi
2029
2030 fi
2031
2032
2033 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: no acceptable C compiler found in \$PATH
2036 See \`config.log' for more details." >&2;}
2037    { (exit 1); exit 1; }; }
2038
2039 # Provide some information about the compiler.
2040 echo "$as_me:$LINENO:" \
2041      "checking for C compiler version" >&5
2042 ac_compiler=`set X $ac_compile; echo $2`
2043 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2044   (eval $ac_compiler --version </dev/null >&5) 2>&5
2045   ac_status=$?
2046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047   (exit $ac_status); }
2048 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2049   (eval $ac_compiler -v </dev/null >&5) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }
2053 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2054   (eval $ac_compiler -V </dev/null >&5) 2>&5
2055   ac_status=$?
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); }
2058
2059 cat >conftest.$ac_ext <<_ACEOF
2060 /* confdefs.h.  */
2061 _ACEOF
2062 cat confdefs.h >>conftest.$ac_ext
2063 cat >>conftest.$ac_ext <<_ACEOF
2064 /* end confdefs.h.  */
2065
2066 int
2067 main ()
2068 {
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 ac_clean_files_save=$ac_clean_files
2075 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2076 # Try to create an executable without -o first, disregard a.out.
2077 # It will help us diagnose broken compilers, and finding out an intuition
2078 # of exeext.
2079 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2080 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2081 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2082 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2083   (eval $ac_link_default) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }; then
2087   # Find the output, starting from the most likely.  This scheme is
2088 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2089 # resort.
2090
2091 # Be careful to initialize this variable, since it used to be cached.
2092 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2093 ac_cv_exeext=
2094 # b.out is created by i960 compilers.
2095 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2096 do
2097   test -f "$ac_file" || continue
2098   case $ac_file in
2099     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2100         ;;
2101     conftest.$ac_ext )
2102         # This is the source file.
2103         ;;
2104     [ab].out )
2105         # We found the default executable, but exeext='' is most
2106         # certainly right.
2107         break;;
2108     *.* )
2109         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110         # FIXME: I believe we export ac_cv_exeext for Libtool,
2111         # but it would be cool to find out if it's true.  Does anybody
2112         # maintain Libtool? --akim.
2113         export ac_cv_exeext
2114         break;;
2115     * )
2116         break;;
2117   esac
2118 done
2119 else
2120   echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2122
2123 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: C compiler cannot create executables
2126 See \`config.log' for more details." >&2;}
2127    { (exit 77); exit 77; }; }
2128 fi
2129
2130 ac_exeext=$ac_cv_exeext
2131 echo "$as_me:$LINENO: result: $ac_file" >&5
2132 echo "${ECHO_T}$ac_file" >&6
2133
2134 # Check the compiler produces executables we can run.  If not, either
2135 # the compiler is broken, or we cross compile.
2136 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2137 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2138 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2139 # If not cross compiling, check that we can run a simple program.
2140 if test "$cross_compiling" != yes; then
2141   if { ac_try='./$ac_file'
2142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143   (eval $ac_try) 2>&5
2144   ac_status=$?
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); }; }; then
2147     cross_compiling=no
2148   else
2149     if test "$cross_compiling" = maybe; then
2150         cross_compiling=yes
2151     else
2152         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2153 If you meant to cross compile, use \`--host'.
2154 See \`config.log' for more details." >&5
2155 echo "$as_me: error: cannot run C compiled programs.
2156 If you meant to cross compile, use \`--host'.
2157 See \`config.log' for more details." >&2;}
2158    { (exit 1); exit 1; }; }
2159     fi
2160   fi
2161 fi
2162 echo "$as_me:$LINENO: result: yes" >&5
2163 echo "${ECHO_T}yes" >&6
2164
2165 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2166 ac_clean_files=$ac_clean_files_save
2167 # Check the compiler produces executables we can run.  If not, either
2168 # the compiler is broken, or we cross compile.
2169 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2170 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2171 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2172 echo "${ECHO_T}$cross_compiling" >&6
2173
2174 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2175 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2177   (eval $ac_link) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }; then
2181   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2182 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2183 # work properly (i.e., refer to `conftest.exe'), while it won't with
2184 # `rm'.
2185 for ac_file in conftest.exe conftest conftest.*; do
2186   test -f "$ac_file" || continue
2187   case $ac_file in
2188     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2189     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190           export ac_cv_exeext
2191           break;;
2192     * ) break;;
2193   esac
2194 done
2195 else
2196   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2199 See \`config.log' for more details." >&2;}
2200    { (exit 1); exit 1; }; }
2201 fi
2202
2203 rm -f conftest$ac_cv_exeext
2204 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2205 echo "${ECHO_T}$ac_cv_exeext" >&6
2206
2207 rm -f conftest.$ac_ext
2208 EXEEXT=$ac_cv_exeext
2209 ac_exeext=$EXEEXT
2210 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2211 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2212 if test "${ac_cv_objext+set}" = set; then
2213   echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215   cat >conftest.$ac_ext <<_ACEOF
2216 /* confdefs.h.  */
2217 _ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h.  */
2221
2222 int
2223 main ()
2224 {
2225
2226   ;
2227   return 0;
2228 }
2229 _ACEOF
2230 rm -f conftest.o conftest.obj
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232   (eval $ac_compile) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; then
2236   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2237   case $ac_file in
2238     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2239     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2240        break;;
2241   esac
2242 done
2243 else
2244   echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2250 See \`config.log' for more details." >&2;}
2251    { (exit 1); exit 1; }; }
2252 fi
2253
2254 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2255 fi
2256 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2257 echo "${ECHO_T}$ac_cv_objext" >&6
2258 OBJEXT=$ac_cv_objext
2259 ac_objext=$OBJEXT
2260 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2261 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2262 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   cat >conftest.$ac_ext <<_ACEOF
2266 /* confdefs.h.  */
2267 _ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h.  */
2271
2272 int
2273 main ()
2274 {
2275 #ifndef __GNUC__
2276        choke me
2277 #endif
2278
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285   (eval $ac_compile) 2>conftest.er1
2286   ac_status=$?
2287   grep -v '^ *+' conftest.er1 >conftest.err
2288   rm -f conftest.er1
2289   cat conftest.err >&5
2290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291   (exit $ac_status); } &&
2292          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294   (eval $ac_try) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; } &&
2298          { ac_try='test -s conftest.$ac_objext'
2299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300   (eval $ac_try) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); }; }; then
2304   ac_compiler_gnu=yes
2305 else
2306   echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2308
2309 ac_compiler_gnu=no
2310 fi
2311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2313
2314 fi
2315 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2316 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2317 GCC=`test $ac_compiler_gnu = yes && echo yes`
2318 ac_test_CFLAGS=${CFLAGS+set}
2319 ac_save_CFLAGS=$CFLAGS
2320 CFLAGS="-g"
2321 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2322 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2323 if test "${ac_cv_prog_cc_g+set}" = set; then
2324   echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326   cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h.  */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h.  */
2332
2333 int
2334 main ()
2335 {
2336
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343   (eval $ac_compile) 2>conftest.er1
2344   ac_status=$?
2345   grep -v '^ *+' conftest.er1 >conftest.err
2346   rm -f conftest.er1
2347   cat conftest.err >&5
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); } &&
2350          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352   (eval $ac_try) 2>&5
2353   ac_status=$?
2354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355   (exit $ac_status); }; } &&
2356          { ac_try='test -s conftest.$ac_objext'
2357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358   (eval $ac_try) 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }; }; then
2362   ac_cv_prog_cc_g=yes
2363 else
2364   echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2366
2367 ac_cv_prog_cc_g=no
2368 fi
2369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2370 fi
2371 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2372 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2373 if test "$ac_test_CFLAGS" = set; then
2374   CFLAGS=$ac_save_CFLAGS
2375 elif test $ac_cv_prog_cc_g = yes; then
2376   if test "$GCC" = yes; then
2377     CFLAGS="-g -O2"
2378   else
2379     CFLAGS="-g"
2380   fi
2381 else
2382   if test "$GCC" = yes; then
2383     CFLAGS="-O2"
2384   else
2385     CFLAGS=
2386   fi
2387 fi
2388 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2389 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2390 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   ac_cv_prog_cc_stdc=no
2394 ac_save_CC=$CC
2395 cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h.  */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h.  */
2401 #include <stdarg.h>
2402 #include <stdio.h>
2403 #include <sys/types.h>
2404 #include <sys/stat.h>
2405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2406 struct buf { int x; };
2407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2408 static char *e (p, i)
2409      char **p;
2410      int i;
2411 {
2412   return p[i];
2413 }
2414 static char *f (char * (*g) (char **, int), char **p, ...)
2415 {
2416   char *s;
2417   va_list v;
2418   va_start (v,p);
2419   s = g (p, va_arg (v,int));
2420   va_end (v);
2421   return s;
2422 }
2423
2424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2425    function prototypes and stuff, but not '\xHH' hex character constants.
2426    These don't provoke an error unfortunately, instead are silently treated
2427    as 'x'.  The following induces an error, until -std1 is added to get
2428    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2429    array size at least.  It's necessary to write '\x00'==0 to get something
2430    that's true only with -std1.  */
2431 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2432
2433 int test (int i, double x);
2434 struct s1 {int (*f) (int a);};
2435 struct s2 {int (*f) (double a);};
2436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2437 int argc;
2438 char **argv;
2439 int
2440 main ()
2441 {
2442 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2443   ;
2444   return 0;
2445 }
2446 _ACEOF
2447 # Don't try gcc -ansi; that turns off useful extensions and
2448 # breaks some systems' header files.
2449 # AIX                   -qlanglvl=ansi
2450 # Ultrix and OSF/1      -std1
2451 # HP-UX 10.20 and later -Ae
2452 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2453 # SVR4                  -Xc -D__EXTENSIONS__
2454 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2455 do
2456   CC="$ac_save_CC $ac_arg"
2457   rm -f conftest.$ac_objext
2458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459   (eval $ac_compile) 2>conftest.er1
2460   ac_status=$?
2461   grep -v '^ *+' conftest.er1 >conftest.err
2462   rm -f conftest.er1
2463   cat conftest.err >&5
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); } &&
2466          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468   (eval $ac_try) 2>&5
2469   ac_status=$?
2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471   (exit $ac_status); }; } &&
2472          { ac_try='test -s conftest.$ac_objext'
2473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474   (eval $ac_try) 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); }; }; then
2478   ac_cv_prog_cc_stdc=$ac_arg
2479 break
2480 else
2481   echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 fi
2485 rm -f conftest.err conftest.$ac_objext
2486 done
2487 rm -f conftest.$ac_ext conftest.$ac_objext
2488 CC=$ac_save_CC
2489
2490 fi
2491
2492 case "x$ac_cv_prog_cc_stdc" in
2493   x|xno)
2494     echo "$as_me:$LINENO: result: none needed" >&5
2495 echo "${ECHO_T}none needed" >&6 ;;
2496   *)
2497     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2498 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2499     CC="$CC $ac_cv_prog_cc_stdc" ;;
2500 esac
2501
2502 # Some people use a C++ compiler to compile C.  Since we use `exit',
2503 # in C++ we need to declare it.  In case someone uses the same compiler
2504 # for both compiling C and C++ we need to have the C++ compiler decide
2505 # the declaration of exit, since it's the most demanding environment.
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #ifndef __cplusplus
2508   choke me
2509 #endif
2510 _ACEOF
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513   (eval $ac_compile) 2>conftest.er1
2514   ac_status=$?
2515   grep -v '^ *+' conftest.er1 >conftest.err
2516   rm -f conftest.er1
2517   cat conftest.err >&5
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); } &&
2520          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522   (eval $ac_try) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; } &&
2526          { ac_try='test -s conftest.$ac_objext'
2527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528   (eval $ac_try) 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }; }; then
2532   for ac_declaration in \
2533    '' \
2534    'extern "C" void std::exit (int) throw (); using std::exit;' \
2535    'extern "C" void std::exit (int); using std::exit;' \
2536    'extern "C" void exit (int) throw ();' \
2537    'extern "C" void exit (int);' \
2538    'void exit (int);'
2539 do
2540   cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h.  */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h.  */
2546 $ac_declaration
2547 #include <stdlib.h>
2548 int
2549 main ()
2550 {
2551 exit (42);
2552   ;
2553   return 0;
2554 }
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558   (eval $ac_compile) 2>conftest.er1
2559   ac_status=$?
2560   grep -v '^ *+' conftest.er1 >conftest.err
2561   rm -f conftest.er1
2562   cat conftest.err >&5
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); } &&
2565          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567   (eval $ac_try) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; } &&
2571          { ac_try='test -s conftest.$ac_objext'
2572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573   (eval $ac_try) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; }; then
2577   :
2578 else
2579   echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582 continue
2583 fi
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585   cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h.  */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h.  */
2591 $ac_declaration
2592 int
2593 main ()
2594 {
2595 exit (42);
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602   (eval $ac_compile) 2>conftest.er1
2603   ac_status=$?
2604   grep -v '^ *+' conftest.er1 >conftest.err
2605   rm -f conftest.er1
2606   cat conftest.err >&5
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617   (eval $ac_try) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; }; then
2621   break
2622 else
2623   echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 fi
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 done
2629 rm -f conftest*
2630 if test -n "$ac_declaration"; then
2631   echo '#ifdef __cplusplus' >>confdefs.h
2632   echo $ac_declaration      >>confdefs.h
2633   echo '#endif'             >>confdefs.h
2634 fi
2635
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 fi
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642 ac_ext=c
2643 ac_cpp='$CPP $CPPFLAGS'
2644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2647 DEPDIR="${am__leading_dot}deps"
2648
2649           ac_config_commands="$ac_config_commands depfiles"
2650
2651
2652 am_make=${MAKE-make}
2653 cat > confinc << 'END'
2654 am__doit:
2655         @echo done
2656 .PHONY: am__doit
2657 END
2658 # If we don't find an include directive, just comment out the code.
2659 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2660 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2661 am__include="#"
2662 am__quote=
2663 _am_result=none
2664 # First try GNU make style include.
2665 echo "include confinc" > confmf
2666 # We grep out `Entering directory' and `Leaving directory'
2667 # messages which can occur if `w' ends up in MAKEFLAGS.
2668 # In particular we don't look at `^make:' because GNU make might
2669 # be invoked under some other name (usually "gmake"), in which
2670 # case it prints its new name instead of `make'.
2671 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2672    am__include=include
2673    am__quote=
2674    _am_result=GNU
2675 fi
2676 # Now try BSD make style include.
2677 if test "$am__include" = "#"; then
2678    echo '.include "confinc"' > confmf
2679    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2680       am__include=.include
2681       am__quote="\""
2682       _am_result=BSD
2683    fi
2684 fi
2685
2686
2687 echo "$as_me:$LINENO: result: $_am_result" >&5
2688 echo "${ECHO_T}$_am_result" >&6
2689 rm -f confinc confmf
2690
2691 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2692 if test "${enable_dependency_tracking+set}" = set; then
2693   enableval="$enable_dependency_tracking"
2694
2695 fi;
2696 if test "x$enable_dependency_tracking" != xno; then
2697   am_depcomp="$ac_aux_dir/depcomp"
2698   AMDEPBACKSLASH='\'
2699 fi
2700
2701
2702 if test "x$enable_dependency_tracking" != xno; then
2703   AMDEP_TRUE=
2704   AMDEP_FALSE='#'
2705 else
2706   AMDEP_TRUE='#'
2707   AMDEP_FALSE=
2708 fi
2709
2710
2711
2712
2713 depcc="$CC"   am_compiler_list=
2714
2715 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2716 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2717 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2718   echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2721   # We make a subdir and do the tests there.  Otherwise we can end up
2722   # making bogus files that we don't know about and never remove.  For
2723   # instance it was reported that on HP-UX the gcc test will end up
2724   # making a dummy file named `D' -- because `-MD' means `put the output
2725   # in D'.
2726   mkdir conftest.dir
2727   # Copy depcomp to subdir because otherwise we won't find it if we're
2728   # using a relative directory.
2729   cp "$am_depcomp" conftest.dir
2730   cd conftest.dir
2731   # We will build objects and dependencies in a subdirectory because
2732   # it helps to detect inapplicable dependency modes.  For instance
2733   # both Tru64's cc and ICC support -MD to output dependencies as a
2734   # side effect of compilation, but ICC will put the dependencies in
2735   # the current directory while Tru64 will put them in the object
2736   # directory.
2737   mkdir sub
2738
2739   am_cv_CC_dependencies_compiler_type=none
2740   if test "$am_compiler_list" = ""; then
2741      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2742   fi
2743   for depmode in $am_compiler_list; do
2744     # Setup a source with many dependencies, because some compilers
2745     # like to wrap large dependency lists on column 80 (with \), and
2746     # we should not choose a depcomp mode which is confused by this.
2747     #
2748     # We need to recreate these files for each test, as the compiler may
2749     # overwrite some of them when testing with obscure command lines.
2750     # This happens at least with the AIX C compiler.
2751     : > sub/conftest.c
2752     for i in 1 2 3 4 5 6; do
2753       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2754       : > sub/conftst$i.h
2755     done
2756     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2757
2758     case $depmode in
2759     nosideeffect)
2760       # after this tag, mechanisms are not by side-effect, so they'll
2761       # only be used when explicitly requested
2762       if test "x$enable_dependency_tracking" = xyes; then
2763         continue
2764       else
2765         break
2766       fi
2767       ;;
2768     none) break ;;
2769     esac
2770     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2771     # mode.  It turns out that the SunPro C++ compiler does not properly
2772     # handle `-M -o', and we need to detect this.
2773     if depmode=$depmode \
2774        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2775        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2776        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2777          >/dev/null 2>conftest.err &&
2778        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2779        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2780        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2781       # icc doesn't choke on unknown options, it will just issue warnings
2782       # (even with -Werror).  So we grep stderr for any message
2783       # that says an option was ignored.
2784       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2785         am_cv_CC_dependencies_compiler_type=$depmode
2786         break
2787       fi
2788     fi
2789   done
2790
2791   cd ..
2792   rm -rf conftest.dir
2793 else
2794   am_cv_CC_dependencies_compiler_type=none
2795 fi
2796
2797 fi
2798 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2799 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2800 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2801
2802
2803
2804 if
2805   test "x$enable_dependency_tracking" != xno \
2806   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2807   am__fastdepCC_TRUE=
2808   am__fastdepCC_FALSE='#'
2809 else
2810   am__fastdepCC_TRUE='#'
2811   am__fastdepCC_FALSE=
2812 fi
2813
2814
2815 if test -n "$ac_tool_prefix"; then
2816   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2817 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2818 echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2820 if test "${ac_cv_prog_RANLIB+set}" = set; then
2821   echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823   if test -n "$RANLIB"; then
2824   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829   IFS=$as_save_IFS
2830   test -z "$as_dir" && as_dir=.
2831   for ac_exec_ext in '' $ac_executable_extensions; do
2832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835     break 2
2836   fi
2837 done
2838 done
2839
2840 fi
2841 fi
2842 RANLIB=$ac_cv_prog_RANLIB
2843 if test -n "$RANLIB"; then
2844   echo "$as_me:$LINENO: result: $RANLIB" >&5
2845 echo "${ECHO_T}$RANLIB" >&6
2846 else
2847   echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2849 fi
2850
2851 fi
2852 if test -z "$ac_cv_prog_RANLIB"; then
2853   ac_ct_RANLIB=$RANLIB
2854   # Extract the first word of "ranlib", so it can be a program name with args.
2855 set dummy ranlib; ac_word=$2
2856 echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2859   echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861   if test -n "$ac_ct_RANLIB"; then
2862   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867   IFS=$as_save_IFS
2868   test -z "$as_dir" && as_dir=.
2869   for ac_exec_ext in '' $ac_executable_extensions; do
2870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871     ac_cv_prog_ac_ct_RANLIB="ranlib"
2872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873     break 2
2874   fi
2875 done
2876 done
2877
2878   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2879 fi
2880 fi
2881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2882 if test -n "$ac_ct_RANLIB"; then
2883   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2884 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2885 else
2886   echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2888 fi
2889
2890   RANLIB=$ac_ct_RANLIB
2891 else
2892   RANLIB="$ac_cv_prog_RANLIB"
2893 fi
2894
2895
2896 # Checks for header files.
2897
2898 ac_ext=c
2899 ac_cpp='$CPP $CPPFLAGS'
2900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2904 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2905 # On Suns, sometimes $CPP names a directory.
2906 if test -n "$CPP" && test -d "$CPP"; then
2907   CPP=
2908 fi
2909 if test -z "$CPP"; then
2910   if test "${ac_cv_prog_CPP+set}" = set; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913       # Double quotes because CPP needs to be expanded
2914     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2915     do
2916       ac_preproc_ok=false
2917 for ac_c_preproc_warn_flag in '' yes
2918 do
2919   # Use a header file that comes with gcc, so configuring glibc
2920   # with a fresh cross-compiler works.
2921   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922   # <limits.h> exists even on freestanding compilers.
2923   # On the NeXT, cc -E runs the code through the compiler's parser,
2924   # not just through cpp. "Syntax error" is here to catch this case.
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #ifdef __STDC__
2932 # include <limits.h>
2933 #else
2934 # include <assert.h>
2935 #endif
2936                      Syntax error
2937 _ACEOF
2938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2940   ac_status=$?
2941   grep -v '^ *+' conftest.er1 >conftest.err
2942   rm -f conftest.er1
2943   cat conftest.err >&5
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); } >/dev/null; then
2946   if test -s conftest.err; then
2947     ac_cpp_err=$ac_c_preproc_warn_flag
2948     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2949   else
2950     ac_cpp_err=
2951   fi
2952 else
2953   ac_cpp_err=yes
2954 fi
2955 if test -z "$ac_cpp_err"; then
2956   :
2957 else
2958   echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2960
2961   # Broken: fails on valid input.
2962 continue
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966   # OK, works on sane cases.  Now check whether non-existent headers
2967   # can be detected and how.
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974 #include <ac_nonexistent.h>
2975 _ACEOF
2976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2978   ac_status=$?
2979   grep -v '^ *+' conftest.er1 >conftest.err
2980   rm -f conftest.er1
2981   cat conftest.err >&5
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); } >/dev/null; then
2984   if test -s conftest.err; then
2985     ac_cpp_err=$ac_c_preproc_warn_flag
2986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2987   else
2988     ac_cpp_err=
2989   fi
2990 else
2991   ac_cpp_err=yes
2992 fi
2993 if test -z "$ac_cpp_err"; then
2994   # Broken: success on invalid input.
2995 continue
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000   # Passes both tests.
3001 ac_preproc_ok=:
3002 break
3003 fi
3004 rm -f conftest.err conftest.$ac_ext
3005
3006 done
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3010   break
3011 fi
3012
3013     done
3014     ac_cv_prog_CPP=$CPP
3015
3016 fi
3017   CPP=$ac_cv_prog_CPP
3018 else
3019   ac_cv_prog_CPP=$CPP
3020 fi
3021 echo "$as_me:$LINENO: result: $CPP" >&5
3022 echo "${ECHO_T}$CPP" >&6
3023 ac_preproc_ok=false
3024 for ac_c_preproc_warn_flag in '' yes
3025 do
3026   # Use a header file that comes with gcc, so configuring glibc
3027   # with a fresh cross-compiler works.
3028   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3029   # <limits.h> exists even on freestanding compilers.
3030   # On the NeXT, cc -E runs the code through the compiler's parser,
3031   # not just through cpp. "Syntax error" is here to catch this case.
3032   cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h.  */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h.  */
3038 #ifdef __STDC__
3039 # include <limits.h>
3040 #else
3041 # include <assert.h>
3042 #endif
3043                      Syntax error
3044 _ACEOF
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } >/dev/null; then
3053   if test -s conftest.err; then
3054     ac_cpp_err=$ac_c_preproc_warn_flag
3055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3056   else
3057     ac_cpp_err=
3058   fi
3059 else
3060   ac_cpp_err=yes
3061 fi
3062 if test -z "$ac_cpp_err"; then
3063   :
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068   # Broken: fails on valid input.
3069 continue
3070 fi
3071 rm -f conftest.err conftest.$ac_ext
3072
3073   # OK, works on sane cases.  Now check whether non-existent headers
3074   # can be detected and how.
3075   cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081 #include <ac_nonexistent.h>
3082 _ACEOF
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3085   ac_status=$?
3086   grep -v '^ *+' conftest.er1 >conftest.err
3087   rm -f conftest.er1
3088   cat conftest.err >&5
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); } >/dev/null; then
3091   if test -s conftest.err; then
3092     ac_cpp_err=$ac_c_preproc_warn_flag
3093     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3094   else
3095     ac_cpp_err=
3096   fi
3097 else
3098   ac_cpp_err=yes
3099 fi
3100 if test -z "$ac_cpp_err"; then
3101   # Broken: success on invalid input.
3102 continue
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107   # Passes both tests.
3108 ac_preproc_ok=:
3109 break
3110 fi
3111 rm -f conftest.err conftest.$ac_ext
3112
3113 done
3114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3115 rm -f conftest.err conftest.$ac_ext
3116 if $ac_preproc_ok; then
3117   :
3118 else
3119   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3122 See \`config.log' for more details." >&2;}
3123    { (exit 1); exit 1; }; }
3124 fi
3125
3126 ac_ext=c
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131
3132
3133 echo "$as_me:$LINENO: checking for egrep" >&5
3134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3135 if test "${ac_cv_prog_egrep+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3139     then ac_cv_prog_egrep='grep -E'
3140     else ac_cv_prog_egrep='egrep'
3141     fi
3142 fi
3143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3145  EGREP=$ac_cv_prog_egrep
3146
3147
3148 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3149 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3150 if test "${ac_cv_header_stdc+set}" = set; then
3151   echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153   cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159 #include <stdlib.h>
3160 #include <stdarg.h>
3161 #include <string.h>
3162 #include <float.h>
3163
3164 int
3165 main ()
3166 {
3167
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174   (eval $ac_compile) 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } &&
3181          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183   (eval $ac_try) 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); }; } &&
3187          { ac_try='test -s conftest.$ac_objext'
3188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189   (eval $ac_try) 2>&5
3190   ac_status=$?
3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192   (exit $ac_status); }; }; then
3193   ac_cv_header_stdc=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198 ac_cv_header_stdc=no
3199 fi
3200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3201
3202 if test $ac_cv_header_stdc = yes; then
3203   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3204   cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h.  */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h.  */
3210 #include <string.h>
3211
3212 _ACEOF
3213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3214   $EGREP "memchr" >/dev/null 2>&1; then
3215   :
3216 else
3217   ac_cv_header_stdc=no
3218 fi
3219 rm -f conftest*
3220
3221 fi
3222
3223 if test $ac_cv_header_stdc = yes; then
3224   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3225   cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h.  */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h.  */
3231 #include <stdlib.h>
3232
3233 _ACEOF
3234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3235   $EGREP "free" >/dev/null 2>&1; then
3236   :
3237 else
3238   ac_cv_header_stdc=no
3239 fi
3240 rm -f conftest*
3241
3242 fi
3243
3244 if test $ac_cv_header_stdc = yes; then
3245   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3246   if test "$cross_compiling" = yes; then
3247   :
3248 else
3249   cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255 #include <ctype.h>
3256 #if ((' ' & 0x0FF) == 0x020)
3257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3259 #else
3260 # define ISLOWER(c) \
3261                    (('a' <= (c) && (c) <= 'i') \
3262                      || ('j' <= (c) && (c) <= 'r') \
3263                      || ('s' <= (c) && (c) <= 'z'))
3264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3265 #endif
3266
3267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3268 int
3269 main ()
3270 {
3271   int i;
3272   for (i = 0; i < 256; i++)
3273     if (XOR (islower (i), ISLOWER (i))
3274         || toupper (i) != TOUPPER (i))
3275       exit(2);
3276   exit (0);
3277 }
3278 _ACEOF
3279 rm -f conftest$ac_exeext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3281   (eval $ac_link) 2>&5
3282   ac_status=$?
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286   (eval $ac_try) 2>&5
3287   ac_status=$?
3288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289   (exit $ac_status); }; }; then
3290   :
3291 else
3292   echo "$as_me: program exited with status $ac_status" >&5
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296 ( exit $ac_status )
3297 ac_cv_header_stdc=no
3298 fi
3299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3300 fi
3301 fi
3302 fi
3303 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3304 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3305 if test $ac_cv_header_stdc = yes; then
3306
3307 cat >>confdefs.h <<\_ACEOF
3308 #define STDC_HEADERS 1
3309 _ACEOF
3310
3311 fi
3312
3313 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3314 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3315 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3316   echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318   cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h.  */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h.  */
3324 #include <sys/types.h>
3325 #include <sys/wait.h>
3326 #ifndef WEXITSTATUS
3327 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3328 #endif
3329 #ifndef WIFEXITED
3330 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3331 #endif
3332
3333 int
3334 main ()
3335 {
3336   int s;
3337   wait (&s);
3338   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3339   ;
3340   return 0;
3341 }
3342 _ACEOF
3343 rm -f conftest.$ac_objext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3345   (eval $ac_compile) 2>conftest.er1
3346   ac_status=$?
3347   grep -v '^ *+' conftest.er1 >conftest.err
3348   rm -f conftest.er1
3349   cat conftest.err >&5
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); } &&
3352          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354   (eval $ac_try) 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }; } &&
3358          { ac_try='test -s conftest.$ac_objext'
3359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360   (eval $ac_try) 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); }; }; then
3364   ac_cv_header_sys_wait_h=yes
3365 else
3366   echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3368
3369 ac_cv_header_sys_wait_h=no
3370 fi
3371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3372 fi
3373 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3374 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3375 if test $ac_cv_header_sys_wait_h = yes; then
3376
3377 cat >>confdefs.h <<\_ACEOF
3378 #define HAVE_SYS_WAIT_H 1
3379 _ACEOF
3380
3381 fi
3382
3383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3394                   inttypes.h stdint.h unistd.h
3395 do
3396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3397 echo "$as_me:$LINENO: checking for $ac_header" >&5
3398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3400   echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402   cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h.  */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h.  */
3408 $ac_includes_default
3409
3410 #include <$ac_header>
3411 _ACEOF
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414   (eval $ac_compile) 2>conftest.er1
3415   ac_status=$?
3416   grep -v '^ *+' conftest.er1 >conftest.err
3417   rm -f conftest.er1
3418   cat conftest.err >&5
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); } &&
3421          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423   (eval $ac_try) 2>&5
3424   ac_status=$?
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); }; } &&
3427          { ac_try='test -s conftest.$ac_objext'
3428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429   (eval $ac_try) 2>&5
3430   ac_status=$?
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); }; }; then
3433   eval "$as_ac_Header=yes"
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438 eval "$as_ac_Header=no"
3439 fi
3440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3441 fi
3442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3445   cat >>confdefs.h <<_ACEOF
3446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3447 _ACEOF
3448
3449 fi
3450
3451 done
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464 for ac_header in arpa/inet.h fcntl.h malloc.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h syslog.h unistd.h
3465 do
3466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3468   echo "$as_me:$LINENO: checking for $ac_header" >&5
3469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3471   echo $ECHO_N "(cached) $ECHO_C" >&6
3472 fi
3473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3475 else
3476   # Is the header compilable?
3477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3479 cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h.  */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h.  */
3485 $ac_includes_default
3486 #include <$ac_header>
3487 _ACEOF
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490   (eval $ac_compile) 2>conftest.er1
3491   ac_status=$?
3492   grep -v '^ *+' conftest.er1 >conftest.err
3493   rm -f conftest.er1
3494   cat conftest.err >&5
3495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496   (exit $ac_status); } &&
3497          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499   (eval $ac_try) 2>&5
3500   ac_status=$?
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); }; } &&
3503          { ac_try='test -s conftest.$ac_objext'
3504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505   (eval $ac_try) 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); }; }; then
3509   ac_header_compiler=yes
3510 else
3511   echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514 ac_header_compiler=no
3515 fi
3516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3518 echo "${ECHO_T}$ac_header_compiler" >&6
3519
3520 # Is the header present?
3521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3523 cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h.  */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h.  */
3529 #include <$ac_header>
3530 _ACEOF
3531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3532   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3533   ac_status=$?
3534   grep -v '^ *+' conftest.er1 >conftest.err
3535   rm -f conftest.er1
3536   cat conftest.err >&5
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); } >/dev/null; then
3539   if test -s conftest.err; then
3540     ac_cpp_err=$ac_c_preproc_warn_flag
3541     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3542   else
3543     ac_cpp_err=
3544   fi
3545 else
3546   ac_cpp_err=yes
3547 fi
3548 if test -z "$ac_cpp_err"; then
3549   ac_header_preproc=yes
3550 else
3551   echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554   ac_header_preproc=no
3555 fi
3556 rm -f conftest.err conftest.$ac_ext
3557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3558 echo "${ECHO_T}$ac_header_preproc" >&6
3559
3560 # So?  What about this header?
3561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3562   yes:no: )
3563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3567     ac_header_preproc=yes
3568     ;;
3569   no:yes:* )
3570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3572     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3573 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3574     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3576     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3577 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3580     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3582     (
3583       cat <<\_ASBOX
3584 ## ------------------------------------------ ##
3585 ## Report this to the AC_PACKAGE_NAME lists.  ##
3586 ## ------------------------------------------ ##
3587 _ASBOX
3588     ) |
3589       sed "s/^/$as_me: WARNING:     /" >&2
3590     ;;
3591 esac
3592 echo "$as_me:$LINENO: checking for $ac_header" >&5
3593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   eval "$as_ac_Header=\$ac_header_preproc"
3598 fi
3599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3601
3602 fi
3603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3604   cat >>confdefs.h <<_ACEOF
3605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3606 _ACEOF
3607
3608 fi
3609
3610 done
3611
3612
3613 # Checks for typedefs, structures, and compiler characteristics.
3614 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3615 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3616 if test "${ac_cv_c_const+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   cat >conftest.$ac_ext <<_ACEOF
3620 /* confdefs.h.  */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h.  */
3625
3626 int
3627 main ()
3628 {
3629 /* FIXME: Include the comments suggested by Paul. */
3630 #ifndef __cplusplus
3631   /* Ultrix mips cc rejects this.  */
3632   typedef int charset[2];
3633   const charset x;
3634   /* SunOS 4.1.1 cc rejects this.  */
3635   char const *const *ccp;
3636   char **p;
3637   /* NEC SVR4.0.2 mips cc rejects this.  */
3638   struct point {int x, y;};
3639   static struct point const zero = {0,0};
3640   /* AIX XL C 1.02.0.0 rejects this.
3641      It does not let you subtract one const X* pointer from another in
3642      an arm of an if-expression whose if-part is not a constant
3643      expression */
3644   const char *g = "string";
3645   ccp = &g + (g ? g-g : 0);
3646   /* HPUX 7.0 cc rejects these. */
3647   ++ccp;
3648   p = (char**) ccp;
3649   ccp = (char const *const *) p;
3650   { /* SCO 3.2v4 cc rejects this.  */
3651     char *t;
3652     char const *s = 0 ? (char *) 0 : (char const *) 0;
3653
3654     *t++ = 0;
3655   }
3656   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3657     int x[] = {25, 17};
3658     const int *foo = &x[0];
3659     ++foo;
3660   }
3661   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3662     typedef const int *iptr;
3663     iptr p = 0;
3664     ++p;
3665   }
3666   { /* AIX XL C 1.02.0.0 rejects this saying
3667        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3668     struct s { int j; const int *ap[3]; };
3669     struct s *b; b->j = 5;
3670   }
3671   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3672     const int foo = 10;
3673   }
3674 #endif
3675
3676   ;
3677   return 0;
3678 }
3679 _ACEOF
3680 rm -f conftest.$ac_objext
3681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3682   (eval $ac_compile) 2>conftest.er1
3683   ac_status=$?
3684   grep -v '^ *+' conftest.er1 >conftest.err
3685   rm -f conftest.er1
3686   cat conftest.err >&5
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); } &&
3689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691   (eval $ac_try) 2>&5
3692   ac_status=$?
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); }; } &&
3695          { ac_try='test -s conftest.$ac_objext'
3696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697   (eval $ac_try) 2>&5
3698   ac_status=$?
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); }; }; then
3701   ac_cv_c_const=yes
3702 else
3703   echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 ac_cv_c_const=no
3707 fi
3708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3709 fi
3710 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3711 echo "${ECHO_T}$ac_cv_c_const" >&6
3712 if test $ac_cv_c_const = no; then
3713
3714 cat >>confdefs.h <<\_ACEOF
3715 #define const
3716 _ACEOF
3717
3718 fi
3719
3720 echo "$as_me:$LINENO: checking for pid_t" >&5
3721 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3722 if test "${ac_cv_type_pid_t+set}" = set; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h.  */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h.  */
3731 $ac_includes_default
3732 int
3733 main ()
3734 {
3735 if ((pid_t *) 0)
3736   return 0;
3737 if (sizeof (pid_t))
3738   return 0;
3739   ;
3740   return 0;
3741 }
3742 _ACEOF
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745   (eval $ac_compile) 2>conftest.er1
3746   ac_status=$?
3747   grep -v '^ *+' conftest.er1 >conftest.err
3748   rm -f conftest.er1
3749   cat conftest.err >&5
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); } &&
3752          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754   (eval $ac_try) 2>&5
3755   ac_status=$?
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); }; } &&
3758          { ac_try='test -s conftest.$ac_objext'
3759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760   (eval $ac_try) 2>&5
3761   ac_status=$?
3762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763   (exit $ac_status); }; }; then
3764   ac_cv_type_pid_t=yes
3765 else
3766   echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3768
3769 ac_cv_type_pid_t=no
3770 fi
3771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3772 fi
3773 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3774 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3775 if test $ac_cv_type_pid_t = yes; then
3776   :
3777 else
3778
3779 cat >>confdefs.h <<_ACEOF
3780 #define pid_t int
3781 _ACEOF
3782
3783 fi
3784
3785 echo "$as_me:$LINENO: checking for size_t" >&5
3786 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3787 if test "${ac_cv_type_size_t+set}" = set; then
3788   echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790   cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h.  */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h.  */
3796 $ac_includes_default
3797 int
3798 main ()
3799 {
3800 if ((size_t *) 0)
3801   return 0;
3802 if (sizeof (size_t))
3803   return 0;
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 rm -f conftest.$ac_objext
3809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810   (eval $ac_compile) 2>conftest.er1
3811   ac_status=$?
3812   grep -v '^ *+' conftest.er1 >conftest.err
3813   rm -f conftest.er1
3814   cat conftest.err >&5
3815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816   (exit $ac_status); } &&
3817          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
3823          { ac_try='test -s conftest.$ac_objext'
3824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825   (eval $ac_try) 2>&5
3826   ac_status=$?
3827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828   (exit $ac_status); }; }; then
3829   ac_cv_type_size_t=yes
3830 else
3831   echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3833
3834 ac_cv_type_size_t=no
3835 fi
3836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3837 fi
3838 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3839 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3840 if test $ac_cv_type_size_t = yes; then
3841   :
3842 else
3843
3844 cat >>confdefs.h <<_ACEOF
3845 #define size_t unsigned
3846 _ACEOF
3847
3848 fi
3849
3850 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
3851 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
3852 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
3853   echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855   cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h.  */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h.  */
3861
3862 #include <sys/types.h>
3863 #include <sys/socket.h>
3864
3865
3866 int
3867 main ()
3868 {
3869 static struct sockaddr ac_aggr;
3870 if (ac_aggr.sa_len)
3871 return 0;
3872   ;
3873   return 0;
3874 }
3875 _ACEOF
3876 rm -f conftest.$ac_objext
3877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878   (eval $ac_compile) 2>conftest.er1
3879   ac_status=$?
3880   grep -v '^ *+' conftest.er1 >conftest.err
3881   rm -f conftest.er1
3882   cat conftest.err >&5
3883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884   (exit $ac_status); } &&
3885          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887   (eval $ac_try) 2>&5
3888   ac_status=$?
3889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890   (exit $ac_status); }; } &&
3891          { ac_try='test -s conftest.$ac_objext'
3892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893   (eval $ac_try) 2>&5
3894   ac_status=$?
3895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); }; }; then
3897   ac_cv_member_struct_sockaddr_sa_len=yes
3898 else
3899   echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3901
3902 cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908
3909 #include <sys/types.h>
3910 #include <sys/socket.h>
3911
3912
3913 int
3914 main ()
3915 {
3916 static struct sockaddr ac_aggr;
3917 if (sizeof ac_aggr.sa_len)
3918 return 0;
3919   ;
3920   return 0;
3921 }
3922 _ACEOF
3923 rm -f conftest.$ac_objext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925   (eval $ac_compile) 2>conftest.er1
3926   ac_status=$?
3927   grep -v '^ *+' conftest.er1 >conftest.err
3928   rm -f conftest.er1
3929   cat conftest.err >&5
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); } &&
3932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934   (eval $ac_try) 2>&5
3935   ac_status=$?
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); }; } &&
3938          { ac_try='test -s conftest.$ac_objext'
3939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940   (eval $ac_try) 2>&5
3941   ac_status=$?
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); }; }; then
3944   ac_cv_member_struct_sockaddr_sa_len=yes
3945 else
3946   echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949 ac_cv_member_struct_sockaddr_sa_len=no
3950 fi
3951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952 fi
3953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3954 fi
3955 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
3956 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
3957 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
3958
3959 cat >>confdefs.h <<\_ACEOF
3960 #define HAVE_SA_LEN 1
3961 _ACEOF
3962
3963 fi
3964
3965
3966 # Checks for library functions.
3967 echo "$as_me:$LINENO: checking for working memcmp" >&5
3968 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3969 if test "${ac_cv_func_memcmp_working+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   if test "$cross_compiling" = yes; then
3973   ac_cv_func_memcmp_working=no
3974 else
3975   cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h.  */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h.  */
3981 $ac_includes_default
3982 int
3983 main ()
3984 {
3985
3986   /* Some versions of memcmp are not 8-bit clean.  */
3987   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3988   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3989     exit (1);
3990
3991   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3992      or more and with at least one buffer not starting on a 4-byte boundary.
3993      William Lewis provided this test program.   */
3994   {
3995     char foo[21];
3996     char bar[21];
3997     int i;
3998     for (i = 0; i < 4; i++)
3999       {
4000         char *a = foo + i;
4001         char *b = bar + i;
4002         strcpy (a, "--------01111111");
4003         strcpy (b, "--------10000000");
4004         if (memcmp (a, b, 16) >= 0)
4005           exit (1);
4006       }
4007     exit (0);
4008   }
4009
4010   ;
4011   return 0;
4012 }
4013 _ACEOF
4014 rm -f conftest$ac_exeext
4015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4016   (eval $ac_link) 2>&5
4017   ac_status=$?
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021   (eval $ac_try) 2>&5
4022   ac_status=$?
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); }; }; then
4025   ac_cv_func_memcmp_working=yes
4026 else
4027   echo "$as_me: program exited with status $ac_status" >&5
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 ( exit $ac_status )
4032 ac_cv_func_memcmp_working=no
4033 fi
4034 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4035 fi
4036 fi
4037 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4038 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4039 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
4040     "memcmp.$ac_objext"   | \
4041   *" memcmp.$ac_objext"   | \
4042     "memcmp.$ac_objext "* | \
4043   *" memcmp.$ac_objext "* ) ;;
4044   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
4045 esac
4046
4047
4048 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4049 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4050 if test "${ac_cv_type_signal+set}" = set; then
4051   echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053   cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h.  */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h.  */
4059 #include <sys/types.h>
4060 #include <signal.h>
4061 #ifdef signal
4062 # undef signal
4063 #endif
4064 #ifdef __cplusplus
4065 extern "C" void (*signal (int, void (*)(int)))(int);
4066 #else
4067 void (*signal ()) ();
4068 #endif
4069
4070 int
4071 main ()
4072 {
4073 int i;
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 rm -f conftest.$ac_objext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080   (eval $ac_compile) 2>conftest.er1
4081   ac_status=$?
4082   grep -v '^ *+' conftest.er1 >conftest.err
4083   rm -f conftest.er1
4084   cat conftest.err >&5
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); } &&
4087          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089   (eval $ac_try) 2>&5
4090   ac_status=$?
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); }; } &&
4093          { ac_try='test -s conftest.$ac_objext'
4094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095   (eval $ac_try) 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; }; then
4099   ac_cv_type_signal=void
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 ac_cv_type_signal=int
4105 fi
4106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4107 fi
4108 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4109 echo "${ECHO_T}$ac_cv_type_signal" >&6
4110
4111 cat >>confdefs.h <<_ACEOF
4112 #define RETSIGTYPE $ac_cv_type_signal
4113 _ACEOF
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124 for ac_func in alarm inet_ntoa socket strtol sysinfo fork malloc free
4125 do
4126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4127 echo "$as_me:$LINENO: checking for $ac_func" >&5
4128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4129 if eval "test \"\${$as_ac_var+set}\" = set"; then
4130   echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132   cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h.  */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h.  */
4138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4140 #define $ac_func innocuous_$ac_func
4141
4142 /* System header to define __stub macros and hopefully few prototypes,
4143     which can conflict with char $ac_func (); below.
4144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4145     <limits.h> exists even on freestanding compilers.  */
4146
4147 #ifdef __STDC__
4148 # include <limits.h>
4149 #else
4150 # include <assert.h>
4151 #endif
4152
4153 #undef $ac_func
4154
4155 /* Override any gcc2 internal prototype to avoid an error.  */
4156 #ifdef __cplusplus
4157 extern "C"
4158 {
4159 #endif
4160 /* We use char because int might match the return type of a gcc2
4161    builtin and then its argument prototype would still apply.  */
4162 char $ac_func ();
4163 /* The GNU C library defines this for functions which it implements
4164     to always fail with ENOSYS.  Some functions are actually named
4165     something starting with __ and the normal name is an alias.  */
4166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4167 choke me
4168 #else
4169 char (*f) () = $ac_func;
4170 #endif
4171 #ifdef __cplusplus
4172 }
4173 #endif
4174
4175 int
4176 main ()
4177 {
4178 return f != $ac_func;
4179   ;
4180   return 0;
4181 }
4182 _ACEOF
4183 rm -f conftest.$ac_objext conftest$ac_exeext
4184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4185   (eval $ac_link) 2>conftest.er1
4186   ac_status=$?
4187   grep -v '^ *+' conftest.er1 >conftest.err
4188   rm -f conftest.er1
4189   cat conftest.err >&5
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); } &&
4192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194   (eval $ac_try) 2>&5
4195   ac_status=$?
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); }; } &&
4198          { ac_try='test -s conftest$ac_exeext'
4199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200   (eval $ac_try) 2>&5
4201   ac_status=$?
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); }; }; then
4204   eval "$as_ac_var=yes"
4205 else
4206   echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4208
4209 eval "$as_ac_var=no"
4210 fi
4211 rm -f conftest.err conftest.$ac_objext \
4212       conftest$ac_exeext conftest.$ac_ext
4213 fi
4214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4216 if test `eval echo '${'$as_ac_var'}'` = yes; then
4217   cat >>confdefs.h <<_ACEOF
4218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4219 _ACEOF
4220
4221 fi
4222 done
4223
4224
4225 ALL_LINGUAS="uk fr pl ro nl tr"
4226
4227
4228         MKINSTALLDIRS=
4229   if test -n "$ac_aux_dir"; then
4230     case "$ac_aux_dir" in
4231       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4232       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4233     esac
4234   fi
4235   if test -z "$MKINSTALLDIRS"; then
4236     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4237   fi
4238
4239
4240
4241   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4242 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4243     # Check whether --enable-nls or --disable-nls was given.
4244 if test "${enable_nls+set}" = set; then
4245   enableval="$enable_nls"
4246   USE_NLS=$enableval
4247 else
4248   USE_NLS=yes
4249 fi;
4250   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4251 echo "${ECHO_T}$USE_NLS" >&6
4252
4253
4254
4255
4256
4257
4258 # Prepare PATH_SEPARATOR.
4259 # The user is always right.
4260 if test "${PATH_SEPARATOR+set}" != set; then
4261   echo "#! /bin/sh" >conf$$.sh
4262   echo  "exit 0"   >>conf$$.sh
4263   chmod +x conf$$.sh
4264   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4265     PATH_SEPARATOR=';'
4266   else
4267     PATH_SEPARATOR=:
4268   fi
4269   rm -f conf$$.sh
4270 fi
4271
4272 # Find out how to test for executable files. Don't use a zero-byte file,
4273 # as systems may use methods other than mode bits to determine executability.
4274 cat >conf$$.file <<_ASEOF
4275 #! /bin/sh
4276 exit 0
4277 _ASEOF
4278 chmod +x conf$$.file
4279 if test -x conf$$.file >/dev/null 2>&1; then
4280   ac_executable_p="test -x"
4281 else
4282   ac_executable_p="test -f"
4283 fi
4284 rm -f conf$$.file
4285
4286 # Extract the first word of "msgfmt", so it can be a program name with args.
4287 set dummy msgfmt; ac_word=$2
4288 echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4290 if test "${ac_cv_path_MSGFMT+set}" = set; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   case "$MSGFMT" in
4294   [\\/]* | ?:[\\/]*)
4295     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4296     ;;
4297   *)
4298     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4299     for ac_dir in $PATH; do
4300       IFS="$ac_save_IFS"
4301       test -z "$ac_dir" && ac_dir=.
4302       for ac_exec_ext in '' $ac_executable_extensions; do
4303         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4304           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4305      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4306             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4307             break 2
4308           fi
4309         fi
4310       done
4311     done
4312     IFS="$ac_save_IFS"
4313   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4314     ;;
4315 esac
4316 fi
4317 MSGFMT="$ac_cv_path_MSGFMT"
4318 if test "$MSGFMT" != ":"; then
4319   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4320 echo "${ECHO_T}$MSGFMT" >&6
4321 else
4322   echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4324 fi
4325
4326   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4327 set dummy gmsgfmt; ac_word=$2
4328 echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   case $GMSGFMT in
4334   [\\/]* | ?:[\\/]*)
4335   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4336   ;;
4337   *)
4338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341   IFS=$as_save_IFS
4342   test -z "$as_dir" && as_dir=.
4343   for ac_exec_ext in '' $ac_executable_extensions; do
4344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347     break 2
4348   fi
4349 done
4350 done
4351
4352   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4353   ;;
4354 esac
4355 fi
4356 GMSGFMT=$ac_cv_path_GMSGFMT
4357
4358 if test -n "$GMSGFMT"; then
4359   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4360 echo "${ECHO_T}$GMSGFMT" >&6
4361 else
4362   echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4364 fi
4365
4366
4367
4368 # Prepare PATH_SEPARATOR.
4369 # The user is always right.
4370 if test "${PATH_SEPARATOR+set}" != set; then
4371   echo "#! /bin/sh" >conf$$.sh
4372   echo  "exit 0"   >>conf$$.sh
4373   chmod +x conf$$.sh
4374   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4375     PATH_SEPARATOR=';'
4376   else
4377     PATH_SEPARATOR=:
4378   fi
4379   rm -f conf$$.sh
4380 fi
4381
4382 # Find out how to test for executable files. Don't use a zero-byte file,
4383 # as systems may use methods other than mode bits to determine executability.
4384 cat >conf$$.file <<_ASEOF
4385 #! /bin/sh
4386 exit 0
4387 _ASEOF
4388 chmod +x conf$$.file
4389 if test -x conf$$.file >/dev/null 2>&1; then
4390   ac_executable_p="test -x"
4391 else
4392   ac_executable_p="test -f"
4393 fi
4394 rm -f conf$$.file
4395
4396 # Extract the first word of "xgettext", so it can be a program name with args.
4397 set dummy xgettext; ac_word=$2
4398 echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   case "$XGETTEXT" in
4404   [\\/]* | ?:[\\/]*)
4405     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4406     ;;
4407   *)
4408     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4409     for ac_dir in $PATH; do
4410       IFS="$ac_save_IFS"
4411       test -z "$ac_dir" && ac_dir=.
4412       for ac_exec_ext in '' $ac_executable_extensions; do
4413         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4414           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4415      (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
4416             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4417             break 2
4418           fi
4419         fi
4420       done
4421     done
4422     IFS="$ac_save_IFS"
4423   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4424     ;;
4425 esac
4426 fi
4427 XGETTEXT="$ac_cv_path_XGETTEXT"
4428 if test "$XGETTEXT" != ":"; then
4429   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4430 echo "${ECHO_T}$XGETTEXT" >&6
4431 else
4432   echo "$as_me:$LINENO: result: no" >&5
4433 echo "${ECHO_T}no" >&6
4434 fi
4435
4436     rm -f messages.po
4437
4438
4439 # Prepare PATH_SEPARATOR.
4440 # The user is always right.
4441 if test "${PATH_SEPARATOR+set}" != set; then
4442   echo "#! /bin/sh" >conf$$.sh
4443   echo  "exit 0"   >>conf$$.sh
4444   chmod +x conf$$.sh
4445   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4446     PATH_SEPARATOR=';'
4447   else
4448     PATH_SEPARATOR=:
4449   fi
4450   rm -f conf$$.sh
4451 fi
4452
4453 # Find out how to test for executable files. Don't use a zero-byte file,
4454 # as systems may use methods other than mode bits to determine executability.
4455 cat >conf$$.file <<_ASEOF
4456 #! /bin/sh
4457 exit 0
4458 _ASEOF
4459 chmod +x conf$$.file
4460 if test -x conf$$.file >/dev/null 2>&1; then
4461   ac_executable_p="test -x"
4462 else
4463   ac_executable_p="test -f"
4464 fi
4465 rm -f conf$$.file
4466
4467 # Extract the first word of "msgmerge", so it can be a program name with args.
4468 set dummy msgmerge; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   case "$MSGMERGE" in
4475   [\\/]* | ?:[\\/]*)
4476     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4477     ;;
4478   *)
4479     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4480     for ac_dir in $PATH; do
4481       IFS="$ac_save_IFS"
4482       test -z "$ac_dir" && ac_dir=.
4483       for ac_exec_ext in '' $ac_executable_extensions; do
4484         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4485           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4486             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4487             break 2
4488           fi
4489         fi
4490       done
4491     done
4492     IFS="$ac_save_IFS"
4493   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4494     ;;
4495 esac
4496 fi
4497 MSGMERGE="$ac_cv_path_MSGMERGE"
4498 if test "$MSGMERGE" != ":"; then
4499   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4500 echo "${ECHO_T}$MSGMERGE" >&6
4501 else
4502   echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4504 fi
4505
4506
4507       if test "$GMSGFMT" != ":"; then
4508             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4509        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4510       : ;
4511     else
4512       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4513       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4514 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4515       GMSGFMT=":"
4516     fi
4517   fi
4518
4519       if test "$XGETTEXT" != ":"; then
4520             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4521        (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
4522       : ;
4523     else
4524       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4525 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4526       XGETTEXT=":"
4527     fi
4528         rm -f messages.po
4529   fi
4530
4531             ac_config_commands="$ac_config_commands default-1"
4532
4533
4534 # Make sure we can run config.sub.
4535 $ac_config_sub sun4 >/dev/null 2>&1 ||
4536   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4537 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4538    { (exit 1); exit 1; }; }
4539
4540 echo "$as_me:$LINENO: checking build system type" >&5
4541 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4542 if test "${ac_cv_build+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   ac_cv_build_alias=$build_alias
4546 test -z "$ac_cv_build_alias" &&
4547   ac_cv_build_alias=`$ac_config_guess`
4548 test -z "$ac_cv_build_alias" &&
4549   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4550 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4551    { (exit 1); exit 1; }; }
4552 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4553   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4554 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4555    { (exit 1); exit 1; }; }
4556
4557 fi
4558 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4559 echo "${ECHO_T}$ac_cv_build" >&6
4560 build=$ac_cv_build
4561 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4562 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4563 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4564
4565
4566 echo "$as_me:$LINENO: checking host system type" >&5
4567 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4568 if test "${ac_cv_host+set}" = set; then
4569   echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571   ac_cv_host_alias=$host_alias
4572 test -z "$ac_cv_host_alias" &&
4573   ac_cv_host_alias=$ac_cv_build_alias
4574 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4575   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4576 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4577    { (exit 1); exit 1; }; }
4578
4579 fi
4580 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4581 echo "${ECHO_T}$ac_cv_host" >&6
4582 host=$ac_cv_host
4583 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4584 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4585 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4586
4587
4588
4589         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4590 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
4591 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4592   echo $ECHO_N "(cached) $ECHO_C" >&6
4593 else
4594   ac_check_lib_save_LIBS=$LIBS
4595 LIBS="-lcposix  $LIBS"
4596 cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h.  */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h.  */
4602
4603 /* Override any gcc2 internal prototype to avoid an error.  */
4604 #ifdef __cplusplus
4605 extern "C"
4606 #endif
4607 /* We use char because int might match the return type of a gcc2
4608    builtin and then its argument prototype would still apply.  */
4609 char strerror ();
4610 int
4611 main ()
4612 {
4613 strerror ();
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 rm -f conftest.$ac_objext conftest$ac_exeext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4620   (eval $ac_link) 2>conftest.er1
4621   ac_status=$?
4622   grep -v '^ *+' conftest.er1 >conftest.err
4623   rm -f conftest.er1
4624   cat conftest.err >&5
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); } &&
4627          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629   (eval $ac_try) 2>&5
4630   ac_status=$?
4631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632   (exit $ac_status); }; } &&
4633          { ac_try='test -s conftest$ac_exeext'
4634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635   (eval $ac_try) 2>&5
4636   ac_status=$?
4637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638   (exit $ac_status); }; }; then
4639   ac_cv_lib_cposix_strerror=yes
4640 else
4641   echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644 ac_cv_lib_cposix_strerror=no
4645 fi
4646 rm -f conftest.err conftest.$ac_objext \
4647       conftest$ac_exeext conftest.$ac_ext
4648 LIBS=$ac_check_lib_save_LIBS
4649 fi
4650 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4651 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4652 if test $ac_cv_lib_cposix_strerror = yes; then
4653   LIBS="$LIBS -lcposix"
4654 fi
4655
4656
4657
4658
4659   echo "$as_me:$LINENO: checking for signed" >&5
4660 echo $ECHO_N "checking for signed... $ECHO_C" >&6
4661 if test "${bh_cv_c_signed+set}" = set; then
4662   echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664   cat >conftest.$ac_ext <<_ACEOF
4665 /* confdefs.h.  */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h.  */
4670
4671 int
4672 main ()
4673 {
4674 signed char x;
4675   ;
4676   return 0;
4677 }
4678 _ACEOF
4679 rm -f conftest.$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681   (eval $ac_compile) 2>conftest.er1
4682   ac_status=$?
4683   grep -v '^ *+' conftest.er1 >conftest.err
4684   rm -f conftest.er1
4685   cat conftest.err >&5
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); } &&
4688          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690   (eval $ac_try) 2>&5
4691   ac_status=$?
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); }; } &&
4694          { ac_try='test -s conftest.$ac_objext'
4695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696   (eval $ac_try) 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); }; }; then
4700   bh_cv_c_signed=yes
4701 else
4702   echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705 bh_cv_c_signed=no
4706 fi
4707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4708 fi
4709 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4710 echo "${ECHO_T}$bh_cv_c_signed" >&6
4711   if test $bh_cv_c_signed = no; then
4712
4713 cat >>confdefs.h <<\_ACEOF
4714 #define signed
4715 _ACEOF
4716
4717   fi
4718
4719 echo "$as_me:$LINENO: checking for inline" >&5
4720 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4721 if test "${ac_cv_c_inline+set}" = set; then
4722   echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724   ac_cv_c_inline=no
4725 for ac_kw in inline __inline__ __inline; do
4726   cat >conftest.$ac_ext <<_ACEOF
4727 /* confdefs.h.  */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h.  */
4732 #ifndef __cplusplus
4733 typedef int foo_t;
4734 static $ac_kw foo_t static_foo () {return 0; }
4735 $ac_kw foo_t foo () {return 0; }
4736 #endif
4737
4738 _ACEOF
4739 rm -f conftest.$ac_objext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741   (eval $ac_compile) 2>conftest.er1
4742   ac_status=$?
4743   grep -v '^ *+' conftest.er1 >conftest.err
4744   rm -f conftest.er1
4745   cat conftest.err >&5
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } &&
4748          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750   (eval $ac_try) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; } &&
4754          { ac_try='test -s conftest.$ac_objext'
4755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756   (eval $ac_try) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); }; }; then
4760   ac_cv_c_inline=$ac_kw; break
4761 else
4762   echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765 fi
4766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767 done
4768
4769 fi
4770 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4771 echo "${ECHO_T}$ac_cv_c_inline" >&6
4772
4773
4774 case $ac_cv_c_inline in
4775   inline | yes) ;;
4776   *)
4777     case $ac_cv_c_inline in
4778       no) ac_val=;;
4779       *) ac_val=$ac_cv_c_inline;;
4780     esac
4781     cat >>confdefs.h <<_ACEOF
4782 #ifndef __cplusplus
4783 #define inline $ac_val
4784 #endif
4785 _ACEOF
4786     ;;
4787 esac
4788
4789 echo "$as_me:$LINENO: checking for off_t" >&5
4790 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4791 if test "${ac_cv_type_off_t+set}" = set; then
4792   echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794   cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800 $ac_includes_default
4801 int
4802 main ()
4803 {
4804 if ((off_t *) 0)
4805   return 0;
4806 if (sizeof (off_t))
4807   return 0;
4808   ;
4809   return 0;
4810 }
4811 _ACEOF
4812 rm -f conftest.$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814   (eval $ac_compile) 2>conftest.er1
4815   ac_status=$?
4816   grep -v '^ *+' conftest.er1 >conftest.err
4817   rm -f conftest.er1
4818   cat conftest.err >&5
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); } &&
4821          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823   (eval $ac_try) 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; } &&
4827          { ac_try='test -s conftest.$ac_objext'
4828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829   (eval $ac_try) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); }; }; then
4833   ac_cv_type_off_t=yes
4834 else
4835   echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838 ac_cv_type_off_t=no
4839 fi
4840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841 fi
4842 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4843 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4844 if test $ac_cv_type_off_t = yes; then
4845   :
4846 else
4847
4848 cat >>confdefs.h <<_ACEOF
4849 #define off_t long
4850 _ACEOF
4851
4852 fi
4853
4854
4855   echo "$as_me:$LINENO: checking for long long" >&5
4856 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4857 if test "${ac_cv_type_long_long+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h.  */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h.  */
4866 long long ll = 1LL; int i = 63;
4867 int
4868 main ()
4869 {
4870 long long llmax = (long long) -1;
4871      return ll << i | ll >> i | llmax / ll | llmax % ll;
4872   ;
4873   return 0;
4874 }
4875 _ACEOF
4876 rm -f conftest.$ac_objext conftest$ac_exeext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4878   (eval $ac_link) 2>conftest.er1
4879   ac_status=$?
4880   grep -v '^ *+' conftest.er1 >conftest.err
4881   rm -f conftest.er1
4882   cat conftest.err >&5
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); } &&
4885          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887   (eval $ac_try) 2>&5
4888   ac_status=$?
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); }; } &&
4891          { ac_try='test -s conftest$ac_exeext'
4892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893   (eval $ac_try) 2>&5
4894   ac_status=$?
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); }; }; then
4897   ac_cv_type_long_long=yes
4898 else
4899   echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4901
4902 ac_cv_type_long_long=no
4903 fi
4904 rm -f conftest.err conftest.$ac_objext \
4905       conftest$ac_exeext conftest.$ac_ext
4906 fi
4907 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4908 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4909   if test $ac_cv_type_long_long = yes; then
4910
4911 cat >>confdefs.h <<\_ACEOF
4912 #define HAVE_LONG_LONG 1
4913 _ACEOF
4914
4915   fi
4916
4917
4918   echo "$as_me:$LINENO: checking for long double" >&5
4919 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4920 if test "${gt_cv_c_long_double+set}" = set; then
4921   echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923   if test "$GCC" = yes; then
4924        gt_cv_c_long_double=yes
4925      else
4926        cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h.  */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h.  */
4932
4933          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
4934          long double foo = 0.0;
4935          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
4936          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4937
4938 int
4939 main ()
4940 {
4941
4942   ;
4943   return 0;
4944 }
4945 _ACEOF
4946 rm -f conftest.$ac_objext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948   (eval $ac_compile) 2>conftest.er1
4949   ac_status=$?
4950   grep -v '^ *+' conftest.er1 >conftest.err
4951   rm -f conftest.er1
4952   cat conftest.err >&5
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); } &&
4955          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957   (eval $ac_try) 2>&5
4958   ac_status=$?
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); }; } &&
4961          { ac_try='test -s conftest.$ac_objext'
4962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963   (eval $ac_try) 2>&5
4964   ac_status=$?
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); }; }; then
4967   gt_cv_c_long_double=yes
4968 else
4969   echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4971
4972 gt_cv_c_long_double=no
4973 fi
4974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4975      fi
4976 fi
4977 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4978 echo "${ECHO_T}$gt_cv_c_long_double" >&6
4979   if test $gt_cv_c_long_double = yes; then
4980
4981 cat >>confdefs.h <<\_ACEOF
4982 #define HAVE_LONG_DOUBLE 1
4983 _ACEOF
4984
4985   fi
4986
4987
4988   echo "$as_me:$LINENO: checking for wchar_t" >&5
4989 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4990 if test "${gt_cv_c_wchar_t+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993   cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h.  */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h.  */
4999 #include <stddef.h>
5000        wchar_t foo = (wchar_t)'\0';
5001 int
5002 main ()
5003 {
5004
5005   ;
5006   return 0;
5007 }
5008 _ACEOF
5009 rm -f conftest.$ac_objext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5011   (eval $ac_compile) 2>conftest.er1
5012   ac_status=$?
5013   grep -v '^ *+' conftest.er1 >conftest.err
5014   rm -f conftest.er1
5015   cat conftest.err >&5
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } &&
5018          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020   (eval $ac_try) 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); }; } &&
5024          { ac_try='test -s conftest.$ac_objext'
5025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026   (eval $ac_try) 2>&5
5027   ac_status=$?
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); }; }; then
5030   gt_cv_c_wchar_t=yes
5031 else
5032   echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 gt_cv_c_wchar_t=no
5036 fi
5037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5038 fi
5039 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5040 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
5041   if test $gt_cv_c_wchar_t = yes; then
5042
5043 cat >>confdefs.h <<\_ACEOF
5044 #define HAVE_WCHAR_T 1
5045 _ACEOF
5046
5047   fi
5048
5049
5050   echo "$as_me:$LINENO: checking for wint_t" >&5
5051 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
5052 if test "${gt_cv_c_wint_t+set}" = set; then
5053   echo $ECHO_N "(cached) $ECHO_C" >&6
5054 else
5055   cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h.  */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h.  */
5061 #include <wchar.h>
5062        wint_t foo = (wchar_t)'\0';
5063 int
5064 main ()
5065 {
5066
5067   ;
5068   return 0;
5069 }
5070 _ACEOF
5071 rm -f conftest.$ac_objext
5072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5073   (eval $ac_compile) 2>conftest.er1
5074   ac_status=$?
5075   grep -v '^ *+' conftest.er1 >conftest.err
5076   rm -f conftest.er1
5077   cat conftest.err >&5
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); } &&
5080          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082   (eval $ac_try) 2>&5
5083   ac_status=$?
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); }; } &&
5086          { ac_try='test -s conftest.$ac_objext'
5087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088   (eval $ac_try) 2>&5
5089   ac_status=$?
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); }; }; then
5092   gt_cv_c_wint_t=yes
5093 else
5094   echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5096
5097 gt_cv_c_wint_t=no
5098 fi
5099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5100 fi
5101 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5102 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
5103   if test $gt_cv_c_wint_t = yes; then
5104
5105 cat >>confdefs.h <<\_ACEOF
5106 #define HAVE_WINT_T 1
5107 _ACEOF
5108
5109   fi
5110
5111
5112   echo "$as_me:$LINENO: checking for inttypes.h" >&5
5113 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5114 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5115   echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117   cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h.  */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h.  */
5123 #include <sys/types.h>
5124 #include <inttypes.h>
5125 int
5126 main ()
5127 {
5128 uintmax_t i = (uintmax_t) -1;
5129   ;
5130   return 0;
5131 }
5132 _ACEOF
5133 rm -f conftest.$ac_objext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5135   (eval $ac_compile) 2>conftest.er1
5136   ac_status=$?
5137   grep -v '^ *+' conftest.er1 >conftest.err
5138   rm -f conftest.er1
5139   cat conftest.err >&5
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } &&
5142          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144   (eval $ac_try) 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); }; } &&
5148          { ac_try='test -s conftest.$ac_objext'
5149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150   (eval $ac_try) 2>&5
5151   ac_status=$?
5152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153   (exit $ac_status); }; }; then
5154   jm_ac_cv_header_inttypes_h=yes
5155 else
5156   echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159 jm_ac_cv_header_inttypes_h=no
5160 fi
5161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5162 fi
5163 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5164 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
5165   if test $jm_ac_cv_header_inttypes_h = yes; then
5166
5167 cat >>confdefs.h <<_ACEOF
5168 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5169 _ACEOF
5170
5171   fi
5172
5173
5174   echo "$as_me:$LINENO: checking for stdint.h" >&5
5175 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5176 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5177   echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179   cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h.  */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h.  */
5185 #include <sys/types.h>
5186 #include <stdint.h>
5187 int
5188 main ()
5189 {
5190 uintmax_t i = (uintmax_t) -1;
5191   ;
5192   return 0;
5193 }
5194 _ACEOF
5195 rm -f conftest.$ac_objext
5196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5197   (eval $ac_compile) 2>conftest.er1
5198   ac_status=$?
5199   grep -v '^ *+' conftest.er1 >conftest.err
5200   rm -f conftest.er1
5201   cat conftest.err >&5
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); } &&
5204          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206   (eval $ac_try) 2>&5
5207   ac_status=$?
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); }; } &&
5210          { ac_try='test -s conftest.$ac_objext'
5211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212   (eval $ac_try) 2>&5
5213   ac_status=$?
5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); }; }; then
5216   jm_ac_cv_header_stdint_h=yes
5217 else
5218   echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5220
5221 jm_ac_cv_header_stdint_h=no
5222 fi
5223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5224 fi
5225 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5226 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
5227   if test $jm_ac_cv_header_stdint_h = yes; then
5228
5229 cat >>confdefs.h <<_ACEOF
5230 #define HAVE_STDINT_H_WITH_UINTMAX 1
5231 _ACEOF
5232
5233   fi
5234
5235
5236
5237
5238   echo "$as_me:$LINENO: checking for intmax_t" >&5
5239 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
5240 if test "${gt_cv_c_intmax_t+set}" = set; then
5241   echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243   cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h.  */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h.  */
5249
5250 #include <stddef.h>
5251 #include <stdlib.h>
5252 #if HAVE_STDINT_H_WITH_UINTMAX
5253 #include <stdint.h>
5254 #endif
5255 #if HAVE_INTTYPES_H_WITH_UINTMAX
5256 #include <inttypes.h>
5257 #endif
5258
5259 int
5260 main ()
5261 {
5262 intmax_t x = -1;
5263   ;
5264   return 0;
5265 }
5266 _ACEOF
5267 rm -f conftest.$ac_objext
5268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269   (eval $ac_compile) 2>conftest.er1
5270   ac_status=$?
5271   grep -v '^ *+' conftest.er1 >conftest.err
5272   rm -f conftest.er1
5273   cat conftest.err >&5
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } &&
5276          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278   (eval $ac_try) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; } &&
5282          { ac_try='test -s conftest.$ac_objext'
5283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284   (eval $ac_try) 2>&5
5285   ac_status=$?
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); }; }; then
5288   gt_cv_c_intmax_t=yes
5289 else
5290   echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5292
5293 gt_cv_c_intmax_t=no
5294 fi
5295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5296 fi
5297 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5298 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
5299   if test $gt_cv_c_intmax_t = yes; then
5300
5301 cat >>confdefs.h <<\_ACEOF
5302 #define HAVE_INTMAX_T 1
5303 _ACEOF
5304
5305   fi
5306
5307
5308
5309   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5310 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
5311 if test "${gt_cv_func_printf_posix+set}" = set; then
5312   echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314
5315       if test "$cross_compiling" = yes; then
5316
5317         cat >conftest.$ac_ext <<_ACEOF
5318 /* confdefs.h.  */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h.  */
5323
5324 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5325   notposix
5326 #endif
5327
5328 _ACEOF
5329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5330   $EGREP "notposix" >/dev/null 2>&1; then
5331   gt_cv_func_printf_posix="guessing no"
5332 else
5333   gt_cv_func_printf_posix="guessing yes"
5334 fi
5335 rm -f conftest*
5336
5337
5338 else
5339   cat >conftest.$ac_ext <<_ACEOF
5340 /* confdefs.h.  */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h.  */
5345
5346 #include <stdio.h>
5347 #include <string.h>
5348 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5349    dollar expansion (possibly an autoconf bug).  */
5350 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5351 static char buf[100];
5352 int main ()
5353 {
5354   sprintf (buf, format, 33, 55);
5355   return (strcmp (buf, "55 33") != 0);
5356 }
5357 _ACEOF
5358 rm -f conftest$ac_exeext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5360   (eval $ac_link) 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365   (eval $ac_try) 2>&5
5366   ac_status=$?
5367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368   (exit $ac_status); }; }; then
5369   gt_cv_func_printf_posix=yes
5370 else
5371   echo "$as_me: program exited with status $ac_status" >&5
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 ( exit $ac_status )
5376 gt_cv_func_printf_posix=no
5377 fi
5378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5379 fi
5380
5381 fi
5382 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5383 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
5384   case $gt_cv_func_printf_posix in
5385     *yes)
5386
5387 cat >>confdefs.h <<\_ACEOF
5388 #define HAVE_POSIX_PRINTF 1
5389 _ACEOF
5390
5391       ;;
5392   esac
5393
5394 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5395 # for constant arguments.  Useless!
5396 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5397 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5398 if test "${ac_cv_working_alloca_h+set}" = set; then
5399   echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401   cat >conftest.$ac_ext <<_ACEOF
5402 /* confdefs.h.  */
5403 _ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h.  */
5407 #include <alloca.h>
5408 int
5409 main ()
5410 {
5411 char *p = (char *) alloca (2 * sizeof (int));
5412   ;
5413   return 0;
5414 }
5415 _ACEOF
5416 rm -f conftest.$ac_objext conftest$ac_exeext
5417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5418   (eval $ac_link) 2>conftest.er1
5419   ac_status=$?
5420   grep -v '^ *+' conftest.er1 >conftest.err
5421   rm -f conftest.er1
5422   cat conftest.err >&5
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); } &&
5425          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427   (eval $ac_try) 2>&5
5428   ac_status=$?
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); }; } &&
5431          { ac_try='test -s conftest$ac_exeext'
5432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433   (eval $ac_try) 2>&5
5434   ac_status=$?
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); }; }; then
5437   ac_cv_working_alloca_h=yes
5438 else
5439   echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5441
5442 ac_cv_working_alloca_h=no
5443 fi
5444 rm -f conftest.err conftest.$ac_objext \
5445       conftest$ac_exeext conftest.$ac_ext
5446 fi
5447 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5448 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5449 if test $ac_cv_working_alloca_h = yes; then
5450
5451 cat >>confdefs.h <<\_ACEOF
5452 #define HAVE_ALLOCA_H 1
5453 _ACEOF
5454
5455 fi
5456
5457 echo "$as_me:$LINENO: checking for alloca" >&5
5458 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5459 if test "${ac_cv_func_alloca_works+set}" = set; then
5460   echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462   cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h.  */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h.  */
5468 #ifdef __GNUC__
5469 # define alloca __builtin_alloca
5470 #else
5471 # ifdef _MSC_VER
5472 #  include <malloc.h>
5473 #  define alloca _alloca
5474 # else
5475 #  if HAVE_ALLOCA_H
5476 #   include <alloca.h>
5477 #  else
5478 #   ifdef _AIX
5479  #pragma alloca
5480 #   else
5481 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5482 char *alloca ();
5483 #    endif
5484 #   endif
5485 #  endif
5486 # endif
5487 #endif
5488
5489 int
5490 main ()
5491 {
5492 char *p = (char *) alloca (1);
5493   ;
5494   return 0;
5495 }
5496 _ACEOF
5497 rm -f conftest.$ac_objext conftest$ac_exeext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5499   (eval $ac_link) 2>conftest.er1
5500   ac_status=$?
5501   grep -v '^ *+' conftest.er1 >conftest.err
5502   rm -f conftest.er1
5503   cat conftest.err >&5
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } &&
5506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508   (eval $ac_try) 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); }; } &&
5512          { ac_try='test -s conftest$ac_exeext'
5513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514   (eval $ac_try) 2>&5
5515   ac_status=$?
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); }; }; then
5518   ac_cv_func_alloca_works=yes
5519 else
5520   echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5522
5523 ac_cv_func_alloca_works=no
5524 fi
5525 rm -f conftest.err conftest.$ac_objext \
5526       conftest$ac_exeext conftest.$ac_ext
5527 fi
5528 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5529 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5530
5531 if test $ac_cv_func_alloca_works = yes; then
5532
5533 cat >>confdefs.h <<\_ACEOF
5534 #define HAVE_ALLOCA 1
5535 _ACEOF
5536
5537 else
5538   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5539 # that cause trouble.  Some versions do not even contain alloca or
5540 # contain a buggy version.  If you still want to use their alloca,
5541 # use ar to extract alloca.o from them instead of compiling alloca.c.
5542
5543 ALLOCA=alloca.$ac_objext
5544
5545 cat >>confdefs.h <<\_ACEOF
5546 #define C_ALLOCA 1
5547 _ACEOF
5548
5549
5550 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5551 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5552 if test "${ac_cv_os_cray+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h.  */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h.  */
5561 #if defined(CRAY) && ! defined(CRAY2)
5562 webecray
5563 #else
5564 wenotbecray
5565 #endif
5566
5567 _ACEOF
5568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5569   $EGREP "webecray" >/dev/null 2>&1; then
5570   ac_cv_os_cray=yes
5571 else
5572   ac_cv_os_cray=no
5573 fi
5574 rm -f conftest*
5575
5576 fi
5577 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5578 echo "${ECHO_T}$ac_cv_os_cray" >&6
5579 if test $ac_cv_os_cray = yes; then
5580   for ac_func in _getb67 GETB67 getb67; do
5581     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5582 echo "$as_me:$LINENO: checking for $ac_func" >&5
5583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5584 if eval "test \"\${$as_ac_var+set}\" = set"; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h.  */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h.  */
5593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5595 #define $ac_func innocuous_$ac_func
5596
5597 /* System header to define __stub macros and hopefully few prototypes,
5598     which can conflict with char $ac_func (); below.
5599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5600     <limits.h> exists even on freestanding compilers.  */
5601
5602 #ifdef __STDC__
5603 # include <limits.h>
5604 #else
5605 # include <assert.h>
5606 #endif
5607
5608 #undef $ac_func
5609
5610 /* Override any gcc2 internal prototype to avoid an error.  */
5611 #ifdef __cplusplus
5612 extern "C"
5613 {
5614 #endif
5615 /* We use char because int might match the return type of a gcc2
5616    builtin and then its argument prototype would still apply.  */
5617 char $ac_func ();
5618 /* The GNU C library defines this for functions which it implements
5619     to always fail with ENOSYS.  Some functions are actually named
5620     something starting with __ and the normal name is an alias.  */
5621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5622 choke me
5623 #else
5624 char (*f) () = $ac_func;
5625 #endif
5626 #ifdef __cplusplus
5627 }
5628 #endif
5629
5630 int
5631 main ()
5632 {
5633 return f != $ac_func;
5634   ;
5635   return 0;
5636 }
5637 _ACEOF
5638 rm -f conftest.$ac_objext conftest$ac_exeext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5640   (eval $ac_link) 2>conftest.er1
5641   ac_status=$?
5642   grep -v '^ *+' conftest.er1 >conftest.err
5643   rm -f conftest.er1
5644   cat conftest.err >&5
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); } &&
5647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649   (eval $ac_try) 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); }; } &&
5653          { ac_try='test -s conftest$ac_exeext'
5654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655   (eval $ac_try) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); }; }; then
5659   eval "$as_ac_var=yes"
5660 else
5661   echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5663
5664 eval "$as_ac_var=no"
5665 fi
5666 rm -f conftest.err conftest.$ac_objext \
5667       conftest$ac_exeext conftest.$ac_ext
5668 fi
5669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5671 if test `eval echo '${'$as_ac_var'}'` = yes; then
5672
5673 cat >>confdefs.h <<_ACEOF
5674 #define CRAY_STACKSEG_END $ac_func
5675 _ACEOF
5676
5677     break
5678 fi
5679
5680   done
5681 fi
5682
5683 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5684 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5685 if test "${ac_cv_c_stack_direction+set}" = set; then
5686   echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688   if test "$cross_compiling" = yes; then
5689   ac_cv_c_stack_direction=0
5690 else
5691   cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h.  */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h.  */
5697 int
5698 find_stack_direction ()
5699 {
5700   static char *addr = 0;
5701   auto char dummy;
5702   if (addr == 0)
5703     {
5704       addr = &dummy;
5705       return find_stack_direction ();
5706     }
5707   else
5708     return (&dummy > addr) ? 1 : -1;
5709 }
5710
5711 int
5712 main ()
5713 {
5714   exit (find_stack_direction () < 0);
5715 }
5716 _ACEOF
5717 rm -f conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719   (eval $ac_link) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724   (eval $ac_try) 2>&5
5725   ac_status=$?
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); }; }; then
5728   ac_cv_c_stack_direction=1
5729 else
5730   echo "$as_me: program exited with status $ac_status" >&5
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734 ( exit $ac_status )
5735 ac_cv_c_stack_direction=-1
5736 fi
5737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5738 fi
5739 fi
5740 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5741 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5742
5743 cat >>confdefs.h <<_ACEOF
5744 #define STACK_DIRECTION $ac_cv_c_stack_direction
5745 _ACEOF
5746
5747
5748 fi
5749
5750
5751
5752 for ac_header in stdlib.h unistd.h
5753 do
5754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5756   echo "$as_me:$LINENO: checking for $ac_header" >&5
5757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 fi
5761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5763 else
5764   # Is the header compilable?
5765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5767 cat >conftest.$ac_ext <<_ACEOF
5768 /* confdefs.h.  */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h.  */
5773 $ac_includes_default
5774 #include <$ac_header>
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778   (eval $ac_compile) 2>conftest.er1
5779   ac_status=$?
5780   grep -v '^ *+' conftest.er1 >conftest.err
5781   rm -f conftest.er1
5782   cat conftest.err >&5
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); } &&
5785          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787   (eval $ac_try) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; } &&
5791          { ac_try='test -s conftest.$ac_objext'
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   ac_header_compiler=yes
5798 else
5799   echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 ac_header_compiler=no
5803 fi
5804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5806 echo "${ECHO_T}$ac_header_compiler" >&6
5807
5808 # Is the header present?
5809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5811 cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h.  */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h.  */
5817 #include <$ac_header>
5818 _ACEOF
5819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5821   ac_status=$?
5822   grep -v '^ *+' conftest.er1 >conftest.err
5823   rm -f conftest.er1
5824   cat conftest.err >&5
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } >/dev/null; then
5827   if test -s conftest.err; then
5828     ac_cpp_err=$ac_c_preproc_warn_flag
5829     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5830   else
5831     ac_cpp_err=
5832   fi
5833 else
5834   ac_cpp_err=yes
5835 fi
5836 if test -z "$ac_cpp_err"; then
5837   ac_header_preproc=yes
5838 else
5839   echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842   ac_header_preproc=no
5843 fi
5844 rm -f conftest.err conftest.$ac_ext
5845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5846 echo "${ECHO_T}$ac_header_preproc" >&6
5847
5848 # So?  What about this header?
5849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5850   yes:no: )
5851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5855     ac_header_preproc=yes
5856     ;;
5857   no:yes:* )
5858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5870     (
5871       cat <<\_ASBOX
5872 ## ------------------------------------------ ##
5873 ## Report this to the AC_PACKAGE_NAME lists.  ##
5874 ## ------------------------------------------ ##
5875 _ASBOX
5876     ) |
5877       sed "s/^/$as_me: WARNING:     /" >&2
5878     ;;
5879 esac
5880 echo "$as_me:$LINENO: checking for $ac_header" >&5
5881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   eval "$as_ac_Header=\$ac_header_preproc"
5886 fi
5887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5889
5890 fi
5891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5892   cat >>confdefs.h <<_ACEOF
5893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5894 _ACEOF
5895
5896 fi
5897
5898 done
5899
5900
5901 for ac_func in getpagesize
5902 do
5903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5904 echo "$as_me:$LINENO: checking for $ac_func" >&5
5905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5906 if eval "test \"\${$as_ac_var+set}\" = set"; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h.  */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h.  */
5915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5917 #define $ac_func innocuous_$ac_func
5918
5919 /* System header to define __stub macros and hopefully few prototypes,
5920     which can conflict with char $ac_func (); below.
5921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5922     <limits.h> exists even on freestanding compilers.  */
5923
5924 #ifdef __STDC__
5925 # include <limits.h>
5926 #else
5927 # include <assert.h>
5928 #endif
5929
5930 #undef $ac_func
5931
5932 /* Override any gcc2 internal prototype to avoid an error.  */
5933 #ifdef __cplusplus
5934 extern "C"
5935 {
5936 #endif
5937 /* We use char because int might match the return type of a gcc2
5938    builtin and then its argument prototype would still apply.  */
5939 char $ac_func ();
5940 /* The GNU C library defines this for functions which it implements
5941     to always fail with ENOSYS.  Some functions are actually named
5942     something starting with __ and the normal name is an alias.  */
5943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5944 choke me
5945 #else
5946 char (*f) () = $ac_func;
5947 #endif
5948 #ifdef __cplusplus
5949 }
5950 #endif
5951
5952 int
5953 main ()
5954 {
5955 return f != $ac_func;
5956   ;
5957   return 0;
5958 }
5959 _ACEOF
5960 rm -f conftest.$ac_objext conftest$ac_exeext
5961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5962   (eval $ac_link) 2>conftest.er1
5963   ac_status=$?
5964   grep -v '^ *+' conftest.er1 >conftest.err
5965   rm -f conftest.er1
5966   cat conftest.err >&5
5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); } &&
5969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971   (eval $ac_try) 2>&5
5972   ac_status=$?
5973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974   (exit $ac_status); }; } &&
5975          { ac_try='test -s conftest$ac_exeext'
5976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977   (eval $ac_try) 2>&5
5978   ac_status=$?
5979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980   (exit $ac_status); }; }; then
5981   eval "$as_ac_var=yes"
5982 else
5983   echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5985
5986 eval "$as_ac_var=no"
5987 fi
5988 rm -f conftest.err conftest.$ac_objext \
5989       conftest$ac_exeext conftest.$ac_ext
5990 fi
5991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5993 if test `eval echo '${'$as_ac_var'}'` = yes; then
5994   cat >>confdefs.h <<_ACEOF
5995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5996 _ACEOF
5997
5998 fi
5999 done
6000
6001 echo "$as_me:$LINENO: checking for working mmap" >&5
6002 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6003 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   if test "$cross_compiling" = yes; then
6007   ac_cv_func_mmap_fixed_mapped=no
6008 else
6009   cat >conftest.$ac_ext <<_ACEOF
6010 /* confdefs.h.  */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h.  */
6015 $ac_includes_default
6016 /* malloc might have been renamed as rpl_malloc. */
6017 #undef malloc
6018
6019 /* Thanks to Mike Haertel and Jim Avera for this test.
6020    Here is a matrix of mmap possibilities:
6021         mmap private not fixed
6022         mmap private fixed at somewhere currently unmapped
6023         mmap private fixed at somewhere already mapped
6024         mmap shared not fixed
6025         mmap shared fixed at somewhere currently unmapped
6026         mmap shared fixed at somewhere already mapped
6027    For private mappings, we should verify that changes cannot be read()
6028    back from the file, nor mmap's back from the file at a different
6029    address.  (There have been systems where private was not correctly
6030    implemented like the infamous i386 svr4.0, and systems where the
6031    VM page cache was not coherent with the file system buffer cache
6032    like early versions of FreeBSD and possibly contemporary NetBSD.)
6033    For shared mappings, we should conversely verify that changes get
6034    propagated back to all the places they're supposed to be.
6035
6036    Grep wants private fixed already mapped.
6037    The main things grep needs to know about mmap are:
6038    * does it exist and is it safe to write into the mmap'd area
6039    * how to use it (BSD variants)  */
6040
6041 #include <fcntl.h>
6042 #include <sys/mman.h>
6043
6044 #if !STDC_HEADERS && !HAVE_STDLIB_H
6045 char *malloc ();
6046 #endif
6047
6048 /* This mess was copied from the GNU getpagesize.h.  */
6049 #if !HAVE_GETPAGESIZE
6050 /* Assume that all systems that can run configure have sys/param.h.  */
6051 # if !HAVE_SYS_PARAM_H
6052 #  define HAVE_SYS_PARAM_H 1
6053 # endif
6054
6055 # ifdef _SC_PAGESIZE
6056 #  define getpagesize() sysconf(_SC_PAGESIZE)
6057 # else /* no _SC_PAGESIZE */
6058 #  if HAVE_SYS_PARAM_H
6059 #   include <sys/param.h>
6060 #   ifdef EXEC_PAGESIZE
6061 #    define getpagesize() EXEC_PAGESIZE
6062 #   else /* no EXEC_PAGESIZE */
6063 #    ifdef NBPG
6064 #     define getpagesize() NBPG * CLSIZE
6065 #     ifndef CLSIZE
6066 #      define CLSIZE 1
6067 #     endif /* no CLSIZE */
6068 #    else /* no NBPG */
6069 #     ifdef NBPC
6070 #      define getpagesize() NBPC
6071 #     else /* no NBPC */
6072 #      ifdef PAGESIZE
6073 #       define getpagesize() PAGESIZE
6074 #      endif /* PAGESIZE */
6075 #     endif /* no NBPC */
6076 #    endif /* no NBPG */
6077 #   endif /* no EXEC_PAGESIZE */
6078 #  else /* no HAVE_SYS_PARAM_H */
6079 #   define getpagesize() 8192   /* punt totally */
6080 #  endif /* no HAVE_SYS_PARAM_H */
6081 # endif /* no _SC_PAGESIZE */
6082
6083 #endif /* no HAVE_GETPAGESIZE */
6084
6085 int
6086 main ()
6087 {
6088   char *data, *data2, *data3;
6089   int i, pagesize;
6090   int fd;
6091
6092   pagesize = getpagesize ();
6093
6094   /* First, make a file with some known garbage in it. */
6095   data = (char *) malloc (pagesize);
6096   if (!data)
6097     exit (1);
6098   for (i = 0; i < pagesize; ++i)
6099     *(data + i) = rand ();
6100   umask (0);
6101   fd = creat ("conftest.mmap", 0600);
6102   if (fd < 0)
6103     exit (1);
6104   if (write (fd, data, pagesize) != pagesize)
6105     exit (1);
6106   close (fd);
6107
6108   /* Next, try to mmap the file at a fixed address which already has
6109      something else allocated at it.  If we can, also make sure that
6110      we see the same garbage.  */
6111   fd = open ("conftest.mmap", O_RDWR);
6112   if (fd < 0)
6113     exit (1);
6114   data2 = (char *) malloc (2 * pagesize);
6115   if (!data2)
6116     exit (1);
6117   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6118   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6119                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6120     exit (1);
6121   for (i = 0; i < pagesize; ++i)
6122     if (*(data + i) != *(data2 + i))
6123       exit (1);
6124
6125   /* Finally, make sure that changes to the mapped area do not
6126      percolate back to the file as seen by read().  (This is a bug on
6127      some variants of i386 svr4.0.)  */
6128   for (i = 0; i < pagesize; ++i)
6129     *(data2 + i) = *(data2 + i) + 1;
6130   data3 = (char *) malloc (pagesize);
6131   if (!data3)
6132     exit (1);
6133   if (read (fd, data3, pagesize) != pagesize)
6134     exit (1);
6135   for (i = 0; i < pagesize; ++i)
6136     if (*(data + i) != *(data3 + i))
6137       exit (1);
6138   close (fd);
6139   exit (0);
6140 }
6141 _ACEOF
6142 rm -f conftest$ac_exeext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6144   (eval $ac_link) 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149   (eval $ac_try) 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; }; then
6153   ac_cv_func_mmap_fixed_mapped=yes
6154 else
6155   echo "$as_me: program exited with status $ac_status" >&5
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6158
6159 ( exit $ac_status )
6160 ac_cv_func_mmap_fixed_mapped=no
6161 fi
6162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6163 fi
6164 fi
6165 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6166 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6167 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6168
6169 cat >>confdefs.h <<\_ACEOF
6170 #define HAVE_MMAP 1
6171 _ACEOF
6172
6173 fi
6174 rm -f conftest.mmap
6175
6176
6177     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6178 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6179 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h.  */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h.  */
6188
6189 #include <features.h>
6190 #ifdef __GNU_LIBRARY__
6191  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6192   Lucky GNU user
6193  #endif
6194 #endif
6195
6196 _ACEOF
6197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6198   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6199   ac_cv_gnu_library_2_1=yes
6200 else
6201   ac_cv_gnu_library_2_1=no
6202 fi
6203 rm -f conftest*
6204
6205
6206
6207 fi
6208 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6209 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6210
6211     GLIBC21="$ac_cv_gnu_library_2_1"
6212
6213
6214
6215
6216   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6217 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
6218 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221
6222       if test "$cross_compiling" = yes; then
6223
6224           # Guess based on the CPU.
6225           case "$host_cpu" in
6226             alpha* | i3456786 | m68k | s390*)
6227               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6228             *)
6229               gt_cv_int_divbyzero_sigfpe="guessing no";;
6230           esac
6231
6232 else
6233   cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h.  */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h.  */
6239
6240 #include <stdlib.h>
6241 #include <signal.h>
6242
6243 static void
6244 #ifdef __cplusplus
6245 sigfpe_handler (int sig)
6246 #else
6247 sigfpe_handler (sig) int sig;
6248 #endif
6249 {
6250   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6251   exit (sig != SIGFPE);
6252 }
6253
6254 int x = 1;
6255 int y = 0;
6256 int z;
6257 int nan;
6258
6259 int main ()
6260 {
6261   signal (SIGFPE, sigfpe_handler);
6262 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6263 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6264   signal (SIGTRAP, sigfpe_handler);
6265 #endif
6266 /* Linux/SPARC yields signal SIGILL.  */
6267 #if defined (__sparc__) && defined (__linux__)
6268   signal (SIGILL, sigfpe_handler);
6269 #endif
6270
6271   z = x / y;
6272   nan = y / y;
6273   exit (1);
6274 }
6275
6276 _ACEOF
6277 rm -f conftest$ac_exeext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6279   (eval $ac_link) 2>&5
6280   ac_status=$?
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284   (eval $ac_try) 2>&5
6285   ac_status=$?
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); }; }; then
6288   gt_cv_int_divbyzero_sigfpe=yes
6289 else
6290   echo "$as_me: program exited with status $ac_status" >&5
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6293
6294 ( exit $ac_status )
6295 gt_cv_int_divbyzero_sigfpe=no
6296 fi
6297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6298 fi
6299
6300 fi
6301 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6302 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
6303   case "$gt_cv_int_divbyzero_sigfpe" in
6304     *yes) value=1;;
6305     *) value=0;;
6306   esac
6307
6308 cat >>confdefs.h <<_ACEOF
6309 #define INTDIV0_RAISES_SIGFPE $value
6310 _ACEOF
6311
6312
6313
6314   echo "$as_me:$LINENO: checking for unsigned long long" >&5
6315 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6316 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325 unsigned long long ull = 1ULL; int i = 63;
6326 int
6327 main ()
6328 {
6329 unsigned long long ullmax = (unsigned long long) -1;
6330      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6331   ;
6332   return 0;
6333 }
6334 _ACEOF
6335 rm -f conftest.$ac_objext conftest$ac_exeext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6337   (eval $ac_link) 2>conftest.er1
6338   ac_status=$?
6339   grep -v '^ *+' conftest.er1 >conftest.err
6340   rm -f conftest.er1
6341   cat conftest.err >&5
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); } &&
6344          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346   (eval $ac_try) 2>&5
6347   ac_status=$?
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); }; } &&
6350          { ac_try='test -s conftest$ac_exeext'
6351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352   (eval $ac_try) 2>&5
6353   ac_status=$?
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); }; }; then
6356   ac_cv_type_unsigned_long_long=yes
6357 else
6358   echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361 ac_cv_type_unsigned_long_long=no
6362 fi
6363 rm -f conftest.err conftest.$ac_objext \
6364       conftest$ac_exeext conftest.$ac_ext
6365 fi
6366 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6367 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6368   if test $ac_cv_type_unsigned_long_long = yes; then
6369
6370 cat >>confdefs.h <<\_ACEOF
6371 #define HAVE_UNSIGNED_LONG_LONG 1
6372 _ACEOF
6373
6374   fi
6375
6376
6377
6378
6379   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6380
6381     test $ac_cv_type_unsigned_long_long = yes \
6382       && ac_type='unsigned long long' \
6383       || ac_type='unsigned long'
6384
6385 cat >>confdefs.h <<_ACEOF
6386 #define uintmax_t $ac_type
6387 _ACEOF
6388
6389   else
6390
6391 cat >>confdefs.h <<\_ACEOF
6392 #define HAVE_UINTMAX_T 1
6393 _ACEOF
6394
6395   fi
6396
6397
6398   echo "$as_me:$LINENO: checking for inttypes.h" >&5
6399 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6400 if test "${gt_cv_header_inttypes_h+set}" = set; then
6401   echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403
6404     cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h.  */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h.  */
6410 #include <sys/types.h>
6411 #include <inttypes.h>
6412 int
6413 main ()
6414 {
6415
6416   ;
6417   return 0;
6418 }
6419 _ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422   (eval $ac_compile) 2>conftest.er1
6423   ac_status=$?
6424   grep -v '^ *+' conftest.er1 >conftest.err
6425   rm -f conftest.er1
6426   cat conftest.err >&5
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); } &&
6429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431   (eval $ac_try) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); }; } &&
6435          { ac_try='test -s conftest.$ac_objext'
6436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437   (eval $ac_try) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; }; then
6441   gt_cv_header_inttypes_h=yes
6442 else
6443   echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6445
6446 gt_cv_header_inttypes_h=no
6447 fi
6448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449
6450 fi
6451 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6452 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6453   if test $gt_cv_header_inttypes_h = yes; then
6454
6455 cat >>confdefs.h <<_ACEOF
6456 #define HAVE_INTTYPES_H 1
6457 _ACEOF
6458
6459   fi
6460
6461
6462
6463   if test $gt_cv_header_inttypes_h = yes; then
6464     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6465 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6466 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6467   echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469
6470         cat >conftest.$ac_ext <<_ACEOF
6471 /* confdefs.h.  */
6472 _ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h.  */
6476 #include <inttypes.h>
6477 #ifdef PRId32
6478 char *p = PRId32;
6479 #endif
6480
6481 int
6482 main ()
6483 {
6484
6485   ;
6486   return 0;
6487 }
6488 _ACEOF
6489 rm -f conftest.$ac_objext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491   (eval $ac_compile) 2>conftest.er1
6492   ac_status=$?
6493   grep -v '^ *+' conftest.er1 >conftest.err
6494   rm -f conftest.er1
6495   cat conftest.err >&5
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); } &&
6498          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500   (eval $ac_try) 2>&5
6501   ac_status=$?
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); }; } &&
6504          { ac_try='test -s conftest.$ac_objext'
6505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506   (eval $ac_try) 2>&5
6507   ac_status=$?
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); }; }; then
6510   gt_cv_inttypes_pri_broken=no
6511 else
6512   echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 gt_cv_inttypes_pri_broken=yes
6516 fi
6517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6518
6519 fi
6520 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6521 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6522   fi
6523   if test "$gt_cv_inttypes_pri_broken" = yes; then
6524
6525 cat >>confdefs.h <<_ACEOF
6526 #define PRI_MACROS_BROKEN 1
6527 _ACEOF
6528
6529   fi
6530
6531
6532
6533 for ac_header in stdint.h
6534 do
6535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537   echo "$as_me:$LINENO: checking for $ac_header" >&5
6538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6540   echo $ECHO_N "(cached) $ECHO_C" >&6
6541 fi
6542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6544 else
6545   # Is the header compilable?
6546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6548 cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h.  */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h.  */
6554 $ac_includes_default
6555 #include <$ac_header>
6556 _ACEOF
6557 rm -f conftest.$ac_objext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6559   (eval $ac_compile) 2>conftest.er1
6560   ac_status=$?
6561   grep -v '^ *+' conftest.er1 >conftest.err
6562   rm -f conftest.er1
6563   cat conftest.err >&5
6564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565   (exit $ac_status); } &&
6566          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568   (eval $ac_try) 2>&5
6569   ac_status=$?
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); }; } &&
6572          { ac_try='test -s conftest.$ac_objext'
6573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574   (eval $ac_try) 2>&5
6575   ac_status=$?
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); }; }; then
6578   ac_header_compiler=yes
6579 else
6580   echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583 ac_header_compiler=no
6584 fi
6585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6587 echo "${ECHO_T}$ac_header_compiler" >&6
6588
6589 # Is the header present?
6590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6592 cat >conftest.$ac_ext <<_ACEOF
6593 /* confdefs.h.  */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h.  */
6598 #include <$ac_header>
6599 _ACEOF
6600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6601   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6602   ac_status=$?
6603   grep -v '^ *+' conftest.er1 >conftest.err
6604   rm -f conftest.er1
6605   cat conftest.err >&5
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); } >/dev/null; then
6608   if test -s conftest.err; then
6609     ac_cpp_err=$ac_c_preproc_warn_flag
6610     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6611   else
6612     ac_cpp_err=
6613   fi
6614 else
6615   ac_cpp_err=yes
6616 fi
6617 if test -z "$ac_cpp_err"; then
6618   ac_header_preproc=yes
6619 else
6620   echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623   ac_header_preproc=no
6624 fi
6625 rm -f conftest.err conftest.$ac_ext
6626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6627 echo "${ECHO_T}$ac_header_preproc" >&6
6628
6629 # So?  What about this header?
6630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6631   yes:no: )
6632     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6636     ac_header_preproc=yes
6637     ;;
6638   no:yes:* )
6639     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6641     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6642 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6643     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6645     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6646 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6649     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6651     (
6652       cat <<\_ASBOX
6653 ## ------------------------------------------ ##
6654 ## Report this to the AC_PACKAGE_NAME lists.  ##
6655 ## ------------------------------------------ ##
6656 _ASBOX
6657     ) |
6658       sed "s/^/$as_me: WARNING:     /" >&2
6659     ;;
6660 esac
6661 echo "$as_me:$LINENO: checking for $ac_header" >&5
6662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6664   echo $ECHO_N "(cached) $ECHO_C" >&6
6665 else
6666   eval "$as_ac_Header=\$ac_header_preproc"
6667 fi
6668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6670
6671 fi
6672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6673   cat >>confdefs.h <<_ACEOF
6674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6675 _ACEOF
6676
6677 fi
6678
6679 done
6680
6681     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6682 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6683   result=
6684   cat >conftest.$ac_ext <<_ACEOF
6685 /* confdefs.h.  */
6686 _ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h.  */
6690
6691 #include <limits.h>
6692 #if HAVE_STDINT_H
6693 #include <stdint.h>
6694 #endif
6695 #ifdef SIZE_MAX
6696 Found it
6697 #endif
6698
6699 _ACEOF
6700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6701   $EGREP "Found it" >/dev/null 2>&1; then
6702   result=yes
6703 fi
6704 rm -f conftest*
6705
6706   if test -z "$result"; then
6707                     if test "$cross_compiling" = yes; then
6708   # Depending upon the size, compute the lo and hi bounds.
6709 cat >conftest.$ac_ext <<_ACEOF
6710 /* confdefs.h.  */
6711 _ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h.  */
6715 #include <stddef.h>
6716 int
6717 main ()
6718 {
6719 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6720 test_array [0] = 0
6721
6722   ;
6723   return 0;
6724 }
6725 _ACEOF
6726 rm -f conftest.$ac_objext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6728   (eval $ac_compile) 2>conftest.er1
6729   ac_status=$?
6730   grep -v '^ *+' conftest.er1 >conftest.err
6731   rm -f conftest.er1
6732   cat conftest.err >&5
6733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734   (exit $ac_status); } &&
6735          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737   (eval $ac_try) 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); }; } &&
6741          { ac_try='test -s conftest.$ac_objext'
6742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743   (eval $ac_try) 2>&5
6744   ac_status=$?
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); }; }; then
6747   ac_lo=0 ac_mid=0
6748   while :; do
6749     cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h.  */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h.  */
6755 #include <stddef.h>
6756 int
6757 main ()
6758 {
6759 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6760 test_array [0] = 0
6761
6762   ;
6763   return 0;
6764 }
6765 _ACEOF
6766 rm -f conftest.$ac_objext
6767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6768   (eval $ac_compile) 2>conftest.er1
6769   ac_status=$?
6770   grep -v '^ *+' conftest.er1 >conftest.err
6771   rm -f conftest.er1
6772   cat conftest.err >&5
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); } &&
6775          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777   (eval $ac_try) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); }; } &&
6781          { ac_try='test -s conftest.$ac_objext'
6782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783   (eval $ac_try) 2>&5
6784   ac_status=$?
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); }; }; then
6787   ac_hi=$ac_mid; break
6788 else
6789   echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792 ac_lo=`expr $ac_mid + 1`
6793                     if test $ac_lo -le $ac_mid; then
6794                       ac_lo= ac_hi=
6795                       break
6796                     fi
6797                     ac_mid=`expr 2 '*' $ac_mid + 1`
6798 fi
6799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6800   done
6801 else
6802   echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6804
6805 cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h.  */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h.  */
6811 #include <stddef.h>
6812 int
6813 main ()
6814 {
6815 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6816 test_array [0] = 0
6817
6818   ;
6819   return 0;
6820 }
6821 _ACEOF
6822 rm -f conftest.$ac_objext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824   (eval $ac_compile) 2>conftest.er1
6825   ac_status=$?
6826   grep -v '^ *+' conftest.er1 >conftest.err
6827   rm -f conftest.er1
6828   cat conftest.err >&5
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); } &&
6831          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833   (eval $ac_try) 2>&5
6834   ac_status=$?
6835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); }; } &&
6837          { ac_try='test -s conftest.$ac_objext'
6838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839   (eval $ac_try) 2>&5
6840   ac_status=$?
6841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842   (exit $ac_status); }; }; then
6843   ac_hi=-1 ac_mid=-1
6844   while :; do
6845     cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h.  */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h.  */
6851 #include <stddef.h>
6852 int
6853 main ()
6854 {
6855 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6856 test_array [0] = 0
6857
6858   ;
6859   return 0;
6860 }
6861 _ACEOF
6862 rm -f conftest.$ac_objext
6863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6864   (eval $ac_compile) 2>conftest.er1
6865   ac_status=$?
6866   grep -v '^ *+' conftest.er1 >conftest.err
6867   rm -f conftest.er1
6868   cat conftest.err >&5
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); } &&
6871          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873   (eval $ac_try) 2>&5
6874   ac_status=$?
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); }; } &&
6877          { ac_try='test -s conftest.$ac_objext'
6878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879   (eval $ac_try) 2>&5
6880   ac_status=$?
6881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882   (exit $ac_status); }; }; then
6883   ac_lo=$ac_mid; break
6884 else
6885   echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6887
6888 ac_hi=`expr '(' $ac_mid ')' - 1`
6889                        if test $ac_mid -le $ac_hi; then
6890                          ac_lo= ac_hi=
6891                          break
6892                        fi
6893                        ac_mid=`expr 2 '*' $ac_mid`
6894 fi
6895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6896   done
6897 else
6898   echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6900
6901 ac_lo= ac_hi=
6902 fi
6903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6904 fi
6905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6906 # Binary search between lo and hi bounds.
6907 while test "x$ac_lo" != "x$ac_hi"; do
6908   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6909   cat >conftest.$ac_ext <<_ACEOF
6910 /* confdefs.h.  */
6911 _ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h.  */
6915 #include <stddef.h>
6916 int
6917 main ()
6918 {
6919 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6920 test_array [0] = 0
6921
6922   ;
6923   return 0;
6924 }
6925 _ACEOF
6926 rm -f conftest.$ac_objext
6927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6928   (eval $ac_compile) 2>conftest.er1
6929   ac_status=$?
6930   grep -v '^ *+' conftest.er1 >conftest.err
6931   rm -f conftest.er1
6932   cat conftest.err >&5
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); } &&
6935          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937   (eval $ac_try) 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); }; } &&
6941          { ac_try='test -s conftest.$ac_objext'
6942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943   (eval $ac_try) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); }; }; then
6947   ac_hi=$ac_mid
6948 else
6949   echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6951
6952 ac_lo=`expr '(' $ac_mid ')' + 1`
6953 fi
6954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6955 done
6956 case $ac_lo in
6957 ?*) res_hi=$ac_lo;;
6958 '') result=? ;;
6959 esac
6960 else
6961   if test "$cross_compiling" = yes; then
6962   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6963 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6964    { (exit 1); exit 1; }; }
6965 else
6966   cat >conftest.$ac_ext <<_ACEOF
6967 /* confdefs.h.  */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h.  */
6972 #include <stddef.h>
6973 long longval () { return ~(size_t)0 / 10; }
6974 unsigned long ulongval () { return ~(size_t)0 / 10; }
6975 #include <stdio.h>
6976 #include <stdlib.h>
6977 int
6978 main ()
6979 {
6980
6981   FILE *f = fopen ("conftest.val", "w");
6982   if (! f)
6983     exit (1);
6984   if ((~(size_t)0 / 10) < 0)
6985     {
6986       long i = longval ();
6987       if (i != (~(size_t)0 / 10))
6988         exit (1);
6989       fprintf (f, "%ld\n", i);
6990     }
6991   else
6992     {
6993       unsigned long i = ulongval ();
6994       if (i != (~(size_t)0 / 10))
6995         exit (1);
6996       fprintf (f, "%lu\n", i);
6997     }
6998   exit (ferror (f) || fclose (f) != 0);
6999
7000   ;
7001   return 0;
7002 }
7003 _ACEOF
7004 rm -f conftest$ac_exeext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006   (eval $ac_link) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011   (eval $ac_try) 2>&5
7012   ac_status=$?
7013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014   (exit $ac_status); }; }; then
7015   res_hi=`cat conftest.val`
7016 else
7017   echo "$as_me: program exited with status $ac_status" >&5
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7020
7021 ( exit $ac_status )
7022 result=?
7023 fi
7024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7025 fi
7026 fi
7027 rm -f conftest.val
7028     if test "$cross_compiling" = yes; then
7029   # Depending upon the size, compute the lo and hi bounds.
7030 cat >conftest.$ac_ext <<_ACEOF
7031 /* confdefs.h.  */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h.  */
7036 #include <stddef.h>
7037 int
7038 main ()
7039 {
7040 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7041 test_array [0] = 0
7042
7043   ;
7044   return 0;
7045 }
7046 _ACEOF
7047 rm -f conftest.$ac_objext
7048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7049   (eval $ac_compile) 2>conftest.er1
7050   ac_status=$?
7051   grep -v '^ *+' conftest.er1 >conftest.err
7052   rm -f conftest.er1
7053   cat conftest.err >&5
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); } &&
7056          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058   (eval $ac_try) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; } &&
7062          { ac_try='test -s conftest.$ac_objext'
7063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064   (eval $ac_try) 2>&5
7065   ac_status=$?
7066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); }; }; then
7068   ac_lo=0 ac_mid=0
7069   while :; do
7070     cat >conftest.$ac_ext <<_ACEOF
7071 /* confdefs.h.  */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h.  */
7076 #include <stddef.h>
7077 int
7078 main ()
7079 {
7080 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7081 test_array [0] = 0
7082
7083   ;
7084   return 0;
7085 }
7086 _ACEOF
7087 rm -f conftest.$ac_objext
7088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7089   (eval $ac_compile) 2>conftest.er1
7090   ac_status=$?
7091   grep -v '^ *+' conftest.er1 >conftest.err
7092   rm -f conftest.er1
7093   cat conftest.err >&5
7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095   (exit $ac_status); } &&
7096          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098   (eval $ac_try) 2>&5
7099   ac_status=$?
7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); }; } &&
7102          { ac_try='test -s conftest.$ac_objext'
7103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104   (eval $ac_try) 2>&5
7105   ac_status=$?
7106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107   (exit $ac_status); }; }; then
7108   ac_hi=$ac_mid; break
7109 else
7110   echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7112
7113 ac_lo=`expr $ac_mid + 1`
7114                     if test $ac_lo -le $ac_mid; then
7115                       ac_lo= ac_hi=
7116                       break
7117                     fi
7118                     ac_mid=`expr 2 '*' $ac_mid + 1`
7119 fi
7120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121   done
7122 else
7123   echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7125
7126 cat >conftest.$ac_ext <<_ACEOF
7127 /* confdefs.h.  */
7128 _ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h.  */
7132 #include <stddef.h>
7133 int
7134 main ()
7135 {
7136 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7137 test_array [0] = 0
7138
7139   ;
7140   return 0;
7141 }
7142 _ACEOF
7143 rm -f conftest.$ac_objext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7145   (eval $ac_compile) 2>conftest.er1
7146   ac_status=$?
7147   grep -v '^ *+' conftest.er1 >conftest.err
7148   rm -f conftest.er1
7149   cat conftest.err >&5
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); } &&
7152          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154   (eval $ac_try) 2>&5
7155   ac_status=$?
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); }; } &&
7158          { ac_try='test -s conftest.$ac_objext'
7159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160   (eval $ac_try) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); }; }; then
7164   ac_hi=-1 ac_mid=-1
7165   while :; do
7166     cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h.  */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h.  */
7172 #include <stddef.h>
7173 int
7174 main ()
7175 {
7176 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7177 test_array [0] = 0
7178
7179   ;
7180   return 0;
7181 }
7182 _ACEOF
7183 rm -f conftest.$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185   (eval $ac_compile) 2>conftest.er1
7186   ac_status=$?
7187   grep -v '^ *+' conftest.er1 >conftest.err
7188   rm -f conftest.er1
7189   cat conftest.err >&5
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); } &&
7192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194   (eval $ac_try) 2>&5
7195   ac_status=$?
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); }; } &&
7198          { ac_try='test -s conftest.$ac_objext'
7199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200   (eval $ac_try) 2>&5
7201   ac_status=$?
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); }; }; then
7204   ac_lo=$ac_mid; break
7205 else
7206   echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7208
7209 ac_hi=`expr '(' $ac_mid ')' - 1`
7210                        if test $ac_mid -le $ac_hi; then
7211                          ac_lo= ac_hi=
7212                          break
7213                        fi
7214                        ac_mid=`expr 2 '*' $ac_mid`
7215 fi
7216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7217   done
7218 else
7219   echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7221
7222 ac_lo= ac_hi=
7223 fi
7224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7225 fi
7226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7227 # Binary search between lo and hi bounds.
7228 while test "x$ac_lo" != "x$ac_hi"; do
7229   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7230   cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h.  */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h.  */
7236 #include <stddef.h>
7237 int
7238 main ()
7239 {
7240 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7241 test_array [0] = 0
7242
7243   ;
7244   return 0;
7245 }
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7249   (eval $ac_compile) 2>conftest.er1
7250   ac_status=$?
7251   grep -v '^ *+' conftest.er1 >conftest.err
7252   rm -f conftest.er1
7253   cat conftest.err >&5
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   (exit $ac_status); } &&
7256          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258   (eval $ac_try) 2>&5
7259   ac_status=$?
7260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261   (exit $ac_status); }; } &&
7262          { ac_try='test -s conftest.$ac_objext'
7263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264   (eval $ac_try) 2>&5
7265   ac_status=$?
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); }; }; then
7268   ac_hi=$ac_mid
7269 else
7270   echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7272
7273 ac_lo=`expr '(' $ac_mid ')' + 1`
7274 fi
7275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7276 done
7277 case $ac_lo in
7278 ?*) res_lo=$ac_lo;;
7279 '') result=? ;;
7280 esac
7281 else
7282   if test "$cross_compiling" = yes; then
7283   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7284 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7285    { (exit 1); exit 1; }; }
7286 else
7287   cat >conftest.$ac_ext <<_ACEOF
7288 /* confdefs.h.  */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h.  */
7293 #include <stddef.h>
7294 long longval () { return ~(size_t)0 % 10; }
7295 unsigned long ulongval () { return ~(size_t)0 % 10; }
7296 #include <stdio.h>
7297 #include <stdlib.h>
7298 int
7299 main ()
7300 {
7301
7302   FILE *f = fopen ("conftest.val", "w");
7303   if (! f)
7304     exit (1);
7305   if ((~(size_t)0 % 10) < 0)
7306     {
7307       long i = longval ();
7308       if (i != (~(size_t)0 % 10))
7309         exit (1);
7310       fprintf (f, "%ld\n", i);
7311     }
7312   else
7313     {
7314       unsigned long i = ulongval ();
7315       if (i != (~(size_t)0 % 10))
7316         exit (1);
7317       fprintf (f, "%lu\n", i);
7318     }
7319   exit (ferror (f) || fclose (f) != 0);
7320
7321   ;
7322   return 0;
7323 }
7324 _ACEOF
7325 rm -f conftest$ac_exeext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7327   (eval $ac_link) 2>&5
7328   ac_status=$?
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332   (eval $ac_try) 2>&5
7333   ac_status=$?
7334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335   (exit $ac_status); }; }; then
7336   res_lo=`cat conftest.val`
7337 else
7338   echo "$as_me: program exited with status $ac_status" >&5
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7341
7342 ( exit $ac_status )
7343 result=?
7344 fi
7345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7346 fi
7347 fi
7348 rm -f conftest.val
7349     if test "$cross_compiling" = yes; then
7350   # Depending upon the size, compute the lo and hi bounds.
7351 cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h.  */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h.  */
7357 #include <stddef.h>
7358 int
7359 main ()
7360 {
7361 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7362 test_array [0] = 0
7363
7364   ;
7365   return 0;
7366 }
7367 _ACEOF
7368 rm -f conftest.$ac_objext
7369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7370   (eval $ac_compile) 2>conftest.er1
7371   ac_status=$?
7372   grep -v '^ *+' conftest.er1 >conftest.err
7373   rm -f conftest.er1
7374   cat conftest.err >&5
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); } &&
7377          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379   (eval $ac_try) 2>&5
7380   ac_status=$?
7381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382   (exit $ac_status); }; } &&
7383          { ac_try='test -s conftest.$ac_objext'
7384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385   (eval $ac_try) 2>&5
7386   ac_status=$?
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); }; }; then
7389   ac_lo=0 ac_mid=0
7390   while :; do
7391     cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h.  */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h.  */
7397 #include <stddef.h>
7398 int
7399 main ()
7400 {
7401 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7402 test_array [0] = 0
7403
7404   ;
7405   return 0;
7406 }
7407 _ACEOF
7408 rm -f conftest.$ac_objext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410   (eval $ac_compile) 2>conftest.er1
7411   ac_status=$?
7412   grep -v '^ *+' conftest.er1 >conftest.err
7413   rm -f conftest.er1
7414   cat conftest.err >&5
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); } &&
7417          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419   (eval $ac_try) 2>&5
7420   ac_status=$?
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); }; } &&
7423          { ac_try='test -s conftest.$ac_objext'
7424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425   (eval $ac_try) 2>&5
7426   ac_status=$?
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); }; }; then
7429   ac_hi=$ac_mid; break
7430 else
7431   echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7433
7434 ac_lo=`expr $ac_mid + 1`
7435                     if test $ac_lo -le $ac_mid; then
7436                       ac_lo= ac_hi=
7437                       break
7438                     fi
7439                     ac_mid=`expr 2 '*' $ac_mid + 1`
7440 fi
7441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7442   done
7443 else
7444   echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7446
7447 cat >conftest.$ac_ext <<_ACEOF
7448 /* confdefs.h.  */
7449 _ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h.  */
7453 #include <stddef.h>
7454 int
7455 main ()
7456 {
7457 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7458 test_array [0] = 0
7459
7460   ;
7461   return 0;
7462 }
7463 _ACEOF
7464 rm -f conftest.$ac_objext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7466   (eval $ac_compile) 2>conftest.er1
7467   ac_status=$?
7468   grep -v '^ *+' conftest.er1 >conftest.err
7469   rm -f conftest.er1
7470   cat conftest.err >&5
7471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472   (exit $ac_status); } &&
7473          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475   (eval $ac_try) 2>&5
7476   ac_status=$?
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); }; } &&
7479          { ac_try='test -s conftest.$ac_objext'
7480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481   (eval $ac_try) 2>&5
7482   ac_status=$?
7483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484   (exit $ac_status); }; }; then
7485   ac_hi=-1 ac_mid=-1
7486   while :; do
7487     cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h.  */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h.  */
7493 #include <stddef.h>
7494 int
7495 main ()
7496 {
7497 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7498 test_array [0] = 0
7499
7500   ;
7501   return 0;
7502 }
7503 _ACEOF
7504 rm -f conftest.$ac_objext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7506   (eval $ac_compile) 2>conftest.er1
7507   ac_status=$?
7508   grep -v '^ *+' conftest.er1 >conftest.err
7509   rm -f conftest.er1
7510   cat conftest.err >&5
7511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512   (exit $ac_status); } &&
7513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515   (eval $ac_try) 2>&5
7516   ac_status=$?
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); }; } &&
7519          { ac_try='test -s conftest.$ac_objext'
7520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521   (eval $ac_try) 2>&5
7522   ac_status=$?
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); }; }; then
7525   ac_lo=$ac_mid; break
7526 else
7527   echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530 ac_hi=`expr '(' $ac_mid ')' - 1`
7531                        if test $ac_mid -le $ac_hi; then
7532                          ac_lo= ac_hi=
7533                          break
7534                        fi
7535                        ac_mid=`expr 2 '*' $ac_mid`
7536 fi
7537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7538   done
7539 else
7540   echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7542
7543 ac_lo= ac_hi=
7544 fi
7545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7546 fi
7547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7548 # Binary search between lo and hi bounds.
7549 while test "x$ac_lo" != "x$ac_hi"; do
7550   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7551   cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h.  */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h.  */
7557 #include <stddef.h>
7558 int
7559 main ()
7560 {
7561 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7562 test_array [0] = 0
7563
7564   ;
7565   return 0;
7566 }
7567 _ACEOF
7568 rm -f conftest.$ac_objext
7569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7570   (eval $ac_compile) 2>conftest.er1
7571   ac_status=$?
7572   grep -v '^ *+' conftest.er1 >conftest.err
7573   rm -f conftest.er1
7574   cat conftest.err >&5
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); } &&
7577          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579   (eval $ac_try) 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); }; } &&
7583          { ac_try='test -s conftest.$ac_objext'
7584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585   (eval $ac_try) 2>&5
7586   ac_status=$?
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); }; }; then
7589   ac_hi=$ac_mid
7590 else
7591   echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7593
7594 ac_lo=`expr '(' $ac_mid ')' + 1`
7595 fi
7596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7597 done
7598 case $ac_lo in
7599 ?*) fits_in_uint=$ac_lo;;
7600 '') result=? ;;
7601 esac
7602 else
7603   if test "$cross_compiling" = yes; then
7604   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7605 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7606    { (exit 1); exit 1; }; }
7607 else
7608   cat >conftest.$ac_ext <<_ACEOF
7609 /* confdefs.h.  */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h.  */
7614 #include <stddef.h>
7615 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7616 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7617 #include <stdio.h>
7618 #include <stdlib.h>
7619 int
7620 main ()
7621 {
7622
7623   FILE *f = fopen ("conftest.val", "w");
7624   if (! f)
7625     exit (1);
7626   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7627     {
7628       long i = longval ();
7629       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7630         exit (1);
7631       fprintf (f, "%ld\n", i);
7632     }
7633   else
7634     {
7635       unsigned long i = ulongval ();
7636       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7637         exit (1);
7638       fprintf (f, "%lu\n", i);
7639     }
7640   exit (ferror (f) || fclose (f) != 0);
7641
7642   ;
7643   return 0;
7644 }
7645 _ACEOF
7646 rm -f conftest$ac_exeext
7647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7648   (eval $ac_link) 2>&5
7649   ac_status=$?
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653   (eval $ac_try) 2>&5
7654   ac_status=$?
7655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); }; }; then
7657   fits_in_uint=`cat conftest.val`
7658 else
7659   echo "$as_me: program exited with status $ac_status" >&5
7660 echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7662
7663 ( exit $ac_status )
7664 result=?
7665 fi
7666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7667 fi
7668 fi
7669 rm -f conftest.val
7670     if test "$fits_in_uint" = 1; then
7671                   cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h.  */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h.  */
7677 #include <stddef.h>
7678         extern size_t foo;
7679         extern unsigned long foo;
7680
7681 int
7682 main ()
7683 {
7684
7685   ;
7686   return 0;
7687 }
7688 _ACEOF
7689 rm -f conftest.$ac_objext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691   (eval $ac_compile) 2>conftest.er1
7692   ac_status=$?
7693   grep -v '^ *+' conftest.er1 >conftest.err
7694   rm -f conftest.er1
7695   cat conftest.err >&5
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); } &&
7698          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700   (eval $ac_try) 2>&5
7701   ac_status=$?
7702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703   (exit $ac_status); }; } &&
7704          { ac_try='test -s conftest.$ac_objext'
7705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706   (eval $ac_try) 2>&5
7707   ac_status=$?
7708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709   (exit $ac_status); }; }; then
7710   fits_in_uint=0
7711 else
7712   echo "$as_me: failed program was:" >&5
7713 sed 's/^/| /' conftest.$ac_ext >&5
7714
7715 fi
7716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7717     fi
7718     if test -z "$result"; then
7719       if test "$fits_in_uint" = 1; then
7720         result="$res_hi$res_lo"U
7721       else
7722         result="$res_hi$res_lo"UL
7723       fi
7724     else
7725             result='~(size_t)0'
7726     fi
7727   fi
7728   echo "$as_me:$LINENO: result: $result" >&5
7729 echo "${ECHO_T}$result" >&6
7730   if test "$result" != yes; then
7731
7732 cat >>confdefs.h <<_ACEOF
7733 #define SIZE_MAX $result
7734 _ACEOF
7735
7736   fi
7737
7738
7739
7740
7741 for ac_header in stdint.h
7742 do
7743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7745   echo "$as_me:$LINENO: checking for $ac_header" >&5
7746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7748   echo $ECHO_N "(cached) $ECHO_C" >&6
7749 fi
7750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7752 else
7753   # Is the header compilable?
7754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7756 cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h.  */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h.  */
7762 $ac_includes_default
7763 #include <$ac_header>
7764 _ACEOF
7765 rm -f conftest.$ac_objext
7766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7767   (eval $ac_compile) 2>conftest.er1
7768   ac_status=$?
7769   grep -v '^ *+' conftest.er1 >conftest.err
7770   rm -f conftest.er1
7771   cat conftest.err >&5
7772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773   (exit $ac_status); } &&
7774          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776   (eval $ac_try) 2>&5
7777   ac_status=$?
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); }; } &&
7780          { ac_try='test -s conftest.$ac_objext'
7781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782   (eval $ac_try) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }; }; then
7786   ac_header_compiler=yes
7787 else
7788   echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 ac_header_compiler=no
7792 fi
7793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7795 echo "${ECHO_T}$ac_header_compiler" >&6
7796
7797 # Is the header present?
7798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7800 cat >conftest.$ac_ext <<_ACEOF
7801 /* confdefs.h.  */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h.  */
7806 #include <$ac_header>
7807 _ACEOF
7808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7809   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7810   ac_status=$?
7811   grep -v '^ *+' conftest.er1 >conftest.err
7812   rm -f conftest.er1
7813   cat conftest.err >&5
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); } >/dev/null; then
7816   if test -s conftest.err; then
7817     ac_cpp_err=$ac_c_preproc_warn_flag
7818     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7819   else
7820     ac_cpp_err=
7821   fi
7822 else
7823   ac_cpp_err=yes
7824 fi
7825 if test -z "$ac_cpp_err"; then
7826   ac_header_preproc=yes
7827 else
7828   echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7830
7831   ac_header_preproc=no
7832 fi
7833 rm -f conftest.err conftest.$ac_ext
7834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7835 echo "${ECHO_T}$ac_header_preproc" >&6
7836
7837 # So?  What about this header?
7838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7839   yes:no: )
7840     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7844     ac_header_preproc=yes
7845     ;;
7846   no:yes:* )
7847     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7849     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7850 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7851     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7853     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7854 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7857     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7859     (
7860       cat <<\_ASBOX
7861 ## ------------------------------------------ ##
7862 ## Report this to the AC_PACKAGE_NAME lists.  ##
7863 ## ------------------------------------------ ##
7864 _ASBOX
7865     ) |
7866       sed "s/^/$as_me: WARNING:     /" >&2
7867     ;;
7868 esac
7869 echo "$as_me:$LINENO: checking for $ac_header" >&5
7870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874   eval "$as_ac_Header=\$ac_header_preproc"
7875 fi
7876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7878
7879 fi
7880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7881   cat >>confdefs.h <<_ACEOF
7882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7883 _ACEOF
7884
7885 fi
7886
7887 done
7888
7889
7890
7891       if test "X$prefix" = "XNONE"; then
7892     acl_final_prefix="$ac_default_prefix"
7893   else
7894     acl_final_prefix="$prefix"
7895   fi
7896   if test "X$exec_prefix" = "XNONE"; then
7897     acl_final_exec_prefix='${prefix}'
7898   else
7899     acl_final_exec_prefix="$exec_prefix"
7900   fi
7901   acl_save_prefix="$prefix"
7902   prefix="$acl_final_prefix"
7903   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7904   prefix="$acl_save_prefix"
7905
7906
7907 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7908 if test "${with_gnu_ld+set}" = set; then
7909   withval="$with_gnu_ld"
7910   test "$withval" = no || with_gnu_ld=yes
7911 else
7912   with_gnu_ld=no
7913 fi;
7914 # Prepare PATH_SEPARATOR.
7915 # The user is always right.
7916 if test "${PATH_SEPARATOR+set}" != set; then
7917   echo "#! /bin/sh" >conf$$.sh
7918   echo  "exit 0"   >>conf$$.sh
7919   chmod +x conf$$.sh
7920   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7921     PATH_SEPARATOR=';'
7922   else
7923     PATH_SEPARATOR=:
7924   fi
7925   rm -f conf$$.sh
7926 fi
7927 ac_prog=ld
7928 if test "$GCC" = yes; then
7929   # Check if gcc -print-prog-name=ld gives a path.
7930   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7931 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7932   case $host in
7933   *-*-mingw*)
7934     # gcc leaves a trailing carriage return which upsets mingw
7935     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7936   *)
7937     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7938   esac
7939   case $ac_prog in
7940     # Accept absolute paths.
7941     [\\/]* | [A-Za-z]:[\\/]*)
7942       re_direlt='/[^/][^/]*/\.\./'
7943       # Canonicalize the path of ld
7944       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7945       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7946         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7947       done
7948       test -z "$LD" && LD="$ac_prog"
7949       ;;
7950   "")
7951     # If it fails, then pretend we aren't using GCC.
7952     ac_prog=ld
7953     ;;
7954   *)
7955     # If it is relative, then search for the first ld in PATH.
7956     with_gnu_ld=unknown
7957     ;;
7958   esac
7959 elif test "$with_gnu_ld" = yes; then
7960   echo "$as_me:$LINENO: checking for GNU ld" >&5
7961 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7962 else
7963   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7964 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7965 fi
7966 if test "${acl_cv_path_LD+set}" = set; then
7967   echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969   if test -z "$LD"; then
7970   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7971   for ac_dir in $PATH; do
7972     test -z "$ac_dir" && ac_dir=.
7973     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7974       acl_cv_path_LD="$ac_dir/$ac_prog"
7975       # Check to see if the program is GNU ld.  I'd rather use --version,
7976       # but apparently some GNU ld's only accept -v.
7977       # Break only if it was the GNU/non-GNU ld that we prefer.
7978       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7979       *GNU* | *'with BFD'*)
7980         test "$with_gnu_ld" != no && break ;;
7981       *)
7982         test "$with_gnu_ld" != yes && break ;;
7983       esac
7984     fi
7985   done
7986   IFS="$ac_save_ifs"
7987 else
7988   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7989 fi
7990 fi
7991
7992 LD="$acl_cv_path_LD"
7993 if test -n "$LD"; then
7994   echo "$as_me:$LINENO: result: $LD" >&5
7995 echo "${ECHO_T}$LD" >&6
7996 else
7997   echo "$as_me:$LINENO: result: no" >&5
7998 echo "${ECHO_T}no" >&6
7999 fi
8000 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8001 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8002    { (exit 1); exit 1; }; }
8003 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8004 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8005 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8006   echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8009 case `$LD -v 2>&1 </dev/null` in
8010 *GNU* | *'with BFD'*)
8011   acl_cv_prog_gnu_ld=yes ;;
8012 *)
8013   acl_cv_prog_gnu_ld=no ;;
8014 esac
8015 fi
8016 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8017 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
8018 with_gnu_ld=$acl_cv_prog_gnu_ld
8019
8020
8021
8022                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8023 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
8024 if test "${acl_cv_rpath+set}" = set; then
8025   echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027
8028     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8029     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8030     . ./conftest.sh
8031     rm -f ./conftest.sh
8032     acl_cv_rpath=done
8033
8034 fi
8035 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8036 echo "${ECHO_T}$acl_cv_rpath" >&6
8037   wl="$acl_cv_wl"
8038   libext="$acl_cv_libext"
8039   shlibext="$acl_cv_shlibext"
8040   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8041   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8042   hardcode_direct="$acl_cv_hardcode_direct"
8043   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8044     # Check whether --enable-rpath or --disable-rpath was given.
8045 if test "${enable_rpath+set}" = set; then
8046   enableval="$enable_rpath"
8047   :
8048 else
8049   enable_rpath=yes
8050 fi;
8051
8052
8053
8054
8055
8056
8057
8058     use_additional=yes
8059
8060   acl_save_prefix="$prefix"
8061   prefix="$acl_final_prefix"
8062   acl_save_exec_prefix="$exec_prefix"
8063   exec_prefix="$acl_final_exec_prefix"
8064
8065     eval additional_includedir=\"$includedir\"
8066     eval additional_libdir=\"$libdir\"
8067
8068   exec_prefix="$acl_save_exec_prefix"
8069   prefix="$acl_save_prefix"
8070
8071
8072 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8073 if test "${with_libiconv_prefix+set}" = set; then
8074   withval="$with_libiconv_prefix"
8075
8076     if test "X$withval" = "Xno"; then
8077       use_additional=no
8078     else
8079       if test "X$withval" = "X"; then
8080
8081   acl_save_prefix="$prefix"
8082   prefix="$acl_final_prefix"
8083   acl_save_exec_prefix="$exec_prefix"
8084   exec_prefix="$acl_final_exec_prefix"
8085
8086           eval additional_includedir=\"$includedir\"
8087           eval additional_libdir=\"$libdir\"
8088
8089   exec_prefix="$acl_save_exec_prefix"
8090   prefix="$acl_save_prefix"
8091
8092       else
8093         additional_includedir="$withval/include"
8094         additional_libdir="$withval/lib"
8095       fi
8096     fi
8097
8098 fi;
8099       LIBICONV=
8100   LTLIBICONV=
8101   INCICONV=
8102   rpathdirs=
8103   ltrpathdirs=
8104   names_already_handled=
8105   names_next_round='iconv '
8106   while test -n "$names_next_round"; do
8107     names_this_round="$names_next_round"
8108     names_next_round=
8109     for name in $names_this_round; do
8110       already_handled=
8111       for n in $names_already_handled; do
8112         if test "$n" = "$name"; then
8113           already_handled=yes
8114           break
8115         fi
8116       done
8117       if test -z "$already_handled"; then
8118         names_already_handled="$names_already_handled $name"
8119                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8120         eval value=\"\$HAVE_LIB$uppername\"
8121         if test -n "$value"; then
8122           if test "$value" = yes; then
8123             eval value=\"\$LIB$uppername\"
8124             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8125             eval value=\"\$LTLIB$uppername\"
8126             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8127           else
8128                                     :
8129           fi
8130         else
8131                               found_dir=
8132           found_la=
8133           found_so=
8134           found_a=
8135           if test $use_additional = yes; then
8136             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8137               found_dir="$additional_libdir"
8138               found_so="$additional_libdir/lib$name.$shlibext"
8139               if test -f "$additional_libdir/lib$name.la"; then
8140                 found_la="$additional_libdir/lib$name.la"
8141               fi
8142             else
8143               if test -f "$additional_libdir/lib$name.$libext"; then
8144                 found_dir="$additional_libdir"
8145                 found_a="$additional_libdir/lib$name.$libext"
8146                 if test -f "$additional_libdir/lib$name.la"; then
8147                   found_la="$additional_libdir/lib$name.la"
8148                 fi
8149               fi
8150             fi
8151           fi
8152           if test "X$found_dir" = "X"; then
8153             for x in $LDFLAGS $LTLIBICONV; do
8154
8155   acl_save_prefix="$prefix"
8156   prefix="$acl_final_prefix"
8157   acl_save_exec_prefix="$exec_prefix"
8158   exec_prefix="$acl_final_exec_prefix"
8159   eval x=\"$x\"
8160   exec_prefix="$acl_save_exec_prefix"
8161   prefix="$acl_save_prefix"
8162
8163               case "$x" in
8164                 -L*)
8165                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8166                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8167                     found_dir="$dir"
8168                     found_so="$dir/lib$name.$shlibext"
8169                     if test -f "$dir/lib$name.la"; then
8170                       found_la="$dir/lib$name.la"
8171                     fi
8172                   else
8173                     if test -f "$dir/lib$name.$libext"; then
8174                       found_dir="$dir"
8175                       found_a="$dir/lib$name.$libext"
8176                       if test -f "$dir/lib$name.la"; then
8177                         found_la="$dir/lib$name.la"
8178                       fi
8179                     fi
8180                   fi
8181                   ;;
8182               esac
8183               if test "X$found_dir" != "X"; then
8184                 break
8185               fi
8186             done
8187           fi
8188           if test "X$found_dir" != "X"; then
8189                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8190             if test "X$found_so" != "X"; then
8191                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8192                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8193               else
8194                                                                                 haveit=
8195                 for x in $ltrpathdirs; do
8196                   if test "X$x" = "X$found_dir"; then
8197                     haveit=yes
8198                     break
8199                   fi
8200                 done
8201                 if test -z "$haveit"; then
8202                   ltrpathdirs="$ltrpathdirs $found_dir"
8203                 fi
8204                                 if test "$hardcode_direct" = yes; then
8205                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8206                 else
8207                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8208                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8209                                                             haveit=
8210                     for x in $rpathdirs; do
8211                       if test "X$x" = "X$found_dir"; then
8212                         haveit=yes
8213                         break
8214                       fi
8215                     done
8216                     if test -z "$haveit"; then
8217                       rpathdirs="$rpathdirs $found_dir"
8218                     fi
8219                   else
8220                                                                                 haveit=
8221                     for x in $LDFLAGS $LIBICONV; do
8222
8223   acl_save_prefix="$prefix"
8224   prefix="$acl_final_prefix"
8225   acl_save_exec_prefix="$exec_prefix"
8226   exec_prefix="$acl_final_exec_prefix"
8227   eval x=\"$x\"
8228   exec_prefix="$acl_save_exec_prefix"
8229   prefix="$acl_save_prefix"
8230
8231                       if test "X$x" = "X-L$found_dir"; then
8232                         haveit=yes
8233                         break
8234                       fi
8235                     done
8236                     if test -z "$haveit"; then
8237                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8238                     fi
8239                     if test "$hardcode_minus_L" != no; then
8240                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8241                     else
8242                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8243                     fi
8244                   fi
8245                 fi
8246               fi
8247             else
8248               if test "X$found_a" != "X"; then
8249                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8250               else
8251                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8252               fi
8253             fi
8254                         additional_includedir=
8255             case "$found_dir" in
8256               */lib | */lib/)
8257                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8258                 additional_includedir="$basedir/include"
8259                 ;;
8260             esac
8261             if test "X$additional_includedir" != "X"; then
8262                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8263                 haveit=
8264                 if test "X$additional_includedir" = "X/usr/local/include"; then
8265                   if test -n "$GCC"; then
8266                     case $host_os in
8267                       linux*) haveit=yes;;
8268                     esac
8269                   fi
8270                 fi
8271                 if test -z "$haveit"; then
8272                   for x in $CPPFLAGS $INCICONV; do
8273
8274   acl_save_prefix="$prefix"
8275   prefix="$acl_final_prefix"
8276   acl_save_exec_prefix="$exec_prefix"
8277   exec_prefix="$acl_final_exec_prefix"
8278   eval x=\"$x\"
8279   exec_prefix="$acl_save_exec_prefix"
8280   prefix="$acl_save_prefix"
8281
8282                     if test "X$x" = "X-I$additional_includedir"; then
8283                       haveit=yes
8284                       break
8285                     fi
8286                   done
8287                   if test -z "$haveit"; then
8288                     if test -d "$additional_includedir"; then
8289                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8290                     fi
8291                   fi
8292                 fi
8293               fi
8294             fi
8295                         if test -n "$found_la"; then
8296                                                         save_libdir="$libdir"
8297               case "$found_la" in
8298                 */* | *\\*) . "$found_la" ;;
8299                 *) . "./$found_la" ;;
8300               esac
8301               libdir="$save_libdir"
8302                             for dep in $dependency_libs; do
8303                 case "$dep" in
8304                   -L*)
8305                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8306                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8307                       haveit=
8308                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8309                         if test -n "$GCC"; then
8310                           case $host_os in
8311                             linux*) haveit=yes;;
8312                           esac
8313                         fi
8314                       fi
8315                       if test -z "$haveit"; then
8316                         haveit=
8317                         for x in $LDFLAGS $LIBICONV; do
8318
8319   acl_save_prefix="$prefix"
8320   prefix="$acl_final_prefix"
8321   acl_save_exec_prefix="$exec_prefix"
8322   exec_prefix="$acl_final_exec_prefix"
8323   eval x=\"$x\"
8324   exec_prefix="$acl_save_exec_prefix"
8325   prefix="$acl_save_prefix"
8326
8327                           if test "X$x" = "X-L$additional_libdir"; then
8328                             haveit=yes
8329                             break
8330                           fi
8331                         done
8332                         if test -z "$haveit"; then
8333                           if test -d "$additional_libdir"; then
8334                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8335                           fi
8336                         fi
8337                         haveit=
8338                         for x in $LDFLAGS $LTLIBICONV; do
8339
8340   acl_save_prefix="$prefix"
8341   prefix="$acl_final_prefix"
8342   acl_save_exec_prefix="$exec_prefix"
8343   exec_prefix="$acl_final_exec_prefix"
8344   eval x=\"$x\"
8345   exec_prefix="$acl_save_exec_prefix"
8346   prefix="$acl_save_prefix"
8347
8348                           if test "X$x" = "X-L$additional_libdir"; then
8349                             haveit=yes
8350                             break
8351                           fi
8352                         done
8353                         if test -z "$haveit"; then
8354                           if test -d "$additional_libdir"; then
8355                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8356                           fi
8357                         fi
8358                       fi
8359                     fi
8360                     ;;
8361                   -R*)
8362                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8363                     if test "$enable_rpath" != no; then
8364                                                                   haveit=
8365                       for x in $rpathdirs; do
8366                         if test "X$x" = "X$dir"; then
8367                           haveit=yes
8368                           break
8369                         fi
8370                       done
8371                       if test -z "$haveit"; then
8372                         rpathdirs="$rpathdirs $dir"
8373                       fi
8374                                                                   haveit=
8375                       for x in $ltrpathdirs; do
8376                         if test "X$x" = "X$dir"; then
8377                           haveit=yes
8378                           break
8379                         fi
8380                       done
8381                       if test -z "$haveit"; then
8382                         ltrpathdirs="$ltrpathdirs $dir"
8383                       fi
8384                     fi
8385                     ;;
8386                   -l*)
8387                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8388                     ;;
8389                   *.la)
8390                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8391                     ;;
8392                   *)
8393                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8394                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8395                     ;;
8396                 esac
8397               done
8398             fi
8399           else
8400                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8401             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8402           fi
8403         fi
8404       fi
8405     done
8406   done
8407   if test "X$rpathdirs" != "X"; then
8408     if test -n "$hardcode_libdir_separator"; then
8409                         alldirs=
8410       for found_dir in $rpathdirs; do
8411         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8412       done
8413             acl_save_libdir="$libdir"
8414       libdir="$alldirs"
8415       eval flag=\"$hardcode_libdir_flag_spec\"
8416       libdir="$acl_save_libdir"
8417       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8418     else
8419             for found_dir in $rpathdirs; do
8420         acl_save_libdir="$libdir"
8421         libdir="$found_dir"
8422         eval flag=\"$hardcode_libdir_flag_spec\"
8423         libdir="$acl_save_libdir"
8424         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8425       done
8426     fi
8427   fi
8428   if test "X$ltrpathdirs" != "X"; then
8429             for found_dir in $ltrpathdirs; do
8430       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8431     done
8432   fi
8433
8434
8435
8436
8437
8438
8439
8440
8441   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8442 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8443 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8444   echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446   cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h.  */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h.  */
8452 $ac_includes_default
8453 int
8454 main ()
8455 {
8456 if ((ptrdiff_t *) 0)
8457   return 0;
8458 if (sizeof (ptrdiff_t))
8459   return 0;
8460   ;
8461   return 0;
8462 }
8463 _ACEOF
8464 rm -f conftest.$ac_objext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8466   (eval $ac_compile) 2>conftest.er1
8467   ac_status=$?
8468   grep -v '^ *+' conftest.er1 >conftest.err
8469   rm -f conftest.er1
8470   cat conftest.err >&5
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); } &&
8473          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475   (eval $ac_try) 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); }; } &&
8479          { ac_try='test -s conftest.$ac_objext'
8480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481   (eval $ac_try) 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; }; then
8485   ac_cv_type_ptrdiff_t=yes
8486 else
8487   echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8489
8490 ac_cv_type_ptrdiff_t=no
8491 fi
8492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8493 fi
8494 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8495 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8496 if test $ac_cv_type_ptrdiff_t = yes; then
8497   :
8498 else
8499
8500 cat >>confdefs.h <<\_ACEOF
8501 #define ptrdiff_t long
8502 _ACEOF
8503
8504
8505 fi
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8518 stdlib.h string.h unistd.h sys/param.h
8519 do
8520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8522   echo "$as_me:$LINENO: checking for $ac_header" >&5
8523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8525   echo $ECHO_N "(cached) $ECHO_C" >&6
8526 fi
8527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8529 else
8530   # Is the header compilable?
8531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8533 cat >conftest.$ac_ext <<_ACEOF
8534 /* confdefs.h.  */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h.  */
8539 $ac_includes_default
8540 #include <$ac_header>
8541 _ACEOF
8542 rm -f conftest.$ac_objext
8543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8544   (eval $ac_compile) 2>conftest.er1
8545   ac_status=$?
8546   grep -v '^ *+' conftest.er1 >conftest.err
8547   rm -f conftest.er1
8548   cat conftest.err >&5
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); } &&
8551          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553   (eval $ac_try) 2>&5
8554   ac_status=$?
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); }; } &&
8557          { ac_try='test -s conftest.$ac_objext'
8558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559   (eval $ac_try) 2>&5
8560   ac_status=$?
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); }; }; then
8563   ac_header_compiler=yes
8564 else
8565   echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8567
8568 ac_header_compiler=no
8569 fi
8570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8572 echo "${ECHO_T}$ac_header_compiler" >&6
8573
8574 # Is the header present?
8575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8577 cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h.  */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h.  */
8583 #include <$ac_header>
8584 _ACEOF
8585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8587   ac_status=$?
8588   grep -v '^ *+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } >/dev/null; then
8593   if test -s conftest.err; then
8594     ac_cpp_err=$ac_c_preproc_warn_flag
8595     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8596   else
8597     ac_cpp_err=
8598   fi
8599 else
8600   ac_cpp_err=yes
8601 fi
8602 if test -z "$ac_cpp_err"; then
8603   ac_header_preproc=yes
8604 else
8605   echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8607
8608   ac_header_preproc=no
8609 fi
8610 rm -f conftest.err conftest.$ac_ext
8611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8612 echo "${ECHO_T}$ac_header_preproc" >&6
8613
8614 # So?  What about this header?
8615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8616   yes:no: )
8617     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8621     ac_header_preproc=yes
8622     ;;
8623   no:yes:* )
8624     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8626     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8627 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8628     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8630     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8631 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8634     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8636     (
8637       cat <<\_ASBOX
8638 ## ------------------------------------------ ##
8639 ## Report this to the AC_PACKAGE_NAME lists.  ##
8640 ## ------------------------------------------ ##
8641 _ASBOX
8642     ) |
8643       sed "s/^/$as_me: WARNING:     /" >&2
8644     ;;
8645 esac
8646 echo "$as_me:$LINENO: checking for $ac_header" >&5
8647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8649   echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651   eval "$as_ac_Header=\$ac_header_preproc"
8652 fi
8653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8655
8656 fi
8657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8658   cat >>confdefs.h <<_ACEOF
8659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8660 _ACEOF
8661
8662 fi
8663
8664 done
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8690 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8691 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8692 __fsetlocking
8693 do
8694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8695 echo "$as_me:$LINENO: checking for $ac_func" >&5
8696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8697 if eval "test \"\${$as_ac_var+set}\" = set"; then
8698   echo $ECHO_N "(cached) $ECHO_C" >&6
8699 else
8700   cat >conftest.$ac_ext <<_ACEOF
8701 /* confdefs.h.  */
8702 _ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h.  */
8706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8708 #define $ac_func innocuous_$ac_func
8709
8710 /* System header to define __stub macros and hopefully few prototypes,
8711     which can conflict with char $ac_func (); below.
8712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8713     <limits.h> exists even on freestanding compilers.  */
8714
8715 #ifdef __STDC__
8716 # include <limits.h>
8717 #else
8718 # include <assert.h>
8719 #endif
8720
8721 #undef $ac_func
8722
8723 /* Override any gcc2 internal prototype to avoid an error.  */
8724 #ifdef __cplusplus
8725 extern "C"
8726 {
8727 #endif
8728 /* We use char because int might match the return type of a gcc2
8729    builtin and then its argument prototype would still apply.  */
8730 char $ac_func ();
8731 /* The GNU C library defines this for functions which it implements
8732     to always fail with ENOSYS.  Some functions are actually named
8733     something starting with __ and the normal name is an alias.  */
8734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8735 choke me
8736 #else
8737 char (*f) () = $ac_func;
8738 #endif
8739 #ifdef __cplusplus
8740 }
8741 #endif
8742
8743 int
8744 main ()
8745 {
8746 return f != $ac_func;
8747   ;
8748   return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753   (eval $ac_link) 2>conftest.er1
8754   ac_status=$?
8755   grep -v '^ *+' conftest.er1 >conftest.err
8756   rm -f conftest.er1
8757   cat conftest.err >&5
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); } &&
8760          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762   (eval $ac_try) 2>&5
8763   ac_status=$?
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); }; } &&
8766          { ac_try='test -s conftest$ac_exeext'
8767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768   (eval $ac_try) 2>&5
8769   ac_status=$?
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); }; }; then
8772   eval "$as_ac_var=yes"
8773 else
8774   echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8776
8777 eval "$as_ac_var=no"
8778 fi
8779 rm -f conftest.err conftest.$ac_objext \
8780       conftest$ac_exeext conftest.$ac_ext
8781 fi
8782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8784 if test `eval echo '${'$as_ac_var'}'` = yes; then
8785   cat >>confdefs.h <<_ACEOF
8786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8787 _ACEOF
8788
8789 fi
8790 done
8791
8792
8793
8794   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8795 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8796 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8797   echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799   cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h.  */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h.  */
8805 #include <stdio.h>
8806 int
8807 main ()
8808 {
8809
8810 #ifndef _snprintf
8811   char *p = (char *) _snprintf;
8812 #endif
8813
8814   ;
8815   return 0;
8816 }
8817 _ACEOF
8818 rm -f conftest.$ac_objext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8820   (eval $ac_compile) 2>conftest.er1
8821   ac_status=$?
8822   grep -v '^ *+' conftest.er1 >conftest.err
8823   rm -f conftest.er1
8824   cat conftest.err >&5
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); } &&
8827          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829   (eval $ac_try) 2>&5
8830   ac_status=$?
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); }; } &&
8833          { ac_try='test -s conftest.$ac_objext'
8834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835   (eval $ac_try) 2>&5
8836   ac_status=$?
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); }; }; then
8839   ac_cv_have_decl__snprintf=yes
8840 else
8841   echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8843
8844 ac_cv_have_decl__snprintf=no
8845 fi
8846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8847 fi
8848 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8849 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8850   if test $ac_cv_have_decl__snprintf = yes; then
8851     gt_value=1
8852   else
8853     gt_value=0
8854   fi
8855
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_DECL__SNPRINTF $gt_value
8858 _ACEOF
8859
8860
8861
8862   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8863 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8864 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8865   echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867   cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h.  */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h.  */
8873 #include <stdio.h>
8874 int
8875 main ()
8876 {
8877
8878 #ifndef _snwprintf
8879   char *p = (char *) _snwprintf;
8880 #endif
8881
8882   ;
8883   return 0;
8884 }
8885 _ACEOF
8886 rm -f conftest.$ac_objext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8888   (eval $ac_compile) 2>conftest.er1
8889   ac_status=$?
8890   grep -v '^ *+' conftest.er1 >conftest.err
8891   rm -f conftest.er1
8892   cat conftest.err >&5
8893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894   (exit $ac_status); } &&
8895          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897   (eval $ac_try) 2>&5
8898   ac_status=$?
8899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); }; } &&
8901          { ac_try='test -s conftest.$ac_objext'
8902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903   (eval $ac_try) 2>&5
8904   ac_status=$?
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); }; }; then
8907   ac_cv_have_decl__snwprintf=yes
8908 else
8909   echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8911
8912 ac_cv_have_decl__snwprintf=no
8913 fi
8914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8915 fi
8916 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8917 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8918   if test $ac_cv_have_decl__snwprintf = yes; then
8919     gt_value=1
8920   else
8921     gt_value=0
8922   fi
8923
8924 cat >>confdefs.h <<_ACEOF
8925 #define HAVE_DECL__SNWPRINTF $gt_value
8926 _ACEOF
8927
8928
8929
8930
8931   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8932 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8933 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8934   echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936   cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h.  */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h.  */
8942 #include <stdio.h>
8943 int
8944 main ()
8945 {
8946
8947 #ifndef feof_unlocked
8948   char *p = (char *) feof_unlocked;
8949 #endif
8950
8951   ;
8952   return 0;
8953 }
8954 _ACEOF
8955 rm -f conftest.$ac_objext
8956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8957   (eval $ac_compile) 2>conftest.er1
8958   ac_status=$?
8959   grep -v '^ *+' conftest.er1 >conftest.err
8960   rm -f conftest.er1
8961   cat conftest.err >&5
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); } &&
8964          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966   (eval $ac_try) 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); }; } &&
8970          { ac_try='test -s conftest.$ac_objext'
8971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972   (eval $ac_try) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); }; }; then
8976   ac_cv_have_decl_feof_unlocked=yes
8977 else
8978   echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981 ac_cv_have_decl_feof_unlocked=no
8982 fi
8983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8984 fi
8985 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8986 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8987   if test $ac_cv_have_decl_feof_unlocked = yes; then
8988     gt_value=1
8989   else
8990     gt_value=0
8991   fi
8992
8993 cat >>confdefs.h <<_ACEOF
8994 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8995 _ACEOF
8996
8997
8998
8999   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9000 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
9001 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9002   echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004   cat >conftest.$ac_ext <<_ACEOF
9005 /* confdefs.h.  */
9006 _ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h.  */
9010 #include <stdio.h>
9011 int
9012 main ()
9013 {
9014
9015 #ifndef fgets_unlocked
9016   char *p = (char *) fgets_unlocked;
9017 #endif
9018
9019   ;
9020   return 0;
9021 }
9022 _ACEOF
9023 rm -f conftest.$ac_objext
9024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9025   (eval $ac_compile) 2>conftest.er1
9026   ac_status=$?
9027   grep -v '^ *+' conftest.er1 >conftest.err
9028   rm -f conftest.er1
9029   cat conftest.err >&5
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); } &&
9032          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034   (eval $ac_try) 2>&5
9035   ac_status=$?
9036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037   (exit $ac_status); }; } &&
9038          { ac_try='test -s conftest.$ac_objext'
9039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040   (eval $ac_try) 2>&5
9041   ac_status=$?
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); }; }; then
9044   ac_cv_have_decl_fgets_unlocked=yes
9045 else
9046   echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9048
9049 ac_cv_have_decl_fgets_unlocked=no
9050 fi
9051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9052 fi
9053 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9054 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
9055   if test $ac_cv_have_decl_fgets_unlocked = yes; then
9056     gt_value=1
9057   else
9058     gt_value=0
9059   fi
9060
9061 cat >>confdefs.h <<_ACEOF
9062 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9063 _ACEOF
9064
9065
9066
9067   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9068 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
9069 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9070   echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072   cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h.  */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h.  */
9078 #include <stdio.h>
9079 int
9080 main ()
9081 {
9082
9083 #ifndef getc_unlocked
9084   char *p = (char *) getc_unlocked;
9085 #endif
9086
9087   ;
9088   return 0;
9089 }
9090 _ACEOF
9091 rm -f conftest.$ac_objext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9093   (eval $ac_compile) 2>conftest.er1
9094   ac_status=$?
9095   grep -v '^ *+' conftest.er1 >conftest.err
9096   rm -f conftest.er1
9097   cat conftest.err >&5
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); } &&
9100          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102   (eval $ac_try) 2>&5
9103   ac_status=$?
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); }; } &&
9106          { ac_try='test -s conftest.$ac_objext'
9107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108   (eval $ac_try) 2>&5
9109   ac_status=$?
9110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); }; }; then
9112   ac_cv_have_decl_getc_unlocked=yes
9113 else
9114   echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9116
9117 ac_cv_have_decl_getc_unlocked=no
9118 fi
9119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9120 fi
9121 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9122 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
9123   if test $ac_cv_have_decl_getc_unlocked = yes; then
9124     gt_value=1
9125   else
9126     gt_value=0
9127   fi
9128
9129 cat >>confdefs.h <<_ACEOF
9130 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9131 _ACEOF
9132
9133
9134
9135   case $gt_cv_func_printf_posix in
9136     *yes) HAVE_POSIX_PRINTF=1 ;;
9137     *) HAVE_POSIX_PRINTF=0 ;;
9138   esac
9139
9140   if test "$ac_cv_func_asprintf" = yes; then
9141     HAVE_ASPRINTF=1
9142   else
9143     HAVE_ASPRINTF=0
9144   fi
9145
9146   if test "$ac_cv_func_snprintf" = yes; then
9147     HAVE_SNPRINTF=1
9148   else
9149     HAVE_SNPRINTF=0
9150   fi
9151
9152   if test "$ac_cv_func_wprintf" = yes; then
9153     HAVE_WPRINTF=1
9154   else
9155     HAVE_WPRINTF=0
9156   fi
9157
9158
9159
9160
9161
9162
9163
9164           am_save_CPPFLAGS="$CPPFLAGS"
9165
9166   for element in $INCICONV; do
9167     haveit=
9168     for x in $CPPFLAGS; do
9169
9170   acl_save_prefix="$prefix"
9171   prefix="$acl_final_prefix"
9172   acl_save_exec_prefix="$exec_prefix"
9173   exec_prefix="$acl_final_exec_prefix"
9174   eval x=\"$x\"
9175   exec_prefix="$acl_save_exec_prefix"
9176   prefix="$acl_save_prefix"
9177
9178       if test "X$x" = "X$element"; then
9179         haveit=yes
9180         break
9181       fi
9182     done
9183     if test -z "$haveit"; then
9184       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9185     fi
9186   done
9187
9188
9189   echo "$as_me:$LINENO: checking for iconv" >&5
9190 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9191 if test "${am_cv_func_iconv+set}" = set; then
9192   echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194
9195     am_cv_func_iconv="no, consider installing GNU libiconv"
9196     am_cv_lib_iconv=no
9197     cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h.  */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h.  */
9203 #include <stdlib.h>
9204 #include <iconv.h>
9205 int
9206 main ()
9207 {
9208 iconv_t cd = iconv_open("","");
9209        iconv(cd,NULL,NULL,NULL,NULL);
9210        iconv_close(cd);
9211   ;
9212   return 0;
9213 }
9214 _ACEOF
9215 rm -f conftest.$ac_objext conftest$ac_exeext
9216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9217   (eval $ac_link) 2>conftest.er1
9218   ac_status=$?
9219   grep -v '^ *+' conftest.er1 >conftest.err
9220   rm -f conftest.er1
9221   cat conftest.err >&5
9222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223   (exit $ac_status); } &&
9224          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226   (eval $ac_try) 2>&5
9227   ac_status=$?
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   (exit $ac_status); }; } &&
9230          { ac_try='test -s conftest$ac_exeext'
9231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232   (eval $ac_try) 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); }; }; then
9236   am_cv_func_iconv=yes
9237 else
9238   echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9240
9241 fi
9242 rm -f conftest.err conftest.$ac_objext \
9243       conftest$ac_exeext conftest.$ac_ext
9244     if test "$am_cv_func_iconv" != yes; then
9245       am_save_LIBS="$LIBS"
9246       LIBS="$LIBS $LIBICONV"
9247       cat >conftest.$ac_ext <<_ACEOF
9248 /* confdefs.h.  */
9249 _ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h.  */
9253 #include <stdlib.h>
9254 #include <iconv.h>
9255 int
9256 main ()
9257 {
9258 iconv_t cd = iconv_open("","");
9259          iconv(cd,NULL,NULL,NULL,NULL);
9260          iconv_close(cd);
9261   ;
9262   return 0;
9263 }
9264 _ACEOF
9265 rm -f conftest.$ac_objext conftest$ac_exeext
9266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9267   (eval $ac_link) 2>conftest.er1
9268   ac_status=$?
9269   grep -v '^ *+' conftest.er1 >conftest.err
9270   rm -f conftest.er1
9271   cat conftest.err >&5
9272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273   (exit $ac_status); } &&
9274          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276   (eval $ac_try) 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); }; } &&
9280          { ac_try='test -s conftest$ac_exeext'
9281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282   (eval $ac_try) 2>&5
9283   ac_status=$?
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   (exit $ac_status); }; }; then
9286   am_cv_lib_iconv=yes
9287         am_cv_func_iconv=yes
9288 else
9289   echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9291
9292 fi
9293 rm -f conftest.err conftest.$ac_objext \
9294       conftest$ac_exeext conftest.$ac_ext
9295       LIBS="$am_save_LIBS"
9296     fi
9297
9298 fi
9299 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9300 echo "${ECHO_T}$am_cv_func_iconv" >&6
9301   if test "$am_cv_func_iconv" = yes; then
9302
9303 cat >>confdefs.h <<\_ACEOF
9304 #define HAVE_ICONV 1
9305 _ACEOF
9306
9307   fi
9308   if test "$am_cv_lib_iconv" = yes; then
9309     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9310 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9311     echo "$as_me:$LINENO: result: $LIBICONV" >&5
9312 echo "${ECHO_T}$LIBICONV" >&6
9313   else
9314             CPPFLAGS="$am_save_CPPFLAGS"
9315     LIBICONV=
9316     LTLIBICONV=
9317   fi
9318
9319
9320
9321   if test "$am_cv_func_iconv" = yes; then
9322     echo "$as_me:$LINENO: checking for iconv declaration" >&5
9323 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9324     if test "${am_cv_proto_iconv+set}" = set; then
9325   echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327
9328       cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h.  */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h.  */
9334
9335 #include <stdlib.h>
9336 #include <iconv.h>
9337 extern
9338 #ifdef __cplusplus
9339 "C"
9340 #endif
9341 #if defined(__STDC__) || defined(__cplusplus)
9342 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9343 #else
9344 size_t iconv();
9345 #endif
9346
9347 int
9348 main ()
9349 {
9350
9351   ;
9352   return 0;
9353 }
9354 _ACEOF
9355 rm -f conftest.$ac_objext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357   (eval $ac_compile) 2>conftest.er1
9358   ac_status=$?
9359   grep -v '^ *+' conftest.er1 >conftest.err
9360   rm -f conftest.er1
9361   cat conftest.err >&5
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); } &&
9364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366   (eval $ac_try) 2>&5
9367   ac_status=$?
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); }; } &&
9370          { ac_try='test -s conftest.$ac_objext'
9371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372   (eval $ac_try) 2>&5
9373   ac_status=$?
9374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375   (exit $ac_status); }; }; then
9376   am_cv_proto_iconv_arg1=""
9377 else
9378   echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9380
9381 am_cv_proto_iconv_arg1="const"
9382 fi
9383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9384       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);"
9385 fi
9386
9387     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9388     echo "$as_me:$LINENO: result: ${ac_t:-
9389          }$am_cv_proto_iconv" >&5
9390 echo "${ECHO_T}${ac_t:-
9391          }$am_cv_proto_iconv" >&6
9392
9393 cat >>confdefs.h <<_ACEOF
9394 #define ICONV_CONST $am_cv_proto_iconv_arg1
9395 _ACEOF
9396
9397   fi
9398
9399
9400   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9401 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9402 if test "${am_cv_langinfo_codeset+set}" = set; then
9403   echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405   cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h.  */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h.  */
9411 #include <langinfo.h>
9412 int
9413 main ()
9414 {
9415 char* cs = nl_langinfo(CODESET);
9416   ;
9417   return 0;
9418 }
9419 _ACEOF
9420 rm -f conftest.$ac_objext conftest$ac_exeext
9421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9422   (eval $ac_link) 2>conftest.er1
9423   ac_status=$?
9424   grep -v '^ *+' conftest.er1 >conftest.err
9425   rm -f conftest.er1
9426   cat conftest.err >&5
9427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428   (exit $ac_status); } &&
9429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431   (eval $ac_try) 2>&5
9432   ac_status=$?
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); }; } &&
9435          { ac_try='test -s conftest$ac_exeext'
9436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437   (eval $ac_try) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); }; }; then
9441   am_cv_langinfo_codeset=yes
9442 else
9443   echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9445
9446 am_cv_langinfo_codeset=no
9447 fi
9448 rm -f conftest.err conftest.$ac_objext \
9449       conftest$ac_exeext conftest.$ac_ext
9450
9451 fi
9452 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9453 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9454   if test $am_cv_langinfo_codeset = yes; then
9455
9456 cat >>confdefs.h <<\_ACEOF
9457 #define HAVE_LANGINFO_CODESET 1
9458 _ACEOF
9459
9460   fi
9461
9462   if test $ac_cv_header_locale_h = yes; then
9463
9464   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9465 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9466 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9467   echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469   cat >conftest.$ac_ext <<_ACEOF
9470 /* confdefs.h.  */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h.  */
9475 #include <locale.h>
9476 int
9477 main ()
9478 {
9479 return LC_MESSAGES
9480   ;
9481   return 0;
9482 }
9483 _ACEOF
9484 rm -f conftest.$ac_objext conftest$ac_exeext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9486   (eval $ac_link) 2>conftest.er1
9487   ac_status=$?
9488   grep -v '^ *+' conftest.er1 >conftest.err
9489   rm -f conftest.er1
9490   cat conftest.err >&5
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); } &&
9493          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495   (eval $ac_try) 2>&5
9496   ac_status=$?
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); }; } &&
9499          { ac_try='test -s conftest$ac_exeext'
9500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501   (eval $ac_try) 2>&5
9502   ac_status=$?
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); }; }; then
9505   am_cv_val_LC_MESSAGES=yes
9506 else
9507   echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9509
9510 am_cv_val_LC_MESSAGES=no
9511 fi
9512 rm -f conftest.err conftest.$ac_objext \
9513       conftest$ac_exeext conftest.$ac_ext
9514 fi
9515 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9516 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9517   if test $am_cv_val_LC_MESSAGES = yes; then
9518
9519 cat >>confdefs.h <<\_ACEOF
9520 #define HAVE_LC_MESSAGES 1
9521 _ACEOF
9522
9523   fi
9524
9525   fi
9526
9527                       for ac_prog in bison
9528 do
9529   # Extract the first word of "$ac_prog", so it can be a program name with args.
9530 set dummy $ac_prog; ac_word=$2
9531 echo "$as_me:$LINENO: checking for $ac_word" >&5
9532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9533 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9534   echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536   if test -n "$INTLBISON"; then
9537   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9538 else
9539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540 for as_dir in $PATH
9541 do
9542   IFS=$as_save_IFS
9543   test -z "$as_dir" && as_dir=.
9544   for ac_exec_ext in '' $ac_executable_extensions; do
9545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9546     ac_cv_prog_INTLBISON="$ac_prog"
9547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9548     break 2
9549   fi
9550 done
9551 done
9552
9553 fi
9554 fi
9555 INTLBISON=$ac_cv_prog_INTLBISON
9556 if test -n "$INTLBISON"; then
9557   echo "$as_me:$LINENO: result: $INTLBISON" >&5
9558 echo "${ECHO_T}$INTLBISON" >&6
9559 else
9560   echo "$as_me:$LINENO: result: no" >&5
9561 echo "${ECHO_T}no" >&6
9562 fi
9563
9564   test -n "$INTLBISON" && break
9565 done
9566
9567   if test -z "$INTLBISON"; then
9568     ac_verc_fail=yes
9569   else
9570         echo "$as_me:$LINENO: checking version of bison" >&5
9571 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9572     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9573     case $ac_prog_version in
9574       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9575       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9576          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9577       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9578     esac
9579     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9580 echo "${ECHO_T}$ac_prog_version" >&6
9581   fi
9582   if test $ac_verc_fail = yes; then
9583     INTLBISON=:
9584   fi
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9602 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9603     # Check whether --enable-nls or --disable-nls was given.
9604 if test "${enable_nls+set}" = set; then
9605   enableval="$enable_nls"
9606   USE_NLS=$enableval
9607 else
9608   USE_NLS=yes
9609 fi;
9610   echo "$as_me:$LINENO: result: $USE_NLS" >&5
9611 echo "${ECHO_T}$USE_NLS" >&6
9612
9613
9614
9615
9616     BUILD_INCLUDED_LIBINTL=no
9617     USE_INCLUDED_LIBINTL=no
9618
9619   LIBINTL=
9620   LTLIBINTL=
9621   POSUB=
9622
9623     if test "$USE_NLS" = "yes"; then
9624     gt_use_preinstalled_gnugettext=no
9625
9626       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9627 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9628
9629 # Check whether --with-included-gettext or --without-included-gettext was given.
9630 if test "${with_included_gettext+set}" = set; then
9631   withval="$with_included_gettext"
9632   nls_cv_force_use_gnu_gettext=$withval
9633 else
9634   nls_cv_force_use_gnu_gettext=no
9635 fi;
9636       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9637 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9638
9639       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9640       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9641
9642
9643
9644
9645
9646
9647         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9648 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9649 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652   cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h.  */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h.  */
9658 #include <libintl.h>
9659 extern int _nl_msg_cat_cntr;
9660 extern int *_nl_domain_bindings;
9661 int
9662 main ()
9663 {
9664 bindtextdomain ("", "");
9665 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9666   ;
9667   return 0;
9668 }
9669 _ACEOF
9670 rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9672   (eval $ac_link) 2>conftest.er1
9673   ac_status=$?
9674   grep -v '^ *+' conftest.er1 >conftest.err
9675   rm -f conftest.er1
9676   cat conftest.err >&5
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); } &&
9679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681   (eval $ac_try) 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); }; } &&
9685          { ac_try='test -s conftest$ac_exeext'
9686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687   (eval $ac_try) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); }; }; then
9691   gt_cv_func_gnugettext1_libc=yes
9692 else
9693   echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 gt_cv_func_gnugettext1_libc=no
9697 fi
9698 rm -f conftest.err conftest.$ac_objext \
9699       conftest$ac_exeext conftest.$ac_ext
9700 fi
9701 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9702 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9703
9704         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9705
9706
9707
9708     use_additional=yes
9709
9710   acl_save_prefix="$prefix"
9711   prefix="$acl_final_prefix"
9712   acl_save_exec_prefix="$exec_prefix"
9713   exec_prefix="$acl_final_exec_prefix"
9714
9715     eval additional_includedir=\"$includedir\"
9716     eval additional_libdir=\"$libdir\"
9717
9718   exec_prefix="$acl_save_exec_prefix"
9719   prefix="$acl_save_prefix"
9720
9721
9722 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9723 if test "${with_libintl_prefix+set}" = set; then
9724   withval="$with_libintl_prefix"
9725
9726     if test "X$withval" = "Xno"; then
9727       use_additional=no
9728     else
9729       if test "X$withval" = "X"; then
9730
9731   acl_save_prefix="$prefix"
9732   prefix="$acl_final_prefix"
9733   acl_save_exec_prefix="$exec_prefix"
9734   exec_prefix="$acl_final_exec_prefix"
9735
9736           eval additional_includedir=\"$includedir\"
9737           eval additional_libdir=\"$libdir\"
9738
9739   exec_prefix="$acl_save_exec_prefix"
9740   prefix="$acl_save_prefix"
9741
9742       else
9743         additional_includedir="$withval/include"
9744         additional_libdir="$withval/lib"
9745       fi
9746     fi
9747
9748 fi;
9749       LIBINTL=
9750   LTLIBINTL=
9751   INCINTL=
9752   rpathdirs=
9753   ltrpathdirs=
9754   names_already_handled=
9755   names_next_round='intl '
9756   while test -n "$names_next_round"; do
9757     names_this_round="$names_next_round"
9758     names_next_round=
9759     for name in $names_this_round; do
9760       already_handled=
9761       for n in $names_already_handled; do
9762         if test "$n" = "$name"; then
9763           already_handled=yes
9764           break
9765         fi
9766       done
9767       if test -z "$already_handled"; then
9768         names_already_handled="$names_already_handled $name"
9769                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9770         eval value=\"\$HAVE_LIB$uppername\"
9771         if test -n "$value"; then
9772           if test "$value" = yes; then
9773             eval value=\"\$LIB$uppername\"
9774             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9775             eval value=\"\$LTLIB$uppername\"
9776             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9777           else
9778                                     :
9779           fi
9780         else
9781                               found_dir=
9782           found_la=
9783           found_so=
9784           found_a=
9785           if test $use_additional = yes; then
9786             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9787               found_dir="$additional_libdir"
9788               found_so="$additional_libdir/lib$name.$shlibext"
9789               if test -f "$additional_libdir/lib$name.la"; then
9790                 found_la="$additional_libdir/lib$name.la"
9791               fi
9792             else
9793               if test -f "$additional_libdir/lib$name.$libext"; then
9794                 found_dir="$additional_libdir"
9795                 found_a="$additional_libdir/lib$name.$libext"
9796                 if test -f "$additional_libdir/lib$name.la"; then
9797                   found_la="$additional_libdir/lib$name.la"
9798                 fi
9799               fi
9800             fi
9801           fi
9802           if test "X$found_dir" = "X"; then
9803             for x in $LDFLAGS $LTLIBINTL; do
9804
9805   acl_save_prefix="$prefix"
9806   prefix="$acl_final_prefix"
9807   acl_save_exec_prefix="$exec_prefix"
9808   exec_prefix="$acl_final_exec_prefix"
9809   eval x=\"$x\"
9810   exec_prefix="$acl_save_exec_prefix"
9811   prefix="$acl_save_prefix"
9812
9813               case "$x" in
9814                 -L*)
9815                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9816                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9817                     found_dir="$dir"
9818                     found_so="$dir/lib$name.$shlibext"
9819                     if test -f "$dir/lib$name.la"; then
9820                       found_la="$dir/lib$name.la"
9821                     fi
9822                   else
9823                     if test -f "$dir/lib$name.$libext"; then
9824                       found_dir="$dir"
9825                       found_a="$dir/lib$name.$libext"
9826                       if test -f "$dir/lib$name.la"; then
9827                         found_la="$dir/lib$name.la"
9828                       fi
9829                     fi
9830                   fi
9831                   ;;
9832               esac
9833               if test "X$found_dir" != "X"; then
9834                 break
9835               fi
9836             done
9837           fi
9838           if test "X$found_dir" != "X"; then
9839                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9840             if test "X$found_so" != "X"; then
9841                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9842                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9843               else
9844                                                                                 haveit=
9845                 for x in $ltrpathdirs; do
9846                   if test "X$x" = "X$found_dir"; then
9847                     haveit=yes
9848                     break
9849                   fi
9850                 done
9851                 if test -z "$haveit"; then
9852                   ltrpathdirs="$ltrpathdirs $found_dir"
9853                 fi
9854                                 if test "$hardcode_direct" = yes; then
9855                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9856                 else
9857                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9858                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9859                                                             haveit=
9860                     for x in $rpathdirs; do
9861                       if test "X$x" = "X$found_dir"; then
9862                         haveit=yes
9863                         break
9864                       fi
9865                     done
9866                     if test -z "$haveit"; then
9867                       rpathdirs="$rpathdirs $found_dir"
9868                     fi
9869                   else
9870                                                                                 haveit=
9871                     for x in $LDFLAGS $LIBINTL; do
9872
9873   acl_save_prefix="$prefix"
9874   prefix="$acl_final_prefix"
9875   acl_save_exec_prefix="$exec_prefix"
9876   exec_prefix="$acl_final_exec_prefix"
9877   eval x=\"$x\"
9878   exec_prefix="$acl_save_exec_prefix"
9879   prefix="$acl_save_prefix"
9880
9881                       if test "X$x" = "X-L$found_dir"; then
9882                         haveit=yes
9883                         break
9884                       fi
9885                     done
9886                     if test -z "$haveit"; then
9887                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9888                     fi
9889                     if test "$hardcode_minus_L" != no; then
9890                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9891                     else
9892                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9893                     fi
9894                   fi
9895                 fi
9896               fi
9897             else
9898               if test "X$found_a" != "X"; then
9899                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9900               else
9901                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9902               fi
9903             fi
9904                         additional_includedir=
9905             case "$found_dir" in
9906               */lib | */lib/)
9907                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9908                 additional_includedir="$basedir/include"
9909                 ;;
9910             esac
9911             if test "X$additional_includedir" != "X"; then
9912                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9913                 haveit=
9914                 if test "X$additional_includedir" = "X/usr/local/include"; then
9915                   if test -n "$GCC"; then
9916                     case $host_os in
9917                       linux*) haveit=yes;;
9918                     esac
9919                   fi
9920                 fi
9921                 if test -z "$haveit"; then
9922                   for x in $CPPFLAGS $INCINTL; do
9923
9924   acl_save_prefix="$prefix"
9925   prefix="$acl_final_prefix"
9926   acl_save_exec_prefix="$exec_prefix"
9927   exec_prefix="$acl_final_exec_prefix"
9928   eval x=\"$x\"
9929   exec_prefix="$acl_save_exec_prefix"
9930   prefix="$acl_save_prefix"
9931
9932                     if test "X$x" = "X-I$additional_includedir"; then
9933                       haveit=yes
9934                       break
9935                     fi
9936                   done
9937                   if test -z "$haveit"; then
9938                     if test -d "$additional_includedir"; then
9939                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9940                     fi
9941                   fi
9942                 fi
9943               fi
9944             fi
9945                         if test -n "$found_la"; then
9946                                                         save_libdir="$libdir"
9947               case "$found_la" in
9948                 */* | *\\*) . "$found_la" ;;
9949                 *) . "./$found_la" ;;
9950               esac
9951               libdir="$save_libdir"
9952                             for dep in $dependency_libs; do
9953                 case "$dep" in
9954                   -L*)
9955                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9956                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9957                       haveit=
9958                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9959                         if test -n "$GCC"; then
9960                           case $host_os in
9961                             linux*) haveit=yes;;
9962                           esac
9963                         fi
9964                       fi
9965                       if test -z "$haveit"; then
9966                         haveit=
9967                         for x in $LDFLAGS $LIBINTL; do
9968
9969   acl_save_prefix="$prefix"
9970   prefix="$acl_final_prefix"
9971   acl_save_exec_prefix="$exec_prefix"
9972   exec_prefix="$acl_final_exec_prefix"
9973   eval x=\"$x\"
9974   exec_prefix="$acl_save_exec_prefix"
9975   prefix="$acl_save_prefix"
9976
9977                           if test "X$x" = "X-L$additional_libdir"; then
9978                             haveit=yes
9979                             break
9980                           fi
9981                         done
9982                         if test -z "$haveit"; then
9983                           if test -d "$additional_libdir"; then
9984                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9985                           fi
9986                         fi
9987                         haveit=
9988                         for x in $LDFLAGS $LTLIBINTL; do
9989
9990   acl_save_prefix="$prefix"
9991   prefix="$acl_final_prefix"
9992   acl_save_exec_prefix="$exec_prefix"
9993   exec_prefix="$acl_final_exec_prefix"
9994   eval x=\"$x\"
9995   exec_prefix="$acl_save_exec_prefix"
9996   prefix="$acl_save_prefix"
9997
9998                           if test "X$x" = "X-L$additional_libdir"; then
9999                             haveit=yes
10000                             break
10001                           fi
10002                         done
10003                         if test -z "$haveit"; then
10004                           if test -d "$additional_libdir"; then
10005                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10006                           fi
10007                         fi
10008                       fi
10009                     fi
10010                     ;;
10011                   -R*)
10012                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10013                     if test "$enable_rpath" != no; then
10014                                                                   haveit=
10015                       for x in $rpathdirs; do
10016                         if test "X$x" = "X$dir"; then
10017                           haveit=yes
10018                           break
10019                         fi
10020                       done
10021                       if test -z "$haveit"; then
10022                         rpathdirs="$rpathdirs $dir"
10023                       fi
10024                                                                   haveit=
10025                       for x in $ltrpathdirs; do
10026                         if test "X$x" = "X$dir"; then
10027                           haveit=yes
10028                           break
10029                         fi
10030                       done
10031                       if test -z "$haveit"; then
10032                         ltrpathdirs="$ltrpathdirs $dir"
10033                       fi
10034                     fi
10035                     ;;
10036                   -l*)
10037                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10038                     ;;
10039                   *.la)
10040                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10041                     ;;
10042                   *)
10043                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10044                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10045                     ;;
10046                 esac
10047               done
10048             fi
10049           else
10050                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10051             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10052           fi
10053         fi
10054       fi
10055     done
10056   done
10057   if test "X$rpathdirs" != "X"; then
10058     if test -n "$hardcode_libdir_separator"; then
10059                         alldirs=
10060       for found_dir in $rpathdirs; do
10061         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10062       done
10063             acl_save_libdir="$libdir"
10064       libdir="$alldirs"
10065       eval flag=\"$hardcode_libdir_flag_spec\"
10066       libdir="$acl_save_libdir"
10067       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10068     else
10069             for found_dir in $rpathdirs; do
10070         acl_save_libdir="$libdir"
10071         libdir="$found_dir"
10072         eval flag=\"$hardcode_libdir_flag_spec\"
10073         libdir="$acl_save_libdir"
10074         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10075       done
10076     fi
10077   fi
10078   if test "X$ltrpathdirs" != "X"; then
10079             for found_dir in $ltrpathdirs; do
10080       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10081     done
10082   fi
10083
10084           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10085 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
10086 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10087   echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089   gt_save_CPPFLAGS="$CPPFLAGS"
10090             CPPFLAGS="$CPPFLAGS $INCINTL"
10091             gt_save_LIBS="$LIBS"
10092             LIBS="$LIBS $LIBINTL"
10093                         cat >conftest.$ac_ext <<_ACEOF
10094 /* confdefs.h.  */
10095 _ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h.  */
10099 #include <libintl.h>
10100 extern int _nl_msg_cat_cntr;
10101 extern
10102 #ifdef __cplusplus
10103 "C"
10104 #endif
10105 const char *_nl_expand_alias ();
10106 int
10107 main ()
10108 {
10109 bindtextdomain ("", "");
10110 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10111   ;
10112   return 0;
10113 }
10114 _ACEOF
10115 rm -f conftest.$ac_objext conftest$ac_exeext
10116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10117   (eval $ac_link) 2>conftest.er1
10118   ac_status=$?
10119   grep -v '^ *+' conftest.er1 >conftest.err
10120   rm -f conftest.er1
10121   cat conftest.err >&5
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); } &&
10124          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126   (eval $ac_try) 2>&5
10127   ac_status=$?
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); }; } &&
10130          { ac_try='test -s conftest$ac_exeext'
10131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132   (eval $ac_try) 2>&5
10133   ac_status=$?
10134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135   (exit $ac_status); }; }; then
10136   gt_cv_func_gnugettext1_libintl=yes
10137 else
10138   echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10140
10141 gt_cv_func_gnugettext1_libintl=no
10142 fi
10143 rm -f conftest.err conftest.$ac_objext \
10144       conftest$ac_exeext conftest.$ac_ext
10145                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10146               LIBS="$LIBS $LIBICONV"
10147               cat >conftest.$ac_ext <<_ACEOF
10148 /* confdefs.h.  */
10149 _ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h.  */
10153 #include <libintl.h>
10154 extern int _nl_msg_cat_cntr;
10155 extern
10156 #ifdef __cplusplus
10157 "C"
10158 #endif
10159 const char *_nl_expand_alias ();
10160 int
10161 main ()
10162 {
10163 bindtextdomain ("", "");
10164 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10165   ;
10166   return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10171   (eval $ac_link) 2>conftest.er1
10172   ac_status=$?
10173   grep -v '^ *+' conftest.er1 >conftest.err
10174   rm -f conftest.er1
10175   cat conftest.err >&5
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } &&
10178          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180   (eval $ac_try) 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; } &&
10184          { ac_try='test -s conftest$ac_exeext'
10185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186   (eval $ac_try) 2>&5
10187   ac_status=$?
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); }; }; then
10190   LIBINTL="$LIBINTL $LIBICONV"
10191                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10192                 gt_cv_func_gnugettext1_libintl=yes
10193
10194 else
10195   echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10197
10198 fi
10199 rm -f conftest.err conftest.$ac_objext \
10200       conftest$ac_exeext conftest.$ac_ext
10201             fi
10202             CPPFLAGS="$gt_save_CPPFLAGS"
10203             LIBS="$gt_save_LIBS"
10204 fi
10205 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10206 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
10207         fi
10208
10209                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10210            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10211                 && test "$PACKAGE" != gettext-runtime \
10212                 && test "$PACKAGE" != gettext-tools; }; then
10213           gt_use_preinstalled_gnugettext=yes
10214         else
10215                     LIBINTL=
10216           LTLIBINTL=
10217           INCINTL=
10218         fi
10219
10220
10221         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10222                               nls_cv_use_gnu_gettext=yes
10223         fi
10224       fi
10225
10226       if test "$nls_cv_use_gnu_gettext" = "yes"; then
10227                 BUILD_INCLUDED_LIBINTL=yes
10228         USE_INCLUDED_LIBINTL=yes
10229         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10230         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10231         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10232       fi
10233
10234       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10235          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10236                 CATOBJEXT=.gmo
10237       fi
10238
10239
10240     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10241        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10242
10243 cat >>confdefs.h <<\_ACEOF
10244 #define ENABLE_NLS 1
10245 _ACEOF
10246
10247     else
10248       USE_NLS=no
10249     fi
10250   fi
10251
10252   echo "$as_me:$LINENO: checking whether to use NLS" >&5
10253 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
10254   echo "$as_me:$LINENO: result: $USE_NLS" >&5
10255 echo "${ECHO_T}$USE_NLS" >&6
10256   if test "$USE_NLS" = "yes"; then
10257     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10258 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
10259     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10260       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10261         gt_source="external libintl"
10262       else
10263         gt_source="libc"
10264       fi
10265     else
10266       gt_source="included intl directory"
10267     fi
10268     echo "$as_me:$LINENO: result: $gt_source" >&5
10269 echo "${ECHO_T}$gt_source" >&6
10270   fi
10271
10272   if test "$USE_NLS" = "yes"; then
10273
10274     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10275       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10276         echo "$as_me:$LINENO: checking how to link with libintl" >&5
10277 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
10278         echo "$as_me:$LINENO: result: $LIBINTL" >&5
10279 echo "${ECHO_T}$LIBINTL" >&6
10280
10281   for element in $INCINTL; do
10282     haveit=
10283     for x in $CPPFLAGS; do
10284
10285   acl_save_prefix="$prefix"
10286   prefix="$acl_final_prefix"
10287   acl_save_exec_prefix="$exec_prefix"
10288   exec_prefix="$acl_final_exec_prefix"
10289   eval x=\"$x\"
10290   exec_prefix="$acl_save_exec_prefix"
10291   prefix="$acl_save_prefix"
10292
10293       if test "X$x" = "X$element"; then
10294         haveit=yes
10295         break
10296       fi
10297     done
10298     if test -z "$haveit"; then
10299       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10300     fi
10301   done
10302
10303       fi
10304
10305
10306 cat >>confdefs.h <<\_ACEOF
10307 #define HAVE_GETTEXT 1
10308 _ACEOF
10309
10310
10311 cat >>confdefs.h <<\_ACEOF
10312 #define HAVE_DCGETTEXT 1
10313 _ACEOF
10314
10315     fi
10316
10317         POSUB=po
10318   fi
10319
10320
10321             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10322       BUILD_INCLUDED_LIBINTL=yes
10323     fi
10324
10325
10326
10327
10328
10329         nls_cv_header_intl=
10330     nls_cv_header_libgt=
10331
10332         DATADIRNAME=share
10333
10334
10335         INSTOBJEXT=.mo
10336
10337
10338         GENCAT=gencat
10339
10340
10341         if test "$USE_INCLUDED_LIBINTL" = yes; then
10342       INTLOBJS="\$(GETTOBJS)"
10343     fi
10344
10345
10346         INTL_LIBTOOL_SUFFIX_PREFIX=
10347
10348
10349
10350     INTLLIBS="$LIBINTL"
10351
10352
10353
10354
10355
10356
10357
10358
10359 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
10360 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
10361 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
10362   echo $ECHO_N "(cached) $ECHO_C" >&6
10363 else
10364   ac_check_lib_save_LIBS=$LIBS
10365 LIBS="-lncurses  $LIBS"
10366 cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h.  */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h.  */
10372
10373 /* Override any gcc2 internal prototype to avoid an error.  */
10374 #ifdef __cplusplus
10375 extern "C"
10376 #endif
10377 /* We use char because int might match the return type of a gcc2
10378    builtin and then its argument prototype would still apply.  */
10379 char initscr ();
10380 int
10381 main ()
10382 {
10383 initscr ();
10384   ;
10385   return 0;
10386 }
10387 _ACEOF
10388 rm -f conftest.$ac_objext conftest$ac_exeext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10390   (eval $ac_link) 2>conftest.er1
10391   ac_status=$?
10392   grep -v '^ *+' conftest.er1 >conftest.err
10393   rm -f conftest.er1
10394   cat conftest.err >&5
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); } &&
10397          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399   (eval $ac_try) 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); }; } &&
10403          { ac_try='test -s conftest$ac_exeext'
10404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405   (eval $ac_try) 2>&5
10406   ac_status=$?
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); }; }; then
10409   ac_cv_lib_ncurses_initscr=yes
10410 else
10411   echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10413
10414 ac_cv_lib_ncurses_initscr=no
10415 fi
10416 rm -f conftest.err conftest.$ac_objext \
10417       conftest$ac_exeext conftest.$ac_ext
10418 LIBS=$ac_check_lib_save_LIBS
10419 fi
10420 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
10421 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
10422 if test $ac_cv_lib_ncurses_initscr = yes; then
10423   cat >>confdefs.h <<_ACEOF
10424 #define HAVE_LIBNCURSES 1
10425 _ACEOF
10426
10427   LIBS="-lncurses $LIBS"
10428
10429 else
10430   NOCURSES=yes
10431 fi
10432
10433 if test "$NOCURSES" = yes; then
10434
10435 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
10436 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
10437 if test "${ac_cv_lib_curses_initscr+set}" = set; then
10438   echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440   ac_check_lib_save_LIBS=$LIBS
10441 LIBS="-lcurses  $LIBS"
10442 cat >conftest.$ac_ext <<_ACEOF
10443 /* confdefs.h.  */
10444 _ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h.  */
10448
10449 /* Override any gcc2 internal prototype to avoid an error.  */
10450 #ifdef __cplusplus
10451 extern "C"
10452 #endif
10453 /* We use char because int might match the return type of a gcc2
10454    builtin and then its argument prototype would still apply.  */
10455 char initscr ();
10456 int
10457 main ()
10458 {
10459 initscr ();
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466   (eval $ac_link) 2>conftest.er1
10467   ac_status=$?
10468   grep -v '^ *+' conftest.er1 >conftest.err
10469   rm -f conftest.er1
10470   cat conftest.err >&5
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); } &&
10473          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475   (eval $ac_try) 2>&5
10476   ac_status=$?
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); }; } &&
10479          { ac_try='test -s conftest$ac_exeext'
10480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481   (eval $ac_try) 2>&5
10482   ac_status=$?
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); }; }; then
10485   ac_cv_lib_curses_initscr=yes
10486 else
10487   echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10489
10490 ac_cv_lib_curses_initscr=no
10491 fi
10492 rm -f conftest.err conftest.$ac_objext \
10493       conftest$ac_exeext conftest.$ac_ext
10494 LIBS=$ac_check_lib_save_LIBS
10495 fi
10496 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
10497 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
10498 if test $ac_cv_lib_curses_initscr = yes; then
10499   cat >>confdefs.h <<_ACEOF
10500 #define HAVE_LIBCURSES 1
10501 _ACEOF
10502
10503   LIBS="-lcurses $LIBS"
10504
10505 else
10506   { { echo "$as_me:$LINENO: error: ap-utils requires installed ncurses or Sys V curses to build" >&5
10507 echo "$as_me: error: ap-utils requires installed ncurses or Sys V curses to build" >&2;}
10508    { (exit 1); exit 1; }; }
10509 fi
10510
10511 fi
10512
10513 # Check for OS and make OS define OS specific variables
10514 case "$host_os" in
10515  *bsd*|*darwin* )
10516
10517 cat >>confdefs.h <<\_ACEOF
10518 #define OS_BSD 1
10519 _ACEOF
10520
10521         case "$host_os" in
10522          netbsd* )
10523             ap_config_LDADD="-lncurses"
10524             CC="$CC -R/usr/pkg/lib -L/usr/pkg/lib -I/usr/pkg/include"
10525             ;;
10526          openbsd* )
10527             ;;
10528          *darwin* )
10529
10530 cat >>confdefs.h <<\_ACEOF
10531 #define OS_X 1
10532 _ACEOF
10533
10534             ;;
10535         esac
10536         ;;
10537  *qnx )
10538         LIBS="$LIBS -lsocket"
10539         INSTALL="config/install-sh"
10540         ;;
10541  aix4* )
10542     case "$CC" in
10543      cc* | xlc* )
10544         CC="$CC -qcpluscmt -qmaxmem=16384"
10545     esac
10546     ;;
10547  solaris* )
10548
10549 cat >>confdefs.h <<\_ACEOF
10550 #define OS_SOLARIS 1
10551 _ACEOF
10552
10553         LIBS="$LIBS -lresolv -lnls"
10554     ;;
10555  gnu*|*linux* )
10556
10557 cat >>confdefs.h <<\_ACEOF
10558 #define OS_LINUX 1
10559 _ACEOF
10560
10561         CFLAGS="$CFLAGS -Wall -W"
10562     ;;
10563 esac
10564
10565 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10566 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10567 if test "${ac_cv_c_bigendian+set}" = set; then
10568   echo $ECHO_N "(cached) $ECHO_C" >&6
10569 else
10570   # See if sys/param.h defines the BYTE_ORDER macro.
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h.  */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h.  */
10577 #include <sys/types.h>
10578 #include <sys/param.h>
10579
10580 int
10581 main ()
10582 {
10583 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10584  bogus endian macros
10585 #endif
10586
10587   ;
10588   return 0;
10589 }
10590 _ACEOF
10591 rm -f conftest.$ac_objext
10592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10593   (eval $ac_compile) 2>conftest.er1
10594   ac_status=$?
10595   grep -v '^ *+' conftest.er1 >conftest.err
10596   rm -f conftest.er1
10597   cat conftest.err >&5
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); } &&
10600          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602   (eval $ac_try) 2>&5
10603   ac_status=$?
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); }; } &&
10606          { ac_try='test -s conftest.$ac_objext'
10607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608   (eval $ac_try) 2>&5
10609   ac_status=$?
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); }; }; then
10612   # It does; now see whether it defined to BIG_ENDIAN or not.
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619 #include <sys/types.h>
10620 #include <sys/param.h>
10621
10622 int
10623 main ()
10624 {
10625 #if BYTE_ORDER != BIG_ENDIAN
10626  not big endian
10627 #endif
10628
10629   ;
10630   return 0;
10631 }
10632 _ACEOF
10633 rm -f conftest.$ac_objext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10635   (eval $ac_compile) 2>conftest.er1
10636   ac_status=$?
10637   grep -v '^ *+' conftest.er1 >conftest.err
10638   rm -f conftest.er1
10639   cat conftest.err >&5
10640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); } &&
10642          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644   (eval $ac_try) 2>&5
10645   ac_status=$?
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); }; } &&
10648          { ac_try='test -s conftest.$ac_objext'
10649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650   (eval $ac_try) 2>&5
10651   ac_status=$?
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); }; }; then
10654   ac_cv_c_bigendian=yes
10655 else
10656   echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10658
10659 ac_cv_c_bigendian=no
10660 fi
10661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10662 else
10663   echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10665
10666 # It does not; compile a test program.
10667 if test "$cross_compiling" = yes; then
10668   # try to guess the endianness by grepping values into an object file
10669   ac_cv_c_bigendian=unknown
10670   cat >conftest.$ac_ext <<_ACEOF
10671 /* confdefs.h.  */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h.  */
10676 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10677 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10678 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10679 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10680 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10681 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10682 int
10683 main ()
10684 {
10685  _ascii (); _ebcdic ();
10686   ;
10687   return 0;
10688 }
10689 _ACEOF
10690 rm -f conftest.$ac_objext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10692   (eval $ac_compile) 2>conftest.er1
10693   ac_status=$?
10694   grep -v '^ *+' conftest.er1 >conftest.err
10695   rm -f conftest.er1
10696   cat conftest.err >&5
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); } &&
10699          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701   (eval $ac_try) 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); }; } &&
10705          { ac_try='test -s conftest.$ac_objext'
10706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707   (eval $ac_try) 2>&5
10708   ac_status=$?
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); }; }; then
10711   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10712   ac_cv_c_bigendian=yes
10713 fi
10714 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10715   if test "$ac_cv_c_bigendian" = unknown; then
10716     ac_cv_c_bigendian=no
10717   else
10718     # finding both strings is unlikely to happen, but who knows?
10719     ac_cv_c_bigendian=unknown
10720   fi
10721 fi
10722 else
10723   echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10725
10726 fi
10727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10728 else
10729   cat >conftest.$ac_ext <<_ACEOF
10730 /* confdefs.h.  */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h.  */
10735 int
10736 main ()
10737 {
10738   /* Are we little or big endian?  From Harbison&Steele.  */
10739   union
10740   {
10741     long l;
10742     char c[sizeof (long)];
10743   } u;
10744   u.l = 1;
10745   exit (u.c[sizeof (long) - 1] == 1);
10746 }
10747 _ACEOF
10748 rm -f conftest$ac_exeext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10750   (eval $ac_link) 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755   (eval $ac_try) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); }; }; then
10759   ac_cv_c_bigendian=no
10760 else
10761   echo "$as_me: program exited with status $ac_status" >&5
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10764
10765 ( exit $ac_status )
10766 ac_cv_c_bigendian=yes
10767 fi
10768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10769 fi
10770 fi
10771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10772 fi
10773 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10774 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10775 case $ac_cv_c_bigendian in
10776   yes)
10777
10778 cat >>confdefs.h <<\_ACEOF
10779 #define WORDS_BIGENDIAN 1
10780 _ACEOF
10781  ;;
10782   no)
10783      ;;
10784   *)
10785     { { echo "$as_me:$LINENO: error: unknown endianness
10786 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10787 echo "$as_me: error: unknown endianness
10788 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10789    { (exit 1); exit 1; }; } ;;
10790 esac
10791
10792
10793 # Check whether --enable-regdomain or --disable-regdomain was given.
10794 if test "${enable_regdomain+set}" = set; then
10795   enableval="$enable_regdomain"
10796    case "$enableval" in
10797 no)
10798
10799 cat >>confdefs.h <<\_ACEOF
10800 #define NO_REG_DOMAIN 1
10801 _ACEOF
10802
10803  ;;
10804  esac
10805
10806 fi;
10807
10808                                                                       ac_config_files="$ac_config_files Makefile src/Makefile ap-gl/Makefile lib/Makefile po/Makefile.in intl/Makefile Documentation/Makefile"
10809 cat >confcache <<\_ACEOF
10810 # This file is a shell script that caches the results of configure
10811 # tests run on this system so they can be shared between configure
10812 # scripts and configure runs, see configure's option --config-cache.
10813 # It is not useful on other systems.  If it contains results you don't
10814 # want to keep, you may remove or edit it.
10815 #
10816 # config.status only pays attention to the cache file if you give it
10817 # the --recheck option to rerun configure.
10818 #
10819 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10820 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10821 # following values.
10822
10823 _ACEOF
10824
10825 # The following way of writing the cache mishandles newlines in values,
10826 # but we know of no workaround that is simple, portable, and efficient.
10827 # So, don't put newlines in cache variables' values.
10828 # Ultrix sh set writes to stderr and can't be redirected directly,
10829 # and sets the high bit in the cache file unless we assign to the vars.
10830 {
10831   (set) 2>&1 |
10832     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10833     *ac_space=\ *)
10834       # `set' does not quote correctly, so add quotes (double-quote
10835       # substitution turns \\\\ into \\, and sed turns \\ into \).
10836       sed -n \
10837         "s/'/'\\\\''/g;
10838           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10839       ;;
10840     *)
10841       # `set' quotes correctly as required by POSIX, so do not add quotes.
10842       sed -n \
10843         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10844       ;;
10845     esac;
10846 } |
10847   sed '
10848      t clear
10849      : clear
10850      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10851      t end
10852      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10853      : end' >>confcache
10854 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10855   if test -w $cache_file; then
10856     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10857     cat confcache >$cache_file
10858   else
10859     echo "not updating unwritable cache $cache_file"
10860   fi
10861 fi
10862 rm -f confcache
10863
10864 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10865 # Let make expand exec_prefix.
10866 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10867
10868 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10869 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10870 # trailing colons and then remove the whole line if VPATH becomes empty
10871 # (actually we leave an empty line to preserve line numbers).
10872 if test "x$srcdir" = x.; then
10873   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10874 s/:*\$(srcdir):*/:/;
10875 s/:*\${srcdir}:*/:/;
10876 s/:*@srcdir@:*/:/;
10877 s/^\([^=]*=[     ]*\):*/\1/;
10878 s/:*$//;
10879 s/^[^=]*=[       ]*$//;
10880 }'
10881 fi
10882
10883 DEFS=-DHAVE_CONFIG_H
10884
10885 ac_libobjs=
10886 ac_ltlibobjs=
10887 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10888   # 1. Remove the extension, and $U if already installed.
10889   ac_i=`echo "$ac_i" |
10890          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10891   # 2. Add them.
10892   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10893   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10894 done
10895 LIBOBJS=$ac_libobjs
10896
10897 LTLIBOBJS=$ac_ltlibobjs
10898
10899
10900 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10901   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10902 Usually this means the macro was only invoked conditionally." >&5
10903 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10904 Usually this means the macro was only invoked conditionally." >&2;}
10905    { (exit 1); exit 1; }; }
10906 fi
10907 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10908   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10909 Usually this means the macro was only invoked conditionally." >&5
10910 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10911 Usually this means the macro was only invoked conditionally." >&2;}
10912    { (exit 1); exit 1; }; }
10913 fi
10914
10915 : ${CONFIG_STATUS=./config.status}
10916 ac_clean_files_save=$ac_clean_files
10917 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10918 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10919 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10920 cat >$CONFIG_STATUS <<_ACEOF
10921 #! $SHELL
10922 # Generated by $as_me.
10923 # Run this file to recreate the current configuration.
10924 # Compiler output produced by configure, useful for debugging
10925 # configure, is in config.log if it exists.
10926
10927 debug=false
10928 ac_cs_recheck=false
10929 ac_cs_silent=false
10930 SHELL=\${CONFIG_SHELL-$SHELL}
10931 _ACEOF
10932
10933 cat >>$CONFIG_STATUS <<\_ACEOF
10934 ## --------------------- ##
10935 ## M4sh Initialization.  ##
10936 ## --------------------- ##
10937
10938 # Be Bourne compatible
10939 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10940   emulate sh
10941   NULLCMD=:
10942   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10943   # is contrary to our usage.  Disable this feature.
10944   alias -g '${1+"$@"}'='"$@"'
10945 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10946   set -o posix
10947 fi
10948 DUALCASE=1; export DUALCASE # for MKS sh
10949
10950 # Support unset when possible.
10951 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10952   as_unset=unset
10953 else
10954   as_unset=false
10955 fi
10956
10957
10958 # Work around bugs in pre-3.0 UWIN ksh.
10959 $as_unset ENV MAIL MAILPATH
10960 PS1='$ '
10961 PS2='> '
10962 PS4='+ '
10963
10964 # NLS nuisances.
10965 for as_var in \
10966   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10967   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10968   LC_TELEPHONE LC_TIME
10969 do
10970   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10971     eval $as_var=C; export $as_var
10972   else
10973     $as_unset $as_var
10974   fi
10975 done
10976
10977 # Required to use basename.
10978 if expr a : '\(a\)' >/dev/null 2>&1; then
10979   as_expr=expr
10980 else
10981   as_expr=false
10982 fi
10983
10984 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10985   as_basename=basename
10986 else
10987   as_basename=false
10988 fi
10989
10990
10991 # Name of the executable.
10992 as_me=`$as_basename "$0" ||
10993 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10994          X"$0" : 'X\(//\)$' \| \
10995          X"$0" : 'X\(/\)$' \| \
10996          .     : '\(.\)' 2>/dev/null ||
10997 echo X/"$0" |
10998     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10999           /^X\/\(\/\/\)$/{ s//\1/; q; }
11000           /^X\/\(\/\).*/{ s//\1/; q; }
11001           s/.*/./; q'`
11002
11003
11004 # PATH needs CR, and LINENO needs CR and PATH.
11005 # Avoid depending upon Character Ranges.
11006 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11007 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11008 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11009 as_cr_digits='0123456789'
11010 as_cr_alnum=$as_cr_Letters$as_cr_digits
11011
11012 # The user is always right.
11013 if test "${PATH_SEPARATOR+set}" != set; then
11014   echo "#! /bin/sh" >conf$$.sh
11015   echo  "exit 0"   >>conf$$.sh
11016   chmod +x conf$$.sh
11017   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11018     PATH_SEPARATOR=';'
11019   else
11020     PATH_SEPARATOR=:
11021   fi
11022   rm -f conf$$.sh
11023 fi
11024
11025
11026   as_lineno_1=$LINENO
11027   as_lineno_2=$LINENO
11028   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11029   test "x$as_lineno_1" != "x$as_lineno_2" &&
11030   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11031   # Find who we are.  Look in the path if we contain no path at all
11032   # relative or not.
11033   case $0 in
11034     *[\\/]* ) as_myself=$0 ;;
11035     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11037 do
11038   IFS=$as_save_IFS
11039   test -z "$as_dir" && as_dir=.
11040   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11041 done
11042
11043        ;;
11044   esac
11045   # We did not find ourselves, most probably we were run as `sh COMMAND'
11046   # in which case we are not to be found in the path.
11047   if test "x$as_myself" = x; then
11048     as_myself=$0
11049   fi
11050   if test ! -f "$as_myself"; then
11051     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11052 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11053    { (exit 1); exit 1; }; }
11054   fi
11055   case $CONFIG_SHELL in
11056   '')
11057     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11059 do
11060   IFS=$as_save_IFS
11061   test -z "$as_dir" && as_dir=.
11062   for as_base in sh bash ksh sh5; do
11063          case $as_dir in
11064          /*)
11065            if ("$as_dir/$as_base" -c '
11066   as_lineno_1=$LINENO
11067   as_lineno_2=$LINENO
11068   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11069   test "x$as_lineno_1" != "x$as_lineno_2" &&
11070   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11071              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11072              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11073              CONFIG_SHELL=$as_dir/$as_base
11074              export CONFIG_SHELL
11075              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11076            fi;;
11077          esac
11078        done
11079 done
11080 ;;
11081   esac
11082
11083   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11084   # uniformly replaced by the line number.  The first 'sed' inserts a
11085   # line-number line before each line; the second 'sed' does the real
11086   # work.  The second script uses 'N' to pair each line-number line
11087   # with the numbered line, and appends trailing '-' during
11088   # substitution so that $LINENO is not a special case at line end.
11089   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11090   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11091   sed '=' <$as_myself |
11092     sed '
11093       N
11094       s,$,-,
11095       : loop
11096       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11097       t loop
11098       s,-$,,
11099       s,^['$as_cr_digits']*\n,,
11100     ' >$as_me.lineno &&
11101   chmod +x $as_me.lineno ||
11102     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11103 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11104    { (exit 1); exit 1; }; }
11105
11106   # Don't try to exec as it changes $[0], causing all sort of problems
11107   # (the dirname of $[0] is not the place where we might find the
11108   # original and so on.  Autoconf is especially sensible to this).
11109   . ./$as_me.lineno
11110   # Exit status is that of the last command.
11111   exit
11112 }
11113
11114
11115 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11116   *c*,-n*) ECHO_N= ECHO_C='
11117 ' ECHO_T='      ' ;;
11118   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11119   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11120 esac
11121
11122 if expr a : '\(a\)' >/dev/null 2>&1; then
11123   as_expr=expr
11124 else
11125   as_expr=false
11126 fi
11127
11128 rm -f conf$$ conf$$.exe conf$$.file
11129 echo >conf$$.file
11130 if ln -s conf$$.file conf$$ 2>/dev/null; then
11131   # We could just check for DJGPP; but this test a) works b) is more generic
11132   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11133   if test -f conf$$.exe; then
11134     # Don't use ln at all; we don't have any links
11135     as_ln_s='cp -p'
11136   else
11137     as_ln_s='ln -s'
11138   fi
11139 elif ln conf$$.file conf$$ 2>/dev/null; then
11140   as_ln_s=ln
11141 else
11142   as_ln_s='cp -p'
11143 fi
11144 rm -f conf$$ conf$$.exe conf$$.file
11145
11146 if mkdir -p . 2>/dev/null; then
11147   as_mkdir_p=:
11148 else
11149   test -d ./-p && rmdir ./-p
11150   as_mkdir_p=false
11151 fi
11152
11153 as_executable_p="test -f"
11154
11155 # Sed expression to map a string onto a valid CPP name.
11156 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11157
11158 # Sed expression to map a string onto a valid variable name.
11159 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11160
11161
11162 # IFS
11163 # We need space, tab and new line, in precisely that order.
11164 as_nl='
11165 '
11166 IFS="   $as_nl"
11167
11168 # CDPATH.
11169 $as_unset CDPATH
11170
11171 exec 6>&1
11172
11173 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11174 # report actual input values of CONFIG_FILES etc. instead of their
11175 # values after options handling.  Logging --version etc. is OK.
11176 exec 5>>config.log
11177 {
11178   echo
11179   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11180 ## Running $as_me. ##
11181 _ASBOX
11182 } >&5
11183 cat >&5 <<_CSEOF
11184
11185 This file was extended by $as_me, which was
11186 generated by GNU Autoconf 2.59.  Invocation command line was
11187
11188   CONFIG_FILES    = $CONFIG_FILES
11189   CONFIG_HEADERS  = $CONFIG_HEADERS
11190   CONFIG_LINKS    = $CONFIG_LINKS
11191   CONFIG_COMMANDS = $CONFIG_COMMANDS
11192   $ $0 $@
11193
11194 _CSEOF
11195 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11196 echo >&5
11197 _ACEOF
11198
11199 # Files that config.status was made for.
11200 if test -n "$ac_config_files"; then
11201   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11202 fi
11203
11204 if test -n "$ac_config_headers"; then
11205   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11206 fi
11207
11208 if test -n "$ac_config_links"; then
11209   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11210 fi
11211
11212 if test -n "$ac_config_commands"; then
11213   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11214 fi
11215
11216 cat >>$CONFIG_STATUS <<\_ACEOF
11217
11218 ac_cs_usage="\
11219 \`$as_me' instantiates files from templates according to the
11220 current configuration.
11221
11222 Usage: $0 [OPTIONS] [FILE]...
11223
11224   -h, --help       print this help, then exit
11225   -V, --version    print version number, then exit
11226   -q, --quiet      do not print progress messages
11227   -d, --debug      don't remove temporary files
11228       --recheck    update $as_me by reconfiguring in the same conditions
11229   --file=FILE[:TEMPLATE]
11230                    instantiate the configuration file FILE
11231   --header=FILE[:TEMPLATE]
11232                    instantiate the configuration header FILE
11233
11234 Configuration files:
11235 $config_files
11236
11237 Configuration headers:
11238 $config_headers
11239
11240 Configuration commands:
11241 $config_commands
11242
11243 Report bugs to <bug-autoconf@gnu.org>."
11244 _ACEOF
11245
11246 cat >>$CONFIG_STATUS <<_ACEOF
11247 ac_cs_version="\\
11248 config.status
11249 configured by $0, generated by GNU Autoconf 2.59,
11250   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11251
11252 Copyright (C) 2003 Free Software Foundation, Inc.
11253 This config.status script is free software; the Free Software Foundation
11254 gives unlimited permission to copy, distribute and modify it."
11255 srcdir=$srcdir
11256 INSTALL="$INSTALL"
11257 _ACEOF
11258
11259 cat >>$CONFIG_STATUS <<\_ACEOF
11260 # If no file are specified by the user, then we need to provide default
11261 # value.  By we need to know if files were specified by the user.
11262 ac_need_defaults=:
11263 while test $# != 0
11264 do
11265   case $1 in
11266   --*=*)
11267     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11268     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11269     ac_shift=:
11270     ;;
11271   -*)
11272     ac_option=$1
11273     ac_optarg=$2
11274     ac_shift=shift
11275     ;;
11276   *) # This is not an option, so the user has probably given explicit
11277      # arguments.
11278      ac_option=$1
11279      ac_need_defaults=false;;
11280   esac
11281
11282   case $ac_option in
11283   # Handling of the options.
11284 _ACEOF
11285 cat >>$CONFIG_STATUS <<\_ACEOF
11286   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11287     ac_cs_recheck=: ;;
11288   --version | --vers* | -V )
11289     echo "$ac_cs_version"; exit 0 ;;
11290   --he | --h)
11291     # Conflict between --help and --header
11292     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11293 Try \`$0 --help' for more information." >&5
11294 echo "$as_me: error: ambiguous option: $1
11295 Try \`$0 --help' for more information." >&2;}
11296    { (exit 1); exit 1; }; };;
11297   --help | --hel | -h )
11298     echo "$ac_cs_usage"; exit 0 ;;
11299   --debug | --d* | -d )
11300     debug=: ;;
11301   --file | --fil | --fi | --f )
11302     $ac_shift
11303     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11304     ac_need_defaults=false;;
11305   --header | --heade | --head | --hea )
11306     $ac_shift
11307     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11308     ac_need_defaults=false;;
11309   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11310   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11311     ac_cs_silent=: ;;
11312
11313   # This is an error.
11314   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11315 Try \`$0 --help' for more information." >&5
11316 echo "$as_me: error: unrecognized option: $1
11317 Try \`$0 --help' for more information." >&2;}
11318    { (exit 1); exit 1; }; } ;;
11319
11320   *) ac_config_targets="$ac_config_targets $1" ;;
11321
11322   esac
11323   shift
11324 done
11325
11326 ac_configure_extra_args=
11327
11328 if $ac_cs_silent; then
11329   exec 6>/dev/null
11330   ac_configure_extra_args="$ac_configure_extra_args --silent"
11331 fi
11332
11333 _ACEOF
11334 cat >>$CONFIG_STATUS <<_ACEOF
11335 if \$ac_cs_recheck; then
11336   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11337   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11338 fi
11339
11340 _ACEOF
11341
11342 cat >>$CONFIG_STATUS <<_ACEOF
11343 #
11344 # INIT-COMMANDS section.
11345 #
11346
11347 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11348 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11349     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11350     # from automake.
11351     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11352     # Capture the value of LINGUAS because we need it to compute CATALOGS.
11353     LINGUAS="${LINGUAS-%UNSET%}"
11354
11355
11356 _ACEOF
11357
11358
11359
11360 cat >>$CONFIG_STATUS <<\_ACEOF
11361 for ac_config_target in $ac_config_targets
11362 do
11363   case "$ac_config_target" in
11364   # Handling of arguments.
11365   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11366   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11367   "ap-gl/Makefile" ) CONFIG_FILES="$CONFIG_FILES ap-gl/Makefile" ;;
11368   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11369   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11370   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
11371   "Documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES Documentation/Makefile" ;;
11372   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11373   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11374   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11375   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11376 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11377    { (exit 1); exit 1; }; };;
11378   esac
11379 done
11380
11381 # If the user did not use the arguments to specify the items to instantiate,
11382 # then the envvar interface is used.  Set only those that are not.
11383 # We use the long form for the default assignment because of an extremely
11384 # bizarre bug on SunOS 4.1.3.
11385 if $ac_need_defaults; then
11386   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11387   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11388   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11389 fi
11390
11391 # Have a temporary directory for convenience.  Make it in the build tree
11392 # simply because there is no reason to put it here, and in addition,
11393 # creating and moving files from /tmp can sometimes cause problems.
11394 # Create a temporary directory, and hook for its removal unless debugging.
11395 $debug ||
11396 {
11397   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11398   trap '{ (exit 1); exit 1; }' 1 2 13 15
11399 }
11400
11401 # Create a (secure) tmp directory for tmp files.
11402
11403 {
11404   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11405   test -n "$tmp" && test -d "$tmp"
11406 }  ||
11407 {
11408   tmp=./confstat$$-$RANDOM
11409   (umask 077 && mkdir $tmp)
11410 } ||
11411 {
11412    echo "$me: cannot create a temporary directory in ." >&2
11413    { (exit 1); exit 1; }
11414 }
11415
11416 _ACEOF
11417
11418 cat >>$CONFIG_STATUS <<_ACEOF
11419
11420 #
11421 # CONFIG_FILES section.
11422 #
11423
11424 # No need to generate the scripts if there are no CONFIG_FILES.
11425 # This happens for instance when ./config.status config.h
11426 if test -n "\$CONFIG_FILES"; then
11427   # Protect against being on the right side of a sed subst in config.status.
11428   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11429    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11430 s,@SHELL@,$SHELL,;t t
11431 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11432 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11433 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11434 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11435 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11436 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11437 s,@exec_prefix@,$exec_prefix,;t t
11438 s,@prefix@,$prefix,;t t
11439 s,@program_transform_name@,$program_transform_name,;t t
11440 s,@bindir@,$bindir,;t t
11441 s,@sbindir@,$sbindir,;t t
11442 s,@libexecdir@,$libexecdir,;t t
11443 s,@datadir@,$datadir,;t t
11444 s,@sysconfdir@,$sysconfdir,;t t
11445 s,@sharedstatedir@,$sharedstatedir,;t t
11446 s,@localstatedir@,$localstatedir,;t t
11447 s,@libdir@,$libdir,;t t
11448 s,@includedir@,$includedir,;t t
11449 s,@oldincludedir@,$oldincludedir,;t t
11450 s,@infodir@,$infodir,;t t
11451 s,@mandir@,$mandir,;t t
11452 s,@build_alias@,$build_alias,;t t
11453 s,@host_alias@,$host_alias,;t t
11454 s,@target_alias@,$target_alias,;t t
11455 s,@DEFS@,$DEFS,;t t
11456 s,@ECHO_C@,$ECHO_C,;t t
11457 s,@ECHO_N@,$ECHO_N,;t t
11458 s,@ECHO_T@,$ECHO_T,;t t
11459 s,@LIBS@,$LIBS,;t t
11460 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11461 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11462 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11463 s,@CYGPATH_W@,$CYGPATH_W,;t t
11464 s,@PACKAGE@,$PACKAGE,;t t
11465 s,@VERSION@,$VERSION,;t t
11466 s,@ACLOCAL@,$ACLOCAL,;t t
11467 s,@AUTOCONF@,$AUTOCONF,;t t
11468 s,@AUTOMAKE@,$AUTOMAKE,;t t
11469 s,@AUTOHEADER@,$AUTOHEADER,;t t
11470 s,@MAKEINFO@,$MAKEINFO,;t t
11471 s,@AMTAR@,$AMTAR,;t t
11472 s,@install_sh@,$install_sh,;t t
11473 s,@STRIP@,$STRIP,;t t
11474 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11475 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11476 s,@AWK@,$AWK,;t t
11477 s,@SET_MAKE@,$SET_MAKE,;t t
11478 s,@am__leading_dot@,$am__leading_dot,;t t
11479 s,@CC@,$CC,;t t
11480 s,@CFLAGS@,$CFLAGS,;t t
11481 s,@LDFLAGS@,$LDFLAGS,;t t
11482 s,@CPPFLAGS@,$CPPFLAGS,;t t
11483 s,@ac_ct_CC@,$ac_ct_CC,;t t
11484 s,@EXEEXT@,$EXEEXT,;t t
11485 s,@OBJEXT@,$OBJEXT,;t t
11486 s,@DEPDIR@,$DEPDIR,;t t
11487 s,@am__include@,$am__include,;t t
11488 s,@am__quote@,$am__quote,;t t
11489 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11490 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11491 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11492 s,@CCDEPMODE@,$CCDEPMODE,;t t
11493 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11494 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11495 s,@RANLIB@,$RANLIB,;t t
11496 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11497 s,@CPP@,$CPP,;t t
11498 s,@EGREP@,$EGREP,;t t
11499 s,@LIBOBJS@,$LIBOBJS,;t t
11500 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11501 s,@USE_NLS@,$USE_NLS,;t t
11502 s,@MSGFMT@,$MSGFMT,;t t
11503 s,@GMSGFMT@,$GMSGFMT,;t t
11504 s,@XGETTEXT@,$XGETTEXT,;t t
11505 s,@MSGMERGE@,$MSGMERGE,;t t
11506 s,@build@,$build,;t t
11507 s,@build_cpu@,$build_cpu,;t t
11508 s,@build_vendor@,$build_vendor,;t t
11509 s,@build_os@,$build_os,;t t
11510 s,@host@,$host,;t t
11511 s,@host_cpu@,$host_cpu,;t t
11512 s,@host_vendor@,$host_vendor,;t t
11513 s,@host_os@,$host_os,;t t
11514 s,@ALLOCA@,$ALLOCA,;t t
11515 s,@GLIBC21@,$GLIBC21,;t t
11516 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
11517 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
11518 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
11519 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
11520 s,@LIBICONV@,$LIBICONV,;t t
11521 s,@LTLIBICONV@,$LTLIBICONV,;t t
11522 s,@INTLBISON@,$INTLBISON,;t t
11523 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
11524 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11525 s,@CATOBJEXT@,$CATOBJEXT,;t t
11526 s,@DATADIRNAME@,$DATADIRNAME,;t t
11527 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11528 s,@GENCAT@,$GENCAT,;t t
11529 s,@INTLOBJS@,$INTLOBJS,;t t
11530 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
11531 s,@INTLLIBS@,$INTLLIBS,;t t
11532 s,@LIBINTL@,$LIBINTL,;t t
11533 s,@LTLIBINTL@,$LTLIBINTL,;t t
11534 s,@POSUB@,$POSUB,;t t
11535 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11536 CEOF
11537
11538 _ACEOF
11539
11540   cat >>$CONFIG_STATUS <<\_ACEOF
11541   # Split the substitutions into bite-sized pieces for seds with
11542   # small command number limits, like on Digital OSF/1 and HP-UX.
11543   ac_max_sed_lines=48
11544   ac_sed_frag=1 # Number of current file.
11545   ac_beg=1 # First line for current file.
11546   ac_end=$ac_max_sed_lines # Line after last line for current file.
11547   ac_more_lines=:
11548   ac_sed_cmds=
11549   while $ac_more_lines; do
11550     if test $ac_beg -gt 1; then
11551       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11552     else
11553       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11554     fi
11555     if test ! -s $tmp/subs.frag; then
11556       ac_more_lines=false
11557     else
11558       # The purpose of the label and of the branching condition is to
11559       # speed up the sed processing (if there are no `@' at all, there
11560       # is no need to browse any of the substitutions).
11561       # These are the two extra sed commands mentioned above.
11562       (echo ':t
11563   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11564       if test -z "$ac_sed_cmds"; then
11565         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11566       else
11567         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11568       fi
11569       ac_sed_frag=`expr $ac_sed_frag + 1`
11570       ac_beg=$ac_end
11571       ac_end=`expr $ac_end + $ac_max_sed_lines`
11572     fi
11573   done
11574   if test -z "$ac_sed_cmds"; then
11575     ac_sed_cmds=cat
11576   fi
11577 fi # test -n "$CONFIG_FILES"
11578
11579 _ACEOF
11580 cat >>$CONFIG_STATUS <<\_ACEOF
11581 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11582   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11583   case $ac_file in
11584   - | *:- | *:-:* ) # input from stdin
11585         cat >$tmp/stdin
11586         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11587         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11588   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11589         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11590   * )   ac_file_in=$ac_file.in ;;
11591   esac
11592
11593   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11594   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11595 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11596          X"$ac_file" : 'X\(//\)[^/]' \| \
11597          X"$ac_file" : 'X\(//\)$' \| \
11598          X"$ac_file" : 'X\(/\)' \| \
11599          .     : '\(.\)' 2>/dev/null ||
11600 echo X"$ac_file" |
11601     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11602           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11603           /^X\(\/\/\)$/{ s//\1/; q; }
11604           /^X\(\/\).*/{ s//\1/; q; }
11605           s/.*/./; q'`
11606   { if $as_mkdir_p; then
11607     mkdir -p "$ac_dir"
11608   else
11609     as_dir="$ac_dir"
11610     as_dirs=
11611     while test ! -d "$as_dir"; do
11612       as_dirs="$as_dir $as_dirs"
11613       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11614 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11615          X"$as_dir" : 'X\(//\)[^/]' \| \
11616          X"$as_dir" : 'X\(//\)$' \| \
11617          X"$as_dir" : 'X\(/\)' \| \
11618          .     : '\(.\)' 2>/dev/null ||
11619 echo X"$as_dir" |
11620     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11621           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11622           /^X\(\/\/\)$/{ s//\1/; q; }
11623           /^X\(\/\).*/{ s//\1/; q; }
11624           s/.*/./; q'`
11625     done
11626     test ! -n "$as_dirs" || mkdir $as_dirs
11627   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11628 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11629    { (exit 1); exit 1; }; }; }
11630
11631   ac_builddir=.
11632
11633 if test "$ac_dir" != .; then
11634   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11635   # A "../" for each directory in $ac_dir_suffix.
11636   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11637 else
11638   ac_dir_suffix= ac_top_builddir=
11639 fi
11640
11641 case $srcdir in
11642   .)  # No --srcdir option.  We are building in place.
11643     ac_srcdir=.
11644     if test -z "$ac_top_builddir"; then
11645        ac_top_srcdir=.
11646     else
11647        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11648     fi ;;
11649   [\\/]* | ?:[\\/]* )  # Absolute path.
11650     ac_srcdir=$srcdir$ac_dir_suffix;
11651     ac_top_srcdir=$srcdir ;;
11652   *) # Relative path.
11653     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11654     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11655 esac
11656
11657 # Do not use `cd foo && pwd` to compute absolute paths, because
11658 # the directories may not exist.
11659 case `pwd` in
11660 .) ac_abs_builddir="$ac_dir";;
11661 *)
11662   case "$ac_dir" in
11663   .) ac_abs_builddir=`pwd`;;
11664   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11665   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11666   esac;;
11667 esac
11668 case $ac_abs_builddir in
11669 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11670 *)
11671   case ${ac_top_builddir}. in
11672   .) ac_abs_top_builddir=$ac_abs_builddir;;
11673   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11674   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11675   esac;;
11676 esac
11677 case $ac_abs_builddir in
11678 .) ac_abs_srcdir=$ac_srcdir;;
11679 *)
11680   case $ac_srcdir in
11681   .) ac_abs_srcdir=$ac_abs_builddir;;
11682   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11683   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11684   esac;;
11685 esac
11686 case $ac_abs_builddir in
11687 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11688 *)
11689   case $ac_top_srcdir in
11690   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11691   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11692   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11693   esac;;
11694 esac
11695
11696
11697   case $INSTALL in
11698   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11699   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11700   esac
11701
11702   # Let's still pretend it is `configure' which instantiates (i.e., don't
11703   # use $as_me), people would be surprised to read:
11704   #    /* config.h.  Generated by config.status.  */
11705   if test x"$ac_file" = x-; then
11706     configure_input=
11707   else
11708     configure_input="$ac_file.  "
11709   fi
11710   configure_input=$configure_input"Generated from `echo $ac_file_in |
11711                                      sed 's,.*/,,'` by configure."
11712
11713   # First look for the input files in the build tree, otherwise in the
11714   # src tree.
11715   ac_file_inputs=`IFS=:
11716     for f in $ac_file_in; do
11717       case $f in
11718       -) echo $tmp/stdin ;;
11719       [\\/$]*)
11720          # Absolute (can't be DOS-style, as IFS=:)
11721          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11722 echo "$as_me: error: cannot find input file: $f" >&2;}
11723    { (exit 1); exit 1; }; }
11724          echo "$f";;
11725       *) # Relative
11726          if test -f "$f"; then
11727            # Build tree
11728            echo "$f"
11729          elif test -f "$srcdir/$f"; then
11730            # Source tree
11731            echo "$srcdir/$f"
11732          else
11733            # /dev/null tree
11734            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11735 echo "$as_me: error: cannot find input file: $f" >&2;}
11736    { (exit 1); exit 1; }; }
11737          fi;;
11738       esac
11739     done` || { (exit 1); exit 1; }
11740
11741   if test x"$ac_file" != x-; then
11742     { echo "$as_me:$LINENO: creating $ac_file" >&5
11743 echo "$as_me: creating $ac_file" >&6;}
11744     rm -f "$ac_file"
11745   fi
11746 _ACEOF
11747 cat >>$CONFIG_STATUS <<_ACEOF
11748   sed "$ac_vpsub
11749 $extrasub
11750 _ACEOF
11751 cat >>$CONFIG_STATUS <<\_ACEOF
11752 :t
11753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11754 s,@configure_input@,$configure_input,;t t
11755 s,@srcdir@,$ac_srcdir,;t t
11756 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11757 s,@top_srcdir@,$ac_top_srcdir,;t t
11758 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11759 s,@builddir@,$ac_builddir,;t t
11760 s,@abs_builddir@,$ac_abs_builddir,;t t
11761 s,@top_builddir@,$ac_top_builddir,;t t
11762 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11763 s,@INSTALL@,$ac_INSTALL,;t t
11764 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11765   rm -f $tmp/stdin
11766   if test x"$ac_file" != x-; then
11767     mv $tmp/out $ac_file
11768   else
11769     cat $tmp/out
11770     rm -f $tmp/out
11771   fi
11772
11773 done
11774 _ACEOF
11775 cat >>$CONFIG_STATUS <<\_ACEOF
11776
11777 #
11778 # CONFIG_HEADER section.
11779 #
11780
11781 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11782 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11783 #
11784 # ac_d sets the value in "#define NAME VALUE" lines.
11785 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11786 ac_dB='[         ].*$,\1#\2'
11787 ac_dC=' '
11788 ac_dD=',;t'
11789 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11790 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11791 ac_uB='$,\1#\2define\3'
11792 ac_uC=' '
11793 ac_uD=',;t'
11794
11795 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11796   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11797   case $ac_file in
11798   - | *:- | *:-:* ) # input from stdin
11799         cat >$tmp/stdin
11800         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11801         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11802   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11803         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11804   * )   ac_file_in=$ac_file.in ;;
11805   esac
11806
11807   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11808 echo "$as_me: creating $ac_file" >&6;}
11809
11810   # First look for the input files in the build tree, otherwise in the
11811   # src tree.
11812   ac_file_inputs=`IFS=:
11813     for f in $ac_file_in; do
11814       case $f in
11815       -) echo $tmp/stdin ;;
11816       [\\/$]*)
11817          # Absolute (can't be DOS-style, as IFS=:)
11818          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11819 echo "$as_me: error: cannot find input file: $f" >&2;}
11820    { (exit 1); exit 1; }; }
11821          # Do quote $f, to prevent DOS paths from being IFS'd.
11822          echo "$f";;
11823       *) # Relative
11824          if test -f "$f"; then
11825            # Build tree
11826            echo "$f"
11827          elif test -f "$srcdir/$f"; then
11828            # Source tree
11829            echo "$srcdir/$f"
11830          else
11831            # /dev/null tree
11832            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11833 echo "$as_me: error: cannot find input file: $f" >&2;}
11834    { (exit 1); exit 1; }; }
11835          fi;;
11836       esac
11837     done` || { (exit 1); exit 1; }
11838   # Remove the trailing spaces.
11839   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11840
11841 _ACEOF
11842
11843 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11844 # `conftest.undefs', that substitutes the proper values into
11845 # config.h.in to produce config.h.  The first handles `#define'
11846 # templates, and the second `#undef' templates.
11847 # And first: Protect against being on the right side of a sed subst in
11848 # config.status.  Protect against being in an unquoted here document
11849 # in config.status.
11850 rm -f conftest.defines conftest.undefs
11851 # Using a here document instead of a string reduces the quoting nightmare.
11852 # Putting comments in sed scripts is not portable.
11853 #
11854 # `end' is used to avoid that the second main sed command (meant for
11855 # 0-ary CPP macros) applies to n-ary macro definitions.
11856 # See the Autoconf documentation for `clear'.
11857 cat >confdef2sed.sed <<\_ACEOF
11858 s/[\\&,]/\\&/g
11859 s,[\\$`],\\&,g
11860 t clear
11861 : clear
11862 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11863 t end
11864 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11865 : end
11866 _ACEOF
11867 # If some macros were called several times there might be several times
11868 # the same #defines, which is useless.  Nevertheless, we may not want to
11869 # sort them, since we want the *last* AC-DEFINE to be honored.
11870 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11871 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11872 rm -f confdef2sed.sed
11873
11874 # This sed command replaces #undef with comments.  This is necessary, for
11875 # example, in the case of _POSIX_SOURCE, which is predefined and required
11876 # on some systems where configure will not decide to define it.
11877 cat >>conftest.undefs <<\_ACEOF
11878 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11879 _ACEOF
11880
11881 # Break up conftest.defines because some shells have a limit on the size
11882 # of here documents, and old seds have small limits too (100 cmds).
11883 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11884 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11885 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11886 echo '  :' >>$CONFIG_STATUS
11887 rm -f conftest.tail
11888 while grep . conftest.defines >/dev/null
11889 do
11890   # Write a limited-size here document to $tmp/defines.sed.
11891   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11892   # Speed up: don't consider the non `#define' lines.
11893   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11894   # Work around the forget-to-reset-the-flag bug.
11895   echo 't clr' >>$CONFIG_STATUS
11896   echo ': clr' >>$CONFIG_STATUS
11897   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11898   echo 'CEOF
11899   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11900   rm -f $tmp/in
11901   mv $tmp/out $tmp/in
11902 ' >>$CONFIG_STATUS
11903   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11904   rm -f conftest.defines
11905   mv conftest.tail conftest.defines
11906 done
11907 rm -f conftest.defines
11908 echo '  fi # grep' >>$CONFIG_STATUS
11909 echo >>$CONFIG_STATUS
11910
11911 # Break up conftest.undefs because some shells have a limit on the size
11912 # of here documents, and old seds have small limits too (100 cmds).
11913 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11914 rm -f conftest.tail
11915 while grep . conftest.undefs >/dev/null
11916 do
11917   # Write a limited-size here document to $tmp/undefs.sed.
11918   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11919   # Speed up: don't consider the non `#undef'
11920   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11921   # Work around the forget-to-reset-the-flag bug.
11922   echo 't clr' >>$CONFIG_STATUS
11923   echo ': clr' >>$CONFIG_STATUS
11924   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11925   echo 'CEOF
11926   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11927   rm -f $tmp/in
11928   mv $tmp/out $tmp/in
11929 ' >>$CONFIG_STATUS
11930   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11931   rm -f conftest.undefs
11932   mv conftest.tail conftest.undefs
11933 done
11934 rm -f conftest.undefs
11935
11936 cat >>$CONFIG_STATUS <<\_ACEOF
11937   # Let's still pretend it is `configure' which instantiates (i.e., don't
11938   # use $as_me), people would be surprised to read:
11939   #    /* config.h.  Generated by config.status.  */
11940   if test x"$ac_file" = x-; then
11941     echo "/* Generated by configure.  */" >$tmp/config.h
11942   else
11943     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11944   fi
11945   cat $tmp/in >>$tmp/config.h
11946   rm -f $tmp/in
11947   if test x"$ac_file" != x-; then
11948     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11949       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11950 echo "$as_me: $ac_file is unchanged" >&6;}
11951     else
11952       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11953 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11954          X"$ac_file" : 'X\(//\)[^/]' \| \
11955          X"$ac_file" : 'X\(//\)$' \| \
11956          X"$ac_file" : 'X\(/\)' \| \
11957          .     : '\(.\)' 2>/dev/null ||
11958 echo X"$ac_file" |
11959     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11960           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11961           /^X\(\/\/\)$/{ s//\1/; q; }
11962           /^X\(\/\).*/{ s//\1/; q; }
11963           s/.*/./; q'`
11964       { if $as_mkdir_p; then
11965     mkdir -p "$ac_dir"
11966   else
11967     as_dir="$ac_dir"
11968     as_dirs=
11969     while test ! -d "$as_dir"; do
11970       as_dirs="$as_dir $as_dirs"
11971       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11972 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11973          X"$as_dir" : 'X\(//\)[^/]' \| \
11974          X"$as_dir" : 'X\(//\)$' \| \
11975          X"$as_dir" : 'X\(/\)' \| \
11976          .     : '\(.\)' 2>/dev/null ||
11977 echo X"$as_dir" |
11978     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11979           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11980           /^X\(\/\/\)$/{ s//\1/; q; }
11981           /^X\(\/\).*/{ s//\1/; q; }
11982           s/.*/./; q'`
11983     done
11984     test ! -n "$as_dirs" || mkdir $as_dirs
11985   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11986 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11987    { (exit 1); exit 1; }; }; }
11988
11989       rm -f $ac_file
11990       mv $tmp/config.h $ac_file
11991     fi
11992   else
11993     cat $tmp/config.h
11994     rm -f $tmp/config.h
11995   fi
11996 # Compute $ac_file's index in $config_headers.
11997 _am_stamp_count=1
11998 for _am_header in $config_headers :; do
11999   case $_am_header in
12000     $ac_file | $ac_file:* )
12001       break ;;
12002     * )
12003       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12004   esac
12005 done
12006 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12007 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12008          X$ac_file : 'X\(//\)[^/]' \| \
12009          X$ac_file : 'X\(//\)$' \| \
12010          X$ac_file : 'X\(/\)' \| \
12011          .     : '\(.\)' 2>/dev/null ||
12012 echo X$ac_file |
12013     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12014           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12015           /^X\(\/\/\)$/{ s//\1/; q; }
12016           /^X\(\/\).*/{ s//\1/; q; }
12017           s/.*/./; q'`/stamp-h$_am_stamp_count
12018 done
12019 _ACEOF
12020 cat >>$CONFIG_STATUS <<\_ACEOF
12021
12022 #
12023 # CONFIG_COMMANDS section.
12024 #
12025 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12026   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12027   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12028   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12029 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12030          X"$ac_dest" : 'X\(//\)[^/]' \| \
12031          X"$ac_dest" : 'X\(//\)$' \| \
12032          X"$ac_dest" : 'X\(/\)' \| \
12033          .     : '\(.\)' 2>/dev/null ||
12034 echo X"$ac_dest" |
12035     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12036           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12037           /^X\(\/\/\)$/{ s//\1/; q; }
12038           /^X\(\/\).*/{ s//\1/; q; }
12039           s/.*/./; q'`
12040   { if $as_mkdir_p; then
12041     mkdir -p "$ac_dir"
12042   else
12043     as_dir="$ac_dir"
12044     as_dirs=
12045     while test ! -d "$as_dir"; do
12046       as_dirs="$as_dir $as_dirs"
12047       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12049          X"$as_dir" : 'X\(//\)[^/]' \| \
12050          X"$as_dir" : 'X\(//\)$' \| \
12051          X"$as_dir" : 'X\(/\)' \| \
12052          .     : '\(.\)' 2>/dev/null ||
12053 echo X"$as_dir" |
12054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12055           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12056           /^X\(\/\/\)$/{ s//\1/; q; }
12057           /^X\(\/\).*/{ s//\1/; q; }
12058           s/.*/./; q'`
12059     done
12060     test ! -n "$as_dirs" || mkdir $as_dirs
12061   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12062 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12063    { (exit 1); exit 1; }; }; }
12064
12065   ac_builddir=.
12066
12067 if test "$ac_dir" != .; then
12068   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12069   # A "../" for each directory in $ac_dir_suffix.
12070   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12071 else
12072   ac_dir_suffix= ac_top_builddir=
12073 fi
12074
12075 case $srcdir in
12076   .)  # No --srcdir option.  We are building in place.
12077     ac_srcdir=.
12078     if test -z "$ac_top_builddir"; then
12079        ac_top_srcdir=.
12080     else
12081        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12082     fi ;;
12083   [\\/]* | ?:[\\/]* )  # Absolute path.
12084     ac_srcdir=$srcdir$ac_dir_suffix;
12085     ac_top_srcdir=$srcdir ;;
12086   *) # Relative path.
12087     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12088     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12089 esac
12090
12091 # Do not use `cd foo && pwd` to compute absolute paths, because
12092 # the directories may not exist.
12093 case `pwd` in
12094 .) ac_abs_builddir="$ac_dir";;
12095 *)
12096   case "$ac_dir" in
12097   .) ac_abs_builddir=`pwd`;;
12098   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12099   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12100   esac;;
12101 esac
12102 case $ac_abs_builddir in
12103 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12104 *)
12105   case ${ac_top_builddir}. in
12106   .) ac_abs_top_builddir=$ac_abs_builddir;;
12107   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12108   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12109   esac;;
12110 esac
12111 case $ac_abs_builddir in
12112 .) ac_abs_srcdir=$ac_srcdir;;
12113 *)
12114   case $ac_srcdir in
12115   .) ac_abs_srcdir=$ac_abs_builddir;;
12116   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12117   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12118   esac;;
12119 esac
12120 case $ac_abs_builddir in
12121 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12122 *)
12123   case $ac_top_srcdir in
12124   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12125   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12126   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12127   esac;;
12128 esac
12129
12130
12131   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12132 echo "$as_me: executing $ac_dest commands" >&6;}
12133   case $ac_dest in
12134     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12135   # Strip MF so we end up with the name of the file.
12136   mf=`echo "$mf" | sed -e 's/:.*$//'`
12137   # Check whether this is an Automake generated Makefile or not.
12138   # We used to match only the files named `Makefile.in', but
12139   # some people rename them; so instead we look at the file content.
12140   # Grep'ing the first line is not enough: some people post-process
12141   # each Makefile.in and add a new line on top of each file to say so.
12142   # So let's grep whole file.
12143   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12144     dirpart=`(dirname "$mf") 2>/dev/null ||
12145 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12146          X"$mf" : 'X\(//\)[^/]' \| \
12147          X"$mf" : 'X\(//\)$' \| \
12148          X"$mf" : 'X\(/\)' \| \
12149          .     : '\(.\)' 2>/dev/null ||
12150 echo X"$mf" |
12151     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12152           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12153           /^X\(\/\/\)$/{ s//\1/; q; }
12154           /^X\(\/\).*/{ s//\1/; q; }
12155           s/.*/./; q'`
12156   else
12157     continue
12158   fi
12159   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12160   # Extract the definition of DEP_FILES from the Makefile without
12161   # running `make'.
12162   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12163   test -z "$DEPDIR" && continue
12164   # When using ansi2knr, U may be empty or an underscore; expand it
12165   U=`sed -n -e '/^U = / s///p' < "$mf"`
12166   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12167   # We invoke sed twice because it is the simplest approach to
12168   # changing $(DEPDIR) to its actual value in the expansion.
12169   for file in `sed -n -e '
12170     /^DEP_FILES = .*\\\\$/ {
12171       s/^DEP_FILES = //
12172       :loop
12173         s/\\\\$//
12174         p
12175         n
12176         /\\\\$/ b loop
12177       p
12178     }
12179     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12180        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12181     # Make sure the directory exists.
12182     test -f "$dirpart/$file" && continue
12183     fdir=`(dirname "$file") 2>/dev/null ||
12184 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12185          X"$file" : 'X\(//\)[^/]' \| \
12186          X"$file" : 'X\(//\)$' \| \
12187          X"$file" : 'X\(/\)' \| \
12188          .     : '\(.\)' 2>/dev/null ||
12189 echo X"$file" |
12190     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12191           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12192           /^X\(\/\/\)$/{ s//\1/; q; }
12193           /^X\(\/\).*/{ s//\1/; q; }
12194           s/.*/./; q'`
12195     { if $as_mkdir_p; then
12196     mkdir -p $dirpart/$fdir
12197   else
12198     as_dir=$dirpart/$fdir
12199     as_dirs=
12200     while test ! -d "$as_dir"; do
12201       as_dirs="$as_dir $as_dirs"
12202       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12204          X"$as_dir" : 'X\(//\)[^/]' \| \
12205          X"$as_dir" : 'X\(//\)$' \| \
12206          X"$as_dir" : 'X\(/\)' \| \
12207          .     : '\(.\)' 2>/dev/null ||
12208 echo X"$as_dir" |
12209     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12210           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12211           /^X\(\/\/\)$/{ s//\1/; q; }
12212           /^X\(\/\).*/{ s//\1/; q; }
12213           s/.*/./; q'`
12214     done
12215     test ! -n "$as_dirs" || mkdir $as_dirs
12216   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12217 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12218    { (exit 1); exit 1; }; }; }
12219
12220     # echo "creating $dirpart/$file"
12221     echo '# dummy' > "$dirpart/$file"
12222   done
12223 done
12224  ;;
12225     default-1 )
12226     for ac_file in $CONFIG_FILES; do
12227       # Support "outfile[:infile[:infile...]]"
12228       case "$ac_file" in
12229         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12230       esac
12231       # PO directories have a Makefile.in generated from Makefile.in.in.
12232       case "$ac_file" in */Makefile.in)
12233         # Adjust a relative srcdir.
12234         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12235         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12236         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12237         # In autoconf-2.13 it is called $ac_given_srcdir.
12238         # In autoconf-2.50 it is called $srcdir.
12239         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12240         case "$ac_given_srcdir" in
12241           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12242           /*) top_srcdir="$ac_given_srcdir" ;;
12243           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12244         esac
12245         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12246           rm -f "$ac_dir/POTFILES"
12247           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12248           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12249           POMAKEFILEDEPS="POTFILES.in"
12250           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12251           # on $ac_dir but don't depend on user-specified configuration
12252           # parameters.
12253           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12254             # The LINGUAS file contains the set of available languages.
12255             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12256               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12257             fi
12258             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12259             # Hide the ALL_LINGUAS assigment from automake.
12260             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12261             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12262           else
12263             # The set of available languages was given in configure.in.
12264             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12265           fi
12266           # Compute POFILES
12267           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12268           # Compute UPDATEPOFILES
12269           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12270           # Compute DUMMYPOFILES
12271           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12272           # Compute GMOFILES
12273           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12274           case "$ac_given_srcdir" in
12275             .) srcdirpre= ;;
12276             *) srcdirpre='$(srcdir)/' ;;
12277           esac
12278           POFILES=
12279           UPDATEPOFILES=
12280           DUMMYPOFILES=
12281           GMOFILES=
12282           for lang in $ALL_LINGUAS; do
12283             POFILES="$POFILES $srcdirpre$lang.po"
12284             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12285             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12286             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12287           done
12288           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12289           # environment variable.
12290           INST_LINGUAS=
12291           if test -n "$ALL_LINGUAS"; then
12292             for presentlang in $ALL_LINGUAS; do
12293               useit=no
12294               if test "%UNSET%" != "$LINGUAS"; then
12295                 desiredlanguages="$LINGUAS"
12296               else
12297                 desiredlanguages="$ALL_LINGUAS"
12298               fi
12299               for desiredlang in $desiredlanguages; do
12300                 # Use the presentlang catalog if desiredlang is
12301                 #   a. equal to presentlang, or
12302                 #   b. a variant of presentlang (because in this case,
12303                 #      presentlang can be used as a fallback for messages
12304                 #      which are not translated in the desiredlang catalog).
12305                 case "$desiredlang" in
12306                   "$presentlang"*) useit=yes;;
12307                 esac
12308               done
12309               if test $useit = yes; then
12310                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12311               fi
12312             done
12313           fi
12314           CATALOGS=
12315           if test -n "$INST_LINGUAS"; then
12316             for lang in $INST_LINGUAS; do
12317               CATALOGS="$CATALOGS $lang.gmo"
12318             done
12319           fi
12320           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12321           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12322           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12323             if test -f "$f"; then
12324               case "$f" in
12325                 *.orig | *.bak | *~) ;;
12326                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12327               esac
12328             fi
12329           done
12330         fi
12331         ;;
12332       esac
12333     done ;;
12334   esac
12335 done
12336 _ACEOF
12337
12338 cat >>$CONFIG_STATUS <<\_ACEOF
12339
12340 { (exit 0); exit 0; }
12341 _ACEOF
12342 chmod +x $CONFIG_STATUS
12343 ac_clean_files=$ac_clean_files_save
12344
12345
12346 # configure is writing to config.log, and then calls config.status.
12347 # config.status does its own redirection, appending to config.log.
12348 # Unfortunately, on DOS this fails, as config.log is still kept open
12349 # by configure, so config.status won't be able to write to it; its
12350 # output is simply discarded.  So we exec the FD to /dev/null,
12351 # effectively closing config.log, so it can be properly (re)opened and
12352 # appended to by config.status.  When coming back to configure, we
12353 # need to make the FD available again.
12354 if test "$no_create" != yes; then
12355   ac_cs_success=:
12356   ac_config_status_args=
12357   test "$silent" = yes &&
12358     ac_config_status_args="$ac_config_status_args --quiet"
12359   exec 5>/dev/null
12360   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12361   exec 5>>config.log
12362   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12363   # would make configure fail if this is the last instruction.
12364   $ac_cs_success || { (exit 1); exit 1; }
12365 fi
12366
12367
12368 echo "
12369
12370         Thank you for using ap-utils.
12371
12372 "