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