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