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