2005-07-29 Paul Brook <paul@codesourcery.com>
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
ab509236 3# Generated by GNU Autoconf 2.59.
252b5132 4#
ab509236 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
13b2be9c
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
ab509236 22DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
23
24# Support unset when possible.
ab509236 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
ab509236 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
ab509236 221 test -d ./-p && rmdir ./-p
13b2be9c
DJ
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
ab509236 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
229
230# Sed expression to map a string onto a valid variable name.
ab509236 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 248
13b2be9c
DJ
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
13b2be9c
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="as.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
9e9b66a9 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof BFDLIB OPCODES_LIB BFDVER_H ALL_OBJ_DEPS YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBM LIBOBJS LTLIBOBJS'
13b2be9c 313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
13b2be9c
DJ
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
13b2be9c 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
13b2be9c
DJ
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
13b2be9c 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
13b2be9c 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
13b2be9c 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 377 build_alias=$ac_optarg ;;
252b5132
RH
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
13b2be9c 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
13b2be9c 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
13b2be9c
DJ
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
13b2be9c 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
13b2be9c
DJ
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
13b2be9c 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
13b2be9c 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
13b2be9c
DJ
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
13b2be9c 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 440 host_alias=$ac_optarg ;;
252b5132
RH
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 457 libdir=$ac_optarg ;;
252b5132
RH
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
13b2be9c 464 libexecdir=$ac_optarg ;;
252b5132
RH
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
13b2be9c 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 478 mandir=$ac_optarg ;;
252b5132
RH
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 485 | --no-cr | --no-c | -n)
252b5132
RH
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 504 prefix=$ac_optarg ;;
252b5132
RH
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 511 program_prefix=$ac_optarg ;;
252b5132
RH
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 518 program_suffix=$ac_optarg ;;
252b5132
RH
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 535 program_transform_name=$ac_optarg ;;
252b5132
RH
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
13b2be9c 545 sbindir=$ac_optarg ;;
252b5132
RH
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
13b2be9c 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
13b2be9c 561 site=$ac_optarg ;;
76bff705 562
252b5132
RH
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 566 srcdir=$ac_optarg ;;
252b5132
RH
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
13b2be9c
DJ
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
13b2be9c 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
13b2be9c
DJ
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
13b2be9c
DJ
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
13b2be9c 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
13b2be9c 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
13b2be9c
DJ
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
252b5132
RH
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 617 x_includes=$ac_optarg ;;
252b5132
RH
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 624 x_libraries=$ac_optarg ;;
252b5132 625
13b2be9c
DJ
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
13b2be9c
DJ
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
252b5132 641 *)
13b2be9c
DJ
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
13b2be9c
DJ
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
c8615825 656fi
c8615825 657
13b2be9c
DJ
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
252b5132 668
13b2be9c
DJ
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ab509236 671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
13b2be9c
DJ
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
252b5132
RH
678 esac
679done
680
13b2be9c
DJ
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
9b2b7d69 698
13b2be9c
DJ
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
13b2be9c
DJ
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
252b5132
RH
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
13b2be9c
DJ
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
13b2be9c
DJ
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
13b2be9c
DJ
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
d6d788bd 773
13b2be9c
DJ
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
9b2b7d69 782
13b2be9c 783Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 784
13b2be9c
DJ
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 787
13b2be9c 788Defaults for the options are specified in brackets.
9b2b7d69 789
13b2be9c
DJ
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
ab509236 806 [$ac_default_prefix]
13b2be9c 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ab509236 808 [PREFIX]
9b2b7d69 809
13b2be9c
DJ
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
9b2b7d69 814
13b2be9c 815For better control, use the options below.
9b2b7d69 816
13b2be9c
DJ
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
9b2b7d69 831
13b2be9c 832 cat <<\_ACEOF
9b2b7d69 833
13b2be9c
DJ
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 838
13b2be9c
DJ
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
9b2b7d69 844fi
9b2b7d69 845
13b2be9c 846if test -n "$ac_init_help"; then
9b2b7d69 847
13b2be9c 848 cat <<\_ACEOF
9b2b7d69 849
13b2be9c
DJ
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
13b2be9c
DJ
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-bfd-assembler use BFD back end for writing object files
860 targets alternative target configurations besides the primary
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
569acd2c 862 --enable-werror treat compile warnings as errors
9e9b66a9 863 --enable-build-warnings Enable build-time compiler warnings
13b2be9c 864 --disable-nls do not use Native Language Support
ab509236
L
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
9b2b7d69 867
13b2be9c
DJ
868Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-gnu-ld assume the C compiler uses GNU ld default=no
872 --with-pic try to use only PIC/non-PIC objects default=use both
873 --with-included-gettext use the GNU gettext library included here
9b2b7d69 874
13b2be9c
DJ
875Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CPP C preprocessor
883
884Use these variables to override the choices made by `configure' or to help
885it to find libraries and programs with nonstandard names/locations.
886
887_ACEOF
9b2b7d69 888fi
9b2b7d69 889
13b2be9c
DJ
890if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
896
897if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901else
902 ac_dir_suffix= ac_top_builddir=
903fi
9b2b7d69 904
13b2be9c
DJ
905case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
c8615825 912 fi ;;
13b2be9c
DJ
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
c8615825 919esac
ab509236
L
920
921# Do not use `cd foo && pwd` to compute absolute paths, because
922# the directories may not exist.
923case `pwd` in
924.) ac_abs_builddir="$ac_dir";;
925*)
926 case "$ac_dir" in
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 esac;;
931esac
932case $ac_abs_builddir in
933.) ac_abs_top_builddir=${ac_top_builddir}.;;
934*)
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 esac;;
940esac
941case $ac_abs_builddir in
942.) ac_abs_srcdir=$ac_srcdir;;
943*)
944 case $ac_srcdir in
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 esac;;
949esac
950case $ac_abs_builddir in
951.) ac_abs_top_srcdir=$ac_top_srcdir;;
952*)
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 esac;;
958esac
13b2be9c
DJ
959
960 cd $ac_dir
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
963 echo
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
966 echo
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
ab509236 969 test -f $ac_srcdir/configure.in; then
13b2be9c
DJ
970 echo
971 $ac_configure --help
972 else
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 fi
1ad12f97 975 cd $ac_popdir
13b2be9c
DJ
976 done
977fi
6840198f 978
13b2be9c
DJ
979test -n "$ac_init_help" && exit 0
980if $ac_init_version; then
981 cat <<\_ACEOF
c8615825 982
ab509236 983Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
984This configure script is free software; the Free Software Foundation
985gives unlimited permission to copy, distribute and modify it.
986_ACEOF
987 exit 0
988fi
989exec 5>config.log
990cat >&5 <<_ACEOF
991This file contains any messages produced by compilers while
992running configure, to aid debugging if configure makes a mistake.
c8615825 993
13b2be9c 994It was created by $as_me, which was
ab509236 995generated by GNU Autoconf 2.59. Invocation command line was
c8615825 996
13b2be9c 997 $ $0 $@
c8615825 998
13b2be9c
DJ
999_ACEOF
1000{
1001cat <<_ASUNAME
1002## --------- ##
1003## Platform. ##
1004## --------- ##
1005
1006hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
1012/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014
1015/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022
1023_ASUNAME
1024
1025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026for as_dir in $PATH
1027do
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031done
9b2b7d69 1032
13b2be9c 1033} >&5
6840198f 1034
13b2be9c 1035cat >&5 <<_ACEOF
c8615825 1036
9b2b7d69 1037
13b2be9c
DJ
1038## ----------- ##
1039## Core tests. ##
1040## ----------- ##
87ccc1b0 1041
13b2be9c 1042_ACEOF
9b2b7d69 1043
13b2be9c
DJ
1044
1045# Keep a trace of the command line.
1046# Strip out --no-create and --no-recursion so they do not pile up.
1047# Strip out --silent because we don't want to record it for future runs.
1048# Also quote any args containing shell meta-characters.
1049# Make two passes to allow for proper duplicate-argument suppression.
1050ac_configure_args=
1051ac_configure_args0=
1052ac_configure_args1=
1053ac_sep=
1054ac_must_keep_next=false
1055for ac_pass in 1 2
1056do
1057 for ac_arg
1058 do
1059 case $ac_arg in
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 continue ;;
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 esac
1067 case $ac_pass in
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 2)
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
ab509236 1072 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 1073 else
ab509236
L
1074 case $ac_arg in
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 esac
1082 ;;
1083 -* ) ac_must_keep_next=true ;;
1084 esac
13b2be9c
DJ
1085 fi
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
c8615825
AM
1089 ;;
1090 esac
1091 done
13b2be9c
DJ
1092done
1093$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095
1096# When interrupted or exit'd, cleanup temporary files, and complete
1097# config.log. We remove comments because anyway the quotes in there
1098# would cause problems or look ugly.
1099# WARNING: Be sure not to use single quotes in there, as some shells,
1100# such as our DU 5.0 friend, will then `close' the trap.
1101trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1103 {
1104 echo
1105
1106 cat <<\_ASBOX
1107## ---------------- ##
1108## Cache variables. ##
1109## ---------------- ##
1110_ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
1113{
1114 (set) 2>&1 |
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 *ac_space=\ *)
1117 sed -n \
ab509236
L
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
13b2be9c
DJ
1120 ;;
1121 *)
1122 sed -n \
ab509236 1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
1124 ;;
1125 esac;
1126}
1127 echo
1128
1129 cat <<\_ASBOX
1130## ----------------- ##
1131## Output variables. ##
1132## ----------------- ##
1133_ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1136 do
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1141
1142 if test -n "$ac_subst_files"; then
1143 cat <<\_ASBOX
1144## ------------- ##
1145## Output files. ##
1146## ------------- ##
1147_ASBOX
1148 echo
1149 for ac_var in $ac_subst_files
1150 do
1151 eval ac_val=$`echo $ac_var`
ab509236 1152 echo "$ac_var='"'"'$ac_val'"'"'"
13b2be9c
DJ
1153 done | sort
1154 echo
1155 fi
1156
1157 if test -s confdefs.h; then
1158 cat <<\_ASBOX
1159## ----------- ##
1160## confdefs.h. ##
1161## ----------- ##
1162_ASBOX
1163 echo
1164 sed "/^$/d" confdefs.h | sort
1165 echo
1166 fi
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1170 } >&5
ab509236 1171 rm -f core *.core &&
13b2be9c
DJ
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173 exit $exit_status
1174 ' 0
1175for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177done
1178ac_signal=0
1179
1180# confdefs.h avoids OS command line length limits that DEFS can exceed.
1181rm -rf conftest* confdefs.h
1182# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183echo >confdefs.h
1184
1185# Predefined preprocessor variables.
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_NAME "$PACKAGE_NAME"
1189_ACEOF
1190
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_VERSION "$PACKAGE_VERSION"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_STRING "$PACKAGE_STRING"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209_ACEOF
1210
1211
1212# Let the site file select an alternate cache file if it wants to.
1213# Prefer explicitly selected file to automatically selected ones.
1214if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 else
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219 fi
1220fi
1221for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1226 . "$ac_site_file"
1227 fi
1228done
1229
1230if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1240 fi
1241else
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1245fi
1246
1247# Check that the precious variables saved in the cache have kept the same
1248# value.
1249ac_cache_corrupted=false
1250for ac_var in `(set) 2>&1 |
ab509236 1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
13b2be9c
DJ
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1257 set,)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,set)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
1266 *)
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
ab509236 1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
13b2be9c 1269echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ab509236 1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
13b2be9c 1271echo "$as_me: former value: $ac_old_val" >&2;}
ab509236 1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
13b2be9c 1273echo "$as_me: current value: $ac_new_val" >&2;}
ab509236 1274 ac_cache_corrupted=:
13b2be9c
DJ
1275 fi;;
1276 esac
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1279 case $ac_new_val in
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1283 esac
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 esac
1288 fi
1289done
1290if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1296fi
1297
1298ac_ext=c
1299ac_cpp='$CPP $CPPFLAGS'
1300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323ac_aux_dir=
1324for ac_dir in .. $srcdir/..; do
1325 if test -f $ac_dir/install-sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 break
1329 elif test -f $ac_dir/install.sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 break
1333 elif test -f $ac_dir/shtool; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1336 break
1337 fi
1338done
1339if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1341echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1342 { (exit 1); exit 1; }; }
1343fi
1344ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347
1348# Make sure we can run config.sub.
1349$ac_config_sub sun4 >/dev/null 2>&1 ||
1350 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1351echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352 { (exit 1); exit 1; }; }
1353
1354echo "$as_me:$LINENO: checking build system type" >&5
1355echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356if test "${ac_cv_build+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358else
1359 ac_cv_build_alias=$build_alias
1360test -z "$ac_cv_build_alias" &&
1361 ac_cv_build_alias=`$ac_config_guess`
1362test -z "$ac_cv_build_alias" &&
1363 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1364echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365 { (exit 1); exit 1; }; }
1366ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1368echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1369 { (exit 1); exit 1; }; }
1370
1371fi
1372echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1373echo "${ECHO_T}$ac_cv_build" >&6
1374build=$ac_cv_build
1375build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378
1379
1380echo "$as_me:$LINENO: checking host system type" >&5
1381echo $ECHO_N "checking host system type... $ECHO_C" >&6
1382if test "${ac_cv_host+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384else
1385 ac_cv_host_alias=$host_alias
1386test -z "$ac_cv_host_alias" &&
1387 ac_cv_host_alias=$ac_cv_build_alias
1388ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1389 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1390echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1391 { (exit 1); exit 1; }; }
1392
1393fi
1394echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1395echo "${ECHO_T}$ac_cv_host" >&6
1396host=$ac_cv_host
1397host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400
1401
1402echo "$as_me:$LINENO: checking target system type" >&5
1403echo $ECHO_N "checking target system type... $ECHO_C" >&6
1404if test "${ac_cv_target+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406else
1407 ac_cv_target_alias=$target_alias
1408test "x$ac_cv_target_alias" = "x" &&
1409 ac_cv_target_alias=$ac_cv_host_alias
1410ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1412echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1414
1415fi
1416echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1417echo "${ECHO_T}$ac_cv_target" >&6
1418target=$ac_cv_target
1419target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422
1423
1424# The aliases save the names the user supplied, while $host etc.
1425# will get canonicalized.
1426test -n "$target_alias" &&
1427 test "$program_prefix$program_suffix$program_transform_name" = \
1428 NONENONEs,x,x, &&
1429 program_prefix=${target_alias}-
1430ac_ext=c
1431ac_cpp='$CPP $CPPFLAGS'
1432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438echo "$as_me:$LINENO: checking for $ac_word" >&5
1439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442else
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1445else
1446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447for as_dir in $PATH
1448do
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1456 fi
1457done
1458done
1459
1460fi
1461fi
1462CC=$ac_cv_prog_CC
1463if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465echo "${ECHO_T}$CC" >&6
1466else
1467 echo "$as_me:$LINENO: result: no" >&5
1468echo "${ECHO_T}no" >&6
1469fi
1470
1471fi
1472if test -z "$ac_cv_prog_CC"; then
1473 ac_ct_CC=$CC
1474 # Extract the first word of "gcc", so it can be a program name with args.
1475set dummy gcc; ac_word=$2
1476echo "$as_me:$LINENO: checking for $ac_word" >&5
1477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480else
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483else
1484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485for as_dir in $PATH
1486do
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1494 fi
1495done
1496done
1497
1498fi
1499fi
1500ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503echo "${ECHO_T}$ac_ct_CC" >&6
1504else
1505 echo "$as_me:$LINENO: result: no" >&5
1506echo "${ECHO_T}no" >&6
1507fi
1508
1509 CC=$ac_ct_CC
1510else
1511 CC="$ac_cv_prog_CC"
1512fi
1513
1514if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517set dummy ${ac_tool_prefix}cc; ac_word=$2
1518echo "$as_me:$LINENO: checking for $ac_word" >&5
1519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525else
1526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527for as_dir in $PATH
1528do
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1536 fi
1537done
1538done
1539
1540fi
1541fi
1542CC=$ac_cv_prog_CC
1543if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545echo "${ECHO_T}$CC" >&6
1546else
1547 echo "$as_me:$LINENO: result: no" >&5
1548echo "${ECHO_T}no" >&6
1549fi
1550
1551fi
1552if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "cc", so it can be a program name with args.
1555set dummy cc; ac_word=$2
1556echo "$as_me:$LINENO: checking for $ac_word" >&5
1557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563else
1564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565for as_dir in $PATH
1566do
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1574 fi
1575done
1576done
1577
1578fi
1579fi
1580ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583echo "${ECHO_T}$ac_ct_CC" >&6
1584else
1585 echo "$as_me:$LINENO: result: no" >&5
1586echo "${ECHO_T}no" >&6
1587fi
1588
1589 CC=$ac_ct_CC
1590else
1591 CC="$ac_cv_prog_CC"
1592fi
1593
1594fi
1595if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597set dummy cc; ac_word=$2
1598echo "$as_me:$LINENO: checking for $ac_word" >&5
1599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605else
1606 ac_prog_rejected=no
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
1609do
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615 ac_prog_rejected=yes
1616 continue
1617 fi
1618 ac_cv_prog_CC="cc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1621 fi
1622done
1623done
1624
1625if test $ac_prog_rejected = yes; then
1626 # We found a bogon in the path, so make sure we never use it.
1627 set dummy $ac_cv_prog_CC
1628 shift
1629 if test $# != 0; then
1630 # We chose a different compiler from the bogus one.
1631 # However, it has the same basename, so the bogon will be chosen
1632 # first if we set CC to just the basename; use the full file name.
1633 shift
1634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1635 fi
1636fi
1637fi
1638fi
1639CC=$ac_cv_prog_CC
1640if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642echo "${ECHO_T}$CC" >&6
1643else
1644 echo "$as_me:$LINENO: result: no" >&5
1645echo "${ECHO_T}no" >&6
1646fi
1647
1648fi
1649if test -z "$CC"; then
1650 if test -n "$ac_tool_prefix"; then
1651 for ac_prog in cl
1652 do
1653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655echo "$as_me:$LINENO: checking for $ac_word" >&5
1656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1662else
1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1673 fi
1674done
1675done
1676
1677fi
1678fi
1679CC=$ac_cv_prog_CC
1680if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682echo "${ECHO_T}$CC" >&6
1683else
1684 echo "$as_me:$LINENO: result: no" >&5
1685echo "${ECHO_T}no" >&6
1686fi
1687
1688 test -n "$CC" && break
1689 done
1690fi
1691if test -z "$CC"; then
1692 ac_ct_CC=$CC
1693 for ac_prog in cl
1694do
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696set dummy $ac_prog; ac_word=$2
1697echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704else
1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
1718
1719fi
1720fi
1721ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724echo "${ECHO_T}$ac_ct_CC" >&6
1725else
1726 echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728fi
1729
1730 test -n "$ac_ct_CC" && break
1731done
1732
1733 CC=$ac_ct_CC
1734fi
1735
1736fi
1737
1738
1739test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740See \`config.log' for more details." >&5
1741echo "$as_me: error: no acceptable C compiler found in \$PATH
1742See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1744
1745# Provide some information about the compiler.
1746echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748ac_compiler=`set X $ac_compile; echo $2`
1749{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1764
1765cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1766/* confdefs.h. */
1767_ACEOF
1768cat confdefs.h >>conftest.$ac_ext
1769cat >>conftest.$ac_ext <<_ACEOF
1770/* end confdefs.h. */
1771
1772int
1773main ()
1774{
1775
1776 ;
1777 return 0;
1778}
1779_ACEOF
1780ac_clean_files_save=$ac_clean_files
1781ac_clean_files="$ac_clean_files a.out a.exe b.out"
1782# Try to create an executable without -o first, disregard a.out.
1783# It will help us diagnose broken compilers, and finding out an intuition
1784# of exeext.
ab509236
L
1785echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1786echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
13b2be9c
DJ
1787ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795# resort.
1796
1797# Be careful to initialize this variable, since it used to be cached.
1798# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799ac_cv_exeext=
1800# b.out is created by i960 compilers.
1801for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1802do
1803 test -f "$ac_file" || continue
1804 case $ac_file in
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ab509236 1806 ;;
13b2be9c 1807 conftest.$ac_ext )
ab509236
L
1808 # This is the source file.
1809 ;;
13b2be9c 1810 [ab].out )
ab509236
L
1811 # We found the default executable, but exeext='' is most
1812 # certainly right.
1813 break;;
13b2be9c 1814 *.* )
ab509236
L
1815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 # FIXME: I believe we export ac_cv_exeext for Libtool,
1817 # but it would be cool to find out if it's true. Does anybody
1818 # maintain Libtool? --akim.
1819 export ac_cv_exeext
1820 break;;
13b2be9c 1821 * )
ab509236 1822 break;;
13b2be9c
DJ
1823 esac
1824done
1825else
1826 echo "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1830See \`config.log' for more details." >&5
1831echo "$as_me: error: C compiler cannot create executables
1832See \`config.log' for more details." >&2;}
1833 { (exit 77); exit 77; }; }
1834fi
1835
1836ac_exeext=$ac_cv_exeext
1837echo "$as_me:$LINENO: result: $ac_file" >&5
1838echo "${ECHO_T}$ac_file" >&6
1839
1840# Check the compiler produces executables we can run. If not, either
1841# the compiler is broken, or we cross compile.
1842echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1843echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845# If not cross compiling, check that we can run a simple program.
1846if test "$cross_compiling" != yes; then
1847 if { ac_try='./$ac_file'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 (eval $ac_try) 2>&5
1850 ac_status=$?
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; }; then
1853 cross_compiling=no
1854 else
1855 if test "$cross_compiling" = maybe; then
1856 cross_compiling=yes
1857 else
1858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1859If you meant to cross compile, use \`--host'.
1860See \`config.log' for more details." >&5
1861echo "$as_me: error: cannot run C compiled programs.
1862If you meant to cross compile, use \`--host'.
1863See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1865 fi
1866 fi
1867fi
1868echo "$as_me:$LINENO: result: yes" >&5
1869echo "${ECHO_T}yes" >&6
1870
1871rm -f a.out a.exe conftest$ac_cv_exeext b.out
1872ac_clean_files=$ac_clean_files_save
1873# Check the compiler produces executables we can run. If not, either
1874# the compiler is broken, or we cross compile.
1875echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1876echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1877echo "$as_me:$LINENO: result: $cross_compiling" >&5
1878echo "${ECHO_T}$cross_compiling" >&6
1879
1880echo "$as_me:$LINENO: checking for suffix of executables" >&5
1881echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1883 (eval $ac_link) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1888# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1889# work properly (i.e., refer to `conftest.exe'), while it won't with
1890# `rm'.
1891for ac_file in conftest.exe conftest conftest.*; do
1892 test -f "$ac_file" || continue
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236
L
1896 export ac_cv_exeext
1897 break;;
13b2be9c
DJ
1898 * ) break;;
1899 esac
1900done
1901else
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1903See \`config.log' for more details." >&5
1904echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1905See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1907fi
1908
1909rm -f conftest$ac_cv_exeext
1910echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1911echo "${ECHO_T}$ac_cv_exeext" >&6
1912
1913rm -f conftest.$ac_ext
1914EXEEXT=$ac_cv_exeext
1915ac_exeext=$EXEEXT
1916echo "$as_me:$LINENO: checking for suffix of object files" >&5
1917echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1918if test "${ac_cv_objext+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920else
1921 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1922/* confdefs.h. */
1923_ACEOF
1924cat confdefs.h >>conftest.$ac_ext
1925cat >>conftest.$ac_ext <<_ACEOF
1926/* end confdefs.h. */
1927
1928int
1929main ()
1930{
1931
1932 ;
1933 return 0;
1934}
1935_ACEOF
1936rm -f conftest.o conftest.obj
1937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; then
1942 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 case $ac_file in
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1946 break;;
1947 esac
1948done
1949else
1950 echo "$as_me: failed program was:" >&5
1951sed 's/^/| /' conftest.$ac_ext >&5
1952
1953{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1954See \`config.log' for more details." >&5
1955echo "$as_me: error: cannot compute suffix of object files: cannot compile
1956See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1958fi
1959
1960rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961fi
1962echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1963echo "${ECHO_T}$ac_cv_objext" >&6
1964OBJEXT=$ac_cv_objext
1965ac_objext=$OBJEXT
1966echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1967echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1972/* confdefs.h. */
1973_ACEOF
1974cat confdefs.h >>conftest.$ac_ext
1975cat >>conftest.$ac_ext <<_ACEOF
1976/* end confdefs.h. */
1977
1978int
1979main ()
1980{
1981#ifndef __GNUC__
1982 choke me
1983#endif
1984
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989rm -f conftest.$ac_objext
1990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 1991 (eval $ac_compile) 2>conftest.er1
13b2be9c 1992 ac_status=$?
ab509236
L
1993 grep -v '^ *+' conftest.er1 >conftest.err
1994 rm -f conftest.er1
1995 cat conftest.err >&5
13b2be9c
DJ
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1ad12f97
NC
1998 { ac_try='test -z "$ac_c_werror_flag"
1999 || test ! -s conftest.err'
ab509236
L
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2011 ac_compiler_gnu=yes
2012else
2013 echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
2015
2016ac_compiler_gnu=no
2017fi
ab509236 2018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2019ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020
2021fi
2022echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024GCC=`test $ac_compiler_gnu = yes && echo yes`
2025ac_test_CFLAGS=${CFLAGS+set}
2026ac_save_CFLAGS=$CFLAGS
2027CFLAGS="-g"
2028echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2034/* confdefs.h. */
2035_ACEOF
2036cat confdefs.h >>conftest.$ac_ext
2037cat >>conftest.$ac_ext <<_ACEOF
2038/* end confdefs.h. */
2039
2040int
2041main ()
2042{
2043
2044 ;
2045 return 0;
2046}
2047_ACEOF
2048rm -f conftest.$ac_objext
2049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2050 (eval $ac_compile) 2>conftest.er1
13b2be9c 2051 ac_status=$?
ab509236
L
2052 grep -v '^ *+' conftest.er1 >conftest.err
2053 rm -f conftest.er1
2054 cat conftest.err >&5
13b2be9c
DJ
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
1ad12f97
NC
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
ab509236
L
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 ac_cv_prog_cc_g=yes
2071else
2072 echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075ac_cv_prog_cc_g=no
2076fi
ab509236 2077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2078fi
2079echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2085 CFLAGS="-g -O2"
2086 else
2087 CFLAGS="-g"
2088 fi
2089else
2090 if test "$GCC" = yes; then
2091 CFLAGS="-O2"
2092 else
2093 CFLAGS=
2094 fi
2095fi
2096echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100else
2101 ac_cv_prog_cc_stdc=no
2102ac_save_CC=$CC
2103cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2104/* confdefs.h. */
2105_ACEOF
2106cat confdefs.h >>conftest.$ac_ext
2107cat >>conftest.$ac_ext <<_ACEOF
2108/* end confdefs.h. */
2109#include <stdarg.h>
2110#include <stdio.h>
2111#include <sys/types.h>
2112#include <sys/stat.h>
2113/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114struct buf { int x; };
2115FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116static char *e (p, i)
2117 char **p;
2118 int i;
2119{
2120 return p[i];
2121}
2122static char *f (char * (*g) (char **, int), char **p, ...)
2123{
2124 char *s;
2125 va_list v;
2126 va_start (v,p);
2127 s = g (p, va_arg (v,int));
2128 va_end (v);
2129 return s;
2130}
ab509236
L
2131
2132/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2140
13b2be9c
DJ
2141int test (int i, double x);
2142struct s1 {int (*f) (int a);};
2143struct s2 {int (*f) (double a);};
2144int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145int argc;
2146char **argv;
2147int
2148main ()
2149{
2150return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2151 ;
2152 return 0;
2153}
2154_ACEOF
2155# Don't try gcc -ansi; that turns off useful extensions and
2156# breaks some systems' header files.
2157# AIX -qlanglvl=ansi
2158# Ultrix and OSF/1 -std1
2159# HP-UX 10.20 and later -Ae
2160# HP-UX older versions -Aa -D_HPUX_SOURCE
2161# SVR4 -Xc -D__EXTENSIONS__
2162for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163do
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2167 (eval $ac_compile) 2>conftest.er1
13b2be9c 2168 ac_status=$?
ab509236
L
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
13b2be9c
DJ
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
1ad12f97
NC
2174 { ac_try='test -z "$ac_c_werror_flag"
2175 || test ! -s conftest.err'
ab509236
L
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2188break
2189else
2190 echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193fi
ab509236 2194rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
2195done
2196rm -f conftest.$ac_ext conftest.$ac_objext
2197CC=$ac_save_CC
2198
2199fi
2200
2201case "x$ac_cv_prog_cc_stdc" in
2202 x|xno)
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204echo "${ECHO_T}none needed" >&6 ;;
2205 *)
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209esac
2210
2211# Some people use a C++ compiler to compile C. Since we use `exit',
2212# in C++ we need to declare it. In case someone uses the same compiler
2213# for both compiling C and C++ we need to have the C++ compiler decide
2214# the declaration of exit, since it's the most demanding environment.
2215cat >conftest.$ac_ext <<_ACEOF
2216#ifndef __cplusplus
2217 choke me
2218#endif
2219_ACEOF
2220rm -f conftest.$ac_objext
2221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2222 (eval $ac_compile) 2>conftest.er1
13b2be9c 2223 ac_status=$?
ab509236
L
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
13b2be9c
DJ
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
1ad12f97
NC
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
ab509236
L
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 for ac_declaration in \
ab509236 2243 '' \
13b2be9c
DJ
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2248 'void exit (int);'
2249do
2250 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2251/* confdefs.h. */
2252_ACEOF
2253cat confdefs.h >>conftest.$ac_ext
2254cat >>conftest.$ac_ext <<_ACEOF
2255/* end confdefs.h. */
13dfd2d0 2256$ac_declaration
ab509236 2257#include <stdlib.h>
13b2be9c
DJ
2258int
2259main ()
2260{
2261exit (42);
2262 ;
2263 return 0;
2264}
2265_ACEOF
2266rm -f conftest.$ac_objext
2267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2268 (eval $ac_compile) 2>conftest.er1
13b2be9c 2269 ac_status=$?
ab509236
L
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
13b2be9c
DJ
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
1ad12f97
NC
2275 { ac_try='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
ab509236
L
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2288 :
2289else
2290 echo "$as_me: failed program was:" >&5
2291sed 's/^/| /' conftest.$ac_ext >&5
2292
2293continue
2294fi
ab509236 2295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 2296 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2297/* confdefs.h. */
2298_ACEOF
2299cat confdefs.h >>conftest.$ac_ext
2300cat >>conftest.$ac_ext <<_ACEOF
2301/* end confdefs.h. */
2302$ac_declaration
2303int
2304main ()
2305{
2306exit (42);
2307 ;
2308 return 0;
2309}
2310_ACEOF
2311rm -f conftest.$ac_objext
2312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2313 (eval $ac_compile) 2>conftest.er1
13b2be9c 2314 ac_status=$?
ab509236
L
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
13b2be9c
DJ
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
1ad12f97
NC
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
ab509236
L
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 break
2334else
2335 echo "$as_me: failed program was:" >&5
2336sed 's/^/| /' conftest.$ac_ext >&5
2337
2338fi
ab509236 2339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2340done
2341rm -f conftest*
2342if test -n "$ac_declaration"; then
2343 echo '#ifdef __cplusplus' >>confdefs.h
2344 echo $ac_declaration >>confdefs.h
2345 echo '#endif' >>confdefs.h
2346fi
2347
2348else
2349 echo "$as_me: failed program was:" >&5
2350sed 's/^/| /' conftest.$ac_ext >&5
2351
2352fi
ab509236 2353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2354ac_ext=c
2355ac_cpp='$CPP $CPPFLAGS'
2356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359
2360
ab509236
L
2361echo "$as_me:$LINENO: checking for library containing strerror" >&5
2362echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2363if test "${ac_cv_search_strerror+set}" = set; then
13b2be9c
DJ
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
ab509236
L
2366 ac_func_search_save_LIBS=$LIBS
2367ac_cv_search_strerror=no
13b2be9c 2368cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2369/* confdefs.h. */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
2373/* end confdefs.h. */
2374
2375/* Override any gcc2 internal prototype to avoid an error. */
2376#ifdef __cplusplus
2377extern "C"
2378#endif
2379/* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2381char strerror ();
2382int
2383main ()
2384{
2385strerror ();
2386 ;
2387 return 0;
2388}
2389_ACEOF
2390rm -f conftest.$ac_objext conftest$ac_exeext
2391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 2392 (eval $ac_link) 2>conftest.er1
13b2be9c 2393 ac_status=$?
ab509236
L
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
13b2be9c
DJ
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
1ad12f97
NC
2399 { ac_try='test -z "$ac_c_werror_flag"
2400 || test ! -s conftest.err'
ab509236
L
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
ab509236 2412 ac_cv_search_strerror="none required"
13b2be9c
DJ
2413else
2414 echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
13b2be9c 2417fi
ab509236
L
2418rm -f conftest.err conftest.$ac_objext \
2419 conftest$ac_exeext conftest.$ac_ext
2420if test "$ac_cv_search_strerror" = no; then
2421 for ac_lib in cposix; do
2422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2423 cat >conftest.$ac_ext <<_ACEOF
2424/* confdefs.h. */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
2428/* end confdefs.h. */
2429
2430/* Override any gcc2 internal prototype to avoid an error. */
2431#ifdef __cplusplus
2432extern "C"
2433#endif
2434/* We use char because int might match the return type of a gcc2
2435 builtin and then its argument prototype would still apply. */
2436char strerror ();
2437int
2438main ()
2439{
2440strerror ();
2441 ;
2442 return 0;
2443}
2444_ACEOF
2445rm -f conftest.$ac_objext conftest$ac_exeext
2446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447 (eval $ac_link) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
1ad12f97
NC
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
ab509236
L
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest$ac_exeext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 ac_cv_search_strerror="-l$ac_lib"
2468break
2469else
2470 echo "$as_me: failed program was:" >&5
2471sed 's/^/| /' conftest.$ac_ext >&5
2472
13b2be9c 2473fi
ab509236
L
2474rm -f conftest.err conftest.$ac_objext \
2475 conftest$ac_exeext conftest.$ac_ext
2476 done
13b2be9c 2477fi
ab509236
L
2478LIBS=$ac_func_search_save_LIBS
2479fi
2480echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2481echo "${ECHO_T}$ac_cv_search_strerror" >&6
2482if test "$ac_cv_search_strerror" != no; then
2483 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
13b2be9c 2484
ab509236 2485fi
13b2be9c
DJ
2486
2487
2488BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
8ea2b00f 2489am__api_version="1.9"
13b2be9c
DJ
2490# Find a good install program. We prefer a C program (faster),
2491# so one script is as good as another. But avoid the broken or
2492# incompatible versions:
2493# SysV /etc/install, /usr/sbin/install
2494# SunOS /usr/etc/install
2495# IRIX /sbin/install
2496# AIX /bin/install
2497# AmigaOS /C/install, which installs bootblocks on floppy discs
2498# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2499# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2500# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 2501# OS/2's system install, which has a completely different semantic
13b2be9c
DJ
2502# ./install, which can be erroneously created by make from ./install.sh.
2503echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2504echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2505if test -z "$INSTALL"; then
2506if test "${ac_cv_path_install+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 # Account for people who put trailing slashes in PATH elements.
2515case $as_dir/ in
2516 ./ | .// | /cC/* | \
2517 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ab509236 2518 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13b2be9c
DJ
2519 /usr/ucb/* ) ;;
2520 *)
2521 # OSF1 and SCO ODT 3.0 have their own names for install.
2522 # Don't use installbsd from OSF since it installs stuff as root
2523 # by default.
2524 for ac_prog in ginstall scoinst install; do
2525 for ac_exec_ext in '' $ac_executable_extensions; do
ab509236
L
2526 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2527 if test $ac_prog = install &&
2528 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # AIX install. It has an incompatible calling convention.
2530 :
2531 elif test $ac_prog = install &&
2532 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # program-specific install script used by HP pwplus--don't use.
2534 :
2535 else
2536 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2537 break 3
2538 fi
2539 fi
13b2be9c
DJ
2540 done
2541 done
2542 ;;
2543esac
2544done
2545
252b5132
RH
2546
2547fi
2548 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2549 INSTALL=$ac_cv_path_install
252b5132
RH
2550 else
2551 # As a last resort, use the slow shell script. We don't cache a
2552 # path for INSTALL within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the path is relative.
13b2be9c 2555 INSTALL=$ac_install_sh
252b5132
RH
2556 fi
2557fi
13b2be9c
DJ
2558echo "$as_me:$LINENO: result: $INSTALL" >&5
2559echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2560
2561# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2562# It thinks the first close brace ends the variable substitution.
2563test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2564
13b2be9c 2565test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2566
2567test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2568
13b2be9c
DJ
2569echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2570echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2571# Just in case
2572sleep 1
13b2be9c 2573echo timestamp > conftest.file
252b5132
RH
2574# Do `set' in a subshell so we don't clobber the current shell's
2575# arguments. Must try -L first in case configure is actually a
2576# symlink; some systems play weird games with the mod time of symlinks
2577# (eg FreeBSD returns the mod time of the symlink's containing
2578# directory).
2579if (
13b2be9c 2580 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2581 if test "$*" = "X"; then
2582 # -L didn't work.
13b2be9c 2583 set X `ls -t $srcdir/configure conftest.file`
252b5132 2584 fi
13b2be9c
DJ
2585 rm -f conftest.file
2586 if test "$*" != "X $srcdir/configure conftest.file" \
2587 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2588
2589 # If neither matched, then we have a broken ls. This can happen
2590 # if, for instance, CONFIG_SHELL is bash and it inherits a
2591 # broken ls alias from the environment. This has actually
2592 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2593 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2594alias in your environment" >&5
2595echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2596alias in your environment" >&2;}
2597 { (exit 1); exit 1; }; }
252b5132
RH
2598 fi
2599
13b2be9c
DJ
2600 test "$2" = conftest.file
2601 )
2602then
2603 # Ok.
2604 :
2605else
2606 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2607Check your system clock" >&5
2608echo "$as_me: error: newly created file is older than distributed files!
2609Check your system clock" >&2;}
2610 { (exit 1); exit 1; }; }
2611fi
2612echo "$as_me:$LINENO: result: yes" >&5
2613echo "${ECHO_T}yes" >&6
2614test "$program_prefix" != NONE &&
2615 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2616# Use a double $ so make ignores it.
2617test "$program_suffix" != NONE &&
2618 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2619# Double any \ or $. echo might interpret backslashes.
2620# By default was `s,x,x', remove it if useless.
2621cat <<\_ACEOF >conftest.sed
2622s/[\\$]/&&/g;s/;s,x,x,$//
2623_ACEOF
2624program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2625rm conftest.sed
2626
13b2be9c
DJ
2627# expand $ac_aux_dir to an absolute path
2628am_aux_dir=`cd $ac_aux_dir && pwd`
2629
2630test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2631# Use eval to expand $SHELL
2632if eval "$MISSING --run true"; then
2633 am_missing_run="$MISSING --run "
2634else
2635 am_missing_run=
2636 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2637echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2638fi
2639
4b363073 2640if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8ea2b00f
AM
2641 # We used to keeping the `.' as first argument, in order to
2642 # allow $(mkdir_p) to be used without argument. As in
ab509236 2643 # $(mkdir_p) $(somedir)
8ea2b00f
AM
2644 # where $(somedir) is conditionally defined. However this is wrong
2645 # for two reasons:
2646 # 1. if the package is installed by a user who cannot write `.'
2647 # make install will fail,
2648 # 2. the above comment should most certainly read
2649 # $(mkdir_p) $(DESTDIR)$(somedir)
2650 # so it does not work when $(somedir) is undefined and
2651 # $(DESTDIR) is not.
2652 # To support the latter case, we have to write
2653 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2654 # so the `.' trick is pointless.
2655 mkdir_p='mkdir -p --'
ab509236
L
2656else
2657 # On NextStep and OpenStep, the `mkdir' command does not
2658 # recognize any option. It will interpret all options as
2659 # directories to create, and then abort because `.' already
2660 # exists.
4b363073 2661 for d in ./-p ./--version;
ab509236
L
2662 do
2663 test -d $d && rmdir $d
2664 done
2665 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2666 if test -f "$ac_aux_dir/mkinstalldirs"; then
2667 mkdir_p='$(mkinstalldirs)'
2668 else
2669 mkdir_p='$(install_sh) -d'
2670 fi
2671fi
2672
13b2be9c
DJ
2673for ac_prog in gawk mawk nawk awk
2674do
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676set dummy $ac_prog; ac_word=$2
2677echo "$as_me:$LINENO: checking for $ac_word" >&5
2678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679if test "${ac_cv_prog_AWK+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681else
2682 if test -n "$AWK"; then
2683 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_AWK="$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696done
2697done
2698
2699fi
2700fi
2701AWK=$ac_cv_prog_AWK
2702if test -n "$AWK"; then
2703 echo "$as_me:$LINENO: result: $AWK" >&5
2704echo "${ECHO_T}$AWK" >&6
2705else
2706 echo "$as_me:$LINENO: result: no" >&5
2707echo "${ECHO_T}no" >&6
2708fi
2709
2710 test -n "$AWK" && break
2711done
2712
2713echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ab509236 2715set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
13b2be9c
DJ
2716if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718else
2719 cat >conftest.make <<\_ACEOF
2720all:
2721 @echo 'ac_maketemp="$(MAKE)"'
2722_ACEOF
2723# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2725if test -n "$ac_maketemp"; then
2726 eval ac_cv_prog_make_${ac_make}_set=yes
2727else
2728 eval ac_cv_prog_make_${ac_make}_set=no
2729fi
2730rm -f conftest.make
2731fi
2732if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2733 echo "$as_me:$LINENO: result: yes" >&5
2734echo "${ECHO_T}yes" >&6
2735 SET_MAKE=
2736else
2737 echo "$as_me:$LINENO: result: no" >&5
2738echo "${ECHO_T}no" >&6
2739 SET_MAKE="MAKE=${MAKE-make}"
2740fi
2741
2742rm -rf .tst 2>/dev/null
2743mkdir .tst 2>/dev/null
2744if test -d .tst; then
2745 am__leading_dot=.
2746else
2747 am__leading_dot=_
2748fi
2749rmdir .tst 2>/dev/null
2750
2751DEPDIR="${am__leading_dot}deps"
2752
2753 ac_config_commands="$ac_config_commands depfiles"
2754
2755
2756am_make=${MAKE-make}
2757cat > confinc << 'END'
2758am__doit:
2759 @echo done
2760.PHONY: am__doit
2761END
2762# If we don't find an include directive, just comment out the code.
2763echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2764echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2765am__include="#"
2766am__quote=
2767_am_result=none
2768# First try GNU make style include.
2769echo "include confinc" > confmf
2770# We grep out `Entering directory' and `Leaving directory'
2771# messages which can occur if `w' ends up in MAKEFLAGS.
2772# In particular we don't look at `^make:' because GNU make might
2773# be invoked under some other name (usually "gmake"), in which
2774# case it prints its new name instead of `make'.
2775if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2776 am__include=include
2777 am__quote=
2778 _am_result=GNU
2779fi
2780# Now try BSD make style include.
2781if test "$am__include" = "#"; then
2782 echo '.include "confinc"' > confmf
2783 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2784 am__include=.include
2785 am__quote="\""
2786 _am_result=BSD
2787 fi
2788fi
2789
2790
2791echo "$as_me:$LINENO: result: $_am_result" >&5
2792echo "${ECHO_T}$_am_result" >&6
2793rm -f confinc confmf
2794
2795# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2796if test "${enable_dependency_tracking+set}" = set; then
2797 enableval="$enable_dependency_tracking"
2798
2799fi;
2800if test "x$enable_dependency_tracking" != xno; then
2801 am_depcomp="$ac_aux_dir/depcomp"
2802 AMDEPBACKSLASH='\'
2803fi
2804
2805
2806if test "x$enable_dependency_tracking" != xno; then
2807 AMDEP_TRUE=
2808 AMDEP_FALSE='#'
2809else
2810 AMDEP_TRUE='#'
2811 AMDEP_FALSE=
2812fi
2813
2814
2815
ab509236 2816# test to see if srcdir already configured
13b2be9c
DJ
2817if test "`cd $srcdir && pwd`" != "`pwd`" &&
2818 test -f $srcdir/config.status; then
2819 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2820echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2821 { (exit 1); exit 1; }; }
2822fi
2823
2824# test whether we have cygpath
2825if test -z "$CYGPATH_W"; then
2826 if (cygpath --version) >/dev/null 2>/dev/null; then
2827 CYGPATH_W='cygpath -w'
2828 else
2829 CYGPATH_W=echo
2830 fi
2831fi
2832
2833
2834# Define the identity of the package.
2835 PACKAGE=gas
2836 VERSION=${BFD_VERSION}
2837
2838
2839cat >>confdefs.h <<_ACEOF
2840#define PACKAGE "$PACKAGE"
2841_ACEOF
2842
2843
2844cat >>confdefs.h <<_ACEOF
2845#define VERSION "$VERSION"
2846_ACEOF
2847
2848# Some tools Automake needs.
2849
2850ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2851
2852
2853AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2854
2855
2856AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2857
2858
2859AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2860
2861
2862MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2863
13b2be9c
DJ
2864install_sh=${install_sh-"$am_aux_dir/install-sh"}
2865
2866# Installed binaries are usually stripped using `strip' when the user
2867# run `make install-strip'. However `strip' might not be the right
2868# tool to use in cross-compilation environments, therefore Automake
2869# will honor the `STRIP' environment variable to overrule this program.
2870if test "$cross_compiling" != no; then
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2873set dummy ${ac_tool_prefix}strip; ac_word=$2
2874echo "$as_me:$LINENO: checking for $ac_word" >&5
2875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876if test "${ac_cv_prog_STRIP+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878else
2879 if test -n "$STRIP"; then
2880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2881else
13b2be9c
DJ
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893done
2894done
2895
252b5132 2896fi
13b2be9c
DJ
2897fi
2898STRIP=$ac_cv_prog_STRIP
2899if test -n "$STRIP"; then
2900 echo "$as_me:$LINENO: result: $STRIP" >&5
2901echo "${ECHO_T}$STRIP" >&6
c8615825 2902else
13b2be9c
DJ
2903 echo "$as_me:$LINENO: result: no" >&5
2904echo "${ECHO_T}no" >&6
c8615825 2905fi
c8615825 2906
13b2be9c
DJ
2907fi
2908if test -z "$ac_cv_prog_STRIP"; then
2909 ac_ct_STRIP=$STRIP
2910 # Extract the first word of "strip", so it can be a program name with args.
2911set dummy strip; ac_word=$2
2912echo "$as_me:$LINENO: checking for $ac_word" >&5
2913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 2916else
13b2be9c
DJ
2917 if test -n "$ac_ct_STRIP"; then
2918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 2919else
13b2be9c
DJ
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_STRIP="strip"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931done
2932done
2933
2934 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 2935fi
252b5132 2936fi
13b2be9c
DJ
2937ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2938if test -n "$ac_ct_STRIP"; then
2939 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2940echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2941else
13b2be9c
DJ
2942 echo "$as_me:$LINENO: result: no" >&5
2943echo "${ECHO_T}no" >&6
252b5132
RH
2944fi
2945
13b2be9c
DJ
2946 STRIP=$ac_ct_STRIP
2947else
2948 STRIP="$ac_cv_prog_STRIP"
2949fi
d6d788bd 2950
252b5132 2951fi
13b2be9c 2952INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 2953
13b2be9c
DJ
2954# We need awk for the "check" target. The system "awk" is bad on
2955# some platforms.
8ea2b00f
AM
2956# Always define AMTAR for backward compatibility.
2957
2958AMTAR=${AMTAR-"${am_missing_run}tar"}
2959
2960am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2961
2962
252b5132 2963
d6d788bd 2964
13b2be9c 2965depcc="$CC" am_compiler_list=
d6d788bd 2966
13b2be9c
DJ
2967echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2968echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2969if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2971else
13b2be9c
DJ
2972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2973 # We make a subdir and do the tests there. Otherwise we can end up
2974 # making bogus files that we don't know about and never remove. For
2975 # instance it was reported that on HP-UX the gcc test will end up
2976 # making a dummy file named `D' -- because `-MD' means `put the output
2977 # in D'.
2978 mkdir conftest.dir
2979 # Copy depcomp to subdir because otherwise we won't find it if we're
2980 # using a relative directory.
2981 cp "$am_depcomp" conftest.dir
2982 cd conftest.dir
2983 # We will build objects and dependencies in a subdirectory because
2984 # it helps to detect inapplicable dependency modes. For instance
2985 # both Tru64's cc and ICC support -MD to output dependencies as a
2986 # side effect of compilation, but ICC will put the dependencies in
2987 # the current directory while Tru64 will put them in the object
2988 # directory.
2989 mkdir sub
252b5132 2990
13b2be9c
DJ
2991 am_cv_CC_dependencies_compiler_type=none
2992 if test "$am_compiler_list" = ""; then
2993 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2994 fi
2995 for depmode in $am_compiler_list; do
2996 # Setup a source with many dependencies, because some compilers
2997 # like to wrap large dependency lists on column 80 (with \), and
2998 # we should not choose a depcomp mode which is confused by this.
2999 #
3000 # We need to recreate these files for each test, as the compiler may
3001 # overwrite some of them when testing with obscure command lines.
3002 # This happens at least with the AIX C compiler.
3003 : > sub/conftest.c
3004 for i in 1 2 3 4 5 6; do
3005 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3006 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3007 # Solaris 8's {/usr,}/bin/sh.
3008 touch sub/conftst$i.h
13b2be9c
DJ
3009 done
3010 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3011
3012 case $depmode in
3013 nosideeffect)
3014 # after this tag, mechanisms are not by side-effect, so they'll
3015 # only be used when explicitly requested
3016 if test "x$enable_dependency_tracking" = xyes; then
3017 continue
3018 else
3019 break
3020 fi
3021 ;;
3022 none) break ;;
3023 esac
3024 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3025 # mode. It turns out that the SunPro C++ compiler does not properly
3026 # handle `-M -o', and we need to detect this.
3027 if depmode=$depmode \
3028 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3029 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3030 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3031 >/dev/null 2>conftest.err &&
3032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3033 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3035 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3036 # or remarks (even with -Werror). So we grep stderr for any message
3037 # that says an option was ignored or not supported.
3038 # When given -MP, icc 7.0 and 7.1 complain thusly:
3039 # icc: Command line warning: ignoring option '-M'; no argument required
3040 # The diagnosis changed in icc 8.0:
3041 # icc: Command line remark: option '-MP' not supported
3042 if (grep 'ignoring option' conftest.err ||
3043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3044 am_cv_CC_dependencies_compiler_type=$depmode
3045 break
3046 fi
3047 fi
3048 done
252b5132 3049
13b2be9c
DJ
3050 cd ..
3051 rm -rf conftest.dir
252b5132 3052else
13b2be9c 3053 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3054fi
3055
252b5132 3056fi
13b2be9c
DJ
3057echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3058echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3059CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3060
13b2be9c
DJ
3061
3062
3063if
3064 test "x$enable_dependency_tracking" != xno \
3065 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3066 am__fastdepCC_TRUE=
3067 am__fastdepCC_FALSE='#'
252b5132 3068else
13b2be9c
DJ
3069 am__fastdepCC_TRUE='#'
3070 am__fastdepCC_FALSE=
252b5132
RH
3071fi
3072
d6d788bd
L
3073
3074
13b2be9c 3075
252b5132
RH
3076# Check whether --enable-shared or --disable-shared was given.
3077if test "${enable_shared+set}" = set; then
3078 enableval="$enable_shared"
3079 p=${PACKAGE-default}
f9c19112 3080case $enableval in
252b5132
RH
3081yes) enable_shared=yes ;;
3082no) enable_shared=no ;;
3083*)
3084 enable_shared=no
3085 # Look at the argument we got. We use all the common list separators.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3087 for pkg in $enableval; do
3088 if test "X$pkg" = "X$p"; then
3089 enable_shared=yes
3090 fi
3091 done
3092 IFS="$ac_save_ifs"
3093 ;;
3094esac
3095else
3096 enable_shared=yes
13b2be9c 3097fi;
252b5132
RH
3098# Check whether --enable-static or --disable-static was given.
3099if test "${enable_static+set}" = set; then
3100 enableval="$enable_static"
3101 p=${PACKAGE-default}
f9c19112 3102case $enableval in
252b5132
RH
3103yes) enable_static=yes ;;
3104no) enable_static=no ;;
3105*)
3106 enable_static=no
3107 # Look at the argument we got. We use all the common list separators.
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3109 for pkg in $enableval; do
3110 if test "X$pkg" = "X$p"; then
3111 enable_static=yes
3112 fi
3113 done
3114 IFS="$ac_save_ifs"
3115 ;;
3116esac
3117else
3118 enable_static=yes
13b2be9c 3119fi;
bedf545c
ILT
3120# Check whether --enable-fast-install or --disable-fast-install was given.
3121if test "${enable_fast_install+set}" = set; then
3122 enableval="$enable_fast_install"
3123 p=${PACKAGE-default}
f9c19112 3124case $enableval in
bedf545c
ILT
3125yes) enable_fast_install=yes ;;
3126no) enable_fast_install=no ;;
3127*)
3128 enable_fast_install=no
3129 # Look at the argument we got. We use all the common list separators.
3130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3131 for pkg in $enableval; do
3132 if test "X$pkg" = "X$p"; then
3133 enable_fast_install=yes
3134 fi
3135 done
3136 IFS="$ac_save_ifs"
3137 ;;
3138esac
3139else
3140 enable_fast_install=yes
13b2be9c 3141fi;
87ccc1b0 3142
6840198f
NC
3143# Check whether --with-gnu-ld or --without-gnu-ld was given.
3144if test "${with_gnu_ld+set}" = set; then
3145 withval="$with_gnu_ld"
3146 test "$withval" = no || with_gnu_ld=yes
27b7e12d 3147else
6840198f 3148 with_gnu_ld=no
13b2be9c 3149fi;
6840198f
NC
3150ac_prog=ld
3151if test "$GCC" = yes; then
3152 # Check if gcc -print-prog-name=ld gives a path.
13b2be9c
DJ
3153 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3154echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6840198f
NC
3155 case $host in
3156 *-*-mingw*)
3157 # gcc leaves a trailing carriage return which upsets mingw
3158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3159 *)
3160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3161 esac
3162 case $ac_prog in
3163 # Accept absolute paths.
3164 [\\/]* | [A-Za-z]:[\\/]*)
3165 re_direlt='/[^/][^/]*/\.\./'
3166 # Canonicalize the path of ld
3167 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3169 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3170 done
3171 test -z "$LD" && LD="$ac_prog"
3172 ;;
3173 "")
3174 # If it fails, then pretend we aren't using GCC.
3175 ac_prog=ld
3176 ;;
3177 *)
3178 # If it is relative, then search for the first ld in PATH.
3179 with_gnu_ld=unknown
3180 ;;
3181 esac
3182elif test "$with_gnu_ld" = yes; then
13b2be9c
DJ
3183 echo "$as_me:$LINENO: checking for GNU ld" >&5
3184echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
27b7e12d 3185else
13b2be9c
DJ
3186 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3187echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
27b7e12d 3188fi
13b2be9c
DJ
3189if test "${lt_cv_path_LD+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3191else
3192 if test -z "$LD"; then
a74801ba 3193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3194 for ac_dir in $PATH; do
3195 test -z "$ac_dir" && ac_dir=.
a74801ba 3196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
f9c19112 3197 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3198 # Check to see if the program is GNU ld. I'd rather use --version,
3199 # but apparently some GNU ld's only accept -v.
3200 # Break only if it was the GNU/non-GNU ld that we prefer.
f9c19112 3201 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3202 test "$with_gnu_ld" != no && break
3203 else
bedf545c 3204 test "$with_gnu_ld" != yes && break
252b5132
RH
3205 fi
3206 fi
3207 done
3208 IFS="$ac_save_ifs"
3209else
f9c19112 3210 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3211fi
3212fi
3213
f9c19112 3214LD="$lt_cv_path_LD"
252b5132 3215if test -n "$LD"; then
13b2be9c
DJ
3216 echo "$as_me:$LINENO: result: $LD" >&5
3217echo "${ECHO_T}$LD" >&6
252b5132 3218else
13b2be9c
DJ
3219 echo "$as_me:$LINENO: result: no" >&5
3220echo "${ECHO_T}no" >&6
252b5132 3221fi
13b2be9c
DJ
3222test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3223echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3224 { (exit 1); exit 1; }; }
3225echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3226echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3227if test "${lt_cv_prog_gnu_ld+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3229else
3230 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3231if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
f9c19112 3232 lt_cv_prog_gnu_ld=yes
252b5132 3233else
f9c19112 3234 lt_cv_prog_gnu_ld=no
252b5132
RH
3235fi
3236fi
13b2be9c
DJ
3237echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3238echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
f9c19112 3239with_gnu_ld=$lt_cv_prog_gnu_ld
ac48eca1 3240
d6d788bd 3241
13b2be9c
DJ
3242echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3243echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3244if test "${lt_cv_ld_reload_flag+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3246else
3247 lt_cv_ld_reload_flag='-r'
3248fi
13b2be9c
DJ
3249echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3250echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3251reload_flag=$lt_cv_ld_reload_flag
3252test -n "$reload_flag" && reload_flag=" $reload_flag"
252b5132 3253
13b2be9c
DJ
3254echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3255echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3256if test "${lt_cv_path_NM+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3258else
3259 if test -n "$NM"; then
3260 # Let the user override the test.
f9c19112 3261 lt_cv_path_NM="$NM"
252b5132 3262else
a74801ba 3263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
bedf545c 3264 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3265 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3266 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3267 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3268 # Check to see if the nm accepts a BSD-compat flag.
3269 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3270 # nm: unknown option "B" ignored
58cccadb
AO
3271 # Tru64's nm complains that /dev/null is an invalid object file
3272 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
f9c19112 3273 lt_cv_path_NM="$tmp_nm -B"
bedf545c 3274 break
ac48eca1 3275 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
f9c19112 3276 lt_cv_path_NM="$tmp_nm -p"
bedf545c 3277 break
252b5132 3278 else
f9c19112 3279 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
bedf545c 3280 continue # so that we can try to find one that supports BSD flags
252b5132 3281 fi
252b5132
RH
3282 fi
3283 done
3284 IFS="$ac_save_ifs"
f9c19112 3285 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3286fi
3287fi
3288
f9c19112 3289NM="$lt_cv_path_NM"
13b2be9c
DJ
3290echo "$as_me:$LINENO: result: $NM" >&5
3291echo "${ECHO_T}$NM" >&6
252b5132 3292
13b2be9c
DJ
3293echo "$as_me:$LINENO: checking whether ln -s works" >&5
3294echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3295LN_S=$as_ln_s
3296if test "$LN_S" = "ln -s"; then
3297 echo "$as_me:$LINENO: result: yes" >&5
3298echo "${ECHO_T}yes" >&6
252b5132 3299else
13b2be9c
DJ
3300 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3301echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3302fi
3303
13b2be9c
DJ
3304echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3305echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3306if test "${lt_cv_deplibs_check_method+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3308else
d64552c5 3309 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3310lt_cv_file_magic_test_file=
3311lt_cv_deplibs_check_method='unknown'
3312# Need to set the preceding variable on all platforms that support
3313# interlibrary dependencies.
3314# 'none' -- dependencies not supported.
3315# `unknown' -- same as none, but documents that we really don't know.
3316# 'pass_all' -- all dependencies passed with no checks.
3317# 'test_compile' -- check by making test program.
3318# 'file_magic [regex]' -- check by looking for files in library path
3319# which responds to the $file_magic_cmd with a given egrep regex.
3320# If you have `file' or equivalent on your system and you're not sure
3321# whether `pass_all' will *always* work, you probably want this one.
3322
f9c19112
HPN
3323case $host_os in
3324aix*)
ac48eca1
AO
3325 lt_cv_deplibs_check_method=pass_all
3326 ;;
3327
3328beos*)
3329 lt_cv_deplibs_check_method=pass_all
3330 ;;
3331
3332bsdi4*)
f9c19112
HPN
3333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3334 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3335 lt_cv_file_magic_test_file=/shlib/libc.so
3336 ;;
3337
d64552c5 3338cygwin* | mingw* |pw32*)
ac48eca1 3339 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3340 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3341 ;;
3342
f9c19112
HPN
3343darwin* | rhapsody*)
3344 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
6840198f
NC
3345 lt_cv_file_magic_cmd='/usr/bin/file -L'
3346 case "$host_os" in
3347 rhapsody* | darwin1.012)
3348 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3349 ;;
3350 *) # Darwin 1.3 on
3351 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3352 ;;
3353 esac
f9c19112
HPN
3354 ;;
3355
4101eec8 3356freebsd* | kfreebsd*-gnu)
ac48eca1 3357 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
f9c19112 3358 case $host_cpu in
ac48eca1 3359 i*86 )
58cccadb
AO
3360 # Not sure whether the presence of OpenBSD here was a mistake.
3361 # Let's accept both of them until this is cleared up.
f9c19112
HPN
3362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3363 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3365 ;;
3366 esac
3367 else
3368 lt_cv_deplibs_check_method=pass_all
3369 fi
3370 ;;
3371
3372gnu*)
3373 lt_cv_deplibs_check_method=pass_all
3374 ;;
3375
f9c19112 3376hpux10.20*|hpux11*)
4867be41
DJ
3377 case $host_cpu in
3378 hppa*)
3379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3380 lt_cv_file_magic_cmd=/usr/bin/file
3381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3382 ;;
3383 ia64*)
3384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3385 lt_cv_file_magic_cmd=/usr/bin/file
3386 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3387 ;;
3388 esac
ac48eca1
AO
3389 ;;
3390
3391irix5* | irix6*)
f9c19112 3392 case $host_os in
ac48eca1
AO
3393 irix5*)
3394 # this will be overridden with pass_all, but let us keep it just in case
3395 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3396 ;;
3397 *)
f9c19112 3398 case $LD in
ac48eca1
AO
3399 *-32|*"-32 ") libmagic=32-bit;;
3400 *-n32|*"-n32 ") libmagic=N32;;
3401 *-64|*"-64 ") libmagic=64-bit;;
3402 *) libmagic=never-match;;
3403 esac
3404 # this will be overridden with pass_all, but let us keep it just in case
f9c19112
HPN
3405 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3406 ;;
ac48eca1
AO
3407 esac
3408 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3409 lt_cv_deplibs_check_method=pass_all
3410 ;;
3411
3412# This must be Linux ELF.
58cccadb 3413linux-gnu*)
f9c19112 3414 case $host_cpu in
dbeba5e5 3415 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3416 lt_cv_deplibs_check_method=pass_all ;;
3417 *)
3418 # glibc up to 2.1.1 does not perform some relocations on ARM
f9c19112
HPN
3419 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3420 esac
ac48eca1
AO
3421 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3422 ;;
3423
4101eec8 3424netbsd* | knetbsd*-gnu)
f9c19112 3425 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6840198f 3426 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3427 else
6840198f 3428 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3429 fi
f9c19112
HPN
3430 ;;
3431
3432newsos6)
3433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3434 lt_cv_file_magic_cmd=/usr/bin/file
3435 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3436 ;;
3437
3438osf3* | osf4* | osf5*)
3439 # this will be overridden with pass_all, but let us keep it just in case
3440 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3441 lt_cv_file_magic_test_file=/shlib/libc.so
3442 lt_cv_deplibs_check_method=pass_all
3443 ;;
3444
3445sco3.2v5*)
3446 lt_cv_deplibs_check_method=pass_all
3447 ;;
3448
3449solaris*)
3450 lt_cv_deplibs_check_method=pass_all
3451 lt_cv_file_magic_test_file=/lib/libc.so
3452 ;;
3453
6be7c12c
AO
3454sysv5uw[78]* | sysv4*uw2*)
3455 lt_cv_deplibs_check_method=pass_all
3456 ;;
3457
ac48eca1 3458sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
f9c19112 3459 case $host_vendor in
ac48eca1
AO
3460 ncr)
3461 lt_cv_deplibs_check_method=pass_all
3462 ;;
3463 motorola)
f9c19112
HPN
3464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3465 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3466 ;;
3467 esac
3468 ;;
3469esac
3470
3471fi
13b2be9c
DJ
3472echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3473echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3474file_magic_cmd=$lt_cv_file_magic_cmd
3475deplibs_check_method=$lt_cv_deplibs_check_method
3476
c8615825 3477
c8615825 3478
c8615825 3479
ac48eca1
AO
3480# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3481
3482# Only perform the check for file, if the check method requires it
f9c19112 3483case $deplibs_check_method in
ac48eca1 3484file_magic*)
d64552c5 3485 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13b2be9c
DJ
3486 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3487echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3488if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3490else
f9c19112 3491 case $MAGIC_CMD in
ac48eca1 3492 /*)
d64552c5 3493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3494 ;;
3495 ?:/*)
d64552c5 3496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3497 ;;
3498 *)
d64552c5 3499 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3501 ac_dummy="/usr/bin:$PATH"
3502 for ac_dir in $ac_dummy; do
3503 test -z "$ac_dir" && ac_dir=.
3504 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3505 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3506 if test -n "$file_magic_test_file"; then
f9c19112 3507 case $deplibs_check_method in
ac48eca1
AO
3508 "file_magic "*)
3509 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3512 egrep "$file_magic_regex" > /dev/null; then
3513 :
3514 else
3515 cat <<EOF 1>&2
3516
3517*** Warning: the command libtool uses to detect shared libraries,
3518*** $file_magic_cmd, produces output that libtool cannot recognize.
3519*** The result is that libtool may fail to recognize shared libraries
3520*** as such. This will affect the creation of libtool libraries that
3521*** depend on shared libraries, but programs linked with such libtool
3522*** libraries will work regardless of this problem. Nevertheless, you
3523*** may want to report the problem to your system manager and/or to
3524*** bug-libtool@gnu.org
3525
3526EOF
3527 fi ;;
3528 esac
3529 fi
3530 break
3531 fi
3532 done
3533 IFS="$ac_save_ifs"
d64552c5 3534 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3535 ;;
3536esac
3537fi
3538
d64552c5
AO
3539MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3540if test -n "$MAGIC_CMD"; then
13b2be9c
DJ
3541 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3542echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3543else
13b2be9c
DJ
3544 echo "$as_me:$LINENO: result: no" >&5
3545echo "${ECHO_T}no" >&6
ac48eca1
AO
3546fi
3547
d64552c5 3548if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3549 if test -n "$ac_tool_prefix"; then
13b2be9c
DJ
3550 echo "$as_me:$LINENO: checking for file" >&5
3551echo $ECHO_N "checking for file... $ECHO_C" >&6
3552if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3554else
f9c19112 3555 case $MAGIC_CMD in
ac48eca1 3556 /*)
d64552c5 3557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3558 ;;
3559 ?:/*)
d64552c5 3560 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3561 ;;
3562 *)
d64552c5 3563 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3565 ac_dummy="/usr/bin:$PATH"
3566 for ac_dir in $ac_dummy; do
3567 test -z "$ac_dir" && ac_dir=.
3568 if test -f $ac_dir/file; then
d64552c5 3569 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3570 if test -n "$file_magic_test_file"; then
f9c19112 3571 case $deplibs_check_method in
ac48eca1
AO
3572 "file_magic "*)
3573 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3576 egrep "$file_magic_regex" > /dev/null; then
3577 :
3578 else
3579 cat <<EOF 1>&2
3580
3581*** Warning: the command libtool uses to detect shared libraries,
3582*** $file_magic_cmd, produces output that libtool cannot recognize.
3583*** The result is that libtool may fail to recognize shared libraries
3584*** as such. This will affect the creation of libtool libraries that
3585*** depend on shared libraries, but programs linked with such libtool
3586*** libraries will work regardless of this problem. Nevertheless, you
3587*** may want to report the problem to your system manager and/or to
3588*** bug-libtool@gnu.org
3589
3590EOF
3591 fi ;;
3592 esac
3593 fi
3594 break
3595 fi
3596 done
3597 IFS="$ac_save_ifs"
d64552c5 3598 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3599 ;;
3600esac
3601fi
3602
d64552c5
AO
3603MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3604if test -n "$MAGIC_CMD"; then
13b2be9c
DJ
3605 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3606echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3607else
13b2be9c
DJ
3608 echo "$as_me:$LINENO: result: no" >&5
3609echo "${ECHO_T}no" >&6
ac48eca1
AO
3610fi
3611
3612 else
d64552c5 3613 MAGIC_CMD=:
ac48eca1
AO
3614 fi
3615fi
3616
3617 fi
3618 ;;
3619esac
3620
13b2be9c
DJ
3621if test -n "$ac_tool_prefix"; then
3622 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3623set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13b2be9c
DJ
3624echo "$as_me:$LINENO: checking for $ac_word" >&5
3625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3626if test "${ac_cv_prog_RANLIB+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3628else
3629 if test -n "$RANLIB"; then
3630 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3631else
13b2be9c
DJ
3632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH
3634do
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 break 2
3642 fi
3643done
3644done
3645
ac48eca1
AO
3646fi
3647fi
13b2be9c 3648RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3649if test -n "$RANLIB"; then
13b2be9c
DJ
3650 echo "$as_me:$LINENO: result: $RANLIB" >&5
3651echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3652else
13b2be9c
DJ
3653 echo "$as_me:$LINENO: result: no" >&5
3654echo "${ECHO_T}no" >&6
ac48eca1
AO
3655fi
3656
13b2be9c 3657fi
ac48eca1 3658if test -z "$ac_cv_prog_RANLIB"; then
13b2be9c 3659 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3660 # Extract the first word of "ranlib", so it can be a program name with args.
3661set dummy ranlib; ac_word=$2
13b2be9c
DJ
3662echo "$as_me:$LINENO: checking for $ac_word" >&5
3663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3664if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 3666else
13b2be9c
DJ
3667 if test -n "$ac_ct_RANLIB"; then
3668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d6d788bd 3669else
13b2be9c
DJ
3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH
3672do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_prog_ac_ct_RANLIB="ranlib"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681done
3682done
3683
3684 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3685fi
3686fi
13b2be9c
DJ
3687ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3688if test -n "$ac_ct_RANLIB"; then
3689 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3690echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3691else
13b2be9c
DJ
3692 echo "$as_me:$LINENO: result: no" >&5
3693echo "${ECHO_T}no" >&6
ac48eca1
AO
3694fi
3695
13b2be9c 3696 RANLIB=$ac_ct_RANLIB
ac48eca1 3697else
13b2be9c 3698 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3699fi
3700
13b2be9c
DJ
3701if test -n "$ac_tool_prefix"; then
3702 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3703set dummy ${ac_tool_prefix}strip; ac_word=$2
13b2be9c
DJ
3704echo "$as_me:$LINENO: checking for $ac_word" >&5
3705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3706if test "${ac_cv_prog_STRIP+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3708else
3709 if test -n "$STRIP"; then
3710 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3711else
13b2be9c
DJ
3712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713for as_dir in $PATH
3714do
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3719 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 break 2
3722 fi
3723done
3724done
3725
ac48eca1
AO
3726fi
3727fi
13b2be9c 3728STRIP=$ac_cv_prog_STRIP
ac48eca1 3729if test -n "$STRIP"; then
13b2be9c
DJ
3730 echo "$as_me:$LINENO: result: $STRIP" >&5
3731echo "${ECHO_T}$STRIP" >&6
ac48eca1 3732else
13b2be9c
DJ
3733 echo "$as_me:$LINENO: result: no" >&5
3734echo "${ECHO_T}no" >&6
ac48eca1
AO
3735fi
3736
13b2be9c 3737fi
ac48eca1 3738if test -z "$ac_cv_prog_STRIP"; then
13b2be9c 3739 ac_ct_STRIP=$STRIP
ac48eca1
AO
3740 # Extract the first word of "strip", so it can be a program name with args.
3741set dummy strip; ac_word=$2
13b2be9c
DJ
3742echo "$as_me:$LINENO: checking for $ac_word" >&5
3743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3746else
13b2be9c
DJ
3747 if test -n "$ac_ct_STRIP"; then
3748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3749else
13b2be9c
DJ
3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751for as_dir in $PATH
3752do
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_ac_ct_STRIP="strip"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3760 fi
3761done
3762done
3763
3764 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
d6d788bd
L
3765fi
3766fi
13b2be9c
DJ
3767ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3768if test -n "$ac_ct_STRIP"; then
3769 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3770echo "${ECHO_T}$ac_ct_STRIP" >&6
d6d788bd 3771else
13b2be9c
DJ
3772 echo "$as_me:$LINENO: result: no" >&5
3773echo "${ECHO_T}no" >&6
d6d788bd
L
3774fi
3775
13b2be9c 3776 STRIP=$ac_ct_STRIP
d6d788bd 3777else
13b2be9c 3778 STRIP="$ac_cv_prog_STRIP"
d6d788bd
L
3779fi
3780
252b5132 3781
252b5132 3782# Check for any special flags to pass to ltconfig.
bedf545c 3783libtool_flags="--cache-file=$cache_file"
252b5132
RH
3784test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3785test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
bedf545c 3786test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
f9c19112
HPN
3787test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3788test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3789
d6d788bd 3790
a74801ba
ILT
3791# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3792if test "${enable_libtool_lock+set}" = set; then
3793 enableval="$enable_libtool_lock"
a74801ba 3794
13b2be9c 3795fi;
a74801ba
ILT
3796test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3797test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3798
13b2be9c 3799
ac48eca1
AO
3800# Check whether --with-pic or --without-pic was given.
3801if test "${with_pic+set}" = set; then
3802 withval="$with_pic"
3803 pic_mode="$withval"
3804else
3805 pic_mode=default
13b2be9c 3806fi;
ac48eca1
AO
3807test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3808test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3809
252b5132
RH
3810# Some flags need to be propagated to the compiler or linker for good
3811# libtool support.
f9c19112 3812case $host in
252b5132
RH
3813*-*-irix6*)
3814 # Find out which ABI we are using.
1ad12f97 3815 echo '#line 3815 "configure"' > conftest.$ac_ext
13b2be9c
DJ
3816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; then
e0001a05
NC
3821 if test "$lt_cv_prog_gnu_ld" = yes; then
3822 case `/usr/bin/file conftest.$ac_objext` in
3823 *32-bit*)
3824 LD="${LD-ld} -melf32bsmip"
3825 ;;
3826 *N32*)
3827 LD="${LD-ld} -melf32bmipn32"
3828 ;;
3829 *64-bit*)
3830 LD="${LD-ld} -melf64bmip"
3831 ;;
3832 esac
3833 else
f9c19112 3834 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3835 *32-bit*)
3836 LD="${LD-ld} -32"
3837 ;;
3838 *N32*)
3839 LD="${LD-ld} -n32"
3840 ;;
3841 *64-bit*)
3842 LD="${LD-ld} -64"
3843 ;;
3844 esac
e0001a05 3845 fi
252b5132
RH
3846 fi
3847 rm -rf conftest*
3848 ;;
3849
4867be41
DJ
3850ia64-*-hpux*)
3851 # Find out which ABI we are using.
3852 echo 'int i;' > conftest.$ac_ext
13b2be9c
DJ
3853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3854 (eval $ac_compile) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; then
4867be41
DJ
3858 case "`/usr/bin/file conftest.o`" in
3859 *ELF-32*)
3860 HPUX_IA64_MODE="32"
3861 ;;
3862 *ELF-64*)
3863 HPUX_IA64_MODE="64"
3864 ;;
3865 esac
3866 fi
3867 rm -rf conftest*
3868 ;;
3869
252b5132
RH
3870*-*-sco3.2v5*)
3871 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
bedf545c 3872 SAVE_CFLAGS="$CFLAGS"
252b5132 3873 CFLAGS="$CFLAGS -belf"
13b2be9c
DJ
3874 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3875echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3876if test "${lt_cv_cc_needs_belf+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
bedf545c 3878else
13b2be9c
DJ
3879
3880
ac48eca1 3881 ac_ext=c
ac48eca1 3882ac_cpp='$CPP $CPPFLAGS'
13b2be9c
DJ
3883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886
3887 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
3888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */
bedf545c 3893
13b2be9c
DJ
3894int
3895main ()
3896{
6840198f 3897
13b2be9c
DJ
3898 ;
3899 return 0;
3900}
3901_ACEOF
3902rm -f conftest.$ac_objext conftest$ac_exeext
3903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 3904 (eval $ac_link) 2>conftest.er1
13b2be9c 3905 ac_status=$?
ab509236
L
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
13b2be9c
DJ
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
1ad12f97
NC
3911 { ac_try='test -z "$ac_c_werror_flag"
3912 || test ! -s conftest.err'
ab509236
L
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
bedf545c
ILT
3924 lt_cv_cc_needs_belf=yes
3925else
13b2be9c
DJ
3926 echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
3929lt_cv_cc_needs_belf=no
bedf545c 3930fi
ab509236
L
3931rm -f conftest.err conftest.$ac_objext \
3932 conftest$ac_exeext conftest.$ac_ext
ac48eca1 3933 ac_ext=c
ac48eca1 3934ac_cpp='$CPP $CPPFLAGS'
13b2be9c
DJ
3935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3938
bedf545c 3939fi
13b2be9c
DJ
3940echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3941echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
bedf545c
ILT
3942 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3943 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3944 CFLAGS="$SAVE_CFLAGS"
3945 fi
252b5132
RH
3946 ;;
3947
d6d788bd 3948
252b5132
RH
3949esac
3950
d6d788bd 3951
bedf545c 3952# Save cache, so that ltconfig can load it
13b2be9c 3953cat >confcache <<\_ACEOF
bedf545c
ILT
3954# This file is a shell script that caches the results of configure
3955# tests run on this system so they can be shared between configure
13b2be9c
DJ
3956# scripts and configure runs, see configure's option --config-cache.
3957# It is not useful on other systems. If it contains results you don't
3958# want to keep, you may remove or edit it.
bedf545c 3959#
13b2be9c
DJ
3960# config.status only pays attention to the cache file if you give it
3961# the --recheck option to rerun configure.
bedf545c 3962#
13b2be9c
DJ
3963# `ac_cv_env_foo' variables (set or unset) will be overridden when
3964# loading this file, other *unset* `ac_cv_foo' will be assigned the
3965# following values.
3966
3967_ACEOF
3968
bedf545c 3969# The following way of writing the cache mishandles newlines in values,
9b2b7d69
MM
3970# but we know of no workaround that is simple, portable, and efficient.
3971# So, don't put newlines in cache variables' values.
3972# Ultrix sh set writes to stderr and can't be redirected directly,
3973# and sets the high bit in the cache file unless we assign to the vars.
13b2be9c
DJ
3974{
3975 (set) 2>&1 |
3976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3977 *ac_space=\ *)
3978 # `set' does not quote correctly, so add quotes (double-quote
3979 # substitution turns \\\\ into \\, and sed turns \\ into \).
3980 sed -n \
ab509236
L
3981 "s/'/'\\\\''/g;
3982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
3983 ;;
3984 *)
3985 # `set' quotes correctly as required by POSIX, so do not add quotes.
3986 sed -n \
ab509236 3987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
3988 ;;
3989 esac;
3990} |
3991 sed '
3992 t clear
3993 : clear
3994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3995 t end
3996 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3997 : end' >>confcache
3998if diff $cache_file confcache >/dev/null 2>&1; then :; else
bedf545c 3999 if test -w $cache_file; then
13b2be9c
DJ
4000 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4001 cat confcache >$cache_file
bedf545c
ILT
4002 else
4003 echo "not updating unwritable cache $cache_file"
4004 fi
4005fi
4006rm -f confcache
4007
252b5132 4008# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4009AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4010MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4011LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4012AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4013objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4014deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4015${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4016$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
13b2be9c
DJ
4017|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4018echo "$as_me: error: libtool configure failed" >&2;}
4019 { (exit 1); exit 1; }; }
252b5132 4020
bedf545c
ILT
4021# Reload cache, that may have been modified by ltconfig
4022if test -r "$cache_file"; then
13b2be9c
DJ
4023 # Some versions of bash will fail to source /dev/null (special
4024 # files actually), so we avoid doing that.
4025 if test -f "$cache_file"; then
4026 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4027echo "$as_me: loading cache $cache_file" >&6;}
4028 case $cache_file in
4029 [\\/]* | ?:[\\/]* ) . $cache_file;;
4030 *) . ./$cache_file;;
4031 esac
4032 fi
bedf545c 4033else
13b2be9c
DJ
4034 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4035echo "$as_me: creating cache $cache_file" >&6;}
4036 >$cache_file
bedf545c
ILT
4037fi
4038
d6d788bd 4039
bedf545c 4040# This can be used to rebuild libtool when needed
ac48eca1 4041LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
bedf545c
ILT
4042
4043# Always use our own libtool.
4044LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4045
252b5132
RH
4046# Redirect the config.log output again, so that the ltconfig log is not
4047# clobbered by the next message.
4048exec 5>>./config.log
4049
d6d788bd 4050
13b2be9c
DJ
4051
4052
4053
4054
d6d788bd 4055
252b5132
RH
4056user_bfd_gas=
4057# Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
4058if test "${enable_bfd_assembler+set}" = set; then
4059 enableval="$enable_bfd_assembler"
4060 case "${enableval}" in
4061 yes) need_bfd=yes user_bfd_gas=yes ;;
4062 no) user_bfd_gas=no ;;
13b2be9c
DJ
4063 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
4064echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
4065 { (exit 1); exit 1; }; } ;;
252b5132 4066esac
13b2be9c 4067fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4068if test "${enable_targets+set}" = set; then
4069 enableval="$enable_targets"
4070 case "${enableval}" in
13b2be9c
DJ
4071 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4072echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4073 { (exit 1); exit 1; }; }
252b5132
RH
4074 ;;
4075 no) enable_targets= ;;
4076 *) enable_targets=$enableval ;;
4077esac
13b2be9c 4078fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4079if test "${enable_commonbfdlib+set}" = set; then
4080 enableval="$enable_commonbfdlib"
4081 case "${enableval}" in
4082 yes) commonbfdlib=true ;;
4083 no) commonbfdlib=false ;;
13b2be9c
DJ
4084 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4085echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4086 { (exit 1); exit 1; }; } ;;
252b5132 4087esac
13b2be9c 4088fi;
252b5132
RH
4089using_cgen=no
4090
9e9b66a9
AM
4091
4092WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4093
569acd2c
NC
4094# Check whether --enable-werror or --disable-werror was given.
4095if test "${enable_werror+set}" = set; then
4096 enableval="$enable_werror"
1ad12f97
NC
4097 case "${enableval}" in
4098 yes | y) ERROR_ON_WARNING="yes" ;;
4099 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4100 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4101echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4102 { (exit 1); exit 1; }; } ;;
4103 esac
4104fi;
4105
9e9b66a9
AM
4106# Enable -Werror by default when using gcc
4107if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4108 ERROR_ON_WARNING=yes
4109fi
4110
4111NO_WERROR=
4112if test "${ERROR_ON_WARNING}" = yes ; then
4113 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4114 NO_WERROR="-Wno-error"
1ad12f97
NC
4115fi
4116
a2d91340
AC
4117# Check whether --enable-build-warnings or --disable-build-warnings was given.
4118if test "${enable_build_warnings+set}" = set; then
4119 enableval="$enable_build_warnings"
4120 case "${enableval}" in
4121 yes) ;;
9e9b66a9 4122 no) WARN_CFLAGS="-w";;
a2d91340 4123 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9e9b66a9 4124 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
a2d91340 4125 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9e9b66a9
AM
4126 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4127 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4128esac
9e9b66a9
AM
4129fi;
4130
4131if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4132 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4133fi
4134
d6d788bd 4135
9e9b66a9
AM
4136
4137
4138
252b5132 4139# Generate a header file
13b2be9c 4140 ac_config_headers="$ac_config_headers config.h:config.in"
d6d788bd 4141
252b5132 4142
76a27922
ILT
4143# If we are on a DOS filesystem, we must use gdb.ini rather than
4144# .gdbinit.
76a27922 4145case "${host}" in
591d4689 4146 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
76a27922 4147 GDBINIT="gdb.ini"
13b2be9c
DJ
4148 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
4149
4150 ;;
4151 *)
4152 GDBINIT=".gdbinit"
4153 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
4154
76a27922
ILT
4155 ;;
4156esac
4157
d6d788bd 4158
44f2f9d2
AM
4159#We need this for the host. BOUT header is in host order.
4160echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4161echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4162if test "${ac_cv_c_bigendian+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164else
4165 # See if sys/param.h defines the BYTE_ORDER macro.
4166cat >conftest.$ac_ext <<_ACEOF
4167/* confdefs.h. */
4168_ACEOF
4169cat confdefs.h >>conftest.$ac_ext
4170cat >>conftest.$ac_ext <<_ACEOF
4171/* end confdefs.h. */
4172#include <sys/types.h>
4173#include <sys/param.h>
4174
4175int
4176main ()
4177{
4178#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4179 bogus endian macros
4180#endif
4181
4182 ;
4183 return 0;
4184}
4185_ACEOF
4186rm -f conftest.$ac_objext
4187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188 (eval $ac_compile) 2>conftest.er1
4189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
1ad12f97
NC
4195 { ac_try='test -z "$ac_c_werror_flag"
4196 || test ! -s conftest.err'
44f2f9d2
AM
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 # It does; now see whether it defined to BIG_ENDIAN or not.
4209cat >conftest.$ac_ext <<_ACEOF
4210/* confdefs.h. */
4211_ACEOF
4212cat confdefs.h >>conftest.$ac_ext
4213cat >>conftest.$ac_ext <<_ACEOF
4214/* end confdefs.h. */
4215#include <sys/types.h>
4216#include <sys/param.h>
4217
4218int
4219main ()
4220{
4221#if BYTE_ORDER != BIG_ENDIAN
4222 not big endian
4223#endif
4224
4225 ;
4226 return 0;
4227}
4228_ACEOF
4229rm -f conftest.$ac_objext
4230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231 (eval $ac_compile) 2>conftest.er1
4232 ac_status=$?
4233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } &&
1ad12f97
NC
4238 { ac_try='test -z "$ac_c_werror_flag"
4239 || test ! -s conftest.err'
44f2f9d2
AM
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 (eval $ac_try) 2>&5
4248 ac_status=$?
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 ac_cv_c_bigendian=yes
4252else
4253 echo "$as_me: failed program was:" >&5
4254sed 's/^/| /' conftest.$ac_ext >&5
4255
4256ac_cv_c_bigendian=no
4257fi
4258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4259else
4260 echo "$as_me: failed program was:" >&5
4261sed 's/^/| /' conftest.$ac_ext >&5
4262
4263# It does not; compile a test program.
4264if test "$cross_compiling" = yes; then
4265 # try to guess the endianness by grepping values into an object file
4266 ac_cv_c_bigendian=unknown
4267 cat >conftest.$ac_ext <<_ACEOF
4268/* confdefs.h. */
4269_ACEOF
4270cat confdefs.h >>conftest.$ac_ext
4271cat >>conftest.$ac_ext <<_ACEOF
4272/* end confdefs.h. */
4273short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4274short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4275void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4276short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4277short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4278void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4279int
4280main ()
4281{
4282 _ascii (); _ebcdic ();
4283 ;
4284 return 0;
4285}
4286_ACEOF
4287rm -f conftest.$ac_objext
4288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
1ad12f97
NC
4296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
44f2f9d2
AM
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest.$ac_objext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 (eval $ac_try) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4310 ac_cv_c_bigendian=yes
4311fi
4312if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4313 if test "$ac_cv_c_bigendian" = unknown; then
4314 ac_cv_c_bigendian=no
4315 else
4316 # finding both strings is unlikely to happen, but who knows?
4317 ac_cv_c_bigendian=unknown
4318 fi
4319fi
4320else
4321 echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
4324fi
4325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4326else
4327 cat >conftest.$ac_ext <<_ACEOF
4328/* confdefs.h. */
4329_ACEOF
4330cat confdefs.h >>conftest.$ac_ext
4331cat >>conftest.$ac_ext <<_ACEOF
4332/* end confdefs.h. */
4333int
4334main ()
4335{
4336 /* Are we little or big endian? From Harbison&Steele. */
4337 union
4338 {
4339 long l;
4340 char c[sizeof (long)];
4341 } u;
4342 u.l = 1;
4343 exit (u.c[sizeof (long) - 1] == 1);
4344}
4345_ACEOF
4346rm -f conftest$ac_exeext
4347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4348 (eval $ac_link) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 ac_cv_c_bigendian=no
4358else
4359 echo "$as_me: program exited with status $ac_status" >&5
4360echo "$as_me: failed program was:" >&5
4361sed 's/^/| /' conftest.$ac_ext >&5
4362
4363( exit $ac_status )
4364ac_cv_c_bigendian=yes
4365fi
4366rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4367fi
4368fi
4369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4370fi
4371echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4372echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4373case $ac_cv_c_bigendian in
4374 yes)
4375
4376cat >>confdefs.h <<\_ACEOF
4377#define WORDS_BIGENDIAN 1
4378_ACEOF
4379 ;;
4380 no)
4381 ;;
4382 *)
4383 { { echo "$as_me:$LINENO: error: unknown endianness
4384presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4385echo "$as_me: error: unknown endianness
4386presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4387 { (exit 1); exit 1; }; } ;;
4388esac
4389
4390
252b5132
RH
4391te_file=generic
4392
4393# Makefile target for installing gas in $(tooldir)/bin.
4394install_tooldir=install-exec-tooldir
4395
4396canon_targets=""
15886821 4397all_targets=no
252b5132
RH
4398if test -n "$enable_targets" ; then
4399 for t in `echo $enable_targets | sed 's/,/ /g'`; do
15886821
L
4400 if test $t = "all"; then
4401 all_targets=yes
4402 continue
4403 fi
6d83c84b 4404 result=`$ac_config_sub $t 2>/dev/null`
252b5132
RH
4405 if test -n "$result" ; then
4406 canon_targets="$canon_targets $result"
4407# else
4408# # Permit "all", etc. We don't support it yet though.
4409# canon_targets="$canon_targets $t"
4410 fi
4411 done
4412 _gas_uniq_list="$canon_targets"
4413_gas_uniq_newlist=""
4414for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4415 case $_gas_uniq_i in
4416 _gas_uniq_dummy) ;;
4417 *) case " $_gas_uniq_newlist " in
4418 *" $_gas_uniq_i "*) ;;
4419 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4420 esac ;;
4421 esac
4422done
4423canon_targets=$_gas_uniq_newlist
4424
4425fi
4426
4427emulations=""
4428
4429for this_target in $target $canon_targets ; do
4430
14ee9f48
ILT
4431 targ=${this_target}
4432 . ${srcdir}/configure.tgt
4433
4434 case ${target_cpu} in
4435 crisv32)
ae57792d
HPN
4436
4437cat >>confdefs.h <<_ACEOF
4438#define DEFAULT_CRIS_ARCH $arch
4439_ACEOF
4440
14ee9f48 4441 ;;
252b5132
RH
4442 esac
4443
4444 if test ${this_target} = $target ; then
4445 target_cpu_type=${cpu_type}
4446 elif test ${target_cpu_type} != ${cpu_type} ; then
4447 continue
4448 fi
4449
14ee9f48 4450 generic_target=${cpu_type}-${target_vendor}-${target_os}
252b5132 4451 case ${generic_target} in
14ee9f48
ILT
4452 i386-*-sco3.2v5*)
4453 if test ${this_target} = $target; then
13b2be9c
DJ
4454
4455cat >>confdefs.h <<\_ACEOF
252b5132 4456#define SCO_ELF 1
13b2be9c 4457_ACEOF
252b5132 4458
14ee9f48
ILT
4459 fi
4460 ;;
4461
79500683
AM
4462 i386-*-msdosdjgpp* \
4463 | i386-*-go32* \
14ee9f48 4464 | i386-go32-rtems*)
13b2be9c
DJ
4465
4466cat >>confdefs.h <<\_ACEOF
56385375 4467#define STRICTCOFF 1
13b2be9c 4468_ACEOF
14ee9f48
ILT
4469
4470 ;;
4471
4472 i860-*-*)
4473 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4474echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
4475 ;;
4476
4477 mips-sony-bsd*)
4478 ;;
79500683 4479 mips-*-bsd*)
14ee9f48 4480 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
13b2be9c 4481echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
14ee9f48
ILT
4482 { (exit 1); exit 1; }; }
4483 ;;
4484
4485 ppc-*-aix5.*)
f8fc3443
NC
4486
4487cat >>confdefs.h <<\_ACEOF
4488#define AIX_WEAK_SUPPORT 1
4489_ACEOF
4490
14ee9f48 4491 ;;
ed84e695 4492 ppc-*-linux-*)
14ee9f48
ILT
4493 case "$endian" in
4494 big) ;;
4495 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
13b2be9c
DJ
4496echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4497 { (exit 1); exit 1; }; } ;;
14ee9f48
ILT
4498 esac
4499 ;;
4500 ppc-*-solaris*)
4501 if test ${this_target} = $target; then
13b2be9c
DJ
4502
4503cat >>confdefs.h <<\_ACEOF
252b5132 4504#define TARGET_SOLARIS_COMMENT 1
13b2be9c 4505_ACEOF
252b5132 4506
14ee9f48
ILT
4507 fi
4508 if test x${endian} = xbig; then
4509 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
13b2be9c
DJ
4510echo "$as_me: error: Solaris must be configured little endian" >&2;}
4511 { (exit 1); exit 1; }; }
14ee9f48
ILT
4512 fi
4513 ;;
4514
4515 sh*-*-symbianelf*)
85fbca6a
NC
4516
4517cat >>confdefs.h <<\_ACEOF
4518#define TARGET_SYMBIAN 1
4519_ACEOF
4520
14ee9f48 4521 ;;
252b5132
RH
4522 esac
4523
4524 if test ${this_target} = $target ; then
4525 endian_def=
4526 if test x${endian} = xbig; then
4527 endian_def=1
4528 elif test x${endian} = xlittle; then
4529 endian_def=0
4530 fi
4531 if test x${endian_def} != x; then
13b2be9c
DJ
4532
4533cat >>confdefs.h <<_ACEOF
252b5132 4534#define TARGET_BYTES_BIG_ENDIAN $endian_def
13b2be9c 4535_ACEOF
252b5132
RH
4536
4537 fi
4538 fi
4539
252b5132
RH
4540# Other random stuff.
4541
316f5878
RS
4542 case ${cpu_type} in
4543 mips)
4544 # Set mips_cpu to the name of the default CPU.
4545 case ${target_cpu} in
4546 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4547 mips_cpu=from-abi
4548 ;;
4549 mipsisa32 | mipsisa32el)
4550 mips_cpu=mips32
4551 ;;
af7ee8bf
CD
4552 mipsisa32r2 | mipsisa32r2el)
4553 mips_cpu=mips32r2
4554 ;;
316f5878
RS
4555 mipsisa64 | mipsisa64el)
4556 mips_cpu=mips64
4557 ;;
5f74bc13
CD
4558 mipsisa64r2 | mipsisa64r2el)
4559 mips_cpu=mips64r2
4560 ;;
316f5878
RS
4561 mipstx39 | mipstx39el)
4562 mips_cpu=r3900
4563 ;;
8f6847cb
RS
4564 mips64vr | mips64vrel)
4565 mips_cpu=vr4100
4566 ;;
5f74bc13 4567 mipsisa32r2* | mipsisa64r2*)
af7ee8bf
CD
4568 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4569 ;;
316f5878
RS
4570 mips64* | mipsisa64* | mipsisa32*)
4571 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4572 ;;
4573 *)
13b2be9c
DJ
4574 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4575echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4576 { (exit 1); exit 1; }; }
316f5878
RS
4577 ;;
4578 esac
4579 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4580 # binaries. It's a GNU extension that some OSes don't understand.
4581 # The value only matters on ELF targets.
4582 case ${target} in
4583 *-*-irix*)
4584 use_e_mips_abi_o32=0
4585 ;;
4586 *)
4587 use_e_mips_abi_o32=1
4588 ;;
4589 esac
4590 # Decide whether to generate 32-bit or 64-bit code by default.
4591 # Used to resolve -march=from-abi when an embedded ABI is selected.
4592 case ${target} in
4593 mips64*-*-* | mipsisa64*-*-*)
4594 mips_default_64bit=1
4595 ;;
4596 *)
4597 mips_default_64bit=0
4598 ;;
4599 esac
cac012d6
AO
4600 # Decide which ABI to target by default.
4601 case ${target} in
4602 mips64*-linux* | mips-sgi-irix6*)
4603 mips_default_abi=N32_ABI
4604 ;;
4605 mips*-linux*)
4606 mips_default_abi=O32_ABI
4607 ;;
26eebcf5
MK
4608 mips64*-openbsd*)
4609 mips_default_abi=N64_ABI
4610 ;;
cac012d6
AO
4611 *)
4612 mips_default_abi=NO_ABI
4613 ;;
4614 esac
13b2be9c
DJ
4615
4616cat >>confdefs.h <<_ACEOF
316f5878 4617#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
13b2be9c 4618_ACEOF
316f5878 4619
13b2be9c
DJ
4620
4621cat >>confdefs.h <<_ACEOF
316f5878 4622#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
13b2be9c 4623_ACEOF
316f5878 4624
13b2be9c
DJ
4625
4626cat >>confdefs.h <<_ACEOF
316f5878 4627#define MIPS_DEFAULT_64BIT $mips_default_64bit
13b2be9c 4628_ACEOF
cac012d6 4629
13b2be9c
DJ
4630
4631cat >>confdefs.h <<_ACEOF
cac012d6 4632#define MIPS_DEFAULT_ABI $mips_default_abi
13b2be9c 4633_ACEOF
316f5878
RS
4634
4635 ;;
4636 esac
4637
252b5132
RH
4638 # Do we need the opcodes library?
4639 case ${cpu_type} in
4640 vax | i386 | tic30)
4641 ;;
4642
4643 *)
4644 need_opcodes=yes
4645
4646 case "${enable_shared}" in
4647 yes) shared_opcodes=true ;;
4648 *opcodes*) shared_opcodes=true ;;
4649 *) shared_opcodes=false ;;
4650 esac
4651 if test "${shared_opcodes}" = "true"; then
4652 # A shared libopcodes must be linked against libbfd.
4653 need_bfd=yes
4654 fi
4655 ;;
4656 esac
4657
4658 # Any other special object files needed ?
4659 case ${cpu_type} in
1c53c80d 4660 fr30 | ip2k | iq2000 | m32r | openrisc)
252b5132
RH
4661 using_cgen=yes
4662 ;;
4663
49f58d10
JB
4664 m32c)
4665 using_cgen=yes
4666 ;;
0ebb9a87
DB
4667 frv)
4668 using_cgen=yes
4669 ;;
252b5132
RH
4670 m68k)
4671 case ${extra_objects} in
4672 *m68k-parse.o*) ;;
4673 *) extra_objects="$extra_objects m68k-parse.o" ;;
4674 esac
4675 ;;
4676
4677 mips)
13b2be9c 4678 echo ${extra_objects} | grep -s "itbl-parse.o"
252b5132
RH
4679 if test $? -ne 0 ; then
4680 extra_objects="$extra_objects itbl-parse.o"
4681 fi
4682
13b2be9c 4683 echo ${extra_objects} | grep -s "itbl-lex.o"
252b5132
RH
4684 if test $? -ne 0 ; then
4685 extra_objects="$extra_objects itbl-lex.o"
4686 fi
4687
13b2be9c 4688 echo ${extra_objects} | grep -s "itbl-ops.o"
252b5132
RH
4689 if test $? -ne 0 ; then
4690 extra_objects="$extra_objects itbl-ops.o"
4691 fi
4692 ;;
4693
047af9ef
AH
4694 ms1)
4695 using_cgen=yes
4696 ;;
4697
c1e4eef7 4698 i386 | s390 | sparc)
252b5132 4699 if test $this_target = $target ; then
13b2be9c
DJ
4700
4701cat >>confdefs.h <<_ACEOF
252b5132 4702#define DEFAULT_ARCH "${arch}"
13b2be9c 4703_ACEOF
252b5132
RH
4704
4705 fi
4706 ;;
93fbbb04
GK
4707
4708 xstormy16)
4709 using_cgen=yes
4710 ;;
4711
e0001a05
NC
4712 xtensa)
4713 echo ${extra_objects} | grep -s "xtensa-relax.o"
4714 if test $? -ne 0 ; then
4715 extra_objects="$extra_objects xtensa-relax.o"
4716 fi
4717 ;;
4718
252b5132
RH
4719 *)
4720 ;;
4721 esac
4722
4723 if test $using_cgen = yes ; then
4724 case "x${extra_objects}" in
4725 *cgen.o*) ;;
4726 *) extra_objects="$extra_objects cgen.o" ;;
4727 esac
4728 fi
4729
4730# See if we really can support this configuration with the emulation code.
4731
4732 if test $this_target = $target ; then
4733 primary_bfd_gas=$bfd_gas
4734 obj_format=$fmt
4735 te_file=$em
4736
4737 if test $bfd_gas = no ; then
4738 # Can't support other configurations this way.
4739 break
4740 fi
4741 elif test $bfd_gas = no ; then
4742 # Can't support this configuration.
4743 break
4744 fi
4745
4746# From target name and format, produce a list of supported emulations.
4747
4748 case ${generic_target}-${fmt} in
4749 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
056a1d49 4750 mips*-*-linux*-*) case "$endian" in
df3bcd6f
L
4751 big) emulation="mipsbelf mipslelf mipself" ;;
4752 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132
RH
4753 esac ;;
4754 mips-*-lnews*-ecoff) ;;
4755 mips-*-*-ecoff) case "$endian" in
4756 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4757 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4758 esac ;;
4759 mips-*-*-elf) case "$endian" in
4760 big) emulation="mipsbelf mipslelf mipself" ;;
4761 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132 4762 esac ;;
906fac54 4763 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
119caedd
L
4764 # i386-pc-pe-coff != i386-pc-coff.
4765 i386-*-pe-coff) ;;
4c63da97
AM
4766 # Uncommenting the next line will turn on support for i386 AOUT
4767 # for the default linux configuration
4768 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4769 #
4770 i386-*-aout) emulation="i386aout" ;;
4ca72d38 4771 i386-*-coff) emulation="i386coff" ;;
4c63da97 4772 i386-*-elf) emulation="i386elf" ;;
3bcbcc3d 4773
f9c19112
HPN
4774 # Always all formats. The first stated emulation becomes the default.
4775 cris-*-*aout*) emulation="crisaout criself" ;;
4776 cris-*-*) emulation="criself crisaout" ;;
252b5132
RH
4777 esac
4778
4779 emulations="$emulations $emulation"
4780
4781done
4782
15886821
L
4783# Turn on all targets if possible
4784if test ${all_targets} = "yes"; then
4785 case ${target_cpu_type} in
4786 i386)
4787 case ${obj_format} in
4788 aout)
4789 emulations="$emulations i386coff i386elf"
4790 ;;
4791 coff)
4792 emulations="$emulations i386aout i386elf"
4793 ;;
4794 elf)
4795 emulations="$emulations i386aout i386coff"
4796 ;;
4797 esac
4798 ;;
4799 esac
4800fi
4801
252b5132
RH
4802# Assign floating point type. Most processors with FP support
4803# IEEE FP. On those that don't support FP at all, usually IEEE
4804# is emulated.
4805case ${target_cpu} in
4806 vax | tahoe ) atof=${target_cpu} ;;
e135f41b 4807 pdp11) atof=vax ;;
252b5132
RH
4808 *) atof=ieee ;;
4809esac
4810
4811case "${obj_format}" in
13b2be9c
DJ
4812 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4813echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4814 { (exit 1); exit 1; }; } ;;
252b5132
RH
4815esac
4816
4817# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4818cgen_cpu_prefix=""
4819if test $using_cgen = yes ; then
4820 case ${target_cpu} in
4821 *) cgen_cpu_prefix=${target_cpu} ;;
4822 esac
13b2be9c
DJ
4823
4824
4825cat >>confdefs.h <<\_ACEOF
252b5132 4826#define USING_CGEN 1
13b2be9c 4827_ACEOF
252b5132
RH
4828
4829fi
4830
d6d788bd 4831
252b5132 4832if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
13b2be9c
DJ
4833 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4834echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4835 { (exit 1); exit 1; }; }
252b5132
RH
4836fi
4837
4838if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
13b2be9c
DJ
4839 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4840echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4841 { (exit 1); exit 1; }; }
252b5132
RH
4842fi
4843
4844case ${user_bfd_gas}-${primary_bfd_gas} in
4845 yes-yes | no-no)
4846 # We didn't override user's choice.
4847 ;;
4848 no-yes)
13b2be9c
DJ
4849 { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4850echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
252b5132
RH
4851 ;;
4852 no-preferred)
4853 primary_bfd_gas=no
4854 ;;
4855 *-preferred)
4856 primary_bfd_gas=yes
4857 ;;
4858 yes-*)
4859 primary_bfd_gas=yes
4860 ;;
4861 -*)
4862 # User specified nothing.
4863 ;;
4864esac
4865
4866# Some COFF configurations want these random other flags set.
4867case ${obj_format} in
4868 coff)
4869 case ${target_cpu_type} in
13b2be9c
DJ
4870 i386)
4871cat >>confdefs.h <<\_ACEOF
252b5132 4872#define I386COFF 1
13b2be9c 4873_ACEOF
252b5132 4874 ;;
13b2be9c
DJ
4875 m68k)
4876cat >>confdefs.h <<\_ACEOF
252b5132 4877#define M68KCOFF 1
13b2be9c 4878_ACEOF
252b5132 4879 ;;
13b2be9c
DJ
4880 m88k)
4881cat >>confdefs.h <<\_ACEOF
252b5132 4882#define M88KCOFF 1
13b2be9c 4883_ACEOF
252b5132
RH
4884 ;;
4885 esac
4886 ;;
4887esac
4888
4889# Getting this done right is going to be a bitch. Each configuration specified
4890# with --enable-targets=... should be checked for environment, format, cpu, and
4891# bfd_gas setting.
4892#
4893# For each configuration, the necessary object file support code must be linked
4894# in. This might be only one, it might be up to four. The necessary emulation
4895# code needs to be provided, too.
4896#
4897# And then there's "--enable-targets=all"....
4898#
4899# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4900
4901formats="${obj_format}"
4902emfiles=""
4903EMULATIONS=""
4904_gas_uniq_list="$emulations"
4905_gas_uniq_newlist=""
4906for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4907 case $_gas_uniq_i in
4908 _gas_uniq_dummy) ;;
4909 *) case " $_gas_uniq_newlist " in
4910 *" $_gas_uniq_i "*) ;;
4911 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4912 esac ;;
4913 esac
4914done
4915emulations=$_gas_uniq_newlist
4916
4917for em in . $emulations ; do
4918 case $em in
4919 .) continue ;;
97238fbd 4920 mipsbelf | mipslelf | mipself)
252b5132 4921 fmt=elf file=mipself ;;
97238fbd 4922 mipsbecoff | mipslecoff | mipsecoff)
252b5132 4923 fmt=ecoff file=mipsecoff ;;
0aa5d426
HPN
4924 *coff)
4925 fmt=coff file=$em ;;
4926 *aout)
4927 fmt=aout file=$em ;;
4928 *elf)
4929 fmt=elf file=$em ;;
252b5132
RH
4930 esac
4931 formats="$formats $fmt"
4932 emfiles="$emfiles e-$file.o"
4933 EMULATIONS="$EMULATIONS &$em,"
4934done
4935_gas_uniq_list="$formats"
4936_gas_uniq_newlist=""
4937for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4938 case $_gas_uniq_i in
4939 _gas_uniq_dummy) ;;
4940 *) case " $_gas_uniq_newlist " in
4941 *" $_gas_uniq_i "*) ;;
4942 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4943 esac ;;
4944 esac
4945done
4946formats=$_gas_uniq_newlist
4947
4948_gas_uniq_list="$emfiles"
4949_gas_uniq_newlist=""
4950for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4951 case $_gas_uniq_i in
4952 _gas_uniq_dummy) ;;
4953 *) case " $_gas_uniq_newlist " in
4954 *" $_gas_uniq_i "*) ;;
4955 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4956 esac ;;
4957 esac
4958done
4959emfiles=$_gas_uniq_newlist
4960
4961if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4962 for fmt in $formats ; do
4963 case $fmt in
13b2be9c
DJ
4964 aout)
4965cat >>confdefs.h <<\_ACEOF
252b5132 4966#define OBJ_MAYBE_AOUT 1
13b2be9c 4967_ACEOF
252b5132 4968 ;;
13b2be9c
DJ
4969 bout)
4970cat >>confdefs.h <<\_ACEOF
252b5132 4971#define OBJ_MAYBE_BOUT 1
13b2be9c 4972_ACEOF
252b5132 4973 ;;
13b2be9c
DJ
4974 coff)
4975cat >>confdefs.h <<\_ACEOF
252b5132 4976#define OBJ_MAYBE_COFF 1
13b2be9c 4977_ACEOF
252b5132 4978 ;;
13b2be9c
DJ
4979 ecoff)
4980cat >>confdefs.h <<\_ACEOF
252b5132 4981#define OBJ_MAYBE_ECOFF 1
13b2be9c 4982_ACEOF
252b5132 4983 ;;
13b2be9c
DJ
4984 elf)
4985cat >>confdefs.h <<\_ACEOF
252b5132 4986#define OBJ_MAYBE_ELF 1
13b2be9c 4987_ACEOF
252b5132 4988 ;;
13b2be9c
DJ
4989 generic)
4990cat >>confdefs.h <<\_ACEOF
252b5132 4991#define OBJ_MAYBE_GENERIC 1
13b2be9c 4992_ACEOF
252b5132 4993 ;;
13b2be9c
DJ
4994 hp300)
4995cat >>confdefs.h <<\_ACEOF
252b5132 4996#define OBJ_MAYBE_HP300 1
13b2be9c 4997_ACEOF
252b5132 4998 ;;
13b2be9c
DJ
4999 ieee)
5000cat >>confdefs.h <<\_ACEOF
252b5132 5001#define OBJ_MAYBE_IEEE 1
13b2be9c 5002_ACEOF
252b5132 5003 ;;
13b2be9c
DJ
5004 som)
5005cat >>confdefs.h <<\_ACEOF
252b5132 5006#define OBJ_MAYBE_SOM 1
13b2be9c 5007_ACEOF
252b5132
RH
5008 ;;
5009 esac
5010 extra_objects="$extra_objects obj-$fmt.o"
5011 done
5012 obj_format=multi
5013fi
5014if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
252b5132 5015 DEFAULT_EMULATION=`set . $emulations ; echo $2`
4ca72d38
AM
5016 # e-mips* has more than one emulation per file, e-i386* has just one at the
5017 # moment. If only one emulation is specified, then don't define
5018 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
5019 case "${obj_format}${emfiles}" in
5020 multi* | *mips*)
4ca72d38 5021 extra_objects="$extra_objects $emfiles"
13b2be9c
DJ
5022
5023cat >>confdefs.h <<\_ACEOF
252b5132 5024#define USE_EMULATIONS 1
13b2be9c 5025_ACEOF
4ca72d38
AM
5026 ;;
5027 esac
252b5132
RH
5028fi
5029
13b2be9c
DJ
5030
5031cat >>confdefs.h <<_ACEOF
252b5132 5032#define EMULATIONS $EMULATIONS
13b2be9c
DJ
5033_ACEOF
5034
252b5132 5035
13b2be9c 5036cat >>confdefs.h <<_ACEOF
252b5132 5037#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
13b2be9c 5038_ACEOF
252b5132 5039
d6d788bd 5040
252b5132
RH
5041case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
5042 yes-*-coff) need_bfd=yes ;;
5043 no-*-coff) need_bfd=yes
13b2be9c
DJ
5044
5045cat >>confdefs.h <<\_ACEOF
252b5132 5046#define MANY_SEGMENTS 1
13b2be9c 5047_ACEOF
252b5132
RH
5048 ;;
5049esac
5050
5051reject_dev_configs=yes
5052
5053case ${reject_dev_configs}-${dev} in
5054 yes-yes) # Oops.
13b2be9c
DJ
5055 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
5056echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
5057 { (exit 1); exit 1; }; }
252b5132
RH
5058 ;;
5059esac
5060
d6d788bd
L
5061
5062
5063
5064
5065
5066
252b5132 5067case "${primary_bfd_gas}" in
13b2be9c
DJ
5068 yes)
5069cat >>confdefs.h <<\_ACEOF
252b5132 5070#define BFD_ASSEMBLER 1
13b2be9c 5071_ACEOF
252b5132
RH
5072
5073 need_bfd=yes ;;
5074esac
5075
5076# do we need the opcodes library?
5077case "${need_opcodes}" in
5078yes)
5079 OPCODES_LIB=../opcodes/libopcodes.la
5080 ;;
5081esac
5082
5083case "${need_bfd}" in
5084yes)
5085 BFDLIB=../bfd/libbfd.la
4001ad8c 5086 BFDVER_H=../bfd/bfdver.h
29589b0c 5087 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
252b5132
RH
5088 ;;
5089esac
5090
d6d788bd
L
5091
5092
5093
5094
5095
4001ad8c 5096
13b2be9c
DJ
5097
5098cat >>confdefs.h <<_ACEOF
252b5132 5099#define TARGET_ALIAS "${target_alias}"
13b2be9c 5100_ACEOF
9b2b7d69 5101
13b2be9c
DJ
5102
5103cat >>confdefs.h <<_ACEOF
252b5132 5104#define TARGET_CANONICAL "${target}"
13b2be9c 5105_ACEOF
9b2b7d69 5106
13b2be9c
DJ
5107
5108cat >>confdefs.h <<_ACEOF
252b5132 5109#define TARGET_CPU "${target_cpu}"
13b2be9c 5110_ACEOF
9b2b7d69 5111
13b2be9c
DJ
5112
5113cat >>confdefs.h <<_ACEOF
252b5132 5114#define TARGET_VENDOR "${target_vendor}"
13b2be9c 5115_ACEOF
9b2b7d69 5116
13b2be9c
DJ
5117
5118cat >>confdefs.h <<_ACEOF
252b5132 5119#define TARGET_OS "${target_os}"
13b2be9c
DJ
5120_ACEOF
5121
5122
5123ac_ext=c
5124ac_cpp='$CPP $CPPFLAGS'
5125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127ac_compiler_gnu=$ac_cv_c_compiler_gnu
5128if test -n "$ac_tool_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5130set dummy ${ac_tool_prefix}gcc; ac_word=$2
5131echo "$as_me:$LINENO: checking for $ac_word" >&5
5132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133if test "${ac_cv_prog_CC+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136 if test -n "$CC"; then
5137 ac_cv_prog_CC="$CC" # Let the user override the test.
5138else
5139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140for as_dir in $PATH
5141do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150done
5151done
252b5132 5152
13b2be9c
DJ
5153fi
5154fi
5155CC=$ac_cv_prog_CC
5156if test -n "$CC"; then
5157 echo "$as_me:$LINENO: result: $CC" >&5
5158echo "${ECHO_T}$CC" >&6
5159else
5160 echo "$as_me:$LINENO: result: no" >&5
5161echo "${ECHO_T}no" >&6
5162fi
252b5132 5163
13b2be9c
DJ
5164fi
5165if test -z "$ac_cv_prog_CC"; then
5166 ac_ct_CC=$CC
5167 # Extract the first word of "gcc", so it can be a program name with args.
252b5132 5168set dummy gcc; ac_word=$2
13b2be9c
DJ
5169echo "$as_me:$LINENO: checking for $ac_word" >&5
5170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5171if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173else
5174 if test -n "$ac_ct_CC"; then
5175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_ac_ct_CC="gcc"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188done
5189done
5190
5191fi
5192fi
5193ac_ct_CC=$ac_cv_prog_ac_ct_CC
5194if test -n "$ac_ct_CC"; then
5195 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5196echo "${ECHO_T}$ac_ct_CC" >&6
5197else
5198 echo "$as_me:$LINENO: result: no" >&5
5199echo "${ECHO_T}no" >&6
5200fi
5201
5202 CC=$ac_ct_CC
5203else
5204 CC="$ac_cv_prog_CC"
5205fi
5206
5207if test -z "$CC"; then
5208 if test -n "$ac_tool_prefix"; then
5209 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5210set dummy ${ac_tool_prefix}cc; ac_word=$2
5211echo "$as_me:$LINENO: checking for $ac_word" >&5
5212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5213if test "${ac_cv_prog_CC+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5215else
5216 if test -n "$CC"; then
5217 ac_cv_prog_CC="$CC" # Let the user override the test.
5218else
13b2be9c
DJ
5219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH
5221do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5226 ac_cv_prog_CC="${ac_tool_prefix}cc"
5227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230done
5231done
5232
252b5132
RH
5233fi
5234fi
13b2be9c 5235CC=$ac_cv_prog_CC
252b5132 5236if test -n "$CC"; then
13b2be9c
DJ
5237 echo "$as_me:$LINENO: result: $CC" >&5
5238echo "${ECHO_T}$CC" >&6
5239else
5240 echo "$as_me:$LINENO: result: no" >&5
5241echo "${ECHO_T}no" >&6
5242fi
5243
5244fi
5245if test -z "$ac_cv_prog_CC"; then
5246 ac_ct_CC=$CC
5247 # Extract the first word of "cc", so it can be a program name with args.
5248set dummy cc; ac_word=$2
5249echo "$as_me:$LINENO: checking for $ac_word" >&5
5250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5251if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
9b2b7d69 5253else
13b2be9c
DJ
5254 if test -n "$ac_ct_CC"; then
5255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5256else
5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258for as_dir in $PATH
5259do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264 ac_cv_prog_ac_ct_CC="cc"
5265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5267 fi
5268done
5269done
5270
5271fi
5272fi
5273ac_ct_CC=$ac_cv_prog_ac_ct_CC
5274if test -n "$ac_ct_CC"; then
5275 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5276echo "${ECHO_T}$ac_ct_CC" >&6
5277else
5278 echo "$as_me:$LINENO: result: no" >&5
5279echo "${ECHO_T}no" >&6
5280fi
5281
5282 CC=$ac_ct_CC
5283else
5284 CC="$ac_cv_prog_CC"
6840198f
NC
5285fi
5286
13b2be9c 5287fi
252b5132
RH
5288if test -z "$CC"; then
5289 # Extract the first word of "cc", so it can be a program name with args.
5290set dummy cc; ac_word=$2
13b2be9c
DJ
5291echo "$as_me:$LINENO: checking for $ac_word" >&5
5292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5293if test "${ac_cv_prog_CC+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5295else
5296 if test -n "$CC"; then
5297 ac_cv_prog_CC="$CC" # Let the user override the test.
5298else
252b5132 5299 ac_prog_rejected=no
13b2be9c
DJ
5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301for as_dir in $PATH
5302do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5308 ac_prog_rejected=yes
5309 continue
5310 fi
5311 ac_cv_prog_CC="cc"
5312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315done
5316done
5317
252b5132
RH
5318if test $ac_prog_rejected = yes; then
5319 # We found a bogon in the path, so make sure we never use it.
5320 set dummy $ac_cv_prog_CC
5321 shift
13b2be9c 5322 if test $# != 0; then
252b5132
RH
5323 # We chose a different compiler from the bogus one.
5324 # However, it has the same basename, so the bogon will be chosen
5325 # first if we set CC to just the basename; use the full file name.
5326 shift
13b2be9c 5327 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
252b5132
RH
5328 fi
5329fi
5330fi
5331fi
13b2be9c 5332CC=$ac_cv_prog_CC
252b5132 5333if test -n "$CC"; then
13b2be9c
DJ
5334 echo "$as_me:$LINENO: result: $CC" >&5
5335echo "${ECHO_T}$CC" >&6
252b5132 5336else
13b2be9c
DJ
5337 echo "$as_me:$LINENO: result: no" >&5
5338echo "${ECHO_T}no" >&6
252b5132
RH
5339fi
5340
13b2be9c
DJ
5341fi
5342if test -z "$CC"; then
5343 if test -n "$ac_tool_prefix"; then
5344 for ac_prog in cl
5345 do
5346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5348echo "$as_me:$LINENO: checking for $ac_word" >&5
5349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5350if test "${ac_cv_prog_CC+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5352else
5353 if test -n "$CC"; then
5354 ac_cv_prog_CC="$CC" # Let the user override the test.
5355else
13b2be9c
DJ
5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5366 fi
5367done
5368done
5369
252b5132
RH
5370fi
5371fi
13b2be9c 5372CC=$ac_cv_prog_CC
252b5132 5373if test -n "$CC"; then
13b2be9c
DJ
5374 echo "$as_me:$LINENO: result: $CC" >&5
5375echo "${ECHO_T}$CC" >&6
c8615825 5376else
13b2be9c
DJ
5377 echo "$as_me:$LINENO: result: no" >&5
5378echo "${ECHO_T}no" >&6
c8615825 5379fi
6840198f 5380
13b2be9c
DJ
5381 test -n "$CC" && break
5382 done
5383fi
5384if test -z "$CC"; then
5385 ac_ct_CC=$CC
5386 for ac_prog in cl
5387do
5388 # Extract the first word of "$ac_prog", so it can be a program name with args.
5389set dummy $ac_prog; ac_word=$2
5390echo "$as_me:$LINENO: checking for $ac_word" >&5
5391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5392if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5394else
13b2be9c
DJ
5395 if test -n "$ac_ct_CC"; then
5396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
c8615825 5397else
13b2be9c
DJ
5398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399for as_dir in $PATH
5400do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_ac_ct_CC="$ac_prog"
5406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5408 fi
5409done
5410done
5411
c8615825
AM
5412fi
5413fi
13b2be9c
DJ
5414ac_ct_CC=$ac_cv_prog_ac_ct_CC
5415if test -n "$ac_ct_CC"; then
5416 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5417echo "${ECHO_T}$ac_ct_CC" >&6
c8615825 5418else
13b2be9c
DJ
5419 echo "$as_me:$LINENO: result: no" >&5
5420echo "${ECHO_T}no" >&6
c8615825 5421fi
252b5132 5422
13b2be9c
DJ
5423 test -n "$ac_ct_CC" && break
5424done
5425
5426 CC=$ac_ct_CC
5427fi
5428
5429fi
5430
5431
5432test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5433See \`config.log' for more details." >&5
5434echo "$as_me: error: no acceptable C compiler found in \$PATH
5435See \`config.log' for more details." >&2;}
5436 { (exit 1); exit 1; }; }
5437
5438# Provide some information about the compiler.
5439echo "$as_me:$LINENO:" \
5440 "checking for C compiler version" >&5
5441ac_compiler=`set X $ac_compile; echo $2`
5442{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5443 (eval $ac_compiler --version </dev/null >&5) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }
5447{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5448 (eval $ac_compiler -v </dev/null >&5) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }
5452{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5453 (eval $ac_compiler -V </dev/null >&5) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }
5457
5458echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5459echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5460if test "${ac_cv_c_compiler_gnu+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462else
5463 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5464/* confdefs.h. */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h. */
5469
5470int
5471main ()
5472{
5473#ifndef __GNUC__
5474 choke me
5475#endif
5476
5477 ;
5478 return 0;
5479}
5480_ACEOF
5481rm -f conftest.$ac_objext
5482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5483 (eval $ac_compile) 2>conftest.er1
13b2be9c 5484 ac_status=$?
ab509236
L
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
13b2be9c
DJ
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
1ad12f97
NC
5490 { ac_try='test -z "$ac_c_werror_flag"
5491 || test ! -s conftest.err'
ab509236
L
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 (eval $ac_try) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; } &&
5497 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5503 ac_compiler_gnu=yes
5504else
5505 echo "$as_me: failed program was:" >&5
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
5508ac_compiler_gnu=no
5509fi
ab509236 5510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5511ac_cv_c_compiler_gnu=$ac_compiler_gnu
5512
5513fi
5514echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5515echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5516GCC=`test $ac_compiler_gnu = yes && echo yes`
5517ac_test_CFLAGS=${CFLAGS+set}
5518ac_save_CFLAGS=$CFLAGS
5519CFLAGS="-g"
5520echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5521echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5522if test "${ac_cv_prog_cc_g+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524else
5525 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5526/* confdefs.h. */
5527_ACEOF
5528cat confdefs.h >>conftest.$ac_ext
5529cat >>conftest.$ac_ext <<_ACEOF
5530/* end confdefs.h. */
5531
5532int
5533main ()
5534{
5535
5536 ;
5537 return 0;
5538}
5539_ACEOF
5540rm -f conftest.$ac_objext
5541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5542 (eval $ac_compile) 2>conftest.er1
13b2be9c 5543 ac_status=$?
ab509236
L
5544 grep -v '^ *+' conftest.er1 >conftest.err
5545 rm -f conftest.er1
5546 cat conftest.err >&5
13b2be9c
DJ
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } &&
1ad12f97
NC
5549 { ac_try='test -z "$ac_c_werror_flag"
5550 || test ! -s conftest.err'
ab509236
L
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; } &&
5556 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 (eval $ac_try) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
252b5132
RH
5562 ac_cv_prog_cc_g=yes
5563else
13b2be9c
DJ
5564 echo "$as_me: failed program was:" >&5
5565sed 's/^/| /' conftest.$ac_ext >&5
c8615825 5566
13b2be9c 5567ac_cv_prog_cc_g=no
252b5132 5568fi
ab509236 5569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5570fi
5571echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5572echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
252b5132 5573if test "$ac_test_CFLAGS" = set; then
13b2be9c 5574 CFLAGS=$ac_save_CFLAGS
252b5132
RH
5575elif test $ac_cv_prog_cc_g = yes; then
5576 if test "$GCC" = yes; then
5577 CFLAGS="-g -O2"
5578 else
5579 CFLAGS="-g"
5580 fi
5581else
9b2b7d69
MM
5582 if test "$GCC" = yes; then
5583 CFLAGS="-O2"
5584 else
5585 CFLAGS=
5586 fi
5587fi
13b2be9c
DJ
5588echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5589echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5590if test "${ac_cv_prog_cc_stdc+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5592else
5593 ac_cv_prog_cc_stdc=no
5594ac_save_CC=$CC
5595cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5596/* confdefs.h. */
5597_ACEOF
5598cat confdefs.h >>conftest.$ac_ext
5599cat >>conftest.$ac_ext <<_ACEOF
5600/* end confdefs.h. */
5601#include <stdarg.h>
5602#include <stdio.h>
5603#include <sys/types.h>
5604#include <sys/stat.h>
5605/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5606struct buf { int x; };
5607FILE * (*rcsopen) (struct buf *, struct stat *, int);
5608static char *e (p, i)
5609 char **p;
5610 int i;
5611{
5612 return p[i];
5613}
5614static char *f (char * (*g) (char **, int), char **p, ...)
5615{
5616 char *s;
5617 va_list v;
5618 va_start (v,p);
5619 s = g (p, va_arg (v,int));
5620 va_end (v);
5621 return s;
5622}
ab509236
L
5623
5624/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5625 function prototypes and stuff, but not '\xHH' hex character constants.
5626 These don't provoke an error unfortunately, instead are silently treated
5627 as 'x'. The following induces an error, until -std1 is added to get
5628 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5629 array size at least. It's necessary to write '\x00'==0 to get something
5630 that's true only with -std1. */
5631int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5632
13b2be9c
DJ
5633int test (int i, double x);
5634struct s1 {int (*f) (int a);};
5635struct s2 {int (*f) (double a);};
5636int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5637int argc;
5638char **argv;
5639int
5640main ()
5641{
5642return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5643 ;
5644 return 0;
5645}
5646_ACEOF
5647# Don't try gcc -ansi; that turns off useful extensions and
5648# breaks some systems' header files.
5649# AIX -qlanglvl=ansi
5650# Ultrix and OSF/1 -std1
5651# HP-UX 10.20 and later -Ae
5652# HP-UX older versions -Aa -D_HPUX_SOURCE
5653# SVR4 -Xc -D__EXTENSIONS__
5654for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5655do
5656 CC="$ac_save_CC $ac_arg"
5657 rm -f conftest.$ac_objext
5658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5659 (eval $ac_compile) 2>conftest.er1
13b2be9c 5660 ac_status=$?
ab509236
L
5661 grep -v '^ *+' conftest.er1 >conftest.err
5662 rm -f conftest.er1
5663 cat conftest.err >&5
13b2be9c
DJ
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } &&
1ad12f97
NC
5666 { ac_try='test -z "$ac_c_werror_flag"
5667 || test ! -s conftest.err'
ab509236
L
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 (eval $ac_try) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; } &&
5673 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5679 ac_cv_prog_cc_stdc=$ac_arg
5680break
5681else
5682 echo "$as_me: failed program was:" >&5
5683sed 's/^/| /' conftest.$ac_ext >&5
5684
5685fi
ab509236 5686rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
5687done
5688rm -f conftest.$ac_ext conftest.$ac_objext
5689CC=$ac_save_CC
5690
5691fi
5692
5693case "x$ac_cv_prog_cc_stdc" in
5694 x|xno)
5695 echo "$as_me:$LINENO: result: none needed" >&5
5696echo "${ECHO_T}none needed" >&6 ;;
5697 *)
5698 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5699echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5700 CC="$CC $ac_cv_prog_cc_stdc" ;;
5701esac
5702
5703# Some people use a C++ compiler to compile C. Since we use `exit',
5704# in C++ we need to declare it. In case someone uses the same compiler
5705# for both compiling C and C++ we need to have the C++ compiler decide
5706# the declaration of exit, since it's the most demanding environment.
5707cat >conftest.$ac_ext <<_ACEOF
5708#ifndef __cplusplus
5709 choke me
5710#endif
5711_ACEOF
5712rm -f conftest.$ac_objext
5713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5714 (eval $ac_compile) 2>conftest.er1
13b2be9c 5715 ac_status=$?
ab509236
L
5716 grep -v '^ *+' conftest.er1 >conftest.err
5717 rm -f conftest.er1
5718 cat conftest.err >&5
13b2be9c
DJ
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
1ad12f97
NC
5721 { ac_try='test -z "$ac_c_werror_flag"
5722 || test ! -s conftest.err'
ab509236
L
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 (eval $ac_try) 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; } &&
5728 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 for ac_declaration in \
ab509236 5735 '' \
13b2be9c
DJ
5736 'extern "C" void std::exit (int) throw (); using std::exit;' \
5737 'extern "C" void std::exit (int); using std::exit;' \
5738 'extern "C" void exit (int) throw ();' \
5739 'extern "C" void exit (int);' \
5740 'void exit (int);'
5741do
5742 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5743/* confdefs.h. */
5744_ACEOF
5745cat confdefs.h >>conftest.$ac_ext
5746cat >>conftest.$ac_ext <<_ACEOF
5747/* end confdefs.h. */
13dfd2d0 5748$ac_declaration
ab509236 5749#include <stdlib.h>
13b2be9c
DJ
5750int
5751main ()
5752{
5753exit (42);
5754 ;
5755 return 0;
5756}
5757_ACEOF
5758rm -f conftest.$ac_objext
5759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5760 (eval $ac_compile) 2>conftest.er1
13b2be9c 5761 ac_status=$?
ab509236
L
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
13b2be9c
DJ
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
1ad12f97
NC
5767 { ac_try='test -z "$ac_c_werror_flag"
5768 || test ! -s conftest.err'
ab509236
L
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 (eval $ac_try) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; } &&
5774 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5780 :
5781else
5782 echo "$as_me: failed program was:" >&5
5783sed 's/^/| /' conftest.$ac_ext >&5
5784
5785continue
5786fi
ab509236 5787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 5788 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5789/* confdefs.h. */
5790_ACEOF
5791cat confdefs.h >>conftest.$ac_ext
5792cat >>conftest.$ac_ext <<_ACEOF
5793/* end confdefs.h. */
5794$ac_declaration
5795int
5796main ()
5797{
5798exit (42);
5799 ;
5800 return 0;
5801}
5802_ACEOF
5803rm -f conftest.$ac_objext
5804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5805 (eval $ac_compile) 2>conftest.er1
13b2be9c 5806 ac_status=$?
ab509236
L
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
13b2be9c
DJ
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } &&
1ad12f97
NC
5812 { ac_try='test -z "$ac_c_werror_flag"
5813 || test ! -s conftest.err'
ab509236
L
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 (eval $ac_try) 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; } &&
5819 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 (eval $ac_try) 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; }; then
5825 break
5826else
5827 echo "$as_me: failed program was:" >&5
5828sed 's/^/| /' conftest.$ac_ext >&5
5829
5830fi
ab509236 5831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5832done
5833rm -f conftest*
5834if test -n "$ac_declaration"; then
5835 echo '#ifdef __cplusplus' >>confdefs.h
5836 echo $ac_declaration >>confdefs.h
5837 echo '#endif' >>confdefs.h
5838fi
5839
5840else
5841 echo "$as_me: failed program was:" >&5
5842sed 's/^/| /' conftest.$ac_ext >&5
5843
5844fi
ab509236 5845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5846ac_ext=c
5847ac_cpp='$CPP $CPPFLAGS'
5848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850ac_compiler_gnu=$ac_cv_c_compiler_gnu
c8615825
AM
5851
5852
5853for ac_prog in 'bison -y' byacc
9b2b7d69 5854do
13b2be9c 5855 # Extract the first word of "$ac_prog", so it can be a program name with args.
c8615825 5856set dummy $ac_prog; ac_word=$2
13b2be9c
DJ
5857echo "$as_me:$LINENO: checking for $ac_word" >&5
5858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5859if test "${ac_cv_prog_YACC+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825
AM
5861else
5862 if test -n "$YACC"; then
5863 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5864else
13b2be9c
DJ
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_YACC="$ac_prog"
5873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876done
5877done
5878
c8615825
AM
5879fi
5880fi
13b2be9c 5881YACC=$ac_cv_prog_YACC
c8615825 5882if test -n "$YACC"; then
13b2be9c
DJ
5883 echo "$as_me:$LINENO: result: $YACC" >&5
5884echo "${ECHO_T}$YACC" >&6
c8615825 5885else
13b2be9c
DJ
5886 echo "$as_me:$LINENO: result: no" >&5
5887echo "${ECHO_T}no" >&6
c8615825
AM
5888fi
5889
13b2be9c 5890 test -n "$YACC" && break
c8615825
AM
5891done
5892test -n "$YACC" || YACC="yacc"
5893
13b2be9c
DJ
5894for ac_prog in flex lex
5895do
5896 # Extract the first word of "$ac_prog", so it can be a program name with args.
5897set dummy $ac_prog; ac_word=$2
5898echo "$as_me:$LINENO: checking for $ac_word" >&5
5899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5900if test "${ac_cv_prog_LEX+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 5902else
13b2be9c
DJ
5903 if test -n "$LEX"; then
5904 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9b2b7d69 5905else
13b2be9c
DJ
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913 ac_cv_prog_LEX="$ac_prog"
5914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 break 2
5916 fi
5917done
5918done
5919
5920fi
5921fi
5922LEX=$ac_cv_prog_LEX
5923if test -n "$LEX"; then
5924 echo "$as_me:$LINENO: result: $LEX" >&5
5925echo "${ECHO_T}$LEX" >&6
c8615825 5926else
13b2be9c
DJ
5927 echo "$as_me:$LINENO: result: no" >&5
5928echo "${ECHO_T}no" >&6
5929fi
5930
5931 test -n "$LEX" && break
5932done
5933test -n "$LEX" || LEX=":"
5934
5935if test -z "$LEXLIB"
5936then
5937 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5938echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5939if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941else
5942 ac_check_lib_save_LIBS=$LIBS
5943LIBS="-lfl $LIBS"
5944cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5945/* confdefs.h. */
5946_ACEOF
5947cat confdefs.h >>conftest.$ac_ext
5948cat >>conftest.$ac_ext <<_ACEOF
5949/* end confdefs.h. */
5950
5951/* Override any gcc2 internal prototype to avoid an error. */
5952#ifdef __cplusplus
5953extern "C"
5954#endif
5955/* We use char because int might match the return type of a gcc2
5956 builtin and then its argument prototype would still apply. */
5957char yywrap ();
5958int
5959main ()
5960{
5961yywrap ();
5962 ;
5963 return 0;
5964}
5965_ACEOF
5966rm -f conftest.$ac_objext conftest$ac_exeext
5967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 5968 (eval $ac_link) 2>conftest.er1
13b2be9c 5969 ac_status=$?
ab509236
L
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
13b2be9c
DJ
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } &&
1ad12f97
NC
5975 { ac_try='test -z "$ac_c_werror_flag"
5976 || test ! -s conftest.err'
ab509236
L
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 (eval $ac_try) 2>&5
5979 ac_status=$?
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; } &&
5982 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 (eval $ac_try) 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5988 ac_cv_lib_fl_yywrap=yes
5989else
5990 echo "$as_me: failed program was:" >&5
5991sed 's/^/| /' conftest.$ac_ext >&5
5992
5993ac_cv_lib_fl_yywrap=no
5994fi
ab509236
L
5995rm -f conftest.err conftest.$ac_objext \
5996 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
5997LIBS=$ac_check_lib_save_LIBS
5998fi
5999echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6000echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
6001if test $ac_cv_lib_fl_yywrap = yes; then
6002 LEXLIB="-lfl"
6003else
6004 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6005echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
6006if test "${ac_cv_lib_l_yywrap+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6008else
6009 ac_check_lib_save_LIBS=$LIBS
6010LIBS="-ll $LIBS"
6011cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6012/* confdefs.h. */
6013_ACEOF
6014cat confdefs.h >>conftest.$ac_ext
6015cat >>conftest.$ac_ext <<_ACEOF
6016/* end confdefs.h. */
6017
6018/* Override any gcc2 internal prototype to avoid an error. */
6019#ifdef __cplusplus
6020extern "C"
6021#endif
6022/* We use char because int might match the return type of a gcc2
6023 builtin and then its argument prototype would still apply. */
6024char yywrap ();
6025int
6026main ()
6027{
6028yywrap ();
6029 ;
6030 return 0;
6031}
6032_ACEOF
6033rm -f conftest.$ac_objext conftest$ac_exeext
6034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 6035 (eval $ac_link) 2>conftest.er1
13b2be9c 6036 ac_status=$?
ab509236
L
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
13b2be9c
DJ
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } &&
1ad12f97
NC
6042 { ac_try='test -z "$ac_c_werror_flag"
6043 || test ! -s conftest.err'
ab509236
L
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 (eval $ac_try) 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; } &&
6049 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051 (eval $ac_try) 2>&5
6052 ac_status=$?
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; }; then
6055 ac_cv_lib_l_yywrap=yes
9b2b7d69 6056else
13b2be9c
DJ
6057 echo "$as_me: failed program was:" >&5
6058sed 's/^/| /' conftest.$ac_ext >&5
6059
6060ac_cv_lib_l_yywrap=no
9b2b7d69 6061fi
ab509236
L
6062rm -f conftest.err conftest.$ac_objext \
6063 conftest$ac_exeext conftest.$ac_ext
13b2be9c 6064LIBS=$ac_check_lib_save_LIBS
9b2b7d69 6065fi
13b2be9c
DJ
6066echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6067echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6068if test $ac_cv_lib_l_yywrap = yes; then
6069 LEXLIB="-ll"
252b5132 6070fi
13b2be9c
DJ
6071
6072fi
6073
252b5132 6074fi
13b2be9c
DJ
6075
6076if test "x$LEX" != "x:"; then
6077 echo "$as_me:$LINENO: checking lex output file root" >&5
6078echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6079if test "${ac_cv_prog_lex_root+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081else
6082 # The minimal lex program is just a single line: %%. But some broken lexes
6083# (Solaris, I think it was) want two %% lines, so accommodate them.
6084cat >conftest.l <<_ACEOF
6085%%
6086%%
6087_ACEOF
6088{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6089 (eval $LEX conftest.l) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }
6093if test -f lex.yy.c; then
6094 ac_cv_prog_lex_root=lex.yy
6095elif test -f lexyy.c; then
6096 ac_cv_prog_lex_root=lexyy
252b5132 6097else
13b2be9c
DJ
6098 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6099echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6100 { (exit 1); exit 1; }; }
252b5132 6101fi
13b2be9c
DJ
6102fi
6103echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6104echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6105rm -f conftest.l
6106LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
252b5132 6107
13b2be9c
DJ
6108echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6109echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6110if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6112else
13b2be9c
DJ
6113 # POSIX says lex can declare yytext either as a pointer or an array; the
6114# default is implementation-dependent. Figure out which it is, since
6115# not all implementations provide the %pointer and %array declarations.
6116ac_cv_prog_lex_yytext_pointer=no
6117echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6118ac_save_LIBS=$LIBS
6119LIBS="$LIBS $LEXLIB"
6120cat >conftest.$ac_ext <<_ACEOF
6121`cat $LEX_OUTPUT_ROOT.c`
6122_ACEOF
6123rm -f conftest.$ac_objext conftest$ac_exeext
6124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 6125 (eval $ac_link) 2>conftest.er1
13b2be9c 6126 ac_status=$?
ab509236
L
6127 grep -v '^ *+' conftest.er1 >conftest.err
6128 rm -f conftest.er1
6129 cat conftest.err >&5
13b2be9c
DJ
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
1ad12f97
NC
6132 { ac_try='test -z "$ac_c_werror_flag"
6133 || test ! -s conftest.err'
ab509236
L
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 (eval $ac_try) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; } &&
6139 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 ac_cv_prog_lex_yytext_pointer=yes
252b5132 6146else
13b2be9c
DJ
6147 echo "$as_me: failed program was:" >&5
6148sed 's/^/| /' conftest.$ac_ext >&5
6149
252b5132 6150fi
ab509236
L
6151rm -f conftest.err conftest.$ac_objext \
6152 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
6153LIBS=$ac_save_LIBS
6154rm -f "${LEX_OUTPUT_ROOT}.c"
6155
252b5132 6156fi
13b2be9c
DJ
6157echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6158echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6159if test $ac_cv_prog_lex_yytext_pointer = yes; then
6160
6161cat >>confdefs.h <<\_ACEOF
6162#define YYTEXT_POINTER 1
6163_ACEOF
6164
6165fi
6166
6167fi
6168if test "$LEX" = :; then
6169 LEX=${am_missing_run}flex
6170fi
6171
0d6af1ab 6172ALL_LINGUAS="fr tr es rw"
13b2be9c
DJ
6173if test -n "$ac_tool_prefix"; then
6174 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6175set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6176echo "$as_me:$LINENO: checking for $ac_word" >&5
6177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6178if test "${ac_cv_prog_RANLIB+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180else
6181 if test -n "$RANLIB"; then
6182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195done
6196done
6197
6198fi
6199fi
6200RANLIB=$ac_cv_prog_RANLIB
6201if test -n "$RANLIB"; then
6202 echo "$as_me:$LINENO: result: $RANLIB" >&5
6203echo "${ECHO_T}$RANLIB" >&6
252b5132 6204else
13b2be9c
DJ
6205 echo "$as_me:$LINENO: result: no" >&5
6206echo "${ECHO_T}no" >&6
252b5132
RH
6207fi
6208
13b2be9c
DJ
6209fi
6210if test -z "$ac_cv_prog_RANLIB"; then
6211 ac_ct_RANLIB=$RANLIB
6212 # Extract the first word of "ranlib", so it can be a program name with args.
6213set dummy ranlib; ac_word=$2
6214echo "$as_me:$LINENO: checking for $ac_word" >&5
6215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6216if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218else
6219 if test -n "$ac_ct_RANLIB"; then
6220 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6221else
6222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223for as_dir in $PATH
6224do
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6229 ac_cv_prog_ac_ct_RANLIB="ranlib"
6230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 break 2
6232 fi
6233done
6840198f 6234done
d6d788bd 6235
13b2be9c
DJ
6236 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6237fi
6238fi
6239ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6240if test -n "$ac_ct_RANLIB"; then
6241 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6242echo "${ECHO_T}$ac_ct_RANLIB" >&6
d6d788bd 6243else
13b2be9c
DJ
6244 echo "$as_me:$LINENO: result: no" >&5
6245echo "${ECHO_T}no" >&6
6246fi
6247
6248 RANLIB=$ac_ct_RANLIB
d6d788bd 6249else
13b2be9c
DJ
6250 RANLIB="$ac_cv_prog_RANLIB"
6251fi
6252
6253ac_ext=c
6254ac_cpp='$CPP $CPPFLAGS'
6255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257ac_compiler_gnu=$ac_cv_c_compiler_gnu
6258echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6259echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6260# On Suns, sometimes $CPP names a directory.
6261if test -n "$CPP" && test -d "$CPP"; then
6262 CPP=
d6d788bd 6263fi
13b2be9c
DJ
6264if test -z "$CPP"; then
6265 if test "${ac_cv_prog_CPP+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267else
6268 # Double quotes because CPP needs to be expanded
6269 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6270 do
6271 ac_preproc_ok=false
6272for ac_c_preproc_warn_flag in '' yes
6273do
6274 # Use a header file that comes with gcc, so configuring glibc
6275 # with a fresh cross-compiler works.
6276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6277 # <limits.h> exists even on freestanding compilers.
6278 # On the NeXT, cc -E runs the code through the compiler's parser,
6279 # not just through cpp. "Syntax error" is here to catch this case.
6280 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6281/* confdefs.h. */
6282_ACEOF
6283cat confdefs.h >>conftest.$ac_ext
6284cat >>conftest.$ac_ext <<_ACEOF
6285/* end confdefs.h. */
6286#ifdef __STDC__
6287# include <limits.h>
6288#else
6289# include <assert.h>
6290#endif
ab509236 6291 Syntax error
13b2be9c
DJ
6292_ACEOF
6293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } >/dev/null; then
6301 if test -s conftest.err; then
6302 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6304 else
6305 ac_cpp_err=
6306 fi
6307else
6308 ac_cpp_err=yes
d6d788bd 6309fi
13b2be9c
DJ
6310if test -z "$ac_cpp_err"; then
6311 :
6312else
6313 echo "$as_me: failed program was:" >&5
6314sed 's/^/| /' conftest.$ac_ext >&5
6315
6316 # Broken: fails on valid input.
6317continue
6318fi
6319rm -f conftest.err conftest.$ac_ext
6320
6321 # OK, works on sane cases. Now check whether non-existent headers
6322 # can be detected and how.
6323 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6324/* confdefs.h. */
6325_ACEOF
6326cat confdefs.h >>conftest.$ac_ext
6327cat >>conftest.$ac_ext <<_ACEOF
6328/* end confdefs.h. */
6329#include <ac_nonexistent.h>
6330_ACEOF
6331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } >/dev/null; then
6339 if test -s conftest.err; then
6340 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6342 else
6343 ac_cpp_err=
6344 fi
d6d788bd 6345else
13b2be9c 6346 ac_cpp_err=yes
d6d788bd 6347fi
13b2be9c
DJ
6348if test -z "$ac_cpp_err"; then
6349 # Broken: success on invalid input.
6350continue
6351else
6352 echo "$as_me: failed program was:" >&5
6353sed 's/^/| /' conftest.$ac_ext >&5
6840198f 6354
13b2be9c
DJ
6355 # Passes both tests.
6356ac_preproc_ok=:
6357break
6358fi
6359rm -f conftest.err conftest.$ac_ext
252b5132 6360
13b2be9c
DJ
6361done
6362# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6363rm -f conftest.err conftest.$ac_ext
6364if $ac_preproc_ok; then
6365 break
9b2b7d69 6366fi
13b2be9c
DJ
6367
6368 done
6369 ac_cv_prog_CPP=$CPP
9b2b7d69 6370
d6d788bd 6371fi
13b2be9c 6372 CPP=$ac_cv_prog_CPP
c8615825 6373else
13b2be9c 6374 ac_cv_prog_CPP=$CPP
c8615825 6375fi
13b2be9c
DJ
6376echo "$as_me:$LINENO: result: $CPP" >&5
6377echo "${ECHO_T}$CPP" >&6
6378ac_preproc_ok=false
6379for ac_c_preproc_warn_flag in '' yes
6380do
6381 # Use a header file that comes with gcc, so configuring glibc
6382 # with a fresh cross-compiler works.
6383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6384 # <limits.h> exists even on freestanding compilers.
6385 # On the NeXT, cc -E runs the code through the compiler's parser,
6386 # not just through cpp. "Syntax error" is here to catch this case.
6387 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6388/* confdefs.h. */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h. */
6393#ifdef __STDC__
6394# include <limits.h>
6395#else
6396# include <assert.h>
6397#endif
ab509236 6398 Syntax error
13b2be9c
DJ
6399_ACEOF
6400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } >/dev/null; then
6408 if test -s conftest.err; then
6409 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6411 else
6412 ac_cpp_err=
6413 fi
6414else
6415 ac_cpp_err=yes
252b5132 6416fi
13b2be9c
DJ
6417if test -z "$ac_cpp_err"; then
6418 :
252b5132 6419else
13b2be9c
DJ
6420 echo "$as_me: failed program was:" >&5
6421sed 's/^/| /' conftest.$ac_ext >&5
6422
6423 # Broken: fails on valid input.
6424continue
6425fi
6426rm -f conftest.err conftest.$ac_ext
6427
6428 # OK, works on sane cases. Now check whether non-existent headers
6429 # can be detected and how.
6430 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6431/* confdefs.h. */
6432_ACEOF
6433cat confdefs.h >>conftest.$ac_ext
6434cat >>conftest.$ac_ext <<_ACEOF
6435/* end confdefs.h. */
6436#include <ac_nonexistent.h>
6437_ACEOF
6438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6440 ac_status=$?
6441 grep -v '^ *+' conftest.er1 >conftest.err
6442 rm -f conftest.er1
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } >/dev/null; then
6446 if test -s conftest.err; then
6447 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6449 else
6450 ac_cpp_err=
6451 fi
252b5132 6452else
13b2be9c 6453 ac_cpp_err=yes
252b5132 6454fi
13b2be9c
DJ
6455if test -z "$ac_cpp_err"; then
6456 # Broken: success on invalid input.
6457continue
252b5132 6458else
13b2be9c
DJ
6459 echo "$as_me: failed program was:" >&5
6460sed 's/^/| /' conftest.$ac_ext >&5
c8615825 6461
13b2be9c
DJ
6462 # Passes both tests.
6463ac_preproc_ok=:
6464break
252b5132 6465fi
13b2be9c 6466rm -f conftest.err conftest.$ac_ext
252b5132 6467
13b2be9c
DJ
6468done
6469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6470rm -f conftest.err conftest.$ac_ext
6471if $ac_preproc_ok; then
6472 :
6473else
6474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6475See \`config.log' for more details." >&5
6476echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6477See \`config.log' for more details." >&2;}
6478 { (exit 1); exit 1; }; }
252b5132 6479fi
9b2b7d69 6480
13b2be9c
DJ
6481ac_ext=c
6482ac_cpp='$CPP $CPPFLAGS'
6483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6485ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132
RH
6486
6487
13b2be9c
DJ
6488echo "$as_me:$LINENO: checking for egrep" >&5
6489echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6490if test "${ac_cv_prog_egrep+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 6492else
13b2be9c
DJ
6493 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6494 then ac_cv_prog_egrep='grep -E'
6495 else ac_cv_prog_egrep='egrep'
c8615825 6496 fi
6840198f 6497fi
13b2be9c
DJ
6498echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6499echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6500 EGREP=$ac_cv_prog_egrep
6840198f 6501
13b2be9c
DJ
6502
6503echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6504echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6505if test "${ac_cv_header_stdc+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6840198f 6507else
13b2be9c 6508 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6509/* confdefs.h. */
6510_ACEOF
6511cat confdefs.h >>conftest.$ac_ext
6512cat >>conftest.$ac_ext <<_ACEOF
6513/* end confdefs.h. */
252b5132
RH
6514#include <stdlib.h>
6515#include <stdarg.h>
6516#include <string.h>
6517#include <float.h>
13b2be9c
DJ
6518
6519int
6520main ()
6521{
6522
6523 ;
6524 return 0;
6525}
6526_ACEOF
6527rm -f conftest.$ac_objext
6528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6529 (eval $ac_compile) 2>conftest.er1
13b2be9c 6530 ac_status=$?
ab509236
L
6531 grep -v '^ *+' conftest.er1 >conftest.err
6532 rm -f conftest.er1
6533 cat conftest.err >&5
13b2be9c
DJ
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } &&
1ad12f97
NC
6536 { ac_try='test -z "$ac_c_werror_flag"
6537 || test ! -s conftest.err'
ab509236
L
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; } &&
6543 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 (eval $ac_try) 2>&5
6546 ac_status=$?
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; }; then
252b5132
RH
6549 ac_cv_header_stdc=yes
6550else
13b2be9c
DJ
6551 echo "$as_me: failed program was:" >&5
6552sed 's/^/| /' conftest.$ac_ext >&5
6553
6554ac_cv_header_stdc=no
252b5132 6555fi
ab509236 6556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
6557
6558if test $ac_cv_header_stdc = yes; then
6559 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13b2be9c 6560 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6561/* confdefs.h. */
6562_ACEOF
6563cat confdefs.h >>conftest.$ac_ext
6564cat >>conftest.$ac_ext <<_ACEOF
6565/* end confdefs.h. */
252b5132 6566#include <string.h>
13b2be9c
DJ
6567
6568_ACEOF
252b5132 6569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 6570 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
6571 :
6572else
252b5132
RH
6573 ac_cv_header_stdc=no
6574fi
6575rm -f conftest*
6576
6577fi
6578
6579if test $ac_cv_header_stdc = yes; then
6580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13b2be9c 6581 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6582/* confdefs.h. */
6583_ACEOF
6584cat confdefs.h >>conftest.$ac_ext
6585cat >>conftest.$ac_ext <<_ACEOF
6586/* end confdefs.h. */
252b5132 6587#include <stdlib.h>
13b2be9c
DJ
6588
6589_ACEOF
252b5132 6590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 6591 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
6592 :
6593else
252b5132
RH
6594 ac_cv_header_stdc=no
6595fi
6596rm -f conftest*
6597
6598fi
6599
6600if test $ac_cv_header_stdc = yes; then
6601 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13b2be9c 6602 if test "$cross_compiling" = yes; then
252b5132
RH
6603 :
6604else
13b2be9c 6605 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6606/* confdefs.h. */
6607_ACEOF
6608cat confdefs.h >>conftest.$ac_ext
6609cat >>conftest.$ac_ext <<_ACEOF
6610/* end confdefs.h. */
252b5132 6611#include <ctype.h>
13b2be9c
DJ
6612#if ((' ' & 0x0FF) == 0x020)
6613# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6614# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6615#else
6616# define ISLOWER(c) \
ab509236
L
6617 (('a' <= (c) && (c) <= 'i') \
6618 || ('j' <= (c) && (c) <= 'r') \
6619 || ('s' <= (c) && (c) <= 'z'))
13b2be9c
DJ
6620# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6621#endif
c8615825 6622
13b2be9c
DJ
6623#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6624int
6625main ()
6626{
6627 int i;
6628 for (i = 0; i < 256; i++)
6629 if (XOR (islower (i), ISLOWER (i))
ab509236 6630 || toupper (i) != TOUPPER (i))
13b2be9c
DJ
6631 exit(2);
6632 exit (0);
6633}
6634_ACEOF
6635rm -f conftest$ac_exeext
6636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6637 (eval $ac_link) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 (eval $ac_try) 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
c8615825
AM
6646 :
6647else
13b2be9c
DJ
6648 echo "$as_me: program exited with status $ac_status" >&5
6649echo "$as_me: failed program was:" >&5
6650sed 's/^/| /' conftest.$ac_ext >&5
6651
6652( exit $ac_status )
6653ac_cv_header_stdc=no
c8615825 6654fi
ab509236 6655rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c8615825 6656fi
c8615825 6657fi
9b2b7d69 6658fi
13b2be9c
DJ
6659echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6660echo "${ECHO_T}$ac_cv_header_stdc" >&6
c8615825 6661if test $ac_cv_header_stdc = yes; then
13b2be9c
DJ
6662
6663cat >>confdefs.h <<\_ACEOF
c8615825 6664#define STDC_HEADERS 1
13b2be9c 6665_ACEOF
9b2b7d69 6666
c8615825
AM
6667fi
6668
13b2be9c
DJ
6669echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6670echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6671if test "${ac_cv_c_const+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673else
6674 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6675/* confdefs.h. */
6676_ACEOF
6677cat confdefs.h >>conftest.$ac_ext
6678cat >>conftest.$ac_ext <<_ACEOF
6679/* end confdefs.h. */
c8615825 6680
13b2be9c
DJ
6681int
6682main ()
6683{
6684/* FIXME: Include the comments suggested by Paul. */
6685#ifndef __cplusplus
6686 /* Ultrix mips cc rejects this. */
6687 typedef int charset[2];
6688 const charset x;
6689 /* SunOS 4.1.1 cc rejects this. */
6690 char const *const *ccp;
6691 char **p;
6692 /* NEC SVR4.0.2 mips cc rejects this. */
6693 struct point {int x, y;};
6694 static struct point const zero = {0,0};
6695 /* AIX XL C 1.02.0.0 rejects this.
6696 It does not let you subtract one const X* pointer from another in
6697 an arm of an if-expression whose if-part is not a constant
6698 expression */
6699 const char *g = "string";
6700 ccp = &g + (g ? g-g : 0);
6701 /* HPUX 7.0 cc rejects these. */
6702 ++ccp;
6703 p = (char**) ccp;
6704 ccp = (char const *const *) p;
6705 { /* SCO 3.2v4 cc rejects this. */
6706 char *t;
6707 char const *s = 0 ? (char *) 0 : (char const *) 0;
6708
6709 *t++ = 0;
6710 }
6711 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6712 int x[] = {25, 17};
6713 const int *foo = &x[0];
6714 ++foo;
6715 }
6716 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6717 typedef const int *iptr;
6718 iptr p = 0;
6719 ++p;
6720 }
6721 { /* AIX XL C 1.02.0.0 rejects this saying
6722 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6723 struct s { int j; const int *ap[3]; };
6724 struct s *b; b->j = 5;
6725 }
6726 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6727 const int foo = 10;
6728 }
6729#endif
6730
6731 ;
6732 return 0;
6733}
6734_ACEOF
6735rm -f conftest.$ac_objext
6736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6737 (eval $ac_compile) 2>conftest.er1
13b2be9c 6738 ac_status=$?
ab509236
L
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
13b2be9c
DJ
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
1ad12f97
NC
6744 { ac_try='test -z "$ac_c_werror_flag"
6745 || test ! -s conftest.err'
ab509236
L
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 (eval $ac_try) 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } &&
6751 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 (eval $ac_try) 2>&5
6754 ac_status=$?
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
252b5132
RH
6757 ac_cv_c_const=yes
6758else
13b2be9c
DJ
6759 echo "$as_me: failed program was:" >&5
6760sed 's/^/| /' conftest.$ac_ext >&5
6761
6762ac_cv_c_const=no
252b5132 6763fi
ab509236 6764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6765fi
13b2be9c
DJ
6766echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6767echo "${ECHO_T}$ac_cv_c_const" >&6
c8615825 6768if test $ac_cv_c_const = no; then
13b2be9c
DJ
6769
6770cat >>confdefs.h <<\_ACEOF
6771#define const
6772_ACEOF
252b5132
RH
6773
6774fi
6775
13b2be9c
DJ
6776echo "$as_me:$LINENO: checking for inline" >&5
6777echo $ECHO_N "checking for inline... $ECHO_C" >&6
6778if test "${ac_cv_c_inline+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6780else
6781 ac_cv_c_inline=no
6782for ac_kw in inline __inline__ __inline; do
13b2be9c 6783 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6784/* confdefs.h. */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h. */
6789#ifndef __cplusplus
6790typedef int foo_t;
6791static $ac_kw foo_t static_foo () {return 0; }
6792$ac_kw foo_t foo () {return 0; }
6793#endif
252b5132 6794
13b2be9c
DJ
6795_ACEOF
6796rm -f conftest.$ac_objext
6797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6798 (eval $ac_compile) 2>conftest.er1
13b2be9c 6799 ac_status=$?
ab509236
L
6800 grep -v '^ *+' conftest.er1 >conftest.err
6801 rm -f conftest.er1
6802 cat conftest.err >&5
13b2be9c
DJ
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } &&
1ad12f97
NC
6805 { ac_try='test -z "$ac_c_werror_flag"
6806 || test ! -s conftest.err'
ab509236
L
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; } &&
6812 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5
6815 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; }; then
d6d788bd 6818 ac_cv_c_inline=$ac_kw; break
6840198f 6819else
13b2be9c
DJ
6820 echo "$as_me: failed program was:" >&5
6821sed 's/^/| /' conftest.$ac_ext >&5
6822
6840198f 6823fi
ab509236 6824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d6d788bd 6825done
6840198f
NC
6826
6827fi
13b2be9c
DJ
6828echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6829echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
6830
6831
13b2be9c 6832case $ac_cv_c_inline in
d6d788bd 6833 inline | yes) ;;
ab509236
L
6834 *)
6835 case $ac_cv_c_inline in
6836 no) ac_val=;;
6837 *) ac_val=$ac_cv_c_inline;;
6838 esac
6839 cat >>confdefs.h <<_ACEOF
6840#ifndef __cplusplus
6841#define inline $ac_val
6842#endif
13b2be9c 6843_ACEOF
ab509236 6844 ;;
d6d788bd
L
6845esac
6846
13b2be9c
DJ
6847# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ab509236 6858 inttypes.h stdint.h unistd.h
13b2be9c
DJ
6859do
6860as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6861echo "$as_me:$LINENO: checking for $ac_header" >&5
6862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6863if eval "test \"\${$as_ac_Header+set}\" = set"; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865else
6866 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6867/* confdefs.h. */
6868_ACEOF
6869cat confdefs.h >>conftest.$ac_ext
6870cat >>conftest.$ac_ext <<_ACEOF
6871/* end confdefs.h. */
6872$ac_includes_default
6873
6874#include <$ac_header>
6875_ACEOF
6876rm -f conftest.$ac_objext
6877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6878 (eval $ac_compile) 2>conftest.er1
13b2be9c 6879 ac_status=$?
ab509236
L
6880 grep -v '^ *+' conftest.er1 >conftest.err
6881 rm -f conftest.er1
6882 cat conftest.err >&5
13b2be9c
DJ
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } &&
1ad12f97
NC
6885 { ac_try='test -z "$ac_c_werror_flag"
6886 || test ! -s conftest.err'
ab509236
L
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; } &&
6892 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894 (eval $ac_try) 2>&5
6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; }; then
6898 eval "$as_ac_Header=yes"
6899else
6900 echo "$as_me: failed program was:" >&5
6901sed 's/^/| /' conftest.$ac_ext >&5
6902
6903eval "$as_ac_Header=no"
6904fi
ab509236 6905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
6906fi
6907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6909if test `eval echo '${'$as_ac_Header'}'` = yes; then
6910 cat >>confdefs.h <<_ACEOF
6911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6912_ACEOF
6913
6914fi
6915
6916done
6917
6918
6919echo "$as_me:$LINENO: checking for off_t" >&5
6920echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6921if test "${ac_cv_type_off_t+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6923else
13b2be9c 6924 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6925/* confdefs.h. */
6926_ACEOF
6927cat confdefs.h >>conftest.$ac_ext
6928cat >>conftest.$ac_ext <<_ACEOF
6929/* end confdefs.h. */
6930$ac_includes_default
6931int
6932main ()
6933{
6934if ((off_t *) 0)
6935 return 0;
6936if (sizeof (off_t))
6937 return 0;
6938 ;
6939 return 0;
6940}
6941_ACEOF
6942rm -f conftest.$ac_objext
6943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6944 (eval $ac_compile) 2>conftest.er1
13b2be9c 6945 ac_status=$?
ab509236
L
6946 grep -v '^ *+' conftest.er1 >conftest.err
6947 rm -f conftest.er1
6948 cat conftest.err >&5
13b2be9c
DJ
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } &&
1ad12f97
NC
6951 { ac_try='test -z "$ac_c_werror_flag"
6952 || test ! -s conftest.err'
ab509236
L
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 (eval $ac_try) 2>&5
6955 ac_status=$?
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; } &&
6958 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 (eval $ac_try) 2>&5
6961 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; }; then
a2d91340 6964 ac_cv_type_off_t=yes
252b5132 6965else
13b2be9c
DJ
6966 echo "$as_me: failed program was:" >&5
6967sed 's/^/| /' conftest.$ac_ext >&5
9b2b7d69 6968
13b2be9c 6969ac_cv_type_off_t=no
c8615825 6970fi
ab509236 6971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
6972fi
6973echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6974echo "${ECHO_T}$ac_cv_type_off_t" >&6
6975if test $ac_cv_type_off_t = yes; then
6976 :
6977else
6978
6979cat >>confdefs.h <<_ACEOF
252b5132 6980#define off_t long
13b2be9c 6981_ACEOF
252b5132
RH
6982
6983fi
6984
13b2be9c
DJ
6985echo "$as_me:$LINENO: checking for size_t" >&5
6986echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6987if test "${ac_cv_type_size_t+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6989else
13b2be9c 6990 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6991/* confdefs.h. */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h. */
6996$ac_includes_default
6997int
6998main ()
6999{
7000if ((size_t *) 0)
7001 return 0;
7002if (sizeof (size_t))
7003 return 0;
7004 ;
7005 return 0;
7006}
7007_ACEOF
7008rm -f conftest.$ac_objext
7009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 7010 (eval $ac_compile) 2>conftest.er1
13b2be9c 7011 ac_status=$?
ab509236
L
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
13b2be9c
DJ
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } &&
1ad12f97
NC
7017 { ac_try='test -z "$ac_c_werror_flag"
7018 || test ! -s conftest.err'
ab509236
L
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 (eval $ac_try) 2>&5
7021 ac_status=$?
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; } &&
7024 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
a2d91340 7030 ac_cv_type_size_t=yes
252b5132 7031else
13b2be9c
DJ
7032 echo "$as_me: failed program was:" >&5
7033sed 's/^/| /' conftest.$ac_ext >&5
9b2b7d69 7034
13b2be9c
DJ
7035ac_cv_type_size_t=no
7036fi
ab509236 7037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c8615825 7038fi
13b2be9c
DJ
7039echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7040echo "${ECHO_T}$ac_cv_type_size_t" >&6
7041if test $ac_cv_type_size_t = yes; then
7042 :
7043else
7044
7045cat >>confdefs.h <<_ACEOF
252b5132 7046#define size_t unsigned
13b2be9c 7047_ACEOF
252b5132
RH
7048
7049fi
7050
7051# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7052# for constant arguments. Useless!
13b2be9c
DJ
7053echo "$as_me:$LINENO: checking for working alloca.h" >&5
7054echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7055if test "${ac_cv_working_alloca_h+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057else
7058 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7059/* confdefs.h. */
7060_ACEOF
7061cat confdefs.h >>conftest.$ac_ext
7062cat >>conftest.$ac_ext <<_ACEOF
7063/* end confdefs.h. */
252b5132 7064#include <alloca.h>
13b2be9c
DJ
7065int
7066main ()
7067{
7068char *p = (char *) alloca (2 * sizeof (int));
7069 ;
7070 return 0;
7071}
7072_ACEOF
7073rm -f conftest.$ac_objext conftest$ac_exeext
7074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7075 (eval $ac_link) 2>conftest.er1
13b2be9c 7076 ac_status=$?
ab509236
L
7077 grep -v '^ *+' conftest.er1 >conftest.err
7078 rm -f conftest.er1
7079 cat conftest.err >&5
13b2be9c
DJ
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
1ad12f97
NC
7082 { ac_try='test -z "$ac_c_werror_flag"
7083 || test ! -s conftest.err'
ab509236
L
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 (eval $ac_try) 2>&5
7086 ac_status=$?
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; } &&
7089 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 (eval $ac_try) 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7095 ac_cv_working_alloca_h=yes
7096else
7097 echo "$as_me: failed program was:" >&5
7098sed 's/^/| /' conftest.$ac_ext >&5
7099
7100ac_cv_working_alloca_h=no
7101fi
ab509236
L
7102rm -f conftest.err conftest.$ac_objext \
7103 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7104fi
7105echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7106echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7107if test $ac_cv_working_alloca_h = yes; then
7108
7109cat >>confdefs.h <<\_ACEOF
252b5132 7110#define HAVE_ALLOCA_H 1
13b2be9c 7111_ACEOF
252b5132
RH
7112
7113fi
7114
13b2be9c
DJ
7115echo "$as_me:$LINENO: checking for alloca" >&5
7116echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7117if test "${ac_cv_func_alloca_works+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7119else
13b2be9c 7120 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7121/* confdefs.h. */
7122_ACEOF
7123cat confdefs.h >>conftest.$ac_ext
7124cat >>conftest.$ac_ext <<_ACEOF
7125/* end confdefs.h. */
252b5132
RH
7126#ifdef __GNUC__
7127# define alloca __builtin_alloca
7128#else
7129# ifdef _MSC_VER
7130# include <malloc.h>
7131# define alloca _alloca
7132# else
7133# if HAVE_ALLOCA_H
7134# include <alloca.h>
7135# else
7136# ifdef _AIX
7137 #pragma alloca
7138# else
7139# ifndef alloca /* predefined by HP cc +Olibcalls */
7140char *alloca ();
7141# endif
7142# endif
7143# endif
7144# endif
7145#endif
7146
13b2be9c
DJ
7147int
7148main ()
7149{
7150char *p = (char *) alloca (1);
7151 ;
7152 return 0;
7153}
7154_ACEOF
7155rm -f conftest.$ac_objext conftest$ac_exeext
7156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7157 (eval $ac_link) 2>conftest.er1
13b2be9c 7158 ac_status=$?
ab509236
L
7159 grep -v '^ *+' conftest.er1 >conftest.err
7160 rm -f conftest.er1
7161 cat conftest.err >&5
13b2be9c
DJ
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } &&
1ad12f97
NC
7164 { ac_try='test -z "$ac_c_werror_flag"
7165 || test ! -s conftest.err'
ab509236
L
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 (eval $ac_try) 2>&5
7168 ac_status=$?
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; } &&
7171 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 (eval $ac_try) 2>&5
7174 ac_status=$?
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
252b5132
RH
7177 ac_cv_func_alloca_works=yes
7178else
13b2be9c
DJ
7179 echo "$as_me: failed program was:" >&5
7180sed 's/^/| /' conftest.$ac_ext >&5
7181
7182ac_cv_func_alloca_works=no
252b5132 7183fi
ab509236
L
7184rm -f conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
252b5132 7186fi
13b2be9c
DJ
7187echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7188echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 7189
252b5132 7190if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 7191
13b2be9c
DJ
7192cat >>confdefs.h <<\_ACEOF
7193#define HAVE_ALLOCA 1
7194_ACEOF
9b2b7d69 7195
13b2be9c 7196else
c8615825 7197 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
7198# that cause trouble. Some versions do not even contain alloca or
7199# contain a buggy version. If you still want to use their alloca,
7200# use ar to extract alloca.o from them instead of compiling alloca.c.
7201
7202ALLOCA=alloca.$ac_objext
7203
7204cat >>confdefs.h <<\_ACEOF
252b5132 7205#define C_ALLOCA 1
13b2be9c 7206_ACEOF
252b5132 7207
d6d788bd 7208
13b2be9c
DJ
7209echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7210echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7211if test "${ac_cv_os_cray+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7213else
13b2be9c 7214 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7215/* confdefs.h. */
7216_ACEOF
7217cat confdefs.h >>conftest.$ac_ext
7218cat >>conftest.$ac_ext <<_ACEOF
7219/* end confdefs.h. */
252b5132
RH
7220#if defined(CRAY) && ! defined(CRAY2)
7221webecray
7222#else
7223wenotbecray
7224#endif
7225
13b2be9c 7226_ACEOF
252b5132 7227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 7228 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
7229 ac_cv_os_cray=yes
7230else
252b5132
RH
7231 ac_cv_os_cray=no
7232fi
7233rm -f conftest*
7234
7235fi
13b2be9c
DJ
7236echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7237echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 7238if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
7239 for ac_func in _getb67 GETB67 getb67; do
7240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7241echo "$as_me:$LINENO: checking for $ac_func" >&5
7242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7243if eval "test \"\${$as_ac_var+set}\" = set"; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7245else
7246 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7247/* confdefs.h. */
7248_ACEOF
7249cat confdefs.h >>conftest.$ac_ext
7250cat >>conftest.$ac_ext <<_ACEOF
7251/* end confdefs.h. */
ab509236
L
7252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7254#define $ac_func innocuous_$ac_func
7255
252b5132 7256/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7257 which can conflict with char $ac_func (); below.
7258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7259 <limits.h> exists even on freestanding compilers. */
ab509236 7260
13b2be9c
DJ
7261#ifdef __STDC__
7262# include <limits.h>
7263#else
7264# include <assert.h>
7265#endif
ab509236
L
7266
7267#undef $ac_func
7268
252b5132 7269/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7270#ifdef __cplusplus
7271extern "C"
7272{
7273#endif
252b5132 7274/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7275 builtin and then its argument prototype would still apply. */
7276char $ac_func ();
252b5132
RH
7277/* The GNU C library defines this for functions which it implements
7278 to always fail with ENOSYS. Some functions are actually named
7279 something starting with __ and the normal name is an alias. */
7280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7281choke me
7282#else
13b2be9c
DJ
7283char (*f) () = $ac_func;
7284#endif
7285#ifdef __cplusplus
7286}
252b5132
RH
7287#endif
7288
13b2be9c
DJ
7289int
7290main ()
7291{
7292return f != $ac_func;
7293 ;
7294 return 0;
7295}
7296_ACEOF
7297rm -f conftest.$ac_objext conftest$ac_exeext
7298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7299 (eval $ac_link) 2>conftest.er1
13b2be9c 7300 ac_status=$?
ab509236
L
7301 grep -v '^ *+' conftest.er1 >conftest.err
7302 rm -f conftest.er1
7303 cat conftest.err >&5
13b2be9c
DJ
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } &&
1ad12f97
NC
7306 { ac_try='test -z "$ac_c_werror_flag"
7307 || test ! -s conftest.err'
ab509236
L
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 (eval $ac_try) 2>&5
7310 ac_status=$?
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; } &&
7313 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 (eval $ac_try) 2>&5
7316 ac_status=$?
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); }; }; then
7319 eval "$as_ac_var=yes"
7320else
7321 echo "$as_me: failed program was:" >&5
7322sed 's/^/| /' conftest.$ac_ext >&5
7323
7324eval "$as_ac_var=no"
7325fi
ab509236
L
7326rm -f conftest.err conftest.$ac_objext \
7327 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7328fi
7329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7330echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7331if test `eval echo '${'$as_ac_var'}'` = yes; then
7332
7333cat >>confdefs.h <<_ACEOF
252b5132 7334#define CRAY_STACKSEG_END $ac_func
13b2be9c 7335_ACEOF
252b5132 7336
13b2be9c 7337 break
252b5132
RH
7338fi
7339
13b2be9c 7340 done
252b5132
RH
7341fi
7342
13b2be9c
DJ
7343echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7344echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7345if test "${ac_cv_c_stack_direction+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7347else
7348 if test "$cross_compiling" = yes; then
7349 ac_cv_c_stack_direction=0
7350else
13b2be9c 7351 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7352/* confdefs.h. */
7353_ACEOF
7354cat confdefs.h >>conftest.$ac_ext
7355cat >>conftest.$ac_ext <<_ACEOF
7356/* end confdefs.h. */
7357int
252b5132
RH
7358find_stack_direction ()
7359{
7360 static char *addr = 0;
7361 auto char dummy;
7362 if (addr == 0)
7363 {
7364 addr = &dummy;
7365 return find_stack_direction ();
7366 }
7367 else
7368 return (&dummy > addr) ? 1 : -1;
7369}
13b2be9c
DJ
7370
7371int
252b5132
RH
7372main ()
7373{
13b2be9c 7374 exit (find_stack_direction () < 0);
252b5132 7375}
13b2be9c
DJ
7376_ACEOF
7377rm -f conftest$ac_exeext
7378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7379 (eval $ac_link) 2>&5
7380 ac_status=$?
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 (eval $ac_try) 2>&5
7385 ac_status=$?
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; }; then
252b5132
RH
7388 ac_cv_c_stack_direction=1
7389else
13b2be9c
DJ
7390 echo "$as_me: program exited with status $ac_status" >&5
7391echo "$as_me: failed program was:" >&5
7392sed 's/^/| /' conftest.$ac_ext >&5
7393
7394( exit $ac_status )
7395ac_cv_c_stack_direction=-1
252b5132 7396fi
ab509236 7397rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 7398fi
252b5132 7399fi
13b2be9c
DJ
7400echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7401echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 7402
13b2be9c 7403cat >>confdefs.h <<_ACEOF
252b5132 7404#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
7405_ACEOF
7406
252b5132
RH
7407
7408fi
7409
13b2be9c
DJ
7410
7411
7412for ac_header in stdlib.h unistd.h
252b5132 7413do
13b2be9c
DJ
7414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7415if eval "test \"\${$as_ac_Header+set}\" = set"; then
7416 echo "$as_me:$LINENO: checking for $ac_header" >&5
7417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7418if eval "test \"\${$as_ac_Header+set}\" = set"; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7420fi
7421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7423else
7424 # Is the header compilable?
7425echo "$as_me:$LINENO: checking $ac_header usability" >&5
7426echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7427cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7428/* confdefs.h. */
7429_ACEOF
7430cat confdefs.h >>conftest.$ac_ext
7431cat >>conftest.$ac_ext <<_ACEOF
7432/* end confdefs.h. */
7433$ac_includes_default
7434#include <$ac_header>
7435_ACEOF
7436rm -f conftest.$ac_objext
7437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 7438 (eval $ac_compile) 2>conftest.er1
13b2be9c 7439 ac_status=$?
ab509236
L
7440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
13b2be9c
DJ
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } &&
1ad12f97
NC
7445 { ac_try='test -z "$ac_c_werror_flag"
7446 || test ! -s conftest.err'
ab509236
L
7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 (eval $ac_try) 2>&5
7449 ac_status=$?
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; } &&
7452 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 ac_header_compiler=yes
7459else
7460 echo "$as_me: failed program was:" >&5
7461sed 's/^/| /' conftest.$ac_ext >&5
7462
7463ac_header_compiler=no
7464fi
ab509236 7465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
7466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7467echo "${ECHO_T}$ac_header_compiler" >&6
7468
7469# Is the header present?
7470echo "$as_me:$LINENO: checking $ac_header presence" >&5
7471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7472cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7473/* confdefs.h. */
7474_ACEOF
7475cat confdefs.h >>conftest.$ac_ext
7476cat >>conftest.$ac_ext <<_ACEOF
7477/* end confdefs.h. */
7478#include <$ac_header>
7479_ACEOF
7480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7482 ac_status=$?
7483 grep -v '^ *+' conftest.er1 >conftest.err
7484 rm -f conftest.er1
7485 cat conftest.err >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } >/dev/null; then
7488 if test -s conftest.err; then
7489 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 7490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
7491 else
7492 ac_cpp_err=
7493 fi
252b5132 7494else
13b2be9c
DJ
7495 ac_cpp_err=yes
7496fi
7497if test -z "$ac_cpp_err"; then
7498 ac_header_preproc=yes
7499else
7500 echo "$as_me: failed program was:" >&5
7501sed 's/^/| /' conftest.$ac_ext >&5
7502
7503 ac_header_preproc=no
7504fi
7505rm -f conftest.err conftest.$ac_ext
7506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7507echo "${ECHO_T}$ac_header_preproc" >&6
7508
7509# So? What about this header?
ab509236
L
7510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7511 yes:no: )
13b2be9c
DJ
7512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
7514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7516 ac_header_preproc=yes
13b2be9c 7517 ;;
ab509236 7518 no:yes:* )
13b2be9c
DJ
7519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
7521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7522echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7526echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
7527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
7529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
7531 (
7532 cat <<\_ASBOX
ab509236
L
7533## ------------------------------------------ ##
7534## Report this to the AC_PACKAGE_NAME lists. ##
7535## ------------------------------------------ ##
13b2be9c
DJ
7536_ASBOX
7537 ) |
7538 sed "s/^/$as_me: WARNING: /" >&2
7539 ;;
7540esac
7541echo "$as_me:$LINENO: checking for $ac_header" >&5
7542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7543if eval "test \"\${$as_ac_Header+set}\" = set"; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545else
ab509236 7546 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 7547fi
13b2be9c
DJ
7548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7550
252b5132 7551fi
13b2be9c
DJ
7552if test `eval echo '${'$as_ac_Header'}'` = yes; then
7553 cat >>confdefs.h <<_ACEOF
7554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7555_ACEOF
7556
252b5132 7557fi
13b2be9c 7558
252b5132
RH
7559done
7560
13b2be9c 7561
252b5132
RH
7562for ac_func in getpagesize
7563do
13b2be9c
DJ
7564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7565echo "$as_me:$LINENO: checking for $ac_func" >&5
7566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7567if eval "test \"\${$as_ac_var+set}\" = set"; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7571/* confdefs.h. */
7572_ACEOF
7573cat confdefs.h >>conftest.$ac_ext
7574cat >>conftest.$ac_ext <<_ACEOF
7575/* end confdefs.h. */
ab509236
L
7576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7578#define $ac_func innocuous_$ac_func
7579
252b5132 7580/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7581 which can conflict with char $ac_func (); below.
7582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7583 <limits.h> exists even on freestanding compilers. */
ab509236 7584
13b2be9c
DJ
7585#ifdef __STDC__
7586# include <limits.h>
7587#else
7588# include <assert.h>
7589#endif
ab509236
L
7590
7591#undef $ac_func
7592
252b5132 7593/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7594#ifdef __cplusplus
7595extern "C"
7596{
7597#endif
252b5132 7598/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7599 builtin and then its argument prototype would still apply. */
7600char $ac_func ();
252b5132
RH
7601/* The GNU C library defines this for functions which it implements
7602 to always fail with ENOSYS. Some functions are actually named
7603 something starting with __ and the normal name is an alias. */
7604#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7605choke me
7606#else
13b2be9c
DJ
7607char (*f) () = $ac_func;
7608#endif
7609#ifdef __cplusplus
7610}
252b5132
RH
7611#endif
7612
13b2be9c
DJ
7613int
7614main ()
7615{
7616return f != $ac_func;
7617 ;
7618 return 0;
7619}
7620_ACEOF
7621rm -f conftest.$ac_objext conftest$ac_exeext
7622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7623 (eval $ac_link) 2>conftest.er1
13b2be9c 7624 ac_status=$?
ab509236
L
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
13b2be9c
DJ
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
1ad12f97
NC
7630 { ac_try='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
ab509236
L
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 (eval $ac_try) 2>&5
7634 ac_status=$?
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 (eval $ac_try) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 eval "$as_ac_var=yes"
7644else
7645 echo "$as_me: failed program was:" >&5
7646sed 's/^/| /' conftest.$ac_ext >&5
7647
7648eval "$as_ac_var=no"
7649fi
ab509236
L
7650rm -f conftest.err conftest.$ac_objext \
7651 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7652fi
7653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7654echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7655if test `eval echo '${'$as_ac_var'}'` = yes; then
7656 cat >>confdefs.h <<_ACEOF
7657#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7658_ACEOF
252b5132 7659
252b5132
RH
7660fi
7661done
7662
13b2be9c
DJ
7663echo "$as_me:$LINENO: checking for working mmap" >&5
7664echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7665if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7667else
7668 if test "$cross_compiling" = yes; then
7669 ac_cv_func_mmap_fixed_mapped=no
7670else
13b2be9c 7671 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7672/* confdefs.h. */
7673_ACEOF
7674cat confdefs.h >>conftest.$ac_ext
7675cat >>conftest.$ac_ext <<_ACEOF
7676/* end confdefs.h. */
7677$ac_includes_default
7678/* malloc might have been renamed as rpl_malloc. */
7679#undef malloc
d6d788bd 7680
252b5132
RH
7681/* Thanks to Mike Haertel and Jim Avera for this test.
7682 Here is a matrix of mmap possibilities:
7683 mmap private not fixed
7684 mmap private fixed at somewhere currently unmapped
7685 mmap private fixed at somewhere already mapped
7686 mmap shared not fixed
7687 mmap shared fixed at somewhere currently unmapped
7688 mmap shared fixed at somewhere already mapped
7689 For private mappings, we should verify that changes cannot be read()
7690 back from the file, nor mmap's back from the file at a different
7691 address. (There have been systems where private was not correctly
7692 implemented like the infamous i386 svr4.0, and systems where the
13b2be9c 7693 VM page cache was not coherent with the file system buffer cache
252b5132
RH
7694 like early versions of FreeBSD and possibly contemporary NetBSD.)
7695 For shared mappings, we should conversely verify that changes get
13b2be9c 7696 propagated back to all the places they're supposed to be.
252b5132
RH
7697
7698 Grep wants private fixed already mapped.
7699 The main things grep needs to know about mmap are:
7700 * does it exist and is it safe to write into the mmap'd area
7701 * how to use it (BSD variants) */
13b2be9c 7702
252b5132
RH
7703#include <fcntl.h>
7704#include <sys/mman.h>
7705
13b2be9c
DJ
7706#if !STDC_HEADERS && !HAVE_STDLIB_H
7707char *malloc ();
7708#endif
c8615825 7709
13b2be9c
DJ
7710/* This mess was copied from the GNU getpagesize.h. */
7711#if !HAVE_GETPAGESIZE
252b5132 7712/* Assume that all systems that can run configure have sys/param.h. */
13b2be9c 7713# if !HAVE_SYS_PARAM_H
252b5132
RH
7714# define HAVE_SYS_PARAM_H 1
7715# endif
7716
7717# ifdef _SC_PAGESIZE
7718# define getpagesize() sysconf(_SC_PAGESIZE)
7719# else /* no _SC_PAGESIZE */
13b2be9c 7720# if HAVE_SYS_PARAM_H
252b5132
RH
7721# include <sys/param.h>
7722# ifdef EXEC_PAGESIZE
7723# define getpagesize() EXEC_PAGESIZE
7724# else /* no EXEC_PAGESIZE */
7725# ifdef NBPG
7726# define getpagesize() NBPG * CLSIZE
7727# ifndef CLSIZE
7728# define CLSIZE 1
7729# endif /* no CLSIZE */
7730# else /* no NBPG */
7731# ifdef NBPC
7732# define getpagesize() NBPC
7733# else /* no NBPC */
7734# ifdef PAGESIZE
7735# define getpagesize() PAGESIZE
7736# endif /* PAGESIZE */
7737# endif /* no NBPC */
7738# endif /* no NBPG */
7739# endif /* no EXEC_PAGESIZE */
7740# else /* no HAVE_SYS_PARAM_H */
7741# define getpagesize() 8192 /* punt totally */
7742# endif /* no HAVE_SYS_PARAM_H */
7743# endif /* no _SC_PAGESIZE */
7744
7745#endif /* no HAVE_GETPAGESIZE */
7746
252b5132 7747int
13b2be9c 7748main ()
252b5132 7749{
13b2be9c
DJ
7750 char *data, *data2, *data3;
7751 int i, pagesize;
7752 int fd;
7753
7754 pagesize = getpagesize ();
7755
7756 /* First, make a file with some known garbage in it. */
7757 data = (char *) malloc (pagesize);
7758 if (!data)
7759 exit (1);
7760 for (i = 0; i < pagesize; ++i)
7761 *(data + i) = rand ();
7762 umask (0);
7763 fd = creat ("conftest.mmap", 0600);
7764 if (fd < 0)
7765 exit (1);
7766 if (write (fd, data, pagesize) != pagesize)
7767 exit (1);
7768 close (fd);
7769
7770 /* Next, try to mmap the file at a fixed address which already has
7771 something else allocated at it. If we can, also make sure that
7772 we see the same garbage. */
7773 fd = open ("conftest.mmap", O_RDWR);
7774 if (fd < 0)
7775 exit (1);
7776 data2 = (char *) malloc (2 * pagesize);
7777 if (!data2)
7778 exit (1);
ab509236 7779 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
13b2be9c 7780 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
ab509236 7781 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13b2be9c
DJ
7782 exit (1);
7783 for (i = 0; i < pagesize; ++i)
7784 if (*(data + i) != *(data2 + i))
7785 exit (1);
7786
7787 /* Finally, make sure that changes to the mapped area do not
7788 percolate back to the file as seen by read(). (This is a bug on
7789 some variants of i386 svr4.0.) */
7790 for (i = 0; i < pagesize; ++i)
7791 *(data2 + i) = *(data2 + i) + 1;
7792 data3 = (char *) malloc (pagesize);
7793 if (!data3)
7794 exit (1);
7795 if (read (fd, data3, pagesize) != pagesize)
7796 exit (1);
7797 for (i = 0; i < pagesize; ++i)
7798 if (*(data + i) != *(data3 + i))
7799 exit (1);
7800 close (fd);
7801 exit (0);
252b5132 7802}
13b2be9c
DJ
7803_ACEOF
7804rm -f conftest$ac_exeext
7805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7806 (eval $ac_link) 2>&5
7807 ac_status=$?
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 (eval $ac_try) 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
252b5132
RH
7815 ac_cv_func_mmap_fixed_mapped=yes
7816else
13b2be9c
DJ
7817 echo "$as_me: program exited with status $ac_status" >&5
7818echo "$as_me: failed program was:" >&5
7819sed 's/^/| /' conftest.$ac_ext >&5
7820
7821( exit $ac_status )
7822ac_cv_func_mmap_fixed_mapped=no
9b2b7d69 7823fi
ab509236 7824rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 7825fi
252b5132 7826fi
13b2be9c
DJ
7827echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7828echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
c8615825 7829if test $ac_cv_func_mmap_fixed_mapped = yes; then
13b2be9c
DJ
7830
7831cat >>confdefs.h <<\_ACEOF
9b2b7d69 7832#define HAVE_MMAP 1
13b2be9c 7833_ACEOF
9b2b7d69
MM
7834
7835fi
13b2be9c
DJ
7836rm -f conftest.mmap
7837
7838
7839
7840
7841
7842
7843
6840198f 7844
13b2be9c
DJ
7845
7846
7847
7848for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
7849unistd.h values.h sys/param.h
7850do
13b2be9c
DJ
7851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7852if eval "test \"\${$as_ac_Header+set}\" = set"; then
7853 echo "$as_me:$LINENO: checking for $ac_header" >&5
7854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7855if eval "test \"\${$as_ac_Header+set}\" = set"; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7857fi
7858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7859echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7860else
7861 # Is the header compilable?
7862echo "$as_me:$LINENO: checking $ac_header usability" >&5
7863echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7864cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7865/* confdefs.h. */
7866_ACEOF
7867cat confdefs.h >>conftest.$ac_ext
7868cat >>conftest.$ac_ext <<_ACEOF
7869/* end confdefs.h. */
7870$ac_includes_default
7871#include <$ac_header>
7872_ACEOF
7873rm -f conftest.$ac_objext
7874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 7875 (eval $ac_compile) 2>conftest.er1
13b2be9c 7876 ac_status=$?
ab509236
L
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
13b2be9c
DJ
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
1ad12f97
NC
7882 { ac_try='test -z "$ac_c_werror_flag"
7883 || test ! -s conftest.err'
ab509236
L
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; } &&
7889 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_header_compiler=yes
7896else
7897 echo "$as_me: failed program was:" >&5
7898sed 's/^/| /' conftest.$ac_ext >&5
7899
7900ac_header_compiler=no
7901fi
ab509236 7902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
7903echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7904echo "${ECHO_T}$ac_header_compiler" >&6
7905
7906# Is the header present?
7907echo "$as_me:$LINENO: checking $ac_header presence" >&5
7908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7909cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7910/* confdefs.h. */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h. */
7915#include <$ac_header>
7916_ACEOF
7917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7919 ac_status=$?
7920 grep -v '^ *+' conftest.er1 >conftest.err
7921 rm -f conftest.er1
7922 cat conftest.err >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } >/dev/null; then
7925 if test -s conftest.err; then
7926 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 7927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
7928 else
7929 ac_cpp_err=
7930 fi
9b2b7d69 7931else
13b2be9c
DJ
7932 ac_cpp_err=yes
7933fi
7934if test -z "$ac_cpp_err"; then
7935 ac_header_preproc=yes
7936else
7937 echo "$as_me: failed program was:" >&5
7938sed 's/^/| /' conftest.$ac_ext >&5
7939
7940 ac_header_preproc=no
7941fi
7942rm -f conftest.err conftest.$ac_ext
7943echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7944echo "${ECHO_T}$ac_header_preproc" >&6
7945
7946# So? What about this header?
ab509236
L
7947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7948 yes:no: )
13b2be9c
DJ
7949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
7951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7952echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7953 ac_header_preproc=yes
13b2be9c 7954 ;;
ab509236 7955 no:yes:* )
13b2be9c
DJ
7956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
7958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7961echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7963echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
7964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
7966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7967echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
7968 (
7969 cat <<\_ASBOX
ab509236
L
7970## ------------------------------------------ ##
7971## Report this to the AC_PACKAGE_NAME lists. ##
7972## ------------------------------------------ ##
13b2be9c
DJ
7973_ASBOX
7974 ) |
7975 sed "s/^/$as_me: WARNING: /" >&2
7976 ;;
7977esac
7978echo "$as_me:$LINENO: checking for $ac_header" >&5
7979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7980if eval "test \"\${$as_ac_Header+set}\" = set"; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982else
ab509236 7983 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 7984fi
13b2be9c
DJ
7985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7986echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7987
252b5132 7988fi
13b2be9c
DJ
7989if test `eval echo '${'$as_ac_Header'}'` = yes; then
7990 cat >>confdefs.h <<_ACEOF
7991#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7992_ACEOF
7993
252b5132 7994fi
13b2be9c 7995
252b5132
RH
7996done
7997
13b2be9c
DJ
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
8009__argz_count __argz_stringify __argz_next
8010do
13b2be9c
DJ
8011as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8012echo "$as_me:$LINENO: checking for $ac_func" >&5
8013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8014if eval "test \"\${$as_ac_var+set}\" = set"; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016else
8017 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8018/* confdefs.h. */
8019_ACEOF
8020cat confdefs.h >>conftest.$ac_ext
8021cat >>conftest.$ac_ext <<_ACEOF
8022/* end confdefs.h. */
ab509236
L
8023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8025#define $ac_func innocuous_$ac_func
8026
252b5132 8027/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
8028 which can conflict with char $ac_func (); below.
8029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8030 <limits.h> exists even on freestanding compilers. */
ab509236 8031
13b2be9c
DJ
8032#ifdef __STDC__
8033# include <limits.h>
8034#else
8035# include <assert.h>
8036#endif
ab509236
L
8037
8038#undef $ac_func
8039
252b5132 8040/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8041#ifdef __cplusplus
8042extern "C"
8043{
8044#endif
252b5132 8045/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8046 builtin and then its argument prototype would still apply. */
8047char $ac_func ();
252b5132
RH
8048/* The GNU C library defines this for functions which it implements
8049 to always fail with ENOSYS. Some functions are actually named
8050 something starting with __ and the normal name is an alias. */
8051#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8052choke me
8053#else
13b2be9c
DJ
8054char (*f) () = $ac_func;
8055#endif
8056#ifdef __cplusplus
8057}
252b5132
RH
8058#endif
8059
13b2be9c
DJ
8060int
8061main ()
8062{
8063return f != $ac_func;
8064 ;
8065 return 0;
8066}
8067_ACEOF
8068rm -f conftest.$ac_objext conftest$ac_exeext
8069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8070 (eval $ac_link) 2>conftest.er1
13b2be9c 8071 ac_status=$?
ab509236
L
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
13b2be9c
DJ
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
1ad12f97
NC
8077 { ac_try='test -z "$ac_c_werror_flag"
8078 || test ! -s conftest.err'
ab509236
L
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 (eval $ac_try) 2>&5
8081 ac_status=$?
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; } &&
8084 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 (eval $ac_try) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 eval "$as_ac_var=yes"
8091else
8092 echo "$as_me: failed program was:" >&5
8093sed 's/^/| /' conftest.$ac_ext >&5
8094
8095eval "$as_ac_var=no"
8096fi
ab509236
L
8097rm -f conftest.err conftest.$ac_objext \
8098 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8099fi
8100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8101echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8102if test `eval echo '${'$as_ac_var'}'` = yes; then
8103 cat >>confdefs.h <<_ACEOF
8104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8105_ACEOF
252b5132 8106
252b5132
RH
8107fi
8108done
8109
6840198f 8110
d6d788bd 8111 if test "${ac_cv_func_stpcpy+set}" != "set"; then
13b2be9c
DJ
8112
8113for ac_func in stpcpy
252b5132 8114do
13b2be9c
DJ
8115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8116echo "$as_me:$LINENO: checking for $ac_func" >&5
8117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8118if eval "test \"\${$as_ac_var+set}\" = set"; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120else
8121 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8122/* confdefs.h. */
8123_ACEOF
8124cat confdefs.h >>conftest.$ac_ext
8125cat >>conftest.$ac_ext <<_ACEOF
8126/* end confdefs.h. */
ab509236
L
8127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8129#define $ac_func innocuous_$ac_func
8130
252b5132 8131/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
8132 which can conflict with char $ac_func (); below.
8133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8134 <limits.h> exists even on freestanding compilers. */
ab509236 8135
13b2be9c
DJ
8136#ifdef __STDC__
8137# include <limits.h>
8138#else
8139# include <assert.h>
8140#endif
ab509236
L
8141
8142#undef $ac_func
8143
252b5132 8144/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8145#ifdef __cplusplus
8146extern "C"
8147{
8148#endif
252b5132 8149/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8150 builtin and then its argument prototype would still apply. */
8151char $ac_func ();
252b5132
RH
8152/* The GNU C library defines this for functions which it implements
8153 to always fail with ENOSYS. Some functions are actually named
8154 something starting with __ and the normal name is an alias. */
8155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8156choke me
8157#else
13b2be9c
DJ
8158char (*f) () = $ac_func;
8159#endif
8160#ifdef __cplusplus
8161}
252b5132
RH
8162#endif
8163
13b2be9c
DJ
8164int
8165main ()
8166{
8167return f != $ac_func;
8168 ;
8169 return 0;
8170}
8171_ACEOF
8172rm -f conftest.$ac_objext conftest$ac_exeext
8173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8174 (eval $ac_link) 2>conftest.er1
13b2be9c 8175 ac_status=$?
ab509236
L
8176 grep -v '^ *+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8178 cat conftest.err >&5
13b2be9c
DJ
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
1ad12f97
NC
8181 { ac_try='test -z "$ac_c_werror_flag"
8182 || test ! -s conftest.err'
ab509236
L
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 (eval $ac_try) 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 eval "$as_ac_var=yes"
8195else
8196 echo "$as_me: failed program was:" >&5
8197sed 's/^/| /' conftest.$ac_ext >&5
8198
8199eval "$as_ac_var=no"
8200fi
ab509236
L
8201rm -f conftest.err conftest.$ac_objext \
8202 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8203fi
8204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8205echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8206if test `eval echo '${'$as_ac_var'}'` = yes; then
8207 cat >>confdefs.h <<_ACEOF
8208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8209_ACEOF
252b5132 8210
252b5132
RH
8211fi
8212done
8213
8214 fi
8215 if test "${ac_cv_func_stpcpy}" = "yes"; then
13b2be9c
DJ
8216
8217cat >>confdefs.h <<\_ACEOF
252b5132 8218#define HAVE_STPCPY 1
13b2be9c 8219_ACEOF
252b5132
RH
8220
8221 fi
8222
8223 if test $ac_cv_header_locale_h = yes; then
13b2be9c
DJ
8224 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8225echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8226if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8230/* confdefs.h. */
8231_ACEOF
8232cat confdefs.h >>conftest.$ac_ext
8233cat >>conftest.$ac_ext <<_ACEOF
8234/* end confdefs.h. */
252b5132 8235#include <locale.h>
13b2be9c
DJ
8236int
8237main ()
8238{
252b5132 8239return LC_MESSAGES
13b2be9c
DJ
8240 ;
8241 return 0;
8242}
8243_ACEOF
8244rm -f conftest.$ac_objext conftest$ac_exeext
8245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8246 (eval $ac_link) 2>conftest.er1
13b2be9c 8247 ac_status=$?
ab509236
L
8248 grep -v '^ *+' conftest.er1 >conftest.err
8249 rm -f conftest.er1
8250 cat conftest.err >&5
13b2be9c
DJ
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
1ad12f97
NC
8253 { ac_try='test -z "$ac_c_werror_flag"
8254 || test ! -s conftest.err'
ab509236
L
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 (eval $ac_try) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; } &&
8260 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
252b5132
RH
8266 am_cv_val_LC_MESSAGES=yes
8267else
13b2be9c
DJ
8268 echo "$as_me: failed program was:" >&5
8269sed 's/^/| /' conftest.$ac_ext >&5
8270
8271am_cv_val_LC_MESSAGES=no
252b5132 8272fi
ab509236
L
8273rm -f conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext conftest.$ac_ext
252b5132 8275fi
13b2be9c
DJ
8276echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8277echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
c8615825 8278 if test $am_cv_val_LC_MESSAGES = yes; then
13b2be9c
DJ
8279
8280cat >>confdefs.h <<\_ACEOF
252b5132 8281#define HAVE_LC_MESSAGES 1
13b2be9c 8282_ACEOF
252b5132
RH
8283
8284 fi
8285 fi
13b2be9c
DJ
8286 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8287echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
8288 # Check whether --enable-nls or --disable-nls was given.
8289if test "${enable_nls+set}" = set; then
8290 enableval="$enable_nls"
8291 USE_NLS=$enableval
8292else
8293 USE_NLS=yes
13b2be9c
DJ
8294fi;
8295 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8296echo "${ECHO_T}$USE_NLS" >&6
d6d788bd 8297
252b5132
RH
8298
8299 USE_INCLUDED_LIBINTL=no
8300
8301 if test "$USE_NLS" = "yes"; then
13b2be9c
DJ
8302 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8303echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8304
8305# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
8306if test "${with_included_gettext+set}" = set; then
8307 withval="$with_included_gettext"
8308 nls_cv_force_use_gnu_gettext=$withval
8309else
8310 nls_cv_force_use_gnu_gettext=no
13b2be9c
DJ
8311fi;
8312 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8313echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
8314
8315 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8316 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8317 nls_cv_header_intl=
8318 nls_cv_header_libgt=
e8093792 8319 CATOBJEXT=
252b5132 8320
13b2be9c
DJ
8321 if test "${ac_cv_header_libintl_h+set}" = set; then
8322 echo "$as_me:$LINENO: checking for libintl.h" >&5
8323echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8324if test "${ac_cv_header_libintl_h+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8326fi
8327echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8328echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8329else
8330 # Is the header compilable?
8331echo "$as_me:$LINENO: checking libintl.h usability" >&5
8332echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8333cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8334/* confdefs.h. */
8335_ACEOF
8336cat confdefs.h >>conftest.$ac_ext
8337cat >>conftest.$ac_ext <<_ACEOF
8338/* end confdefs.h. */
8339$ac_includes_default
9b2b7d69 8340#include <libintl.h>
13b2be9c
DJ
8341_ACEOF
8342rm -f conftest.$ac_objext
8343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 8344 (eval $ac_compile) 2>conftest.er1
13b2be9c 8345 ac_status=$?
ab509236
L
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
13b2be9c
DJ
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
1ad12f97
NC
8351 { ac_try='test -z "$ac_c_werror_flag"
8352 || test ! -s conftest.err'
ab509236
L
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; } &&
8358 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 (eval $ac_try) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_header_compiler=yes
8365else
8366 echo "$as_me: failed program was:" >&5
8367sed 's/^/| /' conftest.$ac_ext >&5
8368
8369ac_header_compiler=no
8370fi
ab509236 8371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
8372echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8373echo "${ECHO_T}$ac_header_compiler" >&6
8374
8375# Is the header present?
8376echo "$as_me:$LINENO: checking libintl.h presence" >&5
8377echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8378cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8379/* confdefs.h. */
8380_ACEOF
8381cat confdefs.h >>conftest.$ac_ext
8382cat >>conftest.$ac_ext <<_ACEOF
8383/* end confdefs.h. */
8384#include <libintl.h>
8385_ACEOF
8386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } >/dev/null; then
8394 if test -s conftest.err; then
8395 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 8396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
8397 else
8398 ac_cpp_err=
8399 fi
252b5132 8400else
13b2be9c
DJ
8401 ac_cpp_err=yes
8402fi
8403if test -z "$ac_cpp_err"; then
8404 ac_header_preproc=yes
8405else
8406 echo "$as_me: failed program was:" >&5
8407sed 's/^/| /' conftest.$ac_ext >&5
8408
8409 ac_header_preproc=no
8410fi
8411rm -f conftest.err conftest.$ac_ext
8412echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8413echo "${ECHO_T}$ac_header_preproc" >&6
8414
8415# So? What about this header?
ab509236
L
8416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8417 yes:no: )
13b2be9c
DJ
8418 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8419echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
8420 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8421echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8422 ac_header_preproc=yes
13b2be9c 8423 ;;
ab509236 8424 no:yes:* )
13b2be9c
DJ
8425 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8426echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
ab509236
L
8427 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8428echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8429 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8430echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8431 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8432echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
8433 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8434echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
ab509236
L
8435 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8436echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
8437 (
8438 cat <<\_ASBOX
ab509236
L
8439## ------------------------------------------ ##
8440## Report this to the AC_PACKAGE_NAME lists. ##
8441## ------------------------------------------ ##
13b2be9c
DJ
8442_ASBOX
8443 ) |
8444 sed "s/^/$as_me: WARNING: /" >&2
8445 ;;
8446esac
8447echo "$as_me:$LINENO: checking for libintl.h" >&5
8448echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8449if test "${ac_cv_header_libintl_h+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8451else
8452 ac_cv_header_libintl_h=$ac_header_preproc
8453fi
8454echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8455echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8456
8457fi
8458if test $ac_cv_header_libintl_h = yes; then
8459 echo "$as_me:$LINENO: checking for gettext in libc" >&5
8460echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8461if test "${gt_cv_func_gettext_libc+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463else
8464 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8465/* confdefs.h. */
8466_ACEOF
8467cat confdefs.h >>conftest.$ac_ext
8468cat >>conftest.$ac_ext <<_ACEOF
8469/* end confdefs.h. */
252b5132 8470#include <libintl.h>
13b2be9c
DJ
8471int
8472main ()
8473{
252b5132 8474return (int) gettext ("")
13b2be9c
DJ
8475 ;
8476 return 0;
8477}
8478_ACEOF
8479rm -f conftest.$ac_objext conftest$ac_exeext
8480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8481 (eval $ac_link) 2>conftest.er1
13b2be9c 8482 ac_status=$?
ab509236
L
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
13b2be9c
DJ
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
1ad12f97
NC
8488 { ac_try='test -z "$ac_c_werror_flag"
8489 || test ! -s conftest.err'
ab509236
L
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 (eval $ac_try) 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; } &&
8495 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 (eval $ac_try) 2>&5
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
252b5132
RH
8501 gt_cv_func_gettext_libc=yes
8502else
13b2be9c
DJ
8503 echo "$as_me: failed program was:" >&5
8504sed 's/^/| /' conftest.$ac_ext >&5
8505
8506gt_cv_func_gettext_libc=no
252b5132 8507fi
ab509236
L
8508rm -f conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
252b5132 8510fi
13b2be9c
DJ
8511echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8512echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
8513
8514 if test "$gt_cv_func_gettext_libc" != "yes"; then
13b2be9c
DJ
8515 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8516echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8517if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8519else
13b2be9c 8520 ac_check_lib_save_LIBS=$LIBS
252b5132 8521LIBS="-lintl $LIBS"
13b2be9c 8522cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8523/* confdefs.h. */
8524_ACEOF
8525cat confdefs.h >>conftest.$ac_ext
8526cat >>conftest.$ac_ext <<_ACEOF
8527/* end confdefs.h. */
8528
252b5132 8529/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8530#ifdef __cplusplus
8531extern "C"
8532#endif
252b5132 8533/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8534 builtin and then its argument prototype would still apply. */
8535char bindtextdomain ();
8536int
8537main ()
8538{
8539bindtextdomain ();
8540 ;
8541 return 0;
8542}
8543_ACEOF
8544rm -f conftest.$ac_objext conftest$ac_exeext
8545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8546 (eval $ac_link) 2>conftest.er1
13b2be9c 8547 ac_status=$?
ab509236
L
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
13b2be9c
DJ
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
1ad12f97
NC
8553 { ac_try='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
ab509236
L
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_lib_intl_bindtextdomain=yes
8567else
8568 echo "$as_me: failed program was:" >&5
8569sed 's/^/| /' conftest.$ac_ext >&5
8570
8571ac_cv_lib_intl_bindtextdomain=no
8572fi
ab509236
L
8573rm -f conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8575LIBS=$ac_check_lib_save_LIBS
8576fi
8577echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8578echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8579if test $ac_cv_lib_intl_bindtextdomain = yes; then
8580 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8581echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8582if test "${gt_cv_func_gettext_libintl+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584else
8585 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8586/* confdefs.h. */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h. */
d6d788bd 8591
13b2be9c
DJ
8592int
8593main ()
8594{
252b5132 8595return (int) gettext ("")
13b2be9c
DJ
8596 ;
8597 return 0;
8598}
8599_ACEOF
8600rm -f conftest.$ac_objext conftest$ac_exeext
8601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8602 (eval $ac_link) 2>conftest.er1
13b2be9c 8603 ac_status=$?
ab509236
L
8604 grep -v '^ *+' conftest.er1 >conftest.err
8605 rm -f conftest.er1
8606 cat conftest.err >&5
13b2be9c
DJ
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
1ad12f97
NC
8609 { ac_try='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
ab509236
L
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 (eval $ac_try) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
252b5132
RH
8622 gt_cv_func_gettext_libintl=yes
8623else
13b2be9c
DJ
8624 echo "$as_me: failed program was:" >&5
8625sed 's/^/| /' conftest.$ac_ext >&5
8626
8627gt_cv_func_gettext_libintl=no
252b5132 8628fi
ab509236
L
8629rm -f conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
252b5132 8631fi
13b2be9c
DJ
8632echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8633echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
8634fi
8635
8636 fi
8637
8638 if test "$gt_cv_func_gettext_libc" = "yes" \
8639 || test "$gt_cv_func_gettext_libintl" = "yes"; then
13b2be9c
DJ
8640
8641cat >>confdefs.h <<\_ACEOF
252b5132 8642#define HAVE_GETTEXT 1
13b2be9c 8643_ACEOF
252b5132
RH
8644
8645 # Extract the first word of "msgfmt", so it can be a program name with args.
8646set dummy msgfmt; ac_word=$2
13b2be9c
DJ
8647echo "$as_me:$LINENO: checking for $ac_word" >&5
8648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8649if test "${ac_cv_path_MSGFMT+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8651else
8652 case "$MSGFMT" in
8653 /*)
8654 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8655 ;;
8656 *)
8657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8658 for ac_dir in $PATH; do
8659 test -z "$ac_dir" && ac_dir=.
8660 if test -f $ac_dir/$ac_word; then
8661 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8662 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8663 break
8664 fi
8665 fi
8666 done
8667 IFS="$ac_save_ifs"
8668 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8669 ;;
8670esac
8671fi
8672MSGFMT="$ac_cv_path_MSGFMT"
8673if test -n "$MSGFMT"; then
13b2be9c
DJ
8674 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8675echo "${ECHO_T}$MSGFMT" >&6
252b5132 8676else
13b2be9c
DJ
8677 echo "$as_me:$LINENO: result: no" >&5
8678echo "${ECHO_T}no" >&6
252b5132
RH
8679fi
8680 if test "$MSGFMT" != "no"; then
13b2be9c
DJ
8681
8682for ac_func in dcgettext
252b5132 8683do
13b2be9c
DJ
8684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8685echo "$as_me:$LINENO: checking for $ac_func" >&5
8686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8687if eval "test \"\${$as_ac_var+set}\" = set"; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689else
8690 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8691/* confdefs.h. */
8692_ACEOF
8693cat confdefs.h >>conftest.$ac_ext
8694cat >>conftest.$ac_ext <<_ACEOF
8695/* end confdefs.h. */
ab509236
L
8696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8698#define $ac_func innocuous_$ac_func
8699
252b5132 8700/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
8701 which can conflict with char $ac_func (); below.
8702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8703 <limits.h> exists even on freestanding compilers. */
ab509236 8704
13b2be9c
DJ
8705#ifdef __STDC__
8706# include <limits.h>
8707#else
8708# include <assert.h>
8709#endif
ab509236
L
8710
8711#undef $ac_func
8712
252b5132 8713/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8714#ifdef __cplusplus
8715extern "C"
8716{
8717#endif
252b5132 8718/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8719 builtin and then its argument prototype would still apply. */
8720char $ac_func ();
252b5132
RH
8721/* The GNU C library defines this for functions which it implements
8722 to always fail with ENOSYS. Some functions are actually named
8723 something starting with __ and the normal name is an alias. */
8724#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8725choke me
8726#else
13b2be9c
DJ
8727char (*f) () = $ac_func;
8728#endif
8729#ifdef __cplusplus
8730}
252b5132
RH
8731#endif
8732
13b2be9c
DJ
8733int
8734main ()
8735{
8736return f != $ac_func;
8737 ;
8738 return 0;
8739}
8740_ACEOF
8741rm -f conftest.$ac_objext conftest$ac_exeext
8742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8743 (eval $ac_link) 2>conftest.er1
13b2be9c 8744 ac_status=$?
ab509236
L
8745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
8747 cat conftest.err >&5
13b2be9c
DJ
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
1ad12f97
NC
8750 { ac_try='test -z "$ac_c_werror_flag"
8751 || test ! -s conftest.err'
ab509236
L
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 (eval $ac_try) 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; } &&
8757 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8763 eval "$as_ac_var=yes"
8764else
8765 echo "$as_me: failed program was:" >&5
8766sed 's/^/| /' conftest.$ac_ext >&5
8767
8768eval "$as_ac_var=no"
8769fi
ab509236
L
8770rm -f conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8772fi
8773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8774echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8775if test `eval echo '${'$as_ac_var'}'` = yes; then
8776 cat >>confdefs.h <<_ACEOF
8777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8778_ACEOF
252b5132 8779
252b5132
RH
8780fi
8781done
8782
8783 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8784set dummy gmsgfmt; ac_word=$2
13b2be9c
DJ
8785echo "$as_me:$LINENO: checking for $ac_word" >&5
8786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8787if test "${ac_cv_path_GMSGFMT+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8789else
13b2be9c
DJ
8790 case $GMSGFMT in
8791 [\\/]* | ?:[\\/]*)
252b5132
RH
8792 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8793 ;;
252b5132 8794 *)
13b2be9c
DJ
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796for as_dir in $PATH
8797do
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
8800 for ac_exec_ext in '' $ac_executable_extensions; do
8801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8802 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 break 2
8805 fi
8806done
8807done
8808
252b5132
RH
8809 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8810 ;;
8811esac
8812fi
13b2be9c
DJ
8813GMSGFMT=$ac_cv_path_GMSGFMT
8814
252b5132 8815if test -n "$GMSGFMT"; then
13b2be9c
DJ
8816 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8817echo "${ECHO_T}$GMSGFMT" >&6
252b5132 8818else
13b2be9c
DJ
8819 echo "$as_me:$LINENO: result: no" >&5
8820echo "${ECHO_T}no" >&6
252b5132
RH
8821fi
8822
8823 # Extract the first word of "xgettext", so it can be a program name with args.
8824set dummy xgettext; ac_word=$2
13b2be9c
DJ
8825echo "$as_me:$LINENO: checking for $ac_word" >&5
8826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8827if test "${ac_cv_path_XGETTEXT+set}" = set; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8829else
8830 case "$XGETTEXT" in
8831 /*)
8832 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8833 ;;
8834 *)
8835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8836 for ac_dir in $PATH; do
8837 test -z "$ac_dir" && ac_dir=.
8838 if test -f $ac_dir/$ac_word; then
8839 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8840 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8841 break
8842 fi
8843 fi
8844 done
8845 IFS="$ac_save_ifs"
8846 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8847 ;;
8848esac
8849fi
8850XGETTEXT="$ac_cv_path_XGETTEXT"
8851if test -n "$XGETTEXT"; then
13b2be9c
DJ
8852 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8853echo "${ECHO_T}$XGETTEXT" >&6
252b5132 8854else
13b2be9c
DJ
8855 echo "$as_me:$LINENO: result: no" >&5
8856echo "${ECHO_T}no" >&6
252b5132
RH
8857fi
8858
13b2be9c 8859 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8860/* confdefs.h. */
8861_ACEOF
8862cat confdefs.h >>conftest.$ac_ext
8863cat >>conftest.$ac_ext <<_ACEOF
8864/* end confdefs.h. */
252b5132 8865
13b2be9c
DJ
8866int
8867main ()
8868{
252b5132
RH
8869extern int _nl_msg_cat_cntr;
8870 return _nl_msg_cat_cntr
13b2be9c
DJ
8871 ;
8872 return 0;
8873}
8874_ACEOF
8875rm -f conftest.$ac_objext conftest$ac_exeext
8876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8877 (eval $ac_link) 2>conftest.er1
13b2be9c 8878 ac_status=$?
ab509236
L
8879 grep -v '^ *+' conftest.er1 >conftest.err
8880 rm -f conftest.er1
8881 cat conftest.err >&5
13b2be9c
DJ
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } &&
1ad12f97
NC
8884 { ac_try='test -z "$ac_c_werror_flag"
8885 || test ! -s conftest.err'
ab509236
L
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 (eval $ac_try) 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; } &&
8891 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 (eval $ac_try) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; }; then
252b5132
RH
8897 CATOBJEXT=.gmo
8898 DATADIRNAME=share
8899else
13b2be9c
DJ
8900 echo "$as_me: failed program was:" >&5
8901sed 's/^/| /' conftest.$ac_ext >&5
8902
8903CATOBJEXT=.mo
252b5132
RH
8904 DATADIRNAME=lib
8905fi
ab509236
L
8906rm -f conftest.err conftest.$ac_objext \
8907 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
8908 INSTOBJEXT=.mo
8909 fi
8910 fi
13b2be9c 8911
6840198f 8912fi
252b5132 8913
d6d788bd 8914
13b2be9c
DJ
8915
8916
e8093792
AC
8917 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8918 # Neither gettext nor catgets in included in the C library.
8919 # Fall back on GNU gettext library (assuming it is present).
8920 nls_cv_use_gnu_gettext=yes
252b5132
RH
8921 fi
8922 fi
8923
8924 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8925 INTLOBJS="\$(GETTOBJS)"
8926 # Extract the first word of "msgfmt", so it can be a program name with args.
8927set dummy msgfmt; ac_word=$2
13b2be9c
DJ
8928echo "$as_me:$LINENO: checking for $ac_word" >&5
8929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8930if test "${ac_cv_path_MSGFMT+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8932else
8933 case "$MSGFMT" in
8934 /*)
8935 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8936 ;;
8937 *)
8938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8939 for ac_dir in $PATH; do
8940 test -z "$ac_dir" && ac_dir=.
8941 if test -f $ac_dir/$ac_word; then
8942 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8943 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8944 break
8945 fi
8946 fi
8947 done
8948 IFS="$ac_save_ifs"
8949 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8950 ;;
8951esac
8952fi
8953MSGFMT="$ac_cv_path_MSGFMT"
8954if test -n "$MSGFMT"; then
13b2be9c
DJ
8955 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8956echo "${ECHO_T}$MSGFMT" >&6
252b5132 8957else
13b2be9c
DJ
8958 echo "$as_me:$LINENO: result: no" >&5
8959echo "${ECHO_T}no" >&6
252b5132
RH
8960fi
8961
8962 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8963set dummy gmsgfmt; ac_word=$2
13b2be9c
DJ
8964echo "$as_me:$LINENO: checking for $ac_word" >&5
8965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8966if test "${ac_cv_path_GMSGFMT+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8968else
13b2be9c
DJ
8969 case $GMSGFMT in
8970 [\\/]* | ?:[\\/]*)
252b5132
RH
8971 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8972 ;;
252b5132 8973 *)
13b2be9c
DJ
8974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975for as_dir in $PATH
8976do
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8981 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 break 2
8984 fi
8985done
8986done
8987
252b5132
RH
8988 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8989 ;;
8990esac
8991fi
13b2be9c
DJ
8992GMSGFMT=$ac_cv_path_GMSGFMT
8993
252b5132 8994if test -n "$GMSGFMT"; then
13b2be9c
DJ
8995 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8996echo "${ECHO_T}$GMSGFMT" >&6
252b5132 8997else
13b2be9c
DJ
8998 echo "$as_me:$LINENO: result: no" >&5
8999echo "${ECHO_T}no" >&6
252b5132
RH
9000fi
9001
9002 # Extract the first word of "xgettext", so it can be a program name with args.
9003set dummy xgettext; ac_word=$2
13b2be9c
DJ
9004echo "$as_me:$LINENO: checking for $ac_word" >&5
9005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9006if test "${ac_cv_path_XGETTEXT+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
9008else
9009 case "$XGETTEXT" in
9010 /*)
9011 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9012 ;;
9013 *)
9014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9015 for ac_dir in $PATH; do
9016 test -z "$ac_dir" && ac_dir=.
9017 if test -f $ac_dir/$ac_word; then
9018 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
9019 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9020 break
9021 fi
9022 fi
9023 done
9024 IFS="$ac_save_ifs"
9025 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9026 ;;
9027esac
9028fi
9029XGETTEXT="$ac_cv_path_XGETTEXT"
9030if test -n "$XGETTEXT"; then
13b2be9c
DJ
9031 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9032echo "${ECHO_T}$XGETTEXT" >&6
252b5132 9033else
13b2be9c
DJ
9034 echo "$as_me:$LINENO: result: no" >&5
9035echo "${ECHO_T}no" >&6
252b5132
RH
9036fi
9037
13b2be9c 9038
252b5132
RH
9039 USE_INCLUDED_LIBINTL=yes
9040 CATOBJEXT=.gmo
9041 INSTOBJEXT=.mo
9042 DATADIRNAME=share
9043 INTLDEPS='$(top_builddir)/../intl/libintl.a'
9044 INTLLIBS=$INTLDEPS
9045 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
9046 nls_cv_header_intl=libintl.h
9047 nls_cv_header_libgt=libgettext.h
9048 fi
9049
9050 if test "$XGETTEXT" != ":"; then
9051 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9052 : ;
9053 else
13b2be9c
DJ
9054 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
9055echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
9056 XGETTEXT=":"
9057 fi
9058 fi
9059
9060 # We need to process the po/ directory.
9061 POSUB=po
9062 else
9063 DATADIRNAME=share
9064 nls_cv_header_intl=libintl.h
9065 nls_cv_header_libgt=libgettext.h
9066 fi
9067
9068 # If this is used in GNU gettext we have to set USE_NLS to `yes'
9069 # because some of the sources are only built for this goal.
9070 if test "$PACKAGE" = gettext; then
9071 USE_NLS=yes
9072 USE_INCLUDED_LIBINTL=yes
9073 fi
9074
9075 for lang in $ALL_LINGUAS; do
9076 GMOFILES="$GMOFILES $lang.gmo"
9077 POFILES="$POFILES $lang.po"
9078 done
9079
13b2be9c
DJ
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
b16b813f
AM
9091 if test "x$CATOBJEXT" != "x"; then
9092
9093cat >>confdefs.h <<\_ACEOF
9094#define ENABLE_NLS 1
9095_ACEOF
9096
9097 fi
13b2be9c 9098
d6d788bd 9099
252b5132
RH
9100 if test "x$CATOBJEXT" != "x"; then
9101 if test "x$ALL_LINGUAS" = "x"; then
9102 LINGUAS=
9103 else
13b2be9c
DJ
9104 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9105echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
9106 NEW_LINGUAS=
9107 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9108 case "$ALL_LINGUAS" in
9109 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9110 esac
9111 done
9112 LINGUAS=$NEW_LINGUAS
13b2be9c
DJ
9113 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9114echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
9115 fi
9116
9117 if test -n "$LINGUAS"; then
9118 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9119 fi
9120 fi
9121
9122 if test $ac_cv_header_locale_h = yes; then
9123 INCLUDE_LOCALE_H="#include <locale.h>"
9124 else
9125 INCLUDE_LOCALE_H="\
9126/* The system does not provide the header <locale.h>. Take care yourself. */"
9127 fi
13b2be9c 9128
252b5132
RH
9129
9130 if test -f $srcdir/po2tbl.sed.in; then
9131 if test "$CATOBJEXT" = ".cat"; then
13b2be9c
DJ
9132 if test "${ac_cv_header_linux_version_h+set}" = set; then
9133 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9134echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9135if test "${ac_cv_header_linux_version_h+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137fi
9138echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9139echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9140else
9141 # Is the header compilable?
9142echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9143echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
9144cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9145/* confdefs.h. */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h. */
9150$ac_includes_default
9b2b7d69 9151#include <linux/version.h>
13b2be9c
DJ
9152_ACEOF
9153rm -f conftest.$ac_objext
9154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 9155 (eval $ac_compile) 2>conftest.er1
13b2be9c 9156 ac_status=$?
ab509236
L
9157 grep -v '^ *+' conftest.er1 >conftest.err
9158 rm -f conftest.er1
9159 cat conftest.err >&5
13b2be9c
DJ
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } &&
1ad12f97
NC
9162 { ac_try='test -z "$ac_c_werror_flag"
9163 || test ! -s conftest.err'
ab509236
L
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 (eval $ac_try) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; } &&
9169 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 (eval $ac_try) 2>&5
9172 ac_status=$?
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; }; then
9175 ac_header_compiler=yes
9176else
9177 echo "$as_me: failed program was:" >&5
9178sed 's/^/| /' conftest.$ac_ext >&5
9179
9180ac_header_compiler=no
9181fi
ab509236 9182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
9183echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9184echo "${ECHO_T}$ac_header_compiler" >&6
9185
9186# Is the header present?
9187echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9188echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
9189cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9190/* confdefs.h. */
9191_ACEOF
9192cat confdefs.h >>conftest.$ac_ext
9193cat >>conftest.$ac_ext <<_ACEOF
9194/* end confdefs.h. */
9195#include <linux/version.h>
9196_ACEOF
9197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9199 ac_status=$?
9200 grep -v '^ *+' conftest.er1 >conftest.err
9201 rm -f conftest.er1
9202 cat conftest.err >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } >/dev/null; then
9205 if test -s conftest.err; then
9206 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 9207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
9208 else
9209 ac_cpp_err=
9210 fi
252b5132 9211else
13b2be9c
DJ
9212 ac_cpp_err=yes
9213fi
9214if test -z "$ac_cpp_err"; then
9215 ac_header_preproc=yes
9216else
9217 echo "$as_me: failed program was:" >&5
9218sed 's/^/| /' conftest.$ac_ext >&5
9219
9220 ac_header_preproc=no
9221fi
9222rm -f conftest.err conftest.$ac_ext
9223echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9224echo "${ECHO_T}$ac_header_preproc" >&6
9225
9226# So? What about this header?
ab509236
L
9227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9228 yes:no: )
13b2be9c
DJ
9229 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9230echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
9231 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9232echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9233 ac_header_preproc=yes
13b2be9c 9234 ;;
ab509236 9235 no:yes:* )
13b2be9c
DJ
9236 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9237echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
ab509236
L
9238 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9239echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9241echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9243echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
9244 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9245echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
ab509236
L
9246 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9247echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
9248 (
9249 cat <<\_ASBOX
ab509236
L
9250## ------------------------------------------ ##
9251## Report this to the AC_PACKAGE_NAME lists. ##
9252## ------------------------------------------ ##
13b2be9c
DJ
9253_ASBOX
9254 ) |
9255 sed "s/^/$as_me: WARNING: /" >&2
9256 ;;
9257esac
9258echo "$as_me:$LINENO: checking for linux/version.h" >&5
9259echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9260if test "${ac_cv_header_linux_version_h+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9262else
9263 ac_cv_header_linux_version_h=$ac_header_preproc
252b5132 9264fi
13b2be9c
DJ
9265echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9266echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9267
252b5132 9268fi
13b2be9c 9269if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
9270 msgformat=linux
9271else
13b2be9c 9272 msgformat=xopen
252b5132
RH
9273fi
9274
d6d788bd 9275
13b2be9c 9276
252b5132
RH
9277 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
9278 fi
9279 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
9280 $srcdir/po2tbl.sed.in > po2tbl.sed
9281 fi
9282
9283 if test "$PACKAGE" = "gettext"; then
9284 GT_NO="#NO#"
9285 GT_YES=
9286 else
9287 GT_NO=
9288 GT_YES="#YES#"
9289 fi
13b2be9c
DJ
9290
9291
252b5132
RH
9292
9293 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
13b2be9c 9294
252b5132
RH
9295
9296 l=
13b2be9c 9297
252b5132 9298
fcd8210c 9299 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
9300 test -d po || mkdir po
9301 if test "x$srcdir" != "x."; then
9302 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9303 posrcprefix="$srcdir/"
9304 else
9305 posrcprefix="../$srcdir/"
9306 fi
9307 else
9308 posrcprefix="../"
9309 fi
9310 rm -f po/POTFILES
9311 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9312 < $srcdir/po/POTFILES.in > po/POTFILES
9313 fi
252b5132 9314
13b2be9c
DJ
9315
9316echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9317echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
9318 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9319if test "${enable_maintainer_mode+set}" = set; then
9320 enableval="$enable_maintainer_mode"
9321 USE_MAINTAINER_MODE=$enableval
9322else
9323 USE_MAINTAINER_MODE=no
13b2be9c
DJ
9324fi;
9325 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9326echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
d6d788bd 9327
252b5132
RH
9328
9329if test $USE_MAINTAINER_MODE = yes; then
9330 MAINTAINER_MODE_TRUE=
c8615825
AM
9331 MAINTAINER_MODE_FALSE='#'
9332else
9333 MAINTAINER_MODE_TRUE='#'
9334 MAINTAINER_MODE_FALSE=
9335fi
13b2be9c 9336
c8615825 9337 MAINT=$MAINTAINER_MODE_TRUE
9b2b7d69
MM
9338
9339
9340
9341
9342
9343
13b2be9c
DJ
9344
9345
9346
9347
9348
9349
9350
9351for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
d6d788bd 9352do
13b2be9c
DJ
9353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9354if eval "test \"\${$as_ac_Header+set}\" = set"; then
9355 echo "$as_me:$LINENO: checking for $ac_header" >&5
9356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9357if eval "test \"\${$as_ac_Header+set}\" = set"; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359fi
9360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9362else
9363 # Is the header compilable?
9364echo "$as_me:$LINENO: checking $ac_header usability" >&5
9365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9366cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9367/* confdefs.h. */
9368_ACEOF
9369cat confdefs.h >>conftest.$ac_ext
9370cat >>conftest.$ac_ext <<_ACEOF
9371/* end confdefs.h. */
9372$ac_includes_default
9373#include <$ac_header>
9374_ACEOF
9375rm -f conftest.$ac_objext
9376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 9377 (eval $ac_compile) 2>conftest.er1
13b2be9c 9378 ac_status=$?
ab509236
L
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
13b2be9c
DJ
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } &&
1ad12f97
NC
9384 { ac_try='test -z "$ac_c_werror_flag"
9385 || test ! -s conftest.err'
ab509236
L
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 (eval $ac_try) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; } &&
9391 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; }; then
9397 ac_header_compiler=yes
9398else
9399 echo "$as_me: failed program was:" >&5
9400sed 's/^/| /' conftest.$ac_ext >&5
9401
9402ac_header_compiler=no
9403fi
ab509236 9404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
9405echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9406echo "${ECHO_T}$ac_header_compiler" >&6
9407
9408# Is the header present?
9409echo "$as_me:$LINENO: checking $ac_header presence" >&5
9410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9411cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9412/* confdefs.h. */
9413_ACEOF
9414cat confdefs.h >>conftest.$ac_ext
9415cat >>conftest.$ac_ext <<_ACEOF
9416/* end confdefs.h. */
9417#include <$ac_header>
9418_ACEOF
9419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9421 ac_status=$?
9422 grep -v '^ *+' conftest.er1 >conftest.err
9423 rm -f conftest.er1
9424 cat conftest.err >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } >/dev/null; then
9427 if test -s conftest.err; then
9428 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 9429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
9430 else
9431 ac_cpp_err=
9432 fi
9b2b7d69 9433else
13b2be9c
DJ
9434 ac_cpp_err=yes
9435fi
9436if test -z "$ac_cpp_err"; then
9437 ac_header_preproc=yes
9438else
9439 echo "$as_me: failed program was:" >&5
9440sed 's/^/| /' conftest.$ac_ext >&5
9441
9442 ac_header_preproc=no
9443fi
9444rm -f conftest.err conftest.$ac_ext
9445echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9446echo "${ECHO_T}$ac_header_preproc" >&6
9447
9448# So? What about this header?
ab509236
L
9449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9450 yes:no: )
13b2be9c
DJ
9451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9455 ac_header_preproc=yes
13b2be9c 9456 ;;
ab509236 9457 no:yes:* )
13b2be9c
DJ
9458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
9460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9461echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9465echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
9466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
9468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
9470 (
9471 cat <<\_ASBOX
ab509236
L
9472## ------------------------------------------ ##
9473## Report this to the AC_PACKAGE_NAME lists. ##
9474## ------------------------------------------ ##
13b2be9c
DJ
9475_ASBOX
9476 ) |
9477 sed "s/^/$as_me: WARNING: /" >&2
9478 ;;
9479esac
9480echo "$as_me:$LINENO: checking for $ac_header" >&5
9481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9482if eval "test \"\${$as_ac_Header+set}\" = set"; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
ab509236 9485 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 9486fi
13b2be9c
DJ
9487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9489
252b5132 9490fi
13b2be9c
DJ
9491if test `eval echo '${'$as_ac_Header'}'` = yes; then
9492 cat >>confdefs.h <<_ACEOF
9493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9494_ACEOF
9495
252b5132 9496fi
13b2be9c 9497
252b5132
RH
9498done
9499
d6d788bd 9500
252b5132
RH
9501# Put this here so that autoconf's "cross-compiling" message doesn't confuse
9502# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
9503echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
9504echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
9505if test "${host}" = "${target}"; then
9506 cross_gas=no
9507else
9508 cross_gas=yes
13b2be9c
DJ
9509
9510cat >>confdefs.h <<\_ACEOF
252b5132 9511#define CROSS_COMPILE 1
13b2be9c 9512_ACEOF
252b5132
RH
9513
9514fi
13b2be9c
DJ
9515echo "$as_me:$LINENO: result: $cross_gas" >&5
9516echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
9517
9518# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9519# for constant arguments. Useless!
13b2be9c
DJ
9520echo "$as_me:$LINENO: checking for working alloca.h" >&5
9521echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9522if test "${ac_cv_working_alloca_h+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9524else
9525 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9526/* confdefs.h. */
9527_ACEOF
9528cat confdefs.h >>conftest.$ac_ext
9529cat >>conftest.$ac_ext <<_ACEOF
9530/* end confdefs.h. */
252b5132 9531#include <alloca.h>
13b2be9c
DJ
9532int
9533main ()
9534{
9535char *p = (char *) alloca (2 * sizeof (int));
9536 ;
9537 return 0;
9538}
9539_ACEOF
9540rm -f conftest.$ac_objext conftest$ac_exeext
9541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 9542 (eval $ac_link) 2>conftest.er1
13b2be9c 9543 ac_status=$?
ab509236
L
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
13b2be9c
DJ
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
1ad12f97
NC
9549 { ac_try='test -z "$ac_c_werror_flag"
9550 || test ! -s conftest.err'
ab509236
L
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9562 ac_cv_working_alloca_h=yes
9563else
9564 echo "$as_me: failed program was:" >&5
9565sed 's/^/| /' conftest.$ac_ext >&5
9566
9567ac_cv_working_alloca_h=no
9568fi
ab509236
L
9569rm -f conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
9571fi
9572echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9573echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9574if test $ac_cv_working_alloca_h = yes; then
9575
9576cat >>confdefs.h <<\_ACEOF
252b5132 9577#define HAVE_ALLOCA_H 1
13b2be9c 9578_ACEOF
252b5132
RH
9579
9580fi
9581
13b2be9c
DJ
9582echo "$as_me:$LINENO: checking for alloca" >&5
9583echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9584if test "${ac_cv_func_alloca_works+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9586else
13b2be9c 9587 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9588/* confdefs.h. */
9589_ACEOF
9590cat confdefs.h >>conftest.$ac_ext
9591cat >>conftest.$ac_ext <<_ACEOF
9592/* end confdefs.h. */
252b5132
RH
9593#ifdef __GNUC__
9594# define alloca __builtin_alloca
9595#else
9596# ifdef _MSC_VER
9597# include <malloc.h>
9598# define alloca _alloca
9599# else
9600# if HAVE_ALLOCA_H
9601# include <alloca.h>
9602# else
9603# ifdef _AIX
9604 #pragma alloca
9605# else
9606# ifndef alloca /* predefined by HP cc +Olibcalls */
9607char *alloca ();
9608# endif
9609# endif
9610# endif
9611# endif
9612#endif
9613
13b2be9c
DJ
9614int
9615main ()
9616{
9617char *p = (char *) alloca (1);
9618 ;
9619 return 0;
9620}
9621_ACEOF
9622rm -f conftest.$ac_objext conftest$ac_exeext
9623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 9624 (eval $ac_link) 2>conftest.er1
13b2be9c 9625 ac_status=$?
ab509236
L
9626 grep -v '^ *+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
13b2be9c
DJ
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
1ad12f97
NC
9631 { ac_try='test -z "$ac_c_werror_flag"
9632 || test ! -s conftest.err'
ab509236
L
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 (eval $ac_try) 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; } &&
9638 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 (eval $ac_try) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
252b5132
RH
9644 ac_cv_func_alloca_works=yes
9645else
13b2be9c
DJ
9646 echo "$as_me: failed program was:" >&5
9647sed 's/^/| /' conftest.$ac_ext >&5
9648
9649ac_cv_func_alloca_works=no
252b5132 9650fi
ab509236
L
9651rm -f conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
252b5132 9653fi
13b2be9c
DJ
9654echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9655echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 9656
252b5132 9657if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 9658
13b2be9c
DJ
9659cat >>confdefs.h <<\_ACEOF
9660#define HAVE_ALLOCA 1
9661_ACEOF
9b2b7d69 9662
13b2be9c 9663else
c8615825 9664 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
9665# that cause trouble. Some versions do not even contain alloca or
9666# contain a buggy version. If you still want to use their alloca,
9667# use ar to extract alloca.o from them instead of compiling alloca.c.
9668
9669ALLOCA=alloca.$ac_objext
9670
9671cat >>confdefs.h <<\_ACEOF
252b5132 9672#define C_ALLOCA 1
13b2be9c 9673_ACEOF
252b5132 9674
d6d788bd 9675
13b2be9c
DJ
9676echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9677echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9678if test "${ac_cv_os_cray+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9680else
13b2be9c 9681 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9682/* confdefs.h. */
9683_ACEOF
9684cat confdefs.h >>conftest.$ac_ext
9685cat >>conftest.$ac_ext <<_ACEOF
9686/* end confdefs.h. */
252b5132
RH
9687#if defined(CRAY) && ! defined(CRAY2)
9688webecray
9689#else
9690wenotbecray
9691#endif
9692
13b2be9c 9693_ACEOF
252b5132 9694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 9695 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
9696 ac_cv_os_cray=yes
9697else
252b5132
RH
9698 ac_cv_os_cray=no
9699fi
9700rm -f conftest*
9701
9702fi
13b2be9c
DJ
9703echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9704echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 9705if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
9706 for ac_func in _getb67 GETB67 getb67; do
9707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9708echo "$as_me:$LINENO: checking for $ac_func" >&5
9709echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9710if eval "test \"\${$as_ac_var+set}\" = set"; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712else
9713 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9714/* confdefs.h. */
9715_ACEOF
9716cat confdefs.h >>conftest.$ac_ext
9717cat >>conftest.$ac_ext <<_ACEOF
9718/* end confdefs.h. */
ab509236
L
9719/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9721#define $ac_func innocuous_$ac_func
9722
252b5132 9723/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
9724 which can conflict with char $ac_func (); below.
9725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9726 <limits.h> exists even on freestanding compilers. */
ab509236 9727
13b2be9c
DJ
9728#ifdef __STDC__
9729# include <limits.h>
9730#else
9731# include <assert.h>
9732#endif
ab509236
L
9733
9734#undef $ac_func
9735
252b5132 9736/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
9737#ifdef __cplusplus
9738extern "C"
9739{
9740#endif
252b5132 9741/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
9742 builtin and then its argument prototype would still apply. */
9743char $ac_func ();
252b5132
RH
9744/* The GNU C library defines this for functions which it implements
9745 to always fail with ENOSYS. Some functions are actually named
9746 something starting with __ and the normal name is an alias. */
9747#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9748choke me
9749#else
13b2be9c
DJ
9750char (*f) () = $ac_func;
9751#endif
9752#ifdef __cplusplus
9753}
252b5132
RH
9754#endif
9755
13b2be9c
DJ
9756int
9757main ()
9758{
9759return f != $ac_func;
9760 ;
9761 return 0;
9762}
9763_ACEOF
9764rm -f conftest.$ac_objext conftest$ac_exeext
9765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 9766 (eval $ac_link) 2>conftest.er1
13b2be9c 9767 ac_status=$?
ab509236
L
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
13b2be9c
DJ
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
1ad12f97
NC
9773 { ac_try='test -z "$ac_c_werror_flag"
9774 || test ! -s conftest.err'
ab509236
L
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9786 eval "$as_ac_var=yes"
9787else
9788 echo "$as_me: failed program was:" >&5
9789sed 's/^/| /' conftest.$ac_ext >&5
9790
9791eval "$as_ac_var=no"
9792fi
ab509236
L
9793rm -f conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
9795fi
9796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9797echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9798if test `eval echo '${'$as_ac_var'}'` = yes; then
9799
9800cat >>confdefs.h <<_ACEOF
252b5132 9801#define CRAY_STACKSEG_END $ac_func
13b2be9c 9802_ACEOF
252b5132 9803
13b2be9c 9804 break
252b5132
RH
9805fi
9806
13b2be9c 9807 done
252b5132
RH
9808fi
9809
13b2be9c
DJ
9810echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9811echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9812if test "${ac_cv_c_stack_direction+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
9814else
9815 if test "$cross_compiling" = yes; then
9816 ac_cv_c_stack_direction=0
9817else
13b2be9c 9818 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9819/* confdefs.h. */
9820_ACEOF
9821cat confdefs.h >>conftest.$ac_ext
9822cat >>conftest.$ac_ext <<_ACEOF
9823/* end confdefs.h. */
9824int
252b5132
RH
9825find_stack_direction ()
9826{
9827 static char *addr = 0;
9828 auto char dummy;
9829 if (addr == 0)
9830 {
9831 addr = &dummy;
9832 return find_stack_direction ();
9833 }
9834 else
9835 return (&dummy > addr) ? 1 : -1;
9836}
13b2be9c
DJ
9837
9838int
252b5132
RH
9839main ()
9840{
13b2be9c 9841 exit (find_stack_direction () < 0);
252b5132 9842}
13b2be9c
DJ
9843_ACEOF
9844rm -f conftest$ac_exeext
9845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9846 (eval $ac_link) 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
252b5132
RH
9855 ac_cv_c_stack_direction=1
9856else
13b2be9c
DJ
9857 echo "$as_me: program exited with status $ac_status" >&5
9858echo "$as_me: failed program was:" >&5
9859sed 's/^/| /' conftest.$ac_ext >&5
9860
9861( exit $ac_status )
9862ac_cv_c_stack_direction=-1
252b5132 9863fi
ab509236 9864rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 9865fi
252b5132 9866fi
13b2be9c
DJ
9867echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9868echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 9869
13b2be9c 9870cat >>confdefs.h <<_ACEOF
252b5132 9871#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
9872_ACEOF
9873
252b5132
RH
9874
9875fi
9876
13b2be9c
DJ
9877echo "$as_me:$LINENO: checking for inline" >&5
9878echo $ECHO_N "checking for inline... $ECHO_C" >&6
9879if test "${ac_cv_c_inline+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
9881else
9882 ac_cv_c_inline=no
9883for ac_kw in inline __inline__ __inline; do
13b2be9c 9884 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9885/* confdefs.h. */
9886_ACEOF
9887cat confdefs.h >>conftest.$ac_ext
9888cat >>conftest.$ac_ext <<_ACEOF
9889/* end confdefs.h. */
9890#ifndef __cplusplus
9891typedef int foo_t;
9892static $ac_kw foo_t static_foo () {return 0; }
9893$ac_kw foo_t foo () {return 0; }
9894#endif
252b5132 9895
13b2be9c
DJ
9896_ACEOF
9897rm -f conftest.$ac_objext
9898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 9899 (eval $ac_compile) 2>conftest.er1
13b2be9c 9900 ac_status=$?
ab509236
L
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
13b2be9c
DJ
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
1ad12f97
NC
9906 { ac_try='test -z "$ac_c_werror_flag"
9907 || test ! -s conftest.err'
ab509236
L
9908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 (eval $ac_try) 2>&5
9910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; } &&
9913 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
9914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 (eval $ac_try) 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; }; then
252b5132
RH
9919 ac_cv_c_inline=$ac_kw; break
9920else
13b2be9c
DJ
9921 echo "$as_me: failed program was:" >&5
9922sed 's/^/| /' conftest.$ac_ext >&5
9923
252b5132 9924fi
ab509236 9925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9926done
9927
9928fi
13b2be9c
DJ
9929echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9930echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
9931
9932
13b2be9c 9933case $ac_cv_c_inline in
252b5132 9934 inline | yes) ;;
ab509236
L
9935 *)
9936 case $ac_cv_c_inline in
9937 no) ac_val=;;
9938 *) ac_val=$ac_cv_c_inline;;
9939 esac
9940 cat >>confdefs.h <<_ACEOF
9941#ifndef __cplusplus
9942#define inline $ac_val
9943#endif
13b2be9c 9944_ACEOF
ab509236 9945 ;;
252b5132
RH
9946esac
9947
6840198f 9948
d6d788bd 9949# VMS doesn't have unlink.
13b2be9c
DJ
9950
9951
252b5132
RH
9952for ac_func in unlink remove
9953do
13b2be9c
DJ
9954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9955echo "$as_me:$LINENO: checking for $ac_func" >&5
9956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9957if eval "test \"\${$as_ac_var+set}\" = set"; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9959else
9960 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
9961/* confdefs.h. */
9962_ACEOF
9963cat confdefs.h >>conftest.$ac_ext
9964cat >>conftest.$ac_ext <<_ACEOF
9965/* end confdefs.h. */
ab509236
L
9966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9968#define $ac_func innocuous_$ac_func
9969
252b5132 9970/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
9971 which can conflict with char $ac_func (); below.
9972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9973 <limits.h> exists even on freestanding compilers. */
ab509236 9974
13b2be9c
DJ
9975#ifdef __STDC__
9976# include <limits.h>
9977#else
9978# include <assert.h>
9979#endif
ab509236
L
9980
9981#undef $ac_func
9982
252b5132 9983/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
9984#ifdef __cplusplus
9985extern "C"
9986{
9987#endif
252b5132 9988/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
9989 builtin and then its argument prototype would still apply. */
9990char $ac_func ();
252b5132
RH
9991/* The GNU C library defines this for functions which it implements
9992 to always fail with ENOSYS. Some functions are actually named
9993 something starting with __ and the normal name is an alias. */
9994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9995choke me
9996#else
13b2be9c
DJ
9997char (*f) () = $ac_func;
9998#endif
9999#ifdef __cplusplus
10000}
252b5132
RH
10001#endif
10002
13b2be9c
DJ
10003int
10004main ()
10005{
10006return f != $ac_func;
10007 ;
10008 return 0;
10009}
10010_ACEOF
10011rm -f conftest.$ac_objext conftest$ac_exeext
10012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10013 (eval $ac_link) 2>conftest.er1
13b2be9c 10014 ac_status=$?
ab509236
L
10015 grep -v '^ *+' conftest.er1 >conftest.err
10016 rm -f conftest.er1
10017 cat conftest.err >&5
13b2be9c
DJ
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
1ad12f97
NC
10020 { ac_try='test -z "$ac_c_werror_flag"
10021 || test ! -s conftest.err'
ab509236
L
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 eval "$as_ac_var=yes"
10034else
10035 echo "$as_me: failed program was:" >&5
10036sed 's/^/| /' conftest.$ac_ext >&5
10037
10038eval "$as_ac_var=no"
10039fi
ab509236
L
10040rm -f conftest.err conftest.$ac_objext \
10041 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10042fi
10043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10044echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10045if test `eval echo '${'$as_ac_var'}'` = yes; then
10046 cat >>confdefs.h <<_ACEOF
10047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10048_ACEOF
252b5132 10049 break
252b5132
RH
10050fi
10051done
10052
6840198f 10053
d6d788bd 10054# Some systems don't have sbrk().
13b2be9c 10055
252b5132
RH
10056for ac_func in sbrk
10057do
13b2be9c
DJ
10058as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10059echo "$as_me:$LINENO: checking for $ac_func" >&5
10060echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10061if eval "test \"\${$as_ac_var+set}\" = set"; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063else
10064 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10065/* confdefs.h. */
10066_ACEOF
10067cat confdefs.h >>conftest.$ac_ext
10068cat >>conftest.$ac_ext <<_ACEOF
10069/* end confdefs.h. */
ab509236
L
10070/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10072#define $ac_func innocuous_$ac_func
10073
252b5132 10074/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
10075 which can conflict with char $ac_func (); below.
10076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10077 <limits.h> exists even on freestanding compilers. */
ab509236 10078
13b2be9c
DJ
10079#ifdef __STDC__
10080# include <limits.h>
10081#else
10082# include <assert.h>
10083#endif
ab509236
L
10084
10085#undef $ac_func
10086
252b5132 10087/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
10088#ifdef __cplusplus
10089extern "C"
10090{
10091#endif
252b5132 10092/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
10093 builtin and then its argument prototype would still apply. */
10094char $ac_func ();
252b5132
RH
10095/* The GNU C library defines this for functions which it implements
10096 to always fail with ENOSYS. Some functions are actually named
10097 something starting with __ and the normal name is an alias. */
10098#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10099choke me
10100#else
13b2be9c
DJ
10101char (*f) () = $ac_func;
10102#endif
10103#ifdef __cplusplus
10104}
252b5132
RH
10105#endif
10106
13b2be9c
DJ
10107int
10108main ()
10109{
10110return f != $ac_func;
10111 ;
10112 return 0;
10113}
10114_ACEOF
10115rm -f conftest.$ac_objext conftest$ac_exeext
10116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10117 (eval $ac_link) 2>conftest.er1
13b2be9c 10118 ac_status=$?
ab509236
L
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
13b2be9c
DJ
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
1ad12f97
NC
10124 { ac_try='test -z "$ac_c_werror_flag"
10125 || test ! -s conftest.err'
ab509236
L
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10128 ac_status=$?
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; } &&
10131 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; }; then
10137 eval "$as_ac_var=yes"
10138else
10139 echo "$as_me: failed program was:" >&5
10140sed 's/^/| /' conftest.$ac_ext >&5
10141
10142eval "$as_ac_var=no"
10143fi
ab509236
L
10144rm -f conftest.err conftest.$ac_objext \
10145 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10146fi
10147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10148echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10149if test `eval echo '${'$as_ac_var'}'` = yes; then
10150 cat >>confdefs.h <<_ACEOF
10151#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10152_ACEOF
252b5132 10153
252b5132
RH
10154fi
10155done
10156
d6d788bd 10157
39bec121
TW
10158# do we need the math library?
10159case "${need_libm}" in
13b2be9c 10160yes)
39bec121 10161 LIBM=
f9c19112 10162case $host in
4b363073 10163*-*-beos* | *-*-cygwin* | *-*-pw32*)
39bec121
TW
10164 # These system don't have libm
10165 ;;
10166*-ncr-sysv4.3*)
13b2be9c
DJ
10167 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
10168echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
10169if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 10171else
13b2be9c 10172 ac_check_lib_save_LIBS=$LIBS
39bec121 10173LIBS="-lmw $LIBS"
13b2be9c 10174cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10175/* confdefs.h. */
10176_ACEOF
10177cat confdefs.h >>conftest.$ac_ext
10178cat >>conftest.$ac_ext <<_ACEOF
10179/* end confdefs.h. */
10180
39bec121 10181/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
10182#ifdef __cplusplus
10183extern "C"
10184#endif
39bec121 10185/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
10186 builtin and then its argument prototype would still apply. */
10187char _mwvalidcheckl ();
10188int
10189main ()
10190{
10191_mwvalidcheckl ();
10192 ;
10193 return 0;
10194}
10195_ACEOF
10196rm -f conftest.$ac_objext conftest$ac_exeext
10197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10198 (eval $ac_link) 2>conftest.er1
13b2be9c 10199 ac_status=$?
ab509236
L
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
13b2be9c
DJ
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
1ad12f97
NC
10205 { ac_try='test -z "$ac_c_werror_flag"
10206 || test ! -s conftest.err'
ab509236
L
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; }; then
10218 ac_cv_lib_mw__mwvalidcheckl=yes
10219else
10220 echo "$as_me: failed program was:" >&5
10221sed 's/^/| /' conftest.$ac_ext >&5
10222
10223ac_cv_lib_mw__mwvalidcheckl=no
10224fi
ab509236
L
10225rm -f conftest.err conftest.$ac_objext \
10226 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10227LIBS=$ac_check_lib_save_LIBS
10228fi
10229echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
10230echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
10231if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 10232 LIBM="-lmw"
39bec121
TW
10233fi
10234
13b2be9c
DJ
10235 echo "$as_me:$LINENO: checking for main in -lm" >&5
10236echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10237if test "${ac_cv_lib_m_main+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 10239else
13b2be9c 10240 ac_check_lib_save_LIBS=$LIBS
39bec121 10241LIBS="-lm $LIBS"
13b2be9c 10242cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10243/* confdefs.h. */
10244_ACEOF
10245cat confdefs.h >>conftest.$ac_ext
10246cat >>conftest.$ac_ext <<_ACEOF
10247/* end confdefs.h. */
39bec121 10248
d6d788bd 10249
13b2be9c
DJ
10250int
10251main ()
10252{
10253main ();
10254 ;
10255 return 0;
10256}
10257_ACEOF
10258rm -f conftest.$ac_objext conftest$ac_exeext
10259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10260 (eval $ac_link) 2>conftest.er1
13b2be9c 10261 ac_status=$?
ab509236
L
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
13b2be9c
DJ
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } &&
1ad12f97
NC
10267 { ac_try='test -z "$ac_c_werror_flag"
10268 || test ! -s conftest.err'
ab509236
L
10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270 (eval $ac_try) 2>&5
10271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; } &&
10274 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10277 ac_status=$?
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; }; then
10280 ac_cv_lib_m_main=yes
10281else
10282 echo "$as_me: failed program was:" >&5
10283sed 's/^/| /' conftest.$ac_ext >&5
10284
10285ac_cv_lib_m_main=no
10286fi
ab509236
L
10287rm -f conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10289LIBS=$ac_check_lib_save_LIBS
10290fi
10291echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10292echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10293if test $ac_cv_lib_m_main = yes; then
39bec121 10294 LIBM="$LIBM -lm"
39bec121
TW
10295fi
10296
10297 ;;
10298*)
13b2be9c
DJ
10299 echo "$as_me:$LINENO: checking for main in -lm" >&5
10300echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10301if test "${ac_cv_lib_m_main+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 10303else
13b2be9c 10304 ac_check_lib_save_LIBS=$LIBS
39bec121 10305LIBS="-lm $LIBS"
13b2be9c 10306cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10307/* confdefs.h. */
10308_ACEOF
10309cat confdefs.h >>conftest.$ac_ext
10310cat >>conftest.$ac_ext <<_ACEOF
10311/* end confdefs.h. */
39bec121 10312
d6d788bd 10313
13b2be9c
DJ
10314int
10315main ()
10316{
10317main ();
10318 ;
10319 return 0;
10320}
10321_ACEOF
10322rm -f conftest.$ac_objext conftest$ac_exeext
10323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10324 (eval $ac_link) 2>conftest.er1
13b2be9c 10325 ac_status=$?
ab509236
L
10326 grep -v '^ *+' conftest.er1 >conftest.err
10327 rm -f conftest.er1
10328 cat conftest.err >&5
13b2be9c
DJ
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } &&
1ad12f97
NC
10331 { ac_try='test -z "$ac_c_werror_flag"
10332 || test ! -s conftest.err'
ab509236
L
10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334 (eval $ac_try) 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; } &&
10338 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10341 ac_status=$?
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; }; then
10344 ac_cv_lib_m_main=yes
10345else
10346 echo "$as_me: failed program was:" >&5
10347sed 's/^/| /' conftest.$ac_ext >&5
10348
10349ac_cv_lib_m_main=no
10350fi
ab509236
L
10351rm -f conftest.err conftest.$ac_objext \
10352 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10353LIBS=$ac_check_lib_save_LIBS
10354fi
10355echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10356echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10357if test $ac_cv_lib_m_main = yes; then
39bec121 10358 LIBM="-lm"
39bec121
TW
10359fi
10360
10361 ;;
10362esac
10363
13b2be9c 10364
39bec121
TW
10365 ;;
10366esac
10367
252b5132
RH
10368# Some non-ANSI preprocessors botch requoting inside strings. That's bad
10369# enough, but on some of those systems, the assert macro relies on requoting
10370# working properly!
13b2be9c
DJ
10371echo "$as_me:$LINENO: checking for working assert macro" >&5
10372echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
10373if test "${gas_cv_assert_ok+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10375else
10376 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10377/* confdefs.h. */
10378_ACEOF
10379cat confdefs.h >>conftest.$ac_ext
10380cat >>conftest.$ac_ext <<_ACEOF
10381/* end confdefs.h. */
252b5132
RH
10382#include <assert.h>
10383#include <stdio.h>
13b2be9c
DJ
10384int
10385main ()
10386{
252b5132
RH
10387
10388/* check for requoting problems */
10389static int a, b, c, d;
10390static char *s;
10391assert (!strcmp(s, "foo bar baz quux"));
10392/* check for newline handling */
10393assert (a == b
10394 || c == d);
10395
13b2be9c
DJ
10396 ;
10397 return 0;
10398}
10399_ACEOF
10400rm -f conftest.$ac_objext conftest$ac_exeext
10401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10402 (eval $ac_link) 2>conftest.er1
13b2be9c 10403 ac_status=$?
ab509236
L
10404 grep -v '^ *+' conftest.er1 >conftest.err
10405 rm -f conftest.er1
10406 cat conftest.err >&5
13b2be9c
DJ
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } &&
1ad12f97
NC
10409 { ac_try='test -z "$ac_c_werror_flag"
10410 || test ! -s conftest.err'
ab509236
L
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10413 ac_status=$?
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; } &&
10416 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
252b5132
RH
10422 gas_cv_assert_ok=yes
10423else
13b2be9c
DJ
10424 echo "$as_me: failed program was:" >&5
10425sed 's/^/| /' conftest.$ac_ext >&5
10426
10427gas_cv_assert_ok=no
252b5132 10428fi
ab509236
L
10429rm -f conftest.err conftest.$ac_objext \
10430 conftest$ac_exeext conftest.$ac_ext
252b5132 10431fi
13b2be9c
DJ
10432echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
10433echo "${ECHO_T}$gas_cv_assert_ok" >&6
10434test $gas_cv_assert_ok = yes ||
10435cat >>confdefs.h <<\_ACEOF
252b5132 10436#define BROKEN_ASSERT 1
13b2be9c 10437_ACEOF
252b5132 10438
d6d788bd
L
10439
10440
252b5132
RH
10441# On some systems, the system header files may not declare malloc, realloc,
10442# and free. There are places where gas needs these functions to have been
10443# declared -- such as when taking their addresses.
10444gas_test_headers="
10445#ifdef HAVE_MEMORY_H
10446#include <memory.h>
10447#endif
10448#ifdef HAVE_STRING_H
10449#include <string.h>
10450#else
10451#ifdef HAVE_STRINGS_H
10452#include <strings.h>
10453#endif
10454#endif
10455#ifdef HAVE_STDLIB_H
10456#include <stdlib.h>
10457#endif
10458#ifdef HAVE_UNISTD_H
10459#include <unistd.h>
10460#endif
10461"
10462
e8a38df5
AL
10463# Does errno.h declare errno, or do we have to add a separate declaration
10464# for it?
10465
10466echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
10467echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
10468if test "${gas_cv_decl_needed_errno+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470else
10471 cat >conftest.$ac_ext <<_ACEOF
10472/* confdefs.h. */
10473_ACEOF
10474cat confdefs.h >>conftest.$ac_ext
10475cat >>conftest.$ac_ext <<_ACEOF
10476/* end confdefs.h. */
10477
10478#ifdef HAVE_ERRNO_H
10479#include <errno.h>
10480#endif
10481
10482int
10483main ()
10484{
10485
10486typedef int f;
10487f x;
10488x = (f) errno;
10489
10490 ;
10491 return 0;
10492}
10493_ACEOF
10494rm -f conftest.$ac_objext conftest$ac_exeext
10495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10496 (eval $ac_link) 2>conftest.er1
10497 ac_status=$?
10498 grep -v '^ *+' conftest.er1 >conftest.err
10499 rm -f conftest.er1
10500 cat conftest.err >&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } &&
10503 { ac_try='test -z "$ac_c_werror_flag"
10504 || test ! -s conftest.err'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; } &&
10510 { ac_try='test -s conftest$ac_exeext'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10516 gas_cv_decl_needed_errno=no
10517else
10518 echo "$as_me: failed program was:" >&5
10519sed 's/^/| /' conftest.$ac_ext >&5
10520
10521gas_cv_decl_needed_errno=yes
10522fi
10523rm -f conftest.err conftest.$ac_objext \
10524 conftest$ac_exeext conftest.$ac_ext
10525fi
10526echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
10527echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
10528if test $gas_cv_decl_needed_errno = yes; then
10529
10530cat >>confdefs.h <<\_ACEOF
10531#define NEED_DECLARATION_ERRNO 1
10532_ACEOF
10533
10534fi
10535
10536
56f36663
NC
10537echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
10538echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
10539if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541else
10542 cat >conftest.$ac_ext <<_ACEOF
10543/* confdefs.h. */
10544_ACEOF
10545cat confdefs.h >>conftest.$ac_ext
10546cat >>conftest.$ac_ext <<_ACEOF
10547/* end confdefs.h. */
10548#include <unistd.h>
10549int
10550main ()
10551{
10552extern int getopt (int, char *const*, const char *);
10553 ;
10554 return 0;
10555}
10556_ACEOF
10557rm -f conftest.$ac_objext
10558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10559 (eval $ac_compile) 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -z "$ac_c_werror_flag"
10567 || test ! -s conftest.err'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; } &&
10573 { ac_try='test -s conftest.$ac_objext'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 gas_cv_decl_getopt_unistd_h=yes
10580else
10581 echo "$as_me: failed program was:" >&5
10582sed 's/^/| /' conftest.$ac_ext >&5
10583
10584gas_cv_decl_getopt_unistd_h=no
10585fi
10586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10587fi
10588
10589echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
10590echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
10591if test $gas_cv_decl_getopt_unistd_h = yes; then
10592
10593cat >>confdefs.h <<\_ACEOF
10594#define HAVE_DECL_GETOPT 1
10595_ACEOF
10596
10597fi
10598
e8a38df5
AL
10599
10600echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
10601echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
10602if test "${gas_cv_decl_needed_environ+set}" = set; then
13b2be9c
DJ
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10604else
10605 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10606/* confdefs.h. */
10607_ACEOF
10608cat confdefs.h >>conftest.$ac_ext
10609cat >>conftest.$ac_ext <<_ACEOF
10610/* end confdefs.h. */
252b5132 10611$gas_test_headers
13b2be9c
DJ
10612int
10613main ()
10614{
252b5132 10615
e8a38df5 10616typedef char **f;
252b5132 10617f x;
e8a38df5 10618x = (f) environ;
252b5132 10619
13b2be9c
DJ
10620 ;
10621 return 0;
10622}
10623_ACEOF
10624rm -f conftest.$ac_objext conftest$ac_exeext
10625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10626 (eval $ac_link) 2>conftest.er1
13b2be9c 10627 ac_status=$?
ab509236
L
10628 grep -v '^ *+' conftest.er1 >conftest.err
10629 rm -f conftest.er1
10630 cat conftest.err >&5
13b2be9c
DJ
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } &&
1ad12f97
NC
10633 { ac_try='test -z "$ac_c_werror_flag"
10634 || test ! -s conftest.err'
ab509236
L
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; } &&
10640 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
e8a38df5 10646 gas_cv_decl_needed_environ=no
252b5132 10647else
13b2be9c
DJ
10648 echo "$as_me: failed program was:" >&5
10649sed 's/^/| /' conftest.$ac_ext >&5
10650
e8a38df5 10651gas_cv_decl_needed_environ=yes
252b5132 10652fi
ab509236
L
10653rm -f conftest.err conftest.$ac_objext \
10654 conftest$ac_exeext conftest.$ac_ext
252b5132 10655fi
e8a38df5
AL
10656echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
10657echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
10658if test $gas_cv_decl_needed_environ = yes; then
13b2be9c
DJ
10659
10660cat >>confdefs.h <<\_ACEOF
e8a38df5 10661#define NEED_DECLARATION_ENVIRON 1
13b2be9c
DJ
10662_ACEOF
10663
10664fi
10665
10666
e8a38df5
AL
10667echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
10668echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
10669if test "${gas_cv_decl_needed_ffs+set}" = set; then
13b2be9c
DJ
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10671else
10672 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10673/* confdefs.h. */
10674_ACEOF
10675cat confdefs.h >>conftest.$ac_ext
10676cat >>conftest.$ac_ext <<_ACEOF
10677/* end confdefs.h. */
10678$gas_test_headers
10679int
10680main ()
10681{
10682
e8a38df5 10683typedef int (*f)(int);
13b2be9c 10684f x;
e8a38df5 10685x = (f) ffs;
13b2be9c
DJ
10686
10687 ;
10688 return 0;
10689}
10690_ACEOF
10691rm -f conftest.$ac_objext conftest$ac_exeext
10692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10693 (eval $ac_link) 2>conftest.er1
13b2be9c 10694 ac_status=$?
ab509236
L
10695 grep -v '^ *+' conftest.er1 >conftest.err
10696 rm -f conftest.er1
10697 cat conftest.err >&5
13b2be9c
DJ
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } &&
1ad12f97
NC
10700 { ac_try='test -z "$ac_c_werror_flag"
10701 || test ! -s conftest.err'
ab509236
L
10702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703 (eval $ac_try) 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; } &&
10707 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; }; then
e8a38df5 10713 gas_cv_decl_needed_ffs=no
13b2be9c
DJ
10714else
10715 echo "$as_me: failed program was:" >&5
10716sed 's/^/| /' conftest.$ac_ext >&5
10717
e8a38df5 10718gas_cv_decl_needed_ffs=yes
13b2be9c 10719fi
ab509236
L
10720rm -f conftest.err conftest.$ac_objext \
10721 conftest$ac_exeext conftest.$ac_ext
13b2be9c 10722fi
e8a38df5
AL
10723echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
10724echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
10725if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c
DJ
10726
10727cat >>confdefs.h <<\_ACEOF
e8a38df5 10728#define NEED_DECLARATION_FFS 1
13b2be9c
DJ
10729_ACEOF
10730
10731fi
10732
10733
10734echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
10735echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
10736if test "${gas_cv_decl_needed_free+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10738else
10739 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10740/* confdefs.h. */
10741_ACEOF
10742cat confdefs.h >>conftest.$ac_ext
10743cat >>conftest.$ac_ext <<_ACEOF
10744/* end confdefs.h. */
10745$gas_test_headers
10746int
10747main ()
10748{
10749
10750typedef void (*f)();
10751f x;
10752x = (f) free;
10753
10754 ;
10755 return 0;
10756}
10757_ACEOF
10758rm -f conftest.$ac_objext conftest$ac_exeext
10759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10760 (eval $ac_link) 2>conftest.er1
13b2be9c 10761 ac_status=$?
ab509236
L
10762 grep -v '^ *+' conftest.er1 >conftest.err
10763 rm -f conftest.er1
10764 cat conftest.err >&5
13b2be9c
DJ
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } &&
1ad12f97
NC
10767 { ac_try='test -z "$ac_c_werror_flag"
10768 || test ! -s conftest.err'
ab509236
L
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; } &&
10774 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 gas_cv_decl_needed_free=no
10781else
10782 echo "$as_me: failed program was:" >&5
10783sed 's/^/| /' conftest.$ac_ext >&5
10784
10785gas_cv_decl_needed_free=yes
10786fi
ab509236
L
10787rm -f conftest.err conftest.$ac_objext \
10788 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
10789fi
10790echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
10791echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
10792if test $gas_cv_decl_needed_free = yes; then
10793
10794cat >>confdefs.h <<\_ACEOF
10795#define NEED_DECLARATION_FREE 1
10796_ACEOF
10797
10798fi
10799
10800
e8a38df5
AL
10801echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
10802echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
10803if test "${gas_cv_decl_needed_malloc+set}" = set; then
13b2be9c
DJ
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10805else
10806 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10807/* confdefs.h. */
10808_ACEOF
10809cat confdefs.h >>conftest.$ac_ext
10810cat >>conftest.$ac_ext <<_ACEOF
10811/* end confdefs.h. */
10812$gas_test_headers
10813int
10814main ()
10815{
10816
10817typedef char *(*f)();
10818f x;
e8a38df5 10819x = (f) malloc;
13b2be9c
DJ
10820
10821 ;
10822 return 0;
10823}
10824_ACEOF
10825rm -f conftest.$ac_objext conftest$ac_exeext
10826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10827 (eval $ac_link) 2>conftest.er1
13b2be9c 10828 ac_status=$?
ab509236
L
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
13b2be9c
DJ
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
1ad12f97
NC
10834 { ac_try='test -z "$ac_c_werror_flag"
10835 || test ! -s conftest.err'
ab509236
L
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; } &&
10841 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
e8a38df5 10847 gas_cv_decl_needed_malloc=no
13b2be9c
DJ
10848else
10849 echo "$as_me: failed program was:" >&5
10850sed 's/^/| /' conftest.$ac_ext >&5
10851
e8a38df5 10852gas_cv_decl_needed_malloc=yes
13b2be9c 10853fi
ab509236
L
10854rm -f conftest.err conftest.$ac_objext \
10855 conftest$ac_exeext conftest.$ac_ext
13b2be9c 10856fi
e8a38df5
AL
10857echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
10858echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
10859if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c
DJ
10860
10861cat >>confdefs.h <<\_ACEOF
e8a38df5 10862#define NEED_DECLARATION_MALLOC 1
13b2be9c
DJ
10863_ACEOF
10864
10865fi
10866
10867
e8a38df5
AL
10868echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
10869echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
10870if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13b2be9c
DJ
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872else
10873 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10874/* confdefs.h. */
10875_ACEOF
10876cat confdefs.h >>conftest.$ac_ext
10877cat >>conftest.$ac_ext <<_ACEOF
10878/* end confdefs.h. */
10879$gas_test_headers
10880int
10881main ()
10882{
10883
e8a38df5 10884typedef char *(*f)();
13b2be9c 10885f x;
e8a38df5 10886x = (f) sbrk;
13b2be9c
DJ
10887
10888 ;
10889 return 0;
10890}
10891_ACEOF
10892rm -f conftest.$ac_objext conftest$ac_exeext
10893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10894 (eval $ac_link) 2>conftest.er1
13b2be9c 10895 ac_status=$?
ab509236
L
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
13b2be9c
DJ
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
1ad12f97
NC
10901 { ac_try='test -z "$ac_c_werror_flag"
10902 || test ! -s conftest.err'
ab509236
L
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10910 (eval $ac_try) 2>&5
10911 ac_status=$?
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; }; then
e8a38df5 10914 gas_cv_decl_needed_sbrk=no
13b2be9c
DJ
10915else
10916 echo "$as_me: failed program was:" >&5
10917sed 's/^/| /' conftest.$ac_ext >&5
10918
e8a38df5 10919gas_cv_decl_needed_sbrk=yes
13b2be9c 10920fi
ab509236
L
10921rm -f conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
13b2be9c 10923fi
e8a38df5
AL
10924echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
10925echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
10926if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c
DJ
10927
10928cat >>confdefs.h <<\_ACEOF
e8a38df5 10929#define NEED_DECLARATION_SBRK 1
13b2be9c
DJ
10930_ACEOF
10931
10932fi
10933
10934
e8a38df5
AL
10935echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
10936echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
10937if test "${gas_cv_decl_needed_strstr+set}" = set; then
13b2be9c
DJ
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10939else
10940 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10941/* confdefs.h. */
10942_ACEOF
10943cat confdefs.h >>conftest.$ac_ext
10944cat >>conftest.$ac_ext <<_ACEOF
10945/* end confdefs.h. */
e8a38df5 10946$gas_test_headers
13b2be9c
DJ
10947int
10948main ()
10949{
10950
e8a38df5 10951typedef char *(*f)();
13b2be9c 10952f x;
e8a38df5 10953x = (f) strstr;
13b2be9c
DJ
10954
10955 ;
10956 return 0;
10957}
10958_ACEOF
10959rm -f conftest.$ac_objext conftest$ac_exeext
10960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 10961 (eval $ac_link) 2>conftest.er1
13b2be9c 10962 ac_status=$?
ab509236
L
10963 grep -v '^ *+' conftest.er1 >conftest.err
10964 rm -f conftest.er1
10965 cat conftest.err >&5
13b2be9c
DJ
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } &&
1ad12f97
NC
10968 { ac_try='test -z "$ac_c_werror_flag"
10969 || test ! -s conftest.err'
ab509236
L
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10972 ac_status=$?
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; } &&
10975 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; }; then
e8a38df5 10981 gas_cv_decl_needed_strstr=no
13b2be9c
DJ
10982else
10983 echo "$as_me: failed program was:" >&5
10984sed 's/^/| /' conftest.$ac_ext >&5
10985
e8a38df5 10986gas_cv_decl_needed_strstr=yes
13b2be9c 10987fi
ab509236
L
10988rm -f conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
13b2be9c 10990fi
e8a38df5
AL
10991echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
10992echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
10993if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
10994
10995cat >>confdefs.h <<\_ACEOF
e8a38df5 10996#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
10997_ACEOF
10998
10999fi
11000
11001
11002
11003
11004 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
11005
11006 ac_config_commands="$ac_config_commands default"
11007
11008
11009cat >confcache <<\_ACEOF
11010# This file is a shell script that caches the results of configure
11011# tests run on this system so they can be shared between configure
11012# scripts and configure runs, see configure's option --config-cache.
11013# It is not useful on other systems. If it contains results you don't
11014# want to keep, you may remove or edit it.
11015#
11016# config.status only pays attention to the cache file if you give it
11017# the --recheck option to rerun configure.
11018#
11019# `ac_cv_env_foo' variables (set or unset) will be overridden when
11020# loading this file, other *unset* `ac_cv_foo' will be assigned the
11021# following values.
11022
11023_ACEOF
11024
11025# The following way of writing the cache mishandles newlines in values,
11026# but we know of no workaround that is simple, portable, and efficient.
11027# So, don't put newlines in cache variables' values.
11028# Ultrix sh set writes to stderr and can't be redirected directly,
11029# and sets the high bit in the cache file unless we assign to the vars.
11030{
11031 (set) 2>&1 |
11032 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11033 *ac_space=\ *)
11034 # `set' does not quote correctly, so add quotes (double-quote
11035 # substitution turns \\\\ into \\, and sed turns \\ into \).
11036 sed -n \
ab509236
L
11037 "s/'/'\\\\''/g;
11038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
11039 ;;
11040 *)
11041 # `set' quotes correctly as required by POSIX, so do not add quotes.
11042 sed -n \
ab509236 11043 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
11044 ;;
11045 esac;
11046} |
11047 sed '
11048 t clear
11049 : clear
11050 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11051 t end
11052 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11053 : end' >>confcache
11054if diff $cache_file confcache >/dev/null 2>&1; then :; else
11055 if test -w $cache_file; then
11056 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11057 cat confcache >$cache_file
11058 else
11059 echo "not updating unwritable cache $cache_file"
11060 fi
11061fi
11062rm -f confcache
11063
11064test "x$prefix" = xNONE && prefix=$ac_default_prefix
11065# Let make expand exec_prefix.
11066test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11067
11068# VPATH may cause trouble with some makes, so we remove $(srcdir),
11069# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11070# trailing colons and then remove the whole line if VPATH becomes empty
11071# (actually we leave an empty line to preserve line numbers).
11072if test "x$srcdir" = x.; then
ab509236 11073 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13b2be9c
DJ
11074s/:*\$(srcdir):*/:/;
11075s/:*\${srcdir}:*/:/;
11076s/:*@srcdir@:*/:/;
ab509236 11077s/^\([^=]*=[ ]*\):*/\1/;
13b2be9c 11078s/:*$//;
ab509236 11079s/^[^=]*=[ ]*$//;
13b2be9c
DJ
11080}'
11081fi
11082
11083DEFS=-DHAVE_CONFIG_H
11084
11085ac_libobjs=
11086ac_ltlibobjs=
11087for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11088 # 1. Remove the extension, and $U if already installed.
11089 ac_i=`echo "$ac_i" |
ab509236 11090 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13b2be9c
DJ
11091 # 2. Add them.
11092 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11093 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11094done
11095LIBOBJS=$ac_libobjs
11096
11097LTLIBOBJS=$ac_ltlibobjs
11098
11099
11100if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11101 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11102Usually this means the macro was only invoked conditionally." >&5
11103echo "$as_me: error: conditional \"AMDEP\" was never defined.
11104Usually this means the macro was only invoked conditionally." >&2;}
11105 { (exit 1); exit 1; }; }
11106fi
11107if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11108 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11109Usually this means the macro was only invoked conditionally." >&5
11110echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11111Usually this means the macro was only invoked conditionally." >&2;}
11112 { (exit 1); exit 1; }; }
11113fi
11114if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11115 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11116Usually this means the macro was only invoked conditionally." >&5
11117echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11118Usually this means the macro was only invoked conditionally." >&2;}
11119 { (exit 1); exit 1; }; }
11120fi
11121
11122: ${CONFIG_STATUS=./config.status}
11123ac_clean_files_save=$ac_clean_files
11124ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11125{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11126echo "$as_me: creating $CONFIG_STATUS" >&6;}
11127cat >$CONFIG_STATUS <<_ACEOF
11128#! $SHELL
11129# Generated by $as_me.
11130# Run this file to recreate the current configuration.
11131# Compiler output produced by configure, useful for debugging
11132# configure, is in config.log if it exists.
11133
11134debug=false
11135ac_cs_recheck=false
11136ac_cs_silent=false
11137SHELL=\${CONFIG_SHELL-$SHELL}
11138_ACEOF
11139
11140cat >>$CONFIG_STATUS <<\_ACEOF
11141## --------------------- ##
11142## M4sh Initialization. ##
11143## --------------------- ##
11144
11145# Be Bourne compatible
11146if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11147 emulate sh
11148 NULLCMD=:
11149 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11150 # is contrary to our usage. Disable this feature.
11151 alias -g '${1+"$@"}'='"$@"'
11152elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11153 set -o posix
11154fi
ab509236 11155DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
11156
11157# Support unset when possible.
ab509236 11158if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
11159 as_unset=unset
11160else
11161 as_unset=false
11162fi
11163
11164
11165# Work around bugs in pre-3.0 UWIN ksh.
11166$as_unset ENV MAIL MAILPATH
11167PS1='$ '
11168PS2='> '
11169PS4='+ '
11170
11171# NLS nuisances.
11172for as_var in \
11173 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11174 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11175 LC_TELEPHONE LC_TIME
11176do
ab509236 11177 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
11178 eval $as_var=C; export $as_var
11179 else
11180 $as_unset $as_var
11181 fi
11182done
11183
11184# Required to use basename.
11185if expr a : '\(a\)' >/dev/null 2>&1; then
11186 as_expr=expr
11187else
11188 as_expr=false
11189fi
11190
11191if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11192 as_basename=basename
11193else
11194 as_basename=false
11195fi
11196
11197
11198# Name of the executable.
11199as_me=`$as_basename "$0" ||
11200$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11201 X"$0" : 'X\(//\)$' \| \
11202 X"$0" : 'X\(/\)$' \| \
11203 . : '\(.\)' 2>/dev/null ||
11204echo X/"$0" |
11205 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11206 /^X\/\(\/\/\)$/{ s//\1/; q; }
11207 /^X\/\(\/\).*/{ s//\1/; q; }
11208 s/.*/./; q'`
11209
11210
11211# PATH needs CR, and LINENO needs CR and PATH.
11212# Avoid depending upon Character Ranges.
11213as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11214as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11215as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11216as_cr_digits='0123456789'
11217as_cr_alnum=$as_cr_Letters$as_cr_digits
11218
11219# The user is always right.
11220if test "${PATH_SEPARATOR+set}" != set; then
11221 echo "#! /bin/sh" >conf$$.sh
11222 echo "exit 0" >>conf$$.sh
11223 chmod +x conf$$.sh
11224 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11225 PATH_SEPARATOR=';'
11226 else
11227 PATH_SEPARATOR=:
11228 fi
11229 rm -f conf$$.sh
11230fi
11231
11232
11233 as_lineno_1=$LINENO
11234 as_lineno_2=$LINENO
11235 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11236 test "x$as_lineno_1" != "x$as_lineno_2" &&
11237 test "x$as_lineno_3" = "x$as_lineno_2" || {
11238 # Find who we are. Look in the path if we contain no path at all
11239 # relative or not.
11240 case $0 in
11241 *[\\/]* ) as_myself=$0 ;;
11242 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243for as_dir in $PATH
11244do
11245 IFS=$as_save_IFS
11246 test -z "$as_dir" && as_dir=.
11247 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11248done
252b5132 11249
13b2be9c
DJ
11250 ;;
11251 esac
11252 # We did not find ourselves, most probably we were run as `sh COMMAND'
11253 # in which case we are not to be found in the path.
11254 if test "x$as_myself" = x; then
11255 as_myself=$0
11256 fi
11257 if test ! -f "$as_myself"; then
11258 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11259echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11260 { (exit 1); exit 1; }; }
11261 fi
11262 case $CONFIG_SHELL in
11263 '')
11264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11265for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11266do
11267 IFS=$as_save_IFS
11268 test -z "$as_dir" && as_dir=.
11269 for as_base in sh bash ksh sh5; do
11270 case $as_dir in
11271 /*)
11272 if ("$as_dir/$as_base" -c '
11273 as_lineno_1=$LINENO
11274 as_lineno_2=$LINENO
11275 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11276 test "x$as_lineno_1" != "x$as_lineno_2" &&
11277 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11278 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11279 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11280 CONFIG_SHELL=$as_dir/$as_base
11281 export CONFIG_SHELL
11282 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11283 fi;;
11284 esac
11285 done
11286done
11287;;
11288 esac
252b5132 11289
13b2be9c
DJ
11290 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11291 # uniformly replaced by the line number. The first 'sed' inserts a
11292 # line-number line before each line; the second 'sed' does the real
11293 # work. The second script uses 'N' to pair each line-number line
11294 # with the numbered line, and appends trailing '-' during
11295 # substitution so that $LINENO is not a special case at line end.
11296 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11297 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11298 sed '=' <$as_myself |
11299 sed '
11300 N
11301 s,$,-,
11302 : loop
11303 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11304 t loop
11305 s,-$,,
11306 s,^['$as_cr_digits']*\n,,
11307 ' >$as_me.lineno &&
11308 chmod +x $as_me.lineno ||
11309 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11310echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11311 { (exit 1); exit 1; }; }
11312
11313 # Don't try to exec as it changes $[0], causing all sort of problems
11314 # (the dirname of $[0] is not the place where we might find the
11315 # original and so on. Autoconf is especially sensible to this).
11316 . ./$as_me.lineno
11317 # Exit status is that of the last command.
11318 exit
11319}
d6d788bd 11320
252b5132 11321
13b2be9c
DJ
11322case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11323 *c*,-n*) ECHO_N= ECHO_C='
11324' ECHO_T=' ' ;;
11325 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11326 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11327esac
252b5132 11328
13b2be9c
DJ
11329if expr a : '\(a\)' >/dev/null 2>&1; then
11330 as_expr=expr
252b5132 11331else
13b2be9c 11332 as_expr=false
252b5132 11333fi
252b5132 11334
13b2be9c
DJ
11335rm -f conf$$ conf$$.exe conf$$.file
11336echo >conf$$.file
11337if ln -s conf$$.file conf$$ 2>/dev/null; then
11338 # We could just check for DJGPP; but this test a) works b) is more generic
11339 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11340 if test -f conf$$.exe; then
11341 # Don't use ln at all; we don't have any links
11342 as_ln_s='cp -p'
11343 else
11344 as_ln_s='ln -s'
11345 fi
11346elif ln conf$$.file conf$$ 2>/dev/null; then
11347 as_ln_s=ln
11348else
11349 as_ln_s='cp -p'
252b5132 11350fi
13b2be9c 11351rm -f conf$$ conf$$.exe conf$$.file
252b5132 11352
13b2be9c
DJ
11353if mkdir -p . 2>/dev/null; then
11354 as_mkdir_p=:
252b5132 11355else
ab509236 11356 test -d ./-p && rmdir ./-p
13b2be9c
DJ
11357 as_mkdir_p=false
11358fi
252b5132 11359
13b2be9c 11360as_executable_p="test -f"
252b5132 11361
13b2be9c 11362# Sed expression to map a string onto a valid CPP name.
ab509236 11363as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 11364
13b2be9c 11365# Sed expression to map a string onto a valid variable name.
ab509236 11366as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 11367
d6d788bd 11368
13b2be9c
DJ
11369# IFS
11370# We need space, tab and new line, in precisely that order.
11371as_nl='
11372'
11373IFS=" $as_nl"
252b5132 11374
13b2be9c
DJ
11375# CDPATH.
11376$as_unset CDPATH
252b5132 11377
13b2be9c 11378exec 6>&1
252b5132 11379
13b2be9c
DJ
11380# Open the log real soon, to keep \$[0] and so on meaningful, and to
11381# report actual input values of CONFIG_FILES etc. instead of their
11382# values after options handling. Logging --version etc. is OK.
11383exec 5>>config.log
11384{
11385 echo
11386 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11387## Running $as_me. ##
11388_ASBOX
11389} >&5
11390cat >&5 <<_CSEOF
252b5132 11391
13b2be9c 11392This file was extended by $as_me, which was
ab509236 11393generated by GNU Autoconf 2.59. Invocation command line was
d6d788bd 11394
13b2be9c
DJ
11395 CONFIG_FILES = $CONFIG_FILES
11396 CONFIG_HEADERS = $CONFIG_HEADERS
11397 CONFIG_LINKS = $CONFIG_LINKS
11398 CONFIG_COMMANDS = $CONFIG_COMMANDS
11399 $ $0 $@
252b5132 11400
13b2be9c
DJ
11401_CSEOF
11402echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11403echo >&5
11404_ACEOF
252b5132 11405
13b2be9c
DJ
11406# Files that config.status was made for.
11407if test -n "$ac_config_files"; then
11408 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 11409fi
13b2be9c
DJ
11410
11411if test -n "$ac_config_headers"; then
11412 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 11413fi
252b5132 11414
13b2be9c
DJ
11415if test -n "$ac_config_links"; then
11416 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
11417fi
11418
13b2be9c
DJ
11419if test -n "$ac_config_commands"; then
11420 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11421fi
d6d788bd 11422
13b2be9c 11423cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 11424
13b2be9c
DJ
11425ac_cs_usage="\
11426\`$as_me' instantiates files from templates according to the
11427current configuration.
252b5132 11428
13b2be9c 11429Usage: $0 [OPTIONS] [FILE]...
252b5132 11430
13b2be9c
DJ
11431 -h, --help print this help, then exit
11432 -V, --version print version number, then exit
11433 -q, --quiet do not print progress messages
11434 -d, --debug don't remove temporary files
11435 --recheck update $as_me by reconfiguring in the same conditions
11436 --file=FILE[:TEMPLATE]
ab509236 11437 instantiate the configuration file FILE
13b2be9c 11438 --header=FILE[:TEMPLATE]
ab509236 11439 instantiate the configuration header FILE
252b5132 11440
13b2be9c
DJ
11441Configuration files:
11442$config_files
252b5132 11443
13b2be9c
DJ
11444Configuration headers:
11445$config_headers
252b5132 11446
13b2be9c
DJ
11447Configuration commands:
11448$config_commands
252b5132 11449
13b2be9c
DJ
11450Report bugs to <bug-autoconf@gnu.org>."
11451_ACEOF
d6d788bd 11452
13b2be9c
DJ
11453cat >>$CONFIG_STATUS <<_ACEOF
11454ac_cs_version="\\
11455config.status
ab509236 11456configured by $0, generated by GNU Autoconf 2.59,
13b2be9c 11457 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 11458
ab509236 11459Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
11460This config.status script is free software; the Free Software Foundation
11461gives unlimited permission to copy, distribute and modify it."
11462srcdir=$srcdir
11463INSTALL="$INSTALL"
11464_ACEOF
d6d788bd 11465
13b2be9c
DJ
11466cat >>$CONFIG_STATUS <<\_ACEOF
11467# If no file are specified by the user, then we need to provide default
11468# value. By we need to know if files were specified by the user.
11469ac_need_defaults=:
11470while test $# != 0
11471do
11472 case $1 in
11473 --*=*)
11474 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11475 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11476 ac_shift=:
c8615825 11477 ;;
13b2be9c
DJ
11478 -*)
11479 ac_option=$1
11480 ac_optarg=$2
11481 ac_shift=shift
c8615825 11482 ;;
13b2be9c
DJ
11483 *) # This is not an option, so the user has probably given explicit
11484 # arguments.
11485 ac_option=$1
11486 ac_need_defaults=false;;
11487 esac
252b5132 11488
13b2be9c
DJ
11489 case $ac_option in
11490 # Handling of the options.
11491_ACEOF
11492cat >>$CONFIG_STATUS <<\_ACEOF
11493 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11494 ac_cs_recheck=: ;;
11495 --version | --vers* | -V )
11496 echo "$ac_cs_version"; exit 0 ;;
11497 --he | --h)
11498 # Conflict between --help and --header
11499 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11500Try \`$0 --help' for more information." >&5
11501echo "$as_me: error: ambiguous option: $1
11502Try \`$0 --help' for more information." >&2;}
11503 { (exit 1); exit 1; }; };;
11504 --help | --hel | -h )
11505 echo "$ac_cs_usage"; exit 0 ;;
11506 --debug | --d* | -d )
11507 debug=: ;;
11508 --file | --fil | --fi | --f )
11509 $ac_shift
11510 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11511 ac_need_defaults=false;;
11512 --header | --heade | --head | --hea )
11513 $ac_shift
11514 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11515 ac_need_defaults=false;;
11516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11517 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11518 ac_cs_silent=: ;;
c8615825 11519
13b2be9c
DJ
11520 # This is an error.
11521 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11522Try \`$0 --help' for more information." >&5
11523echo "$as_me: error: unrecognized option: $1
11524Try \`$0 --help' for more information." >&2;}
11525 { (exit 1); exit 1; }; } ;;
252b5132 11526
13b2be9c 11527 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 11528
13b2be9c
DJ
11529 esac
11530 shift
11531done
252b5132 11532
13b2be9c 11533ac_configure_extra_args=
d6d788bd 11534
13b2be9c
DJ
11535if $ac_cs_silent; then
11536 exec 6>/dev/null
11537 ac_configure_extra_args="$ac_configure_extra_args --silent"
11538fi
9b2b7d69 11539
13b2be9c
DJ
11540_ACEOF
11541cat >>$CONFIG_STATUS <<_ACEOF
11542if \$ac_cs_recheck; then
11543 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11544 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11545fi
11546
11547_ACEOF
11548
11549cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 11550#
13b2be9c 11551# INIT-COMMANDS section.
9b2b7d69
MM
11552#
11553
13b2be9c
DJ
11554AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11555target_cpu_type=${target_cpu_type}
11556 cgen_cpu_prefix=${cgen_cpu_prefix}
11557 obj_format=${obj_format}
11558 te_file=${te_file}
11559
11560_ACEOF
11561
11562
11563
11564cat >>$CONFIG_STATUS <<\_ACEOF
11565for ac_config_target in $ac_config_targets
9b2b7d69 11566do
13b2be9c
DJ
11567 case "$ac_config_target" in
11568 # Handling of arguments.
11569 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
11570 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
11571 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11572 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11573 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11574 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11575 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11576 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11577 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11578echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11579 { (exit 1); exit 1; }; };;
9b2b7d69
MM
11580 esac
11581done
11582
13b2be9c
DJ
11583# If the user did not use the arguments to specify the items to instantiate,
11584# then the envvar interface is used. Set only those that are not.
11585# We use the long form for the default assignment because of an extremely
11586# bizarre bug on SunOS 4.1.3.
11587if $ac_need_defaults; then
11588 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11589 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11590 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11591fi
11592
11593# Have a temporary directory for convenience. Make it in the build tree
11594# simply because there is no reason to put it here, and in addition,
11595# creating and moving files from /tmp can sometimes cause problems.
11596# Create a temporary directory, and hook for its removal unless debugging.
11597$debug ||
11598{
11599 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11600 trap '{ (exit 1); exit 1; }' 1 2 13 15
11601}
9b2b7d69 11602
13b2be9c 11603# Create a (secure) tmp directory for tmp files.
9b2b7d69 11604
13b2be9c
DJ
11605{
11606 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11607 test -n "$tmp" && test -d "$tmp"
11608} ||
11609{
11610 tmp=./confstat$$-$RANDOM
11611 (umask 077 && mkdir $tmp)
11612} ||
11613{
11614 echo "$me: cannot create a temporary directory in ." >&2
11615 { (exit 1); exit 1; }
11616}
9b2b7d69 11617
13b2be9c
DJ
11618_ACEOF
11619
11620cat >>$CONFIG_STATUS <<_ACEOF
11621
11622#
11623# CONFIG_FILES section.
11624#
11625
11626# No need to generate the scripts if there are no CONFIG_FILES.
11627# This happens for instance when ./config.status config.h
11628if test -n "\$CONFIG_FILES"; then
11629 # Protect against being on the right side of a sed subst in config.status.
11630 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11631 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11632s,@SHELL@,$SHELL,;t t
11633s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11634s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11635s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11636s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11637s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11638s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11639s,@exec_prefix@,$exec_prefix,;t t
11640s,@prefix@,$prefix,;t t
11641s,@program_transform_name@,$program_transform_name,;t t
11642s,@bindir@,$bindir,;t t
11643s,@sbindir@,$sbindir,;t t
11644s,@libexecdir@,$libexecdir,;t t
11645s,@datadir@,$datadir,;t t
11646s,@sysconfdir@,$sysconfdir,;t t
11647s,@sharedstatedir@,$sharedstatedir,;t t
11648s,@localstatedir@,$localstatedir,;t t
11649s,@libdir@,$libdir,;t t
11650s,@includedir@,$includedir,;t t
11651s,@oldincludedir@,$oldincludedir,;t t
11652s,@infodir@,$infodir,;t t
11653s,@mandir@,$mandir,;t t
11654s,@build_alias@,$build_alias,;t t
11655s,@host_alias@,$host_alias,;t t
11656s,@target_alias@,$target_alias,;t t
11657s,@DEFS@,$DEFS,;t t
11658s,@ECHO_C@,$ECHO_C,;t t
11659s,@ECHO_N@,$ECHO_N,;t t
11660s,@ECHO_T@,$ECHO_T,;t t
11661s,@LIBS@,$LIBS,;t t
11662s,@build@,$build,;t t
11663s,@build_cpu@,$build_cpu,;t t
11664s,@build_vendor@,$build_vendor,;t t
11665s,@build_os@,$build_os,;t t
11666s,@host@,$host,;t t
11667s,@host_cpu@,$host_cpu,;t t
11668s,@host_vendor@,$host_vendor,;t t
11669s,@host_os@,$host_os,;t t
11670s,@target@,$target,;t t
11671s,@target_cpu@,$target_cpu,;t t
11672s,@target_vendor@,$target_vendor,;t t
11673s,@target_os@,$target_os,;t t
11674s,@CC@,$CC,;t t
11675s,@CFLAGS@,$CFLAGS,;t t
11676s,@LDFLAGS@,$LDFLAGS,;t t
11677s,@CPPFLAGS@,$CPPFLAGS,;t t
11678s,@ac_ct_CC@,$ac_ct_CC,;t t
11679s,@EXEEXT@,$EXEEXT,;t t
11680s,@OBJEXT@,$OBJEXT,;t t
11681s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11682s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11683s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11684s,@CYGPATH_W@,$CYGPATH_W,;t t
11685s,@PACKAGE@,$PACKAGE,;t t
11686s,@VERSION@,$VERSION,;t t
11687s,@ACLOCAL@,$ACLOCAL,;t t
11688s,@AUTOCONF@,$AUTOCONF,;t t
11689s,@AUTOMAKE@,$AUTOMAKE,;t t
11690s,@AUTOHEADER@,$AUTOHEADER,;t t
11691s,@MAKEINFO@,$MAKEINFO,;t t
13b2be9c
DJ
11692s,@install_sh@,$install_sh,;t t
11693s,@STRIP@,$STRIP,;t t
11694s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11695s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
ab509236 11696s,@mkdir_p@,$mkdir_p,;t t
13b2be9c
DJ
11697s,@AWK@,$AWK,;t t
11698s,@SET_MAKE@,$SET_MAKE,;t t
11699s,@am__leading_dot@,$am__leading_dot,;t t
8ea2b00f
AM
11700s,@AMTAR@,$AMTAR,;t t
11701s,@am__tar@,$am__tar,;t t
11702s,@am__untar@,$am__untar,;t t
13b2be9c
DJ
11703s,@DEPDIR@,$DEPDIR,;t t
11704s,@am__include@,$am__include,;t t
11705s,@am__quote@,$am__quote,;t t
11706s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11707s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11708s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11709s,@CCDEPMODE@,$CCDEPMODE,;t t
11710s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11711s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11712s,@LN_S@,$LN_S,;t t
11713s,@RANLIB@,$RANLIB,;t t
11714s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11715s,@LIBTOOL@,$LIBTOOL,;t t
11716s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 11717s,@NO_WERROR@,$NO_WERROR,;t t
13b2be9c
DJ
11718s,@GDBINIT@,$GDBINIT,;t t
11719s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
11720s,@extra_objects@,$extra_objects,;t t
11721s,@target_cpu_type@,$target_cpu_type,;t t
11722s,@obj_format@,$obj_format,;t t
11723s,@te_file@,$te_file,;t t
11724s,@install_tooldir@,$install_tooldir,;t t
11725s,@atof@,$atof,;t t
11726s,@BFDLIB@,$BFDLIB,;t t
11727s,@OPCODES_LIB@,$OPCODES_LIB,;t t
11728s,@BFDVER_H@,$BFDVER_H,;t t
11729s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
11730s,@YACC@,$YACC,;t t
11731s,@LEX@,$LEX,;t t
11732s,@LEXLIB@,$LEXLIB,;t t
11733s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11734s,@CPP@,$CPP,;t t
11735s,@EGREP@,$EGREP,;t t
11736s,@ALLOCA@,$ALLOCA,;t t
11737s,@USE_NLS@,$USE_NLS,;t t
11738s,@MSGFMT@,$MSGFMT,;t t
11739s,@GMSGFMT@,$GMSGFMT,;t t
11740s,@XGETTEXT@,$XGETTEXT,;t t
11741s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11742s,@CATALOGS@,$CATALOGS,;t t
11743s,@CATOBJEXT@,$CATOBJEXT,;t t
11744s,@DATADIRNAME@,$DATADIRNAME,;t t
11745s,@GMOFILES@,$GMOFILES,;t t
11746s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11747s,@INTLDEPS@,$INTLDEPS,;t t
11748s,@INTLLIBS@,$INTLLIBS,;t t
11749s,@INTLOBJS@,$INTLOBJS,;t t
11750s,@POFILES@,$POFILES,;t t
11751s,@POSUB@,$POSUB,;t t
11752s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11753s,@GT_NO@,$GT_NO,;t t
11754s,@GT_YES@,$GT_YES,;t t
11755s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11756s,@l@,$l,;t t
11757s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11758s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11759s,@MAINT@,$MAINT,;t t
11760s,@LIBM@,$LIBM,;t t
11761s,@LIBOBJS@,$LIBOBJS,;t t
11762s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
11763CEOF
11764
13b2be9c
DJ
11765_ACEOF
11766
11767 cat >>$CONFIG_STATUS <<\_ACEOF
11768 # Split the substitutions into bite-sized pieces for seds with
11769 # small command number limits, like on Digital OSF/1 and HP-UX.
11770 ac_max_sed_lines=48
11771 ac_sed_frag=1 # Number of current file.
11772 ac_beg=1 # First line for current file.
11773 ac_end=$ac_max_sed_lines # Line after last line for current file.
11774 ac_more_lines=:
11775 ac_sed_cmds=
11776 while $ac_more_lines; do
11777 if test $ac_beg -gt 1; then
11778 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11779 else
11780 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11781 fi
11782 if test ! -s $tmp/subs.frag; then
11783 ac_more_lines=false
9b2b7d69 11784 else
13b2be9c
DJ
11785 # The purpose of the label and of the branching condition is to
11786 # speed up the sed processing (if there are no `@' at all, there
11787 # is no need to browse any of the substitutions).
11788 # These are the two extra sed commands mentioned above.
11789 (echo ':t
11790 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11791 if test -z "$ac_sed_cmds"; then
ab509236 11792 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c 11793 else
ab509236 11794 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c
DJ
11795 fi
11796 ac_sed_frag=`expr $ac_sed_frag + 1`
11797 ac_beg=$ac_end
11798 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 11799 fi
13b2be9c
DJ
11800 done
11801 if test -z "$ac_sed_cmds"; then
11802 ac_sed_cmds=cat
252b5132 11803 fi
13b2be9c 11804fi # test -n "$CONFIG_FILES"
252b5132 11805
13b2be9c
DJ
11806_ACEOF
11807cat >>$CONFIG_STATUS <<\_ACEOF
11808for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 11809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
11810 case $ac_file in
11811 - | *:- | *:-:* ) # input from stdin
ab509236
L
11812 cat >$tmp/stdin
11813 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 11815 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 11816 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 11817 * ) ac_file_in=$ac_file.in ;;
252b5132 11818 esac
9b2b7d69 11819
13b2be9c
DJ
11820 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11821 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11822$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
11823 X"$ac_file" : 'X\(//\)[^/]' \| \
11824 X"$ac_file" : 'X\(//\)$' \| \
11825 X"$ac_file" : 'X\(/\)' \| \
11826 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
11827echo X"$ac_file" |
11828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11829 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11830 /^X\(\/\/\)$/{ s//\1/; q; }
11831 /^X\(\/\).*/{ s//\1/; q; }
11832 s/.*/./; q'`
11833 { if $as_mkdir_p; then
11834 mkdir -p "$ac_dir"
c8615825 11835 else
13b2be9c
DJ
11836 as_dir="$ac_dir"
11837 as_dirs=
11838 while test ! -d "$as_dir"; do
11839 as_dirs="$as_dir $as_dirs"
11840 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11841$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
11842 X"$as_dir" : 'X\(//\)[^/]' \| \
11843 X"$as_dir" : 'X\(//\)$' \| \
11844 X"$as_dir" : 'X\(/\)' \| \
11845 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
11846echo X"$as_dir" |
11847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11849 /^X\(\/\/\)$/{ s//\1/; q; }
11850 /^X\(\/\).*/{ s//\1/; q; }
11851 s/.*/./; q'`
11852 done
11853 test ! -n "$as_dirs" || mkdir $as_dirs
11854 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11855echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11856 { (exit 1); exit 1; }; }; }
11857
11858 ac_builddir=.
11859
11860if test "$ac_dir" != .; then
11861 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11862 # A "../" for each directory in $ac_dir_suffix.
11863 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11864else
11865 ac_dir_suffix= ac_top_builddir=
11866fi
9b2b7d69 11867
13b2be9c
DJ
11868case $srcdir in
11869 .) # No --srcdir option. We are building in place.
11870 ac_srcdir=.
11871 if test -z "$ac_top_builddir"; then
11872 ac_top_srcdir=.
11873 else
11874 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11875 fi ;;
11876 [\\/]* | ?:[\\/]* ) # Absolute path.
11877 ac_srcdir=$srcdir$ac_dir_suffix;
11878 ac_top_srcdir=$srcdir ;;
9b2b7d69 11879 *) # Relative path.
13b2be9c
DJ
11880 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11881 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11882esac
ab509236
L
11883
11884# Do not use `cd foo && pwd` to compute absolute paths, because
11885# the directories may not exist.
11886case `pwd` in
11887.) ac_abs_builddir="$ac_dir";;
11888*)
11889 case "$ac_dir" in
11890 .) ac_abs_builddir=`pwd`;;
11891 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11892 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11893 esac;;
11894esac
11895case $ac_abs_builddir in
11896.) ac_abs_top_builddir=${ac_top_builddir}.;;
11897*)
11898 case ${ac_top_builddir}. in
11899 .) ac_abs_top_builddir=$ac_abs_builddir;;
11900 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11901 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11902 esac;;
11903esac
11904case $ac_abs_builddir in
11905.) ac_abs_srcdir=$ac_srcdir;;
11906*)
11907 case $ac_srcdir in
11908 .) ac_abs_srcdir=$ac_abs_builddir;;
11909 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11910 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11911 esac;;
11912esac
11913case $ac_abs_builddir in
11914.) ac_abs_top_srcdir=$ac_top_srcdir;;
11915*)
11916 case $ac_top_srcdir in
11917 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11918 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11919 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11920 esac;;
11921esac
252b5132 11922
9b2b7d69 11923
13b2be9c
DJ
11924 case $INSTALL in
11925 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11926 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 11927 esac
9b2b7d69 11928
1ad12f97
NC
11929 if test x"$ac_file" != x-; then
11930 { echo "$as_me:$LINENO: creating $ac_file" >&5
11931echo "$as_me: creating $ac_file" >&6;}
11932 rm -f "$ac_file"
11933 fi
13b2be9c
DJ
11934 # Let's still pretend it is `configure' which instantiates (i.e., don't
11935 # use $as_me), people would be surprised to read:
11936 # /* config.h. Generated by config.status. */
11937 if test x"$ac_file" = x-; then
11938 configure_input=
11939 else
11940 configure_input="$ac_file. "
11941 fi
11942 configure_input=$configure_input"Generated from `echo $ac_file_in |
ab509236 11943 sed 's,.*/,,'` by configure."
13b2be9c
DJ
11944
11945 # First look for the input files in the build tree, otherwise in the
11946 # src tree.
11947 ac_file_inputs=`IFS=:
11948 for f in $ac_file_in; do
11949 case $f in
11950 -) echo $tmp/stdin ;;
11951 [\\/$]*)
ab509236
L
11952 # Absolute (can't be DOS-style, as IFS=:)
11953 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
11954echo "$as_me: error: cannot find input file: $f" >&2;}
11955 { (exit 1); exit 1; }; }
ab509236 11956 echo "$f";;
13b2be9c 11957 *) # Relative
ab509236
L
11958 if test -f "$f"; then
11959 # Build tree
11960 echo "$f"
11961 elif test -f "$srcdir/$f"; then
11962 # Source tree
11963 echo "$srcdir/$f"
11964 else
11965 # /dev/null tree
11966 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
11967echo "$as_me: error: cannot find input file: $f" >&2;}
11968 { (exit 1); exit 1; }; }
ab509236 11969 fi;;
13b2be9c
DJ
11970 esac
11971 done` || { (exit 1); exit 1; }
11972_ACEOF
11973cat >>$CONFIG_STATUS <<_ACEOF
11974 sed "$ac_vpsub
11975$extrasub
11976_ACEOF
11977cat >>$CONFIG_STATUS <<\_ACEOF
11978:t
11979/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11980s,@configure_input@,$configure_input,;t t
11981s,@srcdir@,$ac_srcdir,;t t
11982s,@abs_srcdir@,$ac_abs_srcdir,;t t
11983s,@top_srcdir@,$ac_top_srcdir,;t t
11984s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11985s,@builddir@,$ac_builddir,;t t
11986s,@abs_builddir@,$ac_abs_builddir,;t t
11987s,@top_builddir@,$ac_top_builddir,;t t
11988s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11989s,@INSTALL@,$ac_INSTALL,;t t
11990" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11991 rm -f $tmp/stdin
11992 if test x"$ac_file" != x-; then
11993 mv $tmp/out $ac_file
11994 else
11995 cat $tmp/out
11996 rm -f $tmp/out
11997 fi
11998
11999done
12000_ACEOF
12001cat >>$CONFIG_STATUS <<\_ACEOF
12002
12003#
12004# CONFIG_HEADER section.
12005#
252b5132
RH
12006
12007# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12008# NAME is the cpp macro being defined and VALUE is the value it is being given.
12009#
12010# ac_d sets the value in "#define NAME VALUE" lines.
ab509236
L
12011ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12012ac_dB='[ ].*$,\1#\2'
13b2be9c
DJ
12013ac_dC=' '
12014ac_dD=',;t'
12015# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ab509236 12016ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13b2be9c 12017ac_uB='$,\1#\2define\3'
252b5132 12018ac_uC=' '
13b2be9c
DJ
12019ac_uD=',;t'
12020
12021for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 12022 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
12023 case $ac_file in
12024 - | *:- | *:-:* ) # input from stdin
ab509236
L
12025 cat >$tmp/stdin
12026 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12027 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 12028 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 12029 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 12030 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
12031 esac
12032
13b2be9c
DJ
12033 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12034echo "$as_me: creating $ac_file" >&6;}
12035
12036 # First look for the input files in the build tree, otherwise in the
12037 # src tree.
12038 ac_file_inputs=`IFS=:
12039 for f in $ac_file_in; do
12040 case $f in
12041 -) echo $tmp/stdin ;;
12042 [\\/$]*)
ab509236
L
12043 # Absolute (can't be DOS-style, as IFS=:)
12044 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
12045echo "$as_me: error: cannot find input file: $f" >&2;}
12046 { (exit 1); exit 1; }; }
ab509236
L
12047 # Do quote $f, to prevent DOS paths from being IFS'd.
12048 echo "$f";;
13b2be9c 12049 *) # Relative
ab509236
L
12050 if test -f "$f"; then
12051 # Build tree
12052 echo "$f"
12053 elif test -f "$srcdir/$f"; then
12054 # Source tree
12055 echo "$srcdir/$f"
12056 else
12057 # /dev/null tree
12058 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
12059echo "$as_me: error: cannot find input file: $f" >&2;}
12060 { (exit 1); exit 1; }; }
ab509236 12061 fi;;
13b2be9c
DJ
12062 esac
12063 done` || { (exit 1); exit 1; }
12064 # Remove the trailing spaces.
ab509236 12065 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13b2be9c
DJ
12066
12067_ACEOF
12068
12069# Transform confdefs.h into two sed scripts, `conftest.defines' and
12070# `conftest.undefs', that substitutes the proper values into
12071# config.h.in to produce config.h. The first handles `#define'
12072# templates, and the second `#undef' templates.
12073# And first: Protect against being on the right side of a sed subst in
12074# config.status. Protect against being in an unquoted here document
12075# in config.status.
12076rm -f conftest.defines conftest.undefs
12077# Using a here document instead of a string reduces the quoting nightmare.
12078# Putting comments in sed scripts is not portable.
12079#
12080# `end' is used to avoid that the second main sed command (meant for
12081# 0-ary CPP macros) applies to n-ary macro definitions.
12082# See the Autoconf documentation for `clear'.
12083cat >confdef2sed.sed <<\_ACEOF
12084s/[\\&,]/\\&/g
12085s,[\\$`],\\&,g
12086t clear
12087: clear
ab509236 12088s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13b2be9c 12089t end
ab509236 12090s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13b2be9c
DJ
12091: end
12092_ACEOF
12093# If some macros were called several times there might be several times
12094# the same #defines, which is useless. Nevertheless, we may not want to
12095# sort them, since we want the *last* AC-DEFINE to be honored.
12096uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12097sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12098rm -f confdef2sed.sed
252b5132
RH
12099
12100# This sed command replaces #undef with comments. This is necessary, for
12101# example, in the case of _POSIX_SOURCE, which is predefined and required
12102# on some systems where configure will not decide to define it.
13b2be9c 12103cat >>conftest.undefs <<\_ACEOF
ab509236 12104s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13b2be9c
DJ
12105_ACEOF
12106
12107# Break up conftest.defines because some shells have a limit on the size
12108# of here documents, and old seds have small limits too (100 cmds).
12109echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ab509236 12110echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13b2be9c
DJ
12111echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12112echo ' :' >>$CONFIG_STATUS
12113rm -f conftest.tail
12114while grep . conftest.defines >/dev/null
12115do
12116 # Write a limited-size here document to $tmp/defines.sed.
12117 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12118 # Speed up: don't consider the non `#define' lines.
ab509236 12119 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13b2be9c
DJ
12120 # Work around the forget-to-reset-the-flag bug.
12121 echo 't clr' >>$CONFIG_STATUS
12122 echo ': clr' >>$CONFIG_STATUS
12123 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12124 echo 'CEOF
12125 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12126 rm -f $tmp/in
12127 mv $tmp/out $tmp/in
12128' >>$CONFIG_STATUS
12129 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12130 rm -f conftest.defines
12131 mv conftest.tail conftest.defines
12132done
12133rm -f conftest.defines
12134echo ' fi # grep' >>$CONFIG_STATUS
12135echo >>$CONFIG_STATUS
252b5132 12136
13b2be9c
DJ
12137# Break up conftest.undefs because some shells have a limit on the size
12138# of here documents, and old seds have small limits too (100 cmds).
12139echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 12140rm -f conftest.tail
13b2be9c 12141while grep . conftest.undefs >/dev/null
252b5132 12142do
13b2be9c
DJ
12143 # Write a limited-size here document to $tmp/undefs.sed.
12144 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12145 # Speed up: don't consider the non `#undef'
ab509236 12146 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13b2be9c
DJ
12147 # Work around the forget-to-reset-the-flag bug.
12148 echo 't clr' >>$CONFIG_STATUS
12149 echo ': clr' >>$CONFIG_STATUS
12150 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 12151 echo 'CEOF
13b2be9c
DJ
12152 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12153 rm -f $tmp/in
12154 mv $tmp/out $tmp/in
12155' >>$CONFIG_STATUS
12156 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12157 rm -f conftest.undefs
12158 mv conftest.tail conftest.undefs
252b5132 12159done
13b2be9c
DJ
12160rm -f conftest.undefs
12161
12162cat >>$CONFIG_STATUS <<\_ACEOF
12163 # Let's still pretend it is `configure' which instantiates (i.e., don't
12164 # use $as_me), people would be surprised to read:
12165 # /* config.h. Generated by config.status. */
12166 if test x"$ac_file" = x-; then
12167 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 12168 else
13b2be9c
DJ
12169 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12170 fi
12171 cat $tmp/in >>$tmp/config.h
12172 rm -f $tmp/in
12173 if test x"$ac_file" != x-; then
12174 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12175 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12176echo "$as_me: $ac_file is unchanged" >&6;}
12177 else
12178 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12179$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12180 X"$ac_file" : 'X\(//\)[^/]' \| \
12181 X"$ac_file" : 'X\(//\)$' \| \
12182 X"$ac_file" : 'X\(/\)' \| \
12183 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12184echo X"$ac_file" |
12185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12187 /^X\(\/\/\)$/{ s//\1/; q; }
12188 /^X\(\/\).*/{ s//\1/; q; }
12189 s/.*/./; q'`
12190 { if $as_mkdir_p; then
12191 mkdir -p "$ac_dir"
12192 else
12193 as_dir="$ac_dir"
12194 as_dirs=
12195 while test ! -d "$as_dir"; do
12196 as_dirs="$as_dir $as_dirs"
12197 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12198$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12199 X"$as_dir" : 'X\(//\)[^/]' \| \
12200 X"$as_dir" : 'X\(//\)$' \| \
12201 X"$as_dir" : 'X\(/\)' \| \
12202 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12203echo X"$as_dir" |
12204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12206 /^X\(\/\/\)$/{ s//\1/; q; }
12207 /^X\(\/\).*/{ s//\1/; q; }
12208 s/.*/./; q'`
12209 done
12210 test ! -n "$as_dirs" || mkdir $as_dirs
12211 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12212echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12213 { (exit 1); exit 1; }; }; }
12214
12215 rm -f $ac_file
12216 mv $tmp/config.h $ac_file
9b2b7d69 12217 fi
13b2be9c
DJ
12218 else
12219 cat $tmp/config.h
12220 rm -f $tmp/config.h
9b2b7d69 12221 fi
13b2be9c
DJ
12222# Compute $ac_file's index in $config_headers.
12223_am_stamp_count=1
12224for _am_header in $config_headers :; do
12225 case $_am_header in
12226 $ac_file | $ac_file:* )
12227 break ;;
12228 * )
12229 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12230 esac
12231done
12232echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12233$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12234 X$ac_file : 'X\(//\)[^/]' \| \
12235 X$ac_file : 'X\(//\)$' \| \
12236 X$ac_file : 'X\(/\)' \| \
12237 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12238echo X$ac_file |
12239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12240 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12241 /^X\(\/\/\)$/{ s//\1/; q; }
12242 /^X\(\/\).*/{ s//\1/; q; }
12243 s/.*/./; q'`/stamp-h$_am_stamp_count
12244done
12245_ACEOF
12246cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 12247
13b2be9c
DJ
12248#
12249# CONFIG_COMMANDS section.
12250#
12251for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12252 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12253 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12254 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12255$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12256 X"$ac_dest" : 'X\(//\)[^/]' \| \
12257 X"$ac_dest" : 'X\(//\)$' \| \
12258 X"$ac_dest" : 'X\(/\)' \| \
12259 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12260echo X"$ac_dest" |
12261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12262 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12263 /^X\(\/\/\)$/{ s//\1/; q; }
12264 /^X\(\/\).*/{ s//\1/; q; }
12265 s/.*/./; q'`
ab509236
L
12266 { if $as_mkdir_p; then
12267 mkdir -p "$ac_dir"
12268 else
12269 as_dir="$ac_dir"
12270 as_dirs=
12271 while test ! -d "$as_dir"; do
12272 as_dirs="$as_dir $as_dirs"
12273 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12274$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12275 X"$as_dir" : 'X\(//\)[^/]' \| \
12276 X"$as_dir" : 'X\(//\)$' \| \
12277 X"$as_dir" : 'X\(/\)' \| \
12278 . : '\(.\)' 2>/dev/null ||
12279echo X"$as_dir" |
12280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12281 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12282 /^X\(\/\/\)$/{ s//\1/; q; }
12283 /^X\(\/\).*/{ s//\1/; q; }
12284 s/.*/./; q'`
12285 done
12286 test ! -n "$as_dirs" || mkdir $as_dirs
12287 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12288echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12289 { (exit 1); exit 1; }; }; }
12290
13b2be9c
DJ
12291 ac_builddir=.
12292
12293if test "$ac_dir" != .; then
12294 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12295 # A "../" for each directory in $ac_dir_suffix.
12296 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12297else
12298 ac_dir_suffix= ac_top_builddir=
12299fi
12300
12301case $srcdir in
12302 .) # No --srcdir option. We are building in place.
12303 ac_srcdir=.
12304 if test -z "$ac_top_builddir"; then
12305 ac_top_srcdir=.
12306 else
12307 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12308 fi ;;
12309 [\\/]* | ?:[\\/]* ) # Absolute path.
12310 ac_srcdir=$srcdir$ac_dir_suffix;
12311 ac_top_srcdir=$srcdir ;;
12312 *) # Relative path.
12313 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12314 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12315esac
ab509236
L
12316
12317# Do not use `cd foo && pwd` to compute absolute paths, because
12318# the directories may not exist.
12319case `pwd` in
12320.) ac_abs_builddir="$ac_dir";;
12321*)
12322 case "$ac_dir" in
12323 .) ac_abs_builddir=`pwd`;;
12324 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12325 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12326 esac;;
12327esac
12328case $ac_abs_builddir in
12329.) ac_abs_top_builddir=${ac_top_builddir}.;;
12330*)
12331 case ${ac_top_builddir}. in
12332 .) ac_abs_top_builddir=$ac_abs_builddir;;
12333 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12334 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12335 esac;;
12336esac
12337case $ac_abs_builddir in
12338.) ac_abs_srcdir=$ac_srcdir;;
12339*)
12340 case $ac_srcdir in
12341 .) ac_abs_srcdir=$ac_abs_builddir;;
12342 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12343 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12344 esac;;
12345esac
12346case $ac_abs_builddir in
12347.) ac_abs_top_srcdir=$ac_top_srcdir;;
12348*)
12349 case $ac_top_srcdir in
12350 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12351 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12352 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12353 esac;;
12354esac
13b2be9c
DJ
12355
12356
12357 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12358echo "$as_me: executing $ac_dest commands" >&6;}
12359 case $ac_dest in
12360 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12361 # Strip MF so we end up with the name of the file.
12362 mf=`echo "$mf" | sed -e 's/:.*$//'`
12363 # Check whether this is an Automake generated Makefile or not.
12364 # We used to match only the files named `Makefile.in', but
12365 # some people rename them; so instead we look at the file content.
12366 # Grep'ing the first line is not enough: some people post-process
12367 # each Makefile.in and add a new line on top of each file to say so.
12368 # So let's grep whole file.
12369 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12370 dirpart=`(dirname "$mf") 2>/dev/null ||
12371$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12372 X"$mf" : 'X\(//\)[^/]' \| \
12373 X"$mf" : 'X\(//\)$' \| \
12374 X"$mf" : 'X\(/\)' \| \
12375 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12376echo X"$mf" |
12377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12378 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12379 /^X\(\/\/\)$/{ s//\1/; q; }
12380 /^X\(\/\).*/{ s//\1/; q; }
12381 s/.*/./; q'`
12382 else
12383 continue
12384 fi
8ea2b00f
AM
12385 # Extract the definition of DEPDIR, am__include, and am__quote
12386 # from the Makefile without running `make'.
4b363073 12387 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13b2be9c 12388 test -z "$DEPDIR" && continue
8ea2b00f
AM
12389 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12390 test -z "am__include" && continue
12391 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13b2be9c 12392 # When using ansi2knr, U may be empty or an underscore; expand it
4b363073 12393 U=`sed -n 's/^U = //p' < "$mf"`
8ea2b00f
AM
12394 # Find all dependency output files, they are included files with
12395 # $(DEPDIR) in their names. We invoke sed twice because it is the
12396 # simplest approach to changing $(DEPDIR) to its actual value in the
12397 # expansion.
12398 for file in `sed -n "
12399 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13b2be9c
DJ
12400 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12401 # Make sure the directory exists.
12402 test -f "$dirpart/$file" && continue
12403 fdir=`(dirname "$file") 2>/dev/null ||
12404$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12405 X"$file" : 'X\(//\)[^/]' \| \
12406 X"$file" : 'X\(//\)$' \| \
12407 X"$file" : 'X\(/\)' \| \
12408 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12409echo X"$file" |
12410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12412 /^X\(\/\/\)$/{ s//\1/; q; }
12413 /^X\(\/\).*/{ s//\1/; q; }
12414 s/.*/./; q'`
12415 { if $as_mkdir_p; then
12416 mkdir -p $dirpart/$fdir
12417 else
12418 as_dir=$dirpart/$fdir
12419 as_dirs=
12420 while test ! -d "$as_dir"; do
12421 as_dirs="$as_dir $as_dirs"
12422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12423$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
12424 X"$as_dir" : 'X\(//\)[^/]' \| \
12425 X"$as_dir" : 'X\(//\)$' \| \
12426 X"$as_dir" : 'X\(/\)' \| \
12427 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
12428echo X"$as_dir" |
12429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12431 /^X\(\/\/\)$/{ s//\1/; q; }
12432 /^X\(\/\).*/{ s//\1/; q; }
12433 s/.*/./; q'`
12434 done
12435 test ! -n "$as_dirs" || mkdir $as_dirs
12436 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12437echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12438 { (exit 1); exit 1; }; }; }
c8615825 12439
13b2be9c
DJ
12440 # echo "creating $dirpart/$file"
12441 echo '# dummy' > "$dirpart/$file"
12442 done
12443done
12444 ;;
12445 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
12446 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
12447 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
12448 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
12449 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
12450 if test "x$cgen_cpu_prefix" != x ; then
12451 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
12452 fi
12453
13b2be9c
DJ
12454 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12455 esac
12456done
12457_ACEOF
12458
12459cat >>$CONFIG_STATUS <<\_ACEOF
12460
12461{ (exit 0); exit 0; }
12462_ACEOF
252b5132 12463chmod +x $CONFIG_STATUS
13b2be9c
DJ
12464ac_clean_files=$ac_clean_files_save
12465
12466
12467# configure is writing to config.log, and then calls config.status.
12468# config.status does its own redirection, appending to config.log.
12469# Unfortunately, on DOS this fails, as config.log is still kept open
12470# by configure, so config.status won't be able to write to it; its
12471# output is simply discarded. So we exec the FD to /dev/null,
12472# effectively closing config.log, so it can be properly (re)opened and
12473# appended to by config.status. When coming back to configure, we
12474# need to make the FD available again.
12475if test "$no_create" != yes; then
12476 ac_cs_success=:
12477 ac_config_status_args=
12478 test "$silent" = yes &&
12479 ac_config_status_args="$ac_config_status_args --quiet"
12480 exec 5>/dev/null
12481 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12482 exec 5>>config.log
12483 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12484 # would make configure fail if this is the last instruction.
12485 $ac_cs_success || { (exit 1); exit 1; }
12486fi
252b5132 12487
This page took 1.118789 seconds and 4 git commands to generate.