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