2006-10-26 Paul Brook <paul@codesourcery.com>
[binutils.git] / gprof / configure
blobfee5d8a0001ec7443550daecb50419a002e5ed62
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="gprof.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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL PKGVERSION REPORT_BUGS_TO CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT WARN_CFLAGS NO_WERROR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --disable-nls do not use Native Language Support
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-werror treat compile warnings as errors
863 --enable-build-warnings Enable build-time compiler warnings
865 Optional Packages:
866 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
867 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
868 --with-gnu-ld assume the C compiler uses GNU ld default=no
869 --with-pic try to use only PIC/non-PIC objects default=use both
870 --with-pkgversion=PKG Add PKG to the version string
871 --with-bugurl=URL Direct users to URL to report a bug
872 --with-included-gettext use the GNU gettext library included here
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
881 CPP C preprocessor
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
886 _ACEOF
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 else
901 ac_dir_suffix= ac_top_builddir=
904 case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 fi ;;
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 esac
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
922 case `pwd` in
923 .) ac_abs_builddir="$ac_dir";;
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
957 esac
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 cd $ac_popdir
975 done
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980 cat <<\_ACEOF
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
985 _ACEOF
986 exit 0
988 exec 5>config.log
989 cat >&5 <<_ACEOF
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.59. Invocation command line was
996 $ $0 $@
998 _ACEOF
1000 cat <<_ASUNAME
1001 ## --------- ##
1002 ## Platform. ##
1003 ## --------- ##
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022 _ASUNAME
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 for as_dir in $PATH
1027 IFS=$as_save_IFS
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1030 done
1032 } >&5
1034 cat >&5 <<_ACEOF
1037 ## ----------- ##
1038 ## Core tests. ##
1039 ## ----------- ##
1041 _ACEOF
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_configure_args=
1050 ac_configure_args0=
1051 ac_configure_args1=
1052 ac_sep=
1053 ac_must_keep_next=false
1054 for ac_pass in 1 2
1056 for ac_arg
1058 case $ac_arg in
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 continue ;;
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065 esac
1066 case $ac_pass in
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1072 else
1073 case $ac_arg in
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080 esac
1082 -* ) ac_must_keep_next=true ;;
1083 esac
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1087 ac_sep=" "
1089 esac
1090 done
1091 done
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log. We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1103 echo
1105 cat <<\_ASBOX
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1109 _ASBOX
1110 echo
1111 # The following way of writing the cache mishandles newlines in values,
1113 (set) 2>&1 |
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115 *ac_space=\ *)
1116 sed -n \
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 sed -n \
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 esac;
1126 echo
1128 cat <<\_ASBOX
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1132 _ASBOX
1133 echo
1134 for ac_var in $ac_subst_vars
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1141 if test -n "$ac_subst_files"; then
1142 cat <<\_ASBOX
1143 ## ------------- ##
1144 ## Output files. ##
1145 ## ------------- ##
1146 _ASBOX
1147 echo
1148 for ac_var in $ac_subst_files
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1156 if test -s confdefs.h; then
1157 cat <<\_ASBOX
1158 ## ----------- ##
1159 ## confdefs.h. ##
1160 ## ----------- ##
1161 _ASBOX
1162 echo
1163 sed "/^$/d" confdefs.h | sort
1164 echo
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1169 } >&5
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172 exit $exit_status
1174 for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 done
1177 ac_signal=0
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 echo >confdefs.h
1184 # Predefined preprocessor variables.
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 _ACEOF
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 _ACEOF
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 _ACEOF
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 else
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1225 . "$ac_site_file"
1227 done
1229 if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1235 case $cache_file in
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1238 esac
1240 else
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1243 >$cache_file
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1256 set,)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,set)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,);;
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270 echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272 echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1274 fi;;
1275 esac
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1278 case $ac_new_val in
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1282 esac
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 esac
1288 done
1289 if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 ac_aux_dir=
1324 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1325 if test -f $ac_dir/install-sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 break
1329 elif test -f $ac_dir/install.sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 break
1333 elif test -f $ac_dir/shtool; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1336 break
1338 done
1339 if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1341 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1342 { (exit 1); exit 1; }; }
1344 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348 # Make sure we can run config.sub.
1349 $ac_config_sub sun4 >/dev/null 2>&1 ||
1350 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1351 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352 { (exit 1); exit 1; }; }
1354 echo "$as_me:$LINENO: checking build system type" >&5
1355 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356 if test "${ac_cv_build+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359 ac_cv_build_alias=$build_alias
1360 test -z "$ac_cv_build_alias" &&
1361 ac_cv_build_alias=`$ac_config_guess`
1362 test -z "$ac_cv_build_alias" &&
1363 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1364 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365 { (exit 1); exit 1; }; }
1366 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1368 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1369 { (exit 1); exit 1; }; }
1372 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1373 echo "${ECHO_T}$ac_cv_build" >&6
1374 build=$ac_cv_build
1375 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 echo "$as_me:$LINENO: checking host system type" >&5
1381 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1382 if test "${ac_cv_host+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 ac_cv_host_alias=$host_alias
1386 test -z "$ac_cv_host_alias" &&
1387 ac_cv_host_alias=$ac_cv_build_alias
1388 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1389 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1390 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1391 { (exit 1); exit 1; }; }
1394 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1395 echo "${ECHO_T}$ac_cv_host" >&6
1396 host=$ac_cv_host
1397 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402 echo "$as_me:$LINENO: checking target system type" >&5
1403 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1404 if test "${ac_cv_target+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 ac_cv_target_alias=$target_alias
1408 test "x$ac_cv_target_alias" = "x" &&
1409 ac_cv_target_alias=$ac_cv_host_alias
1410 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1412 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1417 echo "${ECHO_T}$ac_cv_target" >&6
1418 target=$ac_cv_target
1419 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424 # The aliases save the names the user supplied, while $host etc.
1425 # will get canonicalized.
1426 test -n "$target_alias" &&
1427 test "$program_prefix$program_suffix$program_transform_name" = \
1428 NONENONEs,x,x, &&
1429 program_prefix=${target_alias}-
1430 ac_ext=c
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435 if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1457 done
1458 done
1462 CC=$ac_cv_prog_CC
1463 if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1466 else
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1472 if test -z "$ac_cv_prog_CC"; then
1473 ac_ct_CC=$CC
1474 # Extract the first word of "gcc", so it can be a program name with args.
1475 set dummy gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1495 done
1496 done
1500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501 if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503 echo "${ECHO_T}$ac_ct_CC" >&6
1504 else
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1509 CC=$ac_ct_CC
1510 else
1511 CC="$ac_cv_prog_CC"
1514 if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1537 done
1538 done
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1552 if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1575 done
1576 done
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1589 CC=$ac_ct_CC
1590 else
1591 CC="$ac_cv_prog_CC"
1595 if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 ac_prog_rejected=no
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615 ac_prog_rejected=yes
1616 continue
1618 ac_cv_prog_CC="cc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1622 done
1623 done
1625 if test $ac_prog_rejected = yes; then
1626 # We found a bogon in the path, so make sure we never use it.
1627 set dummy $ac_cv_prog_CC
1628 shift
1629 if test $# != 0; then
1630 # We chose a different compiler from the bogus one.
1631 # However, it has the same basename, so the bogon will be chosen
1632 # first if we set CC to just the basename; use the full file name.
1633 shift
1634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639 CC=$ac_cv_prog_CC
1640 if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1643 else
1644 echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1649 if test -z "$CC"; then
1650 if test -n "$ac_tool_prefix"; then
1651 for ac_prog in cl
1653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1674 done
1675 done
1679 CC=$ac_cv_prog_CC
1680 if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682 echo "${ECHO_T}$CC" >&6
1683 else
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1688 test -n "$CC" && break
1689 done
1691 if test -z "$CC"; then
1692 ac_ct_CC=$CC
1693 for ac_prog in cl
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1716 done
1717 done
1721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722 if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724 echo "${ECHO_T}$ac_ct_CC" >&6
1725 else
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730 test -n "$ac_ct_CC" && break
1731 done
1733 CC=$ac_ct_CC
1739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748 ac_compiler=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1765 cat >conftest.$ac_ext <<_ACEOF
1766 /* confdefs.h. */
1767 _ACEOF
1768 cat confdefs.h >>conftest.$ac_ext
1769 cat >>conftest.$ac_ext <<_ACEOF
1770 /* end confdefs.h. */
1773 main ()
1777 return 0;
1779 _ACEOF
1780 ac_clean_files_save=$ac_clean_files
1781 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1782 # Try to create an executable without -o first, disregard a.out.
1783 # It will help us diagnose broken compilers, and finding out an intuition
1784 # of exeext.
1785 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1786 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1787 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # resort.
1797 # Be careful to initialize this variable, since it used to be cached.
1798 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 ac_cv_exeext=
1800 # b.out is created by i960 compilers.
1801 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1803 test -f "$ac_file" || continue
1804 case $ac_file in
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807 conftest.$ac_ext )
1808 # This is the source file.
1810 [ab].out )
1811 # We found the default executable, but exeext='' is most
1812 # certainly right.
1813 break;;
1814 *.* )
1815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 # FIXME: I believe we export ac_cv_exeext for Libtool,
1817 # but it would be cool to find out if it's true. Does anybody
1818 # maintain Libtool? --akim.
1819 export ac_cv_exeext
1820 break;;
1822 break;;
1823 esac
1824 done
1825 else
1826 echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&2;}
1833 { (exit 77); exit 77; }; }
1836 ac_exeext=$ac_cv_exeext
1837 echo "$as_me:$LINENO: result: $ac_file" >&5
1838 echo "${ECHO_T}$ac_file" >&6
1840 # Check the compiler produces executables we can run. If not, either
1841 # the compiler is broken, or we cross compile.
1842 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1843 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845 # If not cross compiling, check that we can run a simple program.
1846 if test "$cross_compiling" != yes; then
1847 if { ac_try='./$ac_file'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 (eval $ac_try) 2>&5
1850 ac_status=$?
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; }; then
1853 cross_compiling=no
1854 else
1855 if test "$cross_compiling" = maybe; then
1856 cross_compiling=yes
1857 else
1858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1859 If you meant to cross compile, use \`--host'.
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1868 echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1872 ac_clean_files=$ac_clean_files_save
1873 # Check the compiler produces executables we can run. If not, either
1874 # the compiler is broken, or we cross compile.
1875 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1877 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1878 echo "${ECHO_T}$cross_compiling" >&6
1880 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1883 (eval $ac_link) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1889 # work properly (i.e., refer to `conftest.exe'), while it won't with
1890 # `rm'.
1891 for ac_file in conftest.exe conftest conftest.*; do
1892 test -f "$ac_file" || continue
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 export ac_cv_exeext
1897 break;;
1898 * ) break;;
1899 esac
1900 done
1901 else
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1909 rm -f conftest$ac_cv_exeext
1910 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1911 echo "${ECHO_T}$ac_cv_exeext" >&6
1913 rm -f conftest.$ac_ext
1914 EXEEXT=$ac_cv_exeext
1915 ac_exeext=$EXEEXT
1916 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1918 if test "${ac_cv_objext+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 cat >conftest.$ac_ext <<_ACEOF
1922 /* confdefs.h. */
1923 _ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1929 main ()
1933 return 0;
1935 _ACEOF
1936 rm -f conftest.o conftest.obj
1937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; then
1942 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 case $ac_file in
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1946 break;;
1947 esac
1948 done
1949 else
1950 echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1953 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1960 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1962 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1963 echo "${ECHO_T}$ac_cv_objext" >&6
1964 OBJEXT=$ac_cv_objext
1965 ac_objext=$OBJEXT
1966 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1967 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 cat >conftest.$ac_ext <<_ACEOF
1972 /* confdefs.h. */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1979 main ()
1981 #ifndef __GNUC__
1982 choke me
1983 #endif
1986 return 0;
1988 _ACEOF
1989 rm -f conftest.$ac_objext
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>conftest.er1
1992 ac_status=$?
1993 grep -v '^ *+' conftest.er1 >conftest.err
1994 rm -f conftest.er1
1995 cat conftest.err >&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -z "$ac_c_werror_flag"
1999 || test ! -s conftest.err'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2011 ac_compiler_gnu=yes
2012 else
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2016 ac_compiler_gnu=no
2018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024 GCC=`test $ac_compiler_gnu = yes && echo yes`
2025 ac_test_CFLAGS=${CFLAGS+set}
2026 ac_save_CFLAGS=$CFLAGS
2027 CFLAGS="-g"
2028 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030 if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 cat >conftest.$ac_ext <<_ACEOF
2034 /* confdefs.h. */
2035 _ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2041 main ()
2045 return 0;
2047 _ACEOF
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2051 ac_status=$?
2052 grep -v '^ *+' conftest.er1 >conftest.err
2053 rm -f conftest.er1
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 ac_cv_prog_cc_g=yes
2071 else
2072 echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2075 ac_cv_prog_cc_g=no
2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2079 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081 if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083 elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2085 CFLAGS="-g -O2"
2086 else
2087 CFLAGS="-g"
2089 else
2090 if test "$GCC" = yes; then
2091 CFLAGS="-O2"
2092 else
2093 CFLAGS=
2096 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 ac_cv_prog_cc_stdc=no
2102 ac_save_CC=$CC
2103 cat >conftest.$ac_ext <<_ACEOF
2104 /* confdefs.h. */
2105 _ACEOF
2106 cat confdefs.h >>conftest.$ac_ext
2107 cat >>conftest.$ac_ext <<_ACEOF
2108 /* end confdefs.h. */
2109 #include <stdarg.h>
2110 #include <stdio.h>
2111 #include <sys/types.h>
2112 #include <sys/stat.h>
2113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114 struct buf { int x; };
2115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116 static char *e (p, i)
2117 char **p;
2118 int i;
2120 return p[i];
2122 static char *f (char * (*g) (char **, int), char **p, ...)
2124 char *s;
2125 va_list v;
2126 va_start (v,p);
2127 s = g (p, va_arg (v,int));
2128 va_end (v);
2129 return s;
2132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2141 int test (int i, double x);
2142 struct s1 {int (*f) (int a);};
2143 struct s2 {int (*f) (double a);};
2144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145 int argc;
2146 char **argv;
2148 main ()
2150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 return 0;
2154 _ACEOF
2155 # Don't try gcc -ansi; that turns off useful extensions and
2156 # breaks some systems' header files.
2157 # AIX -qlanglvl=ansi
2158 # Ultrix and OSF/1 -std1
2159 # HP-UX 10.20 and later -Ae
2160 # HP-UX older versions -Aa -D_HPUX_SOURCE
2161 # SVR4 -Xc -D__EXTENSIONS__
2162 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>conftest.er1
2168 ac_status=$?
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -z "$ac_c_werror_flag"
2175 || test ! -s conftest.err'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2188 break
2189 else
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2194 rm -f conftest.err conftest.$ac_objext
2195 done
2196 rm -f conftest.$ac_ext conftest.$ac_objext
2197 CC=$ac_save_CC
2201 case "x$ac_cv_prog_cc_stdc" in
2202 x|xno)
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204 echo "${ECHO_T}none needed" >&6 ;;
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 esac
2211 # Some people use a C++ compiler to compile C. Since we use `exit',
2212 # in C++ we need to declare it. In case someone uses the same compiler
2213 # for both compiling C and C++ we need to have the C++ compiler decide
2214 # the declaration of exit, since it's the most demanding environment.
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #ifndef __cplusplus
2217 choke me
2218 #endif
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 for ac_declaration in \
2243 '' \
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2248 'void exit (int);'
2250 cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h. */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2256 $ac_declaration
2257 #include <stdlib.h>
2259 main ()
2261 exit (42);
2263 return 0;
2265 _ACEOF
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2289 else
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2293 continue
2295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296 cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2302 $ac_declaration
2304 main ()
2306 exit (42);
2308 return 0;
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 break
2334 else
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 done
2341 rm -f conftest*
2342 if test -n "$ac_declaration"; then
2343 echo '#ifdef __cplusplus' >>confdefs.h
2344 echo $ac_declaration >>confdefs.h
2345 echo '#endif' >>confdefs.h
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2362 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2363 if test "${ac_cv_search_strerror+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 ac_func_search_save_LIBS=$LIBS
2367 ac_cv_search_strerror=no
2368 cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h. */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2375 /* Override any gcc2 internal prototype to avoid an error. */
2376 #ifdef __cplusplus
2377 extern "C"
2378 #endif
2379 /* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2381 char strerror ();
2383 main ()
2385 strerror ();
2387 return 0;
2389 _ACEOF
2390 rm -f conftest.$ac_objext conftest$ac_exeext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2392 (eval $ac_link) 2>conftest.er1
2393 ac_status=$?
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag"
2400 || test ! -s conftest.err'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest$ac_exeext'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_cv_search_strerror="none required"
2413 else
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2418 rm -f conftest.err conftest.$ac_objext \
2419 conftest$ac_exeext conftest.$ac_ext
2420 if test "$ac_cv_search_strerror" = no; then
2421 for ac_lib in cposix; do
2422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2430 /* Override any gcc2 internal prototype to avoid an error. */
2431 #ifdef __cplusplus
2432 extern "C"
2433 #endif
2434 /* We use char because int might match the return type of a gcc2
2435 builtin and then its argument prototype would still apply. */
2436 char strerror ();
2438 main ()
2440 strerror ();
2442 return 0;
2444 _ACEOF
2445 rm -f conftest.$ac_objext conftest$ac_exeext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447 (eval $ac_link) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest$ac_exeext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 ac_cv_search_strerror="-l$ac_lib"
2468 break
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2474 rm -f conftest.err conftest.$ac_objext \
2475 conftest$ac_exeext conftest.$ac_ext
2476 done
2478 LIBS=$ac_func_search_save_LIBS
2480 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2481 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2482 if test "$ac_cv_search_strerror" != no; then
2483 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2488 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2489 am__api_version="1.9"
2490 # Find a good install program. We prefer a C program (faster),
2491 # so one script is as good as another. But avoid the broken or
2492 # incompatible versions:
2493 # SysV /etc/install, /usr/sbin/install
2494 # SunOS /usr/etc/install
2495 # IRIX /sbin/install
2496 # AIX /bin/install
2497 # AmigaOS /C/install, which installs bootblocks on floppy discs
2498 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2499 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2500 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2501 # OS/2's system install, which has a completely different semantic
2502 # ./install, which can be erroneously created by make from ./install.sh.
2503 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2504 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2505 if test -z "$INSTALL"; then
2506 if test "${ac_cv_path_install+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 # Account for people who put trailing slashes in PATH elements.
2515 case $as_dir/ in
2516 ./ | .// | /cC/* | \
2517 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2518 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2519 /usr/ucb/* ) ;;
2521 # OSF1 and SCO ODT 3.0 have their own names for install.
2522 # Don't use installbsd from OSF since it installs stuff as root
2523 # by default.
2524 for ac_prog in ginstall scoinst install; do
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2527 if test $ac_prog = install &&
2528 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # AIX install. It has an incompatible calling convention.
2531 elif test $ac_prog = install &&
2532 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # program-specific install script used by HP pwplus--don't use.
2535 else
2536 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2537 break 3
2540 done
2541 done
2543 esac
2544 done
2548 if test "${ac_cv_path_install+set}" = set; then
2549 INSTALL=$ac_cv_path_install
2550 else
2551 # As a last resort, use the slow shell script. We don't cache a
2552 # path for INSTALL within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the path is relative.
2555 INSTALL=$ac_install_sh
2558 echo "$as_me:$LINENO: result: $INSTALL" >&5
2559 echo "${ECHO_T}$INSTALL" >&6
2561 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2562 # It thinks the first close brace ends the variable substitution.
2563 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2570 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2571 # Just in case
2572 sleep 1
2573 echo timestamp > conftest.file
2574 # Do `set' in a subshell so we don't clobber the current shell's
2575 # arguments. Must try -L first in case configure is actually a
2576 # symlink; some systems play weird games with the mod time of symlinks
2577 # (eg FreeBSD returns the mod time of the symlink's containing
2578 # directory).
2579 if (
2580 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2581 if test "$*" = "X"; then
2582 # -L didn't work.
2583 set X `ls -t $srcdir/configure conftest.file`
2585 rm -f conftest.file
2586 if test "$*" != "X $srcdir/configure conftest.file" \
2587 && test "$*" != "X conftest.file $srcdir/configure"; then
2589 # If neither matched, then we have a broken ls. This can happen
2590 # if, for instance, CONFIG_SHELL is bash and it inherits a
2591 # broken ls alias from the environment. This has actually
2592 # happened. Such a system could not be considered "sane".
2593 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2594 alias in your environment" >&5
2595 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" >&2;}
2597 { (exit 1); exit 1; }; }
2600 test "$2" = conftest.file
2602 then
2603 # Ok.
2605 else
2606 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2607 Check your system clock" >&5
2608 echo "$as_me: error: newly created file is older than distributed files!
2609 Check your system clock" >&2;}
2610 { (exit 1); exit 1; }; }
2612 echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2614 test "$program_prefix" != NONE &&
2615 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2616 # Use a double $ so make ignores it.
2617 test "$program_suffix" != NONE &&
2618 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2619 # Double any \ or $. echo might interpret backslashes.
2620 # By default was `s,x,x', remove it if useless.
2621 cat <<\_ACEOF >conftest.sed
2622 s/[\\$]/&&/g;s/;s,x,x,$//
2623 _ACEOF
2624 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2625 rm conftest.sed
2627 # expand $ac_aux_dir to an absolute path
2628 am_aux_dir=`cd $ac_aux_dir && pwd`
2630 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2631 # Use eval to expand $SHELL
2632 if eval "$MISSING --run true"; then
2633 am_missing_run="$MISSING --run "
2634 else
2635 am_missing_run=
2636 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2637 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2640 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2641 # We used to keeping the `.' as first argument, in order to
2642 # allow $(mkdir_p) to be used without argument. As in
2643 # $(mkdir_p) $(somedir)
2644 # where $(somedir) is conditionally defined. However this is wrong
2645 # for two reasons:
2646 # 1. if the package is installed by a user who cannot write `.'
2647 # make install will fail,
2648 # 2. the above comment should most certainly read
2649 # $(mkdir_p) $(DESTDIR)$(somedir)
2650 # so it does not work when $(somedir) is undefined and
2651 # $(DESTDIR) is not.
2652 # To support the latter case, we have to write
2653 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2654 # so the `.' trick is pointless.
2655 mkdir_p='mkdir -p --'
2656 else
2657 # On NextStep and OpenStep, the `mkdir' command does not
2658 # recognize any option. It will interpret all options as
2659 # directories to create, and then abort because `.' already
2660 # exists.
2661 for d in ./-p ./--version;
2663 test -d $d && rmdir $d
2664 done
2665 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2666 if test -f "$ac_aux_dir/mkinstalldirs"; then
2667 mkdir_p='$(mkinstalldirs)'
2668 else
2669 mkdir_p='$(install_sh) -d'
2673 for ac_prog in gawk mawk nawk awk
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679 if test "${ac_cv_prog_AWK+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 if test -n "$AWK"; then
2683 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_AWK="$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2696 done
2697 done
2701 AWK=$ac_cv_prog_AWK
2702 if test -n "$AWK"; then
2703 echo "$as_me:$LINENO: result: $AWK" >&5
2704 echo "${ECHO_T}$AWK" >&6
2705 else
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2710 test -n "$AWK" && break
2711 done
2713 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2715 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2716 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719 cat >conftest.make <<\_ACEOF
2720 all:
2721 @echo 'ac_maketemp="$(MAKE)"'
2722 _ACEOF
2723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2725 if test -n "$ac_maketemp"; then
2726 eval ac_cv_prog_make_${ac_make}_set=yes
2727 else
2728 eval ac_cv_prog_make_${ac_make}_set=no
2730 rm -f conftest.make
2732 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2733 echo "$as_me:$LINENO: result: yes" >&5
2734 echo "${ECHO_T}yes" >&6
2735 SET_MAKE=
2736 else
2737 echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6
2739 SET_MAKE="MAKE=${MAKE-make}"
2742 rm -rf .tst 2>/dev/null
2743 mkdir .tst 2>/dev/null
2744 if test -d .tst; then
2745 am__leading_dot=.
2746 else
2747 am__leading_dot=_
2749 rmdir .tst 2>/dev/null
2751 DEPDIR="${am__leading_dot}deps"
2753 ac_config_commands="$ac_config_commands depfiles"
2756 am_make=${MAKE-make}
2757 cat > confinc << 'END'
2758 am__doit:
2759 @echo done
2760 .PHONY: am__doit
2762 # If we don't find an include directive, just comment out the code.
2763 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2764 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2765 am__include="#"
2766 am__quote=
2767 _am_result=none
2768 # First try GNU make style include.
2769 echo "include confinc" > confmf
2770 # We grep out `Entering directory' and `Leaving directory'
2771 # messages which can occur if `w' ends up in MAKEFLAGS.
2772 # In particular we don't look at `^make:' because GNU make might
2773 # be invoked under some other name (usually "gmake"), in which
2774 # case it prints its new name instead of `make'.
2775 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2776 am__include=include
2777 am__quote=
2778 _am_result=GNU
2780 # Now try BSD make style include.
2781 if test "$am__include" = "#"; then
2782 echo '.include "confinc"' > confmf
2783 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2784 am__include=.include
2785 am__quote="\""
2786 _am_result=BSD
2791 echo "$as_me:$LINENO: result: $_am_result" >&5
2792 echo "${ECHO_T}$_am_result" >&6
2793 rm -f confinc confmf
2795 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2796 if test "${enable_dependency_tracking+set}" = set; then
2797 enableval="$enable_dependency_tracking"
2800 if test "x$enable_dependency_tracking" != xno; then
2801 am_depcomp="$ac_aux_dir/depcomp"
2802 AMDEPBACKSLASH='\'
2806 if test "x$enable_dependency_tracking" != xno; then
2807 AMDEP_TRUE=
2808 AMDEP_FALSE='#'
2809 else
2810 AMDEP_TRUE='#'
2811 AMDEP_FALSE=
2816 # test to see if srcdir already configured
2817 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2818 test -f $srcdir/config.status; then
2819 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2820 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2821 { (exit 1); exit 1; }; }
2824 # test whether we have cygpath
2825 if test -z "$CYGPATH_W"; then
2826 if (cygpath --version) >/dev/null 2>/dev/null; then
2827 CYGPATH_W='cygpath -w'
2828 else
2829 CYGPATH_W=echo
2834 # Define the identity of the package.
2835 PACKAGE=gprof
2836 VERSION=${BFD_VERSION}
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE "$PACKAGE"
2841 _ACEOF
2844 cat >>confdefs.h <<_ACEOF
2845 #define VERSION "$VERSION"
2846 _ACEOF
2848 # Some tools Automake needs.
2850 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2864 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2866 # Installed binaries are usually stripped using `strip' when the user
2867 # run `make install-strip'. However `strip' might not be the right
2868 # tool to use in cross-compilation environments, therefore Automake
2869 # will honor the `STRIP' environment variable to overrule this program.
2870 if test "$cross_compiling" != no; then
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}strip; ac_word=$2
2874 echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876 if test "${ac_cv_prog_STRIP+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if test -n "$STRIP"; then
2880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2898 STRIP=$ac_cv_prog_STRIP
2899 if test -n "$STRIP"; then
2900 echo "$as_me:$LINENO: result: $STRIP" >&5
2901 echo "${ECHO_T}$STRIP" >&6
2902 else
2903 echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2908 if test -z "$ac_cv_prog_STRIP"; then
2909 ac_ct_STRIP=$STRIP
2910 # Extract the first word of "strip", so it can be a program name with args.
2911 set dummy strip; ac_word=$2
2912 echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 if test -n "$ac_ct_STRIP"; then
2918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_STRIP="strip"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2931 done
2932 done
2934 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2938 if test -n "$ac_ct_STRIP"; then
2939 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2940 echo "${ECHO_T}$ac_ct_STRIP" >&6
2941 else
2942 echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2946 STRIP=$ac_ct_STRIP
2947 else
2948 STRIP="$ac_cv_prog_STRIP"
2952 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2954 # We need awk for the "check" target. The system "awk" is bad on
2955 # some platforms.
2956 # Always define AMTAR for backward compatibility.
2958 AMTAR=${AMTAR-"${am_missing_run}tar"}
2960 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2965 depcc="$CC" am_compiler_list=
2967 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2968 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2969 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2973 # We make a subdir and do the tests there. Otherwise we can end up
2974 # making bogus files that we don't know about and never remove. For
2975 # instance it was reported that on HP-UX the gcc test will end up
2976 # making a dummy file named `D' -- because `-MD' means `put the output
2977 # in D'.
2978 mkdir conftest.dir
2979 # Copy depcomp to subdir because otherwise we won't find it if we're
2980 # using a relative directory.
2981 cp "$am_depcomp" conftest.dir
2982 cd conftest.dir
2983 # We will build objects and dependencies in a subdirectory because
2984 # it helps to detect inapplicable dependency modes. For instance
2985 # both Tru64's cc and ICC support -MD to output dependencies as a
2986 # side effect of compilation, but ICC will put the dependencies in
2987 # the current directory while Tru64 will put them in the object
2988 # directory.
2989 mkdir sub
2991 am_cv_CC_dependencies_compiler_type=none
2992 if test "$am_compiler_list" = ""; then
2993 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2995 for depmode in $am_compiler_list; do
2996 # Setup a source with many dependencies, because some compilers
2997 # like to wrap large dependency lists on column 80 (with \), and
2998 # we should not choose a depcomp mode which is confused by this.
3000 # We need to recreate these files for each test, as the compiler may
3001 # overwrite some of them when testing with obscure command lines.
3002 # This happens at least with the AIX C compiler.
3003 : > sub/conftest.c
3004 for i in 1 2 3 4 5 6; do
3005 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3006 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3007 # Solaris 8's {/usr,}/bin/sh.
3008 touch sub/conftst$i.h
3009 done
3010 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3012 case $depmode in
3013 nosideeffect)
3014 # after this tag, mechanisms are not by side-effect, so they'll
3015 # only be used when explicitly requested
3016 if test "x$enable_dependency_tracking" = xyes; then
3017 continue
3018 else
3019 break
3022 none) break ;;
3023 esac
3024 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3025 # mode. It turns out that the SunPro C++ compiler does not properly
3026 # handle `-M -o', and we need to detect this.
3027 if depmode=$depmode \
3028 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3029 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3030 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3031 >/dev/null 2>conftest.err &&
3032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3033 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3035 # icc doesn't choke on unknown options, it will just issue warnings
3036 # or remarks (even with -Werror). So we grep stderr for any message
3037 # that says an option was ignored or not supported.
3038 # When given -MP, icc 7.0 and 7.1 complain thusly:
3039 # icc: Command line warning: ignoring option '-M'; no argument required
3040 # The diagnosis changed in icc 8.0:
3041 # icc: Command line remark: option '-MP' not supported
3042 if (grep 'ignoring option' conftest.err ||
3043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3044 am_cv_CC_dependencies_compiler_type=$depmode
3045 break
3048 done
3050 cd ..
3051 rm -rf conftest.dir
3052 else
3053 am_cv_CC_dependencies_compiler_type=none
3057 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3058 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3059 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3064 test "x$enable_dependency_tracking" != xno \
3065 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3066 am__fastdepCC_TRUE=
3067 am__fastdepCC_FALSE='#'
3068 else
3069 am__fastdepCC_TRUE='#'
3070 am__fastdepCC_FALSE=
3076 # Check whether --enable-shared or --disable-shared was given.
3077 if test "${enable_shared+set}" = set; then
3078 enableval="$enable_shared"
3079 p=${PACKAGE-default}
3080 case $enableval in
3081 yes) enable_shared=yes ;;
3082 no) enable_shared=no ;;
3084 enable_shared=no
3085 # Look at the argument we got. We use all the common list separators.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3087 for pkg in $enableval; do
3088 if test "X$pkg" = "X$p"; then
3089 enable_shared=yes
3091 done
3092 IFS="$ac_save_ifs"
3094 esac
3095 else
3096 enable_shared=yes
3098 # Check whether --enable-static or --disable-static was given.
3099 if test "${enable_static+set}" = set; then
3100 enableval="$enable_static"
3101 p=${PACKAGE-default}
3102 case $enableval in
3103 yes) enable_static=yes ;;
3104 no) enable_static=no ;;
3106 enable_static=no
3107 # Look at the argument we got. We use all the common list separators.
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3109 for pkg in $enableval; do
3110 if test "X$pkg" = "X$p"; then
3111 enable_static=yes
3113 done
3114 IFS="$ac_save_ifs"
3116 esac
3117 else
3118 enable_static=yes
3120 # Check whether --enable-fast-install or --disable-fast-install was given.
3121 if test "${enable_fast_install+set}" = set; then
3122 enableval="$enable_fast_install"
3123 p=${PACKAGE-default}
3124 case $enableval in
3125 yes) enable_fast_install=yes ;;
3126 no) enable_fast_install=no ;;
3128 enable_fast_install=no
3129 # Look at the argument we got. We use all the common list separators.
3130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3131 for pkg in $enableval; do
3132 if test "X$pkg" = "X$p"; then
3133 enable_fast_install=yes
3135 done
3136 IFS="$ac_save_ifs"
3138 esac
3139 else
3140 enable_fast_install=yes
3143 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3144 if test "${with_gnu_ld+set}" = set; then
3145 withval="$with_gnu_ld"
3146 test "$withval" = no || with_gnu_ld=yes
3147 else
3148 with_gnu_ld=no
3150 ac_prog=ld
3151 if test "$GCC" = yes; then
3152 # Check if gcc -print-prog-name=ld gives a path.
3153 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3154 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3155 case $host in
3156 *-*-mingw*)
3157 # gcc leaves a trailing carriage return which upsets mingw
3158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3161 esac
3162 case $ac_prog in
3163 # Accept absolute paths.
3164 [\\/]* | [A-Za-z]:[\\/]*)
3165 re_direlt='/[^/][^/]*/\.\./'
3166 # Canonicalize the path of ld
3167 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3169 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3170 done
3171 test -z "$LD" && LD="$ac_prog"
3174 # If it fails, then pretend we aren't using GCC.
3175 ac_prog=ld
3178 # If it is relative, then search for the first ld in PATH.
3179 with_gnu_ld=unknown
3181 esac
3182 elif test "$with_gnu_ld" = yes; then
3183 echo "$as_me:$LINENO: checking for GNU ld" >&5
3184 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3185 else
3186 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3187 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3189 if test "${lt_cv_path_LD+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192 if test -z "$LD"; then
3193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3194 for ac_dir in $PATH; do
3195 test -z "$ac_dir" && ac_dir=.
3196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3197 lt_cv_path_LD="$ac_dir/$ac_prog"
3198 # Check to see if the program is GNU ld. I'd rather use --version,
3199 # but apparently some GNU ld's only accept -v.
3200 # Break only if it was the GNU/non-GNU ld that we prefer.
3201 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3202 test "$with_gnu_ld" != no && break
3203 else
3204 test "$with_gnu_ld" != yes && break
3207 done
3208 IFS="$ac_save_ifs"
3209 else
3210 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3214 LD="$lt_cv_path_LD"
3215 if test -n "$LD"; then
3216 echo "$as_me:$LINENO: result: $LD" >&5
3217 echo "${ECHO_T}$LD" >&6
3218 else
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3222 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3223 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3224 { (exit 1); exit 1; }; }
3225 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3226 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3227 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3231 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3232 lt_cv_prog_gnu_ld=yes
3233 else
3234 lt_cv_prog_gnu_ld=no
3237 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3238 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3239 with_gnu_ld=$lt_cv_prog_gnu_ld
3242 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3243 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3244 if test "${lt_cv_ld_reload_flag+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 lt_cv_ld_reload_flag='-r'
3249 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3250 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3251 reload_flag=$lt_cv_ld_reload_flag
3252 test -n "$reload_flag" && reload_flag=" $reload_flag"
3254 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3255 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3256 if test "${lt_cv_path_NM+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 if test -n "$NM"; then
3260 # Let the user override the test.
3261 lt_cv_path_NM="$NM"
3262 else
3263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3264 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3265 test -z "$ac_dir" && ac_dir=.
3266 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3267 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3268 # Check to see if the nm accepts a BSD-compat flag.
3269 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3270 # nm: unknown option "B" ignored
3271 # Tru64's nm complains that /dev/null is an invalid object file
3272 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3273 lt_cv_path_NM="$tmp_nm -B"
3274 break
3275 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3276 lt_cv_path_NM="$tmp_nm -p"
3277 break
3278 else
3279 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3280 continue # so that we can try to find one that supports BSD flags
3283 done
3284 IFS="$ac_save_ifs"
3285 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3289 NM="$lt_cv_path_NM"
3290 echo "$as_me:$LINENO: result: $NM" >&5
3291 echo "${ECHO_T}$NM" >&6
3293 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3294 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3295 LN_S=$as_ln_s
3296 if test "$LN_S" = "ln -s"; then
3297 echo "$as_me:$LINENO: result: yes" >&5
3298 echo "${ECHO_T}yes" >&6
3299 else
3300 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3301 echo "${ECHO_T}no, using $LN_S" >&6
3304 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3305 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3306 if test "${lt_cv_deplibs_check_method+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309 lt_cv_file_magic_cmd='$MAGIC_CMD'
3310 lt_cv_file_magic_test_file=
3311 lt_cv_deplibs_check_method='unknown'
3312 # Need to set the preceding variable on all platforms that support
3313 # interlibrary dependencies.
3314 # 'none' -- dependencies not supported.
3315 # `unknown' -- same as none, but documents that we really don't know.
3316 # 'pass_all' -- all dependencies passed with no checks.
3317 # 'test_compile' -- check by making test program.
3318 # 'file_magic [regex]' -- check by looking for files in library path
3319 # which responds to the $file_magic_cmd with a given egrep regex.
3320 # If you have `file' or equivalent on your system and you're not sure
3321 # whether `pass_all' will *always* work, you probably want this one.
3323 case $host_os in
3324 aix*)
3325 lt_cv_deplibs_check_method=pass_all
3328 beos*)
3329 lt_cv_deplibs_check_method=pass_all
3332 bsdi4*)
3333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3334 lt_cv_file_magic_cmd='/usr/bin/file -L'
3335 lt_cv_file_magic_test_file=/shlib/libc.so
3338 cygwin* | mingw* |pw32*)
3339 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3340 lt_cv_file_magic_cmd='$OBJDUMP -f'
3343 darwin* | rhapsody*)
3344 # this will be overwritten by pass_all, but leave it in just in case
3345 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3346 lt_cv_file_magic_cmd='/usr/bin/file -L'
3347 case "$host_os" in
3348 rhapsody* | darwin1.012)
3349 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3351 *) # Darwin 1.3 on
3352 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3354 esac
3355 lt_cv_deplibs_check_method=pass_all
3358 freebsd* | kfreebsd*-gnu)
3359 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3360 case $host_cpu in
3361 i*86 )
3362 # Not sure whether the presence of OpenBSD here was a mistake.
3363 # Let's accept both of them until this is cleared up.
3364 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3365 lt_cv_file_magic_cmd=/usr/bin/file
3366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3368 esac
3369 else
3370 lt_cv_deplibs_check_method=pass_all
3374 gnu*)
3375 lt_cv_deplibs_check_method=pass_all
3378 hpux10.20*|hpux11*)
3379 case $host_cpu in
3380 hppa*)
3381 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3382 lt_cv_file_magic_cmd=/usr/bin/file
3383 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3385 ia64*)
3386 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3387 lt_cv_file_magic_cmd=/usr/bin/file
3388 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3390 esac
3393 irix5* | irix6*)
3394 case $host_os in
3395 irix5*)
3396 # this will be overridden with pass_all, but let us keep it just in case
3397 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3400 case $LD in
3401 *-32|*"-32 ") libmagic=32-bit;;
3402 *-n32|*"-n32 ") libmagic=N32;;
3403 *-64|*"-64 ") libmagic=64-bit;;
3404 *) libmagic=never-match;;
3405 esac
3406 # this will be overridden with pass_all, but let us keep it just in case
3407 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3409 esac
3410 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3411 lt_cv_deplibs_check_method=pass_all
3414 # This must be Linux ELF.
3415 linux-gnu*)
3416 lt_cv_deplibs_check_method=pass_all
3419 netbsd* | knetbsd*-gnu)
3420 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3421 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3422 else
3423 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3427 newsos6)
3428 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3429 lt_cv_file_magic_cmd=/usr/bin/file
3430 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3433 osf3* | osf4* | osf5*)
3434 # this will be overridden with pass_all, but let us keep it just in case
3435 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3436 lt_cv_file_magic_test_file=/shlib/libc.so
3437 lt_cv_deplibs_check_method=pass_all
3440 sco3.2v5*)
3441 lt_cv_deplibs_check_method=pass_all
3444 solaris*)
3445 lt_cv_deplibs_check_method=pass_all
3446 lt_cv_file_magic_test_file=/lib/libc.so
3449 sysv5uw[78]* | sysv4*uw2*)
3450 lt_cv_deplibs_check_method=pass_all
3453 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3454 case $host_vendor in
3455 ncr)
3456 lt_cv_deplibs_check_method=pass_all
3458 motorola)
3459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3462 esac
3464 esac
3467 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3468 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3469 file_magic_cmd=$lt_cv_file_magic_cmd
3470 deplibs_check_method=$lt_cv_deplibs_check_method
3475 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3477 # find the maximum length of command line arguments
3478 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3479 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3480 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3484 teststring="ABCD"
3486 case $build_os in
3487 msdosdjgpp*)
3488 # On DJGPP, this test can blow up pretty badly due to problems in libc
3489 # (any single argument exceeding 2000 bytes causes a buffer overrun
3490 # during glob expansion). Even if it were fixed, the result of this
3491 # check would be larger than it should be.
3492 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3495 cygwin* | mingw*)
3496 # On Win9x/ME, this test blows up -- it succeeds, but takes
3497 # about 5 minutes as the teststring grows exponentially.
3498 # Worse, since 9x/ME are not pre-emptively multitasking,
3499 # you end up with a "frozen" computer, even though with patience
3500 # the test eventually succeeds (with a max line length of 256k).
3501 # Instead, let's just punt: use the minimum linelength reported by
3502 # all of the supported platforms: 8192 (on NT/2K/XP).
3503 lt_cv_sys_max_cmd_len=8192;
3506 amigaos*)
3507 # On AmigaOS with pdksh, this test takes hours, literally.
3508 # So we just punt and use a minimum line length of 8192.
3509 lt_cv_sys_max_cmd_len=8192;
3512 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3513 # This has been around since 386BSD, at least. Likely further.
3514 if test -x /sbin/sysctl; then
3515 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3516 elif test -x /usr/sbin/sysctl; then
3517 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3518 else
3519 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3521 # And add a safety zone
3522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3525 esac
3529 if test -n "$lt_cv_sys_max_cmd_len" ; then
3530 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3531 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3532 else
3533 echo "$as_me:$LINENO: result: none" >&5
3534 echo "${ECHO_T}none" >&6
3538 # Only perform the check for file, if the check method requires it
3539 case $deplibs_check_method in
3540 file_magic*)
3541 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3542 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3543 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3544 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 case $MAGIC_CMD in
3549 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3551 ?:/*)
3552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3555 ac_save_MAGIC_CMD="$MAGIC_CMD"
3556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3557 ac_dummy="/usr/bin:$PATH"
3558 for ac_dir in $ac_dummy; do
3559 test -z "$ac_dir" && ac_dir=.
3560 if test -f $ac_dir/${ac_tool_prefix}file; then
3561 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3562 if test -n "$file_magic_test_file"; then
3563 case $deplibs_check_method in
3564 "file_magic "*)
3565 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3568 egrep "$file_magic_regex" > /dev/null; then
3570 else
3571 cat <<EOF 1>&2
3573 *** Warning: the command libtool uses to detect shared libraries,
3574 *** $file_magic_cmd, produces output that libtool cannot recognize.
3575 *** The result is that libtool may fail to recognize shared libraries
3576 *** as such. This will affect the creation of libtool libraries that
3577 *** depend on shared libraries, but programs linked with such libtool
3578 *** libraries will work regardless of this problem. Nevertheless, you
3579 *** may want to report the problem to your system manager and/or to
3580 *** bug-libtool@gnu.org
3583 fi ;;
3584 esac
3586 break
3588 done
3589 IFS="$ac_save_ifs"
3590 MAGIC_CMD="$ac_save_MAGIC_CMD"
3592 esac
3595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3596 if test -n "$MAGIC_CMD"; then
3597 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3598 echo "${ECHO_T}$MAGIC_CMD" >&6
3599 else
3600 echo "$as_me:$LINENO: result: no" >&5
3601 echo "${ECHO_T}no" >&6
3604 if test -z "$lt_cv_path_MAGIC_CMD"; then
3605 if test -n "$ac_tool_prefix"; then
3606 echo "$as_me:$LINENO: checking for file" >&5
3607 echo $ECHO_N "checking for file... $ECHO_C" >&6
3608 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 case $MAGIC_CMD in
3613 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3615 ?:/*)
3616 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3619 ac_save_MAGIC_CMD="$MAGIC_CMD"
3620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3621 ac_dummy="/usr/bin:$PATH"
3622 for ac_dir in $ac_dummy; do
3623 test -z "$ac_dir" && ac_dir=.
3624 if test -f $ac_dir/file; then
3625 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3626 if test -n "$file_magic_test_file"; then
3627 case $deplibs_check_method in
3628 "file_magic "*)
3629 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3632 egrep "$file_magic_regex" > /dev/null; then
3634 else
3635 cat <<EOF 1>&2
3637 *** Warning: the command libtool uses to detect shared libraries,
3638 *** $file_magic_cmd, produces output that libtool cannot recognize.
3639 *** The result is that libtool may fail to recognize shared libraries
3640 *** as such. This will affect the creation of libtool libraries that
3641 *** depend on shared libraries, but programs linked with such libtool
3642 *** libraries will work regardless of this problem. Nevertheless, you
3643 *** may want to report the problem to your system manager and/or to
3644 *** bug-libtool@gnu.org
3647 fi ;;
3648 esac
3650 break
3652 done
3653 IFS="$ac_save_ifs"
3654 MAGIC_CMD="$ac_save_MAGIC_CMD"
3656 esac
3659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3660 if test -n "$MAGIC_CMD"; then
3661 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3662 echo "${ECHO_T}$MAGIC_CMD" >&6
3663 else
3664 echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3668 else
3669 MAGIC_CMD=:
3675 esac
3677 if test -n "$ac_tool_prefix"; then
3678 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3679 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3680 echo "$as_me:$LINENO: checking for $ac_word" >&5
3681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682 if test "${ac_cv_prog_RANLIB+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 if test -n "$RANLIB"; then
3686 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3699 done
3700 done
3704 RANLIB=$ac_cv_prog_RANLIB
3705 if test -n "$RANLIB"; then
3706 echo "$as_me:$LINENO: result: $RANLIB" >&5
3707 echo "${ECHO_T}$RANLIB" >&6
3708 else
3709 echo "$as_me:$LINENO: result: no" >&5
3710 echo "${ECHO_T}no" >&6
3714 if test -z "$ac_cv_prog_RANLIB"; then
3715 ac_ct_RANLIB=$RANLIB
3716 # Extract the first word of "ranlib", so it can be a program name with args.
3717 set dummy ranlib; ac_word=$2
3718 echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3720 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 if test -n "$ac_ct_RANLIB"; then
3724 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_ac_ct_RANLIB="ranlib"
3734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3737 done
3738 done
3740 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3743 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3744 if test -n "$ac_ct_RANLIB"; then
3745 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3746 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3747 else
3748 echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3752 RANLIB=$ac_ct_RANLIB
3753 else
3754 RANLIB="$ac_cv_prog_RANLIB"
3757 if test -n "$ac_tool_prefix"; then
3758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3759 set dummy ${ac_tool_prefix}strip; ac_word=$2
3760 echo "$as_me:$LINENO: checking for $ac_word" >&5
3761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3762 if test "${ac_cv_prog_STRIP+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 if test -n "$STRIP"; then
3766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3767 else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 break 2
3779 done
3780 done
3784 STRIP=$ac_cv_prog_STRIP
3785 if test -n "$STRIP"; then
3786 echo "$as_me:$LINENO: result: $STRIP" >&5
3787 echo "${ECHO_T}$STRIP" >&6
3788 else
3789 echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6
3794 if test -z "$ac_cv_prog_STRIP"; then
3795 ac_ct_STRIP=$STRIP
3796 # Extract the first word of "strip", so it can be a program name with args.
3797 set dummy strip; ac_word=$2
3798 echo "$as_me:$LINENO: checking for $ac_word" >&5
3799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3800 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803 if test -n "$ac_ct_STRIP"; then
3804 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_prog_ac_ct_STRIP="strip"
3814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3817 done
3818 done
3820 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3823 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3824 if test -n "$ac_ct_STRIP"; then
3825 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3826 echo "${ECHO_T}$ac_ct_STRIP" >&6
3827 else
3828 echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3832 STRIP=$ac_ct_STRIP
3833 else
3834 STRIP="$ac_cv_prog_STRIP"
3838 # Check for any special flags to pass to ltconfig.
3839 libtool_flags="--cache-file=$cache_file"
3840 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3841 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3842 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3843 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3844 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3847 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3848 if test "${enable_libtool_lock+set}" = set; then
3849 enableval="$enable_libtool_lock"
3852 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3853 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3856 # Check whether --with-pic or --without-pic was given.
3857 if test "${with_pic+set}" = set; then
3858 withval="$with_pic"
3859 pic_mode="$withval"
3860 else
3861 pic_mode=default
3863 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3864 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3866 # Some flags need to be propagated to the compiler or linker for good
3867 # libtool support.
3868 case $host in
3869 *-*-irix6*)
3870 # Find out which ABI we are using.
3871 echo '#line 3871 "configure"' > conftest.$ac_ext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; then
3877 if test "$lt_cv_prog_gnu_ld" = yes; then
3878 case `/usr/bin/file conftest.$ac_objext` in
3879 *32-bit*)
3880 LD="${LD-ld} -melf32bsmip"
3882 *N32*)
3883 LD="${LD-ld} -melf32bmipn32"
3885 *64-bit*)
3886 LD="${LD-ld} -melf64bmip"
3888 esac
3889 else
3890 case `/usr/bin/file conftest.$ac_objext` in
3891 *32-bit*)
3892 LD="${LD-ld} -32"
3894 *N32*)
3895 LD="${LD-ld} -n32"
3897 *64-bit*)
3898 LD="${LD-ld} -64"
3900 esac
3903 rm -rf conftest*
3906 ia64-*-hpux*)
3907 # Find out which ABI we are using.
3908 echo 'int i;' > conftest.$ac_ext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; then
3914 case "`/usr/bin/file conftest.o`" in
3915 *ELF-32*)
3916 HPUX_IA64_MODE="32"
3918 *ELF-64*)
3919 HPUX_IA64_MODE="64"
3921 esac
3923 rm -rf conftest*
3926 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3927 # Find out which ABI we are using.
3928 echo 'int i;' > conftest.$ac_ext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930 (eval $ac_compile) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; then
3934 case "`/usr/bin/file conftest.o`" in
3935 *32-bit*)
3936 case $host in
3937 x86_64-*linux*)
3938 LD="${LD-ld} -m elf_i386"
3940 ppc64-*linux*|powerpc64-*linux*)
3941 LD="${LD-ld} -m elf32ppclinux"
3943 s390x-*linux*)
3944 LD="${LD-ld} -m elf_s390"
3946 sparc64-*linux*)
3947 LD="${LD-ld} -m elf32_sparc"
3949 esac
3951 *64-bit*)
3952 case $host in
3953 x86_64-*linux*)
3954 LD="${LD-ld} -m elf_x86_64"
3956 ppc*-*linux*|powerpc*-*linux*)
3957 LD="${LD-ld} -m elf64ppc"
3959 s390*-*linux*)
3960 LD="${LD-ld} -m elf64_s390"
3962 sparc*-*linux*)
3963 LD="${LD-ld} -m elf64_sparc"
3965 esac
3967 esac
3969 rm -rf conftest*
3972 *-*-sco3.2v5*)
3973 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3974 SAVE_CFLAGS="$CFLAGS"
3975 CFLAGS="$CFLAGS -belf"
3976 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3977 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3978 if test "${lt_cv_cc_needs_belf+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3983 ac_ext=c
3984 ac_cpp='$CPP $CPPFLAGS'
3985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h. */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3997 main ()
4001 return 0;
4003 _ACEOF
4004 rm -f conftest.$ac_objext conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006 (eval $ac_link) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest$ac_exeext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 lt_cv_cc_needs_belf=yes
4027 else
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 lt_cv_cc_needs_belf=no
4033 rm -f conftest.err conftest.$ac_objext \
4034 conftest$ac_exeext conftest.$ac_ext
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4043 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4044 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4045 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4046 CFLAGS="$SAVE_CFLAGS"
4051 esac
4054 # Save cache, so that ltconfig can load it
4055 cat >confcache <<\_ACEOF
4056 # This file is a shell script that caches the results of configure
4057 # tests run on this system so they can be shared between configure
4058 # scripts and configure runs, see configure's option --config-cache.
4059 # It is not useful on other systems. If it contains results you don't
4060 # want to keep, you may remove or edit it.
4062 # config.status only pays attention to the cache file if you give it
4063 # the --recheck option to rerun configure.
4065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4067 # following values.
4069 _ACEOF
4071 # The following way of writing the cache mishandles newlines in values,
4072 # but we know of no workaround that is simple, portable, and efficient.
4073 # So, don't put newlines in cache variables' values.
4074 # Ultrix sh set writes to stderr and can't be redirected directly,
4075 # and sets the high bit in the cache file unless we assign to the vars.
4077 (set) 2>&1 |
4078 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4079 *ac_space=\ *)
4080 # `set' does not quote correctly, so add quotes (double-quote
4081 # substitution turns \\\\ into \\, and sed turns \\ into \).
4082 sed -n \
4083 "s/'/'\\\\''/g;
4084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4087 # `set' quotes correctly as required by POSIX, so do not add quotes.
4088 sed -n \
4089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4091 esac;
4093 sed '
4094 t clear
4095 : clear
4096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4097 t end
4098 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4099 : end' >>confcache
4100 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4101 if test -w $cache_file; then
4102 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4103 cat confcache >$cache_file
4104 else
4105 echo "not updating unwritable cache $cache_file"
4108 rm -f confcache
4110 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4111 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4112 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4113 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4114 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4115 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4116 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4117 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4118 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4119 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4120 echo "$as_me: error: libtool configure failed" >&2;}
4121 { (exit 1); exit 1; }; }
4123 # Reload cache, that may have been modified by ltconfig
4124 if test -r "$cache_file"; then
4125 # Some versions of bash will fail to source /dev/null (special
4126 # files actually), so we avoid doing that.
4127 if test -f "$cache_file"; then
4128 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4129 echo "$as_me: loading cache $cache_file" >&6;}
4130 case $cache_file in
4131 [\\/]* | ?:[\\/]* ) . $cache_file;;
4132 *) . ./$cache_file;;
4133 esac
4135 else
4136 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4137 echo "$as_me: creating cache $cache_file" >&6;}
4138 >$cache_file
4142 # This can be used to rebuild libtool when needed
4143 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4145 # Always use our own libtool.
4146 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4148 # Redirect the config.log output again, so that the ltconfig log is not
4149 # clobbered by the next message.
4150 exec 5>>./config.log
4158 # Package version. For an official FSF release, it is empty.
4160 # Check whether --with-pkgversion or --without-pkgversion was given.
4161 if test "${with_pkgversion+set}" = set; then
4162 withval="$with_pkgversion"
4163 case "$withval" in
4164 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4165 echo "$as_me: error: package version not specified" >&2;}
4166 { (exit 1); exit 1; }; } ;;
4167 no) PKGVERSION= ;;
4168 *) PKGVERSION="($withval) " ;;
4169 esac
4170 else
4171 PKGVERSION=
4176 # The location to which bugs should be reported.
4178 # Check whether --with-bugurl or --without-bugurl was given.
4179 if test "${with_bugurl+set}" = set; then
4180 withval="$with_bugurl"
4181 case "$withval" in
4182 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4183 echo "$as_me: error: bug URL not specified" >&2;}
4184 { (exit 1); exit 1; }; } ;;
4185 no) REPORT_BUGS_TO="" ;;
4186 *) REPORT_BUGS_TO="<URL:$withval>" ;;
4187 esac
4188 else
4189 REPORT_BUGS_TO="<URL:http://www.sourceware.org/bugzilla/>"
4194 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
4197 ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202 if test -n "$ac_tool_prefix"; then
4203 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4204 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_CC+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210 if test -n "$CC"; then
4211 ac_cv_prog_CC="$CC" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4224 done
4225 done
4229 CC=$ac_cv_prog_CC
4230 if test -n "$CC"; then
4231 echo "$as_me:$LINENO: result: $CC" >&5
4232 echo "${ECHO_T}$CC" >&6
4233 else
4234 echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6
4239 if test -z "$ac_cv_prog_CC"; then
4240 ac_ct_CC=$CC
4241 # Extract the first word of "gcc", so it can be a program name with args.
4242 set dummy gcc; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248 if test -n "$ac_ct_CC"; then
4249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_ac_ct_CC="gcc"
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4262 done
4263 done
4267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4268 if test -n "$ac_ct_CC"; then
4269 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4270 echo "${ECHO_T}$ac_ct_CC" >&6
4271 else
4272 echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6
4276 CC=$ac_ct_CC
4277 else
4278 CC="$ac_cv_prog_CC"
4281 if test -z "$CC"; then
4282 if test -n "$ac_tool_prefix"; then
4283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4284 set dummy ${ac_tool_prefix}cc; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_CC+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 if test -n "$CC"; then
4291 ac_cv_prog_CC="$CC" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_CC="${ac_tool_prefix}cc"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4304 done
4305 done
4309 CC=$ac_cv_prog_CC
4310 if test -n "$CC"; then
4311 echo "$as_me:$LINENO: result: $CC" >&5
4312 echo "${ECHO_T}$CC" >&6
4313 else
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4319 if test -z "$ac_cv_prog_CC"; then
4320 ac_ct_CC=$CC
4321 # Extract the first word of "cc", so it can be a program name with args.
4322 set dummy cc; ac_word=$2
4323 echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328 if test -n "$ac_ct_CC"; then
4329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_ac_ct_CC="cc"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4342 done
4343 done
4347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4348 if test -n "$ac_ct_CC"; then
4349 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4350 echo "${ECHO_T}$ac_ct_CC" >&6
4351 else
4352 echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6
4356 CC=$ac_ct_CC
4357 else
4358 CC="$ac_cv_prog_CC"
4362 if test -z "$CC"; then
4363 # Extract the first word of "cc", so it can be a program name with args.
4364 set dummy cc; ac_word=$2
4365 echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4367 if test "${ac_cv_prog_CC+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370 if test -n "$CC"; then
4371 ac_cv_prog_CC="$CC" # Let the user override the test.
4372 else
4373 ac_prog_rejected=no
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4382 ac_prog_rejected=yes
4383 continue
4385 ac_cv_prog_CC="cc"
4386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 break 2
4389 done
4390 done
4392 if test $ac_prog_rejected = yes; then
4393 # We found a bogon in the path, so make sure we never use it.
4394 set dummy $ac_cv_prog_CC
4395 shift
4396 if test $# != 0; then
4397 # We chose a different compiler from the bogus one.
4398 # However, it has the same basename, so the bogon will be chosen
4399 # first if we set CC to just the basename; use the full file name.
4400 shift
4401 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4406 CC=$ac_cv_prog_CC
4407 if test -n "$CC"; then
4408 echo "$as_me:$LINENO: result: $CC" >&5
4409 echo "${ECHO_T}$CC" >&6
4410 else
4411 echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6
4416 if test -z "$CC"; then
4417 if test -n "$ac_tool_prefix"; then
4418 for ac_prog in cl
4420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4422 echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4424 if test "${ac_cv_prog_CC+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427 if test -n "$CC"; then
4428 ac_cv_prog_CC="$CC" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4441 done
4442 done
4446 CC=$ac_cv_prog_CC
4447 if test -n "$CC"; then
4448 echo "$as_me:$LINENO: result: $CC" >&5
4449 echo "${ECHO_T}$CC" >&6
4450 else
4451 echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6
4455 test -n "$CC" && break
4456 done
4458 if test -z "$CC"; then
4459 ac_ct_CC=$CC
4460 for ac_prog in cl
4462 # Extract the first word of "$ac_prog", so it can be a program name with args.
4463 set dummy $ac_prog; ac_word=$2
4464 echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469 if test -n "$ac_ct_CC"; then
4470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4479 ac_cv_prog_ac_ct_CC="$ac_prog"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4483 done
4484 done
4488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4489 if test -n "$ac_ct_CC"; then
4490 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4491 echo "${ECHO_T}$ac_ct_CC" >&6
4492 else
4493 echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6
4497 test -n "$ac_ct_CC" && break
4498 done
4500 CC=$ac_ct_CC
4506 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4507 See \`config.log' for more details." >&5
4508 echo "$as_me: error: no acceptable C compiler found in \$PATH
4509 See \`config.log' for more details." >&2;}
4510 { (exit 1); exit 1; }; }
4512 # Provide some information about the compiler.
4513 echo "$as_me:$LINENO:" \
4514 "checking for C compiler version" >&5
4515 ac_compiler=`set X $ac_compile; echo $2`
4516 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4517 (eval $ac_compiler --version </dev/null >&5) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }
4521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4522 (eval $ac_compiler -v </dev/null >&5) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }
4526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4527 (eval $ac_compiler -V </dev/null >&5) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }
4532 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4533 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537 cat >conftest.$ac_ext <<_ACEOF
4538 /* confdefs.h. */
4539 _ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4545 main ()
4547 #ifndef __GNUC__
4548 choke me
4549 #endif
4552 return 0;
4554 _ACEOF
4555 rm -f conftest.$ac_objext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557 (eval $ac_compile) 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag"
4565 || test ! -s conftest.err'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try='test -s conftest.$ac_objext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 ac_compiler_gnu=yes
4578 else
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4582 ac_compiler_gnu=no
4584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4585 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4588 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4589 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4590 GCC=`test $ac_compiler_gnu = yes && echo yes`
4591 ac_test_CFLAGS=${CFLAGS+set}
4592 ac_save_CFLAGS=$CFLAGS
4593 CFLAGS="-g"
4594 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4595 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4596 if test "${ac_cv_prog_cc_g+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599 cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h. */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4607 main ()
4611 return 0;
4613 _ACEOF
4614 rm -f conftest.$ac_objext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } &&
4623 { ac_try='test -z "$ac_c_werror_flag"
4624 || test ! -s conftest.err'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 ac_cv_prog_cc_g=yes
4637 else
4638 echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 ac_cv_prog_cc_g=no
4643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4646 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4647 if test "$ac_test_CFLAGS" = set; then
4648 CFLAGS=$ac_save_CFLAGS
4649 elif test $ac_cv_prog_cc_g = yes; then
4650 if test "$GCC" = yes; then
4651 CFLAGS="-g -O2"
4652 else
4653 CFLAGS="-g"
4655 else
4656 if test "$GCC" = yes; then
4657 CFLAGS="-O2"
4658 else
4659 CFLAGS=
4662 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4663 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4664 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 ac_cv_prog_cc_stdc=no
4668 ac_save_CC=$CC
4669 cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h. */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 #include <stdarg.h>
4676 #include <stdio.h>
4677 #include <sys/types.h>
4678 #include <sys/stat.h>
4679 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4680 struct buf { int x; };
4681 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4682 static char *e (p, i)
4683 char **p;
4684 int i;
4686 return p[i];
4688 static char *f (char * (*g) (char **, int), char **p, ...)
4690 char *s;
4691 va_list v;
4692 va_start (v,p);
4693 s = g (p, va_arg (v,int));
4694 va_end (v);
4695 return s;
4698 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4699 function prototypes and stuff, but not '\xHH' hex character constants.
4700 These don't provoke an error unfortunately, instead are silently treated
4701 as 'x'. The following induces an error, until -std1 is added to get
4702 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4703 array size at least. It's necessary to write '\x00'==0 to get something
4704 that's true only with -std1. */
4705 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4707 int test (int i, double x);
4708 struct s1 {int (*f) (int a);};
4709 struct s2 {int (*f) (double a);};
4710 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4711 int argc;
4712 char **argv;
4714 main ()
4716 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4718 return 0;
4720 _ACEOF
4721 # Don't try gcc -ansi; that turns off useful extensions and
4722 # breaks some systems' header files.
4723 # AIX -qlanglvl=ansi
4724 # Ultrix and OSF/1 -std1
4725 # HP-UX 10.20 and later -Ae
4726 # HP-UX older versions -Aa -D_HPUX_SOURCE
4727 # SVR4 -Xc -D__EXTENSIONS__
4728 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4730 CC="$ac_save_CC $ac_arg"
4731 rm -f conftest.$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>conftest.er1
4734 ac_status=$?
4735 grep -v '^ *+' conftest.er1 >conftest.err
4736 rm -f conftest.er1
4737 cat conftest.err >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try='test -z "$ac_c_werror_flag"
4741 || test ! -s conftest.err'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 (eval $ac_try) 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4753 ac_cv_prog_cc_stdc=$ac_arg
4754 break
4755 else
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4760 rm -f conftest.err conftest.$ac_objext
4761 done
4762 rm -f conftest.$ac_ext conftest.$ac_objext
4763 CC=$ac_save_CC
4767 case "x$ac_cv_prog_cc_stdc" in
4768 x|xno)
4769 echo "$as_me:$LINENO: result: none needed" >&5
4770 echo "${ECHO_T}none needed" >&6 ;;
4772 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4773 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4774 CC="$CC $ac_cv_prog_cc_stdc" ;;
4775 esac
4777 # Some people use a C++ compiler to compile C. Since we use `exit',
4778 # in C++ we need to declare it. In case someone uses the same compiler
4779 # for both compiling C and C++ we need to have the C++ compiler decide
4780 # the declaration of exit, since it's the most demanding environment.
4781 cat >conftest.$ac_ext <<_ACEOF
4782 #ifndef __cplusplus
4783 choke me
4784 #endif
4785 _ACEOF
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>conftest.er1
4789 ac_status=$?
4790 grep -v '^ *+' conftest.er1 >conftest.err
4791 rm -f conftest.er1
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -z "$ac_c_werror_flag"
4796 || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 for ac_declaration in \
4809 '' \
4810 'extern "C" void std::exit (int) throw (); using std::exit;' \
4811 'extern "C" void std::exit (int); using std::exit;' \
4812 'extern "C" void exit (int) throw ();' \
4813 'extern "C" void exit (int);' \
4814 'void exit (int);'
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 $ac_declaration
4823 #include <stdlib.h>
4825 main ()
4827 exit (42);
4829 return 0;
4831 _ACEOF
4832 rm -f conftest.$ac_objext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>conftest.er1
4835 ac_status=$?
4836 grep -v '^ *+' conftest.er1 >conftest.err
4837 rm -f conftest.er1
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } &&
4841 { ac_try='test -z "$ac_c_werror_flag"
4842 || test ! -s conftest.err'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 (eval $ac_try) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; } &&
4848 { ac_try='test -s conftest.$ac_objext'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 (eval $ac_try) 2>&5
4851 ac_status=$?
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4855 else
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4859 continue
4861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862 cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h. */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4868 $ac_declaration
4870 main ()
4872 exit (42);
4874 return 0;
4876 _ACEOF
4877 rm -f conftest.$ac_objext
4878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4879 (eval $ac_compile) 2>conftest.er1
4880 ac_status=$?
4881 grep -v '^ *+' conftest.er1 >conftest.err
4882 rm -f conftest.er1
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try='test -z "$ac_c_werror_flag"
4887 || test ! -s conftest.err'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; } &&
4893 { ac_try='test -s conftest.$ac_objext'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 (eval $ac_try) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4899 break
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4906 done
4907 rm -f conftest*
4908 if test -n "$ac_declaration"; then
4909 echo '#ifdef __cplusplus' >>confdefs.h
4910 echo $ac_declaration >>confdefs.h
4911 echo '#endif' >>confdefs.h
4914 else
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4920 ac_ext=c
4921 ac_cpp='$CPP $CPPFLAGS'
4922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926 # Find a good install program. We prefer a C program (faster),
4927 # so one script is as good as another. But avoid the broken or
4928 # incompatible versions:
4929 # SysV /etc/install, /usr/sbin/install
4930 # SunOS /usr/etc/install
4931 # IRIX /sbin/install
4932 # AIX /bin/install
4933 # AmigaOS /C/install, which installs bootblocks on floppy discs
4934 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4935 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4936 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4937 # OS/2's system install, which has a completely different semantic
4938 # ./install, which can be erroneously created by make from ./install.sh.
4939 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4940 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4941 if test -z "$INSTALL"; then
4942 if test "${ac_cv_path_install+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 # Account for people who put trailing slashes in PATH elements.
4951 case $as_dir/ in
4952 ./ | .// | /cC/* | \
4953 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4954 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4955 /usr/ucb/* ) ;;
4957 # OSF1 and SCO ODT 3.0 have their own names for install.
4958 # Don't use installbsd from OSF since it installs stuff as root
4959 # by default.
4960 for ac_prog in ginstall scoinst install; do
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4963 if test $ac_prog = install &&
4964 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4965 # AIX install. It has an incompatible calling convention.
4967 elif test $ac_prog = install &&
4968 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4969 # program-specific install script used by HP pwplus--don't use.
4971 else
4972 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4973 break 3
4976 done
4977 done
4979 esac
4980 done
4984 if test "${ac_cv_path_install+set}" = set; then
4985 INSTALL=$ac_cv_path_install
4986 else
4987 # As a last resort, use the slow shell script. We don't cache a
4988 # path for INSTALL within a source directory, because that will
4989 # break other packages using the cache if that directory is
4990 # removed, or if the path is relative.
4991 INSTALL=$ac_install_sh
4994 echo "$as_me:$LINENO: result: $INSTALL" >&5
4995 echo "${ECHO_T}$INSTALL" >&6
4997 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4998 # It thinks the first close brace ends the variable substitution.
4999 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5001 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5003 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5007 for ac_func in setmode
5009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5010 echo "$as_me:$LINENO: checking for $ac_func" >&5
5011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5012 if eval "test \"\${$as_ac_var+set}\" = set"; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015 cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h. */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5023 #define $ac_func innocuous_$ac_func
5025 /* System header to define __stub macros and hopefully few prototypes,
5026 which can conflict with char $ac_func (); below.
5027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5028 <limits.h> exists even on freestanding compilers. */
5030 #ifdef __STDC__
5031 # include <limits.h>
5032 #else
5033 # include <assert.h>
5034 #endif
5036 #undef $ac_func
5038 /* Override any gcc2 internal prototype to avoid an error. */
5039 #ifdef __cplusplus
5040 extern "C"
5042 #endif
5043 /* We use char because int might match the return type of a gcc2
5044 builtin and then its argument prototype would still apply. */
5045 char $ac_func ();
5046 /* The GNU C library defines this for functions which it implements
5047 to always fail with ENOSYS. Some functions are actually named
5048 something starting with __ and the normal name is an alias. */
5049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5050 choke me
5051 #else
5052 char (*f) () = $ac_func;
5053 #endif
5054 #ifdef __cplusplus
5056 #endif
5059 main ()
5061 return f != $ac_func;
5063 return 0;
5065 _ACEOF
5066 rm -f conftest.$ac_objext conftest$ac_exeext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5068 (eval $ac_link) 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -z "$ac_c_werror_flag"
5076 || test ! -s conftest.err'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; } &&
5082 { ac_try='test -s conftest$ac_exeext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 eval "$as_ac_var=yes"
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 eval "$as_ac_var=no"
5095 rm -f conftest.err conftest.$ac_objext \
5096 conftest$ac_exeext conftest.$ac_ext
5098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5100 if test `eval echo '${'$as_ac_var'}'` = yes; then
5101 cat >>confdefs.h <<_ACEOF
5102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5103 _ACEOF
5106 done
5109 ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga"
5110 if test -n "$ac_tool_prefix"; then
5111 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5112 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5113 echo "$as_me:$LINENO: checking for $ac_word" >&5
5114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5115 if test "${ac_cv_prog_RANLIB+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118 if test -n "$RANLIB"; then
5119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5132 done
5133 done
5137 RANLIB=$ac_cv_prog_RANLIB
5138 if test -n "$RANLIB"; then
5139 echo "$as_me:$LINENO: result: $RANLIB" >&5
5140 echo "${ECHO_T}$RANLIB" >&6
5141 else
5142 echo "$as_me:$LINENO: result: no" >&5
5143 echo "${ECHO_T}no" >&6
5147 if test -z "$ac_cv_prog_RANLIB"; then
5148 ac_ct_RANLIB=$RANLIB
5149 # Extract the first word of "ranlib", so it can be a program name with args.
5150 set dummy ranlib; ac_word=$2
5151 echo "$as_me:$LINENO: checking for $ac_word" >&5
5152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5153 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 if test -n "$ac_ct_RANLIB"; then
5157 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166 ac_cv_prog_ac_ct_RANLIB="ranlib"
5167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5170 done
5171 done
5173 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5176 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5177 if test -n "$ac_ct_RANLIB"; then
5178 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5179 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5180 else
5181 echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6
5185 RANLIB=$ac_ct_RANLIB
5186 else
5187 RANLIB="$ac_cv_prog_RANLIB"
5190 ac_ext=c
5191 ac_cpp='$CPP $CPPFLAGS'
5192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5197 # On Suns, sometimes $CPP names a directory.
5198 if test -n "$CPP" && test -d "$CPP"; then
5199 CPP=
5201 if test -z "$CPP"; then
5202 if test "${ac_cv_prog_CPP+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 # Double quotes because CPP needs to be expanded
5206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5208 ac_preproc_ok=false
5209 for ac_c_preproc_warn_flag in '' yes
5211 # Use a header file that comes with gcc, so configuring glibc
5212 # with a fresh cross-compiler works.
5213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214 # <limits.h> exists even on freestanding compilers.
5215 # On the NeXT, cc -E runs the code through the compiler's parser,
5216 # not just through cpp. "Syntax error" is here to catch this case.
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 #ifdef __STDC__
5224 # include <limits.h>
5225 #else
5226 # include <assert.h>
5227 #endif
5228 Syntax error
5229 _ACEOF
5230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } >/dev/null; then
5238 if test -s conftest.err; then
5239 ac_cpp_err=$ac_c_preproc_warn_flag
5240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5241 else
5242 ac_cpp_err=
5244 else
5245 ac_cpp_err=yes
5247 if test -z "$ac_cpp_err"; then
5249 else
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5253 # Broken: fails on valid input.
5254 continue
5256 rm -f conftest.err conftest.$ac_ext
5258 # OK, works on sane cases. Now check whether non-existent headers
5259 # can be detected and how.
5260 cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h. */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 #include <ac_nonexistent.h>
5267 _ACEOF
5268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } >/dev/null; then
5276 if test -s conftest.err; then
5277 ac_cpp_err=$ac_c_preproc_warn_flag
5278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5279 else
5280 ac_cpp_err=
5282 else
5283 ac_cpp_err=yes
5285 if test -z "$ac_cpp_err"; then
5286 # Broken: success on invalid input.
5287 continue
5288 else
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 # Passes both tests.
5293 ac_preproc_ok=:
5294 break
5296 rm -f conftest.err conftest.$ac_ext
5298 done
5299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5300 rm -f conftest.err conftest.$ac_ext
5301 if $ac_preproc_ok; then
5302 break
5305 done
5306 ac_cv_prog_CPP=$CPP
5309 CPP=$ac_cv_prog_CPP
5310 else
5311 ac_cv_prog_CPP=$CPP
5313 echo "$as_me:$LINENO: result: $CPP" >&5
5314 echo "${ECHO_T}$CPP" >&6
5315 ac_preproc_ok=false
5316 for ac_c_preproc_warn_flag in '' yes
5318 # Use a header file that comes with gcc, so configuring glibc
5319 # with a fresh cross-compiler works.
5320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5321 # <limits.h> exists even on freestanding compilers.
5322 # On the NeXT, cc -E runs the code through the compiler's parser,
5323 # not just through cpp. "Syntax error" is here to catch this case.
5324 cat >conftest.$ac_ext <<_ACEOF
5325 /* confdefs.h. */
5326 _ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h. */
5330 #ifdef __STDC__
5331 # include <limits.h>
5332 #else
5333 # include <assert.h>
5334 #endif
5335 Syntax error
5336 _ACEOF
5337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } >/dev/null; then
5345 if test -s conftest.err; then
5346 ac_cpp_err=$ac_c_preproc_warn_flag
5347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5348 else
5349 ac_cpp_err=
5351 else
5352 ac_cpp_err=yes
5354 if test -z "$ac_cpp_err"; then
5356 else
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 # Broken: fails on valid input.
5361 continue
5363 rm -f conftest.err conftest.$ac_ext
5365 # OK, works on sane cases. Now check whether non-existent headers
5366 # can be detected and how.
5367 cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h. */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 #include <ac_nonexistent.h>
5374 _ACEOF
5375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5377 ac_status=$?
5378 grep -v '^ *+' conftest.er1 >conftest.err
5379 rm -f conftest.er1
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } >/dev/null; then
5383 if test -s conftest.err; then
5384 ac_cpp_err=$ac_c_preproc_warn_flag
5385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5386 else
5387 ac_cpp_err=
5389 else
5390 ac_cpp_err=yes
5392 if test -z "$ac_cpp_err"; then
5393 # Broken: success on invalid input.
5394 continue
5395 else
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5399 # Passes both tests.
5400 ac_preproc_ok=:
5401 break
5403 rm -f conftest.err conftest.$ac_ext
5405 done
5406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5407 rm -f conftest.err conftest.$ac_ext
5408 if $ac_preproc_ok; then
5410 else
5411 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5412 See \`config.log' for more details." >&5
5413 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5414 See \`config.log' for more details." >&2;}
5415 { (exit 1); exit 1; }; }
5418 ac_ext=c
5419 ac_cpp='$CPP $CPPFLAGS'
5420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425 echo "$as_me:$LINENO: checking for egrep" >&5
5426 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5427 if test "${ac_cv_prog_egrep+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5431 then ac_cv_prog_egrep='grep -E'
5432 else ac_cv_prog_egrep='egrep'
5435 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5436 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5437 EGREP=$ac_cv_prog_egrep
5440 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5441 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5442 if test "${ac_cv_header_stdc+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445 cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h. */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 #include <stdlib.h>
5452 #include <stdarg.h>
5453 #include <string.h>
5454 #include <float.h>
5457 main ()
5461 return 0;
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5466 (eval $ac_compile) 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } &&
5473 { ac_try='test -z "$ac_c_werror_flag"
5474 || test ! -s conftest.err'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 (eval $ac_try) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; } &&
5480 { ac_try='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_cv_header_stdc=yes
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 ac_cv_header_stdc=no
5493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5495 if test $ac_cv_header_stdc = yes; then
5496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 #include <string.h>
5505 _ACEOF
5506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5507 $EGREP "memchr" >/dev/null 2>&1; then
5509 else
5510 ac_cv_header_stdc=no
5512 rm -f conftest*
5516 if test $ac_cv_header_stdc = yes; then
5517 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5518 cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h. */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 #include <stdlib.h>
5526 _ACEOF
5527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5528 $EGREP "free" >/dev/null 2>&1; then
5530 else
5531 ac_cv_header_stdc=no
5533 rm -f conftest*
5537 if test $ac_cv_header_stdc = yes; then
5538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5539 if test "$cross_compiling" = yes; then
5541 else
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #include <ctype.h>
5549 #if ((' ' & 0x0FF) == 0x020)
5550 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5551 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5552 #else
5553 # define ISLOWER(c) \
5554 (('a' <= (c) && (c) <= 'i') \
5555 || ('j' <= (c) && (c) <= 'r') \
5556 || ('s' <= (c) && (c) <= 'z'))
5557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5558 #endif
5560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5562 main ()
5564 int i;
5565 for (i = 0; i < 256; i++)
5566 if (XOR (islower (i), ISLOWER (i))
5567 || toupper (i) != TOUPPER (i))
5568 exit(2);
5569 exit (0);
5571 _ACEOF
5572 rm -f conftest$ac_exeext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5574 (eval $ac_link) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 (eval $ac_try) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; }; then
5584 else
5585 echo "$as_me: program exited with status $ac_status" >&5
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5589 ( exit $ac_status )
5590 ac_cv_header_stdc=no
5592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5596 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5597 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5598 if test $ac_cv_header_stdc = yes; then
5600 cat >>confdefs.h <<\_ACEOF
5601 #define STDC_HEADERS 1
5602 _ACEOF
5606 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5607 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5608 if test "${ac_cv_c_const+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611 cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h. */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5619 main ()
5621 /* FIXME: Include the comments suggested by Paul. */
5622 #ifndef __cplusplus
5623 /* Ultrix mips cc rejects this. */
5624 typedef int charset[2];
5625 const charset x;
5626 /* SunOS 4.1.1 cc rejects this. */
5627 char const *const *ccp;
5628 char **p;
5629 /* NEC SVR4.0.2 mips cc rejects this. */
5630 struct point {int x, y;};
5631 static struct point const zero = {0,0};
5632 /* AIX XL C 1.02.0.0 rejects this.
5633 It does not let you subtract one const X* pointer from another in
5634 an arm of an if-expression whose if-part is not a constant
5635 expression */
5636 const char *g = "string";
5637 ccp = &g + (g ? g-g : 0);
5638 /* HPUX 7.0 cc rejects these. */
5639 ++ccp;
5640 p = (char**) ccp;
5641 ccp = (char const *const *) p;
5642 { /* SCO 3.2v4 cc rejects this. */
5643 char *t;
5644 char const *s = 0 ? (char *) 0 : (char const *) 0;
5646 *t++ = 0;
5648 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5649 int x[] = {25, 17};
5650 const int *foo = &x[0];
5651 ++foo;
5653 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5654 typedef const int *iptr;
5655 iptr p = 0;
5656 ++p;
5658 { /* AIX XL C 1.02.0.0 rejects this saying
5659 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5660 struct s { int j; const int *ap[3]; };
5661 struct s *b; b->j = 5;
5663 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5664 const int foo = 10;
5666 #endif
5669 return 0;
5671 _ACEOF
5672 rm -f conftest.$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } &&
5681 { ac_try='test -z "$ac_c_werror_flag"
5682 || test ! -s conftest.err'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 (eval $ac_try) 2>&5
5685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; } &&
5688 { ac_try='test -s conftest.$ac_objext'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 (eval $ac_try) 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_cv_c_const=yes
5695 else
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5699 ac_cv_c_const=no
5701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5703 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5704 echo "${ECHO_T}$ac_cv_c_const" >&6
5705 if test $ac_cv_c_const = no; then
5707 cat >>confdefs.h <<\_ACEOF
5708 #define const
5709 _ACEOF
5713 echo "$as_me:$LINENO: checking for inline" >&5
5714 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5715 if test "${ac_cv_c_inline+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718 ac_cv_c_inline=no
5719 for ac_kw in inline __inline__ __inline; do
5720 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 #ifndef __cplusplus
5727 typedef int foo_t;
5728 static $ac_kw foo_t static_foo () {return 0; }
5729 $ac_kw foo_t foo () {return 0; }
5730 #endif
5732 _ACEOF
5733 rm -f conftest.$ac_objext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>conftest.er1
5736 ac_status=$?
5737 grep -v '^ *+' conftest.er1 >conftest.err
5738 rm -f conftest.er1
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -z "$ac_c_werror_flag"
5743 || test ! -s conftest.err'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; } &&
5749 { ac_try='test -s conftest.$ac_objext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 (eval $ac_try) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5755 ac_cv_c_inline=$ac_kw; break
5756 else
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5762 done
5765 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5766 echo "${ECHO_T}$ac_cv_c_inline" >&6
5769 case $ac_cv_c_inline in
5770 inline | yes) ;;
5772 case $ac_cv_c_inline in
5773 no) ac_val=;;
5774 *) ac_val=$ac_cv_c_inline;;
5775 esac
5776 cat >>confdefs.h <<_ACEOF
5777 #ifndef __cplusplus
5778 #define inline $ac_val
5779 #endif
5780 _ACEOF
5782 esac
5784 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5794 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5795 inttypes.h stdint.h unistd.h
5797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5798 echo "$as_me:$LINENO: checking for $ac_header" >&5
5799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h. */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 $ac_includes_default
5811 #include <$ac_header>
5812 _ACEOF
5813 rm -f conftest.$ac_objext
5814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5815 (eval $ac_compile) 2>conftest.er1
5816 ac_status=$?
5817 grep -v '^ *+' conftest.er1 >conftest.err
5818 rm -f conftest.er1
5819 cat conftest.err >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } &&
5822 { ac_try='test -z "$ac_c_werror_flag"
5823 || test ! -s conftest.err'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 (eval $ac_try) 2>&5
5826 ac_status=$?
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; } &&
5829 { ac_try='test -s conftest.$ac_objext'
5830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 (eval $ac_try) 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; }; then
5835 eval "$as_ac_Header=yes"
5836 else
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5840 eval "$as_ac_Header=no"
5842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5847 cat >>confdefs.h <<_ACEOF
5848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5849 _ACEOF
5853 done
5856 echo "$as_me:$LINENO: checking for off_t" >&5
5857 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5858 if test "${ac_cv_type_off_t+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861 cat >conftest.$ac_ext <<_ACEOF
5862 /* confdefs.h. */
5863 _ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 $ac_includes_default
5869 main ()
5871 if ((off_t *) 0)
5872 return 0;
5873 if (sizeof (off_t))
5874 return 0;
5876 return 0;
5878 _ACEOF
5879 rm -f conftest.$ac_objext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881 (eval $ac_compile) 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -z "$ac_c_werror_flag"
5889 || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 (eval $ac_try) 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 (eval $ac_try) 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 ac_cv_type_off_t=yes
5902 else
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5906 ac_cv_type_off_t=no
5908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5910 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5911 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5912 if test $ac_cv_type_off_t = yes; then
5914 else
5916 cat >>confdefs.h <<_ACEOF
5917 #define off_t long
5918 _ACEOF
5922 echo "$as_me:$LINENO: checking for size_t" >&5
5923 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5924 if test "${ac_cv_type_size_t+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h. */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 $ac_includes_default
5935 main ()
5937 if ((size_t *) 0)
5938 return 0;
5939 if (sizeof (size_t))
5940 return 0;
5942 return 0;
5944 _ACEOF
5945 rm -f conftest.$ac_objext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5947 (eval $ac_compile) 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -z "$ac_c_werror_flag"
5955 || test ! -s conftest.err'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 (eval $ac_try) 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest.$ac_objext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 (eval $ac_try) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 ac_cv_type_size_t=yes
5968 else
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 ac_cv_type_size_t=no
5974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5976 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5977 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5978 if test $ac_cv_type_size_t = yes; then
5980 else
5982 cat >>confdefs.h <<_ACEOF
5983 #define size_t unsigned
5984 _ACEOF
5988 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5989 # for constant arguments. Useless!
5990 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5991 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5992 if test "${ac_cv_working_alloca_h+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h. */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 #include <alloca.h>
6003 main ()
6005 char *p = (char *) alloca (2 * sizeof (int));
6007 return 0;
6009 _ACEOF
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6012 (eval $ac_link) 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -z "$ac_c_werror_flag"
6020 || test ! -s conftest.err'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; } &&
6026 { ac_try='test -s conftest$ac_exeext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 (eval $ac_try) 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_working_alloca_h=yes
6033 else
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 ac_cv_working_alloca_h=no
6039 rm -f conftest.err conftest.$ac_objext \
6040 conftest$ac_exeext conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6043 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6044 if test $ac_cv_working_alloca_h = yes; then
6046 cat >>confdefs.h <<\_ACEOF
6047 #define HAVE_ALLOCA_H 1
6048 _ACEOF
6052 echo "$as_me:$LINENO: checking for alloca" >&5
6053 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6054 if test "${ac_cv_func_alloca_works+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h. */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 #ifdef __GNUC__
6064 # define alloca __builtin_alloca
6065 #else
6066 # ifdef _MSC_VER
6067 # include <malloc.h>
6068 # define alloca _alloca
6069 # else
6070 # if HAVE_ALLOCA_H
6071 # include <alloca.h>
6072 # else
6073 # ifdef _AIX
6074 #pragma alloca
6075 # else
6076 # ifndef alloca /* predefined by HP cc +Olibcalls */
6077 char *alloca ();
6078 # endif
6079 # endif
6080 # endif
6081 # endif
6082 #endif
6085 main ()
6087 char *p = (char *) alloca (1);
6089 return 0;
6091 _ACEOF
6092 rm -f conftest.$ac_objext conftest$ac_exeext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6094 (eval $ac_link) 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_exeext'
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 ac_cv_func_alloca_works=yes
6115 else
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 ac_cv_func_alloca_works=no
6121 rm -f conftest.err conftest.$ac_objext \
6122 conftest$ac_exeext conftest.$ac_ext
6124 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6125 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6127 if test $ac_cv_func_alloca_works = yes; then
6129 cat >>confdefs.h <<\_ACEOF
6130 #define HAVE_ALLOCA 1
6131 _ACEOF
6133 else
6134 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6135 # that cause trouble. Some versions do not even contain alloca or
6136 # contain a buggy version. If you still want to use their alloca,
6137 # use ar to extract alloca.o from them instead of compiling alloca.c.
6139 ALLOCA=alloca.$ac_objext
6141 cat >>confdefs.h <<\_ACEOF
6142 #define C_ALLOCA 1
6143 _ACEOF
6146 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6147 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6148 if test "${ac_cv_os_cray+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151 cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h. */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 #if defined(CRAY) && ! defined(CRAY2)
6158 webecray
6159 #else
6160 wenotbecray
6161 #endif
6163 _ACEOF
6164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6165 $EGREP "webecray" >/dev/null 2>&1; then
6166 ac_cv_os_cray=yes
6167 else
6168 ac_cv_os_cray=no
6170 rm -f conftest*
6173 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6174 echo "${ECHO_T}$ac_cv_os_cray" >&6
6175 if test $ac_cv_os_cray = yes; then
6176 for ac_func in _getb67 GETB67 getb67; do
6177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6178 echo "$as_me:$LINENO: checking for $ac_func" >&5
6179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6180 if eval "test \"\${$as_ac_var+set}\" = set"; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h. */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6191 #define $ac_func innocuous_$ac_func
6193 /* System header to define __stub macros and hopefully few prototypes,
6194 which can conflict with char $ac_func (); below.
6195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6196 <limits.h> exists even on freestanding compilers. */
6198 #ifdef __STDC__
6199 # include <limits.h>
6200 #else
6201 # include <assert.h>
6202 #endif
6204 #undef $ac_func
6206 /* Override any gcc2 internal prototype to avoid an error. */
6207 #ifdef __cplusplus
6208 extern "C"
6210 #endif
6211 /* We use char because int might match the return type of a gcc2
6212 builtin and then its argument prototype would still apply. */
6213 char $ac_func ();
6214 /* The GNU C library defines this for functions which it implements
6215 to always fail with ENOSYS. Some functions are actually named
6216 something starting with __ and the normal name is an alias. */
6217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6218 choke me
6219 #else
6220 char (*f) () = $ac_func;
6221 #endif
6222 #ifdef __cplusplus
6224 #endif
6227 main ()
6229 return f != $ac_func;
6231 return 0;
6233 _ACEOF
6234 rm -f conftest.$ac_objext conftest$ac_exeext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6236 (eval $ac_link) 2>conftest.er1
6237 ac_status=$?
6238 grep -v '^ *+' conftest.er1 >conftest.err
6239 rm -f conftest.er1
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try='test -z "$ac_c_werror_flag"
6244 || test ! -s conftest.err'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 (eval $ac_try) 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; } &&
6250 { ac_try='test -s conftest$ac_exeext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 (eval $ac_try) 2>&5
6253 ac_status=$?
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 eval "$as_ac_var=yes"
6257 else
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6261 eval "$as_ac_var=no"
6263 rm -f conftest.err conftest.$ac_objext \
6264 conftest$ac_exeext conftest.$ac_ext
6266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6268 if test `eval echo '${'$as_ac_var'}'` = yes; then
6270 cat >>confdefs.h <<_ACEOF
6271 #define CRAY_STACKSEG_END $ac_func
6272 _ACEOF
6274 break
6277 done
6280 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6281 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6282 if test "${ac_cv_c_stack_direction+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 if test "$cross_compiling" = yes; then
6286 ac_cv_c_stack_direction=0
6287 else
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6295 find_stack_direction ()
6297 static char *addr = 0;
6298 auto char dummy;
6299 if (addr == 0)
6301 addr = &dummy;
6302 return find_stack_direction ();
6304 else
6305 return (&dummy > addr) ? 1 : -1;
6309 main ()
6311 exit (find_stack_direction () < 0);
6313 _ACEOF
6314 rm -f conftest$ac_exeext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6316 (eval $ac_link) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 (eval $ac_try) 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 ac_cv_c_stack_direction=1
6326 else
6327 echo "$as_me: program exited with status $ac_status" >&5
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 ( exit $ac_status )
6332 ac_cv_c_stack_direction=-1
6334 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6337 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6338 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6340 cat >>confdefs.h <<_ACEOF
6341 #define STACK_DIRECTION $ac_cv_c_stack_direction
6342 _ACEOF
6349 for ac_header in stdlib.h unistd.h
6351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353 echo "$as_me:$LINENO: checking for $ac_header" >&5
6354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6360 else
6361 # Is the header compilable?
6362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 $ac_includes_default
6371 #include <$ac_header>
6372 _ACEOF
6373 rm -f conftest.$ac_objext
6374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6375 (eval $ac_compile) 2>conftest.er1
6376 ac_status=$?
6377 grep -v '^ *+' conftest.er1 >conftest.err
6378 rm -f conftest.er1
6379 cat conftest.err >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try='test -z "$ac_c_werror_flag"
6383 || test ! -s conftest.err'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; } &&
6389 { ac_try='test -s conftest.$ac_objext'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 (eval $ac_try) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }; then
6395 ac_header_compiler=yes
6396 else
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6400 ac_header_compiler=no
6402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6404 echo "${ECHO_T}$ac_header_compiler" >&6
6406 # Is the header present?
6407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6409 cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h. */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6415 #include <$ac_header>
6416 _ACEOF
6417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } >/dev/null; then
6425 if test -s conftest.err; then
6426 ac_cpp_err=$ac_c_preproc_warn_flag
6427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6428 else
6429 ac_cpp_err=
6431 else
6432 ac_cpp_err=yes
6434 if test -z "$ac_cpp_err"; then
6435 ac_header_preproc=yes
6436 else
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6440 ac_header_preproc=no
6442 rm -f conftest.err conftest.$ac_ext
6443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6444 echo "${ECHO_T}$ac_header_preproc" >&6
6446 # So? What about this header?
6447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6448 yes:no: )
6449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6453 ac_header_preproc=yes
6455 no:yes:* )
6456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6469 cat <<\_ASBOX
6470 ## ------------------------------------------ ##
6471 ## Report this to the AC_PACKAGE_NAME lists. ##
6472 ## ------------------------------------------ ##
6473 _ASBOX
6475 sed "s/^/$as_me: WARNING: /" >&2
6477 esac
6478 echo "$as_me:$LINENO: checking for $ac_header" >&5
6479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483 eval "$as_ac_Header=\$ac_header_preproc"
6485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6490 cat >>confdefs.h <<_ACEOF
6491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6492 _ACEOF
6496 done
6499 for ac_func in getpagesize
6501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6502 echo "$as_me:$LINENO: checking for $ac_func" >&5
6503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6504 if eval "test \"\${$as_ac_var+set}\" = set"; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h. */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6515 #define $ac_func innocuous_$ac_func
6517 /* System header to define __stub macros and hopefully few prototypes,
6518 which can conflict with char $ac_func (); below.
6519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6520 <limits.h> exists even on freestanding compilers. */
6522 #ifdef __STDC__
6523 # include <limits.h>
6524 #else
6525 # include <assert.h>
6526 #endif
6528 #undef $ac_func
6530 /* Override any gcc2 internal prototype to avoid an error. */
6531 #ifdef __cplusplus
6532 extern "C"
6534 #endif
6535 /* We use char because int might match the return type of a gcc2
6536 builtin and then its argument prototype would still apply. */
6537 char $ac_func ();
6538 /* The GNU C library defines this for functions which it implements
6539 to always fail with ENOSYS. Some functions are actually named
6540 something starting with __ and the normal name is an alias. */
6541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6542 choke me
6543 #else
6544 char (*f) () = $ac_func;
6545 #endif
6546 #ifdef __cplusplus
6548 #endif
6551 main ()
6553 return f != $ac_func;
6555 return 0;
6557 _ACEOF
6558 rm -f conftest.$ac_objext conftest$ac_exeext
6559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6560 (eval $ac_link) 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
6567 { ac_try='test -z "$ac_c_werror_flag"
6568 || test ! -s conftest.err'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 (eval $ac_try) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; } &&
6574 { ac_try='test -s conftest$ac_exeext'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 (eval $ac_try) 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }; then
6580 eval "$as_ac_var=yes"
6581 else
6582 echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6585 eval "$as_ac_var=no"
6587 rm -f conftest.err conftest.$ac_objext \
6588 conftest$ac_exeext conftest.$ac_ext
6590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6592 if test `eval echo '${'$as_ac_var'}'` = yes; then
6593 cat >>confdefs.h <<_ACEOF
6594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6595 _ACEOF
6598 done
6600 echo "$as_me:$LINENO: checking for working mmap" >&5
6601 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6602 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605 if test "$cross_compiling" = yes; then
6606 ac_cv_func_mmap_fixed_mapped=no
6607 else
6608 cat >conftest.$ac_ext <<_ACEOF
6609 /* confdefs.h. */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 $ac_includes_default
6615 /* malloc might have been renamed as rpl_malloc. */
6616 #undef malloc
6618 /* Thanks to Mike Haertel and Jim Avera for this test.
6619 Here is a matrix of mmap possibilities:
6620 mmap private not fixed
6621 mmap private fixed at somewhere currently unmapped
6622 mmap private fixed at somewhere already mapped
6623 mmap shared not fixed
6624 mmap shared fixed at somewhere currently unmapped
6625 mmap shared fixed at somewhere already mapped
6626 For private mappings, we should verify that changes cannot be read()
6627 back from the file, nor mmap's back from the file at a different
6628 address. (There have been systems where private was not correctly
6629 implemented like the infamous i386 svr4.0, and systems where the
6630 VM page cache was not coherent with the file system buffer cache
6631 like early versions of FreeBSD and possibly contemporary NetBSD.)
6632 For shared mappings, we should conversely verify that changes get
6633 propagated back to all the places they're supposed to be.
6635 Grep wants private fixed already mapped.
6636 The main things grep needs to know about mmap are:
6637 * does it exist and is it safe to write into the mmap'd area
6638 * how to use it (BSD variants) */
6640 #include <fcntl.h>
6641 #include <sys/mman.h>
6643 #if !STDC_HEADERS && !HAVE_STDLIB_H
6644 char *malloc ();
6645 #endif
6647 /* This mess was copied from the GNU getpagesize.h. */
6648 #if !HAVE_GETPAGESIZE
6649 /* Assume that all systems that can run configure have sys/param.h. */
6650 # if !HAVE_SYS_PARAM_H
6651 # define HAVE_SYS_PARAM_H 1
6652 # endif
6654 # ifdef _SC_PAGESIZE
6655 # define getpagesize() sysconf(_SC_PAGESIZE)
6656 # else /* no _SC_PAGESIZE */
6657 # if HAVE_SYS_PARAM_H
6658 # include <sys/param.h>
6659 # ifdef EXEC_PAGESIZE
6660 # define getpagesize() EXEC_PAGESIZE
6661 # else /* no EXEC_PAGESIZE */
6662 # ifdef NBPG
6663 # define getpagesize() NBPG * CLSIZE
6664 # ifndef CLSIZE
6665 # define CLSIZE 1
6666 # endif /* no CLSIZE */
6667 # else /* no NBPG */
6668 # ifdef NBPC
6669 # define getpagesize() NBPC
6670 # else /* no NBPC */
6671 # ifdef PAGESIZE
6672 # define getpagesize() PAGESIZE
6673 # endif /* PAGESIZE */
6674 # endif /* no NBPC */
6675 # endif /* no NBPG */
6676 # endif /* no EXEC_PAGESIZE */
6677 # else /* no HAVE_SYS_PARAM_H */
6678 # define getpagesize() 8192 /* punt totally */
6679 # endif /* no HAVE_SYS_PARAM_H */
6680 # endif /* no _SC_PAGESIZE */
6682 #endif /* no HAVE_GETPAGESIZE */
6685 main ()
6687 char *data, *data2, *data3;
6688 int i, pagesize;
6689 int fd;
6691 pagesize = getpagesize ();
6693 /* First, make a file with some known garbage in it. */
6694 data = (char *) malloc (pagesize);
6695 if (!data)
6696 exit (1);
6697 for (i = 0; i < pagesize; ++i)
6698 *(data + i) = rand ();
6699 umask (0);
6700 fd = creat ("conftest.mmap", 0600);
6701 if (fd < 0)
6702 exit (1);
6703 if (write (fd, data, pagesize) != pagesize)
6704 exit (1);
6705 close (fd);
6707 /* Next, try to mmap the file at a fixed address which already has
6708 something else allocated at it. If we can, also make sure that
6709 we see the same garbage. */
6710 fd = open ("conftest.mmap", O_RDWR);
6711 if (fd < 0)
6712 exit (1);
6713 data2 = (char *) malloc (2 * pagesize);
6714 if (!data2)
6715 exit (1);
6716 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6717 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6718 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6719 exit (1);
6720 for (i = 0; i < pagesize; ++i)
6721 if (*(data + i) != *(data2 + i))
6722 exit (1);
6724 /* Finally, make sure that changes to the mapped area do not
6725 percolate back to the file as seen by read(). (This is a bug on
6726 some variants of i386 svr4.0.) */
6727 for (i = 0; i < pagesize; ++i)
6728 *(data2 + i) = *(data2 + i) + 1;
6729 data3 = (char *) malloc (pagesize);
6730 if (!data3)
6731 exit (1);
6732 if (read (fd, data3, pagesize) != pagesize)
6733 exit (1);
6734 for (i = 0; i < pagesize; ++i)
6735 if (*(data + i) != *(data3 + i))
6736 exit (1);
6737 close (fd);
6738 exit (0);
6740 _ACEOF
6741 rm -f conftest$ac_exeext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743 (eval $ac_link) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_cv_func_mmap_fixed_mapped=yes
6753 else
6754 echo "$as_me: program exited with status $ac_status" >&5
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6758 ( exit $ac_status )
6759 ac_cv_func_mmap_fixed_mapped=no
6761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6764 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6765 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6766 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6768 cat >>confdefs.h <<\_ACEOF
6769 #define HAVE_MMAP 1
6770 _ACEOF
6773 rm -f conftest.mmap
6785 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6786 unistd.h values.h sys/param.h
6788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6790 echo "$as_me:$LINENO: checking for $ac_header" >&5
6791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6797 else
6798 # Is the header compilable?
6799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6808 #include <$ac_header>
6809 _ACEOF
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>conftest.er1
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
6819 { ac_try='test -z "$ac_c_werror_flag"
6820 || test ! -s conftest.err'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
6826 { ac_try='test -s conftest.$ac_objext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 ac_header_compiler=yes
6833 else
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6837 ac_header_compiler=no
6839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6841 echo "${ECHO_T}$ac_header_compiler" >&6
6843 # Is the header present?
6844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6846 cat >conftest.$ac_ext <<_ACEOF
6847 /* confdefs.h. */
6848 _ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6852 #include <$ac_header>
6853 _ACEOF
6854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6856 ac_status=$?
6857 grep -v '^ *+' conftest.er1 >conftest.err
6858 rm -f conftest.er1
6859 cat conftest.err >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } >/dev/null; then
6862 if test -s conftest.err; then
6863 ac_cpp_err=$ac_c_preproc_warn_flag
6864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6865 else
6866 ac_cpp_err=
6868 else
6869 ac_cpp_err=yes
6871 if test -z "$ac_cpp_err"; then
6872 ac_header_preproc=yes
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 ac_header_preproc=no
6879 rm -f conftest.err conftest.$ac_ext
6880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6881 echo "${ECHO_T}$ac_header_preproc" >&6
6883 # So? What about this header?
6884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6885 yes:no: )
6886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6890 ac_header_preproc=yes
6892 no:yes:* )
6893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6906 cat <<\_ASBOX
6907 ## ------------------------------------------ ##
6908 ## Report this to the AC_PACKAGE_NAME lists. ##
6909 ## ------------------------------------------ ##
6910 _ASBOX
6912 sed "s/^/$as_me: WARNING: /" >&2
6914 esac
6915 echo "$as_me:$LINENO: checking for $ac_header" >&5
6916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 eval "$as_ac_Header=\$ac_header_preproc"
6922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6927 cat >>confdefs.h <<_ACEOF
6928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6929 _ACEOF
6933 done
6945 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6946 __argz_count __argz_stringify __argz_next
6948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6949 echo "$as_me:$LINENO: checking for $ac_func" >&5
6950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6951 if eval "test \"\${$as_ac_var+set}\" = set"; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6962 #define $ac_func innocuous_$ac_func
6964 /* System header to define __stub macros and hopefully few prototypes,
6965 which can conflict with char $ac_func (); below.
6966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6967 <limits.h> exists even on freestanding compilers. */
6969 #ifdef __STDC__
6970 # include <limits.h>
6971 #else
6972 # include <assert.h>
6973 #endif
6975 #undef $ac_func
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 #ifdef __cplusplus
6979 extern "C"
6981 #endif
6982 /* We use char because int might match the return type of a gcc2
6983 builtin and then its argument prototype would still apply. */
6984 char $ac_func ();
6985 /* The GNU C library defines this for functions which it implements
6986 to always fail with ENOSYS. Some functions are actually named
6987 something starting with __ and the normal name is an alias. */
6988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6989 choke me
6990 #else
6991 char (*f) () = $ac_func;
6992 #endif
6993 #ifdef __cplusplus
6995 #endif
6998 main ()
7000 return f != $ac_func;
7002 return 0;
7004 _ACEOF
7005 rm -f conftest.$ac_objext conftest$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 eval "$as_ac_var=yes"
7028 else
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7032 eval "$as_ac_var=no"
7034 rm -f conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7039 if test `eval echo '${'$as_ac_var'}'` = yes; then
7040 cat >>confdefs.h <<_ACEOF
7041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7042 _ACEOF
7045 done
7048 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7050 for ac_func in stpcpy
7052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7053 echo "$as_me:$LINENO: checking for $ac_func" >&5
7054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7055 if eval "test \"\${$as_ac_var+set}\" = set"; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058 cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h. */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7066 #define $ac_func innocuous_$ac_func
7068 /* System header to define __stub macros and hopefully few prototypes,
7069 which can conflict with char $ac_func (); below.
7070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7071 <limits.h> exists even on freestanding compilers. */
7073 #ifdef __STDC__
7074 # include <limits.h>
7075 #else
7076 # include <assert.h>
7077 #endif
7079 #undef $ac_func
7081 /* Override any gcc2 internal prototype to avoid an error. */
7082 #ifdef __cplusplus
7083 extern "C"
7085 #endif
7086 /* We use char because int might match the return type of a gcc2
7087 builtin and then its argument prototype would still apply. */
7088 char $ac_func ();
7089 /* The GNU C library defines this for functions which it implements
7090 to always fail with ENOSYS. Some functions are actually named
7091 something starting with __ and the normal name is an alias. */
7092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7093 choke me
7094 #else
7095 char (*f) () = $ac_func;
7096 #endif
7097 #ifdef __cplusplus
7099 #endif
7102 main ()
7104 return f != $ac_func;
7106 return 0;
7108 _ACEOF
7109 rm -f conftest.$ac_objext conftest$ac_exeext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7111 (eval $ac_link) 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try='test -z "$ac_c_werror_flag"
7119 || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try='test -s conftest$ac_exeext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 eval "$as_ac_var=yes"
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 eval "$as_ac_var=no"
7138 rm -f conftest.err conftest.$ac_objext \
7139 conftest$ac_exeext conftest.$ac_ext
7141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7143 if test `eval echo '${'$as_ac_var'}'` = yes; then
7144 cat >>confdefs.h <<_ACEOF
7145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7146 _ACEOF
7149 done
7152 if test "${ac_cv_func_stpcpy}" = "yes"; then
7154 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_STPCPY 1
7156 _ACEOF
7160 if test $ac_cv_header_locale_h = yes; then
7161 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7162 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7163 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #include <locale.h>
7174 main ()
7176 return LC_MESSAGES
7178 return 0;
7180 _ACEOF
7181 rm -f conftest.$ac_objext conftest$ac_exeext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7183 (eval $ac_link) 2>conftest.er1
7184 ac_status=$?
7185 grep -v '^ *+' conftest.er1 >conftest.err
7186 rm -f conftest.er1
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } &&
7190 { ac_try='test -z "$ac_c_werror_flag"
7191 || test ! -s conftest.err'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 (eval $ac_try) 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; } &&
7197 { ac_try='test -s conftest$ac_exeext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 (eval $ac_try) 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 am_cv_val_LC_MESSAGES=yes
7204 else
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 am_cv_val_LC_MESSAGES=no
7210 rm -f conftest.err conftest.$ac_objext \
7211 conftest$ac_exeext conftest.$ac_ext
7213 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7214 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7215 if test $am_cv_val_LC_MESSAGES = yes; then
7217 cat >>confdefs.h <<\_ACEOF
7218 #define HAVE_LC_MESSAGES 1
7219 _ACEOF
7223 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7224 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7225 # Check whether --enable-nls or --disable-nls was given.
7226 if test "${enable_nls+set}" = set; then
7227 enableval="$enable_nls"
7228 USE_NLS=$enableval
7229 else
7230 USE_NLS=yes
7232 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7233 echo "${ECHO_T}$USE_NLS" >&6
7236 USE_INCLUDED_LIBINTL=no
7238 if test "$USE_NLS" = "yes"; then
7239 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7240 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7242 # Check whether --with-included-gettext or --without-included-gettext was given.
7243 if test "${with_included_gettext+set}" = set; then
7244 withval="$with_included_gettext"
7245 nls_cv_force_use_gnu_gettext=$withval
7246 else
7247 nls_cv_force_use_gnu_gettext=no
7249 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7250 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7252 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7253 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7254 nls_cv_header_intl=
7255 nls_cv_header_libgt=
7256 CATOBJEXT=
7258 if test "${ac_cv_header_libintl_h+set}" = set; then
7259 echo "$as_me:$LINENO: checking for libintl.h" >&5
7260 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7261 if test "${ac_cv_header_libintl_h+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7265 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7266 else
7267 # Is the header compilable?
7268 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7269 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7270 cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h. */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7276 $ac_includes_default
7277 #include <libintl.h>
7278 _ACEOF
7279 rm -f conftest.$ac_objext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>conftest.er1
7282 ac_status=$?
7283 grep -v '^ *+' conftest.er1 >conftest.err
7284 rm -f conftest.er1
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try='test -z "$ac_c_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try='test -s conftest.$ac_objext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 (eval $ac_try) 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 ac_header_compiler=yes
7302 else
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7306 ac_header_compiler=no
7308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7310 echo "${ECHO_T}$ac_header_compiler" >&6
7312 # Is the header present?
7313 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7314 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7315 cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h. */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 #include <libintl.h>
7322 _ACEOF
7323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7325 ac_status=$?
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } >/dev/null; then
7331 if test -s conftest.err; then
7332 ac_cpp_err=$ac_c_preproc_warn_flag
7333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7334 else
7335 ac_cpp_err=
7337 else
7338 ac_cpp_err=yes
7340 if test -z "$ac_cpp_err"; then
7341 ac_header_preproc=yes
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7346 ac_header_preproc=no
7348 rm -f conftest.err conftest.$ac_ext
7349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7350 echo "${ECHO_T}$ac_header_preproc" >&6
7352 # So? What about this header?
7353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7354 yes:no: )
7355 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7356 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7357 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7358 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7359 ac_header_preproc=yes
7361 no:yes:* )
7362 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7363 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7364 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7365 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7366 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7367 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7368 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7369 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7371 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7372 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7373 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7375 cat <<\_ASBOX
7376 ## ------------------------------------------ ##
7377 ## Report this to the AC_PACKAGE_NAME lists. ##
7378 ## ------------------------------------------ ##
7379 _ASBOX
7381 sed "s/^/$as_me: WARNING: /" >&2
7383 esac
7384 echo "$as_me:$LINENO: checking for libintl.h" >&5
7385 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7386 if test "${ac_cv_header_libintl_h+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389 ac_cv_header_libintl_h=$ac_header_preproc
7391 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7392 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7395 if test $ac_cv_header_libintl_h = yes; then
7396 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7397 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7398 if test "${gt_cv_func_gettext_libc+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h. */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 #include <libintl.h>
7409 main ()
7411 return (int) gettext ("")
7413 return 0;
7415 _ACEOF
7416 rm -f conftest.$ac_objext conftest$ac_exeext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7418 (eval $ac_link) 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try='test -z "$ac_c_werror_flag"
7426 || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 (eval $ac_try) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try='test -s conftest$ac_exeext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 gt_cv_func_gettext_libc=yes
7439 else
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 gt_cv_func_gettext_libc=no
7445 rm -f conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
7448 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7449 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7451 if test "$gt_cv_func_gettext_libc" != "yes"; then
7452 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7453 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7454 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457 ac_check_lib_save_LIBS=$LIBS
7458 LIBS="-lintl $LIBS"
7459 cat >conftest.$ac_ext <<_ACEOF
7460 /* confdefs.h. */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7466 /* Override any gcc2 internal prototype to avoid an error. */
7467 #ifdef __cplusplus
7468 extern "C"
7469 #endif
7470 /* We use char because int might match the return type of a gcc2
7471 builtin and then its argument prototype would still apply. */
7472 char bindtextdomain ();
7474 main ()
7476 bindtextdomain ();
7478 return 0;
7480 _ACEOF
7481 rm -f conftest.$ac_objext conftest$ac_exeext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7483 (eval $ac_link) 2>conftest.er1
7484 ac_status=$?
7485 grep -v '^ *+' conftest.er1 >conftest.err
7486 rm -f conftest.er1
7487 cat conftest.err >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
7490 { ac_try='test -z "$ac_c_werror_flag"
7491 || test ! -s conftest.err'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 (eval $ac_try) 2>&5
7494 ac_status=$?
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; } &&
7497 { ac_try='test -s conftest$ac_exeext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 (eval $ac_try) 2>&5
7500 ac_status=$?
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 ac_cv_lib_intl_bindtextdomain=yes
7504 else
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7508 ac_cv_lib_intl_bindtextdomain=no
7510 rm -f conftest.err conftest.$ac_objext \
7511 conftest$ac_exeext conftest.$ac_ext
7512 LIBS=$ac_check_lib_save_LIBS
7514 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7515 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7516 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7517 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7518 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7519 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h. */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7530 main ()
7532 return (int) gettext ("")
7534 return 0;
7536 _ACEOF
7537 rm -f conftest.$ac_objext conftest$ac_exeext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7539 (eval $ac_link) 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -z "$ac_c_werror_flag"
7547 || test ! -s conftest.err'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try='test -s conftest$ac_exeext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 gt_cv_func_gettext_libintl=yes
7560 else
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7564 gt_cv_func_gettext_libintl=no
7566 rm -f conftest.err conftest.$ac_objext \
7567 conftest$ac_exeext conftest.$ac_ext
7569 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7570 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7575 if test "$gt_cv_func_gettext_libc" = "yes" \
7576 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7578 cat >>confdefs.h <<\_ACEOF
7579 #define HAVE_GETTEXT 1
7580 _ACEOF
7582 # Extract the first word of "msgfmt", so it can be a program name with args.
7583 set dummy msgfmt; ac_word=$2
7584 echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586 if test "${ac_cv_path_MSGFMT+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 case "$MSGFMT" in
7591 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7595 for ac_dir in $PATH; do
7596 test -z "$ac_dir" && ac_dir=.
7597 if test -f $ac_dir/$ac_word; then
7598 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7599 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7600 break
7603 done
7604 IFS="$ac_save_ifs"
7605 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7607 esac
7609 MSGFMT="$ac_cv_path_MSGFMT"
7610 if test -n "$MSGFMT"; then
7611 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7612 echo "${ECHO_T}$MSGFMT" >&6
7613 else
7614 echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6
7617 if test "$MSGFMT" != "no"; then
7619 for ac_func in dcgettext
7621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7622 echo "$as_me:$LINENO: checking for $ac_func" >&5
7623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7624 if eval "test \"\${$as_ac_var+set}\" = set"; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h. */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7635 #define $ac_func innocuous_$ac_func
7637 /* System header to define __stub macros and hopefully few prototypes,
7638 which can conflict with char $ac_func (); below.
7639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7640 <limits.h> exists even on freestanding compilers. */
7642 #ifdef __STDC__
7643 # include <limits.h>
7644 #else
7645 # include <assert.h>
7646 #endif
7648 #undef $ac_func
7650 /* Override any gcc2 internal prototype to avoid an error. */
7651 #ifdef __cplusplus
7652 extern "C"
7654 #endif
7655 /* We use char because int might match the return type of a gcc2
7656 builtin and then its argument prototype would still apply. */
7657 char $ac_func ();
7658 /* The GNU C library defines this for functions which it implements
7659 to always fail with ENOSYS. Some functions are actually named
7660 something starting with __ and the normal name is an alias. */
7661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7662 choke me
7663 #else
7664 char (*f) () = $ac_func;
7665 #endif
7666 #ifdef __cplusplus
7668 #endif
7671 main ()
7673 return f != $ac_func;
7675 return 0;
7677 _ACEOF
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7680 (eval $ac_link) 2>conftest.er1
7681 ac_status=$?
7682 grep -v '^ *+' conftest.er1 >conftest.err
7683 rm -f conftest.er1
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } &&
7687 { ac_try='test -z "$ac_c_werror_flag"
7688 || test ! -s conftest.err'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 (eval $ac_try) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; } &&
7694 { ac_try='test -s conftest$ac_exeext'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 (eval $ac_try) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7700 eval "$as_ac_var=yes"
7701 else
7702 echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7705 eval "$as_ac_var=no"
7707 rm -f conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
7710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7712 if test `eval echo '${'$as_ac_var'}'` = yes; then
7713 cat >>confdefs.h <<_ACEOF
7714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7715 _ACEOF
7718 done
7720 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7721 set dummy gmsgfmt; ac_word=$2
7722 echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7724 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727 case $GMSGFMT in
7728 [\\/]* | ?:[\\/]*)
7729 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 break 2
7743 done
7744 done
7746 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7748 esac
7750 GMSGFMT=$ac_cv_path_GMSGFMT
7752 if test -n "$GMSGFMT"; then
7753 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7754 echo "${ECHO_T}$GMSGFMT" >&6
7755 else
7756 echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6
7760 # Extract the first word of "xgettext", so it can be a program name with args.
7761 set dummy xgettext; ac_word=$2
7762 echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7764 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767 case "$XGETTEXT" in
7769 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7773 for ac_dir in $PATH; do
7774 test -z "$ac_dir" && ac_dir=.
7775 if test -f $ac_dir/$ac_word; then
7776 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7777 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7778 break
7781 done
7782 IFS="$ac_save_ifs"
7783 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7785 esac
7787 XGETTEXT="$ac_cv_path_XGETTEXT"
7788 if test -n "$XGETTEXT"; then
7789 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7790 echo "${ECHO_T}$XGETTEXT" >&6
7791 else
7792 echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6
7796 cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h. */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7804 main ()
7806 extern int _nl_msg_cat_cntr;
7807 return _nl_msg_cat_cntr
7809 return 0;
7811 _ACEOF
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814 (eval $ac_link) 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try='test -s conftest$ac_exeext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 (eval $ac_try) 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 CATOBJEXT=.gmo
7835 DATADIRNAME=share
7836 else
7837 echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7840 CATOBJEXT=.mo
7841 DATADIRNAME=lib
7843 rm -f conftest.err conftest.$ac_objext \
7844 conftest$ac_exeext conftest.$ac_ext
7845 INSTOBJEXT=.mo
7854 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7855 # Neither gettext nor catgets in included in the C library.
7856 # Fall back on GNU gettext library (assuming it is present).
7857 nls_cv_use_gnu_gettext=yes
7861 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7862 INTLOBJS="\$(GETTOBJS)"
7863 # Extract the first word of "msgfmt", so it can be a program name with args.
7864 set dummy msgfmt; ac_word=$2
7865 echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7867 if test "${ac_cv_path_MSGFMT+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870 case "$MSGFMT" in
7872 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7876 for ac_dir in $PATH; do
7877 test -z "$ac_dir" && ac_dir=.
7878 if test -f $ac_dir/$ac_word; then
7879 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7880 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7881 break
7884 done
7885 IFS="$ac_save_ifs"
7886 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7888 esac
7890 MSGFMT="$ac_cv_path_MSGFMT"
7891 if test -n "$MSGFMT"; then
7892 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7893 echo "${ECHO_T}$MSGFMT" >&6
7894 else
7895 echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6
7899 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7900 set dummy gmsgfmt; ac_word=$2
7901 echo "$as_me:$LINENO: checking for $ac_word" >&5
7902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7903 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906 case $GMSGFMT in
7907 [\\/]* | ?:[\\/]*)
7908 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7922 done
7923 done
7925 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7927 esac
7929 GMSGFMT=$ac_cv_path_GMSGFMT
7931 if test -n "$GMSGFMT"; then
7932 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7933 echo "${ECHO_T}$GMSGFMT" >&6
7934 else
7935 echo "$as_me:$LINENO: result: no" >&5
7936 echo "${ECHO_T}no" >&6
7939 # Extract the first word of "xgettext", so it can be a program name with args.
7940 set dummy xgettext; ac_word=$2
7941 echo "$as_me:$LINENO: checking for $ac_word" >&5
7942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7943 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946 case "$XGETTEXT" in
7948 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7952 for ac_dir in $PATH; do
7953 test -z "$ac_dir" && ac_dir=.
7954 if test -f $ac_dir/$ac_word; then
7955 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7956 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7957 break
7960 done
7961 IFS="$ac_save_ifs"
7962 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7964 esac
7966 XGETTEXT="$ac_cv_path_XGETTEXT"
7967 if test -n "$XGETTEXT"; then
7968 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7969 echo "${ECHO_T}$XGETTEXT" >&6
7970 else
7971 echo "$as_me:$LINENO: result: no" >&5
7972 echo "${ECHO_T}no" >&6
7976 USE_INCLUDED_LIBINTL=yes
7977 CATOBJEXT=.gmo
7978 INSTOBJEXT=.mo
7979 DATADIRNAME=share
7980 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7981 INTLLIBS=$INTLDEPS
7982 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7983 nls_cv_header_intl=libintl.h
7984 nls_cv_header_libgt=libgettext.h
7987 if test "$XGETTEXT" != ":"; then
7988 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7990 else
7991 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7992 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7993 XGETTEXT=":"
7997 # We need to process the po/ directory.
7998 POSUB=po
7999 else
8000 DATADIRNAME=share
8001 nls_cv_header_intl=libintl.h
8002 nls_cv_header_libgt=libgettext.h
8005 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8006 # because some of the sources are only built for this goal.
8007 if test "$PACKAGE" = gettext; then
8008 USE_NLS=yes
8009 USE_INCLUDED_LIBINTL=yes
8012 for lang in $ALL_LINGUAS; do
8013 GMOFILES="$GMOFILES $lang.gmo"
8014 POFILES="$POFILES $lang.po"
8015 done
8028 if test "x$CATOBJEXT" != "x"; then
8030 cat >>confdefs.h <<\_ACEOF
8031 #define ENABLE_NLS 1
8032 _ACEOF
8037 if test "x$CATOBJEXT" != "x"; then
8038 if test "x$ALL_LINGUAS" = "x"; then
8039 LINGUAS=
8040 else
8041 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8042 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8043 NEW_LINGUAS=
8044 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8045 case "$ALL_LINGUAS" in
8046 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8047 esac
8048 done
8049 LINGUAS=$NEW_LINGUAS
8050 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8051 echo "${ECHO_T}$LINGUAS" >&6
8054 if test -n "$LINGUAS"; then
8055 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8059 if test $ac_cv_header_locale_h = yes; then
8060 INCLUDE_LOCALE_H="#include <locale.h>"
8061 else
8062 INCLUDE_LOCALE_H="\
8063 /* The system does not provide the header <locale.h>. Take care yourself. */"
8067 if test -f $srcdir/po2tbl.sed.in; then
8068 if test "$CATOBJEXT" = ".cat"; then
8069 if test "${ac_cv_header_linux_version_h+set}" = set; then
8070 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8071 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8072 if test "${ac_cv_header_linux_version_h+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8076 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8077 else
8078 # Is the header compilable?
8079 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8080 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8081 cat >conftest.$ac_ext <<_ACEOF
8082 /* confdefs.h. */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 $ac_includes_default
8088 #include <linux/version.h>
8089 _ACEOF
8090 rm -f conftest.$ac_objext
8091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8092 (eval $ac_compile) 2>conftest.er1
8093 ac_status=$?
8094 grep -v '^ *+' conftest.er1 >conftest.err
8095 rm -f conftest.er1
8096 cat conftest.err >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } &&
8099 { ac_try='test -z "$ac_c_werror_flag"
8100 || test ! -s conftest.err'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 (eval $ac_try) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; } &&
8106 { ac_try='test -s conftest.$ac_objext'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8112 ac_header_compiler=yes
8113 else
8114 echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8117 ac_header_compiler=no
8119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8121 echo "${ECHO_T}$ac_header_compiler" >&6
8123 # Is the header present?
8124 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8125 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8126 cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h. */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 #include <linux/version.h>
8133 _ACEOF
8134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8136 ac_status=$?
8137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } >/dev/null; then
8142 if test -s conftest.err; then
8143 ac_cpp_err=$ac_c_preproc_warn_flag
8144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8145 else
8146 ac_cpp_err=
8148 else
8149 ac_cpp_err=yes
8151 if test -z "$ac_cpp_err"; then
8152 ac_header_preproc=yes
8153 else
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_header_preproc=no
8159 rm -f conftest.err conftest.$ac_ext
8160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8161 echo "${ECHO_T}$ac_header_preproc" >&6
8163 # So? What about this header?
8164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8165 yes:no: )
8166 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8167 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8169 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8170 ac_header_preproc=yes
8172 no:yes:* )
8173 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8174 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8175 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8176 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8178 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8179 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8180 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8181 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8182 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8184 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8186 cat <<\_ASBOX
8187 ## ------------------------------------------ ##
8188 ## Report this to the AC_PACKAGE_NAME lists. ##
8189 ## ------------------------------------------ ##
8190 _ASBOX
8192 sed "s/^/$as_me: WARNING: /" >&2
8194 esac
8195 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8196 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8197 if test "${ac_cv_header_linux_version_h+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 else
8200 ac_cv_header_linux_version_h=$ac_header_preproc
8202 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8203 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8206 if test $ac_cv_header_linux_version_h = yes; then
8207 msgformat=linux
8208 else
8209 msgformat=xopen
8214 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8216 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8217 $srcdir/po2tbl.sed.in > po2tbl.sed
8220 if test "$PACKAGE" = "gettext"; then
8221 GT_NO="#NO#"
8222 GT_YES=
8223 else
8224 GT_NO=
8225 GT_YES="#YES#"
8230 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8236 if test -f $srcdir/po/POTFILES.in; then
8237 test -d po || mkdir po
8238 if test "x$srcdir" != "x."; then
8239 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8240 posrcprefix="$srcdir/"
8241 else
8242 posrcprefix="../$srcdir/"
8244 else
8245 posrcprefix="../"
8247 rm -f po/POTFILES
8248 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8249 < $srcdir/po/POTFILES.in > po/POTFILES
8253 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8254 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8255 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8256 if test "${enable_maintainer_mode+set}" = set; then
8257 enableval="$enable_maintainer_mode"
8258 USE_MAINTAINER_MODE=$enableval
8259 else
8260 USE_MAINTAINER_MODE=no
8262 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8263 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8266 if test $USE_MAINTAINER_MODE = yes; then
8267 MAINTAINER_MODE_TRUE=
8268 MAINTAINER_MODE_FALSE='#'
8269 else
8270 MAINTAINER_MODE_TRUE='#'
8271 MAINTAINER_MODE_FALSE=
8274 MAINT=$MAINTAINER_MODE_TRUE
8280 for ac_header in sys/gmon_out.h
8282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8284 echo "$as_me:$LINENO: checking for $ac_header" >&5
8285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8291 else
8292 # Is the header compilable?
8293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8295 cat >conftest.$ac_ext <<_ACEOF
8296 /* confdefs.h. */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8301 $ac_includes_default
8302 #include <$ac_header>
8303 _ACEOF
8304 rm -f conftest.$ac_objext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8306 (eval $ac_compile) 2>conftest.er1
8307 ac_status=$?
8308 grep -v '^ *+' conftest.er1 >conftest.err
8309 rm -f conftest.er1
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } &&
8313 { ac_try='test -z "$ac_c_werror_flag"
8314 || test ! -s conftest.err'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 (eval $ac_try) 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; } &&
8320 { ac_try='test -s conftest.$ac_objext'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 ac_header_compiler=yes
8327 else
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8331 ac_header_compiler=no
8333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8335 echo "${ECHO_T}$ac_header_compiler" >&6
8337 # Is the header present?
8338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8340 cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h. */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8346 #include <$ac_header>
8347 _ACEOF
8348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8350 ac_status=$?
8351 grep -v '^ *+' conftest.er1 >conftest.err
8352 rm -f conftest.er1
8353 cat conftest.err >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } >/dev/null; then
8356 if test -s conftest.err; then
8357 ac_cpp_err=$ac_c_preproc_warn_flag
8358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8359 else
8360 ac_cpp_err=
8362 else
8363 ac_cpp_err=yes
8365 if test -z "$ac_cpp_err"; then
8366 ac_header_preproc=yes
8367 else
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 ac_header_preproc=no
8373 rm -f conftest.err conftest.$ac_ext
8374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8375 echo "${ECHO_T}$ac_header_preproc" >&6
8377 # So? What about this header?
8378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8379 yes:no: )
8380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8384 ac_header_preproc=yes
8386 no:yes:* )
8387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8400 cat <<\_ASBOX
8401 ## ------------------------------------------ ##
8402 ## Report this to the AC_PACKAGE_NAME lists. ##
8403 ## ------------------------------------------ ##
8404 _ASBOX
8406 sed "s/^/$as_me: WARNING: /" >&2
8408 esac
8409 echo "$as_me:$LINENO: checking for $ac_header" >&5
8410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414 eval "$as_ac_Header=\$ac_header_preproc"
8416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8421 cat >>confdefs.h <<_ACEOF
8422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8423 _ACEOF
8427 done
8430 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
8431 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
8432 if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h. */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 #include <unistd.h>
8443 main ()
8445 extern int getopt (int, char *const*, const char *);
8447 return 0;
8449 _ACEOF
8450 rm -f conftest.$ac_objext
8451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8452 (eval $ac_compile) 2>conftest.er1
8453 ac_status=$?
8454 grep -v '^ *+' conftest.er1 >conftest.err
8455 rm -f conftest.er1
8456 cat conftest.err >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } &&
8459 { ac_try='test -z "$ac_c_werror_flag"
8460 || test ! -s conftest.err'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 (eval $ac_try) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; } &&
8466 { ac_try='test -s conftest.$ac_objext'
8467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 (eval $ac_try) 2>&5
8469 ac_status=$?
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; }; then
8472 gprof_cv_decl_getopt_unistd_h=yes
8473 else
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8477 gprof_cv_decl_getopt_unistd_h=no
8479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8482 echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
8483 echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6
8484 if test $gprof_cv_decl_getopt_unistd_h = yes; then
8486 cat >>confdefs.h <<\_ACEOF
8487 #define HAVE_DECL_GETOPT 1
8488 _ACEOF
8493 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
8495 # Check whether --enable-werror or --disable-werror was given.
8496 if test "${enable_werror+set}" = set; then
8497 enableval="$enable_werror"
8498 case "${enableval}" in
8499 yes | y) ERROR_ON_WARNING="yes" ;;
8500 no | n) ERROR_ON_WARNING="no" ;;
8501 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
8502 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
8503 { (exit 1); exit 1; }; } ;;
8504 esac
8507 # Enable -Werror by default when using gcc
8508 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
8509 ERROR_ON_WARNING=yes
8512 NO_WERROR=
8513 if test "${ERROR_ON_WARNING}" = yes ; then
8514 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
8515 NO_WERROR="-Wno-error"
8518 if test "${GCC}" = yes ; then
8519 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
8522 # Check whether --enable-build-warnings or --disable-build-warnings was given.
8523 if test "${enable_build_warnings+set}" = set; then
8524 enableval="$enable_build_warnings"
8525 case "${enableval}" in
8526 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
8527 no) if test "${GCC}" = yes ; then
8528 WARN_CFLAGS="-w"
8529 fi;;
8530 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8531 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
8532 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8533 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
8534 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8535 esac
8538 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
8539 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
8550 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
8552 ac_config_commands="$ac_config_commands default"
8554 cat >confcache <<\_ACEOF
8555 # This file is a shell script that caches the results of configure
8556 # tests run on this system so they can be shared between configure
8557 # scripts and configure runs, see configure's option --config-cache.
8558 # It is not useful on other systems. If it contains results you don't
8559 # want to keep, you may remove or edit it.
8561 # config.status only pays attention to the cache file if you give it
8562 # the --recheck option to rerun configure.
8564 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8565 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8566 # following values.
8568 _ACEOF
8570 # The following way of writing the cache mishandles newlines in values,
8571 # but we know of no workaround that is simple, portable, and efficient.
8572 # So, don't put newlines in cache variables' values.
8573 # Ultrix sh set writes to stderr and can't be redirected directly,
8574 # and sets the high bit in the cache file unless we assign to the vars.
8576 (set) 2>&1 |
8577 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8578 *ac_space=\ *)
8579 # `set' does not quote correctly, so add quotes (double-quote
8580 # substitution turns \\\\ into \\, and sed turns \\ into \).
8581 sed -n \
8582 "s/'/'\\\\''/g;
8583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8586 # `set' quotes correctly as required by POSIX, so do not add quotes.
8587 sed -n \
8588 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8590 esac;
8592 sed '
8593 t clear
8594 : clear
8595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8596 t end
8597 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8598 : end' >>confcache
8599 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8600 if test -w $cache_file; then
8601 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8602 cat confcache >$cache_file
8603 else
8604 echo "not updating unwritable cache $cache_file"
8607 rm -f confcache
8609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8610 # Let make expand exec_prefix.
8611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8613 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8614 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8615 # trailing colons and then remove the whole line if VPATH becomes empty
8616 # (actually we leave an empty line to preserve line numbers).
8617 if test "x$srcdir" = x.; then
8618 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8619 s/:*\$(srcdir):*/:/;
8620 s/:*\${srcdir}:*/:/;
8621 s/:*@srcdir@:*/:/;
8622 s/^\([^=]*=[ ]*\):*/\1/;
8623 s/:*$//;
8624 s/^[^=]*=[ ]*$//;
8628 DEFS=-DHAVE_CONFIG_H
8630 ac_libobjs=
8631 ac_ltlibobjs=
8632 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8633 # 1. Remove the extension, and $U if already installed.
8634 ac_i=`echo "$ac_i" |
8635 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8636 # 2. Add them.
8637 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8638 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8639 done
8640 LIBOBJS=$ac_libobjs
8642 LTLIBOBJS=$ac_ltlibobjs
8645 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8646 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8647 Usually this means the macro was only invoked conditionally." >&5
8648 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8649 Usually this means the macro was only invoked conditionally." >&2;}
8650 { (exit 1); exit 1; }; }
8652 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8653 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8654 Usually this means the macro was only invoked conditionally." >&5
8655 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8656 Usually this means the macro was only invoked conditionally." >&2;}
8657 { (exit 1); exit 1; }; }
8659 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8660 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8661 Usually this means the macro was only invoked conditionally." >&5
8662 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8663 Usually this means the macro was only invoked conditionally." >&2;}
8664 { (exit 1); exit 1; }; }
8667 : ${CONFIG_STATUS=./config.status}
8668 ac_clean_files_save=$ac_clean_files
8669 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8670 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8671 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8672 cat >$CONFIG_STATUS <<_ACEOF
8673 #! $SHELL
8674 # Generated by $as_me.
8675 # Run this file to recreate the current configuration.
8676 # Compiler output produced by configure, useful for debugging
8677 # configure, is in config.log if it exists.
8679 debug=false
8680 ac_cs_recheck=false
8681 ac_cs_silent=false
8682 SHELL=\${CONFIG_SHELL-$SHELL}
8683 _ACEOF
8685 cat >>$CONFIG_STATUS <<\_ACEOF
8686 ## --------------------- ##
8687 ## M4sh Initialization. ##
8688 ## --------------------- ##
8690 # Be Bourne compatible
8691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8692 emulate sh
8693 NULLCMD=:
8694 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8695 # is contrary to our usage. Disable this feature.
8696 alias -g '${1+"$@"}'='"$@"'
8697 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8698 set -o posix
8700 DUALCASE=1; export DUALCASE # for MKS sh
8702 # Support unset when possible.
8703 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8704 as_unset=unset
8705 else
8706 as_unset=false
8710 # Work around bugs in pre-3.0 UWIN ksh.
8711 $as_unset ENV MAIL MAILPATH
8712 PS1='$ '
8713 PS2='> '
8714 PS4='+ '
8716 # NLS nuisances.
8717 for as_var in \
8718 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8719 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8720 LC_TELEPHONE LC_TIME
8722 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8723 eval $as_var=C; export $as_var
8724 else
8725 $as_unset $as_var
8727 done
8729 # Required to use basename.
8730 if expr a : '\(a\)' >/dev/null 2>&1; then
8731 as_expr=expr
8732 else
8733 as_expr=false
8736 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8737 as_basename=basename
8738 else
8739 as_basename=false
8743 # Name of the executable.
8744 as_me=`$as_basename "$0" ||
8745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8746 X"$0" : 'X\(//\)$' \| \
8747 X"$0" : 'X\(/\)$' \| \
8748 . : '\(.\)' 2>/dev/null ||
8749 echo X/"$0" |
8750 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8751 /^X\/\(\/\/\)$/{ s//\1/; q; }
8752 /^X\/\(\/\).*/{ s//\1/; q; }
8753 s/.*/./; q'`
8756 # PATH needs CR, and LINENO needs CR and PATH.
8757 # Avoid depending upon Character Ranges.
8758 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8759 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8760 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8761 as_cr_digits='0123456789'
8762 as_cr_alnum=$as_cr_Letters$as_cr_digits
8764 # The user is always right.
8765 if test "${PATH_SEPARATOR+set}" != set; then
8766 echo "#! /bin/sh" >conf$$.sh
8767 echo "exit 0" >>conf$$.sh
8768 chmod +x conf$$.sh
8769 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8770 PATH_SEPARATOR=';'
8771 else
8772 PATH_SEPARATOR=:
8774 rm -f conf$$.sh
8778 as_lineno_1=$LINENO
8779 as_lineno_2=$LINENO
8780 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8781 test "x$as_lineno_1" != "x$as_lineno_2" &&
8782 test "x$as_lineno_3" = "x$as_lineno_2" || {
8783 # Find who we are. Look in the path if we contain no path at all
8784 # relative or not.
8785 case $0 in
8786 *[\\/]* ) as_myself=$0 ;;
8787 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 for as_dir in $PATH
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
8792 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8793 done
8796 esac
8797 # We did not find ourselves, most probably we were run as `sh COMMAND'
8798 # in which case we are not to be found in the path.
8799 if test "x$as_myself" = x; then
8800 as_myself=$0
8802 if test ! -f "$as_myself"; then
8803 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8804 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8805 { (exit 1); exit 1; }; }
8807 case $CONFIG_SHELL in
8809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8812 IFS=$as_save_IFS
8813 test -z "$as_dir" && as_dir=.
8814 for as_base in sh bash ksh sh5; do
8815 case $as_dir in
8817 if ("$as_dir/$as_base" -c '
8818 as_lineno_1=$LINENO
8819 as_lineno_2=$LINENO
8820 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8821 test "x$as_lineno_1" != "x$as_lineno_2" &&
8822 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8823 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8824 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8825 CONFIG_SHELL=$as_dir/$as_base
8826 export CONFIG_SHELL
8827 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8828 fi;;
8829 esac
8830 done
8831 done
8833 esac
8835 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8836 # uniformly replaced by the line number. The first 'sed' inserts a
8837 # line-number line before each line; the second 'sed' does the real
8838 # work. The second script uses 'N' to pair each line-number line
8839 # with the numbered line, and appends trailing '-' during
8840 # substitution so that $LINENO is not a special case at line end.
8841 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8842 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8843 sed '=' <$as_myself |
8844 sed '
8846 s,$,-,
8847 : loop
8848 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8849 t loop
8850 s,-$,,
8851 s,^['$as_cr_digits']*\n,,
8852 ' >$as_me.lineno &&
8853 chmod +x $as_me.lineno ||
8854 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8855 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8856 { (exit 1); exit 1; }; }
8858 # Don't try to exec as it changes $[0], causing all sort of problems
8859 # (the dirname of $[0] is not the place where we might find the
8860 # original and so on. Autoconf is especially sensible to this).
8861 . ./$as_me.lineno
8862 # Exit status is that of the last command.
8863 exit
8867 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8868 *c*,-n*) ECHO_N= ECHO_C='
8869 ' ECHO_T=' ' ;;
8870 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8871 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8872 esac
8874 if expr a : '\(a\)' >/dev/null 2>&1; then
8875 as_expr=expr
8876 else
8877 as_expr=false
8880 rm -f conf$$ conf$$.exe conf$$.file
8881 echo >conf$$.file
8882 if ln -s conf$$.file conf$$ 2>/dev/null; then
8883 # We could just check for DJGPP; but this test a) works b) is more generic
8884 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8885 if test -f conf$$.exe; then
8886 # Don't use ln at all; we don't have any links
8887 as_ln_s='cp -p'
8888 else
8889 as_ln_s='ln -s'
8891 elif ln conf$$.file conf$$ 2>/dev/null; then
8892 as_ln_s=ln
8893 else
8894 as_ln_s='cp -p'
8896 rm -f conf$$ conf$$.exe conf$$.file
8898 if mkdir -p . 2>/dev/null; then
8899 as_mkdir_p=:
8900 else
8901 test -d ./-p && rmdir ./-p
8902 as_mkdir_p=false
8905 as_executable_p="test -f"
8907 # Sed expression to map a string onto a valid CPP name.
8908 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8910 # Sed expression to map a string onto a valid variable name.
8911 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8914 # IFS
8915 # We need space, tab and new line, in precisely that order.
8916 as_nl='
8918 IFS=" $as_nl"
8920 # CDPATH.
8921 $as_unset CDPATH
8923 exec 6>&1
8925 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8926 # report actual input values of CONFIG_FILES etc. instead of their
8927 # values after options handling. Logging --version etc. is OK.
8928 exec 5>>config.log
8930 echo
8931 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8932 ## Running $as_me. ##
8933 _ASBOX
8934 } >&5
8935 cat >&5 <<_CSEOF
8937 This file was extended by $as_me, which was
8938 generated by GNU Autoconf 2.59. Invocation command line was
8940 CONFIG_FILES = $CONFIG_FILES
8941 CONFIG_HEADERS = $CONFIG_HEADERS
8942 CONFIG_LINKS = $CONFIG_LINKS
8943 CONFIG_COMMANDS = $CONFIG_COMMANDS
8944 $ $0 $@
8946 _CSEOF
8947 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8948 echo >&5
8949 _ACEOF
8951 # Files that config.status was made for.
8952 if test -n "$ac_config_files"; then
8953 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8956 if test -n "$ac_config_headers"; then
8957 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8960 if test -n "$ac_config_links"; then
8961 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8964 if test -n "$ac_config_commands"; then
8965 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8968 cat >>$CONFIG_STATUS <<\_ACEOF
8970 ac_cs_usage="\
8971 \`$as_me' instantiates files from templates according to the
8972 current configuration.
8974 Usage: $0 [OPTIONS] [FILE]...
8976 -h, --help print this help, then exit
8977 -V, --version print version number, then exit
8978 -q, --quiet do not print progress messages
8979 -d, --debug don't remove temporary files
8980 --recheck update $as_me by reconfiguring in the same conditions
8981 --file=FILE[:TEMPLATE]
8982 instantiate the configuration file FILE
8983 --header=FILE[:TEMPLATE]
8984 instantiate the configuration header FILE
8986 Configuration files:
8987 $config_files
8989 Configuration headers:
8990 $config_headers
8992 Configuration commands:
8993 $config_commands
8995 Report bugs to <bug-autoconf@gnu.org>."
8996 _ACEOF
8998 cat >>$CONFIG_STATUS <<_ACEOF
8999 ac_cs_version="\\
9000 config.status
9001 configured by $0, generated by GNU Autoconf 2.59,
9002 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9004 Copyright (C) 2003 Free Software Foundation, Inc.
9005 This config.status script is free software; the Free Software Foundation
9006 gives unlimited permission to copy, distribute and modify it."
9007 srcdir=$srcdir
9008 INSTALL="$INSTALL"
9009 _ACEOF
9011 cat >>$CONFIG_STATUS <<\_ACEOF
9012 # If no file are specified by the user, then we need to provide default
9013 # value. By we need to know if files were specified by the user.
9014 ac_need_defaults=:
9015 while test $# != 0
9017 case $1 in
9018 --*=*)
9019 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9020 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9021 ac_shift=:
9024 ac_option=$1
9025 ac_optarg=$2
9026 ac_shift=shift
9028 *) # This is not an option, so the user has probably given explicit
9029 # arguments.
9030 ac_option=$1
9031 ac_need_defaults=false;;
9032 esac
9034 case $ac_option in
9035 # Handling of the options.
9036 _ACEOF
9037 cat >>$CONFIG_STATUS <<\_ACEOF
9038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9039 ac_cs_recheck=: ;;
9040 --version | --vers* | -V )
9041 echo "$ac_cs_version"; exit 0 ;;
9042 --he | --h)
9043 # Conflict between --help and --header
9044 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9045 Try \`$0 --help' for more information." >&5
9046 echo "$as_me: error: ambiguous option: $1
9047 Try \`$0 --help' for more information." >&2;}
9048 { (exit 1); exit 1; }; };;
9049 --help | --hel | -h )
9050 echo "$ac_cs_usage"; exit 0 ;;
9051 --debug | --d* | -d )
9052 debug=: ;;
9053 --file | --fil | --fi | --f )
9054 $ac_shift
9055 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9056 ac_need_defaults=false;;
9057 --header | --heade | --head | --hea )
9058 $ac_shift
9059 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9060 ac_need_defaults=false;;
9061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9062 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9063 ac_cs_silent=: ;;
9065 # This is an error.
9066 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9067 Try \`$0 --help' for more information." >&5
9068 echo "$as_me: error: unrecognized option: $1
9069 Try \`$0 --help' for more information." >&2;}
9070 { (exit 1); exit 1; }; } ;;
9072 *) ac_config_targets="$ac_config_targets $1" ;;
9074 esac
9075 shift
9076 done
9078 ac_configure_extra_args=
9080 if $ac_cs_silent; then
9081 exec 6>/dev/null
9082 ac_configure_extra_args="$ac_configure_extra_args --silent"
9085 _ACEOF
9086 cat >>$CONFIG_STATUS <<_ACEOF
9087 if \$ac_cs_recheck; then
9088 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9089 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9092 _ACEOF
9094 cat >>$CONFIG_STATUS <<_ACEOF
9096 # INIT-COMMANDS section.
9099 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9102 _ACEOF
9106 cat >>$CONFIG_STATUS <<\_ACEOF
9107 for ac_config_target in $ac_config_targets
9109 case "$ac_config_target" in
9110 # Handling of arguments.
9111 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9112 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9113 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9114 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9115 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
9116 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9117 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9118 { (exit 1); exit 1; }; };;
9119 esac
9120 done
9122 # If the user did not use the arguments to specify the items to instantiate,
9123 # then the envvar interface is used. Set only those that are not.
9124 # We use the long form for the default assignment because of an extremely
9125 # bizarre bug on SunOS 4.1.3.
9126 if $ac_need_defaults; then
9127 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9128 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9132 # Have a temporary directory for convenience. Make it in the build tree
9133 # simply because there is no reason to put it here, and in addition,
9134 # creating and moving files from /tmp can sometimes cause problems.
9135 # Create a temporary directory, and hook for its removal unless debugging.
9136 $debug ||
9138 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9139 trap '{ (exit 1); exit 1; }' 1 2 13 15
9142 # Create a (secure) tmp directory for tmp files.
9145 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9146 test -n "$tmp" && test -d "$tmp"
9147 } ||
9149 tmp=./confstat$$-$RANDOM
9150 (umask 077 && mkdir $tmp)
9151 } ||
9153 echo "$me: cannot create a temporary directory in ." >&2
9154 { (exit 1); exit 1; }
9157 _ACEOF
9159 cat >>$CONFIG_STATUS <<_ACEOF
9162 # CONFIG_FILES section.
9165 # No need to generate the scripts if there are no CONFIG_FILES.
9166 # This happens for instance when ./config.status config.h
9167 if test -n "\$CONFIG_FILES"; then
9168 # Protect against being on the right side of a sed subst in config.status.
9169 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9170 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9171 s,@SHELL@,$SHELL,;t t
9172 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9173 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9174 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9175 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9176 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9177 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9178 s,@exec_prefix@,$exec_prefix,;t t
9179 s,@prefix@,$prefix,;t t
9180 s,@program_transform_name@,$program_transform_name,;t t
9181 s,@bindir@,$bindir,;t t
9182 s,@sbindir@,$sbindir,;t t
9183 s,@libexecdir@,$libexecdir,;t t
9184 s,@datadir@,$datadir,;t t
9185 s,@sysconfdir@,$sysconfdir,;t t
9186 s,@sharedstatedir@,$sharedstatedir,;t t
9187 s,@localstatedir@,$localstatedir,;t t
9188 s,@libdir@,$libdir,;t t
9189 s,@includedir@,$includedir,;t t
9190 s,@oldincludedir@,$oldincludedir,;t t
9191 s,@infodir@,$infodir,;t t
9192 s,@mandir@,$mandir,;t t
9193 s,@build_alias@,$build_alias,;t t
9194 s,@host_alias@,$host_alias,;t t
9195 s,@target_alias@,$target_alias,;t t
9196 s,@DEFS@,$DEFS,;t t
9197 s,@ECHO_C@,$ECHO_C,;t t
9198 s,@ECHO_N@,$ECHO_N,;t t
9199 s,@ECHO_T@,$ECHO_T,;t t
9200 s,@LIBS@,$LIBS,;t t
9201 s,@build@,$build,;t t
9202 s,@build_cpu@,$build_cpu,;t t
9203 s,@build_vendor@,$build_vendor,;t t
9204 s,@build_os@,$build_os,;t t
9205 s,@host@,$host,;t t
9206 s,@host_cpu@,$host_cpu,;t t
9207 s,@host_vendor@,$host_vendor,;t t
9208 s,@host_os@,$host_os,;t t
9209 s,@target@,$target,;t t
9210 s,@target_cpu@,$target_cpu,;t t
9211 s,@target_vendor@,$target_vendor,;t t
9212 s,@target_os@,$target_os,;t t
9213 s,@CC@,$CC,;t t
9214 s,@CFLAGS@,$CFLAGS,;t t
9215 s,@LDFLAGS@,$LDFLAGS,;t t
9216 s,@CPPFLAGS@,$CPPFLAGS,;t t
9217 s,@ac_ct_CC@,$ac_ct_CC,;t t
9218 s,@EXEEXT@,$EXEEXT,;t t
9219 s,@OBJEXT@,$OBJEXT,;t t
9220 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9221 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9222 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9223 s,@CYGPATH_W@,$CYGPATH_W,;t t
9224 s,@PACKAGE@,$PACKAGE,;t t
9225 s,@VERSION@,$VERSION,;t t
9226 s,@ACLOCAL@,$ACLOCAL,;t t
9227 s,@AUTOCONF@,$AUTOCONF,;t t
9228 s,@AUTOMAKE@,$AUTOMAKE,;t t
9229 s,@AUTOHEADER@,$AUTOHEADER,;t t
9230 s,@MAKEINFO@,$MAKEINFO,;t t
9231 s,@install_sh@,$install_sh,;t t
9232 s,@STRIP@,$STRIP,;t t
9233 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9234 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9235 s,@mkdir_p@,$mkdir_p,;t t
9236 s,@AWK@,$AWK,;t t
9237 s,@SET_MAKE@,$SET_MAKE,;t t
9238 s,@am__leading_dot@,$am__leading_dot,;t t
9239 s,@AMTAR@,$AMTAR,;t t
9240 s,@am__tar@,$am__tar,;t t
9241 s,@am__untar@,$am__untar,;t t
9242 s,@DEPDIR@,$DEPDIR,;t t
9243 s,@am__include@,$am__include,;t t
9244 s,@am__quote@,$am__quote,;t t
9245 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9246 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9247 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9248 s,@CCDEPMODE@,$CCDEPMODE,;t t
9249 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9250 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9251 s,@LN_S@,$LN_S,;t t
9252 s,@RANLIB@,$RANLIB,;t t
9253 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9254 s,@LIBTOOL@,$LIBTOOL,;t t
9255 s,@PKGVERSION@,$PKGVERSION,;t t
9256 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
9257 s,@CPP@,$CPP,;t t
9258 s,@EGREP@,$EGREP,;t t
9259 s,@ALLOCA@,$ALLOCA,;t t
9260 s,@USE_NLS@,$USE_NLS,;t t
9261 s,@MSGFMT@,$MSGFMT,;t t
9262 s,@GMSGFMT@,$GMSGFMT,;t t
9263 s,@XGETTEXT@,$XGETTEXT,;t t
9264 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9265 s,@CATALOGS@,$CATALOGS,;t t
9266 s,@CATOBJEXT@,$CATOBJEXT,;t t
9267 s,@DATADIRNAME@,$DATADIRNAME,;t t
9268 s,@GMOFILES@,$GMOFILES,;t t
9269 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9270 s,@INTLDEPS@,$INTLDEPS,;t t
9271 s,@INTLLIBS@,$INTLLIBS,;t t
9272 s,@INTLOBJS@,$INTLOBJS,;t t
9273 s,@POFILES@,$POFILES,;t t
9274 s,@POSUB@,$POSUB,;t t
9275 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9276 s,@GT_NO@,$GT_NO,;t t
9277 s,@GT_YES@,$GT_YES,;t t
9278 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9279 s,@l@,$l,;t t
9280 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9281 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9282 s,@MAINT@,$MAINT,;t t
9283 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9284 s,@NO_WERROR@,$NO_WERROR,;t t
9285 s,@datarootdir@,$datarootdir,;t t
9286 s,@docdir@,$docdir,;t t
9287 s,@htmldir@,$htmldir,;t t
9288 s,@LIBOBJS@,$LIBOBJS,;t t
9289 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9290 CEOF
9292 _ACEOF
9294 cat >>$CONFIG_STATUS <<\_ACEOF
9295 # Split the substitutions into bite-sized pieces for seds with
9296 # small command number limits, like on Digital OSF/1 and HP-UX.
9297 ac_max_sed_lines=48
9298 ac_sed_frag=1 # Number of current file.
9299 ac_beg=1 # First line for current file.
9300 ac_end=$ac_max_sed_lines # Line after last line for current file.
9301 ac_more_lines=:
9302 ac_sed_cmds=
9303 while $ac_more_lines; do
9304 if test $ac_beg -gt 1; then
9305 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9306 else
9307 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9309 if test ! -s $tmp/subs.frag; then
9310 ac_more_lines=false
9311 else
9312 # The purpose of the label and of the branching condition is to
9313 # speed up the sed processing (if there are no `@' at all, there
9314 # is no need to browse any of the substitutions).
9315 # These are the two extra sed commands mentioned above.
9316 (echo ':t
9317 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9318 if test -z "$ac_sed_cmds"; then
9319 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9320 else
9321 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9323 ac_sed_frag=`expr $ac_sed_frag + 1`
9324 ac_beg=$ac_end
9325 ac_end=`expr $ac_end + $ac_max_sed_lines`
9327 done
9328 if test -z "$ac_sed_cmds"; then
9329 ac_sed_cmds=cat
9331 fi # test -n "$CONFIG_FILES"
9333 _ACEOF
9334 cat >>$CONFIG_STATUS <<\_ACEOF
9335 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9336 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9337 case $ac_file in
9338 - | *:- | *:-:* ) # input from stdin
9339 cat >$tmp/stdin
9340 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9341 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9342 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9343 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9344 * ) ac_file_in=$ac_file.in ;;
9345 esac
9347 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9348 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9349 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9350 X"$ac_file" : 'X\(//\)[^/]' \| \
9351 X"$ac_file" : 'X\(//\)$' \| \
9352 X"$ac_file" : 'X\(/\)' \| \
9353 . : '\(.\)' 2>/dev/null ||
9354 echo X"$ac_file" |
9355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9357 /^X\(\/\/\)$/{ s//\1/; q; }
9358 /^X\(\/\).*/{ s//\1/; q; }
9359 s/.*/./; q'`
9360 { if $as_mkdir_p; then
9361 mkdir -p "$ac_dir"
9362 else
9363 as_dir="$ac_dir"
9364 as_dirs=
9365 while test ! -d "$as_dir"; do
9366 as_dirs="$as_dir $as_dirs"
9367 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9369 X"$as_dir" : 'X\(//\)[^/]' \| \
9370 X"$as_dir" : 'X\(//\)$' \| \
9371 X"$as_dir" : 'X\(/\)' \| \
9372 . : '\(.\)' 2>/dev/null ||
9373 echo X"$as_dir" |
9374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9375 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9376 /^X\(\/\/\)$/{ s//\1/; q; }
9377 /^X\(\/\).*/{ s//\1/; q; }
9378 s/.*/./; q'`
9379 done
9380 test ! -n "$as_dirs" || mkdir $as_dirs
9381 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9382 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9383 { (exit 1); exit 1; }; }; }
9385 ac_builddir=.
9387 if test "$ac_dir" != .; then
9388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9389 # A "../" for each directory in $ac_dir_suffix.
9390 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9391 else
9392 ac_dir_suffix= ac_top_builddir=
9395 case $srcdir in
9396 .) # No --srcdir option. We are building in place.
9397 ac_srcdir=.
9398 if test -z "$ac_top_builddir"; then
9399 ac_top_srcdir=.
9400 else
9401 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9402 fi ;;
9403 [\\/]* | ?:[\\/]* ) # Absolute path.
9404 ac_srcdir=$srcdir$ac_dir_suffix;
9405 ac_top_srcdir=$srcdir ;;
9406 *) # Relative path.
9407 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9408 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9409 esac
9411 # Do not use `cd foo && pwd` to compute absolute paths, because
9412 # the directories may not exist.
9413 case `pwd` in
9414 .) ac_abs_builddir="$ac_dir";;
9416 case "$ac_dir" in
9417 .) ac_abs_builddir=`pwd`;;
9418 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9419 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9420 esac;;
9421 esac
9422 case $ac_abs_builddir in
9423 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9425 case ${ac_top_builddir}. in
9426 .) ac_abs_top_builddir=$ac_abs_builddir;;
9427 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9428 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9429 esac;;
9430 esac
9431 case $ac_abs_builddir in
9432 .) ac_abs_srcdir=$ac_srcdir;;
9434 case $ac_srcdir in
9435 .) ac_abs_srcdir=$ac_abs_builddir;;
9436 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9437 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9438 esac;;
9439 esac
9440 case $ac_abs_builddir in
9441 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9443 case $ac_top_srcdir in
9444 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9445 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9446 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9447 esac;;
9448 esac
9451 case $INSTALL in
9452 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9453 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9454 esac
9456 if test x"$ac_file" != x-; then
9457 { echo "$as_me:$LINENO: creating $ac_file" >&5
9458 echo "$as_me: creating $ac_file" >&6;}
9459 rm -f "$ac_file"
9461 # Let's still pretend it is `configure' which instantiates (i.e., don't
9462 # use $as_me), people would be surprised to read:
9463 # /* config.h. Generated by config.status. */
9464 if test x"$ac_file" = x-; then
9465 configure_input=
9466 else
9467 configure_input="$ac_file. "
9469 configure_input=$configure_input"Generated from `echo $ac_file_in |
9470 sed 's,.*/,,'` by configure."
9472 # First look for the input files in the build tree, otherwise in the
9473 # src tree.
9474 ac_file_inputs=`IFS=:
9475 for f in $ac_file_in; do
9476 case $f in
9477 -) echo $tmp/stdin ;;
9478 [\\/$]*)
9479 # Absolute (can't be DOS-style, as IFS=:)
9480 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9481 echo "$as_me: error: cannot find input file: $f" >&2;}
9482 { (exit 1); exit 1; }; }
9483 echo "$f";;
9484 *) # Relative
9485 if test -f "$f"; then
9486 # Build tree
9487 echo "$f"
9488 elif test -f "$srcdir/$f"; then
9489 # Source tree
9490 echo "$srcdir/$f"
9491 else
9492 # /dev/null tree
9493 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9494 echo "$as_me: error: cannot find input file: $f" >&2;}
9495 { (exit 1); exit 1; }; }
9496 fi;;
9497 esac
9498 done` || { (exit 1); exit 1; }
9499 _ACEOF
9500 cat >>$CONFIG_STATUS <<_ACEOF
9501 sed "$ac_vpsub
9502 $extrasub
9503 _ACEOF
9504 cat >>$CONFIG_STATUS <<\_ACEOF
9506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9507 s,@configure_input@,$configure_input,;t t
9508 s,@srcdir@,$ac_srcdir,;t t
9509 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9510 s,@top_srcdir@,$ac_top_srcdir,;t t
9511 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9512 s,@builddir@,$ac_builddir,;t t
9513 s,@abs_builddir@,$ac_abs_builddir,;t t
9514 s,@top_builddir@,$ac_top_builddir,;t t
9515 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9516 s,@INSTALL@,$ac_INSTALL,;t t
9517 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9518 rm -f $tmp/stdin
9519 if test x"$ac_file" != x-; then
9520 mv $tmp/out $ac_file
9521 else
9522 cat $tmp/out
9523 rm -f $tmp/out
9526 done
9527 _ACEOF
9528 cat >>$CONFIG_STATUS <<\_ACEOF
9531 # CONFIG_HEADER section.
9534 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9535 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9537 # ac_d sets the value in "#define NAME VALUE" lines.
9538 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9539 ac_dB='[ ].*$,\1#\2'
9540 ac_dC=' '
9541 ac_dD=',;t'
9542 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9543 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9544 ac_uB='$,\1#\2define\3'
9545 ac_uC=' '
9546 ac_uD=',;t'
9548 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9549 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9550 case $ac_file in
9551 - | *:- | *:-:* ) # input from stdin
9552 cat >$tmp/stdin
9553 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9554 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9555 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9556 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9557 * ) ac_file_in=$ac_file.in ;;
9558 esac
9560 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9561 echo "$as_me: creating $ac_file" >&6;}
9563 # First look for the input files in the build tree, otherwise in the
9564 # src tree.
9565 ac_file_inputs=`IFS=:
9566 for f in $ac_file_in; do
9567 case $f in
9568 -) echo $tmp/stdin ;;
9569 [\\/$]*)
9570 # Absolute (can't be DOS-style, as IFS=:)
9571 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9572 echo "$as_me: error: cannot find input file: $f" >&2;}
9573 { (exit 1); exit 1; }; }
9574 # Do quote $f, to prevent DOS paths from being IFS'd.
9575 echo "$f";;
9576 *) # Relative
9577 if test -f "$f"; then
9578 # Build tree
9579 echo "$f"
9580 elif test -f "$srcdir/$f"; then
9581 # Source tree
9582 echo "$srcdir/$f"
9583 else
9584 # /dev/null tree
9585 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9586 echo "$as_me: error: cannot find input file: $f" >&2;}
9587 { (exit 1); exit 1; }; }
9588 fi;;
9589 esac
9590 done` || { (exit 1); exit 1; }
9591 # Remove the trailing spaces.
9592 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9594 _ACEOF
9596 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9597 # `conftest.undefs', that substitutes the proper values into
9598 # config.h.in to produce config.h. The first handles `#define'
9599 # templates, and the second `#undef' templates.
9600 # And first: Protect against being on the right side of a sed subst in
9601 # config.status. Protect against being in an unquoted here document
9602 # in config.status.
9603 rm -f conftest.defines conftest.undefs
9604 # Using a here document instead of a string reduces the quoting nightmare.
9605 # Putting comments in sed scripts is not portable.
9607 # `end' is used to avoid that the second main sed command (meant for
9608 # 0-ary CPP macros) applies to n-ary macro definitions.
9609 # See the Autoconf documentation for `clear'.
9610 cat >confdef2sed.sed <<\_ACEOF
9611 s/[\\&,]/\\&/g
9612 s,[\\$`],\\&,g
9613 t clear
9614 : clear
9615 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9616 t end
9617 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9618 : end
9619 _ACEOF
9620 # If some macros were called several times there might be several times
9621 # the same #defines, which is useless. Nevertheless, we may not want to
9622 # sort them, since we want the *last* AC-DEFINE to be honored.
9623 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9624 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9625 rm -f confdef2sed.sed
9627 # This sed command replaces #undef with comments. This is necessary, for
9628 # example, in the case of _POSIX_SOURCE, which is predefined and required
9629 # on some systems where configure will not decide to define it.
9630 cat >>conftest.undefs <<\_ACEOF
9631 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9632 _ACEOF
9634 # Break up conftest.defines because some shells have a limit on the size
9635 # of here documents, and old seds have small limits too (100 cmds).
9636 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9637 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9638 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9639 echo ' :' >>$CONFIG_STATUS
9640 rm -f conftest.tail
9641 while grep . conftest.defines >/dev/null
9643 # Write a limited-size here document to $tmp/defines.sed.
9644 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9645 # Speed up: don't consider the non `#define' lines.
9646 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9647 # Work around the forget-to-reset-the-flag bug.
9648 echo 't clr' >>$CONFIG_STATUS
9649 echo ': clr' >>$CONFIG_STATUS
9650 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9651 echo 'CEOF
9652 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9653 rm -f $tmp/in
9654 mv $tmp/out $tmp/in
9655 ' >>$CONFIG_STATUS
9656 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9657 rm -f conftest.defines
9658 mv conftest.tail conftest.defines
9659 done
9660 rm -f conftest.defines
9661 echo ' fi # grep' >>$CONFIG_STATUS
9662 echo >>$CONFIG_STATUS
9664 # Break up conftest.undefs because some shells have a limit on the size
9665 # of here documents, and old seds have small limits too (100 cmds).
9666 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9667 rm -f conftest.tail
9668 while grep . conftest.undefs >/dev/null
9670 # Write a limited-size here document to $tmp/undefs.sed.
9671 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9672 # Speed up: don't consider the non `#undef'
9673 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9674 # Work around the forget-to-reset-the-flag bug.
9675 echo 't clr' >>$CONFIG_STATUS
9676 echo ': clr' >>$CONFIG_STATUS
9677 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9678 echo 'CEOF
9679 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9680 rm -f $tmp/in
9681 mv $tmp/out $tmp/in
9682 ' >>$CONFIG_STATUS
9683 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9684 rm -f conftest.undefs
9685 mv conftest.tail conftest.undefs
9686 done
9687 rm -f conftest.undefs
9689 cat >>$CONFIG_STATUS <<\_ACEOF
9690 # Let's still pretend it is `configure' which instantiates (i.e., don't
9691 # use $as_me), people would be surprised to read:
9692 # /* config.h. Generated by config.status. */
9693 if test x"$ac_file" = x-; then
9694 echo "/* Generated by configure. */" >$tmp/config.h
9695 else
9696 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9698 cat $tmp/in >>$tmp/config.h
9699 rm -f $tmp/in
9700 if test x"$ac_file" != x-; then
9701 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9702 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9703 echo "$as_me: $ac_file is unchanged" >&6;}
9704 else
9705 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9707 X"$ac_file" : 'X\(//\)[^/]' \| \
9708 X"$ac_file" : 'X\(//\)$' \| \
9709 X"$ac_file" : 'X\(/\)' \| \
9710 . : '\(.\)' 2>/dev/null ||
9711 echo X"$ac_file" |
9712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9714 /^X\(\/\/\)$/{ s//\1/; q; }
9715 /^X\(\/\).*/{ s//\1/; q; }
9716 s/.*/./; q'`
9717 { if $as_mkdir_p; then
9718 mkdir -p "$ac_dir"
9719 else
9720 as_dir="$ac_dir"
9721 as_dirs=
9722 while test ! -d "$as_dir"; do
9723 as_dirs="$as_dir $as_dirs"
9724 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9726 X"$as_dir" : 'X\(//\)[^/]' \| \
9727 X"$as_dir" : 'X\(//\)$' \| \
9728 X"$as_dir" : 'X\(/\)' \| \
9729 . : '\(.\)' 2>/dev/null ||
9730 echo X"$as_dir" |
9731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9733 /^X\(\/\/\)$/{ s//\1/; q; }
9734 /^X\(\/\).*/{ s//\1/; q; }
9735 s/.*/./; q'`
9736 done
9737 test ! -n "$as_dirs" || mkdir $as_dirs
9738 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9739 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9740 { (exit 1); exit 1; }; }; }
9742 rm -f $ac_file
9743 mv $tmp/config.h $ac_file
9745 else
9746 cat $tmp/config.h
9747 rm -f $tmp/config.h
9749 # Compute $ac_file's index in $config_headers.
9750 _am_stamp_count=1
9751 for _am_header in $config_headers :; do
9752 case $_am_header in
9753 $ac_file | $ac_file:* )
9754 break ;;
9756 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9757 esac
9758 done
9759 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9760 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9761 X$ac_file : 'X\(//\)[^/]' \| \
9762 X$ac_file : 'X\(//\)$' \| \
9763 X$ac_file : 'X\(/\)' \| \
9764 . : '\(.\)' 2>/dev/null ||
9765 echo X$ac_file |
9766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9768 /^X\(\/\/\)$/{ s//\1/; q; }
9769 /^X\(\/\).*/{ s//\1/; q; }
9770 s/.*/./; q'`/stamp-h$_am_stamp_count
9771 done
9772 _ACEOF
9773 cat >>$CONFIG_STATUS <<\_ACEOF
9776 # CONFIG_COMMANDS section.
9778 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9779 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9780 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9781 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9782 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9783 X"$ac_dest" : 'X\(//\)[^/]' \| \
9784 X"$ac_dest" : 'X\(//\)$' \| \
9785 X"$ac_dest" : 'X\(/\)' \| \
9786 . : '\(.\)' 2>/dev/null ||
9787 echo X"$ac_dest" |
9788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9790 /^X\(\/\/\)$/{ s//\1/; q; }
9791 /^X\(\/\).*/{ s//\1/; q; }
9792 s/.*/./; q'`
9793 { if $as_mkdir_p; then
9794 mkdir -p "$ac_dir"
9795 else
9796 as_dir="$ac_dir"
9797 as_dirs=
9798 while test ! -d "$as_dir"; do
9799 as_dirs="$as_dir $as_dirs"
9800 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9802 X"$as_dir" : 'X\(//\)[^/]' \| \
9803 X"$as_dir" : 'X\(//\)$' \| \
9804 X"$as_dir" : 'X\(/\)' \| \
9805 . : '\(.\)' 2>/dev/null ||
9806 echo X"$as_dir" |
9807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9809 /^X\(\/\/\)$/{ s//\1/; q; }
9810 /^X\(\/\).*/{ s//\1/; q; }
9811 s/.*/./; q'`
9812 done
9813 test ! -n "$as_dirs" || mkdir $as_dirs
9814 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9815 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9816 { (exit 1); exit 1; }; }; }
9818 ac_builddir=.
9820 if test "$ac_dir" != .; then
9821 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9822 # A "../" for each directory in $ac_dir_suffix.
9823 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9824 else
9825 ac_dir_suffix= ac_top_builddir=
9828 case $srcdir in
9829 .) # No --srcdir option. We are building in place.
9830 ac_srcdir=.
9831 if test -z "$ac_top_builddir"; then
9832 ac_top_srcdir=.
9833 else
9834 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9835 fi ;;
9836 [\\/]* | ?:[\\/]* ) # Absolute path.
9837 ac_srcdir=$srcdir$ac_dir_suffix;
9838 ac_top_srcdir=$srcdir ;;
9839 *) # Relative path.
9840 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9841 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9842 esac
9844 # Do not use `cd foo && pwd` to compute absolute paths, because
9845 # the directories may not exist.
9846 case `pwd` in
9847 .) ac_abs_builddir="$ac_dir";;
9849 case "$ac_dir" in
9850 .) ac_abs_builddir=`pwd`;;
9851 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9852 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9853 esac;;
9854 esac
9855 case $ac_abs_builddir in
9856 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9858 case ${ac_top_builddir}. in
9859 .) ac_abs_top_builddir=$ac_abs_builddir;;
9860 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9861 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9862 esac;;
9863 esac
9864 case $ac_abs_builddir in
9865 .) ac_abs_srcdir=$ac_srcdir;;
9867 case $ac_srcdir in
9868 .) ac_abs_srcdir=$ac_abs_builddir;;
9869 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9870 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9871 esac;;
9872 esac
9873 case $ac_abs_builddir in
9874 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9876 case $ac_top_srcdir in
9877 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9878 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9879 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9880 esac;;
9881 esac
9884 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9885 echo "$as_me: executing $ac_dest commands" >&6;}
9886 case $ac_dest in
9887 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9888 # Strip MF so we end up with the name of the file.
9889 mf=`echo "$mf" | sed -e 's/:.*$//'`
9890 # Check whether this is an Automake generated Makefile or not.
9891 # We used to match only the files named `Makefile.in', but
9892 # some people rename them; so instead we look at the file content.
9893 # Grep'ing the first line is not enough: some people post-process
9894 # each Makefile.in and add a new line on top of each file to say so.
9895 # So let's grep whole file.
9896 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9897 dirpart=`(dirname "$mf") 2>/dev/null ||
9898 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9899 X"$mf" : 'X\(//\)[^/]' \| \
9900 X"$mf" : 'X\(//\)$' \| \
9901 X"$mf" : 'X\(/\)' \| \
9902 . : '\(.\)' 2>/dev/null ||
9903 echo X"$mf" |
9904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9905 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9906 /^X\(\/\/\)$/{ s//\1/; q; }
9907 /^X\(\/\).*/{ s//\1/; q; }
9908 s/.*/./; q'`
9909 else
9910 continue
9912 # Extract the definition of DEPDIR, am__include, and am__quote
9913 # from the Makefile without running `make'.
9914 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9915 test -z "$DEPDIR" && continue
9916 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9917 test -z "am__include" && continue
9918 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9919 # When using ansi2knr, U may be empty or an underscore; expand it
9920 U=`sed -n 's/^U = //p' < "$mf"`
9921 # Find all dependency output files, they are included files with
9922 # $(DEPDIR) in their names. We invoke sed twice because it is the
9923 # simplest approach to changing $(DEPDIR) to its actual value in the
9924 # expansion.
9925 for file in `sed -n "
9926 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9927 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9928 # Make sure the directory exists.
9929 test -f "$dirpart/$file" && continue
9930 fdir=`(dirname "$file") 2>/dev/null ||
9931 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9932 X"$file" : 'X\(//\)[^/]' \| \
9933 X"$file" : 'X\(//\)$' \| \
9934 X"$file" : 'X\(/\)' \| \
9935 . : '\(.\)' 2>/dev/null ||
9936 echo X"$file" |
9937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9939 /^X\(\/\/\)$/{ s//\1/; q; }
9940 /^X\(\/\).*/{ s//\1/; q; }
9941 s/.*/./; q'`
9942 { if $as_mkdir_p; then
9943 mkdir -p $dirpart/$fdir
9944 else
9945 as_dir=$dirpart/$fdir
9946 as_dirs=
9947 while test ! -d "$as_dir"; do
9948 as_dirs="$as_dir $as_dirs"
9949 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9951 X"$as_dir" : 'X\(//\)[^/]' \| \
9952 X"$as_dir" : 'X\(//\)$' \| \
9953 X"$as_dir" : 'X\(/\)' \| \
9954 . : '\(.\)' 2>/dev/null ||
9955 echo X"$as_dir" |
9956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9958 /^X\(\/\/\)$/{ s//\1/; q; }
9959 /^X\(\/\).*/{ s//\1/; q; }
9960 s/.*/./; q'`
9961 done
9962 test ! -n "$as_dirs" || mkdir $as_dirs
9963 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9964 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9965 { (exit 1); exit 1; }; }; }
9967 # echo "creating $dirpart/$file"
9968 echo '# dummy' > "$dirpart/$file"
9969 done
9970 done
9972 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
9973 esac
9974 done
9975 _ACEOF
9977 cat >>$CONFIG_STATUS <<\_ACEOF
9979 { (exit 0); exit 0; }
9980 _ACEOF
9981 chmod +x $CONFIG_STATUS
9982 ac_clean_files=$ac_clean_files_save
9985 # configure is writing to config.log, and then calls config.status.
9986 # config.status does its own redirection, appending to config.log.
9987 # Unfortunately, on DOS this fails, as config.log is still kept open
9988 # by configure, so config.status won't be able to write to it; its
9989 # output is simply discarded. So we exec the FD to /dev/null,
9990 # effectively closing config.log, so it can be properly (re)opened and
9991 # appended to by config.status. When coming back to configure, we
9992 # need to make the FD available again.
9993 if test "$no_create" != yes; then
9994 ac_cs_success=:
9995 ac_config_status_args=
9996 test "$silent" = yes &&
9997 ac_config_status_args="$ac_config_status_args --quiet"
9998 exec 5>/dev/null
9999 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10000 exec 5>>config.log
10001 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10002 # would make configure fail if this is the last instruction.
10003 $ac_cs_success || { (exit 1); exit 1; }