]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/configure
[ bfd/ChangeLog ]
[thirdparty/binutils-gdb.git] / gas / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
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
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="as.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 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'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649 done
650
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671 do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724 else
725 ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
830
831 cat <<\_ACEOF
832
833 Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
837
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 --target=TARGET configure for building compilers for TARGET [HOST]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847 cat <<\_ACEOF
848
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-dependency-tracking Speeds up one-time builds
853 --enable-dependency-tracking Do not reject slow dependency extractors
854 --enable-shared=PKGS build shared libraries default=yes
855 --enable-static=PKGS build static libraries default=yes
856 --enable-fast-install=PKGS optimize for fast installation default=yes
857 --disable-libtool-lock avoid locking (might break parallel builds)
858 --enable-bfd-assembler use BFD back end for writing object files
859 targets alternative target configurations besides the primary
860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
861 --enable-build-warnings Enable build-time compiler warnings if gcc is used
862 --disable-nls do not use Native Language Support
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865
866 Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-pic try to use only PIC/non-PIC objects default=use both
871 --with-included-gettext use the GNU gettext library included here
872
873 Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
880 CPP C preprocessor
881
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
884
885 _ACEOF
886 fi
887
888 if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
894
895 if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 else
900 ac_dir_suffix= ac_top_builddir=
901 fi
902
903 case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 fi ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 esac
918 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
919 # absolute.
920 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
921 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
922 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
923 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
924
925 cd $ac_dir
926 # Check for guested configure; otherwise get Cygnus style configure.
927 if test -f $ac_srcdir/configure.gnu; then
928 echo
929 $SHELL $ac_srcdir/configure.gnu --help=recursive
930 elif test -f $ac_srcdir/configure; then
931 echo
932 $SHELL $ac_srcdir/configure --help=recursive
933 elif test -f $ac_srcdir/configure.ac ||
934 test -f $ac_srcdir/configure.in; then
935 echo
936 $ac_configure --help
937 else
938 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
939 fi
940 cd $ac_popdir
941 done
942 fi
943
944 test -n "$ac_init_help" && exit 0
945 if $ac_init_version; then
946 cat <<\_ACEOF
947
948 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
949 Free Software Foundation, Inc.
950 This configure script is free software; the Free Software Foundation
951 gives unlimited permission to copy, distribute and modify it.
952 _ACEOF
953 exit 0
954 fi
955 exec 5>config.log
956 cat >&5 <<_ACEOF
957 This file contains any messages produced by compilers while
958 running configure, to aid debugging if configure makes a mistake.
959
960 It was created by $as_me, which was
961 generated by GNU Autoconf 2.57. Invocation command line was
962
963 $ $0 $@
964
965 _ACEOF
966 {
967 cat <<_ASUNAME
968 ## --------- ##
969 ## Platform. ##
970 ## --------- ##
971
972 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
973 uname -m = `(uname -m) 2>/dev/null || echo unknown`
974 uname -r = `(uname -r) 2>/dev/null || echo unknown`
975 uname -s = `(uname -s) 2>/dev/null || echo unknown`
976 uname -v = `(uname -v) 2>/dev/null || echo unknown`
977
978 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
979 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
980
981 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
982 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
983 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
984 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
985 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
986 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
987 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
988
989 _ASUNAME
990
991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
992 for as_dir in $PATH
993 do
994 IFS=$as_save_IFS
995 test -z "$as_dir" && as_dir=.
996 echo "PATH: $as_dir"
997 done
998
999 } >&5
1000
1001 cat >&5 <<_ACEOF
1002
1003
1004 ## ----------- ##
1005 ## Core tests. ##
1006 ## ----------- ##
1007
1008 _ACEOF
1009
1010
1011 # Keep a trace of the command line.
1012 # Strip out --no-create and --no-recursion so they do not pile up.
1013 # Strip out --silent because we don't want to record it for future runs.
1014 # Also quote any args containing shell meta-characters.
1015 # Make two passes to allow for proper duplicate-argument suppression.
1016 ac_configure_args=
1017 ac_configure_args0=
1018 ac_configure_args1=
1019 ac_sep=
1020 ac_must_keep_next=false
1021 for ac_pass in 1 2
1022 do
1023 for ac_arg
1024 do
1025 case $ac_arg in
1026 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028 | -silent | --silent | --silen | --sile | --sil)
1029 continue ;;
1030 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1031 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1032 esac
1033 case $ac_pass in
1034 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1035 2)
1036 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1037 if test $ac_must_keep_next = true; then
1038 ac_must_keep_next=false # Got value, back to normal.
1039 else
1040 case $ac_arg in
1041 *=* | --config-cache | -C | -disable-* | --disable-* \
1042 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1043 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1044 | -with-* | --with-* | -without-* | --without-* | --x)
1045 case "$ac_configure_args0 " in
1046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1047 esac
1048 ;;
1049 -* ) ac_must_keep_next=true ;;
1050 esac
1051 fi
1052 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1053 # Get rid of the leading space.
1054 ac_sep=" "
1055 ;;
1056 esac
1057 done
1058 done
1059 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1060 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1061
1062 # When interrupted or exit'd, cleanup temporary files, and complete
1063 # config.log. We remove comments because anyway the quotes in there
1064 # would cause problems or look ugly.
1065 # WARNING: Be sure not to use single quotes in there, as some shells,
1066 # such as our DU 5.0 friend, will then `close' the trap.
1067 trap 'exit_status=$?
1068 # Save into config.log some information that might help in debugging.
1069 {
1070 echo
1071
1072 cat <<\_ASBOX
1073 ## ---------------- ##
1074 ## Cache variables. ##
1075 ## ---------------- ##
1076 _ASBOX
1077 echo
1078 # The following way of writing the cache mishandles newlines in values,
1079 {
1080 (set) 2>&1 |
1081 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1082 *ac_space=\ *)
1083 sed -n \
1084 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1086 ;;
1087 *)
1088 sed -n \
1089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090 ;;
1091 esac;
1092 }
1093 echo
1094
1095 cat <<\_ASBOX
1096 ## ----------------- ##
1097 ## Output variables. ##
1098 ## ----------------- ##
1099 _ASBOX
1100 echo
1101 for ac_var in $ac_subst_vars
1102 do
1103 eval ac_val=$`echo $ac_var`
1104 echo "$ac_var='"'"'$ac_val'"'"'"
1105 done | sort
1106 echo
1107
1108 if test -n "$ac_subst_files"; then
1109 cat <<\_ASBOX
1110 ## ------------- ##
1111 ## Output files. ##
1112 ## ------------- ##
1113 _ASBOX
1114 echo
1115 for ac_var in $ac_subst_files
1116 do
1117 eval ac_val=$`echo $ac_var`
1118 echo "$ac_var='"'"'$ac_val'"'"'"
1119 done | sort
1120 echo
1121 fi
1122
1123 if test -s confdefs.h; then
1124 cat <<\_ASBOX
1125 ## ----------- ##
1126 ## confdefs.h. ##
1127 ## ----------- ##
1128 _ASBOX
1129 echo
1130 sed "/^$/d" confdefs.h | sort
1131 echo
1132 fi
1133 test "$ac_signal" != 0 &&
1134 echo "$as_me: caught signal $ac_signal"
1135 echo "$as_me: exit $exit_status"
1136 } >&5
1137 rm -f core core.* *.core &&
1138 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1139 exit $exit_status
1140 ' 0
1141 for ac_signal in 1 2 13 15; do
1142 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1143 done
1144 ac_signal=0
1145
1146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1147 rm -rf conftest* confdefs.h
1148 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1149 echo >confdefs.h
1150
1151 # Predefined preprocessor variables.
1152
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_NAME "$PACKAGE_NAME"
1155 _ACEOF
1156
1157
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1160 _ACEOF
1161
1162
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1165 _ACEOF
1166
1167
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_STRING "$PACKAGE_STRING"
1170 _ACEOF
1171
1172
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1175 _ACEOF
1176
1177
1178 # Let the site file select an alternate cache file if it wants to.
1179 # Prefer explicitly selected file to automatically selected ones.
1180 if test -z "$CONFIG_SITE"; then
1181 if test "x$prefix" != xNONE; then
1182 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1183 else
1184 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1185 fi
1186 fi
1187 for ac_site_file in $CONFIG_SITE; do
1188 if test -r "$ac_site_file"; then
1189 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1190 echo "$as_me: loading site script $ac_site_file" >&6;}
1191 sed 's/^/| /' "$ac_site_file" >&5
1192 . "$ac_site_file"
1193 fi
1194 done
1195
1196 if test -r "$cache_file"; then
1197 # Some versions of bash will fail to source /dev/null (special
1198 # files actually), so we avoid doing that.
1199 if test -f "$cache_file"; then
1200 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1201 echo "$as_me: loading cache $cache_file" >&6;}
1202 case $cache_file in
1203 [\\/]* | ?:[\\/]* ) . $cache_file;;
1204 *) . ./$cache_file;;
1205 esac
1206 fi
1207 else
1208 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1209 echo "$as_me: creating cache $cache_file" >&6;}
1210 >$cache_file
1211 fi
1212
1213 # Check that the precious variables saved in the cache have kept the same
1214 # value.
1215 ac_cache_corrupted=false
1216 for ac_var in `(set) 2>&1 |
1217 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1218 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1219 eval ac_new_set=\$ac_env_${ac_var}_set
1220 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1221 eval ac_new_val="\$ac_env_${ac_var}_value"
1222 case $ac_old_set,$ac_new_set in
1223 set,)
1224 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1225 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1226 ac_cache_corrupted=: ;;
1227 ,set)
1228 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1229 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1230 ac_cache_corrupted=: ;;
1231 ,);;
1232 *)
1233 if test "x$ac_old_val" != "x$ac_new_val"; then
1234 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1235 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1236 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1237 echo "$as_me: former value: $ac_old_val" >&2;}
1238 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1239 echo "$as_me: current value: $ac_new_val" >&2;}
1240 ac_cache_corrupted=:
1241 fi;;
1242 esac
1243 # Pass precious variables to config.status.
1244 if test "$ac_new_set" = set; then
1245 case $ac_new_val in
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1248 *) ac_arg=$ac_var=$ac_new_val ;;
1249 esac
1250 case " $ac_configure_args " in
1251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1252 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1253 esac
1254 fi
1255 done
1256 if $ac_cache_corrupted; then
1257 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1258 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1259 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1260 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1261 { (exit 1); exit 1; }; }
1262 fi
1263
1264 ac_ext=c
1265 ac_cpp='$CPP $CPPFLAGS'
1266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289 ac_aux_dir=
1290 for ac_dir in .. $srcdir/..; do
1291 if test -f $ac_dir/install-sh; then
1292 ac_aux_dir=$ac_dir
1293 ac_install_sh="$ac_aux_dir/install-sh -c"
1294 break
1295 elif test -f $ac_dir/install.sh; then
1296 ac_aux_dir=$ac_dir
1297 ac_install_sh="$ac_aux_dir/install.sh -c"
1298 break
1299 elif test -f $ac_dir/shtool; then
1300 ac_aux_dir=$ac_dir
1301 ac_install_sh="$ac_aux_dir/shtool install -c"
1302 break
1303 fi
1304 done
1305 if test -z "$ac_aux_dir"; then
1306 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1307 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1308 { (exit 1); exit 1; }; }
1309 fi
1310 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1311 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1312 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1313
1314 # Make sure we can run config.sub.
1315 $ac_config_sub sun4 >/dev/null 2>&1 ||
1316 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1317 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1318 { (exit 1); exit 1; }; }
1319
1320 echo "$as_me:$LINENO: checking build system type" >&5
1321 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1322 if test "${ac_cv_build+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" >&6
1324 else
1325 ac_cv_build_alias=$build_alias
1326 test -z "$ac_cv_build_alias" &&
1327 ac_cv_build_alias=`$ac_config_guess`
1328 test -z "$ac_cv_build_alias" &&
1329 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1330 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1331 { (exit 1); exit 1; }; }
1332 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1333 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1334 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1335 { (exit 1); exit 1; }; }
1336
1337 fi
1338 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1339 echo "${ECHO_T}$ac_cv_build" >&6
1340 build=$ac_cv_build
1341 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1342 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1343 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1344
1345
1346 echo "$as_me:$LINENO: checking host system type" >&5
1347 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1348 if test "${ac_cv_host+set}" = set; then
1349 echo $ECHO_N "(cached) $ECHO_C" >&6
1350 else
1351 ac_cv_host_alias=$host_alias
1352 test -z "$ac_cv_host_alias" &&
1353 ac_cv_host_alias=$ac_cv_build_alias
1354 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1355 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1356 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1357 { (exit 1); exit 1; }; }
1358
1359 fi
1360 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1361 echo "${ECHO_T}$ac_cv_host" >&6
1362 host=$ac_cv_host
1363 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1364 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1365 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1366
1367
1368 echo "$as_me:$LINENO: checking target system type" >&5
1369 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1370 if test "${ac_cv_target+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 else
1373 ac_cv_target_alias=$target_alias
1374 test "x$ac_cv_target_alias" = "x" &&
1375 ac_cv_target_alias=$ac_cv_host_alias
1376 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1378 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1379 { (exit 1); exit 1; }; }
1380
1381 fi
1382 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1383 echo "${ECHO_T}$ac_cv_target" >&6
1384 target=$ac_cv_target
1385 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388
1389
1390 # The aliases save the names the user supplied, while $host etc.
1391 # will get canonicalized.
1392 test -n "$target_alias" &&
1393 test "$program_prefix$program_suffix$program_transform_name" = \
1394 NONENONEs,x,x, &&
1395 program_prefix=${target_alias}-
1396 ac_ext=c
1397 ac_cpp='$CPP $CPPFLAGS'
1398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1401 if test -n "$ac_tool_prefix"; then
1402 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1403 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1404 echo "$as_me:$LINENO: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_CC+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409 if test -n "$CC"; then
1410 ac_cv_prog_CC="$CC" # Let the user override the test.
1411 else
1412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413 for as_dir in $PATH
1414 do
1415 IFS=$as_save_IFS
1416 test -z "$as_dir" && as_dir=.
1417 for ac_exec_ext in '' $ac_executable_extensions; do
1418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1419 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1421 break 2
1422 fi
1423 done
1424 done
1425
1426 fi
1427 fi
1428 CC=$ac_cv_prog_CC
1429 if test -n "$CC"; then
1430 echo "$as_me:$LINENO: result: $CC" >&5
1431 echo "${ECHO_T}$CC" >&6
1432 else
1433 echo "$as_me:$LINENO: result: no" >&5
1434 echo "${ECHO_T}no" >&6
1435 fi
1436
1437 fi
1438 if test -z "$ac_cv_prog_CC"; then
1439 ac_ct_CC=$CC
1440 # Extract the first word of "gcc", so it can be a program name with args.
1441 set dummy gcc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447 if test -n "$ac_ct_CC"; then
1448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1449 else
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1452 do
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_ac_ct_CC="gcc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 break 2
1460 fi
1461 done
1462 done
1463
1464 fi
1465 fi
1466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1467 if test -n "$ac_ct_CC"; then
1468 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1469 echo "${ECHO_T}$ac_ct_CC" >&6
1470 else
1471 echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1473 fi
1474
1475 CC=$ac_ct_CC
1476 else
1477 CC="$ac_cv_prog_CC"
1478 fi
1479
1480 if test -z "$CC"; then
1481 if test -n "$ac_tool_prefix"; then
1482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1483 set dummy ${ac_tool_prefix}cc; ac_word=$2
1484 echo "$as_me:$LINENO: checking for $ac_word" >&5
1485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1486 if test "${ac_cv_prog_CC+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489 if test -n "$CC"; then
1490 ac_cv_prog_CC="$CC" # Let the user override the test.
1491 else
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 for as_dir in $PATH
1494 do
1495 IFS=$as_save_IFS
1496 test -z "$as_dir" && as_dir=.
1497 for ac_exec_ext in '' $ac_executable_extensions; do
1498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499 ac_cv_prog_CC="${ac_tool_prefix}cc"
1500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501 break 2
1502 fi
1503 done
1504 done
1505
1506 fi
1507 fi
1508 CC=$ac_cv_prog_CC
1509 if test -n "$CC"; then
1510 echo "$as_me:$LINENO: result: $CC" >&5
1511 echo "${ECHO_T}$CC" >&6
1512 else
1513 echo "$as_me:$LINENO: result: no" >&5
1514 echo "${ECHO_T}no" >&6
1515 fi
1516
1517 fi
1518 if test -z "$ac_cv_prog_CC"; then
1519 ac_ct_CC=$CC
1520 # Extract the first word of "cc", so it can be a program name with args.
1521 set dummy cc; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527 if test -n "$ac_ct_CC"; then
1528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1529 else
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1532 do
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_ac_ct_CC="cc"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 break 2
1540 fi
1541 done
1542 done
1543
1544 fi
1545 fi
1546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1547 if test -n "$ac_ct_CC"; then
1548 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1549 echo "${ECHO_T}$ac_ct_CC" >&6
1550 else
1551 echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1553 fi
1554
1555 CC=$ac_ct_CC
1556 else
1557 CC="$ac_cv_prog_CC"
1558 fi
1559
1560 fi
1561 if test -z "$CC"; then
1562 # Extract the first word of "cc", so it can be a program name with args.
1563 set dummy cc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569 if test -n "$CC"; then
1570 ac_cv_prog_CC="$CC" # Let the user override the test.
1571 else
1572 ac_prog_rejected=no
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1575 do
1576 IFS=$as_save_IFS
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1581 ac_prog_rejected=yes
1582 continue
1583 fi
1584 ac_cv_prog_CC="cc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 break 2
1587 fi
1588 done
1589 done
1590
1591 if test $ac_prog_rejected = yes; then
1592 # We found a bogon in the path, so make sure we never use it.
1593 set dummy $ac_cv_prog_CC
1594 shift
1595 if test $# != 0; then
1596 # We chose a different compiler from the bogus one.
1597 # However, it has the same basename, so the bogon will be chosen
1598 # first if we set CC to just the basename; use the full file name.
1599 shift
1600 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1601 fi
1602 fi
1603 fi
1604 fi
1605 CC=$ac_cv_prog_CC
1606 if test -n "$CC"; then
1607 echo "$as_me:$LINENO: result: $CC" >&5
1608 echo "${ECHO_T}$CC" >&6
1609 else
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612 fi
1613
1614 fi
1615 if test -z "$CC"; then
1616 if test -n "$ac_tool_prefix"; then
1617 for ac_prog in cl
1618 do
1619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1628 else
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632 IFS=$as_save_IFS
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 break 2
1639 fi
1640 done
1641 done
1642
1643 fi
1644 fi
1645 CC=$ac_cv_prog_CC
1646 if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1649 else
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1652 fi
1653
1654 test -n "$CC" && break
1655 done
1656 fi
1657 if test -z "$CC"; then
1658 ac_ct_CC=$CC
1659 for ac_prog in cl
1660 do
1661 # Extract the first word of "$ac_prog", so it can be a program name with args.
1662 set dummy $ac_prog; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668 if test -n "$ac_ct_CC"; then
1669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1670 else
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 for as_dir in $PATH
1673 do
1674 IFS=$as_save_IFS
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_ac_ct_CC="$ac_prog"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 break 2
1681 fi
1682 done
1683 done
1684
1685 fi
1686 fi
1687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1688 if test -n "$ac_ct_CC"; then
1689 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1690 echo "${ECHO_T}$ac_ct_CC" >&6
1691 else
1692 echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1694 fi
1695
1696 test -n "$ac_ct_CC" && break
1697 done
1698
1699 CC=$ac_ct_CC
1700 fi
1701
1702 fi
1703
1704
1705 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1706 See \`config.log' for more details." >&5
1707 echo "$as_me: error: no acceptable C compiler found in \$PATH
1708 See \`config.log' for more details." >&2;}
1709 { (exit 1); exit 1; }; }
1710
1711 # Provide some information about the compiler.
1712 echo "$as_me:$LINENO:" \
1713 "checking for C compiler version" >&5
1714 ac_compiler=`set X $ac_compile; echo $2`
1715 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1716 (eval $ac_compiler --version </dev/null >&5) 2>&5
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1721 (eval $ac_compiler -v </dev/null >&5) 2>&5
1722 ac_status=$?
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1725 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1726 (eval $ac_compiler -V </dev/null >&5) 2>&5
1727 ac_status=$?
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }
1730
1731 cat >conftest.$ac_ext <<_ACEOF
1732 #line $LINENO "configure"
1733 /* confdefs.h. */
1734 _ACEOF
1735 cat confdefs.h >>conftest.$ac_ext
1736 cat >>conftest.$ac_ext <<_ACEOF
1737 /* end confdefs.h. */
1738
1739 int
1740 main ()
1741 {
1742
1743 ;
1744 return 0;
1745 }
1746 _ACEOF
1747 ac_clean_files_save=$ac_clean_files
1748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1749 # Try to create an executable without -o first, disregard a.out.
1750 # It will help us diagnose broken compilers, and finding out an intuition
1751 # of exeext.
1752 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1753 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1755 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1756 (eval $ac_link_default) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }; then
1760 # Find the output, starting from the most likely. This scheme is
1761 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1762 # resort.
1763
1764 # Be careful to initialize this variable, since it used to be cached.
1765 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1766 ac_cv_exeext=
1767 # b.out is created by i960 compilers.
1768 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1769 do
1770 test -f "$ac_file" || continue
1771 case $ac_file in
1772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1773 ;;
1774 conftest.$ac_ext )
1775 # This is the source file.
1776 ;;
1777 [ab].out )
1778 # We found the default executable, but exeext='' is most
1779 # certainly right.
1780 break;;
1781 *.* )
1782 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1783 # FIXME: I believe we export ac_cv_exeext for Libtool,
1784 # but it would be cool to find out if it's true. Does anybody
1785 # maintain Libtool? --akim.
1786 export ac_cv_exeext
1787 break;;
1788 * )
1789 break;;
1790 esac
1791 done
1792 else
1793 echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1797 See \`config.log' for more details." >&5
1798 echo "$as_me: error: C compiler cannot create executables
1799 See \`config.log' for more details." >&2;}
1800 { (exit 77); exit 77; }; }
1801 fi
1802
1803 ac_exeext=$ac_cv_exeext
1804 echo "$as_me:$LINENO: result: $ac_file" >&5
1805 echo "${ECHO_T}$ac_file" >&6
1806
1807 # Check the compiler produces executables we can run. If not, either
1808 # the compiler is broken, or we cross compile.
1809 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1810 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1811 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1812 # If not cross compiling, check that we can run a simple program.
1813 if test "$cross_compiling" != yes; then
1814 if { ac_try='./$ac_file'
1815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1816 (eval $ac_try) 2>&5
1817 ac_status=$?
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }; }; then
1820 cross_compiling=no
1821 else
1822 if test "$cross_compiling" = maybe; then
1823 cross_compiling=yes
1824 else
1825 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1826 If you meant to cross compile, use \`--host'.
1827 See \`config.log' for more details." >&5
1828 echo "$as_me: error: cannot run C compiled programs.
1829 If you meant to cross compile, use \`--host'.
1830 See \`config.log' for more details." >&2;}
1831 { (exit 1); exit 1; }; }
1832 fi
1833 fi
1834 fi
1835 echo "$as_me:$LINENO: result: yes" >&5
1836 echo "${ECHO_T}yes" >&6
1837
1838 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1839 ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
1843 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1844 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1845 echo "${ECHO_T}$cross_compiling" >&6
1846
1847 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1848 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1850 (eval $ac_link) 2>&5
1851 ac_status=$?
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }; then
1854 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1855 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1856 # work properly (i.e., refer to `conftest.exe'), while it won't with
1857 # `rm'.
1858 for ac_file in conftest.exe conftest conftest.*; do
1859 test -f "$ac_file" || continue
1860 case $ac_file in
1861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1862 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1863 export ac_cv_exeext
1864 break;;
1865 * ) break;;
1866 esac
1867 done
1868 else
1869 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1870 See \`config.log' for more details." >&5
1871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1872 See \`config.log' for more details." >&2;}
1873 { (exit 1); exit 1; }; }
1874 fi
1875
1876 rm -f conftest$ac_cv_exeext
1877 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1878 echo "${ECHO_T}$ac_cv_exeext" >&6
1879
1880 rm -f conftest.$ac_ext
1881 EXEEXT=$ac_cv_exeext
1882 ac_exeext=$EXEEXT
1883 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1885 if test "${ac_cv_objext+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 cat >conftest.$ac_ext <<_ACEOF
1889 #line $LINENO "configure"
1890 /* confdefs.h. */
1891 _ACEOF
1892 cat confdefs.h >>conftest.$ac_ext
1893 cat >>conftest.$ac_ext <<_ACEOF
1894 /* end confdefs.h. */
1895
1896 int
1897 main ()
1898 {
1899
1900 ;
1901 return 0;
1902 }
1903 _ACEOF
1904 rm -f conftest.o conftest.obj
1905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1906 (eval $ac_compile) 2>&5
1907 ac_status=$?
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }; then
1910 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1911 case $ac_file in
1912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1913 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1914 break;;
1915 esac
1916 done
1917 else
1918 echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1922 See \`config.log' for more details." >&5
1923 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1924 See \`config.log' for more details." >&2;}
1925 { (exit 1); exit 1; }; }
1926 fi
1927
1928 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1929 fi
1930 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1931 echo "${ECHO_T}$ac_cv_objext" >&6
1932 OBJEXT=$ac_cv_objext
1933 ac_objext=$OBJEXT
1934 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1935 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1936 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 cat >conftest.$ac_ext <<_ACEOF
1940 #line $LINENO "configure"
1941 /* confdefs.h. */
1942 _ACEOF
1943 cat confdefs.h >>conftest.$ac_ext
1944 cat >>conftest.$ac_ext <<_ACEOF
1945 /* end confdefs.h. */
1946
1947 int
1948 main ()
1949 {
1950 #ifndef __GNUC__
1951 choke me
1952 #endif
1953
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 rm -f conftest.$ac_objext
1959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1960 (eval $ac_compile) 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); } &&
1964 { ac_try='test -s conftest.$ac_objext'
1965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1966 (eval $ac_try) 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; }; then
1970 ac_compiler_gnu=yes
1971 else
1972 echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975 ac_compiler_gnu=no
1976 fi
1977 rm -f conftest.$ac_objext conftest.$ac_ext
1978 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1979
1980 fi
1981 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1982 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1983 GCC=`test $ac_compiler_gnu = yes && echo yes`
1984 ac_test_CFLAGS=${CFLAGS+set}
1985 ac_save_CFLAGS=$CFLAGS
1986 CFLAGS="-g"
1987 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1988 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1989 if test "${ac_cv_prog_cc_g+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 cat >conftest.$ac_ext <<_ACEOF
1993 #line $LINENO "configure"
1994 /* confdefs.h. */
1995 _ACEOF
1996 cat confdefs.h >>conftest.$ac_ext
1997 cat >>conftest.$ac_ext <<_ACEOF
1998 /* end confdefs.h. */
1999
2000 int
2001 main ()
2002 {
2003
2004 ;
2005 return 0;
2006 }
2007 _ACEOF
2008 rm -f conftest.$ac_objext
2009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2010 (eval $ac_compile) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); } &&
2014 { ac_try='test -s conftest.$ac_objext'
2015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016 (eval $ac_try) 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }; }; then
2020 ac_cv_prog_cc_g=yes
2021 else
2022 echo "$as_me: failed program was:" >&5
2023 sed 's/^/| /' conftest.$ac_ext >&5
2024
2025 ac_cv_prog_cc_g=no
2026 fi
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2028 fi
2029 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2030 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2031 if test "$ac_test_CFLAGS" = set; then
2032 CFLAGS=$ac_save_CFLAGS
2033 elif test $ac_cv_prog_cc_g = yes; then
2034 if test "$GCC" = yes; then
2035 CFLAGS="-g -O2"
2036 else
2037 CFLAGS="-g"
2038 fi
2039 else
2040 if test "$GCC" = yes; then
2041 CFLAGS="-O2"
2042 else
2043 CFLAGS=
2044 fi
2045 fi
2046 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2047 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2048 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 ac_cv_prog_cc_stdc=no
2052 ac_save_CC=$CC
2053 cat >conftest.$ac_ext <<_ACEOF
2054 #line $LINENO "configure"
2055 /* confdefs.h. */
2056 _ACEOF
2057 cat confdefs.h >>conftest.$ac_ext
2058 cat >>conftest.$ac_ext <<_ACEOF
2059 /* end confdefs.h. */
2060 #include <stdarg.h>
2061 #include <stdio.h>
2062 #include <sys/types.h>
2063 #include <sys/stat.h>
2064 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2065 struct buf { int x; };
2066 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2067 static char *e (p, i)
2068 char **p;
2069 int i;
2070 {
2071 return p[i];
2072 }
2073 static char *f (char * (*g) (char **, int), char **p, ...)
2074 {
2075 char *s;
2076 va_list v;
2077 va_start (v,p);
2078 s = g (p, va_arg (v,int));
2079 va_end (v);
2080 return s;
2081 }
2082 int test (int i, double x);
2083 struct s1 {int (*f) (int a);};
2084 struct s2 {int (*f) (double a);};
2085 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2086 int argc;
2087 char **argv;
2088 int
2089 main ()
2090 {
2091 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2092 ;
2093 return 0;
2094 }
2095 _ACEOF
2096 # Don't try gcc -ansi; that turns off useful extensions and
2097 # breaks some systems' header files.
2098 # AIX -qlanglvl=ansi
2099 # Ultrix and OSF/1 -std1
2100 # HP-UX 10.20 and later -Ae
2101 # HP-UX older versions -Aa -D_HPUX_SOURCE
2102 # SVR4 -Xc -D__EXTENSIONS__
2103 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2104 do
2105 CC="$ac_save_CC $ac_arg"
2106 rm -f conftest.$ac_objext
2107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2108 (eval $ac_compile) 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); } &&
2112 { ac_try='test -s conftest.$ac_objext'
2113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 (eval $ac_try) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; }; then
2118 ac_cv_prog_cc_stdc=$ac_arg
2119 break
2120 else
2121 echo "$as_me: failed program was:" >&5
2122 sed 's/^/| /' conftest.$ac_ext >&5
2123
2124 fi
2125 rm -f conftest.$ac_objext
2126 done
2127 rm -f conftest.$ac_ext conftest.$ac_objext
2128 CC=$ac_save_CC
2129
2130 fi
2131
2132 case "x$ac_cv_prog_cc_stdc" in
2133 x|xno)
2134 echo "$as_me:$LINENO: result: none needed" >&5
2135 echo "${ECHO_T}none needed" >&6 ;;
2136 *)
2137 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2138 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2139 CC="$CC $ac_cv_prog_cc_stdc" ;;
2140 esac
2141
2142 # Some people use a C++ compiler to compile C. Since we use `exit',
2143 # in C++ we need to declare it. In case someone uses the same compiler
2144 # for both compiling C and C++ we need to have the C++ compiler decide
2145 # the declaration of exit, since it's the most demanding environment.
2146 cat >conftest.$ac_ext <<_ACEOF
2147 #ifndef __cplusplus
2148 choke me
2149 #endif
2150 _ACEOF
2151 rm -f conftest.$ac_objext
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
2157 { ac_try='test -s conftest.$ac_objext'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 (eval $ac_try) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2163 for ac_declaration in \
2164 ''\
2165 '#include <stdlib.h>' \
2166 'extern "C" void std::exit (int) throw (); using std::exit;' \
2167 'extern "C" void std::exit (int); using std::exit;' \
2168 'extern "C" void exit (int) throw ();' \
2169 'extern "C" void exit (int);' \
2170 'void exit (int);'
2171 do
2172 cat >conftest.$ac_ext <<_ACEOF
2173 #line $LINENO "configure"
2174 /* confdefs.h. */
2175 _ACEOF
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h. */
2179 #include <stdlib.h>
2180 $ac_declaration
2181 int
2182 main ()
2183 {
2184 exit (42);
2185 ;
2186 return 0;
2187 }
2188 _ACEOF
2189 rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } &&
2195 { ac_try='test -s conftest.$ac_objext'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; }; then
2201 :
2202 else
2203 echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 continue
2207 fi
2208 rm -f conftest.$ac_objext conftest.$ac_ext
2209 cat >conftest.$ac_ext <<_ACEOF
2210 #line $LINENO "configure"
2211 /* confdefs.h. */
2212 _ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
2216 $ac_declaration
2217 int
2218 main ()
2219 {
2220 exit (42);
2221 ;
2222 return 0;
2223 }
2224 _ACEOF
2225 rm -f conftest.$ac_objext
2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 (eval $ac_try) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 break
2238 else
2239 echo "$as_me: failed program was:" >&5
2240 sed 's/^/| /' conftest.$ac_ext >&5
2241
2242 fi
2243 rm -f conftest.$ac_objext conftest.$ac_ext
2244 done
2245 rm -f conftest*
2246 if test -n "$ac_declaration"; then
2247 echo '#ifdef __cplusplus' >>confdefs.h
2248 echo $ac_declaration >>confdefs.h
2249 echo '#endif' >>confdefs.h
2250 fi
2251
2252 else
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2255
2256 fi
2257 rm -f conftest.$ac_objext conftest.$ac_ext
2258 ac_ext=c
2259 ac_cpp='$CPP $CPPFLAGS'
2260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2263
2264
2265
2266 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2267 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2268 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271 ac_check_lib_save_LIBS=$LIBS
2272 LIBS="-lcposix $LIBS"
2273 cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2275 /* confdefs.h. */
2276 _ACEOF
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h. */
2280
2281 /* Override any gcc2 internal prototype to avoid an error. */
2282 #ifdef __cplusplus
2283 extern "C"
2284 #endif
2285 /* We use char because int might match the return type of a gcc2
2286 builtin and then its argument prototype would still apply. */
2287 char strerror ();
2288 int
2289 main ()
2290 {
2291 strerror ();
2292 ;
2293 return 0;
2294 }
2295 _ACEOF
2296 rm -f conftest.$ac_objext conftest$ac_exeext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2298 (eval $ac_link) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); } &&
2302 { ac_try='test -s conftest$ac_exeext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 ac_cv_lib_cposix_strerror=yes
2309 else
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2312
2313 ac_cv_lib_cposix_strerror=no
2314 fi
2315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2316 LIBS=$ac_check_lib_save_LIBS
2317 fi
2318 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2319 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2320 if test $ac_cv_lib_cposix_strerror = yes; then
2321 LIBS="$LIBS -lcposix"
2322 fi
2323
2324
2325
2326
2327 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2328 am__api_version="1.7"
2329 # Find a good install program. We prefer a C program (faster),
2330 # so one script is as good as another. But avoid the broken or
2331 # incompatible versions:
2332 # SysV /etc/install, /usr/sbin/install
2333 # SunOS /usr/etc/install
2334 # IRIX /sbin/install
2335 # AIX /bin/install
2336 # AmigaOS /C/install, which installs bootblocks on floppy discs
2337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2340 # ./install, which can be erroneously created by make from ./install.sh.
2341 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2342 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2343 if test -z "$INSTALL"; then
2344 if test "${ac_cv_path_install+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 # Account for people who put trailing slashes in PATH elements.
2353 case $as_dir/ in
2354 ./ | .// | /cC/* | \
2355 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2356 /usr/ucb/* ) ;;
2357 *)
2358 # OSF1 and SCO ODT 3.0 have their own names for install.
2359 # Don't use installbsd from OSF since it installs stuff as root
2360 # by default.
2361 for ac_prog in ginstall scoinst install; do
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2364 if test $ac_prog = install &&
2365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2366 # AIX install. It has an incompatible calling convention.
2367 :
2368 elif test $ac_prog = install &&
2369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370 # program-specific install script used by HP pwplus--don't use.
2371 :
2372 else
2373 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2374 break 3
2375 fi
2376 fi
2377 done
2378 done
2379 ;;
2380 esac
2381 done
2382
2383
2384 fi
2385 if test "${ac_cv_path_install+set}" = set; then
2386 INSTALL=$ac_cv_path_install
2387 else
2388 # As a last resort, use the slow shell script. We don't cache a
2389 # path for INSTALL within a source directory, because that will
2390 # break other packages using the cache if that directory is
2391 # removed, or if the path is relative.
2392 INSTALL=$ac_install_sh
2393 fi
2394 fi
2395 echo "$as_me:$LINENO: result: $INSTALL" >&5
2396 echo "${ECHO_T}$INSTALL" >&6
2397
2398 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2399 # It thinks the first close brace ends the variable substitution.
2400 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2401
2402 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2403
2404 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2405
2406 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2407 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2408 # Just in case
2409 sleep 1
2410 echo timestamp > conftest.file
2411 # Do `set' in a subshell so we don't clobber the current shell's
2412 # arguments. Must try -L first in case configure is actually a
2413 # symlink; some systems play weird games with the mod time of symlinks
2414 # (eg FreeBSD returns the mod time of the symlink's containing
2415 # directory).
2416 if (
2417 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2418 if test "$*" = "X"; then
2419 # -L didn't work.
2420 set X `ls -t $srcdir/configure conftest.file`
2421 fi
2422 rm -f conftest.file
2423 if test "$*" != "X $srcdir/configure conftest.file" \
2424 && test "$*" != "X conftest.file $srcdir/configure"; then
2425
2426 # If neither matched, then we have a broken ls. This can happen
2427 # if, for instance, CONFIG_SHELL is bash and it inherits a
2428 # broken ls alias from the environment. This has actually
2429 # happened. Such a system could not be considered "sane".
2430 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2431 alias in your environment" >&5
2432 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2433 alias in your environment" >&2;}
2434 { (exit 1); exit 1; }; }
2435 fi
2436
2437 test "$2" = conftest.file
2438 )
2439 then
2440 # Ok.
2441 :
2442 else
2443 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2444 Check your system clock" >&5
2445 echo "$as_me: error: newly created file is older than distributed files!
2446 Check your system clock" >&2;}
2447 { (exit 1); exit 1; }; }
2448 fi
2449 echo "$as_me:$LINENO: result: yes" >&5
2450 echo "${ECHO_T}yes" >&6
2451 test "$program_prefix" != NONE &&
2452 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2453 # Use a double $ so make ignores it.
2454 test "$program_suffix" != NONE &&
2455 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2456 # Double any \ or $. echo might interpret backslashes.
2457 # By default was `s,x,x', remove it if useless.
2458 cat <<\_ACEOF >conftest.sed
2459 s/[\\$]/&&/g;s/;s,x,x,$//
2460 _ACEOF
2461 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2462 rm conftest.sed
2463
2464
2465 # expand $ac_aux_dir to an absolute path
2466 am_aux_dir=`cd $ac_aux_dir && pwd`
2467
2468 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2469 # Use eval to expand $SHELL
2470 if eval "$MISSING --run true"; then
2471 am_missing_run="$MISSING --run "
2472 else
2473 am_missing_run=
2474 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2475 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2476 fi
2477
2478 for ac_prog in gawk mawk nawk awk
2479 do
2480 # Extract the first word of "$ac_prog", so it can be a program name with args.
2481 set dummy $ac_prog; ac_word=$2
2482 echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_AWK+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487 if test -n "$AWK"; then
2488 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_AWK="$ac_prog"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501 done
2502 done
2503
2504 fi
2505 fi
2506 AWK=$ac_cv_prog_AWK
2507 if test -n "$AWK"; then
2508 echo "$as_me:$LINENO: result: $AWK" >&5
2509 echo "${ECHO_T}$AWK" >&6
2510 else
2511 echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2513 fi
2514
2515 test -n "$AWK" && break
2516 done
2517
2518 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2519 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2520 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2521 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524 cat >conftest.make <<\_ACEOF
2525 all:
2526 @echo 'ac_maketemp="$(MAKE)"'
2527 _ACEOF
2528 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2529 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2530 if test -n "$ac_maketemp"; then
2531 eval ac_cv_prog_make_${ac_make}_set=yes
2532 else
2533 eval ac_cv_prog_make_${ac_make}_set=no
2534 fi
2535 rm -f conftest.make
2536 fi
2537 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2538 echo "$as_me:$LINENO: result: yes" >&5
2539 echo "${ECHO_T}yes" >&6
2540 SET_MAKE=
2541 else
2542 echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6
2544 SET_MAKE="MAKE=${MAKE-make}"
2545 fi
2546
2547 rm -rf .tst 2>/dev/null
2548 mkdir .tst 2>/dev/null
2549 if test -d .tst; then
2550 am__leading_dot=.
2551 else
2552 am__leading_dot=_
2553 fi
2554 rmdir .tst 2>/dev/null
2555
2556 DEPDIR="${am__leading_dot}deps"
2557
2558 ac_config_commands="$ac_config_commands depfiles"
2559
2560
2561 am_make=${MAKE-make}
2562 cat > confinc << 'END'
2563 am__doit:
2564 @echo done
2565 .PHONY: am__doit
2566 END
2567 # If we don't find an include directive, just comment out the code.
2568 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2569 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2570 am__include="#"
2571 am__quote=
2572 _am_result=none
2573 # First try GNU make style include.
2574 echo "include confinc" > confmf
2575 # We grep out `Entering directory' and `Leaving directory'
2576 # messages which can occur if `w' ends up in MAKEFLAGS.
2577 # In particular we don't look at `^make:' because GNU make might
2578 # be invoked under some other name (usually "gmake"), in which
2579 # case it prints its new name instead of `make'.
2580 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2581 am__include=include
2582 am__quote=
2583 _am_result=GNU
2584 fi
2585 # Now try BSD make style include.
2586 if test "$am__include" = "#"; then
2587 echo '.include "confinc"' > confmf
2588 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2589 am__include=.include
2590 am__quote="\""
2591 _am_result=BSD
2592 fi
2593 fi
2594
2595
2596 echo "$as_me:$LINENO: result: $_am_result" >&5
2597 echo "${ECHO_T}$_am_result" >&6
2598 rm -f confinc confmf
2599
2600 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2601 if test "${enable_dependency_tracking+set}" = set; then
2602 enableval="$enable_dependency_tracking"
2603
2604 fi;
2605 if test "x$enable_dependency_tracking" != xno; then
2606 am_depcomp="$ac_aux_dir/depcomp"
2607 AMDEPBACKSLASH='\'
2608 fi
2609
2610
2611 if test "x$enable_dependency_tracking" != xno; then
2612 AMDEP_TRUE=
2613 AMDEP_FALSE='#'
2614 else
2615 AMDEP_TRUE='#'
2616 AMDEP_FALSE=
2617 fi
2618
2619
2620
2621 # test to see if srcdir already configured
2622 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2623 test -f $srcdir/config.status; then
2624 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2625 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2626 { (exit 1); exit 1; }; }
2627 fi
2628
2629 # test whether we have cygpath
2630 if test -z "$CYGPATH_W"; then
2631 if (cygpath --version) >/dev/null 2>/dev/null; then
2632 CYGPATH_W='cygpath -w'
2633 else
2634 CYGPATH_W=echo
2635 fi
2636 fi
2637
2638
2639 # Define the identity of the package.
2640 PACKAGE=gas
2641 VERSION=${BFD_VERSION}
2642
2643
2644 cat >>confdefs.h <<_ACEOF
2645 #define PACKAGE "$PACKAGE"
2646 _ACEOF
2647
2648
2649 cat >>confdefs.h <<_ACEOF
2650 #define VERSION "$VERSION"
2651 _ACEOF
2652
2653 # Some tools Automake needs.
2654
2655 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2656
2657
2658 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2659
2660
2661 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2662
2663
2664 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2665
2666
2667 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2668
2669
2670 AMTAR=${AMTAR-"${am_missing_run}tar"}
2671
2672 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2673
2674 # Installed binaries are usually stripped using `strip' when the user
2675 # run `make install-strip'. However `strip' might not be the right
2676 # tool to use in cross-compilation environments, therefore Automake
2677 # will honor the `STRIP' environment variable to overrule this program.
2678 if test "$cross_compiling" != no; then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}strip; ac_word=$2
2682 echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_STRIP+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 if test -n "$STRIP"; then
2688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701 done
2702 done
2703
2704 fi
2705 fi
2706 STRIP=$ac_cv_prog_STRIP
2707 if test -n "$STRIP"; then
2708 echo "$as_me:$LINENO: result: $STRIP" >&5
2709 echo "${ECHO_T}$STRIP" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2713 fi
2714
2715 fi
2716 if test -z "$ac_cv_prog_STRIP"; then
2717 ac_ct_STRIP=$STRIP
2718 # Extract the first word of "strip", so it can be a program name with args.
2719 set dummy strip; ac_word=$2
2720 echo "$as_me:$LINENO: checking for $ac_word" >&5
2721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2722 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 if test -n "$ac_ct_STRIP"; then
2726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735 ac_cv_prog_ac_ct_STRIP="strip"
2736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739 done
2740 done
2741
2742 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2743 fi
2744 fi
2745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2746 if test -n "$ac_ct_STRIP"; then
2747 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2748 echo "${ECHO_T}$ac_ct_STRIP" >&6
2749 else
2750 echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2752 fi
2753
2754 STRIP=$ac_ct_STRIP
2755 else
2756 STRIP="$ac_cv_prog_STRIP"
2757 fi
2758
2759 fi
2760 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2761
2762 # We need awk for the "check" target. The system "awk" is bad on
2763 # some platforms.
2764
2765
2766 depcc="$CC" am_compiler_list=
2767
2768 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2769 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2770 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2774 # We make a subdir and do the tests there. Otherwise we can end up
2775 # making bogus files that we don't know about and never remove. For
2776 # instance it was reported that on HP-UX the gcc test will end up
2777 # making a dummy file named `D' -- because `-MD' means `put the output
2778 # in D'.
2779 mkdir conftest.dir
2780 # Copy depcomp to subdir because otherwise we won't find it if we're
2781 # using a relative directory.
2782 cp "$am_depcomp" conftest.dir
2783 cd conftest.dir
2784 # We will build objects and dependencies in a subdirectory because
2785 # it helps to detect inapplicable dependency modes. For instance
2786 # both Tru64's cc and ICC support -MD to output dependencies as a
2787 # side effect of compilation, but ICC will put the dependencies in
2788 # the current directory while Tru64 will put them in the object
2789 # directory.
2790 mkdir sub
2791
2792 am_cv_CC_dependencies_compiler_type=none
2793 if test "$am_compiler_list" = ""; then
2794 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2795 fi
2796 for depmode in $am_compiler_list; do
2797 # Setup a source with many dependencies, because some compilers
2798 # like to wrap large dependency lists on column 80 (with \), and
2799 # we should not choose a depcomp mode which is confused by this.
2800 #
2801 # We need to recreate these files for each test, as the compiler may
2802 # overwrite some of them when testing with obscure command lines.
2803 # This happens at least with the AIX C compiler.
2804 : > sub/conftest.c
2805 for i in 1 2 3 4 5 6; do
2806 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2807 : > sub/conftst$i.h
2808 done
2809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2810
2811 case $depmode in
2812 nosideeffect)
2813 # after this tag, mechanisms are not by side-effect, so they'll
2814 # only be used when explicitly requested
2815 if test "x$enable_dependency_tracking" = xyes; then
2816 continue
2817 else
2818 break
2819 fi
2820 ;;
2821 none) break ;;
2822 esac
2823 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2824 # mode. It turns out that the SunPro C++ compiler does not properly
2825 # handle `-M -o', and we need to detect this.
2826 if depmode=$depmode \
2827 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2828 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2829 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2830 >/dev/null 2>conftest.err &&
2831 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2832 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2833 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2834 # icc doesn't choke on unknown options, it will just issue warnings
2835 # (even with -Werror). So we grep stderr for any message
2836 # that says an option was ignored.
2837 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2838 am_cv_CC_dependencies_compiler_type=$depmode
2839 break
2840 fi
2841 fi
2842 done
2843
2844 cd ..
2845 rm -rf conftest.dir
2846 else
2847 am_cv_CC_dependencies_compiler_type=none
2848 fi
2849
2850 fi
2851 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2852 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2853 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2854
2855
2856
2857 if
2858 test "x$enable_dependency_tracking" != xno \
2859 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2860 am__fastdepCC_TRUE=
2861 am__fastdepCC_FALSE='#'
2862 else
2863 am__fastdepCC_TRUE='#'
2864 am__fastdepCC_FALSE=
2865 fi
2866
2867
2868
2869
2870 # Check whether --enable-shared or --disable-shared was given.
2871 if test "${enable_shared+set}" = set; then
2872 enableval="$enable_shared"
2873 p=${PACKAGE-default}
2874 case $enableval in
2875 yes) enable_shared=yes ;;
2876 no) enable_shared=no ;;
2877 *)
2878 enable_shared=no
2879 # Look at the argument we got. We use all the common list separators.
2880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2881 for pkg in $enableval; do
2882 if test "X$pkg" = "X$p"; then
2883 enable_shared=yes
2884 fi
2885 done
2886 IFS="$ac_save_ifs"
2887 ;;
2888 esac
2889 else
2890 enable_shared=yes
2891 fi;
2892 # Check whether --enable-static or --disable-static was given.
2893 if test "${enable_static+set}" = set; then
2894 enableval="$enable_static"
2895 p=${PACKAGE-default}
2896 case $enableval in
2897 yes) enable_static=yes ;;
2898 no) enable_static=no ;;
2899 *)
2900 enable_static=no
2901 # Look at the argument we got. We use all the common list separators.
2902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2903 for pkg in $enableval; do
2904 if test "X$pkg" = "X$p"; then
2905 enable_static=yes
2906 fi
2907 done
2908 IFS="$ac_save_ifs"
2909 ;;
2910 esac
2911 else
2912 enable_static=yes
2913 fi;
2914 # Check whether --enable-fast-install or --disable-fast-install was given.
2915 if test "${enable_fast_install+set}" = set; then
2916 enableval="$enable_fast_install"
2917 p=${PACKAGE-default}
2918 case $enableval in
2919 yes) enable_fast_install=yes ;;
2920 no) enable_fast_install=no ;;
2921 *)
2922 enable_fast_install=no
2923 # Look at the argument we got. We use all the common list separators.
2924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2925 for pkg in $enableval; do
2926 if test "X$pkg" = "X$p"; then
2927 enable_fast_install=yes
2928 fi
2929 done
2930 IFS="$ac_save_ifs"
2931 ;;
2932 esac
2933 else
2934 enable_fast_install=yes
2935 fi;
2936
2937 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2938 if test "${with_gnu_ld+set}" = set; then
2939 withval="$with_gnu_ld"
2940 test "$withval" = no || with_gnu_ld=yes
2941 else
2942 with_gnu_ld=no
2943 fi;
2944 ac_prog=ld
2945 if test "$GCC" = yes; then
2946 # Check if gcc -print-prog-name=ld gives a path.
2947 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2948 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2949 case $host in
2950 *-*-mingw*)
2951 # gcc leaves a trailing carriage return which upsets mingw
2952 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2953 *)
2954 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2955 esac
2956 case $ac_prog in
2957 # Accept absolute paths.
2958 [\\/]* | [A-Za-z]:[\\/]*)
2959 re_direlt='/[^/][^/]*/\.\./'
2960 # Canonicalize the path of ld
2961 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2962 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2963 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2964 done
2965 test -z "$LD" && LD="$ac_prog"
2966 ;;
2967 "")
2968 # If it fails, then pretend we aren't using GCC.
2969 ac_prog=ld
2970 ;;
2971 *)
2972 # If it is relative, then search for the first ld in PATH.
2973 with_gnu_ld=unknown
2974 ;;
2975 esac
2976 elif test "$with_gnu_ld" = yes; then
2977 echo "$as_me:$LINENO: checking for GNU ld" >&5
2978 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2979 else
2980 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2981 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2982 fi
2983 if test "${lt_cv_path_LD+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -z "$LD"; then
2987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2988 for ac_dir in $PATH; do
2989 test -z "$ac_dir" && ac_dir=.
2990 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2991 lt_cv_path_LD="$ac_dir/$ac_prog"
2992 # Check to see if the program is GNU ld. I'd rather use --version,
2993 # but apparently some GNU ld's only accept -v.
2994 # Break only if it was the GNU/non-GNU ld that we prefer.
2995 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2996 test "$with_gnu_ld" != no && break
2997 else
2998 test "$with_gnu_ld" != yes && break
2999 fi
3000 fi
3001 done
3002 IFS="$ac_save_ifs"
3003 else
3004 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3005 fi
3006 fi
3007
3008 LD="$lt_cv_path_LD"
3009 if test -n "$LD"; then
3010 echo "$as_me:$LINENO: result: $LD" >&5
3011 echo "${ECHO_T}$LD" >&6
3012 else
3013 echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3015 fi
3016 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3017 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3018 { (exit 1); exit 1; }; }
3019 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3020 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3021 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3025 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3026 lt_cv_prog_gnu_ld=yes
3027 else
3028 lt_cv_prog_gnu_ld=no
3029 fi
3030 fi
3031 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3032 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3033 with_gnu_ld=$lt_cv_prog_gnu_ld
3034
3035
3036 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3037 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3038 if test "${lt_cv_ld_reload_flag+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041 lt_cv_ld_reload_flag='-r'
3042 fi
3043 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3044 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3045 reload_flag=$lt_cv_ld_reload_flag
3046 test -n "$reload_flag" && reload_flag=" $reload_flag"
3047
3048 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3049 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3050 if test "${lt_cv_path_NM+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053 if test -n "$NM"; then
3054 # Let the user override the test.
3055 lt_cv_path_NM="$NM"
3056 else
3057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3058 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3059 test -z "$ac_dir" && ac_dir=.
3060 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3061 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3062 # Check to see if the nm accepts a BSD-compat flag.
3063 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3064 # nm: unknown option "B" ignored
3065 # Tru64's nm complains that /dev/null is an invalid object file
3066 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3067 lt_cv_path_NM="$tmp_nm -B"
3068 break
3069 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3070 lt_cv_path_NM="$tmp_nm -p"
3071 break
3072 else
3073 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3074 continue # so that we can try to find one that supports BSD flags
3075 fi
3076 fi
3077 done
3078 IFS="$ac_save_ifs"
3079 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3080 fi
3081 fi
3082
3083 NM="$lt_cv_path_NM"
3084 echo "$as_me:$LINENO: result: $NM" >&5
3085 echo "${ECHO_T}$NM" >&6
3086
3087 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3088 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3089 LN_S=$as_ln_s
3090 if test "$LN_S" = "ln -s"; then
3091 echo "$as_me:$LINENO: result: yes" >&5
3092 echo "${ECHO_T}yes" >&6
3093 else
3094 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3095 echo "${ECHO_T}no, using $LN_S" >&6
3096 fi
3097
3098 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3099 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3100 if test "${lt_cv_deplibs_check_method+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103 lt_cv_file_magic_cmd='$MAGIC_CMD'
3104 lt_cv_file_magic_test_file=
3105 lt_cv_deplibs_check_method='unknown'
3106 # Need to set the preceding variable on all platforms that support
3107 # interlibrary dependencies.
3108 # 'none' -- dependencies not supported.
3109 # `unknown' -- same as none, but documents that we really don't know.
3110 # 'pass_all' -- all dependencies passed with no checks.
3111 # 'test_compile' -- check by making test program.
3112 # 'file_magic [regex]' -- check by looking for files in library path
3113 # which responds to the $file_magic_cmd with a given egrep regex.
3114 # If you have `file' or equivalent on your system and you're not sure
3115 # whether `pass_all' will *always* work, you probably want this one.
3116
3117 case $host_os in
3118 aix*)
3119 lt_cv_deplibs_check_method=pass_all
3120 ;;
3121
3122 beos*)
3123 lt_cv_deplibs_check_method=pass_all
3124 ;;
3125
3126 bsdi4*)
3127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3128 lt_cv_file_magic_cmd='/usr/bin/file -L'
3129 lt_cv_file_magic_test_file=/shlib/libc.so
3130 ;;
3131
3132 cygwin* | mingw* |pw32*)
3133 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3134 lt_cv_file_magic_cmd='$OBJDUMP -f'
3135 ;;
3136
3137 darwin* | rhapsody*)
3138 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3139 lt_cv_file_magic_cmd='/usr/bin/file -L'
3140 case "$host_os" in
3141 rhapsody* | darwin1.012)
3142 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3143 ;;
3144 *) # Darwin 1.3 on
3145 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3146 ;;
3147 esac
3148 ;;
3149
3150 freebsd* )
3151 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3152 case $host_cpu in
3153 i*86 )
3154 # Not sure whether the presence of OpenBSD here was a mistake.
3155 # Let's accept both of them until this is cleared up.
3156 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3157 lt_cv_file_magic_cmd=/usr/bin/file
3158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3159 ;;
3160 esac
3161 else
3162 lt_cv_deplibs_check_method=pass_all
3163 fi
3164 ;;
3165
3166 gnu*)
3167 lt_cv_deplibs_check_method=pass_all
3168 ;;
3169
3170 hpux10.20*|hpux11*)
3171 case $host_cpu in
3172 hppa*)
3173 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3174 lt_cv_file_magic_cmd=/usr/bin/file
3175 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3176 ;;
3177 ia64*)
3178 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3179 lt_cv_file_magic_cmd=/usr/bin/file
3180 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3181 ;;
3182 esac
3183 ;;
3184
3185 irix5* | irix6*)
3186 case $host_os in
3187 irix5*)
3188 # this will be overridden with pass_all, but let us keep it just in case
3189 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3190 ;;
3191 *)
3192 case $LD in
3193 *-32|*"-32 ") libmagic=32-bit;;
3194 *-n32|*"-n32 ") libmagic=N32;;
3195 *-64|*"-64 ") libmagic=64-bit;;
3196 *) libmagic=never-match;;
3197 esac
3198 # this will be overridden with pass_all, but let us keep it just in case
3199 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3200 ;;
3201 esac
3202 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3203 lt_cv_deplibs_check_method=pass_all
3204 ;;
3205
3206 # This must be Linux ELF.
3207 linux-gnu*)
3208 case $host_cpu in
3209 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3210 lt_cv_deplibs_check_method=pass_all ;;
3211 *)
3212 # glibc up to 2.1.1 does not perform some relocations on ARM
3213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3214 esac
3215 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3216 ;;
3217
3218 netbsd*)
3219 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3220 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3221 else
3222 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3223 fi
3224 ;;
3225
3226 newsos6)
3227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3228 lt_cv_file_magic_cmd=/usr/bin/file
3229 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3230 ;;
3231
3232 osf3* | osf4* | osf5*)
3233 # this will be overridden with pass_all, but let us keep it just in case
3234 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3235 lt_cv_file_magic_test_file=/shlib/libc.so
3236 lt_cv_deplibs_check_method=pass_all
3237 ;;
3238
3239 sco3.2v5*)
3240 lt_cv_deplibs_check_method=pass_all
3241 ;;
3242
3243 solaris*)
3244 lt_cv_deplibs_check_method=pass_all
3245 lt_cv_file_magic_test_file=/lib/libc.so
3246 ;;
3247
3248 sysv5uw[78]* | sysv4*uw2*)
3249 lt_cv_deplibs_check_method=pass_all
3250 ;;
3251
3252 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3253 case $host_vendor in
3254 ncr)
3255 lt_cv_deplibs_check_method=pass_all
3256 ;;
3257 motorola)
3258 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]'
3259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3260 ;;
3261 esac
3262 ;;
3263 esac
3264
3265 fi
3266 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3267 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3268 file_magic_cmd=$lt_cv_file_magic_cmd
3269 deplibs_check_method=$lt_cv_deplibs_check_method
3270
3271
3272
3273
3274 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3275
3276 # Only perform the check for file, if the check method requires it
3277 case $deplibs_check_method in
3278 file_magic*)
3279 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3280 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3281 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3282 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285 case $MAGIC_CMD in
3286 /*)
3287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3288 ;;
3289 ?:/*)
3290 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3291 ;;
3292 *)
3293 ac_save_MAGIC_CMD="$MAGIC_CMD"
3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3295 ac_dummy="/usr/bin:$PATH"
3296 for ac_dir in $ac_dummy; do
3297 test -z "$ac_dir" && ac_dir=.
3298 if test -f $ac_dir/${ac_tool_prefix}file; then
3299 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3300 if test -n "$file_magic_test_file"; then
3301 case $deplibs_check_method in
3302 "file_magic "*)
3303 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3306 egrep "$file_magic_regex" > /dev/null; then
3307 :
3308 else
3309 cat <<EOF 1>&2
3310
3311 *** Warning: the command libtool uses to detect shared libraries,
3312 *** $file_magic_cmd, produces output that libtool cannot recognize.
3313 *** The result is that libtool may fail to recognize shared libraries
3314 *** as such. This will affect the creation of libtool libraries that
3315 *** depend on shared libraries, but programs linked with such libtool
3316 *** libraries will work regardless of this problem. Nevertheless, you
3317 *** may want to report the problem to your system manager and/or to
3318 *** bug-libtool@gnu.org
3319
3320 EOF
3321 fi ;;
3322 esac
3323 fi
3324 break
3325 fi
3326 done
3327 IFS="$ac_save_ifs"
3328 MAGIC_CMD="$ac_save_MAGIC_CMD"
3329 ;;
3330 esac
3331 fi
3332
3333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3334 if test -n "$MAGIC_CMD"; then
3335 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3336 echo "${ECHO_T}$MAGIC_CMD" >&6
3337 else
3338 echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6
3340 fi
3341
3342 if test -z "$lt_cv_path_MAGIC_CMD"; then
3343 if test -n "$ac_tool_prefix"; then
3344 echo "$as_me:$LINENO: checking for file" >&5
3345 echo $ECHO_N "checking for file... $ECHO_C" >&6
3346 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 case $MAGIC_CMD in
3350 /*)
3351 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3352 ;;
3353 ?:/*)
3354 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3355 ;;
3356 *)
3357 ac_save_MAGIC_CMD="$MAGIC_CMD"
3358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3359 ac_dummy="/usr/bin:$PATH"
3360 for ac_dir in $ac_dummy; do
3361 test -z "$ac_dir" && ac_dir=.
3362 if test -f $ac_dir/file; then
3363 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3364 if test -n "$file_magic_test_file"; then
3365 case $deplibs_check_method in
3366 "file_magic "*)
3367 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3369 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3370 egrep "$file_magic_regex" > /dev/null; then
3371 :
3372 else
3373 cat <<EOF 1>&2
3374
3375 *** Warning: the command libtool uses to detect shared libraries,
3376 *** $file_magic_cmd, produces output that libtool cannot recognize.
3377 *** The result is that libtool may fail to recognize shared libraries
3378 *** as such. This will affect the creation of libtool libraries that
3379 *** depend on shared libraries, but programs linked with such libtool
3380 *** libraries will work regardless of this problem. Nevertheless, you
3381 *** may want to report the problem to your system manager and/or to
3382 *** bug-libtool@gnu.org
3383
3384 EOF
3385 fi ;;
3386 esac
3387 fi
3388 break
3389 fi
3390 done
3391 IFS="$ac_save_ifs"
3392 MAGIC_CMD="$ac_save_MAGIC_CMD"
3393 ;;
3394 esac
3395 fi
3396
3397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3398 if test -n "$MAGIC_CMD"; then
3399 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3400 echo "${ECHO_T}$MAGIC_CMD" >&6
3401 else
3402 echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6
3404 fi
3405
3406 else
3407 MAGIC_CMD=:
3408 fi
3409 fi
3410
3411 fi
3412 ;;
3413 esac
3414
3415 if test -n "$ac_tool_prefix"; then
3416 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3418 echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420 if test "${ac_cv_prog_RANLIB+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 if test -n "$RANLIB"; then
3424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3436 fi
3437 done
3438 done
3439
3440 fi
3441 fi
3442 RANLIB=$ac_cv_prog_RANLIB
3443 if test -n "$RANLIB"; then
3444 echo "$as_me:$LINENO: result: $RANLIB" >&5
3445 echo "${ECHO_T}$RANLIB" >&6
3446 else
3447 echo "$as_me:$LINENO: result: no" >&5
3448 echo "${ECHO_T}no" >&6
3449 fi
3450
3451 fi
3452 if test -z "$ac_cv_prog_RANLIB"; then
3453 ac_ct_RANLIB=$RANLIB
3454 # Extract the first word of "ranlib", so it can be a program name with args.
3455 set dummy ranlib; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461 if test -n "$ac_ct_RANLIB"; then
3462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471 ac_cv_prog_ac_ct_RANLIB="ranlib"
3472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 break 2
3474 fi
3475 done
3476 done
3477
3478 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3479 fi
3480 fi
3481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3482 if test -n "$ac_ct_RANLIB"; then
3483 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3484 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3485 else
3486 echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6
3488 fi
3489
3490 RANLIB=$ac_ct_RANLIB
3491 else
3492 RANLIB="$ac_cv_prog_RANLIB"
3493 fi
3494
3495 if test -n "$ac_tool_prefix"; then
3496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3497 set dummy ${ac_tool_prefix}strip; ac_word=$2
3498 echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_prog_STRIP+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 if test -n "$STRIP"; then
3504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517 done
3518 done
3519
3520 fi
3521 fi
3522 STRIP=$ac_cv_prog_STRIP
3523 if test -n "$STRIP"; then
3524 echo "$as_me:$LINENO: result: $STRIP" >&5
3525 echo "${ECHO_T}$STRIP" >&6
3526 else
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3529 fi
3530
3531 fi
3532 if test -z "$ac_cv_prog_STRIP"; then
3533 ac_ct_STRIP=$STRIP
3534 # Extract the first word of "strip", so it can be a program name with args.
3535 set dummy strip; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541 if test -n "$ac_ct_STRIP"; then
3542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_ac_ct_STRIP="strip"
3552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3554 fi
3555 done
3556 done
3557
3558 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3559 fi
3560 fi
3561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3562 if test -n "$ac_ct_STRIP"; then
3563 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3564 echo "${ECHO_T}$ac_ct_STRIP" >&6
3565 else
3566 echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3568 fi
3569
3570 STRIP=$ac_ct_STRIP
3571 else
3572 STRIP="$ac_cv_prog_STRIP"
3573 fi
3574
3575
3576 # Check for any special flags to pass to ltconfig.
3577 libtool_flags="--cache-file=$cache_file"
3578 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3579 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3580 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3581 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3582 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3583
3584
3585 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3586 if test "${enable_libtool_lock+set}" = set; then
3587 enableval="$enable_libtool_lock"
3588
3589 fi;
3590 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3591 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3592
3593
3594 # Check whether --with-pic or --without-pic was given.
3595 if test "${with_pic+set}" = set; then
3596 withval="$with_pic"
3597 pic_mode="$withval"
3598 else
3599 pic_mode=default
3600 fi;
3601 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3602 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3603
3604 # Some flags need to be propagated to the compiler or linker for good
3605 # libtool support.
3606 case $host in
3607 *-*-irix6*)
3608 # Find out which ABI we are using.
3609 echo '#line 3609 "configure"' > conftest.$ac_ext
3610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611 (eval $ac_compile) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; then
3615 if test "$lt_cv_prog_gnu_ld" = yes; then
3616 case `/usr/bin/file conftest.$ac_objext` in
3617 *32-bit*)
3618 LD="${LD-ld} -melf32bsmip"
3619 ;;
3620 *N32*)
3621 LD="${LD-ld} -melf32bmipn32"
3622 ;;
3623 *64-bit*)
3624 LD="${LD-ld} -melf64bmip"
3625 ;;
3626 esac
3627 else
3628 case `/usr/bin/file conftest.$ac_objext` in
3629 *32-bit*)
3630 LD="${LD-ld} -32"
3631 ;;
3632 *N32*)
3633 LD="${LD-ld} -n32"
3634 ;;
3635 *64-bit*)
3636 LD="${LD-ld} -64"
3637 ;;
3638 esac
3639 fi
3640 fi
3641 rm -rf conftest*
3642 ;;
3643
3644 ia64-*-hpux*)
3645 # Find out which ABI we are using.
3646 echo 'int i;' > conftest.$ac_ext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648 (eval $ac_compile) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; then
3652 case "`/usr/bin/file conftest.o`" in
3653 *ELF-32*)
3654 HPUX_IA64_MODE="32"
3655 ;;
3656 *ELF-64*)
3657 HPUX_IA64_MODE="64"
3658 ;;
3659 esac
3660 fi
3661 rm -rf conftest*
3662 ;;
3663
3664 *-*-sco3.2v5*)
3665 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3666 SAVE_CFLAGS="$CFLAGS"
3667 CFLAGS="$CFLAGS -belf"
3668 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3669 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3670 if test "${lt_cv_cc_needs_belf+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673
3674
3675 ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
3681 cat >conftest.$ac_ext <<_ACEOF
3682 #line $LINENO "configure"
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3688
3689 int
3690 main ()
3691 {
3692
3693 ;
3694 return 0;
3695 }
3696 _ACEOF
3697 rm -f conftest.$ac_objext conftest$ac_exeext
3698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3699 (eval $ac_link) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } &&
3703 { ac_try='test -s conftest$ac_exeext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 lt_cv_cc_needs_belf=yes
3710 else
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3713
3714 lt_cv_cc_needs_belf=no
3715 fi
3716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3717 ac_ext=c
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722
3723 fi
3724 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3725 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3726 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3727 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3728 CFLAGS="$SAVE_CFLAGS"
3729 fi
3730 ;;
3731
3732
3733 esac
3734
3735
3736 # Save cache, so that ltconfig can load it
3737 cat >confcache <<\_ACEOF
3738 # This file is a shell script that caches the results of configure
3739 # tests run on this system so they can be shared between configure
3740 # scripts and configure runs, see configure's option --config-cache.
3741 # It is not useful on other systems. If it contains results you don't
3742 # want to keep, you may remove or edit it.
3743 #
3744 # config.status only pays attention to the cache file if you give it
3745 # the --recheck option to rerun configure.
3746 #
3747 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3748 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3749 # following values.
3750
3751 _ACEOF
3752
3753 # The following way of writing the cache mishandles newlines in values,
3754 # but we know of no workaround that is simple, portable, and efficient.
3755 # So, don't put newlines in cache variables' values.
3756 # Ultrix sh set writes to stderr and can't be redirected directly,
3757 # and sets the high bit in the cache file unless we assign to the vars.
3758 {
3759 (set) 2>&1 |
3760 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3761 *ac_space=\ *)
3762 # `set' does not quote correctly, so add quotes (double-quote
3763 # substitution turns \\\\ into \\, and sed turns \\ into \).
3764 sed -n \
3765 "s/'/'\\\\''/g;
3766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3767 ;;
3768 *)
3769 # `set' quotes correctly as required by POSIX, so do not add quotes.
3770 sed -n \
3771 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3772 ;;
3773 esac;
3774 } |
3775 sed '
3776 t clear
3777 : clear
3778 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3779 t end
3780 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3781 : end' >>confcache
3782 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3783 if test -w $cache_file; then
3784 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3785 cat confcache >$cache_file
3786 else
3787 echo "not updating unwritable cache $cache_file"
3788 fi
3789 fi
3790 rm -f confcache
3791
3792 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3793 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3794 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3795 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3796 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3797 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3798 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3799 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3800 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3801 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3802 echo "$as_me: error: libtool configure failed" >&2;}
3803 { (exit 1); exit 1; }; }
3804
3805 # Reload cache, that may have been modified by ltconfig
3806 if test -r "$cache_file"; then
3807 # Some versions of bash will fail to source /dev/null (special
3808 # files actually), so we avoid doing that.
3809 if test -f "$cache_file"; then
3810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3811 echo "$as_me: loading cache $cache_file" >&6;}
3812 case $cache_file in
3813 [\\/]* | ?:[\\/]* ) . $cache_file;;
3814 *) . ./$cache_file;;
3815 esac
3816 fi
3817 else
3818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3819 echo "$as_me: creating cache $cache_file" >&6;}
3820 >$cache_file
3821 fi
3822
3823
3824 # This can be used to rebuild libtool when needed
3825 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3826
3827 # Always use our own libtool.
3828 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3829
3830 # Redirect the config.log output again, so that the ltconfig log is not
3831 # clobbered by the next message.
3832 exec 5>>./config.log
3833
3834
3835
3836
3837
3838
3839
3840 user_bfd_gas=
3841 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
3842 if test "${enable_bfd_assembler+set}" = set; then
3843 enableval="$enable_bfd_assembler"
3844 case "${enableval}" in
3845 yes) need_bfd=yes user_bfd_gas=yes ;;
3846 no) user_bfd_gas=no ;;
3847 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
3848 echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
3849 { (exit 1); exit 1; }; } ;;
3850 esac
3851 fi; # Check whether --enable-targets or --disable-targets was given.
3852 if test "${enable_targets+set}" = set; then
3853 enableval="$enable_targets"
3854 case "${enableval}" in
3855 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3856 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3857 { (exit 1); exit 1; }; }
3858 ;;
3859 no) enable_targets= ;;
3860 *) enable_targets=$enableval ;;
3861 esac
3862 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
3863 if test "${enable_commonbfdlib+set}" = set; then
3864 enableval="$enable_commonbfdlib"
3865 case "${enableval}" in
3866 yes) commonbfdlib=true ;;
3867 no) commonbfdlib=false ;;
3868 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3869 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3870 { (exit 1); exit 1; }; } ;;
3871 esac
3872 fi;
3873 using_cgen=no
3874
3875 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3876 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3877 if test "${enable_build_warnings+set}" = set; then
3878 enableval="$enable_build_warnings"
3879 case "${enableval}" in
3880 yes) ;;
3881 no) build_warnings="-w";;
3882 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3883 build_warnings="${build_warnings} ${t}";;
3884 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3885 build_warnings="${t} ${build_warnings}";;
3886 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3887 esac
3888 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3889 echo "Setting warning flags = $build_warnings" 6>&1
3890 fi
3891 fi; WARN_CFLAGS=""
3892 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
3893 WARN_CFLAGS="${build_warnings}"
3894 fi
3895
3896
3897 # Generate a header file
3898 ac_config_headers="$ac_config_headers config.h:config.in"
3899
3900
3901 # If we are on a DOS filesystem, we must use gdb.ini rather than
3902 # .gdbinit.
3903 case "${host}" in
3904 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
3905 GDBINIT="gdb.ini"
3906 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
3907
3908 ;;
3909 *)
3910 GDBINIT=".gdbinit"
3911 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
3912
3913 ;;
3914 esac
3915
3916
3917 te_file=generic
3918
3919 # Makefile target for installing gas in $(tooldir)/bin.
3920 install_tooldir=install-exec-tooldir
3921
3922 canon_targets=""
3923 all_targets=no
3924 if test -n "$enable_targets" ; then
3925 for t in `echo $enable_targets | sed 's/,/ /g'`; do
3926 if test $t = "all"; then
3927 all_targets=yes
3928 continue
3929 fi
3930 result=`$ac_config_sub $t 2>/dev/null`
3931 if test -n "$result" ; then
3932 canon_targets="$canon_targets $result"
3933 # else
3934 # # Permit "all", etc. We don't support it yet though.
3935 # canon_targets="$canon_targets $t"
3936 fi
3937 done
3938 _gas_uniq_list="$canon_targets"
3939 _gas_uniq_newlist=""
3940 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
3941 case $_gas_uniq_i in
3942 _gas_uniq_dummy) ;;
3943 *) case " $_gas_uniq_newlist " in
3944 *" $_gas_uniq_i "*) ;;
3945 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
3946 esac ;;
3947 esac
3948 done
3949 canon_targets=$_gas_uniq_newlist
3950
3951 fi
3952
3953 emulations=""
3954
3955 for this_target in $target $canon_targets ; do
3956
3957 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
3958
3959 # check for architecture variants
3960 arch=
3961 endian=
3962 case ${cpu} in
3963 am33_2.0) cpu_type=mn10300 endian=little ;;
3964 alpha*) cpu_type=alpha ;;
3965 arm*b|xscale*b|strongarm*b) cpu_type=arm endian=big ;;
3966 arm*|xscale*|strongarm*) cpu_type=arm endian=little ;;
3967 c4x*) cpu_type=tic4x ;;
3968 hppa*) cpu_type=hppa ;;
3969 i[3-7]86) cpu_type=i386 arch=i386;;
3970 x86_64) cpu_type=i386 arch=x86_64;;
3971 ia64) cpu_type=ia64 ;;
3972 ip2k) cpu_type=ip2k endian=big ;;
3973 iq2000) cpu_type=iq2000 endian=big ;;
3974 m6811|m6812|m68hc12) cpu_type=m68hc11 ;;
3975 m680[012346]0) cpu_type=m68k ;;
3976 m68008) cpu_type=m68k ;;
3977 m683??) cpu_type=m68k ;;
3978 m5200) cpu_type=m68k ;;
3979 m8*) cpu_type=m88k ;;
3980 mips*el) cpu_type=mips endian=little ;;
3981 mips*) cpu_type=mips endian=big ;;
3982 or32*) cpu_type=or32 endian=big ;;
3983 pjl*) cpu_type=pj endian=little ;;
3984 pj*) cpu_type=pj endian=big ;;
3985 powerpc*le*) cpu_type=ppc endian=little ;;
3986 powerpc*) cpu_type=ppc endian=big ;;
3987 rs6000*) cpu_type=ppc ;;
3988 s390x*) cpu_type=s390 arch=s390x ;;
3989 s390*) cpu_type=s390 arch=s390 ;;
3990 sh5*) cpu_type=sh64 endian=big ;;
3991 sh5le*) cpu_type=sh64 endian=little ;;
3992 sh64*) cpu_type=sh64 endian=big ;;
3993 sh64le*) cpu_type=sh64 endian=little ;;
3994 sh*le) cpu_type=sh endian=little ;;
3995 sh*) cpu_type=sh endian=big ;;
3996 sparclite*) cpu_type=sparc arch=sparclite ;;
3997 sparclet*) cpu_type=sparc arch=sparclet ;;
3998 sparc64*) cpu_type=sparc arch=v9-64 ;;
3999 sparc86x*) cpu_type=sparc arch=sparc86x ;;
4000 sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
4001 v850*) cpu_type=v850 ;;
4002 xtensa*) cpu_type=xtensa arch=xtensa ;;
4003 *) cpu_type=${cpu} ;;
4004 esac
4005
4006 if test ${this_target} = $target ; then
4007 target_cpu_type=${cpu_type}
4008 elif test ${target_cpu_type} != ${cpu_type} ; then
4009 continue
4010 fi
4011
4012 generic_target=${cpu_type}-$vendor-$os
4013 dev=no
4014 bfd_gas=no
4015 em=generic
4016
4017 # assign object format
4018 case ${generic_target} in
4019 a29k-*-coff) fmt=coff ;;
4020 a29k-amd-udi) fmt=coff ;;
4021 a29k-amd-ebmon) fmt=coff ;;
4022 a29k-nyu-sym1) fmt=coff ;;
4023 a29k-*-rtems*) fmt=coff ;;
4024 a29k-*-vxworks*) fmt=coff ;;
4025
4026 alpha*-*-*vms*) fmt=evax ;;
4027 alpha*-*-netware*) fmt=ecoff ;;
4028 alpha*-*-osf*) fmt=ecoff ;;
4029 alpha*-*-linuxecoff*) fmt=ecoff ;;
4030 alpha*-*-linux-gnu*) fmt=elf em=linux ;;
4031 alpha*-*-netbsd*) fmt=elf em=nbsd ;;
4032 alpha*-*-openbsd*) fmt=elf em=obsd ;;
4033
4034 # cpu_type for am33_2.0 is set to mn10300
4035 mn10300-*-linux*) fmt=elf bfd_gas=yes em=linux ;;
4036
4037 arc-*-elf*) fmt=elf ;;
4038
4039 arm-*-aout) fmt=aout ;;
4040 arm-*-coff | thumb-*-coff) fmt=coff ;;
4041 arm-*-rtems* | thumb-*-rtems*) fmt=elf ;;
4042 arm-*-elf | thumb-*-elf) fmt=elf ;;
4043 arm-*-kaos*) fmt=elf ;;
4044 arm*-*-conix*) fmt=elf ;;
4045 arm-*-linux*aout*) fmt=aout em=linux ;;
4046 arm*-*-linux-gnu*) fmt=elf em=linux ;;
4047 arm*-*-uclinux*) fmt=elf em=linux ;;
4048 arm-*-netbsdelf*) fmt=elf em=nbsd ;;
4049 arm-*-*n*bsd*) fmt=aout em=nbsd ;;
4050 arm-**-nto*) fmt=elf ;;
4051 arm-*-oabi | thumb-*-oabi) fmt=elf ;;
4052 arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
4053 arm-*-wince) fmt=coff em=wince-pe ;;
4054 arm-*-pe | thumb-*-pe) fmt=coff em=pe ;;
4055 arm-*-riscix*) fmt=aout em=riscix ;;
4056 arm-*-vxworks) fmt=coff ;;
4057
4058 avr-*-*) fmt=elf ;;
4059
4060 cris-*-linux-gnu*) fmt=multi bfd_gas=yes em=linux ;;
4061 cris-*-*) fmt=multi bfd_gas=yes ;;
4062
4063 d10v-*-*) fmt=elf ;;
4064 d30v-*-*) fmt=elf ;;
4065 dlx-*-*) fmt=elf ;;
4066
4067 fr30-*-*) fmt=elf ;;
4068 frv-*-*) fmt=elf ;;
4069
4070 hppa-*-linux*) case ${cpu} in
4071 hppa*64*) fmt=elf em=hppalinux64;;
4072 hppa*) fmt=elf em=linux;;
4073 esac ;;
4074 hppa-*-*elf*) fmt=elf em=hppa ;;
4075 hppa-*-lites*) fmt=elf em=hppa ;;
4076 hppa-*-netbsd*) fmt=elf em=nbsd ;;
4077 hppa-*-openbsd*) fmt=elf em=hppa ;;
4078 hppa-*-osf*) fmt=som em=hppa ;;
4079 hppa-*-rtems*) fmt=elf em=hppa ;;
4080 hppa-*-hpux11*) case ${cpu} in
4081 hppa*64*) fmt=elf em=hppa64 ;;
4082 hppa*) fmt=som em=hppa ;;
4083 esac ;;
4084 hppa-*-hpux*) fmt=som em=hppa ;;
4085 hppa-*-mpeix*) fmt=som em=hppa ;;
4086 hppa-*-bsd*) fmt=som em=hppa ;;
4087 hppa-*-hiux*) fmt=som em=hppa ;;
4088
4089 h8300-*-rtems*) fmt=coff ;;
4090 h8300-*-coff) fmt=coff ;;
4091 h8300-*-elf) fmt=elf ;;
4092 h8500-*-rtems*) fmt=coff ;;
4093 h8500-*-coff) fmt=coff ;;
4094
4095 i370-*-elf* | i370-*-linux*) fmt=elf ;;
4096 i386-ibm-aix*) fmt=coff em=i386aix ;;
4097 i386-sequent-bsd*) fmt=aout em=dynix ;;
4098 i386-*-beospe*) fmt=coff em=pe ;;
4099 i386-*-beos*) fmt=elf ;;
4100 i386-*-coff) fmt=coff ;;
4101 i386-*-elf) fmt=elf ;;
4102 i386-*-kaos*) fmt=elf ;;
4103 i386-*-bsd*) fmt=aout em=386bsd ;;
4104 i386-*-netbsd0.8) fmt=aout em=386bsd ;;
4105 i386-*-netbsdpe*) fmt=coff em=pe ;;
4106 i386-*-netbsd*-gnu*) fmt=elf em=nbsd ;;
4107 i386-*-netbsdelf*) fmt=elf em=nbsd ;;
4108 i386-*-*n*bsd*) case ${cpu} in
4109 x86_64) fmt=elf em=nbsd ;;
4110 *) fmt=aout em=nbsd ;;
4111 esac ;;
4112 i386-*-linux*aout*) fmt=aout em=linux ;;
4113 i386-*-linux*oldld) fmt=aout em=linux ;;
4114 i386-*-linux*coff*) fmt=coff em=linux ;;
4115 i386-*-linux-gnu*) fmt=elf em=linux ;;
4116 x86_64-*-linux-gnu*) fmt=elf em=linux ;;
4117 i386-*-lynxos*) fmt=coff em=lynx ;;
4118 i386-*-sysv[45]*) fmt=elf ;;
4119 i386-*-solaris*) fmt=elf ;;
4120 i386-*-freebsdaout*) fmt=aout em=386bsd ;;
4121 i386-*-freebsd[12].*) fmt=aout em=386bsd ;;
4122 i386-*-freebsd[12]) fmt=aout em=386bsd ;;
4123 i386-*-freebsd* | i386-*-kfreebsd*-gnu)
4124 fmt=elf em=freebsd ;;
4125 i386-*-sysv*) fmt=coff ;;
4126 i386-*-sco3.2v5*coff) fmt=coff ;;
4127 i386-*-isc*) fmt=coff ;;
4128 i386-*-sco3.2v5*) fmt=elf
4129 if test ${this_target} = $target; then
4130
4131 cat >>confdefs.h <<\_ACEOF
4132 #define SCO_ELF 1
4133 _ACEOF
4134
4135 fi ;;
4136 i386-*-sco3.2*) fmt=coff ;;
4137 i386-*-vsta) fmt=aout ;;
4138 i386-*-msdosdjgpp* \
4139 | i386-*-go32* \
4140 | i386-go32-rtems*) fmt=coff em=go32
4141
4142 cat >>confdefs.h <<\_ACEOF
4143 #define STRICTCOFF 1
4144 _ACEOF
4145 ;;
4146 i386-*-rtemself*) fmt=elf ;;
4147 i386-*-rtemscoff*) fmt=coff ;;
4148 i386-*-rtems*) fmt=elf ;;
4149 i386-*-gnu*) fmt=elf ;;
4150 i386-*-mach*) fmt=aout em=mach ;;
4151 i386-*-msdos*) fmt=aout ;;
4152 i386-*-moss*) fmt=elf ;;
4153 i386-*-pe) fmt=coff em=pe ;;
4154 i386-*-cygwin*) fmt=coff em=pe ;;
4155 i386-*-interix*) fmt=coff em=interix ;;
4156 i386-*-mingw32*) fmt=coff em=pe ;;
4157 i386-*-nto-qnx*) fmt=elf ;;
4158 i386-*-*nt*) fmt=coff em=pe ;;
4159 i386-*-vxworks*) fmt=aout ;;
4160 i386-*-chaos) fmt=elf ;;
4161
4162 i860-*-*) fmt=elf endian=little
4163 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4164 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} ;;
4165 i960-*-bout) fmt=bout ;;
4166 i960-*-coff) fmt=coff em=ic960 ;;
4167 i960-*-rtems*) fmt=coff em=ic960 ;;
4168 i960-*-nindy*) fmt=bout ;;
4169 i960-*-vxworks5.0) fmt=bout ;;
4170 i960-*-vxworks5.*) fmt=coff em=ic960 ;;
4171 i960-*-vxworks*) fmt=bout ;;
4172 i960-*-elf*) fmt=elf ;;
4173
4174 ia64-*-elf*) fmt=elf ;;
4175 ia64-*-aix*) fmt=elf em=ia64aix ;;
4176 ia64-*-linux-gnu*) fmt=elf em=linux ;;
4177 ia64-*-hpux*) fmt=elf em=hpux ;;
4178 ia64-*-netbsd*) fmt=elf em=nbsd ;;
4179
4180 ip2k-*-*) fmt=elf ;;
4181
4182 iq2000-*-elf) fmt=elf bfd_gas=yes ;;
4183
4184 m32r-*-*) fmt=elf ;;
4185
4186 m68hc11-*-* | m6811-*-*) fmt=elf ;;
4187 m68hc12-*-* | m6812-*-*) fmt=elf ;;
4188
4189 m68k-*-vxworks*) fmt=aout em=sun3 ;;
4190 m68k-ericsson-ose) fmt=aout em=sun3 ;;
4191 m68k-*-sunos*) fmt=aout em=sun3 ;;
4192 m68k-motorola-sysv*) fmt=coff em=delta ;;
4193 m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
4194 m68k-apollo-*) fmt=coff em=apollo ;;
4195 m68k-*-elf*) fmt=elf ;;
4196 m68k-*-sysv4*) fmt=elf em=svr4 ;;
4197 m68k-*-sysv*) fmt=coff ;;
4198 m68k-*-coff | m68k-*-rtemscoff*) fmt=coff ;;
4199 m68k-*-rtems*) fmt=elf ;;
4200 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
4201 m68k-*-linux*aout*) fmt=aout em=linux ;;
4202 m68k-*-linux-gnu*) fmt=elf em=linux ;;
4203 m68k-*-gnu*) fmt=elf ;;
4204 m68k-*-lynxos*) fmt=coff em=lynx ;;
4205 m68k-*-netbsdelf*) fmt=elf em=nbsd ;;
4206 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
4207 m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
4208 m68k-apple-aux*) fmt=coff em=aux ;;
4209 m68k-*-psos*) fmt=elf em=psos;;
4210
4211 m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
4212 m88k-*-coff*) fmt=coff ;;
4213
4214 mcore-*-elf) fmt=elf ;;
4215 mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
4216
4217 # don't change em like *-*-bsd does
4218 mips-dec-openbsd*) fmt=elf endian=little ;;
4219 mips-dec-bsd*) fmt=aout endian=little ;;
4220 mips-sony-bsd*) fmt=ecoff ;;
4221 mips-*-bsd*)
4222 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
4223 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
4224 { (exit 1); exit 1; }; } ;;
4225 mips-*-ultrix*) fmt=ecoff endian=little ;;
4226 mips-*-osf*) fmt=ecoff endian=little ;;
4227 mips-*-ecoff*) fmt=ecoff ;;
4228 mips-*-pe*) fmt=coff endian=little em=pe ;;
4229 mips-*-irix6*) fmt=elf em=irix ;;
4230 mips-*-irix5*) fmt=elf em=irix ;;
4231 mips-*-irix*) fmt=ecoff em=irix ;;
4232 mips-*-lnews*) fmt=ecoff em=lnews ;;
4233 mips-*-riscos*) fmt=ecoff ;;
4234 mips*-*-linux*) fmt=elf em=tmips ;;
4235 mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;;
4236 mips-*-sysv*) fmt=ecoff ;;
4237 mips-*-elf* | mips-*-rtems*) fmt=elf ;;
4238 mips-*-netbsd*) fmt=elf ;;
4239 mips-*-openbsd*) fmt=elf ;;
4240 mips-*-vxworks*) fmt=elf ;;
4241
4242 mmix-*-*) fmt=elf ;;
4243 mn10200-*-*) fmt=elf ;;
4244 mn10300-*-*) fmt=elf ;;
4245 msp430-*-*) fmt=elf ;;
4246 openrisc-*-*) fmt=elf ;;
4247 or32-*-rtems*) fmt=coff ;;
4248 or32-*-coff) fmt=coff ;;
4249 or32-*-elf) fmt=elf ;;
4250 pj*) fmt=elf ;;
4251
4252 ppc-*-pe | ppc-*-cygwin*) fmt=coff em=pe ;;
4253 ppc-*-winnt*) fmt=coff em=pe ;;
4254 ppc-*-aix5*) fmt=coff em=aix5 ;;
4255 ppc-*-aix*) fmt=coff ;;
4256 ppc-*-beos*) fmt=coff ;;
4257 ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
4258 ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
4259 ppc-*-linux-gnu*) fmt=elf
4260 case "$endian" in
4261 big) ;;
4262 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
4263 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4264 { (exit 1); exit 1; }; } ;;
4265 esac ;;
4266 ppc-*-solaris*) fmt=elf
4267 if test ${this_target} = $target; then
4268
4269 cat >>confdefs.h <<\_ACEOF
4270 #define TARGET_SOLARIS_COMMENT 1
4271 _ACEOF
4272
4273 fi
4274 if test x${endian} = xbig; then
4275 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
4276 echo "$as_me: error: Solaris must be configured little endian" >&2;}
4277 { (exit 1); exit 1; }; }
4278 fi ;;
4279 ppc-*-rtems*) fmt=elf ;;
4280 ppc-*-macos* | ppc-*-mpw*) fmt=coff em=macos ;;
4281 ppc-*-netware*) fmt=elf em=ppcnw ;;
4282 ppc-**-nto*) fmt=elf ;;
4283 ppc-*-vxworks*) fmt=elf ;;
4284 ppc-*-windiss*) fmt=elf ;;
4285 ppc-*-kaos*) fmt=elf ;;
4286
4287 s390x-*-linux-gnu*) fmt=elf em=linux ;;
4288 s390-*-linux-gnu*) fmt=elf em=linux ;;
4289
4290 sh*-*-linux*) fmt=elf em=linux
4291 case ${cpu} in
4292 sh*eb) endian=big ;;
4293 *) endian=little ;;
4294 esac ;;
4295 sh5*-*-netbsd*) fmt=elf em=nbsd ;;
4296 sh64*-*-netbsd*) fmt=elf em=nbsd ;;
4297 sh*-*-netbsdelf*) fmt=elf em=nbsd ;;
4298 sh-*-elf*) fmt=elf ;;
4299 sh-*-coff*) fmt=coff ;;
4300 sh-*-nto*) fmt=elf ;;
4301 sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
4302 sh-*-rtemself*) fmt=elf ;;
4303 sh-*-rtems*) fmt=coff ;;
4304 sh-*-kaos*) fmt=elf ;;
4305 shle*-*-kaos*) fmt=elf ;;
4306 sh64-*-elf*) fmt=elf ;;
4307
4308 ns32k-pc532-mach*) fmt=aout em=pc532mach ;;
4309 ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
4310 ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
4311 ns32k-*-*n*bsd*) fmt=aout em=nbsd532 ;;
4312
4313 sparc-*-rtemsaout*) fmt=aout ;;
4314 sparc-*-rtemself*) fmt=elf ;;
4315 sparc-*-rtems*) fmt=elf ;;
4316 sparc-*-sunos4*) fmt=aout em=sun3 ;;
4317 sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;;
4318 sparc-*-coff) fmt=coff ;;
4319 sparc-*-linux*aout*) fmt=aout em=linux ;;
4320 sparc-*-linux-gnu*) fmt=elf em=linux ;;
4321 sparc-*-lynxos*) fmt=coff em=lynx ;;
4322 sparc-fujitsu-none) fmt=aout ;;
4323 sparc-*-elf) fmt=elf ;;
4324 sparc-*-sysv4*) fmt=elf ;;
4325 sparc-*-solaris*) fmt=elf ;;
4326 sparc-*-netbsdelf*) fmt=elf em=nbsd ;;
4327 sparc-*-*n*bsd*) case ${cpu} in
4328 sparc64) fmt=elf em=nbsd ;;
4329 *) fmt=aout em=nbsd ;;
4330 esac ;;
4331 strongarm-*-coff) fmt=coff ;;
4332 strongarm-*-elf) fmt=elf ;;
4333 strongarm-*-kaos*) fmt=elf ;;
4334 xscale-*-coff) fmt=coff ;;
4335 xscale-*-elf) fmt=elf ;;
4336
4337 tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
4338 tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
4339 tic4x-*-* | c4x-*-*) fmt=coff bfd_gas=yes ;;
4340 tic54x-*-* | c54x*-*-*) fmt=coff bfd_gas=yes need_libm=yes;;
4341 tic80-*-*) fmt=coff ;;
4342
4343 v850-*-*) fmt=elf ;;
4344 v850e-*-*) fmt=elf ;;
4345 v850ea-*-*) fmt=elf ;;
4346
4347 vax-*-netbsdelf*) fmt=elf em=nbsd ;;
4348 vax-*-netbsd*) fmt=aout em=nbsd ;;
4349 vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
4350 vax-*-vms) fmt=vms ;;
4351
4352 w65-*-*) fmt=coff ;;
4353
4354 xstormy16-*-*) fmt=elf ;;
4355
4356 xtensa-*-*) fmt=elf ;;
4357
4358 z8k-*-coff | z8k-*-sim) fmt=coff ;;
4359
4360 *-*-aout | *-*-scout) fmt=aout ;;
4361 *-*-freebsd* | *-*-kfreebsd*-gnu) fmt=elf em=freebsd ;;
4362 *-*-nindy*) fmt=bout ;;
4363 *-*-bsd*) fmt=aout em=sun3 ;;
4364 *-*-generic) fmt=generic ;;
4365 *-*-xray | *-*-hms) fmt=coff ;;
4366 *-*-sim) fmt=coff ;;
4367 *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;;
4368 *-*-aros*) fmt=elf em=linux bfd_gas=yes ;;
4369 *-*-vxworks) fmt=aout ;;
4370 *-*-netware) fmt=elf ;;
4371 esac
4372
4373 if test ${this_target} = $target ; then
4374 endian_def=
4375 if test x${endian} = xbig; then
4376 endian_def=1
4377 elif test x${endian} = xlittle; then
4378 endian_def=0
4379 fi
4380 if test x${endian_def} != x; then
4381
4382 cat >>confdefs.h <<_ACEOF
4383 #define TARGET_BYTES_BIG_ENDIAN $endian_def
4384 _ACEOF
4385
4386 fi
4387 fi
4388
4389 case ${cpu_type}-${fmt} in
4390 alpha*-* | arm-* | i386-* | ia64*-* | mips-* | ns32k-* \
4391 | pdp11-* | ppc-* | sparc-* | strongarm-* | xscale-* \
4392 | *-elf | *-ecoff | *-som)
4393 bfd_gas=yes ;;
4394 esac
4395
4396 # Other random stuff.
4397
4398 case ${cpu_type} in
4399 mips)
4400 # Set mips_cpu to the name of the default CPU.
4401 case ${target_cpu} in
4402 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4403 mips_cpu=from-abi
4404 ;;
4405 mipsisa32 | mipsisa32el)
4406 mips_cpu=mips32
4407 ;;
4408 mipsisa32r2 | mipsisa32r2el)
4409 mips_cpu=mips32r2
4410 ;;
4411 mipsisa64 | mipsisa64el)
4412 mips_cpu=mips64
4413 ;;
4414 mipsisa64r2 | mipsisa64r2el)
4415 mips_cpu=mips64r2
4416 ;;
4417 mipstx39 | mipstx39el)
4418 mips_cpu=r3900
4419 ;;
4420 mips64vr | mips64vrel)
4421 mips_cpu=vr4100
4422 ;;
4423 mipsisa32r2* | mipsisa64r2*)
4424 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4425 ;;
4426 mips64* | mipsisa64* | mipsisa32*)
4427 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4428 ;;
4429 *)
4430 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4431 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4432 { (exit 1); exit 1; }; }
4433 ;;
4434 esac
4435 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4436 # binaries. It's a GNU extension that some OSes don't understand.
4437 # The value only matters on ELF targets.
4438 case ${target} in
4439 *-*-irix*)
4440 use_e_mips_abi_o32=0
4441 ;;
4442 *)
4443 use_e_mips_abi_o32=1
4444 ;;
4445 esac
4446 # Decide whether to generate 32-bit or 64-bit code by default.
4447 # Used to resolve -march=from-abi when an embedded ABI is selected.
4448 case ${target} in
4449 mips64*-*-* | mipsisa64*-*-*)
4450 mips_default_64bit=1
4451 ;;
4452 *)
4453 mips_default_64bit=0
4454 ;;
4455 esac
4456 # Decide which ABI to target by default.
4457 case ${target} in
4458 mips64*-linux* | mips-sgi-irix6*)
4459 mips_default_abi=N32_ABI
4460 ;;
4461 mips*-linux*)
4462 mips_default_abi=O32_ABI
4463 ;;
4464 *)
4465 mips_default_abi=NO_ABI
4466 ;;
4467 esac
4468
4469 cat >>confdefs.h <<_ACEOF
4470 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
4471 _ACEOF
4472
4473
4474 cat >>confdefs.h <<_ACEOF
4475 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
4476 _ACEOF
4477
4478
4479 cat >>confdefs.h <<_ACEOF
4480 #define MIPS_DEFAULT_64BIT $mips_default_64bit
4481 _ACEOF
4482
4483
4484 cat >>confdefs.h <<_ACEOF
4485 #define MIPS_DEFAULT_ABI $mips_default_abi
4486 _ACEOF
4487
4488 ;;
4489 esac
4490
4491 # Do we need the opcodes library?
4492 case ${cpu_type} in
4493 vax | i386 | tic30)
4494 ;;
4495
4496 *)
4497 need_opcodes=yes
4498
4499 case "${enable_shared}" in
4500 yes) shared_opcodes=true ;;
4501 *opcodes*) shared_opcodes=true ;;
4502 *) shared_opcodes=false ;;
4503 esac
4504 if test "${shared_opcodes}" = "true"; then
4505 # A shared libopcodes must be linked against libbfd.
4506 need_bfd=yes
4507 fi
4508 ;;
4509 esac
4510
4511 # Any other special object files needed ?
4512 case ${cpu_type} in
4513 fr30 | ip2k | iq2000 | m32r | openrisc)
4514 using_cgen=yes
4515 ;;
4516
4517 frv)
4518 using_cgen=yes
4519 ;;
4520 m68k)
4521 case ${extra_objects} in
4522 *m68k-parse.o*) ;;
4523 *) extra_objects="$extra_objects m68k-parse.o" ;;
4524 esac
4525 ;;
4526
4527 mips)
4528 echo ${extra_objects} | grep -s "itbl-parse.o"
4529 if test $? -ne 0 ; then
4530 extra_objects="$extra_objects itbl-parse.o"
4531 fi
4532
4533 echo ${extra_objects} | grep -s "itbl-lex.o"
4534 if test $? -ne 0 ; then
4535 extra_objects="$extra_objects itbl-lex.o"
4536 fi
4537
4538 echo ${extra_objects} | grep -s "itbl-ops.o"
4539 if test $? -ne 0 ; then
4540 extra_objects="$extra_objects itbl-ops.o"
4541 fi
4542 ;;
4543
4544 i386 | s390 | sparc)
4545 if test $this_target = $target ; then
4546
4547 cat >>confdefs.h <<_ACEOF
4548 #define DEFAULT_ARCH "${arch}"
4549 _ACEOF
4550
4551 fi
4552 ;;
4553
4554 xstormy16)
4555 using_cgen=yes
4556 ;;
4557
4558 xtensa)
4559 echo ${extra_objects} | grep -s "xtensa-relax.o"
4560 if test $? -ne 0 ; then
4561 extra_objects="$extra_objects xtensa-relax.o"
4562 fi
4563 ;;
4564
4565 *)
4566 ;;
4567 esac
4568
4569 if test $using_cgen = yes ; then
4570 case "x${extra_objects}" in
4571 *cgen.o*) ;;
4572 *) extra_objects="$extra_objects cgen.o" ;;
4573 esac
4574 fi
4575
4576 # See if we really can support this configuration with the emulation code.
4577
4578 if test $this_target = $target ; then
4579 primary_bfd_gas=$bfd_gas
4580 obj_format=$fmt
4581 te_file=$em
4582
4583 if test $bfd_gas = no ; then
4584 # Can't support other configurations this way.
4585 break
4586 fi
4587 elif test $bfd_gas = no ; then
4588 # Can't support this configuration.
4589 break
4590 fi
4591
4592 # From target name and format, produce a list of supported emulations.
4593
4594 case ${generic_target}-${fmt} in
4595 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4596 mips*-*-linux*-*) case "$endian" in
4597 big) emulation="mipsbelf mipslelf mipself" ;;
4598 *) emulation="mipslelf mipsbelf mipself" ;;
4599 esac ;;
4600 mips-*-lnews*-ecoff) ;;
4601 mips-*-*-ecoff) case "$endian" in
4602 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4603 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4604 esac ;;
4605 mips-*-*-elf) case "$endian" in
4606 big) emulation="mipsbelf mipslelf mipself" ;;
4607 *) emulation="mipslelf mipsbelf mipself" ;;
4608 esac ;;
4609 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4610 # i386-pc-pe-coff != i386-pc-coff.
4611 i386-*-pe-coff) ;;
4612 # Uncommenting the next line will turn on support for i386 AOUT
4613 # for the default linux configuration
4614 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4615 #
4616 i386-*-aout) emulation="i386aout" ;;
4617 i386-*-coff) emulation="i386coff" ;;
4618 i386-*-elf) emulation="i386elf" ;;
4619
4620 # Always all formats. The first stated emulation becomes the default.
4621 cris-*-*aout*) emulation="crisaout criself" ;;
4622 cris-*-*) emulation="criself crisaout" ;;
4623 esac
4624
4625 emulations="$emulations $emulation"
4626
4627 done
4628
4629 # Turn on all targets if possible
4630 if test ${all_targets} = "yes"; then
4631 case ${target_cpu_type} in
4632 i386)
4633 case ${obj_format} in
4634 aout)
4635 emulations="$emulations i386coff i386elf"
4636 ;;
4637 coff)
4638 emulations="$emulations i386aout i386elf"
4639 ;;
4640 elf)
4641 emulations="$emulations i386aout i386coff"
4642 ;;
4643 esac
4644 ;;
4645 esac
4646 fi
4647
4648 # Assign floating point type. Most processors with FP support
4649 # IEEE FP. On those that don't support FP at all, usually IEEE
4650 # is emulated.
4651 case ${target_cpu} in
4652 vax | tahoe ) atof=${target_cpu} ;;
4653 pdp11) atof=vax ;;
4654 *) atof=ieee ;;
4655 esac
4656
4657 case "${obj_format}" in
4658 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4659 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4660 { (exit 1); exit 1; }; } ;;
4661 esac
4662
4663 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4664 cgen_cpu_prefix=""
4665 if test $using_cgen = yes ; then
4666 case ${target_cpu} in
4667 *) cgen_cpu_prefix=${target_cpu} ;;
4668 esac
4669
4670
4671 cat >>confdefs.h <<\_ACEOF
4672 #define USING_CGEN 1
4673 _ACEOF
4674
4675 fi
4676
4677
4678 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
4679 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4680 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4681 { (exit 1); exit 1; }; }
4682 fi
4683
4684 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
4685 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4686 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4687 { (exit 1); exit 1; }; }
4688 fi
4689
4690 case ${user_bfd_gas}-${primary_bfd_gas} in
4691 yes-yes | no-no)
4692 # We didn't override user's choice.
4693 ;;
4694 no-yes)
4695 { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4696 echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
4697 ;;
4698 no-preferred)
4699 primary_bfd_gas=no
4700 ;;
4701 *-preferred)
4702 primary_bfd_gas=yes
4703 ;;
4704 yes-*)
4705 primary_bfd_gas=yes
4706 ;;
4707 -*)
4708 # User specified nothing.
4709 ;;
4710 esac
4711
4712 # Some COFF configurations want these random other flags set.
4713 case ${obj_format} in
4714 coff)
4715 case ${target_cpu_type} in
4716 i386)
4717 cat >>confdefs.h <<\_ACEOF
4718 #define I386COFF 1
4719 _ACEOF
4720 ;;
4721 m68k)
4722 cat >>confdefs.h <<\_ACEOF
4723 #define M68KCOFF 1
4724 _ACEOF
4725 ;;
4726 m88k)
4727 cat >>confdefs.h <<\_ACEOF
4728 #define M88KCOFF 1
4729 _ACEOF
4730 ;;
4731 esac
4732 ;;
4733 esac
4734
4735 # Getting this done right is going to be a bitch. Each configuration specified
4736 # with --enable-targets=... should be checked for environment, format, cpu, and
4737 # bfd_gas setting.
4738 #
4739 # For each configuration, the necessary object file support code must be linked
4740 # in. This might be only one, it might be up to four. The necessary emulation
4741 # code needs to be provided, too.
4742 #
4743 # And then there's "--enable-targets=all"....
4744 #
4745 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4746
4747 formats="${obj_format}"
4748 emfiles=""
4749 EMULATIONS=""
4750 _gas_uniq_list="$emulations"
4751 _gas_uniq_newlist=""
4752 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4753 case $_gas_uniq_i in
4754 _gas_uniq_dummy) ;;
4755 *) case " $_gas_uniq_newlist " in
4756 *" $_gas_uniq_i "*) ;;
4757 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4758 esac ;;
4759 esac
4760 done
4761 emulations=$_gas_uniq_newlist
4762
4763 for em in . $emulations ; do
4764 case $em in
4765 .) continue ;;
4766 mipsbelf | mipslelf | mipself)
4767 fmt=elf file=mipself ;;
4768 mipsbecoff | mipslecoff | mipsecoff)
4769 fmt=ecoff file=mipsecoff ;;
4770 *coff)
4771 fmt=coff file=$em ;;
4772 *aout)
4773 fmt=aout file=$em ;;
4774 *elf)
4775 fmt=elf file=$em ;;
4776 esac
4777 formats="$formats $fmt"
4778 emfiles="$emfiles e-$file.o"
4779 EMULATIONS="$EMULATIONS &$em,"
4780 done
4781 _gas_uniq_list="$formats"
4782 _gas_uniq_newlist=""
4783 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4784 case $_gas_uniq_i in
4785 _gas_uniq_dummy) ;;
4786 *) case " $_gas_uniq_newlist " in
4787 *" $_gas_uniq_i "*) ;;
4788 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4789 esac ;;
4790 esac
4791 done
4792 formats=$_gas_uniq_newlist
4793
4794 _gas_uniq_list="$emfiles"
4795 _gas_uniq_newlist=""
4796 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4797 case $_gas_uniq_i in
4798 _gas_uniq_dummy) ;;
4799 *) case " $_gas_uniq_newlist " in
4800 *" $_gas_uniq_i "*) ;;
4801 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4802 esac ;;
4803 esac
4804 done
4805 emfiles=$_gas_uniq_newlist
4806
4807 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4808 for fmt in $formats ; do
4809 case $fmt in
4810 aout)
4811 cat >>confdefs.h <<\_ACEOF
4812 #define OBJ_MAYBE_AOUT 1
4813 _ACEOF
4814 ;;
4815 bout)
4816 cat >>confdefs.h <<\_ACEOF
4817 #define OBJ_MAYBE_BOUT 1
4818 _ACEOF
4819 ;;
4820 coff)
4821 cat >>confdefs.h <<\_ACEOF
4822 #define OBJ_MAYBE_COFF 1
4823 _ACEOF
4824 ;;
4825 ecoff)
4826 cat >>confdefs.h <<\_ACEOF
4827 #define OBJ_MAYBE_ECOFF 1
4828 _ACEOF
4829 ;;
4830 elf)
4831 cat >>confdefs.h <<\_ACEOF
4832 #define OBJ_MAYBE_ELF 1
4833 _ACEOF
4834 ;;
4835 generic)
4836 cat >>confdefs.h <<\_ACEOF
4837 #define OBJ_MAYBE_GENERIC 1
4838 _ACEOF
4839 ;;
4840 hp300)
4841 cat >>confdefs.h <<\_ACEOF
4842 #define OBJ_MAYBE_HP300 1
4843 _ACEOF
4844 ;;
4845 ieee)
4846 cat >>confdefs.h <<\_ACEOF
4847 #define OBJ_MAYBE_IEEE 1
4848 _ACEOF
4849 ;;
4850 som)
4851 cat >>confdefs.h <<\_ACEOF
4852 #define OBJ_MAYBE_SOM 1
4853 _ACEOF
4854 ;;
4855 vms)
4856 cat >>confdefs.h <<\_ACEOF
4857 #define OBJ_MAYBE_VMS 1
4858 _ACEOF
4859 ;;
4860 esac
4861 extra_objects="$extra_objects obj-$fmt.o"
4862 done
4863 obj_format=multi
4864 fi
4865 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
4866 DEFAULT_EMULATION=`set . $emulations ; echo $2`
4867 # e-mips* has more than one emulation per file, e-i386* has just one at the
4868 # moment. If only one emulation is specified, then don't define
4869 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
4870 case "${obj_format}${emfiles}" in
4871 multi* | *mips*)
4872 extra_objects="$extra_objects $emfiles"
4873
4874 cat >>confdefs.h <<\_ACEOF
4875 #define USE_EMULATIONS 1
4876 _ACEOF
4877 ;;
4878 esac
4879 fi
4880
4881
4882 cat >>confdefs.h <<_ACEOF
4883 #define EMULATIONS $EMULATIONS
4884 _ACEOF
4885
4886
4887 cat >>confdefs.h <<_ACEOF
4888 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
4889 _ACEOF
4890
4891
4892 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
4893 yes-*-coff) need_bfd=yes ;;
4894 no-*-coff) need_bfd=yes
4895
4896 cat >>confdefs.h <<\_ACEOF
4897 #define MANY_SEGMENTS 1
4898 _ACEOF
4899 ;;
4900 esac
4901
4902 reject_dev_configs=yes
4903
4904 case ${reject_dev_configs}-${dev} in
4905 yes-yes) # Oops.
4906 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
4907 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
4908 { (exit 1); exit 1; }; }
4909 ;;
4910 esac
4911
4912
4913
4914
4915
4916
4917
4918 case "${primary_bfd_gas}" in
4919 yes)
4920 cat >>confdefs.h <<\_ACEOF
4921 #define BFD_ASSEMBLER 1
4922 _ACEOF
4923
4924 need_bfd=yes ;;
4925 esac
4926
4927 # do we need the opcodes library?
4928 case "${need_opcodes}" in
4929 yes)
4930 OPCODES_LIB=../opcodes/libopcodes.la
4931 ;;
4932 esac
4933
4934 case "${need_bfd}" in
4935 yes)
4936 BFDLIB=../bfd/libbfd.la
4937 BFDVER_H=../bfd/bfdver.h
4938 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
4939 ;;
4940 esac
4941
4942
4943
4944
4945
4946
4947
4948
4949 cat >>confdefs.h <<_ACEOF
4950 #define TARGET_ALIAS "${target_alias}"
4951 _ACEOF
4952
4953
4954 cat >>confdefs.h <<_ACEOF
4955 #define TARGET_CANONICAL "${target}"
4956 _ACEOF
4957
4958
4959 cat >>confdefs.h <<_ACEOF
4960 #define TARGET_CPU "${target_cpu}"
4961 _ACEOF
4962
4963
4964 cat >>confdefs.h <<_ACEOF
4965 #define TARGET_VENDOR "${target_vendor}"
4966 _ACEOF
4967
4968
4969 cat >>confdefs.h <<_ACEOF
4970 #define TARGET_OS "${target_os}"
4971 _ACEOF
4972
4973
4974 ac_ext=c
4975 ac_cpp='$CPP $CPPFLAGS'
4976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979 if test -n "$ac_tool_prefix"; then
4980 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4981 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_prog_CC+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987 if test -n "$CC"; then
4988 ac_cv_prog_CC="$CC" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5000 fi
5001 done
5002 done
5003
5004 fi
5005 fi
5006 CC=$ac_cv_prog_CC
5007 if test -n "$CC"; then
5008 echo "$as_me:$LINENO: result: $CC" >&5
5009 echo "${ECHO_T}$CC" >&6
5010 else
5011 echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5013 fi
5014
5015 fi
5016 if test -z "$ac_cv_prog_CC"; then
5017 ac_ct_CC=$CC
5018 # Extract the first word of "gcc", so it can be a program name with args.
5019 set dummy gcc; ac_word=$2
5020 echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025 if test -n "$ac_ct_CC"; then
5026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_prog_ac_ct_CC="gcc"
5036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5038 fi
5039 done
5040 done
5041
5042 fi
5043 fi
5044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5045 if test -n "$ac_ct_CC"; then
5046 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5047 echo "${ECHO_T}$ac_ct_CC" >&6
5048 else
5049 echo "$as_me:$LINENO: result: no" >&5
5050 echo "${ECHO_T}no" >&6
5051 fi
5052
5053 CC=$ac_ct_CC
5054 else
5055 CC="$ac_cv_prog_CC"
5056 fi
5057
5058 if test -z "$CC"; then
5059 if test -n "$ac_tool_prefix"; then
5060 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5061 set dummy ${ac_tool_prefix}cc; ac_word=$2
5062 echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5064 if test "${ac_cv_prog_CC+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 if test -n "$CC"; then
5068 ac_cv_prog_CC="$CC" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077 ac_cv_prog_CC="${ac_tool_prefix}cc"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5080 fi
5081 done
5082 done
5083
5084 fi
5085 fi
5086 CC=$ac_cv_prog_CC
5087 if test -n "$CC"; then
5088 echo "$as_me:$LINENO: result: $CC" >&5
5089 echo "${ECHO_T}$CC" >&6
5090 else
5091 echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6
5093 fi
5094
5095 fi
5096 if test -z "$ac_cv_prog_CC"; then
5097 ac_ct_CC=$CC
5098 # Extract the first word of "cc", so it can be a program name with args.
5099 set dummy cc; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 if test -n "$ac_ct_CC"; then
5106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_ac_ct_CC="cc"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119 done
5120 done
5121
5122 fi
5123 fi
5124 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5125 if test -n "$ac_ct_CC"; then
5126 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5127 echo "${ECHO_T}$ac_ct_CC" >&6
5128 else
5129 echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6
5131 fi
5132
5133 CC=$ac_ct_CC
5134 else
5135 CC="$ac_cv_prog_CC"
5136 fi
5137
5138 fi
5139 if test -z "$CC"; then
5140 # Extract the first word of "cc", so it can be a program name with args.
5141 set dummy cc; ac_word=$2
5142 echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5144 if test "${ac_cv_prog_CC+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147 if test -n "$CC"; then
5148 ac_cv_prog_CC="$CC" # Let the user override the test.
5149 else
5150 ac_prog_rejected=no
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5159 ac_prog_rejected=yes
5160 continue
5161 fi
5162 ac_cv_prog_CC="cc"
5163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166 done
5167 done
5168
5169 if test $ac_prog_rejected = yes; then
5170 # We found a bogon in the path, so make sure we never use it.
5171 set dummy $ac_cv_prog_CC
5172 shift
5173 if test $# != 0; then
5174 # We chose a different compiler from the bogus one.
5175 # However, it has the same basename, so the bogon will be chosen
5176 # first if we set CC to just the basename; use the full file name.
5177 shift
5178 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5179 fi
5180 fi
5181 fi
5182 fi
5183 CC=$ac_cv_prog_CC
5184 if test -n "$CC"; then
5185 echo "$as_me:$LINENO: result: $CC" >&5
5186 echo "${ECHO_T}$CC" >&6
5187 else
5188 echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6
5190 fi
5191
5192 fi
5193 if test -z "$CC"; then
5194 if test -n "$ac_tool_prefix"; then
5195 for ac_prog in cl
5196 do
5197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5199 echo "$as_me:$LINENO: checking for $ac_word" >&5
5200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5201 if test "${ac_cv_prog_CC+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204 if test -n "$CC"; then
5205 ac_cv_prog_CC="$CC" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5209 do
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5217 fi
5218 done
5219 done
5220
5221 fi
5222 fi
5223 CC=$ac_cv_prog_CC
5224 if test -n "$CC"; then
5225 echo "$as_me:$LINENO: result: $CC" >&5
5226 echo "${ECHO_T}$CC" >&6
5227 else
5228 echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5230 fi
5231
5232 test -n "$CC" && break
5233 done
5234 fi
5235 if test -z "$CC"; then
5236 ac_ct_CC=$CC
5237 for ac_prog in cl
5238 do
5239 # Extract the first word of "$ac_prog", so it can be a program name with args.
5240 set dummy $ac_prog; ac_word=$2
5241 echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246 if test -n "$ac_ct_CC"; then
5247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5251 do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256 ac_cv_prog_ac_ct_CC="$ac_prog"
5257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5259 fi
5260 done
5261 done
5262
5263 fi
5264 fi
5265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5266 if test -n "$ac_ct_CC"; then
5267 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5268 echo "${ECHO_T}$ac_ct_CC" >&6
5269 else
5270 echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6
5272 fi
5273
5274 test -n "$ac_ct_CC" && break
5275 done
5276
5277 CC=$ac_ct_CC
5278 fi
5279
5280 fi
5281
5282
5283 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5284 See \`config.log' for more details." >&5
5285 echo "$as_me: error: no acceptable C compiler found in \$PATH
5286 See \`config.log' for more details." >&2;}
5287 { (exit 1); exit 1; }; }
5288
5289 # Provide some information about the compiler.
5290 echo "$as_me:$LINENO:" \
5291 "checking for C compiler version" >&5
5292 ac_compiler=`set X $ac_compile; echo $2`
5293 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5294 (eval $ac_compiler --version </dev/null >&5) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }
5298 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5299 (eval $ac_compiler -v </dev/null >&5) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }
5303 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5304 (eval $ac_compiler -V </dev/null >&5) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }
5308
5309 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5310 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5311 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314 cat >conftest.$ac_ext <<_ACEOF
5315 #line $LINENO "configure"
5316 /* confdefs.h. */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321
5322 int
5323 main ()
5324 {
5325 #ifndef __GNUC__
5326 choke me
5327 #endif
5328
5329 ;
5330 return 0;
5331 }
5332 _ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335 (eval $ac_compile) 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
5339 { ac_try='test -s conftest.$ac_objext'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 (eval $ac_try) 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; }; then
5345 ac_compiler_gnu=yes
5346 else
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5349
5350 ac_compiler_gnu=no
5351 fi
5352 rm -f conftest.$ac_objext conftest.$ac_ext
5353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5354
5355 fi
5356 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5357 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5358 GCC=`test $ac_compiler_gnu = yes && echo yes`
5359 ac_test_CFLAGS=${CFLAGS+set}
5360 ac_save_CFLAGS=$CFLAGS
5361 CFLAGS="-g"
5362 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5363 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5364 if test "${ac_cv_prog_cc_g+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 cat >conftest.$ac_ext <<_ACEOF
5368 #line $LINENO "configure"
5369 /* confdefs.h. */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374
5375 int
5376 main ()
5377 {
5378
5379 ;
5380 return 0;
5381 }
5382 _ACEOF
5383 rm -f conftest.$ac_objext
5384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385 (eval $ac_compile) 2>&5
5386 ac_status=$?
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } &&
5389 { ac_try='test -s conftest.$ac_objext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 (eval $ac_try) 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5395 ac_cv_prog_cc_g=yes
5396 else
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.$ac_ext >&5
5399
5400 ac_cv_prog_cc_g=no
5401 fi
5402 rm -f conftest.$ac_objext conftest.$ac_ext
5403 fi
5404 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5405 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5406 if test "$ac_test_CFLAGS" = set; then
5407 CFLAGS=$ac_save_CFLAGS
5408 elif test $ac_cv_prog_cc_g = yes; then
5409 if test "$GCC" = yes; then
5410 CFLAGS="-g -O2"
5411 else
5412 CFLAGS="-g"
5413 fi
5414 else
5415 if test "$GCC" = yes; then
5416 CFLAGS="-O2"
5417 else
5418 CFLAGS=
5419 fi
5420 fi
5421 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5422 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5423 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426 ac_cv_prog_cc_stdc=no
5427 ac_save_CC=$CC
5428 cat >conftest.$ac_ext <<_ACEOF
5429 #line $LINENO "configure"
5430 /* confdefs.h. */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 #include <stdarg.h>
5436 #include <stdio.h>
5437 #include <sys/types.h>
5438 #include <sys/stat.h>
5439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5440 struct buf { int x; };
5441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5442 static char *e (p, i)
5443 char **p;
5444 int i;
5445 {
5446 return p[i];
5447 }
5448 static char *f (char * (*g) (char **, int), char **p, ...)
5449 {
5450 char *s;
5451 va_list v;
5452 va_start (v,p);
5453 s = g (p, va_arg (v,int));
5454 va_end (v);
5455 return s;
5456 }
5457 int test (int i, double x);
5458 struct s1 {int (*f) (int a);};
5459 struct s2 {int (*f) (double a);};
5460 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5461 int argc;
5462 char **argv;
5463 int
5464 main ()
5465 {
5466 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 # Don't try gcc -ansi; that turns off useful extensions and
5472 # breaks some systems' header files.
5473 # AIX -qlanglvl=ansi
5474 # Ultrix and OSF/1 -std1
5475 # HP-UX 10.20 and later -Ae
5476 # HP-UX older versions -Aa -D_HPUX_SOURCE
5477 # SVR4 -Xc -D__EXTENSIONS__
5478 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5479 do
5480 CC="$ac_save_CC $ac_arg"
5481 rm -f conftest.$ac_objext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483 (eval $ac_compile) 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } &&
5487 { ac_try='test -s conftest.$ac_objext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 (eval $ac_try) 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_prog_cc_stdc=$ac_arg
5494 break
5495 else
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5498
5499 fi
5500 rm -f conftest.$ac_objext
5501 done
5502 rm -f conftest.$ac_ext conftest.$ac_objext
5503 CC=$ac_save_CC
5504
5505 fi
5506
5507 case "x$ac_cv_prog_cc_stdc" in
5508 x|xno)
5509 echo "$as_me:$LINENO: result: none needed" >&5
5510 echo "${ECHO_T}none needed" >&6 ;;
5511 *)
5512 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5513 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5514 CC="$CC $ac_cv_prog_cc_stdc" ;;
5515 esac
5516
5517 # Some people use a C++ compiler to compile C. Since we use `exit',
5518 # in C++ we need to declare it. In case someone uses the same compiler
5519 # for both compiling C and C++ we need to have the C++ compiler decide
5520 # the declaration of exit, since it's the most demanding environment.
5521 cat >conftest.$ac_ext <<_ACEOF
5522 #ifndef __cplusplus
5523 choke me
5524 #endif
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5528 (eval $ac_compile) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 for ac_declaration in \
5539 ''\
5540 '#include <stdlib.h>' \
5541 'extern "C" void std::exit (int) throw (); using std::exit;' \
5542 'extern "C" void std::exit (int); using std::exit;' \
5543 'extern "C" void exit (int) throw ();' \
5544 'extern "C" void exit (int);' \
5545 'void exit (int);'
5546 do
5547 cat >conftest.$ac_ext <<_ACEOF
5548 #line $LINENO "configure"
5549 /* confdefs.h. */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5554 #include <stdlib.h>
5555 $ac_declaration
5556 int
5557 main ()
5558 {
5559 exit (42);
5560 ;
5561 return 0;
5562 }
5563 _ACEOF
5564 rm -f conftest.$ac_objext
5565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5566 (eval $ac_compile) 2>&5
5567 ac_status=$?
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try='test -s conftest.$ac_objext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 (eval $ac_try) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 :
5577 else
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5580
5581 continue
5582 fi
5583 rm -f conftest.$ac_objext conftest.$ac_ext
5584 cat >conftest.$ac_ext <<_ACEOF
5585 #line $LINENO "configure"
5586 /* confdefs.h. */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 $ac_declaration
5592 int
5593 main ()
5594 {
5595 exit (42);
5596 ;
5597 return 0;
5598 }
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } &&
5606 { ac_try='test -s conftest.$ac_objext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 break
5613 else
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5616
5617 fi
5618 rm -f conftest.$ac_objext conftest.$ac_ext
5619 done
5620 rm -f conftest*
5621 if test -n "$ac_declaration"; then
5622 echo '#ifdef __cplusplus' >>confdefs.h
5623 echo $ac_declaration >>confdefs.h
5624 echo '#endif' >>confdefs.h
5625 fi
5626
5627 else
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5630
5631 fi
5632 rm -f conftest.$ac_objext conftest.$ac_ext
5633 ac_ext=c
5634 ac_cpp='$CPP $CPPFLAGS'
5635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638
5639
5640 for ac_prog in 'bison -y' byacc
5641 do
5642 # Extract the first word of "$ac_prog", so it can be a program name with args.
5643 set dummy $ac_prog; ac_word=$2
5644 echo "$as_me:$LINENO: checking for $ac_word" >&5
5645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5646 if test "${ac_cv_prog_YACC+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 if test -n "$YACC"; then
5650 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_YACC="$ac_prog"
5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5662 fi
5663 done
5664 done
5665
5666 fi
5667 fi
5668 YACC=$ac_cv_prog_YACC
5669 if test -n "$YACC"; then
5670 echo "$as_me:$LINENO: result: $YACC" >&5
5671 echo "${ECHO_T}$YACC" >&6
5672 else
5673 echo "$as_me:$LINENO: result: no" >&5
5674 echo "${ECHO_T}no" >&6
5675 fi
5676
5677 test -n "$YACC" && break
5678 done
5679 test -n "$YACC" || YACC="yacc"
5680
5681 for ac_prog in flex lex
5682 do
5683 # Extract the first word of "$ac_prog", so it can be a program name with args.
5684 set dummy $ac_prog; ac_word=$2
5685 echo "$as_me:$LINENO: checking for $ac_word" >&5
5686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5687 if test "${ac_cv_prog_LEX+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690 if test -n "$LEX"; then
5691 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5692 else
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_LEX="$ac_prog"
5701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704 done
5705 done
5706
5707 fi
5708 fi
5709 LEX=$ac_cv_prog_LEX
5710 if test -n "$LEX"; then
5711 echo "$as_me:$LINENO: result: $LEX" >&5
5712 echo "${ECHO_T}$LEX" >&6
5713 else
5714 echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6
5716 fi
5717
5718 test -n "$LEX" && break
5719 done
5720 test -n "$LEX" || LEX=":"
5721
5722 if test -z "$LEXLIB"
5723 then
5724 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5725 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5726 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729 ac_check_lib_save_LIBS=$LIBS
5730 LIBS="-lfl $LIBS"
5731 cat >conftest.$ac_ext <<_ACEOF
5732 #line $LINENO "configure"
5733 /* confdefs.h. */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5738
5739 /* Override any gcc2 internal prototype to avoid an error. */
5740 #ifdef __cplusplus
5741 extern "C"
5742 #endif
5743 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */
5745 char yywrap ();
5746 int
5747 main ()
5748 {
5749 yywrap ();
5750 ;
5751 return 0;
5752 }
5753 _ACEOF
5754 rm -f conftest.$ac_objext conftest$ac_exeext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756 (eval $ac_link) 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try='test -s conftest$ac_exeext'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 (eval $ac_try) 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; }; then
5766 ac_cv_lib_fl_yywrap=yes
5767 else
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5770
5771 ac_cv_lib_fl_yywrap=no
5772 fi
5773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5774 LIBS=$ac_check_lib_save_LIBS
5775 fi
5776 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5777 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5778 if test $ac_cv_lib_fl_yywrap = yes; then
5779 LEXLIB="-lfl"
5780 else
5781 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5782 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5783 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786 ac_check_lib_save_LIBS=$LIBS
5787 LIBS="-ll $LIBS"
5788 cat >conftest.$ac_ext <<_ACEOF
5789 #line $LINENO "configure"
5790 /* confdefs.h. */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5795
5796 /* Override any gcc2 internal prototype to avoid an error. */
5797 #ifdef __cplusplus
5798 extern "C"
5799 #endif
5800 /* We use char because int might match the return type of a gcc2
5801 builtin and then its argument prototype would still apply. */
5802 char yywrap ();
5803 int
5804 main ()
5805 {
5806 yywrap ();
5807 ;
5808 return 0;
5809 }
5810 _ACEOF
5811 rm -f conftest.$ac_objext conftest$ac_exeext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5813 (eval $ac_link) 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -s conftest$ac_exeext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 (eval $ac_try) 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_cv_lib_l_yywrap=yes
5824 else
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828 ac_cv_lib_l_yywrap=no
5829 fi
5830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5831 LIBS=$ac_check_lib_save_LIBS
5832 fi
5833 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5834 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5835 if test $ac_cv_lib_l_yywrap = yes; then
5836 LEXLIB="-ll"
5837 fi
5838
5839 fi
5840
5841 fi
5842
5843 if test "x$LEX" != "x:"; then
5844 echo "$as_me:$LINENO: checking lex output file root" >&5
5845 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5846 if test "${ac_cv_prog_lex_root+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849 # The minimal lex program is just a single line: %%. But some broken lexes
5850 # (Solaris, I think it was) want two %% lines, so accommodate them.
5851 cat >conftest.l <<_ACEOF
5852 %%
5853 %%
5854 _ACEOF
5855 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5856 (eval $LEX conftest.l) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }
5860 if test -f lex.yy.c; then
5861 ac_cv_prog_lex_root=lex.yy
5862 elif test -f lexyy.c; then
5863 ac_cv_prog_lex_root=lexyy
5864 else
5865 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5866 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5867 { (exit 1); exit 1; }; }
5868 fi
5869 fi
5870 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5871 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5872 rm -f conftest.l
5873 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5874
5875 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5876 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5877 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 # POSIX says lex can declare yytext either as a pointer or an array; the
5881 # default is implementation-dependent. Figure out which it is, since
5882 # not all implementations provide the %pointer and %array declarations.
5883 ac_cv_prog_lex_yytext_pointer=no
5884 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5885 ac_save_LIBS=$LIBS
5886 LIBS="$LIBS $LEXLIB"
5887 cat >conftest.$ac_ext <<_ACEOF
5888 `cat $LEX_OUTPUT_ROOT.c`
5889 _ACEOF
5890 rm -f conftest.$ac_objext conftest$ac_exeext
5891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5892 (eval $ac_link) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -s conftest$ac_exeext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_cv_prog_lex_yytext_pointer=yes
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 fi
5908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5909 LIBS=$ac_save_LIBS
5910 rm -f "${LEX_OUTPUT_ROOT}.c"
5911
5912 fi
5913 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5914 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5915 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5916
5917 cat >>confdefs.h <<\_ACEOF
5918 #define YYTEXT_POINTER 1
5919 _ACEOF
5920
5921 fi
5922
5923 fi
5924 if test "$LEX" = :; then
5925 LEX=${am_missing_run}flex
5926 fi
5927
5928 ALL_LINGUAS="fr tr es"
5929 if test -n "$ac_tool_prefix"; then
5930 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5931 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5932 echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5934 if test "${ac_cv_prog_RANLIB+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937 if test -n "$RANLIB"; then
5938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5939 else
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943 IFS=$as_save_IFS
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 break 2
5950 fi
5951 done
5952 done
5953
5954 fi
5955 fi
5956 RANLIB=$ac_cv_prog_RANLIB
5957 if test -n "$RANLIB"; then
5958 echo "$as_me:$LINENO: result: $RANLIB" >&5
5959 echo "${ECHO_T}$RANLIB" >&6
5960 else
5961 echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6
5963 fi
5964
5965 fi
5966 if test -z "$ac_cv_prog_RANLIB"; then
5967 ac_ct_RANLIB=$RANLIB
5968 # Extract the first word of "ranlib", so it can be a program name with args.
5969 set dummy ranlib; ac_word=$2
5970 echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975 if test -n "$ac_ct_RANLIB"; then
5976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985 ac_cv_prog_ac_ct_RANLIB="ranlib"
5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5988 fi
5989 done
5990 done
5991
5992 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5993 fi
5994 fi
5995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5996 if test -n "$ac_ct_RANLIB"; then
5997 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5998 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5999 else
6000 echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6
6002 fi
6003
6004 RANLIB=$ac_ct_RANLIB
6005 else
6006 RANLIB="$ac_cv_prog_RANLIB"
6007 fi
6008
6009 ac_ext=c
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6014 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6015 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6016 # On Suns, sometimes $CPP names a directory.
6017 if test -n "$CPP" && test -d "$CPP"; then
6018 CPP=
6019 fi
6020 if test -z "$CPP"; then
6021 if test "${ac_cv_prog_CPP+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024 # Double quotes because CPP needs to be expanded
6025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6026 do
6027 ac_preproc_ok=false
6028 for ac_c_preproc_warn_flag in '' yes
6029 do
6030 # Use a header file that comes with gcc, so configuring glibc
6031 # with a fresh cross-compiler works.
6032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6033 # <limits.h> exists even on freestanding compilers.
6034 # On the NeXT, cc -E runs the code through the compiler's parser,
6035 # not just through cpp. "Syntax error" is here to catch this case.
6036 cat >conftest.$ac_ext <<_ACEOF
6037 #line $LINENO "configure"
6038 /* confdefs.h. */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6043 #ifdef __STDC__
6044 # include <limits.h>
6045 #else
6046 # include <assert.h>
6047 #endif
6048 Syntax error
6049 _ACEOF
6050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } >/dev/null; then
6058 if test -s conftest.err; then
6059 ac_cpp_err=$ac_c_preproc_warn_flag
6060 else
6061 ac_cpp_err=
6062 fi
6063 else
6064 ac_cpp_err=yes
6065 fi
6066 if test -z "$ac_cpp_err"; then
6067 :
6068 else
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6071
6072 # Broken: fails on valid input.
6073 continue
6074 fi
6075 rm -f conftest.err conftest.$ac_ext
6076
6077 # OK, works on sane cases. Now check whether non-existent headers
6078 # can be detected and how.
6079 cat >conftest.$ac_ext <<_ACEOF
6080 #line $LINENO "configure"
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 #include <ac_nonexistent.h>
6087 _ACEOF
6088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6090 ac_status=$?
6091 grep -v '^ *+' conftest.er1 >conftest.err
6092 rm -f conftest.er1
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } >/dev/null; then
6096 if test -s conftest.err; then
6097 ac_cpp_err=$ac_c_preproc_warn_flag
6098 else
6099 ac_cpp_err=
6100 fi
6101 else
6102 ac_cpp_err=yes
6103 fi
6104 if test -z "$ac_cpp_err"; then
6105 # Broken: success on invalid input.
6106 continue
6107 else
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6110
6111 # Passes both tests.
6112 ac_preproc_ok=:
6113 break
6114 fi
6115 rm -f conftest.err conftest.$ac_ext
6116
6117 done
6118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6119 rm -f conftest.err conftest.$ac_ext
6120 if $ac_preproc_ok; then
6121 break
6122 fi
6123
6124 done
6125 ac_cv_prog_CPP=$CPP
6126
6127 fi
6128 CPP=$ac_cv_prog_CPP
6129 else
6130 ac_cv_prog_CPP=$CPP
6131 fi
6132 echo "$as_me:$LINENO: result: $CPP" >&5
6133 echo "${ECHO_T}$CPP" >&6
6134 ac_preproc_ok=false
6135 for ac_c_preproc_warn_flag in '' yes
6136 do
6137 # Use a header file that comes with gcc, so configuring glibc
6138 # with a fresh cross-compiler works.
6139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6140 # <limits.h> exists even on freestanding compilers.
6141 # On the NeXT, cc -E runs the code through the compiler's parser,
6142 # not just through cpp. "Syntax error" is here to catch this case.
6143 cat >conftest.$ac_ext <<_ACEOF
6144 #line $LINENO "configure"
6145 /* confdefs.h. */
6146 _ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6150 #ifdef __STDC__
6151 # include <limits.h>
6152 #else
6153 # include <assert.h>
6154 #endif
6155 Syntax error
6156 _ACEOF
6157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6159 ac_status=$?
6160 grep -v '^ *+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } >/dev/null; then
6165 if test -s conftest.err; then
6166 ac_cpp_err=$ac_c_preproc_warn_flag
6167 else
6168 ac_cpp_err=
6169 fi
6170 else
6171 ac_cpp_err=yes
6172 fi
6173 if test -z "$ac_cpp_err"; then
6174 :
6175 else
6176 echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6178
6179 # Broken: fails on valid input.
6180 continue
6181 fi
6182 rm -f conftest.err conftest.$ac_ext
6183
6184 # OK, works on sane cases. Now check whether non-existent headers
6185 # can be detected and how.
6186 cat >conftest.$ac_ext <<_ACEOF
6187 #line $LINENO "configure"
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 #include <ac_nonexistent.h>
6194 _ACEOF
6195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } >/dev/null; then
6203 if test -s conftest.err; then
6204 ac_cpp_err=$ac_c_preproc_warn_flag
6205 else
6206 ac_cpp_err=
6207 fi
6208 else
6209 ac_cpp_err=yes
6210 fi
6211 if test -z "$ac_cpp_err"; then
6212 # Broken: success on invalid input.
6213 continue
6214 else
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6217
6218 # Passes both tests.
6219 ac_preproc_ok=:
6220 break
6221 fi
6222 rm -f conftest.err conftest.$ac_ext
6223
6224 done
6225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6226 rm -f conftest.err conftest.$ac_ext
6227 if $ac_preproc_ok; then
6228 :
6229 else
6230 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6231 See \`config.log' for more details." >&5
6232 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6233 See \`config.log' for more details." >&2;}
6234 { (exit 1); exit 1; }; }
6235 fi
6236
6237 ac_ext=c
6238 ac_cpp='$CPP $CPPFLAGS'
6239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6242
6243
6244 echo "$as_me:$LINENO: checking for egrep" >&5
6245 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6246 if test "${ac_cv_prog_egrep+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6250 then ac_cv_prog_egrep='grep -E'
6251 else ac_cv_prog_egrep='egrep'
6252 fi
6253 fi
6254 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6255 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6256 EGREP=$ac_cv_prog_egrep
6257
6258
6259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6261 if test "${ac_cv_header_stdc+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264 cat >conftest.$ac_ext <<_ACEOF
6265 #line $LINENO "configure"
6266 /* confdefs.h. */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6271 #include <stdlib.h>
6272 #include <stdarg.h>
6273 #include <string.h>
6274 #include <float.h>
6275
6276 int
6277 main ()
6278 {
6279
6280 ;
6281 return 0;
6282 }
6283 _ACEOF
6284 rm -f conftest.$ac_objext
6285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6286 (eval $ac_compile) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -s conftest.$ac_objext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_header_stdc=yes
6297 else
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6300
6301 ac_cv_header_stdc=no
6302 fi
6303 rm -f conftest.$ac_objext conftest.$ac_ext
6304
6305 if test $ac_cv_header_stdc = yes; then
6306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6307 cat >conftest.$ac_ext <<_ACEOF
6308 #line $LINENO "configure"
6309 /* confdefs.h. */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 #include <string.h>
6315
6316 _ACEOF
6317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6318 $EGREP "memchr" >/dev/null 2>&1; then
6319 :
6320 else
6321 ac_cv_header_stdc=no
6322 fi
6323 rm -f conftest*
6324
6325 fi
6326
6327 if test $ac_cv_header_stdc = yes; then
6328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6329 cat >conftest.$ac_ext <<_ACEOF
6330 #line $LINENO "configure"
6331 /* confdefs.h. */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6336 #include <stdlib.h>
6337
6338 _ACEOF
6339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6340 $EGREP "free" >/dev/null 2>&1; then
6341 :
6342 else
6343 ac_cv_header_stdc=no
6344 fi
6345 rm -f conftest*
6346
6347 fi
6348
6349 if test $ac_cv_header_stdc = yes; then
6350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6351 if test "$cross_compiling" = yes; then
6352 :
6353 else
6354 cat >conftest.$ac_ext <<_ACEOF
6355 #line $LINENO "configure"
6356 /* confdefs.h. */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 #include <ctype.h>
6362 #if ((' ' & 0x0FF) == 0x020)
6363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6365 #else
6366 # define ISLOWER(c) \
6367 (('a' <= (c) && (c) <= 'i') \
6368 || ('j' <= (c) && (c) <= 'r') \
6369 || ('s' <= (c) && (c) <= 'z'))
6370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6371 #endif
6372
6373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6374 int
6375 main ()
6376 {
6377 int i;
6378 for (i = 0; i < 256; i++)
6379 if (XOR (islower (i), ISLOWER (i))
6380 || toupper (i) != TOUPPER (i))
6381 exit(2);
6382 exit (0);
6383 }
6384 _ACEOF
6385 rm -f conftest$ac_exeext
6386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6387 (eval $ac_link) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 (eval $ac_try) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; }; then
6396 :
6397 else
6398 echo "$as_me: program exited with status $ac_status" >&5
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6401
6402 ( exit $ac_status )
6403 ac_cv_header_stdc=no
6404 fi
6405 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6406 fi
6407 fi
6408 fi
6409 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6410 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6411 if test $ac_cv_header_stdc = yes; then
6412
6413 cat >>confdefs.h <<\_ACEOF
6414 #define STDC_HEADERS 1
6415 _ACEOF
6416
6417 fi
6418
6419 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6420 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6421 if test "${ac_cv_c_const+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424 cat >conftest.$ac_ext <<_ACEOF
6425 #line $LINENO "configure"
6426 /* confdefs.h. */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431
6432 int
6433 main ()
6434 {
6435 /* FIXME: Include the comments suggested by Paul. */
6436 #ifndef __cplusplus
6437 /* Ultrix mips cc rejects this. */
6438 typedef int charset[2];
6439 const charset x;
6440 /* SunOS 4.1.1 cc rejects this. */
6441 char const *const *ccp;
6442 char **p;
6443 /* NEC SVR4.0.2 mips cc rejects this. */
6444 struct point {int x, y;};
6445 static struct point const zero = {0,0};
6446 /* AIX XL C 1.02.0.0 rejects this.
6447 It does not let you subtract one const X* pointer from another in
6448 an arm of an if-expression whose if-part is not a constant
6449 expression */
6450 const char *g = "string";
6451 ccp = &g + (g ? g-g : 0);
6452 /* HPUX 7.0 cc rejects these. */
6453 ++ccp;
6454 p = (char**) ccp;
6455 ccp = (char const *const *) p;
6456 { /* SCO 3.2v4 cc rejects this. */
6457 char *t;
6458 char const *s = 0 ? (char *) 0 : (char const *) 0;
6459
6460 *t++ = 0;
6461 }
6462 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6463 int x[] = {25, 17};
6464 const int *foo = &x[0];
6465 ++foo;
6466 }
6467 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6468 typedef const int *iptr;
6469 iptr p = 0;
6470 ++p;
6471 }
6472 { /* AIX XL C 1.02.0.0 rejects this saying
6473 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6474 struct s { int j; const int *ap[3]; };
6475 struct s *b; b->j = 5;
6476 }
6477 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6478 const int foo = 10;
6479 }
6480 #endif
6481
6482 ;
6483 return 0;
6484 }
6485 _ACEOF
6486 rm -f conftest.$ac_objext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488 (eval $ac_compile) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -s conftest.$ac_objext'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 (eval $ac_try) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; }; then
6498 ac_cv_c_const=yes
6499 else
6500 echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6502
6503 ac_cv_c_const=no
6504 fi
6505 rm -f conftest.$ac_objext conftest.$ac_ext
6506 fi
6507 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6508 echo "${ECHO_T}$ac_cv_c_const" >&6
6509 if test $ac_cv_c_const = no; then
6510
6511 cat >>confdefs.h <<\_ACEOF
6512 #define const
6513 _ACEOF
6514
6515 fi
6516
6517 echo "$as_me:$LINENO: checking for inline" >&5
6518 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6519 if test "${ac_cv_c_inline+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 ac_cv_c_inline=no
6523 for ac_kw in inline __inline__ __inline; do
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 #ifndef __cplusplus
6532 typedef int foo_t;
6533 static $ac_kw foo_t static_foo () {return 0; }
6534 $ac_kw foo_t foo () {return 0; }
6535 #endif
6536
6537 _ACEOF
6538 rm -f conftest.$ac_objext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540 (eval $ac_compile) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_cv_c_inline=$ac_kw; break
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555 fi
6556 rm -f conftest.$ac_objext conftest.$ac_ext
6557 done
6558
6559 fi
6560 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6561 echo "${ECHO_T}$ac_cv_c_inline" >&6
6562 case $ac_cv_c_inline in
6563 inline | yes) ;;
6564 no)
6565 cat >>confdefs.h <<\_ACEOF
6566 #define inline
6567 _ACEOF
6568 ;;
6569 *) cat >>confdefs.h <<_ACEOF
6570 #define inline $ac_cv_c_inline
6571 _ACEOF
6572 ;;
6573 esac
6574
6575 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6586 inttypes.h stdint.h unistd.h
6587 do
6588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6589 echo "$as_me:$LINENO: checking for $ac_header" >&5
6590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594 cat >conftest.$ac_ext <<_ACEOF
6595 #line $LINENO "configure"
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 $ac_includes_default
6602
6603 #include <$ac_header>
6604 _ACEOF
6605 rm -f conftest.$ac_objext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607 (eval $ac_compile) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } &&
6611 { ac_try='test -s conftest.$ac_objext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 eval "$as_ac_Header=yes"
6618 else
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622 eval "$as_ac_Header=no"
6623 fi
6624 rm -f conftest.$ac_objext conftest.$ac_ext
6625 fi
6626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6629 cat >>confdefs.h <<_ACEOF
6630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6631 _ACEOF
6632
6633 fi
6634
6635 done
6636
6637
6638 echo "$as_me:$LINENO: checking for off_t" >&5
6639 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6640 if test "${ac_cv_type_off_t+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643 cat >conftest.$ac_ext <<_ACEOF
6644 #line $LINENO "configure"
6645 /* confdefs.h. */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 $ac_includes_default
6651 int
6652 main ()
6653 {
6654 if ((off_t *) 0)
6655 return 0;
6656 if (sizeof (off_t))
6657 return 0;
6658 ;
6659 return 0;
6660 }
6661 _ACEOF
6662 rm -f conftest.$ac_objext
6663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6664 (eval $ac_compile) 2>&5
6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } &&
6668 { ac_try='test -s conftest.$ac_objext'
6669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 (eval $ac_try) 2>&5
6671 ac_status=$?
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; }; then
6674 ac_cv_type_off_t=yes
6675 else
6676 echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6678
6679 ac_cv_type_off_t=no
6680 fi
6681 rm -f conftest.$ac_objext conftest.$ac_ext
6682 fi
6683 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6684 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6685 if test $ac_cv_type_off_t = yes; then
6686 :
6687 else
6688
6689 cat >>confdefs.h <<_ACEOF
6690 #define off_t long
6691 _ACEOF
6692
6693 fi
6694
6695 echo "$as_me:$LINENO: checking for size_t" >&5
6696 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6697 if test "${ac_cv_type_size_t+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700 cat >conftest.$ac_ext <<_ACEOF
6701 #line $LINENO "configure"
6702 /* confdefs.h. */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 $ac_includes_default
6708 int
6709 main ()
6710 {
6711 if ((size_t *) 0)
6712 return 0;
6713 if (sizeof (size_t))
6714 return 0;
6715 ;
6716 return 0;
6717 }
6718 _ACEOF
6719 rm -f conftest.$ac_objext
6720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6721 (eval $ac_compile) 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try='test -s conftest.$ac_objext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6731 ac_cv_type_size_t=yes
6732 else
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6735
6736 ac_cv_type_size_t=no
6737 fi
6738 rm -f conftest.$ac_objext conftest.$ac_ext
6739 fi
6740 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6741 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6742 if test $ac_cv_type_size_t = yes; then
6743 :
6744 else
6745
6746 cat >>confdefs.h <<_ACEOF
6747 #define size_t unsigned
6748 _ACEOF
6749
6750 fi
6751
6752 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6753 # for constant arguments. Useless!
6754 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6755 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6756 if test "${ac_cv_working_alloca_h+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759 cat >conftest.$ac_ext <<_ACEOF
6760 #line $LINENO "configure"
6761 /* confdefs.h. */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 #include <alloca.h>
6767 int
6768 main ()
6769 {
6770 char *p = (char *) alloca (2 * sizeof (int));
6771 ;
6772 return 0;
6773 }
6774 _ACEOF
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6777 (eval $ac_link) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_cv_working_alloca_h=yes
6788 else
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792 ac_cv_working_alloca_h=no
6793 fi
6794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6795 fi
6796 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6797 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6798 if test $ac_cv_working_alloca_h = yes; then
6799
6800 cat >>confdefs.h <<\_ACEOF
6801 #define HAVE_ALLOCA_H 1
6802 _ACEOF
6803
6804 fi
6805
6806 echo "$as_me:$LINENO: checking for alloca" >&5
6807 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6808 if test "${ac_cv_func_alloca_works+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811 cat >conftest.$ac_ext <<_ACEOF
6812 #line $LINENO "configure"
6813 /* confdefs.h. */
6814 _ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6818 #ifdef __GNUC__
6819 # define alloca __builtin_alloca
6820 #else
6821 # ifdef _MSC_VER
6822 # include <malloc.h>
6823 # define alloca _alloca
6824 # else
6825 # if HAVE_ALLOCA_H
6826 # include <alloca.h>
6827 # else
6828 # ifdef _AIX
6829 #pragma alloca
6830 # else
6831 # ifndef alloca /* predefined by HP cc +Olibcalls */
6832 char *alloca ();
6833 # endif
6834 # endif
6835 # endif
6836 # endif
6837 #endif
6838
6839 int
6840 main ()
6841 {
6842 char *p = (char *) alloca (1);
6843 ;
6844 return 0;
6845 }
6846 _ACEOF
6847 rm -f conftest.$ac_objext conftest$ac_exeext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6849 (eval $ac_link) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try='test -s conftest$ac_exeext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 ac_cv_func_alloca_works=yes
6860 else
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6863
6864 ac_cv_func_alloca_works=no
6865 fi
6866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6867 fi
6868 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6869 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6870
6871 if test $ac_cv_func_alloca_works = yes; then
6872
6873 cat >>confdefs.h <<\_ACEOF
6874 #define HAVE_ALLOCA 1
6875 _ACEOF
6876
6877 else
6878 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6879 # that cause trouble. Some versions do not even contain alloca or
6880 # contain a buggy version. If you still want to use their alloca,
6881 # use ar to extract alloca.o from them instead of compiling alloca.c.
6882
6883 ALLOCA=alloca.$ac_objext
6884
6885 cat >>confdefs.h <<\_ACEOF
6886 #define C_ALLOCA 1
6887 _ACEOF
6888
6889
6890 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6891 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6892 if test "${ac_cv_os_cray+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895 cat >conftest.$ac_ext <<_ACEOF
6896 #line $LINENO "configure"
6897 /* confdefs.h. */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 #if defined(CRAY) && ! defined(CRAY2)
6903 webecray
6904 #else
6905 wenotbecray
6906 #endif
6907
6908 _ACEOF
6909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6910 $EGREP "webecray" >/dev/null 2>&1; then
6911 ac_cv_os_cray=yes
6912 else
6913 ac_cv_os_cray=no
6914 fi
6915 rm -f conftest*
6916
6917 fi
6918 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6919 echo "${ECHO_T}$ac_cv_os_cray" >&6
6920 if test $ac_cv_os_cray = yes; then
6921 for ac_func in _getb67 GETB67 getb67; do
6922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6923 echo "$as_me:$LINENO: checking for $ac_func" >&5
6924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6925 if eval "test \"\${$as_ac_var+set}\" = set"; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928 cat >conftest.$ac_ext <<_ACEOF
6929 #line $LINENO "configure"
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 /* System header to define __stub macros and hopefully few prototypes,
6936 which can conflict with char $ac_func (); below.
6937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6938 <limits.h> exists even on freestanding compilers. */
6939 #ifdef __STDC__
6940 # include <limits.h>
6941 #else
6942 # include <assert.h>
6943 #endif
6944 /* Override any gcc2 internal prototype to avoid an error. */
6945 #ifdef __cplusplus
6946 extern "C"
6947 {
6948 #endif
6949 /* We use char because int might match the return type of a gcc2
6950 builtin and then its argument prototype would still apply. */
6951 char $ac_func ();
6952 /* The GNU C library defines this for functions which it implements
6953 to always fail with ENOSYS. Some functions are actually named
6954 something starting with __ and the normal name is an alias. */
6955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6956 choke me
6957 #else
6958 char (*f) () = $ac_func;
6959 #endif
6960 #ifdef __cplusplus
6961 }
6962 #endif
6963
6964 int
6965 main ()
6966 {
6967 return f != $ac_func;
6968 ;
6969 return 0;
6970 }
6971 _ACEOF
6972 rm -f conftest.$ac_objext conftest$ac_exeext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6974 (eval $ac_link) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -s conftest$ac_exeext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984 eval "$as_ac_var=yes"
6985 else
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6988
6989 eval "$as_ac_var=no"
6990 fi
6991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6992 fi
6993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6995 if test `eval echo '${'$as_ac_var'}'` = yes; then
6996
6997 cat >>confdefs.h <<_ACEOF
6998 #define CRAY_STACKSEG_END $ac_func
6999 _ACEOF
7000
7001 break
7002 fi
7003
7004 done
7005 fi
7006
7007 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7008 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7009 if test "${ac_cv_c_stack_direction+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012 if test "$cross_compiling" = yes; then
7013 ac_cv_c_stack_direction=0
7014 else
7015 cat >conftest.$ac_ext <<_ACEOF
7016 #line $LINENO "configure"
7017 /* confdefs.h. */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 int
7023 find_stack_direction ()
7024 {
7025 static char *addr = 0;
7026 auto char dummy;
7027 if (addr == 0)
7028 {
7029 addr = &dummy;
7030 return find_stack_direction ();
7031 }
7032 else
7033 return (&dummy > addr) ? 1 : -1;
7034 }
7035
7036 int
7037 main ()
7038 {
7039 exit (find_stack_direction () < 0);
7040 }
7041 _ACEOF
7042 rm -f conftest$ac_exeext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7044 (eval $ac_link) 2>&5
7045 ac_status=$?
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 (eval $ac_try) 2>&5
7050 ac_status=$?
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
7053 ac_cv_c_stack_direction=1
7054 else
7055 echo "$as_me: program exited with status $ac_status" >&5
7056 echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.$ac_ext >&5
7058
7059 ( exit $ac_status )
7060 ac_cv_c_stack_direction=-1
7061 fi
7062 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7063 fi
7064 fi
7065 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7066 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7067
7068 cat >>confdefs.h <<_ACEOF
7069 #define STACK_DIRECTION $ac_cv_c_stack_direction
7070 _ACEOF
7071
7072
7073 fi
7074
7075
7076
7077 for ac_header in stdlib.h unistd.h
7078 do
7079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7081 echo "$as_me:$LINENO: checking for $ac_header" >&5
7082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 fi
7086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7088 else
7089 # Is the header compilable?
7090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7092 cat >conftest.$ac_ext <<_ACEOF
7093 #line $LINENO "configure"
7094 /* confdefs.h. */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099 $ac_includes_default
7100 #include <$ac_header>
7101 _ACEOF
7102 rm -f conftest.$ac_objext
7103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7104 (eval $ac_compile) 2>&5
7105 ac_status=$?
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } &&
7108 { ac_try='test -s conftest.$ac_objext'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 ac_header_compiler=yes
7115 else
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 ac_header_compiler=no
7120 fi
7121 rm -f conftest.$ac_objext conftest.$ac_ext
7122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7123 echo "${ECHO_T}$ac_header_compiler" >&6
7124
7125 # Is the header present?
7126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7128 cat >conftest.$ac_ext <<_ACEOF
7129 #line $LINENO "configure"
7130 /* confdefs.h. */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 #include <$ac_header>
7136 _ACEOF
7137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7139 ac_status=$?
7140 grep -v '^ *+' conftest.er1 >conftest.err
7141 rm -f conftest.er1
7142 cat conftest.err >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } >/dev/null; then
7145 if test -s conftest.err; then
7146 ac_cpp_err=$ac_c_preproc_warn_flag
7147 else
7148 ac_cpp_err=
7149 fi
7150 else
7151 ac_cpp_err=yes
7152 fi
7153 if test -z "$ac_cpp_err"; then
7154 ac_header_preproc=yes
7155 else
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7158
7159 ac_header_preproc=no
7160 fi
7161 rm -f conftest.err conftest.$ac_ext
7162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7163 echo "${ECHO_T}$ac_header_preproc" >&6
7164
7165 # So? What about this header?
7166 case $ac_header_compiler:$ac_header_preproc in
7167 yes:no )
7168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7172 (
7173 cat <<\_ASBOX
7174 ## ------------------------------------ ##
7175 ## Report this to bug-autoconf@gnu.org. ##
7176 ## ------------------------------------ ##
7177 _ASBOX
7178 ) |
7179 sed "s/^/$as_me: WARNING: /" >&2
7180 ;;
7181 no:yes )
7182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7188 (
7189 cat <<\_ASBOX
7190 ## ------------------------------------ ##
7191 ## Report this to bug-autoconf@gnu.org. ##
7192 ## ------------------------------------ ##
7193 _ASBOX
7194 ) |
7195 sed "s/^/$as_me: WARNING: /" >&2
7196 ;;
7197 esac
7198 echo "$as_me:$LINENO: checking for $ac_header" >&5
7199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203 eval "$as_ac_Header=$ac_header_preproc"
7204 fi
7205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7207
7208 fi
7209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7210 cat >>confdefs.h <<_ACEOF
7211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7212 _ACEOF
7213
7214 fi
7215
7216 done
7217
7218
7219 for ac_func in getpagesize
7220 do
7221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7222 echo "$as_me:$LINENO: checking for $ac_func" >&5
7223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7224 if eval "test \"\${$as_ac_var+set}\" = set"; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227 cat >conftest.$ac_ext <<_ACEOF
7228 #line $LINENO "configure"
7229 /* confdefs.h. */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 /* System header to define __stub macros and hopefully few prototypes,
7235 which can conflict with char $ac_func (); below.
7236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7237 <limits.h> exists even on freestanding compilers. */
7238 #ifdef __STDC__
7239 # include <limits.h>
7240 #else
7241 # include <assert.h>
7242 #endif
7243 /* Override any gcc2 internal prototype to avoid an error. */
7244 #ifdef __cplusplus
7245 extern "C"
7246 {
7247 #endif
7248 /* We use char because int might match the return type of a gcc2
7249 builtin and then its argument prototype would still apply. */
7250 char $ac_func ();
7251 /* The GNU C library defines this for functions which it implements
7252 to always fail with ENOSYS. Some functions are actually named
7253 something starting with __ and the normal name is an alias. */
7254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7255 choke me
7256 #else
7257 char (*f) () = $ac_func;
7258 #endif
7259 #ifdef __cplusplus
7260 }
7261 #endif
7262
7263 int
7264 main ()
7265 {
7266 return f != $ac_func;
7267 ;
7268 return 0;
7269 }
7270 _ACEOF
7271 rm -f conftest.$ac_objext conftest$ac_exeext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273 (eval $ac_link) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -s conftest$ac_exeext'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 (eval $ac_try) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7283 eval "$as_ac_var=yes"
7284 else
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7287
7288 eval "$as_ac_var=no"
7289 fi
7290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7291 fi
7292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7294 if test `eval echo '${'$as_ac_var'}'` = yes; then
7295 cat >>confdefs.h <<_ACEOF
7296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7297 _ACEOF
7298
7299 fi
7300 done
7301
7302 echo "$as_me:$LINENO: checking for working mmap" >&5
7303 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7304 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307 if test "$cross_compiling" = yes; then
7308 ac_cv_func_mmap_fixed_mapped=no
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 #line $LINENO "configure"
7312 /* confdefs.h. */
7313 _ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h. */
7317 $ac_includes_default
7318 /* malloc might have been renamed as rpl_malloc. */
7319 #undef malloc
7320
7321 /* Thanks to Mike Haertel and Jim Avera for this test.
7322 Here is a matrix of mmap possibilities:
7323 mmap private not fixed
7324 mmap private fixed at somewhere currently unmapped
7325 mmap private fixed at somewhere already mapped
7326 mmap shared not fixed
7327 mmap shared fixed at somewhere currently unmapped
7328 mmap shared fixed at somewhere already mapped
7329 For private mappings, we should verify that changes cannot be read()
7330 back from the file, nor mmap's back from the file at a different
7331 address. (There have been systems where private was not correctly
7332 implemented like the infamous i386 svr4.0, and systems where the
7333 VM page cache was not coherent with the file system buffer cache
7334 like early versions of FreeBSD and possibly contemporary NetBSD.)
7335 For shared mappings, we should conversely verify that changes get
7336 propagated back to all the places they're supposed to be.
7337
7338 Grep wants private fixed already mapped.
7339 The main things grep needs to know about mmap are:
7340 * does it exist and is it safe to write into the mmap'd area
7341 * how to use it (BSD variants) */
7342
7343 #include <fcntl.h>
7344 #include <sys/mman.h>
7345
7346 #if !STDC_HEADERS && !HAVE_STDLIB_H
7347 char *malloc ();
7348 #endif
7349
7350 /* This mess was copied from the GNU getpagesize.h. */
7351 #if !HAVE_GETPAGESIZE
7352 /* Assume that all systems that can run configure have sys/param.h. */
7353 # if !HAVE_SYS_PARAM_H
7354 # define HAVE_SYS_PARAM_H 1
7355 # endif
7356
7357 # ifdef _SC_PAGESIZE
7358 # define getpagesize() sysconf(_SC_PAGESIZE)
7359 # else /* no _SC_PAGESIZE */
7360 # if HAVE_SYS_PARAM_H
7361 # include <sys/param.h>
7362 # ifdef EXEC_PAGESIZE
7363 # define getpagesize() EXEC_PAGESIZE
7364 # else /* no EXEC_PAGESIZE */
7365 # ifdef NBPG
7366 # define getpagesize() NBPG * CLSIZE
7367 # ifndef CLSIZE
7368 # define CLSIZE 1
7369 # endif /* no CLSIZE */
7370 # else /* no NBPG */
7371 # ifdef NBPC
7372 # define getpagesize() NBPC
7373 # else /* no NBPC */
7374 # ifdef PAGESIZE
7375 # define getpagesize() PAGESIZE
7376 # endif /* PAGESIZE */
7377 # endif /* no NBPC */
7378 # endif /* no NBPG */
7379 # endif /* no EXEC_PAGESIZE */
7380 # else /* no HAVE_SYS_PARAM_H */
7381 # define getpagesize() 8192 /* punt totally */
7382 # endif /* no HAVE_SYS_PARAM_H */
7383 # endif /* no _SC_PAGESIZE */
7384
7385 #endif /* no HAVE_GETPAGESIZE */
7386
7387 int
7388 main ()
7389 {
7390 char *data, *data2, *data3;
7391 int i, pagesize;
7392 int fd;
7393
7394 pagesize = getpagesize ();
7395
7396 /* First, make a file with some known garbage in it. */
7397 data = (char *) malloc (pagesize);
7398 if (!data)
7399 exit (1);
7400 for (i = 0; i < pagesize; ++i)
7401 *(data + i) = rand ();
7402 umask (0);
7403 fd = creat ("conftest.mmap", 0600);
7404 if (fd < 0)
7405 exit (1);
7406 if (write (fd, data, pagesize) != pagesize)
7407 exit (1);
7408 close (fd);
7409
7410 /* Next, try to mmap the file at a fixed address which already has
7411 something else allocated at it. If we can, also make sure that
7412 we see the same garbage. */
7413 fd = open ("conftest.mmap", O_RDWR);
7414 if (fd < 0)
7415 exit (1);
7416 data2 = (char *) malloc (2 * pagesize);
7417 if (!data2)
7418 exit (1);
7419 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7420 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7421 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7422 exit (1);
7423 for (i = 0; i < pagesize; ++i)
7424 if (*(data + i) != *(data2 + i))
7425 exit (1);
7426
7427 /* Finally, make sure that changes to the mapped area do not
7428 percolate back to the file as seen by read(). (This is a bug on
7429 some variants of i386 svr4.0.) */
7430 for (i = 0; i < pagesize; ++i)
7431 *(data2 + i) = *(data2 + i) + 1;
7432 data3 = (char *) malloc (pagesize);
7433 if (!data3)
7434 exit (1);
7435 if (read (fd, data3, pagesize) != pagesize)
7436 exit (1);
7437 for (i = 0; i < pagesize; ++i)
7438 if (*(data + i) != *(data3 + i))
7439 exit (1);
7440 close (fd);
7441 exit (0);
7442 }
7443 _ACEOF
7444 rm -f conftest$ac_exeext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446 (eval $ac_link) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_func_mmap_fixed_mapped=yes
7456 else
7457 echo "$as_me: program exited with status $ac_status" >&5
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461 ( exit $ac_status )
7462 ac_cv_func_mmap_fixed_mapped=no
7463 fi
7464 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7465 fi
7466 fi
7467 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7468 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7469 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7470
7471 cat >>confdefs.h <<\_ACEOF
7472 #define HAVE_MMAP 1
7473 _ACEOF
7474
7475 fi
7476 rm -f conftest.mmap
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7489 unistd.h values.h sys/param.h
7490 do
7491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7493 echo "$as_me:$LINENO: checking for $ac_header" >&5
7494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 fi
7498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7500 else
7501 # Is the header compilable?
7502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7504 cat >conftest.$ac_ext <<_ACEOF
7505 #line $LINENO "configure"
7506 /* confdefs.h. */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 $ac_includes_default
7512 #include <$ac_header>
7513 _ACEOF
7514 rm -f conftest.$ac_objext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7516 (eval $ac_compile) 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } &&
7520 { ac_try='test -s conftest.$ac_objext'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 (eval $ac_try) 2>&5
7523 ac_status=$?
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7526 ac_header_compiler=yes
7527 else
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7530
7531 ac_header_compiler=no
7532 fi
7533 rm -f conftest.$ac_objext conftest.$ac_ext
7534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7535 echo "${ECHO_T}$ac_header_compiler" >&6
7536
7537 # Is the header present?
7538 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7540 cat >conftest.$ac_ext <<_ACEOF
7541 #line $LINENO "configure"
7542 /* confdefs.h. */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 #include <$ac_header>
7548 _ACEOF
7549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } >/dev/null; then
7557 if test -s conftest.err; then
7558 ac_cpp_err=$ac_c_preproc_warn_flag
7559 else
7560 ac_cpp_err=
7561 fi
7562 else
7563 ac_cpp_err=yes
7564 fi
7565 if test -z "$ac_cpp_err"; then
7566 ac_header_preproc=yes
7567 else
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7570
7571 ac_header_preproc=no
7572 fi
7573 rm -f conftest.err conftest.$ac_ext
7574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7575 echo "${ECHO_T}$ac_header_preproc" >&6
7576
7577 # So? What about this header?
7578 case $ac_header_compiler:$ac_header_preproc in
7579 yes:no )
7580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7584 (
7585 cat <<\_ASBOX
7586 ## ------------------------------------ ##
7587 ## Report this to bug-autoconf@gnu.org. ##
7588 ## ------------------------------------ ##
7589 _ASBOX
7590 ) |
7591 sed "s/^/$as_me: WARNING: /" >&2
7592 ;;
7593 no:yes )
7594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7600 (
7601 cat <<\_ASBOX
7602 ## ------------------------------------ ##
7603 ## Report this to bug-autoconf@gnu.org. ##
7604 ## ------------------------------------ ##
7605 _ASBOX
7606 ) |
7607 sed "s/^/$as_me: WARNING: /" >&2
7608 ;;
7609 esac
7610 echo "$as_me:$LINENO: checking for $ac_header" >&5
7611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615 eval "$as_ac_Header=$ac_header_preproc"
7616 fi
7617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7619
7620 fi
7621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7622 cat >>confdefs.h <<_ACEOF
7623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7624 _ACEOF
7625
7626 fi
7627
7628 done
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7641 __argz_count __argz_stringify __argz_next
7642 do
7643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7644 echo "$as_me:$LINENO: checking for $ac_func" >&5
7645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7646 if eval "test \"\${$as_ac_var+set}\" = set"; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649 cat >conftest.$ac_ext <<_ACEOF
7650 #line $LINENO "configure"
7651 /* confdefs.h. */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7656 /* System header to define __stub macros and hopefully few prototypes,
7657 which can conflict with char $ac_func (); below.
7658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7659 <limits.h> exists even on freestanding compilers. */
7660 #ifdef __STDC__
7661 # include <limits.h>
7662 #else
7663 # include <assert.h>
7664 #endif
7665 /* Override any gcc2 internal prototype to avoid an error. */
7666 #ifdef __cplusplus
7667 extern "C"
7668 {
7669 #endif
7670 /* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7672 char $ac_func ();
7673 /* The GNU C library defines this for functions which it implements
7674 to always fail with ENOSYS. Some functions are actually named
7675 something starting with __ and the normal name is an alias. */
7676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7677 choke me
7678 #else
7679 char (*f) () = $ac_func;
7680 #endif
7681 #ifdef __cplusplus
7682 }
7683 #endif
7684
7685 int
7686 main ()
7687 {
7688 return f != $ac_func;
7689 ;
7690 return 0;
7691 }
7692 _ACEOF
7693 rm -f conftest.$ac_objext conftest$ac_exeext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7695 (eval $ac_link) 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
7699 { ac_try='test -s conftest$ac_exeext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 eval "$as_ac_var=yes"
7706 else
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7709
7710 eval "$as_ac_var=no"
7711 fi
7712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7713 fi
7714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7716 if test `eval echo '${'$as_ac_var'}'` = yes; then
7717 cat >>confdefs.h <<_ACEOF
7718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7719 _ACEOF
7720
7721 fi
7722 done
7723
7724
7725 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7726
7727 for ac_func in stpcpy
7728 do
7729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7730 echo "$as_me:$LINENO: checking for $ac_func" >&5
7731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7732 if eval "test \"\${$as_ac_var+set}\" = set"; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735 cat >conftest.$ac_ext <<_ACEOF
7736 #line $LINENO "configure"
7737 /* confdefs.h. */
7738 _ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7742 /* System header to define __stub macros and hopefully few prototypes,
7743 which can conflict with char $ac_func (); below.
7744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7745 <limits.h> exists even on freestanding compilers. */
7746 #ifdef __STDC__
7747 # include <limits.h>
7748 #else
7749 # include <assert.h>
7750 #endif
7751 /* Override any gcc2 internal prototype to avoid an error. */
7752 #ifdef __cplusplus
7753 extern "C"
7754 {
7755 #endif
7756 /* We use char because int might match the return type of a gcc2
7757 builtin and then its argument prototype would still apply. */
7758 char $ac_func ();
7759 /* The GNU C library defines this for functions which it implements
7760 to always fail with ENOSYS. Some functions are actually named
7761 something starting with __ and the normal name is an alias. */
7762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7763 choke me
7764 #else
7765 char (*f) () = $ac_func;
7766 #endif
7767 #ifdef __cplusplus
7768 }
7769 #endif
7770
7771 int
7772 main ()
7773 {
7774 return f != $ac_func;
7775 ;
7776 return 0;
7777 }
7778 _ACEOF
7779 rm -f conftest.$ac_objext conftest$ac_exeext
7780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7781 (eval $ac_link) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -s conftest$ac_exeext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 (eval $ac_try) 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 eval "$as_ac_var=yes"
7792 else
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7795
7796 eval "$as_ac_var=no"
7797 fi
7798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7799 fi
7800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7802 if test `eval echo '${'$as_ac_var'}'` = yes; then
7803 cat >>confdefs.h <<_ACEOF
7804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7805 _ACEOF
7806
7807 fi
7808 done
7809
7810 fi
7811 if test "${ac_cv_func_stpcpy}" = "yes"; then
7812
7813 cat >>confdefs.h <<\_ACEOF
7814 #define HAVE_STPCPY 1
7815 _ACEOF
7816
7817 fi
7818
7819 if test $ac_cv_header_locale_h = yes; then
7820 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7821 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7822 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825 cat >conftest.$ac_ext <<_ACEOF
7826 #line $LINENO "configure"
7827 /* confdefs.h. */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7832 #include <locale.h>
7833 int
7834 main ()
7835 {
7836 return LC_MESSAGES
7837 ;
7838 return 0;
7839 }
7840 _ACEOF
7841 rm -f conftest.$ac_objext conftest$ac_exeext
7842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7843 (eval $ac_link) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } &&
7847 { ac_try='test -s conftest$ac_exeext'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 am_cv_val_LC_MESSAGES=yes
7854 else
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7857
7858 am_cv_val_LC_MESSAGES=no
7859 fi
7860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7861 fi
7862 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7863 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7864 if test $am_cv_val_LC_MESSAGES = yes; then
7865
7866 cat >>confdefs.h <<\_ACEOF
7867 #define HAVE_LC_MESSAGES 1
7868 _ACEOF
7869
7870 fi
7871 fi
7872 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7873 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7874 # Check whether --enable-nls or --disable-nls was given.
7875 if test "${enable_nls+set}" = set; then
7876 enableval="$enable_nls"
7877 USE_NLS=$enableval
7878 else
7879 USE_NLS=yes
7880 fi;
7881 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7882 echo "${ECHO_T}$USE_NLS" >&6
7883
7884
7885 USE_INCLUDED_LIBINTL=no
7886
7887 if test "$USE_NLS" = "yes"; then
7888
7889 cat >>confdefs.h <<\_ACEOF
7890 #define ENABLE_NLS 1
7891 _ACEOF
7892
7893 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7894 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7895
7896 # Check whether --with-included-gettext or --without-included-gettext was given.
7897 if test "${with_included_gettext+set}" = set; then
7898 withval="$with_included_gettext"
7899 nls_cv_force_use_gnu_gettext=$withval
7900 else
7901 nls_cv_force_use_gnu_gettext=no
7902 fi;
7903 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7904 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7905
7906 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7907 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7908 nls_cv_header_intl=
7909 nls_cv_header_libgt=
7910 CATOBJEXT=NONE
7911
7912 if test "${ac_cv_header_libintl_h+set}" = set; then
7913 echo "$as_me:$LINENO: checking for libintl.h" >&5
7914 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7915 if test "${ac_cv_header_libintl_h+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 fi
7918 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7919 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7920 else
7921 # Is the header compilable?
7922 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7923 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7924 cat >conftest.$ac_ext <<_ACEOF
7925 #line $LINENO "configure"
7926 /* confdefs.h. */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 $ac_includes_default
7932 #include <libintl.h>
7933 _ACEOF
7934 rm -f conftest.$ac_objext
7935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7936 (eval $ac_compile) 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } &&
7940 { ac_try='test -s conftest.$ac_objext'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 (eval $ac_try) 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7946 ac_header_compiler=yes
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 ac_header_compiler=no
7952 fi
7953 rm -f conftest.$ac_objext conftest.$ac_ext
7954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7955 echo "${ECHO_T}$ac_header_compiler" >&6
7956
7957 # Is the header present?
7958 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7959 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7960 cat >conftest.$ac_ext <<_ACEOF
7961 #line $LINENO "configure"
7962 /* confdefs.h. */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 #include <libintl.h>
7968 _ACEOF
7969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7971 ac_status=$?
7972 grep -v '^ *+' conftest.er1 >conftest.err
7973 rm -f conftest.er1
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } >/dev/null; then
7977 if test -s conftest.err; then
7978 ac_cpp_err=$ac_c_preproc_warn_flag
7979 else
7980 ac_cpp_err=
7981 fi
7982 else
7983 ac_cpp_err=yes
7984 fi
7985 if test -z "$ac_cpp_err"; then
7986 ac_header_preproc=yes
7987 else
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991 ac_header_preproc=no
7992 fi
7993 rm -f conftest.err conftest.$ac_ext
7994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7995 echo "${ECHO_T}$ac_header_preproc" >&6
7996
7997 # So? What about this header?
7998 case $ac_header_compiler:$ac_header_preproc in
7999 yes:no )
8000 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8001 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8002 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8003 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8004 (
8005 cat <<\_ASBOX
8006 ## ------------------------------------ ##
8007 ## Report this to bug-autoconf@gnu.org. ##
8008 ## ------------------------------------ ##
8009 _ASBOX
8010 ) |
8011 sed "s/^/$as_me: WARNING: /" >&2
8012 ;;
8013 no:yes )
8014 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8015 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8016 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8017 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8018 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8019 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8020 (
8021 cat <<\_ASBOX
8022 ## ------------------------------------ ##
8023 ## Report this to bug-autoconf@gnu.org. ##
8024 ## ------------------------------------ ##
8025 _ASBOX
8026 ) |
8027 sed "s/^/$as_me: WARNING: /" >&2
8028 ;;
8029 esac
8030 echo "$as_me:$LINENO: checking for libintl.h" >&5
8031 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8032 if test "${ac_cv_header_libintl_h+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035 ac_cv_header_libintl_h=$ac_header_preproc
8036 fi
8037 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8038 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8039
8040 fi
8041 if test $ac_cv_header_libintl_h = yes; then
8042 echo "$as_me:$LINENO: checking for gettext in libc" >&5
8043 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8044 if test "${gt_cv_func_gettext_libc+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047 cat >conftest.$ac_ext <<_ACEOF
8048 #line $LINENO "configure"
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 #include <libintl.h>
8055 int
8056 main ()
8057 {
8058 return (int) gettext ("")
8059 ;
8060 return 0;
8061 }
8062 _ACEOF
8063 rm -f conftest.$ac_objext conftest$ac_exeext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065 (eval $ac_link) 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try='test -s conftest$ac_exeext'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 (eval $ac_try) 2>&5
8072 ac_status=$?
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8075 gt_cv_func_gettext_libc=yes
8076 else
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8079
8080 gt_cv_func_gettext_libc=no
8081 fi
8082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8083 fi
8084 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8085 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
8086
8087 if test "$gt_cv_func_gettext_libc" != "yes"; then
8088 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8089 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8090 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093 ac_check_lib_save_LIBS=$LIBS
8094 LIBS="-lintl $LIBS"
8095 cat >conftest.$ac_ext <<_ACEOF
8096 #line $LINENO "configure"
8097 /* confdefs.h. */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8102
8103 /* Override any gcc2 internal prototype to avoid an error. */
8104 #ifdef __cplusplus
8105 extern "C"
8106 #endif
8107 /* We use char because int might match the return type of a gcc2
8108 builtin and then its argument prototype would still apply. */
8109 char bindtextdomain ();
8110 int
8111 main ()
8112 {
8113 bindtextdomain ();
8114 ;
8115 return 0;
8116 }
8117 _ACEOF
8118 rm -f conftest.$ac_objext conftest$ac_exeext
8119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8120 (eval $ac_link) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
8124 { ac_try='test -s conftest$ac_exeext'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; }; then
8130 ac_cv_lib_intl_bindtextdomain=yes
8131 else
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135 ac_cv_lib_intl_bindtextdomain=no
8136 fi
8137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8138 LIBS=$ac_check_lib_save_LIBS
8139 fi
8140 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8141 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8142 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8143 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8144 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8145 if test "${gt_cv_func_gettext_libintl+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148 cat >conftest.$ac_ext <<_ACEOF
8149 #line $LINENO "configure"
8150 /* confdefs.h. */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8155
8156 int
8157 main ()
8158 {
8159 return (int) gettext ("")
8160 ;
8161 return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166 (eval $ac_link) 2>&5
8167 ac_status=$?
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } &&
8170 { ac_try='test -s conftest$ac_exeext'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 (eval $ac_try) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; }; then
8176 gt_cv_func_gettext_libintl=yes
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8180
8181 gt_cv_func_gettext_libintl=no
8182 fi
8183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8184 fi
8185 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8186 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
8187 fi
8188
8189 fi
8190
8191 if test "$gt_cv_func_gettext_libc" = "yes" \
8192 || test "$gt_cv_func_gettext_libintl" = "yes"; then
8193
8194 cat >>confdefs.h <<\_ACEOF
8195 #define HAVE_GETTEXT 1
8196 _ACEOF
8197
8198 # Extract the first word of "msgfmt", so it can be a program name with args.
8199 set dummy msgfmt; ac_word=$2
8200 echo "$as_me:$LINENO: checking for $ac_word" >&5
8201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8202 if test "${ac_cv_path_MSGFMT+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205 case "$MSGFMT" in
8206 /*)
8207 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8208 ;;
8209 *)
8210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8211 for ac_dir in $PATH; do
8212 test -z "$ac_dir" && ac_dir=.
8213 if test -f $ac_dir/$ac_word; then
8214 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8215 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8216 break
8217 fi
8218 fi
8219 done
8220 IFS="$ac_save_ifs"
8221 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8222 ;;
8223 esac
8224 fi
8225 MSGFMT="$ac_cv_path_MSGFMT"
8226 if test -n "$MSGFMT"; then
8227 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8228 echo "${ECHO_T}$MSGFMT" >&6
8229 else
8230 echo "$as_me:$LINENO: result: no" >&5
8231 echo "${ECHO_T}no" >&6
8232 fi
8233 if test "$MSGFMT" != "no"; then
8234
8235 for ac_func in dcgettext
8236 do
8237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8238 echo "$as_me:$LINENO: checking for $ac_func" >&5
8239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8240 if eval "test \"\${$as_ac_var+set}\" = set"; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243 cat >conftest.$ac_ext <<_ACEOF
8244 #line $LINENO "configure"
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250 /* System header to define __stub macros and hopefully few prototypes,
8251 which can conflict with char $ac_func (); below.
8252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8253 <limits.h> exists even on freestanding compilers. */
8254 #ifdef __STDC__
8255 # include <limits.h>
8256 #else
8257 # include <assert.h>
8258 #endif
8259 /* Override any gcc2 internal prototype to avoid an error. */
8260 #ifdef __cplusplus
8261 extern "C"
8262 {
8263 #endif
8264 /* We use char because int might match the return type of a gcc2
8265 builtin and then its argument prototype would still apply. */
8266 char $ac_func ();
8267 /* The GNU C library defines this for functions which it implements
8268 to always fail with ENOSYS. Some functions are actually named
8269 something starting with __ and the normal name is an alias. */
8270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8271 choke me
8272 #else
8273 char (*f) () = $ac_func;
8274 #endif
8275 #ifdef __cplusplus
8276 }
8277 #endif
8278
8279 int
8280 main ()
8281 {
8282 return f != $ac_func;
8283 ;
8284 return 0;
8285 }
8286 _ACEOF
8287 rm -f conftest.$ac_objext conftest$ac_exeext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8289 (eval $ac_link) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -s conftest$ac_exeext'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8299 eval "$as_ac_var=yes"
8300 else
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8303
8304 eval "$as_ac_var=no"
8305 fi
8306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8307 fi
8308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8310 if test `eval echo '${'$as_ac_var'}'` = yes; then
8311 cat >>confdefs.h <<_ACEOF
8312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8313 _ACEOF
8314
8315 fi
8316 done
8317
8318 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8319 set dummy gmsgfmt; ac_word=$2
8320 echo "$as_me:$LINENO: checking for $ac_word" >&5
8321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8322 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325 case $GMSGFMT in
8326 [\\/]* | ?:[\\/]*)
8327 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8328 ;;
8329 *)
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8337 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 break 2
8340 fi
8341 done
8342 done
8343
8344 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8345 ;;
8346 esac
8347 fi
8348 GMSGFMT=$ac_cv_path_GMSGFMT
8349
8350 if test -n "$GMSGFMT"; then
8351 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8352 echo "${ECHO_T}$GMSGFMT" >&6
8353 else
8354 echo "$as_me:$LINENO: result: no" >&5
8355 echo "${ECHO_T}no" >&6
8356 fi
8357
8358 # Extract the first word of "xgettext", so it can be a program name with args.
8359 set dummy xgettext; ac_word=$2
8360 echo "$as_me:$LINENO: checking for $ac_word" >&5
8361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8362 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365 case "$XGETTEXT" in
8366 /*)
8367 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8368 ;;
8369 *)
8370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8371 for ac_dir in $PATH; do
8372 test -z "$ac_dir" && ac_dir=.
8373 if test -f $ac_dir/$ac_word; then
8374 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8375 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8376 break
8377 fi
8378 fi
8379 done
8380 IFS="$ac_save_ifs"
8381 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8382 ;;
8383 esac
8384 fi
8385 XGETTEXT="$ac_cv_path_XGETTEXT"
8386 if test -n "$XGETTEXT"; then
8387 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8388 echo "${ECHO_T}$XGETTEXT" >&6
8389 else
8390 echo "$as_me:$LINENO: result: no" >&5
8391 echo "${ECHO_T}no" >&6
8392 fi
8393
8394 cat >conftest.$ac_ext <<_ACEOF
8395 #line $LINENO "configure"
8396 /* confdefs.h. */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401
8402 int
8403 main ()
8404 {
8405 extern int _nl_msg_cat_cntr;
8406 return _nl_msg_cat_cntr
8407 ;
8408 return 0;
8409 }
8410 _ACEOF
8411 rm -f conftest.$ac_objext conftest$ac_exeext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8413 (eval $ac_link) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -s conftest$ac_exeext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 CATOBJEXT=.gmo
8424 DATADIRNAME=share
8425 else
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8428
8429 CATOBJEXT=.mo
8430 DATADIRNAME=lib
8431 fi
8432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8433 INSTOBJEXT=.mo
8434 fi
8435 fi
8436
8437 fi
8438
8439
8440
8441
8442 if test "$CATOBJEXT" = "NONE"; then
8443 nls_cv_use_gnu_gettext=yes
8444 fi
8445 fi
8446
8447 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8448 INTLOBJS="\$(GETTOBJS)"
8449 # Extract the first word of "msgfmt", so it can be a program name with args.
8450 set dummy msgfmt; ac_word=$2
8451 echo "$as_me:$LINENO: checking for $ac_word" >&5
8452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8453 if test "${ac_cv_path_MSGFMT+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456 case "$MSGFMT" in
8457 /*)
8458 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8459 ;;
8460 *)
8461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8462 for ac_dir in $PATH; do
8463 test -z "$ac_dir" && ac_dir=.
8464 if test -f $ac_dir/$ac_word; then
8465 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8466 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8467 break
8468 fi
8469 fi
8470 done
8471 IFS="$ac_save_ifs"
8472 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8473 ;;
8474 esac
8475 fi
8476 MSGFMT="$ac_cv_path_MSGFMT"
8477 if test -n "$MSGFMT"; then
8478 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8479 echo "${ECHO_T}$MSGFMT" >&6
8480 else
8481 echo "$as_me:$LINENO: result: no" >&5
8482 echo "${ECHO_T}no" >&6
8483 fi
8484
8485 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8486 set dummy gmsgfmt; ac_word=$2
8487 echo "$as_me:$LINENO: checking for $ac_word" >&5
8488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8489 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492 case $GMSGFMT in
8493 [\\/]* | ?:[\\/]*)
8494 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8495 ;;
8496 *)
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8499 do
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8504 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8507 fi
8508 done
8509 done
8510
8511 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8512 ;;
8513 esac
8514 fi
8515 GMSGFMT=$ac_cv_path_GMSGFMT
8516
8517 if test -n "$GMSGFMT"; then
8518 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8519 echo "${ECHO_T}$GMSGFMT" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522 echo "${ECHO_T}no" >&6
8523 fi
8524
8525 # Extract the first word of "xgettext", so it can be a program name with args.
8526 set dummy xgettext; ac_word=$2
8527 echo "$as_me:$LINENO: checking for $ac_word" >&5
8528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8529 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532 case "$XGETTEXT" in
8533 /*)
8534 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8535 ;;
8536 *)
8537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8538 for ac_dir in $PATH; do
8539 test -z "$ac_dir" && ac_dir=.
8540 if test -f $ac_dir/$ac_word; then
8541 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8542 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8543 break
8544 fi
8545 fi
8546 done
8547 IFS="$ac_save_ifs"
8548 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8549 ;;
8550 esac
8551 fi
8552 XGETTEXT="$ac_cv_path_XGETTEXT"
8553 if test -n "$XGETTEXT"; then
8554 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8555 echo "${ECHO_T}$XGETTEXT" >&6
8556 else
8557 echo "$as_me:$LINENO: result: no" >&5
8558 echo "${ECHO_T}no" >&6
8559 fi
8560
8561
8562 USE_INCLUDED_LIBINTL=yes
8563 CATOBJEXT=.gmo
8564 INSTOBJEXT=.mo
8565 DATADIRNAME=share
8566 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8567 INTLLIBS=$INTLDEPS
8568 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8569 nls_cv_header_intl=libintl.h
8570 nls_cv_header_libgt=libgettext.h
8571 fi
8572
8573 if test "$XGETTEXT" != ":"; then
8574 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8575 : ;
8576 else
8577 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8578 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8579 XGETTEXT=":"
8580 fi
8581 fi
8582
8583 # We need to process the po/ directory.
8584 POSUB=po
8585 else
8586 DATADIRNAME=share
8587 nls_cv_header_intl=libintl.h
8588 nls_cv_header_libgt=libgettext.h
8589 fi
8590
8591 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8592 # because some of the sources are only built for this goal.
8593 if test "$PACKAGE" = gettext; then
8594 USE_NLS=yes
8595 USE_INCLUDED_LIBINTL=yes
8596 fi
8597
8598 for lang in $ALL_LINGUAS; do
8599 GMOFILES="$GMOFILES $lang.gmo"
8600 POFILES="$POFILES $lang.po"
8601 done
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616 if test "x$CATOBJEXT" != "x"; then
8617 if test "x$ALL_LINGUAS" = "x"; then
8618 LINGUAS=
8619 else
8620 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8621 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8622 NEW_LINGUAS=
8623 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8624 case "$ALL_LINGUAS" in
8625 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8626 esac
8627 done
8628 LINGUAS=$NEW_LINGUAS
8629 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8630 echo "${ECHO_T}$LINGUAS" >&6
8631 fi
8632
8633 if test -n "$LINGUAS"; then
8634 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8635 fi
8636 fi
8637
8638 if test $ac_cv_header_locale_h = yes; then
8639 INCLUDE_LOCALE_H="#include <locale.h>"
8640 else
8641 INCLUDE_LOCALE_H="\
8642 /* The system does not provide the header <locale.h>. Take care yourself. */"
8643 fi
8644
8645
8646 if test -f $srcdir/po2tbl.sed.in; then
8647 if test "$CATOBJEXT" = ".cat"; then
8648 if test "${ac_cv_header_linux_version_h+set}" = set; then
8649 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8650 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8651 if test "${ac_cv_header_linux_version_h+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 fi
8654 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8655 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8656 else
8657 # Is the header compilable?
8658 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8659 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8660 cat >conftest.$ac_ext <<_ACEOF
8661 #line $LINENO "configure"
8662 /* confdefs.h. */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8668 #include <linux/version.h>
8669 _ACEOF
8670 rm -f conftest.$ac_objext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8672 (eval $ac_compile) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } &&
8676 { ac_try='test -s conftest.$ac_objext'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
8682 ac_header_compiler=yes
8683 else
8684 echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.$ac_ext >&5
8686
8687 ac_header_compiler=no
8688 fi
8689 rm -f conftest.$ac_objext conftest.$ac_ext
8690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8691 echo "${ECHO_T}$ac_header_compiler" >&6
8692
8693 # Is the header present?
8694 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8695 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8696 cat >conftest.$ac_ext <<_ACEOF
8697 #line $LINENO "configure"
8698 /* confdefs.h. */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 #include <linux/version.h>
8704 _ACEOF
8705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8707 ac_status=$?
8708 grep -v '^ *+' conftest.er1 >conftest.err
8709 rm -f conftest.er1
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } >/dev/null; then
8713 if test -s conftest.err; then
8714 ac_cpp_err=$ac_c_preproc_warn_flag
8715 else
8716 ac_cpp_err=
8717 fi
8718 else
8719 ac_cpp_err=yes
8720 fi
8721 if test -z "$ac_cpp_err"; then
8722 ac_header_preproc=yes
8723 else
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8726
8727 ac_header_preproc=no
8728 fi
8729 rm -f conftest.err conftest.$ac_ext
8730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8731 echo "${ECHO_T}$ac_header_preproc" >&6
8732
8733 # So? What about this header?
8734 case $ac_header_compiler:$ac_header_preproc in
8735 yes:no )
8736 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8737 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8739 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8740 (
8741 cat <<\_ASBOX
8742 ## ------------------------------------ ##
8743 ## Report this to bug-autoconf@gnu.org. ##
8744 ## ------------------------------------ ##
8745 _ASBOX
8746 ) |
8747 sed "s/^/$as_me: WARNING: /" >&2
8748 ;;
8749 no:yes )
8750 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8751 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8752 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8753 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8754 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8755 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8756 (
8757 cat <<\_ASBOX
8758 ## ------------------------------------ ##
8759 ## Report this to bug-autoconf@gnu.org. ##
8760 ## ------------------------------------ ##
8761 _ASBOX
8762 ) |
8763 sed "s/^/$as_me: WARNING: /" >&2
8764 ;;
8765 esac
8766 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8767 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8768 if test "${ac_cv_header_linux_version_h+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771 ac_cv_header_linux_version_h=$ac_header_preproc
8772 fi
8773 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8774 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8775
8776 fi
8777 if test $ac_cv_header_linux_version_h = yes; then
8778 msgformat=linux
8779 else
8780 msgformat=xopen
8781 fi
8782
8783
8784
8785 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8786 fi
8787 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8788 $srcdir/po2tbl.sed.in > po2tbl.sed
8789 fi
8790
8791 if test "$PACKAGE" = "gettext"; then
8792 GT_NO="#NO#"
8793 GT_YES=
8794 else
8795 GT_NO=
8796 GT_YES="#YES#"
8797 fi
8798
8799
8800
8801 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8802
8803
8804 l=
8805
8806
8807 if test -f $srcdir/po/POTFILES.in; then
8808 test -d po || mkdir po
8809 if test "x$srcdir" != "x."; then
8810 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8811 posrcprefix="$srcdir/"
8812 else
8813 posrcprefix="../$srcdir/"
8814 fi
8815 else
8816 posrcprefix="../"
8817 fi
8818 rm -f po/POTFILES
8819 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8820 < $srcdir/po/POTFILES.in > po/POTFILES
8821 fi
8822
8823
8824 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8825 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8826 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8827 if test "${enable_maintainer_mode+set}" = set; then
8828 enableval="$enable_maintainer_mode"
8829 USE_MAINTAINER_MODE=$enableval
8830 else
8831 USE_MAINTAINER_MODE=no
8832 fi;
8833 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8834 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8835
8836
8837 if test $USE_MAINTAINER_MODE = yes; then
8838 MAINTAINER_MODE_TRUE=
8839 MAINTAINER_MODE_FALSE='#'
8840 else
8841 MAINTAINER_MODE_TRUE='#'
8842 MAINTAINER_MODE_FALSE=
8843 fi
8844
8845 MAINT=$MAINTAINER_MODE_TRUE
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
8860 do
8861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8863 echo "$as_me:$LINENO: checking for $ac_header" >&5
8864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 fi
8868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8870 else
8871 # Is the header compilable?
8872 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8874 cat >conftest.$ac_ext <<_ACEOF
8875 #line $LINENO "configure"
8876 /* confdefs.h. */
8877 _ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h. */
8881 $ac_includes_default
8882 #include <$ac_header>
8883 _ACEOF
8884 rm -f conftest.$ac_objext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8886 (eval $ac_compile) 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -s conftest.$ac_objext'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 (eval $ac_try) 2>&5
8893 ac_status=$?
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; }; then
8896 ac_header_compiler=yes
8897 else
8898 echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.$ac_ext >&5
8900
8901 ac_header_compiler=no
8902 fi
8903 rm -f conftest.$ac_objext conftest.$ac_ext
8904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8905 echo "${ECHO_T}$ac_header_compiler" >&6
8906
8907 # Is the header present?
8908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8910 cat >conftest.$ac_ext <<_ACEOF
8911 #line $LINENO "configure"
8912 /* confdefs.h. */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8917 #include <$ac_header>
8918 _ACEOF
8919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } >/dev/null; then
8927 if test -s conftest.err; then
8928 ac_cpp_err=$ac_c_preproc_warn_flag
8929 else
8930 ac_cpp_err=
8931 fi
8932 else
8933 ac_cpp_err=yes
8934 fi
8935 if test -z "$ac_cpp_err"; then
8936 ac_header_preproc=yes
8937 else
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941 ac_header_preproc=no
8942 fi
8943 rm -f conftest.err conftest.$ac_ext
8944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8945 echo "${ECHO_T}$ac_header_preproc" >&6
8946
8947 # So? What about this header?
8948 case $ac_header_compiler:$ac_header_preproc in
8949 yes:no )
8950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8954 (
8955 cat <<\_ASBOX
8956 ## ------------------------------------ ##
8957 ## Report this to bug-autoconf@gnu.org. ##
8958 ## ------------------------------------ ##
8959 _ASBOX
8960 ) |
8961 sed "s/^/$as_me: WARNING: /" >&2
8962 ;;
8963 no:yes )
8964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8970 (
8971 cat <<\_ASBOX
8972 ## ------------------------------------ ##
8973 ## Report this to bug-autoconf@gnu.org. ##
8974 ## ------------------------------------ ##
8975 _ASBOX
8976 ) |
8977 sed "s/^/$as_me: WARNING: /" >&2
8978 ;;
8979 esac
8980 echo "$as_me:$LINENO: checking for $ac_header" >&5
8981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 else
8985 eval "$as_ac_Header=$ac_header_preproc"
8986 fi
8987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8989
8990 fi
8991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8992 cat >>confdefs.h <<_ACEOF
8993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8994 _ACEOF
8995
8996 fi
8997
8998 done
8999
9000
9001 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
9002 # people who are not cross-compiling but are compiling cross-assemblers.
9003 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
9004 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
9005 if test "${host}" = "${target}"; then
9006 cross_gas=no
9007 else
9008 cross_gas=yes
9009
9010 cat >>confdefs.h <<\_ACEOF
9011 #define CROSS_COMPILE 1
9012 _ACEOF
9013
9014 fi
9015 echo "$as_me:$LINENO: result: $cross_gas" >&5
9016 echo "${ECHO_T}$cross_gas" >&6
9017
9018 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9019 # for constant arguments. Useless!
9020 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9021 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9022 if test "${ac_cv_working_alloca_h+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025 cat >conftest.$ac_ext <<_ACEOF
9026 #line $LINENO "configure"
9027 /* confdefs.h. */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 #include <alloca.h>
9033 int
9034 main ()
9035 {
9036 char *p = (char *) alloca (2 * sizeof (int));
9037 ;
9038 return 0;
9039 }
9040 _ACEOF
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } &&
9047 { ac_try='test -s conftest$ac_exeext'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 (eval $ac_try) 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; }; then
9053 ac_cv_working_alloca_h=yes
9054 else
9055 echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9057
9058 ac_cv_working_alloca_h=no
9059 fi
9060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9061 fi
9062 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9063 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9064 if test $ac_cv_working_alloca_h = yes; then
9065
9066 cat >>confdefs.h <<\_ACEOF
9067 #define HAVE_ALLOCA_H 1
9068 _ACEOF
9069
9070 fi
9071
9072 echo "$as_me:$LINENO: checking for alloca" >&5
9073 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9074 if test "${ac_cv_func_alloca_works+set}" = set; then
9075 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 else
9077 cat >conftest.$ac_ext <<_ACEOF
9078 #line $LINENO "configure"
9079 /* confdefs.h. */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 #ifdef __GNUC__
9085 # define alloca __builtin_alloca
9086 #else
9087 # ifdef _MSC_VER
9088 # include <malloc.h>
9089 # define alloca _alloca
9090 # else
9091 # if HAVE_ALLOCA_H
9092 # include <alloca.h>
9093 # else
9094 # ifdef _AIX
9095 #pragma alloca
9096 # else
9097 # ifndef alloca /* predefined by HP cc +Olibcalls */
9098 char *alloca ();
9099 # endif
9100 # endif
9101 # endif
9102 # endif
9103 #endif
9104
9105 int
9106 main ()
9107 {
9108 char *p = (char *) alloca (1);
9109 ;
9110 return 0;
9111 }
9112 _ACEOF
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9115 (eval $ac_link) 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try='test -s conftest$ac_exeext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_func_alloca_works=yes
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130 ac_cv_func_alloca_works=no
9131 fi
9132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9133 fi
9134 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9135 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9136
9137 if test $ac_cv_func_alloca_works = yes; then
9138
9139 cat >>confdefs.h <<\_ACEOF
9140 #define HAVE_ALLOCA 1
9141 _ACEOF
9142
9143 else
9144 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9145 # that cause trouble. Some versions do not even contain alloca or
9146 # contain a buggy version. If you still want to use their alloca,
9147 # use ar to extract alloca.o from them instead of compiling alloca.c.
9148
9149 ALLOCA=alloca.$ac_objext
9150
9151 cat >>confdefs.h <<\_ACEOF
9152 #define C_ALLOCA 1
9153 _ACEOF
9154
9155
9156 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9157 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9158 if test "${ac_cv_os_cray+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 cat >conftest.$ac_ext <<_ACEOF
9162 #line $LINENO "configure"
9163 /* confdefs.h. */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9168 #if defined(CRAY) && ! defined(CRAY2)
9169 webecray
9170 #else
9171 wenotbecray
9172 #endif
9173
9174 _ACEOF
9175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9176 $EGREP "webecray" >/dev/null 2>&1; then
9177 ac_cv_os_cray=yes
9178 else
9179 ac_cv_os_cray=no
9180 fi
9181 rm -f conftest*
9182
9183 fi
9184 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9185 echo "${ECHO_T}$ac_cv_os_cray" >&6
9186 if test $ac_cv_os_cray = yes; then
9187 for ac_func in _getb67 GETB67 getb67; do
9188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9189 echo "$as_me:$LINENO: checking for $ac_func" >&5
9190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9191 if eval "test \"\${$as_ac_var+set}\" = set"; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194 cat >conftest.$ac_ext <<_ACEOF
9195 #line $LINENO "configure"
9196 /* confdefs.h. */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9201 /* System header to define __stub macros and hopefully few prototypes,
9202 which can conflict with char $ac_func (); below.
9203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9204 <limits.h> exists even on freestanding compilers. */
9205 #ifdef __STDC__
9206 # include <limits.h>
9207 #else
9208 # include <assert.h>
9209 #endif
9210 /* Override any gcc2 internal prototype to avoid an error. */
9211 #ifdef __cplusplus
9212 extern "C"
9213 {
9214 #endif
9215 /* We use char because int might match the return type of a gcc2
9216 builtin and then its argument prototype would still apply. */
9217 char $ac_func ();
9218 /* The GNU C library defines this for functions which it implements
9219 to always fail with ENOSYS. Some functions are actually named
9220 something starting with __ and the normal name is an alias. */
9221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9222 choke me
9223 #else
9224 char (*f) () = $ac_func;
9225 #endif
9226 #ifdef __cplusplus
9227 }
9228 #endif
9229
9230 int
9231 main ()
9232 {
9233 return f != $ac_func;
9234 ;
9235 return 0;
9236 }
9237 _ACEOF
9238 rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9240 (eval $ac_link) 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -s conftest$ac_exeext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 eval "$as_ac_var=yes"
9251 else
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9254
9255 eval "$as_ac_var=no"
9256 fi
9257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9258 fi
9259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9261 if test `eval echo '${'$as_ac_var'}'` = yes; then
9262
9263 cat >>confdefs.h <<_ACEOF
9264 #define CRAY_STACKSEG_END $ac_func
9265 _ACEOF
9266
9267 break
9268 fi
9269
9270 done
9271 fi
9272
9273 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9274 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9275 if test "${ac_cv_c_stack_direction+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 else
9278 if test "$cross_compiling" = yes; then
9279 ac_cv_c_stack_direction=0
9280 else
9281 cat >conftest.$ac_ext <<_ACEOF
9282 #line $LINENO "configure"
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 int
9289 find_stack_direction ()
9290 {
9291 static char *addr = 0;
9292 auto char dummy;
9293 if (addr == 0)
9294 {
9295 addr = &dummy;
9296 return find_stack_direction ();
9297 }
9298 else
9299 return (&dummy > addr) ? 1 : -1;
9300 }
9301
9302 int
9303 main ()
9304 {
9305 exit (find_stack_direction () < 0);
9306 }
9307 _ACEOF
9308 rm -f conftest$ac_exeext
9309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9310 (eval $ac_link) 2>&5
9311 ac_status=$?
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319 ac_cv_c_stack_direction=1
9320 else
9321 echo "$as_me: program exited with status $ac_status" >&5
9322 echo "$as_me: failed program was:" >&5
9323 sed 's/^/| /' conftest.$ac_ext >&5
9324
9325 ( exit $ac_status )
9326 ac_cv_c_stack_direction=-1
9327 fi
9328 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9329 fi
9330 fi
9331 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9332 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9333
9334 cat >>confdefs.h <<_ACEOF
9335 #define STACK_DIRECTION $ac_cv_c_stack_direction
9336 _ACEOF
9337
9338
9339 fi
9340
9341 echo "$as_me:$LINENO: checking for inline" >&5
9342 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9343 if test "${ac_cv_c_inline+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 else
9346 ac_cv_c_inline=no
9347 for ac_kw in inline __inline__ __inline; do
9348 cat >conftest.$ac_ext <<_ACEOF
9349 #line $LINENO "configure"
9350 /* confdefs.h. */
9351 _ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9355 #ifndef __cplusplus
9356 typedef int foo_t;
9357 static $ac_kw foo_t static_foo () {return 0; }
9358 $ac_kw foo_t foo () {return 0; }
9359 #endif
9360
9361 _ACEOF
9362 rm -f conftest.$ac_objext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9364 (eval $ac_compile) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
9368 { ac_try='test -s conftest.$ac_objext'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 (eval $ac_try) 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374 ac_cv_c_inline=$ac_kw; break
9375 else
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379 fi
9380 rm -f conftest.$ac_objext conftest.$ac_ext
9381 done
9382
9383 fi
9384 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9385 echo "${ECHO_T}$ac_cv_c_inline" >&6
9386 case $ac_cv_c_inline in
9387 inline | yes) ;;
9388 no)
9389 cat >>confdefs.h <<\_ACEOF
9390 #define inline
9391 _ACEOF
9392 ;;
9393 *) cat >>confdefs.h <<_ACEOF
9394 #define inline $ac_cv_c_inline
9395 _ACEOF
9396 ;;
9397 esac
9398
9399
9400 # VMS doesn't have unlink.
9401
9402
9403 for ac_func in unlink remove
9404 do
9405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9406 echo "$as_me:$LINENO: checking for $ac_func" >&5
9407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9408 if eval "test \"\${$as_ac_var+set}\" = set"; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 else
9411 cat >conftest.$ac_ext <<_ACEOF
9412 #line $LINENO "configure"
9413 /* confdefs.h. */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 /* System header to define __stub macros and hopefully few prototypes,
9419 which can conflict with char $ac_func (); below.
9420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9421 <limits.h> exists even on freestanding compilers. */
9422 #ifdef __STDC__
9423 # include <limits.h>
9424 #else
9425 # include <assert.h>
9426 #endif
9427 /* Override any gcc2 internal prototype to avoid an error. */
9428 #ifdef __cplusplus
9429 extern "C"
9430 {
9431 #endif
9432 /* We use char because int might match the return type of a gcc2
9433 builtin and then its argument prototype would still apply. */
9434 char $ac_func ();
9435 /* The GNU C library defines this for functions which it implements
9436 to always fail with ENOSYS. Some functions are actually named
9437 something starting with __ and the normal name is an alias. */
9438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9439 choke me
9440 #else
9441 char (*f) () = $ac_func;
9442 #endif
9443 #ifdef __cplusplus
9444 }
9445 #endif
9446
9447 int
9448 main ()
9449 {
9450 return f != $ac_func;
9451 ;
9452 return 0;
9453 }
9454 _ACEOF
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457 (eval $ac_link) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } &&
9461 { ac_try='test -s conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 (eval $ac_try) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 eval "$as_ac_var=yes"
9468 else
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9471
9472 eval "$as_ac_var=no"
9473 fi
9474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9475 fi
9476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9478 if test `eval echo '${'$as_ac_var'}'` = yes; then
9479 cat >>confdefs.h <<_ACEOF
9480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9481 _ACEOF
9482 break
9483 fi
9484 done
9485
9486
9487 # Some systems don't have sbrk().
9488
9489 for ac_func in sbrk
9490 do
9491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9492 echo "$as_me:$LINENO: checking for $ac_func" >&5
9493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9494 if eval "test \"\${$as_ac_var+set}\" = set"; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497 cat >conftest.$ac_ext <<_ACEOF
9498 #line $LINENO "configure"
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 /* System header to define __stub macros and hopefully few prototypes,
9505 which can conflict with char $ac_func (); below.
9506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9507 <limits.h> exists even on freestanding compilers. */
9508 #ifdef __STDC__
9509 # include <limits.h>
9510 #else
9511 # include <assert.h>
9512 #endif
9513 /* Override any gcc2 internal prototype to avoid an error. */
9514 #ifdef __cplusplus
9515 extern "C"
9516 {
9517 #endif
9518 /* We use char because int might match the return type of a gcc2
9519 builtin and then its argument prototype would still apply. */
9520 char $ac_func ();
9521 /* The GNU C library defines this for functions which it implements
9522 to always fail with ENOSYS. Some functions are actually named
9523 something starting with __ and the normal name is an alias. */
9524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9525 choke me
9526 #else
9527 char (*f) () = $ac_func;
9528 #endif
9529 #ifdef __cplusplus
9530 }
9531 #endif
9532
9533 int
9534 main ()
9535 {
9536 return f != $ac_func;
9537 ;
9538 return 0;
9539 }
9540 _ACEOF
9541 rm -f conftest.$ac_objext conftest$ac_exeext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9543 (eval $ac_link) 2>&5
9544 ac_status=$?
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9553 eval "$as_ac_var=yes"
9554 else
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9557
9558 eval "$as_ac_var=no"
9559 fi
9560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9561 fi
9562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9564 if test `eval echo '${'$as_ac_var'}'` = yes; then
9565 cat >>confdefs.h <<_ACEOF
9566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9567 _ACEOF
9568
9569 fi
9570 done
9571
9572
9573 # do we need the math library?
9574 case "${need_libm}" in
9575 yes)
9576 LIBM=
9577 case $host in
9578 *-*-beos* | *-*-cygwin* | *-*-pw32*)
9579 # These system don't have libm
9580 ;;
9581 *-ncr-sysv4.3*)
9582 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
9583 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
9584 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587 ac_check_lib_save_LIBS=$LIBS
9588 LIBS="-lmw $LIBS"
9589 cat >conftest.$ac_ext <<_ACEOF
9590 #line $LINENO "configure"
9591 /* confdefs.h. */
9592 _ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9596
9597 /* Override any gcc2 internal prototype to avoid an error. */
9598 #ifdef __cplusplus
9599 extern "C"
9600 #endif
9601 /* We use char because int might match the return type of a gcc2
9602 builtin and then its argument prototype would still apply. */
9603 char _mwvalidcheckl ();
9604 int
9605 main ()
9606 {
9607 _mwvalidcheckl ();
9608 ;
9609 return 0;
9610 }
9611 _ACEOF
9612 rm -f conftest.$ac_objext conftest$ac_exeext
9613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614 (eval $ac_link) 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } &&
9618 { ac_try='test -s conftest$ac_exeext'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 (eval $ac_try) 2>&5
9621 ac_status=$?
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; }; then
9624 ac_cv_lib_mw__mwvalidcheckl=yes
9625 else
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ac_cv_lib_mw__mwvalidcheckl=no
9630 fi
9631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9632 LIBS=$ac_check_lib_save_LIBS
9633 fi
9634 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
9635 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
9636 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
9637 LIBM="-lmw"
9638 fi
9639
9640 echo "$as_me:$LINENO: checking for main in -lm" >&5
9641 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9642 if test "${ac_cv_lib_m_main+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645 ac_check_lib_save_LIBS=$LIBS
9646 LIBS="-lm $LIBS"
9647 cat >conftest.$ac_ext <<_ACEOF
9648 #line $LINENO "configure"
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654
9655
9656 int
9657 main ()
9658 {
9659 main ();
9660 ;
9661 return 0;
9662 }
9663 _ACEOF
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666 (eval $ac_link) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -s conftest$ac_exeext'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 (eval $ac_try) 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; }; then
9676 ac_cv_lib_m_main=yes
9677 else
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681 ac_cv_lib_m_main=no
9682 fi
9683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9684 LIBS=$ac_check_lib_save_LIBS
9685 fi
9686 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9687 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9688 if test $ac_cv_lib_m_main = yes; then
9689 LIBM="$LIBM -lm"
9690 fi
9691
9692 ;;
9693 *)
9694 echo "$as_me:$LINENO: checking for main in -lm" >&5
9695 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9696 if test "${ac_cv_lib_m_main+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 else
9699 ac_check_lib_save_LIBS=$LIBS
9700 LIBS="-lm $LIBS"
9701 cat >conftest.$ac_ext <<_ACEOF
9702 #line $LINENO "configure"
9703 /* confdefs.h. */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9708
9709
9710 int
9711 main ()
9712 {
9713 main ();
9714 ;
9715 return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -s conftest$ac_exeext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 (eval $ac_try) 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_cv_lib_m_main=yes
9731 else
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9734
9735 ac_cv_lib_m_main=no
9736 fi
9737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9738 LIBS=$ac_check_lib_save_LIBS
9739 fi
9740 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9741 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9742 if test $ac_cv_lib_m_main = yes; then
9743 LIBM="-lm"
9744 fi
9745
9746 ;;
9747 esac
9748
9749
9750 ;;
9751 esac
9752
9753 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
9754 # enough, but on some of those systems, the assert macro relies on requoting
9755 # working properly!
9756 echo "$as_me:$LINENO: checking for working assert macro" >&5
9757 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
9758 if test "${gas_cv_assert_ok+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 else
9761 cat >conftest.$ac_ext <<_ACEOF
9762 #line $LINENO "configure"
9763 /* confdefs.h. */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9768 #include <assert.h>
9769 #include <stdio.h>
9770 int
9771 main ()
9772 {
9773
9774 /* check for requoting problems */
9775 static int a, b, c, d;
9776 static char *s;
9777 assert (!strcmp(s, "foo bar baz quux"));
9778 /* check for newline handling */
9779 assert (a == b
9780 || c == d);
9781
9782 ;
9783 return 0;
9784 }
9785 _ACEOF
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9788 (eval $ac_link) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 (eval $ac_try) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 gas_cv_assert_ok=yes
9799 else
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 gas_cv_assert_ok=no
9804 fi
9805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9806 fi
9807 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
9808 echo "${ECHO_T}$gas_cv_assert_ok" >&6
9809 test $gas_cv_assert_ok = yes ||
9810 cat >>confdefs.h <<\_ACEOF
9811 #define BROKEN_ASSERT 1
9812 _ACEOF
9813
9814
9815
9816 # On some systems, the system header files may not declare malloc, realloc,
9817 # and free. There are places where gas needs these functions to have been
9818 # declared -- such as when taking their addresses.
9819 gas_test_headers="
9820 #ifdef HAVE_MEMORY_H
9821 #include <memory.h>
9822 #endif
9823 #ifdef HAVE_STRING_H
9824 #include <string.h>
9825 #else
9826 #ifdef HAVE_STRINGS_H
9827 #include <strings.h>
9828 #endif
9829 #endif
9830 #ifdef HAVE_STDLIB_H
9831 #include <stdlib.h>
9832 #endif
9833 #ifdef HAVE_UNISTD_H
9834 #include <unistd.h>
9835 #endif
9836 "
9837
9838 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
9839 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
9840 if test "${gas_cv_decl_needed_strstr+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843 cat >conftest.$ac_ext <<_ACEOF
9844 #line $LINENO "configure"
9845 /* confdefs.h. */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 $gas_test_headers
9851 int
9852 main ()
9853 {
9854
9855 typedef char *(*f)();
9856 f x;
9857 x = (f) strstr;
9858
9859 ;
9860 return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865 (eval $ac_link) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 gas_cv_decl_needed_strstr=no
9876 else
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880 gas_cv_decl_needed_strstr=yes
9881 fi
9882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9883 fi
9884 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
9885 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
9886 if test $gas_cv_decl_needed_strstr = yes; then
9887
9888 cat >>confdefs.h <<\_ACEOF
9889 #define NEED_DECLARATION_STRSTR 1
9890 _ACEOF
9891
9892 fi
9893
9894
9895 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
9896 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
9897 if test "${gas_cv_decl_needed_malloc+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900 cat >conftest.$ac_ext <<_ACEOF
9901 #line $LINENO "configure"
9902 /* confdefs.h. */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9907 $gas_test_headers
9908 int
9909 main ()
9910 {
9911
9912 typedef char *(*f)();
9913 f x;
9914 x = (f) malloc;
9915
9916 ;
9917 return 0;
9918 }
9919 _ACEOF
9920 rm -f conftest.$ac_objext conftest$ac_exeext
9921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9922 (eval $ac_link) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); } &&
9926 { ac_try='test -s conftest$ac_exeext'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 (eval $ac_try) 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 gas_cv_decl_needed_malloc=no
9933 else
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9936
9937 gas_cv_decl_needed_malloc=yes
9938 fi
9939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9940 fi
9941 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
9942 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
9943 if test $gas_cv_decl_needed_malloc = yes; then
9944
9945 cat >>confdefs.h <<\_ACEOF
9946 #define NEED_DECLARATION_MALLOC 1
9947 _ACEOF
9948
9949 fi
9950
9951
9952 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
9953 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
9954 if test "${gas_cv_decl_needed_free+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 cat >conftest.$ac_ext <<_ACEOF
9958 #line $LINENO "configure"
9959 /* confdefs.h. */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9964 $gas_test_headers
9965 int
9966 main ()
9967 {
9968
9969 typedef void (*f)();
9970 f x;
9971 x = (f) free;
9972
9973 ;
9974 return 0;
9975 }
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9979 (eval $ac_link) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 gas_cv_decl_needed_free=no
9990 else
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994 gas_cv_decl_needed_free=yes
9995 fi
9996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9997 fi
9998 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
9999 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
10000 if test $gas_cv_decl_needed_free = yes; then
10001
10002 cat >>confdefs.h <<\_ACEOF
10003 #define NEED_DECLARATION_FREE 1
10004 _ACEOF
10005
10006 fi
10007
10008
10009 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
10010 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
10011 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014 cat >conftest.$ac_ext <<_ACEOF
10015 #line $LINENO "configure"
10016 /* confdefs.h. */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 $gas_test_headers
10022 int
10023 main ()
10024 {
10025
10026 typedef char *(*f)();
10027 f x;
10028 x = (f) sbrk;
10029
10030 ;
10031 return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036 (eval $ac_link) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 gas_cv_decl_needed_sbrk=no
10047 else
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051 gas_cv_decl_needed_sbrk=yes
10052 fi
10053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10054 fi
10055 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
10056 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
10057 if test $gas_cv_decl_needed_sbrk = yes; then
10058
10059 cat >>confdefs.h <<\_ACEOF
10060 #define NEED_DECLARATION_SBRK 1
10061 _ACEOF
10062
10063 fi
10064
10065
10066 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
10067 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
10068 if test "${gas_cv_decl_needed_environ+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071 cat >conftest.$ac_ext <<_ACEOF
10072 #line $LINENO "configure"
10073 /* confdefs.h. */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 $gas_test_headers
10079 int
10080 main ()
10081 {
10082
10083 typedef char **f;
10084 f x;
10085 x = (f) environ;
10086
10087 ;
10088 return 0;
10089 }
10090 _ACEOF
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093 (eval $ac_link) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
10097 { ac_try='test -s conftest$ac_exeext'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10103 gas_cv_decl_needed_environ=no
10104 else
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10107
10108 gas_cv_decl_needed_environ=yes
10109 fi
10110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10111 fi
10112 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
10113 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
10114 if test $gas_cv_decl_needed_environ = yes; then
10115
10116 cat >>confdefs.h <<\_ACEOF
10117 #define NEED_DECLARATION_ENVIRON 1
10118 _ACEOF
10119
10120 fi
10121
10122
10123 # Does errno.h declare errno, or do we have to add a separate declaration
10124 # for it?
10125
10126 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
10127 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
10128 if test "${gas_cv_decl_needed_errno+set}" = set; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 else
10131 cat >conftest.$ac_ext <<_ACEOF
10132 #line $LINENO "configure"
10133 /* confdefs.h. */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138
10139 #ifdef HAVE_ERRNO_H
10140 #include <errno.h>
10141 #endif
10142
10143 int
10144 main ()
10145 {
10146
10147 typedef int f;
10148 f x;
10149 x = (f) errno;
10150
10151 ;
10152 return 0;
10153 }
10154 _ACEOF
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10157 (eval $ac_link) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 gas_cv_decl_needed_errno=no
10168 else
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10171
10172 gas_cv_decl_needed_errno=yes
10173 fi
10174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10175 fi
10176 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
10177 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
10178 if test $gas_cv_decl_needed_errno = yes; then
10179
10180 cat >>confdefs.h <<\_ACEOF
10181 #define NEED_DECLARATION_ERRNO 1
10182 _ACEOF
10183
10184 fi
10185
10186
10187
10188
10189 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10190
10191 ac_config_commands="$ac_config_commands default"
10192
10193
10194 cat >confcache <<\_ACEOF
10195 # This file is a shell script that caches the results of configure
10196 # tests run on this system so they can be shared between configure
10197 # scripts and configure runs, see configure's option --config-cache.
10198 # It is not useful on other systems. If it contains results you don't
10199 # want to keep, you may remove or edit it.
10200 #
10201 # config.status only pays attention to the cache file if you give it
10202 # the --recheck option to rerun configure.
10203 #
10204 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10205 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10206 # following values.
10207
10208 _ACEOF
10209
10210 # The following way of writing the cache mishandles newlines in values,
10211 # but we know of no workaround that is simple, portable, and efficient.
10212 # So, don't put newlines in cache variables' values.
10213 # Ultrix sh set writes to stderr and can't be redirected directly,
10214 # and sets the high bit in the cache file unless we assign to the vars.
10215 {
10216 (set) 2>&1 |
10217 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10218 *ac_space=\ *)
10219 # `set' does not quote correctly, so add quotes (double-quote
10220 # substitution turns \\\\ into \\, and sed turns \\ into \).
10221 sed -n \
10222 "s/'/'\\\\''/g;
10223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10224 ;;
10225 *)
10226 # `set' quotes correctly as required by POSIX, so do not add quotes.
10227 sed -n \
10228 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10229 ;;
10230 esac;
10231 } |
10232 sed '
10233 t clear
10234 : clear
10235 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10236 t end
10237 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10238 : end' >>confcache
10239 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10240 if test -w $cache_file; then
10241 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10242 cat confcache >$cache_file
10243 else
10244 echo "not updating unwritable cache $cache_file"
10245 fi
10246 fi
10247 rm -f confcache
10248
10249 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10250 # Let make expand exec_prefix.
10251 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10252
10253 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10254 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10255 # trailing colons and then remove the whole line if VPATH becomes empty
10256 # (actually we leave an empty line to preserve line numbers).
10257 if test "x$srcdir" = x.; then
10258 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10259 s/:*\$(srcdir):*/:/;
10260 s/:*\${srcdir}:*/:/;
10261 s/:*@srcdir@:*/:/;
10262 s/^\([^=]*=[ ]*\):*/\1/;
10263 s/:*$//;
10264 s/^[^=]*=[ ]*$//;
10265 }'
10266 fi
10267
10268 DEFS=-DHAVE_CONFIG_H
10269
10270 ac_libobjs=
10271 ac_ltlibobjs=
10272 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10273 # 1. Remove the extension, and $U if already installed.
10274 ac_i=`echo "$ac_i" |
10275 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10276 # 2. Add them.
10277 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10278 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10279 done
10280 LIBOBJS=$ac_libobjs
10281
10282 LTLIBOBJS=$ac_ltlibobjs
10283
10284
10285 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10286 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10287 Usually this means the macro was only invoked conditionally." >&5
10288 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10289 Usually this means the macro was only invoked conditionally." >&2;}
10290 { (exit 1); exit 1; }; }
10291 fi
10292 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10293 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10294 Usually this means the macro was only invoked conditionally." >&5
10295 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10296 Usually this means the macro was only invoked conditionally." >&2;}
10297 { (exit 1); exit 1; }; }
10298 fi
10299 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10300 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10301 Usually this means the macro was only invoked conditionally." >&5
10302 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10303 Usually this means the macro was only invoked conditionally." >&2;}
10304 { (exit 1); exit 1; }; }
10305 fi
10306
10307 : ${CONFIG_STATUS=./config.status}
10308 ac_clean_files_save=$ac_clean_files
10309 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10310 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10311 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10312 cat >$CONFIG_STATUS <<_ACEOF
10313 #! $SHELL
10314 # Generated by $as_me.
10315 # Run this file to recreate the current configuration.
10316 # Compiler output produced by configure, useful for debugging
10317 # configure, is in config.log if it exists.
10318
10319 debug=false
10320 ac_cs_recheck=false
10321 ac_cs_silent=false
10322 SHELL=\${CONFIG_SHELL-$SHELL}
10323 _ACEOF
10324
10325 cat >>$CONFIG_STATUS <<\_ACEOF
10326 ## --------------------- ##
10327 ## M4sh Initialization. ##
10328 ## --------------------- ##
10329
10330 # Be Bourne compatible
10331 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10332 emulate sh
10333 NULLCMD=:
10334 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10335 # is contrary to our usage. Disable this feature.
10336 alias -g '${1+"$@"}'='"$@"'
10337 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10338 set -o posix
10339 fi
10340
10341 # Support unset when possible.
10342 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10343 as_unset=unset
10344 else
10345 as_unset=false
10346 fi
10347
10348
10349 # Work around bugs in pre-3.0 UWIN ksh.
10350 $as_unset ENV MAIL MAILPATH
10351 PS1='$ '
10352 PS2='> '
10353 PS4='+ '
10354
10355 # NLS nuisances.
10356 for as_var in \
10357 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10358 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10359 LC_TELEPHONE LC_TIME
10360 do
10361 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10362 eval $as_var=C; export $as_var
10363 else
10364 $as_unset $as_var
10365 fi
10366 done
10367
10368 # Required to use basename.
10369 if expr a : '\(a\)' >/dev/null 2>&1; then
10370 as_expr=expr
10371 else
10372 as_expr=false
10373 fi
10374
10375 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10376 as_basename=basename
10377 else
10378 as_basename=false
10379 fi
10380
10381
10382 # Name of the executable.
10383 as_me=`$as_basename "$0" ||
10384 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10385 X"$0" : 'X\(//\)$' \| \
10386 X"$0" : 'X\(/\)$' \| \
10387 . : '\(.\)' 2>/dev/null ||
10388 echo X/"$0" |
10389 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10390 /^X\/\(\/\/\)$/{ s//\1/; q; }
10391 /^X\/\(\/\).*/{ s//\1/; q; }
10392 s/.*/./; q'`
10393
10394
10395 # PATH needs CR, and LINENO needs CR and PATH.
10396 # Avoid depending upon Character Ranges.
10397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10400 as_cr_digits='0123456789'
10401 as_cr_alnum=$as_cr_Letters$as_cr_digits
10402
10403 # The user is always right.
10404 if test "${PATH_SEPARATOR+set}" != set; then
10405 echo "#! /bin/sh" >conf$$.sh
10406 echo "exit 0" >>conf$$.sh
10407 chmod +x conf$$.sh
10408 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10409 PATH_SEPARATOR=';'
10410 else
10411 PATH_SEPARATOR=:
10412 fi
10413 rm -f conf$$.sh
10414 fi
10415
10416
10417 as_lineno_1=$LINENO
10418 as_lineno_2=$LINENO
10419 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10420 test "x$as_lineno_1" != "x$as_lineno_2" &&
10421 test "x$as_lineno_3" = "x$as_lineno_2" || {
10422 # Find who we are. Look in the path if we contain no path at all
10423 # relative or not.
10424 case $0 in
10425 *[\\/]* ) as_myself=$0 ;;
10426 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427 for as_dir in $PATH
10428 do
10429 IFS=$as_save_IFS
10430 test -z "$as_dir" && as_dir=.
10431 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10432 done
10433
10434 ;;
10435 esac
10436 # We did not find ourselves, most probably we were run as `sh COMMAND'
10437 # in which case we are not to be found in the path.
10438 if test "x$as_myself" = x; then
10439 as_myself=$0
10440 fi
10441 if test ! -f "$as_myself"; then
10442 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10443 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10444 { (exit 1); exit 1; }; }
10445 fi
10446 case $CONFIG_SHELL in
10447 '')
10448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10450 do
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 for as_base in sh bash ksh sh5; do
10454 case $as_dir in
10455 /*)
10456 if ("$as_dir/$as_base" -c '
10457 as_lineno_1=$LINENO
10458 as_lineno_2=$LINENO
10459 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10460 test "x$as_lineno_1" != "x$as_lineno_2" &&
10461 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10462 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10463 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10464 CONFIG_SHELL=$as_dir/$as_base
10465 export CONFIG_SHELL
10466 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10467 fi;;
10468 esac
10469 done
10470 done
10471 ;;
10472 esac
10473
10474 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10475 # uniformly replaced by the line number. The first 'sed' inserts a
10476 # line-number line before each line; the second 'sed' does the real
10477 # work. The second script uses 'N' to pair each line-number line
10478 # with the numbered line, and appends trailing '-' during
10479 # substitution so that $LINENO is not a special case at line end.
10480 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10481 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10482 sed '=' <$as_myself |
10483 sed '
10484 N
10485 s,$,-,
10486 : loop
10487 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10488 t loop
10489 s,-$,,
10490 s,^['$as_cr_digits']*\n,,
10491 ' >$as_me.lineno &&
10492 chmod +x $as_me.lineno ||
10493 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10494 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10495 { (exit 1); exit 1; }; }
10496
10497 # Don't try to exec as it changes $[0], causing all sort of problems
10498 # (the dirname of $[0] is not the place where we might find the
10499 # original and so on. Autoconf is especially sensible to this).
10500 . ./$as_me.lineno
10501 # Exit status is that of the last command.
10502 exit
10503 }
10504
10505
10506 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10507 *c*,-n*) ECHO_N= ECHO_C='
10508 ' ECHO_T=' ' ;;
10509 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10510 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10511 esac
10512
10513 if expr a : '\(a\)' >/dev/null 2>&1; then
10514 as_expr=expr
10515 else
10516 as_expr=false
10517 fi
10518
10519 rm -f conf$$ conf$$.exe conf$$.file
10520 echo >conf$$.file
10521 if ln -s conf$$.file conf$$ 2>/dev/null; then
10522 # We could just check for DJGPP; but this test a) works b) is more generic
10523 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10524 if test -f conf$$.exe; then
10525 # Don't use ln at all; we don't have any links
10526 as_ln_s='cp -p'
10527 else
10528 as_ln_s='ln -s'
10529 fi
10530 elif ln conf$$.file conf$$ 2>/dev/null; then
10531 as_ln_s=ln
10532 else
10533 as_ln_s='cp -p'
10534 fi
10535 rm -f conf$$ conf$$.exe conf$$.file
10536
10537 if mkdir -p . 2>/dev/null; then
10538 as_mkdir_p=:
10539 else
10540 as_mkdir_p=false
10541 fi
10542
10543 as_executable_p="test -f"
10544
10545 # Sed expression to map a string onto a valid CPP name.
10546 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10547
10548 # Sed expression to map a string onto a valid variable name.
10549 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10550
10551
10552 # IFS
10553 # We need space, tab and new line, in precisely that order.
10554 as_nl='
10555 '
10556 IFS=" $as_nl"
10557
10558 # CDPATH.
10559 $as_unset CDPATH
10560
10561 exec 6>&1
10562
10563 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10564 # report actual input values of CONFIG_FILES etc. instead of their
10565 # values after options handling. Logging --version etc. is OK.
10566 exec 5>>config.log
10567 {
10568 echo
10569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10570 ## Running $as_me. ##
10571 _ASBOX
10572 } >&5
10573 cat >&5 <<_CSEOF
10574
10575 This file was extended by $as_me, which was
10576 generated by GNU Autoconf 2.57. Invocation command line was
10577
10578 CONFIG_FILES = $CONFIG_FILES
10579 CONFIG_HEADERS = $CONFIG_HEADERS
10580 CONFIG_LINKS = $CONFIG_LINKS
10581 CONFIG_COMMANDS = $CONFIG_COMMANDS
10582 $ $0 $@
10583
10584 _CSEOF
10585 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10586 echo >&5
10587 _ACEOF
10588
10589 # Files that config.status was made for.
10590 if test -n "$ac_config_files"; then
10591 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10592 fi
10593
10594 if test -n "$ac_config_headers"; then
10595 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10596 fi
10597
10598 if test -n "$ac_config_links"; then
10599 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10600 fi
10601
10602 if test -n "$ac_config_commands"; then
10603 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10604 fi
10605
10606 cat >>$CONFIG_STATUS <<\_ACEOF
10607
10608 ac_cs_usage="\
10609 \`$as_me' instantiates files from templates according to the
10610 current configuration.
10611
10612 Usage: $0 [OPTIONS] [FILE]...
10613
10614 -h, --help print this help, then exit
10615 -V, --version print version number, then exit
10616 -q, --quiet do not print progress messages
10617 -d, --debug don't remove temporary files
10618 --recheck update $as_me by reconfiguring in the same conditions
10619 --file=FILE[:TEMPLATE]
10620 instantiate the configuration file FILE
10621 --header=FILE[:TEMPLATE]
10622 instantiate the configuration header FILE
10623
10624 Configuration files:
10625 $config_files
10626
10627 Configuration headers:
10628 $config_headers
10629
10630 Configuration commands:
10631 $config_commands
10632
10633 Report bugs to <bug-autoconf@gnu.org>."
10634 _ACEOF
10635
10636 cat >>$CONFIG_STATUS <<_ACEOF
10637 ac_cs_version="\\
10638 config.status
10639 configured by $0, generated by GNU Autoconf 2.57,
10640 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10641
10642 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10643 Free Software Foundation, Inc.
10644 This config.status script is free software; the Free Software Foundation
10645 gives unlimited permission to copy, distribute and modify it."
10646 srcdir=$srcdir
10647 INSTALL="$INSTALL"
10648 _ACEOF
10649
10650 cat >>$CONFIG_STATUS <<\_ACEOF
10651 # If no file are specified by the user, then we need to provide default
10652 # value. By we need to know if files were specified by the user.
10653 ac_need_defaults=:
10654 while test $# != 0
10655 do
10656 case $1 in
10657 --*=*)
10658 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10659 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10660 ac_shift=:
10661 ;;
10662 -*)
10663 ac_option=$1
10664 ac_optarg=$2
10665 ac_shift=shift
10666 ;;
10667 *) # This is not an option, so the user has probably given explicit
10668 # arguments.
10669 ac_option=$1
10670 ac_need_defaults=false;;
10671 esac
10672
10673 case $ac_option in
10674 # Handling of the options.
10675 _ACEOF
10676 cat >>$CONFIG_STATUS <<\_ACEOF
10677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10678 ac_cs_recheck=: ;;
10679 --version | --vers* | -V )
10680 echo "$ac_cs_version"; exit 0 ;;
10681 --he | --h)
10682 # Conflict between --help and --header
10683 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10684 Try \`$0 --help' for more information." >&5
10685 echo "$as_me: error: ambiguous option: $1
10686 Try \`$0 --help' for more information." >&2;}
10687 { (exit 1); exit 1; }; };;
10688 --help | --hel | -h )
10689 echo "$ac_cs_usage"; exit 0 ;;
10690 --debug | --d* | -d )
10691 debug=: ;;
10692 --file | --fil | --fi | --f )
10693 $ac_shift
10694 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10695 ac_need_defaults=false;;
10696 --header | --heade | --head | --hea )
10697 $ac_shift
10698 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10699 ac_need_defaults=false;;
10700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10701 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10702 ac_cs_silent=: ;;
10703
10704 # This is an error.
10705 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10706 Try \`$0 --help' for more information." >&5
10707 echo "$as_me: error: unrecognized option: $1
10708 Try \`$0 --help' for more information." >&2;}
10709 { (exit 1); exit 1; }; } ;;
10710
10711 *) ac_config_targets="$ac_config_targets $1" ;;
10712
10713 esac
10714 shift
10715 done
10716
10717 ac_configure_extra_args=
10718
10719 if $ac_cs_silent; then
10720 exec 6>/dev/null
10721 ac_configure_extra_args="$ac_configure_extra_args --silent"
10722 fi
10723
10724 _ACEOF
10725 cat >>$CONFIG_STATUS <<_ACEOF
10726 if \$ac_cs_recheck; then
10727 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10728 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10729 fi
10730
10731 _ACEOF
10732
10733 cat >>$CONFIG_STATUS <<_ACEOF
10734 #
10735 # INIT-COMMANDS section.
10736 #
10737
10738 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10739 target_cpu_type=${target_cpu_type}
10740 cgen_cpu_prefix=${cgen_cpu_prefix}
10741 obj_format=${obj_format}
10742 te_file=${te_file}
10743
10744 _ACEOF
10745
10746
10747
10748 cat >>$CONFIG_STATUS <<\_ACEOF
10749 for ac_config_target in $ac_config_targets
10750 do
10751 case "$ac_config_target" in
10752 # Handling of arguments.
10753 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
10754 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
10755 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10756 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10757 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10758 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10759 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10760 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10761 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10762 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10763 { (exit 1); exit 1; }; };;
10764 esac
10765 done
10766
10767 # If the user did not use the arguments to specify the items to instantiate,
10768 # then the envvar interface is used. Set only those that are not.
10769 # We use the long form for the default assignment because of an extremely
10770 # bizarre bug on SunOS 4.1.3.
10771 if $ac_need_defaults; then
10772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10773 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10774 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10775 fi
10776
10777 # Have a temporary directory for convenience. Make it in the build tree
10778 # simply because there is no reason to put it here, and in addition,
10779 # creating and moving files from /tmp can sometimes cause problems.
10780 # Create a temporary directory, and hook for its removal unless debugging.
10781 $debug ||
10782 {
10783 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10784 trap '{ (exit 1); exit 1; }' 1 2 13 15
10785 }
10786
10787 # Create a (secure) tmp directory for tmp files.
10788
10789 {
10790 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10791 test -n "$tmp" && test -d "$tmp"
10792 } ||
10793 {
10794 tmp=./confstat$$-$RANDOM
10795 (umask 077 && mkdir $tmp)
10796 } ||
10797 {
10798 echo "$me: cannot create a temporary directory in ." >&2
10799 { (exit 1); exit 1; }
10800 }
10801
10802 _ACEOF
10803
10804 cat >>$CONFIG_STATUS <<_ACEOF
10805
10806 #
10807 # CONFIG_FILES section.
10808 #
10809
10810 # No need to generate the scripts if there are no CONFIG_FILES.
10811 # This happens for instance when ./config.status config.h
10812 if test -n "\$CONFIG_FILES"; then
10813 # Protect against being on the right side of a sed subst in config.status.
10814 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10815 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10816 s,@SHELL@,$SHELL,;t t
10817 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10818 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10819 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10820 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10821 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10822 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10823 s,@exec_prefix@,$exec_prefix,;t t
10824 s,@prefix@,$prefix,;t t
10825 s,@program_transform_name@,$program_transform_name,;t t
10826 s,@bindir@,$bindir,;t t
10827 s,@sbindir@,$sbindir,;t t
10828 s,@libexecdir@,$libexecdir,;t t
10829 s,@datadir@,$datadir,;t t
10830 s,@sysconfdir@,$sysconfdir,;t t
10831 s,@sharedstatedir@,$sharedstatedir,;t t
10832 s,@localstatedir@,$localstatedir,;t t
10833 s,@libdir@,$libdir,;t t
10834 s,@includedir@,$includedir,;t t
10835 s,@oldincludedir@,$oldincludedir,;t t
10836 s,@infodir@,$infodir,;t t
10837 s,@mandir@,$mandir,;t t
10838 s,@build_alias@,$build_alias,;t t
10839 s,@host_alias@,$host_alias,;t t
10840 s,@target_alias@,$target_alias,;t t
10841 s,@DEFS@,$DEFS,;t t
10842 s,@ECHO_C@,$ECHO_C,;t t
10843 s,@ECHO_N@,$ECHO_N,;t t
10844 s,@ECHO_T@,$ECHO_T,;t t
10845 s,@LIBS@,$LIBS,;t t
10846 s,@build@,$build,;t t
10847 s,@build_cpu@,$build_cpu,;t t
10848 s,@build_vendor@,$build_vendor,;t t
10849 s,@build_os@,$build_os,;t t
10850 s,@host@,$host,;t t
10851 s,@host_cpu@,$host_cpu,;t t
10852 s,@host_vendor@,$host_vendor,;t t
10853 s,@host_os@,$host_os,;t t
10854 s,@target@,$target,;t t
10855 s,@target_cpu@,$target_cpu,;t t
10856 s,@target_vendor@,$target_vendor,;t t
10857 s,@target_os@,$target_os,;t t
10858 s,@CC@,$CC,;t t
10859 s,@CFLAGS@,$CFLAGS,;t t
10860 s,@LDFLAGS@,$LDFLAGS,;t t
10861 s,@CPPFLAGS@,$CPPFLAGS,;t t
10862 s,@ac_ct_CC@,$ac_ct_CC,;t t
10863 s,@EXEEXT@,$EXEEXT,;t t
10864 s,@OBJEXT@,$OBJEXT,;t t
10865 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10866 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10867 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10868 s,@CYGPATH_W@,$CYGPATH_W,;t t
10869 s,@PACKAGE@,$PACKAGE,;t t
10870 s,@VERSION@,$VERSION,;t t
10871 s,@ACLOCAL@,$ACLOCAL,;t t
10872 s,@AUTOCONF@,$AUTOCONF,;t t
10873 s,@AUTOMAKE@,$AUTOMAKE,;t t
10874 s,@AUTOHEADER@,$AUTOHEADER,;t t
10875 s,@MAKEINFO@,$MAKEINFO,;t t
10876 s,@AMTAR@,$AMTAR,;t t
10877 s,@install_sh@,$install_sh,;t t
10878 s,@STRIP@,$STRIP,;t t
10879 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10880 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10881 s,@AWK@,$AWK,;t t
10882 s,@SET_MAKE@,$SET_MAKE,;t t
10883 s,@am__leading_dot@,$am__leading_dot,;t t
10884 s,@DEPDIR@,$DEPDIR,;t t
10885 s,@am__include@,$am__include,;t t
10886 s,@am__quote@,$am__quote,;t t
10887 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10888 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10889 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10890 s,@CCDEPMODE@,$CCDEPMODE,;t t
10891 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10892 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10893 s,@LN_S@,$LN_S,;t t
10894 s,@RANLIB@,$RANLIB,;t t
10895 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10896 s,@LIBTOOL@,$LIBTOOL,;t t
10897 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10898 s,@GDBINIT@,$GDBINIT,;t t
10899 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
10900 s,@extra_objects@,$extra_objects,;t t
10901 s,@target_cpu_type@,$target_cpu_type,;t t
10902 s,@obj_format@,$obj_format,;t t
10903 s,@te_file@,$te_file,;t t
10904 s,@install_tooldir@,$install_tooldir,;t t
10905 s,@atof@,$atof,;t t
10906 s,@BFDLIB@,$BFDLIB,;t t
10907 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
10908 s,@BFDVER_H@,$BFDVER_H,;t t
10909 s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
10910 s,@YACC@,$YACC,;t t
10911 s,@LEX@,$LEX,;t t
10912 s,@LEXLIB@,$LEXLIB,;t t
10913 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10914 s,@CPP@,$CPP,;t t
10915 s,@EGREP@,$EGREP,;t t
10916 s,@ALLOCA@,$ALLOCA,;t t
10917 s,@USE_NLS@,$USE_NLS,;t t
10918 s,@MSGFMT@,$MSGFMT,;t t
10919 s,@GMSGFMT@,$GMSGFMT,;t t
10920 s,@XGETTEXT@,$XGETTEXT,;t t
10921 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10922 s,@CATALOGS@,$CATALOGS,;t t
10923 s,@CATOBJEXT@,$CATOBJEXT,;t t
10924 s,@DATADIRNAME@,$DATADIRNAME,;t t
10925 s,@GMOFILES@,$GMOFILES,;t t
10926 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10927 s,@INTLDEPS@,$INTLDEPS,;t t
10928 s,@INTLLIBS@,$INTLLIBS,;t t
10929 s,@INTLOBJS@,$INTLOBJS,;t t
10930 s,@POFILES@,$POFILES,;t t
10931 s,@POSUB@,$POSUB,;t t
10932 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10933 s,@GT_NO@,$GT_NO,;t t
10934 s,@GT_YES@,$GT_YES,;t t
10935 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10936 s,@l@,$l,;t t
10937 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10938 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10939 s,@MAINT@,$MAINT,;t t
10940 s,@LIBM@,$LIBM,;t t
10941 s,@LIBOBJS@,$LIBOBJS,;t t
10942 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10943 CEOF
10944
10945 _ACEOF
10946
10947 cat >>$CONFIG_STATUS <<\_ACEOF
10948 # Split the substitutions into bite-sized pieces for seds with
10949 # small command number limits, like on Digital OSF/1 and HP-UX.
10950 ac_max_sed_lines=48
10951 ac_sed_frag=1 # Number of current file.
10952 ac_beg=1 # First line for current file.
10953 ac_end=$ac_max_sed_lines # Line after last line for current file.
10954 ac_more_lines=:
10955 ac_sed_cmds=
10956 while $ac_more_lines; do
10957 if test $ac_beg -gt 1; then
10958 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10959 else
10960 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10961 fi
10962 if test ! -s $tmp/subs.frag; then
10963 ac_more_lines=false
10964 else
10965 # The purpose of the label and of the branching condition is to
10966 # speed up the sed processing (if there are no `@' at all, there
10967 # is no need to browse any of the substitutions).
10968 # These are the two extra sed commands mentioned above.
10969 (echo ':t
10970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10971 if test -z "$ac_sed_cmds"; then
10972 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10973 else
10974 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10975 fi
10976 ac_sed_frag=`expr $ac_sed_frag + 1`
10977 ac_beg=$ac_end
10978 ac_end=`expr $ac_end + $ac_max_sed_lines`
10979 fi
10980 done
10981 if test -z "$ac_sed_cmds"; then
10982 ac_sed_cmds=cat
10983 fi
10984 fi # test -n "$CONFIG_FILES"
10985
10986 _ACEOF
10987 cat >>$CONFIG_STATUS <<\_ACEOF
10988 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10989 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10990 case $ac_file in
10991 - | *:- | *:-:* ) # input from stdin
10992 cat >$tmp/stdin
10993 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10994 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10995 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10996 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10997 * ) ac_file_in=$ac_file.in ;;
10998 esac
10999
11000 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11001 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11003 X"$ac_file" : 'X\(//\)[^/]' \| \
11004 X"$ac_file" : 'X\(//\)$' \| \
11005 X"$ac_file" : 'X\(/\)' \| \
11006 . : '\(.\)' 2>/dev/null ||
11007 echo X"$ac_file" |
11008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11010 /^X\(\/\/\)$/{ s//\1/; q; }
11011 /^X\(\/\).*/{ s//\1/; q; }
11012 s/.*/./; q'`
11013 { if $as_mkdir_p; then
11014 mkdir -p "$ac_dir"
11015 else
11016 as_dir="$ac_dir"
11017 as_dirs=
11018 while test ! -d "$as_dir"; do
11019 as_dirs="$as_dir $as_dirs"
11020 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11022 X"$as_dir" : 'X\(//\)[^/]' \| \
11023 X"$as_dir" : 'X\(//\)$' \| \
11024 X"$as_dir" : 'X\(/\)' \| \
11025 . : '\(.\)' 2>/dev/null ||
11026 echo X"$as_dir" |
11027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11029 /^X\(\/\/\)$/{ s//\1/; q; }
11030 /^X\(\/\).*/{ s//\1/; q; }
11031 s/.*/./; q'`
11032 done
11033 test ! -n "$as_dirs" || mkdir $as_dirs
11034 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11035 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11036 { (exit 1); exit 1; }; }; }
11037
11038 ac_builddir=.
11039
11040 if test "$ac_dir" != .; then
11041 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11042 # A "../" for each directory in $ac_dir_suffix.
11043 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11044 else
11045 ac_dir_suffix= ac_top_builddir=
11046 fi
11047
11048 case $srcdir in
11049 .) # No --srcdir option. We are building in place.
11050 ac_srcdir=.
11051 if test -z "$ac_top_builddir"; then
11052 ac_top_srcdir=.
11053 else
11054 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11055 fi ;;
11056 [\\/]* | ?:[\\/]* ) # Absolute path.
11057 ac_srcdir=$srcdir$ac_dir_suffix;
11058 ac_top_srcdir=$srcdir ;;
11059 *) # Relative path.
11060 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11061 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11062 esac
11063 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11064 # absolute.
11065 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11066 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11067 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11068 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11069
11070
11071 case $INSTALL in
11072 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11073 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11074 esac
11075
11076 if test x"$ac_file" != x-; then
11077 { echo "$as_me:$LINENO: creating $ac_file" >&5
11078 echo "$as_me: creating $ac_file" >&6;}
11079 rm -f "$ac_file"
11080 fi
11081 # Let's still pretend it is `configure' which instantiates (i.e., don't
11082 # use $as_me), people would be surprised to read:
11083 # /* config.h. Generated by config.status. */
11084 if test x"$ac_file" = x-; then
11085 configure_input=
11086 else
11087 configure_input="$ac_file. "
11088 fi
11089 configure_input=$configure_input"Generated from `echo $ac_file_in |
11090 sed 's,.*/,,'` by configure."
11091
11092 # First look for the input files in the build tree, otherwise in the
11093 # src tree.
11094 ac_file_inputs=`IFS=:
11095 for f in $ac_file_in; do
11096 case $f in
11097 -) echo $tmp/stdin ;;
11098 [\\/$]*)
11099 # Absolute (can't be DOS-style, as IFS=:)
11100 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11101 echo "$as_me: error: cannot find input file: $f" >&2;}
11102 { (exit 1); exit 1; }; }
11103 echo $f;;
11104 *) # Relative
11105 if test -f "$f"; then
11106 # Build tree
11107 echo $f
11108 elif test -f "$srcdir/$f"; then
11109 # Source tree
11110 echo $srcdir/$f
11111 else
11112 # /dev/null tree
11113 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11114 echo "$as_me: error: cannot find input file: $f" >&2;}
11115 { (exit 1); exit 1; }; }
11116 fi;;
11117 esac
11118 done` || { (exit 1); exit 1; }
11119 _ACEOF
11120 cat >>$CONFIG_STATUS <<_ACEOF
11121 sed "$ac_vpsub
11122 $extrasub
11123 _ACEOF
11124 cat >>$CONFIG_STATUS <<\_ACEOF
11125 :t
11126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11127 s,@configure_input@,$configure_input,;t t
11128 s,@srcdir@,$ac_srcdir,;t t
11129 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11130 s,@top_srcdir@,$ac_top_srcdir,;t t
11131 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11132 s,@builddir@,$ac_builddir,;t t
11133 s,@abs_builddir@,$ac_abs_builddir,;t t
11134 s,@top_builddir@,$ac_top_builddir,;t t
11135 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11136 s,@INSTALL@,$ac_INSTALL,;t t
11137 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11138 rm -f $tmp/stdin
11139 if test x"$ac_file" != x-; then
11140 mv $tmp/out $ac_file
11141 else
11142 cat $tmp/out
11143 rm -f $tmp/out
11144 fi
11145
11146 done
11147 _ACEOF
11148 cat >>$CONFIG_STATUS <<\_ACEOF
11149
11150 #
11151 # CONFIG_HEADER section.
11152 #
11153
11154 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11155 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11156 #
11157 # ac_d sets the value in "#define NAME VALUE" lines.
11158 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11159 ac_dB='[ ].*$,\1#\2'
11160 ac_dC=' '
11161 ac_dD=',;t'
11162 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11163 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11164 ac_uB='$,\1#\2define\3'
11165 ac_uC=' '
11166 ac_uD=',;t'
11167
11168 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11169 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11170 case $ac_file in
11171 - | *:- | *:-:* ) # input from stdin
11172 cat >$tmp/stdin
11173 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11174 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11175 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11176 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11177 * ) ac_file_in=$ac_file.in ;;
11178 esac
11179
11180 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11181 echo "$as_me: creating $ac_file" >&6;}
11182
11183 # First look for the input files in the build tree, otherwise in the
11184 # src tree.
11185 ac_file_inputs=`IFS=:
11186 for f in $ac_file_in; do
11187 case $f in
11188 -) echo $tmp/stdin ;;
11189 [\\/$]*)
11190 # Absolute (can't be DOS-style, as IFS=:)
11191 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11192 echo "$as_me: error: cannot find input file: $f" >&2;}
11193 { (exit 1); exit 1; }; }
11194 echo $f;;
11195 *) # Relative
11196 if test -f "$f"; then
11197 # Build tree
11198 echo $f
11199 elif test -f "$srcdir/$f"; then
11200 # Source tree
11201 echo $srcdir/$f
11202 else
11203 # /dev/null tree
11204 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11205 echo "$as_me: error: cannot find input file: $f" >&2;}
11206 { (exit 1); exit 1; }; }
11207 fi;;
11208 esac
11209 done` || { (exit 1); exit 1; }
11210 # Remove the trailing spaces.
11211 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11212
11213 _ACEOF
11214
11215 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11216 # `conftest.undefs', that substitutes the proper values into
11217 # config.h.in to produce config.h. The first handles `#define'
11218 # templates, and the second `#undef' templates.
11219 # And first: Protect against being on the right side of a sed subst in
11220 # config.status. Protect against being in an unquoted here document
11221 # in config.status.
11222 rm -f conftest.defines conftest.undefs
11223 # Using a here document instead of a string reduces the quoting nightmare.
11224 # Putting comments in sed scripts is not portable.
11225 #
11226 # `end' is used to avoid that the second main sed command (meant for
11227 # 0-ary CPP macros) applies to n-ary macro definitions.
11228 # See the Autoconf documentation for `clear'.
11229 cat >confdef2sed.sed <<\_ACEOF
11230 s/[\\&,]/\\&/g
11231 s,[\\$`],\\&,g
11232 t clear
11233 : clear
11234 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11235 t end
11236 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11237 : end
11238 _ACEOF
11239 # If some macros were called several times there might be several times
11240 # the same #defines, which is useless. Nevertheless, we may not want to
11241 # sort them, since we want the *last* AC-DEFINE to be honored.
11242 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11243 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11244 rm -f confdef2sed.sed
11245
11246 # This sed command replaces #undef with comments. This is necessary, for
11247 # example, in the case of _POSIX_SOURCE, which is predefined and required
11248 # on some systems where configure will not decide to define it.
11249 cat >>conftest.undefs <<\_ACEOF
11250 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11251 _ACEOF
11252
11253 # Break up conftest.defines because some shells have a limit on the size
11254 # of here documents, and old seds have small limits too (100 cmds).
11255 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11256 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11257 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11258 echo ' :' >>$CONFIG_STATUS
11259 rm -f conftest.tail
11260 while grep . conftest.defines >/dev/null
11261 do
11262 # Write a limited-size here document to $tmp/defines.sed.
11263 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11264 # Speed up: don't consider the non `#define' lines.
11265 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11266 # Work around the forget-to-reset-the-flag bug.
11267 echo 't clr' >>$CONFIG_STATUS
11268 echo ': clr' >>$CONFIG_STATUS
11269 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11270 echo 'CEOF
11271 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11272 rm -f $tmp/in
11273 mv $tmp/out $tmp/in
11274 ' >>$CONFIG_STATUS
11275 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11276 rm -f conftest.defines
11277 mv conftest.tail conftest.defines
11278 done
11279 rm -f conftest.defines
11280 echo ' fi # grep' >>$CONFIG_STATUS
11281 echo >>$CONFIG_STATUS
11282
11283 # Break up conftest.undefs because some shells have a limit on the size
11284 # of here documents, and old seds have small limits too (100 cmds).
11285 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11286 rm -f conftest.tail
11287 while grep . conftest.undefs >/dev/null
11288 do
11289 # Write a limited-size here document to $tmp/undefs.sed.
11290 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11291 # Speed up: don't consider the non `#undef'
11292 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11293 # Work around the forget-to-reset-the-flag bug.
11294 echo 't clr' >>$CONFIG_STATUS
11295 echo ': clr' >>$CONFIG_STATUS
11296 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11297 echo 'CEOF
11298 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11299 rm -f $tmp/in
11300 mv $tmp/out $tmp/in
11301 ' >>$CONFIG_STATUS
11302 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11303 rm -f conftest.undefs
11304 mv conftest.tail conftest.undefs
11305 done
11306 rm -f conftest.undefs
11307
11308 cat >>$CONFIG_STATUS <<\_ACEOF
11309 # Let's still pretend it is `configure' which instantiates (i.e., don't
11310 # use $as_me), people would be surprised to read:
11311 # /* config.h. Generated by config.status. */
11312 if test x"$ac_file" = x-; then
11313 echo "/* Generated by configure. */" >$tmp/config.h
11314 else
11315 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11316 fi
11317 cat $tmp/in >>$tmp/config.h
11318 rm -f $tmp/in
11319 if test x"$ac_file" != x-; then
11320 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11321 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11322 echo "$as_me: $ac_file is unchanged" >&6;}
11323 else
11324 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11325 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11326 X"$ac_file" : 'X\(//\)[^/]' \| \
11327 X"$ac_file" : 'X\(//\)$' \| \
11328 X"$ac_file" : 'X\(/\)' \| \
11329 . : '\(.\)' 2>/dev/null ||
11330 echo X"$ac_file" |
11331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11332 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11333 /^X\(\/\/\)$/{ s//\1/; q; }
11334 /^X\(\/\).*/{ s//\1/; q; }
11335 s/.*/./; q'`
11336 { if $as_mkdir_p; then
11337 mkdir -p "$ac_dir"
11338 else
11339 as_dir="$ac_dir"
11340 as_dirs=
11341 while test ! -d "$as_dir"; do
11342 as_dirs="$as_dir $as_dirs"
11343 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11345 X"$as_dir" : 'X\(//\)[^/]' \| \
11346 X"$as_dir" : 'X\(//\)$' \| \
11347 X"$as_dir" : 'X\(/\)' \| \
11348 . : '\(.\)' 2>/dev/null ||
11349 echo X"$as_dir" |
11350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11351 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11352 /^X\(\/\/\)$/{ s//\1/; q; }
11353 /^X\(\/\).*/{ s//\1/; q; }
11354 s/.*/./; q'`
11355 done
11356 test ! -n "$as_dirs" || mkdir $as_dirs
11357 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11358 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11359 { (exit 1); exit 1; }; }; }
11360
11361 rm -f $ac_file
11362 mv $tmp/config.h $ac_file
11363 fi
11364 else
11365 cat $tmp/config.h
11366 rm -f $tmp/config.h
11367 fi
11368 # Compute $ac_file's index in $config_headers.
11369 _am_stamp_count=1
11370 for _am_header in $config_headers :; do
11371 case $_am_header in
11372 $ac_file | $ac_file:* )
11373 break ;;
11374 * )
11375 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11376 esac
11377 done
11378 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11379 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11380 X$ac_file : 'X\(//\)[^/]' \| \
11381 X$ac_file : 'X\(//\)$' \| \
11382 X$ac_file : 'X\(/\)' \| \
11383 . : '\(.\)' 2>/dev/null ||
11384 echo X$ac_file |
11385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11386 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11387 /^X\(\/\/\)$/{ s//\1/; q; }
11388 /^X\(\/\).*/{ s//\1/; q; }
11389 s/.*/./; q'`/stamp-h$_am_stamp_count
11390 done
11391 _ACEOF
11392 cat >>$CONFIG_STATUS <<\_ACEOF
11393
11394 #
11395 # CONFIG_COMMANDS section.
11396 #
11397 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11398 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11399 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11400 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11401 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11402 X"$ac_dest" : 'X\(//\)[^/]' \| \
11403 X"$ac_dest" : 'X\(//\)$' \| \
11404 X"$ac_dest" : 'X\(/\)' \| \
11405 . : '\(.\)' 2>/dev/null ||
11406 echo X"$ac_dest" |
11407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11409 /^X\(\/\/\)$/{ s//\1/; q; }
11410 /^X\(\/\).*/{ s//\1/; q; }
11411 s/.*/./; q'`
11412 ac_builddir=.
11413
11414 if test "$ac_dir" != .; then
11415 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11416 # A "../" for each directory in $ac_dir_suffix.
11417 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11418 else
11419 ac_dir_suffix= ac_top_builddir=
11420 fi
11421
11422 case $srcdir in
11423 .) # No --srcdir option. We are building in place.
11424 ac_srcdir=.
11425 if test -z "$ac_top_builddir"; then
11426 ac_top_srcdir=.
11427 else
11428 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11429 fi ;;
11430 [\\/]* | ?:[\\/]* ) # Absolute path.
11431 ac_srcdir=$srcdir$ac_dir_suffix;
11432 ac_top_srcdir=$srcdir ;;
11433 *) # Relative path.
11434 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11435 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11436 esac
11437 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11438 # absolute.
11439 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11440 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11441 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11442 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11443
11444
11445 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11446 echo "$as_me: executing $ac_dest commands" >&6;}
11447 case $ac_dest in
11448 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11449 # Strip MF so we end up with the name of the file.
11450 mf=`echo "$mf" | sed -e 's/:.*$//'`
11451 # Check whether this is an Automake generated Makefile or not.
11452 # We used to match only the files named `Makefile.in', but
11453 # some people rename them; so instead we look at the file content.
11454 # Grep'ing the first line is not enough: some people post-process
11455 # each Makefile.in and add a new line on top of each file to say so.
11456 # So let's grep whole file.
11457 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11458 dirpart=`(dirname "$mf") 2>/dev/null ||
11459 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11460 X"$mf" : 'X\(//\)[^/]' \| \
11461 X"$mf" : 'X\(//\)$' \| \
11462 X"$mf" : 'X\(/\)' \| \
11463 . : '\(.\)' 2>/dev/null ||
11464 echo X"$mf" |
11465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11467 /^X\(\/\/\)$/{ s//\1/; q; }
11468 /^X\(\/\).*/{ s//\1/; q; }
11469 s/.*/./; q'`
11470 else
11471 continue
11472 fi
11473 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11474 # Extract the definition of DEP_FILES from the Makefile without
11475 # running `make'.
11476 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11477 test -z "$DEPDIR" && continue
11478 # When using ansi2knr, U may be empty or an underscore; expand it
11479 U=`sed -n -e '/^U = / s///p' < "$mf"`
11480 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11481 # We invoke sed twice because it is the simplest approach to
11482 # changing $(DEPDIR) to its actual value in the expansion.
11483 for file in `sed -n -e '
11484 /^DEP_FILES = .*\\\\$/ {
11485 s/^DEP_FILES = //
11486 :loop
11487 s/\\\\$//
11488 p
11489 n
11490 /\\\\$/ b loop
11491 p
11492 }
11493 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11494 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11495 # Make sure the directory exists.
11496 test -f "$dirpart/$file" && continue
11497 fdir=`(dirname "$file") 2>/dev/null ||
11498 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11499 X"$file" : 'X\(//\)[^/]' \| \
11500 X"$file" : 'X\(//\)$' \| \
11501 X"$file" : 'X\(/\)' \| \
11502 . : '\(.\)' 2>/dev/null ||
11503 echo X"$file" |
11504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11505 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11506 /^X\(\/\/\)$/{ s//\1/; q; }
11507 /^X\(\/\).*/{ s//\1/; q; }
11508 s/.*/./; q'`
11509 { if $as_mkdir_p; then
11510 mkdir -p $dirpart/$fdir
11511 else
11512 as_dir=$dirpart/$fdir
11513 as_dirs=
11514 while test ! -d "$as_dir"; do
11515 as_dirs="$as_dir $as_dirs"
11516 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11518 X"$as_dir" : 'X\(//\)[^/]' \| \
11519 X"$as_dir" : 'X\(//\)$' \| \
11520 X"$as_dir" : 'X\(/\)' \| \
11521 . : '\(.\)' 2>/dev/null ||
11522 echo X"$as_dir" |
11523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11525 /^X\(\/\/\)$/{ s//\1/; q; }
11526 /^X\(\/\).*/{ s//\1/; q; }
11527 s/.*/./; q'`
11528 done
11529 test ! -n "$as_dirs" || mkdir $as_dirs
11530 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11531 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11532 { (exit 1); exit 1; }; }; }
11533
11534 # echo "creating $dirpart/$file"
11535 echo '# dummy' > "$dirpart/$file"
11536 done
11537 done
11538 ;;
11539 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
11540 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
11541 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
11542 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
11543 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
11544 if test "x$cgen_cpu_prefix" != x ; then
11545 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
11546 fi
11547
11548 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11549 esac
11550 done
11551 _ACEOF
11552
11553 cat >>$CONFIG_STATUS <<\_ACEOF
11554
11555 { (exit 0); exit 0; }
11556 _ACEOF
11557 chmod +x $CONFIG_STATUS
11558 ac_clean_files=$ac_clean_files_save
11559
11560
11561 # configure is writing to config.log, and then calls config.status.
11562 # config.status does its own redirection, appending to config.log.
11563 # Unfortunately, on DOS this fails, as config.log is still kept open
11564 # by configure, so config.status won't be able to write to it; its
11565 # output is simply discarded. So we exec the FD to /dev/null,
11566 # effectively closing config.log, so it can be properly (re)opened and
11567 # appended to by config.status. When coming back to configure, we
11568 # need to make the FD available again.
11569 if test "$no_create" != yes; then
11570 ac_cs_success=:
11571 ac_config_status_args=
11572 test "$silent" = yes &&
11573 ac_config_status_args="$ac_config_status_args --quiet"
11574 exec 5>/dev/null
11575 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11576 exec 5>>config.log
11577 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11578 # would make configure fail if this is the last instruction.
11579 $ac_cs_success || { (exit 1); exit 1; }
11580 fi
11581