Remove dejagnu/ entry.
[binutils.git] / gas / configure
blob412317ccb58cb0547df7e267cb7fba9567d70e24
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="as.h"
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 WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof BFDLIB OPCODES_LIB BFDVER_H ALL_OBJ_DEPS YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBM LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-bfd-assembler use BFD back end for writing object files
860 targets alternative target configurations besides the primary
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-werror treat compile warnings as errors
863 --enable-build-warnings Enable build-time compiler warnings
864 --disable-nls do not use Native Language Support
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
868 Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-gnu-ld assume the C compiler uses GNU ld default=no
872 --with-pic try to use only PIC/non-PIC objects default=use both
873 --with-included-gettext use the GNU gettext library included here
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CPP C preprocessor
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
887 _ACEOF
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 else
902 ac_dir_suffix= ac_top_builddir=
905 case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 fi ;;
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 esac
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
923 case `pwd` in
924 .) ac_abs_builddir="$ac_dir";;
926 case "$ac_dir" in
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
944 case $ac_srcdir in
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 esac;;
958 esac
960 cd $ac_dir
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
963 echo
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
966 echo
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
970 echo
971 $ac_configure --help
972 else
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 cd $ac_popdir
976 done
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981 cat <<\_ACEOF
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
986 _ACEOF
987 exit 0
989 exec 5>config.log
990 cat >&5 <<_ACEOF
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
994 It was created by $as_me, which was
995 generated by GNU Autoconf 2.59. Invocation command line was
997 $ $0 $@
999 _ACEOF
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023 _ASUNAME
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031 done
1033 } >&5
1035 cat >&5 <<_ACEOF
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1042 _ACEOF
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1050 ac_configure_args=
1051 ac_configure_args0=
1052 ac_configure_args1=
1053 ac_sep=
1054 ac_must_keep_next=false
1055 for ac_pass in 1 2
1057 for ac_arg
1059 case $ac_arg in
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 continue ;;
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 esac
1067 case $ac_pass in
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1073 else
1074 case $ac_arg in
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 esac
1083 -* ) ac_must_keep_next=true ;;
1084 esac
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
1090 esac
1091 done
1092 done
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log. We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1104 echo
1106 cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
1114 (set) 2>&1 |
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 *ac_space=\ *)
1117 sed -n \
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 sed -n \
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 esac;
1127 echo
1129 cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1142 if test -n "$ac_subst_files"; then
1143 cat <<\_ASBOX
1144 ## ------------- ##
1145 ## Output files. ##
1146 ## ------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_files
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1157 if test -s confdefs.h; then
1158 cat <<\_ASBOX
1159 ## ----------- ##
1160 ## confdefs.h. ##
1161 ## ----------- ##
1162 _ASBOX
1163 echo
1164 sed "/^$/d" confdefs.h | sort
1165 echo
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1170 } >&5
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173 exit $exit_status
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177 done
1178 ac_signal=0
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 echo >confdefs.h
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 else
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1226 . "$ac_site_file"
1228 done
1230 if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1241 else
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1247 # Check that the precious variables saved in the cache have kept the same
1248 # value.
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1257 set,)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,set)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1275 fi;;
1276 esac
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1279 case $ac_new_val in
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1283 esac
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 esac
1289 done
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1298 ac_ext=c
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 ac_aux_dir=
1324 for ac_dir in .. $srcdir/..; do
1325 if test -f $ac_dir/install-sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 break
1329 elif test -f $ac_dir/install.sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 break
1333 elif test -f $ac_dir/shtool; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1336 break
1338 done
1339 if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1341 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1342 { (exit 1); exit 1; }; }
1344 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348 # Make sure we can run config.sub.
1349 $ac_config_sub sun4 >/dev/null 2>&1 ||
1350 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1351 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352 { (exit 1); exit 1; }; }
1354 echo "$as_me:$LINENO: checking build system type" >&5
1355 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356 if test "${ac_cv_build+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359 ac_cv_build_alias=$build_alias
1360 test -z "$ac_cv_build_alias" &&
1361 ac_cv_build_alias=`$ac_config_guess`
1362 test -z "$ac_cv_build_alias" &&
1363 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1364 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365 { (exit 1); exit 1; }; }
1366 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1368 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1369 { (exit 1); exit 1; }; }
1372 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1373 echo "${ECHO_T}$ac_cv_build" >&6
1374 build=$ac_cv_build
1375 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 echo "$as_me:$LINENO: checking host system type" >&5
1381 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1382 if test "${ac_cv_host+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 ac_cv_host_alias=$host_alias
1386 test -z "$ac_cv_host_alias" &&
1387 ac_cv_host_alias=$ac_cv_build_alias
1388 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1389 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1390 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1391 { (exit 1); exit 1; }; }
1394 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1395 echo "${ECHO_T}$ac_cv_host" >&6
1396 host=$ac_cv_host
1397 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402 echo "$as_me:$LINENO: checking target system type" >&5
1403 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1404 if test "${ac_cv_target+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 ac_cv_target_alias=$target_alias
1408 test "x$ac_cv_target_alias" = "x" &&
1409 ac_cv_target_alias=$ac_cv_host_alias
1410 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1412 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1417 echo "${ECHO_T}$ac_cv_target" >&6
1418 target=$ac_cv_target
1419 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424 # The aliases save the names the user supplied, while $host etc.
1425 # will get canonicalized.
1426 test -n "$target_alias" &&
1427 test "$program_prefix$program_suffix$program_transform_name" = \
1428 NONENONEs,x,x, &&
1429 program_prefix=${target_alias}-
1430 ac_ext=c
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435 if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1457 done
1458 done
1462 CC=$ac_cv_prog_CC
1463 if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1466 else
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1472 if test -z "$ac_cv_prog_CC"; then
1473 ac_ct_CC=$CC
1474 # Extract the first word of "gcc", so it can be a program name with args.
1475 set dummy gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1495 done
1496 done
1500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501 if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503 echo "${ECHO_T}$ac_ct_CC" >&6
1504 else
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1509 CC=$ac_ct_CC
1510 else
1511 CC="$ac_cv_prog_CC"
1514 if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1537 done
1538 done
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1552 if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1575 done
1576 done
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1589 CC=$ac_ct_CC
1590 else
1591 CC="$ac_cv_prog_CC"
1595 if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 ac_prog_rejected=no
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615 ac_prog_rejected=yes
1616 continue
1618 ac_cv_prog_CC="cc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1622 done
1623 done
1625 if test $ac_prog_rejected = yes; then
1626 # We found a bogon in the path, so make sure we never use it.
1627 set dummy $ac_cv_prog_CC
1628 shift
1629 if test $# != 0; then
1630 # We chose a different compiler from the bogus one.
1631 # However, it has the same basename, so the bogon will be chosen
1632 # first if we set CC to just the basename; use the full file name.
1633 shift
1634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639 CC=$ac_cv_prog_CC
1640 if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1643 else
1644 echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1649 if test -z "$CC"; then
1650 if test -n "$ac_tool_prefix"; then
1651 for ac_prog in cl
1653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1674 done
1675 done
1679 CC=$ac_cv_prog_CC
1680 if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682 echo "${ECHO_T}$CC" >&6
1683 else
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1688 test -n "$CC" && break
1689 done
1691 if test -z "$CC"; then
1692 ac_ct_CC=$CC
1693 for ac_prog in cl
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1716 done
1717 done
1721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722 if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724 echo "${ECHO_T}$ac_ct_CC" >&6
1725 else
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730 test -n "$ac_ct_CC" && break
1731 done
1733 CC=$ac_ct_CC
1739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748 ac_compiler=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1765 cat >conftest.$ac_ext <<_ACEOF
1766 /* confdefs.h. */
1767 _ACEOF
1768 cat confdefs.h >>conftest.$ac_ext
1769 cat >>conftest.$ac_ext <<_ACEOF
1770 /* end confdefs.h. */
1773 main ()
1777 return 0;
1779 _ACEOF
1780 ac_clean_files_save=$ac_clean_files
1781 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1782 # Try to create an executable without -o first, disregard a.out.
1783 # It will help us diagnose broken compilers, and finding out an intuition
1784 # of exeext.
1785 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1786 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1787 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # resort.
1797 # Be careful to initialize this variable, since it used to be cached.
1798 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 ac_cv_exeext=
1800 # b.out is created by i960 compilers.
1801 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1803 test -f "$ac_file" || continue
1804 case $ac_file in
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807 conftest.$ac_ext )
1808 # This is the source file.
1810 [ab].out )
1811 # We found the default executable, but exeext='' is most
1812 # certainly right.
1813 break;;
1814 *.* )
1815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 # FIXME: I believe we export ac_cv_exeext for Libtool,
1817 # but it would be cool to find out if it's true. Does anybody
1818 # maintain Libtool? --akim.
1819 export ac_cv_exeext
1820 break;;
1822 break;;
1823 esac
1824 done
1825 else
1826 echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&2;}
1833 { (exit 77); exit 77; }; }
1836 ac_exeext=$ac_cv_exeext
1837 echo "$as_me:$LINENO: result: $ac_file" >&5
1838 echo "${ECHO_T}$ac_file" >&6
1840 # Check the compiler produces executables we can run. If not, either
1841 # the compiler is broken, or we cross compile.
1842 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1843 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845 # If not cross compiling, check that we can run a simple program.
1846 if test "$cross_compiling" != yes; then
1847 if { ac_try='./$ac_file'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 (eval $ac_try) 2>&5
1850 ac_status=$?
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; }; then
1853 cross_compiling=no
1854 else
1855 if test "$cross_compiling" = maybe; then
1856 cross_compiling=yes
1857 else
1858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1859 If you meant to cross compile, use \`--host'.
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1868 echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1872 ac_clean_files=$ac_clean_files_save
1873 # Check the compiler produces executables we can run. If not, either
1874 # the compiler is broken, or we cross compile.
1875 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1877 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1878 echo "${ECHO_T}$cross_compiling" >&6
1880 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1883 (eval $ac_link) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1889 # work properly (i.e., refer to `conftest.exe'), while it won't with
1890 # `rm'.
1891 for ac_file in conftest.exe conftest conftest.*; do
1892 test -f "$ac_file" || continue
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 export ac_cv_exeext
1897 break;;
1898 * ) break;;
1899 esac
1900 done
1901 else
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1909 rm -f conftest$ac_cv_exeext
1910 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1911 echo "${ECHO_T}$ac_cv_exeext" >&6
1913 rm -f conftest.$ac_ext
1914 EXEEXT=$ac_cv_exeext
1915 ac_exeext=$EXEEXT
1916 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1918 if test "${ac_cv_objext+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 cat >conftest.$ac_ext <<_ACEOF
1922 /* confdefs.h. */
1923 _ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1929 main ()
1933 return 0;
1935 _ACEOF
1936 rm -f conftest.o conftest.obj
1937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; then
1942 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 case $ac_file in
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1946 break;;
1947 esac
1948 done
1949 else
1950 echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1953 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1960 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1962 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1963 echo "${ECHO_T}$ac_cv_objext" >&6
1964 OBJEXT=$ac_cv_objext
1965 ac_objext=$OBJEXT
1966 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1967 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 cat >conftest.$ac_ext <<_ACEOF
1972 /* confdefs.h. */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1979 main ()
1981 #ifndef __GNUC__
1982 choke me
1983 #endif
1986 return 0;
1988 _ACEOF
1989 rm -f conftest.$ac_objext
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>conftest.er1
1992 ac_status=$?
1993 grep -v '^ *+' conftest.er1 >conftest.err
1994 rm -f conftest.er1
1995 cat conftest.err >&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -z "$ac_c_werror_flag"
1999 || test ! -s conftest.err'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2011 ac_compiler_gnu=yes
2012 else
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2016 ac_compiler_gnu=no
2018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024 GCC=`test $ac_compiler_gnu = yes && echo yes`
2025 ac_test_CFLAGS=${CFLAGS+set}
2026 ac_save_CFLAGS=$CFLAGS
2027 CFLAGS="-g"
2028 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030 if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 cat >conftest.$ac_ext <<_ACEOF
2034 /* confdefs.h. */
2035 _ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2041 main ()
2045 return 0;
2047 _ACEOF
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2051 ac_status=$?
2052 grep -v '^ *+' conftest.er1 >conftest.err
2053 rm -f conftest.er1
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 ac_cv_prog_cc_g=yes
2071 else
2072 echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2075 ac_cv_prog_cc_g=no
2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2079 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081 if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083 elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2085 CFLAGS="-g -O2"
2086 else
2087 CFLAGS="-g"
2089 else
2090 if test "$GCC" = yes; then
2091 CFLAGS="-O2"
2092 else
2093 CFLAGS=
2096 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 ac_cv_prog_cc_stdc=no
2102 ac_save_CC=$CC
2103 cat >conftest.$ac_ext <<_ACEOF
2104 /* confdefs.h. */
2105 _ACEOF
2106 cat confdefs.h >>conftest.$ac_ext
2107 cat >>conftest.$ac_ext <<_ACEOF
2108 /* end confdefs.h. */
2109 #include <stdarg.h>
2110 #include <stdio.h>
2111 #include <sys/types.h>
2112 #include <sys/stat.h>
2113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114 struct buf { int x; };
2115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116 static char *e (p, i)
2117 char **p;
2118 int i;
2120 return p[i];
2122 static char *f (char * (*g) (char **, int), char **p, ...)
2124 char *s;
2125 va_list v;
2126 va_start (v,p);
2127 s = g (p, va_arg (v,int));
2128 va_end (v);
2129 return s;
2132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2141 int test (int i, double x);
2142 struct s1 {int (*f) (int a);};
2143 struct s2 {int (*f) (double a);};
2144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145 int argc;
2146 char **argv;
2148 main ()
2150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 return 0;
2154 _ACEOF
2155 # Don't try gcc -ansi; that turns off useful extensions and
2156 # breaks some systems' header files.
2157 # AIX -qlanglvl=ansi
2158 # Ultrix and OSF/1 -std1
2159 # HP-UX 10.20 and later -Ae
2160 # HP-UX older versions -Aa -D_HPUX_SOURCE
2161 # SVR4 -Xc -D__EXTENSIONS__
2162 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>conftest.er1
2168 ac_status=$?
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -z "$ac_c_werror_flag"
2175 || test ! -s conftest.err'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2188 break
2189 else
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2194 rm -f conftest.err conftest.$ac_objext
2195 done
2196 rm -f conftest.$ac_ext conftest.$ac_objext
2197 CC=$ac_save_CC
2201 case "x$ac_cv_prog_cc_stdc" in
2202 x|xno)
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204 echo "${ECHO_T}none needed" >&6 ;;
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 esac
2211 # Some people use a C++ compiler to compile C. Since we use `exit',
2212 # in C++ we need to declare it. In case someone uses the same compiler
2213 # for both compiling C and C++ we need to have the C++ compiler decide
2214 # the declaration of exit, since it's the most demanding environment.
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #ifndef __cplusplus
2217 choke me
2218 #endif
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 for ac_declaration in \
2243 '' \
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2248 'void exit (int);'
2250 cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h. */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2256 $ac_declaration
2257 #include <stdlib.h>
2259 main ()
2261 exit (42);
2263 return 0;
2265 _ACEOF
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2289 else
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2293 continue
2295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296 cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2302 $ac_declaration
2304 main ()
2306 exit (42);
2308 return 0;
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 break
2334 else
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 done
2341 rm -f conftest*
2342 if test -n "$ac_declaration"; then
2343 echo '#ifdef __cplusplus' >>confdefs.h
2344 echo $ac_declaration >>confdefs.h
2345 echo '#endif' >>confdefs.h
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2362 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2363 if test "${ac_cv_search_strerror+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 ac_func_search_save_LIBS=$LIBS
2367 ac_cv_search_strerror=no
2368 cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h. */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2375 /* Override any gcc2 internal prototype to avoid an error. */
2376 #ifdef __cplusplus
2377 extern "C"
2378 #endif
2379 /* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2381 char strerror ();
2383 main ()
2385 strerror ();
2387 return 0;
2389 _ACEOF
2390 rm -f conftest.$ac_objext conftest$ac_exeext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2392 (eval $ac_link) 2>conftest.er1
2393 ac_status=$?
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag"
2400 || test ! -s conftest.err'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest$ac_exeext'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_cv_search_strerror="none required"
2413 else
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2418 rm -f conftest.err conftest.$ac_objext \
2419 conftest$ac_exeext conftest.$ac_ext
2420 if test "$ac_cv_search_strerror" = no; then
2421 for ac_lib in cposix; do
2422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2430 /* Override any gcc2 internal prototype to avoid an error. */
2431 #ifdef __cplusplus
2432 extern "C"
2433 #endif
2434 /* We use char because int might match the return type of a gcc2
2435 builtin and then its argument prototype would still apply. */
2436 char strerror ();
2438 main ()
2440 strerror ();
2442 return 0;
2444 _ACEOF
2445 rm -f conftest.$ac_objext conftest$ac_exeext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447 (eval $ac_link) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest$ac_exeext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 ac_cv_search_strerror="-l$ac_lib"
2468 break
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2474 rm -f conftest.err conftest.$ac_objext \
2475 conftest$ac_exeext conftest.$ac_ext
2476 done
2478 LIBS=$ac_func_search_save_LIBS
2480 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2481 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2482 if test "$ac_cv_search_strerror" != no; then
2483 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2488 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2489 am__api_version="1.9"
2490 # Find a good install program. We prefer a C program (faster),
2491 # so one script is as good as another. But avoid the broken or
2492 # incompatible versions:
2493 # SysV /etc/install, /usr/sbin/install
2494 # SunOS /usr/etc/install
2495 # IRIX /sbin/install
2496 # AIX /bin/install
2497 # AmigaOS /C/install, which installs bootblocks on floppy discs
2498 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2499 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2500 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2501 # OS/2's system install, which has a completely different semantic
2502 # ./install, which can be erroneously created by make from ./install.sh.
2503 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2504 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2505 if test -z "$INSTALL"; then
2506 if test "${ac_cv_path_install+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 # Account for people who put trailing slashes in PATH elements.
2515 case $as_dir/ in
2516 ./ | .// | /cC/* | \
2517 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2518 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2519 /usr/ucb/* ) ;;
2521 # OSF1 and SCO ODT 3.0 have their own names for install.
2522 # Don't use installbsd from OSF since it installs stuff as root
2523 # by default.
2524 for ac_prog in ginstall scoinst install; do
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2527 if test $ac_prog = install &&
2528 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # AIX install. It has an incompatible calling convention.
2531 elif test $ac_prog = install &&
2532 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # program-specific install script used by HP pwplus--don't use.
2535 else
2536 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2537 break 3
2540 done
2541 done
2543 esac
2544 done
2548 if test "${ac_cv_path_install+set}" = set; then
2549 INSTALL=$ac_cv_path_install
2550 else
2551 # As a last resort, use the slow shell script. We don't cache a
2552 # path for INSTALL within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the path is relative.
2555 INSTALL=$ac_install_sh
2558 echo "$as_me:$LINENO: result: $INSTALL" >&5
2559 echo "${ECHO_T}$INSTALL" >&6
2561 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2562 # It thinks the first close brace ends the variable substitution.
2563 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2570 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2571 # Just in case
2572 sleep 1
2573 echo timestamp > conftest.file
2574 # Do `set' in a subshell so we don't clobber the current shell's
2575 # arguments. Must try -L first in case configure is actually a
2576 # symlink; some systems play weird games with the mod time of symlinks
2577 # (eg FreeBSD returns the mod time of the symlink's containing
2578 # directory).
2579 if (
2580 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2581 if test "$*" = "X"; then
2582 # -L didn't work.
2583 set X `ls -t $srcdir/configure conftest.file`
2585 rm -f conftest.file
2586 if test "$*" != "X $srcdir/configure conftest.file" \
2587 && test "$*" != "X conftest.file $srcdir/configure"; then
2589 # If neither matched, then we have a broken ls. This can happen
2590 # if, for instance, CONFIG_SHELL is bash and it inherits a
2591 # broken ls alias from the environment. This has actually
2592 # happened. Such a system could not be considered "sane".
2593 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2594 alias in your environment" >&5
2595 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" >&2;}
2597 { (exit 1); exit 1; }; }
2600 test "$2" = conftest.file
2602 then
2603 # Ok.
2605 else
2606 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2607 Check your system clock" >&5
2608 echo "$as_me: error: newly created file is older than distributed files!
2609 Check your system clock" >&2;}
2610 { (exit 1); exit 1; }; }
2612 echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2614 test "$program_prefix" != NONE &&
2615 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2616 # Use a double $ so make ignores it.
2617 test "$program_suffix" != NONE &&
2618 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2619 # Double any \ or $. echo might interpret backslashes.
2620 # By default was `s,x,x', remove it if useless.
2621 cat <<\_ACEOF >conftest.sed
2622 s/[\\$]/&&/g;s/;s,x,x,$//
2623 _ACEOF
2624 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2625 rm conftest.sed
2627 # expand $ac_aux_dir to an absolute path
2628 am_aux_dir=`cd $ac_aux_dir && pwd`
2630 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2631 # Use eval to expand $SHELL
2632 if eval "$MISSING --run true"; then
2633 am_missing_run="$MISSING --run "
2634 else
2635 am_missing_run=
2636 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2637 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2640 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2641 # We used to keeping the `.' as first argument, in order to
2642 # allow $(mkdir_p) to be used without argument. As in
2643 # $(mkdir_p) $(somedir)
2644 # where $(somedir) is conditionally defined. However this is wrong
2645 # for two reasons:
2646 # 1. if the package is installed by a user who cannot write `.'
2647 # make install will fail,
2648 # 2. the above comment should most certainly read
2649 # $(mkdir_p) $(DESTDIR)$(somedir)
2650 # so it does not work when $(somedir) is undefined and
2651 # $(DESTDIR) is not.
2652 # To support the latter case, we have to write
2653 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2654 # so the `.' trick is pointless.
2655 mkdir_p='mkdir -p --'
2656 else
2657 # On NextStep and OpenStep, the `mkdir' command does not
2658 # recognize any option. It will interpret all options as
2659 # directories to create, and then abort because `.' already
2660 # exists.
2661 for d in ./-p ./--version;
2663 test -d $d && rmdir $d
2664 done
2665 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2666 if test -f "$ac_aux_dir/mkinstalldirs"; then
2667 mkdir_p='$(mkinstalldirs)'
2668 else
2669 mkdir_p='$(install_sh) -d'
2673 for ac_prog in gawk mawk nawk awk
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679 if test "${ac_cv_prog_AWK+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 if test -n "$AWK"; then
2683 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_AWK="$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2696 done
2697 done
2701 AWK=$ac_cv_prog_AWK
2702 if test -n "$AWK"; then
2703 echo "$as_me:$LINENO: result: $AWK" >&5
2704 echo "${ECHO_T}$AWK" >&6
2705 else
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2710 test -n "$AWK" && break
2711 done
2713 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2715 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2716 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719 cat >conftest.make <<\_ACEOF
2720 all:
2721 @echo 'ac_maketemp="$(MAKE)"'
2722 _ACEOF
2723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2725 if test -n "$ac_maketemp"; then
2726 eval ac_cv_prog_make_${ac_make}_set=yes
2727 else
2728 eval ac_cv_prog_make_${ac_make}_set=no
2730 rm -f conftest.make
2732 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2733 echo "$as_me:$LINENO: result: yes" >&5
2734 echo "${ECHO_T}yes" >&6
2735 SET_MAKE=
2736 else
2737 echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6
2739 SET_MAKE="MAKE=${MAKE-make}"
2742 rm -rf .tst 2>/dev/null
2743 mkdir .tst 2>/dev/null
2744 if test -d .tst; then
2745 am__leading_dot=.
2746 else
2747 am__leading_dot=_
2749 rmdir .tst 2>/dev/null
2751 DEPDIR="${am__leading_dot}deps"
2753 ac_config_commands="$ac_config_commands depfiles"
2756 am_make=${MAKE-make}
2757 cat > confinc << 'END'
2758 am__doit:
2759 @echo done
2760 .PHONY: am__doit
2762 # If we don't find an include directive, just comment out the code.
2763 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2764 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2765 am__include="#"
2766 am__quote=
2767 _am_result=none
2768 # First try GNU make style include.
2769 echo "include confinc" > confmf
2770 # We grep out `Entering directory' and `Leaving directory'
2771 # messages which can occur if `w' ends up in MAKEFLAGS.
2772 # In particular we don't look at `^make:' because GNU make might
2773 # be invoked under some other name (usually "gmake"), in which
2774 # case it prints its new name instead of `make'.
2775 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2776 am__include=include
2777 am__quote=
2778 _am_result=GNU
2780 # Now try BSD make style include.
2781 if test "$am__include" = "#"; then
2782 echo '.include "confinc"' > confmf
2783 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2784 am__include=.include
2785 am__quote="\""
2786 _am_result=BSD
2791 echo "$as_me:$LINENO: result: $_am_result" >&5
2792 echo "${ECHO_T}$_am_result" >&6
2793 rm -f confinc confmf
2795 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2796 if test "${enable_dependency_tracking+set}" = set; then
2797 enableval="$enable_dependency_tracking"
2800 if test "x$enable_dependency_tracking" != xno; then
2801 am_depcomp="$ac_aux_dir/depcomp"
2802 AMDEPBACKSLASH='\'
2806 if test "x$enable_dependency_tracking" != xno; then
2807 AMDEP_TRUE=
2808 AMDEP_FALSE='#'
2809 else
2810 AMDEP_TRUE='#'
2811 AMDEP_FALSE=
2816 # test to see if srcdir already configured
2817 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2818 test -f $srcdir/config.status; then
2819 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2820 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2821 { (exit 1); exit 1; }; }
2824 # test whether we have cygpath
2825 if test -z "$CYGPATH_W"; then
2826 if (cygpath --version) >/dev/null 2>/dev/null; then
2827 CYGPATH_W='cygpath -w'
2828 else
2829 CYGPATH_W=echo
2834 # Define the identity of the package.
2835 PACKAGE=gas
2836 VERSION=${BFD_VERSION}
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE "$PACKAGE"
2841 _ACEOF
2844 cat >>confdefs.h <<_ACEOF
2845 #define VERSION "$VERSION"
2846 _ACEOF
2848 # Some tools Automake needs.
2850 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2864 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2866 # Installed binaries are usually stripped using `strip' when the user
2867 # run `make install-strip'. However `strip' might not be the right
2868 # tool to use in cross-compilation environments, therefore Automake
2869 # will honor the `STRIP' environment variable to overrule this program.
2870 if test "$cross_compiling" != no; then
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}strip; ac_word=$2
2874 echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876 if test "${ac_cv_prog_STRIP+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if test -n "$STRIP"; then
2880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2898 STRIP=$ac_cv_prog_STRIP
2899 if test -n "$STRIP"; then
2900 echo "$as_me:$LINENO: result: $STRIP" >&5
2901 echo "${ECHO_T}$STRIP" >&6
2902 else
2903 echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2908 if test -z "$ac_cv_prog_STRIP"; then
2909 ac_ct_STRIP=$STRIP
2910 # Extract the first word of "strip", so it can be a program name with args.
2911 set dummy strip; ac_word=$2
2912 echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 if test -n "$ac_ct_STRIP"; then
2918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_STRIP="strip"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2931 done
2932 done
2934 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2938 if test -n "$ac_ct_STRIP"; then
2939 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2940 echo "${ECHO_T}$ac_ct_STRIP" >&6
2941 else
2942 echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2946 STRIP=$ac_ct_STRIP
2947 else
2948 STRIP="$ac_cv_prog_STRIP"
2952 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2954 # We need awk for the "check" target. The system "awk" is bad on
2955 # some platforms.
2956 # Always define AMTAR for backward compatibility.
2958 AMTAR=${AMTAR-"${am_missing_run}tar"}
2960 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2965 depcc="$CC" am_compiler_list=
2967 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2968 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2969 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2973 # We make a subdir and do the tests there. Otherwise we can end up
2974 # making bogus files that we don't know about and never remove. For
2975 # instance it was reported that on HP-UX the gcc test will end up
2976 # making a dummy file named `D' -- because `-MD' means `put the output
2977 # in D'.
2978 mkdir conftest.dir
2979 # Copy depcomp to subdir because otherwise we won't find it if we're
2980 # using a relative directory.
2981 cp "$am_depcomp" conftest.dir
2982 cd conftest.dir
2983 # We will build objects and dependencies in a subdirectory because
2984 # it helps to detect inapplicable dependency modes. For instance
2985 # both Tru64's cc and ICC support -MD to output dependencies as a
2986 # side effect of compilation, but ICC will put the dependencies in
2987 # the current directory while Tru64 will put them in the object
2988 # directory.
2989 mkdir sub
2991 am_cv_CC_dependencies_compiler_type=none
2992 if test "$am_compiler_list" = ""; then
2993 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2995 for depmode in $am_compiler_list; do
2996 # Setup a source with many dependencies, because some compilers
2997 # like to wrap large dependency lists on column 80 (with \), and
2998 # we should not choose a depcomp mode which is confused by this.
3000 # We need to recreate these files for each test, as the compiler may
3001 # overwrite some of them when testing with obscure command lines.
3002 # This happens at least with the AIX C compiler.
3003 : > sub/conftest.c
3004 for i in 1 2 3 4 5 6; do
3005 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3006 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3007 # Solaris 8's {/usr,}/bin/sh.
3008 touch sub/conftst$i.h
3009 done
3010 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3012 case $depmode in
3013 nosideeffect)
3014 # after this tag, mechanisms are not by side-effect, so they'll
3015 # only be used when explicitly requested
3016 if test "x$enable_dependency_tracking" = xyes; then
3017 continue
3018 else
3019 break
3022 none) break ;;
3023 esac
3024 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3025 # mode. It turns out that the SunPro C++ compiler does not properly
3026 # handle `-M -o', and we need to detect this.
3027 if depmode=$depmode \
3028 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3029 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3030 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3031 >/dev/null 2>conftest.err &&
3032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3033 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3035 # icc doesn't choke on unknown options, it will just issue warnings
3036 # or remarks (even with -Werror). So we grep stderr for any message
3037 # that says an option was ignored or not supported.
3038 # When given -MP, icc 7.0 and 7.1 complain thusly:
3039 # icc: Command line warning: ignoring option '-M'; no argument required
3040 # The diagnosis changed in icc 8.0:
3041 # icc: Command line remark: option '-MP' not supported
3042 if (grep 'ignoring option' conftest.err ||
3043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3044 am_cv_CC_dependencies_compiler_type=$depmode
3045 break
3048 done
3050 cd ..
3051 rm -rf conftest.dir
3052 else
3053 am_cv_CC_dependencies_compiler_type=none
3057 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3058 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3059 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3064 test "x$enable_dependency_tracking" != xno \
3065 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3066 am__fastdepCC_TRUE=
3067 am__fastdepCC_FALSE='#'
3068 else
3069 am__fastdepCC_TRUE='#'
3070 am__fastdepCC_FALSE=
3076 # Check whether --enable-shared or --disable-shared was given.
3077 if test "${enable_shared+set}" = set; then
3078 enableval="$enable_shared"
3079 p=${PACKAGE-default}
3080 case $enableval in
3081 yes) enable_shared=yes ;;
3082 no) enable_shared=no ;;
3084 enable_shared=no
3085 # Look at the argument we got. We use all the common list separators.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3087 for pkg in $enableval; do
3088 if test "X$pkg" = "X$p"; then
3089 enable_shared=yes
3091 done
3092 IFS="$ac_save_ifs"
3094 esac
3095 else
3096 enable_shared=yes
3098 # Check whether --enable-static or --disable-static was given.
3099 if test "${enable_static+set}" = set; then
3100 enableval="$enable_static"
3101 p=${PACKAGE-default}
3102 case $enableval in
3103 yes) enable_static=yes ;;
3104 no) enable_static=no ;;
3106 enable_static=no
3107 # Look at the argument we got. We use all the common list separators.
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3109 for pkg in $enableval; do
3110 if test "X$pkg" = "X$p"; then
3111 enable_static=yes
3113 done
3114 IFS="$ac_save_ifs"
3116 esac
3117 else
3118 enable_static=yes
3120 # Check whether --enable-fast-install or --disable-fast-install was given.
3121 if test "${enable_fast_install+set}" = set; then
3122 enableval="$enable_fast_install"
3123 p=${PACKAGE-default}
3124 case $enableval in
3125 yes) enable_fast_install=yes ;;
3126 no) enable_fast_install=no ;;
3128 enable_fast_install=no
3129 # Look at the argument we got. We use all the common list separators.
3130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3131 for pkg in $enableval; do
3132 if test "X$pkg" = "X$p"; then
3133 enable_fast_install=yes
3135 done
3136 IFS="$ac_save_ifs"
3138 esac
3139 else
3140 enable_fast_install=yes
3143 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3144 if test "${with_gnu_ld+set}" = set; then
3145 withval="$with_gnu_ld"
3146 test "$withval" = no || with_gnu_ld=yes
3147 else
3148 with_gnu_ld=no
3150 ac_prog=ld
3151 if test "$GCC" = yes; then
3152 # Check if gcc -print-prog-name=ld gives a path.
3153 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3154 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3155 case $host in
3156 *-*-mingw*)
3157 # gcc leaves a trailing carriage return which upsets mingw
3158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3161 esac
3162 case $ac_prog in
3163 # Accept absolute paths.
3164 [\\/]* | [A-Za-z]:[\\/]*)
3165 re_direlt='/[^/][^/]*/\.\./'
3166 # Canonicalize the path of ld
3167 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3169 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3170 done
3171 test -z "$LD" && LD="$ac_prog"
3174 # If it fails, then pretend we aren't using GCC.
3175 ac_prog=ld
3178 # If it is relative, then search for the first ld in PATH.
3179 with_gnu_ld=unknown
3181 esac
3182 elif test "$with_gnu_ld" = yes; then
3183 echo "$as_me:$LINENO: checking for GNU ld" >&5
3184 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3185 else
3186 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3187 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3189 if test "${lt_cv_path_LD+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192 if test -z "$LD"; then
3193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3194 for ac_dir in $PATH; do
3195 test -z "$ac_dir" && ac_dir=.
3196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3197 lt_cv_path_LD="$ac_dir/$ac_prog"
3198 # Check to see if the program is GNU ld. I'd rather use --version,
3199 # but apparently some GNU ld's only accept -v.
3200 # Break only if it was the GNU/non-GNU ld that we prefer.
3201 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3202 test "$with_gnu_ld" != no && break
3203 else
3204 test "$with_gnu_ld" != yes && break
3207 done
3208 IFS="$ac_save_ifs"
3209 else
3210 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3214 LD="$lt_cv_path_LD"
3215 if test -n "$LD"; then
3216 echo "$as_me:$LINENO: result: $LD" >&5
3217 echo "${ECHO_T}$LD" >&6
3218 else
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3222 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3223 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3224 { (exit 1); exit 1; }; }
3225 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3226 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3227 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3231 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3232 lt_cv_prog_gnu_ld=yes
3233 else
3234 lt_cv_prog_gnu_ld=no
3237 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3238 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3239 with_gnu_ld=$lt_cv_prog_gnu_ld
3242 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3243 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3244 if test "${lt_cv_ld_reload_flag+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 lt_cv_ld_reload_flag='-r'
3249 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3250 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3251 reload_flag=$lt_cv_ld_reload_flag
3252 test -n "$reload_flag" && reload_flag=" $reload_flag"
3254 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3255 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3256 if test "${lt_cv_path_NM+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 if test -n "$NM"; then
3260 # Let the user override the test.
3261 lt_cv_path_NM="$NM"
3262 else
3263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3264 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3265 test -z "$ac_dir" && ac_dir=.
3266 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3267 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3268 # Check to see if the nm accepts a BSD-compat flag.
3269 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3270 # nm: unknown option "B" ignored
3271 # Tru64's nm complains that /dev/null is an invalid object file
3272 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3273 lt_cv_path_NM="$tmp_nm -B"
3274 break
3275 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3276 lt_cv_path_NM="$tmp_nm -p"
3277 break
3278 else
3279 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3280 continue # so that we can try to find one that supports BSD flags
3283 done
3284 IFS="$ac_save_ifs"
3285 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3289 NM="$lt_cv_path_NM"
3290 echo "$as_me:$LINENO: result: $NM" >&5
3291 echo "${ECHO_T}$NM" >&6
3293 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3294 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3295 LN_S=$as_ln_s
3296 if test "$LN_S" = "ln -s"; then
3297 echo "$as_me:$LINENO: result: yes" >&5
3298 echo "${ECHO_T}yes" >&6
3299 else
3300 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3301 echo "${ECHO_T}no, using $LN_S" >&6
3304 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3305 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3306 if test "${lt_cv_deplibs_check_method+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309 lt_cv_file_magic_cmd='$MAGIC_CMD'
3310 lt_cv_file_magic_test_file=
3311 lt_cv_deplibs_check_method='unknown'
3312 # Need to set the preceding variable on all platforms that support
3313 # interlibrary dependencies.
3314 # 'none' -- dependencies not supported.
3315 # `unknown' -- same as none, but documents that we really don't know.
3316 # 'pass_all' -- all dependencies passed with no checks.
3317 # 'test_compile' -- check by making test program.
3318 # 'file_magic [regex]' -- check by looking for files in library path
3319 # which responds to the $file_magic_cmd with a given egrep regex.
3320 # If you have `file' or equivalent on your system and you're not sure
3321 # whether `pass_all' will *always* work, you probably want this one.
3323 case $host_os in
3324 aix*)
3325 lt_cv_deplibs_check_method=pass_all
3328 beos*)
3329 lt_cv_deplibs_check_method=pass_all
3332 bsdi4*)
3333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3334 lt_cv_file_magic_cmd='/usr/bin/file -L'
3335 lt_cv_file_magic_test_file=/shlib/libc.so
3338 cygwin* | mingw* |pw32*)
3339 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3340 lt_cv_file_magic_cmd='$OBJDUMP -f'
3343 darwin* | rhapsody*)
3344 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3345 lt_cv_file_magic_cmd='/usr/bin/file -L'
3346 case "$host_os" in
3347 rhapsody* | darwin1.012)
3348 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3350 *) # Darwin 1.3 on
3351 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3353 esac
3356 freebsd* | kfreebsd*-gnu)
3357 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3358 case $host_cpu in
3359 i*86 )
3360 # Not sure whether the presence of OpenBSD here was a mistake.
3361 # Let's accept both of them until this is cleared up.
3362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3363 lt_cv_file_magic_cmd=/usr/bin/file
3364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3366 esac
3367 else
3368 lt_cv_deplibs_check_method=pass_all
3372 gnu*)
3373 lt_cv_deplibs_check_method=pass_all
3376 hpux10.20*|hpux11*)
3377 case $host_cpu in
3378 hppa*)
3379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3380 lt_cv_file_magic_cmd=/usr/bin/file
3381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3383 ia64*)
3384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3385 lt_cv_file_magic_cmd=/usr/bin/file
3386 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3388 esac
3391 irix5* | irix6*)
3392 case $host_os in
3393 irix5*)
3394 # this will be overridden with pass_all, but let us keep it just in case
3395 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3398 case $LD in
3399 *-32|*"-32 ") libmagic=32-bit;;
3400 *-n32|*"-n32 ") libmagic=N32;;
3401 *-64|*"-64 ") libmagic=64-bit;;
3402 *) libmagic=never-match;;
3403 esac
3404 # this will be overridden with pass_all, but let us keep it just in case
3405 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3407 esac
3408 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3409 lt_cv_deplibs_check_method=pass_all
3412 # This must be Linux ELF.
3413 linux-gnu*)
3414 case $host_cpu in
3415 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3416 lt_cv_deplibs_check_method=pass_all ;;
3418 # glibc up to 2.1.1 does not perform some relocations on ARM
3419 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3420 esac
3421 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3424 netbsd* | knetbsd*-gnu)
3425 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3426 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3427 else
3428 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3432 newsos6)
3433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3434 lt_cv_file_magic_cmd=/usr/bin/file
3435 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3438 osf3* | osf4* | osf5*)
3439 # this will be overridden with pass_all, but let us keep it just in case
3440 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3441 lt_cv_file_magic_test_file=/shlib/libc.so
3442 lt_cv_deplibs_check_method=pass_all
3445 sco3.2v5*)
3446 lt_cv_deplibs_check_method=pass_all
3449 solaris*)
3450 lt_cv_deplibs_check_method=pass_all
3451 lt_cv_file_magic_test_file=/lib/libc.so
3454 sysv5uw[78]* | sysv4*uw2*)
3455 lt_cv_deplibs_check_method=pass_all
3458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3459 case $host_vendor in
3460 ncr)
3461 lt_cv_deplibs_check_method=pass_all
3463 motorola)
3464 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]'
3465 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3467 esac
3469 esac
3472 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3473 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3474 file_magic_cmd=$lt_cv_file_magic_cmd
3475 deplibs_check_method=$lt_cv_deplibs_check_method
3480 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3482 # Only perform the check for file, if the check method requires it
3483 case $deplibs_check_method in
3484 file_magic*)
3485 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3486 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3487 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491 case $MAGIC_CMD in
3493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3495 ?:/*)
3496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3499 ac_save_MAGIC_CMD="$MAGIC_CMD"
3500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3501 ac_dummy="/usr/bin:$PATH"
3502 for ac_dir in $ac_dummy; do
3503 test -z "$ac_dir" && ac_dir=.
3504 if test -f $ac_dir/${ac_tool_prefix}file; then
3505 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3506 if test -n "$file_magic_test_file"; then
3507 case $deplibs_check_method in
3508 "file_magic "*)
3509 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3512 egrep "$file_magic_regex" > /dev/null; then
3514 else
3515 cat <<EOF 1>&2
3517 *** Warning: the command libtool uses to detect shared libraries,
3518 *** $file_magic_cmd, produces output that libtool cannot recognize.
3519 *** The result is that libtool may fail to recognize shared libraries
3520 *** as such. This will affect the creation of libtool libraries that
3521 *** depend on shared libraries, but programs linked with such libtool
3522 *** libraries will work regardless of this problem. Nevertheless, you
3523 *** may want to report the problem to your system manager and/or to
3524 *** bug-libtool@gnu.org
3527 fi ;;
3528 esac
3530 break
3532 done
3533 IFS="$ac_save_ifs"
3534 MAGIC_CMD="$ac_save_MAGIC_CMD"
3536 esac
3539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3540 if test -n "$MAGIC_CMD"; then
3541 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3542 echo "${ECHO_T}$MAGIC_CMD" >&6
3543 else
3544 echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3548 if test -z "$lt_cv_path_MAGIC_CMD"; then
3549 if test -n "$ac_tool_prefix"; then
3550 echo "$as_me:$LINENO: checking for file" >&5
3551 echo $ECHO_N "checking for file... $ECHO_C" >&6
3552 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555 case $MAGIC_CMD in
3557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3559 ?:/*)
3560 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3563 ac_save_MAGIC_CMD="$MAGIC_CMD"
3564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3565 ac_dummy="/usr/bin:$PATH"
3566 for ac_dir in $ac_dummy; do
3567 test -z "$ac_dir" && ac_dir=.
3568 if test -f $ac_dir/file; then
3569 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3570 if test -n "$file_magic_test_file"; then
3571 case $deplibs_check_method in
3572 "file_magic "*)
3573 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3576 egrep "$file_magic_regex" > /dev/null; then
3578 else
3579 cat <<EOF 1>&2
3581 *** Warning: the command libtool uses to detect shared libraries,
3582 *** $file_magic_cmd, produces output that libtool cannot recognize.
3583 *** The result is that libtool may fail to recognize shared libraries
3584 *** as such. This will affect the creation of libtool libraries that
3585 *** depend on shared libraries, but programs linked with such libtool
3586 *** libraries will work regardless of this problem. Nevertheless, you
3587 *** may want to report the problem to your system manager and/or to
3588 *** bug-libtool@gnu.org
3591 fi ;;
3592 esac
3594 break
3596 done
3597 IFS="$ac_save_ifs"
3598 MAGIC_CMD="$ac_save_MAGIC_CMD"
3600 esac
3603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3604 if test -n "$MAGIC_CMD"; then
3605 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3606 echo "${ECHO_T}$MAGIC_CMD" >&6
3607 else
3608 echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6
3612 else
3613 MAGIC_CMD=:
3619 esac
3621 if test -n "$ac_tool_prefix"; then
3622 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3623 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3624 echo "$as_me:$LINENO: checking for $ac_word" >&5
3625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3626 if test "${ac_cv_prog_RANLIB+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629 if test -n "$RANLIB"; then
3630 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 break 2
3643 done
3644 done
3648 RANLIB=$ac_cv_prog_RANLIB
3649 if test -n "$RANLIB"; then
3650 echo "$as_me:$LINENO: result: $RANLIB" >&5
3651 echo "${ECHO_T}$RANLIB" >&6
3652 else
3653 echo "$as_me:$LINENO: result: no" >&5
3654 echo "${ECHO_T}no" >&6
3658 if test -z "$ac_cv_prog_RANLIB"; then
3659 ac_ct_RANLIB=$RANLIB
3660 # Extract the first word of "ranlib", so it can be a program name with args.
3661 set dummy ranlib; ac_word=$2
3662 echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3664 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667 if test -n "$ac_ct_RANLIB"; then
3668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_prog_ac_ct_RANLIB="ranlib"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3681 done
3682 done
3684 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3687 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3688 if test -n "$ac_ct_RANLIB"; then
3689 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3690 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3691 else
3692 echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6
3696 RANLIB=$ac_ct_RANLIB
3697 else
3698 RANLIB="$ac_cv_prog_RANLIB"
3701 if test -n "$ac_tool_prefix"; then
3702 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3703 set dummy ${ac_tool_prefix}strip; ac_word=$2
3704 echo "$as_me:$LINENO: checking for $ac_word" >&5
3705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3706 if test "${ac_cv_prog_STRIP+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 if test -n "$STRIP"; then
3710 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3711 else
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3719 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 break 2
3723 done
3724 done
3728 STRIP=$ac_cv_prog_STRIP
3729 if test -n "$STRIP"; then
3730 echo "$as_me:$LINENO: result: $STRIP" >&5
3731 echo "${ECHO_T}$STRIP" >&6
3732 else
3733 echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6
3738 if test -z "$ac_cv_prog_STRIP"; then
3739 ac_ct_STRIP=$STRIP
3740 # Extract the first word of "strip", so it can be a program name with args.
3741 set dummy strip; ac_word=$2
3742 echo "$as_me:$LINENO: checking for $ac_word" >&5
3743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747 if test -n "$ac_ct_STRIP"; then
3748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_ac_ct_STRIP="strip"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3761 done
3762 done
3764 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3767 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3768 if test -n "$ac_ct_STRIP"; then
3769 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3770 echo "${ECHO_T}$ac_ct_STRIP" >&6
3771 else
3772 echo "$as_me:$LINENO: result: no" >&5
3773 echo "${ECHO_T}no" >&6
3776 STRIP=$ac_ct_STRIP
3777 else
3778 STRIP="$ac_cv_prog_STRIP"
3782 # Check for any special flags to pass to ltconfig.
3783 libtool_flags="--cache-file=$cache_file"
3784 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3785 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3786 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3787 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3788 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3791 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3792 if test "${enable_libtool_lock+set}" = set; then
3793 enableval="$enable_libtool_lock"
3796 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3797 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3800 # Check whether --with-pic or --without-pic was given.
3801 if test "${with_pic+set}" = set; then
3802 withval="$with_pic"
3803 pic_mode="$withval"
3804 else
3805 pic_mode=default
3807 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3808 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3810 # Some flags need to be propagated to the compiler or linker for good
3811 # libtool support.
3812 case $host in
3813 *-*-irix6*)
3814 # Find out which ABI we are using.
3815 echo '#line 3815 "configure"' > conftest.$ac_ext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; then
3821 if test "$lt_cv_prog_gnu_ld" = yes; then
3822 case `/usr/bin/file conftest.$ac_objext` in
3823 *32-bit*)
3824 LD="${LD-ld} -melf32bsmip"
3826 *N32*)
3827 LD="${LD-ld} -melf32bmipn32"
3829 *64-bit*)
3830 LD="${LD-ld} -melf64bmip"
3832 esac
3833 else
3834 case `/usr/bin/file conftest.$ac_objext` in
3835 *32-bit*)
3836 LD="${LD-ld} -32"
3838 *N32*)
3839 LD="${LD-ld} -n32"
3841 *64-bit*)
3842 LD="${LD-ld} -64"
3844 esac
3847 rm -rf conftest*
3850 ia64-*-hpux*)
3851 # Find out which ABI we are using.
3852 echo 'int i;' > conftest.$ac_ext
3853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3854 (eval $ac_compile) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; then
3858 case "`/usr/bin/file conftest.o`" in
3859 *ELF-32*)
3860 HPUX_IA64_MODE="32"
3862 *ELF-64*)
3863 HPUX_IA64_MODE="64"
3865 esac
3867 rm -rf conftest*
3870 *-*-sco3.2v5*)
3871 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3872 SAVE_CFLAGS="$CFLAGS"
3873 CFLAGS="$CFLAGS -belf"
3874 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3875 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3876 if test "${lt_cv_cc_needs_belf+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3881 ac_ext=c
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3895 main ()
3899 return 0;
3901 _ACEOF
3902 rm -f conftest.$ac_objext conftest$ac_exeext
3903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3904 (eval $ac_link) 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_c_werror_flag"
3912 || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest$ac_exeext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 lt_cv_cc_needs_belf=yes
3925 else
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 lt_cv_cc_needs_belf=no
3931 rm -f conftest.err conftest.$ac_objext \
3932 conftest$ac_exeext conftest.$ac_ext
3933 ac_ext=c
3934 ac_cpp='$CPP $CPPFLAGS'
3935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3941 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3942 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3943 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3944 CFLAGS="$SAVE_CFLAGS"
3949 esac
3952 # Save cache, so that ltconfig can load it
3953 cat >confcache <<\_ACEOF
3954 # This file is a shell script that caches the results of configure
3955 # tests run on this system so they can be shared between configure
3956 # scripts and configure runs, see configure's option --config-cache.
3957 # It is not useful on other systems. If it contains results you don't
3958 # want to keep, you may remove or edit it.
3960 # config.status only pays attention to the cache file if you give it
3961 # the --recheck option to rerun configure.
3963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3965 # following values.
3967 _ACEOF
3969 # The following way of writing the cache mishandles newlines in values,
3970 # but we know of no workaround that is simple, portable, and efficient.
3971 # So, don't put newlines in cache variables' values.
3972 # Ultrix sh set writes to stderr and can't be redirected directly,
3973 # and sets the high bit in the cache file unless we assign to the vars.
3975 (set) 2>&1 |
3976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3977 *ac_space=\ *)
3978 # `set' does not quote correctly, so add quotes (double-quote
3979 # substitution turns \\\\ into \\, and sed turns \\ into \).
3980 sed -n \
3981 "s/'/'\\\\''/g;
3982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3985 # `set' quotes correctly as required by POSIX, so do not add quotes.
3986 sed -n \
3987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3989 esac;
3991 sed '
3992 t clear
3993 : clear
3994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3995 t end
3996 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3997 : end' >>confcache
3998 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3999 if test -w $cache_file; then
4000 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4001 cat confcache >$cache_file
4002 else
4003 echo "not updating unwritable cache $cache_file"
4006 rm -f confcache
4008 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4009 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4010 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4011 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4012 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4013 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4014 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4015 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4016 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4017 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4018 echo "$as_me: error: libtool configure failed" >&2;}
4019 { (exit 1); exit 1; }; }
4021 # Reload cache, that may have been modified by ltconfig
4022 if test -r "$cache_file"; then
4023 # Some versions of bash will fail to source /dev/null (special
4024 # files actually), so we avoid doing that.
4025 if test -f "$cache_file"; then
4026 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4027 echo "$as_me: loading cache $cache_file" >&6;}
4028 case $cache_file in
4029 [\\/]* | ?:[\\/]* ) . $cache_file;;
4030 *) . ./$cache_file;;
4031 esac
4033 else
4034 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4035 echo "$as_me: creating cache $cache_file" >&6;}
4036 >$cache_file
4040 # This can be used to rebuild libtool when needed
4041 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4043 # Always use our own libtool.
4044 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4046 # Redirect the config.log output again, so that the ltconfig log is not
4047 # clobbered by the next message.
4048 exec 5>>./config.log
4056 user_bfd_gas=
4057 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
4058 if test "${enable_bfd_assembler+set}" = set; then
4059 enableval="$enable_bfd_assembler"
4060 case "${enableval}" in
4061 yes) need_bfd=yes user_bfd_gas=yes ;;
4062 no) user_bfd_gas=no ;;
4063 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
4064 echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
4065 { (exit 1); exit 1; }; } ;;
4066 esac
4067 fi; # Check whether --enable-targets or --disable-targets was given.
4068 if test "${enable_targets+set}" = set; then
4069 enableval="$enable_targets"
4070 case "${enableval}" in
4071 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4072 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4073 { (exit 1); exit 1; }; }
4075 no) enable_targets= ;;
4076 *) enable_targets=$enableval ;;
4077 esac
4078 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4079 if test "${enable_commonbfdlib+set}" = set; then
4080 enableval="$enable_commonbfdlib"
4081 case "${enableval}" in
4082 yes) commonbfdlib=true ;;
4083 no) commonbfdlib=false ;;
4084 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4085 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4086 { (exit 1); exit 1; }; } ;;
4087 esac
4089 using_cgen=no
4092 WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4094 # Check whether --enable-werror or --disable-werror was given.
4095 if test "${enable_werror+set}" = set; then
4096 enableval="$enable_werror"
4097 case "${enableval}" in
4098 yes | y) ERROR_ON_WARNING="yes" ;;
4099 no | n) ERROR_ON_WARNING="no" ;;
4100 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4101 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4102 { (exit 1); exit 1; }; } ;;
4103 esac
4106 # Enable -Werror by default when using gcc
4107 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4108 ERROR_ON_WARNING=yes
4111 NO_WERROR=
4112 if test "${ERROR_ON_WARNING}" = yes ; then
4113 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4114 NO_WERROR="-Wno-error"
4117 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4118 if test "${enable_build_warnings+set}" = set; then
4119 enableval="$enable_build_warnings"
4120 case "${enableval}" in
4121 yes) ;;
4122 no) WARN_CFLAGS="-w";;
4123 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4124 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
4125 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4126 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4127 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4128 esac
4131 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4132 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4139 # Generate a header file
4140 ac_config_headers="$ac_config_headers config.h:config.in"
4143 # If we are on a DOS filesystem, we must use gdb.ini rather than
4144 # .gdbinit.
4145 case "${host}" in
4146 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
4147 GDBINIT="gdb.ini"
4148 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
4152 GDBINIT=".gdbinit"
4153 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
4156 esac
4159 #We need this for the host. BOUT header is in host order.
4160 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4161 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4162 if test "${ac_cv_c_bigendian+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165 # See if sys/param.h defines the BYTE_ORDER macro.
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h. */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172 #include <sys/types.h>
4173 #include <sys/param.h>
4176 main ()
4178 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4179 bogus endian macros
4180 #endif
4183 return 0;
4185 _ACEOF
4186 rm -f conftest.$ac_objext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188 (eval $ac_compile) 2>conftest.er1
4189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
4195 { ac_try='test -z "$ac_c_werror_flag"
4196 || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 # It does; now see whether it defined to BIG_ENDIAN or not.
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <sys/types.h>
4216 #include <sys/param.h>
4219 main ()
4221 #if BYTE_ORDER != BIG_ENDIAN
4222 not big endian
4223 #endif
4226 return 0;
4228 _ACEOF
4229 rm -f conftest.$ac_objext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231 (eval $ac_compile) 2>conftest.er1
4232 ac_status=$?
4233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } &&
4238 { ac_try='test -z "$ac_c_werror_flag"
4239 || test ! -s conftest.err'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 (eval $ac_try) 2>&5
4248 ac_status=$?
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 ac_cv_c_bigendian=yes
4252 else
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4256 ac_cv_c_bigendian=no
4258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4259 else
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 # It does not; compile a test program.
4264 if test "$cross_compiling" = yes; then
4265 # try to guess the endianness by grepping values into an object file
4266 ac_cv_c_bigendian=unknown
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h. */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4274 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4275 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4276 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4277 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4278 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4280 main ()
4282 _ascii (); _ebcdic ();
4284 return 0;
4286 _ACEOF
4287 rm -f conftest.$ac_objext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest.$ac_objext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 (eval $ac_try) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4310 ac_cv_c_bigendian=yes
4312 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4313 if test "$ac_cv_c_bigendian" = unknown; then
4314 ac_cv_c_bigendian=no
4315 else
4316 # finding both strings is unlikely to happen, but who knows?
4317 ac_cv_c_bigendian=unknown
4320 else
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4326 else
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h. */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4334 main ()
4336 /* Are we little or big endian? From Harbison&Steele. */
4337 union
4339 long l;
4340 char c[sizeof (long)];
4341 } u;
4342 u.l = 1;
4343 exit (u.c[sizeof (long) - 1] == 1);
4345 _ACEOF
4346 rm -f conftest$ac_exeext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4348 (eval $ac_link) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 ac_cv_c_bigendian=no
4358 else
4359 echo "$as_me: program exited with status $ac_status" >&5
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 ( exit $ac_status )
4364 ac_cv_c_bigendian=yes
4366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4371 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4372 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4373 case $ac_cv_c_bigendian in
4374 yes)
4376 cat >>confdefs.h <<\_ACEOF
4377 #define WORDS_BIGENDIAN 1
4378 _ACEOF
4383 { { echo "$as_me:$LINENO: error: unknown endianness
4384 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4385 echo "$as_me: error: unknown endianness
4386 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4387 { (exit 1); exit 1; }; } ;;
4388 esac
4391 te_file=generic
4393 # Makefile target for installing gas in $(tooldir)/bin.
4394 install_tooldir=install-exec-tooldir
4396 canon_targets=""
4397 all_targets=no
4398 if test -n "$enable_targets" ; then
4399 for t in `echo $enable_targets | sed 's/,/ /g'`; do
4400 if test $t = "all"; then
4401 all_targets=yes
4402 continue
4404 result=`$ac_config_sub $t 2>/dev/null`
4405 if test -n "$result" ; then
4406 canon_targets="$canon_targets $result"
4407 # else
4408 # # Permit "all", etc. We don't support it yet though.
4409 # canon_targets="$canon_targets $t"
4411 done
4412 _gas_uniq_list="$canon_targets"
4413 _gas_uniq_newlist=""
4414 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4415 case $_gas_uniq_i in
4416 _gas_uniq_dummy) ;;
4417 *) case " $_gas_uniq_newlist " in
4418 *" $_gas_uniq_i "*) ;;
4419 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4420 esac ;;
4421 esac
4422 done
4423 canon_targets=$_gas_uniq_newlist
4427 emulations=""
4429 for this_target in $target $canon_targets ; do
4431 targ=${this_target}
4432 . ${srcdir}/configure.tgt
4434 case ${target_cpu} in
4435 crisv32)
4437 cat >>confdefs.h <<_ACEOF
4438 #define DEFAULT_CRIS_ARCH $arch
4439 _ACEOF
4442 esac
4444 if test ${this_target} = $target ; then
4445 target_cpu_type=${cpu_type}
4446 elif test ${target_cpu_type} != ${cpu_type} ; then
4447 continue
4450 generic_target=${cpu_type}-${target_vendor}-${target_os}
4451 case ${generic_target} in
4452 i386-*-sco3.2v5*)
4453 if test ${this_target} = $target; then
4455 cat >>confdefs.h <<\_ACEOF
4456 #define SCO_ELF 1
4457 _ACEOF
4462 i386-*-msdosdjgpp* \
4463 | i386-*-go32* \
4464 | i386-go32-rtems*)
4466 cat >>confdefs.h <<\_ACEOF
4467 #define STRICTCOFF 1
4468 _ACEOF
4472 i860-*-*)
4473 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4474 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
4477 mips-sony-bsd*)
4479 mips-*-bsd*)
4480 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
4481 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
4482 { (exit 1); exit 1; }; }
4485 ppc-*-aix5.*)
4487 cat >>confdefs.h <<\_ACEOF
4488 #define AIX_WEAK_SUPPORT 1
4489 _ACEOF
4492 ppc-*-linux-*)
4493 case "$endian" in
4494 big) ;;
4495 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
4496 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4497 { (exit 1); exit 1; }; } ;;
4498 esac
4500 ppc-*-solaris*)
4501 if test ${this_target} = $target; then
4503 cat >>confdefs.h <<\_ACEOF
4504 #define TARGET_SOLARIS_COMMENT 1
4505 _ACEOF
4508 if test x${endian} = xbig; then
4509 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
4510 echo "$as_me: error: Solaris must be configured little endian" >&2;}
4511 { (exit 1); exit 1; }; }
4515 sh*-*-symbianelf*)
4517 cat >>confdefs.h <<\_ACEOF
4518 #define TARGET_SYMBIAN 1
4519 _ACEOF
4522 esac
4524 if test ${this_target} = $target ; then
4525 endian_def=
4526 if test x${endian} = xbig; then
4527 endian_def=1
4528 elif test x${endian} = xlittle; then
4529 endian_def=0
4531 if test x${endian_def} != x; then
4533 cat >>confdefs.h <<_ACEOF
4534 #define TARGET_BYTES_BIG_ENDIAN $endian_def
4535 _ACEOF
4540 # Other random stuff.
4542 case ${cpu_type} in
4543 mips)
4544 # Set mips_cpu to the name of the default CPU.
4545 case ${target_cpu} in
4546 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4547 mips_cpu=from-abi
4549 mipsisa32 | mipsisa32el)
4550 mips_cpu=mips32
4552 mipsisa32r2 | mipsisa32r2el)
4553 mips_cpu=mips32r2
4555 mipsisa64 | mipsisa64el)
4556 mips_cpu=mips64
4558 mipsisa64r2 | mipsisa64r2el)
4559 mips_cpu=mips64r2
4561 mipstx39 | mipstx39el)
4562 mips_cpu=r3900
4564 mips64vr | mips64vrel)
4565 mips_cpu=vr4100
4567 mipsisa32r2* | mipsisa64r2*)
4568 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4570 mips64* | mipsisa64* | mipsisa32*)
4571 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4574 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4575 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4576 { (exit 1); exit 1; }; }
4578 esac
4579 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4580 # binaries. It's a GNU extension that some OSes don't understand.
4581 # The value only matters on ELF targets.
4582 case ${target} in
4583 *-*-irix*)
4584 use_e_mips_abi_o32=0
4587 use_e_mips_abi_o32=1
4589 esac
4590 # Decide whether to generate 32-bit or 64-bit code by default.
4591 # Used to resolve -march=from-abi when an embedded ABI is selected.
4592 case ${target} in
4593 mips64*-*-* | mipsisa64*-*-*)
4594 mips_default_64bit=1
4597 mips_default_64bit=0
4599 esac
4600 # Decide which ABI to target by default.
4601 case ${target} in
4602 mips64*-linux* | mips-sgi-irix6*)
4603 mips_default_abi=N32_ABI
4605 mips*-linux*)
4606 mips_default_abi=O32_ABI
4608 mips64*-openbsd*)
4609 mips_default_abi=N64_ABI
4612 mips_default_abi=NO_ABI
4614 esac
4616 cat >>confdefs.h <<_ACEOF
4617 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
4618 _ACEOF
4621 cat >>confdefs.h <<_ACEOF
4622 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
4623 _ACEOF
4626 cat >>confdefs.h <<_ACEOF
4627 #define MIPS_DEFAULT_64BIT $mips_default_64bit
4628 _ACEOF
4631 cat >>confdefs.h <<_ACEOF
4632 #define MIPS_DEFAULT_ABI $mips_default_abi
4633 _ACEOF
4636 esac
4638 # Do we need the opcodes library?
4639 case ${cpu_type} in
4640 vax | i386 | tic30)
4644 need_opcodes=yes
4646 case "${enable_shared}" in
4647 yes) shared_opcodes=true ;;
4648 *opcodes*) shared_opcodes=true ;;
4649 *) shared_opcodes=false ;;
4650 esac
4651 if test "${shared_opcodes}" = "true"; then
4652 # A shared libopcodes must be linked against libbfd.
4653 need_bfd=yes
4656 esac
4658 # Any other special object files needed ?
4659 case ${cpu_type} in
4660 fr30 | ip2k | iq2000 | m32r | openrisc)
4661 using_cgen=yes
4664 frv)
4665 using_cgen=yes
4667 m68k)
4668 case ${extra_objects} in
4669 *m68k-parse.o*) ;;
4670 *) extra_objects="$extra_objects m68k-parse.o" ;;
4671 esac
4674 mips)
4675 echo ${extra_objects} | grep -s "itbl-parse.o"
4676 if test $? -ne 0 ; then
4677 extra_objects="$extra_objects itbl-parse.o"
4680 echo ${extra_objects} | grep -s "itbl-lex.o"
4681 if test $? -ne 0 ; then
4682 extra_objects="$extra_objects itbl-lex.o"
4685 echo ${extra_objects} | grep -s "itbl-ops.o"
4686 if test $? -ne 0 ; then
4687 extra_objects="$extra_objects itbl-ops.o"
4691 ms1)
4692 using_cgen=yes
4695 i386 | s390 | sparc)
4696 if test $this_target = $target ; then
4698 cat >>confdefs.h <<_ACEOF
4699 #define DEFAULT_ARCH "${arch}"
4700 _ACEOF
4705 xstormy16)
4706 using_cgen=yes
4709 xtensa)
4710 echo ${extra_objects} | grep -s "xtensa-relax.o"
4711 if test $? -ne 0 ; then
4712 extra_objects="$extra_objects xtensa-relax.o"
4718 esac
4720 if test $using_cgen = yes ; then
4721 case "x${extra_objects}" in
4722 *cgen.o*) ;;
4723 *) extra_objects="$extra_objects cgen.o" ;;
4724 esac
4727 # See if we really can support this configuration with the emulation code.
4729 if test $this_target = $target ; then
4730 primary_bfd_gas=$bfd_gas
4731 obj_format=$fmt
4732 te_file=$em
4734 if test $bfd_gas = no ; then
4735 # Can't support other configurations this way.
4736 break
4738 elif test $bfd_gas = no ; then
4739 # Can't support this configuration.
4740 break
4743 # From target name and format, produce a list of supported emulations.
4745 case ${generic_target}-${fmt} in
4746 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4747 mips*-*-linux*-*) case "$endian" in
4748 big) emulation="mipsbelf mipslelf mipself" ;;
4749 *) emulation="mipslelf mipsbelf mipself" ;;
4750 esac ;;
4751 mips-*-lnews*-ecoff) ;;
4752 mips-*-*-ecoff) case "$endian" in
4753 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4754 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4755 esac ;;
4756 mips-*-*-elf) case "$endian" in
4757 big) emulation="mipsbelf mipslelf mipself" ;;
4758 *) emulation="mipslelf mipsbelf mipself" ;;
4759 esac ;;
4760 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4761 # i386-pc-pe-coff != i386-pc-coff.
4762 i386-*-pe-coff) ;;
4763 # Uncommenting the next line will turn on support for i386 AOUT
4764 # for the default linux configuration
4765 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4767 i386-*-aout) emulation="i386aout" ;;
4768 i386-*-coff) emulation="i386coff" ;;
4769 i386-*-elf) emulation="i386elf" ;;
4771 # Always all formats. The first stated emulation becomes the default.
4772 cris-*-*aout*) emulation="crisaout criself" ;;
4773 cris-*-*) emulation="criself crisaout" ;;
4774 esac
4776 emulations="$emulations $emulation"
4778 done
4780 # Turn on all targets if possible
4781 if test ${all_targets} = "yes"; then
4782 case ${target_cpu_type} in
4783 i386)
4784 case ${obj_format} in
4785 aout)
4786 emulations="$emulations i386coff i386elf"
4788 coff)
4789 emulations="$emulations i386aout i386elf"
4791 elf)
4792 emulations="$emulations i386aout i386coff"
4794 esac
4796 esac
4799 # Assign floating point type. Most processors with FP support
4800 # IEEE FP. On those that don't support FP at all, usually IEEE
4801 # is emulated.
4802 case ${target_cpu} in
4803 vax | tahoe ) atof=${target_cpu} ;;
4804 pdp11) atof=vax ;;
4805 *) atof=ieee ;;
4806 esac
4808 case "${obj_format}" in
4809 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4810 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4811 { (exit 1); exit 1; }; } ;;
4812 esac
4814 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4815 cgen_cpu_prefix=""
4816 if test $using_cgen = yes ; then
4817 case ${target_cpu} in
4818 *) cgen_cpu_prefix=${target_cpu} ;;
4819 esac
4822 cat >>confdefs.h <<\_ACEOF
4823 #define USING_CGEN 1
4824 _ACEOF
4829 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
4830 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4831 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4832 { (exit 1); exit 1; }; }
4835 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
4836 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4837 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4838 { (exit 1); exit 1; }; }
4841 case ${user_bfd_gas}-${primary_bfd_gas} in
4842 yes-yes | no-no)
4843 # We didn't override user's choice.
4845 no-yes)
4846 { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4847 echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
4849 no-preferred)
4850 primary_bfd_gas=no
4852 *-preferred)
4853 primary_bfd_gas=yes
4855 yes-*)
4856 primary_bfd_gas=yes
4859 # User specified nothing.
4861 esac
4863 # Some COFF configurations want these random other flags set.
4864 case ${obj_format} in
4865 coff)
4866 case ${target_cpu_type} in
4867 i386)
4868 cat >>confdefs.h <<\_ACEOF
4869 #define I386COFF 1
4870 _ACEOF
4872 m68k)
4873 cat >>confdefs.h <<\_ACEOF
4874 #define M68KCOFF 1
4875 _ACEOF
4877 m88k)
4878 cat >>confdefs.h <<\_ACEOF
4879 #define M88KCOFF 1
4880 _ACEOF
4882 esac
4884 esac
4886 # Getting this done right is going to be a bitch. Each configuration specified
4887 # with --enable-targets=... should be checked for environment, format, cpu, and
4888 # bfd_gas setting.
4890 # For each configuration, the necessary object file support code must be linked
4891 # in. This might be only one, it might be up to four. The necessary emulation
4892 # code needs to be provided, too.
4894 # And then there's "--enable-targets=all"....
4896 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4898 formats="${obj_format}"
4899 emfiles=""
4900 EMULATIONS=""
4901 _gas_uniq_list="$emulations"
4902 _gas_uniq_newlist=""
4903 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4904 case $_gas_uniq_i in
4905 _gas_uniq_dummy) ;;
4906 *) case " $_gas_uniq_newlist " in
4907 *" $_gas_uniq_i "*) ;;
4908 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4909 esac ;;
4910 esac
4911 done
4912 emulations=$_gas_uniq_newlist
4914 for em in . $emulations ; do
4915 case $em in
4916 .) continue ;;
4917 mipsbelf | mipslelf | mipself)
4918 fmt=elf file=mipself ;;
4919 mipsbecoff | mipslecoff | mipsecoff)
4920 fmt=ecoff file=mipsecoff ;;
4921 *coff)
4922 fmt=coff file=$em ;;
4923 *aout)
4924 fmt=aout file=$em ;;
4925 *elf)
4926 fmt=elf file=$em ;;
4927 esac
4928 formats="$formats $fmt"
4929 emfiles="$emfiles e-$file.o"
4930 EMULATIONS="$EMULATIONS &$em,"
4931 done
4932 _gas_uniq_list="$formats"
4933 _gas_uniq_newlist=""
4934 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4935 case $_gas_uniq_i in
4936 _gas_uniq_dummy) ;;
4937 *) case " $_gas_uniq_newlist " in
4938 *" $_gas_uniq_i "*) ;;
4939 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4940 esac ;;
4941 esac
4942 done
4943 formats=$_gas_uniq_newlist
4945 _gas_uniq_list="$emfiles"
4946 _gas_uniq_newlist=""
4947 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4948 case $_gas_uniq_i in
4949 _gas_uniq_dummy) ;;
4950 *) case " $_gas_uniq_newlist " in
4951 *" $_gas_uniq_i "*) ;;
4952 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4953 esac ;;
4954 esac
4955 done
4956 emfiles=$_gas_uniq_newlist
4958 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4959 for fmt in $formats ; do
4960 case $fmt in
4961 aout)
4962 cat >>confdefs.h <<\_ACEOF
4963 #define OBJ_MAYBE_AOUT 1
4964 _ACEOF
4966 bout)
4967 cat >>confdefs.h <<\_ACEOF
4968 #define OBJ_MAYBE_BOUT 1
4969 _ACEOF
4971 coff)
4972 cat >>confdefs.h <<\_ACEOF
4973 #define OBJ_MAYBE_COFF 1
4974 _ACEOF
4976 ecoff)
4977 cat >>confdefs.h <<\_ACEOF
4978 #define OBJ_MAYBE_ECOFF 1
4979 _ACEOF
4981 elf)
4982 cat >>confdefs.h <<\_ACEOF
4983 #define OBJ_MAYBE_ELF 1
4984 _ACEOF
4986 generic)
4987 cat >>confdefs.h <<\_ACEOF
4988 #define OBJ_MAYBE_GENERIC 1
4989 _ACEOF
4991 hp300)
4992 cat >>confdefs.h <<\_ACEOF
4993 #define OBJ_MAYBE_HP300 1
4994 _ACEOF
4996 ieee)
4997 cat >>confdefs.h <<\_ACEOF
4998 #define OBJ_MAYBE_IEEE 1
4999 _ACEOF
5001 som)
5002 cat >>confdefs.h <<\_ACEOF
5003 #define OBJ_MAYBE_SOM 1
5004 _ACEOF
5006 esac
5007 extra_objects="$extra_objects obj-$fmt.o"
5008 done
5009 obj_format=multi
5011 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
5012 DEFAULT_EMULATION=`set . $emulations ; echo $2`
5013 # e-mips* has more than one emulation per file, e-i386* has just one at the
5014 # moment. If only one emulation is specified, then don't define
5015 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
5016 case "${obj_format}${emfiles}" in
5017 multi* | *mips*)
5018 extra_objects="$extra_objects $emfiles"
5020 cat >>confdefs.h <<\_ACEOF
5021 #define USE_EMULATIONS 1
5022 _ACEOF
5024 esac
5028 cat >>confdefs.h <<_ACEOF
5029 #define EMULATIONS $EMULATIONS
5030 _ACEOF
5033 cat >>confdefs.h <<_ACEOF
5034 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
5035 _ACEOF
5038 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
5039 yes-*-coff) need_bfd=yes ;;
5040 no-*-coff) need_bfd=yes
5042 cat >>confdefs.h <<\_ACEOF
5043 #define MANY_SEGMENTS 1
5044 _ACEOF
5046 esac
5048 reject_dev_configs=yes
5050 case ${reject_dev_configs}-${dev} in
5051 yes-yes) # Oops.
5052 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
5053 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
5054 { (exit 1); exit 1; }; }
5056 esac
5064 case "${primary_bfd_gas}" in
5065 yes)
5066 cat >>confdefs.h <<\_ACEOF
5067 #define BFD_ASSEMBLER 1
5068 _ACEOF
5070 need_bfd=yes ;;
5071 esac
5073 # do we need the opcodes library?
5074 case "${need_opcodes}" in
5075 yes)
5076 OPCODES_LIB=../opcodes/libopcodes.la
5078 esac
5080 case "${need_bfd}" in
5081 yes)
5082 BFDLIB=../bfd/libbfd.la
5083 BFDVER_H=../bfd/bfdver.h
5084 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
5086 esac
5095 cat >>confdefs.h <<_ACEOF
5096 #define TARGET_ALIAS "${target_alias}"
5097 _ACEOF
5100 cat >>confdefs.h <<_ACEOF
5101 #define TARGET_CANONICAL "${target}"
5102 _ACEOF
5105 cat >>confdefs.h <<_ACEOF
5106 #define TARGET_CPU "${target_cpu}"
5107 _ACEOF
5110 cat >>confdefs.h <<_ACEOF
5111 #define TARGET_VENDOR "${target_vendor}"
5112 _ACEOF
5115 cat >>confdefs.h <<_ACEOF
5116 #define TARGET_OS "${target_os}"
5117 _ACEOF
5120 ac_ext=c
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125 if test -n "$ac_tool_prefix"; then
5126 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5127 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5128 echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5130 if test "${ac_cv_prog_CC+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133 if test -n "$CC"; then
5134 ac_cv_prog_CC="$CC" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5147 done
5148 done
5152 CC=$ac_cv_prog_CC
5153 if test -n "$CC"; then
5154 echo "$as_me:$LINENO: result: $CC" >&5
5155 echo "${ECHO_T}$CC" >&6
5156 else
5157 echo "$as_me:$LINENO: result: no" >&5
5158 echo "${ECHO_T}no" >&6
5162 if test -z "$ac_cv_prog_CC"; then
5163 ac_ct_CC=$CC
5164 # Extract the first word of "gcc", so it can be a program name with args.
5165 set dummy gcc; ac_word=$2
5166 echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171 if test -n "$ac_ct_CC"; then
5172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_ac_ct_CC="gcc"
5182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5185 done
5186 done
5190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5191 if test -n "$ac_ct_CC"; then
5192 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5193 echo "${ECHO_T}$ac_ct_CC" >&6
5194 else
5195 echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6
5199 CC=$ac_ct_CC
5200 else
5201 CC="$ac_cv_prog_CC"
5204 if test -z "$CC"; then
5205 if test -n "$ac_tool_prefix"; then
5206 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5207 set dummy ${ac_tool_prefix}cc; ac_word=$2
5208 echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5210 if test "${ac_cv_prog_CC+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 if test -n "$CC"; then
5214 ac_cv_prog_CC="$CC" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5223 ac_cv_prog_CC="${ac_tool_prefix}cc"
5224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5227 done
5228 done
5232 CC=$ac_cv_prog_CC
5233 if test -n "$CC"; then
5234 echo "$as_me:$LINENO: result: $CC" >&5
5235 echo "${ECHO_T}$CC" >&6
5236 else
5237 echo "$as_me:$LINENO: result: no" >&5
5238 echo "${ECHO_T}no" >&6
5242 if test -z "$ac_cv_prog_CC"; then
5243 ac_ct_CC=$CC
5244 # Extract the first word of "cc", so it can be a program name with args.
5245 set dummy cc; ac_word=$2
5246 echo "$as_me:$LINENO: checking for $ac_word" >&5
5247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5248 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251 if test -n "$ac_ct_CC"; then
5252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_prog_ac_ct_CC="cc"
5262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5265 done
5266 done
5270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5271 if test -n "$ac_ct_CC"; then
5272 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5273 echo "${ECHO_T}$ac_ct_CC" >&6
5274 else
5275 echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6
5279 CC=$ac_ct_CC
5280 else
5281 CC="$ac_cv_prog_CC"
5285 if test -z "$CC"; then
5286 # Extract the first word of "cc", so it can be a program name with args.
5287 set dummy cc; ac_word=$2
5288 echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290 if test "${ac_cv_prog_CC+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 if test -n "$CC"; then
5294 ac_cv_prog_CC="$CC" # Let the user override the test.
5295 else
5296 ac_prog_rejected=no
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5305 ac_prog_rejected=yes
5306 continue
5308 ac_cv_prog_CC="cc"
5309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5312 done
5313 done
5315 if test $ac_prog_rejected = yes; then
5316 # We found a bogon in the path, so make sure we never use it.
5317 set dummy $ac_cv_prog_CC
5318 shift
5319 if test $# != 0; then
5320 # We chose a different compiler from the bogus one.
5321 # However, it has the same basename, so the bogon will be chosen
5322 # first if we set CC to just the basename; use the full file name.
5323 shift
5324 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5329 CC=$ac_cv_prog_CC
5330 if test -n "$CC"; then
5331 echo "$as_me:$LINENO: result: $CC" >&5
5332 echo "${ECHO_T}$CC" >&6
5333 else
5334 echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6
5339 if test -z "$CC"; then
5340 if test -n "$ac_tool_prefix"; then
5341 for ac_prog in cl
5343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5345 echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347 if test "${ac_cv_prog_CC+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350 if test -n "$CC"; then
5351 ac_cv_prog_CC="$CC" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5364 done
5365 done
5369 CC=$ac_cv_prog_CC
5370 if test -n "$CC"; then
5371 echo "$as_me:$LINENO: result: $CC" >&5
5372 echo "${ECHO_T}$CC" >&6
5373 else
5374 echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5378 test -n "$CC" && break
5379 done
5381 if test -z "$CC"; then
5382 ac_ct_CC=$CC
5383 for ac_prog in cl
5385 # Extract the first word of "$ac_prog", so it can be a program name with args.
5386 set dummy $ac_prog; ac_word=$2
5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392 if test -n "$ac_ct_CC"; then
5393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_ac_ct_CC="$ac_prog"
5403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5406 done
5407 done
5411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5412 if test -n "$ac_ct_CC"; then
5413 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5414 echo "${ECHO_T}$ac_ct_CC" >&6
5415 else
5416 echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6
5420 test -n "$ac_ct_CC" && break
5421 done
5423 CC=$ac_ct_CC
5429 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5430 See \`config.log' for more details." >&5
5431 echo "$as_me: error: no acceptable C compiler found in \$PATH
5432 See \`config.log' for more details." >&2;}
5433 { (exit 1); exit 1; }; }
5435 # Provide some information about the compiler.
5436 echo "$as_me:$LINENO:" \
5437 "checking for C compiler version" >&5
5438 ac_compiler=`set X $ac_compile; echo $2`
5439 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5440 (eval $ac_compiler --version </dev/null >&5) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }
5444 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5445 (eval $ac_compiler -v </dev/null >&5) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }
5449 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5450 (eval $ac_compiler -V </dev/null >&5) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }
5455 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5456 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5457 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h. */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5468 main ()
5470 #ifndef __GNUC__
5471 choke me
5472 #endif
5475 return 0;
5477 _ACEOF
5478 rm -f conftest.$ac_objext
5479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5480 (eval $ac_compile) 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } &&
5487 { ac_try='test -z "$ac_c_werror_flag"
5488 || test ! -s conftest.err'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 (eval $ac_try) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; } &&
5494 { ac_try='test -s conftest.$ac_objext'
5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 (eval $ac_try) 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; }; then
5500 ac_compiler_gnu=yes
5501 else
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 ac_compiler_gnu=no
5507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5508 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5511 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5512 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5513 GCC=`test $ac_compiler_gnu = yes && echo yes`
5514 ac_test_CFLAGS=${CFLAGS+set}
5515 ac_save_CFLAGS=$CFLAGS
5516 CFLAGS="-g"
5517 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5518 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5519 if test "${ac_cv_prog_cc_g+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522 cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h. */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5530 main ()
5534 return 0;
5536 _ACEOF
5537 rm -f conftest.$ac_objext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539 (eval $ac_compile) 2>conftest.er1
5540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -z "$ac_c_werror_flag"
5547 || test ! -s conftest.err'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 (eval $ac_try) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; } &&
5553 { ac_try='test -s conftest.$ac_objext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 ac_cv_prog_cc_g=yes
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 ac_cv_prog_cc_g=no
5566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5568 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5569 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5570 if test "$ac_test_CFLAGS" = set; then
5571 CFLAGS=$ac_save_CFLAGS
5572 elif test $ac_cv_prog_cc_g = yes; then
5573 if test "$GCC" = yes; then
5574 CFLAGS="-g -O2"
5575 else
5576 CFLAGS="-g"
5578 else
5579 if test "$GCC" = yes; then
5580 CFLAGS="-O2"
5581 else
5582 CFLAGS=
5585 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5586 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5587 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590 ac_cv_prog_cc_stdc=no
5591 ac_save_CC=$CC
5592 cat >conftest.$ac_ext <<_ACEOF
5593 /* confdefs.h. */
5594 _ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5598 #include <stdarg.h>
5599 #include <stdio.h>
5600 #include <sys/types.h>
5601 #include <sys/stat.h>
5602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5603 struct buf { int x; };
5604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5605 static char *e (p, i)
5606 char **p;
5607 int i;
5609 return p[i];
5611 static char *f (char * (*g) (char **, int), char **p, ...)
5613 char *s;
5614 va_list v;
5615 va_start (v,p);
5616 s = g (p, va_arg (v,int));
5617 va_end (v);
5618 return s;
5621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5622 function prototypes and stuff, but not '\xHH' hex character constants.
5623 These don't provoke an error unfortunately, instead are silently treated
5624 as 'x'. The following induces an error, until -std1 is added to get
5625 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5626 array size at least. It's necessary to write '\x00'==0 to get something
5627 that's true only with -std1. */
5628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5630 int test (int i, double x);
5631 struct s1 {int (*f) (int a);};
5632 struct s2 {int (*f) (double a);};
5633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5634 int argc;
5635 char **argv;
5637 main ()
5639 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5641 return 0;
5643 _ACEOF
5644 # Don't try gcc -ansi; that turns off useful extensions and
5645 # breaks some systems' header files.
5646 # AIX -qlanglvl=ansi
5647 # Ultrix and OSF/1 -std1
5648 # HP-UX 10.20 and later -Ae
5649 # HP-UX older versions -Aa -D_HPUX_SOURCE
5650 # SVR4 -Xc -D__EXTENSIONS__
5651 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5653 CC="$ac_save_CC $ac_arg"
5654 rm -f conftest.$ac_objext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5656 (eval $ac_compile) 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try='test -z "$ac_c_werror_flag"
5664 || test ! -s conftest.err'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 (eval $ac_try) 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; } &&
5670 { ac_try='test -s conftest.$ac_objext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 ac_cv_prog_cc_stdc=$ac_arg
5677 break
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5683 rm -f conftest.err conftest.$ac_objext
5684 done
5685 rm -f conftest.$ac_ext conftest.$ac_objext
5686 CC=$ac_save_CC
5690 case "x$ac_cv_prog_cc_stdc" in
5691 x|xno)
5692 echo "$as_me:$LINENO: result: none needed" >&5
5693 echo "${ECHO_T}none needed" >&6 ;;
5695 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5696 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5697 CC="$CC $ac_cv_prog_cc_stdc" ;;
5698 esac
5700 # Some people use a C++ compiler to compile C. Since we use `exit',
5701 # in C++ we need to declare it. In case someone uses the same compiler
5702 # for both compiling C and C++ we need to have the C++ compiler decide
5703 # the declaration of exit, since it's the most demanding environment.
5704 cat >conftest.$ac_ext <<_ACEOF
5705 #ifndef __cplusplus
5706 choke me
5707 #endif
5708 _ACEOF
5709 rm -f conftest.$ac_objext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5711 (eval $ac_compile) 2>conftest.er1
5712 ac_status=$?
5713 grep -v '^ *+' conftest.er1 >conftest.err
5714 rm -f conftest.er1
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
5718 { ac_try='test -z "$ac_c_werror_flag"
5719 || test ! -s conftest.err'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 (eval $ac_try) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; } &&
5725 { ac_try='test -s conftest.$ac_objext'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
5731 for ac_declaration in \
5732 '' \
5733 'extern "C" void std::exit (int) throw (); using std::exit;' \
5734 'extern "C" void std::exit (int); using std::exit;' \
5735 'extern "C" void exit (int) throw ();' \
5736 'extern "C" void exit (int);' \
5737 'void exit (int);'
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 $ac_declaration
5746 #include <stdlib.h>
5748 main ()
5750 exit (42);
5752 return 0;
5754 _ACEOF
5755 rm -f conftest.$ac_objext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5757 (eval $ac_compile) 2>conftest.er1
5758 ac_status=$?
5759 grep -v '^ *+' conftest.er1 >conftest.err
5760 rm -f conftest.er1
5761 cat conftest.err >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -z "$ac_c_werror_flag"
5765 || test ! -s conftest.err'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 (eval $ac_try) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; } &&
5771 { ac_try='test -s conftest.$ac_objext'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 (eval $ac_try) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 continue
5784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5785 cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 $ac_declaration
5793 main ()
5795 exit (42);
5797 return 0;
5799 _ACEOF
5800 rm -f conftest.$ac_objext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5802 (eval $ac_compile) 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -z "$ac_c_werror_flag"
5810 || test ! -s conftest.err'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812 (eval $ac_try) 2>&5
5813 ac_status=$?
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; } &&
5816 { ac_try='test -s conftest.$ac_objext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 (eval $ac_try) 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 break
5823 else
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5829 done
5830 rm -f conftest*
5831 if test -n "$ac_declaration"; then
5832 echo '#ifdef __cplusplus' >>confdefs.h
5833 echo $ac_declaration >>confdefs.h
5834 echo '#endif' >>confdefs.h
5837 else
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5843 ac_ext=c
5844 ac_cpp='$CPP $CPPFLAGS'
5845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5850 for ac_prog in 'bison -y' byacc
5852 # Extract the first word of "$ac_prog", so it can be a program name with args.
5853 set dummy $ac_prog; ac_word=$2
5854 echo "$as_me:$LINENO: checking for $ac_word" >&5
5855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5856 if test "${ac_cv_prog_YACC+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859 if test -n "$YACC"; then
5860 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869 ac_cv_prog_YACC="$ac_prog"
5870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5873 done
5874 done
5878 YACC=$ac_cv_prog_YACC
5879 if test -n "$YACC"; then
5880 echo "$as_me:$LINENO: result: $YACC" >&5
5881 echo "${ECHO_T}$YACC" >&6
5882 else
5883 echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6
5887 test -n "$YACC" && break
5888 done
5889 test -n "$YACC" || YACC="yacc"
5891 for ac_prog in flex lex
5893 # Extract the first word of "$ac_prog", so it can be a program name with args.
5894 set dummy $ac_prog; ac_word=$2
5895 echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5897 if test "${ac_cv_prog_LEX+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 if test -n "$LEX"; then
5901 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910 ac_cv_prog_LEX="$ac_prog"
5911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5914 done
5915 done
5919 LEX=$ac_cv_prog_LEX
5920 if test -n "$LEX"; then
5921 echo "$as_me:$LINENO: result: $LEX" >&5
5922 echo "${ECHO_T}$LEX" >&6
5923 else
5924 echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6
5928 test -n "$LEX" && break
5929 done
5930 test -n "$LEX" || LEX=":"
5932 if test -z "$LEXLIB"
5933 then
5934 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5935 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5936 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 else
5939 ac_check_lib_save_LIBS=$LIBS
5940 LIBS="-lfl $LIBS"
5941 cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h. */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5948 /* Override any gcc2 internal prototype to avoid an error. */
5949 #ifdef __cplusplus
5950 extern "C"
5951 #endif
5952 /* We use char because int might match the return type of a gcc2
5953 builtin and then its argument prototype would still apply. */
5954 char yywrap ();
5956 main ()
5958 yywrap ();
5960 return 0;
5962 _ACEOF
5963 rm -f conftest.$ac_objext conftest$ac_exeext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5965 (eval $ac_link) 2>conftest.er1
5966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try='test -z "$ac_c_werror_flag"
5973 || test ! -s conftest.err'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 (eval $ac_try) 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; } &&
5979 { ac_try='test -s conftest$ac_exeext'
5980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 (eval $ac_try) 2>&5
5982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; }; then
5985 ac_cv_lib_fl_yywrap=yes
5986 else
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5990 ac_cv_lib_fl_yywrap=no
5992 rm -f conftest.err conftest.$ac_objext \
5993 conftest$ac_exeext conftest.$ac_ext
5994 LIBS=$ac_check_lib_save_LIBS
5996 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5997 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5998 if test $ac_cv_lib_fl_yywrap = yes; then
5999 LEXLIB="-lfl"
6000 else
6001 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6002 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
6003 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006 ac_check_lib_save_LIBS=$LIBS
6007 LIBS="-ll $LIBS"
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6015 /* Override any gcc2 internal prototype to avoid an error. */
6016 #ifdef __cplusplus
6017 extern "C"
6018 #endif
6019 /* We use char because int might match the return type of a gcc2
6020 builtin and then its argument prototype would still apply. */
6021 char yywrap ();
6023 main ()
6025 yywrap ();
6027 return 0;
6029 _ACEOF
6030 rm -f conftest.$ac_objext conftest$ac_exeext
6031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6032 (eval $ac_link) 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try='test -z "$ac_c_werror_flag"
6040 || test ! -s conftest.err'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; } &&
6046 { ac_try='test -s conftest$ac_exeext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 (eval $ac_try) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 ac_cv_lib_l_yywrap=yes
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6057 ac_cv_lib_l_yywrap=no
6059 rm -f conftest.err conftest.$ac_objext \
6060 conftest$ac_exeext conftest.$ac_ext
6061 LIBS=$ac_check_lib_save_LIBS
6063 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6064 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6065 if test $ac_cv_lib_l_yywrap = yes; then
6066 LEXLIB="-ll"
6073 if test "x$LEX" != "x:"; then
6074 echo "$as_me:$LINENO: checking lex output file root" >&5
6075 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6076 if test "${ac_cv_prog_lex_root+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 # The minimal lex program is just a single line: %%. But some broken lexes
6080 # (Solaris, I think it was) want two %% lines, so accommodate them.
6081 cat >conftest.l <<_ACEOF
6084 _ACEOF
6085 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6086 (eval $LEX conftest.l) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }
6090 if test -f lex.yy.c; then
6091 ac_cv_prog_lex_root=lex.yy
6092 elif test -f lexyy.c; then
6093 ac_cv_prog_lex_root=lexyy
6094 else
6095 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6096 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6097 { (exit 1); exit 1; }; }
6100 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6101 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6102 rm -f conftest.l
6103 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6105 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6106 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6107 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110 # POSIX says lex can declare yytext either as a pointer or an array; the
6111 # default is implementation-dependent. Figure out which it is, since
6112 # not all implementations provide the %pointer and %array declarations.
6113 ac_cv_prog_lex_yytext_pointer=no
6114 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6115 ac_save_LIBS=$LIBS
6116 LIBS="$LIBS $LEXLIB"
6117 cat >conftest.$ac_ext <<_ACEOF
6118 `cat $LEX_OUTPUT_ROOT.c`
6119 _ACEOF
6120 rm -f conftest.$ac_objext conftest$ac_exeext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6122 (eval $ac_link) 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag"
6130 || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try='test -s conftest$ac_exeext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_prog_lex_yytext_pointer=yes
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6148 rm -f conftest.err conftest.$ac_objext \
6149 conftest$ac_exeext conftest.$ac_ext
6150 LIBS=$ac_save_LIBS
6151 rm -f "${LEX_OUTPUT_ROOT}.c"
6154 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6155 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6156 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6158 cat >>confdefs.h <<\_ACEOF
6159 #define YYTEXT_POINTER 1
6160 _ACEOF
6165 if test "$LEX" = :; then
6166 LEX=${am_missing_run}flex
6169 ALL_LINGUAS="fr tr es rw"
6170 if test -n "$ac_tool_prefix"; then
6171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6173 echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6175 if test "${ac_cv_prog_RANLIB+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178 if test -n "$RANLIB"; then
6179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6192 done
6193 done
6197 RANLIB=$ac_cv_prog_RANLIB
6198 if test -n "$RANLIB"; then
6199 echo "$as_me:$LINENO: result: $RANLIB" >&5
6200 echo "${ECHO_T}$RANLIB" >&6
6201 else
6202 echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6
6207 if test -z "$ac_cv_prog_RANLIB"; then
6208 ac_ct_RANLIB=$RANLIB
6209 # Extract the first word of "ranlib", so it can be a program name with args.
6210 set dummy ranlib; ac_word=$2
6211 echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216 if test -n "$ac_ct_RANLIB"; then
6217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6226 ac_cv_prog_ac_ct_RANLIB="ranlib"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6230 done
6231 done
6233 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6237 if test -n "$ac_ct_RANLIB"; then
6238 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6239 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6240 else
6241 echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6
6245 RANLIB=$ac_ct_RANLIB
6246 else
6247 RANLIB="$ac_cv_prog_RANLIB"
6250 ac_ext=c
6251 ac_cpp='$CPP $CPPFLAGS'
6252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6255 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6256 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6257 # On Suns, sometimes $CPP names a directory.
6258 if test -n "$CPP" && test -d "$CPP"; then
6259 CPP=
6261 if test -z "$CPP"; then
6262 if test "${ac_cv_prog_CPP+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 # Double quotes because CPP needs to be expanded
6266 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6268 ac_preproc_ok=false
6269 for ac_c_preproc_warn_flag in '' yes
6271 # Use a header file that comes with gcc, so configuring glibc
6272 # with a fresh cross-compiler works.
6273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6274 # <limits.h> exists even on freestanding compilers.
6275 # On the NeXT, cc -E runs the code through the compiler's parser,
6276 # not just through cpp. "Syntax error" is here to catch this case.
6277 cat >conftest.$ac_ext <<_ACEOF
6278 /* confdefs.h. */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 #ifdef __STDC__
6284 # include <limits.h>
6285 #else
6286 # include <assert.h>
6287 #endif
6288 Syntax error
6289 _ACEOF
6290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6292 ac_status=$?
6293 grep -v '^ *+' conftest.er1 >conftest.err
6294 rm -f conftest.er1
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } >/dev/null; then
6298 if test -s conftest.err; then
6299 ac_cpp_err=$ac_c_preproc_warn_flag
6300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6301 else
6302 ac_cpp_err=
6304 else
6305 ac_cpp_err=yes
6307 if test -z "$ac_cpp_err"; then
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 # Broken: fails on valid input.
6314 continue
6316 rm -f conftest.err conftest.$ac_ext
6318 # OK, works on sane cases. Now check whether non-existent headers
6319 # can be detected and how.
6320 cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h. */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6326 #include <ac_nonexistent.h>
6327 _ACEOF
6328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6330 ac_status=$?
6331 grep -v '^ *+' conftest.er1 >conftest.err
6332 rm -f conftest.er1
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } >/dev/null; then
6336 if test -s conftest.err; then
6337 ac_cpp_err=$ac_c_preproc_warn_flag
6338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6339 else
6340 ac_cpp_err=
6342 else
6343 ac_cpp_err=yes
6345 if test -z "$ac_cpp_err"; then
6346 # Broken: success on invalid input.
6347 continue
6348 else
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 # Passes both tests.
6353 ac_preproc_ok=:
6354 break
6356 rm -f conftest.err conftest.$ac_ext
6358 done
6359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6360 rm -f conftest.err conftest.$ac_ext
6361 if $ac_preproc_ok; then
6362 break
6365 done
6366 ac_cv_prog_CPP=$CPP
6369 CPP=$ac_cv_prog_CPP
6370 else
6371 ac_cv_prog_CPP=$CPP
6373 echo "$as_me:$LINENO: result: $CPP" >&5
6374 echo "${ECHO_T}$CPP" >&6
6375 ac_preproc_ok=false
6376 for ac_c_preproc_warn_flag in '' yes
6378 # Use a header file that comes with gcc, so configuring glibc
6379 # with a fresh cross-compiler works.
6380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6381 # <limits.h> exists even on freestanding compilers.
6382 # On the NeXT, cc -E runs the code through the compiler's parser,
6383 # not just through cpp. "Syntax error" is here to catch this case.
6384 cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h. */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6390 #ifdef __STDC__
6391 # include <limits.h>
6392 #else
6393 # include <assert.h>
6394 #endif
6395 Syntax error
6396 _ACEOF
6397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6399 ac_status=$?
6400 grep -v '^ *+' conftest.er1 >conftest.err
6401 rm -f conftest.er1
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } >/dev/null; then
6405 if test -s conftest.err; then
6406 ac_cpp_err=$ac_c_preproc_warn_flag
6407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6408 else
6409 ac_cpp_err=
6411 else
6412 ac_cpp_err=yes
6414 if test -z "$ac_cpp_err"; then
6416 else
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6420 # Broken: fails on valid input.
6421 continue
6423 rm -f conftest.err conftest.$ac_ext
6425 # OK, works on sane cases. Now check whether non-existent headers
6426 # can be detected and how.
6427 cat >conftest.$ac_ext <<_ACEOF
6428 /* confdefs.h. */
6429 _ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6433 #include <ac_nonexistent.h>
6434 _ACEOF
6435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } >/dev/null; then
6443 if test -s conftest.err; then
6444 ac_cpp_err=$ac_c_preproc_warn_flag
6445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6446 else
6447 ac_cpp_err=
6449 else
6450 ac_cpp_err=yes
6452 if test -z "$ac_cpp_err"; then
6453 # Broken: success on invalid input.
6454 continue
6455 else
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6459 # Passes both tests.
6460 ac_preproc_ok=:
6461 break
6463 rm -f conftest.err conftest.$ac_ext
6465 done
6466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6467 rm -f conftest.err conftest.$ac_ext
6468 if $ac_preproc_ok; then
6470 else
6471 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6472 See \`config.log' for more details." >&5
6473 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6474 See \`config.log' for more details." >&2;}
6475 { (exit 1); exit 1; }; }
6478 ac_ext=c
6479 ac_cpp='$CPP $CPPFLAGS'
6480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6485 echo "$as_me:$LINENO: checking for egrep" >&5
6486 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6487 if test "${ac_cv_prog_egrep+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6491 then ac_cv_prog_egrep='grep -E'
6492 else ac_cv_prog_egrep='egrep'
6495 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6496 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6497 EGREP=$ac_cv_prog_egrep
6500 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6501 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6502 if test "${ac_cv_header_stdc+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 cat >conftest.$ac_ext <<_ACEOF
6506 /* confdefs.h. */
6507 _ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h. */
6511 #include <stdlib.h>
6512 #include <stdarg.h>
6513 #include <string.h>
6514 #include <float.h>
6517 main ()
6521 return 0;
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526 (eval $ac_compile) 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } &&
6533 { ac_try='test -z "$ac_c_werror_flag"
6534 || test ! -s conftest.err'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 (eval $ac_try) 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; } &&
6540 { ac_try='test -s conftest.$ac_objext'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 (eval $ac_try) 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 ac_cv_header_stdc=yes
6547 else
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 ac_cv_header_stdc=no
6553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6555 if test $ac_cv_header_stdc = yes; then
6556 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6557 cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h. */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6563 #include <string.h>
6565 _ACEOF
6566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6567 $EGREP "memchr" >/dev/null 2>&1; then
6569 else
6570 ac_cv_header_stdc=no
6572 rm -f conftest*
6576 if test $ac_cv_header_stdc = yes; then
6577 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h. */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584 #include <stdlib.h>
6586 _ACEOF
6587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6588 $EGREP "free" >/dev/null 2>&1; then
6590 else
6591 ac_cv_header_stdc=no
6593 rm -f conftest*
6597 if test $ac_cv_header_stdc = yes; then
6598 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6599 if test "$cross_compiling" = yes; then
6601 else
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h. */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6608 #include <ctype.h>
6609 #if ((' ' & 0x0FF) == 0x020)
6610 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6611 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6612 #else
6613 # define ISLOWER(c) \
6614 (('a' <= (c) && (c) <= 'i') \
6615 || ('j' <= (c) && (c) <= 'r') \
6616 || ('s' <= (c) && (c) <= 'z'))
6617 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6618 #endif
6620 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6622 main ()
6624 int i;
6625 for (i = 0; i < 256; i++)
6626 if (XOR (islower (i), ISLOWER (i))
6627 || toupper (i) != TOUPPER (i))
6628 exit(2);
6629 exit (0);
6631 _ACEOF
6632 rm -f conftest$ac_exeext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6634 (eval $ac_link) 2>&5
6635 ac_status=$?
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 (eval $ac_try) 2>&5
6640 ac_status=$?
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6644 else
6645 echo "$as_me: program exited with status $ac_status" >&5
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6649 ( exit $ac_status )
6650 ac_cv_header_stdc=no
6652 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6656 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6657 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6658 if test $ac_cv_header_stdc = yes; then
6660 cat >>confdefs.h <<\_ACEOF
6661 #define STDC_HEADERS 1
6662 _ACEOF
6666 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6667 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6668 if test "${ac_cv_c_const+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6679 main ()
6681 /* FIXME: Include the comments suggested by Paul. */
6682 #ifndef __cplusplus
6683 /* Ultrix mips cc rejects this. */
6684 typedef int charset[2];
6685 const charset x;
6686 /* SunOS 4.1.1 cc rejects this. */
6687 char const *const *ccp;
6688 char **p;
6689 /* NEC SVR4.0.2 mips cc rejects this. */
6690 struct point {int x, y;};
6691 static struct point const zero = {0,0};
6692 /* AIX XL C 1.02.0.0 rejects this.
6693 It does not let you subtract one const X* pointer from another in
6694 an arm of an if-expression whose if-part is not a constant
6695 expression */
6696 const char *g = "string";
6697 ccp = &g + (g ? g-g : 0);
6698 /* HPUX 7.0 cc rejects these. */
6699 ++ccp;
6700 p = (char**) ccp;
6701 ccp = (char const *const *) p;
6702 { /* SCO 3.2v4 cc rejects this. */
6703 char *t;
6704 char const *s = 0 ? (char *) 0 : (char const *) 0;
6706 *t++ = 0;
6708 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6709 int x[] = {25, 17};
6710 const int *foo = &x[0];
6711 ++foo;
6713 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6714 typedef const int *iptr;
6715 iptr p = 0;
6716 ++p;
6718 { /* AIX XL C 1.02.0.0 rejects this saying
6719 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6720 struct s { int j; const int *ap[3]; };
6721 struct s *b; b->j = 5;
6723 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6724 const int foo = 10;
6726 #endif
6729 return 0;
6731 _ACEOF
6732 rm -f conftest.$ac_objext
6733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734 (eval $ac_compile) 2>conftest.er1
6735 ac_status=$?
6736 grep -v '^ *+' conftest.er1 >conftest.err
6737 rm -f conftest.er1
6738 cat conftest.err >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } &&
6741 { ac_try='test -z "$ac_c_werror_flag"
6742 || test ! -s conftest.err'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 (eval $ac_try) 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; } &&
6748 { ac_try='test -s conftest.$ac_objext'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 (eval $ac_try) 2>&5
6751 ac_status=$?
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; }; then
6754 ac_cv_c_const=yes
6755 else
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6759 ac_cv_c_const=no
6761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6763 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6764 echo "${ECHO_T}$ac_cv_c_const" >&6
6765 if test $ac_cv_c_const = no; then
6767 cat >>confdefs.h <<\_ACEOF
6768 #define const
6769 _ACEOF
6773 echo "$as_me:$LINENO: checking for inline" >&5
6774 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6775 if test "${ac_cv_c_inline+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 ac_cv_c_inline=no
6779 for ac_kw in inline __inline__ __inline; do
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 #ifndef __cplusplus
6787 typedef int foo_t;
6788 static $ac_kw foo_t static_foo () {return 0; }
6789 $ac_kw foo_t foo () {return 0; }
6790 #endif
6792 _ACEOF
6793 rm -f conftest.$ac_objext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6795 (eval $ac_compile) 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try='test -z "$ac_c_werror_flag"
6803 || test ! -s conftest.err'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; } &&
6809 { ac_try='test -s conftest.$ac_objext'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 (eval $ac_try) 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 ac_cv_c_inline=$ac_kw; break
6816 else
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6822 done
6825 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6826 echo "${ECHO_T}$ac_cv_c_inline" >&6
6829 case $ac_cv_c_inline in
6830 inline | yes) ;;
6832 case $ac_cv_c_inline in
6833 no) ac_val=;;
6834 *) ac_val=$ac_cv_c_inline;;
6835 esac
6836 cat >>confdefs.h <<_ACEOF
6837 #ifndef __cplusplus
6838 #define inline $ac_val
6839 #endif
6840 _ACEOF
6842 esac
6844 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6854 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6855 inttypes.h stdint.h unistd.h
6857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6858 echo "$as_me:$LINENO: checking for $ac_header" >&5
6859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863 cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h. */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6869 $ac_includes_default
6871 #include <$ac_header>
6872 _ACEOF
6873 rm -f conftest.$ac_objext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6875 (eval $ac_compile) 2>conftest.er1
6876 ac_status=$?
6877 grep -v '^ *+' conftest.er1 >conftest.err
6878 rm -f conftest.er1
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try='test -z "$ac_c_werror_flag"
6883 || test ! -s conftest.err'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 (eval $ac_try) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try='test -s conftest.$ac_objext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 eval "$as_ac_Header=yes"
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6900 eval "$as_ac_Header=no"
6902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6907 cat >>confdefs.h <<_ACEOF
6908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6909 _ACEOF
6913 done
6916 echo "$as_me:$LINENO: checking for off_t" >&5
6917 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6918 if test "${ac_cv_type_off_t+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 $ac_includes_default
6929 main ()
6931 if ((off_t *) 0)
6932 return 0;
6933 if (sizeof (off_t))
6934 return 0;
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941 (eval $ac_compile) 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try='test -z "$ac_c_werror_flag"
6949 || test ! -s conftest.err'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 (eval $ac_try) 2>&5
6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; } &&
6955 { ac_try='test -s conftest.$ac_objext'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
6961 ac_cv_type_off_t=yes
6962 else
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 ac_cv_type_off_t=no
6968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6970 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6971 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6972 if test $ac_cv_type_off_t = yes; then
6974 else
6976 cat >>confdefs.h <<_ACEOF
6977 #define off_t long
6978 _ACEOF
6982 echo "$as_me:$LINENO: checking for size_t" >&5
6983 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6984 if test "${ac_cv_type_size_t+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
6995 main ()
6997 if ((size_t *) 0)
6998 return 0;
6999 if (sizeof (size_t))
7000 return 0;
7002 return 0;
7004 _ACEOF
7005 rm -f conftest.$ac_objext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007 (eval $ac_compile) 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try='test -s conftest.$ac_objext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_type_size_t=yes
7028 else
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7032 ac_cv_type_size_t=no
7034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7036 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7037 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7038 if test $ac_cv_type_size_t = yes; then
7040 else
7042 cat >>confdefs.h <<_ACEOF
7043 #define size_t unsigned
7044 _ACEOF
7048 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7049 # for constant arguments. Useless!
7050 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7051 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7052 if test "${ac_cv_working_alloca_h+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h. */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 #include <alloca.h>
7063 main ()
7065 char *p = (char *) alloca (2 * sizeof (int));
7067 return 0;
7069 _ACEOF
7070 rm -f conftest.$ac_objext conftest$ac_exeext
7071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7072 (eval $ac_link) 2>conftest.er1
7073 ac_status=$?
7074 grep -v '^ *+' conftest.er1 >conftest.err
7075 rm -f conftest.er1
7076 cat conftest.err >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } &&
7079 { ac_try='test -z "$ac_c_werror_flag"
7080 || test ! -s conftest.err'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 (eval $ac_try) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; } &&
7086 { ac_try='test -s conftest$ac_exeext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 ac_cv_working_alloca_h=yes
7093 else
7094 echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7097 ac_cv_working_alloca_h=no
7099 rm -f conftest.err conftest.$ac_objext \
7100 conftest$ac_exeext conftest.$ac_ext
7102 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7103 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7104 if test $ac_cv_working_alloca_h = yes; then
7106 cat >>confdefs.h <<\_ACEOF
7107 #define HAVE_ALLOCA_H 1
7108 _ACEOF
7112 echo "$as_me:$LINENO: checking for alloca" >&5
7113 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7114 if test "${ac_cv_func_alloca_works+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h. */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 #ifdef __GNUC__
7124 # define alloca __builtin_alloca
7125 #else
7126 # ifdef _MSC_VER
7127 # include <malloc.h>
7128 # define alloca _alloca
7129 # else
7130 # if HAVE_ALLOCA_H
7131 # include <alloca.h>
7132 # else
7133 # ifdef _AIX
7134 #pragma alloca
7135 # else
7136 # ifndef alloca /* predefined by HP cc +Olibcalls */
7137 char *alloca ();
7138 # endif
7139 # endif
7140 # endif
7141 # endif
7142 #endif
7145 main ()
7147 char *p = (char *) alloca (1);
7149 return 0;
7151 _ACEOF
7152 rm -f conftest.$ac_objext conftest$ac_exeext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7154 (eval $ac_link) 2>conftest.er1
7155 ac_status=$?
7156 grep -v '^ *+' conftest.er1 >conftest.err
7157 rm -f conftest.er1
7158 cat conftest.err >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); } &&
7161 { ac_try='test -z "$ac_c_werror_flag"
7162 || test ! -s conftest.err'
7163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 (eval $ac_try) 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; } &&
7168 { ac_try='test -s conftest$ac_exeext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 (eval $ac_try) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_cv_func_alloca_works=yes
7175 else
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7179 ac_cv_func_alloca_works=no
7181 rm -f conftest.err conftest.$ac_objext \
7182 conftest$ac_exeext conftest.$ac_ext
7184 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7185 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7187 if test $ac_cv_func_alloca_works = yes; then
7189 cat >>confdefs.h <<\_ACEOF
7190 #define HAVE_ALLOCA 1
7191 _ACEOF
7193 else
7194 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7195 # that cause trouble. Some versions do not even contain alloca or
7196 # contain a buggy version. If you still want to use their alloca,
7197 # use ar to extract alloca.o from them instead of compiling alloca.c.
7199 ALLOCA=alloca.$ac_objext
7201 cat >>confdefs.h <<\_ACEOF
7202 #define C_ALLOCA 1
7203 _ACEOF
7206 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7207 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7208 if test "${ac_cv_os_cray+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 #if defined(CRAY) && ! defined(CRAY2)
7218 webecray
7219 #else
7220 wenotbecray
7221 #endif
7223 _ACEOF
7224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7225 $EGREP "webecray" >/dev/null 2>&1; then
7226 ac_cv_os_cray=yes
7227 else
7228 ac_cv_os_cray=no
7230 rm -f conftest*
7233 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7234 echo "${ECHO_T}$ac_cv_os_cray" >&6
7235 if test $ac_cv_os_cray = yes; then
7236 for ac_func in _getb67 GETB67 getb67; do
7237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7238 echo "$as_me:$LINENO: checking for $ac_func" >&5
7239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7240 if eval "test \"\${$as_ac_var+set}\" = set"; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243 cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h. */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7251 #define $ac_func innocuous_$ac_func
7253 /* System header to define __stub macros and hopefully few prototypes,
7254 which can conflict with char $ac_func (); below.
7255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7256 <limits.h> exists even on freestanding compilers. */
7258 #ifdef __STDC__
7259 # include <limits.h>
7260 #else
7261 # include <assert.h>
7262 #endif
7264 #undef $ac_func
7266 /* Override any gcc2 internal prototype to avoid an error. */
7267 #ifdef __cplusplus
7268 extern "C"
7270 #endif
7271 /* We use char because int might match the return type of a gcc2
7272 builtin and then its argument prototype would still apply. */
7273 char $ac_func ();
7274 /* The GNU C library defines this for functions which it implements
7275 to always fail with ENOSYS. Some functions are actually named
7276 something starting with __ and the normal name is an alias. */
7277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7278 choke me
7279 #else
7280 char (*f) () = $ac_func;
7281 #endif
7282 #ifdef __cplusplus
7284 #endif
7287 main ()
7289 return f != $ac_func;
7291 return 0;
7293 _ACEOF
7294 rm -f conftest.$ac_objext conftest$ac_exeext
7295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296 (eval $ac_link) 2>conftest.er1
7297 ac_status=$?
7298 grep -v '^ *+' conftest.er1 >conftest.err
7299 rm -f conftest.er1
7300 cat conftest.err >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } &&
7303 { ac_try='test -z "$ac_c_werror_flag"
7304 || test ! -s conftest.err'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 (eval $ac_try) 2>&5
7307 ac_status=$?
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; } &&
7310 { ac_try='test -s conftest$ac_exeext'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; }; then
7316 eval "$as_ac_var=yes"
7317 else
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7321 eval "$as_ac_var=no"
7323 rm -f conftest.err conftest.$ac_objext \
7324 conftest$ac_exeext conftest.$ac_ext
7326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7328 if test `eval echo '${'$as_ac_var'}'` = yes; then
7330 cat >>confdefs.h <<_ACEOF
7331 #define CRAY_STACKSEG_END $ac_func
7332 _ACEOF
7334 break
7337 done
7340 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7341 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7342 if test "${ac_cv_c_stack_direction+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345 if test "$cross_compiling" = yes; then
7346 ac_cv_c_stack_direction=0
7347 else
7348 cat >conftest.$ac_ext <<_ACEOF
7349 /* confdefs.h. */
7350 _ACEOF
7351 cat confdefs.h >>conftest.$ac_ext
7352 cat >>conftest.$ac_ext <<_ACEOF
7353 /* end confdefs.h. */
7355 find_stack_direction ()
7357 static char *addr = 0;
7358 auto char dummy;
7359 if (addr == 0)
7361 addr = &dummy;
7362 return find_stack_direction ();
7364 else
7365 return (&dummy > addr) ? 1 : -1;
7369 main ()
7371 exit (find_stack_direction () < 0);
7373 _ACEOF
7374 rm -f conftest$ac_exeext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7376 (eval $ac_link) 2>&5
7377 ac_status=$?
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 (eval $ac_try) 2>&5
7382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; }; then
7385 ac_cv_c_stack_direction=1
7386 else
7387 echo "$as_me: program exited with status $ac_status" >&5
7388 echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7391 ( exit $ac_status )
7392 ac_cv_c_stack_direction=-1
7394 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7397 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7398 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7400 cat >>confdefs.h <<_ACEOF
7401 #define STACK_DIRECTION $ac_cv_c_stack_direction
7402 _ACEOF
7409 for ac_header in stdlib.h unistd.h
7411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7413 echo "$as_me:$LINENO: checking for $ac_header" >&5
7414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7420 else
7421 # Is the header compilable?
7422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7424 cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h. */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 $ac_includes_default
7431 #include <$ac_header>
7432 _ACEOF
7433 rm -f conftest.$ac_objext
7434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7435 (eval $ac_compile) 2>conftest.er1
7436 ac_status=$?
7437 grep -v '^ *+' conftest.er1 >conftest.err
7438 rm -f conftest.er1
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } &&
7442 { ac_try='test -z "$ac_c_werror_flag"
7443 || test ! -s conftest.err'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 (eval $ac_try) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; } &&
7449 { ac_try='test -s conftest.$ac_objext'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 (eval $ac_try) 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; }; then
7455 ac_header_compiler=yes
7456 else
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7460 ac_header_compiler=no
7462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7464 echo "${ECHO_T}$ac_header_compiler" >&6
7466 # Is the header present?
7467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7469 cat >conftest.$ac_ext <<_ACEOF
7470 /* confdefs.h. */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 #include <$ac_header>
7476 _ACEOF
7477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } >/dev/null; then
7485 if test -s conftest.err; then
7486 ac_cpp_err=$ac_c_preproc_warn_flag
7487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7488 else
7489 ac_cpp_err=
7491 else
7492 ac_cpp_err=yes
7494 if test -z "$ac_cpp_err"; then
7495 ac_header_preproc=yes
7496 else
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7500 ac_header_preproc=no
7502 rm -f conftest.err conftest.$ac_ext
7503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7504 echo "${ECHO_T}$ac_header_preproc" >&6
7506 # So? What about this header?
7507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7508 yes:no: )
7509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7513 ac_header_preproc=yes
7515 no:yes:* )
7516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7529 cat <<\_ASBOX
7530 ## ------------------------------------------ ##
7531 ## Report this to the AC_PACKAGE_NAME lists. ##
7532 ## ------------------------------------------ ##
7533 _ASBOX
7535 sed "s/^/$as_me: WARNING: /" >&2
7537 esac
7538 echo "$as_me:$LINENO: checking for $ac_header" >&5
7539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543 eval "$as_ac_Header=\$ac_header_preproc"
7545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7550 cat >>confdefs.h <<_ACEOF
7551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7552 _ACEOF
7556 done
7559 for ac_func in getpagesize
7561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7562 echo "$as_me:$LINENO: checking for $ac_func" >&5
7563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7564 if eval "test \"\${$as_ac_var+set}\" = set"; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 else
7567 cat >conftest.$ac_ext <<_ACEOF
7568 /* confdefs.h. */
7569 _ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h. */
7573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7575 #define $ac_func innocuous_$ac_func
7577 /* System header to define __stub macros and hopefully few prototypes,
7578 which can conflict with char $ac_func (); below.
7579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7580 <limits.h> exists even on freestanding compilers. */
7582 #ifdef __STDC__
7583 # include <limits.h>
7584 #else
7585 # include <assert.h>
7586 #endif
7588 #undef $ac_func
7590 /* Override any gcc2 internal prototype to avoid an error. */
7591 #ifdef __cplusplus
7592 extern "C"
7594 #endif
7595 /* We use char because int might match the return type of a gcc2
7596 builtin and then its argument prototype would still apply. */
7597 char $ac_func ();
7598 /* The GNU C library defines this for functions which it implements
7599 to always fail with ENOSYS. Some functions are actually named
7600 something starting with __ and the normal name is an alias. */
7601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7602 choke me
7603 #else
7604 char (*f) () = $ac_func;
7605 #endif
7606 #ifdef __cplusplus
7608 #endif
7611 main ()
7613 return f != $ac_func;
7615 return 0;
7617 _ACEOF
7618 rm -f conftest.$ac_objext conftest$ac_exeext
7619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7620 (eval $ac_link) 2>conftest.er1
7621 ac_status=$?
7622 grep -v '^ *+' conftest.er1 >conftest.err
7623 rm -f conftest.er1
7624 cat conftest.err >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try='test -z "$ac_c_werror_flag"
7628 || test ! -s conftest.err'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; } &&
7634 { ac_try='test -s conftest$ac_exeext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 (eval $ac_try) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 eval "$as_ac_var=yes"
7641 else
7642 echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7645 eval "$as_ac_var=no"
7647 rm -f conftest.err conftest.$ac_objext \
7648 conftest$ac_exeext conftest.$ac_ext
7650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7652 if test `eval echo '${'$as_ac_var'}'` = yes; then
7653 cat >>confdefs.h <<_ACEOF
7654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7655 _ACEOF
7658 done
7660 echo "$as_me:$LINENO: checking for working mmap" >&5
7661 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7662 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665 if test "$cross_compiling" = yes; then
7666 ac_cv_func_mmap_fixed_mapped=no
7667 else
7668 cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h. */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 $ac_includes_default
7675 /* malloc might have been renamed as rpl_malloc. */
7676 #undef malloc
7678 /* Thanks to Mike Haertel and Jim Avera for this test.
7679 Here is a matrix of mmap possibilities:
7680 mmap private not fixed
7681 mmap private fixed at somewhere currently unmapped
7682 mmap private fixed at somewhere already mapped
7683 mmap shared not fixed
7684 mmap shared fixed at somewhere currently unmapped
7685 mmap shared fixed at somewhere already mapped
7686 For private mappings, we should verify that changes cannot be read()
7687 back from the file, nor mmap's back from the file at a different
7688 address. (There have been systems where private was not correctly
7689 implemented like the infamous i386 svr4.0, and systems where the
7690 VM page cache was not coherent with the file system buffer cache
7691 like early versions of FreeBSD and possibly contemporary NetBSD.)
7692 For shared mappings, we should conversely verify that changes get
7693 propagated back to all the places they're supposed to be.
7695 Grep wants private fixed already mapped.
7696 The main things grep needs to know about mmap are:
7697 * does it exist and is it safe to write into the mmap'd area
7698 * how to use it (BSD variants) */
7700 #include <fcntl.h>
7701 #include <sys/mman.h>
7703 #if !STDC_HEADERS && !HAVE_STDLIB_H
7704 char *malloc ();
7705 #endif
7707 /* This mess was copied from the GNU getpagesize.h. */
7708 #if !HAVE_GETPAGESIZE
7709 /* Assume that all systems that can run configure have sys/param.h. */
7710 # if !HAVE_SYS_PARAM_H
7711 # define HAVE_SYS_PARAM_H 1
7712 # endif
7714 # ifdef _SC_PAGESIZE
7715 # define getpagesize() sysconf(_SC_PAGESIZE)
7716 # else /* no _SC_PAGESIZE */
7717 # if HAVE_SYS_PARAM_H
7718 # include <sys/param.h>
7719 # ifdef EXEC_PAGESIZE
7720 # define getpagesize() EXEC_PAGESIZE
7721 # else /* no EXEC_PAGESIZE */
7722 # ifdef NBPG
7723 # define getpagesize() NBPG * CLSIZE
7724 # ifndef CLSIZE
7725 # define CLSIZE 1
7726 # endif /* no CLSIZE */
7727 # else /* no NBPG */
7728 # ifdef NBPC
7729 # define getpagesize() NBPC
7730 # else /* no NBPC */
7731 # ifdef PAGESIZE
7732 # define getpagesize() PAGESIZE
7733 # endif /* PAGESIZE */
7734 # endif /* no NBPC */
7735 # endif /* no NBPG */
7736 # endif /* no EXEC_PAGESIZE */
7737 # else /* no HAVE_SYS_PARAM_H */
7738 # define getpagesize() 8192 /* punt totally */
7739 # endif /* no HAVE_SYS_PARAM_H */
7740 # endif /* no _SC_PAGESIZE */
7742 #endif /* no HAVE_GETPAGESIZE */
7745 main ()
7747 char *data, *data2, *data3;
7748 int i, pagesize;
7749 int fd;
7751 pagesize = getpagesize ();
7753 /* First, make a file with some known garbage in it. */
7754 data = (char *) malloc (pagesize);
7755 if (!data)
7756 exit (1);
7757 for (i = 0; i < pagesize; ++i)
7758 *(data + i) = rand ();
7759 umask (0);
7760 fd = creat ("conftest.mmap", 0600);
7761 if (fd < 0)
7762 exit (1);
7763 if (write (fd, data, pagesize) != pagesize)
7764 exit (1);
7765 close (fd);
7767 /* Next, try to mmap the file at a fixed address which already has
7768 something else allocated at it. If we can, also make sure that
7769 we see the same garbage. */
7770 fd = open ("conftest.mmap", O_RDWR);
7771 if (fd < 0)
7772 exit (1);
7773 data2 = (char *) malloc (2 * pagesize);
7774 if (!data2)
7775 exit (1);
7776 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7777 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7778 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7779 exit (1);
7780 for (i = 0; i < pagesize; ++i)
7781 if (*(data + i) != *(data2 + i))
7782 exit (1);
7784 /* Finally, make sure that changes to the mapped area do not
7785 percolate back to the file as seen by read(). (This is a bug on
7786 some variants of i386 svr4.0.) */
7787 for (i = 0; i < pagesize; ++i)
7788 *(data2 + i) = *(data2 + i) + 1;
7789 data3 = (char *) malloc (pagesize);
7790 if (!data3)
7791 exit (1);
7792 if (read (fd, data3, pagesize) != pagesize)
7793 exit (1);
7794 for (i = 0; i < pagesize; ++i)
7795 if (*(data + i) != *(data3 + i))
7796 exit (1);
7797 close (fd);
7798 exit (0);
7800 _ACEOF
7801 rm -f conftest$ac_exeext
7802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7803 (eval $ac_link) 2>&5
7804 ac_status=$?
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808 (eval $ac_try) 2>&5
7809 ac_status=$?
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; }; then
7812 ac_cv_func_mmap_fixed_mapped=yes
7813 else
7814 echo "$as_me: program exited with status $ac_status" >&5
7815 echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7818 ( exit $ac_status )
7819 ac_cv_func_mmap_fixed_mapped=no
7821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7824 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7825 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7826 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7828 cat >>confdefs.h <<\_ACEOF
7829 #define HAVE_MMAP 1
7830 _ACEOF
7833 rm -f conftest.mmap
7845 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7846 unistd.h values.h sys/param.h
7848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7850 echo "$as_me:$LINENO: checking for $ac_header" >&5
7851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7857 else
7858 # Is the header compilable?
7859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 $ac_includes_default
7868 #include <$ac_header>
7869 _ACEOF
7870 rm -f conftest.$ac_objext
7871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7872 (eval $ac_compile) 2>conftest.er1
7873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try='test -z "$ac_c_werror_flag"
7880 || test ! -s conftest.err'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 (eval $ac_try) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest.$ac_objext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_header_compiler=yes
7893 else
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 ac_header_compiler=no
7899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7901 echo "${ECHO_T}$ac_header_compiler" >&6
7903 # Is the header present?
7904 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h. */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 #include <$ac_header>
7913 _ACEOF
7914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } >/dev/null; then
7922 if test -s conftest.err; then
7923 ac_cpp_err=$ac_c_preproc_warn_flag
7924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7925 else
7926 ac_cpp_err=
7928 else
7929 ac_cpp_err=yes
7931 if test -z "$ac_cpp_err"; then
7932 ac_header_preproc=yes
7933 else
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 ac_header_preproc=no
7939 rm -f conftest.err conftest.$ac_ext
7940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7941 echo "${ECHO_T}$ac_header_preproc" >&6
7943 # So? What about this header?
7944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7945 yes:no: )
7946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7950 ac_header_preproc=yes
7952 no:yes:* )
7953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7966 cat <<\_ASBOX
7967 ## ------------------------------------------ ##
7968 ## Report this to the AC_PACKAGE_NAME lists. ##
7969 ## ------------------------------------------ ##
7970 _ASBOX
7972 sed "s/^/$as_me: WARNING: /" >&2
7974 esac
7975 echo "$as_me:$LINENO: checking for $ac_header" >&5
7976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980 eval "$as_ac_Header=\$ac_header_preproc"
7982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7987 cat >>confdefs.h <<_ACEOF
7988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7989 _ACEOF
7993 done
8005 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
8006 __argz_count __argz_stringify __argz_next
8008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8009 echo "$as_me:$LINENO: checking for $ac_func" >&5
8010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8011 if eval "test \"\${$as_ac_var+set}\" = set"; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8022 #define $ac_func innocuous_$ac_func
8024 /* System header to define __stub macros and hopefully few prototypes,
8025 which can conflict with char $ac_func (); below.
8026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8027 <limits.h> exists even on freestanding compilers. */
8029 #ifdef __STDC__
8030 # include <limits.h>
8031 #else
8032 # include <assert.h>
8033 #endif
8035 #undef $ac_func
8037 /* Override any gcc2 internal prototype to avoid an error. */
8038 #ifdef __cplusplus
8039 extern "C"
8041 #endif
8042 /* We use char because int might match the return type of a gcc2
8043 builtin and then its argument prototype would still apply. */
8044 char $ac_func ();
8045 /* The GNU C library defines this for functions which it implements
8046 to always fail with ENOSYS. Some functions are actually named
8047 something starting with __ and the normal name is an alias. */
8048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8049 choke me
8050 #else
8051 char (*f) () = $ac_func;
8052 #endif
8053 #ifdef __cplusplus
8055 #endif
8058 main ()
8060 return f != $ac_func;
8062 return 0;
8064 _ACEOF
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067 (eval $ac_link) 2>conftest.er1
8068 ac_status=$?
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } &&
8074 { ac_try='test -z "$ac_c_werror_flag"
8075 || test ! -s conftest.err'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 (eval $ac_try) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; } &&
8081 { ac_try='test -s conftest$ac_exeext'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 (eval $ac_try) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 eval "$as_ac_var=yes"
8088 else
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 eval "$as_ac_var=no"
8094 rm -f conftest.err conftest.$ac_objext \
8095 conftest$ac_exeext conftest.$ac_ext
8097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8099 if test `eval echo '${'$as_ac_var'}'` = yes; then
8100 cat >>confdefs.h <<_ACEOF
8101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8102 _ACEOF
8105 done
8108 if test "${ac_cv_func_stpcpy+set}" != "set"; then
8110 for ac_func in stpcpy
8112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8113 echo "$as_me:$LINENO: checking for $ac_func" >&5
8114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8115 if eval "test \"\${$as_ac_var+set}\" = set"; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118 cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h. */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8126 #define $ac_func innocuous_$ac_func
8128 /* System header to define __stub macros and hopefully few prototypes,
8129 which can conflict with char $ac_func (); below.
8130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8131 <limits.h> exists even on freestanding compilers. */
8133 #ifdef __STDC__
8134 # include <limits.h>
8135 #else
8136 # include <assert.h>
8137 #endif
8139 #undef $ac_func
8141 /* Override any gcc2 internal prototype to avoid an error. */
8142 #ifdef __cplusplus
8143 extern "C"
8145 #endif
8146 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8148 char $ac_func ();
8149 /* The GNU C library defines this for functions which it implements
8150 to always fail with ENOSYS. Some functions are actually named
8151 something starting with __ and the normal name is an alias. */
8152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8153 choke me
8154 #else
8155 char (*f) () = $ac_func;
8156 #endif
8157 #ifdef __cplusplus
8159 #endif
8162 main ()
8164 return f != $ac_func;
8166 return 0;
8168 _ACEOF
8169 rm -f conftest.$ac_objext conftest$ac_exeext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8171 (eval $ac_link) 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag"
8179 || test ! -s conftest.err'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 (eval $ac_try) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; } &&
8185 { ac_try='test -s conftest$ac_exeext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 eval "$as_ac_var=yes"
8192 else
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8196 eval "$as_ac_var=no"
8198 rm -f conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
8201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8203 if test `eval echo '${'$as_ac_var'}'` = yes; then
8204 cat >>confdefs.h <<_ACEOF
8205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8206 _ACEOF
8209 done
8212 if test "${ac_cv_func_stpcpy}" = "yes"; then
8214 cat >>confdefs.h <<\_ACEOF
8215 #define HAVE_STPCPY 1
8216 _ACEOF
8220 if test $ac_cv_header_locale_h = yes; then
8221 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8222 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8223 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8226 cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h. */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8232 #include <locale.h>
8234 main ()
8236 return LC_MESSAGES
8238 return 0;
8240 _ACEOF
8241 rm -f conftest.$ac_objext conftest$ac_exeext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8243 (eval $ac_link) 2>conftest.er1
8244 ac_status=$?
8245 grep -v '^ *+' conftest.er1 >conftest.err
8246 rm -f conftest.er1
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
8250 { ac_try='test -z "$ac_c_werror_flag"
8251 || test ! -s conftest.err'
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 (eval $ac_try) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; } &&
8257 { ac_try='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 am_cv_val_LC_MESSAGES=yes
8264 else
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8268 am_cv_val_LC_MESSAGES=no
8270 rm -f conftest.err conftest.$ac_objext \
8271 conftest$ac_exeext conftest.$ac_ext
8273 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8274 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8275 if test $am_cv_val_LC_MESSAGES = yes; then
8277 cat >>confdefs.h <<\_ACEOF
8278 #define HAVE_LC_MESSAGES 1
8279 _ACEOF
8283 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8284 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8285 # Check whether --enable-nls or --disable-nls was given.
8286 if test "${enable_nls+set}" = set; then
8287 enableval="$enable_nls"
8288 USE_NLS=$enableval
8289 else
8290 USE_NLS=yes
8292 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8293 echo "${ECHO_T}$USE_NLS" >&6
8296 USE_INCLUDED_LIBINTL=no
8298 if test "$USE_NLS" = "yes"; then
8299 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8300 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8302 # Check whether --with-included-gettext or --without-included-gettext was given.
8303 if test "${with_included_gettext+set}" = set; then
8304 withval="$with_included_gettext"
8305 nls_cv_force_use_gnu_gettext=$withval
8306 else
8307 nls_cv_force_use_gnu_gettext=no
8309 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8310 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8312 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8313 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8314 nls_cv_header_intl=
8315 nls_cv_header_libgt=
8316 CATOBJEXT=
8318 if test "${ac_cv_header_libintl_h+set}" = set; then
8319 echo "$as_me:$LINENO: checking for libintl.h" >&5
8320 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8321 if test "${ac_cv_header_libintl_h+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8325 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8326 else
8327 # Is the header compilable?
8328 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8329 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8330 cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h. */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 $ac_includes_default
8337 #include <libintl.h>
8338 _ACEOF
8339 rm -f conftest.$ac_objext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8341 (eval $ac_compile) 2>conftest.er1
8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
8348 { ac_try='test -z "$ac_c_werror_flag"
8349 || test ! -s conftest.err'
8350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 (eval $ac_try) 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; } &&
8355 { ac_try='test -s conftest.$ac_objext'
8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 (eval $ac_try) 2>&5
8358 ac_status=$?
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 ac_header_compiler=yes
8362 else
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8366 ac_header_compiler=no
8368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8370 echo "${ECHO_T}$ac_header_compiler" >&6
8372 # Is the header present?
8373 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8374 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8375 cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h. */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8381 #include <libintl.h>
8382 _ACEOF
8383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } >/dev/null; then
8391 if test -s conftest.err; then
8392 ac_cpp_err=$ac_c_preproc_warn_flag
8393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8394 else
8395 ac_cpp_err=
8397 else
8398 ac_cpp_err=yes
8400 if test -z "$ac_cpp_err"; then
8401 ac_header_preproc=yes
8402 else
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8406 ac_header_preproc=no
8408 rm -f conftest.err conftest.$ac_ext
8409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8410 echo "${ECHO_T}$ac_header_preproc" >&6
8412 # So? What about this header?
8413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8414 yes:no: )
8415 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8416 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8417 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8418 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8419 ac_header_preproc=yes
8421 no:yes:* )
8422 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8423 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8424 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8425 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8427 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8429 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8431 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8433 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8435 cat <<\_ASBOX
8436 ## ------------------------------------------ ##
8437 ## Report this to the AC_PACKAGE_NAME lists. ##
8438 ## ------------------------------------------ ##
8439 _ASBOX
8441 sed "s/^/$as_me: WARNING: /" >&2
8443 esac
8444 echo "$as_me:$LINENO: checking for libintl.h" >&5
8445 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8446 if test "${ac_cv_header_libintl_h+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449 ac_cv_header_libintl_h=$ac_header_preproc
8451 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8452 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8455 if test $ac_cv_header_libintl_h = yes; then
8456 echo "$as_me:$LINENO: checking for gettext in libc" >&5
8457 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8458 if test "${gt_cv_func_gettext_libc+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461 cat >conftest.$ac_ext <<_ACEOF
8462 /* confdefs.h. */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 #include <libintl.h>
8469 main ()
8471 return (int) gettext ("")
8473 return 0;
8475 _ACEOF
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8478 (eval $ac_link) 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_c_werror_flag"
8486 || test ! -s conftest.err'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest$ac_exeext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 gt_cv_func_gettext_libc=yes
8499 else
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 gt_cv_func_gettext_libc=no
8505 rm -f conftest.err conftest.$ac_objext \
8506 conftest$ac_exeext conftest.$ac_ext
8508 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8509 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
8511 if test "$gt_cv_func_gettext_libc" != "yes"; then
8512 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8513 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8514 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517 ac_check_lib_save_LIBS=$LIBS
8518 LIBS="-lintl $LIBS"
8519 cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h. */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8526 /* Override any gcc2 internal prototype to avoid an error. */
8527 #ifdef __cplusplus
8528 extern "C"
8529 #endif
8530 /* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8532 char bindtextdomain ();
8534 main ()
8536 bindtextdomain ();
8538 return 0;
8540 _ACEOF
8541 rm -f conftest.$ac_objext conftest$ac_exeext
8542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543 (eval $ac_link) 2>conftest.er1
8544 ac_status=$?
8545 grep -v '^ *+' conftest.er1 >conftest.err
8546 rm -f conftest.er1
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try='test -z "$ac_c_werror_flag"
8551 || test ! -s conftest.err'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; } &&
8557 { ac_try='test -s conftest$ac_exeext'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 (eval $ac_try) 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
8563 ac_cv_lib_intl_bindtextdomain=yes
8564 else
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 ac_cv_lib_intl_bindtextdomain=no
8570 rm -f conftest.err conftest.$ac_objext \
8571 conftest$ac_exeext conftest.$ac_ext
8572 LIBS=$ac_check_lib_save_LIBS
8574 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8575 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8576 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8577 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8578 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8579 if test "${gt_cv_func_gettext_libintl+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582 cat >conftest.$ac_ext <<_ACEOF
8583 /* confdefs.h. */
8584 _ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h. */
8590 main ()
8592 return (int) gettext ("")
8594 return 0;
8596 _ACEOF
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599 (eval $ac_link) 2>conftest.er1
8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag"
8607 || test ! -s conftest.err'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; } &&
8613 { ac_try='test -s conftest$ac_exeext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 gt_cv_func_gettext_libintl=yes
8620 else
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8624 gt_cv_func_gettext_libintl=no
8626 rm -f conftest.err conftest.$ac_objext \
8627 conftest$ac_exeext conftest.$ac_ext
8629 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8630 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
8635 if test "$gt_cv_func_gettext_libc" = "yes" \
8636 || test "$gt_cv_func_gettext_libintl" = "yes"; then
8638 cat >>confdefs.h <<\_ACEOF
8639 #define HAVE_GETTEXT 1
8640 _ACEOF
8642 # Extract the first word of "msgfmt", so it can be a program name with args.
8643 set dummy msgfmt; ac_word=$2
8644 echo "$as_me:$LINENO: checking for $ac_word" >&5
8645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8646 if test "${ac_cv_path_MSGFMT+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649 case "$MSGFMT" in
8651 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8655 for ac_dir in $PATH; do
8656 test -z "$ac_dir" && ac_dir=.
8657 if test -f $ac_dir/$ac_word; then
8658 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8659 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8660 break
8663 done
8664 IFS="$ac_save_ifs"
8665 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8667 esac
8669 MSGFMT="$ac_cv_path_MSGFMT"
8670 if test -n "$MSGFMT"; then
8671 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8672 echo "${ECHO_T}$MSGFMT" >&6
8673 else
8674 echo "$as_me:$LINENO: result: no" >&5
8675 echo "${ECHO_T}no" >&6
8677 if test "$MSGFMT" != "no"; then
8679 for ac_func in dcgettext
8681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8682 echo "$as_me:$LINENO: checking for $ac_func" >&5
8683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8684 if eval "test \"\${$as_ac_var+set}\" = set"; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 else
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8695 #define $ac_func innocuous_$ac_func
8697 /* System header to define __stub macros and hopefully few prototypes,
8698 which can conflict with char $ac_func (); below.
8699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8700 <limits.h> exists even on freestanding compilers. */
8702 #ifdef __STDC__
8703 # include <limits.h>
8704 #else
8705 # include <assert.h>
8706 #endif
8708 #undef $ac_func
8710 /* Override any gcc2 internal prototype to avoid an error. */
8711 #ifdef __cplusplus
8712 extern "C"
8714 #endif
8715 /* We use char because int might match the return type of a gcc2
8716 builtin and then its argument prototype would still apply. */
8717 char $ac_func ();
8718 /* The GNU C library defines this for functions which it implements
8719 to always fail with ENOSYS. Some functions are actually named
8720 something starting with __ and the normal name is an alias. */
8721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8722 choke me
8723 #else
8724 char (*f) () = $ac_func;
8725 #endif
8726 #ifdef __cplusplus
8728 #endif
8731 main ()
8733 return f != $ac_func;
8735 return 0;
8737 _ACEOF
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8740 (eval $ac_link) 2>conftest.er1
8741 ac_status=$?
8742 grep -v '^ *+' conftest.er1 >conftest.err
8743 rm -f conftest.er1
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try='test -z "$ac_c_werror_flag"
8748 || test ! -s conftest.err'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 (eval $ac_try) 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; } &&
8754 { ac_try='test -s conftest$ac_exeext'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 (eval $ac_try) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 eval "$as_ac_var=yes"
8761 else
8762 echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8765 eval "$as_ac_var=no"
8767 rm -f conftest.err conftest.$ac_objext \
8768 conftest$ac_exeext conftest.$ac_ext
8770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8772 if test `eval echo '${'$as_ac_var'}'` = yes; then
8773 cat >>confdefs.h <<_ACEOF
8774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8775 _ACEOF
8778 done
8780 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8781 set dummy gmsgfmt; ac_word=$2
8782 echo "$as_me:$LINENO: checking for $ac_word" >&5
8783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8784 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787 case $GMSGFMT in
8788 [\\/]* | ?:[\\/]*)
8789 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 break 2
8803 done
8804 done
8806 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8808 esac
8810 GMSGFMT=$ac_cv_path_GMSGFMT
8812 if test -n "$GMSGFMT"; then
8813 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8814 echo "${ECHO_T}$GMSGFMT" >&6
8815 else
8816 echo "$as_me:$LINENO: result: no" >&5
8817 echo "${ECHO_T}no" >&6
8820 # Extract the first word of "xgettext", so it can be a program name with args.
8821 set dummy xgettext; ac_word=$2
8822 echo "$as_me:$LINENO: checking for $ac_word" >&5
8823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8824 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827 case "$XGETTEXT" in
8829 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8833 for ac_dir in $PATH; do
8834 test -z "$ac_dir" && ac_dir=.
8835 if test -f $ac_dir/$ac_word; then
8836 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8837 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8838 break
8841 done
8842 IFS="$ac_save_ifs"
8843 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8845 esac
8847 XGETTEXT="$ac_cv_path_XGETTEXT"
8848 if test -n "$XGETTEXT"; then
8849 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8850 echo "${ECHO_T}$XGETTEXT" >&6
8851 else
8852 echo "$as_me:$LINENO: result: no" >&5
8853 echo "${ECHO_T}no" >&6
8856 cat >conftest.$ac_ext <<_ACEOF
8857 /* confdefs.h. */
8858 _ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h. */
8864 main ()
8866 extern int _nl_msg_cat_cntr;
8867 return _nl_msg_cat_cntr
8869 return 0;
8871 _ACEOF
8872 rm -f conftest.$ac_objext conftest$ac_exeext
8873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8874 (eval $ac_link) 2>conftest.er1
8875 ac_status=$?
8876 grep -v '^ *+' conftest.er1 >conftest.err
8877 rm -f conftest.er1
8878 cat conftest.err >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } &&
8881 { ac_try='test -z "$ac_c_werror_flag"
8882 || test ! -s conftest.err'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; } &&
8888 { ac_try='test -s conftest$ac_exeext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 (eval $ac_try) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894 CATOBJEXT=.gmo
8895 DATADIRNAME=share
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8900 CATOBJEXT=.mo
8901 DATADIRNAME=lib
8903 rm -f conftest.err conftest.$ac_objext \
8904 conftest$ac_exeext conftest.$ac_ext
8905 INSTOBJEXT=.mo
8914 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8915 # Neither gettext nor catgets in included in the C library.
8916 # Fall back on GNU gettext library (assuming it is present).
8917 nls_cv_use_gnu_gettext=yes
8921 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8922 INTLOBJS="\$(GETTOBJS)"
8923 # Extract the first word of "msgfmt", so it can be a program name with args.
8924 set dummy msgfmt; ac_word=$2
8925 echo "$as_me:$LINENO: checking for $ac_word" >&5
8926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8927 if test "${ac_cv_path_MSGFMT+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930 case "$MSGFMT" in
8932 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8936 for ac_dir in $PATH; do
8937 test -z "$ac_dir" && ac_dir=.
8938 if test -f $ac_dir/$ac_word; then
8939 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8940 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8941 break
8944 done
8945 IFS="$ac_save_ifs"
8946 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8948 esac
8950 MSGFMT="$ac_cv_path_MSGFMT"
8951 if test -n "$MSGFMT"; then
8952 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8953 echo "${ECHO_T}$MSGFMT" >&6
8954 else
8955 echo "$as_me:$LINENO: result: no" >&5
8956 echo "${ECHO_T}no" >&6
8959 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8960 set dummy gmsgfmt; ac_word=$2
8961 echo "$as_me:$LINENO: checking for $ac_word" >&5
8962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8963 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966 case $GMSGFMT in
8967 [\\/]* | ?:[\\/]*)
8968 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8978 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 break 2
8982 done
8983 done
8985 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8987 esac
8989 GMSGFMT=$ac_cv_path_GMSGFMT
8991 if test -n "$GMSGFMT"; then
8992 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8993 echo "${ECHO_T}$GMSGFMT" >&6
8994 else
8995 echo "$as_me:$LINENO: result: no" >&5
8996 echo "${ECHO_T}no" >&6
8999 # Extract the first word of "xgettext", so it can be a program name with args.
9000 set dummy xgettext; ac_word=$2
9001 echo "$as_me:$LINENO: checking for $ac_word" >&5
9002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9003 if test "${ac_cv_path_XGETTEXT+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006 case "$XGETTEXT" in
9008 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9012 for ac_dir in $PATH; do
9013 test -z "$ac_dir" && ac_dir=.
9014 if test -f $ac_dir/$ac_word; then
9015 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
9016 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9017 break
9020 done
9021 IFS="$ac_save_ifs"
9022 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9024 esac
9026 XGETTEXT="$ac_cv_path_XGETTEXT"
9027 if test -n "$XGETTEXT"; then
9028 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9029 echo "${ECHO_T}$XGETTEXT" >&6
9030 else
9031 echo "$as_me:$LINENO: result: no" >&5
9032 echo "${ECHO_T}no" >&6
9036 USE_INCLUDED_LIBINTL=yes
9037 CATOBJEXT=.gmo
9038 INSTOBJEXT=.mo
9039 DATADIRNAME=share
9040 INTLDEPS='$(top_builddir)/../intl/libintl.a'
9041 INTLLIBS=$INTLDEPS
9042 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
9043 nls_cv_header_intl=libintl.h
9044 nls_cv_header_libgt=libgettext.h
9047 if test "$XGETTEXT" != ":"; then
9048 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9050 else
9051 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
9052 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
9053 XGETTEXT=":"
9057 # We need to process the po/ directory.
9058 POSUB=po
9059 else
9060 DATADIRNAME=share
9061 nls_cv_header_intl=libintl.h
9062 nls_cv_header_libgt=libgettext.h
9065 # If this is used in GNU gettext we have to set USE_NLS to `yes'
9066 # because some of the sources are only built for this goal.
9067 if test "$PACKAGE" = gettext; then
9068 USE_NLS=yes
9069 USE_INCLUDED_LIBINTL=yes
9072 for lang in $ALL_LINGUAS; do
9073 GMOFILES="$GMOFILES $lang.gmo"
9074 POFILES="$POFILES $lang.po"
9075 done
9088 if test "x$CATOBJEXT" != "x"; then
9090 cat >>confdefs.h <<\_ACEOF
9091 #define ENABLE_NLS 1
9092 _ACEOF
9097 if test "x$CATOBJEXT" != "x"; then
9098 if test "x$ALL_LINGUAS" = "x"; then
9099 LINGUAS=
9100 else
9101 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9102 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9103 NEW_LINGUAS=
9104 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9105 case "$ALL_LINGUAS" in
9106 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9107 esac
9108 done
9109 LINGUAS=$NEW_LINGUAS
9110 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9111 echo "${ECHO_T}$LINGUAS" >&6
9114 if test -n "$LINGUAS"; then
9115 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9119 if test $ac_cv_header_locale_h = yes; then
9120 INCLUDE_LOCALE_H="#include <locale.h>"
9121 else
9122 INCLUDE_LOCALE_H="\
9123 /* The system does not provide the header <locale.h>. Take care yourself. */"
9127 if test -f $srcdir/po2tbl.sed.in; then
9128 if test "$CATOBJEXT" = ".cat"; then
9129 if test "${ac_cv_header_linux_version_h+set}" = set; then
9130 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9131 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9132 if test "${ac_cv_header_linux_version_h+set}" = set; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9136 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9137 else
9138 # Is the header compilable?
9139 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9140 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
9141 cat >conftest.$ac_ext <<_ACEOF
9142 /* confdefs.h. */
9143 _ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9147 $ac_includes_default
9148 #include <linux/version.h>
9149 _ACEOF
9150 rm -f conftest.$ac_objext
9151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9152 (eval $ac_compile) 2>conftest.er1
9153 ac_status=$?
9154 grep -v '^ *+' conftest.er1 >conftest.err
9155 rm -f conftest.er1
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -z "$ac_c_werror_flag"
9160 || test ! -s conftest.err'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 (eval $ac_try) 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; } &&
9166 { ac_try='test -s conftest.$ac_objext'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 (eval $ac_try) 2>&5
9169 ac_status=$?
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; }; then
9172 ac_header_compiler=yes
9173 else
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9177 ac_header_compiler=no
9179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9181 echo "${ECHO_T}$ac_header_compiler" >&6
9183 # Is the header present?
9184 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9185 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
9186 cat >conftest.$ac_ext <<_ACEOF
9187 /* confdefs.h. */
9188 _ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9192 #include <linux/version.h>
9193 _ACEOF
9194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9196 ac_status=$?
9197 grep -v '^ *+' conftest.er1 >conftest.err
9198 rm -f conftest.er1
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } >/dev/null; then
9202 if test -s conftest.err; then
9203 ac_cpp_err=$ac_c_preproc_warn_flag
9204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9205 else
9206 ac_cpp_err=
9208 else
9209 ac_cpp_err=yes
9211 if test -z "$ac_cpp_err"; then
9212 ac_header_preproc=yes
9213 else
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_header_preproc=no
9219 rm -f conftest.err conftest.$ac_ext
9220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9221 echo "${ECHO_T}$ac_header_preproc" >&6
9223 # So? What about this header?
9224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9225 yes:no: )
9226 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9227 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9228 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9229 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9230 ac_header_preproc=yes
9232 no:yes:* )
9233 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9234 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
9235 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9236 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9237 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9238 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9239 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9240 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9241 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9242 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9244 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9246 cat <<\_ASBOX
9247 ## ------------------------------------------ ##
9248 ## Report this to the AC_PACKAGE_NAME lists. ##
9249 ## ------------------------------------------ ##
9250 _ASBOX
9252 sed "s/^/$as_me: WARNING: /" >&2
9254 esac
9255 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9256 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9257 if test "${ac_cv_header_linux_version_h+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 else
9260 ac_cv_header_linux_version_h=$ac_header_preproc
9262 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9263 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9266 if test $ac_cv_header_linux_version_h = yes; then
9267 msgformat=linux
9268 else
9269 msgformat=xopen
9274 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
9276 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
9277 $srcdir/po2tbl.sed.in > po2tbl.sed
9280 if test "$PACKAGE" = "gettext"; then
9281 GT_NO="#NO#"
9282 GT_YES=
9283 else
9284 GT_NO=
9285 GT_YES="#YES#"
9290 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
9296 if test -f $srcdir/po/POTFILES.in; then
9297 test -d po || mkdir po
9298 if test "x$srcdir" != "x."; then
9299 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9300 posrcprefix="$srcdir/"
9301 else
9302 posrcprefix="../$srcdir/"
9304 else
9305 posrcprefix="../"
9307 rm -f po/POTFILES
9308 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9309 < $srcdir/po/POTFILES.in > po/POTFILES
9313 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9314 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9315 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9316 if test "${enable_maintainer_mode+set}" = set; then
9317 enableval="$enable_maintainer_mode"
9318 USE_MAINTAINER_MODE=$enableval
9319 else
9320 USE_MAINTAINER_MODE=no
9322 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9323 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9326 if test $USE_MAINTAINER_MODE = yes; then
9327 MAINTAINER_MODE_TRUE=
9328 MAINTAINER_MODE_FALSE='#'
9329 else
9330 MAINTAINER_MODE_TRUE='#'
9331 MAINTAINER_MODE_FALSE=
9334 MAINT=$MAINTAINER_MODE_TRUE
9348 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
9350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9352 echo "$as_me:$LINENO: checking for $ac_header" >&5
9353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9359 else
9360 # Is the header compilable?
9361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9363 cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h. */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369 $ac_includes_default
9370 #include <$ac_header>
9371 _ACEOF
9372 rm -f conftest.$ac_objext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9374 (eval $ac_compile) 2>conftest.er1
9375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try='test -z "$ac_c_werror_flag"
9382 || test ! -s conftest.err'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; } &&
9388 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9394 ac_header_compiler=yes
9395 else
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9399 ac_header_compiler=no
9401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9403 echo "${ECHO_T}$ac_header_compiler" >&6
9405 # Is the header present?
9406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9408 cat >conftest.$ac_ext <<_ACEOF
9409 /* confdefs.h. */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9414 #include <$ac_header>
9415 _ACEOF
9416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9418 ac_status=$?
9419 grep -v '^ *+' conftest.er1 >conftest.err
9420 rm -f conftest.er1
9421 cat conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } >/dev/null; then
9424 if test -s conftest.err; then
9425 ac_cpp_err=$ac_c_preproc_warn_flag
9426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9427 else
9428 ac_cpp_err=
9430 else
9431 ac_cpp_err=yes
9433 if test -z "$ac_cpp_err"; then
9434 ac_header_preproc=yes
9435 else
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 ac_header_preproc=no
9441 rm -f conftest.err conftest.$ac_ext
9442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9443 echo "${ECHO_T}$ac_header_preproc" >&6
9445 # So? What about this header?
9446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9447 yes:no: )
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9452 ac_header_preproc=yes
9454 no:yes:* )
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9468 cat <<\_ASBOX
9469 ## ------------------------------------------ ##
9470 ## Report this to the AC_PACKAGE_NAME lists. ##
9471 ## ------------------------------------------ ##
9472 _ASBOX
9474 sed "s/^/$as_me: WARNING: /" >&2
9476 esac
9477 echo "$as_me:$LINENO: checking for $ac_header" >&5
9478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482 eval "$as_ac_Header=\$ac_header_preproc"
9484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9489 cat >>confdefs.h <<_ACEOF
9490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9491 _ACEOF
9495 done
9498 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
9499 # people who are not cross-compiling but are compiling cross-assemblers.
9500 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
9501 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
9502 if test "${host}" = "${target}"; then
9503 cross_gas=no
9504 else
9505 cross_gas=yes
9507 cat >>confdefs.h <<\_ACEOF
9508 #define CROSS_COMPILE 1
9509 _ACEOF
9512 echo "$as_me:$LINENO: result: $cross_gas" >&5
9513 echo "${ECHO_T}$cross_gas" >&6
9515 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9516 # for constant arguments. Useless!
9517 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9518 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9519 if test "${ac_cv_working_alloca_h+set}" = set; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 else
9522 cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h. */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9528 #include <alloca.h>
9530 main ()
9532 char *p = (char *) alloca (2 * sizeof (int));
9534 return 0;
9536 _ACEOF
9537 rm -f conftest.$ac_objext conftest$ac_exeext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539 (eval $ac_link) 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } &&
9546 { ac_try='test -z "$ac_c_werror_flag"
9547 || test ! -s conftest.err'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 (eval $ac_try) 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; } &&
9553 { ac_try='test -s conftest$ac_exeext'
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 (eval $ac_try) 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; }; then
9559 ac_cv_working_alloca_h=yes
9560 else
9561 echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9564 ac_cv_working_alloca_h=no
9566 rm -f conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9569 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9570 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9571 if test $ac_cv_working_alloca_h = yes; then
9573 cat >>confdefs.h <<\_ACEOF
9574 #define HAVE_ALLOCA_H 1
9575 _ACEOF
9579 echo "$as_me:$LINENO: checking for alloca" >&5
9580 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9581 if test "${ac_cv_func_alloca_works+set}" = set; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 else
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h. */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 #ifdef __GNUC__
9591 # define alloca __builtin_alloca
9592 #else
9593 # ifdef _MSC_VER
9594 # include <malloc.h>
9595 # define alloca _alloca
9596 # else
9597 # if HAVE_ALLOCA_H
9598 # include <alloca.h>
9599 # else
9600 # ifdef _AIX
9601 #pragma alloca
9602 # else
9603 # ifndef alloca /* predefined by HP cc +Olibcalls */
9604 char *alloca ();
9605 # endif
9606 # endif
9607 # endif
9608 # endif
9609 #endif
9612 main ()
9614 char *p = (char *) alloca (1);
9616 return 0;
9618 _ACEOF
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621 (eval $ac_link) 2>conftest.er1
9622 ac_status=$?
9623 grep -v '^ *+' conftest.er1 >conftest.err
9624 rm -f conftest.er1
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try='test -z "$ac_c_werror_flag"
9629 || test ! -s conftest.err'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 (eval $ac_try) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; } &&
9635 { ac_try='test -s conftest$ac_exeext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 ac_cv_func_alloca_works=yes
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_cv_func_alloca_works=no
9648 rm -f conftest.err conftest.$ac_objext \
9649 conftest$ac_exeext conftest.$ac_ext
9651 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9652 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9654 if test $ac_cv_func_alloca_works = yes; then
9656 cat >>confdefs.h <<\_ACEOF
9657 #define HAVE_ALLOCA 1
9658 _ACEOF
9660 else
9661 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9662 # that cause trouble. Some versions do not even contain alloca or
9663 # contain a buggy version. If you still want to use their alloca,
9664 # use ar to extract alloca.o from them instead of compiling alloca.c.
9666 ALLOCA=alloca.$ac_objext
9668 cat >>confdefs.h <<\_ACEOF
9669 #define C_ALLOCA 1
9670 _ACEOF
9673 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9674 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9675 if test "${ac_cv_os_cray+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678 cat >conftest.$ac_ext <<_ACEOF
9679 /* confdefs.h. */
9680 _ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 #if defined(CRAY) && ! defined(CRAY2)
9685 webecray
9686 #else
9687 wenotbecray
9688 #endif
9690 _ACEOF
9691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9692 $EGREP "webecray" >/dev/null 2>&1; then
9693 ac_cv_os_cray=yes
9694 else
9695 ac_cv_os_cray=no
9697 rm -f conftest*
9700 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9701 echo "${ECHO_T}$ac_cv_os_cray" >&6
9702 if test $ac_cv_os_cray = yes; then
9703 for ac_func in _getb67 GETB67 getb67; do
9704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9705 echo "$as_me:$LINENO: checking for $ac_func" >&5
9706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9707 if eval "test \"\${$as_ac_var+set}\" = set"; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710 cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h. */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9718 #define $ac_func innocuous_$ac_func
9720 /* System header to define __stub macros and hopefully few prototypes,
9721 which can conflict with char $ac_func (); below.
9722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9723 <limits.h> exists even on freestanding compilers. */
9725 #ifdef __STDC__
9726 # include <limits.h>
9727 #else
9728 # include <assert.h>
9729 #endif
9731 #undef $ac_func
9733 /* Override any gcc2 internal prototype to avoid an error. */
9734 #ifdef __cplusplus
9735 extern "C"
9737 #endif
9738 /* We use char because int might match the return type of a gcc2
9739 builtin and then its argument prototype would still apply. */
9740 char $ac_func ();
9741 /* The GNU C library defines this for functions which it implements
9742 to always fail with ENOSYS. Some functions are actually named
9743 something starting with __ and the normal name is an alias. */
9744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9745 choke me
9746 #else
9747 char (*f) () = $ac_func;
9748 #endif
9749 #ifdef __cplusplus
9751 #endif
9754 main ()
9756 return f != $ac_func;
9758 return 0;
9760 _ACEOF
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9763 (eval $ac_link) 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -z "$ac_c_werror_flag"
9771 || test ! -s conftest.err'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 (eval $ac_try) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; } &&
9777 { ac_try='test -s conftest$ac_exeext'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
9783 eval "$as_ac_var=yes"
9784 else
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9788 eval "$as_ac_var=no"
9790 rm -f conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9795 if test `eval echo '${'$as_ac_var'}'` = yes; then
9797 cat >>confdefs.h <<_ACEOF
9798 #define CRAY_STACKSEG_END $ac_func
9799 _ACEOF
9801 break
9804 done
9807 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9808 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9809 if test "${ac_cv_c_stack_direction+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812 if test "$cross_compiling" = yes; then
9813 ac_cv_c_stack_direction=0
9814 else
9815 cat >conftest.$ac_ext <<_ACEOF
9816 /* confdefs.h. */
9817 _ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h. */
9822 find_stack_direction ()
9824 static char *addr = 0;
9825 auto char dummy;
9826 if (addr == 0)
9828 addr = &dummy;
9829 return find_stack_direction ();
9831 else
9832 return (&dummy > addr) ? 1 : -1;
9836 main ()
9838 exit (find_stack_direction () < 0);
9840 _ACEOF
9841 rm -f conftest$ac_exeext
9842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843 (eval $ac_link) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_c_stack_direction=1
9853 else
9854 echo "$as_me: program exited with status $ac_status" >&5
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 ( exit $ac_status )
9859 ac_cv_c_stack_direction=-1
9861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9864 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9865 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9867 cat >>confdefs.h <<_ACEOF
9868 #define STACK_DIRECTION $ac_cv_c_stack_direction
9869 _ACEOF
9874 echo "$as_me:$LINENO: checking for inline" >&5
9875 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9876 if test "${ac_cv_c_inline+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879 ac_cv_c_inline=no
9880 for ac_kw in inline __inline__ __inline; do
9881 cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h. */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9887 #ifndef __cplusplus
9888 typedef int foo_t;
9889 static $ac_kw foo_t static_foo () {return 0; }
9890 $ac_kw foo_t foo () {return 0; }
9891 #endif
9893 _ACEOF
9894 rm -f conftest.$ac_objext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9896 (eval $ac_compile) 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try='test -z "$ac_c_werror_flag"
9904 || test ! -s conftest.err'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 (eval $ac_try) 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest.$ac_objext'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_c_inline=$ac_kw; break
9917 else
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9923 done
9926 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9927 echo "${ECHO_T}$ac_cv_c_inline" >&6
9930 case $ac_cv_c_inline in
9931 inline | yes) ;;
9933 case $ac_cv_c_inline in
9934 no) ac_val=;;
9935 *) ac_val=$ac_cv_c_inline;;
9936 esac
9937 cat >>confdefs.h <<_ACEOF
9938 #ifndef __cplusplus
9939 #define inline $ac_val
9940 #endif
9941 _ACEOF
9943 esac
9946 # VMS doesn't have unlink.
9949 for ac_func in unlink remove
9951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9952 echo "$as_me:$LINENO: checking for $ac_func" >&5
9953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9954 if eval "test \"\${$as_ac_var+set}\" = set"; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h. */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9965 #define $ac_func innocuous_$ac_func
9967 /* System header to define __stub macros and hopefully few prototypes,
9968 which can conflict with char $ac_func (); below.
9969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9970 <limits.h> exists even on freestanding compilers. */
9972 #ifdef __STDC__
9973 # include <limits.h>
9974 #else
9975 # include <assert.h>
9976 #endif
9978 #undef $ac_func
9980 /* Override any gcc2 internal prototype to avoid an error. */
9981 #ifdef __cplusplus
9982 extern "C"
9984 #endif
9985 /* We use char because int might match the return type of a gcc2
9986 builtin and then its argument prototype would still apply. */
9987 char $ac_func ();
9988 /* The GNU C library defines this for functions which it implements
9989 to always fail with ENOSYS. Some functions are actually named
9990 something starting with __ and the normal name is an alias. */
9991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9992 choke me
9993 #else
9994 char (*f) () = $ac_func;
9995 #endif
9996 #ifdef __cplusplus
9998 #endif
10001 main ()
10003 return f != $ac_func;
10005 return 0;
10007 _ACEOF
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010 (eval $ac_link) 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -z "$ac_c_werror_flag"
10018 || test ! -s conftest.err'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; } &&
10024 { ac_try='test -s conftest$ac_exeext'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }; then
10030 eval "$as_ac_var=yes"
10031 else
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10035 eval "$as_ac_var=no"
10037 rm -f conftest.err conftest.$ac_objext \
10038 conftest$ac_exeext conftest.$ac_ext
10040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10042 if test `eval echo '${'$as_ac_var'}'` = yes; then
10043 cat >>confdefs.h <<_ACEOF
10044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10045 _ACEOF
10046 break
10048 done
10051 # Some systems don't have sbrk().
10053 for ac_func in sbrk
10055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10056 echo "$as_me:$LINENO: checking for $ac_func" >&5
10057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10058 if eval "test \"\${$as_ac_var+set}\" = set"; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h. */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10069 #define $ac_func innocuous_$ac_func
10071 /* System header to define __stub macros and hopefully few prototypes,
10072 which can conflict with char $ac_func (); below.
10073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10074 <limits.h> exists even on freestanding compilers. */
10076 #ifdef __STDC__
10077 # include <limits.h>
10078 #else
10079 # include <assert.h>
10080 #endif
10082 #undef $ac_func
10084 /* Override any gcc2 internal prototype to avoid an error. */
10085 #ifdef __cplusplus
10086 extern "C"
10088 #endif
10089 /* We use char because int might match the return type of a gcc2
10090 builtin and then its argument prototype would still apply. */
10091 char $ac_func ();
10092 /* The GNU C library defines this for functions which it implements
10093 to always fail with ENOSYS. Some functions are actually named
10094 something starting with __ and the normal name is an alias. */
10095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10096 choke me
10097 #else
10098 char (*f) () = $ac_func;
10099 #endif
10100 #ifdef __cplusplus
10102 #endif
10105 main ()
10107 return f != $ac_func;
10109 return 0;
10111 _ACEOF
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114 (eval $ac_link) 2>conftest.er1
10115 ac_status=$?
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } &&
10121 { ac_try='test -z "$ac_c_werror_flag"
10122 || test ! -s conftest.err'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; } &&
10128 { ac_try='test -s conftest$ac_exeext'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 eval "$as_ac_var=yes"
10135 else
10136 echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10139 eval "$as_ac_var=no"
10141 rm -f conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10146 if test `eval echo '${'$as_ac_var'}'` = yes; then
10147 cat >>confdefs.h <<_ACEOF
10148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10149 _ACEOF
10152 done
10155 # do we need the math library?
10156 case "${need_libm}" in
10157 yes)
10158 LIBM=
10159 case $host in
10160 *-*-beos* | *-*-cygwin* | *-*-pw32*)
10161 # These system don't have libm
10163 *-ncr-sysv4.3*)
10164 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
10165 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
10166 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169 ac_check_lib_save_LIBS=$LIBS
10170 LIBS="-lmw $LIBS"
10171 cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h. */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10178 /* Override any gcc2 internal prototype to avoid an error. */
10179 #ifdef __cplusplus
10180 extern "C"
10181 #endif
10182 /* We use char because int might match the return type of a gcc2
10183 builtin and then its argument prototype would still apply. */
10184 char _mwvalidcheckl ();
10186 main ()
10188 _mwvalidcheckl ();
10190 return 0;
10192 _ACEOF
10193 rm -f conftest.$ac_objext conftest$ac_exeext
10194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10195 (eval $ac_link) 2>conftest.er1
10196 ac_status=$?
10197 grep -v '^ *+' conftest.er1 >conftest.err
10198 rm -f conftest.er1
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -z "$ac_c_werror_flag"
10203 || test ! -s conftest.err'
10204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10206 ac_status=$?
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; } &&
10209 { ac_try='test -s conftest$ac_exeext'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 ac_cv_lib_mw__mwvalidcheckl=yes
10216 else
10217 echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10220 ac_cv_lib_mw__mwvalidcheckl=no
10222 rm -f conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224 LIBS=$ac_check_lib_save_LIBS
10226 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
10227 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
10228 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
10229 LIBM="-lmw"
10232 echo "$as_me:$LINENO: checking for main in -lm" >&5
10233 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10234 if test "${ac_cv_lib_m_main+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237 ac_check_lib_save_LIBS=$LIBS
10238 LIBS="-lm $LIBS"
10239 cat >conftest.$ac_ext <<_ACEOF
10240 /* confdefs.h. */
10241 _ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h. */
10248 main ()
10250 main ();
10252 return 0;
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10257 (eval $ac_link) 2>conftest.er1
10258 ac_status=$?
10259 grep -v '^ *+' conftest.er1 >conftest.err
10260 rm -f conftest.er1
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } &&
10264 { ac_try='test -z "$ac_c_werror_flag"
10265 || test ! -s conftest.err'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10268 ac_status=$?
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; } &&
10271 { ac_try='test -s conftest$ac_exeext'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_cv_lib_m_main=yes
10278 else
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 ac_cv_lib_m_main=no
10284 rm -f conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10286 LIBS=$ac_check_lib_save_LIBS
10288 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10289 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10290 if test $ac_cv_lib_m_main = yes; then
10291 LIBM="$LIBM -lm"
10296 echo "$as_me:$LINENO: checking for main in -lm" >&5
10297 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10298 if test "${ac_cv_lib_m_main+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301 ac_check_lib_save_LIBS=$LIBS
10302 LIBS="-lm $LIBS"
10303 cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h. */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10312 main ()
10314 main ();
10316 return 0;
10318 _ACEOF
10319 rm -f conftest.$ac_objext conftest$ac_exeext
10320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10321 (eval $ac_link) 2>conftest.er1
10322 ac_status=$?
10323 grep -v '^ *+' conftest.er1 >conftest.err
10324 rm -f conftest.er1
10325 cat conftest.err >&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } &&
10328 { ac_try='test -z "$ac_c_werror_flag"
10329 || test ! -s conftest.err'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; } &&
10335 { ac_try='test -s conftest$ac_exeext'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; }; then
10341 ac_cv_lib_m_main=yes
10342 else
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10346 ac_cv_lib_m_main=no
10348 rm -f conftest.err conftest.$ac_objext \
10349 conftest$ac_exeext conftest.$ac_ext
10350 LIBS=$ac_check_lib_save_LIBS
10352 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10353 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10354 if test $ac_cv_lib_m_main = yes; then
10355 LIBM="-lm"
10359 esac
10363 esac
10365 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
10366 # enough, but on some of those systems, the assert macro relies on requoting
10367 # working properly!
10368 echo "$as_me:$LINENO: checking for working assert macro" >&5
10369 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
10370 if test "${gas_cv_assert_ok+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373 cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h. */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 #include <assert.h>
10380 #include <stdio.h>
10382 main ()
10385 /* check for requoting problems */
10386 static int a, b, c, d;
10387 static char *s;
10388 assert (!strcmp(s, "foo bar baz quux"));
10389 /* check for newline handling */
10390 assert (a == b
10391 || c == d);
10394 return 0;
10396 _ACEOF
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399 (eval $ac_link) 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 { ac_try='test -z "$ac_c_werror_flag"
10407 || test ! -s conftest.err'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; } &&
10413 { ac_try='test -s conftest$ac_exeext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 gas_cv_assert_ok=yes
10420 else
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10424 gas_cv_assert_ok=no
10426 rm -f conftest.err conftest.$ac_objext \
10427 conftest$ac_exeext conftest.$ac_ext
10429 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
10430 echo "${ECHO_T}$gas_cv_assert_ok" >&6
10431 test $gas_cv_assert_ok = yes ||
10432 cat >>confdefs.h <<\_ACEOF
10433 #define BROKEN_ASSERT 1
10434 _ACEOF
10438 # On some systems, the system header files may not declare malloc, realloc,
10439 # and free. There are places where gas needs these functions to have been
10440 # declared -- such as when taking their addresses.
10441 gas_test_headers="
10442 #ifdef HAVE_MEMORY_H
10443 #include <memory.h>
10444 #endif
10445 #ifdef HAVE_STRING_H
10446 #include <string.h>
10447 #else
10448 #ifdef HAVE_STRINGS_H
10449 #include <strings.h>
10450 #endif
10451 #endif
10452 #ifdef HAVE_STDLIB_H
10453 #include <stdlib.h>
10454 #endif
10455 #ifdef HAVE_UNISTD_H
10456 #include <unistd.h>
10457 #endif
10460 # Does errno.h declare errno, or do we have to add a separate declaration
10461 # for it?
10463 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
10464 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
10465 if test "${gas_cv_decl_needed_errno+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10468 cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h. */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10475 #ifdef HAVE_ERRNO_H
10476 #include <errno.h>
10477 #endif
10480 main ()
10483 typedef int f;
10484 f x;
10485 x = (f) errno;
10488 return 0;
10490 _ACEOF
10491 rm -f conftest.$ac_objext conftest$ac_exeext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493 (eval $ac_link) 2>conftest.er1
10494 ac_status=$?
10495 grep -v '^ *+' conftest.er1 >conftest.err
10496 rm -f conftest.er1
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try='test -z "$ac_c_werror_flag"
10501 || test ! -s conftest.err'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try='test -s conftest$ac_exeext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10510 ac_status=$?
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 gas_cv_decl_needed_errno=no
10514 else
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 gas_cv_decl_needed_errno=yes
10520 rm -f conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
10523 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
10524 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
10525 if test $gas_cv_decl_needed_errno = yes; then
10527 cat >>confdefs.h <<\_ACEOF
10528 #define NEED_DECLARATION_ERRNO 1
10529 _ACEOF
10534 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
10535 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
10536 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539 cat >conftest.$ac_ext <<_ACEOF
10540 /* confdefs.h. */
10541 _ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 #include <unistd.h>
10547 main ()
10549 extern int getopt (int, char *const*, const char *);
10551 return 0;
10553 _ACEOF
10554 rm -f conftest.$ac_objext
10555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10556 (eval $ac_compile) 2>conftest.er1
10557 ac_status=$?
10558 grep -v '^ *+' conftest.er1 >conftest.err
10559 rm -f conftest.er1
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } &&
10563 { ac_try='test -z "$ac_c_werror_flag"
10564 || test ! -s conftest.err'
10565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566 (eval $ac_try) 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; } &&
10570 { ac_try='test -s conftest.$ac_objext'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10573 ac_status=$?
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; }; then
10576 gas_cv_decl_getopt_unistd_h=yes
10577 else
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10581 gas_cv_decl_getopt_unistd_h=no
10583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10586 echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
10587 echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
10588 if test $gas_cv_decl_getopt_unistd_h = yes; then
10590 cat >>confdefs.h <<\_ACEOF
10591 #define HAVE_DECL_GETOPT 1
10592 _ACEOF
10597 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
10598 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
10599 if test "${gas_cv_decl_needed_environ+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 else
10602 cat >conftest.$ac_ext <<_ACEOF
10603 /* confdefs.h. */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10608 $gas_test_headers
10610 main ()
10613 typedef char **f;
10614 f x;
10615 x = (f) environ;
10618 return 0;
10620 _ACEOF
10621 rm -f conftest.$ac_objext conftest$ac_exeext
10622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10623 (eval $ac_link) 2>conftest.er1
10624 ac_status=$?
10625 grep -v '^ *+' conftest.er1 >conftest.err
10626 rm -f conftest.er1
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } &&
10630 { ac_try='test -z "$ac_c_werror_flag"
10631 || test ! -s conftest.err'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10634 ac_status=$?
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; } &&
10637 { ac_try='test -s conftest$ac_exeext'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10643 gas_cv_decl_needed_environ=no
10644 else
10645 echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10648 gas_cv_decl_needed_environ=yes
10650 rm -f conftest.err conftest.$ac_objext \
10651 conftest$ac_exeext conftest.$ac_ext
10653 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
10654 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
10655 if test $gas_cv_decl_needed_environ = yes; then
10657 cat >>confdefs.h <<\_ACEOF
10658 #define NEED_DECLARATION_ENVIRON 1
10659 _ACEOF
10664 echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
10665 echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
10666 if test "${gas_cv_decl_needed_ffs+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 cat >conftest.$ac_ext <<_ACEOF
10670 /* confdefs.h. */
10671 _ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h. */
10675 $gas_test_headers
10677 main ()
10680 typedef int (*f)(int);
10681 f x;
10682 x = (f) ffs;
10685 return 0;
10687 _ACEOF
10688 rm -f conftest.$ac_objext conftest$ac_exeext
10689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10690 (eval $ac_link) 2>conftest.er1
10691 ac_status=$?
10692 grep -v '^ *+' conftest.er1 >conftest.err
10693 rm -f conftest.er1
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } &&
10697 { ac_try='test -z "$ac_c_werror_flag"
10698 || test ! -s conftest.err'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; } &&
10704 { ac_try='test -s conftest$ac_exeext'
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; }; then
10710 gas_cv_decl_needed_ffs=no
10711 else
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 gas_cv_decl_needed_ffs=yes
10717 rm -f conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10720 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
10721 echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
10722 if test $gas_cv_decl_needed_ffs = yes; then
10724 cat >>confdefs.h <<\_ACEOF
10725 #define NEED_DECLARATION_FFS 1
10726 _ACEOF
10731 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
10732 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
10733 if test "${gas_cv_decl_needed_free+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736 cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h. */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 $gas_test_headers
10744 main ()
10747 typedef void (*f)();
10748 f x;
10749 x = (f) free;
10752 return 0;
10754 _ACEOF
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10757 (eval $ac_link) 2>conftest.er1
10758 ac_status=$?
10759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } &&
10764 { ac_try='test -z "$ac_c_werror_flag"
10765 || test ! -s conftest.err'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10768 ac_status=$?
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; } &&
10771 { ac_try='test -s conftest$ac_exeext'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; }; then
10777 gas_cv_decl_needed_free=no
10778 else
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10782 gas_cv_decl_needed_free=yes
10784 rm -f conftest.err conftest.$ac_objext \
10785 conftest$ac_exeext conftest.$ac_ext
10787 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
10788 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
10789 if test $gas_cv_decl_needed_free = yes; then
10791 cat >>confdefs.h <<\_ACEOF
10792 #define NEED_DECLARATION_FREE 1
10793 _ACEOF
10798 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
10799 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
10800 if test "${gas_cv_decl_needed_malloc+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 else
10803 cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h. */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 $gas_test_headers
10811 main ()
10814 typedef char *(*f)();
10815 f x;
10816 x = (f) malloc;
10819 return 0;
10821 _ACEOF
10822 rm -f conftest.$ac_objext conftest$ac_exeext
10823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10824 (eval $ac_link) 2>conftest.er1
10825 ac_status=$?
10826 grep -v '^ *+' conftest.er1 >conftest.err
10827 rm -f conftest.er1
10828 cat conftest.err >&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } &&
10831 { ac_try='test -z "$ac_c_werror_flag"
10832 || test ! -s conftest.err'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10835 ac_status=$?
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; } &&
10838 { ac_try='test -s conftest$ac_exeext'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10841 ac_status=$?
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 gas_cv_decl_needed_malloc=no
10845 else
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 gas_cv_decl_needed_malloc=yes
10851 rm -f conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10854 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
10855 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
10856 if test $gas_cv_decl_needed_malloc = yes; then
10858 cat >>confdefs.h <<\_ACEOF
10859 #define NEED_DECLARATION_MALLOC 1
10860 _ACEOF
10865 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
10866 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
10867 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870 cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h. */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 $gas_test_headers
10878 main ()
10881 typedef char *(*f)();
10882 f x;
10883 x = (f) sbrk;
10886 return 0;
10888 _ACEOF
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891 (eval $ac_link) 2>conftest.er1
10892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -z "$ac_c_werror_flag"
10899 || test ! -s conftest.err'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; } &&
10905 { ac_try='test -s conftest$ac_exeext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 gas_cv_decl_needed_sbrk=no
10912 else
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10916 gas_cv_decl_needed_sbrk=yes
10918 rm -f conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10921 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
10922 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
10923 if test $gas_cv_decl_needed_sbrk = yes; then
10925 cat >>confdefs.h <<\_ACEOF
10926 #define NEED_DECLARATION_SBRK 1
10927 _ACEOF
10932 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
10933 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
10934 if test "${gas_cv_decl_needed_strstr+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937 cat >conftest.$ac_ext <<_ACEOF
10938 /* confdefs.h. */
10939 _ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943 $gas_test_headers
10945 main ()
10948 typedef char *(*f)();
10949 f x;
10950 x = (f) strstr;
10953 return 0;
10955 _ACEOF
10956 rm -f conftest.$ac_objext conftest$ac_exeext
10957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10958 (eval $ac_link) 2>conftest.er1
10959 ac_status=$?
10960 grep -v '^ *+' conftest.er1 >conftest.err
10961 rm -f conftest.er1
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } &&
10965 { ac_try='test -z "$ac_c_werror_flag"
10966 || test ! -s conftest.err'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; } &&
10972 { ac_try='test -s conftest$ac_exeext'
10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974 (eval $ac_try) 2>&5
10975 ac_status=$?
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; }; then
10978 gas_cv_decl_needed_strstr=no
10979 else
10980 echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10983 gas_cv_decl_needed_strstr=yes
10985 rm -f conftest.err conftest.$ac_objext \
10986 conftest$ac_exeext conftest.$ac_ext
10988 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
10989 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
10990 if test $gas_cv_decl_needed_strstr = yes; then
10992 cat >>confdefs.h <<\_ACEOF
10993 #define NEED_DECLARATION_STRSTR 1
10994 _ACEOF
11001 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
11003 ac_config_commands="$ac_config_commands default"
11006 cat >confcache <<\_ACEOF
11007 # This file is a shell script that caches the results of configure
11008 # tests run on this system so they can be shared between configure
11009 # scripts and configure runs, see configure's option --config-cache.
11010 # It is not useful on other systems. If it contains results you don't
11011 # want to keep, you may remove or edit it.
11013 # config.status only pays attention to the cache file if you give it
11014 # the --recheck option to rerun configure.
11016 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11017 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11018 # following values.
11020 _ACEOF
11022 # The following way of writing the cache mishandles newlines in values,
11023 # but we know of no workaround that is simple, portable, and efficient.
11024 # So, don't put newlines in cache variables' values.
11025 # Ultrix sh set writes to stderr and can't be redirected directly,
11026 # and sets the high bit in the cache file unless we assign to the vars.
11028 (set) 2>&1 |
11029 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11030 *ac_space=\ *)
11031 # `set' does not quote correctly, so add quotes (double-quote
11032 # substitution turns \\\\ into \\, and sed turns \\ into \).
11033 sed -n \
11034 "s/'/'\\\\''/g;
11035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11038 # `set' quotes correctly as required by POSIX, so do not add quotes.
11039 sed -n \
11040 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11042 esac;
11044 sed '
11045 t clear
11046 : clear
11047 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11048 t end
11049 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11050 : end' >>confcache
11051 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11052 if test -w $cache_file; then
11053 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11054 cat confcache >$cache_file
11055 else
11056 echo "not updating unwritable cache $cache_file"
11059 rm -f confcache
11061 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11062 # Let make expand exec_prefix.
11063 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11065 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11066 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11067 # trailing colons and then remove the whole line if VPATH becomes empty
11068 # (actually we leave an empty line to preserve line numbers).
11069 if test "x$srcdir" = x.; then
11070 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11071 s/:*\$(srcdir):*/:/;
11072 s/:*\${srcdir}:*/:/;
11073 s/:*@srcdir@:*/:/;
11074 s/^\([^=]*=[ ]*\):*/\1/;
11075 s/:*$//;
11076 s/^[^=]*=[ ]*$//;
11080 DEFS=-DHAVE_CONFIG_H
11082 ac_libobjs=
11083 ac_ltlibobjs=
11084 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11085 # 1. Remove the extension, and $U if already installed.
11086 ac_i=`echo "$ac_i" |
11087 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11088 # 2. Add them.
11089 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11090 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11091 done
11092 LIBOBJS=$ac_libobjs
11094 LTLIBOBJS=$ac_ltlibobjs
11097 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11098 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11099 Usually this means the macro was only invoked conditionally." >&5
11100 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11101 Usually this means the macro was only invoked conditionally." >&2;}
11102 { (exit 1); exit 1; }; }
11104 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11105 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11106 Usually this means the macro was only invoked conditionally." >&5
11107 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11108 Usually this means the macro was only invoked conditionally." >&2;}
11109 { (exit 1); exit 1; }; }
11111 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11112 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11113 Usually this means the macro was only invoked conditionally." >&5
11114 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11115 Usually this means the macro was only invoked conditionally." >&2;}
11116 { (exit 1); exit 1; }; }
11119 : ${CONFIG_STATUS=./config.status}
11120 ac_clean_files_save=$ac_clean_files
11121 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11122 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11123 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11124 cat >$CONFIG_STATUS <<_ACEOF
11125 #! $SHELL
11126 # Generated by $as_me.
11127 # Run this file to recreate the current configuration.
11128 # Compiler output produced by configure, useful for debugging
11129 # configure, is in config.log if it exists.
11131 debug=false
11132 ac_cs_recheck=false
11133 ac_cs_silent=false
11134 SHELL=\${CONFIG_SHELL-$SHELL}
11135 _ACEOF
11137 cat >>$CONFIG_STATUS <<\_ACEOF
11138 ## --------------------- ##
11139 ## M4sh Initialization. ##
11140 ## --------------------- ##
11142 # Be Bourne compatible
11143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11144 emulate sh
11145 NULLCMD=:
11146 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11147 # is contrary to our usage. Disable this feature.
11148 alias -g '${1+"$@"}'='"$@"'
11149 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11150 set -o posix
11152 DUALCASE=1; export DUALCASE # for MKS sh
11154 # Support unset when possible.
11155 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11156 as_unset=unset
11157 else
11158 as_unset=false
11162 # Work around bugs in pre-3.0 UWIN ksh.
11163 $as_unset ENV MAIL MAILPATH
11164 PS1='$ '
11165 PS2='> '
11166 PS4='+ '
11168 # NLS nuisances.
11169 for as_var in \
11170 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11171 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11172 LC_TELEPHONE LC_TIME
11174 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11175 eval $as_var=C; export $as_var
11176 else
11177 $as_unset $as_var
11179 done
11181 # Required to use basename.
11182 if expr a : '\(a\)' >/dev/null 2>&1; then
11183 as_expr=expr
11184 else
11185 as_expr=false
11188 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11189 as_basename=basename
11190 else
11191 as_basename=false
11195 # Name of the executable.
11196 as_me=`$as_basename "$0" ||
11197 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11198 X"$0" : 'X\(//\)$' \| \
11199 X"$0" : 'X\(/\)$' \| \
11200 . : '\(.\)' 2>/dev/null ||
11201 echo X/"$0" |
11202 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11203 /^X\/\(\/\/\)$/{ s//\1/; q; }
11204 /^X\/\(\/\).*/{ s//\1/; q; }
11205 s/.*/./; q'`
11208 # PATH needs CR, and LINENO needs CR and PATH.
11209 # Avoid depending upon Character Ranges.
11210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11213 as_cr_digits='0123456789'
11214 as_cr_alnum=$as_cr_Letters$as_cr_digits
11216 # The user is always right.
11217 if test "${PATH_SEPARATOR+set}" != set; then
11218 echo "#! /bin/sh" >conf$$.sh
11219 echo "exit 0" >>conf$$.sh
11220 chmod +x conf$$.sh
11221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11222 PATH_SEPARATOR=';'
11223 else
11224 PATH_SEPARATOR=:
11226 rm -f conf$$.sh
11230 as_lineno_1=$LINENO
11231 as_lineno_2=$LINENO
11232 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11233 test "x$as_lineno_1" != "x$as_lineno_2" &&
11234 test "x$as_lineno_3" = "x$as_lineno_2" || {
11235 # Find who we are. Look in the path if we contain no path at all
11236 # relative or not.
11237 case $0 in
11238 *[\\/]* ) as_myself=$0 ;;
11239 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11240 for as_dir in $PATH
11242 IFS=$as_save_IFS
11243 test -z "$as_dir" && as_dir=.
11244 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11245 done
11248 esac
11249 # We did not find ourselves, most probably we were run as `sh COMMAND'
11250 # in which case we are not to be found in the path.
11251 if test "x$as_myself" = x; then
11252 as_myself=$0
11254 if test ! -f "$as_myself"; then
11255 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11256 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11257 { (exit 1); exit 1; }; }
11259 case $CONFIG_SHELL in
11261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11264 IFS=$as_save_IFS
11265 test -z "$as_dir" && as_dir=.
11266 for as_base in sh bash ksh sh5; do
11267 case $as_dir in
11269 if ("$as_dir/$as_base" -c '
11270 as_lineno_1=$LINENO
11271 as_lineno_2=$LINENO
11272 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11273 test "x$as_lineno_1" != "x$as_lineno_2" &&
11274 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11275 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11276 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11277 CONFIG_SHELL=$as_dir/$as_base
11278 export CONFIG_SHELL
11279 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11280 fi;;
11281 esac
11282 done
11283 done
11285 esac
11287 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11288 # uniformly replaced by the line number. The first 'sed' inserts a
11289 # line-number line before each line; the second 'sed' does the real
11290 # work. The second script uses 'N' to pair each line-number line
11291 # with the numbered line, and appends trailing '-' during
11292 # substitution so that $LINENO is not a special case at line end.
11293 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11294 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11295 sed '=' <$as_myself |
11296 sed '
11298 s,$,-,
11299 : loop
11300 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11301 t loop
11302 s,-$,,
11303 s,^['$as_cr_digits']*\n,,
11304 ' >$as_me.lineno &&
11305 chmod +x $as_me.lineno ||
11306 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11307 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11308 { (exit 1); exit 1; }; }
11310 # Don't try to exec as it changes $[0], causing all sort of problems
11311 # (the dirname of $[0] is not the place where we might find the
11312 # original and so on. Autoconf is especially sensible to this).
11313 . ./$as_me.lineno
11314 # Exit status is that of the last command.
11315 exit
11319 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11320 *c*,-n*) ECHO_N= ECHO_C='
11321 ' ECHO_T=' ' ;;
11322 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11323 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11324 esac
11326 if expr a : '\(a\)' >/dev/null 2>&1; then
11327 as_expr=expr
11328 else
11329 as_expr=false
11332 rm -f conf$$ conf$$.exe conf$$.file
11333 echo >conf$$.file
11334 if ln -s conf$$.file conf$$ 2>/dev/null; then
11335 # We could just check for DJGPP; but this test a) works b) is more generic
11336 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11337 if test -f conf$$.exe; then
11338 # Don't use ln at all; we don't have any links
11339 as_ln_s='cp -p'
11340 else
11341 as_ln_s='ln -s'
11343 elif ln conf$$.file conf$$ 2>/dev/null; then
11344 as_ln_s=ln
11345 else
11346 as_ln_s='cp -p'
11348 rm -f conf$$ conf$$.exe conf$$.file
11350 if mkdir -p . 2>/dev/null; then
11351 as_mkdir_p=:
11352 else
11353 test -d ./-p && rmdir ./-p
11354 as_mkdir_p=false
11357 as_executable_p="test -f"
11359 # Sed expression to map a string onto a valid CPP name.
11360 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11362 # Sed expression to map a string onto a valid variable name.
11363 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11366 # IFS
11367 # We need space, tab and new line, in precisely that order.
11368 as_nl='
11370 IFS=" $as_nl"
11372 # CDPATH.
11373 $as_unset CDPATH
11375 exec 6>&1
11377 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11378 # report actual input values of CONFIG_FILES etc. instead of their
11379 # values after options handling. Logging --version etc. is OK.
11380 exec 5>>config.log
11382 echo
11383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11384 ## Running $as_me. ##
11385 _ASBOX
11386 } >&5
11387 cat >&5 <<_CSEOF
11389 This file was extended by $as_me, which was
11390 generated by GNU Autoconf 2.59. Invocation command line was
11392 CONFIG_FILES = $CONFIG_FILES
11393 CONFIG_HEADERS = $CONFIG_HEADERS
11394 CONFIG_LINKS = $CONFIG_LINKS
11395 CONFIG_COMMANDS = $CONFIG_COMMANDS
11396 $ $0 $@
11398 _CSEOF
11399 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11400 echo >&5
11401 _ACEOF
11403 # Files that config.status was made for.
11404 if test -n "$ac_config_files"; then
11405 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11408 if test -n "$ac_config_headers"; then
11409 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11412 if test -n "$ac_config_links"; then
11413 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11416 if test -n "$ac_config_commands"; then
11417 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11420 cat >>$CONFIG_STATUS <<\_ACEOF
11422 ac_cs_usage="\
11423 \`$as_me' instantiates files from templates according to the
11424 current configuration.
11426 Usage: $0 [OPTIONS] [FILE]...
11428 -h, --help print this help, then exit
11429 -V, --version print version number, then exit
11430 -q, --quiet do not print progress messages
11431 -d, --debug don't remove temporary files
11432 --recheck update $as_me by reconfiguring in the same conditions
11433 --file=FILE[:TEMPLATE]
11434 instantiate the configuration file FILE
11435 --header=FILE[:TEMPLATE]
11436 instantiate the configuration header FILE
11438 Configuration files:
11439 $config_files
11441 Configuration headers:
11442 $config_headers
11444 Configuration commands:
11445 $config_commands
11447 Report bugs to <bug-autoconf@gnu.org>."
11448 _ACEOF
11450 cat >>$CONFIG_STATUS <<_ACEOF
11451 ac_cs_version="\\
11452 config.status
11453 configured by $0, generated by GNU Autoconf 2.59,
11454 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11456 Copyright (C) 2003 Free Software Foundation, Inc.
11457 This config.status script is free software; the Free Software Foundation
11458 gives unlimited permission to copy, distribute and modify it."
11459 srcdir=$srcdir
11460 INSTALL="$INSTALL"
11461 _ACEOF
11463 cat >>$CONFIG_STATUS <<\_ACEOF
11464 # If no file are specified by the user, then we need to provide default
11465 # value. By we need to know if files were specified by the user.
11466 ac_need_defaults=:
11467 while test $# != 0
11469 case $1 in
11470 --*=*)
11471 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11472 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11473 ac_shift=:
11476 ac_option=$1
11477 ac_optarg=$2
11478 ac_shift=shift
11480 *) # This is not an option, so the user has probably given explicit
11481 # arguments.
11482 ac_option=$1
11483 ac_need_defaults=false;;
11484 esac
11486 case $ac_option in
11487 # Handling of the options.
11488 _ACEOF
11489 cat >>$CONFIG_STATUS <<\_ACEOF
11490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11491 ac_cs_recheck=: ;;
11492 --version | --vers* | -V )
11493 echo "$ac_cs_version"; exit 0 ;;
11494 --he | --h)
11495 # Conflict between --help and --header
11496 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11497 Try \`$0 --help' for more information." >&5
11498 echo "$as_me: error: ambiguous option: $1
11499 Try \`$0 --help' for more information." >&2;}
11500 { (exit 1); exit 1; }; };;
11501 --help | --hel | -h )
11502 echo "$ac_cs_usage"; exit 0 ;;
11503 --debug | --d* | -d )
11504 debug=: ;;
11505 --file | --fil | --fi | --f )
11506 $ac_shift
11507 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11508 ac_need_defaults=false;;
11509 --header | --heade | --head | --hea )
11510 $ac_shift
11511 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11512 ac_need_defaults=false;;
11513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11514 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11515 ac_cs_silent=: ;;
11517 # This is an error.
11518 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11519 Try \`$0 --help' for more information." >&5
11520 echo "$as_me: error: unrecognized option: $1
11521 Try \`$0 --help' for more information." >&2;}
11522 { (exit 1); exit 1; }; } ;;
11524 *) ac_config_targets="$ac_config_targets $1" ;;
11526 esac
11527 shift
11528 done
11530 ac_configure_extra_args=
11532 if $ac_cs_silent; then
11533 exec 6>/dev/null
11534 ac_configure_extra_args="$ac_configure_extra_args --silent"
11537 _ACEOF
11538 cat >>$CONFIG_STATUS <<_ACEOF
11539 if \$ac_cs_recheck; then
11540 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11541 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11544 _ACEOF
11546 cat >>$CONFIG_STATUS <<_ACEOF
11548 # INIT-COMMANDS section.
11551 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11552 target_cpu_type=${target_cpu_type}
11553 cgen_cpu_prefix=${cgen_cpu_prefix}
11554 obj_format=${obj_format}
11555 te_file=${te_file}
11557 _ACEOF
11561 cat >>$CONFIG_STATUS <<\_ACEOF
11562 for ac_config_target in $ac_config_targets
11564 case "$ac_config_target" in
11565 # Handling of arguments.
11566 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
11567 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
11568 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11569 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11570 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11571 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11572 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11573 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11574 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11575 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11576 { (exit 1); exit 1; }; };;
11577 esac
11578 done
11580 # If the user did not use the arguments to specify the items to instantiate,
11581 # then the envvar interface is used. Set only those that are not.
11582 # We use the long form for the default assignment because of an extremely
11583 # bizarre bug on SunOS 4.1.3.
11584 if $ac_need_defaults; then
11585 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11586 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11587 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11590 # Have a temporary directory for convenience. Make it in the build tree
11591 # simply because there is no reason to put it here, and in addition,
11592 # creating and moving files from /tmp can sometimes cause problems.
11593 # Create a temporary directory, and hook for its removal unless debugging.
11594 $debug ||
11596 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11597 trap '{ (exit 1); exit 1; }' 1 2 13 15
11600 # Create a (secure) tmp directory for tmp files.
11603 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11604 test -n "$tmp" && test -d "$tmp"
11605 } ||
11607 tmp=./confstat$$-$RANDOM
11608 (umask 077 && mkdir $tmp)
11609 } ||
11611 echo "$me: cannot create a temporary directory in ." >&2
11612 { (exit 1); exit 1; }
11615 _ACEOF
11617 cat >>$CONFIG_STATUS <<_ACEOF
11620 # CONFIG_FILES section.
11623 # No need to generate the scripts if there are no CONFIG_FILES.
11624 # This happens for instance when ./config.status config.h
11625 if test -n "\$CONFIG_FILES"; then
11626 # Protect against being on the right side of a sed subst in config.status.
11627 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11628 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11629 s,@SHELL@,$SHELL,;t t
11630 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11631 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11632 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11633 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11634 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11635 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11636 s,@exec_prefix@,$exec_prefix,;t t
11637 s,@prefix@,$prefix,;t t
11638 s,@program_transform_name@,$program_transform_name,;t t
11639 s,@bindir@,$bindir,;t t
11640 s,@sbindir@,$sbindir,;t t
11641 s,@libexecdir@,$libexecdir,;t t
11642 s,@datadir@,$datadir,;t t
11643 s,@sysconfdir@,$sysconfdir,;t t
11644 s,@sharedstatedir@,$sharedstatedir,;t t
11645 s,@localstatedir@,$localstatedir,;t t
11646 s,@libdir@,$libdir,;t t
11647 s,@includedir@,$includedir,;t t
11648 s,@oldincludedir@,$oldincludedir,;t t
11649 s,@infodir@,$infodir,;t t
11650 s,@mandir@,$mandir,;t t
11651 s,@build_alias@,$build_alias,;t t
11652 s,@host_alias@,$host_alias,;t t
11653 s,@target_alias@,$target_alias,;t t
11654 s,@DEFS@,$DEFS,;t t
11655 s,@ECHO_C@,$ECHO_C,;t t
11656 s,@ECHO_N@,$ECHO_N,;t t
11657 s,@ECHO_T@,$ECHO_T,;t t
11658 s,@LIBS@,$LIBS,;t t
11659 s,@build@,$build,;t t
11660 s,@build_cpu@,$build_cpu,;t t
11661 s,@build_vendor@,$build_vendor,;t t
11662 s,@build_os@,$build_os,;t t
11663 s,@host@,$host,;t t
11664 s,@host_cpu@,$host_cpu,;t t
11665 s,@host_vendor@,$host_vendor,;t t
11666 s,@host_os@,$host_os,;t t
11667 s,@target@,$target,;t t
11668 s,@target_cpu@,$target_cpu,;t t
11669 s,@target_vendor@,$target_vendor,;t t
11670 s,@target_os@,$target_os,;t t
11671 s,@CC@,$CC,;t t
11672 s,@CFLAGS@,$CFLAGS,;t t
11673 s,@LDFLAGS@,$LDFLAGS,;t t
11674 s,@CPPFLAGS@,$CPPFLAGS,;t t
11675 s,@ac_ct_CC@,$ac_ct_CC,;t t
11676 s,@EXEEXT@,$EXEEXT,;t t
11677 s,@OBJEXT@,$OBJEXT,;t t
11678 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11679 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11680 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11681 s,@CYGPATH_W@,$CYGPATH_W,;t t
11682 s,@PACKAGE@,$PACKAGE,;t t
11683 s,@VERSION@,$VERSION,;t t
11684 s,@ACLOCAL@,$ACLOCAL,;t t
11685 s,@AUTOCONF@,$AUTOCONF,;t t
11686 s,@AUTOMAKE@,$AUTOMAKE,;t t
11687 s,@AUTOHEADER@,$AUTOHEADER,;t t
11688 s,@MAKEINFO@,$MAKEINFO,;t t
11689 s,@install_sh@,$install_sh,;t t
11690 s,@STRIP@,$STRIP,;t t
11691 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11692 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11693 s,@mkdir_p@,$mkdir_p,;t t
11694 s,@AWK@,$AWK,;t t
11695 s,@SET_MAKE@,$SET_MAKE,;t t
11696 s,@am__leading_dot@,$am__leading_dot,;t t
11697 s,@AMTAR@,$AMTAR,;t t
11698 s,@am__tar@,$am__tar,;t t
11699 s,@am__untar@,$am__untar,;t t
11700 s,@DEPDIR@,$DEPDIR,;t t
11701 s,@am__include@,$am__include,;t t
11702 s,@am__quote@,$am__quote,;t t
11703 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11704 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11705 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11706 s,@CCDEPMODE@,$CCDEPMODE,;t t
11707 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11708 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11709 s,@LN_S@,$LN_S,;t t
11710 s,@RANLIB@,$RANLIB,;t t
11711 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11712 s,@LIBTOOL@,$LIBTOOL,;t t
11713 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11714 s,@NO_WERROR@,$NO_WERROR,;t t
11715 s,@GDBINIT@,$GDBINIT,;t t
11716 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
11717 s,@extra_objects@,$extra_objects,;t t
11718 s,@target_cpu_type@,$target_cpu_type,;t t
11719 s,@obj_format@,$obj_format,;t t
11720 s,@te_file@,$te_file,;t t
11721 s,@install_tooldir@,$install_tooldir,;t t
11722 s,@atof@,$atof,;t t
11723 s,@BFDLIB@,$BFDLIB,;t t
11724 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
11725 s,@BFDVER_H@,$BFDVER_H,;t t
11726 s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
11727 s,@YACC@,$YACC,;t t
11728 s,@LEX@,$LEX,;t t
11729 s,@LEXLIB@,$LEXLIB,;t t
11730 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11731 s,@CPP@,$CPP,;t t
11732 s,@EGREP@,$EGREP,;t t
11733 s,@ALLOCA@,$ALLOCA,;t t
11734 s,@USE_NLS@,$USE_NLS,;t t
11735 s,@MSGFMT@,$MSGFMT,;t t
11736 s,@GMSGFMT@,$GMSGFMT,;t t
11737 s,@XGETTEXT@,$XGETTEXT,;t t
11738 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11739 s,@CATALOGS@,$CATALOGS,;t t
11740 s,@CATOBJEXT@,$CATOBJEXT,;t t
11741 s,@DATADIRNAME@,$DATADIRNAME,;t t
11742 s,@GMOFILES@,$GMOFILES,;t t
11743 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11744 s,@INTLDEPS@,$INTLDEPS,;t t
11745 s,@INTLLIBS@,$INTLLIBS,;t t
11746 s,@INTLOBJS@,$INTLOBJS,;t t
11747 s,@POFILES@,$POFILES,;t t
11748 s,@POSUB@,$POSUB,;t t
11749 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11750 s,@GT_NO@,$GT_NO,;t t
11751 s,@GT_YES@,$GT_YES,;t t
11752 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11753 s,@l@,$l,;t t
11754 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11755 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11756 s,@MAINT@,$MAINT,;t t
11757 s,@LIBM@,$LIBM,;t t
11758 s,@LIBOBJS@,$LIBOBJS,;t t
11759 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11760 CEOF
11762 _ACEOF
11764 cat >>$CONFIG_STATUS <<\_ACEOF
11765 # Split the substitutions into bite-sized pieces for seds with
11766 # small command number limits, like on Digital OSF/1 and HP-UX.
11767 ac_max_sed_lines=48
11768 ac_sed_frag=1 # Number of current file.
11769 ac_beg=1 # First line for current file.
11770 ac_end=$ac_max_sed_lines # Line after last line for current file.
11771 ac_more_lines=:
11772 ac_sed_cmds=
11773 while $ac_more_lines; do
11774 if test $ac_beg -gt 1; then
11775 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11776 else
11777 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11779 if test ! -s $tmp/subs.frag; then
11780 ac_more_lines=false
11781 else
11782 # The purpose of the label and of the branching condition is to
11783 # speed up the sed processing (if there are no `@' at all, there
11784 # is no need to browse any of the substitutions).
11785 # These are the two extra sed commands mentioned above.
11786 (echo ':t
11787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11788 if test -z "$ac_sed_cmds"; then
11789 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11790 else
11791 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11793 ac_sed_frag=`expr $ac_sed_frag + 1`
11794 ac_beg=$ac_end
11795 ac_end=`expr $ac_end + $ac_max_sed_lines`
11797 done
11798 if test -z "$ac_sed_cmds"; then
11799 ac_sed_cmds=cat
11801 fi # test -n "$CONFIG_FILES"
11803 _ACEOF
11804 cat >>$CONFIG_STATUS <<\_ACEOF
11805 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11806 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11807 case $ac_file in
11808 - | *:- | *:-:* ) # input from stdin
11809 cat >$tmp/stdin
11810 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11811 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11812 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11814 * ) ac_file_in=$ac_file.in ;;
11815 esac
11817 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11818 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11820 X"$ac_file" : 'X\(//\)[^/]' \| \
11821 X"$ac_file" : 'X\(//\)$' \| \
11822 X"$ac_file" : 'X\(/\)' \| \
11823 . : '\(.\)' 2>/dev/null ||
11824 echo X"$ac_file" |
11825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11827 /^X\(\/\/\)$/{ s//\1/; q; }
11828 /^X\(\/\).*/{ s//\1/; q; }
11829 s/.*/./; q'`
11830 { if $as_mkdir_p; then
11831 mkdir -p "$ac_dir"
11832 else
11833 as_dir="$ac_dir"
11834 as_dirs=
11835 while test ! -d "$as_dir"; do
11836 as_dirs="$as_dir $as_dirs"
11837 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11839 X"$as_dir" : 'X\(//\)[^/]' \| \
11840 X"$as_dir" : 'X\(//\)$' \| \
11841 X"$as_dir" : 'X\(/\)' \| \
11842 . : '\(.\)' 2>/dev/null ||
11843 echo X"$as_dir" |
11844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11846 /^X\(\/\/\)$/{ s//\1/; q; }
11847 /^X\(\/\).*/{ s//\1/; q; }
11848 s/.*/./; q'`
11849 done
11850 test ! -n "$as_dirs" || mkdir $as_dirs
11851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11852 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11853 { (exit 1); exit 1; }; }; }
11855 ac_builddir=.
11857 if test "$ac_dir" != .; then
11858 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11859 # A "../" for each directory in $ac_dir_suffix.
11860 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11861 else
11862 ac_dir_suffix= ac_top_builddir=
11865 case $srcdir in
11866 .) # No --srcdir option. We are building in place.
11867 ac_srcdir=.
11868 if test -z "$ac_top_builddir"; then
11869 ac_top_srcdir=.
11870 else
11871 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11872 fi ;;
11873 [\\/]* | ?:[\\/]* ) # Absolute path.
11874 ac_srcdir=$srcdir$ac_dir_suffix;
11875 ac_top_srcdir=$srcdir ;;
11876 *) # Relative path.
11877 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11878 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11879 esac
11881 # Do not use `cd foo && pwd` to compute absolute paths, because
11882 # the directories may not exist.
11883 case `pwd` in
11884 .) ac_abs_builddir="$ac_dir";;
11886 case "$ac_dir" in
11887 .) ac_abs_builddir=`pwd`;;
11888 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11889 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11890 esac;;
11891 esac
11892 case $ac_abs_builddir in
11893 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11895 case ${ac_top_builddir}. in
11896 .) ac_abs_top_builddir=$ac_abs_builddir;;
11897 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11898 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11899 esac;;
11900 esac
11901 case $ac_abs_builddir in
11902 .) ac_abs_srcdir=$ac_srcdir;;
11904 case $ac_srcdir in
11905 .) ac_abs_srcdir=$ac_abs_builddir;;
11906 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11907 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11908 esac;;
11909 esac
11910 case $ac_abs_builddir in
11911 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11913 case $ac_top_srcdir in
11914 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11915 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11916 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11917 esac;;
11918 esac
11921 case $INSTALL in
11922 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11923 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11924 esac
11926 if test x"$ac_file" != x-; then
11927 { echo "$as_me:$LINENO: creating $ac_file" >&5
11928 echo "$as_me: creating $ac_file" >&6;}
11929 rm -f "$ac_file"
11931 # Let's still pretend it is `configure' which instantiates (i.e., don't
11932 # use $as_me), people would be surprised to read:
11933 # /* config.h. Generated by config.status. */
11934 if test x"$ac_file" = x-; then
11935 configure_input=
11936 else
11937 configure_input="$ac_file. "
11939 configure_input=$configure_input"Generated from `echo $ac_file_in |
11940 sed 's,.*/,,'` by configure."
11942 # First look for the input files in the build tree, otherwise in the
11943 # src tree.
11944 ac_file_inputs=`IFS=:
11945 for f in $ac_file_in; do
11946 case $f in
11947 -) echo $tmp/stdin ;;
11948 [\\/$]*)
11949 # Absolute (can't be DOS-style, as IFS=:)
11950 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11951 echo "$as_me: error: cannot find input file: $f" >&2;}
11952 { (exit 1); exit 1; }; }
11953 echo "$f";;
11954 *) # Relative
11955 if test -f "$f"; then
11956 # Build tree
11957 echo "$f"
11958 elif test -f "$srcdir/$f"; then
11959 # Source tree
11960 echo "$srcdir/$f"
11961 else
11962 # /dev/null tree
11963 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11964 echo "$as_me: error: cannot find input file: $f" >&2;}
11965 { (exit 1); exit 1; }; }
11966 fi;;
11967 esac
11968 done` || { (exit 1); exit 1; }
11969 _ACEOF
11970 cat >>$CONFIG_STATUS <<_ACEOF
11971 sed "$ac_vpsub
11972 $extrasub
11973 _ACEOF
11974 cat >>$CONFIG_STATUS <<\_ACEOF
11976 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11977 s,@configure_input@,$configure_input,;t t
11978 s,@srcdir@,$ac_srcdir,;t t
11979 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11980 s,@top_srcdir@,$ac_top_srcdir,;t t
11981 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11982 s,@builddir@,$ac_builddir,;t t
11983 s,@abs_builddir@,$ac_abs_builddir,;t t
11984 s,@top_builddir@,$ac_top_builddir,;t t
11985 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11986 s,@INSTALL@,$ac_INSTALL,;t t
11987 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11988 rm -f $tmp/stdin
11989 if test x"$ac_file" != x-; then
11990 mv $tmp/out $ac_file
11991 else
11992 cat $tmp/out
11993 rm -f $tmp/out
11996 done
11997 _ACEOF
11998 cat >>$CONFIG_STATUS <<\_ACEOF
12001 # CONFIG_HEADER section.
12004 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12005 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12007 # ac_d sets the value in "#define NAME VALUE" lines.
12008 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12009 ac_dB='[ ].*$,\1#\2'
12010 ac_dC=' '
12011 ac_dD=',;t'
12012 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12013 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12014 ac_uB='$,\1#\2define\3'
12015 ac_uC=' '
12016 ac_uD=',;t'
12018 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12019 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12020 case $ac_file in
12021 - | *:- | *:-:* ) # input from stdin
12022 cat >$tmp/stdin
12023 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12024 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12025 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12026 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12027 * ) ac_file_in=$ac_file.in ;;
12028 esac
12030 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12031 echo "$as_me: creating $ac_file" >&6;}
12033 # First look for the input files in the build tree, otherwise in the
12034 # src tree.
12035 ac_file_inputs=`IFS=:
12036 for f in $ac_file_in; do
12037 case $f in
12038 -) echo $tmp/stdin ;;
12039 [\\/$]*)
12040 # Absolute (can't be DOS-style, as IFS=:)
12041 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12042 echo "$as_me: error: cannot find input file: $f" >&2;}
12043 { (exit 1); exit 1; }; }
12044 # Do quote $f, to prevent DOS paths from being IFS'd.
12045 echo "$f";;
12046 *) # Relative
12047 if test -f "$f"; then
12048 # Build tree
12049 echo "$f"
12050 elif test -f "$srcdir/$f"; then
12051 # Source tree
12052 echo "$srcdir/$f"
12053 else
12054 # /dev/null tree
12055 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12056 echo "$as_me: error: cannot find input file: $f" >&2;}
12057 { (exit 1); exit 1; }; }
12058 fi;;
12059 esac
12060 done` || { (exit 1); exit 1; }
12061 # Remove the trailing spaces.
12062 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12064 _ACEOF
12066 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12067 # `conftest.undefs', that substitutes the proper values into
12068 # config.h.in to produce config.h. The first handles `#define'
12069 # templates, and the second `#undef' templates.
12070 # And first: Protect against being on the right side of a sed subst in
12071 # config.status. Protect against being in an unquoted here document
12072 # in config.status.
12073 rm -f conftest.defines conftest.undefs
12074 # Using a here document instead of a string reduces the quoting nightmare.
12075 # Putting comments in sed scripts is not portable.
12077 # `end' is used to avoid that the second main sed command (meant for
12078 # 0-ary CPP macros) applies to n-ary macro definitions.
12079 # See the Autoconf documentation for `clear'.
12080 cat >confdef2sed.sed <<\_ACEOF
12081 s/[\\&,]/\\&/g
12082 s,[\\$`],\\&,g
12083 t clear
12084 : clear
12085 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12086 t end
12087 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12088 : end
12089 _ACEOF
12090 # If some macros were called several times there might be several times
12091 # the same #defines, which is useless. Nevertheless, we may not want to
12092 # sort them, since we want the *last* AC-DEFINE to be honored.
12093 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12094 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12095 rm -f confdef2sed.sed
12097 # This sed command replaces #undef with comments. This is necessary, for
12098 # example, in the case of _POSIX_SOURCE, which is predefined and required
12099 # on some systems where configure will not decide to define it.
12100 cat >>conftest.undefs <<\_ACEOF
12101 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12102 _ACEOF
12104 # Break up conftest.defines because some shells have a limit on the size
12105 # of here documents, and old seds have small limits too (100 cmds).
12106 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12107 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12108 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12109 echo ' :' >>$CONFIG_STATUS
12110 rm -f conftest.tail
12111 while grep . conftest.defines >/dev/null
12113 # Write a limited-size here document to $tmp/defines.sed.
12114 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12115 # Speed up: don't consider the non `#define' lines.
12116 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12117 # Work around the forget-to-reset-the-flag bug.
12118 echo 't clr' >>$CONFIG_STATUS
12119 echo ': clr' >>$CONFIG_STATUS
12120 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12121 echo 'CEOF
12122 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12123 rm -f $tmp/in
12124 mv $tmp/out $tmp/in
12125 ' >>$CONFIG_STATUS
12126 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12127 rm -f conftest.defines
12128 mv conftest.tail conftest.defines
12129 done
12130 rm -f conftest.defines
12131 echo ' fi # grep' >>$CONFIG_STATUS
12132 echo >>$CONFIG_STATUS
12134 # Break up conftest.undefs because some shells have a limit on the size
12135 # of here documents, and old seds have small limits too (100 cmds).
12136 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12137 rm -f conftest.tail
12138 while grep . conftest.undefs >/dev/null
12140 # Write a limited-size here document to $tmp/undefs.sed.
12141 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12142 # Speed up: don't consider the non `#undef'
12143 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12144 # Work around the forget-to-reset-the-flag bug.
12145 echo 't clr' >>$CONFIG_STATUS
12146 echo ': clr' >>$CONFIG_STATUS
12147 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12148 echo 'CEOF
12149 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12150 rm -f $tmp/in
12151 mv $tmp/out $tmp/in
12152 ' >>$CONFIG_STATUS
12153 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12154 rm -f conftest.undefs
12155 mv conftest.tail conftest.undefs
12156 done
12157 rm -f conftest.undefs
12159 cat >>$CONFIG_STATUS <<\_ACEOF
12160 # Let's still pretend it is `configure' which instantiates (i.e., don't
12161 # use $as_me), people would be surprised to read:
12162 # /* config.h. Generated by config.status. */
12163 if test x"$ac_file" = x-; then
12164 echo "/* Generated by configure. */" >$tmp/config.h
12165 else
12166 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12168 cat $tmp/in >>$tmp/config.h
12169 rm -f $tmp/in
12170 if test x"$ac_file" != x-; then
12171 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12172 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12173 echo "$as_me: $ac_file is unchanged" >&6;}
12174 else
12175 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12176 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12177 X"$ac_file" : 'X\(//\)[^/]' \| \
12178 X"$ac_file" : 'X\(//\)$' \| \
12179 X"$ac_file" : 'X\(/\)' \| \
12180 . : '\(.\)' 2>/dev/null ||
12181 echo X"$ac_file" |
12182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12184 /^X\(\/\/\)$/{ s//\1/; q; }
12185 /^X\(\/\).*/{ s//\1/; q; }
12186 s/.*/./; q'`
12187 { if $as_mkdir_p; then
12188 mkdir -p "$ac_dir"
12189 else
12190 as_dir="$ac_dir"
12191 as_dirs=
12192 while test ! -d "$as_dir"; do
12193 as_dirs="$as_dir $as_dirs"
12194 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12196 X"$as_dir" : 'X\(//\)[^/]' \| \
12197 X"$as_dir" : 'X\(//\)$' \| \
12198 X"$as_dir" : 'X\(/\)' \| \
12199 . : '\(.\)' 2>/dev/null ||
12200 echo X"$as_dir" |
12201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12203 /^X\(\/\/\)$/{ s//\1/; q; }
12204 /^X\(\/\).*/{ s//\1/; q; }
12205 s/.*/./; q'`
12206 done
12207 test ! -n "$as_dirs" || mkdir $as_dirs
12208 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12209 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12210 { (exit 1); exit 1; }; }; }
12212 rm -f $ac_file
12213 mv $tmp/config.h $ac_file
12215 else
12216 cat $tmp/config.h
12217 rm -f $tmp/config.h
12219 # Compute $ac_file's index in $config_headers.
12220 _am_stamp_count=1
12221 for _am_header in $config_headers :; do
12222 case $_am_header in
12223 $ac_file | $ac_file:* )
12224 break ;;
12226 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12227 esac
12228 done
12229 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12230 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12231 X$ac_file : 'X\(//\)[^/]' \| \
12232 X$ac_file : 'X\(//\)$' \| \
12233 X$ac_file : 'X\(/\)' \| \
12234 . : '\(.\)' 2>/dev/null ||
12235 echo X$ac_file |
12236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12238 /^X\(\/\/\)$/{ s//\1/; q; }
12239 /^X\(\/\).*/{ s//\1/; q; }
12240 s/.*/./; q'`/stamp-h$_am_stamp_count
12241 done
12242 _ACEOF
12243 cat >>$CONFIG_STATUS <<\_ACEOF
12246 # CONFIG_COMMANDS section.
12248 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12249 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12250 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12251 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12252 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12253 X"$ac_dest" : 'X\(//\)[^/]' \| \
12254 X"$ac_dest" : 'X\(//\)$' \| \
12255 X"$ac_dest" : 'X\(/\)' \| \
12256 . : '\(.\)' 2>/dev/null ||
12257 echo X"$ac_dest" |
12258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12259 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12260 /^X\(\/\/\)$/{ s//\1/; q; }
12261 /^X\(\/\).*/{ s//\1/; q; }
12262 s/.*/./; q'`
12263 { if $as_mkdir_p; then
12264 mkdir -p "$ac_dir"
12265 else
12266 as_dir="$ac_dir"
12267 as_dirs=
12268 while test ! -d "$as_dir"; do
12269 as_dirs="$as_dir $as_dirs"
12270 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12272 X"$as_dir" : 'X\(//\)[^/]' \| \
12273 X"$as_dir" : 'X\(//\)$' \| \
12274 X"$as_dir" : 'X\(/\)' \| \
12275 . : '\(.\)' 2>/dev/null ||
12276 echo X"$as_dir" |
12277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12279 /^X\(\/\/\)$/{ s//\1/; q; }
12280 /^X\(\/\).*/{ s//\1/; q; }
12281 s/.*/./; q'`
12282 done
12283 test ! -n "$as_dirs" || mkdir $as_dirs
12284 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12285 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12286 { (exit 1); exit 1; }; }; }
12288 ac_builddir=.
12290 if test "$ac_dir" != .; then
12291 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12292 # A "../" for each directory in $ac_dir_suffix.
12293 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12294 else
12295 ac_dir_suffix= ac_top_builddir=
12298 case $srcdir in
12299 .) # No --srcdir option. We are building in place.
12300 ac_srcdir=.
12301 if test -z "$ac_top_builddir"; then
12302 ac_top_srcdir=.
12303 else
12304 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12305 fi ;;
12306 [\\/]* | ?:[\\/]* ) # Absolute path.
12307 ac_srcdir=$srcdir$ac_dir_suffix;
12308 ac_top_srcdir=$srcdir ;;
12309 *) # Relative path.
12310 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12311 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12312 esac
12314 # Do not use `cd foo && pwd` to compute absolute paths, because
12315 # the directories may not exist.
12316 case `pwd` in
12317 .) ac_abs_builddir="$ac_dir";;
12319 case "$ac_dir" in
12320 .) ac_abs_builddir=`pwd`;;
12321 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12322 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12323 esac;;
12324 esac
12325 case $ac_abs_builddir in
12326 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12328 case ${ac_top_builddir}. in
12329 .) ac_abs_top_builddir=$ac_abs_builddir;;
12330 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12331 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12332 esac;;
12333 esac
12334 case $ac_abs_builddir in
12335 .) ac_abs_srcdir=$ac_srcdir;;
12337 case $ac_srcdir in
12338 .) ac_abs_srcdir=$ac_abs_builddir;;
12339 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12340 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12341 esac;;
12342 esac
12343 case $ac_abs_builddir in
12344 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12346 case $ac_top_srcdir in
12347 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12348 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12349 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12350 esac;;
12351 esac
12354 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12355 echo "$as_me: executing $ac_dest commands" >&6;}
12356 case $ac_dest in
12357 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12358 # Strip MF so we end up with the name of the file.
12359 mf=`echo "$mf" | sed -e 's/:.*$//'`
12360 # Check whether this is an Automake generated Makefile or not.
12361 # We used to match only the files named `Makefile.in', but
12362 # some people rename them; so instead we look at the file content.
12363 # Grep'ing the first line is not enough: some people post-process
12364 # each Makefile.in and add a new line on top of each file to say so.
12365 # So let's grep whole file.
12366 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12367 dirpart=`(dirname "$mf") 2>/dev/null ||
12368 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12369 X"$mf" : 'X\(//\)[^/]' \| \
12370 X"$mf" : 'X\(//\)$' \| \
12371 X"$mf" : 'X\(/\)' \| \
12372 . : '\(.\)' 2>/dev/null ||
12373 echo X"$mf" |
12374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12375 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12376 /^X\(\/\/\)$/{ s//\1/; q; }
12377 /^X\(\/\).*/{ s//\1/; q; }
12378 s/.*/./; q'`
12379 else
12380 continue
12382 # Extract the definition of DEPDIR, am__include, and am__quote
12383 # from the Makefile without running `make'.
12384 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12385 test -z "$DEPDIR" && continue
12386 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12387 test -z "am__include" && continue
12388 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12389 # When using ansi2knr, U may be empty or an underscore; expand it
12390 U=`sed -n 's/^U = //p' < "$mf"`
12391 # Find all dependency output files, they are included files with
12392 # $(DEPDIR) in their names. We invoke sed twice because it is the
12393 # simplest approach to changing $(DEPDIR) to its actual value in the
12394 # expansion.
12395 for file in `sed -n "
12396 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12397 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12398 # Make sure the directory exists.
12399 test -f "$dirpart/$file" && continue
12400 fdir=`(dirname "$file") 2>/dev/null ||
12401 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12402 X"$file" : 'X\(//\)[^/]' \| \
12403 X"$file" : 'X\(//\)$' \| \
12404 X"$file" : 'X\(/\)' \| \
12405 . : '\(.\)' 2>/dev/null ||
12406 echo X"$file" |
12407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12409 /^X\(\/\/\)$/{ s//\1/; q; }
12410 /^X\(\/\).*/{ s//\1/; q; }
12411 s/.*/./; q'`
12412 { if $as_mkdir_p; then
12413 mkdir -p $dirpart/$fdir
12414 else
12415 as_dir=$dirpart/$fdir
12416 as_dirs=
12417 while test ! -d "$as_dir"; do
12418 as_dirs="$as_dir $as_dirs"
12419 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12421 X"$as_dir" : 'X\(//\)[^/]' \| \
12422 X"$as_dir" : 'X\(//\)$' \| \
12423 X"$as_dir" : 'X\(/\)' \| \
12424 . : '\(.\)' 2>/dev/null ||
12425 echo X"$as_dir" |
12426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12427 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12428 /^X\(\/\/\)$/{ s//\1/; q; }
12429 /^X\(\/\).*/{ s//\1/; q; }
12430 s/.*/./; q'`
12431 done
12432 test ! -n "$as_dirs" || mkdir $as_dirs
12433 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12434 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12435 { (exit 1); exit 1; }; }; }
12437 # echo "creating $dirpart/$file"
12438 echo '# dummy' > "$dirpart/$file"
12439 done
12440 done
12442 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
12443 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
12444 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
12445 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
12446 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
12447 if test "x$cgen_cpu_prefix" != x ; then
12448 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
12451 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12452 esac
12453 done
12454 _ACEOF
12456 cat >>$CONFIG_STATUS <<\_ACEOF
12458 { (exit 0); exit 0; }
12459 _ACEOF
12460 chmod +x $CONFIG_STATUS
12461 ac_clean_files=$ac_clean_files_save
12464 # configure is writing to config.log, and then calls config.status.
12465 # config.status does its own redirection, appending to config.log.
12466 # Unfortunately, on DOS this fails, as config.log is still kept open
12467 # by configure, so config.status won't be able to write to it; its
12468 # output is simply discarded. So we exec the FD to /dev/null,
12469 # effectively closing config.log, so it can be properly (re)opened and
12470 # appended to by config.status. When coming back to configure, we
12471 # need to make the FD available again.
12472 if test "$no_create" != yes; then
12473 ac_cs_success=:
12474 ac_config_status_args=
12475 test "$silent" = yes &&
12476 ac_config_status_args="$ac_config_status_args --quiet"
12477 exec 5>/dev/null
12478 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12479 exec 5>>config.log
12480 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12481 # would make configure fail if this is the last instruction.
12482 $ac_cs_success || { (exit 1); exit 1; }