2002-05-01 Fred Fish <fnf@redhat.com>
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
9b2b7d69 3# Generated by GNU Autoconf 2.53.
252b5132 4#
9b2b7d69
MM
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
252b5132
RH
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
9b2b7d69
MM
10if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12else
13 as_expr=false
14fi
15
16
17## --------------------- ##
18## M4sh Initialization. ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27fi
28
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33else
34 as_unset=false
35fi
36
37(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63# Name of the executable.
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147done
148;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191else
192 as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
205 fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208else
209 as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS=" $as_nl"
227
228# CDPATH.
229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
252b5132 242ac_default_prefix=/usr/local
9b2b7d69
MM
243cross_compiling=no
244subdirs=
245MFLAGS=
246MAKEFLAGS=
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249# Maximum number of lines to put in a shell here document.
250# This variable seems obsolete. It should probably be removed, and
251# only ac_max_sed_lines should be used.
252: ${ac_max_here_lines=38}
253
254# Identity of this package.
255PACKAGE_NAME=
256PACKAGE_TARNAME=
257PACKAGE_VERSION=
258PACKAGE_STRING=
259PACKAGE_BUGREPORT=
260
261ac_unique_file="as.h"
262# Factoring default headers for most tests.
263ac_includes_default="\
264#include <stdio.h>
265#if HAVE_SYS_TYPES_H
266# include <sys/types.h>
267#endif
268#if HAVE_SYS_STAT_H
269# include <sys/stat.h>
270#endif
271#if STDC_HEADERS
272# include <stdlib.h>
273# include <stddef.h>
274#else
275# if HAVE_STDLIB_H
276# include <stdlib.h>
277# endif
278#endif
279#if HAVE_STRING_H
280# if !STDC_HEADERS && HAVE_MEMORY_H
281# include <memory.h>
282# endif
283# include <string.h>
284#endif
285#if HAVE_STRINGS_H
286# include <strings.h>
287#endif
288#if HAVE_INTTYPES_H
289# include <inttypes.h>
290#else
291# if HAVE_STDINT_H
292# include <stdint.h>
293# endif
294#endif
295#if HAVE_UNISTD_H
296# include <unistd.h>
297#endif"
298
252b5132
RH
299
300# Initialize some variables set by options.
9b2b7d69
MM
301ac_init_help=
302ac_init_version=false
252b5132
RH
303# The variables have the same names as the options, with
304# dashes changed to underlines.
9b2b7d69 305cache_file=/dev/null
252b5132 306exec_prefix=NONE
252b5132 307no_create=
252b5132
RH
308no_recursion=
309prefix=NONE
310program_prefix=NONE
311program_suffix=NONE
312program_transform_name=s,x,x,
313silent=
314site=
315srcdir=
252b5132
RH
316verbose=
317x_includes=NONE
318x_libraries=NONE
9b2b7d69
MM
319
320# Installation directory options.
321# These are left unexpanded so users can "make install exec_prefix=/foo"
322# and all the variables that are supposed to be based on exec_prefix
323# by default will actually change.
324# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
337
252b5132
RH
338ac_prev=
339for ac_option
340do
252b5132
RH
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
346 fi
347
9b2b7d69 348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
9b2b7d69 352 case $ac_option in
252b5132
RH
353
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
9b2b7d69 357 bindir=$ac_optarg ;;
252b5132
RH
358
359 -build | --build | --buil | --bui | --bu)
9b2b7d69 360 ac_prev=build_alias ;;
252b5132 361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
9b2b7d69 362 build_alias=$ac_optarg ;;
252b5132
RH
363
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9b2b7d69
MM
369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
252b5132
RH
373
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
9b2b7d69 378 datadir=$ac_optarg ;;
252b5132
RH
379
380 -disable-* | --disable-*)
9b2b7d69 381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 382 # Reject names that are not valid shell variable names.
9b2b7d69
MM
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
252b5132
RH
388
389 -enable-* | --enable-*)
9b2b7d69 390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 391 # Reject names that are not valid shell variable names.
9b2b7d69
MM
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
398 *) ac_optarg=yes ;;
399 esac
9b2b7d69 400 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
401
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
9b2b7d69 409 exec_prefix=$ac_optarg ;;
252b5132
RH
410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
9b2b7d69
MM
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
252b5132
RH
421
422 -host | --host | --hos | --ho)
9b2b7d69 423 ac_prev=host_alias ;;
252b5132 424 -host=* | --host=* | --hos=* | --ho=*)
9b2b7d69 425 host_alias=$ac_optarg ;;
252b5132
RH
426
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
9b2b7d69 432 includedir=$ac_optarg ;;
252b5132
RH
433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9b2b7d69 437 infodir=$ac_optarg ;;
252b5132
RH
438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
9b2b7d69 442 libdir=$ac_optarg ;;
252b5132
RH
443
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
9b2b7d69 449 libexecdir=$ac_optarg ;;
252b5132
RH
450
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
9b2b7d69 458 localstatedir=$ac_optarg ;;
252b5132
RH
459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9b2b7d69 463 mandir=$ac_optarg ;;
252b5132
RH
464
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
468
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9b2b7d69 470 | --no-cr | --no-c | -n)
252b5132
RH
471 no_create=yes ;;
472
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
476
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9b2b7d69 484 oldincludedir=$ac_optarg ;;
252b5132
RH
485
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9b2b7d69 489 prefix=$ac_optarg ;;
252b5132
RH
490
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9b2b7d69 496 program_prefix=$ac_optarg ;;
252b5132
RH
497
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
9b2b7d69 503 program_suffix=$ac_optarg ;;
252b5132
RH
504
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
9b2b7d69 520 program_transform_name=$ac_optarg ;;
252b5132
RH
521
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
525
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
9b2b7d69 530 sbindir=$ac_optarg ;;
252b5132
RH
531
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
9b2b7d69 541 sharedstatedir=$ac_optarg ;;
252b5132
RH
542
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
9b2b7d69 546 site=$ac_optarg ;;
252b5132
RH
547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9b2b7d69 551 srcdir=$ac_optarg ;;
252b5132
RH
552
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
9b2b7d69 558 sysconfdir=$ac_optarg ;;
252b5132
RH
559
560 -target | --target | --targe | --targ | --tar | --ta | --t)
9b2b7d69 561 ac_prev=target_alias ;;
252b5132 562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
9b2b7d69 563 target_alias=$ac_optarg ;;
252b5132
RH
564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
9b2b7d69
MM
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
252b5132
RH
570
571 -with-* | --with-*)
9b2b7d69 572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 573 # Reject names that are not valid shell variable names.
9b2b7d69
MM
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
252b5132 577 ac_package=`echo $ac_package| sed 's/-/_/g'`
9b2b7d69
MM
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
580 *) ac_optarg=yes ;;
581 esac
9b2b7d69 582 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
583
584 -without-* | --without-*)
9b2b7d69 585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 586 # Reject names that are not valid shell variable names.
9b2b7d69
MM
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
252b5132
RH
592
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
596
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
9b2b7d69 602 x_includes=$ac_optarg ;;
252b5132
RH
603
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
9b2b7d69 609 x_libraries=$ac_optarg ;;
252b5132 610
9b2b7d69
MM
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
252b5132
RH
614 ;;
615
9b2b7d69
MM
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
625
252b5132 626 *)
9b2b7d69
MM
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
632 ;;
633
634 esac
635done
636
637if test -n "$ac_prev"; then
9b2b7d69
MM
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
252b5132 641fi
d6d788bd 642
9b2b7d69
MM
643# Be sure to have absolute paths.
644for ac_var in exec_prefix prefix
645do
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652done
252b5132 653
9b2b7d69
MM
654# Be sure to have absolute paths.
655for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 657do
9b2b7d69
MM
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
252b5132
RH
663 esac
664done
665
9b2b7d69
MM
666# There might be people who depend on the old broken behavior: `$host'
667# used to hold the argument of --host etc.
668# FIXME: To remove some day.
669build=$build_alias
670host=$host_alias
671target=$target_alias
672
673# FIXME: To remove some day.
674if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
681 fi
682fi
252b5132 683
9b2b7d69
MM
684ac_tool_prefix=
685test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687test "$silent" = yes && exec 6>/dev/null
252b5132 688
252b5132
RH
689
690# Find the source files, if location was not specified.
691if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
9b2b7d69
MM
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
252b5132
RH
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710else
711 ac_srcdir_defaulted=no
712fi
713if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
9b2b7d69
MM
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
252b5132 717 else
9b2b7d69
MM
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
252b5132
RH
720 fi
721fi
9b2b7d69
MM
722srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723ac_env_build_alias_set=${build_alias+set}
724ac_env_build_alias_value=$build_alias
725ac_cv_env_build_alias_set=${build_alias+set}
726ac_cv_env_build_alias_value=$build_alias
727ac_env_host_alias_set=${host_alias+set}
728ac_env_host_alias_value=$host_alias
729ac_cv_env_host_alias_set=${host_alias+set}
730ac_cv_env_host_alias_value=$host_alias
731ac_env_target_alias_set=${target_alias+set}
732ac_env_target_alias_value=$target_alias
733ac_cv_env_target_alias_set=${target_alias+set}
734ac_cv_env_target_alias_value=$target_alias
735ac_env_CC_set=${CC+set}
736ac_env_CC_value=$CC
737ac_cv_env_CC_set=${CC+set}
738ac_cv_env_CC_value=$CC
739ac_env_CFLAGS_set=${CFLAGS+set}
740ac_env_CFLAGS_value=$CFLAGS
741ac_cv_env_CFLAGS_set=${CFLAGS+set}
742ac_cv_env_CFLAGS_value=$CFLAGS
743ac_env_LDFLAGS_set=${LDFLAGS+set}
744ac_env_LDFLAGS_value=$LDFLAGS
745ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746ac_cv_env_LDFLAGS_value=$LDFLAGS
747ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748ac_env_CPPFLAGS_value=$CPPFLAGS
749ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751ac_env_CPP_set=${CPP+set}
752ac_env_CPP_value=$CPP
753ac_cv_env_CPP_set=${CPP+set}
754ac_cv_env_CPP_value=$CPP
252b5132 755
9b2b7d69
MM
756#
757# Report the --help message.
758#
759if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763\`configure' configures this package to adapt to many kinds of systems.
252b5132 764
9b2b7d69 765Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 766
9b2b7d69
MM
767To assign environment variables (e.g., CC, CFLAGS...), specify them as
768VAR=VALUE. See below for descriptions of some of the useful variables.
d6d788bd 769
9b2b7d69 770Defaults for the options are specified in brackets.
d6d788bd 771
9b2b7d69
MM
772Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
782
783_ACEOF
784
785 cat <<_ACEOF
786Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
d6d788bd 791
9b2b7d69
MM
792By default, \`make install' will install all the files in
793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795for instance \`--prefix=\$HOME'.
796
797For better control, use the options below.
798
799Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812_ACEOF
813
814 cat <<\_ACEOF
815
816Program names:
817 --program-prefix=PREFIX prepend PREFIX to installed program names
818 --program-suffix=SUFFIX append SUFFIX to installed program names
819 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
820
821System types:
822 --build=BUILD configure for building on BUILD [guessed]
823 --host=HOST cross-compile to build programs to run on HOST [BUILD]
824 --target=TARGET configure for building compilers for TARGET [HOST]
825_ACEOF
d6d788bd 826fi
9b2b7d69
MM
827
828if test -n "$ac_init_help"; then
829
830 cat <<\_ACEOF
831
832Optional Features:
833 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
834 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
835 --enable-shared=PKGS build shared libraries default=yes
836 --enable-static=PKGS build static libraries default=yes
837 --enable-fast-install=PKGS optimize for fast installation default=yes
838 --disable-libtool-lock avoid locking (might break parallel builds)
839 --enable-bfd-assembler use BFD back end for writing object files
840 targets alternative target configurations besides the primary
841 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
842 --enable-build-warnings Enable build-time compiler warnings if gcc is used
843 --disable-nls do not use Native Language Support
844 --enable-maintainer-mode enable make rules and dependencies not useful
845 (and sometimes confusing) to the casual installer
846
847Optional Packages:
848 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
849 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
850 --with-gnu-ld assume the C compiler uses GNU ld default=no
851 --with-pic try to use only PIC/non-PIC objects default=use both
852 --with-included-gettext use the GNU gettext library included here
853
854Some influential environment variables:
855 CC C compiler command
856 CFLAGS C compiler flags
857 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
858 nonstandard directory <lib dir>
859 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
860 headers in a nonstandard directory <include dir>
861 CPP C preprocessor
862
863Use these variables to override the choices made by `configure' or to help
864it to find libraries and programs with nonstandard names/locations.
865
866_ACEOF
d6d788bd
L
867fi
868
9b2b7d69
MM
869if test "$ac_init_help" = "recursive"; then
870 # If there are subdirs, report their specific --help.
871 ac_popdir=`pwd`
872 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
873 test -d $ac_dir || continue
874 ac_builddir=.
d6d788bd 875
9b2b7d69
MM
876if test "$ac_dir" != .; then
877 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
878 # A "../" for each directory in $ac_dir_suffix.
879 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
ac48eca1 880else
9b2b7d69 881 ac_dir_suffix= ac_top_builddir=
ac48eca1 882fi
9b2b7d69
MM
883
884case $srcdir in
885 .) # No --srcdir option. We are building in place.
886 ac_srcdir=.
887 if test -z "$ac_top_builddir"; then
888 ac_top_srcdir=.
889 else
890 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
891 fi ;;
892 [\\/]* | ?:[\\/]* ) # Absolute path.
893 ac_srcdir=$srcdir$ac_dir_suffix;
894 ac_top_srcdir=$srcdir ;;
895 *) # Relative path.
896 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
897 ac_top_srcdir=$ac_top_builddir$srcdir ;;
898esac
899# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
900# absolute.
901ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
902ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
903ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
904ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
905
906 cd $ac_dir
907 # Check for guested configure; otherwise get Cygnus style configure.
908 if test -f $ac_srcdir/configure.gnu; then
909 echo
910 $SHELL $ac_srcdir/configure.gnu --help=recursive
911 elif test -f $ac_srcdir/configure; then
912 echo
913 $SHELL $ac_srcdir/configure --help=recursive
914 elif test -f $ac_srcdir/configure.ac ||
915 test -f $ac_srcdir/configure.in; then
916 echo
917 $ac_configure --help
918 else
919 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
920 fi
921 cd $ac_popdir
922 done
d6d788bd
L
923fi
924
9b2b7d69
MM
925test -n "$ac_init_help" && exit 0
926if $ac_init_version; then
927 cat <<\_ACEOF
d6d788bd 928
9b2b7d69
MM
929Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
930Free Software Foundation, Inc.
931This configure script is free software; the Free Software Foundation
932gives unlimited permission to copy, distribute and modify it.
933_ACEOF
934 exit 0
935fi
936exec 5>config.log
937cat >&5 <<_ACEOF
938This file contains any messages produced by compilers while
939running configure, to aid debugging if configure makes a mistake.
252b5132 940
9b2b7d69
MM
941It was created by $as_me, which was
942generated by GNU Autoconf 2.53. Invocation command line was
943
944 $ $0 $@
945
946_ACEOF
947{
948cat <<_ASUNAME
949## --------- ##
950## Platform. ##
951## --------- ##
952
953hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
954uname -m = `(uname -m) 2>/dev/null || echo unknown`
955uname -r = `(uname -r) 2>/dev/null || echo unknown`
956uname -s = `(uname -s) 2>/dev/null || echo unknown`
957uname -v = `(uname -v) 2>/dev/null || echo unknown`
958
959/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
960/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
961
962/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
963/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
964/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
965hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
966/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
967/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
968/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
969
970_ASUNAME
971
972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
973for as_dir in $PATH
974do
975 IFS=$as_save_IFS
976 test -z "$as_dir" && as_dir=.
977 echo "PATH: $as_dir"
252b5132 978done
252b5132 979
9b2b7d69 980} >&5
d6d788bd 981
9b2b7d69 982cat >&5 <<_ACEOF
252b5132 983
d6d788bd 984
9b2b7d69
MM
985## ----------- ##
986## Core tests. ##
987## ----------- ##
d6d788bd 988
9b2b7d69 989_ACEOF
d6d788bd 990
d6d788bd 991
9b2b7d69
MM
992# Keep a trace of the command line.
993# Strip out --no-create and --no-recursion so they do not pile up.
994# Also quote any args containing shell meta-characters.
995ac_configure_args=
996ac_sep=
997for ac_arg
998do
999 case $ac_arg in
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n ) continue ;;
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 continue ;;
1005 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1006 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1007 esac
1008 case " $ac_configure_args " in
1009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1010 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1011 ac_sep=" " ;;
1012 esac
1013 # Get rid of the leading space.
1014done
d6d788bd 1015
9b2b7d69
MM
1016# When interrupted or exit'd, cleanup temporary files, and complete
1017# config.log. We remove comments because anyway the quotes in there
1018# would cause problems or look ugly.
1019# WARNING: Be sure not to use single quotes in there, as some shells,
1020# such as our DU 5.0 friend, will then `close' the trap.
1021trap 'exit_status=$?
1022 # Save into config.log some information that might help in debugging.
1023 {
1024 echo
1025 cat <<\_ASBOX
1026## ---------------- ##
1027## Cache variables. ##
1028## ---------------- ##
1029_ASBOX
1030 echo
1031 # The following way of writing the cache mishandles newlines in values,
1032{
1033 (set) 2>&1 |
1034 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1035 *ac_space=\ *)
1036 sed -n \
1037 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1039 ;;
1040 *)
1041 sed -n \
1042 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1043 ;;
1044 esac;
1045}
1046 echo
1047 if test -s confdefs.h; then
1048 cat <<\_ASBOX
1049## ----------- ##
1050## confdefs.h. ##
1051## ----------- ##
1052_ASBOX
1053 echo
1054 sed "/^$/d" confdefs.h
1055 echo
1056 fi
1057 test "$ac_signal" != 0 &&
1058 echo "$as_me: caught signal $ac_signal"
1059 echo "$as_me: exit $exit_status"
1060 } >&5
1061 rm -f core core.* *.core &&
1062 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1063 exit $exit_status
1064 ' 0
1065for ac_signal in 1 2 13 15; do
1066 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1067done
1068ac_signal=0
d6d788bd 1069
9b2b7d69
MM
1070# confdefs.h avoids OS command line length limits that DEFS can exceed.
1071rm -rf conftest* confdefs.h
1072# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1073echo >confdefs.h
d6d788bd 1074
9b2b7d69 1075# Predefined preprocessor variables.
d6d788bd 1076
9b2b7d69
MM
1077cat >>confdefs.h <<_ACEOF
1078#define PACKAGE_NAME "$PACKAGE_NAME"
1079_ACEOF
d6d788bd 1080
9b2b7d69
MM
1081
1082cat >>confdefs.h <<_ACEOF
1083#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1084_ACEOF
1085
1086
1087cat >>confdefs.h <<_ACEOF
1088#define PACKAGE_VERSION "$PACKAGE_VERSION"
1089_ACEOF
1090
1091
1092cat >>confdefs.h <<_ACEOF
1093#define PACKAGE_STRING "$PACKAGE_STRING"
1094_ACEOF
1095
1096
1097cat >>confdefs.h <<_ACEOF
1098#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1099_ACEOF
1100
1101
1102# Let the site file select an alternate cache file if it wants to.
1103# Prefer explicitly selected file to automatically selected ones.
1104if test -z "$CONFIG_SITE"; then
1105 if test "x$prefix" != xNONE; then
1106 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1107 else
1108 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1109 fi
3b16e843 1110fi
9b2b7d69
MM
1111for ac_site_file in $CONFIG_SITE; do
1112 if test -r "$ac_site_file"; then
1113 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1114echo "$as_me: loading site script $ac_site_file" >&6;}
1115 sed 's/^/| /' "$ac_site_file" >&5
1116 . "$ac_site_file"
1117 fi
1118done
1119
1120if test -r "$cache_file"; then
1121 # Some versions of bash will fail to source /dev/null (special
1122 # files actually), so we avoid doing that.
1123 if test -f "$cache_file"; then
1124 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1125echo "$as_me: loading cache $cache_file" >&6;}
1126 case $cache_file in
1127 [\\/]* | ?:[\\/]* ) . $cache_file;;
1128 *) . ./$cache_file;;
1129 esac
1130 fi
1131else
1132 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1133echo "$as_me: creating cache $cache_file" >&6;}
1134 >$cache_file
1135fi
1136
1137# Check that the precious variables saved in the cache have kept the same
1138# value.
1139ac_cache_corrupted=false
1140for ac_var in `(set) 2>&1 |
1141 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1142 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1143 eval ac_new_set=\$ac_env_${ac_var}_set
1144 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1145 eval ac_new_val="\$ac_env_${ac_var}_value"
1146 case $ac_old_set,$ac_new_set in
1147 set,)
1148 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1149echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1150 ac_cache_corrupted=: ;;
1151 ,set)
1152 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1153echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1154 ac_cache_corrupted=: ;;
1155 ,);;
1156 *)
1157 if test "x$ac_old_val" != "x$ac_new_val"; then
1158 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1159echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1160 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1161echo "$as_me: former value: $ac_old_val" >&2;}
1162 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1163echo "$as_me: current value: $ac_new_val" >&2;}
1164 ac_cache_corrupted=:
1165 fi;;
1166 esac
1167 # Pass precious variables to config.status.
1168 if test "$ac_new_set" = set; then
1169 case $ac_new_val in
1170 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1171 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1172 *) ac_arg=$ac_var=$ac_new_val ;;
1173 esac
1174 case " $ac_configure_args " in
1175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1176 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1177 esac
1178 fi
1179done
1180if $ac_cache_corrupted; then
1181 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1182echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1183 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1184echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1185 { (exit 1); exit 1; }; }
3b16e843 1186fi
9b2b7d69
MM
1187
1188ac_ext=c
1189ac_cpp='$CPP $CPPFLAGS'
1190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1192ac_compiler_gnu=$ac_cv_c_compiler_gnu
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212ac_aux_dir=
1213for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1214 if test -f $ac_dir/install-sh; then
1215 ac_aux_dir=$ac_dir
1216 ac_install_sh="$ac_aux_dir/install-sh -c"
1217 break
1218 elif test -f $ac_dir/install.sh; then
1219 ac_aux_dir=$ac_dir
1220 ac_install_sh="$ac_aux_dir/install.sh -c"
1221 break
1222 elif test -f $ac_dir/shtool; then
1223 ac_aux_dir=$ac_dir
1224 ac_install_sh="$ac_aux_dir/shtool install -c"
1225 break
1226 fi
1227done
1228if test -z "$ac_aux_dir"; then
1229 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1230echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1231 { (exit 1); exit 1; }; }
1232fi
1233ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1234ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1235ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1236
1237# Make sure we can run config.sub.
1238$ac_config_sub sun4 >/dev/null 2>&1 ||
1239 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1240echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1241 { (exit 1); exit 1; }; }
1242
1243echo "$as_me:$LINENO: checking build system type" >&5
1244echo $ECHO_N "checking build system type... $ECHO_C" >&6
1245if test "${ac_cv_build+set}" = set; then
1246 echo $ECHO_N "(cached) $ECHO_C" >&6
1247else
1248 ac_cv_build_alias=$build_alias
1249test -z "$ac_cv_build_alias" &&
1250 ac_cv_build_alias=`$ac_config_guess`
1251test -z "$ac_cv_build_alias" &&
1252 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1253echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1254 { (exit 1); exit 1; }; }
1255ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1256 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1257echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1258 { (exit 1); exit 1; }; }
1259
1260fi
1261echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1262echo "${ECHO_T}$ac_cv_build" >&6
1263build=$ac_cv_build
1264build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1265build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1266build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1267
1268
1269echo "$as_me:$LINENO: checking host system type" >&5
1270echo $ECHO_N "checking host system type... $ECHO_C" >&6
1271if test "${ac_cv_host+set}" = set; then
1272 echo $ECHO_N "(cached) $ECHO_C" >&6
1273else
1274 ac_cv_host_alias=$host_alias
1275test -z "$ac_cv_host_alias" &&
1276 ac_cv_host_alias=$ac_cv_build_alias
1277ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1278 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1279echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1280 { (exit 1); exit 1; }; }
1281
1282fi
1283echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1284echo "${ECHO_T}$ac_cv_host" >&6
1285host=$ac_cv_host
1286host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1287host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1288host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1289
1290
1291echo "$as_me:$LINENO: checking target system type" >&5
1292echo $ECHO_N "checking target system type... $ECHO_C" >&6
1293if test "${ac_cv_target+set}" = set; then
1294 echo $ECHO_N "(cached) $ECHO_C" >&6
1295else
1296 ac_cv_target_alias=$target_alias
1297test "x$ac_cv_target_alias" = "x" &&
1298 ac_cv_target_alias=$ac_cv_host_alias
1299ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1300 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1301echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1302 { (exit 1); exit 1; }; }
1303
1304fi
1305echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1306echo "${ECHO_T}$ac_cv_target" >&6
1307target=$ac_cv_target
1308target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1309target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1310target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1311
1312
1313# The aliases save the names the user supplied, while $host etc.
1314# will get canonicalized.
1315test -n "$target_alias" &&
1316 test "$program_prefix$program_suffix$program_transform_name" = \
1317 NONENONEs,x,x, &&
1318 program_prefix=${target_alias}-
1319ac_ext=c
1320ac_cpp='$CPP $CPPFLAGS'
1321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1323ac_compiler_gnu=$ac_cv_c_compiler_gnu
1324if test -n "$ac_tool_prefix"; then
1325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1326set dummy ${ac_tool_prefix}gcc; ac_word=$2
1327echo "$as_me:$LINENO: checking for $ac_word" >&5
1328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1329if test "${ac_cv_prog_CC+set}" = set; then
1330 echo $ECHO_N "(cached) $ECHO_C" >&6
1331else
1332 if test -n "$CC"; then
1333 ac_cv_prog_CC="$CC" # Let the user override the test.
1334else
1335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1336for as_dir in $PATH
1337do
1338 IFS=$as_save_IFS
1339 test -z "$as_dir" && as_dir=.
1340 for ac_exec_ext in '' $ac_executable_extensions; do
1341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1342 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1344 break 2
1345 fi
1346done
1347done
1348
1349fi
1350fi
1351CC=$ac_cv_prog_CC
3b16e843 1352if test -n "$CC"; then
9b2b7d69
MM
1353 echo "$as_me:$LINENO: result: $CC" >&5
1354echo "${ECHO_T}$CC" >&6
3b16e843 1355else
9b2b7d69
MM
1356 echo "$as_me:$LINENO: result: no" >&5
1357echo "${ECHO_T}no" >&6
1358fi
1359
1360fi
1361if test -z "$ac_cv_prog_CC"; then
1362 ac_ct_CC=$CC
1363 # Extract the first word of "gcc", so it can be a program name with args.
1364set dummy gcc; ac_word=$2
1365echo "$as_me:$LINENO: checking for $ac_word" >&5
1366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369else
1370 if test -n "$ac_ct_CC"; then
1371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1372else
1373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374for as_dir in $PATH
1375do
1376 IFS=$as_save_IFS
1377 test -z "$as_dir" && as_dir=.
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380 ac_cv_prog_ac_ct_CC="gcc"
1381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382 break 2
1383 fi
1384done
1385done
1386
1387fi
1388fi
1389ac_ct_CC=$ac_cv_prog_ac_ct_CC
1390if test -n "$ac_ct_CC"; then
1391 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1392echo "${ECHO_T}$ac_ct_CC" >&6
1393else
1394 echo "$as_me:$LINENO: result: no" >&5
1395echo "${ECHO_T}no" >&6
1396fi
1397
1398 CC=$ac_ct_CC
1399else
1400 CC="$ac_cv_prog_CC"
3b16e843 1401fi
6840198f 1402
3b16e843 1403if test -z "$CC"; then
9b2b7d69
MM
1404 if test -n "$ac_tool_prefix"; then
1405 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1406set dummy ${ac_tool_prefix}cc; ac_word=$2
1407echo "$as_me:$LINENO: checking for $ac_word" >&5
1408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1409if test "${ac_cv_prog_CC+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411else
1412 if test -n "$CC"; then
1413 ac_cv_prog_CC="$CC" # Let the user override the test.
1414else
1415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1416for as_dir in $PATH
1417do
1418 IFS=$as_save_IFS
1419 test -z "$as_dir" && as_dir=.
1420 for ac_exec_ext in '' $ac_executable_extensions; do
1421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1422 ac_cv_prog_CC="${ac_tool_prefix}cc"
1423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1424 break 2
1425 fi
1426done
1427done
1428
1429fi
1430fi
1431CC=$ac_cv_prog_CC
1432if test -n "$CC"; then
1433 echo "$as_me:$LINENO: result: $CC" >&5
1434echo "${ECHO_T}$CC" >&6
1435else
1436 echo "$as_me:$LINENO: result: no" >&5
1437echo "${ECHO_T}no" >&6
1438fi
1439
1440fi
1441if test -z "$ac_cv_prog_CC"; then
1442 ac_ct_CC=$CC
3b16e843
NC
1443 # Extract the first word of "cc", so it can be a program name with args.
1444set dummy cc; ac_word=$2
9b2b7d69
MM
1445echo "$as_me:$LINENO: checking for $ac_word" >&5
1446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1449else
1450 if test -n "$ac_ct_CC"; then
1451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1452else
1453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454for as_dir in $PATH
1455do
1456 IFS=$as_save_IFS
1457 test -z "$as_dir" && as_dir=.
1458 for ac_exec_ext in '' $ac_executable_extensions; do
1459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1460 ac_cv_prog_ac_ct_CC="cc"
1461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 break 2
1463 fi
1464done
1465done
1466
1467fi
1468fi
1469ac_ct_CC=$ac_cv_prog_ac_ct_CC
1470if test -n "$ac_ct_CC"; then
1471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1472echo "${ECHO_T}$ac_ct_CC" >&6
1473else
1474 echo "$as_me:$LINENO: result: no" >&5
1475echo "${ECHO_T}no" >&6
1476fi
1477
1478 CC=$ac_ct_CC
1479else
1480 CC="$ac_cv_prog_CC"
1481fi
1482
1483fi
1484if test -z "$CC"; then
1485 # Extract the first word of "cc", so it can be a program name with args.
1486set dummy cc; ac_word=$2
1487echo "$as_me:$LINENO: checking for $ac_word" >&5
1488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489if test "${ac_cv_prog_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
6840198f 1491else
3b16e843
NC
1492 if test -n "$CC"; then
1493 ac_cv_prog_CC="$CC" # Let the user override the test.
1494else
3b16e843 1495 ac_prog_rejected=no
9b2b7d69
MM
1496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497for as_dir in $PATH
1498do
1499 IFS=$as_save_IFS
1500 test -z "$as_dir" && as_dir=.
1501 for ac_exec_ext in '' $ac_executable_extensions; do
1502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1504 ac_prog_rejected=yes
1505 continue
1506 fi
1507 ac_cv_prog_CC="cc"
1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509 break 2
1510 fi
1511done
1512done
1513
3b16e843
NC
1514if test $ac_prog_rejected = yes; then
1515 # We found a bogon in the path, so make sure we never use it.
1516 set dummy $ac_cv_prog_CC
1517 shift
9b2b7d69 1518 if test $# != 0; then
3b16e843
NC
1519 # We chose a different compiler from the bogus one.
1520 # However, it has the same basename, so the bogon will be chosen
1521 # first if we set CC to just the basename; use the full file name.
1522 shift
9b2b7d69 1523 set dummy "$as_dir/$ac_word" ${1+"$@"}
3b16e843
NC
1524 shift
1525 ac_cv_prog_CC="$@"
1526 fi
1527fi
1528fi
1529fi
9b2b7d69 1530CC=$ac_cv_prog_CC
3b16e843 1531if test -n "$CC"; then
9b2b7d69
MM
1532 echo "$as_me:$LINENO: result: $CC" >&5
1533echo "${ECHO_T}$CC" >&6
3b16e843 1534else
9b2b7d69
MM
1535 echo "$as_me:$LINENO: result: no" >&5
1536echo "${ECHO_T}no" >&6
3b16e843
NC
1537fi
1538
9b2b7d69
MM
1539fi
1540if test -z "$CC"; then
1541 if test -n "$ac_tool_prefix"; then
1542 for ac_prog in cl
1543 do
1544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1545set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1546echo "$as_me:$LINENO: checking for $ac_word" >&5
1547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
3b16e843
NC
1550else
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1553else
9b2b7d69
MM
1554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555for as_dir in $PATH
1556do
1557 IFS=$as_save_IFS
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 break 2
1564 fi
1565done
1566done
1567
3b16e843
NC
1568fi
1569fi
9b2b7d69 1570CC=$ac_cv_prog_CC
3b16e843 1571if test -n "$CC"; then
9b2b7d69
MM
1572 echo "$as_me:$LINENO: result: $CC" >&5
1573echo "${ECHO_T}$CC" >&6
3b16e843 1574else
9b2b7d69
MM
1575 echo "$as_me:$LINENO: result: no" >&5
1576echo "${ECHO_T}no" >&6
3b16e843 1577fi
9b2b7d69
MM
1578
1579 test -n "$CC" && break
1580 done
1581fi
1582if test -z "$CC"; then
1583 ac_ct_CC=$CC
1584 for ac_prog in cl
1585do
1586 # Extract the first word of "$ac_prog", so it can be a program name with args.
1587set dummy $ac_prog; ac_word=$2
1588echo "$as_me:$LINENO: checking for $ac_word" >&5
1589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1590if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1592else
1593 if test -n "$ac_ct_CC"; then
1594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1595else
1596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597for as_dir in $PATH
1598do
1599 IFS=$as_save_IFS
1600 test -z "$as_dir" && as_dir=.
1601 for ac_exec_ext in '' $ac_executable_extensions; do
1602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1603 ac_cv_prog_ac_ct_CC="$ac_prog"
1604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605 break 2
3b16e843 1606 fi
9b2b7d69
MM
1607done
1608done
1609
1610fi
1611fi
1612ac_ct_CC=$ac_cv_prog_ac_ct_CC
1613if test -n "$ac_ct_CC"; then
1614 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1615echo "${ECHO_T}$ac_ct_CC" >&6
1616else
1617 echo "$as_me:$LINENO: result: no" >&5
1618echo "${ECHO_T}no" >&6
3b16e843
NC
1619fi
1620
9b2b7d69
MM
1621 test -n "$ac_ct_CC" && break
1622done
3b16e843 1623
9b2b7d69
MM
1624 CC=$ac_ct_CC
1625fi
3b16e843 1626
9b2b7d69 1627fi
3b16e843 1628
9b2b7d69
MM
1629
1630test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1631echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1632 { (exit 1); exit 1; }; }
1633
1634# Provide some information about the compiler.
1635echo "$as_me:$LINENO:" \
1636 "checking for C compiler version" >&5
1637ac_compiler=`set X $ac_compile; echo $2`
1638{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1639 (eval $ac_compiler --version </dev/null >&5) 2>&5
1640 ac_status=$?
1641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1642 (exit $ac_status); }
1643{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1644 (eval $ac_compiler -v </dev/null >&5) 2>&5
1645 ac_status=$?
1646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1647 (exit $ac_status); }
1648{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1649 (eval $ac_compiler -V </dev/null >&5) 2>&5
1650 ac_status=$?
1651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1652 (exit $ac_status); }
1653
1654cat >conftest.$ac_ext <<_ACEOF
1655#line $LINENO "configure"
6840198f
NC
1656#include "confdefs.h"
1657
9b2b7d69
MM
1658#ifdef F77_DUMMY_MAIN
1659# ifdef __cplusplus
1660 extern "C"
1661# endif
1662 int F77_DUMMY_MAIN() { return 1; }
1663#endif
1664int
1665main ()
1666{
1667
1668 ;
1669 return 0;
1670}
1671_ACEOF
1672ac_clean_files_save=$ac_clean_files
1673ac_clean_files="$ac_clean_files a.out a.exe"
1674# Try to create an executable without -o first, disregard a.out.
1675# It will help us diagnose broken compilers, and finding out an intuition
1676# of exeext.
1677echo "$as_me:$LINENO: checking for C compiler default output" >&5
1678echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1679ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1680if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1681 (eval $ac_link_default) 2>&5
1682 ac_status=$?
1683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1684 (exit $ac_status); }; then
1685 # Find the output, starting from the most likely. This scheme is
1686# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1687# resort.
1688
1689# Be careful to initialize this variable, since it used to be cached.
1690# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1691ac_cv_exeext=
1692for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1693 ls a.out conftest 2>/dev/null;
1694 ls a.* conftest.* 2>/dev/null`; do
1695 case $ac_file in
1696 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1697 a.out ) # We found the default executable, but exeext='' is most
1698 # certainly right.
1699 break;;
1700 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1701 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1702 export ac_cv_exeext
1703 break;;
1704 * ) break;;
1705 esac
1706done
1707else
1708 echo "$as_me: failed program was:" >&5
1709cat conftest.$ac_ext >&5
1710{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1711echo "$as_me: error: C compiler cannot create executables" >&2;}
1712 { (exit 77); exit 77; }; }
1713fi
1714
1715ac_exeext=$ac_cv_exeext
1716echo "$as_me:$LINENO: result: $ac_file" >&5
1717echo "${ECHO_T}$ac_file" >&6
1718
1719# Check the compiler produces executables we can run. If not, either
1720# the compiler is broken, or we cross compile.
1721echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1722echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1723# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1724# If not cross compiling, check that we can run a simple program.
1725if test "$cross_compiling" != yes; then
1726 if { ac_try='./$ac_file'
1727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1728 (eval $ac_try) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; }; then
1732 cross_compiling=no
3b16e843 1733 else
9b2b7d69
MM
1734 if test "$cross_compiling" = maybe; then
1735 cross_compiling=yes
1736 else
1737 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1738If you meant to cross compile, use \`--host'." >&5
1739echo "$as_me: error: cannot run C compiled programs.
1740If you meant to cross compile, use \`--host'." >&2;}
1741 { (exit 1); exit 1; }; }
1742 fi
3b16e843 1743 fi
9b2b7d69
MM
1744fi
1745echo "$as_me:$LINENO: result: yes" >&5
1746echo "${ECHO_T}yes" >&6
1747
1748rm -f a.out a.exe conftest$ac_cv_exeext
1749ac_clean_files=$ac_clean_files_save
1750# Check the compiler produces executables we can run. If not, either
1751# the compiler is broken, or we cross compile.
1752echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1753echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1754echo "$as_me:$LINENO: result: $cross_compiling" >&5
1755echo "${ECHO_T}$cross_compiling" >&6
1756
1757echo "$as_me:$LINENO: checking for suffix of executables" >&5
1758echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1760 (eval $ac_link) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }; then
1764 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1765# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1766# work properly (i.e., refer to `conftest.exe'), while it won't with
1767# `rm'.
1768for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1769 case $ac_file in
1770 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1771 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1772 export ac_cv_exeext
1773 break;;
1774 * ) break;;
1775 esac
1776done
6840198f 1777else
9b2b7d69
MM
1778 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1779echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1780 { (exit 1); exit 1; }; }
3b16e843 1781fi
3b16e843 1782
9b2b7d69
MM
1783rm -f conftest$ac_cv_exeext
1784echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1785echo "${ECHO_T}$ac_cv_exeext" >&6
3b16e843 1786
9b2b7d69
MM
1787rm -f conftest.$ac_ext
1788EXEEXT=$ac_cv_exeext
1789ac_exeext=$EXEEXT
1790echo "$as_me:$LINENO: checking for suffix of object files" >&5
1791echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1792if test "${ac_cv_objext+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
3b16e843 1794else
9b2b7d69
MM
1795 cat >conftest.$ac_ext <<_ACEOF
1796#line $LINENO "configure"
1797#include "confdefs.h"
1798
1799#ifdef F77_DUMMY_MAIN
1800# ifdef __cplusplus
1801 extern "C"
1802# endif
1803 int F77_DUMMY_MAIN() { return 1; }
3b16e843 1804#endif
9b2b7d69
MM
1805int
1806main ()
1807{
1808
1809 ;
1810 return 0;
1811}
1812_ACEOF
1813rm -f conftest.o conftest.obj
1814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1815 (eval $ac_compile) 2>&5
1816 ac_status=$?
1817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818 (exit $ac_status); }; then
1819 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1820 case $ac_file in
1821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1822 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1823 break;;
1824 esac
1825done
3b16e843 1826else
9b2b7d69
MM
1827 echo "$as_me: failed program was:" >&5
1828cat conftest.$ac_ext >&5
1829{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1830echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1831 { (exit 1); exit 1; }; }
3b16e843 1832fi
9b2b7d69
MM
1833
1834rm -f conftest.$ac_cv_objext conftest.$ac_ext
3b16e843 1835fi
9b2b7d69
MM
1836echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1837echo "${ECHO_T}$ac_cv_objext" >&6
1838OBJEXT=$ac_cv_objext
1839ac_objext=$OBJEXT
1840echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1841echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1842if test "${ac_cv_c_compiler_gnu+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844else
1845 cat >conftest.$ac_ext <<_ACEOF
1846#line $LINENO "configure"
1847#include "confdefs.h"
3b16e843 1848
9b2b7d69
MM
1849#ifdef F77_DUMMY_MAIN
1850# ifdef __cplusplus
1851 extern "C"
1852# endif
1853 int F77_DUMMY_MAIN() { return 1; }
1854#endif
1855int
1856main ()
1857{
1858#ifndef __GNUC__
1859 choke me
1860#endif
3b16e843 1861
9b2b7d69
MM
1862 ;
1863 return 0;
1864}
1865_ACEOF
1866rm -f conftest.$ac_objext
1867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1868 (eval $ac_compile) 2>&5
1869 ac_status=$?
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); } &&
1872 { ac_try='test -s conftest.$ac_objext'
1873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1874 (eval $ac_try) 2>&5
1875 ac_status=$?
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; }; then
1878 ac_compiler_gnu=yes
1879else
1880 echo "$as_me: failed program was:" >&5
1881cat conftest.$ac_ext >&5
1882ac_compiler_gnu=no
1883fi
1884rm -f conftest.$ac_objext conftest.$ac_ext
1885ac_cv_c_compiler_gnu=$ac_compiler_gnu
1886
1887fi
1888echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1889echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1890GCC=`test $ac_compiler_gnu = yes && echo yes`
1891ac_test_CFLAGS=${CFLAGS+set}
1892ac_save_CFLAGS=$CFLAGS
1893CFLAGS="-g"
1894echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1895echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1896if test "${ac_cv_prog_cc_g+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898else
1899 cat >conftest.$ac_ext <<_ACEOF
1900#line $LINENO "configure"
1901#include "confdefs.h"
3b16e843 1902
9b2b7d69
MM
1903#ifdef F77_DUMMY_MAIN
1904# ifdef __cplusplus
1905 extern "C"
1906# endif
1907 int F77_DUMMY_MAIN() { return 1; }
1908#endif
1909int
1910main ()
1911{
1912
1913 ;
1914 return 0;
1915}
1916_ACEOF
1917rm -f conftest.$ac_objext
1918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1919 (eval $ac_compile) 2>&5
1920 ac_status=$?
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); } &&
1923 { ac_try='test -s conftest.$ac_objext'
1924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1925 (eval $ac_try) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; }; then
3b16e843
NC
1929 ac_cv_prog_cc_g=yes
1930else
9b2b7d69
MM
1931 echo "$as_me: failed program was:" >&5
1932cat conftest.$ac_ext >&5
1933ac_cv_prog_cc_g=no
6840198f 1934fi
9b2b7d69 1935rm -f conftest.$ac_objext conftest.$ac_ext
6840198f 1936fi
9b2b7d69
MM
1937echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1938echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3b16e843 1939if test "$ac_test_CFLAGS" = set; then
9b2b7d69 1940 CFLAGS=$ac_save_CFLAGS
3b16e843
NC
1941elif test $ac_cv_prog_cc_g = yes; then
1942 if test "$GCC" = yes; then
1943 CFLAGS="-g -O2"
1944 else
1945 CFLAGS="-g"
1946 fi
1947else
1948 if test "$GCC" = yes; then
1949 CFLAGS="-O2"
1950 else
1951 CFLAGS=
1952 fi
1953fi
9b2b7d69
MM
1954# Some people use a C++ compiler to compile C. Since we use `exit',
1955# in C++ we need to declare it. In case someone uses the same compiler
1956# for both compiling C and C++ we need to have the C++ compiler decide
1957# the declaration of exit, since it's the most demanding environment.
1958cat >conftest.$ac_ext <<_ACEOF
1959#ifndef __cplusplus
1960 choke me
1961#endif
1962_ACEOF
1963rm -f conftest.$ac_objext
1964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>&5
1966 ac_status=$?
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); } &&
1969 { ac_try='test -s conftest.$ac_objext'
1970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1971 (eval $ac_try) 2>&5
1972 ac_status=$?
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }; }; then
1975 for ac_declaration in \
1976 ''\
1977 '#include <stdlib.h>' \
1978 'extern "C" void std::exit (int) throw (); using std::exit;' \
1979 'extern "C" void std::exit (int); using std::exit;' \
1980 'extern "C" void exit (int) throw ();' \
1981 'extern "C" void exit (int);' \
1982 'void exit (int);'
1983do
1984 cat >conftest.$ac_ext <<_ACEOF
1985#line $LINENO "configure"
1986#include "confdefs.h"
1987#include <stdlib.h>
1988$ac_declaration
1989#ifdef F77_DUMMY_MAIN
1990# ifdef __cplusplus
1991 extern "C"
1992# endif
1993 int F77_DUMMY_MAIN() { return 1; }
1994#endif
1995int
1996main ()
1997{
1998exit (42);
1999 ;
2000 return 0;
2001}
2002_ACEOF
2003rm -f conftest.$ac_objext
2004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2005 (eval $ac_compile) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); } &&
2009 { ac_try='test -s conftest.$ac_objext'
2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011 (eval $ac_try) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2015 :
2016else
2017 echo "$as_me: failed program was:" >&5
2018cat conftest.$ac_ext >&5
2019continue
2020fi
2021rm -f conftest.$ac_objext conftest.$ac_ext
2022 cat >conftest.$ac_ext <<_ACEOF
2023#line $LINENO "configure"
2024#include "confdefs.h"
2025$ac_declaration
2026#ifdef F77_DUMMY_MAIN
2027# ifdef __cplusplus
2028 extern "C"
2029# endif
2030 int F77_DUMMY_MAIN() { return 1; }
2031#endif
2032int
2033main ()
2034{
2035exit (42);
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040rm -f conftest.$ac_objext
2041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2043 ac_status=$?
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048 (eval $ac_try) 2>&5
2049 ac_status=$?
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2052 break
2053else
2054 echo "$as_me: failed program was:" >&5
2055cat conftest.$ac_ext >&5
2056fi
2057rm -f conftest.$ac_objext conftest.$ac_ext
2058done
2059rm -f conftest*
2060if test -n "$ac_declaration"; then
2061 echo '#ifdef __cplusplus' >>confdefs.h
2062 echo $ac_declaration >>confdefs.h
2063 echo '#endif' >>confdefs.h
2064fi
3b16e843 2065
9b2b7d69
MM
2066else
2067 echo "$as_me: failed program was:" >&5
2068cat conftest.$ac_ext >&5
2069fi
2070rm -f conftest.$ac_objext conftest.$ac_ext
2071ac_ext=c
2072ac_cpp='$CPP $CPPFLAGS'
2073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075ac_compiler_gnu=$ac_cv_c_compiler_gnu
3b16e843 2076
9b2b7d69
MM
2077
2078
2079 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2080echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2081if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083else
2084 ac_check_lib_save_LIBS=$LIBS
2085LIBS="-lcposix $LIBS"
2086cat >conftest.$ac_ext <<_ACEOF
2087#line $LINENO "configure"
2088#include "confdefs.h"
2089
2090/* Override any gcc2 internal prototype to avoid an error. */
2091#ifdef __cplusplus
2092extern "C"
2093#endif
2094/* We use char because int might match the return type of a gcc2
2095 builtin and then its argument prototype would still apply. */
2096char strerror ();
2097#ifdef F77_DUMMY_MAIN
2098# ifdef __cplusplus
2099 extern "C"
2100# endif
2101 int F77_DUMMY_MAIN() { return 1; }
2102#endif
2103int
2104main ()
2105{
2106strerror ();
2107 ;
2108 return 0;
2109}
2110_ACEOF
2111rm -f conftest.$ac_objext conftest$ac_exeext
2112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2113 (eval $ac_link) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); } &&
2117 { ac_try='test -s conftest$ac_exeext'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2123 ac_cv_lib_cposix_strerror=yes
6840198f 2124else
9b2b7d69
MM
2125 echo "$as_me: failed program was:" >&5
2126cat conftest.$ac_ext >&5
2127ac_cv_lib_cposix_strerror=no
6840198f 2128fi
9b2b7d69
MM
2129rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2130LIBS=$ac_check_lib_save_LIBS
2131fi
2132echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2133echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2134if test $ac_cv_lib_cposix_strerror = yes; then
2135 LIBS="$LIBS -lcposix"
2136fi
2137
2138
252b5132 2139
d6d788bd 2140
27b7e12d 2141BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
252b5132
RH
2142# Find a good install program. We prefer a C program (faster),
2143# so one script is as good as another. But avoid the broken or
2144# incompatible versions:
2145# SysV /etc/install, /usr/sbin/install
2146# SunOS /usr/etc/install
2147# IRIX /sbin/install
2148# AIX /bin/install
9b2b7d69 2149# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2150# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2151# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2152# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2153# ./install, which can be erroneously created by make from ./install.sh.
9b2b7d69
MM
2154echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2155echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2156if test -z "$INSTALL"; then
9b2b7d69
MM
2157if test "${ac_cv_path_install+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2159else
9b2b7d69
MM
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161for as_dir in $PATH
2162do
2163 IFS=$as_save_IFS
2164 test -z "$as_dir" && as_dir=.
2165 # Account for people who put trailing slashes in PATH elements.
2166case $as_dir/ in
2167 ./ | .// | /cC/* | \
2168 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2169 /usr/ucb/* ) ;;
2170 *)
2171 # OSF1 and SCO ODT 3.0 have their own names for install.
2172 # Don't use installbsd from OSF since it installs stuff as root
2173 # by default.
2174 for ac_prog in ginstall scoinst install; do
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2177 if test $ac_prog = install &&
2178 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2179 # AIX install. It has an incompatible calling convention.
2180 :
2181 elif test $ac_prog = install &&
2182 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2183 # program-specific install script used by HP pwplus--don't use.
2184 :
2185 else
2186 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2187 break 3
2188 fi
2189 fi
252b5132 2190 done
9b2b7d69
MM
2191 done
2192 ;;
2193esac
2194done
2195
252b5132
RH
2196
2197fi
2198 if test "${ac_cv_path_install+set}" = set; then
9b2b7d69 2199 INSTALL=$ac_cv_path_install
252b5132
RH
2200 else
2201 # As a last resort, use the slow shell script. We don't cache a
2202 # path for INSTALL within a source directory, because that will
2203 # break other packages using the cache if that directory is
2204 # removed, or if the path is relative.
9b2b7d69 2205 INSTALL=$ac_install_sh
252b5132
RH
2206 fi
2207fi
9b2b7d69
MM
2208echo "$as_me:$LINENO: result: $INSTALL" >&5
2209echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2210
2211# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2212# It thinks the first close brace ends the variable substitution.
2213test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2214
9b2b7d69 2215test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2216
2217test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2218
9b2b7d69
MM
2219echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2220echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2221# Just in case
2222sleep 1
2223echo timestamp > conftestfile
2224# Do `set' in a subshell so we don't clobber the current shell's
2225# arguments. Must try -L first in case configure is actually a
2226# symlink; some systems play weird games with the mod time of symlinks
2227# (eg FreeBSD returns the mod time of the symlink's containing
2228# directory).
2229if (
2230 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2231 if test "$*" = "X"; then
2232 # -L didn't work.
2233 set X `ls -t $srcdir/configure conftestfile`
2234 fi
2235 if test "$*" != "X $srcdir/configure conftestfile" \
2236 && test "$*" != "X conftestfile $srcdir/configure"; then
2237
2238 # If neither matched, then we have a broken ls. This can happen
2239 # if, for instance, CONFIG_SHELL is bash and it inherits a
2240 # broken ls alias from the environment. This has actually
2241 # happened. Such a system could not be considered "sane".
9b2b7d69
MM
2242 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2243alias in your environment" >&5
2244echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2245alias in your environment" >&2;}
2246 { (exit 1); exit 1; }; }
252b5132
RH
2247 fi
2248
2249 test "$2" = conftestfile
2250 )
2251then
2252 # Ok.
2253 :
2254else
9b2b7d69
MM
2255 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2256Check your system clock" >&5
2257echo "$as_me: error: newly created file is older than distributed files!
2258Check your system clock" >&2;}
2259 { (exit 1); exit 1; }; }
252b5132
RH
2260fi
2261rm -f conftest*
9b2b7d69
MM
2262echo "$as_me:$LINENO: result: yes" >&5
2263echo "${ECHO_T}yes" >&6
252b5132 2264test "$program_prefix" != NONE &&
9b2b7d69 2265 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2266# Use a double $ so make ignores it.
2267test "$program_suffix" != NONE &&
9b2b7d69
MM
2268 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2269# Double any \ or $. echo might interpret backslashes.
2270# By default was `s,x,x', remove it if useless.
2271cat <<\_ACEOF >conftest.sed
2272s/[\\$]/&&/g;s/;s,x,x,$//
2273_ACEOF
2274program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2275rm conftest.sed
2276
2277echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2278echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2279set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2280if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283 cat >conftest.make <<\_ACEOF
252b5132
RH
2284all:
2285 @echo 'ac_maketemp="${MAKE}"'
9b2b7d69 2286_ACEOF
252b5132 2287# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9b2b7d69 2288eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2289if test -n "$ac_maketemp"; then
2290 eval ac_cv_prog_make_${ac_make}_set=yes
2291else
2292 eval ac_cv_prog_make_${ac_make}_set=no
2293fi
9b2b7d69 2294rm -f conftest.make
252b5132
RH
2295fi
2296if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9b2b7d69
MM
2297 echo "$as_me:$LINENO: result: yes" >&5
2298echo "${ECHO_T}yes" >&6
252b5132
RH
2299 SET_MAKE=
2300else
9b2b7d69
MM
2301 echo "$as_me:$LINENO: result: no" >&5
2302echo "${ECHO_T}no" >&6
252b5132
RH
2303 SET_MAKE="MAKE=${MAKE-make}"
2304fi
2305
d6d788bd 2306
252b5132
RH
2307PACKAGE=gas
2308
27b7e12d 2309VERSION=${BFD_VERSION}
252b5132
RH
2310
2311if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
9b2b7d69
MM
2312 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2313echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2314 { (exit 1); exit 1; }; }
252b5132 2315fi
9b2b7d69
MM
2316
2317cat >>confdefs.h <<_ACEOF
252b5132 2318#define PACKAGE "$PACKAGE"
9b2b7d69
MM
2319_ACEOF
2320
252b5132 2321
9b2b7d69 2322cat >>confdefs.h <<_ACEOF
252b5132 2323#define VERSION "$VERSION"
9b2b7d69 2324_ACEOF
252b5132 2325
d6d788bd
L
2326
2327
252b5132 2328missing_dir=`cd $ac_aux_dir && pwd`
9b2b7d69
MM
2329echo "$as_me:$LINENO: checking for working aclocal" >&5
2330echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
252b5132
RH
2331# Run test in a subshell; some versions of sh will print an error if
2332# an executable is not found, even if stderr is redirected.
2333# Redirect stdin to placate older versions of autoconf. Sigh.
2334if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2335 ACLOCAL=aclocal
9b2b7d69
MM
2336 echo "$as_me:$LINENO: result: found" >&5
2337echo "${ECHO_T}found" >&6
252b5132
RH
2338else
2339 ACLOCAL="$missing_dir/missing aclocal"
9b2b7d69
MM
2340 echo "$as_me:$LINENO: result: missing" >&5
2341echo "${ECHO_T}missing" >&6
252b5132
RH
2342fi
2343
9b2b7d69
MM
2344echo "$as_me:$LINENO: checking for working autoconf" >&5
2345echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
252b5132
RH
2346# Run test in a subshell; some versions of sh will print an error if
2347# an executable is not found, even if stderr is redirected.
2348# Redirect stdin to placate older versions of autoconf. Sigh.
2349if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2350 AUTOCONF=autoconf
9b2b7d69
MM
2351 echo "$as_me:$LINENO: result: found" >&5
2352echo "${ECHO_T}found" >&6
252b5132
RH
2353else
2354 AUTOCONF="$missing_dir/missing autoconf"
9b2b7d69
MM
2355 echo "$as_me:$LINENO: result: missing" >&5
2356echo "${ECHO_T}missing" >&6
252b5132
RH
2357fi
2358
9b2b7d69
MM
2359echo "$as_me:$LINENO: checking for working automake" >&5
2360echo $ECHO_N "checking for working automake... $ECHO_C" >&6
252b5132
RH
2361# Run test in a subshell; some versions of sh will print an error if
2362# an executable is not found, even if stderr is redirected.
2363# Redirect stdin to placate older versions of autoconf. Sigh.
2364if (automake --version) < /dev/null > /dev/null 2>&1; then
2365 AUTOMAKE=automake
9b2b7d69
MM
2366 echo "$as_me:$LINENO: result: found" >&5
2367echo "${ECHO_T}found" >&6
252b5132
RH
2368else
2369 AUTOMAKE="$missing_dir/missing automake"
9b2b7d69
MM
2370 echo "$as_me:$LINENO: result: missing" >&5
2371echo "${ECHO_T}missing" >&6
252b5132
RH
2372fi
2373
9b2b7d69
MM
2374echo "$as_me:$LINENO: checking for working autoheader" >&5
2375echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
252b5132
RH
2376# Run test in a subshell; some versions of sh will print an error if
2377# an executable is not found, even if stderr is redirected.
2378# Redirect stdin to placate older versions of autoconf. Sigh.
2379if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2380 AUTOHEADER=autoheader
9b2b7d69
MM
2381 echo "$as_me:$LINENO: result: found" >&5
2382echo "${ECHO_T}found" >&6
252b5132
RH
2383else
2384 AUTOHEADER="$missing_dir/missing autoheader"
9b2b7d69
MM
2385 echo "$as_me:$LINENO: result: missing" >&5
2386echo "${ECHO_T}missing" >&6
252b5132
RH
2387fi
2388
9b2b7d69
MM
2389echo "$as_me:$LINENO: checking for working makeinfo" >&5
2390echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
252b5132
RH
2391# Run test in a subshell; some versions of sh will print an error if
2392# an executable is not found, even if stderr is redirected.
2393# Redirect stdin to placate older versions of autoconf. Sigh.
2394if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2395 MAKEINFO=makeinfo
9b2b7d69
MM
2396 echo "$as_me:$LINENO: result: found" >&5
2397echo "${ECHO_T}found" >&6
252b5132
RH
2398else
2399 MAKEINFO="$missing_dir/missing makeinfo"
9b2b7d69
MM
2400 echo "$as_me:$LINENO: result: missing" >&5
2401echo "${ECHO_T}missing" >&6
252b5132
RH
2402fi
2403
d6d788bd
L
2404
2405
252b5132
RH
2406# Check whether --enable-shared or --disable-shared was given.
2407if test "${enable_shared+set}" = set; then
2408 enableval="$enable_shared"
2409 p=${PACKAGE-default}
f9c19112 2410case $enableval in
252b5132
RH
2411yes) enable_shared=yes ;;
2412no) enable_shared=no ;;
2413*)
2414 enable_shared=no
2415 # Look at the argument we got. We use all the common list separators.
2416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2417 for pkg in $enableval; do
2418 if test "X$pkg" = "X$p"; then
2419 enable_shared=yes
2420 fi
2421 done
2422 IFS="$ac_save_ifs"
2423 ;;
2424esac
2425else
2426 enable_shared=yes
9b2b7d69 2427fi;
252b5132
RH
2428# Check whether --enable-static or --disable-static was given.
2429if test "${enable_static+set}" = set; then
2430 enableval="$enable_static"
2431 p=${PACKAGE-default}
f9c19112 2432case $enableval in
252b5132
RH
2433yes) enable_static=yes ;;
2434no) enable_static=no ;;
2435*)
2436 enable_static=no
2437 # Look at the argument we got. We use all the common list separators.
2438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2439 for pkg in $enableval; do
2440 if test "X$pkg" = "X$p"; then
2441 enable_static=yes
2442 fi
2443 done
2444 IFS="$ac_save_ifs"
2445 ;;
2446esac
2447else
2448 enable_static=yes
9b2b7d69 2449fi;
bedf545c
ILT
2450# Check whether --enable-fast-install or --disable-fast-install was given.
2451if test "${enable_fast_install+set}" = set; then
2452 enableval="$enable_fast_install"
2453 p=${PACKAGE-default}
f9c19112 2454case $enableval in
bedf545c
ILT
2455yes) enable_fast_install=yes ;;
2456no) enable_fast_install=no ;;
2457*)
2458 enable_fast_install=no
2459 # Look at the argument we got. We use all the common list separators.
2460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2461 for pkg in $enableval; do
2462 if test "X$pkg" = "X$p"; then
2463 enable_fast_install=yes
2464 fi
2465 done
2466 IFS="$ac_save_ifs"
2467 ;;
2468esac
2469else
2470 enable_fast_install=yes
9b2b7d69 2471fi;
bedf545c 2472
6840198f
NC
2473# Check whether --with-gnu-ld or --without-gnu-ld was given.
2474if test "${with_gnu_ld+set}" = set; then
2475 withval="$with_gnu_ld"
2476 test "$withval" = no || with_gnu_ld=yes
27b7e12d 2477else
6840198f 2478 with_gnu_ld=no
9b2b7d69 2479fi;
6840198f
NC
2480ac_prog=ld
2481if test "$GCC" = yes; then
2482 # Check if gcc -print-prog-name=ld gives a path.
9b2b7d69
MM
2483 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2484echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6840198f
NC
2485 case $host in
2486 *-*-mingw*)
2487 # gcc leaves a trailing carriage return which upsets mingw
2488 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2489 *)
2490 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2491 esac
2492 case $ac_prog in
2493 # Accept absolute paths.
2494 [\\/]* | [A-Za-z]:[\\/]*)
2495 re_direlt='/[^/][^/]*/\.\./'
2496 # Canonicalize the path of ld
2497 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2498 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2499 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2500 done
2501 test -z "$LD" && LD="$ac_prog"
2502 ;;
2503 "")
2504 # If it fails, then pretend we aren't using GCC.
2505 ac_prog=ld
2506 ;;
2507 *)
2508 # If it is relative, then search for the first ld in PATH.
2509 with_gnu_ld=unknown
2510 ;;
2511 esac
2512elif test "$with_gnu_ld" = yes; then
9b2b7d69
MM
2513 echo "$as_me:$LINENO: checking for GNU ld" >&5
2514echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
27b7e12d 2515else
9b2b7d69
MM
2516 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2517echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
27b7e12d 2518fi
9b2b7d69
MM
2519if test "${lt_cv_path_LD+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2521else
2522 if test -z "$LD"; then
a74801ba 2523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
2524 for ac_dir in $PATH; do
2525 test -z "$ac_dir" && ac_dir=.
a74801ba 2526 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
f9c19112 2527 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
2528 # Check to see if the program is GNU ld. I'd rather use --version,
2529 # but apparently some GNU ld's only accept -v.
2530 # Break only if it was the GNU/non-GNU ld that we prefer.
f9c19112 2531 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
2532 test "$with_gnu_ld" != no && break
2533 else
bedf545c 2534 test "$with_gnu_ld" != yes && break
252b5132
RH
2535 fi
2536 fi
2537 done
2538 IFS="$ac_save_ifs"
2539else
f9c19112 2540 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
2541fi
2542fi
2543
f9c19112 2544LD="$lt_cv_path_LD"
252b5132 2545if test -n "$LD"; then
9b2b7d69
MM
2546 echo "$as_me:$LINENO: result: $LD" >&5
2547echo "${ECHO_T}$LD" >&6
252b5132 2548else
9b2b7d69
MM
2549 echo "$as_me:$LINENO: result: no" >&5
2550echo "${ECHO_T}no" >&6
252b5132 2551fi
9b2b7d69
MM
2552test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2553echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2554 { (exit 1); exit 1; }; }
2555echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2556echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2557if test "${lt_cv_prog_gnu_ld+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2559else
2560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2561if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
f9c19112 2562 lt_cv_prog_gnu_ld=yes
252b5132 2563else
f9c19112 2564 lt_cv_prog_gnu_ld=no
252b5132
RH
2565fi
2566fi
9b2b7d69
MM
2567echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2568echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
f9c19112 2569with_gnu_ld=$lt_cv_prog_gnu_ld
ac48eca1 2570
d6d788bd 2571
9b2b7d69
MM
2572echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2573echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2574if test "${lt_cv_ld_reload_flag+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
2576else
2577 lt_cv_ld_reload_flag='-r'
2578fi
9b2b7d69
MM
2579echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2580echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
2581reload_flag=$lt_cv_ld_reload_flag
2582test -n "$reload_flag" && reload_flag=" $reload_flag"
252b5132 2583
9b2b7d69
MM
2584echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2585echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2586if test "${lt_cv_path_NM+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2588else
2589 if test -n "$NM"; then
2590 # Let the user override the test.
f9c19112 2591 lt_cv_path_NM="$NM"
252b5132 2592else
a74801ba 2593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
bedf545c 2594 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 2595 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
2596 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2597 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
2598 # Check to see if the nm accepts a BSD-compat flag.
2599 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2600 # nm: unknown option "B" ignored
58cccadb
AO
2601 # Tru64's nm complains that /dev/null is an invalid object file
2602 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
f9c19112 2603 lt_cv_path_NM="$tmp_nm -B"
bedf545c 2604 break
ac48eca1 2605 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
f9c19112 2606 lt_cv_path_NM="$tmp_nm -p"
bedf545c 2607 break
252b5132 2608 else
f9c19112 2609 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
bedf545c 2610 continue # so that we can try to find one that supports BSD flags
252b5132 2611 fi
252b5132
RH
2612 fi
2613 done
2614 IFS="$ac_save_ifs"
f9c19112 2615 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
2616fi
2617fi
2618
f9c19112 2619NM="$lt_cv_path_NM"
9b2b7d69
MM
2620echo "$as_me:$LINENO: result: $NM" >&5
2621echo "${ECHO_T}$NM" >&6
252b5132 2622
9b2b7d69
MM
2623echo "$as_me:$LINENO: checking whether ln -s works" >&5
2624echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2625LN_S=$as_ln_s
2626if test "$LN_S" = "ln -s"; then
2627 echo "$as_me:$LINENO: result: yes" >&5
2628echo "${ECHO_T}yes" >&6
252b5132 2629else
9b2b7d69
MM
2630 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2631echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
2632fi
2633
9b2b7d69
MM
2634echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2635echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2636if test "${lt_cv_deplibs_check_method+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 2638else
d64552c5 2639 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
2640lt_cv_file_magic_test_file=
2641lt_cv_deplibs_check_method='unknown'
2642# Need to set the preceding variable on all platforms that support
2643# interlibrary dependencies.
2644# 'none' -- dependencies not supported.
2645# `unknown' -- same as none, but documents that we really don't know.
2646# 'pass_all' -- all dependencies passed with no checks.
2647# 'test_compile' -- check by making test program.
2648# 'file_magic [regex]' -- check by looking for files in library path
2649# which responds to the $file_magic_cmd with a given egrep regex.
2650# If you have `file' or equivalent on your system and you're not sure
2651# whether `pass_all' will *always* work, you probably want this one.
2652
f9c19112
HPN
2653case $host_os in
2654aix*)
ac48eca1
AO
2655 lt_cv_deplibs_check_method=pass_all
2656 ;;
2657
2658beos*)
2659 lt_cv_deplibs_check_method=pass_all
2660 ;;
2661
2662bsdi4*)
f9c19112
HPN
2663 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2664 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
2665 lt_cv_file_magic_test_file=/shlib/libc.so
2666 ;;
2667
d64552c5 2668cygwin* | mingw* |pw32*)
ac48eca1 2669 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 2670 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
2671 ;;
2672
f9c19112
HPN
2673darwin* | rhapsody*)
2674 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
6840198f
NC
2675 lt_cv_file_magic_cmd='/usr/bin/file -L'
2676 case "$host_os" in
2677 rhapsody* | darwin1.012)
2678 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2679 ;;
2680 *) # Darwin 1.3 on
2681 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2682 ;;
2683 esac
f9c19112
HPN
2684 ;;
2685
ac48eca1
AO
2686freebsd* )
2687 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
f9c19112 2688 case $host_cpu in
ac48eca1 2689 i*86 )
58cccadb
AO
2690 # Not sure whether the presence of OpenBSD here was a mistake.
2691 # Let's accept both of them until this is cleared up.
f9c19112
HPN
2692 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2693 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
2694 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2695 ;;
2696 esac
2697 else
2698 lt_cv_deplibs_check_method=pass_all
2699 fi
2700 ;;
2701
2702gnu*)
2703 lt_cv_deplibs_check_method=pass_all
2704 ;;
2705
f9c19112 2706hpux10.20*|hpux11*)
4867be41
DJ
2707 case $host_cpu in
2708 hppa*)
2709 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2710 lt_cv_file_magic_cmd=/usr/bin/file
2711 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2712 ;;
2713 ia64*)
2714 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2715 lt_cv_file_magic_cmd=/usr/bin/file
2716 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2717 ;;
2718 esac
ac48eca1
AO
2719 ;;
2720
2721irix5* | irix6*)
f9c19112 2722 case $host_os in
ac48eca1
AO
2723 irix5*)
2724 # this will be overridden with pass_all, but let us keep it just in case
2725 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2726 ;;
2727 *)
f9c19112 2728 case $LD in
ac48eca1
AO
2729 *-32|*"-32 ") libmagic=32-bit;;
2730 *-n32|*"-n32 ") libmagic=N32;;
2731 *-64|*"-64 ") libmagic=64-bit;;
2732 *) libmagic=never-match;;
2733 esac
2734 # this will be overridden with pass_all, but let us keep it just in case
f9c19112
HPN
2735 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2736 ;;
ac48eca1
AO
2737 esac
2738 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2739 lt_cv_deplibs_check_method=pass_all
2740 ;;
2741
2742# This must be Linux ELF.
58cccadb 2743linux-gnu*)
f9c19112 2744 case $host_cpu in
6be7c12c 2745 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
2746 lt_cv_deplibs_check_method=pass_all ;;
2747 *)
2748 # glibc up to 2.1.1 does not perform some relocations on ARM
f9c19112
HPN
2749 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2750 esac
ac48eca1
AO
2751 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2752 ;;
2753
2754netbsd*)
f9c19112 2755 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6840198f 2756 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 2757 else
6840198f 2758 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 2759 fi
f9c19112
HPN
2760 ;;
2761
2762newsos6)
2763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2764 lt_cv_file_magic_cmd=/usr/bin/file
2765 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
2766 ;;
2767
2768osf3* | osf4* | osf5*)
2769 # this will be overridden with pass_all, but let us keep it just in case
2770 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2771 lt_cv_file_magic_test_file=/shlib/libc.so
2772 lt_cv_deplibs_check_method=pass_all
2773 ;;
2774
2775sco3.2v5*)
2776 lt_cv_deplibs_check_method=pass_all
2777 ;;
2778
2779solaris*)
2780 lt_cv_deplibs_check_method=pass_all
2781 lt_cv_file_magic_test_file=/lib/libc.so
2782 ;;
2783
6be7c12c
AO
2784sysv5uw[78]* | sysv4*uw2*)
2785 lt_cv_deplibs_check_method=pass_all
2786 ;;
2787
ac48eca1 2788sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
f9c19112 2789 case $host_vendor in
ac48eca1
AO
2790 ncr)
2791 lt_cv_deplibs_check_method=pass_all
2792 ;;
2793 motorola)
f9c19112
HPN
2794 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]'
2795 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
2796 ;;
2797 esac
2798 ;;
2799esac
2800
2801fi
9b2b7d69
MM
2802echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2803echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
2804file_magic_cmd=$lt_cv_file_magic_cmd
2805deplibs_check_method=$lt_cv_deplibs_check_method
2806
d6d788bd 2807
d6d788bd 2808
d6d788bd 2809
ac48eca1
AO
2810# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2811
2812# Only perform the check for file, if the check method requires it
f9c19112 2813case $deplibs_check_method in
ac48eca1 2814file_magic*)
d64552c5 2815 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9b2b7d69
MM
2816 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
2817echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
2818if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 2820else
f9c19112 2821 case $MAGIC_CMD in
ac48eca1 2822 /*)
d64552c5 2823 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
2824 ;;
2825 ?:/*)
d64552c5 2826 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
2827 ;;
2828 *)
d64552c5 2829 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
2830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2831 ac_dummy="/usr/bin:$PATH"
2832 for ac_dir in $ac_dummy; do
2833 test -z "$ac_dir" && ac_dir=.
2834 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 2835 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 2836 if test -n "$file_magic_test_file"; then
f9c19112 2837 case $deplibs_check_method in
ac48eca1
AO
2838 "file_magic "*)
2839 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 2840 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
2841 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2842 egrep "$file_magic_regex" > /dev/null; then
2843 :
2844 else
2845 cat <<EOF 1>&2
2846
2847*** Warning: the command libtool uses to detect shared libraries,
2848*** $file_magic_cmd, produces output that libtool cannot recognize.
2849*** The result is that libtool may fail to recognize shared libraries
2850*** as such. This will affect the creation of libtool libraries that
2851*** depend on shared libraries, but programs linked with such libtool
2852*** libraries will work regardless of this problem. Nevertheless, you
2853*** may want to report the problem to your system manager and/or to
2854*** bug-libtool@gnu.org
2855
2856EOF
2857 fi ;;
2858 esac
2859 fi
2860 break
2861 fi
2862 done
2863 IFS="$ac_save_ifs"
d64552c5 2864 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
2865 ;;
2866esac
2867fi
2868
d64552c5
AO
2869MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2870if test -n "$MAGIC_CMD"; then
9b2b7d69
MM
2871 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2872echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 2873else
9b2b7d69
MM
2874 echo "$as_me:$LINENO: result: no" >&5
2875echo "${ECHO_T}no" >&6
ac48eca1
AO
2876fi
2877
d64552c5 2878if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 2879 if test -n "$ac_tool_prefix"; then
9b2b7d69
MM
2880 echo "$as_me:$LINENO: checking for file" >&5
2881echo $ECHO_N "checking for file... $ECHO_C" >&6
2882if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 2884else
f9c19112 2885 case $MAGIC_CMD in
ac48eca1 2886 /*)
d64552c5 2887 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
2888 ;;
2889 ?:/*)
d64552c5 2890 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
2891 ;;
2892 *)
d64552c5 2893 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
2894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2895 ac_dummy="/usr/bin:$PATH"
2896 for ac_dir in $ac_dummy; do
2897 test -z "$ac_dir" && ac_dir=.
2898 if test -f $ac_dir/file; then
d64552c5 2899 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 2900 if test -n "$file_magic_test_file"; then
f9c19112 2901 case $deplibs_check_method in
ac48eca1
AO
2902 "file_magic "*)
2903 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 2904 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
2905 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2906 egrep "$file_magic_regex" > /dev/null; then
2907 :
2908 else
2909 cat <<EOF 1>&2
2910
2911*** Warning: the command libtool uses to detect shared libraries,
2912*** $file_magic_cmd, produces output that libtool cannot recognize.
2913*** The result is that libtool may fail to recognize shared libraries
2914*** as such. This will affect the creation of libtool libraries that
2915*** depend on shared libraries, but programs linked with such libtool
2916*** libraries will work regardless of this problem. Nevertheless, you
2917*** may want to report the problem to your system manager and/or to
2918*** bug-libtool@gnu.org
2919
2920EOF
2921 fi ;;
2922 esac
2923 fi
2924 break
2925 fi
2926 done
2927 IFS="$ac_save_ifs"
d64552c5 2928 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
2929 ;;
2930esac
2931fi
2932
d64552c5
AO
2933MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2934if test -n "$MAGIC_CMD"; then
9b2b7d69
MM
2935 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2936echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 2937else
9b2b7d69
MM
2938 echo "$as_me:$LINENO: result: no" >&5
2939echo "${ECHO_T}no" >&6
ac48eca1
AO
2940fi
2941
2942 else
d64552c5 2943 MAGIC_CMD=:
ac48eca1
AO
2944 fi
2945fi
2946
2947 fi
2948 ;;
2949esac
2950
9b2b7d69
MM
2951if test -n "$ac_tool_prefix"; then
2952 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 2953set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9b2b7d69
MM
2954echo "$as_me:$LINENO: checking for $ac_word" >&5
2955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2956if test "${ac_cv_prog_RANLIB+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
2958else
2959 if test -n "$RANLIB"; then
2960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2961else
9b2b7d69
MM
2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963for as_dir in $PATH
2964do
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2972 fi
2973done
2974done
2975
ac48eca1
AO
2976fi
2977fi
9b2b7d69 2978RANLIB=$ac_cv_prog_RANLIB
ac48eca1 2979if test -n "$RANLIB"; then
9b2b7d69
MM
2980 echo "$as_me:$LINENO: result: $RANLIB" >&5
2981echo "${ECHO_T}$RANLIB" >&6
ac48eca1 2982else
9b2b7d69
MM
2983 echo "$as_me:$LINENO: result: no" >&5
2984echo "${ECHO_T}no" >&6
ac48eca1
AO
2985fi
2986
9b2b7d69 2987fi
ac48eca1 2988if test -z "$ac_cv_prog_RANLIB"; then
9b2b7d69 2989 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
2990 # Extract the first word of "ranlib", so it can be a program name with args.
2991set dummy ranlib; ac_word=$2
9b2b7d69
MM
2992echo "$as_me:$LINENO: checking for $ac_word" >&5
2993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2994if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 2996else
9b2b7d69
MM
2997 if test -n "$ac_ct_RANLIB"; then
2998 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d6d788bd 2999else
9b2b7d69
MM
3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001for as_dir in $PATH
3002do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_ac_ct_RANLIB="ranlib"
3008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011done
3012done
3013
3014 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3015fi
3016fi
9b2b7d69
MM
3017ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3018if test -n "$ac_ct_RANLIB"; then
3019 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3020echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3021else
9b2b7d69
MM
3022 echo "$as_me:$LINENO: result: no" >&5
3023echo "${ECHO_T}no" >&6
ac48eca1
AO
3024fi
3025
9b2b7d69 3026 RANLIB=$ac_ct_RANLIB
ac48eca1 3027else
9b2b7d69 3028 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3029fi
3030
9b2b7d69
MM
3031if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3033set dummy ${ac_tool_prefix}strip; ac_word=$2
9b2b7d69
MM
3034echo "$as_me:$LINENO: checking for $ac_word" >&5
3035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036if test "${ac_cv_prog_STRIP+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3038else
3039 if test -n "$STRIP"; then
3040 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3041else
9b2b7d69
MM
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053done
3054done
3055
ac48eca1
AO
3056fi
3057fi
9b2b7d69 3058STRIP=$ac_cv_prog_STRIP
ac48eca1 3059if test -n "$STRIP"; then
9b2b7d69
MM
3060 echo "$as_me:$LINENO: result: $STRIP" >&5
3061echo "${ECHO_T}$STRIP" >&6
ac48eca1 3062else
9b2b7d69
MM
3063 echo "$as_me:$LINENO: result: no" >&5
3064echo "${ECHO_T}no" >&6
ac48eca1
AO
3065fi
3066
9b2b7d69 3067fi
ac48eca1 3068if test -z "$ac_cv_prog_STRIP"; then
9b2b7d69 3069 ac_ct_STRIP=$STRIP
ac48eca1
AO
3070 # Extract the first word of "strip", so it can be a program name with args.
3071set dummy strip; ac_word=$2
9b2b7d69
MM
3072echo "$as_me:$LINENO: checking for $ac_word" >&5
3073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3074if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3076else
9b2b7d69
MM
3077 if test -n "$ac_ct_STRIP"; then
3078 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3079else
9b2b7d69
MM
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_ac_ct_STRIP="strip"
3088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3090 fi
3091done
3092done
3093
3094 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
d6d788bd
L
3095fi
3096fi
9b2b7d69
MM
3097ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3098if test -n "$ac_ct_STRIP"; then
3099 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3100echo "${ECHO_T}$ac_ct_STRIP" >&6
d6d788bd 3101else
9b2b7d69
MM
3102 echo "$as_me:$LINENO: result: no" >&5
3103echo "${ECHO_T}no" >&6
d6d788bd
L
3104fi
3105
9b2b7d69 3106 STRIP=$ac_ct_STRIP
d6d788bd 3107else
9b2b7d69 3108 STRIP="$ac_cv_prog_STRIP"
d6d788bd
L
3109fi
3110
252b5132 3111
252b5132 3112# Check for any special flags to pass to ltconfig.
bedf545c 3113libtool_flags="--cache-file=$cache_file"
252b5132
RH
3114test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3115test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
bedf545c 3116test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
f9c19112
HPN
3117test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3118test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3119
d6d788bd 3120
a74801ba
ILT
3121# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3122if test "${enable_libtool_lock+set}" = set; then
3123 enableval="$enable_libtool_lock"
a74801ba 3124
9b2b7d69 3125fi;
a74801ba
ILT
3126test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3127test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3128
9b2b7d69 3129
ac48eca1
AO
3130# Check whether --with-pic or --without-pic was given.
3131if test "${with_pic+set}" = set; then
3132 withval="$with_pic"
3133 pic_mode="$withval"
3134else
3135 pic_mode=default
9b2b7d69 3136fi;
ac48eca1
AO
3137test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3138test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3139
252b5132
RH
3140# Some flags need to be propagated to the compiler or linker for good
3141# libtool support.
f9c19112 3142case $host in
252b5132
RH
3143*-*-irix6*)
3144 # Find out which ABI we are using.
9b2b7d69
MM
3145 echo '#line 3145 "configure"' > conftest.$ac_ext
3146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147 (eval $ac_compile) 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; then
f9c19112 3151 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3152 *32-bit*)
3153 LD="${LD-ld} -32"
3154 ;;
3155 *N32*)
3156 LD="${LD-ld} -n32"
3157 ;;
3158 *64-bit*)
3159 LD="${LD-ld} -64"
3160 ;;
3161 esac
3162 fi
3163 rm -rf conftest*
3164 ;;
3165
4867be41
DJ
3166ia64-*-hpux*)
3167 # Find out which ABI we are using.
3168 echo 'int i;' > conftest.$ac_ext
9b2b7d69
MM
3169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170 (eval $ac_compile) 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; then
4867be41
DJ
3174 case "`/usr/bin/file conftest.o`" in
3175 *ELF-32*)
3176 HPUX_IA64_MODE="32"
3177 ;;
3178 *ELF-64*)
3179 HPUX_IA64_MODE="64"
3180 ;;
3181 esac
3182 fi
3183 rm -rf conftest*
3184 ;;
3185
252b5132
RH
3186*-*-sco3.2v5*)
3187 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
bedf545c 3188 SAVE_CFLAGS="$CFLAGS"
252b5132 3189 CFLAGS="$CFLAGS -belf"
9b2b7d69
MM
3190 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3191echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3192if test "${lt_cv_cc_needs_belf+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
bedf545c 3194else
9b2b7d69
MM
3195
3196
ac48eca1 3197 ac_ext=c
ac48eca1 3198ac_cpp='$CPP $CPPFLAGS'
9b2b7d69
MM
3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3202
9b2b7d69
MM
3203 cat >conftest.$ac_ext <<_ACEOF
3204#line $LINENO "configure"
bedf545c
ILT
3205#include "confdefs.h"
3206
9b2b7d69
MM
3207#ifdef F77_DUMMY_MAIN
3208# ifdef __cplusplus
3209 extern "C"
3210# endif
3211 int F77_DUMMY_MAIN() { return 1; }
3212#endif
3213int
3214main ()
3215{
6840198f 3216
9b2b7d69
MM
3217 ;
3218 return 0;
3219}
3220_ACEOF
3221rm -f conftest.$ac_objext conftest$ac_exeext
3222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3223 (eval $ac_link) 2>&5
3224 ac_status=$?
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } &&
3227 { ac_try='test -s conftest$ac_exeext'
3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 (eval $ac_try) 2>&5
3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; }; then
bedf545c
ILT
3233 lt_cv_cc_needs_belf=yes
3234else
9b2b7d69
MM
3235 echo "$as_me: failed program was:" >&5
3236cat conftest.$ac_ext >&5
3237lt_cv_cc_needs_belf=no
bedf545c 3238fi
9b2b7d69 3239rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ac48eca1 3240 ac_ext=c
ac48eca1 3241ac_cpp='$CPP $CPPFLAGS'
9b2b7d69
MM
3242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3245
bedf545c 3246fi
9b2b7d69
MM
3247echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3248echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
bedf545c
ILT
3249 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3251 CFLAGS="$SAVE_CFLAGS"
3252 fi
252b5132
RH
3253 ;;
3254
d6d788bd 3255
252b5132
RH
3256esac
3257
d6d788bd 3258
bedf545c 3259# Save cache, so that ltconfig can load it
9b2b7d69 3260cat >confcache <<\_ACEOF
bedf545c
ILT
3261# This file is a shell script that caches the results of configure
3262# tests run on this system so they can be shared between configure
9b2b7d69
MM
3263# scripts and configure runs, see configure's option --config-cache.
3264# It is not useful on other systems. If it contains results you don't
3265# want to keep, you may remove or edit it.
bedf545c 3266#
9b2b7d69
MM
3267# config.status only pays attention to the cache file if you give it
3268# the --recheck option to rerun configure.
bedf545c 3269#
9b2b7d69
MM
3270# `ac_cv_env_foo' variables (set or unset) will be overriden when
3271# loading this file, other *unset* `ac_cv_foo' will be assigned the
3272# following values.
3273
3274_ACEOF
3275
bedf545c 3276# The following way of writing the cache mishandles newlines in values,
9b2b7d69
MM
3277# but we know of no workaround that is simple, portable, and efficient.
3278# So, don't put newlines in cache variables' values.
3279# Ultrix sh set writes to stderr and can't be redirected directly,
3280# and sets the high bit in the cache file unless we assign to the vars.
3281{
3282 (set) 2>&1 |
3283 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3284 *ac_space=\ *)
3285 # `set' does not quote correctly, so add quotes (double-quote
3286 # substitution turns \\\\ into \\, and sed turns \\ into \).
3287 sed -n \
3288 "s/'/'\\\\''/g;
3289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3290 ;;
3291 *)
3292 # `set' quotes correctly as required by POSIX, so do not add quotes.
3293 sed -n \
3294 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3295 ;;
3296 esac;
3297} |
3298 sed '
3299 t clear
3300 : clear
3301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3302 t end
3303 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3304 : end' >>confcache
3305if cmp -s $cache_file confcache; then :; else
bedf545c 3306 if test -w $cache_file; then
9b2b7d69
MM
3307 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3308 cat confcache >$cache_file
bedf545c
ILT
3309 else
3310 echo "not updating unwritable cache $cache_file"
3311 fi
3312fi
3313rm -f confcache
3314
252b5132 3315# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 3316AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 3317MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
3318LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3319AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3320objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3321deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 3322${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 3323$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
9b2b7d69
MM
3324|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3325echo "$as_me: error: libtool configure failed" >&2;}
3326 { (exit 1); exit 1; }; }
252b5132 3327
bedf545c
ILT
3328# Reload cache, that may have been modified by ltconfig
3329if test -r "$cache_file"; then
9b2b7d69
MM
3330 # Some versions of bash will fail to source /dev/null (special
3331 # files actually), so we avoid doing that.
3332 if test -f "$cache_file"; then
3333 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3334echo "$as_me: loading cache $cache_file" >&6;}
3335 case $cache_file in
3336 [\\/]* | ?:[\\/]* ) . $cache_file;;
3337 *) . ./$cache_file;;
3338 esac
3339 fi
bedf545c 3340else
9b2b7d69
MM
3341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3342echo "$as_me: creating cache $cache_file" >&6;}
3343 >$cache_file
bedf545c
ILT
3344fi
3345
d6d788bd 3346
bedf545c 3347# This can be used to rebuild libtool when needed
ac48eca1 3348LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
bedf545c
ILT
3349
3350# Always use our own libtool.
3351LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3352
252b5132
RH
3353# Redirect the config.log output again, so that the ltconfig log is not
3354# clobbered by the next message.
3355exec 5>>./config.log
3356
d6d788bd 3357
9b2b7d69
MM
3358
3359
3360
3361
d6d788bd 3362
252b5132
RH
3363user_bfd_gas=
3364# Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
3365if test "${enable_bfd_assembler+set}" = set; then
3366 enableval="$enable_bfd_assembler"
3367 case "${enableval}" in
3368 yes) need_bfd=yes user_bfd_gas=yes ;;
3369 no) user_bfd_gas=no ;;
9b2b7d69
MM
3370 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
3371echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
3372 { (exit 1); exit 1; }; } ;;
252b5132 3373esac
9b2b7d69 3374fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
3375if test "${enable_targets+set}" = set; then
3376 enableval="$enable_targets"
3377 case "${enableval}" in
9b2b7d69
MM
3378 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3379echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3380 { (exit 1); exit 1; }; }
252b5132
RH
3381 ;;
3382 no) enable_targets= ;;
3383 *) enable_targets=$enableval ;;
3384esac
9b2b7d69 3385fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
3386if test "${enable_commonbfdlib+set}" = set; then
3387 enableval="$enable_commonbfdlib"
3388 case "${enableval}" in
3389 yes) commonbfdlib=true ;;
3390 no) commonbfdlib=false ;;
9b2b7d69
MM
3391 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3392echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3393 { (exit 1); exit 1; }; } ;;
252b5132 3394esac
9b2b7d69 3395fi;
252b5132
RH
3396using_cgen=no
3397
0218d1e4 3398build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
3399# Check whether --enable-build-warnings or --disable-build-warnings was given.
3400if test "${enable_build_warnings+set}" = set; then
3401 enableval="$enable_build_warnings"
3402 case "${enableval}" in
3403 yes) ;;
3404 no) build_warnings="-w";;
3405 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3406 build_warnings="${build_warnings} ${t}";;
3407 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3408 build_warnings="${t} ${build_warnings}";;
3409 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3410esac
3411if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3412 echo "Setting warning flags = $build_warnings" 6>&1
3413fi
9b2b7d69 3414fi; WARN_CFLAGS=""
a2d91340
AC
3415if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
3416 WARN_CFLAGS="${build_warnings}"
3417fi
3418
d6d788bd 3419
252b5132
RH
3420# Generate a header file
3421
9b2b7d69 3422ac_config_headers="$ac_config_headers config.h:config.in"
252b5132 3423
9b2b7d69 3424ac_config_commands="$ac_config_commands default-1"
d6d788bd 3425
252b5132 3426
76a27922
ILT
3427# If we are on a DOS filesystem, we must use gdb.ini rather than
3428# .gdbinit.
3429GDBINIT=".gdbinit"
3430case "${host}" in
3431 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
3432 GDBINIT="gdb.ini"
3433 ;;
3434esac
3435
d6d788bd 3436
252b5132
RH
3437te_file=generic
3438
3439# Makefile target for installing gas in $(tooldir)/bin.
3440install_tooldir=install-exec-tooldir
3441
3442canon_targets=""
15886821 3443all_targets=no
252b5132
RH
3444if test -n "$enable_targets" ; then
3445 for t in `echo $enable_targets | sed 's/,/ /g'`; do
15886821
L
3446 if test $t = "all"; then
3447 all_targets=yes
3448 continue
3449 fi
6d83c84b 3450 result=`$ac_config_sub $t 2>/dev/null`
252b5132
RH
3451 if test -n "$result" ; then
3452 canon_targets="$canon_targets $result"
3453# else
3454# # Permit "all", etc. We don't support it yet though.
3455# canon_targets="$canon_targets $t"
3456 fi
3457 done
3458 _gas_uniq_list="$canon_targets"
3459_gas_uniq_newlist=""
3460for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
3461 case $_gas_uniq_i in
3462 _gas_uniq_dummy) ;;
3463 *) case " $_gas_uniq_newlist " in
3464 *" $_gas_uniq_i "*) ;;
3465 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
3466 esac ;;
3467 esac
3468done
3469canon_targets=$_gas_uniq_newlist
3470
3471fi
3472
3473emulations=""
3474
3475for this_target in $target $canon_targets ; do
3476
3477 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
3478
3479 # check for architecture variants
3480 arch=
3481 endian=
3482 case ${cpu} in
3483 alpha*) cpu_type=alpha ;;
3484 armeb) cpu_type=arm endian=big ;;
3485 arm*) cpu_type=arm endian=little ;;
3486 armb*) cpu_type=arm endian=little ;;
3487 armv*l) cpu_type=arm endian=little ;;
3488 armv*b) cpu_type=arm endian=big ;;
077b8428 3489 xscale*) cpu_type=arm endian=little ;;
252b5132
RH
3490 strongarm*) cpu_type=arm endian=little ;;
3491 thumb*) cpu_type=arm endian=little ;;
3492 hppa*) cpu_type=hppa ;;
81c425d1 3493 i[3456]86) cpu_type=i386 arch=i386;;
a735d1cd 3494 x86_64) cpu_type=i386 arch=x86_64;;
800eeca4 3495 ia64) cpu_type=ia64 ;;
6f6ef0fa 3496 m6811|m6812|m68hc12) cpu_type=m68hc11 ;;
252b5132
RH
3497 m680[012346]0) cpu_type=m68k ;;
3498 m68008) cpu_type=m68k ;;
3499 m683??) cpu_type=m68k ;;
3500 m5200) cpu_type=m68k ;;
3501 m8*) cpu_type=m88k ;;
3502 mips*el) cpu_type=mips endian=little ;;
3503 mips*) cpu_type=mips endian=big ;;
3b16e843 3504 or32*) cpu_type=or32 endian=big ;;
041dd5a9
ILT
3505 pjl*) cpu_type=pj endian=little ;;
3506 pj*) cpu_type=pj endian=big ;;
0baf16f2 3507 powerpc*le*) cpu_type=ppc endian=little ;;
252b5132
RH
3508 powerpc*) cpu_type=ppc endian=big ;;
3509 rs6000*) cpu_type=ppc ;;
a85d7ed0
NC
3510 s390x*) cpu_type=s390 arch=s390x ;;
3511 s390*) cpu_type=s390 arch=s390 ;;
324bfcf3 3512 sh64*) cpu_type=sh64 endian=big;;
8d05742f 3513 sh*le) cpu_type=sh endian=little ;;
05982cac 3514 sh*) cpu_type=sh endian=big ;;
252b5132
RH
3515 sparclite*) cpu_type=sparc arch=sparclite ;;
3516 sparclet*) cpu_type=sparc arch=sparclet ;;
3517 sparc64*) cpu_type=sparc arch=v9-64 ;;
3518 sparc86x*) cpu_type=sparc arch=sparc86x ;;
3519 sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
3520 v850*) cpu_type=v850 ;;
3521 *) cpu_type=${cpu} ;;
3522 esac
3523
3524 if test ${this_target} = $target ; then
3525 target_cpu_type=${cpu_type}
3526 elif test ${target_cpu_type} != ${cpu_type} ; then
3527 continue
3528 fi
3529
3530 generic_target=${cpu_type}-$vendor-$os
3531 dev=no
3532 bfd_gas=no
3533 em=generic
c1e4eef7 3534 mips_stabs_elf=
252b5132
RH
3535
3536 # assign object format
3537 case ${generic_target} in
3538 a29k-*-coff) fmt=coff ;;
3539 a29k-amd-udi) fmt=coff ;;
3540 a29k-amd-ebmon) fmt=coff ;;
3541 a29k-nyu-sym1) fmt=coff ;;
5f68c319 3542 a29k-*-rtems*) fmt=coff ;;
252b5132
RH
3543 a29k-*-vxworks*) fmt=coff ;;
3544
3545 alpha*-*-*vms*) fmt=evax ;;
3546 alpha*-*-netware*) fmt=ecoff ;;
3547 alpha*-*-openbsd*) fmt=ecoff ;;
3548 alpha*-*-osf*) fmt=ecoff ;;
3549 alpha*-*-linuxecoff*) fmt=ecoff ;;
3550 alpha*-*-linux-gnu*) fmt=elf em=linux ;;
3551 alpha*-*-netbsd*) fmt=elf em=nbsd ;;
3552
3553 arc-*-elf*) fmt=elf bfd_gas=yes ;;
3554
3555 arm-*-aout) fmt=aout ;;
3556 arm-*-coff | thumb-*-coff) fmt=coff ;;
5f68c319 3557 arm-*-rtems | thumb-*-rtems) fmt=elf ;;
252b5132 3558 arm-*-elf | thumb-*-elf) fmt=elf ;;
0decc840 3559 arm*-*-conix*) fmt=elf ;;
252b5132 3560 arm-*-linux*aout*) fmt=aout em=linux ;;
9b2b7d69 3561 arm*-*-linux-gnu* | arm*-*-uclinux*)
222f8079 3562 fmt=elf em=linux ;;
8bdcf8ca 3563 arm-*-netbsdelf*) fmt=elf em=nbsd ;;
056a1d49 3564 arm-*-netbsd* | arm-*-openbsd*) fmt=aout em=nbsd ;;
252b5132
RH
3565 arm-*-oabi | thumb-*-oabi) fmt=elf ;;
3566 arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
c1e73230 3567 arm-*-wince) fmt=coff em=wince-pe ;;
252b5132
RH
3568 arm-*-pe | thumb-*-pe) fmt=coff em=pe ;;
3569 arm-*-riscix*) fmt=aout em=riscix ;;
87748b32 3570 arm-*-vxworks) fmt=coff ;;
252b5132 3571
adde6300
AM
3572 avr-*-*) fmt=elf bfd_gas=yes ;;
3573
3bcbcc3d
HPN
3574 cris-*-*) fmt=multi bfd_gas=yes ;;
3575
252b5132
RH
3576 d10v-*-*) fmt=elf bfd_gas=yes ;;
3577 d30v-*-*) fmt=elf bfd_gas=yes ;;
3578
d6d788bd 3579
252b5132
RH
3580 fr30-*-*) fmt=elf bfd_gas=yes ;;
3581
ad1079af
AM
3582 hppa-*-linux-gnu*) case ${cpu} in
3583 hppa*64*)
3584 fmt=elf em=hppalinux64;;
3585 hppa*)
3586 fmt=elf em=linux;;
3587 esac ;;
252b5132
RH
3588 hppa-*-*elf*) fmt=elf em=hppa ;;
3589 hppa-*-lites*) fmt=elf em=hppa ;;
006336b8 3590 hppa-*-netbsd*) fmt=elf em=nbsd ;;
252b5132
RH
3591 hppa-*-osf*) fmt=som em=hppa ;;
3592 hppa-*-rtems*) fmt=elf em=hppa ;;
ad1079af 3593 hppa-*-hpux11*) case ${cpu} in
c9e10a08 3594 hppa*64*)
ad1079af 3595 fmt=elf em=hppa64 ;;
c9e10a08 3596 hppa*)
ad1079af
AM
3597 fmt=som em=hppa ;;
3598 esac ;;
252b5132
RH
3599 hppa-*-hpux*) fmt=som em=hppa ;;
3600 hppa-*-mpeix*) fmt=som em=hppa ;;
3601 hppa-*-bsd*) fmt=som em=hppa ;;
3602 hppa-*-hiux*) fmt=som em=hppa ;;
3603
5f68c319 3604 h8300-*-rtems*) fmt=coff ;;
252b5132 3605 h8300-*-coff) fmt=coff ;;
ccad732d 3606 h8300-*-elf) fmt=elf ;;
e66457fb
AM
3607 h8500-*-rtems*) fmt=coff ;;
3608 h8500-*-coff) fmt=coff ;;
252b5132 3609
5b93d8bb 3610 i370-*-elf* | i370-*-linux*) fmt=elf ;;
252b5132
RH
3611 i386-ibm-aix*) fmt=coff em=i386aix ;;
3612 i386-sequent-bsd*) fmt=aout em=dynix bfd_gas=yes ;;
3613 i386-*-beospe*) fmt=coff em=pe bfd_gas=yes ;;
3614 i386-*-beoself* | i386-*-beos*) fmt=elf bfd_gas=yes ;;
3615 i386-*-bsd*) fmt=aout em=386bsd ;;
3616 i386-*-netbsd0.8) fmt=aout em=386bsd ;;
8a8b2d4b
AJ
3617 i386-*-netbsd*) em=nbsd bfd_gas=yes
3618 case ${cpu} in
3619 x86_64) fmt=elf ;;
3620 *) case ${os} in
3621 *elf*) fmt=elf ;;
3622 *) fmt=aout ;;
3623 esac
3624 ;;
3625 esac
3626 ;;
252b5132 3627 i386-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes;;
c709b096 3628 i386-*-linux*aout* | i386-*-linux*oldld) fmt=aout em=linux ;;
252b5132
RH
3629 i386-*-linux*coff*) fmt=coff em=linux ;;
3630 i386-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
a735d1cd 3631 x86_64-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
252b5132 3632 i386-*-lynxos*) fmt=coff em=lynx ;;
fc997f4b 3633 i386-*-sysv[45]* | i386-*-solaris* | i386-*-elf)
252b5132 3634 fmt=elf bfd_gas=yes ;;
f98fd99f 3635 i386-*-freebsdaout* | i386-*-freebsd[12].* | i386-*-freebsd[12])
008960a5 3636 fmt=aout em=386bsd ;;
252b5132
RH
3637 i386-*-coff | i386-*-sysv* | i386-*-sco3.2v5*coff | i386-*-isc*)
3638 fmt=coff ;;
3639 i386-*-sco3.2v5*) fmt=elf
3640 if test ${this_target} = $target; then
9b2b7d69
MM
3641
3642cat >>confdefs.h <<\_ACEOF
252b5132 3643#define SCO_ELF 1
9b2b7d69 3644_ACEOF
252b5132
RH
3645
3646 fi
3647 ;;
3648 i386-*-sco3.2*) fmt=coff ;;
3649 i386-*-vsta) fmt=aout ;;
3650 i386-*-msdosdjgpp* | i386-*-go32* | i386-go32-rtems*)
349a994c 3651 fmt=coff em=go32 bfd_gas=yes
9b2b7d69
MM
3652
3653cat >>confdefs.h <<\_ACEOF
56385375 3654#define STRICTCOFF 1
9b2b7d69 3655_ACEOF
56385375
L
3656
3657 ;;
53f3de98 3658 i386-*-rtemself*) fmt=elf ;;
f6314f3e
PB
3659 i386-*-rtemscoff*) fmt=coff ;;
3660 i386-*-rtems*) fmt=elf ;;
252b5132
RH
3661 i386-*-gnu*) fmt=elf ;;
3662 i386-*-mach*)
3663 fmt=aout em=mach bfd_gas=yes ;;
3664 i386-*-msdos*) fmt=aout ;;
3665 i386-*-moss*) fmt=elf ;;
c1e73230 3666 i386-*-pe) fmt=coff em=pe bfd_gas=yes ;;
252b5132 3667 i386-*-cygwin*) fmt=coff em=pe bfd_gas=yes ;;
9750fcc5 3668 i386-*-interix*) fmt=coff em=interix bfd_gas=yes ;;
252b5132 3669 i386-*-mingw32*) fmt=coff em=pe bfd_gas=yes ;;
c1e73230 3670 i386-*-*nt*) fmt=coff em=pe bfd_gas=yes ;;
29fe79d3 3671 i386-*-vxworks*) fmt=aout ;;
59ff2774 3672 i386-*-chaos) fmt=elf ;;
aa8c34c3
JE
3673 i860-stardent-sysv4* | i860-stardent-elf*)
3674 fmt=elf bfd_gas=yes endian=little
9b2b7d69
MM
3675 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
3676echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} ;;
252b5132
RH
3677 i960-*-bout) fmt=bout ;;
3678 i960-*-coff) fmt=coff em=ic960 ;;
3679 i960-*-rtems*) fmt=coff em=ic960 ;;
3680 i960-*-nindy*) fmt=bout ;;
3681 i960-*-vxworks4*) fmt=bout ;;
3682 i960-*-vxworks5.0) fmt=bout ;;
3683 i960-*-vxworks5.*) fmt=coff em=ic960 ;;
3684 i960-*-vxworks*) fmt=bout ;;
bedf545c 3685 i960-*-elf*) fmt=elf ;;
252b5132 3686
800eeca4 3687 ia64-*-elf*) fmt=elf ;;
7463c317 3688 ia64-*-aix*) fmt=elf em=ia64aix ;;
800eeca4 3689 ia64-*-linux-gnu*) fmt=elf em=linux ;;
44f5c83a 3690 ia64-*-hpux*) fmt=elf em=hpux ;;
9596feea 3691 ia64-*-netbsd*) fmt=elf em=nbsd ;;
800eeca4 3692
252b5132
RH
3693 m32r-*-*) fmt=elf bfd_gas=yes ;;
3694
60bcf0fa
NC
3695 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)fmt=elf bfd_gas=yes ;;
3696
252b5132
RH
3697 m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*)
3698 fmt=aout em=sun3 ;;
3699 m68k-motorola-sysv*) fmt=coff em=delta ;;
3700 m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
3701 m68k-apollo-*) fmt=coff em=apollo ;;
3702 m68k-*-sysv4*) # must be before -sysv*
3703 fmt=elf em=svr4 ;;
3704 m68k-*-elf*) fmt=elf ;;
f6314f3e 3705 m68k-*-coff | m68k-*-sysv* | m68k-*-rtemscoff*)
252b5132 3706 fmt=coff ;;
f6314f3e 3707 m68k-*-rtems*) fmt=elf ;;
252b5132
RH
3708 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
3709 m68k-*-linux*aout*) fmt=aout em=linux ;;
3710 m68k-*-linux-gnu*) fmt=elf em=linux ;;
3711 m68k-*-gnu*) fmt=elf ;;
3712 m68k-*-lynxos*) fmt=coff em=lynx ;;
0b69cd08
MG
3713 m68k-*-netbsdelf*) fmt=elf em=nbsd bfd_gas=yes ;;
3714 m68k-*-netbsdaout* | m68k-*-netbsd*)
3715 fmt=aout em=nbsd bfd_gas=yes ;;
252b5132
RH
3716 m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
3717 m68k-apple-aux*) fmt=coff em=aux ;;
3718 m68k-*-psos*) fmt=elf em=psos;;
3719
3720 m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
3721 m88k-*-coff*) fmt=coff ;;
3722
3723 mcore-*-elf) fmt=elf bfd_gas=yes ;;
3724 mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
3725
3726 # don't change em like *-*-bsd does
252b5132
RH
3727 mips-dec-openbsd*) fmt=elf endian=little ;;
3728 mips-dec-bsd*) fmt=aout endian=little ;;
3729 mips-sony-bsd*) fmt=ecoff ;;
9b2b7d69
MM
3730 mips-*-bsd*) { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
3731echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
3732 { (exit 1); exit 1; }; } ;;
252b5132
RH
3733 mips-*-ultrix*) fmt=ecoff endian=little ;;
3734 mips-*-osf*) fmt=ecoff endian=little ;;
3735 mips-*-ecoff*) fmt=ecoff ;;
056350c6 3736 mips-*-pe*) fmt=coff endian=little em=pe ;;
252b5132
RH
3737 mips-*-irix6*) fmt=elf ;;
3738 mips-*-irix5*) fmt=elf ;;
3739 mips-*-irix*) fmt=ecoff ;;
3740 mips-*-lnews*) fmt=ecoff em=lnews ;;
3741 mips-*-riscos*) fmt=ecoff ;;
c1e4eef7 3742 mips*-*-linux*) fmt=elf em=tmips mips_stabs_elf=y ;;
f85f789b
L
3743 mips-*-sysv4*MP* | mips-*-gnu*)
3744 fmt=elf em=tmips ;;
252b5132 3745 mips-*-sysv*) fmt=ecoff ;;
9fb9af6e 3746 mips-*-elf* | mips-*-rtems* | mips-*-netbsd* | mips-*-openbsd*)
252b5132 3747 fmt=elf ;;
c1e4eef7 3748 mips-*-vxworks*) fmt=elf mips_stabs_elf=y ;;
3c3bdf30 3749 mmix-*-*) fmt=elf bfd_gas=yes ;;
252b5132
RH
3750 mn10200-*-*) fmt=elf bfd_gas=yes ;;
3751 mn10300-*-*) fmt=elf bfd_gas=yes ;;
c7e40348 3752 openrisc-*-*) fmt=elf bfd_gas=yes ;;
3b16e843
NC
3753 or32-*-rtems*) fmt=coff ;;
3754 or32-*-coff) fmt=coff ;;
3755 or32-*-elf) fmt=elf ;;
041dd5a9 3756 pj*) fmt=elf ;;
252b5132
RH
3757 ppc-*-pe | ppc-*-cygwin* | ppc-*-winnt*)
3758 fmt=coff em=pe ;;
eb1e0e80 3759 ppc-*-aix5*) fmt=coff em=aix5 ;;
252b5132
RH
3760 ppc-*-aix*) fmt=coff ;;
3761 ppc-*-beos*) fmt=coff ;;
3762 ppc-*-*bsd* | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
3763 fmt=elf ;;
3764 ppc-*-linux-gnu*) fmt=elf
3765 case "$endian" in
3766 big) ;;
9b2b7d69
MM
3767 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
3768echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
3769 { (exit 1); exit 1; }; } ;;
252b5132
RH
3770 esac
3771 ;;
3772 ppc-*-solaris*) fmt=elf
3773 if test ${this_target} = $target; then
9b2b7d69
MM
3774
3775cat >>confdefs.h <<\_ACEOF
252b5132 3776#define TARGET_SOLARIS_COMMENT 1
9b2b7d69 3777_ACEOF
252b5132
RH
3778
3779 fi
3780 if test x${endian} = xbig; then
9b2b7d69
MM
3781 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
3782echo "$as_me: error: Solaris must be configured little endian" >&2;}
3783 { (exit 1); exit 1; }; }
252b5132
RH
3784 fi
3785 ;;
3786 ppc-*-rtems*) fmt=elf ;;
3787 ppc-*-macos* | ppc-*-mpw*)
3788 fmt=coff em=macos ;;
3789 ppc-*-netware*) fmt=elf em=ppcnw ;;
e4a86f6f 3790 ppc-*-vxworks*) fmt=elf ;;
9b2b7d69 3791 ppc-*-windiss*) fmt=elf ;;
252b5132 3792
a85d7ed0
NC
3793 s390x-*-linux-gnu*) fmt=elf em=linux ;;
3794 s390-*-linux-gnu*) fmt=elf em=linux ;;
3795
131b0983
NC
3796 sh*-*-linux*) fmt=elf em=linux
3797 case ${cpu} in
3798 sh*eb)
3799 endian=big ;;
3800 sh*)
3801 endian=little ;;
3802 esac ;;
8d05742f 3803 sh*-*-netbsdelf*) fmt=elf em=nbsd ;;
252b5132 3804 sh-*-elf*) fmt=elf ;;
e135f41b 3805 sh-*-coff*) fmt=coff bfd_gas=yes;;
05982cac 3806 sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
53f3de98 3807 sh-*-rtemself*) fmt=elf ;;
e135f41b 3808 sh-*-rtems*) fmt=coff bfd_gas=yes;;
252b5132 3809
324bfcf3 3810 sh64-*-elf*) fmt=elf ;;
252b5132
RH
3811 ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
3812 ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
3813 ns32k-pc532-openbsd*) fmt=aout em=nbsd532 ;;
3814
5f68c319
NC
3815 sparc-*-rtemsaout*) fmt=aout ;;
3816 sparc-*-rtemself*) fmt=elf ;;
3817 sparc-*-rtems*) fmt=elf ;;
252b5132
RH
3818 sparc-*-sunos4*) fmt=aout em=sun3 ;;
3819 sparc-*-aout | sparc*-*-vxworks*)
3820 fmt=aout em=sparcaout ;;
3821 sparc-*-coff) fmt=coff ;;
3822 sparc-*-linux*aout*) fmt=aout em=linux ;;
3823 sparc-*-linux-gnu*) fmt=elf em=linux ;;
3824 sparc-*-lynxos*) fmt=coff em=lynx ;;
3825 sparc-fujitsu-none) fmt=aout ;;
3826 sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*)
3827 fmt=elf ;;
98e5953c
JL
3828 sparc-*-netbsd*) em=nbsd bfd_gas=yes
3829 case ${cpu} in
3830 sparc) case ${os} in
3831 *elf*) fmt=elf ;;
3832 *) fmt=aout ;;
3833 esac ;;
3834 sparc64) fmt=elf ;;
3835 esac
3836 ;;
252b5132
RH
3837 sparc-*-openbsd*) fmt=aout em=nbsd ;;
3838
3839 strongarm-*-coff) fmt=coff ;;
3840 strongarm-*-elf) fmt=elf ;;
077b8428
NC
3841 xscale-*-coff) fmt=coff ;;
3842 xscale-*-elf) fmt=elf ;;
252b5132
RH
3843
3844 tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
3845 tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
39bec121
TW
3846 tic54x-*-* | c54x*-*-*)
3847 fmt=coff bfd_gas=yes need_libm=yes;;
252b5132
RH
3848 tic80-*-*) fmt=coff ;;
3849
3850 v850-*-*) fmt=elf bfd_gas=yes ;;
3851 v850e-*-*) fmt=elf bfd_gas=yes ;;
3852 v850ea-*-*) fmt=elf bfd_gas=yes ;;
3853
3854 vax-*-bsd* | vax-*-ultrix*)
3855 fmt=aout ;;
3856 vax-*-vms) fmt=vms ;;
3857
93fbbb04
GK
3858 w65-*-*) fmt=coff ;;
3859
3860 xstormy16-*-*) fmt=elf bfd_gas=yes ;;
d6d788bd 3861
252b5132
RH
3862 z8k-*-coff | z8k-*-sim)
3863 fmt=coff ;;
3864
252b5132
RH
3865 *-*-aout | *-*-scout)
3866 fmt=aout ;;
1c33f1da 3867 *-*-freebsd*) fmt=elf em=freebsd bfd_gas=yes ;;
252b5132
RH
3868 *-*-nindy*)
3869 fmt=bout ;;
3870 *-*-bsd*)
3871 fmt=aout em=sun3 ;;
3872 *-*-generic) fmt=generic ;;
3873 *-*-xray | *-*-hms) fmt=coff ;;
3874 *-*-sim) fmt=coff ;;
3875 *-*-elf | *-*-sysv4* | *-*-solaris*)
9b2b7d69
MM
3876 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is incomplete." >&5
3877echo "$as_me: WARNING: GAS support for ${generic_target} is incomplete." >&2;}
252b5132
RH
3878 fmt=elf dev=yes ;;
3879 *-*-vxworks) fmt=aout ;;
3880 *-*-netware) fmt=elf ;;
3881 esac
3882
3883 if test ${this_target} = $target ; then
3884 endian_def=
3885 if test x${endian} = xbig; then
3886 endian_def=1
3887 elif test x${endian} = xlittle; then
3888 endian_def=0
3889 fi
3890 if test x${endian_def} != x; then
9b2b7d69
MM
3891
3892cat >>confdefs.h <<_ACEOF
252b5132 3893#define TARGET_BYTES_BIG_ENDIAN $endian_def
9b2b7d69 3894_ACEOF
252b5132
RH
3895
3896 fi
3897 fi
3898
c1e4eef7 3899 if test x${mips_stabs_elf} != x; then
9b2b7d69
MM
3900
3901cat >>confdefs.h <<\_ACEOF
c1e4eef7 3902#define MIPS_STABS_ELF 1
9b2b7d69 3903_ACEOF
c1e4eef7
AM
3904
3905 fi
3906
252b5132
RH
3907 case ${cpu_type}-${fmt} in
3908 alpha*-*) bfd_gas=yes ;;
3909 arm-*) bfd_gas=yes ;;
3910 # not yet
3911 # i386-aout) bfd_gas=preferred ;;
800eeca4 3912 ia64*-*) bfd_gas=yes ;;
252b5132
RH
3913 mips-*) bfd_gas=yes ;;
3914 ns32k-*) bfd_gas=yes ;;
e135f41b 3915 pdp11-*) bfd_gas=yes ;;
252b5132
RH
3916 ppc-*) bfd_gas=yes ;;
3917 sparc-*) bfd_gas=yes ;;
3918 strongarm-*) bfd_gas=yes ;;
a735d1cd 3919 xscale-*) bfd_gas=yes ;;
252b5132
RH
3920 *-elf) bfd_gas=yes ;;
3921 *-ecoff) bfd_gas=yes ;;
3922 *-som) bfd_gas=yes ;;
4c63da97
AM
3923 #enable bfd for coff and aout to allow testing if a bfd target is
3924 #the primary target, but not for coff or aout as the primary target
4ca72d38 3925 i386-coff) if test x${primary_bfd_gas} = xyes; then bfd_gas=yes; fi ;;
4c63da97 3926 i386-aout) if test x${primary_bfd_gas} = xyes; then bfd_gas=yes; fi ;;
252b5132
RH
3927 *) ;;
3928 esac
3929
3930# Other random stuff.
3931
3932 # Do we need the opcodes library?
3933 case ${cpu_type} in
3934 vax | i386 | tic30)
3935 ;;
3936
3937 *)
3938 need_opcodes=yes
3939
3940 case "${enable_shared}" in
3941 yes) shared_opcodes=true ;;
3942 *opcodes*) shared_opcodes=true ;;
3943 *) shared_opcodes=false ;;
3944 esac
3945 if test "${shared_opcodes}" = "true"; then
3946 # A shared libopcodes must be linked against libbfd.
3947 need_bfd=yes
3948 fi
3949 ;;
3950 esac
3951
3952 # Any other special object files needed ?
3953 case ${cpu_type} in
c7e40348 3954 fr30 | m32r | openrisc)
252b5132
RH
3955 using_cgen=yes
3956 ;;
3957
3958 m68k)
3959 case ${extra_objects} in
3960 *m68k-parse.o*) ;;
3961 *) extra_objects="$extra_objects m68k-parse.o" ;;
3962 esac
3963 ;;
3964
3965 mips)
9b2b7d69 3966 echo ${extra_objects} | grep -s "itbl-parse.o"
252b5132
RH
3967 if test $? -ne 0 ; then
3968 extra_objects="$extra_objects itbl-parse.o"
3969 fi
3970
9b2b7d69 3971 echo ${extra_objects} | grep -s "itbl-lex.o"
252b5132
RH
3972 if test $? -ne 0 ; then
3973 extra_objects="$extra_objects itbl-lex.o"
3974 fi
3975
9b2b7d69 3976 echo ${extra_objects} | grep -s "itbl-ops.o"
252b5132
RH
3977 if test $? -ne 0 ; then
3978 extra_objects="$extra_objects itbl-ops.o"
3979 fi
3980 ;;
3981
c1e4eef7 3982 i386 | s390 | sparc)
252b5132 3983 if test $this_target = $target ; then
9b2b7d69
MM
3984
3985cat >>confdefs.h <<_ACEOF
252b5132 3986#define DEFAULT_ARCH "${arch}"
9b2b7d69 3987_ACEOF
252b5132
RH
3988
3989 fi
3990 ;;
93fbbb04
GK
3991
3992 xstormy16)
3993 using_cgen=yes
3994 ;;
3995
252b5132
RH
3996 *)
3997 ;;
3998 esac
3999
4000 if test $using_cgen = yes ; then
4001 case "x${extra_objects}" in
4002 *cgen.o*) ;;
4003 *) extra_objects="$extra_objects cgen.o" ;;
4004 esac
4005 fi
4006
4007# See if we really can support this configuration with the emulation code.
4008
4009 if test $this_target = $target ; then
4010 primary_bfd_gas=$bfd_gas
4011 obj_format=$fmt
4012 te_file=$em
4013
4014 if test $bfd_gas = no ; then
4015 # Can't support other configurations this way.
4016 break
4017 fi
4018 elif test $bfd_gas = no ; then
4019 # Can't support this configuration.
4020 break
4021 fi
4022
4023# From target name and format, produce a list of supported emulations.
4024
4025 case ${generic_target}-${fmt} in
4026 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
056a1d49 4027 mips*-*-linux*-*) case "$endian" in
df3bcd6f
L
4028 big) emulation="mipsbelf mipslelf mipself" ;;
4029 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132
RH
4030 esac ;;
4031 mips-*-lnews*-ecoff) ;;
4032 mips-*-*-ecoff) case "$endian" in
4033 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4034 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4035 esac ;;
4036 mips-*-*-elf) case "$endian" in
4037 big) emulation="mipsbelf mipslelf mipself" ;;
4038 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132 4039 esac ;;
906fac54 4040 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
119caedd
L
4041 # i386-pc-pe-coff != i386-pc-coff.
4042 i386-*-pe-coff) ;;
4c63da97
AM
4043 # Uncommenting the next line will turn on support for i386 AOUT
4044 # for the default linux configuration
4045 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4046 #
4047 i386-*-aout) emulation="i386aout" ;;
4ca72d38 4048 i386-*-coff) emulation="i386coff" ;;
4c63da97 4049 i386-*-elf) emulation="i386elf" ;;
3bcbcc3d 4050
f9c19112
HPN
4051 # Always all formats. The first stated emulation becomes the default.
4052 cris-*-*aout*) emulation="crisaout criself" ;;
4053 cris-*-*) emulation="criself crisaout" ;;
252b5132
RH
4054 esac
4055
4056 emulations="$emulations $emulation"
4057
4058done
4059
15886821
L
4060# Turn on all targets if possible
4061if test ${all_targets} = "yes"; then
4062 case ${target_cpu_type} in
4063 i386)
4064 case ${obj_format} in
4065 aout)
4066 emulations="$emulations i386coff i386elf"
4067 ;;
4068 coff)
4069 emulations="$emulations i386aout i386elf"
4070 ;;
4071 elf)
4072 emulations="$emulations i386aout i386coff"
4073 ;;
4074 esac
4075 ;;
4076 esac
4077fi
4078
252b5132
RH
4079# Assign floating point type. Most processors with FP support
4080# IEEE FP. On those that don't support FP at all, usually IEEE
4081# is emulated.
4082case ${target_cpu} in
4083 vax | tahoe ) atof=${target_cpu} ;;
e135f41b 4084 pdp11) atof=vax ;;
252b5132
RH
4085 *) atof=ieee ;;
4086esac
4087
4088case "${obj_format}" in
9b2b7d69
MM
4089 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4090echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4091 { (exit 1); exit 1; }; } ;;
252b5132
RH
4092esac
4093
4094# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4095cgen_cpu_prefix=""
4096if test $using_cgen = yes ; then
4097 case ${target_cpu} in
4098 *) cgen_cpu_prefix=${target_cpu} ;;
4099 esac
9b2b7d69
MM
4100
4101
4102cat >>confdefs.h <<\_ACEOF
252b5132 4103#define USING_CGEN 1
9b2b7d69 4104_ACEOF
252b5132
RH
4105
4106fi
4107
d6d788bd 4108
252b5132 4109if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
9b2b7d69
MM
4110 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4111echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4112 { (exit 1); exit 1; }; }
252b5132
RH
4113fi
4114
4115if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
9b2b7d69
MM
4116 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4117echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4118 { (exit 1); exit 1; }; }
252b5132
RH
4119fi
4120
4121case ${user_bfd_gas}-${primary_bfd_gas} in
4122 yes-yes | no-no)
4123 # We didn't override user's choice.
4124 ;;
4125 no-yes)
9b2b7d69
MM
4126 { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4127echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
252b5132
RH
4128 ;;
4129 no-preferred)
4130 primary_bfd_gas=no
4131 ;;
4132 *-preferred)
4133 primary_bfd_gas=yes
4134 ;;
4135 yes-*)
4136 primary_bfd_gas=yes
4137 ;;
4138 -*)
4139 # User specified nothing.
4140 ;;
4141esac
4142
4143# Some COFF configurations want these random other flags set.
4144case ${obj_format} in
4145 coff)
4146 case ${target_cpu_type} in
9b2b7d69
MM
4147 i386)
4148cat >>confdefs.h <<\_ACEOF
252b5132 4149#define I386COFF 1
9b2b7d69 4150_ACEOF
252b5132 4151 ;;
9b2b7d69
MM
4152 m68k)
4153cat >>confdefs.h <<\_ACEOF
252b5132 4154#define M68KCOFF 1
9b2b7d69 4155_ACEOF
252b5132 4156 ;;
9b2b7d69
MM
4157 m88k)
4158cat >>confdefs.h <<\_ACEOF
252b5132 4159#define M88KCOFF 1
9b2b7d69 4160_ACEOF
252b5132
RH
4161 ;;
4162 esac
4163 ;;
4164esac
4165
4166# Getting this done right is going to be a bitch. Each configuration specified
4167# with --enable-targets=... should be checked for environment, format, cpu, and
4168# bfd_gas setting.
4169#
4170# For each configuration, the necessary object file support code must be linked
4171# in. This might be only one, it might be up to four. The necessary emulation
4172# code needs to be provided, too.
4173#
4174# And then there's "--enable-targets=all"....
4175#
4176# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4177
4178formats="${obj_format}"
4179emfiles=""
4180EMULATIONS=""
4181_gas_uniq_list="$emulations"
4182_gas_uniq_newlist=""
4183for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4184 case $_gas_uniq_i in
4185 _gas_uniq_dummy) ;;
4186 *) case " $_gas_uniq_newlist " in
4187 *" $_gas_uniq_i "*) ;;
4188 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4189 esac ;;
4190 esac
4191done
4192emulations=$_gas_uniq_newlist
4193
4194for em in . $emulations ; do
4195 case $em in
4196 .) continue ;;
97238fbd 4197 mipsbelf | mipslelf | mipself)
252b5132 4198 fmt=elf file=mipself ;;
97238fbd 4199 mipsbecoff | mipslecoff | mipsecoff)
252b5132 4200 fmt=ecoff file=mipsecoff ;;
0aa5d426
HPN
4201 *coff)
4202 fmt=coff file=$em ;;
4203 *aout)
4204 fmt=aout file=$em ;;
4205 *elf)
4206 fmt=elf file=$em ;;
252b5132
RH
4207 esac
4208 formats="$formats $fmt"
4209 emfiles="$emfiles e-$file.o"
4210 EMULATIONS="$EMULATIONS &$em,"
4211done
4212_gas_uniq_list="$formats"
4213_gas_uniq_newlist=""
4214for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4215 case $_gas_uniq_i in
4216 _gas_uniq_dummy) ;;
4217 *) case " $_gas_uniq_newlist " in
4218 *" $_gas_uniq_i "*) ;;
4219 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4220 esac ;;
4221 esac
4222done
4223formats=$_gas_uniq_newlist
4224
4225_gas_uniq_list="$emfiles"
4226_gas_uniq_newlist=""
4227for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4228 case $_gas_uniq_i in
4229 _gas_uniq_dummy) ;;
4230 *) case " $_gas_uniq_newlist " in
4231 *" $_gas_uniq_i "*) ;;
4232 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4233 esac ;;
4234 esac
4235done
4236emfiles=$_gas_uniq_newlist
4237
4238if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4239 for fmt in $formats ; do
4240 case $fmt in
9b2b7d69
MM
4241 aout)
4242cat >>confdefs.h <<\_ACEOF
252b5132 4243#define OBJ_MAYBE_AOUT 1
9b2b7d69 4244_ACEOF
252b5132 4245 ;;
9b2b7d69
MM
4246 bout)
4247cat >>confdefs.h <<\_ACEOF
252b5132 4248#define OBJ_MAYBE_BOUT 1
9b2b7d69 4249_ACEOF
252b5132 4250 ;;
9b2b7d69
MM
4251 coff)
4252cat >>confdefs.h <<\_ACEOF
252b5132 4253#define OBJ_MAYBE_COFF 1
9b2b7d69 4254_ACEOF
252b5132 4255 ;;
9b2b7d69
MM
4256 ecoff)
4257cat >>confdefs.h <<\_ACEOF
252b5132 4258#define OBJ_MAYBE_ECOFF 1
9b2b7d69 4259_ACEOF
252b5132 4260 ;;
9b2b7d69
MM
4261 elf)
4262cat >>confdefs.h <<\_ACEOF
252b5132 4263#define OBJ_MAYBE_ELF 1
9b2b7d69 4264_ACEOF
252b5132 4265 ;;
9b2b7d69
MM
4266 generic)
4267cat >>confdefs.h <<\_ACEOF
252b5132 4268#define OBJ_MAYBE_GENERIC 1
9b2b7d69 4269_ACEOF
252b5132 4270 ;;
9b2b7d69
MM
4271 hp300)
4272cat >>confdefs.h <<\_ACEOF
252b5132 4273#define OBJ_MAYBE_HP300 1
9b2b7d69 4274_ACEOF
252b5132 4275 ;;
9b2b7d69
MM
4276 ieee)
4277cat >>confdefs.h <<\_ACEOF
252b5132 4278#define OBJ_MAYBE_IEEE 1
9b2b7d69 4279_ACEOF
252b5132 4280 ;;
9b2b7d69
MM
4281 som)
4282cat >>confdefs.h <<\_ACEOF
252b5132 4283#define OBJ_MAYBE_SOM 1
9b2b7d69 4284_ACEOF
252b5132 4285 ;;
9b2b7d69
MM
4286 vms)
4287cat >>confdefs.h <<\_ACEOF
252b5132 4288#define OBJ_MAYBE_VMS 1
9b2b7d69 4289_ACEOF
252b5132
RH
4290 ;;
4291 esac
4292 extra_objects="$extra_objects obj-$fmt.o"
4293 done
4294 obj_format=multi
4295fi
4296if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
252b5132 4297 DEFAULT_EMULATION=`set . $emulations ; echo $2`
4ca72d38
AM
4298 # e-mips* has more than one emulation per file, e-i386* has just one at the
4299 # moment. If only one emulation is specified, then don't define
4300 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
4301 case "${obj_format}${emfiles}" in
4302 multi* | *mips*)
4ca72d38 4303 extra_objects="$extra_objects $emfiles"
9b2b7d69
MM
4304
4305cat >>confdefs.h <<\_ACEOF
252b5132 4306#define USE_EMULATIONS 1
9b2b7d69 4307_ACEOF
4ca72d38
AM
4308 ;;
4309 esac
252b5132
RH
4310fi
4311
9b2b7d69
MM
4312
4313cat >>confdefs.h <<_ACEOF
252b5132 4314#define EMULATIONS $EMULATIONS
9b2b7d69
MM
4315_ACEOF
4316
252b5132 4317
9b2b7d69 4318cat >>confdefs.h <<_ACEOF
252b5132 4319#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
9b2b7d69 4320_ACEOF
252b5132 4321
d6d788bd 4322
252b5132
RH
4323case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
4324 yes-*-coff) need_bfd=yes ;;
4325 no-*-coff) need_bfd=yes
9b2b7d69
MM
4326
4327cat >>confdefs.h <<\_ACEOF
252b5132 4328#define MANY_SEGMENTS 1
9b2b7d69 4329_ACEOF
252b5132
RH
4330 ;;
4331esac
4332
4333reject_dev_configs=yes
4334
4335case ${reject_dev_configs}-${dev} in
4336 yes-yes) # Oops.
9b2b7d69
MM
4337 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
4338echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
4339 { (exit 1); exit 1; }; }
252b5132
RH
4340 ;;
4341esac
4342
d6d788bd
L
4343
4344
4345
4346
4347
4348
252b5132 4349case "${primary_bfd_gas}" in
9b2b7d69
MM
4350 yes)
4351cat >>confdefs.h <<\_ACEOF
252b5132 4352#define BFD_ASSEMBLER 1
9b2b7d69 4353_ACEOF
252b5132
RH
4354
4355 need_bfd=yes ;;
4356esac
4357
4358# do we need the opcodes library?
4359case "${need_opcodes}" in
4360yes)
4361 OPCODES_LIB=../opcodes/libopcodes.la
4362 ;;
4363esac
4364
4365case "${need_bfd}" in
4366yes)
4367 BFDLIB=../bfd/libbfd.la
4368 ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
4369 ;;
4370esac
4371
d6d788bd
L
4372
4373
4374
4375
4376
9b2b7d69
MM
4377
4378cat >>confdefs.h <<_ACEOF
252b5132 4379#define TARGET_ALIAS "${target_alias}"
9b2b7d69 4380_ACEOF
252b5132 4381
9b2b7d69
MM
4382
4383cat >>confdefs.h <<_ACEOF
252b5132 4384#define TARGET_CANONICAL "${target}"
9b2b7d69 4385_ACEOF
252b5132 4386
9b2b7d69
MM
4387
4388cat >>confdefs.h <<_ACEOF
252b5132 4389#define TARGET_CPU "${target_cpu}"
9b2b7d69 4390_ACEOF
252b5132 4391
9b2b7d69
MM
4392
4393cat >>confdefs.h <<_ACEOF
252b5132 4394#define TARGET_VENDOR "${target_vendor}"
9b2b7d69 4395_ACEOF
252b5132 4396
9b2b7d69
MM
4397
4398cat >>confdefs.h <<_ACEOF
252b5132 4399#define TARGET_OS "${target_os}"
9b2b7d69
MM
4400_ACEOF
4401
4402
4403ac_ext=c
4404ac_cpp='$CPP $CPPFLAGS'
4405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408if test -n "$ac_tool_prefix"; then
4409 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4410set dummy ${ac_tool_prefix}gcc; ac_word=$2
4411echo "$as_me:$LINENO: checking for $ac_word" >&5
4412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4413if test "${ac_cv_prog_CC+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
4416 if test -n "$CC"; then
4417 ac_cv_prog_CC="$CC" # Let the user override the test.
4418else
4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH
4421do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4426 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 break 2
4429 fi
4430done
4431done
252b5132 4432
9b2b7d69
MM
4433fi
4434fi
4435CC=$ac_cv_prog_CC
4436if test -n "$CC"; then
4437 echo "$as_me:$LINENO: result: $CC" >&5
4438echo "${ECHO_T}$CC" >&6
4439else
4440 echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6
4442fi
252b5132 4443
9b2b7d69
MM
4444fi
4445if test -z "$ac_cv_prog_CC"; then
4446 ac_ct_CC=$CC
4447 # Extract the first word of "gcc", so it can be a program name with args.
252b5132 4448set dummy gcc; ac_word=$2
9b2b7d69
MM
4449echo "$as_me:$LINENO: checking for $ac_word" >&5
4450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453else
4454 if test -n "$ac_ct_CC"; then
4455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4456else
4457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH
4459do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_prog_ac_ct_CC="gcc"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468done
4469done
4470
4471fi
4472fi
4473ac_ct_CC=$ac_cv_prog_ac_ct_CC
4474if test -n "$ac_ct_CC"; then
4475 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4476echo "${ECHO_T}$ac_ct_CC" >&6
4477else
4478 echo "$as_me:$LINENO: result: no" >&5
4479echo "${ECHO_T}no" >&6
4480fi
4481
4482 CC=$ac_ct_CC
4483else
4484 CC="$ac_cv_prog_CC"
4485fi
4486
4487if test -z "$CC"; then
4488 if test -n "$ac_tool_prefix"; then
4489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4490set dummy ${ac_tool_prefix}cc; ac_word=$2
4491echo "$as_me:$LINENO: checking for $ac_word" >&5
4492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493if test "${ac_cv_prog_CC+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4495else
4496 if test -n "$CC"; then
4497 ac_cv_prog_CC="$CC" # Let the user override the test.
4498else
9b2b7d69
MM
4499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500for as_dir in $PATH
4501do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_CC="${ac_tool_prefix}cc"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510done
4511done
4512
252b5132
RH
4513fi
4514fi
9b2b7d69 4515CC=$ac_cv_prog_CC
252b5132 4516if test -n "$CC"; then
9b2b7d69
MM
4517 echo "$as_me:$LINENO: result: $CC" >&5
4518echo "${ECHO_T}$CC" >&6
4519else
4520 echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6
4522fi
4523
4524fi
4525if test -z "$ac_cv_prog_CC"; then
4526 ac_ct_CC=$CC
4527 # Extract the first word of "cc", so it can be a program name with args.
4528set dummy cc; ac_word=$2
4529echo "$as_me:$LINENO: checking for $ac_word" >&5
4530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533else
4534 if test -n "$ac_ct_CC"; then
4535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4536else
4537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538for as_dir in $PATH
4539do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_ac_ct_CC="cc"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548done
4549done
4550
4551fi
4552fi
4553ac_ct_CC=$ac_cv_prog_ac_ct_CC
4554if test -n "$ac_ct_CC"; then
4555 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4556echo "${ECHO_T}$ac_ct_CC" >&6
4557else
4558 echo "$as_me:$LINENO: result: no" >&5
4559echo "${ECHO_T}no" >&6
4560fi
4561
4562 CC=$ac_ct_CC
6840198f 4563else
9b2b7d69 4564 CC="$ac_cv_prog_CC"
6840198f
NC
4565fi
4566
9b2b7d69 4567fi
252b5132
RH
4568if test -z "$CC"; then
4569 # Extract the first word of "cc", so it can be a program name with args.
4570set dummy cc; ac_word=$2
9b2b7d69
MM
4571echo "$as_me:$LINENO: checking for $ac_word" >&5
4572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4573if test "${ac_cv_prog_CC+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4575else
4576 if test -n "$CC"; then
4577 ac_cv_prog_CC="$CC" # Let the user override the test.
4578else
252b5132 4579 ac_prog_rejected=no
9b2b7d69
MM
4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4588 ac_prog_rejected=yes
4589 continue
4590 fi
4591 ac_cv_prog_CC="cc"
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4594 fi
4595done
4596done
4597
252b5132
RH
4598if test $ac_prog_rejected = yes; then
4599 # We found a bogon in the path, so make sure we never use it.
4600 set dummy $ac_cv_prog_CC
4601 shift
9b2b7d69 4602 if test $# != 0; then
252b5132
RH
4603 # We chose a different compiler from the bogus one.
4604 # However, it has the same basename, so the bogon will be chosen
4605 # first if we set CC to just the basename; use the full file name.
4606 shift
9b2b7d69 4607 set dummy "$as_dir/$ac_word" ${1+"$@"}
252b5132
RH
4608 shift
4609 ac_cv_prog_CC="$@"
4610 fi
4611fi
4612fi
4613fi
9b2b7d69 4614CC=$ac_cv_prog_CC
252b5132 4615if test -n "$CC"; then
9b2b7d69
MM
4616 echo "$as_me:$LINENO: result: $CC" >&5
4617echo "${ECHO_T}$CC" >&6
252b5132 4618else
9b2b7d69
MM
4619 echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6
252b5132
RH
4621fi
4622
9b2b7d69
MM
4623fi
4624if test -z "$CC"; then
4625 if test -n "$ac_tool_prefix"; then
4626 for ac_prog in cl
4627 do
4628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4629set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4630echo "$as_me:$LINENO: checking for $ac_word" >&5
4631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632if test "${ac_cv_prog_CC+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4634else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637else
9b2b7d69
MM
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4648 fi
4649done
4650done
4651
252b5132
RH
4652fi
4653fi
9b2b7d69 4654CC=$ac_cv_prog_CC
252b5132 4655if test -n "$CC"; then
9b2b7d69
MM
4656 echo "$as_me:$LINENO: result: $CC" >&5
4657echo "${ECHO_T}$CC" >&6
252b5132 4658else
9b2b7d69
MM
4659 echo "$as_me:$LINENO: result: no" >&5
4660echo "${ECHO_T}no" >&6
252b5132 4661fi
9b2b7d69
MM
4662
4663 test -n "$CC" && break
4664 done
4665fi
4666if test -z "$CC"; then
4667 ac_ct_CC=$CC
4668 for ac_prog in cl
4669do
4670 # Extract the first word of "$ac_prog", so it can be a program name with args.
4671set dummy $ac_prog; ac_word=$2
4672echo "$as_me:$LINENO: checking for $ac_word" >&5
4673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676else
4677 if test -n "$ac_ct_CC"; then
4678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4679else
4680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681for as_dir in $PATH
4682do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4687 ac_cv_prog_ac_ct_CC="$ac_prog"
4688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
d6d788bd 4690 fi
9b2b7d69
MM
4691done
4692done
4693
4694fi
4695fi
4696ac_ct_CC=$ac_cv_prog_ac_ct_CC
4697if test -n "$ac_ct_CC"; then
4698 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4699echo "${ECHO_T}$ac_ct_CC" >&6
4700else
4701 echo "$as_me:$LINENO: result: no" >&5
4702echo "${ECHO_T}no" >&6
6840198f 4703fi
252b5132 4704
9b2b7d69
MM
4705 test -n "$ac_ct_CC" && break
4706done
252b5132 4707
9b2b7d69
MM
4708 CC=$ac_ct_CC
4709fi
252b5132 4710
9b2b7d69 4711fi
d6d788bd 4712
252b5132 4713
9b2b7d69
MM
4714test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
4715echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
4716 { (exit 1); exit 1; }; }
252b5132 4717
9b2b7d69
MM
4718# Provide some information about the compiler.
4719echo "$as_me:$LINENO:" \
4720 "checking for C compiler version" >&5
4721ac_compiler=`set X $ac_compile; echo $2`
4722{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4723 (eval $ac_compiler --version </dev/null >&5) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }
4727{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4728 (eval $ac_compiler -v </dev/null >&5) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }
4732{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4733 (eval $ac_compiler -V </dev/null >&5) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }
6840198f 4737
9b2b7d69
MM
4738echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4739echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4740if test "${ac_cv_c_compiler_gnu+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4742else
9b2b7d69
MM
4743 cat >conftest.$ac_ext <<_ACEOF
4744#line $LINENO "configure"
4745#include "confdefs.h"
4746
4747#ifdef F77_DUMMY_MAIN
4748# ifdef __cplusplus
4749 extern "C"
4750# endif
4751 int F77_DUMMY_MAIN() { return 1; }
4752#endif
4753int
4754main ()
4755{
4756#ifndef __GNUC__
4757 choke me
252b5132 4758#endif
252b5132 4759
9b2b7d69
MM
4760 ;
4761 return 0;
4762}
4763_ACEOF
4764rm -f conftest.$ac_objext
4765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try='test -s conftest.$ac_objext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4776 ac_compiler_gnu=yes
4777else
4778 echo "$as_me: failed program was:" >&5
4779cat conftest.$ac_ext >&5
4780ac_compiler_gnu=no
4781fi
4782rm -f conftest.$ac_objext conftest.$ac_ext
4783ac_cv_c_compiler_gnu=$ac_compiler_gnu
4784
4785fi
4786echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4787echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4788GCC=`test $ac_compiler_gnu = yes && echo yes`
4789ac_test_CFLAGS=${CFLAGS+set}
4790ac_save_CFLAGS=$CFLAGS
4791CFLAGS="-g"
4792echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4793echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4794if test "${ac_cv_prog_cc_g+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796else
4797 cat >conftest.$ac_ext <<_ACEOF
4798#line $LINENO "configure"
4799#include "confdefs.h"
252b5132 4800
9b2b7d69
MM
4801#ifdef F77_DUMMY_MAIN
4802# ifdef __cplusplus
4803 extern "C"
4804# endif
4805 int F77_DUMMY_MAIN() { return 1; }
4806#endif
4807int
4808main ()
4809{
252b5132 4810
9b2b7d69
MM
4811 ;
4812 return 0;
4813}
4814_ACEOF
4815rm -f conftest.$ac_objext
4816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 (eval $ac_try) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
252b5132
RH
4827 ac_cv_prog_cc_g=yes
4828else
9b2b7d69
MM
4829 echo "$as_me: failed program was:" >&5
4830cat conftest.$ac_ext >&5
4831ac_cv_prog_cc_g=no
252b5132 4832fi
9b2b7d69 4833rm -f conftest.$ac_objext conftest.$ac_ext
252b5132 4834fi
9b2b7d69
MM
4835echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4836echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
252b5132 4837if test "$ac_test_CFLAGS" = set; then
9b2b7d69 4838 CFLAGS=$ac_save_CFLAGS
252b5132
RH
4839elif test $ac_cv_prog_cc_g = yes; then
4840 if test "$GCC" = yes; then
4841 CFLAGS="-g -O2"
4842 else
4843 CFLAGS="-g"
4844 fi
4845else
9b2b7d69
MM
4846 if test "$GCC" = yes; then
4847 CFLAGS="-O2"
4848 else
4849 CFLAGS=
4850 fi
4851fi
4852# Some people use a C++ compiler to compile C. Since we use `exit',
4853# in C++ we need to declare it. In case someone uses the same compiler
4854# for both compiling C and C++ we need to have the C++ compiler decide
4855# the declaration of exit, since it's the most demanding environment.
4856cat >conftest.$ac_ext <<_ACEOF
4857#ifndef __cplusplus
4858 choke me
4859#endif
4860_ACEOF
4861rm -f conftest.$ac_objext
4862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } &&
4867 { ac_try='test -s conftest.$ac_objext'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 (eval $ac_try) 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; }; then
4873 for ac_declaration in \
4874 ''\
4875 '#include <stdlib.h>' \
4876 'extern "C" void std::exit (int) throw (); using std::exit;' \
4877 'extern "C" void std::exit (int); using std::exit;' \
4878 'extern "C" void exit (int) throw ();' \
4879 'extern "C" void exit (int);' \
4880 'void exit (int);'
4881do
4882 cat >conftest.$ac_ext <<_ACEOF
4883#line $LINENO "configure"
4884#include "confdefs.h"
4885#include <stdlib.h>
4886$ac_declaration
4887#ifdef F77_DUMMY_MAIN
4888# ifdef __cplusplus
4889 extern "C"
4890# endif
4891 int F77_DUMMY_MAIN() { return 1; }
4892#endif
4893int
4894main ()
4895{
4896exit (42);
4897 ;
4898 return 0;
4899}
4900_ACEOF
4901rm -f conftest.$ac_objext
4902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
4907 { ac_try='test -s conftest.$ac_objext'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 (eval $ac_try) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; }; then
4913 :
4914else
4915 echo "$as_me: failed program was:" >&5
4916cat conftest.$ac_ext >&5
4917continue
4918fi
4919rm -f conftest.$ac_objext conftest.$ac_ext
4920 cat >conftest.$ac_ext <<_ACEOF
4921#line $LINENO "configure"
4922#include "confdefs.h"
4923$ac_declaration
4924#ifdef F77_DUMMY_MAIN
4925# ifdef __cplusplus
4926 extern "C"
4927# endif
4928 int F77_DUMMY_MAIN() { return 1; }
4929#endif
4930int
4931main ()
4932{
4933exit (42);
4934 ;
4935 return 0;
4936}
4937_ACEOF
4938rm -f conftest.$ac_objext
4939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940 (eval $ac_compile) 2>&5
4941 ac_status=$?
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -s conftest.$ac_objext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4950 break
4951else
4952 echo "$as_me: failed program was:" >&5
4953cat conftest.$ac_ext >&5
4954fi
4955rm -f conftest.$ac_objext conftest.$ac_ext
4956done
4957rm -f conftest*
4958if test -n "$ac_declaration"; then
4959 echo '#ifdef __cplusplus' >>confdefs.h
4960 echo $ac_declaration >>confdefs.h
4961 echo '#endif' >>confdefs.h
4962fi
4963
4964else
4965 echo "$as_me: failed program was:" >&5
4966cat conftest.$ac_ext >&5
252b5132 4967fi
9b2b7d69
MM
4968rm -f conftest.$ac_objext conftest.$ac_ext
4969ac_ext=c
4970ac_cpp='$CPP $CPPFLAGS'
4971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132
RH
4974
4975
4976for ac_prog in 'bison -y' byacc
4977do
9b2b7d69 4978 # Extract the first word of "$ac_prog", so it can be a program name with args.
252b5132 4979set dummy $ac_prog; ac_word=$2
9b2b7d69
MM
4980echo "$as_me:$LINENO: checking for $ac_word" >&5
4981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4982if test "${ac_cv_prog_YACC+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4984else
4985 if test -n "$YACC"; then
4986 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4987else
9b2b7d69
MM
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_prog_YACC="$ac_prog"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999done
5000done
5001
252b5132
RH
5002fi
5003fi
9b2b7d69 5004YACC=$ac_cv_prog_YACC
252b5132 5005if test -n "$YACC"; then
9b2b7d69
MM
5006 echo "$as_me:$LINENO: result: $YACC" >&5
5007echo "${ECHO_T}$YACC" >&6
252b5132 5008else
9b2b7d69
MM
5009 echo "$as_me:$LINENO: result: no" >&5
5010echo "${ECHO_T}no" >&6
252b5132
RH
5011fi
5012
9b2b7d69 5013 test -n "$YACC" && break
252b5132
RH
5014done
5015test -n "$YACC" || YACC="yacc"
5016
d6d788bd 5017missing_dir=`cd $ac_aux_dir && pwd`
6840198f
NC
5018for ac_prog in flex lex
5019do
9b2b7d69 5020 # Extract the first word of "$ac_prog", so it can be a program name with args.
6840198f 5021set dummy $ac_prog; ac_word=$2
9b2b7d69
MM
5022echo "$as_me:$LINENO: checking for $ac_word" >&5
5023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5024if test "${ac_cv_prog_LEX+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5026else
5027 if test -n "$LEX"; then
5028 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5029else
9b2b7d69
MM
5030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH
5032do
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 ac_cv_prog_LEX="$ac_prog"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5040 fi
5041done
5042done
5043
252b5132
RH
5044fi
5045fi
9b2b7d69 5046LEX=$ac_cv_prog_LEX
252b5132 5047if test -n "$LEX"; then
9b2b7d69
MM
5048 echo "$as_me:$LINENO: result: $LEX" >&5
5049echo "${ECHO_T}$LEX" >&6
252b5132 5050else
9b2b7d69
MM
5051 echo "$as_me:$LINENO: result: no" >&5
5052echo "${ECHO_T}no" >&6
252b5132
RH
5053fi
5054
9b2b7d69 5055 test -n "$LEX" && break
6840198f 5056done
9b2b7d69 5057test -n "$LEX" || LEX=""$missing_dir/missing flex""
d6d788bd 5058
9b2b7d69
MM
5059for ac_prog in flex lex
5060do
5061 # Extract the first word of "$ac_prog", so it can be a program name with args.
5062set dummy $ac_prog; ac_word=$2
5063echo "$as_me:$LINENO: checking for $ac_word" >&5
5064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065if test "${ac_cv_prog_LEX+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd
L
5067else
5068 if test -n "$LEX"; then
5069 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5070else
9b2b7d69
MM
5071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072for as_dir in $PATH
5073do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_LEX="$ac_prog"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082done
5083done
5084
d6d788bd
L
5085fi
5086fi
9b2b7d69 5087LEX=$ac_cv_prog_LEX
d6d788bd 5088if test -n "$LEX"; then
9b2b7d69
MM
5089 echo "$as_me:$LINENO: result: $LEX" >&5
5090echo "${ECHO_T}$LEX" >&6
d6d788bd 5091else
9b2b7d69
MM
5092 echo "$as_me:$LINENO: result: no" >&5
5093echo "${ECHO_T}no" >&6
d6d788bd 5094fi
6840198f 5095
9b2b7d69
MM
5096 test -n "$LEX" && break
5097done
5098test -n "$LEX" || LEX=":"
5099
252b5132
RH
5100if test -z "$LEXLIB"
5101then
9b2b7d69
MM
5102 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5103echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5104if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106else
5107 ac_check_lib_save_LIBS=$LIBS
5108LIBS="-lfl $LIBS"
5109cat >conftest.$ac_ext <<_ACEOF
5110#line $LINENO "configure"
252b5132 5111#include "confdefs.h"
9b2b7d69 5112
252b5132 5113/* Override any gcc2 internal prototype to avoid an error. */
9b2b7d69
MM
5114#ifdef __cplusplus
5115extern "C"
5116#endif
252b5132 5117/* We use char because int might match the return type of a gcc2
9b2b7d69
MM
5118 builtin and then its argument prototype would still apply. */
5119char yywrap ();
5120#ifdef F77_DUMMY_MAIN
5121# ifdef __cplusplus
5122 extern "C"
5123# endif
5124 int F77_DUMMY_MAIN() { return 1; }
5125#endif
5126int
5127main ()
5128{
5129yywrap ();
5130 ;
5131 return 0;
5132}
5133_ACEOF
5134rm -f conftest.$ac_objext conftest$ac_exeext
5135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5136 (eval $ac_link) 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try='test -s conftest$ac_exeext'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 (eval $ac_try) 2>&5
5143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 ac_cv_lib_fl_yywrap=yes
5147else
5148 echo "$as_me: failed program was:" >&5
5149cat conftest.$ac_ext >&5
5150ac_cv_lib_fl_yywrap=no
5151fi
5152rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5153LIBS=$ac_check_lib_save_LIBS
5154fi
5155echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5156echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5157if test $ac_cv_lib_fl_yywrap = yes; then
5158 LEXLIB="-lfl"
5159else
5160 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5161echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5162if test "${ac_cv_lib_l_yywrap+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 ac_check_lib_save_LIBS=$LIBS
5166LIBS="-ll $LIBS"
5167cat >conftest.$ac_ext <<_ACEOF
5168#line $LINENO "configure"
5169#include "confdefs.h"
252b5132 5170
9b2b7d69
MM
5171/* Override any gcc2 internal prototype to avoid an error. */
5172#ifdef __cplusplus
5173extern "C"
5174#endif
5175/* We use char because int might match the return type of a gcc2
5176 builtin and then its argument prototype would still apply. */
5177char yywrap ();
5178#ifdef F77_DUMMY_MAIN
5179# ifdef __cplusplus
5180 extern "C"
5181# endif
5182 int F77_DUMMY_MAIN() { return 1; }
5183#endif
5184int
5185main ()
5186{
5187yywrap ();
5188 ;
5189 return 0;
5190}
5191_ACEOF
5192rm -f conftest.$ac_objext conftest$ac_exeext
5193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5194 (eval $ac_link) 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } &&
5198 { ac_try='test -s conftest$ac_exeext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 (eval $ac_try) 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_cv_lib_l_yywrap=yes
252b5132 5205else
9b2b7d69
MM
5206 echo "$as_me: failed program was:" >&5
5207cat conftest.$ac_ext >&5
5208ac_cv_lib_l_yywrap=no
6840198f 5209fi
9b2b7d69
MM
5210rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5211LIBS=$ac_check_lib_save_LIBS
252b5132 5212fi
9b2b7d69
MM
5213echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5214echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5215if test $ac_cv_lib_l_yywrap = yes; then
5216 LEXLIB="-ll"
5217fi
5218
d6d788bd 5219fi
252b5132
RH
5220
5221fi
5222
9b2b7d69
MM
5223if test "x$LEX" != "x:"; then
5224 echo "$as_me:$LINENO: checking lex output file root" >&5
5225echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5226if test "${ac_cv_prog_lex_root+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5228else
5229 # The minimal lex program is just a single line: %%. But some broken lexes
5230# (Solaris, I think it was) want two %% lines, so accommodate them.
9b2b7d69
MM
5231cat >conftest.l <<_ACEOF
5232%%
5233%%
5234_ACEOF
5235{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5236 (eval $LEX conftest.l) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }
252b5132
RH
5240if test -f lex.yy.c; then
5241 ac_cv_prog_lex_root=lex.yy
5242elif test -f lexyy.c; then
5243 ac_cv_prog_lex_root=lexyy
5244else
9b2b7d69
MM
5245 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5246echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5247 { (exit 1); exit 1; }; }
252b5132
RH
5248fi
5249fi
9b2b7d69
MM
5250echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5251echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5252rm -f conftest.l
252b5132
RH
5253LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5254
9b2b7d69
MM
5255echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5256echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5257if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5259else
5260 # POSIX says lex can declare yytext either as a pointer or an array; the
5261# default is implementation-dependent. Figure out which it is, since
5262# not all implementations provide the %pointer and %array declarations.
5263ac_cv_prog_lex_yytext_pointer=no
5264echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9b2b7d69 5265ac_save_LIBS=$LIBS
252b5132 5266LIBS="$LIBS $LEXLIB"
9b2b7d69 5267cat >conftest.$ac_ext <<_ACEOF
252b5132 5268`cat $LEX_OUTPUT_ROOT.c`
9b2b7d69
MM
5269_ACEOF
5270rm -f conftest.$ac_objext conftest$ac_exeext
5271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272 (eval $ac_link) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try='test -s conftest$ac_exeext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
252b5132
RH
5282 ac_cv_prog_lex_yytext_pointer=yes
5283else
9b2b7d69
MM
5284 echo "$as_me: failed program was:" >&5
5285cat conftest.$ac_ext >&5
252b5132 5286fi
9b2b7d69
MM
5287rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5288LIBS=$ac_save_LIBS
252b5132
RH
5289rm -f "${LEX_OUTPUT_ROOT}.c"
5290
5291fi
9b2b7d69
MM
5292echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5293echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
d6d788bd 5294if test $ac_cv_prog_lex_yytext_pointer = yes; then
9b2b7d69
MM
5295
5296cat >>confdefs.h <<\_ACEOF
252b5132 5297#define YYTEXT_POINTER 1
9b2b7d69
MM
5298_ACEOF
5299
5300fi
252b5132
RH
5301
5302fi
5303
5304
fe41178f 5305ALL_LINGUAS="fr tr es"
9b2b7d69
MM
5306if test -n "$ac_tool_prefix"; then
5307 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5308set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5309echo "$as_me:$LINENO: checking for $ac_word" >&5
5310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5311if test "${ac_cv_prog_RANLIB+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
5313else
5314 if test -n "$RANLIB"; then
5315 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5316else
9b2b7d69
MM
5317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318for as_dir in $PATH
5319do
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 break 2
5327 fi
5328done
5329done
5330
6840198f 5331fi
6840198f 5332fi
9b2b7d69 5333RANLIB=$ac_cv_prog_RANLIB
d6d788bd 5334if test -n "$RANLIB"; then
9b2b7d69
MM
5335 echo "$as_me:$LINENO: result: $RANLIB" >&5
5336echo "${ECHO_T}$RANLIB" >&6
5337else
5338 echo "$as_me:$LINENO: result: no" >&5
5339echo "${ECHO_T}no" >&6
5340fi
5341
5342fi
5343if test -z "$ac_cv_prog_RANLIB"; then
5344 ac_ct_RANLIB=$RANLIB
5345 # Extract the first word of "ranlib", so it can be a program name with args.
5346set dummy ranlib; ac_word=$2
5347echo "$as_me:$LINENO: checking for $ac_word" >&5
5348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352 if test -n "$ac_ct_RANLIB"; then
5353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5354else
5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356for as_dir in $PATH
5357do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362 ac_cv_prog_ac_ct_RANLIB="ranlib"
5363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366done
5367done
5368
5369 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5370fi
5371fi
5372ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5373if test -n "$ac_ct_RANLIB"; then
5374 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5375echo "${ECHO_T}$ac_ct_RANLIB" >&6
5376else
5377 echo "$as_me:$LINENO: result: no" >&5
5378echo "${ECHO_T}no" >&6
5379fi
5380
5381 RANLIB=$ac_ct_RANLIB
5382else
5383 RANLIB="$ac_cv_prog_RANLIB"
5384fi
5385
5386ac_ext=c
5387ac_cpp='$CPP $CPPFLAGS'
5388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390ac_compiler_gnu=$ac_cv_c_compiler_gnu
5391echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5392echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5393# On Suns, sometimes $CPP names a directory.
5394if test -n "$CPP" && test -d "$CPP"; then
5395 CPP=
5396fi
5397if test -z "$CPP"; then
5398 if test "${ac_cv_prog_CPP+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400else
5401 # Double quotes because CPP needs to be expanded
5402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5403 do
5404 ac_preproc_ok=false
5405for ac_c_preproc_warn_flag in '' yes
5406do
5407 # Use a header file that comes with gcc, so configuring glibc
5408 # with a fresh cross-compiler works.
5409 # On the NeXT, cc -E runs the code through the compiler's parser,
5410 # not just through cpp. "Syntax error" is here to catch this case.
5411 cat >conftest.$ac_ext <<_ACEOF
5412#line $LINENO "configure"
5413#include "confdefs.h"
5414#include <assert.h>
5415 Syntax error
5416_ACEOF
5417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5419 ac_status=$?
5420 egrep -v '^ *\+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } >/dev/null; then
5425 if test -s conftest.err; then
5426 ac_cpp_err=$ac_c_preproc_warn_flag
5427 else
5428 ac_cpp_err=
5429 fi
5430else
5431 ac_cpp_err=yes
5432fi
5433if test -z "$ac_cpp_err"; then
5434 :
5435else
5436 echo "$as_me: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5438 # Broken: fails on valid input.
5439continue
5440fi
5441rm -f conftest.err conftest.$ac_ext
5442
5443 # OK, works on sane cases. Now check whether non-existent headers
5444 # can be detected and how.
5445 cat >conftest.$ac_ext <<_ACEOF
5446#line $LINENO "configure"
5447#include "confdefs.h"
5448#include <ac_nonexistent.h>
5449_ACEOF
5450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5452 ac_status=$?
5453 egrep -v '^ *\+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } >/dev/null; then
5458 if test -s conftest.err; then
5459 ac_cpp_err=$ac_c_preproc_warn_flag
5460 else
5461 ac_cpp_err=
5462 fi
5463else
5464 ac_cpp_err=yes
5465fi
5466if test -z "$ac_cpp_err"; then
5467 # Broken: success on invalid input.
5468continue
5469else
5470 echo "$as_me: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5472 # Passes both tests.
5473ac_preproc_ok=:
5474break
5475fi
5476rm -f conftest.err conftest.$ac_ext
5477
5478done
5479# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5480rm -f conftest.err conftest.$ac_ext
5481if $ac_preproc_ok; then
5482 break
5483fi
5484
5485 done
5486 ac_cv_prog_CPP=$CPP
5487
5488fi
5489 CPP=$ac_cv_prog_CPP
5490else
5491 ac_cv_prog_CPP=$CPP
5492fi
5493echo "$as_me:$LINENO: result: $CPP" >&5
5494echo "${ECHO_T}$CPP" >&6
5495ac_preproc_ok=false
5496for ac_c_preproc_warn_flag in '' yes
5497do
5498 # Use a header file that comes with gcc, so configuring glibc
5499 # with a fresh cross-compiler works.
5500 # On the NeXT, cc -E runs the code through the compiler's parser,
5501 # not just through cpp. "Syntax error" is here to catch this case.
5502 cat >conftest.$ac_ext <<_ACEOF
5503#line $LINENO "configure"
5504#include "confdefs.h"
5505#include <assert.h>
5506 Syntax error
5507_ACEOF
5508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5510 ac_status=$?
5511 egrep -v '^ *\+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } >/dev/null; then
5516 if test -s conftest.err; then
5517 ac_cpp_err=$ac_c_preproc_warn_flag
5518 else
5519 ac_cpp_err=
5520 fi
5521else
5522 ac_cpp_err=yes
5523fi
5524if test -z "$ac_cpp_err"; then
5525 :
5526else
5527 echo "$as_me: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5529 # Broken: fails on valid input.
5530continue
5531fi
5532rm -f conftest.err conftest.$ac_ext
5533
5534 # OK, works on sane cases. Now check whether non-existent headers
5535 # can be detected and how.
5536 cat >conftest.$ac_ext <<_ACEOF
5537#line $LINENO "configure"
5538#include "confdefs.h"
5539#include <ac_nonexistent.h>
5540_ACEOF
5541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5543 ac_status=$?
5544 egrep -v '^ *\+' conftest.er1 >conftest.err
5545 rm -f conftest.er1
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } >/dev/null; then
5549 if test -s conftest.err; then
5550 ac_cpp_err=$ac_c_preproc_warn_flag
5551 else
5552 ac_cpp_err=
5553 fi
5554else
5555 ac_cpp_err=yes
5556fi
5557if test -z "$ac_cpp_err"; then
5558 # Broken: success on invalid input.
5559continue
5560else
5561 echo "$as_me: failed program was:" >&5
5562 cat conftest.$ac_ext >&5
5563 # Passes both tests.
5564ac_preproc_ok=:
5565break
5566fi
5567rm -f conftest.err conftest.$ac_ext
5568
5569done
5570# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5571rm -f conftest.err conftest.$ac_ext
5572if $ac_preproc_ok; then
5573 :
6840198f 5574else
9b2b7d69
MM
5575 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
5576echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
5577 { (exit 1); exit 1; }; }
6840198f 5578fi
6840198f 5579
9b2b7d69
MM
5580ac_ext=c
5581ac_cpp='$CPP $CPPFLAGS'
5582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5584ac_compiler_gnu=$ac_cv_c_compiler_gnu
5585
5586
5587echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5588echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5589if test "${ac_cv_header_stdc+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
6840198f 5591else
9b2b7d69
MM
5592 cat >conftest.$ac_ext <<_ACEOF
5593#line $LINENO "configure"
252b5132
RH
5594#include "confdefs.h"
5595#include <stdlib.h>
5596#include <stdarg.h>
5597#include <string.h>
5598#include <float.h>
9b2b7d69
MM
5599
5600_ACEOF
5601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5603 ac_status=$?
5604 egrep -v '^ *\+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } >/dev/null; then
5609 if test -s conftest.err; then
5610 ac_cpp_err=$ac_c_preproc_warn_flag
5611 else
5612 ac_cpp_err=
5613 fi
5614else
5615 ac_cpp_err=yes
5616fi
5617if test -z "$ac_cpp_err"; then
252b5132
RH
5618 ac_cv_header_stdc=yes
5619else
9b2b7d69 5620 echo "$as_me: failed program was:" >&5
252b5132 5621 cat conftest.$ac_ext >&5
252b5132
RH
5622 ac_cv_header_stdc=no
5623fi
9b2b7d69 5624rm -f conftest.err conftest.$ac_ext
252b5132
RH
5625
5626if test $ac_cv_header_stdc = yes; then
5627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9b2b7d69
MM
5628 cat >conftest.$ac_ext <<_ACEOF
5629#line $LINENO "configure"
252b5132
RH
5630#include "confdefs.h"
5631#include <string.h>
9b2b7d69
MM
5632
5633_ACEOF
252b5132
RH
5634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5635 egrep "memchr" >/dev/null 2>&1; then
5636 :
5637else
252b5132
RH
5638 ac_cv_header_stdc=no
5639fi
5640rm -f conftest*
5641
5642fi
5643
5644if test $ac_cv_header_stdc = yes; then
5645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9b2b7d69
MM
5646 cat >conftest.$ac_ext <<_ACEOF
5647#line $LINENO "configure"
252b5132
RH
5648#include "confdefs.h"
5649#include <stdlib.h>
9b2b7d69
MM
5650
5651_ACEOF
252b5132
RH
5652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 egrep "free" >/dev/null 2>&1; then
5654 :
5655else
252b5132
RH
5656 ac_cv_header_stdc=no
5657fi
5658rm -f conftest*
5659
5660fi
5661
5662if test $ac_cv_header_stdc = yes; then
5663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9b2b7d69 5664 if test "$cross_compiling" = yes; then
252b5132
RH
5665 :
5666else
9b2b7d69
MM
5667 cat >conftest.$ac_ext <<_ACEOF
5668#line $LINENO "configure"
252b5132
RH
5669#include "confdefs.h"
5670#include <ctype.h>
9b2b7d69
MM
5671#if ((' ' & 0x0FF) == 0x020)
5672# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5673# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5674#else
5675# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5676 || ('j' <= (c) && (c) <= 'r') \
5677 || ('s' <= (c) && (c) <= 'z'))
5678# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5679#endif
d6d788bd 5680
9b2b7d69
MM
5681#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5682int
5683main ()
5684{
5685 int i;
5686 for (i = 0; i < 256; i++)
5687 if (XOR (islower (i), ISLOWER (i))
5688 || toupper (i) != TOUPPER (i))
5689 exit(2);
5690 exit (0);
5691}
5692_ACEOF
5693rm -f conftest$ac_exeext
5694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5695 (eval $ac_link) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 (eval $ac_try) 2>&5
5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; }; then
252b5132
RH
5704 :
5705else
9b2b7d69
MM
5706 echo "$as_me: program exited with status $ac_status" >&5
5707echo "$as_me: failed program was:" >&5
5708cat conftest.$ac_ext >&5
5709( exit $ac_status )
5710ac_cv_header_stdc=no
252b5132 5711fi
9b2b7d69 5712rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5713fi
252b5132
RH
5714fi
5715fi
9b2b7d69
MM
5716echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5717echo "${ECHO_T}$ac_cv_header_stdc" >&6
d6d788bd 5718if test $ac_cv_header_stdc = yes; then
9b2b7d69
MM
5719
5720cat >>confdefs.h <<\_ACEOF
252b5132 5721#define STDC_HEADERS 1
9b2b7d69 5722_ACEOF
252b5132
RH
5723
5724fi
5725
9b2b7d69
MM
5726echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5727echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5728if test "${ac_cv_prog_cc_stdc+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5730else
9b2b7d69
MM
5731 ac_cv_prog_cc_stdc=no
5732ac_save_CC=$CC
5733cat >conftest.$ac_ext <<_ACEOF
5734#line $LINENO "configure"
252b5132 5735#include "confdefs.h"
9b2b7d69
MM
5736#include <stdarg.h>
5737#include <stdio.h>
5738#include <sys/types.h>
5739#include <sys/stat.h>
5740/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5741struct buf { int x; };
5742FILE * (*rcsopen) (struct buf *, struct stat *, int);
5743static char *e (p, i)
5744 char **p;
5745 int i;
5746{
5747 return p[i];
252b5132 5748}
9b2b7d69
MM
5749static char *f (char * (*g) (char **, int), char **p, ...)
5750{
5751 char *s;
5752 va_list v;
5753 va_start (v,p);
5754 s = g (p, va_arg (v,int));
5755 va_end (v);
5756 return s;
d6d788bd 5757}
9b2b7d69
MM
5758int test (int i, double x);
5759struct s1 {int (*f) (int a);};
5760struct s2 {int (*f) (double a);};
5761int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5762int argc;
5763char **argv;
5764#ifdef F77_DUMMY_MAIN
5765# ifdef __cplusplus
5766 extern "C"
5767# endif
5768 int F77_DUMMY_MAIN() { return 1; }
5769#endif
5770int
5771main ()
5772{
5773return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5774 ;
5775 return 0;
6840198f 5776}
9b2b7d69
MM
5777_ACEOF
5778# Don't try gcc -ansi; that turns off useful extensions and
5779# breaks some systems' header files.
5780# AIX -qlanglvl=ansi
5781# Ultrix and OSF/1 -std1
5782# HP-UX 10.20 and later -Ae
5783# HP-UX older versions -Aa -D_HPUX_SOURCE
5784# SVR4 -Xc -D__EXTENSIONS__
5785for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5786do
5787 CC="$ac_save_CC $ac_arg"
5788 rm -f conftest.$ac_objext
5789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5790 (eval $ac_compile) 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try='test -s conftest.$ac_objext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 (eval $ac_try) 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 ac_cv_prog_cc_stdc=$ac_arg
5801break
5802else
5803 echo "$as_me: failed program was:" >&5
5804cat conftest.$ac_ext >&5
5805fi
5806rm -f conftest.$ac_objext
5807done
5808rm -f conftest.$ac_ext conftest.$ac_objext
5809CC=$ac_save_CC
d6d788bd 5810
9b2b7d69
MM
5811fi
5812
5813case "x$ac_cv_prog_cc_stdc" in
5814 x|xno)
5815 echo "$as_me:$LINENO: result: none needed" >&5
5816echo "${ECHO_T}none needed" >&6 ;;
5817 *)
5818 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5819echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5820 CC="$CC $ac_cv_prog_cc_stdc" ;;
5821esac
5822
5823echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5824echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5825if test "${ac_cv_c_const+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827else
5828 cat >conftest.$ac_ext <<_ACEOF
5829#line $LINENO "configure"
5830#include "confdefs.h"
5831
5832#ifdef F77_DUMMY_MAIN
5833# ifdef __cplusplus
5834 extern "C"
5835# endif
5836 int F77_DUMMY_MAIN() { return 1; }
5837#endif
5838int
5839main ()
5840{
5841/* FIXME: Include the comments suggested by Paul. */
5842#ifndef __cplusplus
5843 /* Ultrix mips cc rejects this. */
5844 typedef int charset[2];
5845 const charset x;
5846 /* SunOS 4.1.1 cc rejects this. */
5847 char const *const *ccp;
5848 char **p;
5849 /* NEC SVR4.0.2 mips cc rejects this. */
5850 struct point {int x, y;};
5851 static struct point const zero = {0,0};
5852 /* AIX XL C 1.02.0.0 rejects this.
5853 It does not let you subtract one const X* pointer from another in
5854 an arm of an if-expression whose if-part is not a constant
5855 expression */
5856 const char *g = "string";
5857 ccp = &g + (g ? g-g : 0);
5858 /* HPUX 7.0 cc rejects these. */
5859 ++ccp;
5860 p = (char**) ccp;
5861 ccp = (char const *const *) p;
5862 { /* SCO 3.2v4 cc rejects this. */
5863 char *t;
5864 char const *s = 0 ? (char *) 0 : (char const *) 0;
5865
5866 *t++ = 0;
5867 }
5868 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5869 int x[] = {25, 17};
5870 const int *foo = &x[0];
5871 ++foo;
5872 }
5873 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5874 typedef const int *iptr;
5875 iptr p = 0;
5876 ++p;
5877 }
5878 { /* AIX XL C 1.02.0.0 rejects this saying
5879 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5880 struct s { int j; const int *ap[3]; };
5881 struct s *b; b->j = 5;
5882 }
5883 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5884 const int foo = 10;
5885 }
5886#endif
5887
5888 ;
5889 return 0;
5890}
5891_ACEOF
5892rm -f conftest.$ac_objext
5893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5894 (eval $ac_compile) 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } &&
5898 { ac_try='test -s conftest.$ac_objext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 (eval $ac_try) 2>&5
5901 ac_status=$?
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
252b5132
RH
5904 ac_cv_c_const=yes
5905else
9b2b7d69
MM
5906 echo "$as_me: failed program was:" >&5
5907cat conftest.$ac_ext >&5
5908ac_cv_c_const=no
252b5132 5909fi
9b2b7d69 5910rm -f conftest.$ac_objext conftest.$ac_ext
252b5132 5911fi
9b2b7d69
MM
5912echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5913echo "${ECHO_T}$ac_cv_c_const" >&6
d6d788bd 5914if test $ac_cv_c_const = no; then
9b2b7d69
MM
5915
5916cat >>confdefs.h <<\_ACEOF
5917#define const
5918_ACEOF
252b5132
RH
5919
5920fi
5921
9b2b7d69
MM
5922echo "$as_me:$LINENO: checking for inline" >&5
5923echo $ECHO_N "checking for inline... $ECHO_C" >&6
5924if test "${ac_cv_c_inline+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5926else
5927 ac_cv_c_inline=no
5928for ac_kw in inline __inline__ __inline; do
9b2b7d69
MM
5929 cat >conftest.$ac_ext <<_ACEOF
5930#line $LINENO "configure"
252b5132 5931#include "confdefs.h"
9b2b7d69
MM
5932#ifndef __cplusplus
5933static $ac_kw int static_foo () {return 0; }
5934$ac_kw int foo () {return 0; }
5935#endif
252b5132 5936
9b2b7d69
MM
5937_ACEOF
5938rm -f conftest.$ac_objext
5939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940 (eval $ac_compile) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
d6d788bd 5950 ac_cv_c_inline=$ac_kw; break
6840198f 5951else
9b2b7d69
MM
5952 echo "$as_me: failed program was:" >&5
5953cat conftest.$ac_ext >&5
6840198f 5954fi
9b2b7d69 5955rm -f conftest.$ac_objext conftest.$ac_ext
d6d788bd 5956done
6840198f
NC
5957
5958fi
9b2b7d69
MM
5959echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5960echo "${ECHO_T}$ac_cv_c_inline" >&6
5961case $ac_cv_c_inline in
d6d788bd 5962 inline | yes) ;;
9b2b7d69
MM
5963 no)
5964cat >>confdefs.h <<\_ACEOF
5965#define inline
5966_ACEOF
d6d788bd 5967 ;;
9b2b7d69 5968 *) cat >>confdefs.h <<_ACEOF
d6d788bd 5969#define inline $ac_cv_c_inline
9b2b7d69 5970_ACEOF
d6d788bd
L
5971 ;;
5972esac
5973
9b2b7d69
MM
5974# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5985 inttypes.h stdint.h unistd.h
5986do
5987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5988echo "$as_me:$LINENO: checking for $ac_header" >&5
5989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5990if eval "test \"\${$as_ac_Header+set}\" = set"; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992else
5993 cat >conftest.$ac_ext <<_ACEOF
5994#line $LINENO "configure"
5995#include "confdefs.h"
5996$ac_includes_default
5997
5998#include <$ac_header>
5999_ACEOF
6000rm -f conftest.$ac_objext
6001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 eval "$as_ac_Header=yes"
6013else
6014 echo "$as_me: failed program was:" >&5
6015cat conftest.$ac_ext >&5
6016eval "$as_ac_Header=no"
6017fi
6018rm -f conftest.$ac_objext conftest.$ac_ext
6019fi
6020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022if test `eval echo '${'$as_ac_Header'}'` = yes; then
6023 cat >>confdefs.h <<_ACEOF
6024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6025_ACEOF
6026
6027fi
6028
6029done
6030
6031
6032echo "$as_me:$LINENO: checking for off_t" >&5
6033echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6034if test "${ac_cv_type_off_t+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6036else
9b2b7d69
MM
6037 cat >conftest.$ac_ext <<_ACEOF
6038#line $LINENO "configure"
252b5132 6039#include "confdefs.h"
9b2b7d69
MM
6040$ac_includes_default
6041#ifdef F77_DUMMY_MAIN
6042# ifdef __cplusplus
6043 extern "C"
6044# endif
6045 int F77_DUMMY_MAIN() { return 1; }
d6d788bd 6046#endif
9b2b7d69
MM
6047int
6048main ()
6049{
6050if ((off_t *) 0)
6051 return 0;
6052if (sizeof (off_t))
6053 return 0;
6054 ;
6055 return 0;
6056}
6057_ACEOF
6058rm -f conftest.$ac_objext
6059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } &&
6064 { ac_try='test -s conftest.$ac_objext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 (eval $ac_try) 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
a2d91340 6070 ac_cv_type_off_t=yes
252b5132 6071else
9b2b7d69
MM
6072 echo "$as_me: failed program was:" >&5
6073cat conftest.$ac_ext >&5
6074ac_cv_type_off_t=no
252b5132 6075fi
9b2b7d69 6076rm -f conftest.$ac_objext conftest.$ac_ext
d6d788bd 6077fi
9b2b7d69
MM
6078echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6079echo "${ECHO_T}$ac_cv_type_off_t" >&6
6080if test $ac_cv_type_off_t = yes; then
6081 :
6082else
6083
6084cat >>confdefs.h <<_ACEOF
252b5132 6085#define off_t long
9b2b7d69 6086_ACEOF
252b5132
RH
6087
6088fi
6089
9b2b7d69
MM
6090echo "$as_me:$LINENO: checking for size_t" >&5
6091echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6092if test "${ac_cv_type_size_t+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6094else
9b2b7d69
MM
6095 cat >conftest.$ac_ext <<_ACEOF
6096#line $LINENO "configure"
252b5132 6097#include "confdefs.h"
9b2b7d69
MM
6098$ac_includes_default
6099#ifdef F77_DUMMY_MAIN
6100# ifdef __cplusplus
6101 extern "C"
6102# endif
6103 int F77_DUMMY_MAIN() { return 1; }
d6d788bd 6104#endif
9b2b7d69
MM
6105int
6106main ()
6107{
6108if ((size_t *) 0)
6109 return 0;
6110if (sizeof (size_t))
6111 return 0;
6112 ;
6113 return 0;
6114}
6115_ACEOF
6116rm -f conftest.$ac_objext
6117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6118 (eval $ac_compile) 2>&5
6119 ac_status=$?
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } &&
6122 { ac_try='test -s conftest.$ac_objext'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 (eval $ac_try) 2>&5
6125 ac_status=$?
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; }; then
a2d91340 6128 ac_cv_type_size_t=yes
252b5132 6129else
9b2b7d69
MM
6130 echo "$as_me: failed program was:" >&5
6131cat conftest.$ac_ext >&5
6132ac_cv_type_size_t=no
252b5132 6133fi
9b2b7d69 6134rm -f conftest.$ac_objext conftest.$ac_ext
d6d788bd 6135fi
9b2b7d69
MM
6136echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6137echo "${ECHO_T}$ac_cv_type_size_t" >&6
6138if test $ac_cv_type_size_t = yes; then
6139 :
6140else
6141
6142cat >>confdefs.h <<_ACEOF
252b5132 6143#define size_t unsigned
9b2b7d69 6144_ACEOF
252b5132
RH
6145
6146fi
6147
6148# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6149# for constant arguments. Useless!
9b2b7d69
MM
6150echo "$as_me:$LINENO: checking for working alloca.h" >&5
6151echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6152if test "${ac_cv_working_alloca_h+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6154else
9b2b7d69
MM
6155 cat >conftest.$ac_ext <<_ACEOF
6156#line $LINENO "configure"
252b5132
RH
6157#include "confdefs.h"
6158#include <alloca.h>
9b2b7d69
MM
6159#ifdef F77_DUMMY_MAIN
6160# ifdef __cplusplus
6161 extern "C"
6162# endif
6163 int F77_DUMMY_MAIN() { return 1; }
6164#endif
6165int
6166main ()
6167{
6168char *p = (char *) alloca (2 * sizeof (int));
6169 ;
6170 return 0;
6171}
6172_ACEOF
6173rm -f conftest.$ac_objext conftest$ac_exeext
6174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6175 (eval $ac_link) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -s conftest$ac_exeext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_working_alloca_h=yes
6186else
6187 echo "$as_me: failed program was:" >&5
6188cat conftest.$ac_ext >&5
6189ac_cv_working_alloca_h=no
6190fi
6191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6192fi
6193echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6194echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6195if test $ac_cv_working_alloca_h = yes; then
6196
6197cat >>confdefs.h <<\_ACEOF
252b5132 6198#define HAVE_ALLOCA_H 1
9b2b7d69 6199_ACEOF
252b5132
RH
6200
6201fi
6202
9b2b7d69
MM
6203echo "$as_me:$LINENO: checking for alloca" >&5
6204echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6205if test "${ac_cv_func_alloca_works+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6207else
9b2b7d69
MM
6208 cat >conftest.$ac_ext <<_ACEOF
6209#line $LINENO "configure"
252b5132 6210#include "confdefs.h"
252b5132
RH
6211#ifdef __GNUC__
6212# define alloca __builtin_alloca
6213#else
6214# ifdef _MSC_VER
6215# include <malloc.h>
6216# define alloca _alloca
6217# else
6218# if HAVE_ALLOCA_H
6219# include <alloca.h>
6220# else
6221# ifdef _AIX
6222 #pragma alloca
6223# else
6224# ifndef alloca /* predefined by HP cc +Olibcalls */
6225char *alloca ();
6226# endif
6227# endif
6228# endif
6229# endif
6230#endif
6231
9b2b7d69
MM
6232#ifdef F77_DUMMY_MAIN
6233# ifdef __cplusplus
6234 extern "C"
6235# endif
6236 int F77_DUMMY_MAIN() { return 1; }
6237#endif
6238int
6239main ()
6240{
6241char *p = (char *) alloca (1);
6242 ;
6243 return 0;
6244}
6245_ACEOF
6246rm -f conftest.$ac_objext conftest$ac_exeext
6247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6248 (eval $ac_link) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } &&
6252 { ac_try='test -s conftest$ac_exeext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
252b5132
RH
6258 ac_cv_func_alloca_works=yes
6259else
9b2b7d69
MM
6260 echo "$as_me: failed program was:" >&5
6261cat conftest.$ac_ext >&5
6262ac_cv_func_alloca_works=no
252b5132 6263fi
9b2b7d69 6264rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 6265fi
9b2b7d69
MM
6266echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6267echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6268
252b5132 6269if test $ac_cv_func_alloca_works = yes; then
252b5132 6270
9b2b7d69
MM
6271cat >>confdefs.h <<\_ACEOF
6272#define HAVE_ALLOCA 1
6273_ACEOF
6840198f 6274
9b2b7d69 6275else
d6d788bd 6276 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9b2b7d69
MM
6277# that cause trouble. Some versions do not even contain alloca or
6278# contain a buggy version. If you still want to use their alloca,
6279# use ar to extract alloca.o from them instead of compiling alloca.c.
6280
6281ALLOCA=alloca.$ac_objext
6282
6283cat >>confdefs.h <<\_ACEOF
252b5132 6284#define C_ALLOCA 1
9b2b7d69 6285_ACEOF
252b5132 6286
d6d788bd 6287
9b2b7d69
MM
6288echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6289echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6290if test "${ac_cv_os_cray+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6292else
9b2b7d69
MM
6293 cat >conftest.$ac_ext <<_ACEOF
6294#line $LINENO "configure"
252b5132
RH
6295#include "confdefs.h"
6296#if defined(CRAY) && ! defined(CRAY2)
6297webecray
6298#else
6299wenotbecray
6300#endif
6301
9b2b7d69 6302_ACEOF
252b5132
RH
6303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6304 egrep "webecray" >/dev/null 2>&1; then
252b5132
RH
6305 ac_cv_os_cray=yes
6306else
252b5132
RH
6307 ac_cv_os_cray=no
6308fi
6309rm -f conftest*
6310
6311fi
9b2b7d69
MM
6312echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6313echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 6314if test $ac_cv_os_cray = yes; then
9b2b7d69
MM
6315 for ac_func in _getb67 GETB67 getb67; do
6316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6317echo "$as_me:$LINENO: checking for $ac_func" >&5
6318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6319if eval "test \"\${$as_ac_var+set}\" = set"; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6321else
6322 cat >conftest.$ac_ext <<_ACEOF
6323#line $LINENO "configure"
252b5132
RH
6324#include "confdefs.h"
6325/* System header to define __stub macros and hopefully few prototypes,
9b2b7d69 6326 which can conflict with char $ac_func (); below. */
252b5132
RH
6327#include <assert.h>
6328/* Override any gcc2 internal prototype to avoid an error. */
9b2b7d69
MM
6329#ifdef __cplusplus
6330extern "C"
6331#endif
252b5132 6332/* We use char because int might match the return type of a gcc2
9b2b7d69
MM
6333 builtin and then its argument prototype would still apply. */
6334char $ac_func ();
6335char (*f) ();
252b5132 6336
9b2b7d69
MM
6337#ifdef F77_DUMMY_MAIN
6338# ifdef __cplusplus
6339 extern "C"
6340# endif
6341 int F77_DUMMY_MAIN() { return 1; }
6342#endif
6343int
6344main ()
6345{
252b5132
RH
6346/* The GNU C library defines this for functions which it implements
6347 to always fail with ENOSYS. Some functions are actually named
6348 something starting with __ and the normal name is an alias. */
6349#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6350choke me
6351#else
9b2b7d69 6352f = $ac_func;
252b5132
RH
6353#endif
6354
9b2b7d69
MM
6355 ;
6356 return 0;
6357}
6358_ACEOF
6359rm -f conftest.$ac_objext conftest$ac_exeext
6360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361 (eval $ac_link) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -s conftest$ac_exeext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 eval "$as_ac_var=yes"
6372else
6373 echo "$as_me: failed program was:" >&5
6374cat conftest.$ac_ext >&5
6375eval "$as_ac_var=no"
6376fi
6377rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6378fi
6379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6380echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6381if test `eval echo '${'$as_ac_var'}'` = yes; then
6382
6383cat >>confdefs.h <<_ACEOF
252b5132 6384#define CRAY_STACKSEG_END $ac_func
9b2b7d69 6385_ACEOF
252b5132 6386
9b2b7d69 6387 break
252b5132
RH
6388fi
6389
9b2b7d69 6390 done
252b5132
RH
6391fi
6392
9b2b7d69
MM
6393echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6394echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6395if test "${ac_cv_c_stack_direction+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6397else
6398 if test "$cross_compiling" = yes; then
6399 ac_cv_c_stack_direction=0
6400else
9b2b7d69
MM
6401 cat >conftest.$ac_ext <<_ACEOF
6402#line $LINENO "configure"
252b5132 6403#include "confdefs.h"
9b2b7d69 6404int
252b5132
RH
6405find_stack_direction ()
6406{
6407 static char *addr = 0;
6408 auto char dummy;
6409 if (addr == 0)
6410 {
6411 addr = &dummy;
6412 return find_stack_direction ();
6413 }
6414 else
6415 return (&dummy > addr) ? 1 : -1;
6416}
9b2b7d69
MM
6417
6418int
252b5132
RH
6419main ()
6420{
9b2b7d69 6421 exit (find_stack_direction () < 0);
252b5132 6422}
9b2b7d69
MM
6423_ACEOF
6424rm -f conftest$ac_exeext
6425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 (eval $ac_try) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
252b5132
RH
6435 ac_cv_c_stack_direction=1
6436else
9b2b7d69
MM
6437 echo "$as_me: program exited with status $ac_status" >&5
6438echo "$as_me: failed program was:" >&5
6439cat conftest.$ac_ext >&5
6440( exit $ac_status )
6441ac_cv_c_stack_direction=-1
252b5132 6442fi
9b2b7d69 6443rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6444fi
252b5132 6445fi
9b2b7d69
MM
6446echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6447echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6448
9b2b7d69 6449cat >>confdefs.h <<_ACEOF
252b5132 6450#define STACK_DIRECTION $ac_cv_c_stack_direction
9b2b7d69
MM
6451_ACEOF
6452
252b5132
RH
6453
6454fi
6455
9b2b7d69
MM
6456
6457
6458for ac_header in stdlib.h unistd.h
252b5132 6459do
9b2b7d69
MM
6460as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6461if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo "$as_me:$LINENO: checking for $ac_header" >&5
6463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6464if eval "test \"\${$as_ac_Header+set}\" = set"; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466fi
6467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6469else
6470 # Is the header compilable?
6471echo "$as_me:$LINENO: checking $ac_header usability" >&5
6472echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6473cat >conftest.$ac_ext <<_ACEOF
6474#line $LINENO "configure"
252b5132 6475#include "confdefs.h"
9b2b7d69
MM
6476$ac_includes_default
6477#include <$ac_header>
6478_ACEOF
6479rm -f conftest.$ac_objext
6480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try='test -s conftest.$ac_objext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 (eval $ac_try) 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_header_compiler=yes
6492else
6493 echo "$as_me: failed program was:" >&5
6494cat conftest.$ac_ext >&5
6495ac_header_compiler=no
6496fi
6497rm -f conftest.$ac_objext conftest.$ac_ext
6498echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6499echo "${ECHO_T}$ac_header_compiler" >&6
6500
6501# Is the header present?
6502echo "$as_me:$LINENO: checking $ac_header presence" >&5
6503echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6504cat >conftest.$ac_ext <<_ACEOF
6505#line $LINENO "configure"
6506#include "confdefs.h"
6507#include <$ac_header>
6508_ACEOF
6509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6511 ac_status=$?
6512 egrep -v '^ *\+' conftest.er1 >conftest.err
6513 rm -f conftest.er1
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } >/dev/null; then
6517 if test -s conftest.err; then
6518 ac_cpp_err=$ac_c_preproc_warn_flag
6519 else
6520 ac_cpp_err=
6521 fi
6522else
6523 ac_cpp_err=yes
6524fi
6525if test -z "$ac_cpp_err"; then
6526 ac_header_preproc=yes
252b5132 6527else
9b2b7d69 6528 echo "$as_me: failed program was:" >&5
252b5132 6529 cat conftest.$ac_ext >&5
9b2b7d69
MM
6530 ac_header_preproc=no
6531fi
6532rm -f conftest.err conftest.$ac_ext
6533echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6534echo "${ECHO_T}$ac_header_preproc" >&6
6535
6536# So? What about this header?
6537case $ac_header_compiler:$ac_header_preproc in
6538 yes:no )
6539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6542echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6543 no:yes )
6544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6545echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6547echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6549echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6550esac
6551echo "$as_me:$LINENO: checking for $ac_header" >&5
6552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6553if eval "test \"\${$as_ac_Header+set}\" = set"; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6555else
6556 eval "$as_ac_Header=$ac_header_preproc"
252b5132 6557fi
9b2b7d69
MM
6558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6560
252b5132 6561fi
9b2b7d69
MM
6562if test `eval echo '${'$as_ac_Header'}'` = yes; then
6563 cat >>confdefs.h <<_ACEOF
6564#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6565_ACEOF
6566
252b5132 6567fi
9b2b7d69 6568
252b5132
RH
6569done
6570
9b2b7d69 6571
252b5132
RH
6572for ac_func in getpagesize
6573do
9b2b7d69
MM
6574as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6575echo "$as_me:$LINENO: checking for $ac_func" >&5
6576echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6577if eval "test \"\${$as_ac_var+set}\" = set"; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580 cat >conftest.$ac_ext <<_ACEOF
6581#line $LINENO "configure"
252b5132
RH
6582#include "confdefs.h"
6583/* System header to define __stub macros and hopefully few prototypes,
9b2b7d69 6584 which can conflict with char $ac_func (); below. */
252b5132
RH
6585#include <assert.h>
6586/* Override any gcc2 internal prototype to avoid an error. */
9b2b7d69
MM
6587#ifdef __cplusplus
6588extern "C"
6589#endif
252b5132 6590/* We use char because int might match the return type of a gcc2
9b2b7d69
MM
6591 builtin and then its argument prototype would still apply. */
6592char $ac_func ();
6593char (*f) ();
252b5132 6594
9b2b7d69
MM
6595#ifdef F77_DUMMY_MAIN
6596# ifdef __cplusplus
6597 extern "C"
6598# endif
6599 int F77_DUMMY_MAIN() { return 1; }
6600#endif
6601int
6602main ()
6603{
252b5132
RH
6604/* The GNU C library defines this for functions which it implements
6605 to always fail with ENOSYS. Some functions are actually named
6606 something starting with __ and the normal name is an alias. */
6607#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6608choke me
6609#else
9b2b7d69 6610f = $ac_func;
252b5132
RH
6611#endif
6612
9b2b7d69
MM
6613 ;
6614 return 0;
6615}
6616_ACEOF
6617rm -f conftest.$ac_objext conftest$ac_exeext
6618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6619 (eval $ac_link) 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } &&
6623 { ac_try='test -s conftest$ac_exeext'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 (eval $ac_try) 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6629 eval "$as_ac_var=yes"
6630else
6631 echo "$as_me: failed program was:" >&5
6632cat conftest.$ac_ext >&5
6633eval "$as_ac_var=no"
6634fi
6635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6636fi
6637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6638echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6639if test `eval echo '${'$as_ac_var'}'` = yes; then
6640 cat >>confdefs.h <<_ACEOF
6641#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6642_ACEOF
252b5132 6643
252b5132
RH
6644fi
6645done
6646
9b2b7d69
MM
6647echo "$as_me:$LINENO: checking for working mmap" >&5
6648echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6649if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6651else
6652 if test "$cross_compiling" = yes; then
6653 ac_cv_func_mmap_fixed_mapped=no
6654else
9b2b7d69
MM
6655 cat >conftest.$ac_ext <<_ACEOF
6656#line $LINENO "configure"
252b5132 6657#include "confdefs.h"
9b2b7d69
MM
6658$ac_includes_default
6659/* malloc might have been renamed as rpl_malloc. */
6660#undef malloc
d6d788bd 6661
252b5132
RH
6662/* Thanks to Mike Haertel and Jim Avera for this test.
6663 Here is a matrix of mmap possibilities:
6664 mmap private not fixed
6665 mmap private fixed at somewhere currently unmapped
6666 mmap private fixed at somewhere already mapped
6667 mmap shared not fixed
6668 mmap shared fixed at somewhere currently unmapped
6669 mmap shared fixed at somewhere already mapped
6670 For private mappings, we should verify that changes cannot be read()
6671 back from the file, nor mmap's back from the file at a different
6672 address. (There have been systems where private was not correctly
6673 implemented like the infamous i386 svr4.0, and systems where the
9b2b7d69 6674 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6675 like early versions of FreeBSD and possibly contemporary NetBSD.)
6676 For shared mappings, we should conversely verify that changes get
9b2b7d69 6677 propagated back to all the places they're supposed to be.
252b5132
RH
6678
6679 Grep wants private fixed already mapped.
6680 The main things grep needs to know about mmap are:
6681 * does it exist and is it safe to write into the mmap'd area
6682 * how to use it (BSD variants) */
9b2b7d69 6683
252b5132
RH
6684#include <fcntl.h>
6685#include <sys/mman.h>
6686
9b2b7d69
MM
6687#if !STDC_HEADERS && !HAVE_STDLIB_H
6688char *malloc ();
9253c5e5
AM
6689#endif
6690
6840198f 6691/* This mess was copied from the GNU getpagesize.h. */
9b2b7d69 6692#if !HAVE_GETPAGESIZE
252b5132 6693/* Assume that all systems that can run configure have sys/param.h. */
9b2b7d69 6694# if !HAVE_SYS_PARAM_H
252b5132
RH
6695# define HAVE_SYS_PARAM_H 1
6696# endif
6697
6698# ifdef _SC_PAGESIZE
6699# define getpagesize() sysconf(_SC_PAGESIZE)
6700# else /* no _SC_PAGESIZE */
9b2b7d69 6701# if HAVE_SYS_PARAM_H
252b5132
RH
6702# include <sys/param.h>
6703# ifdef EXEC_PAGESIZE
6704# define getpagesize() EXEC_PAGESIZE
6705# else /* no EXEC_PAGESIZE */
6706# ifdef NBPG
6707# define getpagesize() NBPG * CLSIZE
6708# ifndef CLSIZE
6709# define CLSIZE 1
6710# endif /* no CLSIZE */
6711# else /* no NBPG */
6712# ifdef NBPC
6713# define getpagesize() NBPC
6714# else /* no NBPC */
6715# ifdef PAGESIZE
6716# define getpagesize() PAGESIZE
6717# endif /* PAGESIZE */
6718# endif /* no NBPC */
6719# endif /* no NBPG */
6720# endif /* no EXEC_PAGESIZE */
6721# else /* no HAVE_SYS_PARAM_H */
6722# define getpagesize() 8192 /* punt totally */
6723# endif /* no HAVE_SYS_PARAM_H */
6724# endif /* no _SC_PAGESIZE */
6725
6726#endif /* no HAVE_GETPAGESIZE */
6727
252b5132 6728int
9b2b7d69 6729main ()
252b5132 6730{
9b2b7d69
MM
6731 char *data, *data2, *data3;
6732 int i, pagesize;
6733 int fd;
6734
6735 pagesize = getpagesize ();
6736
6737 /* First, make a file with some known garbage in it. */
6738 data = (char *) malloc (pagesize);
6739 if (!data)
6740 exit (1);
6741 for (i = 0; i < pagesize; ++i)
6742 *(data + i) = rand ();
6743 umask (0);
6744 fd = creat ("conftest.mmap", 0600);
6745 if (fd < 0)
6746 exit (1);
6747 if (write (fd, data, pagesize) != pagesize)
6748 exit (1);
6749 close (fd);
6750
6751 /* Next, try to mmap the file at a fixed address which already has
6752 something else allocated at it. If we can, also make sure that
6753 we see the same garbage. */
6754 fd = open ("conftest.mmap", O_RDWR);
6755 if (fd < 0)
6756 exit (1);
6757 data2 = (char *) malloc (2 * pagesize);
6758 if (!data2)
6759 exit (1);
6760 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6761 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6762 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6763 exit (1);
6764 for (i = 0; i < pagesize; ++i)
6765 if (*(data + i) != *(data2 + i))
6766 exit (1);
6767
6768 /* Finally, make sure that changes to the mapped area do not
6769 percolate back to the file as seen by read(). (This is a bug on
6770 some variants of i386 svr4.0.) */
6771 for (i = 0; i < pagesize; ++i)
6772 *(data2 + i) = *(data2 + i) + 1;
6773 data3 = (char *) malloc (pagesize);
6774 if (!data3)
6775 exit (1);
6776 if (read (fd, data3, pagesize) != pagesize)
6777 exit (1);
6778 for (i = 0; i < pagesize; ++i)
6779 if (*(data + i) != *(data3 + i))
6780 exit (1);
6781 close (fd);
6782 exit (0);
252b5132 6783}
9b2b7d69
MM
6784_ACEOF
6785rm -f conftest$ac_exeext
6786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6787 (eval $ac_link) 2>&5
6788 ac_status=$?
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 (eval $ac_try) 2>&5
6793 ac_status=$?
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; }; then
252b5132
RH
6796 ac_cv_func_mmap_fixed_mapped=yes
6797else
9b2b7d69
MM
6798 echo "$as_me: program exited with status $ac_status" >&5
6799echo "$as_me: failed program was:" >&5
6800cat conftest.$ac_ext >&5
6801( exit $ac_status )
6802ac_cv_func_mmap_fixed_mapped=no
6803fi
6804rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6805fi
252b5132 6806fi
9b2b7d69
MM
6807echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6808echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6809if test $ac_cv_func_mmap_fixed_mapped = yes; then
6810
6811cat >>confdefs.h <<\_ACEOF
6812#define HAVE_MMAP 1
6813_ACEOF
6814
6815fi
6816rm -f conftest.mmap
6817
6818
6819
6820
6821
6822
d6d788bd 6823
6840198f 6824
252b5132 6825
252b5132 6826
9b2b7d69
MM
6827
6828for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6829unistd.h values.h sys/param.h
6830do
9b2b7d69
MM
6831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6832if eval "test \"\${$as_ac_Header+set}\" = set"; then
6833 echo "$as_me:$LINENO: checking for $ac_header" >&5
6834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6835if eval "test \"\${$as_ac_Header+set}\" = set"; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837fi
6838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6840else
6841 # Is the header compilable?
6842echo "$as_me:$LINENO: checking $ac_header usability" >&5
6843echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6844cat >conftest.$ac_ext <<_ACEOF
6845#line $LINENO "configure"
252b5132 6846#include "confdefs.h"
9b2b7d69
MM
6847$ac_includes_default
6848#include <$ac_header>
6849_ACEOF
6850rm -f conftest.$ac_objext
6851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852 (eval $ac_compile) 2>&5
6853 ac_status=$?
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } &&
6856 { ac_try='test -s conftest.$ac_objext'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 (eval $ac_try) 2>&5
6859 ac_status=$?
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; }; then
6862 ac_header_compiler=yes
6863else
6864 echo "$as_me: failed program was:" >&5
6865cat conftest.$ac_ext >&5
6866ac_header_compiler=no
6867fi
6868rm -f conftest.$ac_objext conftest.$ac_ext
6869echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6870echo "${ECHO_T}$ac_header_compiler" >&6
6871
6872# Is the header present?
6873echo "$as_me:$LINENO: checking $ac_header presence" >&5
6874echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6875cat >conftest.$ac_ext <<_ACEOF
6876#line $LINENO "configure"
6877#include "confdefs.h"
6878#include <$ac_header>
6879_ACEOF
6880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6882 ac_status=$?
6883 egrep -v '^ *\+' conftest.er1 >conftest.err
6884 rm -f conftest.er1
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } >/dev/null; then
6888 if test -s conftest.err; then
6889 ac_cpp_err=$ac_c_preproc_warn_flag
6890 else
6891 ac_cpp_err=
6892 fi
252b5132 6893else
9b2b7d69
MM
6894 ac_cpp_err=yes
6895fi
6896if test -z "$ac_cpp_err"; then
6897 ac_header_preproc=yes
6898else
6899 echo "$as_me: failed program was:" >&5
252b5132 6900 cat conftest.$ac_ext >&5
9b2b7d69
MM
6901 ac_header_preproc=no
6902fi
6903rm -f conftest.err conftest.$ac_ext
6904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6905echo "${ECHO_T}$ac_header_preproc" >&6
6906
6907# So? What about this header?
6908case $ac_header_compiler:$ac_header_preproc in
6909 yes:no )
6910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6914 no:yes )
6915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6916echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6918echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6921esac
6922echo "$as_me:$LINENO: checking for $ac_header" >&5
6923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6924if eval "test \"\${$as_ac_Header+set}\" = set"; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926else
6927 eval "$as_ac_Header=$ac_header_preproc"
252b5132 6928fi
9b2b7d69
MM
6929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6931
252b5132 6932fi
9b2b7d69
MM
6933if test `eval echo '${'$as_ac_Header'}'` = yes; then
6934 cat >>confdefs.h <<_ACEOF
6935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6936_ACEOF
6937
252b5132 6938fi
9b2b7d69 6939
252b5132
RH
6940done
6941
9b2b7d69
MM
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6953__argz_count __argz_stringify __argz_next
6954do
9b2b7d69
MM
6955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6956echo "$as_me:$LINENO: checking for $ac_func" >&5
6957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6958if eval "test \"\${$as_ac_var+set}\" = set"; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960else
6961 cat >conftest.$ac_ext <<_ACEOF
6962#line $LINENO "configure"
252b5132
RH
6963#include "confdefs.h"
6964/* System header to define __stub macros and hopefully few prototypes,
9b2b7d69 6965 which can conflict with char $ac_func (); below. */
252b5132
RH
6966#include <assert.h>
6967/* Override any gcc2 internal prototype to avoid an error. */
9b2b7d69
MM
6968#ifdef __cplusplus
6969extern "C"
6970#endif
252b5132 6971/* We use char because int might match the return type of a gcc2
9b2b7d69
MM
6972 builtin and then its argument prototype would still apply. */
6973char $ac_func ();
6974char (*f) ();
252b5132 6975
9b2b7d69
MM
6976#ifdef F77_DUMMY_MAIN
6977# ifdef __cplusplus
6978 extern "C"
6979# endif
6980 int F77_DUMMY_MAIN() { return 1; }
6981#endif
6982int
6983main ()
6984{
252b5132
RH
6985/* The GNU C library defines this for functions which it implements
6986 to always fail with ENOSYS. Some functions are actually named
6987 something starting with __ and the normal name is an alias. */
6988#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6989choke me
6990#else
9b2b7d69 6991f = $ac_func;
252b5132
RH
6992#endif
6993
9b2b7d69
MM
6994 ;
6995 return 0;
6996}
6997_ACEOF
6998rm -f conftest.$ac_objext conftest$ac_exeext
6999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7000 (eval $ac_link) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
7004 { ac_try='test -s conftest$ac_exeext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 eval "$as_ac_var=yes"
7011else
7012 echo "$as_me: failed program was:" >&5
7013cat conftest.$ac_ext >&5
7014eval "$as_ac_var=no"
7015fi
7016rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7017fi
7018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7019echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7020if test `eval echo '${'$as_ac_var'}'` = yes; then
7021 cat >>confdefs.h <<_ACEOF
7022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7023_ACEOF
252b5132 7024
252b5132
RH
7025fi
7026done
7027
6840198f 7028
d6d788bd 7029 if test "${ac_cv_func_stpcpy+set}" != "set"; then
9b2b7d69
MM
7030
7031for ac_func in stpcpy
252b5132 7032do
9b2b7d69
MM
7033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7034echo "$as_me:$LINENO: checking for $ac_func" >&5
7035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7036if eval "test \"\${$as_ac_var+set}\" = set"; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038else
7039 cat >conftest.$ac_ext <<_ACEOF
7040#line $LINENO "configure"
252b5132
RH
7041#include "confdefs.h"
7042/* System header to define __stub macros and hopefully few prototypes,
9b2b7d69 7043 which can conflict with char $ac_func (); below. */
252b5132
RH
7044#include <assert.h>
7045/* Override any gcc2 internal prototype to avoid an error. */
9b2b7d69
MM
7046#ifdef __cplusplus
7047extern "C"
7048#endif
252b5132 7049/* We use char because int might match the return type of a gcc2
9b2b7d69
MM
7050 builtin and then its argument prototype would still apply. */
7051char $ac_func ();
7052char (*f) ();
252b5132 7053
9b2b7d69
MM
7054#ifdef F77_DUMMY_MAIN
7055# ifdef __cplusplus
7056 extern "C"
7057# endif
7058 int F77_DUMMY_MAIN() { return 1; }
7059#endif
7060int
7061main ()
7062{
252b5132
RH
7063/* The GNU C library defines this for functions which it implements
7064 to always fail with ENOSYS. Some functions are actually named
7065 something starting with __ and the normal name is an alias. */
7066#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7067choke me
7068#else
9b2b7d69 7069f = $ac_func;
252b5132
RH
7070#endif
7071
9b2b7d69
MM
7072 ;
7073 return 0;
7074}
7075_ACEOF
7076rm -f conftest.$ac_objext conftest$ac_exeext
7077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try='test -s conftest$ac_exeext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 eval "$as_ac_var=yes"
7089else
7090 echo "$as_me: failed program was:" >&5
7091cat conftest.$ac_ext >&5
7092eval "$as_ac_var=no"
7093fi
7094rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7095fi
7096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7097echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7098if test `eval echo '${'$as_ac_var'}'` = yes; then
7099 cat >>confdefs.h <<_ACEOF
7100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7101_ACEOF
252b5132 7102
252b5132
RH
7103fi
7104done
7105
7106 fi
7107 if test "${ac_cv_func_stpcpy}" = "yes"; then
9b2b7d69
MM
7108
7109cat >>confdefs.h <<\_ACEOF
252b5132 7110#define HAVE_STPCPY 1
9b2b7d69 7111_ACEOF
252b5132
RH
7112
7113 fi
7114
7115 if test $ac_cv_header_locale_h = yes; then
9b2b7d69
MM
7116 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7117echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7118if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7120else
9b2b7d69
MM
7121 cat >conftest.$ac_ext <<_ACEOF
7122#line $LINENO "configure"
252b5132
RH
7123#include "confdefs.h"
7124#include <locale.h>
9b2b7d69
MM
7125#ifdef F77_DUMMY_MAIN
7126# ifdef __cplusplus
7127 extern "C"
7128# endif
7129 int F77_DUMMY_MAIN() { return 1; }
7130#endif
7131int
7132main ()
7133{
252b5132 7134return LC_MESSAGES
9b2b7d69
MM
7135 ;
7136 return 0;
7137}
7138_ACEOF
7139rm -f conftest.$ac_objext conftest$ac_exeext
7140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7141 (eval $ac_link) 2>&5
7142 ac_status=$?
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } &&
7145 { ac_try='test -s conftest$ac_exeext'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 (eval $ac_try) 2>&5
7148 ac_status=$?
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
252b5132
RH
7151 am_cv_val_LC_MESSAGES=yes
7152else
9b2b7d69
MM
7153 echo "$as_me: failed program was:" >&5
7154cat conftest.$ac_ext >&5
7155am_cv_val_LC_MESSAGES=no
252b5132 7156fi
9b2b7d69 7157rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 7158fi
9b2b7d69
MM
7159echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7160echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
d6d788bd 7161 if test $am_cv_val_LC_MESSAGES = yes; then
9b2b7d69
MM
7162
7163cat >>confdefs.h <<\_ACEOF
252b5132 7164#define HAVE_LC_MESSAGES 1
9b2b7d69 7165_ACEOF
252b5132
RH
7166
7167 fi
7168 fi
9b2b7d69
MM
7169 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7170echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7171 # Check whether --enable-nls or --disable-nls was given.
7172if test "${enable_nls+set}" = set; then
7173 enableval="$enable_nls"
7174 USE_NLS=$enableval
7175else
7176 USE_NLS=yes
9b2b7d69
MM
7177fi;
7178 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7179echo "${ECHO_T}$USE_NLS" >&6
d6d788bd 7180
252b5132
RH
7181
7182 USE_INCLUDED_LIBINTL=no
7183
7184 if test "$USE_NLS" = "yes"; then
9b2b7d69
MM
7185
7186cat >>confdefs.h <<\_ACEOF
252b5132 7187#define ENABLE_NLS 1
9b2b7d69
MM
7188_ACEOF
7189
7190 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7191echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
252b5132 7192
9b2b7d69 7193# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7194if test "${with_included_gettext+set}" = set; then
7195 withval="$with_included_gettext"
7196 nls_cv_force_use_gnu_gettext=$withval
7197else
7198 nls_cv_force_use_gnu_gettext=no
9b2b7d69
MM
7199fi;
7200 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7201echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7202
7203 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7204 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7205 nls_cv_header_intl=
7206 nls_cv_header_libgt=
7207 CATOBJEXT=NONE
7208
9b2b7d69
MM
7209 if test "${ac_cv_header_libintl_h+set}" = set; then
7210 echo "$as_me:$LINENO: checking for libintl.h" >&5
7211echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7212if test "${ac_cv_header_libintl_h+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214fi
7215echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7216echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
252b5132 7217else
9b2b7d69
MM
7218 # Is the header compilable?
7219echo "$as_me:$LINENO: checking libintl.h usability" >&5
7220echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7221cat >conftest.$ac_ext <<_ACEOF
7222#line $LINENO "configure"
252b5132 7223#include "confdefs.h"
9b2b7d69 7224$ac_includes_default
252b5132 7225#include <libintl.h>
9b2b7d69
MM
7226_ACEOF
7227rm -f conftest.$ac_objext
7228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7229 (eval $ac_compile) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } &&
7233 { ac_try='test -s conftest.$ac_objext'
7234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 (eval $ac_try) 2>&5
7236 ac_status=$?
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); }; }; then
7239 ac_header_compiler=yes
7240else
7241 echo "$as_me: failed program was:" >&5
7242cat conftest.$ac_ext >&5
7243ac_header_compiler=no
7244fi
7245rm -f conftest.$ac_objext conftest.$ac_ext
7246echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7247echo "${ECHO_T}$ac_header_compiler" >&6
7248
7249# Is the header present?
7250echo "$as_me:$LINENO: checking libintl.h presence" >&5
7251echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7252cat >conftest.$ac_ext <<_ACEOF
7253#line $LINENO "configure"
7254#include "confdefs.h"
7255#include <libintl.h>
7256_ACEOF
7257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7259 ac_status=$?
7260 egrep -v '^ *\+' conftest.er1 >conftest.err
7261 rm -f conftest.er1
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } >/dev/null; then
7265 if test -s conftest.err; then
7266 ac_cpp_err=$ac_c_preproc_warn_flag
7267 else
7268 ac_cpp_err=
7269 fi
7270else
7271 ac_cpp_err=yes
7272fi
7273if test -z "$ac_cpp_err"; then
7274 ac_header_preproc=yes
252b5132 7275else
9b2b7d69 7276 echo "$as_me: failed program was:" >&5
252b5132 7277 cat conftest.$ac_ext >&5
9b2b7d69
MM
7278 ac_header_preproc=no
7279fi
7280rm -f conftest.err conftest.$ac_ext
7281echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7282echo "${ECHO_T}$ac_header_preproc" >&6
7283
7284# So? What about this header?
7285case $ac_header_compiler:$ac_header_preproc in
7286 yes:no )
7287 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7288echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7289 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7290echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7291 no:yes )
7292 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7293echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7294 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7295echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7296 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7297echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7298esac
7299echo "$as_me:$LINENO: checking for libintl.h" >&5
7300echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7301if test "${ac_cv_header_libintl_h+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303else
7304 ac_cv_header_libintl_h=$ac_header_preproc
252b5132 7305fi
9b2b7d69
MM
7306echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7307echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7308
252b5132 7309fi
9b2b7d69
MM
7310if test $ac_cv_header_libintl_h = yes; then
7311 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7312echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7313if test "${gt_cv_func_gettext_libc+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7315else
9b2b7d69
MM
7316 cat >conftest.$ac_ext <<_ACEOF
7317#line $LINENO "configure"
252b5132
RH
7318#include "confdefs.h"
7319#include <libintl.h>
9b2b7d69
MM
7320#ifdef F77_DUMMY_MAIN
7321# ifdef __cplusplus
7322 extern "C"
7323# endif
7324 int F77_DUMMY_MAIN() { return 1; }
7325#endif
7326int
7327main ()
7328{
252b5132 7329return (int) gettext ("")
9b2b7d69
MM
7330 ;
7331 return 0;
7332}
7333_ACEOF
7334rm -f conftest.$ac_objext conftest$ac_exeext
7335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7336 (eval $ac_link) 2>&5
7337 ac_status=$?
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } &&
7340 { ac_try='test -s conftest$ac_exeext'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 (eval $ac_try) 2>&5
7343 ac_status=$?
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; }; then
252b5132
RH
7346 gt_cv_func_gettext_libc=yes
7347else
9b2b7d69
MM
7348 echo "$as_me: failed program was:" >&5
7349cat conftest.$ac_ext >&5
7350gt_cv_func_gettext_libc=no
252b5132 7351fi
9b2b7d69 7352rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 7353fi
9b2b7d69
MM
7354echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7355echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7356
7357 if test "$gt_cv_func_gettext_libc" != "yes"; then
9b2b7d69
MM
7358 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7359echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7360if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7362else
9b2b7d69 7363 ac_check_lib_save_LIBS=$LIBS
252b5132 7364LIBS="-lintl $LIBS"
9b2b7d69
MM
7365cat >conftest.$ac_ext <<_ACEOF
7366#line $LINENO "configure"
252b5132 7367#include "confdefs.h"
9b2b7d69 7368
252b5132 7369/* Override any gcc2 internal prototype to avoid an error. */
9b2b7d69
MM
7370#ifdef __cplusplus
7371extern "C"
7372#endif
252b5132 7373/* We use char because int might match the return type of a gcc2
9b2b7d69
MM
7374 builtin and then its argument prototype would still apply. */
7375char bindtextdomain ();
7376#ifdef F77_DUMMY_MAIN
7377# ifdef __cplusplus
7378 extern "C"
7379# endif
7380 int F77_DUMMY_MAIN() { return 1; }
7381#endif
7382int
7383main ()
7384{
7385bindtextdomain ();
7386 ;
7387 return 0;
7388}
7389_ACEOF
7390rm -f conftest.$ac_objext conftest$ac_exeext
7391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7392 (eval $ac_link) 2>&5
7393 ac_status=$?
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } &&
7396 { ac_try='test -s conftest$ac_exeext'
7397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 (eval $ac_try) 2>&5
7399 ac_status=$?
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; }; then
7402 ac_cv_lib_intl_bindtextdomain=yes
7403else
7404 echo "$as_me: failed program was:" >&5
7405cat conftest.$ac_ext >&5
7406ac_cv_lib_intl_bindtextdomain=no
7407fi
7408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7409LIBS=$ac_check_lib_save_LIBS
7410fi
7411echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7412echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7413if test $ac_cv_lib_intl_bindtextdomain = yes; then
7414 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7415echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7416if test "${gt_cv_func_gettext_libintl+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419 cat >conftest.$ac_ext <<_ACEOF
7420#line $LINENO "configure"
d6d788bd
L
7421#include "confdefs.h"
7422
9b2b7d69
MM
7423#ifdef F77_DUMMY_MAIN
7424# ifdef __cplusplus
7425 extern "C"
7426# endif
7427 int F77_DUMMY_MAIN() { return 1; }
7428#endif
7429int
7430main ()
7431{
252b5132 7432return (int) gettext ("")
9b2b7d69
MM
7433 ;
7434 return 0;
7435}
7436_ACEOF
7437rm -f conftest.$ac_objext conftest$ac_exeext
7438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439 (eval $ac_link) 2>&5
7440 ac_status=$?
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } &&
7443 { ac_try='test -s conftest$ac_exeext'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 (eval $ac_try) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; }; then
252b5132
RH
7449 gt_cv_func_gettext_libintl=yes
7450else
9b2b7d69
MM
7451 echo "$as_me: failed program was:" >&5
7452cat conftest.$ac_ext >&5
7453gt_cv_func_gettext_libintl=no
252b5132 7454fi
9b2b7d69 7455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 7456fi
9b2b7d69
MM
7457echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7458echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7459fi
7460
7461 fi
7462
7463 if test "$gt_cv_func_gettext_libc" = "yes" \
7464 || test "$gt_cv_func_gettext_libintl" = "yes"; then
9b2b7d69
MM
7465
7466cat >>confdefs.h <<\_ACEOF
252b5132 7467#define HAVE_GETTEXT 1
9b2b7d69 7468_ACEOF
252b5132
RH
7469
7470 # Extract the first word of "msgfmt", so it can be a program name with args.
7471set dummy msgfmt; ac_word=$2
9b2b7d69
MM
7472echo "$as_me:$LINENO: checking for $ac_word" >&5
7473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7474if test "${ac_cv_path_MSGFMT+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7476else
7477 case "$MSGFMT" in
7478 /*)
7479 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7480 ;;
7481 *)
7482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7483 for ac_dir in $PATH; do
7484 test -z "$ac_dir" && ac_dir=.
7485 if test -f $ac_dir/$ac_word; then
7486 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7487 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7488 break
7489 fi
7490 fi
7491 done
7492 IFS="$ac_save_ifs"
7493 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7494 ;;
7495esac
7496fi
7497MSGFMT="$ac_cv_path_MSGFMT"
7498if test -n "$MSGFMT"; then
9b2b7d69
MM
7499 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7500echo "${ECHO_T}$MSGFMT" >&6
252b5132 7501else
9b2b7d69
MM
7502 echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6
252b5132
RH
7504fi
7505 if test "$MSGFMT" != "no"; then
9b2b7d69
MM
7506
7507for ac_func in dcgettext
252b5132 7508do
9b2b7d69
MM
7509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7510echo "$as_me:$LINENO: checking for $ac_func" >&5
7511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7512if eval "test \"\${$as_ac_var+set}\" = set"; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514else
7515 cat >conftest.$ac_ext <<_ACEOF
7516#line $LINENO "configure"
252b5132
RH
7517#include "confdefs.h"
7518/* System header to define __stub macros and hopefully few prototypes,
9b2b7d69 7519 which can conflict with char $ac_func (); below. */
252b5132
RH
7520#include <assert.h>
7521/* Override any gcc2 internal prototype to avoid an error. */
9b2b7d69
MM
7522#ifdef __cplusplus
7523extern "C"
7524#endif
252b5132 7525/* We use char because int might match the return type of a gcc2
9b2b7d69
MM
7526 builtin and then its argument prototype would still apply. */
7527char $ac_func ();
7528char (*f) ();
252b5132 7529
9b2b7d69
MM
7530#ifdef F77_DUMMY_MAIN
7531# ifdef __cplusplus
7532 extern "C"
7533# endif
7534 int F77_DUMMY_MAIN() { return 1; }
7535#endif
7536int
7537main ()
7538{
252b5132
RH
7539/* The GNU C library defines this for functions which it implements
7540 to always fail with ENOSYS. Some functions are actually named
7541 something starting with __ and the normal name is an alias. */
7542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7543choke me
7544#else
9b2b7d69 7545f = $ac_func;
252b5132
RH
7546#endif
7547
9b2b7d69
MM
7548 ;
7549 return 0;
7550}
7551_ACEOF
7552rm -f conftest.$ac_objext conftest$ac_exeext
7553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7554 (eval $ac_link) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } &&
7558 { ac_try='test -s conftest$ac_exeext'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 (eval $ac_try) 2>&5
7561 ac_status=$?
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
7564 eval "$as_ac_var=yes"
7565else
7566 echo "$as_me: failed program was:" >&5
7567cat conftest.$ac_ext >&5
7568eval "$as_ac_var=no"
7569fi
7570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7571fi
7572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7574if test `eval echo '${'$as_ac_var'}'` = yes; then
7575 cat >>confdefs.h <<_ACEOF
7576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7577_ACEOF
252b5132 7578
252b5132
RH
7579fi
7580done
7581
7582 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7583set dummy gmsgfmt; ac_word=$2
9b2b7d69
MM
7584echo "$as_me:$LINENO: checking for $ac_word" >&5
7585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586if test "${ac_cv_path_GMSGFMT+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7588else
9b2b7d69
MM
7589 case $GMSGFMT in
7590 [\\/]* | ?:[\\/]*)
252b5132
RH
7591 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7592 ;;
252b5132 7593 *)
9b2b7d69
MM
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595for as_dir in $PATH
7596do
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7604 fi
7605done
7606done
7607
252b5132
RH
7608 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7609 ;;
7610esac
7611fi
9b2b7d69
MM
7612GMSGFMT=$ac_cv_path_GMSGFMT
7613
252b5132 7614if test -n "$GMSGFMT"; then
9b2b7d69
MM
7615 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7616echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7617else
9b2b7d69
MM
7618 echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6
252b5132
RH
7620fi
7621
7622 # Extract the first word of "xgettext", so it can be a program name with args.
7623set dummy xgettext; ac_word=$2
9b2b7d69
MM
7624echo "$as_me:$LINENO: checking for $ac_word" >&5
7625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7626if test "${ac_cv_path_XGETTEXT+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7628else
7629 case "$XGETTEXT" in
7630 /*)
7631 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7632 ;;
7633 *)
7634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7635 for ac_dir in $PATH; do
7636 test -z "$ac_dir" && ac_dir=.
7637 if test -f $ac_dir/$ac_word; then
7638 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7639 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7640 break
7641 fi
7642 fi
7643 done
7644 IFS="$ac_save_ifs"
7645 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7646 ;;
7647esac
7648fi
7649XGETTEXT="$ac_cv_path_XGETTEXT"
7650if test -n "$XGETTEXT"; then
9b2b7d69
MM
7651 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7652echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7653else
9b2b7d69
MM
7654 echo "$as_me:$LINENO: result: no" >&5
7655echo "${ECHO_T}no" >&6
252b5132
RH
7656fi
7657
9b2b7d69
MM
7658 cat >conftest.$ac_ext <<_ACEOF
7659#line $LINENO "configure"
252b5132
RH
7660#include "confdefs.h"
7661
9b2b7d69
MM
7662#ifdef F77_DUMMY_MAIN
7663# ifdef __cplusplus
7664 extern "C"
7665# endif
7666 int F77_DUMMY_MAIN() { return 1; }
7667#endif
7668int
7669main ()
7670{
252b5132
RH
7671extern int _nl_msg_cat_cntr;
7672 return _nl_msg_cat_cntr
9b2b7d69
MM
7673 ;
7674 return 0;
7675}
7676_ACEOF
7677rm -f conftest.$ac_objext conftest$ac_exeext
7678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679 (eval $ac_link) 2>&5
7680 ac_status=$?
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -s conftest$ac_exeext'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 (eval $ac_try) 2>&5
7686 ac_status=$?
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
252b5132
RH
7689 CATOBJEXT=.gmo
7690 DATADIRNAME=share
7691else
9b2b7d69
MM
7692 echo "$as_me: failed program was:" >&5
7693cat conftest.$ac_ext >&5
7694CATOBJEXT=.mo
252b5132
RH
7695 DATADIRNAME=lib
7696fi
9b2b7d69 7697rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7698 INSTOBJEXT=.mo
7699 fi
7700 fi
9b2b7d69 7701
6840198f 7702fi
252b5132 7703
d6d788bd 7704
9b2b7d69
MM
7705
7706
252b5132
RH
7707 if test "$CATOBJEXT" = "NONE"; then
7708 nls_cv_use_gnu_gettext=yes
7709 fi
7710 fi
7711
7712 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7713 INTLOBJS="\$(GETTOBJS)"
7714 # Extract the first word of "msgfmt", so it can be a program name with args.
7715set dummy msgfmt; ac_word=$2
9b2b7d69
MM
7716echo "$as_me:$LINENO: checking for $ac_word" >&5
7717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7718if test "${ac_cv_path_MSGFMT+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7720else
7721 case "$MSGFMT" in
7722 /*)
7723 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7724 ;;
7725 *)
7726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7727 for ac_dir in $PATH; do
7728 test -z "$ac_dir" && ac_dir=.
7729 if test -f $ac_dir/$ac_word; then
7730 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7731 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7732 break
7733 fi
7734 fi
7735 done
7736 IFS="$ac_save_ifs"
7737 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7738 ;;
7739esac
7740fi
7741MSGFMT="$ac_cv_path_MSGFMT"
7742if test -n "$MSGFMT"; then
9b2b7d69
MM
7743 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7744echo "${ECHO_T}$MSGFMT" >&6
252b5132 7745else
9b2b7d69
MM
7746 echo "$as_me:$LINENO: result: no" >&5
7747echo "${ECHO_T}no" >&6
252b5132
RH
7748fi
7749
7750 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7751set dummy gmsgfmt; ac_word=$2
9b2b7d69
MM
7752echo "$as_me:$LINENO: checking for $ac_word" >&5
7753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7754if test "${ac_cv_path_GMSGFMT+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7756else
9b2b7d69
MM
7757 case $GMSGFMT in
7758 [\\/]* | ?:[\\/]*)
252b5132
RH
7759 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7760 ;;
252b5132 7761 *)
9b2b7d69
MM
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773done
7774done
7775
252b5132
RH
7776 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7777 ;;
7778esac
7779fi
9b2b7d69
MM
7780GMSGFMT=$ac_cv_path_GMSGFMT
7781
252b5132 7782if test -n "$GMSGFMT"; then
9b2b7d69
MM
7783 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7784echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7785else
9b2b7d69
MM
7786 echo "$as_me:$LINENO: result: no" >&5
7787echo "${ECHO_T}no" >&6
252b5132
RH
7788fi
7789
7790 # Extract the first word of "xgettext", so it can be a program name with args.
7791set dummy xgettext; ac_word=$2
9b2b7d69
MM
7792echo "$as_me:$LINENO: checking for $ac_word" >&5
7793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7794if test "${ac_cv_path_XGETTEXT+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7796else
7797 case "$XGETTEXT" in
7798 /*)
7799 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7800 ;;
7801 *)
7802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7803 for ac_dir in $PATH; do
7804 test -z "$ac_dir" && ac_dir=.
7805 if test -f $ac_dir/$ac_word; then
7806 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7807 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7808 break
7809 fi
7810 fi
7811 done
7812 IFS="$ac_save_ifs"
7813 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7814 ;;
7815esac
7816fi
7817XGETTEXT="$ac_cv_path_XGETTEXT"
7818if test -n "$XGETTEXT"; then
9b2b7d69
MM
7819 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7820echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7821else
9b2b7d69
MM
7822 echo "$as_me:$LINENO: result: no" >&5
7823echo "${ECHO_T}no" >&6
252b5132
RH
7824fi
7825
9b2b7d69 7826
252b5132
RH
7827 USE_INCLUDED_LIBINTL=yes
7828 CATOBJEXT=.gmo
7829 INSTOBJEXT=.mo
7830 DATADIRNAME=share
7831 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7832 INTLLIBS=$INTLDEPS
7833 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7834 nls_cv_header_intl=libintl.h
7835 nls_cv_header_libgt=libgettext.h
7836 fi
7837
7838 if test "$XGETTEXT" != ":"; then
7839 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7840 : ;
7841 else
9b2b7d69
MM
7842 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7843echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
7844 XGETTEXT=":"
7845 fi
7846 fi
7847
7848 # We need to process the po/ directory.
7849 POSUB=po
7850 else
7851 DATADIRNAME=share
7852 nls_cv_header_intl=libintl.h
7853 nls_cv_header_libgt=libgettext.h
7854 fi
7855
7856 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7857 # because some of the sources are only built for this goal.
7858 if test "$PACKAGE" = gettext; then
7859 USE_NLS=yes
7860 USE_INCLUDED_LIBINTL=yes
7861 fi
7862
7863 for lang in $ALL_LINGUAS; do
7864 GMOFILES="$GMOFILES $lang.gmo"
7865 POFILES="$POFILES $lang.po"
7866 done
7867
9b2b7d69
MM
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
d6d788bd 7880
252b5132
RH
7881 if test "x$CATOBJEXT" != "x"; then
7882 if test "x$ALL_LINGUAS" = "x"; then
7883 LINGUAS=
7884 else
9b2b7d69
MM
7885 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7886echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
7887 NEW_LINGUAS=
7888 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7889 case "$ALL_LINGUAS" in
7890 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7891 esac
7892 done
7893 LINGUAS=$NEW_LINGUAS
9b2b7d69
MM
7894 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7895echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
7896 fi
7897
7898 if test -n "$LINGUAS"; then
7899 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7900 fi
7901 fi
7902
7903 if test $ac_cv_header_locale_h = yes; then
7904 INCLUDE_LOCALE_H="#include <locale.h>"
7905 else
7906 INCLUDE_LOCALE_H="\
7907/* The system does not provide the header <locale.h>. Take care yourself. */"
7908 fi
9b2b7d69 7909
252b5132
RH
7910
7911 if test -f $srcdir/po2tbl.sed.in; then
7912 if test "$CATOBJEXT" = ".cat"; then
9b2b7d69
MM
7913 if test "${ac_cv_header_linux_version_h+set}" = set; then
7914 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7915echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7916if test "${ac_cv_header_linux_version_h+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918fi
7919echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7920echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7921else
7922 # Is the header compilable?
7923echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7924echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7925cat >conftest.$ac_ext <<_ACEOF
7926#line $LINENO "configure"
252b5132 7927#include "confdefs.h"
9b2b7d69 7928$ac_includes_default
252b5132 7929#include <linux/version.h>
9b2b7d69
MM
7930_ACEOF
7931rm -f conftest.$ac_objext
7932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7933 (eval $ac_compile) 2>&5
7934 ac_status=$?
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } &&
7937 { ac_try='test -s conftest.$ac_objext'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939 (eval $ac_try) 2>&5
7940 ac_status=$?
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; }; then
7943 ac_header_compiler=yes
7944else
7945 echo "$as_me: failed program was:" >&5
7946cat conftest.$ac_ext >&5
7947ac_header_compiler=no
7948fi
7949rm -f conftest.$ac_objext conftest.$ac_ext
7950echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7951echo "${ECHO_T}$ac_header_compiler" >&6
7952
7953# Is the header present?
7954echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7955echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7956cat >conftest.$ac_ext <<_ACEOF
7957#line $LINENO "configure"
7958#include "confdefs.h"
7959#include <linux/version.h>
7960_ACEOF
7961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7963 ac_status=$?
7964 egrep -v '^ *\+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } >/dev/null; then
7969 if test -s conftest.err; then
7970 ac_cpp_err=$ac_c_preproc_warn_flag
7971 else
7972 ac_cpp_err=
7973 fi
7974else
7975 ac_cpp_err=yes
7976fi
7977if test -z "$ac_cpp_err"; then
7978 ac_header_preproc=yes
252b5132 7979else
9b2b7d69 7980 echo "$as_me: failed program was:" >&5
252b5132 7981 cat conftest.$ac_ext >&5
9b2b7d69
MM
7982 ac_header_preproc=no
7983fi
7984rm -f conftest.err conftest.$ac_ext
7985echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7986echo "${ECHO_T}$ac_header_preproc" >&6
7987
7988# So? What about this header?
7989case $ac_header_compiler:$ac_header_preproc in
7990 yes:no )
7991 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7992echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7993 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
7994echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
7995 no:yes )
7996 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7997echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7998 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
7999echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8000 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8001echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
8002esac
8003echo "$as_me:$LINENO: checking for linux/version.h" >&5
8004echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8005if test "${ac_cv_header_linux_version_h+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8007else
8008 ac_cv_header_linux_version_h=$ac_header_preproc
252b5132 8009fi
9b2b7d69
MM
8010echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8011echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8012
252b5132 8013fi
9b2b7d69 8014if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8015 msgformat=linux
8016else
9b2b7d69 8017 msgformat=xopen
252b5132
RH
8018fi
8019
d6d788bd 8020
9b2b7d69 8021
252b5132
RH
8022 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8023 fi
8024 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8025 $srcdir/po2tbl.sed.in > po2tbl.sed
8026 fi
8027
8028 if test "$PACKAGE" = "gettext"; then
8029 GT_NO="#NO#"
8030 GT_YES=
8031 else
8032 GT_NO=
8033 GT_YES="#YES#"
8034 fi
9b2b7d69
MM
8035
8036
252b5132
RH
8037
8038 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
9b2b7d69 8039
252b5132
RH
8040
8041 l=
9b2b7d69 8042
252b5132 8043
fcd8210c 8044 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8045 test -d po || mkdir po
8046 if test "x$srcdir" != "x."; then
8047 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8048 posrcprefix="$srcdir/"
8049 else
8050 posrcprefix="../$srcdir/"
8051 fi
8052 else
8053 posrcprefix="../"
8054 fi
8055 rm -f po/POTFILES
8056 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8057 < $srcdir/po/POTFILES.in > po/POTFILES
8058 fi
252b5132 8059
9b2b7d69
MM
8060
8061echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8062echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
8063 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8064if test "${enable_maintainer_mode+set}" = set; then
8065 enableval="$enable_maintainer_mode"
8066 USE_MAINTAINER_MODE=$enableval
8067else
8068 USE_MAINTAINER_MODE=no
9b2b7d69
MM
8069fi;
8070 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8071echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
d6d788bd 8072
252b5132
RH
8073
8074if test $USE_MAINTAINER_MODE = yes; then
8075 MAINTAINER_MODE_TRUE=
8076 MAINTAINER_MODE_FALSE='#'
8077else
8078 MAINTAINER_MODE_TRUE='#'
8079 MAINTAINER_MODE_FALSE=
8080fi
8081 MAINT=$MAINTAINER_MODE_TRUE
252b5132 8082
d6d788bd
L
8083
8084
d6d788bd 8085
d6d788bd
L
8086
8087
9b2b7d69
MM
8088
8089
8090
8091
8092
8093
8094
8095for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
d6d788bd 8096do
9b2b7d69
MM
8097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8098if eval "test \"\${$as_ac_Header+set}\" = set"; then
8099 echo "$as_me:$LINENO: checking for $ac_header" >&5
8100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8101if eval "test \"\${$as_ac_Header+set}\" = set"; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103fi
8104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8106else
8107 # Is the header compilable?
8108echo "$as_me:$LINENO: checking $ac_header usability" >&5
8109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8110cat >conftest.$ac_ext <<_ACEOF
8111#line $LINENO "configure"
d6d788bd 8112#include "confdefs.h"
9b2b7d69
MM
8113$ac_includes_default
8114#include <$ac_header>
8115_ACEOF
8116rm -f conftest.$ac_objext
8117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -s conftest.$ac_objext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_header_compiler=yes
8129else
8130 echo "$as_me: failed program was:" >&5
8131cat conftest.$ac_ext >&5
8132ac_header_compiler=no
8133fi
8134rm -f conftest.$ac_objext conftest.$ac_ext
8135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8136echo "${ECHO_T}$ac_header_compiler" >&6
8137
8138# Is the header present?
8139echo "$as_me:$LINENO: checking $ac_header presence" >&5
8140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8141cat >conftest.$ac_ext <<_ACEOF
8142#line $LINENO "configure"
8143#include "confdefs.h"
8144#include <$ac_header>
8145_ACEOF
8146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8148 ac_status=$?
8149 egrep -v '^ *\+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } >/dev/null; then
8154 if test -s conftest.err; then
8155 ac_cpp_err=$ac_c_preproc_warn_flag
8156 else
8157 ac_cpp_err=
8158 fi
252b5132 8159else
9b2b7d69
MM
8160 ac_cpp_err=yes
8161fi
8162if test -z "$ac_cpp_err"; then
8163 ac_header_preproc=yes
8164else
8165 echo "$as_me: failed program was:" >&5
252b5132 8166 cat conftest.$ac_ext >&5
9b2b7d69
MM
8167 ac_header_preproc=no
8168fi
8169rm -f conftest.err conftest.$ac_ext
8170echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8171echo "${ECHO_T}$ac_header_preproc" >&6
8172
8173# So? What about this header?
8174case $ac_header_compiler:$ac_header_preproc in
8175 yes:no )
8176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8177echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8180 no:yes )
8181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8182echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8184echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8187esac
8188echo "$as_me:$LINENO: checking for $ac_header" >&5
8189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8190if eval "test \"\${$as_ac_Header+set}\" = set"; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193 eval "$as_ac_Header=$ac_header_preproc"
252b5132 8194fi
9b2b7d69
MM
8195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8197
252b5132 8198fi
9b2b7d69
MM
8199if test `eval echo '${'$as_ac_Header'}'` = yes; then
8200 cat >>confdefs.h <<_ACEOF
8201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8202_ACEOF
8203
252b5132 8204fi
9b2b7d69 8205
252b5132
RH
8206done
8207
d6d788bd 8208
252b5132
RH
8209# Put this here so that autoconf's "cross-compiling" message doesn't confuse
8210# people who are not cross-compiling but are compiling cross-assemblers.
9b2b7d69
MM
8211echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
8212echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
8213if test "${host}" = "${target}"; then
8214 cross_gas=no
8215else
8216 cross_gas=yes
9b2b7d69
MM
8217
8218cat >>confdefs.h <<\_ACEOF
252b5132 8219#define CROSS_COMPILE 1
9b2b7d69 8220_ACEOF
252b5132
RH
8221
8222fi
9b2b7d69
MM
8223echo "$as_me:$LINENO: result: $cross_gas" >&5
8224echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
8225
8226# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8227# for constant arguments. Useless!
9b2b7d69
MM
8228echo "$as_me:$LINENO: checking for working alloca.h" >&5
8229echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8230if test "${ac_cv_working_alloca_h+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8232else
9b2b7d69
MM
8233 cat >conftest.$ac_ext <<_ACEOF
8234#line $LINENO "configure"
252b5132
RH
8235#include "confdefs.h"
8236#include <alloca.h>
9b2b7d69
MM
8237#ifdef F77_DUMMY_MAIN
8238# ifdef __cplusplus
8239 extern "C"
8240# endif
8241 int F77_DUMMY_MAIN() { return 1; }
8242#endif
8243int
8244main ()
8245{
8246char *p = (char *) alloca (2 * sizeof (int));
8247 ;
8248 return 0;
8249}
8250_ACEOF
8251rm -f conftest.$ac_objext conftest$ac_exeext
8252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 ac_cv_working_alloca_h=yes
8264else
8265 echo "$as_me: failed program was:" >&5
8266cat conftest.$ac_ext >&5
8267ac_cv_working_alloca_h=no
8268fi
8269rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8270fi
8271echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8272echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8273if test $ac_cv_working_alloca_h = yes; then
8274
8275cat >>confdefs.h <<\_ACEOF
252b5132 8276#define HAVE_ALLOCA_H 1
9b2b7d69 8277_ACEOF
252b5132
RH
8278
8279fi
8280
9b2b7d69
MM
8281echo "$as_me:$LINENO: checking for alloca" >&5
8282echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8283if test "${ac_cv_func_alloca_works+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8285else
9b2b7d69
MM
8286 cat >conftest.$ac_ext <<_ACEOF
8287#line $LINENO "configure"
252b5132 8288#include "confdefs.h"
252b5132
RH
8289#ifdef __GNUC__
8290# define alloca __builtin_alloca
8291#else
8292# ifdef _MSC_VER
8293# include <malloc.h>
8294# define alloca _alloca
8295# else
8296# if HAVE_ALLOCA_H
8297# include <alloca.h>
8298# else
8299# ifdef _AIX
8300 #pragma alloca
8301# else
8302# ifndef alloca /* predefined by HP cc +Olibcalls */
8303char *alloca ();
8304# endif
8305# endif
8306# endif
8307# endif
8308#endif
8309
9b2b7d69
MM
8310#ifdef F77_DUMMY_MAIN
8311# ifdef __cplusplus
8312 extern "C"
8313# endif
8314 int F77_DUMMY_MAIN() { return 1; }
8315#endif
8316int
8317main ()
8318{
8319char *p = (char *) alloca (1);
8320 ;
8321 return 0;
8322}
8323_ACEOF
8324rm -f conftest.$ac_objext conftest$ac_exeext
8325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326 (eval $ac_link) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -s conftest$ac_exeext'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 (eval $ac_try) 2>&5
8333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; }; then
252b5132
RH
8336 ac_cv_func_alloca_works=yes
8337else
9b2b7d69
MM
8338 echo "$as_me: failed program was:" >&5
8339cat conftest.$ac_ext >&5
8340ac_cv_func_alloca_works=no
252b5132 8341fi
9b2b7d69 8342rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 8343fi
9b2b7d69
MM
8344echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8345echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 8346
252b5132 8347if test $ac_cv_func_alloca_works = yes; then
252b5132 8348
9b2b7d69
MM
8349cat >>confdefs.h <<\_ACEOF
8350#define HAVE_ALLOCA 1
8351_ACEOF
6840198f 8352
9b2b7d69 8353else
d6d788bd 8354 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9b2b7d69
MM
8355# that cause trouble. Some versions do not even contain alloca or
8356# contain a buggy version. If you still want to use their alloca,
8357# use ar to extract alloca.o from them instead of compiling alloca.c.
8358
8359ALLOCA=alloca.$ac_objext
8360
8361cat >>confdefs.h <<\_ACEOF
252b5132 8362#define C_ALLOCA 1
9b2b7d69 8363_ACEOF
252b5132 8364
d6d788bd 8365
9b2b7d69
MM
8366echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8367echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8368if test "${ac_cv_os_cray+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8370else
9b2b7d69
MM
8371 cat >conftest.$ac_ext <<_ACEOF
8372#line $LINENO "configure"
252b5132
RH
8373#include "confdefs.h"
8374#if defined(CRAY) && ! defined(CRAY2)
8375webecray
8376#else
8377wenotbecray
8378#endif
8379
9b2b7d69 8380_ACEOF
252b5132
RH
8381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8382 egrep "webecray" >/dev/null 2>&1; then
252b5132
RH
8383 ac_cv_os_cray=yes
8384else
252b5132
RH
8385 ac_cv_os_cray=no
8386fi
8387rm -f conftest*
8388
8389fi
9b2b7d69
MM
8390echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8391echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 8392if test $ac_cv_os_cray = yes; then
9b2b7d69
MM
8393 for ac_func in _getb67 GETB67 getb67; do
8394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8395echo "$as_me:$LINENO: checking for $ac_func" >&5
8396echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8397if eval "test \"\${$as_ac_var+set}\" = set"; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8399else
8400 cat >conftest.$ac_ext <<_ACEOF
8401#line $LINENO "configure"
252b5132
RH
8402#include "confdefs.h"
8403/* System header to define __stub macros and hopefully few prototypes,
9b2b7d69 8404 which can conflict with char $ac_func (); below. */
252b5132
RH
8405#include <assert.h>
8406/* Override any gcc2 internal prototype to avoid an error. */
9b2b7d69
MM
8407#ifdef __cplusplus
8408extern "C"
8409#endif
252b5132 8410/* We use char because int might match the return type of a gcc2
9b2b7d69
MM
8411 builtin and then its argument prototype would still apply. */
8412char $ac_func ();
8413char (*f) ();
252b5132 8414
9b2b7d69
MM
8415#ifdef F77_DUMMY_MAIN
8416# ifdef __cplusplus
8417 extern "C"
8418# endif
8419 int F77_DUMMY_MAIN() { return 1; }
8420#endif
8421int
8422main ()
8423{
252b5132
RH
8424/* The GNU C library defines this for functions which it implements
8425 to always fail with ENOSYS. Some functions are actually named
8426 something starting with __ and the normal name is an alias. */
8427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8428choke me
8429#else
9b2b7d69 8430f = $ac_func;
252b5132
RH
8431#endif
8432
9b2b7d69
MM
8433 ;
8434 return 0;
8435}
8436_ACEOF
8437rm -f conftest.$ac_objext conftest$ac_exeext
8438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439 (eval $ac_link) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try='test -s conftest$ac_exeext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 (eval $ac_try) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 eval "$as_ac_var=yes"
8450else
8451 echo "$as_me: failed program was:" >&5
8452cat conftest.$ac_ext >&5
8453eval "$as_ac_var=no"
8454fi
8455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8456fi
8457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8458echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8459if test `eval echo '${'$as_ac_var'}'` = yes; then
8460
8461cat >>confdefs.h <<_ACEOF
252b5132 8462#define CRAY_STACKSEG_END $ac_func
9b2b7d69 8463_ACEOF
252b5132 8464
9b2b7d69 8465 break
252b5132
RH
8466fi
8467
9b2b7d69 8468 done
252b5132
RH
8469fi
8470
9b2b7d69
MM
8471echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8472echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8473if test "${ac_cv_c_stack_direction+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8475else
8476 if test "$cross_compiling" = yes; then
8477 ac_cv_c_stack_direction=0
8478else
9b2b7d69
MM
8479 cat >conftest.$ac_ext <<_ACEOF
8480#line $LINENO "configure"
252b5132 8481#include "confdefs.h"
9b2b7d69 8482int
252b5132
RH
8483find_stack_direction ()
8484{
8485 static char *addr = 0;
8486 auto char dummy;
8487 if (addr == 0)
8488 {
8489 addr = &dummy;
8490 return find_stack_direction ();
8491 }
8492 else
8493 return (&dummy > addr) ? 1 : -1;
8494}
9b2b7d69
MM
8495
8496int
252b5132
RH
8497main ()
8498{
9b2b7d69 8499 exit (find_stack_direction () < 0);
252b5132 8500}
9b2b7d69
MM
8501_ACEOF
8502rm -f conftest$ac_exeext
8503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504 (eval $ac_link) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 (eval $ac_try) 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
252b5132
RH
8513 ac_cv_c_stack_direction=1
8514else
9b2b7d69
MM
8515 echo "$as_me: program exited with status $ac_status" >&5
8516echo "$as_me: failed program was:" >&5
8517cat conftest.$ac_ext >&5
8518( exit $ac_status )
8519ac_cv_c_stack_direction=-1
252b5132 8520fi
9b2b7d69 8521rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 8522fi
252b5132 8523fi
9b2b7d69
MM
8524echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8525echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 8526
9b2b7d69 8527cat >>confdefs.h <<_ACEOF
252b5132 8528#define STACK_DIRECTION $ac_cv_c_stack_direction
9b2b7d69
MM
8529_ACEOF
8530
252b5132
RH
8531
8532fi
8533
9b2b7d69
MM
8534echo "$as_me:$LINENO: checking for inline" >&5
8535echo $ECHO_N "checking for inline... $ECHO_C" >&6
8536if test "${ac_cv_c_inline+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8538else
8539 ac_cv_c_inline=no
8540for ac_kw in inline __inline__ __inline; do
9b2b7d69
MM
8541 cat >conftest.$ac_ext <<_ACEOF
8542#line $LINENO "configure"
252b5132 8543#include "confdefs.h"
9b2b7d69
MM
8544#ifndef __cplusplus
8545static $ac_kw int static_foo () {return 0; }
8546$ac_kw int foo () {return 0; }
8547#endif
252b5132 8548
9b2b7d69
MM
8549_ACEOF
8550rm -f conftest.$ac_objext
8551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8552 (eval $ac_compile) 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try='test -s conftest.$ac_objext'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 (eval $ac_try) 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
252b5132
RH
8562 ac_cv_c_inline=$ac_kw; break
8563else
9b2b7d69
MM
8564 echo "$as_me: failed program was:" >&5
8565cat conftest.$ac_ext >&5
252b5132 8566fi
9b2b7d69 8567rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
8568done
8569
8570fi
9b2b7d69
MM
8571echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8572echo "${ECHO_T}$ac_cv_c_inline" >&6
8573case $ac_cv_c_inline in
252b5132 8574 inline | yes) ;;
9b2b7d69
MM
8575 no)
8576cat >>confdefs.h <<\_ACEOF
8577#define inline
8578_ACEOF
252b5132 8579 ;;
9b2b7d69 8580 *) cat >>confdefs.h <<_ACEOF
252b5132 8581#define inline $ac_cv_c_inline
9b2b7d69 8582_ACEOF
252b5132
RH
8583 ;;
8584esac
8585
6840198f 8586
d6d788bd 8587# VMS doesn't have unlink.
9b2b7d69
MM
8588
8589
252b5132
RH
8590for ac_func in unlink remove
8591do
9b2b7d69
MM
8592as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8593echo "$as_me:$LINENO: checking for $ac_func" >&5
8594echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8595if eval "test \"\${$as_ac_var+set}\" = set"; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8597else
8598 cat >conftest.$ac_ext <<_ACEOF
8599#line $LINENO "configure"
252b5132
RH
8600#include "confdefs.h"
8601/* System header to define __stub macros and hopefully few prototypes,
9b2b7d69 8602 which can conflict with char $ac_func (); below. */
252b5132
RH
8603#include <assert.h>
8604/* Override any gcc2 internal prototype to avoid an error. */
9b2b7d69
MM
8605#ifdef __cplusplus
8606extern "C"
8607#endif
252b5132 8608/* We use char because int might match the return type of a gcc2
9b2b7d69
MM
8609 builtin and then its argument prototype would still apply. */
8610char $ac_func ();
8611char (*f) ();
252b5132 8612
9b2b7d69
MM
8613#ifdef F77_DUMMY_MAIN
8614# ifdef __cplusplus
8615 extern "C"
8616# endif
8617 int F77_DUMMY_MAIN() { return 1; }
8618#endif
8619int
8620main ()
8621{
252b5132
RH
8622/* The GNU C library defines this for functions which it implements
8623 to always fail with ENOSYS. Some functions are actually named
8624 something starting with __ and the normal name is an alias. */
8625#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8626choke me
8627#else
9b2b7d69 8628f = $ac_func;
252b5132
RH
8629#endif
8630
9b2b7d69
MM
8631 ;
8632 return 0;
8633}
8634_ACEOF
8635rm -f conftest.$ac_objext conftest$ac_exeext
8636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8637 (eval $ac_link) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } &&
8641 { ac_try='test -s conftest$ac_exeext'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8647 eval "$as_ac_var=yes"
8648else
8649 echo "$as_me: failed program was:" >&5
8650cat conftest.$ac_ext >&5
8651eval "$as_ac_var=no"
8652fi
8653rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8654fi
8655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8656echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8657if test `eval echo '${'$as_ac_var'}'` = yes; then
8658 cat >>confdefs.h <<_ACEOF
8659#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8660_ACEOF
252b5132 8661 break
252b5132
RH
8662fi
8663done
8664
6840198f 8665
d6d788bd 8666# Some systems don't have sbrk().
9b2b7d69 8667
252b5132
RH
8668for ac_func in sbrk
8669do
9b2b7d69
MM
8670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8671echo "$as_me:$LINENO: checking for $ac_func" >&5
8672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8673if eval "test \"\${$as_ac_var+set}\" = set"; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8675else
8676 cat >conftest.$ac_ext <<_ACEOF
8677#line $LINENO "configure"
252b5132
RH
8678#include "confdefs.h"
8679/* System header to define __stub macros and hopefully few prototypes,
9b2b7d69 8680 which can conflict with char $ac_func (); below. */
252b5132
RH
8681#include <assert.h>
8682/* Override any gcc2 internal prototype to avoid an error. */
9b2b7d69
MM
8683#ifdef __cplusplus
8684extern "C"
8685#endif
252b5132 8686/* We use char because int might match the return type of a gcc2
9b2b7d69
MM
8687 builtin and then its argument prototype would still apply. */
8688char $ac_func ();
8689char (*f) ();
252b5132 8690
9b2b7d69
MM
8691#ifdef F77_DUMMY_MAIN
8692# ifdef __cplusplus
8693 extern "C"
8694# endif
8695 int F77_DUMMY_MAIN() { return 1; }
8696#endif
8697int
8698main ()
8699{
252b5132
RH
8700/* The GNU C library defines this for functions which it implements
8701 to always fail with ENOSYS. Some functions are actually named
8702 something starting with __ and the normal name is an alias. */
8703#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8704choke me
8705#else
9b2b7d69 8706f = $ac_func;
252b5132
RH
8707#endif
8708
9b2b7d69
MM
8709 ;
8710 return 0;
8711}
8712_ACEOF
8713rm -f conftest.$ac_objext conftest$ac_exeext
8714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715 (eval $ac_link) 2>&5
8716 ac_status=$?
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -s conftest$ac_exeext'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 (eval $ac_try) 2>&5
8722 ac_status=$?
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; }; then
8725 eval "$as_ac_var=yes"
8726else
8727 echo "$as_me: failed program was:" >&5
8728cat conftest.$ac_ext >&5
8729eval "$as_ac_var=no"
8730fi
8731rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8732fi
8733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8735if test `eval echo '${'$as_ac_var'}'` = yes; then
8736 cat >>confdefs.h <<_ACEOF
8737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8738_ACEOF
252b5132 8739
252b5132
RH
8740fi
8741done
8742
d6d788bd 8743
39bec121
TW
8744# do we need the math library?
8745case "${need_libm}" in
9b2b7d69 8746yes)
39bec121 8747 LIBM=
f9c19112 8748case $host in
d64552c5 8749*-*-beos* | *-*-cygwin* | *-*-pw32*)
39bec121
TW
8750 # These system don't have libm
8751 ;;
8752*-ncr-sysv4.3*)
9b2b7d69
MM
8753 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
8754echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
8755if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 8757else
9b2b7d69 8758 ac_check_lib_save_LIBS=$LIBS
39bec121 8759LIBS="-lmw $LIBS"
9b2b7d69
MM
8760cat >conftest.$ac_ext <<_ACEOF
8761#line $LINENO "configure"
39bec121 8762#include "confdefs.h"
9b2b7d69 8763
39bec121 8764/* Override any gcc2 internal prototype to avoid an error. */
9b2b7d69
MM
8765#ifdef __cplusplus
8766extern "C"
8767#endif
39bec121 8768/* We use char because int might match the return type of a gcc2
9b2b7d69
MM
8769 builtin and then its argument prototype would still apply. */
8770char _mwvalidcheckl ();
8771#ifdef F77_DUMMY_MAIN
8772# ifdef __cplusplus
8773 extern "C"
8774# endif
8775 int F77_DUMMY_MAIN() { return 1; }
8776#endif
8777int
8778main ()
8779{
8780_mwvalidcheckl ();
8781 ;
8782 return 0;
8783}
8784_ACEOF
8785rm -f conftest.$ac_objext conftest$ac_exeext
8786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8787 (eval $ac_link) 2>&5
8788 ac_status=$?
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } &&
8791 { ac_try='test -s conftest$ac_exeext'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 (eval $ac_try) 2>&5
8794 ac_status=$?
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; }; then
8797 ac_cv_lib_mw__mwvalidcheckl=yes
8798else
8799 echo "$as_me: failed program was:" >&5
8800cat conftest.$ac_ext >&5
8801ac_cv_lib_mw__mwvalidcheckl=no
8802fi
8803rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8804LIBS=$ac_check_lib_save_LIBS
8805fi
8806echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
8807echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
8808if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 8809 LIBM="-lmw"
39bec121
TW
8810fi
8811
9b2b7d69
MM
8812 echo "$as_me:$LINENO: checking for main in -lm" >&5
8813echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8814if test "${ac_cv_lib_m_main+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 8816else
9b2b7d69 8817 ac_check_lib_save_LIBS=$LIBS
39bec121 8818LIBS="-lm $LIBS"
9b2b7d69
MM
8819cat >conftest.$ac_ext <<_ACEOF
8820#line $LINENO "configure"
39bec121
TW
8821#include "confdefs.h"
8822
d6d788bd 8823
9b2b7d69
MM
8824#ifdef F77_DUMMY_MAIN
8825# ifdef __cplusplus
8826 extern "C"
8827# endif
8828 int F77_DUMMY_MAIN() { return 1; }
8829#endif
8830int
8831main ()
8832{
8833main ();
8834 ;
8835 return 0;
8836}
8837_ACEOF
8838rm -f conftest.$ac_objext conftest$ac_exeext
8839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840 (eval $ac_link) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } &&
8844 { ac_try='test -s conftest$ac_exeext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 (eval $ac_try) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 ac_cv_lib_m_main=yes
8851else
8852 echo "$as_me: failed program was:" >&5
8853cat conftest.$ac_ext >&5
8854ac_cv_lib_m_main=no
8855fi
8856rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8857LIBS=$ac_check_lib_save_LIBS
8858fi
8859echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8860echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8861if test $ac_cv_lib_m_main = yes; then
39bec121 8862 LIBM="$LIBM -lm"
39bec121
TW
8863fi
8864
8865 ;;
8866*)
9b2b7d69
MM
8867 echo "$as_me:$LINENO: checking for main in -lm" >&5
8868echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8869if test "${ac_cv_lib_m_main+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 8871else
9b2b7d69 8872 ac_check_lib_save_LIBS=$LIBS
39bec121 8873LIBS="-lm $LIBS"
9b2b7d69
MM
8874cat >conftest.$ac_ext <<_ACEOF
8875#line $LINENO "configure"
39bec121
TW
8876#include "confdefs.h"
8877
d6d788bd 8878
9b2b7d69
MM
8879#ifdef F77_DUMMY_MAIN
8880# ifdef __cplusplus
8881 extern "C"
8882# endif
8883 int F77_DUMMY_MAIN() { return 1; }
8884#endif
8885int
8886main ()
8887{
8888main ();
8889 ;
8890 return 0;
8891}
8892_ACEOF
8893rm -f conftest.$ac_objext conftest$ac_exeext
8894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895 (eval $ac_link) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -s conftest$ac_exeext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_cv_lib_m_main=yes
8906else
8907 echo "$as_me: failed program was:" >&5
8908cat conftest.$ac_ext >&5
8909ac_cv_lib_m_main=no
8910fi
8911rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8912LIBS=$ac_check_lib_save_LIBS
8913fi
8914echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8915echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8916if test $ac_cv_lib_m_main = yes; then
39bec121 8917 LIBM="-lm"
39bec121
TW
8918fi
8919
8920 ;;
8921esac
8922
9b2b7d69 8923
39bec121
TW
8924 ;;
8925esac
8926
252b5132
RH
8927# Some non-ANSI preprocessors botch requoting inside strings. That's bad
8928# enough, but on some of those systems, the assert macro relies on requoting
8929# working properly!
9b2b7d69
MM
8930echo "$as_me:$LINENO: checking for working assert macro" >&5
8931echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
8932if test "${gas_cv_assert_ok+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8934else
9b2b7d69
MM
8935 cat >conftest.$ac_ext <<_ACEOF
8936#line $LINENO "configure"
252b5132
RH
8937#include "confdefs.h"
8938#include <assert.h>
8939#include <stdio.h>
9b2b7d69
MM
8940#ifdef F77_DUMMY_MAIN
8941# ifdef __cplusplus
8942 extern "C"
8943# endif
8944 int F77_DUMMY_MAIN() { return 1; }
8945#endif
8946int
8947main ()
8948{
252b5132
RH
8949
8950/* check for requoting problems */
8951static int a, b, c, d;
8952static char *s;
8953assert (!strcmp(s, "foo bar baz quux"));
8954/* check for newline handling */
8955assert (a == b
8956 || c == d);
8957
9b2b7d69
MM
8958 ;
8959 return 0;
8960}
8961_ACEOF
8962rm -f conftest.$ac_objext conftest$ac_exeext
8963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964 (eval $ac_link) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -s conftest$ac_exeext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
252b5132
RH
8974 gas_cv_assert_ok=yes
8975else
9b2b7d69
MM
8976 echo "$as_me: failed program was:" >&5
8977cat conftest.$ac_ext >&5
8978gas_cv_assert_ok=no
252b5132 8979fi
9b2b7d69 8980rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 8981fi
9b2b7d69
MM
8982echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
8983echo "${ECHO_T}$gas_cv_assert_ok" >&6
8984test $gas_cv_assert_ok = yes ||
8985cat >>confdefs.h <<\_ACEOF
252b5132 8986#define BROKEN_ASSERT 1
9b2b7d69 8987_ACEOF
252b5132 8988
d6d788bd
L
8989
8990
252b5132
RH
8991# On some systems, the system header files may not declare malloc, realloc,
8992# and free. There are places where gas needs these functions to have been
8993# declared -- such as when taking their addresses.
8994gas_test_headers="
8995#ifdef HAVE_MEMORY_H
8996#include <memory.h>
8997#endif
8998#ifdef HAVE_STRING_H
8999#include <string.h>
9000#else
9001#ifdef HAVE_STRINGS_H
9002#include <strings.h>
9003#endif
9004#endif
9005#ifdef HAVE_STDLIB_H
9006#include <stdlib.h>
9007#endif
9008#ifdef HAVE_UNISTD_H
9009#include <unistd.h>
9010#endif
9011"
9012
9b2b7d69
MM
9013echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
9014echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
9015if test "${gas_cv_decl_needed_strstr+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9017else
9b2b7d69
MM
9018 cat >conftest.$ac_ext <<_ACEOF
9019#line $LINENO "configure"
252b5132
RH
9020#include "confdefs.h"
9021$gas_test_headers
9b2b7d69
MM
9022#ifdef F77_DUMMY_MAIN
9023# ifdef __cplusplus
9024 extern "C"
9025# endif
9026 int F77_DUMMY_MAIN() { return 1; }
9027#endif
9028int
9029main ()
9030{
252b5132
RH
9031
9032typedef char *(*f)();
9033f x;
9034x = (f) strstr;
9035
9b2b7d69
MM
9036 ;
9037 return 0;
9038}
9039_ACEOF
9040rm -f conftest.$ac_objext conftest$ac_exeext
9041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9042 (eval $ac_link) 2>&5
9043 ac_status=$?
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try='test -s conftest$ac_exeext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 (eval $ac_try) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
252b5132
RH
9052 gas_cv_decl_needed_strstr=no
9053else
9b2b7d69
MM
9054 echo "$as_me: failed program was:" >&5
9055cat conftest.$ac_ext >&5
9056gas_cv_decl_needed_strstr=yes
252b5132 9057fi
9b2b7d69 9058rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 9059fi
9b2b7d69
MM
9060echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
9061echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
252b5132 9062if test $gas_cv_decl_needed_strstr = yes; then
9b2b7d69
MM
9063
9064cat >>confdefs.h <<\_ACEOF
252b5132 9065#define NEED_DECLARATION_STRSTR 1
9b2b7d69 9066_ACEOF
252b5132
RH
9067
9068fi
9069
d6d788bd 9070
9b2b7d69
MM
9071echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
9072echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
9073if test "${gas_cv_decl_needed_malloc+set}" = set; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9075else
9b2b7d69
MM
9076 cat >conftest.$ac_ext <<_ACEOF
9077#line $LINENO "configure"
252b5132
RH
9078#include "confdefs.h"
9079$gas_test_headers
9b2b7d69
MM
9080#ifdef F77_DUMMY_MAIN
9081# ifdef __cplusplus
9082 extern "C"
9083# endif
9084 int F77_DUMMY_MAIN() { return 1; }
9085#endif
9086int
9087main ()
9088{
252b5132
RH
9089
9090typedef char *(*f)();
9091f x;
9092x = (f) malloc;
9093
9b2b7d69
MM
9094 ;
9095 return 0;
9096}
9097_ACEOF
9098rm -f conftest.$ac_objext conftest$ac_exeext
9099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100 (eval $ac_link) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } &&
9104 { ac_try='test -s conftest$ac_exeext'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 (eval $ac_try) 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
252b5132
RH
9110 gas_cv_decl_needed_malloc=no
9111else
9b2b7d69
MM
9112 echo "$as_me: failed program was:" >&5
9113cat conftest.$ac_ext >&5
9114gas_cv_decl_needed_malloc=yes
252b5132 9115fi
9b2b7d69 9116rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 9117fi
9b2b7d69
MM
9118echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
9119echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
252b5132 9120if test $gas_cv_decl_needed_malloc = yes; then
9b2b7d69
MM
9121
9122cat >>confdefs.h <<\_ACEOF
252b5132 9123#define NEED_DECLARATION_MALLOC 1
9b2b7d69 9124_ACEOF
252b5132
RH
9125
9126fi
9127
d6d788bd 9128
9b2b7d69
MM
9129echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
9130echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
9131if test "${gas_cv_decl_needed_free+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9133else
9b2b7d69
MM
9134 cat >conftest.$ac_ext <<_ACEOF
9135#line $LINENO "configure"
252b5132
RH
9136#include "confdefs.h"
9137$gas_test_headers
9b2b7d69
MM
9138#ifdef F77_DUMMY_MAIN
9139# ifdef __cplusplus
9140 extern "C"
9141# endif
9142 int F77_DUMMY_MAIN() { return 1; }
9143#endif
9144int
9145main ()
9146{
252b5132
RH
9147
9148typedef void (*f)();
9149f x;
9150x = (f) free;
9151
9b2b7d69
MM
9152 ;
9153 return 0;
9154}
9155_ACEOF
9156rm -f conftest.$ac_objext conftest$ac_exeext
9157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158 (eval $ac_link) 2>&5
9159 ac_status=$?
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } &&
9162 { ac_try='test -s conftest$ac_exeext'
9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 (eval $ac_try) 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; }; then
252b5132
RH
9168 gas_cv_decl_needed_free=no
9169else
9b2b7d69
MM
9170 echo "$as_me: failed program was:" >&5
9171cat conftest.$ac_ext >&5
9172gas_cv_decl_needed_free=yes
252b5132 9173fi
9b2b7d69 9174rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 9175fi
9b2b7d69
MM
9176echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
9177echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
252b5132 9178if test $gas_cv_decl_needed_free = yes; then
9b2b7d69
MM
9179
9180cat >>confdefs.h <<\_ACEOF
252b5132 9181#define NEED_DECLARATION_FREE 1
9b2b7d69 9182_ACEOF
252b5132
RH
9183
9184fi
9185
d6d788bd 9186
9b2b7d69
MM
9187echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
9188echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
9189if test "${gas_cv_decl_needed_sbrk+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9191else
9b2b7d69
MM
9192 cat >conftest.$ac_ext <<_ACEOF
9193#line $LINENO "configure"
252b5132
RH
9194#include "confdefs.h"
9195$gas_test_headers
9b2b7d69
MM
9196#ifdef F77_DUMMY_MAIN
9197# ifdef __cplusplus
9198 extern "C"
9199# endif
9200 int F77_DUMMY_MAIN() { return 1; }
9201#endif
9202int
9203main ()
9204{
252b5132
RH
9205
9206typedef char *(*f)();
9207f x;
9208x = (f) sbrk;
9209
9b2b7d69
MM
9210 ;
9211 return 0;
9212}
9213_ACEOF
9214rm -f conftest.$ac_objext conftest$ac_exeext
9215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9216 (eval $ac_link) 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -s conftest$ac_exeext'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 (eval $ac_try) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
252b5132
RH
9226 gas_cv_decl_needed_sbrk=no
9227else
9b2b7d69
MM
9228 echo "$as_me: failed program was:" >&5
9229cat conftest.$ac_ext >&5
9230gas_cv_decl_needed_sbrk=yes
252b5132 9231fi
9b2b7d69 9232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 9233fi
9b2b7d69
MM
9234echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
9235echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
252b5132 9236if test $gas_cv_decl_needed_sbrk = yes; then
9b2b7d69
MM
9237
9238cat >>confdefs.h <<\_ACEOF
252b5132 9239#define NEED_DECLARATION_SBRK 1
9b2b7d69 9240_ACEOF
252b5132
RH
9241
9242fi
9243
d6d788bd 9244
9b2b7d69
MM
9245echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
9246echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
9247if test "${gas_cv_decl_needed_environ+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9249else
9b2b7d69
MM
9250 cat >conftest.$ac_ext <<_ACEOF
9251#line $LINENO "configure"
252b5132
RH
9252#include "confdefs.h"
9253$gas_test_headers
9b2b7d69
MM
9254#ifdef F77_DUMMY_MAIN
9255# ifdef __cplusplus
9256 extern "C"
9257# endif
9258 int F77_DUMMY_MAIN() { return 1; }
9259#endif
9260int
9261main ()
9262{
252b5132
RH
9263
9264typedef char **f;
9265f x;
9266x = (f) environ;
9267
9b2b7d69
MM
9268 ;
9269 return 0;
9270}
9271_ACEOF
9272rm -f conftest.$ac_objext conftest$ac_exeext
9273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9274 (eval $ac_link) 2>&5
9275 ac_status=$?
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } &&
9278 { ac_try='test -s conftest$ac_exeext'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 (eval $ac_try) 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; }; then
252b5132
RH
9284 gas_cv_decl_needed_environ=no
9285else
9b2b7d69
MM
9286 echo "$as_me: failed program was:" >&5
9287cat conftest.$ac_ext >&5
9288gas_cv_decl_needed_environ=yes
252b5132 9289fi
9b2b7d69 9290rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 9291fi
9b2b7d69
MM
9292echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
9293echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
252b5132 9294if test $gas_cv_decl_needed_environ = yes; then
9b2b7d69
MM
9295
9296cat >>confdefs.h <<\_ACEOF
252b5132 9297#define NEED_DECLARATION_ENVIRON 1
9b2b7d69 9298_ACEOF
252b5132
RH
9299
9300fi
9301
d6d788bd 9302
252b5132
RH
9303# Does errno.h declare errno, or do we have to add a separate declaration
9304# for it?
9305
9b2b7d69
MM
9306echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
9307echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
9308if test "${gas_cv_decl_needed_errno+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9310else
9b2b7d69
MM
9311 cat >conftest.$ac_ext <<_ACEOF
9312#line $LINENO "configure"
252b5132
RH
9313#include "confdefs.h"
9314
9315#ifdef HAVE_ERRNO_H
9316#include <errno.h>
9317#endif
9318
9b2b7d69
MM
9319#ifdef F77_DUMMY_MAIN
9320# ifdef __cplusplus
9321 extern "C"
9322# endif
9323 int F77_DUMMY_MAIN() { return 1; }
9324#endif
9325int
9326main ()
9327{
252b5132
RH
9328
9329typedef int f;
9330f x;
9331x = (f) errno;
9332
9b2b7d69
MM
9333 ;
9334 return 0;
9335}
9336_ACEOF
9337rm -f conftest.$ac_objext conftest$ac_exeext
9338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339 (eval $ac_link) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try='test -s conftest$ac_exeext'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 (eval $ac_try) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
252b5132
RH
9349 gas_cv_decl_needed_errno=no
9350else
9b2b7d69
MM
9351 echo "$as_me: failed program was:" >&5
9352cat conftest.$ac_ext >&5
9353gas_cv_decl_needed_errno=yes
252b5132 9354fi
9b2b7d69 9355rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
252b5132 9356fi
9b2b7d69
MM
9357echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
9358echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
252b5132 9359if test $gas_cv_decl_needed_errno = yes; then
9b2b7d69
MM
9360
9361cat >>confdefs.h <<\_ACEOF
252b5132 9362#define NEED_DECLARATION_ERRNO 1
9b2b7d69 9363_ACEOF
252b5132
RH
9364
9365fi
9366
d6d788bd
L
9367
9368
9369
9b2b7d69
MM
9370ac_config_files="$ac_config_files Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"
9371ac_config_commands="$ac_config_commands default"
9372cat >confcache <<\_ACEOF
252b5132
RH
9373# This file is a shell script that caches the results of configure
9374# tests run on this system so they can be shared between configure
9b2b7d69
MM
9375# scripts and configure runs, see configure's option --config-cache.
9376# It is not useful on other systems. If it contains results you don't
9377# want to keep, you may remove or edit it.
252b5132 9378#
9b2b7d69
MM
9379# config.status only pays attention to the cache file if you give it
9380# the --recheck option to rerun configure.
252b5132 9381#
9b2b7d69
MM
9382# `ac_cv_env_foo' variables (set or unset) will be overriden when
9383# loading this file, other *unset* `ac_cv_foo' will be assigned the
9384# following values.
9385
9386_ACEOF
9387
252b5132
RH
9388# The following way of writing the cache mishandles newlines in values,
9389# but we know of no workaround that is simple, portable, and efficient.
9390# So, don't put newlines in cache variables' values.
9391# Ultrix sh set writes to stderr and can't be redirected directly,
9392# and sets the high bit in the cache file unless we assign to the vars.
9b2b7d69
MM
9393{
9394 (set) 2>&1 |
9395 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9396 *ac_space=\ *)
9397 # `set' does not quote correctly, so add quotes (double-quote
9398 # substitution turns \\\\ into \\, and sed turns \\ into \).
9399 sed -n \
9400 "s/'/'\\\\''/g;
9401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9402 ;;
9403 *)
9404 # `set' quotes correctly as required by POSIX, so do not add quotes.
9405 sed -n \
9406 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9407 ;;
9408 esac;
9409} |
9410 sed '
9411 t clear
9412 : clear
9413 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9414 t end
9415 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9416 : end' >>confcache
9417if cmp -s $cache_file confcache; then :; else
252b5132 9418 if test -w $cache_file; then
9b2b7d69
MM
9419 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9420 cat confcache >$cache_file
252b5132
RH
9421 else
9422 echo "not updating unwritable cache $cache_file"
9423 fi
9424fi
9425rm -f confcache
9426
252b5132
RH
9427test "x$prefix" = xNONE && prefix=$ac_default_prefix
9428# Let make expand exec_prefix.
9429test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9430
9b2b7d69
MM
9431# VPATH may cause trouble with some makes, so we remove $(srcdir),
9432# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9433# trailing colons and then remove the whole line if VPATH becomes empty
9434# (actually we leave an empty line to preserve line numbers).
252b5132 9435if test "x$srcdir" = x.; then
9b2b7d69
MM
9436 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9437s/:*\$(srcdir):*/:/;
9438s/:*\${srcdir}:*/:/;
9439s/:*@srcdir@:*/:/;
9440s/^\([^=]*=[ ]*\):*/\1/;
9441s/:*$//;
9442s/^[^=]*=[ ]*$//;
9443}'
252b5132
RH
9444fi
9445
252b5132
RH
9446DEFS=-DHAVE_CONFIG_H
9447
d6d788bd 9448
9b2b7d69
MM
9449: ${CONFIG_STATUS=./config.status}
9450ac_clean_files_save=$ac_clean_files
9451ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9452{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9453echo "$as_me: creating $CONFIG_STATUS" >&6;}
9454cat >$CONFIG_STATUS <<_ACEOF
9455#! $SHELL
9456# Generated by $as_me.
252b5132 9457# Run this file to recreate the current configuration.
252b5132 9458# Compiler output produced by configure, useful for debugging
9b2b7d69 9459# configure, is in config.log if it exists.
6840198f 9460
9b2b7d69
MM
9461debug=false
9462SHELL=\${CONFIG_SHELL-$SHELL}
9463_ACEOF
9464
9465cat >>$CONFIG_STATUS <<\_ACEOF
9466
9467## --------------------- ##
9468## M4sh Initialization. ##
9469## --------------------- ##
9470
9471# Be Bourne compatible
9472if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9473 emulate sh
9474 NULLCMD=:
9475elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9476 set -o posix
9477fi
9478
9479# NLS nuisances.
9480# Support unset when possible.
9481if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9482 as_unset=unset
9483else
9484 as_unset=false
9485fi
9486
9487(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9488 { $as_unset LANG || test "${LANG+set}" != set; } ||
9489 { LANG=C; export LANG; }
9490(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9491 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9492 { LC_ALL=C; export LC_ALL; }
9493(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9494 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9495 { LC_TIME=C; export LC_TIME; }
9496(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9497 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9498 { LC_CTYPE=C; export LC_CTYPE; }
9499(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9500 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9501 { LANGUAGE=C; export LANGUAGE; }
9502(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9503 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9504 { LC_COLLATE=C; export LC_COLLATE; }
9505(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9506 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9507 { LC_NUMERIC=C; export LC_NUMERIC; }
9508(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9509 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9510 { LC_MESSAGES=C; export LC_MESSAGES; }
9511
9512
9513# Name of the executable.
9514as_me=`(basename "$0") 2>/dev/null ||
9515$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9516 X"$0" : 'X\(//\)$' \| \
9517 X"$0" : 'X\(/\)$' \| \
9518 . : '\(.\)' 2>/dev/null ||
9519echo X/"$0" |
9520 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9521 /^X\/\(\/\/\)$/{ s//\1/; q; }
9522 /^X\/\(\/\).*/{ s//\1/; q; }
9523 s/.*/./; q'`
9524
9525# PATH needs CR, and LINENO needs CR and PATH.
9526# Avoid depending upon Character Ranges.
9527as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9528as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9529as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9530as_cr_digits='0123456789'
9531as_cr_alnum=$as_cr_Letters$as_cr_digits
9532
9533# The user is always right.
9534if test "${PATH_SEPARATOR+set}" != set; then
9535 echo "#! /bin/sh" >conftest.sh
9536 echo "exit 0" >>conftest.sh
9537 chmod +x conftest.sh
9538 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9539 PATH_SEPARATOR=';'
9540 else
9541 PATH_SEPARATOR=:
9542 fi
9543 rm -f conftest.sh
9544fi
9545
9546
9547 as_lineno_1=$LINENO
9548 as_lineno_2=$LINENO
9549 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9550 test "x$as_lineno_1" != "x$as_lineno_2" &&
9551 test "x$as_lineno_3" = "x$as_lineno_2" || {
9552 # Find who we are. Look in the path if we contain no path at all
9553 # relative or not.
9554 case $0 in
9555 *[\\/]* ) as_myself=$0 ;;
9556 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $PATH
252b5132 9558do
9b2b7d69
MM
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9562done
9563
9564 ;;
252b5132 9565 esac
9b2b7d69
MM
9566 # We did not find ourselves, most probably we were run as `sh COMMAND'
9567 # in which case we are not to be found in the path.
9568 if test "x$as_myself" = x; then
9569 as_myself=$0
9570 fi
9571 if test ! -f "$as_myself"; then
9572 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9573echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9574 { (exit 1); exit 1; }; }
9575 fi
9576 case $CONFIG_SHELL in
9577 '')
9578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9580do
9581 IFS=$as_save_IFS
9582 test -z "$as_dir" && as_dir=.
9583 for as_base in sh bash ksh sh5; do
9584 case $as_dir in
9585 /*)
9586 if ("$as_dir/$as_base" -c '
9587 as_lineno_1=$LINENO
9588 as_lineno_2=$LINENO
9589 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9590 test "x$as_lineno_1" != "x$as_lineno_2" &&
9591 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9592 CONFIG_SHELL=$as_dir/$as_base
9593 export CONFIG_SHELL
9594 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9595 fi;;
9596 esac
9597 done
252b5132 9598done
9b2b7d69
MM
9599;;
9600 esac
252b5132 9601
9b2b7d69
MM
9602 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9603 # uniformly replaced by the line number. The first 'sed' inserts a
9604 # line-number line before each line; the second 'sed' does the real
9605 # work. The second script uses 'N' to pair each line-number line
9606 # with the numbered line, and appends trailing '-' during
9607 # substitution so that $LINENO is not a special case at line end.
9608 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9609 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9610 sed '=' <$as_myself |
9611 sed '
9612 N
9613 s,$,-,
9614 : loop
9615 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9616 t loop
9617 s,-$,,
9618 s,^['$as_cr_digits']*\n,,
9619 ' >$as_me.lineno &&
9620 chmod +x $as_me.lineno ||
9621 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9622echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9623 { (exit 1); exit 1; }; }
9624
9625 # Don't try to exec as it changes $[0], causing all sort of problems
9626 # (the dirname of $[0] is not the place where we might find the
9627 # original and so on. Autoconf is especially sensible to this).
9628 . ./$as_me.lineno
9629 # Exit status is that of the last command.
9630 exit
9631}
6840198f 9632
6840198f 9633
9b2b7d69
MM
9634case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9635 *c*,-n*) ECHO_N= ECHO_C='
9636' ECHO_T=' ' ;;
9637 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9638 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9639esac
6840198f 9640
9b2b7d69
MM
9641if expr a : '\(a\)' >/dev/null 2>&1; then
9642 as_expr=expr
9643else
9644 as_expr=false
9645fi
252b5132 9646
9b2b7d69
MM
9647rm -f conf$$ conf$$.exe conf$$.file
9648echo >conf$$.file
9649if ln -s conf$$.file conf$$ 2>/dev/null; then
9650 # We could just check for DJGPP; but this test a) works b) is more generic
9651 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9652 if test -f conf$$.exe; then
9653 # Don't use ln at all; we don't have any links
9654 as_ln_s='cp -p'
d6d788bd 9655 else
9b2b7d69 9656 as_ln_s='ln -s'
252b5132 9657 fi
9b2b7d69
MM
9658elif ln conf$$.file conf$$ 2>/dev/null; then
9659 as_ln_s=ln
9660else
9661 as_ln_s='cp -p'
d6d788bd 9662fi
9b2b7d69 9663rm -f conf$$ conf$$.exe conf$$.file
d6d788bd 9664
9b2b7d69
MM
9665as_executable_p="test -f"
9666
9667# Sed expression to map a string onto a valid CPP name.
9668as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9669
9670# Sed expression to map a string onto a valid variable name.
9671as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9672
9673
9674# IFS
9675# We need space, tab and new line, in precisely that order.
9676as_nl='
9677'
9678IFS=" $as_nl"
9679
9680# CDPATH.
9681$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9682
9683exec 6>&1
9684
9685# Open the log real soon, to keep \$[0] and so on meaningful, and to
9686# report actual input values of CONFIG_FILES etc. instead of their
9687# values after options handling. Logging --version etc. is OK.
9688exec 5>>config.log
9689{
9690 echo
9691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9692## Running $as_me. ##
9693_ASBOX
9694} >&5
9695cat >&5 <<_CSEOF
9696
9697This file was extended by $as_me, which was
9698generated by GNU Autoconf 2.53. Invocation command line was
9699
9700 CONFIG_FILES = $CONFIG_FILES
9701 CONFIG_HEADERS = $CONFIG_HEADERS
9702 CONFIG_LINKS = $CONFIG_LINKS
9703 CONFIG_COMMANDS = $CONFIG_COMMANDS
9704 $ $0 $@
9705
9706_CSEOF
9707echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9708echo >&5
9709_ACEOF
9710
9711# Files that config.status was made for.
9712if test -n "$ac_config_files"; then
9713 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9714fi
9715
9716if test -n "$ac_config_headers"; then
9717 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9718fi
9719
9720if test -n "$ac_config_links"; then
9721 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9722fi
9723
9724if test -n "$ac_config_commands"; then
9725 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9726fi
9727
9728cat >>$CONFIG_STATUS <<\_ACEOF
9729
9730ac_cs_usage="\
9731\`$as_me' instantiates files from templates according to the
9732current configuration.
9733
9734Usage: $0 [OPTIONS] [FILE]...
9735
9736 -h, --help print this help, then exit
9737 -V, --version print version number, then exit
9738 -d, --debug don't remove temporary files
9739 --recheck update $as_me by reconfiguring in the same conditions
9740 --file=FILE[:TEMPLATE]
9741 instantiate the configuration file FILE
9742 --header=FILE[:TEMPLATE]
9743 instantiate the configuration header FILE
9744
9745Configuration files:
9746$config_files
9747
9748Configuration headers:
9749$config_headers
9750
9751Configuration commands:
9752$config_commands
9753
9754Report bugs to <bug-autoconf@gnu.org>."
9755_ACEOF
9756
9757cat >>$CONFIG_STATUS <<_ACEOF
9758ac_cs_version="\\
9759config.status
9760configured by $0, generated by GNU Autoconf 2.53,
9761 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9762
9763Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9764Free Software Foundation, Inc.
9765This config.status script is free software; the Free Software Foundation
9766gives unlimited permission to copy, distribute and modify it."
9767srcdir=$srcdir
9768INSTALL="$INSTALL"
9769_ACEOF
9770
9771cat >>$CONFIG_STATUS <<\_ACEOF
9772# If no file are specified by the user, then we need to provide default
9773# value. By we need to know if files were specified by the user.
9774ac_need_defaults=:
9775while test $# != 0
9776do
9777 case $1 in
9778 --*=*)
9779 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9780 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9781 shift
9782 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9783 shift
9784 ;;
9785 -*);;
9786 *) # This is not an option, so the user has probably given explicit
9787 # arguments.
9788 ac_need_defaults=false;;
9789 esac
9790
9791 case $1 in
9792 # Handling of the options.
9793_ACEOF
9794cat >>$CONFIG_STATUS <<_ACEOF
9795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9796 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9797 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9798_ACEOF
9799cat >>$CONFIG_STATUS <<\_ACEOF
9800 --version | --vers* | -V )
9801 echo "$ac_cs_version"; exit 0 ;;
9802 --he | --h)
9803 # Conflict between --help and --header
9804 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9805Try \`$0 --help' for more information." >&5
9806echo "$as_me: error: ambiguous option: $1
9807Try \`$0 --help' for more information." >&2;}
9808 { (exit 1); exit 1; }; };;
9809 --help | --hel | -h )
9810 echo "$ac_cs_usage"; exit 0 ;;
9811 --debug | --d* | -d )
9812 debug=: ;;
9813 --file | --fil | --fi | --f )
9814 shift
9815 CONFIG_FILES="$CONFIG_FILES $1"
9816 ac_need_defaults=false;;
9817 --header | --heade | --head | --hea )
9818 shift
9819 CONFIG_HEADERS="$CONFIG_HEADERS $1"
9820 ac_need_defaults=false;;
9821
9822 # This is an error.
9823 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9824Try \`$0 --help' for more information." >&5
9825echo "$as_me: error: unrecognized option: $1
9826Try \`$0 --help' for more information." >&2;}
9827 { (exit 1); exit 1; }; } ;;
9828
9829 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 9830
252b5132 9831 esac
9b2b7d69
MM
9832 shift
9833done
252b5132 9834
9b2b7d69 9835_ACEOF
6840198f 9836
9b2b7d69
MM
9837cat >>$CONFIG_STATUS <<_ACEOF
9838#
9839# INIT-COMMANDS section.
9840#
9841
9842
9843target_cpu_type=${target_cpu_type}
9844 cgen_cpu_prefix=${cgen_cpu_prefix}
9845 obj_format=${obj_format}
9846 te_file=${te_file}
9847
9848_ACEOF
9849
9850
9851
9852cat >>$CONFIG_STATUS <<\_ACEOF
9853for ac_config_target in $ac_config_targets
9854do
9855 case "$ac_config_target" in
9856 # Handling of arguments.
9857 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9858 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9859 "${GDBINIT}" ) CONFIG_FILES="$CONFIG_FILES ${GDBINIT}:gdbinit.in" ;;
9860 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9861 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9862 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9863 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9864 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9865echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9866 { (exit 1); exit 1; }; };;
9867 esac
9868done
9869
9870# If the user did not use the arguments to specify the items to instantiate,
9871# then the envvar interface is used. Set only those that are not.
9872# We use the long form for the default assignment because of an extremely
9873# bizarre bug on SunOS 4.1.3.
9874if $ac_need_defaults; then
9875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9878fi
9879
9880# Create a temporary directory, and hook for its removal unless debugging.
9881$debug ||
9882{
9883 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9884 trap '{ (exit 1); exit 1; }' 1 2 13 15
9885}
9886
9887# Create a (secure) tmp directory for tmp files.
9888: ${TMPDIR=/tmp}
9889{
9890 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9891 test -n "$tmp" && test -d "$tmp"
9892} ||
9893{
9894 tmp=$TMPDIR/cs$$-$RANDOM
9895 (umask 077 && mkdir $tmp)
9896} ||
9897{
9898 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9899 { (exit 1); exit 1; }
9900}
9901
9902_ACEOF
9903
9904cat >>$CONFIG_STATUS <<_ACEOF
9905
9906#
9907# CONFIG_FILES section.
9908#
9909
9910# No need to generate the scripts if there are no CONFIG_FILES.
9911# This happens for instance when ./config.status config.h
9912if test -n "\$CONFIG_FILES"; then
9913 # Protect against being on the right side of a sed subst in config.status.
9914 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9915 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9916s,@SHELL@,$SHELL,;t t
9917s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9918s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9919s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9920s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9921s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9922s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9923s,@exec_prefix@,$exec_prefix,;t t
9924s,@prefix@,$prefix,;t t
9925s,@program_transform_name@,$program_transform_name,;t t
9926s,@bindir@,$bindir,;t t
9927s,@sbindir@,$sbindir,;t t
9928s,@libexecdir@,$libexecdir,;t t
9929s,@datadir@,$datadir,;t t
9930s,@sysconfdir@,$sysconfdir,;t t
9931s,@sharedstatedir@,$sharedstatedir,;t t
9932s,@localstatedir@,$localstatedir,;t t
9933s,@libdir@,$libdir,;t t
9934s,@includedir@,$includedir,;t t
9935s,@oldincludedir@,$oldincludedir,;t t
9936s,@infodir@,$infodir,;t t
9937s,@mandir@,$mandir,;t t
9938s,@build_alias@,$build_alias,;t t
9939s,@host_alias@,$host_alias,;t t
9940s,@target_alias@,$target_alias,;t t
9941s,@DEFS@,$DEFS,;t t
9942s,@ECHO_C@,$ECHO_C,;t t
9943s,@ECHO_N@,$ECHO_N,;t t
9944s,@ECHO_T@,$ECHO_T,;t t
9945s,@LIBS@,$LIBS,;t t
9946s,@build@,$build,;t t
9947s,@build_cpu@,$build_cpu,;t t
9948s,@build_vendor@,$build_vendor,;t t
9949s,@build_os@,$build_os,;t t
9950s,@host@,$host,;t t
9951s,@host_cpu@,$host_cpu,;t t
9952s,@host_vendor@,$host_vendor,;t t
9953s,@host_os@,$host_os,;t t
9954s,@target@,$target,;t t
9955s,@target_cpu@,$target_cpu,;t t
9956s,@target_vendor@,$target_vendor,;t t
9957s,@target_os@,$target_os,;t t
9958s,@CC@,$CC,;t t
9959s,@CFLAGS@,$CFLAGS,;t t
9960s,@LDFLAGS@,$LDFLAGS,;t t
9961s,@CPPFLAGS@,$CPPFLAGS,;t t
9962s,@ac_ct_CC@,$ac_ct_CC,;t t
9963s,@EXEEXT@,$EXEEXT,;t t
9964s,@OBJEXT@,$OBJEXT,;t t
9965s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9966s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9967s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9968s,@PACKAGE@,$PACKAGE,;t t
9969s,@VERSION@,$VERSION,;t t
9970s,@ACLOCAL@,$ACLOCAL,;t t
9971s,@AUTOCONF@,$AUTOCONF,;t t
9972s,@AUTOMAKE@,$AUTOMAKE,;t t
9973s,@AUTOHEADER@,$AUTOHEADER,;t t
9974s,@MAKEINFO@,$MAKEINFO,;t t
9975s,@SET_MAKE@,$SET_MAKE,;t t
9976s,@LN_S@,$LN_S,;t t
9977s,@RANLIB@,$RANLIB,;t t
9978s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9979s,@STRIP@,$STRIP,;t t
9980s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9981s,@LIBTOOL@,$LIBTOOL,;t t
9982s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9983s,@GDBINIT@,$GDBINIT,;t t
9984s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
9985s,@extra_objects@,$extra_objects,;t t
9986s,@target_cpu_type@,$target_cpu_type,;t t
9987s,@obj_format@,$obj_format,;t t
9988s,@te_file@,$te_file,;t t
9989s,@install_tooldir@,$install_tooldir,;t t
9990s,@atof@,$atof,;t t
9991s,@BFDLIB@,$BFDLIB,;t t
9992s,@OPCODES_LIB@,$OPCODES_LIB,;t t
9993s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
9994s,@YACC@,$YACC,;t t
9995s,@LEX@,$LEX,;t t
9996s,@LEXLIB@,$LEXLIB,;t t
9997s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9998s,@CPP@,$CPP,;t t
9999s,@ALLOCA@,$ALLOCA,;t t
10000s,@USE_NLS@,$USE_NLS,;t t
10001s,@MSGFMT@,$MSGFMT,;t t
10002s,@GMSGFMT@,$GMSGFMT,;t t
10003s,@XGETTEXT@,$XGETTEXT,;t t
10004s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10005s,@CATALOGS@,$CATALOGS,;t t
10006s,@CATOBJEXT@,$CATOBJEXT,;t t
10007s,@DATADIRNAME@,$DATADIRNAME,;t t
10008s,@GMOFILES@,$GMOFILES,;t t
10009s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10010s,@INTLDEPS@,$INTLDEPS,;t t
10011s,@INTLLIBS@,$INTLLIBS,;t t
10012s,@INTLOBJS@,$INTLOBJS,;t t
10013s,@POFILES@,$POFILES,;t t
10014s,@POSUB@,$POSUB,;t t
10015s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10016s,@GT_NO@,$GT_NO,;t t
10017s,@GT_YES@,$GT_YES,;t t
10018s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10019s,@l@,$l,;t t
10020s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10021s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10022s,@MAINT@,$MAINT,;t t
10023s,@LIBM@,$LIBM,;t t
10024CEOF
10025
10026_ACEOF
10027
10028 cat >>$CONFIG_STATUS <<\_ACEOF
10029 # Split the substitutions into bite-sized pieces for seds with
10030 # small command number limits, like on Digital OSF/1 and HP-UX.
10031 ac_max_sed_lines=48
10032 ac_sed_frag=1 # Number of current file.
10033 ac_beg=1 # First line for current file.
10034 ac_end=$ac_max_sed_lines # Line after last line for current file.
10035 ac_more_lines=:
10036 ac_sed_cmds=
10037 while $ac_more_lines; do
10038 if test $ac_beg -gt 1; then
10039 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10040 else
10041 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10042 fi
10043 if test ! -s $tmp/subs.frag; then
10044 ac_more_lines=false
10045 else
10046 # The purpose of the label and of the branching condition is to
10047 # speed up the sed processing (if there are no `@' at all, there
10048 # is no need to browse any of the substitutions).
10049 # These are the two extra sed commands mentioned above.
10050 (echo ':t
10051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10052 if test -z "$ac_sed_cmds"; then
10053 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10054 else
10055 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10056 fi
10057 ac_sed_frag=`expr $ac_sed_frag + 1`
10058 ac_beg=$ac_end
10059 ac_end=`expr $ac_end + $ac_max_sed_lines`
10060 fi
10061 done
10062 if test -z "$ac_sed_cmds"; then
10063 ac_sed_cmds=cat
252b5132 10064 fi
9b2b7d69 10065fi # test -n "$CONFIG_FILES"
252b5132 10066
9b2b7d69
MM
10067_ACEOF
10068cat >>$CONFIG_STATUS <<\_ACEOF
10069for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10070 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10071 case $ac_file in
10072 - | *:- | *:-:* ) # input from stdin
10073 cat >$tmp/stdin
10074 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10075 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10076 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10077 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10078 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
10079 esac
10080
9b2b7d69
MM
10081 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10082 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10083$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10084 X"$ac_file" : 'X\(//\)[^/]' \| \
10085 X"$ac_file" : 'X\(//\)$' \| \
10086 X"$ac_file" : 'X\(/\)' \| \
10087 . : '\(.\)' 2>/dev/null ||
10088echo X"$ac_file" |
10089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10091 /^X\(\/\/\)$/{ s//\1/; q; }
10092 /^X\(\/\).*/{ s//\1/; q; }
10093 s/.*/./; q'`
10094 { case "$ac_dir" in
10095 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10096 *) as_incr_dir=.;;
10097esac
10098as_dummy="$ac_dir"
10099for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10100 case $as_mkdir_dir in
10101 # Skip DOS drivespec
10102 ?:) as_incr_dir=$as_mkdir_dir ;;
10103 *)
10104 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10105 test -d "$as_incr_dir" ||
10106 mkdir "$as_incr_dir" ||
10107 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10108echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10109 { (exit 1); exit 1; }; }
10110 ;;
252b5132 10111 esac
9b2b7d69
MM
10112done; }
10113
10114 ac_builddir=.
10115
10116if test "$ac_dir" != .; then
10117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10118 # A "../" for each directory in $ac_dir_suffix.
10119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10120else
10121 ac_dir_suffix= ac_top_builddir=
10122fi
10123
10124case $srcdir in
10125 .) # No --srcdir option. We are building in place.
10126 ac_srcdir=.
10127 if test -z "$ac_top_builddir"; then
10128 ac_top_srcdir=.
10129 else
10130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10131 fi ;;
10132 [\\/]* | ?:[\\/]* ) # Absolute path.
10133 ac_srcdir=$srcdir$ac_dir_suffix;
10134 ac_top_srcdir=$srcdir ;;
10135 *) # Relative path.
10136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10138esac
10139# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10140# absolute.
10141ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10142ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10143ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10144ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
252b5132 10145
9b2b7d69
MM
10146
10147 case $INSTALL in
10148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10149 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d6d788bd 10150 esac
252b5132 10151
9b2b7d69
MM
10152 if test x"$ac_file" != x-; then
10153 { echo "$as_me:$LINENO: creating $ac_file" >&5
10154echo "$as_me: creating $ac_file" >&6;}
10155 rm -f "$ac_file"
10156 fi
10157 # Let's still pretend it is `configure' which instantiates (i.e., don't
10158 # use $as_me), people would be surprised to read:
10159 # /* config.h. Generated by config.status. */
10160 if test x"$ac_file" = x-; then
10161 configure_input=
10162 else
10163 configure_input="$ac_file. "
10164 fi
10165 configure_input=$configure_input"Generated from `echo $ac_file_in |
10166 sed 's,.*/,,'` by configure."
10167
10168 # First look for the input files in the build tree, otherwise in the
10169 # src tree.
10170 ac_file_inputs=`IFS=:
10171 for f in $ac_file_in; do
10172 case $f in
10173 -) echo $tmp/stdin ;;
10174 [\\/$]*)
10175 # Absolute (can't be DOS-style, as IFS=:)
10176 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10177echo "$as_me: error: cannot find input file: $f" >&2;}
10178 { (exit 1); exit 1; }; }
10179 echo $f;;
10180 *) # Relative
10181 if test -f "$f"; then
10182 # Build tree
10183 echo $f
10184 elif test -f "$srcdir/$f"; then
10185 # Source tree
10186 echo $srcdir/$f
10187 else
10188 # /dev/null tree
10189 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10190echo "$as_me: error: cannot find input file: $f" >&2;}
10191 { (exit 1); exit 1; }; }
10192 fi;;
10193 esac
10194 done` || { (exit 1); exit 1; }
10195_ACEOF
10196cat >>$CONFIG_STATUS <<_ACEOF
10197 sed "$ac_vpsub
10198$extrasub
10199_ACEOF
10200cat >>$CONFIG_STATUS <<\_ACEOF
10201:t
10202/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10203s,@configure_input@,$configure_input,;t t
10204s,@srcdir@,$ac_srcdir,;t t
10205s,@abs_srcdir@,$ac_abs_srcdir,;t t
10206s,@top_srcdir@,$ac_top_srcdir,;t t
10207s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10208s,@builddir@,$ac_builddir,;t t
10209s,@abs_builddir@,$ac_abs_builddir,;t t
10210s,@top_builddir@,$ac_top_builddir,;t t
10211s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10212s,@INSTALL@,$ac_INSTALL,;t t
10213" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10214 rm -f $tmp/stdin
10215 if test x"$ac_file" != x-; then
10216 mv $tmp/out $ac_file
10217 else
10218 cat $tmp/out
10219 rm -f $tmp/out
10220 fi
10221
10222done
10223_ACEOF
10224cat >>$CONFIG_STATUS <<\_ACEOF
10225
10226#
10227# CONFIG_HEADER section.
10228#
252b5132
RH
10229
10230# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10231# NAME is the cpp macro being defined and VALUE is the value it is being given.
10232#
10233# ac_d sets the value in "#define NAME VALUE" lines.
9b2b7d69
MM
10234ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10235ac_dB='[ ].*$,\1#\2'
10236ac_dC=' '
10237ac_dD=',;t'
10238# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10239ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10240ac_uB='$,\1#\2define\3'
252b5132 10241ac_uC=' '
9b2b7d69
MM
10242ac_uD=',;t'
10243
10244for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 10245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9b2b7d69
MM
10246 case $ac_file in
10247 - | *:- | *:-:* ) # input from stdin
10248 cat >$tmp/stdin
10249 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10251 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10253 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
10254 esac
10255
9b2b7d69
MM
10256 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10257echo "$as_me: creating $ac_file" >&6;}
10258
10259 # First look for the input files in the build tree, otherwise in the
10260 # src tree.
10261 ac_file_inputs=`IFS=:
10262 for f in $ac_file_in; do
10263 case $f in
10264 -) echo $tmp/stdin ;;
10265 [\\/$]*)
10266 # Absolute (can't be DOS-style, as IFS=:)
10267 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10268echo "$as_me: error: cannot find input file: $f" >&2;}
10269 { (exit 1); exit 1; }; }
10270 echo $f;;
10271 *) # Relative
10272 if test -f "$f"; then
10273 # Build tree
10274 echo $f
10275 elif test -f "$srcdir/$f"; then
10276 # Source tree
10277 echo $srcdir/$f
10278 else
10279 # /dev/null tree
10280 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10281echo "$as_me: error: cannot find input file: $f" >&2;}
10282 { (exit 1); exit 1; }; }
10283 fi;;
10284 esac
10285 done` || { (exit 1); exit 1; }
10286 # Remove the trailing spaces.
10287 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10288
10289_ACEOF
10290
10291# Transform confdefs.h into two sed scripts, `conftest.defines' and
10292# `conftest.undefs', that substitutes the proper values into
10293# config.h.in to produce config.h. The first handles `#define'
10294# templates, and the second `#undef' templates.
10295# And first: Protect against being on the right side of a sed subst in
10296# config.status. Protect against being in an unquoted here document
10297# in config.status.
10298rm -f conftest.defines conftest.undefs
10299# Using a here document instead of a string reduces the quoting nightmare.
10300# Putting comments in sed scripts is not portable.
10301#
10302# `end' is used to avoid that the second main sed command (meant for
10303# 0-ary CPP macros) applies to n-ary macro definitions.
10304# See the Autoconf documentation for `clear'.
10305cat >confdef2sed.sed <<\_ACEOF
10306s/[\\&,]/\\&/g
10307s,[\\$`],\\&,g
10308t clear
10309: clear
10310s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10311t end
10312s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10313: end
10314_ACEOF
10315# If some macros were called several times there might be several times
10316# the same #defines, which is useless. Nevertheless, we may not want to
10317# sort them, since we want the *last* AC-DEFINE to be honored.
10318uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10319sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10320rm -f confdef2sed.sed
252b5132
RH
10321
10322# This sed command replaces #undef with comments. This is necessary, for
10323# example, in the case of _POSIX_SOURCE, which is predefined and required
10324# on some systems where configure will not decide to define it.
9b2b7d69
MM
10325cat >>conftest.undefs <<\_ACEOF
10326s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10327_ACEOF
10328
10329# Break up conftest.defines because some shells have a limit on the size
10330# of here documents, and old seds have small limits too (100 cmds).
10331echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10332echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10333echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10334echo ' :' >>$CONFIG_STATUS
10335rm -f conftest.tail
10336while grep . conftest.defines >/dev/null
10337do
10338 # Write a limited-size here document to $tmp/defines.sed.
10339 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10340 # Speed up: don't consider the non `#define' lines.
10341 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10342 # Work around the forget-to-reset-the-flag bug.
10343 echo 't clr' >>$CONFIG_STATUS
10344 echo ': clr' >>$CONFIG_STATUS
10345 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10346 echo 'CEOF
10347 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10348 rm -f $tmp/in
10349 mv $tmp/out $tmp/in
10350' >>$CONFIG_STATUS
10351 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10352 rm -f conftest.defines
10353 mv conftest.tail conftest.defines
10354done
10355rm -f conftest.defines
10356echo ' fi # egrep' >>$CONFIG_STATUS
10357echo >>$CONFIG_STATUS
252b5132 10358
9b2b7d69
MM
10359# Break up conftest.undefs because some shells have a limit on the size
10360# of here documents, and old seds have small limits too (100 cmds).
10361echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 10362rm -f conftest.tail
9b2b7d69 10363while grep . conftest.undefs >/dev/null
252b5132 10364do
9b2b7d69
MM
10365 # Write a limited-size here document to $tmp/undefs.sed.
10366 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10367 # Speed up: don't consider the non `#undef'
10368 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10369 # Work around the forget-to-reset-the-flag bug.
10370 echo 't clr' >>$CONFIG_STATUS
10371 echo ': clr' >>$CONFIG_STATUS
10372 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 10373 echo 'CEOF
9b2b7d69
MM
10374 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10375 rm -f $tmp/in
10376 mv $tmp/out $tmp/in
10377' >>$CONFIG_STATUS
10378 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10379 rm -f conftest.undefs
10380 mv conftest.tail conftest.undefs
252b5132 10381done
9b2b7d69
MM
10382rm -f conftest.undefs
10383
10384cat >>$CONFIG_STATUS <<\_ACEOF
10385 # Let's still pretend it is `configure' which instantiates (i.e., don't
10386 # use $as_me), people would be surprised to read:
10387 # /* config.h. Generated by config.status. */
10388 if test x"$ac_file" = x-; then
10389 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 10390 else
9b2b7d69 10391 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
252b5132 10392 fi
9b2b7d69
MM
10393 cat $tmp/in >>$tmp/config.h
10394 rm -f $tmp/in
10395 if test x"$ac_file" != x-; then
10396 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10397 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10398echo "$as_me: $ac_file is unchanged" >&6;}
10399 else
10400 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10401$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10402 X"$ac_file" : 'X\(//\)[^/]' \| \
10403 X"$ac_file" : 'X\(//\)$' \| \
10404 X"$ac_file" : 'X\(/\)' \| \
10405 . : '\(.\)' 2>/dev/null ||
10406echo X"$ac_file" |
10407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10409 /^X\(\/\/\)$/{ s//\1/; q; }
10410 /^X\(\/\).*/{ s//\1/; q; }
10411 s/.*/./; q'`
10412 { case "$ac_dir" in
10413 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10414 *) as_incr_dir=.;;
10415esac
10416as_dummy="$ac_dir"
10417for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10418 case $as_mkdir_dir in
10419 # Skip DOS drivespec
10420 ?:) as_incr_dir=$as_mkdir_dir ;;
10421 *)
10422 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10423 test -d "$as_incr_dir" ||
10424 mkdir "$as_incr_dir" ||
10425 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10426echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10427 { (exit 1); exit 1; }; }
10428 ;;
10429 esac
10430done; }
252b5132 10431
9b2b7d69
MM
10432 rm -f $ac_file
10433 mv $tmp/config.h $ac_file
10434 fi
10435 else
10436 cat $tmp/config.h
10437 rm -f $tmp/config.h
10438 fi
10439done
10440_ACEOF
10441cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 10442
9b2b7d69
MM
10443#
10444# CONFIG_COMMANDS section.
10445#
10446for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10447 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10448 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10449 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10450$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10451 X"$ac_dest" : 'X\(//\)[^/]' \| \
10452 X"$ac_dest" : 'X\(//\)$' \| \
10453 X"$ac_dest" : 'X\(/\)' \| \
10454 . : '\(.\)' 2>/dev/null ||
10455echo X"$ac_dest" |
10456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10458 /^X\(\/\/\)$/{ s//\1/; q; }
10459 /^X\(\/\).*/{ s//\1/; q; }
10460 s/.*/./; q'`
10461 ac_builddir=.
10462
10463if test "$ac_dir" != .; then
10464 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10465 # A "../" for each directory in $ac_dir_suffix.
10466 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10467else
10468 ac_dir_suffix= ac_top_builddir=
10469fi
10470
10471case $srcdir in
10472 .) # No --srcdir option. We are building in place.
10473 ac_srcdir=.
10474 if test -z "$ac_top_builddir"; then
10475 ac_top_srcdir=.
10476 else
10477 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10478 fi ;;
10479 [\\/]* | ?:[\\/]* ) # Absolute path.
10480 ac_srcdir=$srcdir$ac_dir_suffix;
10481 ac_top_srcdir=$srcdir ;;
10482 *) # Relative path.
10483 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10484 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10485esac
10486# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10487# absolute.
10488ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10489ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10490ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10491ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10492
10493
10494 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10495echo "$as_me: executing $ac_dest commands" >&6;}
10496 case $ac_dest in
10497 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10498 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
252b5132
RH
10499 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
10500 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
10501 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
10502 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
10503 if test "x$cgen_cpu_prefix" != x ; then
10504 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
10505 fi
10506
9b2b7d69
MM
10507 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
10508 esac
10509done
10510_ACEOF
10511
10512cat >>$CONFIG_STATUS <<\_ACEOF
10513
10514{ (exit 0); exit 0; }
10515_ACEOF
252b5132 10516chmod +x $CONFIG_STATUS
9b2b7d69
MM
10517ac_clean_files=$ac_clean_files_save
10518
10519
10520# configure is writing to config.log, and then calls config.status.
10521# config.status does its own redirection, appending to config.log.
10522# Unfortunately, on DOS this fails, as config.log is still kept open
10523# by configure, so config.status won't be able to write to it; its
10524# output is simply discarded. So we exec the FD to /dev/null,
10525# effectively closing config.log, so it can be properly (re)opened and
10526# appended to by config.status. When coming back to configure, we
10527# need to make the FD available again.
10528if test "$no_create" != yes; then
10529 ac_cs_success=:
10530 exec 5>/dev/null
10531 $SHELL $CONFIG_STATUS || ac_cs_success=false
10532 exec 5>>config.log
10533 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10534 # would make configure fail if this is the last instruction.
10535 $ac_cs_success || { (exit 1); exit 1; }
10536fi
252b5132 10537
This page took 0.701387 seconds and 4 git commands to generate.