bfd/
[binutils.git] / ld / configure
blobfb4b92555da5402c6fd7725ff3ca344abeeda971
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="ldmain.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 use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE REPORT_BUGS_TO WARN_CFLAGS NO_WERROR 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 YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files='TDIRS'
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 --enable-targets alternative target configurations
860 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings Enable build-time compiler warnings
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-lib-path=dir1:dir2... set default LIB_PATH
873 --with-sysroot=DIR Search for usr/lib et al within DIR.
874 --with-bugurl=URL Direct users to URL to report a bug
875 --with-included-gettext use the GNU gettext library included here
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CPP C preprocessor
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 _ACEOF
892 if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
894 ac_popdir=`pwd`
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
897 ac_builddir=.
899 if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 else
904 ac_dir_suffix= ac_top_builddir=
907 case $srcdir in
908 .) # No --srcdir option. We are building in place.
909 ac_srcdir=.
910 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=.
912 else
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 fi ;;
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
918 *) # Relative path.
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 esac
923 # Do not use `cd foo && pwd` to compute absolute paths, because
924 # the directories may not exist.
925 case `pwd` in
926 .) ac_abs_builddir="$ac_dir";;
928 case "$ac_dir" in
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_top_builddir=${ac_top_builddir}.;;
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_srcdir=$ac_srcdir;;
946 case $ac_srcdir in
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 esac;;
951 esac
952 case $ac_abs_builddir in
953 .) ac_abs_top_srcdir=$ac_top_srcdir;;
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 esac;;
960 esac
962 cd $ac_dir
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
965 echo
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
968 echo
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
972 echo
973 $ac_configure --help
974 else
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977 cd $ac_popdir
978 done
981 test -n "$ac_init_help" && exit 0
982 if $ac_init_version; then
983 cat <<\_ACEOF
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989 exit 0
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by $as_me, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
999 $ $0 $@
1001 _ACEOF
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025 _ASUNAME
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033 done
1035 } >&5
1037 cat >&5 <<_ACEOF
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1044 _ACEOF
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1059 for ac_arg
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1092 esac
1093 done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1106 echo
1108 cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 esac;
1129 echo
1131 cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1230 done
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1243 else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1291 done
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1325 ac_aux_dir=
1326 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1327 if test -f $ac_dir/install-sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 break
1331 elif test -f $ac_dir/install.sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 break
1335 elif test -f $ac_dir/shtool; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 break
1340 done
1341 if test -z "$ac_aux_dir"; then
1342 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1343 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1344 { (exit 1); exit 1; }; }
1346 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350 # Make sure we can run config.sub.
1351 $ac_config_sub sun4 >/dev/null 2>&1 ||
1352 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1353 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1354 { (exit 1); exit 1; }; }
1356 echo "$as_me:$LINENO: checking build system type" >&5
1357 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1358 if test "${ac_cv_build+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1360 else
1361 ac_cv_build_alias=$build_alias
1362 test -z "$ac_cv_build_alias" &&
1363 ac_cv_build_alias=`$ac_config_guess`
1364 test -z "$ac_cv_build_alias" &&
1365 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1366 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1367 { (exit 1); exit 1; }; }
1368 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1369 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1370 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1371 { (exit 1); exit 1; }; }
1374 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1375 echo "${ECHO_T}$ac_cv_build" >&6
1376 build=$ac_cv_build
1377 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382 echo "$as_me:$LINENO: checking host system type" >&5
1383 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1384 if test "${ac_cv_host+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1386 else
1387 ac_cv_host_alias=$host_alias
1388 test -z "$ac_cv_host_alias" &&
1389 ac_cv_host_alias=$ac_cv_build_alias
1390 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1391 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1392 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1393 { (exit 1); exit 1; }; }
1396 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1397 echo "${ECHO_T}$ac_cv_host" >&6
1398 host=$ac_cv_host
1399 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404 echo "$as_me:$LINENO: checking target system type" >&5
1405 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1406 if test "${ac_cv_target+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409 ac_cv_target_alias=$target_alias
1410 test "x$ac_cv_target_alias" = "x" &&
1411 ac_cv_target_alias=$ac_cv_host_alias
1412 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1413 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1414 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1415 { (exit 1); exit 1; }; }
1418 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1419 echo "${ECHO_T}$ac_cv_target" >&6
1420 target=$ac_cv_target
1421 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426 # The aliases save the names the user supplied, while $host etc.
1427 # will get canonicalized.
1428 test -n "$target_alias" &&
1429 test "$program_prefix$program_suffix$program_transform_name" = \
1430 NONENONEs,x,x, &&
1431 program_prefix=${target_alias}-
1432 ac_ext=c
1433 ac_cpp='$CPP $CPPFLAGS'
1434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437 if test -n "$ac_tool_prefix"; then
1438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445 if test -n "$CC"; then
1446 ac_cv_prog_CC="$CC" # Let the user override the test.
1447 else
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1459 done
1460 done
1464 CC=$ac_cv_prog_CC
1465 if test -n "$CC"; then
1466 echo "$as_me:$LINENO: result: $CC" >&5
1467 echo "${ECHO_T}$CC" >&6
1468 else
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1474 if test -z "$ac_cv_prog_CC"; then
1475 ac_ct_CC=$CC
1476 # Extract the first word of "gcc", so it can be a program name with args.
1477 set dummy gcc; ac_word=$2
1478 echo "$as_me:$LINENO: checking for $ac_word" >&5
1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 else
1483 if test -n "$ac_ct_CC"; then
1484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485 else
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 ac_cv_prog_ac_ct_CC="gcc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 break 2
1497 done
1498 done
1502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503 if test -n "$ac_ct_CC"; then
1504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505 echo "${ECHO_T}$ac_ct_CC" >&6
1506 else
1507 echo "$as_me:$LINENO: result: no" >&5
1508 echo "${ECHO_T}no" >&6
1511 CC=$ac_ct_CC
1512 else
1513 CC="$ac_cv_prog_CC"
1516 if test -z "$CC"; then
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}cc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1539 done
1540 done
1544 CC=$ac_cv_prog_CC
1545 if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1548 else
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1554 if test -z "$ac_cv_prog_CC"; then
1555 ac_ct_CC=$CC
1556 # Extract the first word of "cc", so it can be a program name with args.
1557 set dummy cc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="cc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 break 2
1577 done
1578 done
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1586 else
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1591 CC=$ac_ct_CC
1592 else
1593 CC="$ac_cv_prog_CC"
1597 if test -z "$CC"; then
1598 # Extract the first word of "cc", so it can be a program name with args.
1599 set dummy cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608 ac_prog_rejected=no
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617 ac_prog_rejected=yes
1618 continue
1620 ac_cv_prog_CC="cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1624 done
1625 done
1627 if test $ac_prog_rejected = yes; then
1628 # We found a bogon in the path, so make sure we never use it.
1629 set dummy $ac_cv_prog_CC
1630 shift
1631 if test $# != 0; then
1632 # We chose a different compiler from the bogus one.
1633 # However, it has the same basename, so the bogon will be chosen
1634 # first if we set CC to just the basename; use the full file name.
1635 shift
1636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1641 CC=$ac_cv_prog_CC
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1645 else
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1651 if test -z "$CC"; then
1652 if test -n "$ac_tool_prefix"; then
1653 for ac_prog in cl
1655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664 else
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1676 done
1677 done
1681 CC=$ac_cv_prog_CC
1682 if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1685 else
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1690 test -n "$CC" && break
1691 done
1693 if test -z "$CC"; then
1694 ac_ct_CC=$CC
1695 for ac_prog in cl
1697 # Extract the first word of "$ac_prog", so it can be a program name with args.
1698 set dummy $ac_prog; ac_word=$2
1699 echo "$as_me:$LINENO: checking for $ac_word" >&5
1700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704 if test -n "$ac_ct_CC"; then
1705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706 else
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_ac_ct_CC="$ac_prog"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
1718 done
1719 done
1723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724 if test -n "$ac_ct_CC"; then
1725 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726 echo "${ECHO_T}$ac_ct_CC" >&6
1727 else
1728 echo "$as_me:$LINENO: result: no" >&5
1729 echo "${ECHO_T}no" >&6
1732 test -n "$ac_ct_CC" && break
1733 done
1735 CC=$ac_ct_CC
1741 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&5
1743 echo "$as_me: error: no acceptable C compiler found in \$PATH
1744 See \`config.log' for more details." >&2;}
1745 { (exit 1); exit 1; }; }
1747 # Provide some information about the compiler.
1748 echo "$as_me:$LINENO:" \
1749 "checking for C compiler version" >&5
1750 ac_compiler=`set X $ac_compile; echo $2`
1751 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1752 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 ac_status=$?
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }
1756 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1757 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 ac_status=$?
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }
1761 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1762 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }
1767 cat >conftest.$ac_ext <<_ACEOF
1768 /* confdefs.h. */
1769 _ACEOF
1770 cat confdefs.h >>conftest.$ac_ext
1771 cat >>conftest.$ac_ext <<_ACEOF
1772 /* end confdefs.h. */
1775 main ()
1779 return 0;
1781 _ACEOF
1782 ac_clean_files_save=$ac_clean_files
1783 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1784 # Try to create an executable without -o first, disregard a.out.
1785 # It will help us diagnose broken compilers, and finding out an intuition
1786 # of exeext.
1787 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1788 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1789 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1790 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1791 (eval $ac_link_default) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; then
1795 # Find the output, starting from the most likely. This scheme is
1796 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1797 # resort.
1799 # Be careful to initialize this variable, since it used to be cached.
1800 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1801 ac_cv_exeext=
1802 # b.out is created by i960 compilers.
1803 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1805 test -f "$ac_file" || continue
1806 case $ac_file in
1807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809 conftest.$ac_ext )
1810 # This is the source file.
1812 [ab].out )
1813 # We found the default executable, but exeext='' is most
1814 # certainly right.
1815 break;;
1816 *.* )
1817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818 # FIXME: I believe we export ac_cv_exeext for Libtool,
1819 # but it would be cool to find out if it's true. Does anybody
1820 # maintain Libtool? --akim.
1821 export ac_cv_exeext
1822 break;;
1824 break;;
1825 esac
1826 done
1827 else
1828 echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1831 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&5
1833 echo "$as_me: error: C compiler cannot create executables
1834 See \`config.log' for more details." >&2;}
1835 { (exit 77); exit 77; }; }
1838 ac_exeext=$ac_cv_exeext
1839 echo "$as_me:$LINENO: result: $ac_file" >&5
1840 echo "${ECHO_T}$ac_file" >&6
1842 # Check the compiler produces executables we can run. If not, either
1843 # the compiler is broken, or we cross compile.
1844 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1845 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1846 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1847 # If not cross compiling, check that we can run a simple program.
1848 if test "$cross_compiling" != yes; then
1849 if { ac_try='./$ac_file'
1850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851 (eval $ac_try) 2>&5
1852 ac_status=$?
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; }; then
1855 cross_compiling=no
1856 else
1857 if test "$cross_compiling" = maybe; then
1858 cross_compiling=yes
1859 else
1860 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&5
1863 echo "$as_me: error: cannot run C compiled programs.
1864 If you meant to cross compile, use \`--host'.
1865 See \`config.log' for more details." >&2;}
1866 { (exit 1); exit 1; }; }
1870 echo "$as_me:$LINENO: result: yes" >&5
1871 echo "${ECHO_T}yes" >&6
1873 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1874 ac_clean_files=$ac_clean_files_save
1875 # Check the compiler produces executables we can run. If not, either
1876 # the compiler is broken, or we cross compile.
1877 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1878 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1879 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1880 echo "${ECHO_T}$cross_compiling" >&6
1882 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1883 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1885 (eval $ac_link) 2>&5
1886 ac_status=$?
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }; then
1889 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1890 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1891 # work properly (i.e., refer to `conftest.exe'), while it won't with
1892 # `rm'.
1893 for ac_file in conftest.exe conftest conftest.*; do
1894 test -f "$ac_file" || continue
1895 case $ac_file in
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1897 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898 export ac_cv_exeext
1899 break;;
1900 * ) break;;
1901 esac
1902 done
1903 else
1904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&5
1906 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1907 See \`config.log' for more details." >&2;}
1908 { (exit 1); exit 1; }; }
1911 rm -f conftest$ac_cv_exeext
1912 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1913 echo "${ECHO_T}$ac_cv_exeext" >&6
1915 rm -f conftest.$ac_ext
1916 EXEEXT=$ac_cv_exeext
1917 ac_exeext=$EXEEXT
1918 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1919 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1920 if test "${ac_cv_objext+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 cat >conftest.$ac_ext <<_ACEOF
1924 /* confdefs.h. */
1925 _ACEOF
1926 cat confdefs.h >>conftest.$ac_ext
1927 cat >>conftest.$ac_ext <<_ACEOF
1928 /* end confdefs.h. */
1931 main ()
1935 return 0;
1937 _ACEOF
1938 rm -f conftest.o conftest.obj
1939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; then
1944 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1945 case $ac_file in
1946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1947 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1948 break;;
1949 esac
1950 done
1951 else
1952 echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1955 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&5
1957 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1958 See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1964 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1965 echo "${ECHO_T}$ac_cv_objext" >&6
1966 OBJEXT=$ac_cv_objext
1967 ac_objext=$OBJEXT
1968 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 cat >conftest.$ac_ext <<_ACEOF
1974 /* confdefs.h. */
1975 _ACEOF
1976 cat confdefs.h >>conftest.$ac_ext
1977 cat >>conftest.$ac_ext <<_ACEOF
1978 /* end confdefs.h. */
1981 main ()
1983 #ifndef __GNUC__
1984 choke me
1985 #endif
1988 return 0;
1990 _ACEOF
1991 rm -f conftest.$ac_objext
1992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993 (eval $ac_compile) 2>conftest.er1
1994 ac_status=$?
1995 grep -v '^ *+' conftest.er1 >conftest.err
1996 rm -f conftest.er1
1997 cat conftest.err >&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
2000 { ac_try='test -z "$ac_c_werror_flag"
2001 || test ! -s conftest.err'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 (eval $ac_try) 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2013 ac_compiler_gnu=yes
2014 else
2015 echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2018 ac_compiler_gnu=no
2020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2021 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2024 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2025 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2026 GCC=`test $ac_compiler_gnu = yes && echo yes`
2027 ac_test_CFLAGS=${CFLAGS+set}
2028 ac_save_CFLAGS=$CFLAGS
2029 CFLAGS="-g"
2030 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2031 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2032 if test "${ac_cv_prog_cc_g+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035 cat >conftest.$ac_ext <<_ACEOF
2036 /* confdefs.h. */
2037 _ACEOF
2038 cat confdefs.h >>conftest.$ac_ext
2039 cat >>conftest.$ac_ext <<_ACEOF
2040 /* end confdefs.h. */
2043 main ()
2047 return 0;
2049 _ACEOF
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2053 ac_status=$?
2054 grep -v '^ *+' conftest.er1 >conftest.err
2055 rm -f conftest.er1
2056 cat conftest.err >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try='test -z "$ac_c_werror_flag"
2060 || test ! -s conftest.err'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_cv_prog_cc_g=yes
2073 else
2074 echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2077 ac_cv_prog_cc_g=no
2079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2081 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2082 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2083 if test "$ac_test_CFLAGS" = set; then
2084 CFLAGS=$ac_save_CFLAGS
2085 elif test $ac_cv_prog_cc_g = yes; then
2086 if test "$GCC" = yes; then
2087 CFLAGS="-g -O2"
2088 else
2089 CFLAGS="-g"
2091 else
2092 if test "$GCC" = yes; then
2093 CFLAGS="-O2"
2094 else
2095 CFLAGS=
2098 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2099 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2100 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103 ac_cv_prog_cc_stdc=no
2104 ac_save_CC=$CC
2105 cat >conftest.$ac_ext <<_ACEOF
2106 /* confdefs.h. */
2107 _ACEOF
2108 cat confdefs.h >>conftest.$ac_ext
2109 cat >>conftest.$ac_ext <<_ACEOF
2110 /* end confdefs.h. */
2111 #include <stdarg.h>
2112 #include <stdio.h>
2113 #include <sys/types.h>
2114 #include <sys/stat.h>
2115 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2116 struct buf { int x; };
2117 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2118 static char *e (p, i)
2119 char **p;
2120 int i;
2122 return p[i];
2124 static char *f (char * (*g) (char **, int), char **p, ...)
2126 char *s;
2127 va_list v;
2128 va_start (v,p);
2129 s = g (p, va_arg (v,int));
2130 va_end (v);
2131 return s;
2134 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2135 function prototypes and stuff, but not '\xHH' hex character constants.
2136 These don't provoke an error unfortunately, instead are silently treated
2137 as 'x'. The following induces an error, until -std1 is added to get
2138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2139 array size at least. It's necessary to write '\x00'==0 to get something
2140 that's true only with -std1. */
2141 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2143 int test (int i, double x);
2144 struct s1 {int (*f) (int a);};
2145 struct s2 {int (*f) (double a);};
2146 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147 int argc;
2148 char **argv;
2150 main ()
2152 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2154 return 0;
2156 _ACEOF
2157 # Don't try gcc -ansi; that turns off useful extensions and
2158 # breaks some systems' header files.
2159 # AIX -qlanglvl=ansi
2160 # Ultrix and OSF/1 -std1
2161 # HP-UX 10.20 and later -Ae
2162 # HP-UX older versions -Aa -D_HPUX_SOURCE
2163 # SVR4 -Xc -D__EXTENSIONS__
2164 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2166 CC="$ac_save_CC $ac_arg"
2167 rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
2176 { ac_try='test -z "$ac_c_werror_flag"
2177 || test ! -s conftest.err'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 ac_cv_prog_cc_stdc=$ac_arg
2190 break
2191 else
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2196 rm -f conftest.err conftest.$ac_objext
2197 done
2198 rm -f conftest.$ac_ext conftest.$ac_objext
2199 CC=$ac_save_CC
2203 case "x$ac_cv_prog_cc_stdc" in
2204 x|xno)
2205 echo "$as_me:$LINENO: result: none needed" >&5
2206 echo "${ECHO_T}none needed" >&6 ;;
2208 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2209 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2210 CC="$CC $ac_cv_prog_cc_stdc" ;;
2211 esac
2213 # Some people use a C++ compiler to compile C. Since we use `exit',
2214 # in C++ we need to declare it. In case someone uses the same compiler
2215 # for both compiling C and C++ we need to have the C++ compiler decide
2216 # the declaration of exit, since it's the most demanding environment.
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #ifndef __cplusplus
2219 choke me
2220 #endif
2221 _ACEOF
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>conftest.er1
2225 ac_status=$?
2226 grep -v '^ *+' conftest.er1 >conftest.err
2227 rm -f conftest.er1
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 for ac_declaration in \
2245 '' \
2246 'extern "C" void std::exit (int) throw (); using std::exit;' \
2247 'extern "C" void std::exit (int); using std::exit;' \
2248 'extern "C" void exit (int) throw ();' \
2249 'extern "C" void exit (int);' \
2250 'void exit (int);'
2252 cat >conftest.$ac_ext <<_ACEOF
2253 /* confdefs.h. */
2254 _ACEOF
2255 cat confdefs.h >>conftest.$ac_ext
2256 cat >>conftest.$ac_ext <<_ACEOF
2257 /* end confdefs.h. */
2258 $ac_declaration
2259 #include <stdlib.h>
2261 main ()
2263 exit (42);
2265 return 0;
2267 _ACEOF
2268 rm -f conftest.$ac_objext
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>conftest.er1
2271 ac_status=$?
2272 grep -v '^ *+' conftest.er1 >conftest.err
2273 rm -f conftest.er1
2274 cat conftest.err >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
2277 { ac_try='test -z "$ac_c_werror_flag"
2278 || test ! -s conftest.err'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 (eval $ac_try) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 (eval $ac_try) 2>&5
2287 ac_status=$?
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2291 else
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2295 continue
2297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2298 cat >conftest.$ac_ext <<_ACEOF
2299 /* confdefs.h. */
2300 _ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2304 $ac_declaration
2306 main ()
2308 exit (42);
2310 return 0;
2312 _ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>conftest.er1
2316 ac_status=$?
2317 grep -v '^ *+' conftest.er1 >conftest.err
2318 rm -f conftest.er1
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
2322 { ac_try='test -z "$ac_c_werror_flag"
2323 || test ! -s conftest.err'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; } &&
2329 { ac_try='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 break
2336 else
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342 done
2343 rm -f conftest*
2344 if test -n "$ac_declaration"; then
2345 echo '#ifdef __cplusplus' >>confdefs.h
2346 echo $ac_declaration >>confdefs.h
2347 echo '#endif' >>confdefs.h
2350 else
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356 ac_ext=c
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2364 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2365 if test "${ac_cv_search_strerror+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 ac_func_search_save_LIBS=$LIBS
2369 ac_cv_search_strerror=no
2370 cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2377 /* Override any gcc2 internal prototype to avoid an error. */
2378 #ifdef __cplusplus
2379 extern "C"
2380 #endif
2381 /* We use char because int might match the return type of a gcc2
2382 builtin and then its argument prototype would still apply. */
2383 char strerror ();
2385 main ()
2387 strerror ();
2389 return 0;
2391 _ACEOF
2392 rm -f conftest.$ac_objext conftest$ac_exeext
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>conftest.er1
2395 ac_status=$?
2396 grep -v '^ *+' conftest.er1 >conftest.err
2397 rm -f conftest.er1
2398 cat conftest.err >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 { ac_try='test -z "$ac_c_werror_flag"
2402 || test ! -s conftest.err'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 (eval $ac_try) 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try='test -s conftest$ac_exeext'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2414 ac_cv_search_strerror="none required"
2415 else
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2420 rm -f conftest.err conftest.$ac_objext \
2421 conftest$ac_exeext conftest.$ac_ext
2422 if test "$ac_cv_search_strerror" = no; then
2423 for ac_lib in cposix; do
2424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2432 /* Override any gcc2 internal prototype to avoid an error. */
2433 #ifdef __cplusplus
2434 extern "C"
2435 #endif
2436 /* We use char because int might match the return type of a gcc2
2437 builtin and then its argument prototype would still apply. */
2438 char strerror ();
2440 main ()
2442 strerror ();
2444 return 0;
2446 _ACEOF
2447 rm -f conftest.$ac_objext conftest$ac_exeext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449 (eval $ac_link) 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
2456 { ac_try='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest$ac_exeext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 ac_cv_search_strerror="-l$ac_lib"
2470 break
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2476 rm -f conftest.err conftest.$ac_objext \
2477 conftest$ac_exeext conftest.$ac_ext
2478 done
2480 LIBS=$ac_func_search_save_LIBS
2482 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2483 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2484 if test "$ac_cv_search_strerror" != no; then
2485 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2490 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2491 am__api_version="1.9"
2492 # Find a good install program. We prefer a C program (faster),
2493 # so one script is as good as another. But avoid the broken or
2494 # incompatible versions:
2495 # SysV /etc/install, /usr/sbin/install
2496 # SunOS /usr/etc/install
2497 # IRIX /sbin/install
2498 # AIX /bin/install
2499 # AmigaOS /C/install, which installs bootblocks on floppy discs
2500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503 # OS/2's system install, which has a completely different semantic
2504 # ./install, which can be erroneously created by make from ./install.sh.
2505 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2507 if test -z "$INSTALL"; then
2508 if test "${ac_cv_path_install+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 # Account for people who put trailing slashes in PATH elements.
2517 case $as_dir/ in
2518 ./ | .// | /cC/* | \
2519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2521 /usr/ucb/* ) ;;
2523 # OSF1 and SCO ODT 3.0 have their own names for install.
2524 # Don't use installbsd from OSF since it installs stuff as root
2525 # by default.
2526 for ac_prog in ginstall scoinst install; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2529 if test $ac_prog = install &&
2530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # AIX install. It has an incompatible calling convention.
2533 elif test $ac_prog = install &&
2534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # program-specific install script used by HP pwplus--don't use.
2537 else
2538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539 break 3
2542 done
2543 done
2545 esac
2546 done
2550 if test "${ac_cv_path_install+set}" = set; then
2551 INSTALL=$ac_cv_path_install
2552 else
2553 # As a last resort, use the slow shell script. We don't cache a
2554 # path for INSTALL within a source directory, because that will
2555 # break other packages using the cache if that directory is
2556 # removed, or if the path is relative.
2557 INSTALL=$ac_install_sh
2560 echo "$as_me:$LINENO: result: $INSTALL" >&5
2561 echo "${ECHO_T}$INSTALL" >&6
2563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564 # It thinks the first close brace ends the variable substitution.
2565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2571 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2572 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2573 # Just in case
2574 sleep 1
2575 echo timestamp > conftest.file
2576 # Do `set' in a subshell so we don't clobber the current shell's
2577 # arguments. Must try -L first in case configure is actually a
2578 # symlink; some systems play weird games with the mod time of symlinks
2579 # (eg FreeBSD returns the mod time of the symlink's containing
2580 # directory).
2581 if (
2582 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2583 if test "$*" = "X"; then
2584 # -L didn't work.
2585 set X `ls -t $srcdir/configure conftest.file`
2587 rm -f conftest.file
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
2595 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" >&5
2597 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" >&2;}
2599 { (exit 1); exit 1; }; }
2602 test "$2" = conftest.file
2604 then
2605 # Ok.
2607 else
2608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2609 Check your system clock" >&5
2610 echo "$as_me: error: newly created file is older than distributed files!
2611 Check your system clock" >&2;}
2612 { (exit 1); exit 1; }; }
2614 echo "$as_me:$LINENO: result: yes" >&5
2615 echo "${ECHO_T}yes" >&6
2616 test "$program_prefix" != NONE &&
2617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2618 # Use a double $ so make ignores it.
2619 test "$program_suffix" != NONE &&
2620 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2621 # Double any \ or $. echo might interpret backslashes.
2622 # By default was `s,x,x', remove it if useless.
2623 cat <<\_ACEOF >conftest.sed
2624 s/[\\$]/&&/g;s/;s,x,x,$//
2625 _ACEOF
2626 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2627 rm conftest.sed
2629 # expand $ac_aux_dir to an absolute path
2630 am_aux_dir=`cd $ac_aux_dir && pwd`
2632 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2633 # Use eval to expand $SHELL
2634 if eval "$MISSING --run true"; then
2635 am_missing_run="$MISSING --run "
2636 else
2637 am_missing_run=
2638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2639 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2642 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2643 # We used to keeping the `.' as first argument, in order to
2644 # allow $(mkdir_p) to be used without argument. As in
2645 # $(mkdir_p) $(somedir)
2646 # where $(somedir) is conditionally defined. However this is wrong
2647 # for two reasons:
2648 # 1. if the package is installed by a user who cannot write `.'
2649 # make install will fail,
2650 # 2. the above comment should most certainly read
2651 # $(mkdir_p) $(DESTDIR)$(somedir)
2652 # so it does not work when $(somedir) is undefined and
2653 # $(DESTDIR) is not.
2654 # To support the latter case, we have to write
2655 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2656 # so the `.' trick is pointless.
2657 mkdir_p='mkdir -p --'
2658 else
2659 # On NextStep and OpenStep, the `mkdir' command does not
2660 # recognize any option. It will interpret all options as
2661 # directories to create, and then abort because `.' already
2662 # exists.
2663 for d in ./-p ./--version;
2665 test -d $d && rmdir $d
2666 done
2667 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2668 if test -f "$ac_aux_dir/mkinstalldirs"; then
2669 mkdir_p='$(mkinstalldirs)'
2670 else
2671 mkdir_p='$(install_sh) -d'
2675 for ac_prog in gawk mawk nawk awk
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681 if test "${ac_cv_prog_AWK+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 if test -n "$AWK"; then
2685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_AWK="$ac_prog"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2698 done
2699 done
2703 AWK=$ac_cv_prog_AWK
2704 if test -n "$AWK"; then
2705 echo "$as_me:$LINENO: result: $AWK" >&5
2706 echo "${ECHO_T}$AWK" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 test -n "$AWK" && break
2713 done
2715 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2716 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2717 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2718 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721 cat >conftest.make <<\_ACEOF
2722 all:
2723 @echo 'ac_maketemp="$(MAKE)"'
2724 _ACEOF
2725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2726 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2727 if test -n "$ac_maketemp"; then
2728 eval ac_cv_prog_make_${ac_make}_set=yes
2729 else
2730 eval ac_cv_prog_make_${ac_make}_set=no
2732 rm -f conftest.make
2734 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2737 SET_MAKE=
2738 else
2739 echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2741 SET_MAKE="MAKE=${MAKE-make}"
2744 rm -rf .tst 2>/dev/null
2745 mkdir .tst 2>/dev/null
2746 if test -d .tst; then
2747 am__leading_dot=.
2748 else
2749 am__leading_dot=_
2751 rmdir .tst 2>/dev/null
2753 DEPDIR="${am__leading_dot}deps"
2755 ac_config_commands="$ac_config_commands depfiles"
2758 am_make=${MAKE-make}
2759 cat > confinc << 'END'
2760 am__doit:
2761 @echo done
2762 .PHONY: am__doit
2764 # If we don't find an include directive, just comment out the code.
2765 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2766 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2767 am__include="#"
2768 am__quote=
2769 _am_result=none
2770 # First try GNU make style include.
2771 echo "include confinc" > confmf
2772 # We grep out `Entering directory' and `Leaving directory'
2773 # messages which can occur if `w' ends up in MAKEFLAGS.
2774 # In particular we don't look at `^make:' because GNU make might
2775 # be invoked under some other name (usually "gmake"), in which
2776 # case it prints its new name instead of `make'.
2777 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2778 am__include=include
2779 am__quote=
2780 _am_result=GNU
2782 # Now try BSD make style include.
2783 if test "$am__include" = "#"; then
2784 echo '.include "confinc"' > confmf
2785 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2786 am__include=.include
2787 am__quote="\""
2788 _am_result=BSD
2793 echo "$as_me:$LINENO: result: $_am_result" >&5
2794 echo "${ECHO_T}$_am_result" >&6
2795 rm -f confinc confmf
2797 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2798 if test "${enable_dependency_tracking+set}" = set; then
2799 enableval="$enable_dependency_tracking"
2802 if test "x$enable_dependency_tracking" != xno; then
2803 am_depcomp="$ac_aux_dir/depcomp"
2804 AMDEPBACKSLASH='\'
2808 if test "x$enable_dependency_tracking" != xno; then
2809 AMDEP_TRUE=
2810 AMDEP_FALSE='#'
2811 else
2812 AMDEP_TRUE='#'
2813 AMDEP_FALSE=
2818 # test to see if srcdir already configured
2819 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2820 test -f $srcdir/config.status; then
2821 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2822 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2823 { (exit 1); exit 1; }; }
2826 # test whether we have cygpath
2827 if test -z "$CYGPATH_W"; then
2828 if (cygpath --version) >/dev/null 2>/dev/null; then
2829 CYGPATH_W='cygpath -w'
2830 else
2831 CYGPATH_W=echo
2836 # Define the identity of the package.
2837 PACKAGE=ld
2838 VERSION=${BFD_VERSION}
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE "$PACKAGE"
2843 _ACEOF
2846 cat >>confdefs.h <<_ACEOF
2847 #define VERSION "$VERSION"
2848 _ACEOF
2850 # Some tools Automake needs.
2852 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2855 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2858 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2861 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2864 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2866 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2868 # Installed binaries are usually stripped using `strip' when the user
2869 # run `make install-strip'. However `strip' might not be the right
2870 # tool to use in cross-compilation environments, therefore Automake
2871 # will honor the `STRIP' environment variable to overrule this program.
2872 if test "$cross_compiling" != no; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}strip; ac_word=$2
2876 echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_STRIP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 if test -n "$STRIP"; then
2882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2895 done
2896 done
2900 STRIP=$ac_cv_prog_STRIP
2901 if test -n "$STRIP"; then
2902 echo "$as_me:$LINENO: result: $STRIP" >&5
2903 echo "${ECHO_T}$STRIP" >&6
2904 else
2905 echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2910 if test -z "$ac_cv_prog_STRIP"; then
2911 ac_ct_STRIP=$STRIP
2912 # Extract the first word of "strip", so it can be a program name with args.
2913 set dummy strip; ac_word=$2
2914 echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 if test -n "$ac_ct_STRIP"; then
2920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_STRIP="strip"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2933 done
2934 done
2936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2940 if test -n "$ac_ct_STRIP"; then
2941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2942 echo "${ECHO_T}$ac_ct_STRIP" >&6
2943 else
2944 echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2948 STRIP=$ac_ct_STRIP
2949 else
2950 STRIP="$ac_cv_prog_STRIP"
2954 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2956 # We need awk for the "check" target. The system "awk" is bad on
2957 # some platforms.
2958 # Always define AMTAR for backward compatibility.
2960 AMTAR=${AMTAR-"${am_missing_run}tar"}
2962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2967 depcc="$CC" am_compiler_list=
2969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2975 # We make a subdir and do the tests there. Otherwise we can end up
2976 # making bogus files that we don't know about and never remove. For
2977 # instance it was reported that on HP-UX the gcc test will end up
2978 # making a dummy file named `D' -- because `-MD' means `put the output
2979 # in D'.
2980 mkdir conftest.dir
2981 # Copy depcomp to subdir because otherwise we won't find it if we're
2982 # using a relative directory.
2983 cp "$am_depcomp" conftest.dir
2984 cd conftest.dir
2985 # We will build objects and dependencies in a subdirectory because
2986 # it helps to detect inapplicable dependency modes. For instance
2987 # both Tru64's cc and ICC support -MD to output dependencies as a
2988 # side effect of compilation, but ICC will put the dependencies in
2989 # the current directory while Tru64 will put them in the object
2990 # directory.
2991 mkdir sub
2993 am_cv_CC_dependencies_compiler_type=none
2994 if test "$am_compiler_list" = ""; then
2995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2997 for depmode in $am_compiler_list; do
2998 # Setup a source with many dependencies, because some compilers
2999 # like to wrap large dependency lists on column 80 (with \), and
3000 # we should not choose a depcomp mode which is confused by this.
3002 # We need to recreate these files for each test, as the compiler may
3003 # overwrite some of them when testing with obscure command lines.
3004 # This happens at least with the AIX C compiler.
3005 : > sub/conftest.c
3006 for i in 1 2 3 4 5 6; do
3007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3009 # Solaris 8's {/usr,}/bin/sh.
3010 touch sub/conftst$i.h
3011 done
3012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3014 case $depmode in
3015 nosideeffect)
3016 # after this tag, mechanisms are not by side-effect, so they'll
3017 # only be used when explicitly requested
3018 if test "x$enable_dependency_tracking" = xyes; then
3019 continue
3020 else
3021 break
3024 none) break ;;
3025 esac
3026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3027 # mode. It turns out that the SunPro C++ compiler does not properly
3028 # handle `-M -o', and we need to detect this.
3029 if depmode=$depmode \
3030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3033 >/dev/null 2>conftest.err &&
3034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3037 # icc doesn't choke on unknown options, it will just issue warnings
3038 # or remarks (even with -Werror). So we grep stderr for any message
3039 # that says an option was ignored or not supported.
3040 # When given -MP, icc 7.0 and 7.1 complain thusly:
3041 # icc: Command line warning: ignoring option '-M'; no argument required
3042 # The diagnosis changed in icc 8.0:
3043 # icc: Command line remark: option '-MP' not supported
3044 if (grep 'ignoring option' conftest.err ||
3045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3046 am_cv_CC_dependencies_compiler_type=$depmode
3047 break
3050 done
3052 cd ..
3053 rm -rf conftest.dir
3054 else
3055 am_cv_CC_dependencies_compiler_type=none
3059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3066 test "x$enable_dependency_tracking" != xno \
3067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3068 am__fastdepCC_TRUE=
3069 am__fastdepCC_FALSE='#'
3070 else
3071 am__fastdepCC_TRUE='#'
3072 am__fastdepCC_FALSE=
3078 # Check whether --enable-shared or --disable-shared was given.
3079 if test "${enable_shared+set}" = set; then
3080 enableval="$enable_shared"
3081 p=${PACKAGE-default}
3082 case $enableval in
3083 yes) enable_shared=yes ;;
3084 no) enable_shared=no ;;
3086 enable_shared=no
3087 # Look at the argument we got. We use all the common list separators.
3088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3089 for pkg in $enableval; do
3090 if test "X$pkg" = "X$p"; then
3091 enable_shared=yes
3093 done
3094 IFS="$ac_save_ifs"
3096 esac
3097 else
3098 enable_shared=yes
3100 # Check whether --enable-static or --disable-static was given.
3101 if test "${enable_static+set}" = set; then
3102 enableval="$enable_static"
3103 p=${PACKAGE-default}
3104 case $enableval in
3105 yes) enable_static=yes ;;
3106 no) enable_static=no ;;
3108 enable_static=no
3109 # Look at the argument we got. We use all the common list separators.
3110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3111 for pkg in $enableval; do
3112 if test "X$pkg" = "X$p"; then
3113 enable_static=yes
3115 done
3116 IFS="$ac_save_ifs"
3118 esac
3119 else
3120 enable_static=yes
3122 # Check whether --enable-fast-install or --disable-fast-install was given.
3123 if test "${enable_fast_install+set}" = set; then
3124 enableval="$enable_fast_install"
3125 p=${PACKAGE-default}
3126 case $enableval in
3127 yes) enable_fast_install=yes ;;
3128 no) enable_fast_install=no ;;
3130 enable_fast_install=no
3131 # Look at the argument we got. We use all the common list separators.
3132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3133 for pkg in $enableval; do
3134 if test "X$pkg" = "X$p"; then
3135 enable_fast_install=yes
3137 done
3138 IFS="$ac_save_ifs"
3140 esac
3141 else
3142 enable_fast_install=yes
3145 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3146 if test "${with_gnu_ld+set}" = set; then
3147 withval="$with_gnu_ld"
3148 test "$withval" = no || with_gnu_ld=yes
3149 else
3150 with_gnu_ld=no
3152 ac_prog=ld
3153 if test "$GCC" = yes; then
3154 # Check if gcc -print-prog-name=ld gives a path.
3155 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3156 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3157 case $host in
3158 *-*-mingw*)
3159 # gcc leaves a trailing carriage return which upsets mingw
3160 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3162 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3163 esac
3164 case $ac_prog in
3165 # Accept absolute paths.
3166 [\\/]* | [A-Za-z]:[\\/]*)
3167 re_direlt='/[^/][^/]*/\.\./'
3168 # Canonicalize the path of ld
3169 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3170 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3171 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3172 done
3173 test -z "$LD" && LD="$ac_prog"
3176 # If it fails, then pretend we aren't using GCC.
3177 ac_prog=ld
3180 # If it is relative, then search for the first ld in PATH.
3181 with_gnu_ld=unknown
3183 esac
3184 elif test "$with_gnu_ld" = yes; then
3185 echo "$as_me:$LINENO: checking for GNU ld" >&5
3186 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3187 else
3188 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3189 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3191 if test "${lt_cv_path_LD+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194 if test -z "$LD"; then
3195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3196 for ac_dir in $PATH; do
3197 test -z "$ac_dir" && ac_dir=.
3198 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3199 lt_cv_path_LD="$ac_dir/$ac_prog"
3200 # Check to see if the program is GNU ld. I'd rather use --version,
3201 # but apparently some GNU ld's only accept -v.
3202 # Break only if it was the GNU/non-GNU ld that we prefer.
3203 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3204 test "$with_gnu_ld" != no && break
3205 else
3206 test "$with_gnu_ld" != yes && break
3209 done
3210 IFS="$ac_save_ifs"
3211 else
3212 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3216 LD="$lt_cv_path_LD"
3217 if test -n "$LD"; then
3218 echo "$as_me:$LINENO: result: $LD" >&5
3219 echo "${ECHO_T}$LD" >&6
3220 else
3221 echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3224 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3225 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3226 { (exit 1); exit 1; }; }
3227 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3228 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3229 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3233 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3234 lt_cv_prog_gnu_ld=yes
3235 else
3236 lt_cv_prog_gnu_ld=no
3239 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3240 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3241 with_gnu_ld=$lt_cv_prog_gnu_ld
3244 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3245 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3246 if test "${lt_cv_ld_reload_flag+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249 lt_cv_ld_reload_flag='-r'
3251 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3252 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3253 reload_flag=$lt_cv_ld_reload_flag
3254 test -n "$reload_flag" && reload_flag=" $reload_flag"
3256 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3257 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3258 if test "${lt_cv_path_NM+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261 if test -n "$NM"; then
3262 # Let the user override the test.
3263 lt_cv_path_NM="$NM"
3264 else
3265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3266 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3267 test -z "$ac_dir" && ac_dir=.
3268 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3269 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3270 # Check to see if the nm accepts a BSD-compat flag.
3271 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3272 # nm: unknown option "B" ignored
3273 # Tru64's nm complains that /dev/null is an invalid object file
3274 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3275 lt_cv_path_NM="$tmp_nm -B"
3276 break
3277 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3278 lt_cv_path_NM="$tmp_nm -p"
3279 break
3280 else
3281 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3282 continue # so that we can try to find one that supports BSD flags
3285 done
3286 IFS="$ac_save_ifs"
3287 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3291 NM="$lt_cv_path_NM"
3292 echo "$as_me:$LINENO: result: $NM" >&5
3293 echo "${ECHO_T}$NM" >&6
3295 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3296 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3297 LN_S=$as_ln_s
3298 if test "$LN_S" = "ln -s"; then
3299 echo "$as_me:$LINENO: result: yes" >&5
3300 echo "${ECHO_T}yes" >&6
3301 else
3302 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3303 echo "${ECHO_T}no, using $LN_S" >&6
3306 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3307 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3308 if test "${lt_cv_deplibs_check_method+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311 lt_cv_file_magic_cmd='$MAGIC_CMD'
3312 lt_cv_file_magic_test_file=
3313 lt_cv_deplibs_check_method='unknown'
3314 # Need to set the preceding variable on all platforms that support
3315 # interlibrary dependencies.
3316 # 'none' -- dependencies not supported.
3317 # `unknown' -- same as none, but documents that we really don't know.
3318 # 'pass_all' -- all dependencies passed with no checks.
3319 # 'test_compile' -- check by making test program.
3320 # 'file_magic [regex]' -- check by looking for files in library path
3321 # which responds to the $file_magic_cmd with a given egrep regex.
3322 # If you have `file' or equivalent on your system and you're not sure
3323 # whether `pass_all' will *always* work, you probably want this one.
3325 case $host_os in
3326 aix*)
3327 lt_cv_deplibs_check_method=pass_all
3330 beos*)
3331 lt_cv_deplibs_check_method=pass_all
3334 bsdi4*)
3335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3336 lt_cv_file_magic_cmd='/usr/bin/file -L'
3337 lt_cv_file_magic_test_file=/shlib/libc.so
3340 cygwin* | mingw* |pw32*)
3341 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3342 lt_cv_file_magic_cmd='$OBJDUMP -f'
3345 darwin* | rhapsody*)
3346 # this will be overwritten by pass_all, but leave it in just in case
3347 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3348 lt_cv_file_magic_cmd='/usr/bin/file -L'
3349 case "$host_os" in
3350 rhapsody* | darwin1.012)
3351 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3353 *) # Darwin 1.3 on
3354 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3356 esac
3357 lt_cv_deplibs_check_method=pass_all
3360 freebsd* | kfreebsd*-gnu)
3361 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3362 case $host_cpu in
3363 i*86 )
3364 # Not sure whether the presence of OpenBSD here was a mistake.
3365 # Let's accept both of them until this is cleared up.
3366 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3367 lt_cv_file_magic_cmd=/usr/bin/file
3368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3370 esac
3371 else
3372 lt_cv_deplibs_check_method=pass_all
3376 gnu*)
3377 lt_cv_deplibs_check_method=pass_all
3380 hpux10.20*|hpux11*)
3381 case $host_cpu in
3382 hppa*)
3383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3384 lt_cv_file_magic_cmd=/usr/bin/file
3385 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3387 ia64*)
3388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3389 lt_cv_file_magic_cmd=/usr/bin/file
3390 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3392 esac
3395 irix5* | irix6*)
3396 case $host_os in
3397 irix5*)
3398 # this will be overridden with pass_all, but let us keep it just in case
3399 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3402 case $LD in
3403 *-32|*"-32 ") libmagic=32-bit;;
3404 *-n32|*"-n32 ") libmagic=N32;;
3405 *-64|*"-64 ") libmagic=64-bit;;
3406 *) libmagic=never-match;;
3407 esac
3408 # this will be overridden with pass_all, but let us keep it just in case
3409 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3411 esac
3412 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3413 lt_cv_deplibs_check_method=pass_all
3416 # This must be Linux ELF.
3417 linux-gnu*)
3418 lt_cv_deplibs_check_method=pass_all
3421 netbsd* | knetbsd*-gnu)
3422 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3423 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3424 else
3425 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3429 newsos6)
3430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3431 lt_cv_file_magic_cmd=/usr/bin/file
3432 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3435 osf3* | osf4* | osf5*)
3436 # this will be overridden with pass_all, but let us keep it just in case
3437 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3438 lt_cv_file_magic_test_file=/shlib/libc.so
3439 lt_cv_deplibs_check_method=pass_all
3442 sco3.2v5*)
3443 lt_cv_deplibs_check_method=pass_all
3446 solaris*)
3447 lt_cv_deplibs_check_method=pass_all
3448 lt_cv_file_magic_test_file=/lib/libc.so
3451 sysv5uw[78]* | sysv4*uw2*)
3452 lt_cv_deplibs_check_method=pass_all
3455 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3456 case $host_vendor in
3457 ncr)
3458 lt_cv_deplibs_check_method=pass_all
3460 motorola)
3461 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]'
3462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3464 esac
3466 esac
3469 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3470 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3471 file_magic_cmd=$lt_cv_file_magic_cmd
3472 deplibs_check_method=$lt_cv_deplibs_check_method
3477 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3479 # find the maximum length of command line arguments
3480 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3481 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3482 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3486 teststring="ABCD"
3488 case $build_os in
3489 msdosdjgpp*)
3490 # On DJGPP, this test can blow up pretty badly due to problems in libc
3491 # (any single argument exceeding 2000 bytes causes a buffer overrun
3492 # during glob expansion). Even if it were fixed, the result of this
3493 # check would be larger than it should be.
3494 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3497 cygwin* | mingw*)
3498 # On Win9x/ME, this test blows up -- it succeeds, but takes
3499 # about 5 minutes as the teststring grows exponentially.
3500 # Worse, since 9x/ME are not pre-emptively multitasking,
3501 # you end up with a "frozen" computer, even though with patience
3502 # the test eventually succeeds (with a max line length of 256k).
3503 # Instead, let's just punt: use the minimum linelength reported by
3504 # all of the supported platforms: 8192 (on NT/2K/XP).
3505 lt_cv_sys_max_cmd_len=8192;
3508 amigaos*)
3509 # On AmigaOS with pdksh, this test takes hours, literally.
3510 # So we just punt and use a minimum line length of 8192.
3511 lt_cv_sys_max_cmd_len=8192;
3514 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3515 # This has been around since 386BSD, at least. Likely further.
3516 if test -x /sbin/sysctl; then
3517 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3518 elif test -x /usr/sbin/sysctl; then
3519 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3520 else
3521 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3523 # And add a safety zone
3524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3527 esac
3531 if test -n "$lt_cv_sys_max_cmd_len" ; then
3532 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3533 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3534 else
3535 echo "$as_me:$LINENO: result: none" >&5
3536 echo "${ECHO_T}none" >&6
3540 # Only perform the check for file, if the check method requires it
3541 case $deplibs_check_method in
3542 file_magic*)
3543 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3544 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3545 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549 case $MAGIC_CMD in
3551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3553 ?:/*)
3554 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3557 ac_save_MAGIC_CMD="$MAGIC_CMD"
3558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3559 ac_dummy="/usr/bin:$PATH"
3560 for ac_dir in $ac_dummy; do
3561 test -z "$ac_dir" && ac_dir=.
3562 if test -f $ac_dir/${ac_tool_prefix}file; then
3563 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3564 if test -n "$file_magic_test_file"; then
3565 case $deplibs_check_method in
3566 "file_magic "*)
3567 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3570 egrep "$file_magic_regex" > /dev/null; then
3572 else
3573 cat <<EOF 1>&2
3575 *** Warning: the command libtool uses to detect shared libraries,
3576 *** $file_magic_cmd, produces output that libtool cannot recognize.
3577 *** The result is that libtool may fail to recognize shared libraries
3578 *** as such. This will affect the creation of libtool libraries that
3579 *** depend on shared libraries, but programs linked with such libtool
3580 *** libraries will work regardless of this problem. Nevertheless, you
3581 *** may want to report the problem to your system manager and/or to
3582 *** bug-libtool@gnu.org
3585 fi ;;
3586 esac
3588 break
3590 done
3591 IFS="$ac_save_ifs"
3592 MAGIC_CMD="$ac_save_MAGIC_CMD"
3594 esac
3597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3598 if test -n "$MAGIC_CMD"; then
3599 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3600 echo "${ECHO_T}$MAGIC_CMD" >&6
3601 else
3602 echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6
3606 if test -z "$lt_cv_path_MAGIC_CMD"; then
3607 if test -n "$ac_tool_prefix"; then
3608 echo "$as_me:$LINENO: checking for file" >&5
3609 echo $ECHO_N "checking for file... $ECHO_C" >&6
3610 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613 case $MAGIC_CMD in
3615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3617 ?:/*)
3618 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3621 ac_save_MAGIC_CMD="$MAGIC_CMD"
3622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3623 ac_dummy="/usr/bin:$PATH"
3624 for ac_dir in $ac_dummy; do
3625 test -z "$ac_dir" && ac_dir=.
3626 if test -f $ac_dir/file; then
3627 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3628 if test -n "$file_magic_test_file"; then
3629 case $deplibs_check_method in
3630 "file_magic "*)
3631 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3632 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3633 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3634 egrep "$file_magic_regex" > /dev/null; then
3636 else
3637 cat <<EOF 1>&2
3639 *** Warning: the command libtool uses to detect shared libraries,
3640 *** $file_magic_cmd, produces output that libtool cannot recognize.
3641 *** The result is that libtool may fail to recognize shared libraries
3642 *** as such. This will affect the creation of libtool libraries that
3643 *** depend on shared libraries, but programs linked with such libtool
3644 *** libraries will work regardless of this problem. Nevertheless, you
3645 *** may want to report the problem to your system manager and/or to
3646 *** bug-libtool@gnu.org
3649 fi ;;
3650 esac
3652 break
3654 done
3655 IFS="$ac_save_ifs"
3656 MAGIC_CMD="$ac_save_MAGIC_CMD"
3658 esac
3661 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3662 if test -n "$MAGIC_CMD"; then
3663 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3664 echo "${ECHO_T}$MAGIC_CMD" >&6
3665 else
3666 echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6
3670 else
3671 MAGIC_CMD=:
3677 esac
3679 if test -n "$ac_tool_prefix"; then
3680 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3681 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3682 echo "$as_me:$LINENO: checking for $ac_word" >&5
3683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3684 if test "${ac_cv_prog_RANLIB+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687 if test -n "$RANLIB"; then
3688 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3697 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3701 done
3702 done
3706 RANLIB=$ac_cv_prog_RANLIB
3707 if test -n "$RANLIB"; then
3708 echo "$as_me:$LINENO: result: $RANLIB" >&5
3709 echo "${ECHO_T}$RANLIB" >&6
3710 else
3711 echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6
3716 if test -z "$ac_cv_prog_RANLIB"; then
3717 ac_ct_RANLIB=$RANLIB
3718 # Extract the first word of "ranlib", so it can be a program name with args.
3719 set dummy ranlib; ac_word=$2
3720 echo "$as_me:$LINENO: checking for $ac_word" >&5
3721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3722 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725 if test -n "$ac_ct_RANLIB"; then
3726 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3727 else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_ac_ct_RANLIB="ranlib"
3736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 break 2
3739 done
3740 done
3742 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3745 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3746 if test -n "$ac_ct_RANLIB"; then
3747 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3748 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3749 else
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3754 RANLIB=$ac_ct_RANLIB
3755 else
3756 RANLIB="$ac_cv_prog_RANLIB"
3759 if test -n "$ac_tool_prefix"; then
3760 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3761 set dummy ${ac_tool_prefix}strip; ac_word=$2
3762 echo "$as_me:$LINENO: checking for $ac_word" >&5
3763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3764 if test "${ac_cv_prog_STRIP+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767 if test -n "$STRIP"; then
3768 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3769 else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 break 2
3781 done
3782 done
3786 STRIP=$ac_cv_prog_STRIP
3787 if test -n "$STRIP"; then
3788 echo "$as_me:$LINENO: result: $STRIP" >&5
3789 echo "${ECHO_T}$STRIP" >&6
3790 else
3791 echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3796 if test -z "$ac_cv_prog_STRIP"; then
3797 ac_ct_STRIP=$STRIP
3798 # Extract the first word of "strip", so it can be a program name with args.
3799 set dummy strip; ac_word=$2
3800 echo "$as_me:$LINENO: checking for $ac_word" >&5
3801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3802 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805 if test -n "$ac_ct_STRIP"; then
3806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815 ac_cv_prog_ac_ct_STRIP="strip"
3816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3819 done
3820 done
3822 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3826 if test -n "$ac_ct_STRIP"; then
3827 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3828 echo "${ECHO_T}$ac_ct_STRIP" >&6
3829 else
3830 echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3834 STRIP=$ac_ct_STRIP
3835 else
3836 STRIP="$ac_cv_prog_STRIP"
3840 # Check for any special flags to pass to ltconfig.
3841 libtool_flags="--cache-file=$cache_file"
3842 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3843 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3844 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3845 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3846 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3849 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3850 if test "${enable_libtool_lock+set}" = set; then
3851 enableval="$enable_libtool_lock"
3854 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3855 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3858 # Check whether --with-pic or --without-pic was given.
3859 if test "${with_pic+set}" = set; then
3860 withval="$with_pic"
3861 pic_mode="$withval"
3862 else
3863 pic_mode=default
3865 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3866 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3868 # Some flags need to be propagated to the compiler or linker for good
3869 # libtool support.
3870 case $host in
3871 *-*-irix6*)
3872 # Find out which ABI we are using.
3873 echo '#line 3873 "configure"' > conftest.$ac_ext
3874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3875 (eval $ac_compile) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; then
3879 if test "$lt_cv_prog_gnu_ld" = yes; then
3880 case `/usr/bin/file conftest.$ac_objext` in
3881 *32-bit*)
3882 LD="${LD-ld} -melf32bsmip"
3884 *N32*)
3885 LD="${LD-ld} -melf32bmipn32"
3887 *64-bit*)
3888 LD="${LD-ld} -melf64bmip"
3890 esac
3891 else
3892 case `/usr/bin/file conftest.$ac_objext` in
3893 *32-bit*)
3894 LD="${LD-ld} -32"
3896 *N32*)
3897 LD="${LD-ld} -n32"
3899 *64-bit*)
3900 LD="${LD-ld} -64"
3902 esac
3905 rm -rf conftest*
3908 ia64-*-hpux*)
3909 # Find out which ABI we are using.
3910 echo 'int i;' > conftest.$ac_ext
3911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3912 (eval $ac_compile) 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; then
3916 case "`/usr/bin/file conftest.o`" in
3917 *ELF-32*)
3918 HPUX_IA64_MODE="32"
3920 *ELF-64*)
3921 HPUX_IA64_MODE="64"
3923 esac
3925 rm -rf conftest*
3928 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3929 # Find out which ABI we are using.
3930 echo 'int i;' > conftest.$ac_ext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3932 (eval $ac_compile) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; then
3936 case "`/usr/bin/file conftest.o`" in
3937 *32-bit*)
3938 case $host in
3939 x86_64-*linux*)
3940 LD="${LD-ld} -m elf_i386"
3942 ppc64-*linux*|powerpc64-*linux*)
3943 LD="${LD-ld} -m elf32ppclinux"
3945 s390x-*linux*)
3946 LD="${LD-ld} -m elf_s390"
3948 sparc64-*linux*)
3949 LD="${LD-ld} -m elf32_sparc"
3951 esac
3953 *64-bit*)
3954 case $host in
3955 x86_64-*linux*)
3956 LD="${LD-ld} -m elf_x86_64"
3958 ppc*-*linux*|powerpc*-*linux*)
3959 LD="${LD-ld} -m elf64ppc"
3961 s390*-*linux*)
3962 LD="${LD-ld} -m elf64_s390"
3964 sparc*-*linux*)
3965 LD="${LD-ld} -m elf64_sparc"
3967 esac
3969 esac
3971 rm -rf conftest*
3974 *-*-sco3.2v5*)
3975 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3976 SAVE_CFLAGS="$CFLAGS"
3977 CFLAGS="$CFLAGS -belf"
3978 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3979 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3980 if test "${lt_cv_cc_needs_belf+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3985 ac_ext=c
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991 cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h. */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3999 main ()
4003 return 0;
4005 _ACEOF
4006 rm -f conftest.$ac_objext conftest$ac_exeext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008 (eval $ac_link) 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -z "$ac_c_werror_flag"
4016 || test ! -s conftest.err'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 (eval $ac_try) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest$ac_exeext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 lt_cv_cc_needs_belf=yes
4029 else
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4033 lt_cv_cc_needs_belf=no
4035 rm -f conftest.err conftest.$ac_objext \
4036 conftest$ac_exeext conftest.$ac_ext
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4045 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4046 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4047 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4048 CFLAGS="$SAVE_CFLAGS"
4053 esac
4056 # Save cache, so that ltconfig can load it
4057 cat >confcache <<\_ACEOF
4058 # This file is a shell script that caches the results of configure
4059 # tests run on this system so they can be shared between configure
4060 # scripts and configure runs, see configure's option --config-cache.
4061 # It is not useful on other systems. If it contains results you don't
4062 # want to keep, you may remove or edit it.
4064 # config.status only pays attention to the cache file if you give it
4065 # the --recheck option to rerun configure.
4067 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4068 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4069 # following values.
4071 _ACEOF
4073 # The following way of writing the cache mishandles newlines in values,
4074 # but we know of no workaround that is simple, portable, and efficient.
4075 # So, don't put newlines in cache variables' values.
4076 # Ultrix sh set writes to stderr and can't be redirected directly,
4077 # and sets the high bit in the cache file unless we assign to the vars.
4079 (set) 2>&1 |
4080 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4081 *ac_space=\ *)
4082 # `set' does not quote correctly, so add quotes (double-quote
4083 # substitution turns \\\\ into \\, and sed turns \\ into \).
4084 sed -n \
4085 "s/'/'\\\\''/g;
4086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4089 # `set' quotes correctly as required by POSIX, so do not add quotes.
4090 sed -n \
4091 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4093 esac;
4095 sed '
4096 t clear
4097 : clear
4098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4099 t end
4100 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4101 : end' >>confcache
4102 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4103 if test -w $cache_file; then
4104 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4105 cat confcache >$cache_file
4106 else
4107 echo "not updating unwritable cache $cache_file"
4110 rm -f confcache
4112 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4113 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4114 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4115 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4116 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4117 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4118 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4119 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4120 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4121 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4122 echo "$as_me: error: libtool configure failed" >&2;}
4123 { (exit 1); exit 1; }; }
4125 # Reload cache, that may have been modified by ltconfig
4126 if test -r "$cache_file"; then
4127 # Some versions of bash will fail to source /dev/null (special
4128 # files actually), so we avoid doing that.
4129 if test -f "$cache_file"; then
4130 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4131 echo "$as_me: loading cache $cache_file" >&6;}
4132 case $cache_file in
4133 [\\/]* | ?:[\\/]* ) . $cache_file;;
4134 *) . ./$cache_file;;
4135 esac
4137 else
4138 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4139 echo "$as_me: creating cache $cache_file" >&6;}
4140 >$cache_file
4144 # This can be used to rebuild libtool when needed
4145 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4147 # Always use our own libtool.
4148 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4150 # Redirect the config.log output again, so that the ltconfig log is not
4151 # clobbered by the next message.
4152 exec 5>>./config.log
4161 # Check whether --with-lib-path or --without-lib-path was given.
4162 if test "${with_lib_path+set}" = set; then
4163 withval="$with_lib_path"
4164 LIB_PATH=$withval
4166 # Check whether --enable-targets or --disable-targets was given.
4167 if test "${enable_targets+set}" = set; then
4168 enableval="$enable_targets"
4169 case "${enableval}" in
4170 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4171 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4172 { (exit 1); exit 1; }; }
4174 no) enable_targets= ;;
4175 *) enable_targets=$enableval ;;
4176 esac
4177 fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4178 if test "${enable_64_bit_bfd+set}" = set; then
4179 enableval="$enable_64_bit_bfd"
4180 case "${enableval}" in
4181 yes) want64=true ;;
4182 no) want64=false ;;
4183 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4184 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4185 { (exit 1); exit 1; }; } ;;
4186 esac
4187 else
4188 want64=false
4191 # Check whether --with-sysroot or --without-sysroot was given.
4192 if test "${with_sysroot+set}" = set; then
4193 withval="$with_sysroot"
4195 case ${with_sysroot} in
4196 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4197 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4198 esac
4200 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4201 use_sysroot=yes
4203 if test "x$exec_prefix" = xNONE; then
4204 if test "x$prefix" = xNONE; then
4205 test_prefix=/usr/local
4206 else
4207 test_prefix=$prefix
4209 else
4210 test_prefix=$exec_prefix
4212 case ${TARGET_SYSTEM_ROOT} in
4213 "${test_prefix}"|"${test_prefix}/"*|\
4214 '${exec_prefix}'|'${exec_prefix}/'*)
4215 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4216 TARGET_SYSTEM_ROOT_DEFINE="$t"
4218 esac
4220 else
4222 use_sysroot=no
4223 TARGET_SYSTEM_ROOT=
4224 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4231 # The location to which bugs should be reported.
4233 # Check whether --with-bugurl or --without-bugurl was given.
4234 if test "${with_bugurl+set}" = set; then
4235 withval="$with_bugurl"
4236 case "$withval" in
4237 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4238 echo "$as_me: error: bug URL not specified" >&2;}
4239 { (exit 1); exit 1; }; } ;;
4240 no) REPORT_BUGS_TO="" ;;
4241 *) REPORT_BUGS_TO="<URL:$withval>" ;;
4242 esac
4243 else
4244 REPORT_BUGS_TO=""
4250 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4252 # Check whether --enable-werror or --disable-werror was given.
4253 if test "${enable_werror+set}" = set; then
4254 enableval="$enable_werror"
4255 case "${enableval}" in
4256 yes | y) ERROR_ON_WARNING="yes" ;;
4257 no | n) ERROR_ON_WARNING="no" ;;
4258 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4259 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4260 { (exit 1); exit 1; }; } ;;
4261 esac
4264 # Enable -Werror by default when using gcc
4265 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4266 ERROR_ON_WARNING=yes
4269 NO_WERROR=
4270 if test "${ERROR_ON_WARNING}" = yes ; then
4271 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4272 NO_WERROR="-Wno-error"
4275 if test "${GCC}" = yes ; then
4276 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4279 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4280 if test "${enable_build_warnings+set}" = set; then
4281 enableval="$enable_build_warnings"
4282 case "${enableval}" in
4283 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4284 no) if test "${GCC}" = yes ; then
4285 WARN_CFLAGS="-w"
4286 fi;;
4287 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4288 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4289 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4290 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4291 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4292 esac
4295 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4296 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4303 ac_config_headers="$ac_config_headers config.h:config.in"
4306 if test -z "$target" ; then
4307 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4308 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4309 { (exit 1); exit 1; }; }
4311 if test -z "$host" ; then
4312 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4313 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4314 { (exit 1); exit 1; }; }
4317 # host-specific stuff:
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324 if test -n "$ac_tool_prefix"; then
4325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4327 echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_prog_CC+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 if test -n "$CC"; then
4333 ac_cv_prog_CC="$CC" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4346 done
4347 done
4351 CC=$ac_cv_prog_CC
4352 if test -n "$CC"; then
4353 echo "$as_me:$LINENO: result: $CC" >&5
4354 echo "${ECHO_T}$CC" >&6
4355 else
4356 echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6
4361 if test -z "$ac_cv_prog_CC"; then
4362 ac_ct_CC=$CC
4363 # Extract the first word of "gcc", so it can be a program name with args.
4364 set dummy gcc; 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_ac_ct_CC+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370 if test -n "$ac_ct_CC"; then
4371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4372 else
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380 ac_cv_prog_ac_ct_CC="gcc"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4384 done
4385 done
4389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4390 if test -n "$ac_ct_CC"; then
4391 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4392 echo "${ECHO_T}$ac_ct_CC" >&6
4393 else
4394 echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6
4398 CC=$ac_ct_CC
4399 else
4400 CC="$ac_cv_prog_CC"
4403 if test -z "$CC"; then
4404 if test -n "$ac_tool_prefix"; then
4405 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4406 set dummy ${ac_tool_prefix}cc; ac_word=$2
4407 echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4409 if test "${ac_cv_prog_CC+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 if test -n "$CC"; then
4413 ac_cv_prog_CC="$CC" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4422 ac_cv_prog_CC="${ac_tool_prefix}cc"
4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4426 done
4427 done
4431 CC=$ac_cv_prog_CC
4432 if test -n "$CC"; then
4433 echo "$as_me:$LINENO: result: $CC" >&5
4434 echo "${ECHO_T}$CC" >&6
4435 else
4436 echo "$as_me:$LINENO: result: no" >&5
4437 echo "${ECHO_T}no" >&6
4441 if test -z "$ac_cv_prog_CC"; then
4442 ac_ct_CC=$CC
4443 # Extract the first word of "cc", so it can be a program name with args.
4444 set dummy cc; ac_word=$2
4445 echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450 if test -n "$ac_ct_CC"; then
4451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460 ac_cv_prog_ac_ct_CC="cc"
4461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4464 done
4465 done
4469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4470 if test -n "$ac_ct_CC"; then
4471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4472 echo "${ECHO_T}$ac_ct_CC" >&6
4473 else
4474 echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6
4478 CC=$ac_ct_CC
4479 else
4480 CC="$ac_cv_prog_CC"
4484 if test -z "$CC"; then
4485 # Extract the first word of "cc", so it can be a program name with args.
4486 set dummy cc; ac_word=$2
4487 echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4489 if test "${ac_cv_prog_CC+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492 if test -n "$CC"; then
4493 ac_cv_prog_CC="$CC" # Let the user override the test.
4494 else
4495 ac_prog_rejected=no
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4504 ac_prog_rejected=yes
4505 continue
4507 ac_cv_prog_CC="cc"
4508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 break 2
4511 done
4512 done
4514 if test $ac_prog_rejected = yes; then
4515 # We found a bogon in the path, so make sure we never use it.
4516 set dummy $ac_cv_prog_CC
4517 shift
4518 if test $# != 0; then
4519 # We chose a different compiler from the bogus one.
4520 # However, it has the same basename, so the bogon will be chosen
4521 # first if we set CC to just the basename; use the full file name.
4522 shift
4523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4528 CC=$ac_cv_prog_CC
4529 if test -n "$CC"; then
4530 echo "$as_me:$LINENO: result: $CC" >&5
4531 echo "${ECHO_T}$CC" >&6
4532 else
4533 echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4538 if test -z "$CC"; then
4539 if test -n "$ac_tool_prefix"; then
4540 for ac_prog in cl
4542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4544 echo "$as_me:$LINENO: checking for $ac_word" >&5
4545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4546 if test "${ac_cv_prog_CC+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 if test -n "$CC"; then
4550 ac_cv_prog_CC="$CC" # Let the user override the test.
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4563 done
4564 done
4568 CC=$ac_cv_prog_CC
4569 if test -n "$CC"; then
4570 echo "$as_me:$LINENO: result: $CC" >&5
4571 echo "${ECHO_T}$CC" >&6
4572 else
4573 echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4577 test -n "$CC" && break
4578 done
4580 if test -z "$CC"; then
4581 ac_ct_CC=$CC
4582 for ac_prog in cl
4584 # Extract the first word of "$ac_prog", so it can be a program name with args.
4585 set dummy $ac_prog; ac_word=$2
4586 echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 if test -n "$ac_ct_CC"; then
4592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601 ac_cv_prog_ac_ct_CC="$ac_prog"
4602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4605 done
4606 done
4610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4611 if test -n "$ac_ct_CC"; then
4612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4613 echo "${ECHO_T}$ac_ct_CC" >&6
4614 else
4615 echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6
4619 test -n "$ac_ct_CC" && break
4620 done
4622 CC=$ac_ct_CC
4628 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4629 See \`config.log' for more details." >&5
4630 echo "$as_me: error: no acceptable C compiler found in \$PATH
4631 See \`config.log' for more details." >&2;}
4632 { (exit 1); exit 1; }; }
4634 # Provide some information about the compiler.
4635 echo "$as_me:$LINENO:" \
4636 "checking for C compiler version" >&5
4637 ac_compiler=`set X $ac_compile; echo $2`
4638 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4639 (eval $ac_compiler --version </dev/null >&5) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }
4643 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4644 (eval $ac_compiler -v </dev/null >&5) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }
4648 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4649 (eval $ac_compiler -V </dev/null >&5) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }
4654 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4655 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4656 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659 cat >conftest.$ac_ext <<_ACEOF
4660 /* confdefs.h. */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4667 main ()
4669 #ifndef __GNUC__
4670 choke me
4671 #endif
4674 return 0;
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>conftest.er1
4680 ac_status=$?
4681 grep -v '^ *+' conftest.er1 >conftest.err
4682 rm -f conftest.er1
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try='test -z "$ac_c_werror_flag"
4687 || test ! -s conftest.err'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 (eval $ac_try) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; } &&
4693 { ac_try='test -s conftest.$ac_objext'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4699 ac_compiler_gnu=yes
4700 else
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4704 ac_compiler_gnu=no
4706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4707 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4710 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4711 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4712 GCC=`test $ac_compiler_gnu = yes && echo yes`
4713 ac_test_CFLAGS=${CFLAGS+set}
4714 ac_save_CFLAGS=$CFLAGS
4715 CFLAGS="-g"
4716 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4717 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4718 if test "${ac_cv_prog_cc_g+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h. */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4729 main ()
4733 return 0;
4735 _ACEOF
4736 rm -f conftest.$ac_objext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738 (eval $ac_compile) 2>conftest.er1
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } &&
4745 { ac_try='test -z "$ac_c_werror_flag"
4746 || test ! -s conftest.err'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; } &&
4752 { ac_try='test -s conftest.$ac_objext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 (eval $ac_try) 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 ac_cv_prog_cc_g=yes
4759 else
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 ac_cv_prog_cc_g=no
4765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4768 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4769 if test "$ac_test_CFLAGS" = set; then
4770 CFLAGS=$ac_save_CFLAGS
4771 elif test $ac_cv_prog_cc_g = yes; then
4772 if test "$GCC" = yes; then
4773 CFLAGS="-g -O2"
4774 else
4775 CFLAGS="-g"
4777 else
4778 if test "$GCC" = yes; then
4779 CFLAGS="-O2"
4780 else
4781 CFLAGS=
4784 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4785 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4786 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789 ac_cv_prog_cc_stdc=no
4790 ac_save_CC=$CC
4791 cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h. */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 #include <stdarg.h>
4798 #include <stdio.h>
4799 #include <sys/types.h>
4800 #include <sys/stat.h>
4801 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4802 struct buf { int x; };
4803 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4804 static char *e (p, i)
4805 char **p;
4806 int i;
4808 return p[i];
4810 static char *f (char * (*g) (char **, int), char **p, ...)
4812 char *s;
4813 va_list v;
4814 va_start (v,p);
4815 s = g (p, va_arg (v,int));
4816 va_end (v);
4817 return s;
4820 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4821 function prototypes and stuff, but not '\xHH' hex character constants.
4822 These don't provoke an error unfortunately, instead are silently treated
4823 as 'x'. The following induces an error, until -std1 is added to get
4824 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4825 array size at least. It's necessary to write '\x00'==0 to get something
4826 that's true only with -std1. */
4827 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4829 int test (int i, double x);
4830 struct s1 {int (*f) (int a);};
4831 struct s2 {int (*f) (double a);};
4832 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4833 int argc;
4834 char **argv;
4836 main ()
4838 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4840 return 0;
4842 _ACEOF
4843 # Don't try gcc -ansi; that turns off useful extensions and
4844 # breaks some systems' header files.
4845 # AIX -qlanglvl=ansi
4846 # Ultrix and OSF/1 -std1
4847 # HP-UX 10.20 and later -Ae
4848 # HP-UX older versions -Aa -D_HPUX_SOURCE
4849 # SVR4 -Xc -D__EXTENSIONS__
4850 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4852 CC="$ac_save_CC $ac_arg"
4853 rm -f conftest.$ac_objext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>conftest.er1
4856 ac_status=$?
4857 grep -v '^ *+' conftest.er1 >conftest.err
4858 rm -f conftest.er1
4859 cat conftest.err >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } &&
4862 { ac_try='test -z "$ac_c_werror_flag"
4863 || test ! -s conftest.err'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; } &&
4869 { ac_try='test -s conftest.$ac_objext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 ac_cv_prog_cc_stdc=$ac_arg
4876 break
4877 else
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4882 rm -f conftest.err conftest.$ac_objext
4883 done
4884 rm -f conftest.$ac_ext conftest.$ac_objext
4885 CC=$ac_save_CC
4889 case "x$ac_cv_prog_cc_stdc" in
4890 x|xno)
4891 echo "$as_me:$LINENO: result: none needed" >&5
4892 echo "${ECHO_T}none needed" >&6 ;;
4894 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4895 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4896 CC="$CC $ac_cv_prog_cc_stdc" ;;
4897 esac
4899 # Some people use a C++ compiler to compile C. Since we use `exit',
4900 # in C++ we need to declare it. In case someone uses the same compiler
4901 # for both compiling C and C++ we need to have the C++ compiler decide
4902 # the declaration of exit, since it's the most demanding environment.
4903 cat >conftest.$ac_ext <<_ACEOF
4904 #ifndef __cplusplus
4905 choke me
4906 #endif
4907 _ACEOF
4908 rm -f conftest.$ac_objext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910 (eval $ac_compile) 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -z "$ac_c_werror_flag"
4918 || test ! -s conftest.err'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; } &&
4924 { ac_try='test -s conftest.$ac_objext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 for ac_declaration in \
4931 '' \
4932 'extern "C" void std::exit (int) throw (); using std::exit;' \
4933 'extern "C" void std::exit (int); using std::exit;' \
4934 'extern "C" void exit (int) throw ();' \
4935 'extern "C" void exit (int);' \
4936 'void exit (int);'
4938 cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h. */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4944 $ac_declaration
4945 #include <stdlib.h>
4947 main ()
4949 exit (42);
4951 return 0;
4953 _ACEOF
4954 rm -f conftest.$ac_objext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4956 (eval $ac_compile) 2>conftest.er1
4957 ac_status=$?
4958 grep -v '^ *+' conftest.er1 >conftest.err
4959 rm -f conftest.er1
4960 cat conftest.err >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
4963 { ac_try='test -z "$ac_c_werror_flag"
4964 || test ! -s conftest.err'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 (eval $ac_try) 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; } &&
4970 { ac_try='test -s conftest.$ac_objext'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4977 else
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 continue
4983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4984 cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h. */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 $ac_declaration
4992 main ()
4994 exit (42);
4996 return 0;
4998 _ACEOF
4999 rm -f conftest.$ac_objext
5000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001 (eval $ac_compile) 2>conftest.er1
5002 ac_status=$?
5003 grep -v '^ *+' conftest.er1 >conftest.err
5004 rm -f conftest.er1
5005 cat conftest.err >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } &&
5008 { ac_try='test -z "$ac_c_werror_flag"
5009 || test ! -s conftest.err'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 (eval $ac_try) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; } &&
5015 { ac_try='test -s conftest.$ac_objext'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 (eval $ac_try) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; }; then
5021 break
5022 else
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5028 done
5029 rm -f conftest*
5030 if test -n "$ac_declaration"; then
5031 echo '#ifdef __cplusplus' >>confdefs.h
5032 echo $ac_declaration >>confdefs.h
5033 echo '#endif' >>confdefs.h
5036 else
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5042 ac_ext=c
5043 ac_cpp='$CPP $CPPFLAGS'
5044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5048 # Find a good install program. We prefer a C program (faster),
5049 # so one script is as good as another. But avoid the broken or
5050 # incompatible versions:
5051 # SysV /etc/install, /usr/sbin/install
5052 # SunOS /usr/etc/install
5053 # IRIX /sbin/install
5054 # AIX /bin/install
5055 # AmigaOS /C/install, which installs bootblocks on floppy discs
5056 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5059 # OS/2's system install, which has a completely different semantic
5060 # ./install, which can be erroneously created by make from ./install.sh.
5061 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5062 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5063 if test -z "$INSTALL"; then
5064 if test "${ac_cv_path_install+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 # Account for people who put trailing slashes in PATH elements.
5073 case $as_dir/ in
5074 ./ | .// | /cC/* | \
5075 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5076 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5077 /usr/ucb/* ) ;;
5079 # OSF1 and SCO ODT 3.0 have their own names for install.
5080 # Don't use installbsd from OSF since it installs stuff as root
5081 # by default.
5082 for ac_prog in ginstall scoinst install; do
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5085 if test $ac_prog = install &&
5086 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5087 # AIX install. It has an incompatible calling convention.
5089 elif test $ac_prog = install &&
5090 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5091 # program-specific install script used by HP pwplus--don't use.
5093 else
5094 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5095 break 3
5098 done
5099 done
5101 esac
5102 done
5106 if test "${ac_cv_path_install+set}" = set; then
5107 INSTALL=$ac_cv_path_install
5108 else
5109 # As a last resort, use the slow shell script. We don't cache a
5110 # path for INSTALL within a source directory, because that will
5111 # break other packages using the cache if that directory is
5112 # removed, or if the path is relative.
5113 INSTALL=$ac_install_sh
5116 echo "$as_me:$LINENO: result: $INSTALL" >&5
5117 echo "${ECHO_T}$INSTALL" >&6
5119 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5120 # It thinks the first close brace ends the variable substitution.
5121 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5123 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5125 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5128 ALL_LINGUAS="fr sv tr es da vi zh_CN"
5129 if test -n "$ac_tool_prefix"; then
5130 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5132 echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5134 if test "${ac_cv_prog_RANLIB+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137 if test -n "$RANLIB"; then
5138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5151 done
5152 done
5156 RANLIB=$ac_cv_prog_RANLIB
5157 if test -n "$RANLIB"; then
5158 echo "$as_me:$LINENO: result: $RANLIB" >&5
5159 echo "${ECHO_T}$RANLIB" >&6
5160 else
5161 echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6
5166 if test -z "$ac_cv_prog_RANLIB"; then
5167 ac_ct_RANLIB=$RANLIB
5168 # Extract the first word of "ranlib", so it can be a program name with args.
5169 set dummy ranlib; ac_word=$2
5170 echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175 if test -n "$ac_ct_RANLIB"; then
5176 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185 ac_cv_prog_ac_ct_RANLIB="ranlib"
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5189 done
5190 done
5192 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5196 if test -n "$ac_ct_RANLIB"; then
5197 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5198 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5199 else
5200 echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5204 RANLIB=$ac_ct_RANLIB
5205 else
5206 RANLIB="$ac_cv_prog_RANLIB"
5209 ac_ext=c
5210 ac_cpp='$CPP $CPPFLAGS'
5211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5214 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5215 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5216 # On Suns, sometimes $CPP names a directory.
5217 if test -n "$CPP" && test -d "$CPP"; then
5218 CPP=
5220 if test -z "$CPP"; then
5221 if test "${ac_cv_prog_CPP+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 # Double quotes because CPP needs to be expanded
5225 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5227 ac_preproc_ok=false
5228 for ac_c_preproc_warn_flag in '' yes
5230 # Use a header file that comes with gcc, so configuring glibc
5231 # with a fresh cross-compiler works.
5232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5233 # <limits.h> exists even on freestanding compilers.
5234 # On the NeXT, cc -E runs the code through the compiler's parser,
5235 # not just through cpp. "Syntax error" is here to catch this case.
5236 cat >conftest.$ac_ext <<_ACEOF
5237 /* confdefs.h. */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 #ifdef __STDC__
5243 # include <limits.h>
5244 #else
5245 # include <assert.h>
5246 #endif
5247 Syntax error
5248 _ACEOF
5249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } >/dev/null; then
5257 if test -s conftest.err; then
5258 ac_cpp_err=$ac_c_preproc_warn_flag
5259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5260 else
5261 ac_cpp_err=
5263 else
5264 ac_cpp_err=yes
5266 if test -z "$ac_cpp_err"; then
5268 else
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5272 # Broken: fails on valid input.
5273 continue
5275 rm -f conftest.err conftest.$ac_ext
5277 # OK, works on sane cases. Now check whether non-existent headers
5278 # can be detected and how.
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h. */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 #include <ac_nonexistent.h>
5286 _ACEOF
5287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5289 ac_status=$?
5290 grep -v '^ *+' conftest.er1 >conftest.err
5291 rm -f conftest.er1
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } >/dev/null; then
5295 if test -s conftest.err; then
5296 ac_cpp_err=$ac_c_preproc_warn_flag
5297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5298 else
5299 ac_cpp_err=
5301 else
5302 ac_cpp_err=yes
5304 if test -z "$ac_cpp_err"; then
5305 # Broken: success on invalid input.
5306 continue
5307 else
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 # Passes both tests.
5312 ac_preproc_ok=:
5313 break
5315 rm -f conftest.err conftest.$ac_ext
5317 done
5318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5319 rm -f conftest.err conftest.$ac_ext
5320 if $ac_preproc_ok; then
5321 break
5324 done
5325 ac_cv_prog_CPP=$CPP
5328 CPP=$ac_cv_prog_CPP
5329 else
5330 ac_cv_prog_CPP=$CPP
5332 echo "$as_me:$LINENO: result: $CPP" >&5
5333 echo "${ECHO_T}$CPP" >&6
5334 ac_preproc_ok=false
5335 for ac_c_preproc_warn_flag in '' yes
5337 # Use a header file that comes with gcc, so configuring glibc
5338 # with a fresh cross-compiler works.
5339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5340 # <limits.h> exists even on freestanding compilers.
5341 # On the NeXT, cc -E runs the code through the compiler's parser,
5342 # not just through cpp. "Syntax error" is here to catch this case.
5343 cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h. */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 #ifdef __STDC__
5350 # include <limits.h>
5351 #else
5352 # include <assert.h>
5353 #endif
5354 Syntax error
5355 _ACEOF
5356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5358 ac_status=$?
5359 grep -v '^ *+' conftest.er1 >conftest.err
5360 rm -f conftest.er1
5361 cat conftest.err >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } >/dev/null; then
5364 if test -s conftest.err; then
5365 ac_cpp_err=$ac_c_preproc_warn_flag
5366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5367 else
5368 ac_cpp_err=
5370 else
5371 ac_cpp_err=yes
5373 if test -z "$ac_cpp_err"; then
5375 else
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5379 # Broken: fails on valid input.
5380 continue
5382 rm -f conftest.err conftest.$ac_ext
5384 # OK, works on sane cases. Now check whether non-existent headers
5385 # can be detected and how.
5386 cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h. */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <ac_nonexistent.h>
5393 _ACEOF
5394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } >/dev/null; then
5402 if test -s conftest.err; then
5403 ac_cpp_err=$ac_c_preproc_warn_flag
5404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5405 else
5406 ac_cpp_err=
5408 else
5409 ac_cpp_err=yes
5411 if test -z "$ac_cpp_err"; then
5412 # Broken: success on invalid input.
5413 continue
5414 else
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 # Passes both tests.
5419 ac_preproc_ok=:
5420 break
5422 rm -f conftest.err conftest.$ac_ext
5424 done
5425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5426 rm -f conftest.err conftest.$ac_ext
5427 if $ac_preproc_ok; then
5429 else
5430 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." >&5
5432 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5433 See \`config.log' for more details." >&2;}
5434 { (exit 1); exit 1; }; }
5437 ac_ext=c
5438 ac_cpp='$CPP $CPPFLAGS'
5439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5444 echo "$as_me:$LINENO: checking for egrep" >&5
5445 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5446 if test "${ac_cv_prog_egrep+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5450 then ac_cv_prog_egrep='grep -E'
5451 else ac_cv_prog_egrep='egrep'
5454 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5455 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5456 EGREP=$ac_cv_prog_egrep
5459 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5460 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5461 if test "${ac_cv_header_stdc+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464 cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h. */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5470 #include <stdlib.h>
5471 #include <stdarg.h>
5472 #include <string.h>
5473 #include <float.h>
5476 main ()
5480 return 0;
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -z "$ac_c_werror_flag"
5493 || test ! -s conftest.err'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 (eval $ac_try) 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } &&
5499 { ac_try='test -s conftest.$ac_objext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_cv_header_stdc=yes
5506 else
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 ac_cv_header_stdc=no
5512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5514 if test $ac_cv_header_stdc = yes; then
5515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h. */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 #include <string.h>
5524 _ACEOF
5525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5526 $EGREP "memchr" >/dev/null 2>&1; then
5528 else
5529 ac_cv_header_stdc=no
5531 rm -f conftest*
5535 if test $ac_cv_header_stdc = yes; then
5536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5537 cat >conftest.$ac_ext <<_ACEOF
5538 /* confdefs.h. */
5539 _ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5543 #include <stdlib.h>
5545 _ACEOF
5546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5547 $EGREP "free" >/dev/null 2>&1; then
5549 else
5550 ac_cv_header_stdc=no
5552 rm -f conftest*
5556 if test $ac_cv_header_stdc = yes; then
5557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5558 if test "$cross_compiling" = yes; then
5560 else
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #include <ctype.h>
5568 #if ((' ' & 0x0FF) == 0x020)
5569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5571 #else
5572 # define ISLOWER(c) \
5573 (('a' <= (c) && (c) <= 'i') \
5574 || ('j' <= (c) && (c) <= 'r') \
5575 || ('s' <= (c) && (c) <= 'z'))
5576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5577 #endif
5579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5581 main ()
5583 int i;
5584 for (i = 0; i < 256; i++)
5585 if (XOR (islower (i), ISLOWER (i))
5586 || toupper (i) != TOUPPER (i))
5587 exit(2);
5588 exit (0);
5590 _ACEOF
5591 rm -f conftest$ac_exeext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5603 else
5604 echo "$as_me: program exited with status $ac_status" >&5
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 ( exit $ac_status )
5609 ac_cv_header_stdc=no
5611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5615 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5616 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5617 if test $ac_cv_header_stdc = yes; then
5619 cat >>confdefs.h <<\_ACEOF
5620 #define STDC_HEADERS 1
5621 _ACEOF
5625 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5626 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5627 if test "${ac_cv_c_const+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h. */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5638 main ()
5640 /* FIXME: Include the comments suggested by Paul. */
5641 #ifndef __cplusplus
5642 /* Ultrix mips cc rejects this. */
5643 typedef int charset[2];
5644 const charset x;
5645 /* SunOS 4.1.1 cc rejects this. */
5646 char const *const *ccp;
5647 char **p;
5648 /* NEC SVR4.0.2 mips cc rejects this. */
5649 struct point {int x, y;};
5650 static struct point const zero = {0,0};
5651 /* AIX XL C 1.02.0.0 rejects this.
5652 It does not let you subtract one const X* pointer from another in
5653 an arm of an if-expression whose if-part is not a constant
5654 expression */
5655 const char *g = "string";
5656 ccp = &g + (g ? g-g : 0);
5657 /* HPUX 7.0 cc rejects these. */
5658 ++ccp;
5659 p = (char**) ccp;
5660 ccp = (char const *const *) p;
5661 { /* SCO 3.2v4 cc rejects this. */
5662 char *t;
5663 char const *s = 0 ? (char *) 0 : (char const *) 0;
5665 *t++ = 0;
5667 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5668 int x[] = {25, 17};
5669 const int *foo = &x[0];
5670 ++foo;
5672 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5673 typedef const int *iptr;
5674 iptr p = 0;
5675 ++p;
5677 { /* AIX XL C 1.02.0.0 rejects this saying
5678 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5679 struct s { int j; const int *ap[3]; };
5680 struct s *b; b->j = 5;
5682 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5683 const int foo = 10;
5685 #endif
5688 return 0;
5690 _ACEOF
5691 rm -f conftest.$ac_objext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5693 (eval $ac_compile) 2>conftest.er1
5694 ac_status=$?
5695 grep -v '^ *+' conftest.er1 >conftest.err
5696 rm -f conftest.er1
5697 cat conftest.err >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } &&
5700 { ac_try='test -z "$ac_c_werror_flag"
5701 || test ! -s conftest.err'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 (eval $ac_try) 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest.$ac_objext'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 (eval $ac_try) 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
5713 ac_cv_c_const=yes
5714 else
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5718 ac_cv_c_const=no
5720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5722 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5723 echo "${ECHO_T}$ac_cv_c_const" >&6
5724 if test $ac_cv_c_const = no; then
5726 cat >>confdefs.h <<\_ACEOF
5727 #define const
5728 _ACEOF
5732 echo "$as_me:$LINENO: checking for inline" >&5
5733 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5734 if test "${ac_cv_c_inline+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737 ac_cv_c_inline=no
5738 for ac_kw in inline __inline__ __inline; do
5739 cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h. */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 #ifndef __cplusplus
5746 typedef int foo_t;
5747 static $ac_kw foo_t static_foo () {return 0; }
5748 $ac_kw foo_t foo () {return 0; }
5749 #endif
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>conftest.er1
5755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -z "$ac_c_werror_flag"
5762 || test ! -s conftest.err'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 (eval $ac_try) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; } &&
5768 { ac_try='test -s conftest.$ac_objext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 (eval $ac_try) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 ac_cv_c_inline=$ac_kw; break
5775 else
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781 done
5784 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5785 echo "${ECHO_T}$ac_cv_c_inline" >&6
5788 case $ac_cv_c_inline in
5789 inline | yes) ;;
5791 case $ac_cv_c_inline in
5792 no) ac_val=;;
5793 *) ac_val=$ac_cv_c_inline;;
5794 esac
5795 cat >>confdefs.h <<_ACEOF
5796 #ifndef __cplusplus
5797 #define inline $ac_val
5798 #endif
5799 _ACEOF
5801 esac
5803 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5813 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5814 inttypes.h stdint.h unistd.h
5816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5817 echo "$as_me:$LINENO: checking for $ac_header" >&5
5818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822 cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h. */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 $ac_includes_default
5830 #include <$ac_header>
5831 _ACEOF
5832 rm -f conftest.$ac_objext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834 (eval $ac_compile) 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_c_werror_flag"
5842 || test ! -s conftest.err'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try='test -s conftest.$ac_objext'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 eval "$as_ac_Header=yes"
5855 else
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5859 eval "$as_ac_Header=no"
5861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5866 cat >>confdefs.h <<_ACEOF
5867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5868 _ACEOF
5872 done
5875 echo "$as_me:$LINENO: checking for off_t" >&5
5876 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5877 if test "${ac_cv_type_off_t+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h. */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 $ac_includes_default
5888 main ()
5890 if ((off_t *) 0)
5891 return 0;
5892 if (sizeof (off_t))
5893 return 0;
5895 return 0;
5897 _ACEOF
5898 rm -f conftest.$ac_objext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900 (eval $ac_compile) 2>conftest.er1
5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -z "$ac_c_werror_flag"
5908 || test ! -s conftest.err'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 (eval $ac_try) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try='test -s conftest.$ac_objext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 (eval $ac_try) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 ac_cv_type_off_t=yes
5921 else
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 ac_cv_type_off_t=no
5927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5929 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5930 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5931 if test $ac_cv_type_off_t = yes; then
5933 else
5935 cat >>confdefs.h <<_ACEOF
5936 #define off_t long
5937 _ACEOF
5941 echo "$as_me:$LINENO: checking for size_t" >&5
5942 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5943 if test "${ac_cv_type_size_t+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 $ac_includes_default
5954 main ()
5956 if ((size_t *) 0)
5957 return 0;
5958 if (sizeof (size_t))
5959 return 0;
5961 return 0;
5963 _ACEOF
5964 rm -f conftest.$ac_objext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5966 (eval $ac_compile) 2>conftest.er1
5967 ac_status=$?
5968 grep -v '^ *+' conftest.er1 >conftest.err
5969 rm -f conftest.er1
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
5973 { ac_try='test -z "$ac_c_werror_flag"
5974 || test ! -s conftest.err'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 (eval $ac_try) 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; } &&
5980 { ac_try='test -s conftest.$ac_objext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 (eval $ac_try) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 ac_cv_type_size_t=yes
5987 else
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_cv_type_size_t=no
5993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5995 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5996 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5997 if test $ac_cv_type_size_t = yes; then
5999 else
6001 cat >>confdefs.h <<_ACEOF
6002 #define size_t unsigned
6003 _ACEOF
6007 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6008 # for constant arguments. Useless!
6009 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6010 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6011 if test "${ac_cv_working_alloca_h+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #include <alloca.h>
6022 main ()
6024 char *p = (char *) alloca (2 * sizeof (int));
6026 return 0;
6028 _ACEOF
6029 rm -f conftest.$ac_objext conftest$ac_exeext
6030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6031 (eval $ac_link) 2>conftest.er1
6032 ac_status=$?
6033 grep -v '^ *+' conftest.er1 >conftest.err
6034 rm -f conftest.er1
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } &&
6038 { ac_try='test -z "$ac_c_werror_flag"
6039 || test ! -s conftest.err'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 (eval $ac_try) 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; } &&
6045 { ac_try='test -s conftest$ac_exeext'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 (eval $ac_try) 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; }; then
6051 ac_cv_working_alloca_h=yes
6052 else
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6056 ac_cv_working_alloca_h=no
6058 rm -f conftest.err conftest.$ac_objext \
6059 conftest$ac_exeext conftest.$ac_ext
6061 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6062 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6063 if test $ac_cv_working_alloca_h = yes; then
6065 cat >>confdefs.h <<\_ACEOF
6066 #define HAVE_ALLOCA_H 1
6067 _ACEOF
6071 echo "$as_me:$LINENO: checking for alloca" >&5
6072 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6073 if test "${ac_cv_func_alloca_works+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076 cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h. */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 #ifdef __GNUC__
6083 # define alloca __builtin_alloca
6084 #else
6085 # ifdef _MSC_VER
6086 # include <malloc.h>
6087 # define alloca _alloca
6088 # else
6089 # if HAVE_ALLOCA_H
6090 # include <alloca.h>
6091 # else
6092 # ifdef _AIX
6093 #pragma alloca
6094 # else
6095 # ifndef alloca /* predefined by HP cc +Olibcalls */
6096 char *alloca ();
6097 # endif
6098 # endif
6099 # endif
6100 # endif
6101 #endif
6104 main ()
6106 char *p = (char *) alloca (1);
6108 return 0;
6110 _ACEOF
6111 rm -f conftest.$ac_objext conftest$ac_exeext
6112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6113 (eval $ac_link) 2>conftest.er1
6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try='test -z "$ac_c_werror_flag"
6121 || test ! -s conftest.err'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; } &&
6127 { ac_try='test -s conftest$ac_exeext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_cv_func_alloca_works=yes
6134 else
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 ac_cv_func_alloca_works=no
6140 rm -f conftest.err conftest.$ac_objext \
6141 conftest$ac_exeext conftest.$ac_ext
6143 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6144 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6146 if test $ac_cv_func_alloca_works = yes; then
6148 cat >>confdefs.h <<\_ACEOF
6149 #define HAVE_ALLOCA 1
6150 _ACEOF
6152 else
6153 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6154 # that cause trouble. Some versions do not even contain alloca or
6155 # contain a buggy version. If you still want to use their alloca,
6156 # use ar to extract alloca.o from them instead of compiling alloca.c.
6158 ALLOCA=alloca.$ac_objext
6160 cat >>confdefs.h <<\_ACEOF
6161 #define C_ALLOCA 1
6162 _ACEOF
6165 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6166 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6167 if test "${ac_cv_os_cray+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170 cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h. */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 #if defined(CRAY) && ! defined(CRAY2)
6177 webecray
6178 #else
6179 wenotbecray
6180 #endif
6182 _ACEOF
6183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6184 $EGREP "webecray" >/dev/null 2>&1; then
6185 ac_cv_os_cray=yes
6186 else
6187 ac_cv_os_cray=no
6189 rm -f conftest*
6192 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6193 echo "${ECHO_T}$ac_cv_os_cray" >&6
6194 if test $ac_cv_os_cray = yes; then
6195 for ac_func in _getb67 GETB67 getb67; do
6196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6197 echo "$as_me:$LINENO: checking for $ac_func" >&5
6198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6199 if eval "test \"\${$as_ac_var+set}\" = set"; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6210 #define $ac_func innocuous_$ac_func
6212 /* System header to define __stub macros and hopefully few prototypes,
6213 which can conflict with char $ac_func (); below.
6214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6215 <limits.h> exists even on freestanding compilers. */
6217 #ifdef __STDC__
6218 # include <limits.h>
6219 #else
6220 # include <assert.h>
6221 #endif
6223 #undef $ac_func
6225 /* Override any gcc2 internal prototype to avoid an error. */
6226 #ifdef __cplusplus
6227 extern "C"
6229 #endif
6230 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6232 char $ac_func ();
6233 /* The GNU C library defines this for functions which it implements
6234 to always fail with ENOSYS. Some functions are actually named
6235 something starting with __ and the normal name is an alias. */
6236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6237 choke me
6238 #else
6239 char (*f) () = $ac_func;
6240 #endif
6241 #ifdef __cplusplus
6243 #endif
6246 main ()
6248 return f != $ac_func;
6250 return 0;
6252 _ACEOF
6253 rm -f conftest.$ac_objext conftest$ac_exeext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255 (eval $ac_link) 2>conftest.er1
6256 ac_status=$?
6257 grep -v '^ *+' conftest.er1 >conftest.err
6258 rm -f conftest.er1
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try='test -z "$ac_c_werror_flag"
6263 || test ! -s conftest.err'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } &&
6269 { ac_try='test -s conftest$ac_exeext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 eval "$as_ac_var=yes"
6276 else
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6280 eval "$as_ac_var=no"
6282 rm -f conftest.err conftest.$ac_objext \
6283 conftest$ac_exeext conftest.$ac_ext
6285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6287 if test `eval echo '${'$as_ac_var'}'` = yes; then
6289 cat >>confdefs.h <<_ACEOF
6290 #define CRAY_STACKSEG_END $ac_func
6291 _ACEOF
6293 break
6296 done
6299 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6300 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6301 if test "${ac_cv_c_stack_direction+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 if test "$cross_compiling" = yes; then
6305 ac_cv_c_stack_direction=0
6306 else
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6314 find_stack_direction ()
6316 static char *addr = 0;
6317 auto char dummy;
6318 if (addr == 0)
6320 addr = &dummy;
6321 return find_stack_direction ();
6323 else
6324 return (&dummy > addr) ? 1 : -1;
6328 main ()
6330 exit (find_stack_direction () < 0);
6332 _ACEOF
6333 rm -f conftest$ac_exeext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335 (eval $ac_link) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 (eval $ac_try) 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 ac_cv_c_stack_direction=1
6345 else
6346 echo "$as_me: program exited with status $ac_status" >&5
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6350 ( exit $ac_status )
6351 ac_cv_c_stack_direction=-1
6353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6356 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6357 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6359 cat >>confdefs.h <<_ACEOF
6360 #define STACK_DIRECTION $ac_cv_c_stack_direction
6361 _ACEOF
6368 for ac_header in stdlib.h unistd.h
6370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6372 echo "$as_me:$LINENO: checking for $ac_header" >&5
6373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6379 else
6380 # Is the header compilable?
6381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h. */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 $ac_includes_default
6390 #include <$ac_header>
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_c_werror_flag"
6402 || test ! -s conftest.err'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; } &&
6408 { ac_try='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_header_compiler=yes
6415 else
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_header_compiler=no
6421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6423 echo "${ECHO_T}$ac_header_compiler" >&6
6425 # Is the header present?
6426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6428 cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h. */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 #include <$ac_header>
6435 _ACEOF
6436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6438 ac_status=$?
6439 grep -v '^ *+' conftest.er1 >conftest.err
6440 rm -f conftest.er1
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } >/dev/null; then
6444 if test -s conftest.err; then
6445 ac_cpp_err=$ac_c_preproc_warn_flag
6446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6447 else
6448 ac_cpp_err=
6450 else
6451 ac_cpp_err=yes
6453 if test -z "$ac_cpp_err"; then
6454 ac_header_preproc=yes
6455 else
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6459 ac_header_preproc=no
6461 rm -f conftest.err conftest.$ac_ext
6462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6463 echo "${ECHO_T}$ac_header_preproc" >&6
6465 # So? What about this header?
6466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6467 yes:no: )
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6472 ac_header_preproc=yes
6474 no:yes:* )
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6488 cat <<\_ASBOX
6489 ## ------------------------------------------ ##
6490 ## Report this to the AC_PACKAGE_NAME lists. ##
6491 ## ------------------------------------------ ##
6492 _ASBOX
6494 sed "s/^/$as_me: WARNING: /" >&2
6496 esac
6497 echo "$as_me:$LINENO: checking for $ac_header" >&5
6498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 else
6502 eval "$as_ac_Header=\$ac_header_preproc"
6504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6509 cat >>confdefs.h <<_ACEOF
6510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6511 _ACEOF
6515 done
6518 for ac_func in getpagesize
6520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6521 echo "$as_me:$LINENO: checking for $ac_func" >&5
6522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6523 if eval "test \"\${$as_ac_var+set}\" = set"; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6534 #define $ac_func innocuous_$ac_func
6536 /* System header to define __stub macros and hopefully few prototypes,
6537 which can conflict with char $ac_func (); below.
6538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6539 <limits.h> exists even on freestanding compilers. */
6541 #ifdef __STDC__
6542 # include <limits.h>
6543 #else
6544 # include <assert.h>
6545 #endif
6547 #undef $ac_func
6549 /* Override any gcc2 internal prototype to avoid an error. */
6550 #ifdef __cplusplus
6551 extern "C"
6553 #endif
6554 /* We use char because int might match the return type of a gcc2
6555 builtin and then its argument prototype would still apply. */
6556 char $ac_func ();
6557 /* The GNU C library defines this for functions which it implements
6558 to always fail with ENOSYS. Some functions are actually named
6559 something starting with __ and the normal name is an alias. */
6560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6561 choke me
6562 #else
6563 char (*f) () = $ac_func;
6564 #endif
6565 #ifdef __cplusplus
6567 #endif
6570 main ()
6572 return f != $ac_func;
6574 return 0;
6576 _ACEOF
6577 rm -f conftest.$ac_objext conftest$ac_exeext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6579 (eval $ac_link) 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } &&
6586 { ac_try='test -z "$ac_c_werror_flag"
6587 || test ! -s conftest.err'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 (eval $ac_try) 2>&5
6590 ac_status=$?
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; } &&
6593 { ac_try='test -s conftest$ac_exeext'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595 (eval $ac_try) 2>&5
6596 ac_status=$?
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 eval "$as_ac_var=yes"
6600 else
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6604 eval "$as_ac_var=no"
6606 rm -f conftest.err conftest.$ac_objext \
6607 conftest$ac_exeext conftest.$ac_ext
6609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6611 if test `eval echo '${'$as_ac_var'}'` = yes; then
6612 cat >>confdefs.h <<_ACEOF
6613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6614 _ACEOF
6617 done
6619 echo "$as_me:$LINENO: checking for working mmap" >&5
6620 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6621 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624 if test "$cross_compiling" = yes; then
6625 ac_cv_func_mmap_fixed_mapped=no
6626 else
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h. */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 $ac_includes_default
6634 /* malloc might have been renamed as rpl_malloc. */
6635 #undef malloc
6637 /* Thanks to Mike Haertel and Jim Avera for this test.
6638 Here is a matrix of mmap possibilities:
6639 mmap private not fixed
6640 mmap private fixed at somewhere currently unmapped
6641 mmap private fixed at somewhere already mapped
6642 mmap shared not fixed
6643 mmap shared fixed at somewhere currently unmapped
6644 mmap shared fixed at somewhere already mapped
6645 For private mappings, we should verify that changes cannot be read()
6646 back from the file, nor mmap's back from the file at a different
6647 address. (There have been systems where private was not correctly
6648 implemented like the infamous i386 svr4.0, and systems where the
6649 VM page cache was not coherent with the file system buffer cache
6650 like early versions of FreeBSD and possibly contemporary NetBSD.)
6651 For shared mappings, we should conversely verify that changes get
6652 propagated back to all the places they're supposed to be.
6654 Grep wants private fixed already mapped.
6655 The main things grep needs to know about mmap are:
6656 * does it exist and is it safe to write into the mmap'd area
6657 * how to use it (BSD variants) */
6659 #include <fcntl.h>
6660 #include <sys/mman.h>
6662 #if !STDC_HEADERS && !HAVE_STDLIB_H
6663 char *malloc ();
6664 #endif
6666 /* This mess was copied from the GNU getpagesize.h. */
6667 #if !HAVE_GETPAGESIZE
6668 /* Assume that all systems that can run configure have sys/param.h. */
6669 # if !HAVE_SYS_PARAM_H
6670 # define HAVE_SYS_PARAM_H 1
6671 # endif
6673 # ifdef _SC_PAGESIZE
6674 # define getpagesize() sysconf(_SC_PAGESIZE)
6675 # else /* no _SC_PAGESIZE */
6676 # if HAVE_SYS_PARAM_H
6677 # include <sys/param.h>
6678 # ifdef EXEC_PAGESIZE
6679 # define getpagesize() EXEC_PAGESIZE
6680 # else /* no EXEC_PAGESIZE */
6681 # ifdef NBPG
6682 # define getpagesize() NBPG * CLSIZE
6683 # ifndef CLSIZE
6684 # define CLSIZE 1
6685 # endif /* no CLSIZE */
6686 # else /* no NBPG */
6687 # ifdef NBPC
6688 # define getpagesize() NBPC
6689 # else /* no NBPC */
6690 # ifdef PAGESIZE
6691 # define getpagesize() PAGESIZE
6692 # endif /* PAGESIZE */
6693 # endif /* no NBPC */
6694 # endif /* no NBPG */
6695 # endif /* no EXEC_PAGESIZE */
6696 # else /* no HAVE_SYS_PARAM_H */
6697 # define getpagesize() 8192 /* punt totally */
6698 # endif /* no HAVE_SYS_PARAM_H */
6699 # endif /* no _SC_PAGESIZE */
6701 #endif /* no HAVE_GETPAGESIZE */
6704 main ()
6706 char *data, *data2, *data3;
6707 int i, pagesize;
6708 int fd;
6710 pagesize = getpagesize ();
6712 /* First, make a file with some known garbage in it. */
6713 data = (char *) malloc (pagesize);
6714 if (!data)
6715 exit (1);
6716 for (i = 0; i < pagesize; ++i)
6717 *(data + i) = rand ();
6718 umask (0);
6719 fd = creat ("conftest.mmap", 0600);
6720 if (fd < 0)
6721 exit (1);
6722 if (write (fd, data, pagesize) != pagesize)
6723 exit (1);
6724 close (fd);
6726 /* Next, try to mmap the file at a fixed address which already has
6727 something else allocated at it. If we can, also make sure that
6728 we see the same garbage. */
6729 fd = open ("conftest.mmap", O_RDWR);
6730 if (fd < 0)
6731 exit (1);
6732 data2 = (char *) malloc (2 * pagesize);
6733 if (!data2)
6734 exit (1);
6735 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6736 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6737 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6738 exit (1);
6739 for (i = 0; i < pagesize; ++i)
6740 if (*(data + i) != *(data2 + i))
6741 exit (1);
6743 /* Finally, make sure that changes to the mapped area do not
6744 percolate back to the file as seen by read(). (This is a bug on
6745 some variants of i386 svr4.0.) */
6746 for (i = 0; i < pagesize; ++i)
6747 *(data2 + i) = *(data2 + i) + 1;
6748 data3 = (char *) malloc (pagesize);
6749 if (!data3)
6750 exit (1);
6751 if (read (fd, data3, pagesize) != pagesize)
6752 exit (1);
6753 for (i = 0; i < pagesize; ++i)
6754 if (*(data + i) != *(data3 + i))
6755 exit (1);
6756 close (fd);
6757 exit (0);
6759 _ACEOF
6760 rm -f conftest$ac_exeext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6762 (eval $ac_link) 2>&5
6763 ac_status=$?
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 ac_cv_func_mmap_fixed_mapped=yes
6772 else
6773 echo "$as_me: program exited with status $ac_status" >&5
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 ( exit $ac_status )
6778 ac_cv_func_mmap_fixed_mapped=no
6780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6783 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6784 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6785 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6787 cat >>confdefs.h <<\_ACEOF
6788 #define HAVE_MMAP 1
6789 _ACEOF
6792 rm -f conftest.mmap
6804 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6805 unistd.h values.h sys/param.h
6807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6809 echo "$as_me:$LINENO: checking for $ac_header" >&5
6810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6816 else
6817 # Is the header compilable?
6818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6820 cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h. */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 $ac_includes_default
6827 #include <$ac_header>
6828 _ACEOF
6829 rm -f conftest.$ac_objext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6831 (eval $ac_compile) 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try='test -z "$ac_c_werror_flag"
6839 || test ! -s conftest.err'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try='test -s conftest.$ac_objext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 (eval $ac_try) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_header_compiler=yes
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 ac_header_compiler=no
6858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6860 echo "${ECHO_T}$ac_header_compiler" >&6
6862 # Is the header present?
6863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6865 cat >conftest.$ac_ext <<_ACEOF
6866 /* confdefs.h. */
6867 _ACEOF
6868 cat confdefs.h >>conftest.$ac_ext
6869 cat >>conftest.$ac_ext <<_ACEOF
6870 /* end confdefs.h. */
6871 #include <$ac_header>
6872 _ACEOF
6873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } >/dev/null; then
6881 if test -s conftest.err; then
6882 ac_cpp_err=$ac_c_preproc_warn_flag
6883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6884 else
6885 ac_cpp_err=
6887 else
6888 ac_cpp_err=yes
6890 if test -z "$ac_cpp_err"; then
6891 ac_header_preproc=yes
6892 else
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_header_preproc=no
6898 rm -f conftest.err conftest.$ac_ext
6899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6900 echo "${ECHO_T}$ac_header_preproc" >&6
6902 # So? What about this header?
6903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6904 yes:no: )
6905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6909 ac_header_preproc=yes
6911 no:yes:* )
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6925 cat <<\_ASBOX
6926 ## ------------------------------------------ ##
6927 ## Report this to the AC_PACKAGE_NAME lists. ##
6928 ## ------------------------------------------ ##
6929 _ASBOX
6931 sed "s/^/$as_me: WARNING: /" >&2
6933 esac
6934 echo "$as_me:$LINENO: checking for $ac_header" >&5
6935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 eval "$as_ac_Header=\$ac_header_preproc"
6941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6946 cat >>confdefs.h <<_ACEOF
6947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6948 _ACEOF
6952 done
6964 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6965 __argz_count __argz_stringify __argz_next
6967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6968 echo "$as_me:$LINENO: checking for $ac_func" >&5
6969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6970 if eval "test \"\${$as_ac_var+set}\" = set"; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973 cat >conftest.$ac_ext <<_ACEOF
6974 /* confdefs.h. */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6981 #define $ac_func innocuous_$ac_func
6983 /* System header to define __stub macros and hopefully few prototypes,
6984 which can conflict with char $ac_func (); below.
6985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6986 <limits.h> exists even on freestanding compilers. */
6988 #ifdef __STDC__
6989 # include <limits.h>
6990 #else
6991 # include <assert.h>
6992 #endif
6994 #undef $ac_func
6996 /* Override any gcc2 internal prototype to avoid an error. */
6997 #ifdef __cplusplus
6998 extern "C"
7000 #endif
7001 /* We use char because int might match the return type of a gcc2
7002 builtin and then its argument prototype would still apply. */
7003 char $ac_func ();
7004 /* The GNU C library defines this for functions which it implements
7005 to always fail with ENOSYS. Some functions are actually named
7006 something starting with __ and the normal name is an alias. */
7007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7008 choke me
7009 #else
7010 char (*f) () = $ac_func;
7011 #endif
7012 #ifdef __cplusplus
7014 #endif
7017 main ()
7019 return f != $ac_func;
7021 return 0;
7023 _ACEOF
7024 rm -f conftest.$ac_objext conftest$ac_exeext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026 (eval $ac_link) 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try='test -z "$ac_c_werror_flag"
7034 || test ! -s conftest.err'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 (eval $ac_try) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; } &&
7040 { ac_try='test -s conftest$ac_exeext'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 (eval $ac_try) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; }; then
7046 eval "$as_ac_var=yes"
7047 else
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7051 eval "$as_ac_var=no"
7053 rm -f conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7058 if test `eval echo '${'$as_ac_var'}'` = yes; then
7059 cat >>confdefs.h <<_ACEOF
7060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7061 _ACEOF
7064 done
7067 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7069 for ac_func in stpcpy
7071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7072 echo "$as_me:$LINENO: checking for $ac_func" >&5
7073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7074 if eval "test \"\${$as_ac_var+set}\" = set"; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077 cat >conftest.$ac_ext <<_ACEOF
7078 /* confdefs.h. */
7079 _ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7085 #define $ac_func innocuous_$ac_func
7087 /* System header to define __stub macros and hopefully few prototypes,
7088 which can conflict with char $ac_func (); below.
7089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7090 <limits.h> exists even on freestanding compilers. */
7092 #ifdef __STDC__
7093 # include <limits.h>
7094 #else
7095 # include <assert.h>
7096 #endif
7098 #undef $ac_func
7100 /* Override any gcc2 internal prototype to avoid an error. */
7101 #ifdef __cplusplus
7102 extern "C"
7104 #endif
7105 /* We use char because int might match the return type of a gcc2
7106 builtin and then its argument prototype would still apply. */
7107 char $ac_func ();
7108 /* The GNU C library defines this for functions which it implements
7109 to always fail with ENOSYS. Some functions are actually named
7110 something starting with __ and the normal name is an alias. */
7111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7112 choke me
7113 #else
7114 char (*f) () = $ac_func;
7115 #endif
7116 #ifdef __cplusplus
7118 #endif
7121 main ()
7123 return f != $ac_func;
7125 return 0;
7127 _ACEOF
7128 rm -f conftest.$ac_objext conftest$ac_exeext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7130 (eval $ac_link) 2>conftest.er1
7131 ac_status=$?
7132 grep -v '^ *+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } &&
7137 { ac_try='test -z "$ac_c_werror_flag"
7138 || test ! -s conftest.err'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; } &&
7144 { ac_try='test -s conftest$ac_exeext'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 (eval $ac_try) 2>&5
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 eval "$as_ac_var=yes"
7151 else
7152 echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7155 eval "$as_ac_var=no"
7157 rm -f conftest.err conftest.$ac_objext \
7158 conftest$ac_exeext conftest.$ac_ext
7160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7162 if test `eval echo '${'$as_ac_var'}'` = yes; then
7163 cat >>confdefs.h <<_ACEOF
7164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7165 _ACEOF
7168 done
7171 if test "${ac_cv_func_stpcpy}" = "yes"; then
7173 cat >>confdefs.h <<\_ACEOF
7174 #define HAVE_STPCPY 1
7175 _ACEOF
7179 if test $ac_cv_header_locale_h = yes; then
7180 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7181 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7182 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185 cat >conftest.$ac_ext <<_ACEOF
7186 /* confdefs.h. */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7191 #include <locale.h>
7193 main ()
7195 return LC_MESSAGES
7197 return 0;
7199 _ACEOF
7200 rm -f conftest.$ac_objext conftest$ac_exeext
7201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7202 (eval $ac_link) 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try='test -z "$ac_c_werror_flag"
7210 || test ! -s conftest.err'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 (eval $ac_try) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; } &&
7216 { ac_try='test -s conftest$ac_exeext'
7217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 (eval $ac_try) 2>&5
7219 ac_status=$?
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; }; then
7222 am_cv_val_LC_MESSAGES=yes
7223 else
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227 am_cv_val_LC_MESSAGES=no
7229 rm -f conftest.err conftest.$ac_objext \
7230 conftest$ac_exeext conftest.$ac_ext
7232 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7233 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7234 if test $am_cv_val_LC_MESSAGES = yes; then
7236 cat >>confdefs.h <<\_ACEOF
7237 #define HAVE_LC_MESSAGES 1
7238 _ACEOF
7242 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7243 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7244 # Check whether --enable-nls or --disable-nls was given.
7245 if test "${enable_nls+set}" = set; then
7246 enableval="$enable_nls"
7247 USE_NLS=$enableval
7248 else
7249 USE_NLS=yes
7251 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7252 echo "${ECHO_T}$USE_NLS" >&6
7255 USE_INCLUDED_LIBINTL=no
7257 if test "$USE_NLS" = "yes"; then
7258 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7259 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7261 # Check whether --with-included-gettext or --without-included-gettext was given.
7262 if test "${with_included_gettext+set}" = set; then
7263 withval="$with_included_gettext"
7264 nls_cv_force_use_gnu_gettext=$withval
7265 else
7266 nls_cv_force_use_gnu_gettext=no
7268 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7269 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7271 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7272 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7273 nls_cv_header_intl=
7274 nls_cv_header_libgt=
7275 CATOBJEXT=
7277 if test "${ac_cv_header_libintl_h+set}" = set; then
7278 echo "$as_me:$LINENO: checking for libintl.h" >&5
7279 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7280 if test "${ac_cv_header_libintl_h+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7284 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7285 else
7286 # Is the header compilable?
7287 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7288 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7289 cat >conftest.$ac_ext <<_ACEOF
7290 /* confdefs.h. */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7295 $ac_includes_default
7296 #include <libintl.h>
7297 _ACEOF
7298 rm -f conftest.$ac_objext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7300 (eval $ac_compile) 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try='test -z "$ac_c_werror_flag"
7308 || test ! -s conftest.err'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 (eval $ac_try) 2>&5
7311 ac_status=$?
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; } &&
7314 { ac_try='test -s conftest.$ac_objext'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 (eval $ac_try) 2>&5
7317 ac_status=$?
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; }; then
7320 ac_header_compiler=yes
7321 else
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7325 ac_header_compiler=no
7327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7329 echo "${ECHO_T}$ac_header_compiler" >&6
7331 # Is the header present?
7332 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7333 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7334 cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h. */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 #include <libintl.h>
7341 _ACEOF
7342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } >/dev/null; then
7350 if test -s conftest.err; then
7351 ac_cpp_err=$ac_c_preproc_warn_flag
7352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7353 else
7354 ac_cpp_err=
7356 else
7357 ac_cpp_err=yes
7359 if test -z "$ac_cpp_err"; then
7360 ac_header_preproc=yes
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 ac_header_preproc=no
7367 rm -f conftest.err conftest.$ac_ext
7368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7369 echo "${ECHO_T}$ac_header_preproc" >&6
7371 # So? What about this header?
7372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7373 yes:no: )
7374 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7375 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7376 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7377 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7378 ac_header_preproc=yes
7380 no:yes:* )
7381 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7382 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7383 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7384 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7386 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7387 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7388 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7389 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7390 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7392 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7394 cat <<\_ASBOX
7395 ## ------------------------------------------ ##
7396 ## Report this to the AC_PACKAGE_NAME lists. ##
7397 ## ------------------------------------------ ##
7398 _ASBOX
7400 sed "s/^/$as_me: WARNING: /" >&2
7402 esac
7403 echo "$as_me:$LINENO: checking for libintl.h" >&5
7404 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7405 if test "${ac_cv_header_libintl_h+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 ac_cv_header_libintl_h=$ac_header_preproc
7410 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7411 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7414 if test $ac_cv_header_libintl_h = yes; then
7415 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7416 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7417 if test "${gt_cv_func_gettext_libc+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h. */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 #include <libintl.h>
7428 main ()
7430 return (int) gettext ("")
7432 return 0;
7434 _ACEOF
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437 (eval $ac_link) 2>conftest.er1
7438 ac_status=$?
7439 grep -v '^ *+' conftest.er1 >conftest.err
7440 rm -f conftest.er1
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } &&
7444 { ac_try='test -z "$ac_c_werror_flag"
7445 || test ! -s conftest.err'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try='test -s conftest$ac_exeext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 gt_cv_func_gettext_libc=yes
7458 else
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 gt_cv_func_gettext_libc=no
7464 rm -f conftest.err conftest.$ac_objext \
7465 conftest$ac_exeext conftest.$ac_ext
7467 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7468 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7470 if test "$gt_cv_func_gettext_libc" != "yes"; then
7471 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7472 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7473 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476 ac_check_lib_save_LIBS=$LIBS
7477 LIBS="-lintl $LIBS"
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7485 /* Override any gcc2 internal prototype to avoid an error. */
7486 #ifdef __cplusplus
7487 extern "C"
7488 #endif
7489 /* We use char because int might match the return type of a gcc2
7490 builtin and then its argument prototype would still apply. */
7491 char bindtextdomain ();
7493 main ()
7495 bindtextdomain ();
7497 return 0;
7499 _ACEOF
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7502 (eval $ac_link) 2>conftest.er1
7503 ac_status=$?
7504 grep -v '^ *+' conftest.er1 >conftest.err
7505 rm -f conftest.er1
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -z "$ac_c_werror_flag"
7510 || test ! -s conftest.err'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 (eval $ac_try) 2>&5
7513 ac_status=$?
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; } &&
7516 { ac_try='test -s conftest$ac_exeext'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 (eval $ac_try) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7522 ac_cv_lib_intl_bindtextdomain=yes
7523 else
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 ac_cv_lib_intl_bindtextdomain=no
7529 rm -f conftest.err conftest.$ac_objext \
7530 conftest$ac_exeext conftest.$ac_ext
7531 LIBS=$ac_check_lib_save_LIBS
7533 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7534 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7535 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7536 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7537 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7538 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541 cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h. */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7549 main ()
7551 return (int) gettext ("")
7553 return 0;
7555 _ACEOF
7556 rm -f conftest.$ac_objext conftest$ac_exeext
7557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7558 (eval $ac_link) 2>conftest.er1
7559 ac_status=$?
7560 grep -v '^ *+' conftest.er1 >conftest.err
7561 rm -f conftest.er1
7562 cat conftest.err >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } &&
7565 { ac_try='test -z "$ac_c_werror_flag"
7566 || test ! -s conftest.err'
7567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 (eval $ac_try) 2>&5
7569 ac_status=$?
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); }; } &&
7572 { ac_try='test -s conftest$ac_exeext'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 (eval $ac_try) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; }; then
7578 gt_cv_func_gettext_libintl=yes
7579 else
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7583 gt_cv_func_gettext_libintl=no
7585 rm -f conftest.err conftest.$ac_objext \
7586 conftest$ac_exeext conftest.$ac_ext
7588 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7589 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7594 if test "$gt_cv_func_gettext_libc" = "yes" \
7595 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7597 cat >>confdefs.h <<\_ACEOF
7598 #define HAVE_GETTEXT 1
7599 _ACEOF
7601 # Extract the first word of "msgfmt", so it can be a program name with args.
7602 set dummy msgfmt; ac_word=$2
7603 echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7605 if test "${ac_cv_path_MSGFMT+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608 case "$MSGFMT" in
7610 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7614 for ac_dir in $PATH; do
7615 test -z "$ac_dir" && ac_dir=.
7616 if test -f $ac_dir/$ac_word; then
7617 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7618 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7619 break
7622 done
7623 IFS="$ac_save_ifs"
7624 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7626 esac
7628 MSGFMT="$ac_cv_path_MSGFMT"
7629 if test -n "$MSGFMT"; then
7630 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7631 echo "${ECHO_T}$MSGFMT" >&6
7632 else
7633 echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6
7636 if test "$MSGFMT" != "no"; then
7638 for ac_func in dcgettext
7640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7641 echo "$as_me:$LINENO: checking for $ac_func" >&5
7642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7643 if eval "test \"\${$as_ac_var+set}\" = set"; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7654 #define $ac_func innocuous_$ac_func
7656 /* System header to define __stub macros and hopefully few prototypes,
7657 which can conflict with char $ac_func (); below.
7658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7659 <limits.h> exists even on freestanding compilers. */
7661 #ifdef __STDC__
7662 # include <limits.h>
7663 #else
7664 # include <assert.h>
7665 #endif
7667 #undef $ac_func
7669 /* Override any gcc2 internal prototype to avoid an error. */
7670 #ifdef __cplusplus
7671 extern "C"
7673 #endif
7674 /* We use char because int might match the return type of a gcc2
7675 builtin and then its argument prototype would still apply. */
7676 char $ac_func ();
7677 /* The GNU C library defines this for functions which it implements
7678 to always fail with ENOSYS. Some functions are actually named
7679 something starting with __ and the normal name is an alias. */
7680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7681 choke me
7682 #else
7683 char (*f) () = $ac_func;
7684 #endif
7685 #ifdef __cplusplus
7687 #endif
7690 main ()
7692 return f != $ac_func;
7694 return 0;
7696 _ACEOF
7697 rm -f conftest.$ac_objext conftest$ac_exeext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7699 (eval $ac_link) 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try='test -z "$ac_c_werror_flag"
7707 || test ! -s conftest.err'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 (eval $ac_try) 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try='test -s conftest$ac_exeext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 (eval $ac_try) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7719 eval "$as_ac_var=yes"
7720 else
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7724 eval "$as_ac_var=no"
7726 rm -f conftest.err conftest.$ac_objext \
7727 conftest$ac_exeext conftest.$ac_ext
7729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7731 if test `eval echo '${'$as_ac_var'}'` = yes; then
7732 cat >>confdefs.h <<_ACEOF
7733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7734 _ACEOF
7737 done
7739 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7740 set dummy gmsgfmt; ac_word=$2
7741 echo "$as_me:$LINENO: checking for $ac_word" >&5
7742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7743 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746 case $GMSGFMT in
7747 [\\/]* | ?:[\\/]*)
7748 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7762 done
7763 done
7765 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7767 esac
7769 GMSGFMT=$ac_cv_path_GMSGFMT
7771 if test -n "$GMSGFMT"; then
7772 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7773 echo "${ECHO_T}$GMSGFMT" >&6
7774 else
7775 echo "$as_me:$LINENO: result: no" >&5
7776 echo "${ECHO_T}no" >&6
7779 # Extract the first word of "xgettext", so it can be a program name with args.
7780 set dummy xgettext; ac_word=$2
7781 echo "$as_me:$LINENO: checking for $ac_word" >&5
7782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7783 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786 case "$XGETTEXT" in
7788 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7792 for ac_dir in $PATH; do
7793 test -z "$ac_dir" && ac_dir=.
7794 if test -f $ac_dir/$ac_word; then
7795 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7796 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7797 break
7800 done
7801 IFS="$ac_save_ifs"
7802 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7804 esac
7806 XGETTEXT="$ac_cv_path_XGETTEXT"
7807 if test -n "$XGETTEXT"; then
7808 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7809 echo "${ECHO_T}$XGETTEXT" >&6
7810 else
7811 echo "$as_me:$LINENO: result: no" >&5
7812 echo "${ECHO_T}no" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h. */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7823 main ()
7825 extern int _nl_msg_cat_cntr;
7826 return _nl_msg_cat_cntr
7828 return 0;
7830 _ACEOF
7831 rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7833 (eval $ac_link) 2>conftest.er1
7834 ac_status=$?
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -z "$ac_c_werror_flag"
7841 || test ! -s conftest.err'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; } &&
7847 { ac_try='test -s conftest$ac_exeext'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 CATOBJEXT=.gmo
7854 DATADIRNAME=share
7855 else
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7859 CATOBJEXT=.mo
7860 DATADIRNAME=lib
7862 rm -f conftest.err conftest.$ac_objext \
7863 conftest$ac_exeext conftest.$ac_ext
7864 INSTOBJEXT=.mo
7873 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7874 # Neither gettext nor catgets in included in the C library.
7875 # Fall back on GNU gettext library (assuming it is present).
7876 nls_cv_use_gnu_gettext=yes
7880 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7881 INTLOBJS="\$(GETTOBJS)"
7882 # Extract the first word of "msgfmt", so it can be a program name with args.
7883 set dummy msgfmt; ac_word=$2
7884 echo "$as_me:$LINENO: checking for $ac_word" >&5
7885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7886 if test "${ac_cv_path_MSGFMT+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 case "$MSGFMT" in
7891 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7895 for ac_dir in $PATH; do
7896 test -z "$ac_dir" && ac_dir=.
7897 if test -f $ac_dir/$ac_word; then
7898 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7899 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7900 break
7903 done
7904 IFS="$ac_save_ifs"
7905 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7907 esac
7909 MSGFMT="$ac_cv_path_MSGFMT"
7910 if test -n "$MSGFMT"; then
7911 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7912 echo "${ECHO_T}$MSGFMT" >&6
7913 else
7914 echo "$as_me:$LINENO: result: no" >&5
7915 echo "${ECHO_T}no" >&6
7918 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7919 set dummy gmsgfmt; ac_word=$2
7920 echo "$as_me:$LINENO: checking for $ac_word" >&5
7921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7922 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925 case $GMSGFMT in
7926 [\\/]* | ?:[\\/]*)
7927 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7933 IFS=$as_save_IFS
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 break 2
7941 done
7942 done
7944 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7946 esac
7948 GMSGFMT=$ac_cv_path_GMSGFMT
7950 if test -n "$GMSGFMT"; then
7951 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7952 echo "${ECHO_T}$GMSGFMT" >&6
7953 else
7954 echo "$as_me:$LINENO: result: no" >&5
7955 echo "${ECHO_T}no" >&6
7958 # Extract the first word of "xgettext", so it can be a program name with args.
7959 set dummy xgettext; ac_word=$2
7960 echo "$as_me:$LINENO: checking for $ac_word" >&5
7961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7962 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965 case "$XGETTEXT" in
7967 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7971 for ac_dir in $PATH; do
7972 test -z "$ac_dir" && ac_dir=.
7973 if test -f $ac_dir/$ac_word; then
7974 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7975 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7976 break
7979 done
7980 IFS="$ac_save_ifs"
7981 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7983 esac
7985 XGETTEXT="$ac_cv_path_XGETTEXT"
7986 if test -n "$XGETTEXT"; then
7987 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7988 echo "${ECHO_T}$XGETTEXT" >&6
7989 else
7990 echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6
7995 USE_INCLUDED_LIBINTL=yes
7996 CATOBJEXT=.gmo
7997 INSTOBJEXT=.mo
7998 DATADIRNAME=share
7999 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8000 INTLLIBS=$INTLDEPS
8001 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8002 nls_cv_header_intl=libintl.h
8003 nls_cv_header_libgt=libgettext.h
8006 if test "$XGETTEXT" != ":"; then
8007 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8009 else
8010 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8011 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8012 XGETTEXT=":"
8016 # We need to process the po/ directory.
8017 POSUB=po
8018 else
8019 DATADIRNAME=share
8020 nls_cv_header_intl=libintl.h
8021 nls_cv_header_libgt=libgettext.h
8024 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8025 # because some of the sources are only built for this goal.
8026 if test "$PACKAGE" = gettext; then
8027 USE_NLS=yes
8028 USE_INCLUDED_LIBINTL=yes
8031 for lang in $ALL_LINGUAS; do
8032 GMOFILES="$GMOFILES $lang.gmo"
8033 POFILES="$POFILES $lang.po"
8034 done
8047 if test "x$CATOBJEXT" != "x"; then
8049 cat >>confdefs.h <<\_ACEOF
8050 #define ENABLE_NLS 1
8051 _ACEOF
8056 if test "x$CATOBJEXT" != "x"; then
8057 if test "x$ALL_LINGUAS" = "x"; then
8058 LINGUAS=
8059 else
8060 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8061 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8062 NEW_LINGUAS=
8063 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8064 case "$ALL_LINGUAS" in
8065 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8066 esac
8067 done
8068 LINGUAS=$NEW_LINGUAS
8069 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8070 echo "${ECHO_T}$LINGUAS" >&6
8073 if test -n "$LINGUAS"; then
8074 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8078 if test $ac_cv_header_locale_h = yes; then
8079 INCLUDE_LOCALE_H="#include <locale.h>"
8080 else
8081 INCLUDE_LOCALE_H="\
8082 /* The system does not provide the header <locale.h>. Take care yourself. */"
8086 if test -f $srcdir/po2tbl.sed.in; then
8087 if test "$CATOBJEXT" = ".cat"; then
8088 if test "${ac_cv_header_linux_version_h+set}" = set; then
8089 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8090 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8091 if test "${ac_cv_header_linux_version_h+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8095 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8096 else
8097 # Is the header compilable?
8098 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8099 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8100 cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h. */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 $ac_includes_default
8107 #include <linux/version.h>
8108 _ACEOF
8109 rm -f conftest.$ac_objext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8111 (eval $ac_compile) 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -z "$ac_c_werror_flag"
8119 || test ! -s conftest.err'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 (eval $ac_try) 2>&5
8122 ac_status=$?
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; } &&
8125 { ac_try='test -s conftest.$ac_objext'
8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 (eval $ac_try) 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 ac_header_compiler=yes
8132 else
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 ac_header_compiler=no
8138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8140 echo "${ECHO_T}$ac_header_compiler" >&6
8142 # Is the header present?
8143 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8144 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8145 cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h. */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 #include <linux/version.h>
8152 _ACEOF
8153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8155 ac_status=$?
8156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } >/dev/null; then
8161 if test -s conftest.err; then
8162 ac_cpp_err=$ac_c_preproc_warn_flag
8163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8164 else
8165 ac_cpp_err=
8167 else
8168 ac_cpp_err=yes
8170 if test -z "$ac_cpp_err"; then
8171 ac_header_preproc=yes
8172 else
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_header_preproc=no
8178 rm -f conftest.err conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8180 echo "${ECHO_T}$ac_header_preproc" >&6
8182 # So? What about this header?
8183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8184 yes:no: )
8185 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8186 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8187 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8188 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8189 ac_header_preproc=yes
8191 no:yes:* )
8192 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8193 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8194 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8195 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8197 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8198 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8199 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8201 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8203 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8205 cat <<\_ASBOX
8206 ## ------------------------------------------ ##
8207 ## Report this to the AC_PACKAGE_NAME lists. ##
8208 ## ------------------------------------------ ##
8209 _ASBOX
8211 sed "s/^/$as_me: WARNING: /" >&2
8213 esac
8214 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8215 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8216 if test "${ac_cv_header_linux_version_h+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219 ac_cv_header_linux_version_h=$ac_header_preproc
8221 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8222 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8225 if test $ac_cv_header_linux_version_h = yes; then
8226 msgformat=linux
8227 else
8228 msgformat=xopen
8233 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8235 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8236 $srcdir/po2tbl.sed.in > po2tbl.sed
8239 if test "$PACKAGE" = "gettext"; then
8240 GT_NO="#NO#"
8241 GT_YES=
8242 else
8243 GT_NO=
8244 GT_YES="#YES#"
8249 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8255 if test -f $srcdir/po/POTFILES.in; then
8256 test -d po || mkdir po
8257 if test "x$srcdir" != "x."; then
8258 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8259 posrcprefix="$srcdir/"
8260 else
8261 posrcprefix="../$srcdir/"
8263 else
8264 posrcprefix="../"
8266 rm -f po/POTFILES
8267 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8268 < $srcdir/po/POTFILES.in > po/POTFILES
8274 for ac_prog in 'bison -y' byacc
8276 # Extract the first word of "$ac_prog", so it can be a program name with args.
8277 set dummy $ac_prog; ac_word=$2
8278 echo "$as_me:$LINENO: checking for $ac_word" >&5
8279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8280 if test "${ac_cv_prog_YACC+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283 if test -n "$YACC"; then
8284 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293 ac_cv_prog_YACC="$ac_prog"
8294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8297 done
8298 done
8302 YACC=$ac_cv_prog_YACC
8303 if test -n "$YACC"; then
8304 echo "$as_me:$LINENO: result: $YACC" >&5
8305 echo "${ECHO_T}$YACC" >&6
8306 else
8307 echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6
8311 test -n "$YACC" && break
8312 done
8313 test -n "$YACC" || YACC="yacc"
8315 for ac_prog in flex lex
8317 # Extract the first word of "$ac_prog", so it can be a program name with args.
8318 set dummy $ac_prog; ac_word=$2
8319 echo "$as_me:$LINENO: checking for $ac_word" >&5
8320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8321 if test "${ac_cv_prog_LEX+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324 if test -n "$LEX"; then
8325 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8326 else
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 for as_dir in $PATH
8330 IFS=$as_save_IFS
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334 ac_cv_prog_LEX="$ac_prog"
8335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 break 2
8338 done
8339 done
8343 LEX=$ac_cv_prog_LEX
8344 if test -n "$LEX"; then
8345 echo "$as_me:$LINENO: result: $LEX" >&5
8346 echo "${ECHO_T}$LEX" >&6
8347 else
8348 echo "$as_me:$LINENO: result: no" >&5
8349 echo "${ECHO_T}no" >&6
8352 test -n "$LEX" && break
8353 done
8354 test -n "$LEX" || LEX=":"
8356 if test -z "$LEXLIB"
8357 then
8358 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8359 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8360 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363 ac_check_lib_save_LIBS=$LIBS
8364 LIBS="-lfl $LIBS"
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8372 /* Override any gcc2 internal prototype to avoid an error. */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 /* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8378 char yywrap ();
8380 main ()
8382 yywrap ();
8384 return 0;
8386 _ACEOF
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>conftest.er1
8390 ac_status=$?
8391 grep -v '^ *+' conftest.er1 >conftest.err
8392 rm -f conftest.er1
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -z "$ac_c_werror_flag"
8397 || test ! -s conftest.err'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; } &&
8403 { ac_try='test -s conftest$ac_exeext'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 ac_cv_lib_fl_yywrap=yes
8410 else
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8414 ac_cv_lib_fl_yywrap=no
8416 rm -f conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8418 LIBS=$ac_check_lib_save_LIBS
8420 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8421 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8422 if test $ac_cv_lib_fl_yywrap = yes; then
8423 LEXLIB="-lfl"
8424 else
8425 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8426 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8427 if test "${ac_cv_lib_l_yywrap+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 else
8430 ac_check_lib_save_LIBS=$LIBS
8431 LIBS="-ll $LIBS"
8432 cat >conftest.$ac_ext <<_ACEOF
8433 /* confdefs.h. */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8439 /* Override any gcc2 internal prototype to avoid an error. */
8440 #ifdef __cplusplus
8441 extern "C"
8442 #endif
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8445 char yywrap ();
8447 main ()
8449 yywrap ();
8451 return 0;
8453 _ACEOF
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag"
8464 || test ! -s conftest.err'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest$ac_exeext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 (eval $ac_try) 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 ac_cv_lib_l_yywrap=yes
8477 else
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_cv_lib_l_yywrap=no
8483 rm -f conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
8485 LIBS=$ac_check_lib_save_LIBS
8487 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8488 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8489 if test $ac_cv_lib_l_yywrap = yes; then
8490 LEXLIB="-ll"
8497 if test "x$LEX" != "x:"; then
8498 echo "$as_me:$LINENO: checking lex output file root" >&5
8499 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8500 if test "${ac_cv_prog_lex_root+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503 # The minimal lex program is just a single line: %%. But some broken lexes
8504 # (Solaris, I think it was) want two %% lines, so accommodate them.
8505 cat >conftest.l <<_ACEOF
8508 _ACEOF
8509 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8510 (eval $LEX conftest.l) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }
8514 if test -f lex.yy.c; then
8515 ac_cv_prog_lex_root=lex.yy
8516 elif test -f lexyy.c; then
8517 ac_cv_prog_lex_root=lexyy
8518 else
8519 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8520 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8521 { (exit 1); exit 1; }; }
8524 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8525 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8526 rm -f conftest.l
8527 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8529 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8530 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8531 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534 # POSIX says lex can declare yytext either as a pointer or an array; the
8535 # default is implementation-dependent. Figure out which it is, since
8536 # not all implementations provide the %pointer and %array declarations.
8537 ac_cv_prog_lex_yytext_pointer=no
8538 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8539 ac_save_LIBS=$LIBS
8540 LIBS="$LIBS $LEXLIB"
8541 cat >conftest.$ac_ext <<_ACEOF
8542 `cat $LEX_OUTPUT_ROOT.c`
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest$ac_exeext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_prog_lex_yytext_pointer=yes
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8572 rm -f conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
8574 LIBS=$ac_save_LIBS
8575 rm -f "${LEX_OUTPUT_ROOT}.c"
8578 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8579 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
8580 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8582 cat >>confdefs.h <<\_ACEOF
8583 #define YYTEXT_POINTER 1
8584 _ACEOF
8589 if test "$LEX" = :; then
8590 LEX=${am_missing_run}flex
8593 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8594 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8595 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8596 if test "${enable_maintainer_mode+set}" = set; then
8597 enableval="$enable_maintainer_mode"
8598 USE_MAINTAINER_MODE=$enableval
8599 else
8600 USE_MAINTAINER_MODE=no
8602 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8603 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8606 if test $USE_MAINTAINER_MODE = yes; then
8607 MAINTAINER_MODE_TRUE=
8608 MAINTAINER_MODE_FALSE='#'
8609 else
8610 MAINTAINER_MODE_TRUE='#'
8611 MAINTAINER_MODE_FALSE=
8614 MAINT=$MAINTAINER_MODE_TRUE
8618 . ${srcdir}/configure.host
8629 for ac_header in string.h strings.h stdlib.h unistd.h
8631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8633 echo "$as_me:$LINENO: checking for $ac_header" >&5
8634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8640 else
8641 # Is the header compilable?
8642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8644 cat >conftest.$ac_ext <<_ACEOF
8645 /* confdefs.h. */
8646 _ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8650 $ac_includes_default
8651 #include <$ac_header>
8652 _ACEOF
8653 rm -f conftest.$ac_objext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8655 (eval $ac_compile) 2>conftest.er1
8656 ac_status=$?
8657 grep -v '^ *+' conftest.er1 >conftest.err
8658 rm -f conftest.er1
8659 cat conftest.err >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } &&
8662 { ac_try='test -z "$ac_c_werror_flag"
8663 || test ! -s conftest.err'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; } &&
8669 { ac_try='test -s conftest.$ac_objext'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 (eval $ac_try) 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; }; then
8675 ac_header_compiler=yes
8676 else
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 ac_header_compiler=no
8682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8684 echo "${ECHO_T}$ac_header_compiler" >&6
8686 # Is the header present?
8687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8689 cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h. */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 #include <$ac_header>
8696 _ACEOF
8697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8699 ac_status=$?
8700 grep -v '^ *+' conftest.er1 >conftest.err
8701 rm -f conftest.er1
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } >/dev/null; then
8705 if test -s conftest.err; then
8706 ac_cpp_err=$ac_c_preproc_warn_flag
8707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8708 else
8709 ac_cpp_err=
8711 else
8712 ac_cpp_err=yes
8714 if test -z "$ac_cpp_err"; then
8715 ac_header_preproc=yes
8716 else
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8720 ac_header_preproc=no
8722 rm -f conftest.err conftest.$ac_ext
8723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8724 echo "${ECHO_T}$ac_header_preproc" >&6
8726 # So? What about this header?
8727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8728 yes:no: )
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8733 ac_header_preproc=yes
8735 no:yes:* )
8736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8749 cat <<\_ASBOX
8750 ## ------------------------------------------ ##
8751 ## Report this to the AC_PACKAGE_NAME lists. ##
8752 ## ------------------------------------------ ##
8753 _ASBOX
8755 sed "s/^/$as_me: WARNING: /" >&2
8757 esac
8758 echo "$as_me:$LINENO: checking for $ac_header" >&5
8759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 else
8763 eval "$as_ac_Header=\$ac_header_preproc"
8765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8770 cat >>confdefs.h <<_ACEOF
8771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8772 _ACEOF
8776 done
8781 for ac_func in sbrk realpath glob
8783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8784 echo "$as_me:$LINENO: checking for $ac_func" >&5
8785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8786 if eval "test \"\${$as_ac_var+set}\" = set"; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789 cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h. */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8797 #define $ac_func innocuous_$ac_func
8799 /* System header to define __stub macros and hopefully few prototypes,
8800 which can conflict with char $ac_func (); below.
8801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8802 <limits.h> exists even on freestanding compilers. */
8804 #ifdef __STDC__
8805 # include <limits.h>
8806 #else
8807 # include <assert.h>
8808 #endif
8810 #undef $ac_func
8812 /* Override any gcc2 internal prototype to avoid an error. */
8813 #ifdef __cplusplus
8814 extern "C"
8816 #endif
8817 /* We use char because int might match the return type of a gcc2
8818 builtin and then its argument prototype would still apply. */
8819 char $ac_func ();
8820 /* The GNU C library defines this for functions which it implements
8821 to always fail with ENOSYS. Some functions are actually named
8822 something starting with __ and the normal name is an alias. */
8823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8824 choke me
8825 #else
8826 char (*f) () = $ac_func;
8827 #endif
8828 #ifdef __cplusplus
8830 #endif
8833 main ()
8835 return f != $ac_func;
8837 return 0;
8839 _ACEOF
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842 (eval $ac_link) 2>conftest.er1
8843 ac_status=$?
8844 grep -v '^ *+' conftest.er1 >conftest.err
8845 rm -f conftest.er1
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -z "$ac_c_werror_flag"
8850 || test ! -s conftest.err'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 (eval $ac_try) 2>&5
8853 ac_status=$?
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; } &&
8856 { ac_try='test -s conftest$ac_exeext'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 (eval $ac_try) 2>&5
8859 ac_status=$?
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; }; then
8862 eval "$as_ac_var=yes"
8863 else
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8867 eval "$as_ac_var=no"
8869 rm -f conftest.err conftest.$ac_objext \
8870 conftest$ac_exeext conftest.$ac_ext
8872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8874 if test `eval echo '${'$as_ac_var'}'` = yes; then
8875 cat >>confdefs.h <<_ACEOF
8876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8877 _ACEOF
8880 done
8887 ac_header_dirent=no
8888 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8889 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8890 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8891 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895 cat >conftest.$ac_ext <<_ACEOF
8896 /* confdefs.h. */
8897 _ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8901 #include <sys/types.h>
8902 #include <$ac_hdr>
8905 main ()
8907 if ((DIR *) 0)
8908 return 0;
8910 return 0;
8912 _ACEOF
8913 rm -f conftest.$ac_objext
8914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8915 (eval $ac_compile) 2>conftest.er1
8916 ac_status=$?
8917 grep -v '^ *+' conftest.er1 >conftest.err
8918 rm -f conftest.er1
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } &&
8922 { ac_try='test -z "$ac_c_werror_flag"
8923 || test ! -s conftest.err'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 (eval $ac_try) 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; } &&
8929 { ac_try='test -s conftest.$ac_objext'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; }; then
8935 eval "$as_ac_Header=yes"
8936 else
8937 echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8940 eval "$as_ac_Header=no"
8942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8947 cat >>confdefs.h <<_ACEOF
8948 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8949 _ACEOF
8951 ac_header_dirent=$ac_hdr; break
8954 done
8955 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8956 if test $ac_header_dirent = dirent.h; then
8957 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8958 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8959 if test "${ac_cv_search_opendir+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962 ac_func_search_save_LIBS=$LIBS
8963 ac_cv_search_opendir=no
8964 cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h. */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8971 /* Override any gcc2 internal prototype to avoid an error. */
8972 #ifdef __cplusplus
8973 extern "C"
8974 #endif
8975 /* We use char because int might match the return type of a gcc2
8976 builtin and then its argument prototype would still apply. */
8977 char opendir ();
8979 main ()
8981 opendir ();
8983 return 0;
8985 _ACEOF
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8988 (eval $ac_link) 2>conftest.er1
8989 ac_status=$?
8990 grep -v '^ *+' conftest.er1 >conftest.err
8991 rm -f conftest.er1
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } &&
8995 { ac_try='test -z "$ac_c_werror_flag"
8996 || test ! -s conftest.err'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; } &&
9002 { ac_try='test -s conftest$ac_exeext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 ac_cv_search_opendir="none required"
9009 else
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9014 rm -f conftest.err conftest.$ac_objext \
9015 conftest$ac_exeext conftest.$ac_ext
9016 if test "$ac_cv_search_opendir" = no; then
9017 for ac_lib in dir; do
9018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9019 cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h. */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9026 /* Override any gcc2 internal prototype to avoid an error. */
9027 #ifdef __cplusplus
9028 extern "C"
9029 #endif
9030 /* We use char because int might match the return type of a gcc2
9031 builtin and then its argument prototype would still apply. */
9032 char opendir ();
9034 main ()
9036 opendir ();
9038 return 0;
9040 _ACEOF
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>conftest.er1
9044 ac_status=$?
9045 grep -v '^ *+' conftest.er1 >conftest.err
9046 rm -f conftest.er1
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -z "$ac_c_werror_flag"
9051 || test ! -s conftest.err'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try='test -s conftest$ac_exeext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 ac_cv_search_opendir="-l$ac_lib"
9064 break
9065 else
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9070 rm -f conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
9072 done
9074 LIBS=$ac_func_search_save_LIBS
9076 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9077 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9078 if test "$ac_cv_search_opendir" != no; then
9079 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9083 else
9084 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9085 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9086 if test "${ac_cv_search_opendir+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 else
9089 ac_func_search_save_LIBS=$LIBS
9090 ac_cv_search_opendir=no
9091 cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h. */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9098 /* Override any gcc2 internal prototype to avoid an error. */
9099 #ifdef __cplusplus
9100 extern "C"
9101 #endif
9102 /* We use char because int might match the return type of a gcc2
9103 builtin and then its argument prototype would still apply. */
9104 char opendir ();
9106 main ()
9108 opendir ();
9110 return 0;
9112 _ACEOF
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9115 (eval $ac_link) 2>conftest.er1
9116 ac_status=$?
9117 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -f conftest.er1
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } &&
9122 { ac_try='test -z "$ac_c_werror_flag"
9123 || test ! -s conftest.err'
9124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 (eval $ac_try) 2>&5
9126 ac_status=$?
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; } &&
9129 { ac_try='test -s conftest$ac_exeext'
9130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 (eval $ac_try) 2>&5
9132 ac_status=$?
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; }; then
9135 ac_cv_search_opendir="none required"
9136 else
9137 echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9141 rm -f conftest.err conftest.$ac_objext \
9142 conftest$ac_exeext conftest.$ac_ext
9143 if test "$ac_cv_search_opendir" = no; then
9144 for ac_lib in x; do
9145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h. */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9153 /* Override any gcc2 internal prototype to avoid an error. */
9154 #ifdef __cplusplus
9155 extern "C"
9156 #endif
9157 /* We use char because int might match the return type of a gcc2
9158 builtin and then its argument prototype would still apply. */
9159 char opendir ();
9161 main ()
9163 opendir ();
9165 return 0;
9167 _ACEOF
9168 rm -f conftest.$ac_objext conftest$ac_exeext
9169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9170 (eval $ac_link) 2>conftest.er1
9171 ac_status=$?
9172 grep -v '^ *+' conftest.er1 >conftest.err
9173 rm -f conftest.er1
9174 cat conftest.err >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } &&
9177 { ac_try='test -z "$ac_c_werror_flag"
9178 || test ! -s conftest.err'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 (eval $ac_try) 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; } &&
9184 { ac_try='test -s conftest$ac_exeext'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 (eval $ac_try) 2>&5
9187 ac_status=$?
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; }; then
9190 ac_cv_search_opendir="-l$ac_lib"
9191 break
9192 else
9193 echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9197 rm -f conftest.err conftest.$ac_objext \
9198 conftest$ac_exeext conftest.$ac_ext
9199 done
9201 LIBS=$ac_func_search_save_LIBS
9203 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9204 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9205 if test "$ac_cv_search_opendir" != no; then
9206 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9213 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9214 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9215 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218 cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h. */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9224 #include <unistd.h>
9226 main ()
9228 extern int getopt (int, char *const*, const char *);
9230 return 0;
9232 _ACEOF
9233 rm -f conftest.$ac_objext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9235 (eval $ac_compile) 2>conftest.er1
9236 ac_status=$?
9237 grep -v '^ *+' conftest.er1 >conftest.err
9238 rm -f conftest.er1
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -z "$ac_c_werror_flag"
9243 || test ! -s conftest.err'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try='test -s conftest.$ac_objext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9255 ld_cv_decl_getopt_unistd_h=yes
9256 else
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9260 ld_cv_decl_getopt_unistd_h=no
9262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9265 echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
9266 echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
9267 if test $ld_cv_decl_getopt_unistd_h = yes; then
9269 cat >>confdefs.h <<\_ACEOF
9270 #define HAVE_DECL_GETOPT 1
9271 _ACEOF
9276 case "${host}" in
9277 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9279 cat >>confdefs.h <<\_ACEOF
9280 #define USE_BINARY_FOPEN 1
9281 _ACEOF
9283 esac
9285 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9286 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9287 if test "${ac_cv_have_decl_strstr+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290 cat >conftest.$ac_ext <<_ACEOF
9291 /* confdefs.h. */
9292 _ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9296 $ac_includes_default
9298 main ()
9300 #ifndef strstr
9301 char *p = (char *) strstr;
9302 #endif
9305 return 0;
9307 _ACEOF
9308 rm -f conftest.$ac_objext
9309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9310 (eval $ac_compile) 2>conftest.er1
9311 ac_status=$?
9312 grep -v '^ *+' conftest.er1 >conftest.err
9313 rm -f conftest.er1
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -z "$ac_c_werror_flag"
9318 || test ! -s conftest.err'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; } &&
9324 { ac_try='test -s conftest.$ac_objext'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 (eval $ac_try) 2>&5
9327 ac_status=$?
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9330 ac_cv_have_decl_strstr=yes
9331 else
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_cv_have_decl_strstr=no
9337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9339 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9340 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9341 if test $ac_cv_have_decl_strstr = yes; then
9343 cat >>confdefs.h <<_ACEOF
9344 #define HAVE_DECL_STRSTR 1
9345 _ACEOF
9348 else
9349 cat >>confdefs.h <<_ACEOF
9350 #define HAVE_DECL_STRSTR 0
9351 _ACEOF
9355 echo "$as_me:$LINENO: checking whether free is declared" >&5
9356 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9357 if test "${ac_cv_have_decl_free+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h. */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 $ac_includes_default
9368 main ()
9370 #ifndef free
9371 char *p = (char *) free;
9372 #endif
9375 return 0;
9377 _ACEOF
9378 rm -f conftest.$ac_objext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9380 (eval $ac_compile) 2>conftest.er1
9381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try='test -z "$ac_c_werror_flag"
9388 || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest.$ac_objext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 ac_cv_have_decl_free=yes
9401 else
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 ac_cv_have_decl_free=no
9407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9409 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9410 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
9411 if test $ac_cv_have_decl_free = yes; then
9413 cat >>confdefs.h <<_ACEOF
9414 #define HAVE_DECL_FREE 1
9415 _ACEOF
9418 else
9419 cat >>confdefs.h <<_ACEOF
9420 #define HAVE_DECL_FREE 0
9421 _ACEOF
9425 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
9426 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
9427 if test "${ac_cv_have_decl_sbrk+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430 cat >conftest.$ac_ext <<_ACEOF
9431 /* confdefs.h. */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9436 $ac_includes_default
9438 main ()
9440 #ifndef sbrk
9441 char *p = (char *) sbrk;
9442 #endif
9445 return 0;
9447 _ACEOF
9448 rm -f conftest.$ac_objext
9449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9450 (eval $ac_compile) 2>conftest.er1
9451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } &&
9457 { ac_try='test -z "$ac_c_werror_flag"
9458 || test ! -s conftest.err'
9459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 (eval $ac_try) 2>&5
9461 ac_status=$?
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; } &&
9464 { ac_try='test -s conftest.$ac_objext'
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 (eval $ac_try) 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; }; then
9470 ac_cv_have_decl_sbrk=yes
9471 else
9472 echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9475 ac_cv_have_decl_sbrk=no
9477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9479 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
9480 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
9481 if test $ac_cv_have_decl_sbrk = yes; then
9483 cat >>confdefs.h <<_ACEOF
9484 #define HAVE_DECL_SBRK 1
9485 _ACEOF
9488 else
9489 cat >>confdefs.h <<_ACEOF
9490 #define HAVE_DECL_SBRK 0
9491 _ACEOF
9495 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9496 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
9497 if test "${ac_cv_have_decl_getenv+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500 cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h. */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9506 $ac_includes_default
9508 main ()
9510 #ifndef getenv
9511 char *p = (char *) getenv;
9512 #endif
9515 return 0;
9517 _ACEOF
9518 rm -f conftest.$ac_objext
9519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9520 (eval $ac_compile) 2>conftest.er1
9521 ac_status=$?
9522 grep -v '^ *+' conftest.er1 >conftest.err
9523 rm -f conftest.er1
9524 cat conftest.err >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } &&
9527 { ac_try='test -z "$ac_c_werror_flag"
9528 || test ! -s conftest.err'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; } &&
9534 { ac_try='test -s conftest.$ac_objext'
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 (eval $ac_try) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; }; then
9540 ac_cv_have_decl_getenv=yes
9541 else
9542 echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9545 ac_cv_have_decl_getenv=no
9547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9549 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9550 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9551 if test $ac_cv_have_decl_getenv = yes; then
9553 cat >>confdefs.h <<_ACEOF
9554 #define HAVE_DECL_GETENV 1
9555 _ACEOF
9558 else
9559 cat >>confdefs.h <<_ACEOF
9560 #define HAVE_DECL_GETENV 0
9561 _ACEOF
9565 echo "$as_me:$LINENO: checking whether environ is declared" >&5
9566 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
9567 if test "${ac_cv_have_decl_environ+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 else
9570 cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h. */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576 $ac_includes_default
9578 main ()
9580 #ifndef environ
9581 char *p = (char *) environ;
9582 #endif
9585 return 0;
9587 _ACEOF
9588 rm -f conftest.$ac_objext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9590 (eval $ac_compile) 2>conftest.er1
9591 ac_status=$?
9592 grep -v '^ *+' conftest.er1 >conftest.err
9593 rm -f conftest.er1
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
9597 { ac_try='test -z "$ac_c_werror_flag"
9598 || test ! -s conftest.err'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 (eval $ac_try) 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; } &&
9604 { ac_try='test -s conftest.$ac_objext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 (eval $ac_try) 2>&5
9607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 ac_cv_have_decl_environ=yes
9611 else
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9615 ac_cv_have_decl_environ=no
9617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9619 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
9620 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
9621 if test $ac_cv_have_decl_environ = yes; then
9623 cat >>confdefs.h <<_ACEOF
9624 #define HAVE_DECL_ENVIRON 1
9625 _ACEOF
9628 else
9629 cat >>confdefs.h <<_ACEOF
9630 #define HAVE_DECL_ENVIRON 0
9631 _ACEOF
9638 # When converting linker scripts into strings for use in emulation
9639 # files, use astring.sed if the compiler supports ANSI string
9640 # concatenation, or ostring.sed otherwise. This is to support the
9641 # broken Microsoft MSVC compiler, which limits the length of string
9642 # constants, while still supporting pre-ANSI compilers which do not
9643 # support string concatenation.
9644 echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
9645 echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
9646 if test "${ld_cv_string_concatenation+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h. */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9657 main ()
9659 char *a = "a" "a";
9661 return 0;
9663 _ACEOF
9664 rm -f conftest.$ac_objext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9666 (eval $ac_compile) 2>conftest.er1
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -z "$ac_c_werror_flag"
9674 || test ! -s conftest.err'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 (eval $ac_try) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; } &&
9680 { ac_try='test -s conftest.$ac_objext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 (eval $ac_try) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ld_cv_string_concatenation=yes
9687 else
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9691 ld_cv_string_concatenation=no
9693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9696 echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
9697 echo "${ECHO_T}$ld_cv_string_concatenation" >&6
9698 if test "$ld_cv_string_concatenation" = "yes"; then
9699 STRINGIFY=astring.sed
9700 else
9701 STRINGIFY=ostring.sed
9705 # target-specific stuff:
9707 all_targets=
9708 EMUL=
9709 all_emuls=
9710 all_emul_extras=
9711 all_libpath=
9713 rm -f tdirs
9715 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9717 if test "$targ_alias" = "all"; then
9718 all_targets=true
9719 else
9720 # Canonicalize the secondary target names.
9721 result=`$ac_config_sub $targ_alias 2>/dev/null`
9722 if test -n "$result"; then
9723 targ=$result
9724 else
9725 targ=$targ_alias
9728 . ${srcdir}/configure.tgt
9730 if test "$targ" = "$target"; then
9731 EMUL=$targ_emul
9734 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
9735 case " $all_emuls " in
9736 *" e${i}.o "*) ;;
9738 all_emuls="$all_emuls e${i}.o"
9739 eval result=\$tdir_$i
9740 test -z "$result" && result=$targ_alias
9741 echo tdir_$i=$result >> tdirs
9743 esac
9744 done
9746 for i in $targ_emul $targ_extra_libpath; do
9747 case " $all_libpath " in
9748 *" ${i} "*) ;;
9750 if test -z "$all_libpath"; then
9751 all_libpath=${i}
9752 else
9753 all_libpath="$all_libpath ${i}"
9756 esac
9757 done
9759 for i in $targ_extra_ofiles; do
9760 case " $all_emul_extras " in
9761 *" ${i} "*) ;;
9763 all_emul_extras="$all_emul_extras ${i}"
9765 esac
9766 done
9768 done
9772 TDIRS=tdirs
9775 if test x${all_targets} = xtrue; then
9776 if test x${want64} = xtrue; then
9777 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9778 else
9779 EMULATION_OFILES='$(ALL_EMULATIONS)'
9781 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
9782 else
9783 EMULATION_OFILES=$all_emuls
9784 EMUL_EXTRA_OFILES=$all_emul_extras
9790 EMULATION_LIBPATH=$all_libpath
9793 if test x${enable_static} = xno; then
9794 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
9795 else
9796 TESTBFDLIB="../bfd/.libs/libbfd.a"
9800 target_vendor=${target_vendor=$host_vendor}
9801 case "$target_vendor" in
9802 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
9803 *) EXTRA_SHLIB_EXTENSION= ;;
9804 esac
9806 case "$target_os" in
9807 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
9808 esac
9810 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
9812 cat >>confdefs.h <<_ACEOF
9813 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
9814 _ACEOF
9822 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
9823 ac_config_commands="$ac_config_commands default"
9824 cat >confcache <<\_ACEOF
9825 # This file is a shell script that caches the results of configure
9826 # tests run on this system so they can be shared between configure
9827 # scripts and configure runs, see configure's option --config-cache.
9828 # It is not useful on other systems. If it contains results you don't
9829 # want to keep, you may remove or edit it.
9831 # config.status only pays attention to the cache file if you give it
9832 # the --recheck option to rerun configure.
9834 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9835 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9836 # following values.
9838 _ACEOF
9840 # The following way of writing the cache mishandles newlines in values,
9841 # but we know of no workaround that is simple, portable, and efficient.
9842 # So, don't put newlines in cache variables' values.
9843 # Ultrix sh set writes to stderr and can't be redirected directly,
9844 # and sets the high bit in the cache file unless we assign to the vars.
9846 (set) 2>&1 |
9847 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9848 *ac_space=\ *)
9849 # `set' does not quote correctly, so add quotes (double-quote
9850 # substitution turns \\\\ into \\, and sed turns \\ into \).
9851 sed -n \
9852 "s/'/'\\\\''/g;
9853 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9856 # `set' quotes correctly as required by POSIX, so do not add quotes.
9857 sed -n \
9858 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9860 esac;
9862 sed '
9863 t clear
9864 : clear
9865 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9866 t end
9867 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9868 : end' >>confcache
9869 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9870 if test -w $cache_file; then
9871 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9872 cat confcache >$cache_file
9873 else
9874 echo "not updating unwritable cache $cache_file"
9877 rm -f confcache
9879 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9880 # Let make expand exec_prefix.
9881 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9883 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9884 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9885 # trailing colons and then remove the whole line if VPATH becomes empty
9886 # (actually we leave an empty line to preserve line numbers).
9887 if test "x$srcdir" = x.; then
9888 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9889 s/:*\$(srcdir):*/:/;
9890 s/:*\${srcdir}:*/:/;
9891 s/:*@srcdir@:*/:/;
9892 s/^\([^=]*=[ ]*\):*/\1/;
9893 s/:*$//;
9894 s/^[^=]*=[ ]*$//;
9898 DEFS=-DHAVE_CONFIG_H
9900 ac_libobjs=
9901 ac_ltlibobjs=
9902 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9903 # 1. Remove the extension, and $U if already installed.
9904 ac_i=`echo "$ac_i" |
9905 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9906 # 2. Add them.
9907 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9908 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9909 done
9910 LIBOBJS=$ac_libobjs
9912 LTLIBOBJS=$ac_ltlibobjs
9915 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9916 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9917 Usually this means the macro was only invoked conditionally." >&5
9918 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9919 Usually this means the macro was only invoked conditionally." >&2;}
9920 { (exit 1); exit 1; }; }
9922 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9923 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9924 Usually this means the macro was only invoked conditionally." >&5
9925 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9926 Usually this means the macro was only invoked conditionally." >&2;}
9927 { (exit 1); exit 1; }; }
9929 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9930 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9931 Usually this means the macro was only invoked conditionally." >&5
9932 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9933 Usually this means the macro was only invoked conditionally." >&2;}
9934 { (exit 1); exit 1; }; }
9937 : ${CONFIG_STATUS=./config.status}
9938 ac_clean_files_save=$ac_clean_files
9939 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9940 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9941 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9942 cat >$CONFIG_STATUS <<_ACEOF
9943 #! $SHELL
9944 # Generated by $as_me.
9945 # Run this file to recreate the current configuration.
9946 # Compiler output produced by configure, useful for debugging
9947 # configure, is in config.log if it exists.
9949 debug=false
9950 ac_cs_recheck=false
9951 ac_cs_silent=false
9952 SHELL=\${CONFIG_SHELL-$SHELL}
9953 _ACEOF
9955 cat >>$CONFIG_STATUS <<\_ACEOF
9956 ## --------------------- ##
9957 ## M4sh Initialization. ##
9958 ## --------------------- ##
9960 # Be Bourne compatible
9961 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9962 emulate sh
9963 NULLCMD=:
9964 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9965 # is contrary to our usage. Disable this feature.
9966 alias -g '${1+"$@"}'='"$@"'
9967 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9968 set -o posix
9970 DUALCASE=1; export DUALCASE # for MKS sh
9972 # Support unset when possible.
9973 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9974 as_unset=unset
9975 else
9976 as_unset=false
9980 # Work around bugs in pre-3.0 UWIN ksh.
9981 $as_unset ENV MAIL MAILPATH
9982 PS1='$ '
9983 PS2='> '
9984 PS4='+ '
9986 # NLS nuisances.
9987 for as_var in \
9988 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9989 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9990 LC_TELEPHONE LC_TIME
9992 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9993 eval $as_var=C; export $as_var
9994 else
9995 $as_unset $as_var
9997 done
9999 # Required to use basename.
10000 if expr a : '\(a\)' >/dev/null 2>&1; then
10001 as_expr=expr
10002 else
10003 as_expr=false
10006 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10007 as_basename=basename
10008 else
10009 as_basename=false
10013 # Name of the executable.
10014 as_me=`$as_basename "$0" ||
10015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10016 X"$0" : 'X\(//\)$' \| \
10017 X"$0" : 'X\(/\)$' \| \
10018 . : '\(.\)' 2>/dev/null ||
10019 echo X/"$0" |
10020 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10021 /^X\/\(\/\/\)$/{ s//\1/; q; }
10022 /^X\/\(\/\).*/{ s//\1/; q; }
10023 s/.*/./; q'`
10026 # PATH needs CR, and LINENO needs CR and PATH.
10027 # Avoid depending upon Character Ranges.
10028 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10031 as_cr_digits='0123456789'
10032 as_cr_alnum=$as_cr_Letters$as_cr_digits
10034 # The user is always right.
10035 if test "${PATH_SEPARATOR+set}" != set; then
10036 echo "#! /bin/sh" >conf$$.sh
10037 echo "exit 0" >>conf$$.sh
10038 chmod +x conf$$.sh
10039 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10040 PATH_SEPARATOR=';'
10041 else
10042 PATH_SEPARATOR=:
10044 rm -f conf$$.sh
10048 as_lineno_1=$LINENO
10049 as_lineno_2=$LINENO
10050 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10051 test "x$as_lineno_1" != "x$as_lineno_2" &&
10052 test "x$as_lineno_3" = "x$as_lineno_2" || {
10053 # Find who we are. Look in the path if we contain no path at all
10054 # relative or not.
10055 case $0 in
10056 *[\\/]* ) as_myself=$0 ;;
10057 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058 for as_dir in $PATH
10060 IFS=$as_save_IFS
10061 test -z "$as_dir" && as_dir=.
10062 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10063 done
10066 esac
10067 # We did not find ourselves, most probably we were run as `sh COMMAND'
10068 # in which case we are not to be found in the path.
10069 if test "x$as_myself" = x; then
10070 as_myself=$0
10072 if test ! -f "$as_myself"; then
10073 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10074 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10075 { (exit 1); exit 1; }; }
10077 case $CONFIG_SHELL in
10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10082 IFS=$as_save_IFS
10083 test -z "$as_dir" && as_dir=.
10084 for as_base in sh bash ksh sh5; do
10085 case $as_dir in
10087 if ("$as_dir/$as_base" -c '
10088 as_lineno_1=$LINENO
10089 as_lineno_2=$LINENO
10090 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10091 test "x$as_lineno_1" != "x$as_lineno_2" &&
10092 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10093 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10094 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10095 CONFIG_SHELL=$as_dir/$as_base
10096 export CONFIG_SHELL
10097 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10098 fi;;
10099 esac
10100 done
10101 done
10103 esac
10105 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10106 # uniformly replaced by the line number. The first 'sed' inserts a
10107 # line-number line before each line; the second 'sed' does the real
10108 # work. The second script uses 'N' to pair each line-number line
10109 # with the numbered line, and appends trailing '-' during
10110 # substitution so that $LINENO is not a special case at line end.
10111 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10112 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10113 sed '=' <$as_myself |
10114 sed '
10116 s,$,-,
10117 : loop
10118 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10119 t loop
10120 s,-$,,
10121 s,^['$as_cr_digits']*\n,,
10122 ' >$as_me.lineno &&
10123 chmod +x $as_me.lineno ||
10124 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10125 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10126 { (exit 1); exit 1; }; }
10128 # Don't try to exec as it changes $[0], causing all sort of problems
10129 # (the dirname of $[0] is not the place where we might find the
10130 # original and so on. Autoconf is especially sensible to this).
10131 . ./$as_me.lineno
10132 # Exit status is that of the last command.
10133 exit
10137 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10138 *c*,-n*) ECHO_N= ECHO_C='
10139 ' ECHO_T=' ' ;;
10140 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10141 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10142 esac
10144 if expr a : '\(a\)' >/dev/null 2>&1; then
10145 as_expr=expr
10146 else
10147 as_expr=false
10150 rm -f conf$$ conf$$.exe conf$$.file
10151 echo >conf$$.file
10152 if ln -s conf$$.file conf$$ 2>/dev/null; then
10153 # We could just check for DJGPP; but this test a) works b) is more generic
10154 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10155 if test -f conf$$.exe; then
10156 # Don't use ln at all; we don't have any links
10157 as_ln_s='cp -p'
10158 else
10159 as_ln_s='ln -s'
10161 elif ln conf$$.file conf$$ 2>/dev/null; then
10162 as_ln_s=ln
10163 else
10164 as_ln_s='cp -p'
10166 rm -f conf$$ conf$$.exe conf$$.file
10168 if mkdir -p . 2>/dev/null; then
10169 as_mkdir_p=:
10170 else
10171 test -d ./-p && rmdir ./-p
10172 as_mkdir_p=false
10175 as_executable_p="test -f"
10177 # Sed expression to map a string onto a valid CPP name.
10178 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10180 # Sed expression to map a string onto a valid variable name.
10181 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10184 # IFS
10185 # We need space, tab and new line, in precisely that order.
10186 as_nl='
10188 IFS=" $as_nl"
10190 # CDPATH.
10191 $as_unset CDPATH
10193 exec 6>&1
10195 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10196 # report actual input values of CONFIG_FILES etc. instead of their
10197 # values after options handling. Logging --version etc. is OK.
10198 exec 5>>config.log
10200 echo
10201 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10202 ## Running $as_me. ##
10203 _ASBOX
10204 } >&5
10205 cat >&5 <<_CSEOF
10207 This file was extended by $as_me, which was
10208 generated by GNU Autoconf 2.59. Invocation command line was
10210 CONFIG_FILES = $CONFIG_FILES
10211 CONFIG_HEADERS = $CONFIG_HEADERS
10212 CONFIG_LINKS = $CONFIG_LINKS
10213 CONFIG_COMMANDS = $CONFIG_COMMANDS
10214 $ $0 $@
10216 _CSEOF
10217 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10218 echo >&5
10219 _ACEOF
10221 # Files that config.status was made for.
10222 if test -n "$ac_config_files"; then
10223 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10226 if test -n "$ac_config_headers"; then
10227 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10230 if test -n "$ac_config_links"; then
10231 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10234 if test -n "$ac_config_commands"; then
10235 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10238 cat >>$CONFIG_STATUS <<\_ACEOF
10240 ac_cs_usage="\
10241 \`$as_me' instantiates files from templates according to the
10242 current configuration.
10244 Usage: $0 [OPTIONS] [FILE]...
10246 -h, --help print this help, then exit
10247 -V, --version print version number, then exit
10248 -q, --quiet do not print progress messages
10249 -d, --debug don't remove temporary files
10250 --recheck update $as_me by reconfiguring in the same conditions
10251 --file=FILE[:TEMPLATE]
10252 instantiate the configuration file FILE
10253 --header=FILE[:TEMPLATE]
10254 instantiate the configuration header FILE
10256 Configuration files:
10257 $config_files
10259 Configuration headers:
10260 $config_headers
10262 Configuration commands:
10263 $config_commands
10265 Report bugs to <bug-autoconf@gnu.org>."
10266 _ACEOF
10268 cat >>$CONFIG_STATUS <<_ACEOF
10269 ac_cs_version="\\
10270 config.status
10271 configured by $0, generated by GNU Autoconf 2.59,
10272 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10274 Copyright (C) 2003 Free Software Foundation, Inc.
10275 This config.status script is free software; the Free Software Foundation
10276 gives unlimited permission to copy, distribute and modify it."
10277 srcdir=$srcdir
10278 INSTALL="$INSTALL"
10279 _ACEOF
10281 cat >>$CONFIG_STATUS <<\_ACEOF
10282 # If no file are specified by the user, then we need to provide default
10283 # value. By we need to know if files were specified by the user.
10284 ac_need_defaults=:
10285 while test $# != 0
10287 case $1 in
10288 --*=*)
10289 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10290 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10291 ac_shift=:
10294 ac_option=$1
10295 ac_optarg=$2
10296 ac_shift=shift
10298 *) # This is not an option, so the user has probably given explicit
10299 # arguments.
10300 ac_option=$1
10301 ac_need_defaults=false;;
10302 esac
10304 case $ac_option in
10305 # Handling of the options.
10306 _ACEOF
10307 cat >>$CONFIG_STATUS <<\_ACEOF
10308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10309 ac_cs_recheck=: ;;
10310 --version | --vers* | -V )
10311 echo "$ac_cs_version"; exit 0 ;;
10312 --he | --h)
10313 # Conflict between --help and --header
10314 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10315 Try \`$0 --help' for more information." >&5
10316 echo "$as_me: error: ambiguous option: $1
10317 Try \`$0 --help' for more information." >&2;}
10318 { (exit 1); exit 1; }; };;
10319 --help | --hel | -h )
10320 echo "$ac_cs_usage"; exit 0 ;;
10321 --debug | --d* | -d )
10322 debug=: ;;
10323 --file | --fil | --fi | --f )
10324 $ac_shift
10325 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10326 ac_need_defaults=false;;
10327 --header | --heade | --head | --hea )
10328 $ac_shift
10329 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10330 ac_need_defaults=false;;
10331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10332 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10333 ac_cs_silent=: ;;
10335 # This is an error.
10336 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10337 Try \`$0 --help' for more information." >&5
10338 echo "$as_me: error: unrecognized option: $1
10339 Try \`$0 --help' for more information." >&2;}
10340 { (exit 1); exit 1; }; } ;;
10342 *) ac_config_targets="$ac_config_targets $1" ;;
10344 esac
10345 shift
10346 done
10348 ac_configure_extra_args=
10350 if $ac_cs_silent; then
10351 exec 6>/dev/null
10352 ac_configure_extra_args="$ac_configure_extra_args --silent"
10355 _ACEOF
10356 cat >>$CONFIG_STATUS <<_ACEOF
10357 if \$ac_cs_recheck; then
10358 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10359 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10362 _ACEOF
10364 cat >>$CONFIG_STATUS <<_ACEOF
10366 # INIT-COMMANDS section.
10369 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10371 _ACEOF
10375 cat >>$CONFIG_STATUS <<\_ACEOF
10376 for ac_config_target in $ac_config_targets
10378 case "$ac_config_target" in
10379 # Handling of arguments.
10380 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10381 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10382 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10383 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10384 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10385 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10386 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10387 { (exit 1); exit 1; }; };;
10388 esac
10389 done
10391 # If the user did not use the arguments to specify the items to instantiate,
10392 # then the envvar interface is used. Set only those that are not.
10393 # We use the long form for the default assignment because of an extremely
10394 # bizarre bug on SunOS 4.1.3.
10395 if $ac_need_defaults; then
10396 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10397 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10398 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10401 # Have a temporary directory for convenience. Make it in the build tree
10402 # simply because there is no reason to put it here, and in addition,
10403 # creating and moving files from /tmp can sometimes cause problems.
10404 # Create a temporary directory, and hook for its removal unless debugging.
10405 $debug ||
10407 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10408 trap '{ (exit 1); exit 1; }' 1 2 13 15
10411 # Create a (secure) tmp directory for tmp files.
10414 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10415 test -n "$tmp" && test -d "$tmp"
10416 } ||
10418 tmp=./confstat$$-$RANDOM
10419 (umask 077 && mkdir $tmp)
10420 } ||
10422 echo "$me: cannot create a temporary directory in ." >&2
10423 { (exit 1); exit 1; }
10426 _ACEOF
10428 cat >>$CONFIG_STATUS <<_ACEOF
10431 # CONFIG_FILES section.
10434 # No need to generate the scripts if there are no CONFIG_FILES.
10435 # This happens for instance when ./config.status config.h
10436 if test -n "\$CONFIG_FILES"; then
10437 # Protect against being on the right side of a sed subst in config.status.
10438 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10439 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10440 s,@SHELL@,$SHELL,;t t
10441 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10442 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10443 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10444 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10445 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10446 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10447 s,@exec_prefix@,$exec_prefix,;t t
10448 s,@prefix@,$prefix,;t t
10449 s,@program_transform_name@,$program_transform_name,;t t
10450 s,@bindir@,$bindir,;t t
10451 s,@sbindir@,$sbindir,;t t
10452 s,@libexecdir@,$libexecdir,;t t
10453 s,@datadir@,$datadir,;t t
10454 s,@sysconfdir@,$sysconfdir,;t t
10455 s,@sharedstatedir@,$sharedstatedir,;t t
10456 s,@localstatedir@,$localstatedir,;t t
10457 s,@libdir@,$libdir,;t t
10458 s,@includedir@,$includedir,;t t
10459 s,@oldincludedir@,$oldincludedir,;t t
10460 s,@infodir@,$infodir,;t t
10461 s,@mandir@,$mandir,;t t
10462 s,@build_alias@,$build_alias,;t t
10463 s,@host_alias@,$host_alias,;t t
10464 s,@target_alias@,$target_alias,;t t
10465 s,@DEFS@,$DEFS,;t t
10466 s,@ECHO_C@,$ECHO_C,;t t
10467 s,@ECHO_N@,$ECHO_N,;t t
10468 s,@ECHO_T@,$ECHO_T,;t t
10469 s,@LIBS@,$LIBS,;t t
10470 s,@build@,$build,;t t
10471 s,@build_cpu@,$build_cpu,;t t
10472 s,@build_vendor@,$build_vendor,;t t
10473 s,@build_os@,$build_os,;t t
10474 s,@host@,$host,;t t
10475 s,@host_cpu@,$host_cpu,;t t
10476 s,@host_vendor@,$host_vendor,;t t
10477 s,@host_os@,$host_os,;t t
10478 s,@target@,$target,;t t
10479 s,@target_cpu@,$target_cpu,;t t
10480 s,@target_vendor@,$target_vendor,;t t
10481 s,@target_os@,$target_os,;t t
10482 s,@CC@,$CC,;t t
10483 s,@CFLAGS@,$CFLAGS,;t t
10484 s,@LDFLAGS@,$LDFLAGS,;t t
10485 s,@CPPFLAGS@,$CPPFLAGS,;t t
10486 s,@ac_ct_CC@,$ac_ct_CC,;t t
10487 s,@EXEEXT@,$EXEEXT,;t t
10488 s,@OBJEXT@,$OBJEXT,;t t
10489 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10490 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10491 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10492 s,@CYGPATH_W@,$CYGPATH_W,;t t
10493 s,@PACKAGE@,$PACKAGE,;t t
10494 s,@VERSION@,$VERSION,;t t
10495 s,@ACLOCAL@,$ACLOCAL,;t t
10496 s,@AUTOCONF@,$AUTOCONF,;t t
10497 s,@AUTOMAKE@,$AUTOMAKE,;t t
10498 s,@AUTOHEADER@,$AUTOHEADER,;t t
10499 s,@MAKEINFO@,$MAKEINFO,;t t
10500 s,@install_sh@,$install_sh,;t t
10501 s,@STRIP@,$STRIP,;t t
10502 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10503 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10504 s,@mkdir_p@,$mkdir_p,;t t
10505 s,@AWK@,$AWK,;t t
10506 s,@SET_MAKE@,$SET_MAKE,;t t
10507 s,@am__leading_dot@,$am__leading_dot,;t t
10508 s,@AMTAR@,$AMTAR,;t t
10509 s,@am__tar@,$am__tar,;t t
10510 s,@am__untar@,$am__untar,;t t
10511 s,@DEPDIR@,$DEPDIR,;t t
10512 s,@am__include@,$am__include,;t t
10513 s,@am__quote@,$am__quote,;t t
10514 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10515 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10516 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10517 s,@CCDEPMODE@,$CCDEPMODE,;t t
10518 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10519 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10520 s,@LN_S@,$LN_S,;t t
10521 s,@RANLIB@,$RANLIB,;t t
10522 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10523 s,@LIBTOOL@,$LIBTOOL,;t t
10524 s,@use_sysroot@,$use_sysroot,;t t
10525 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
10526 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
10527 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
10528 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10529 s,@NO_WERROR@,$NO_WERROR,;t t
10530 s,@CPP@,$CPP,;t t
10531 s,@EGREP@,$EGREP,;t t
10532 s,@ALLOCA@,$ALLOCA,;t t
10533 s,@USE_NLS@,$USE_NLS,;t t
10534 s,@MSGFMT@,$MSGFMT,;t t
10535 s,@GMSGFMT@,$GMSGFMT,;t t
10536 s,@XGETTEXT@,$XGETTEXT,;t t
10537 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10538 s,@CATALOGS@,$CATALOGS,;t t
10539 s,@CATOBJEXT@,$CATOBJEXT,;t t
10540 s,@DATADIRNAME@,$DATADIRNAME,;t t
10541 s,@GMOFILES@,$GMOFILES,;t t
10542 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10543 s,@INTLDEPS@,$INTLDEPS,;t t
10544 s,@INTLLIBS@,$INTLLIBS,;t t
10545 s,@INTLOBJS@,$INTLOBJS,;t t
10546 s,@POFILES@,$POFILES,;t t
10547 s,@POSUB@,$POSUB,;t t
10548 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10549 s,@GT_NO@,$GT_NO,;t t
10550 s,@GT_YES@,$GT_YES,;t t
10551 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10552 s,@l@,$l,;t t
10553 s,@YACC@,$YACC,;t t
10554 s,@LEX@,$LEX,;t t
10555 s,@LEXLIB@,$LEXLIB,;t t
10556 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10557 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10558 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10559 s,@MAINT@,$MAINT,;t t
10560 s,@HDEFINES@,$HDEFINES,;t t
10561 s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
10562 s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
10563 s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
10564 s,@STRINGIFY@,$STRINGIFY,;t t
10565 s,@EMUL@,$EMUL,;t t
10566 s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
10567 s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
10568 s,@LIB_PATH@,$LIB_PATH,;t t
10569 s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
10570 s,@TESTBFDLIB@,$TESTBFDLIB,;t t
10571 s,@datarootdir@,$datarootdir,;t t
10572 s,@docdir@,$docdir,;t t
10573 s,@htmldir@,$htmldir,;t t
10574 s,@LIBOBJS@,$LIBOBJS,;t t
10575 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10576 /@TDIRS@/r $TDIRS
10577 s,@TDIRS@,,;t t
10578 CEOF
10580 _ACEOF
10582 cat >>$CONFIG_STATUS <<\_ACEOF
10583 # Split the substitutions into bite-sized pieces for seds with
10584 # small command number limits, like on Digital OSF/1 and HP-UX.
10585 ac_max_sed_lines=48
10586 ac_sed_frag=1 # Number of current file.
10587 ac_beg=1 # First line for current file.
10588 ac_end=$ac_max_sed_lines # Line after last line for current file.
10589 ac_more_lines=:
10590 ac_sed_cmds=
10591 while $ac_more_lines; do
10592 if test $ac_beg -gt 1; then
10593 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10594 else
10595 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10597 if test ! -s $tmp/subs.frag; then
10598 ac_more_lines=false
10599 else
10600 # The purpose of the label and of the branching condition is to
10601 # speed up the sed processing (if there are no `@' at all, there
10602 # is no need to browse any of the substitutions).
10603 # These are the two extra sed commands mentioned above.
10604 (echo ':t
10605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10606 if test -z "$ac_sed_cmds"; then
10607 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10608 else
10609 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10611 ac_sed_frag=`expr $ac_sed_frag + 1`
10612 ac_beg=$ac_end
10613 ac_end=`expr $ac_end + $ac_max_sed_lines`
10615 done
10616 if test -z "$ac_sed_cmds"; then
10617 ac_sed_cmds=cat
10619 fi # test -n "$CONFIG_FILES"
10621 _ACEOF
10622 cat >>$CONFIG_STATUS <<\_ACEOF
10623 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10624 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10625 case $ac_file in
10626 - | *:- | *:-:* ) # input from stdin
10627 cat >$tmp/stdin
10628 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10629 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10630 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10631 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10632 * ) ac_file_in=$ac_file.in ;;
10633 esac
10635 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10636 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10637 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10638 X"$ac_file" : 'X\(//\)[^/]' \| \
10639 X"$ac_file" : 'X\(//\)$' \| \
10640 X"$ac_file" : 'X\(/\)' \| \
10641 . : '\(.\)' 2>/dev/null ||
10642 echo X"$ac_file" |
10643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10645 /^X\(\/\/\)$/{ s//\1/; q; }
10646 /^X\(\/\).*/{ s//\1/; q; }
10647 s/.*/./; q'`
10648 { if $as_mkdir_p; then
10649 mkdir -p "$ac_dir"
10650 else
10651 as_dir="$ac_dir"
10652 as_dirs=
10653 while test ! -d "$as_dir"; do
10654 as_dirs="$as_dir $as_dirs"
10655 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10657 X"$as_dir" : 'X\(//\)[^/]' \| \
10658 X"$as_dir" : 'X\(//\)$' \| \
10659 X"$as_dir" : 'X\(/\)' \| \
10660 . : '\(.\)' 2>/dev/null ||
10661 echo X"$as_dir" |
10662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10664 /^X\(\/\/\)$/{ s//\1/; q; }
10665 /^X\(\/\).*/{ s//\1/; q; }
10666 s/.*/./; q'`
10667 done
10668 test ! -n "$as_dirs" || mkdir $as_dirs
10669 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10670 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10671 { (exit 1); exit 1; }; }; }
10673 ac_builddir=.
10675 if test "$ac_dir" != .; then
10676 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10677 # A "../" for each directory in $ac_dir_suffix.
10678 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10679 else
10680 ac_dir_suffix= ac_top_builddir=
10683 case $srcdir in
10684 .) # No --srcdir option. We are building in place.
10685 ac_srcdir=.
10686 if test -z "$ac_top_builddir"; then
10687 ac_top_srcdir=.
10688 else
10689 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10690 fi ;;
10691 [\\/]* | ?:[\\/]* ) # Absolute path.
10692 ac_srcdir=$srcdir$ac_dir_suffix;
10693 ac_top_srcdir=$srcdir ;;
10694 *) # Relative path.
10695 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10696 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10697 esac
10699 # Do not use `cd foo && pwd` to compute absolute paths, because
10700 # the directories may not exist.
10701 case `pwd` in
10702 .) ac_abs_builddir="$ac_dir";;
10704 case "$ac_dir" in
10705 .) ac_abs_builddir=`pwd`;;
10706 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10707 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10708 esac;;
10709 esac
10710 case $ac_abs_builddir in
10711 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10713 case ${ac_top_builddir}. in
10714 .) ac_abs_top_builddir=$ac_abs_builddir;;
10715 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10716 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10717 esac;;
10718 esac
10719 case $ac_abs_builddir in
10720 .) ac_abs_srcdir=$ac_srcdir;;
10722 case $ac_srcdir in
10723 .) ac_abs_srcdir=$ac_abs_builddir;;
10724 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10725 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10726 esac;;
10727 esac
10728 case $ac_abs_builddir in
10729 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10731 case $ac_top_srcdir in
10732 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10733 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10734 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10735 esac;;
10736 esac
10739 case $INSTALL in
10740 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10741 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10742 esac
10744 if test x"$ac_file" != x-; then
10745 { echo "$as_me:$LINENO: creating $ac_file" >&5
10746 echo "$as_me: creating $ac_file" >&6;}
10747 rm -f "$ac_file"
10749 # Let's still pretend it is `configure' which instantiates (i.e., don't
10750 # use $as_me), people would be surprised to read:
10751 # /* config.h. Generated by config.status. */
10752 if test x"$ac_file" = x-; then
10753 configure_input=
10754 else
10755 configure_input="$ac_file. "
10757 configure_input=$configure_input"Generated from `echo $ac_file_in |
10758 sed 's,.*/,,'` by configure."
10760 # First look for the input files in the build tree, otherwise in the
10761 # src tree.
10762 ac_file_inputs=`IFS=:
10763 for f in $ac_file_in; do
10764 case $f in
10765 -) echo $tmp/stdin ;;
10766 [\\/$]*)
10767 # Absolute (can't be DOS-style, as IFS=:)
10768 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10769 echo "$as_me: error: cannot find input file: $f" >&2;}
10770 { (exit 1); exit 1; }; }
10771 echo "$f";;
10772 *) # Relative
10773 if test -f "$f"; then
10774 # Build tree
10775 echo "$f"
10776 elif test -f "$srcdir/$f"; then
10777 # Source tree
10778 echo "$srcdir/$f"
10779 else
10780 # /dev/null tree
10781 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10782 echo "$as_me: error: cannot find input file: $f" >&2;}
10783 { (exit 1); exit 1; }; }
10784 fi;;
10785 esac
10786 done` || { (exit 1); exit 1; }
10787 _ACEOF
10788 cat >>$CONFIG_STATUS <<_ACEOF
10789 sed "$ac_vpsub
10790 $extrasub
10791 _ACEOF
10792 cat >>$CONFIG_STATUS <<\_ACEOF
10794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10795 s,@configure_input@,$configure_input,;t t
10796 s,@srcdir@,$ac_srcdir,;t t
10797 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10798 s,@top_srcdir@,$ac_top_srcdir,;t t
10799 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10800 s,@builddir@,$ac_builddir,;t t
10801 s,@abs_builddir@,$ac_abs_builddir,;t t
10802 s,@top_builddir@,$ac_top_builddir,;t t
10803 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10804 s,@INSTALL@,$ac_INSTALL,;t t
10805 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10806 rm -f $tmp/stdin
10807 if test x"$ac_file" != x-; then
10808 mv $tmp/out $ac_file
10809 else
10810 cat $tmp/out
10811 rm -f $tmp/out
10814 done
10815 _ACEOF
10816 cat >>$CONFIG_STATUS <<\_ACEOF
10819 # CONFIG_HEADER section.
10822 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10823 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10825 # ac_d sets the value in "#define NAME VALUE" lines.
10826 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10827 ac_dB='[ ].*$,\1#\2'
10828 ac_dC=' '
10829 ac_dD=',;t'
10830 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10831 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10832 ac_uB='$,\1#\2define\3'
10833 ac_uC=' '
10834 ac_uD=',;t'
10836 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10837 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10838 case $ac_file in
10839 - | *:- | *:-:* ) # input from stdin
10840 cat >$tmp/stdin
10841 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10842 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10843 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10844 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10845 * ) ac_file_in=$ac_file.in ;;
10846 esac
10848 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10849 echo "$as_me: creating $ac_file" >&6;}
10851 # First look for the input files in the build tree, otherwise in the
10852 # src tree.
10853 ac_file_inputs=`IFS=:
10854 for f in $ac_file_in; do
10855 case $f in
10856 -) echo $tmp/stdin ;;
10857 [\\/$]*)
10858 # Absolute (can't be DOS-style, as IFS=:)
10859 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10860 echo "$as_me: error: cannot find input file: $f" >&2;}
10861 { (exit 1); exit 1; }; }
10862 # Do quote $f, to prevent DOS paths from being IFS'd.
10863 echo "$f";;
10864 *) # Relative
10865 if test -f "$f"; then
10866 # Build tree
10867 echo "$f"
10868 elif test -f "$srcdir/$f"; then
10869 # Source tree
10870 echo "$srcdir/$f"
10871 else
10872 # /dev/null tree
10873 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10874 echo "$as_me: error: cannot find input file: $f" >&2;}
10875 { (exit 1); exit 1; }; }
10876 fi;;
10877 esac
10878 done` || { (exit 1); exit 1; }
10879 # Remove the trailing spaces.
10880 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10882 _ACEOF
10884 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10885 # `conftest.undefs', that substitutes the proper values into
10886 # config.h.in to produce config.h. The first handles `#define'
10887 # templates, and the second `#undef' templates.
10888 # And first: Protect against being on the right side of a sed subst in
10889 # config.status. Protect against being in an unquoted here document
10890 # in config.status.
10891 rm -f conftest.defines conftest.undefs
10892 # Using a here document instead of a string reduces the quoting nightmare.
10893 # Putting comments in sed scripts is not portable.
10895 # `end' is used to avoid that the second main sed command (meant for
10896 # 0-ary CPP macros) applies to n-ary macro definitions.
10897 # See the Autoconf documentation for `clear'.
10898 cat >confdef2sed.sed <<\_ACEOF
10899 s/[\\&,]/\\&/g
10900 s,[\\$`],\\&,g
10901 t clear
10902 : clear
10903 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10904 t end
10905 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10906 : end
10907 _ACEOF
10908 # If some macros were called several times there might be several times
10909 # the same #defines, which is useless. Nevertheless, we may not want to
10910 # sort them, since we want the *last* AC-DEFINE to be honored.
10911 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10912 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10913 rm -f confdef2sed.sed
10915 # This sed command replaces #undef with comments. This is necessary, for
10916 # example, in the case of _POSIX_SOURCE, which is predefined and required
10917 # on some systems where configure will not decide to define it.
10918 cat >>conftest.undefs <<\_ACEOF
10919 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10920 _ACEOF
10922 # Break up conftest.defines because some shells have a limit on the size
10923 # of here documents, and old seds have small limits too (100 cmds).
10924 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10925 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10926 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10927 echo ' :' >>$CONFIG_STATUS
10928 rm -f conftest.tail
10929 while grep . conftest.defines >/dev/null
10931 # Write a limited-size here document to $tmp/defines.sed.
10932 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10933 # Speed up: don't consider the non `#define' lines.
10934 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10935 # Work around the forget-to-reset-the-flag bug.
10936 echo 't clr' >>$CONFIG_STATUS
10937 echo ': clr' >>$CONFIG_STATUS
10938 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10939 echo 'CEOF
10940 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10941 rm -f $tmp/in
10942 mv $tmp/out $tmp/in
10943 ' >>$CONFIG_STATUS
10944 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10945 rm -f conftest.defines
10946 mv conftest.tail conftest.defines
10947 done
10948 rm -f conftest.defines
10949 echo ' fi # grep' >>$CONFIG_STATUS
10950 echo >>$CONFIG_STATUS
10952 # Break up conftest.undefs because some shells have a limit on the size
10953 # of here documents, and old seds have small limits too (100 cmds).
10954 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10955 rm -f conftest.tail
10956 while grep . conftest.undefs >/dev/null
10958 # Write a limited-size here document to $tmp/undefs.sed.
10959 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10960 # Speed up: don't consider the non `#undef'
10961 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10962 # Work around the forget-to-reset-the-flag bug.
10963 echo 't clr' >>$CONFIG_STATUS
10964 echo ': clr' >>$CONFIG_STATUS
10965 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10966 echo 'CEOF
10967 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10968 rm -f $tmp/in
10969 mv $tmp/out $tmp/in
10970 ' >>$CONFIG_STATUS
10971 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10972 rm -f conftest.undefs
10973 mv conftest.tail conftest.undefs
10974 done
10975 rm -f conftest.undefs
10977 cat >>$CONFIG_STATUS <<\_ACEOF
10978 # Let's still pretend it is `configure' which instantiates (i.e., don't
10979 # use $as_me), people would be surprised to read:
10980 # /* config.h. Generated by config.status. */
10981 if test x"$ac_file" = x-; then
10982 echo "/* Generated by configure. */" >$tmp/config.h
10983 else
10984 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10986 cat $tmp/in >>$tmp/config.h
10987 rm -f $tmp/in
10988 if test x"$ac_file" != x-; then
10989 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10990 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10991 echo "$as_me: $ac_file is unchanged" >&6;}
10992 else
10993 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10994 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10995 X"$ac_file" : 'X\(//\)[^/]' \| \
10996 X"$ac_file" : 'X\(//\)$' \| \
10997 X"$ac_file" : 'X\(/\)' \| \
10998 . : '\(.\)' 2>/dev/null ||
10999 echo X"$ac_file" |
11000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11002 /^X\(\/\/\)$/{ s//\1/; q; }
11003 /^X\(\/\).*/{ s//\1/; q; }
11004 s/.*/./; q'`
11005 { if $as_mkdir_p; then
11006 mkdir -p "$ac_dir"
11007 else
11008 as_dir="$ac_dir"
11009 as_dirs=
11010 while test ! -d "$as_dir"; do
11011 as_dirs="$as_dir $as_dirs"
11012 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11013 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11014 X"$as_dir" : 'X\(//\)[^/]' \| \
11015 X"$as_dir" : 'X\(//\)$' \| \
11016 X"$as_dir" : 'X\(/\)' \| \
11017 . : '\(.\)' 2>/dev/null ||
11018 echo X"$as_dir" |
11019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11020 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11021 /^X\(\/\/\)$/{ s//\1/; q; }
11022 /^X\(\/\).*/{ s//\1/; q; }
11023 s/.*/./; q'`
11024 done
11025 test ! -n "$as_dirs" || mkdir $as_dirs
11026 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11027 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11028 { (exit 1); exit 1; }; }; }
11030 rm -f $ac_file
11031 mv $tmp/config.h $ac_file
11033 else
11034 cat $tmp/config.h
11035 rm -f $tmp/config.h
11037 # Compute $ac_file's index in $config_headers.
11038 _am_stamp_count=1
11039 for _am_header in $config_headers :; do
11040 case $_am_header in
11041 $ac_file | $ac_file:* )
11042 break ;;
11044 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11045 esac
11046 done
11047 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11048 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11049 X$ac_file : 'X\(//\)[^/]' \| \
11050 X$ac_file : 'X\(//\)$' \| \
11051 X$ac_file : 'X\(/\)' \| \
11052 . : '\(.\)' 2>/dev/null ||
11053 echo X$ac_file |
11054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11056 /^X\(\/\/\)$/{ s//\1/; q; }
11057 /^X\(\/\).*/{ s//\1/; q; }
11058 s/.*/./; q'`/stamp-h$_am_stamp_count
11059 done
11060 _ACEOF
11061 cat >>$CONFIG_STATUS <<\_ACEOF
11064 # CONFIG_COMMANDS section.
11066 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11067 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11068 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11069 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11070 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11071 X"$ac_dest" : 'X\(//\)[^/]' \| \
11072 X"$ac_dest" : 'X\(//\)$' \| \
11073 X"$ac_dest" : 'X\(/\)' \| \
11074 . : '\(.\)' 2>/dev/null ||
11075 echo X"$ac_dest" |
11076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11077 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11078 /^X\(\/\/\)$/{ s//\1/; q; }
11079 /^X\(\/\).*/{ s//\1/; q; }
11080 s/.*/./; q'`
11081 { if $as_mkdir_p; then
11082 mkdir -p "$ac_dir"
11083 else
11084 as_dir="$ac_dir"
11085 as_dirs=
11086 while test ! -d "$as_dir"; do
11087 as_dirs="$as_dir $as_dirs"
11088 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11089 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11090 X"$as_dir" : 'X\(//\)[^/]' \| \
11091 X"$as_dir" : 'X\(//\)$' \| \
11092 X"$as_dir" : 'X\(/\)' \| \
11093 . : '\(.\)' 2>/dev/null ||
11094 echo X"$as_dir" |
11095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11096 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11097 /^X\(\/\/\)$/{ s//\1/; q; }
11098 /^X\(\/\).*/{ s//\1/; q; }
11099 s/.*/./; q'`
11100 done
11101 test ! -n "$as_dirs" || mkdir $as_dirs
11102 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11103 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11104 { (exit 1); exit 1; }; }; }
11106 ac_builddir=.
11108 if test "$ac_dir" != .; then
11109 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11110 # A "../" for each directory in $ac_dir_suffix.
11111 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11112 else
11113 ac_dir_suffix= ac_top_builddir=
11116 case $srcdir in
11117 .) # No --srcdir option. We are building in place.
11118 ac_srcdir=.
11119 if test -z "$ac_top_builddir"; then
11120 ac_top_srcdir=.
11121 else
11122 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11123 fi ;;
11124 [\\/]* | ?:[\\/]* ) # Absolute path.
11125 ac_srcdir=$srcdir$ac_dir_suffix;
11126 ac_top_srcdir=$srcdir ;;
11127 *) # Relative path.
11128 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11129 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11130 esac
11132 # Do not use `cd foo && pwd` to compute absolute paths, because
11133 # the directories may not exist.
11134 case `pwd` in
11135 .) ac_abs_builddir="$ac_dir";;
11137 case "$ac_dir" in
11138 .) ac_abs_builddir=`pwd`;;
11139 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11140 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11141 esac;;
11142 esac
11143 case $ac_abs_builddir in
11144 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11146 case ${ac_top_builddir}. in
11147 .) ac_abs_top_builddir=$ac_abs_builddir;;
11148 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11149 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11150 esac;;
11151 esac
11152 case $ac_abs_builddir in
11153 .) ac_abs_srcdir=$ac_srcdir;;
11155 case $ac_srcdir in
11156 .) ac_abs_srcdir=$ac_abs_builddir;;
11157 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11158 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11159 esac;;
11160 esac
11161 case $ac_abs_builddir in
11162 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11164 case $ac_top_srcdir in
11165 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11166 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11167 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11168 esac;;
11169 esac
11172 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11173 echo "$as_me: executing $ac_dest commands" >&6;}
11174 case $ac_dest in
11175 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11176 # Strip MF so we end up with the name of the file.
11177 mf=`echo "$mf" | sed -e 's/:.*$//'`
11178 # Check whether this is an Automake generated Makefile or not.
11179 # We used to match only the files named `Makefile.in', but
11180 # some people rename them; so instead we look at the file content.
11181 # Grep'ing the first line is not enough: some people post-process
11182 # each Makefile.in and add a new line on top of each file to say so.
11183 # So let's grep whole file.
11184 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11185 dirpart=`(dirname "$mf") 2>/dev/null ||
11186 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11187 X"$mf" : 'X\(//\)[^/]' \| \
11188 X"$mf" : 'X\(//\)$' \| \
11189 X"$mf" : 'X\(/\)' \| \
11190 . : '\(.\)' 2>/dev/null ||
11191 echo X"$mf" |
11192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11194 /^X\(\/\/\)$/{ s//\1/; q; }
11195 /^X\(\/\).*/{ s//\1/; q; }
11196 s/.*/./; q'`
11197 else
11198 continue
11200 # Extract the definition of DEPDIR, am__include, and am__quote
11201 # from the Makefile without running `make'.
11202 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11203 test -z "$DEPDIR" && continue
11204 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11205 test -z "am__include" && continue
11206 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11207 # When using ansi2knr, U may be empty or an underscore; expand it
11208 U=`sed -n 's/^U = //p' < "$mf"`
11209 # Find all dependency output files, they are included files with
11210 # $(DEPDIR) in their names. We invoke sed twice because it is the
11211 # simplest approach to changing $(DEPDIR) to its actual value in the
11212 # expansion.
11213 for file in `sed -n "
11214 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11215 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11216 # Make sure the directory exists.
11217 test -f "$dirpart/$file" && continue
11218 fdir=`(dirname "$file") 2>/dev/null ||
11219 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11220 X"$file" : 'X\(//\)[^/]' \| \
11221 X"$file" : 'X\(//\)$' \| \
11222 X"$file" : 'X\(/\)' \| \
11223 . : '\(.\)' 2>/dev/null ||
11224 echo X"$file" |
11225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11227 /^X\(\/\/\)$/{ s//\1/; q; }
11228 /^X\(\/\).*/{ s//\1/; q; }
11229 s/.*/./; q'`
11230 { if $as_mkdir_p; then
11231 mkdir -p $dirpart/$fdir
11232 else
11233 as_dir=$dirpart/$fdir
11234 as_dirs=
11235 while test ! -d "$as_dir"; do
11236 as_dirs="$as_dir $as_dirs"
11237 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11238 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11239 X"$as_dir" : 'X\(//\)[^/]' \| \
11240 X"$as_dir" : 'X\(//\)$' \| \
11241 X"$as_dir" : 'X\(/\)' \| \
11242 . : '\(.\)' 2>/dev/null ||
11243 echo X"$as_dir" |
11244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11246 /^X\(\/\/\)$/{ s//\1/; q; }
11247 /^X\(\/\).*/{ s//\1/; q; }
11248 s/.*/./; q'`
11249 done
11250 test ! -n "$as_dirs" || mkdir $as_dirs
11251 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11252 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11253 { (exit 1); exit 1; }; }; }
11255 # echo "creating $dirpart/$file"
11256 echo '# dummy' > "$dirpart/$file"
11257 done
11258 done
11260 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11261 esac
11262 done
11263 _ACEOF
11265 cat >>$CONFIG_STATUS <<\_ACEOF
11267 { (exit 0); exit 0; }
11268 _ACEOF
11269 chmod +x $CONFIG_STATUS
11270 ac_clean_files=$ac_clean_files_save
11273 # configure is writing to config.log, and then calls config.status.
11274 # config.status does its own redirection, appending to config.log.
11275 # Unfortunately, on DOS this fails, as config.log is still kept open
11276 # by configure, so config.status won't be able to write to it; its
11277 # output is simply discarded. So we exec the FD to /dev/null,
11278 # effectively closing config.log, so it can be properly (re)opened and
11279 # appended to by config.status. When coming back to configure, we
11280 # need to make the FD available again.
11281 if test "$no_create" != yes; then
11282 ac_cs_success=:
11283 ac_config_status_args=
11284 test "$silent" = yes &&
11285 ac_config_status_args="$ac_config_status_args --quiet"
11286 exec 5>/dev/null
11287 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11288 exec 5>>config.log
11289 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11290 # would make configure fail if this is the last instruction.
11291 $ac_cs_success || { (exit 1); exit 1; }