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