gas/
[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
ad22bfe8 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 REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE CPP EGREP ALLOCA LIBM datarootdir docdir htmldir 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)
241a6c40 859 --enable-targets alternative target configurations besides the primary
13b2be9c 860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
241a6c40
AM
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings enable build-time compiler warnings
13b2be9c 863 --disable-nls do not use Native Language Support
ab509236
L
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
9b2b7d69 866
13b2be9c
DJ
867Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
92f01d61 872 --with-bugurl=URL Direct users to URL to report a bug
9b2b7d69 873
13b2be9c
DJ
874Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
881 CPP C preprocessor
882
883Use these variables to override the choices made by `configure' or to help
884it to find libraries and programs with nonstandard names/locations.
885
886_ACEOF
9b2b7d69 887fi
9b2b7d69 888
13b2be9c
DJ
889if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
895
896if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900else
901 ac_dir_suffix= ac_top_builddir=
902fi
9b2b7d69 903
13b2be9c
DJ
904case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
c8615825 911 fi ;;
13b2be9c
DJ
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
c8615825 918esac
ab509236
L
919
920# Do not use `cd foo && pwd` to compute absolute paths, because
921# the directories may not exist.
922case `pwd` in
923.) ac_abs_builddir="$ac_dir";;
924*)
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
930esac
931case $ac_abs_builddir in
932.) ac_abs_top_builddir=${ac_top_builddir}.;;
933*)
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_srcdir=$ac_srcdir;;
942*)
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_top_srcdir=$ac_top_srcdir;;
951*)
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
957esac
13b2be9c
DJ
958
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
ab509236 968 test -f $ac_srcdir/configure.in; then
13b2be9c
DJ
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 fi
1ad12f97 974 cd $ac_popdir
13b2be9c
DJ
975 done
976fi
6840198f 977
13b2be9c
DJ
978test -n "$ac_init_help" && exit 0
979if $ac_init_version; then
980 cat <<\_ACEOF
c8615825 981
ab509236 982Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
983This configure script is free software; the Free Software Foundation
984gives unlimited permission to copy, distribute and modify it.
985_ACEOF
986 exit 0
987fi
988exec 5>config.log
989cat >&5 <<_ACEOF
990This file contains any messages produced by compilers while
991running configure, to aid debugging if configure makes a mistake.
c8615825 992
13b2be9c 993It was created by $as_me, which was
ab509236 994generated by GNU Autoconf 2.59. Invocation command line was
c8615825 995
13b2be9c 996 $ $0 $@
c8615825 997
13b2be9c
DJ
998_ACEOF
999{
1000cat <<_ASUNAME
1001## --------- ##
1002## Platform. ##
1003## --------- ##
1004
1005hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010
1011/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1013
1014/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1021
1022_ASUNAME
1023
1024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025for as_dir in $PATH
1026do
1027 IFS=$as_save_IFS
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1030done
9b2b7d69 1031
13b2be9c 1032} >&5
6840198f 1033
13b2be9c 1034cat >&5 <<_ACEOF
c8615825 1035
9b2b7d69 1036
13b2be9c
DJ
1037## ----------- ##
1038## Core tests. ##
1039## ----------- ##
87ccc1b0 1040
13b2be9c 1041_ACEOF
9b2b7d69 1042
13b2be9c
DJ
1043
1044# Keep a trace of the command line.
1045# Strip out --no-create and --no-recursion so they do not pile up.
1046# Strip out --silent because we don't want to record it for future runs.
1047# Also quote any args containing shell meta-characters.
1048# Make two passes to allow for proper duplicate-argument suppression.
1049ac_configure_args=
1050ac_configure_args0=
1051ac_configure_args1=
1052ac_sep=
1053ac_must_keep_next=false
1054for ac_pass in 1 2
1055do
1056 for ac_arg
1057 do
1058 case $ac_arg in
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 continue ;;
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065 esac
1066 case $ac_pass in
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068 2)
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
ab509236 1071 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 1072 else
ab509236
L
1073 case $ac_arg in
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080 esac
1081 ;;
1082 -* ) ac_must_keep_next=true ;;
1083 esac
13b2be9c
DJ
1084 fi
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1087 ac_sep=" "
c8615825
AM
1088 ;;
1089 esac
1090 done
13b2be9c
DJ
1091done
1092$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094
1095# When interrupted or exit'd, cleanup temporary files, and complete
1096# config.log. We remove comments because anyway the quotes in there
1097# would cause problems or look ugly.
1098# WARNING: Be sure not to use single quotes in there, as some shells,
1099# such as our DU 5.0 friend, will then `close' the trap.
1100trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1102 {
1103 echo
1104
1105 cat <<\_ASBOX
1106## ---------------- ##
1107## Cache variables. ##
1108## ---------------- ##
1109_ASBOX
1110 echo
1111 # The following way of writing the cache mishandles newlines in values,
1112{
1113 (set) 2>&1 |
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115 *ac_space=\ *)
1116 sed -n \
ab509236
L
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
13b2be9c
DJ
1119 ;;
1120 *)
1121 sed -n \
ab509236 1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
1123 ;;
1124 esac;
1125}
1126 echo
1127
1128 cat <<\_ASBOX
1129## ----------------- ##
1130## Output variables. ##
1131## ----------------- ##
1132_ASBOX
1133 echo
1134 for ac_var in $ac_subst_vars
1135 do
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1140
1141 if test -n "$ac_subst_files"; then
1142 cat <<\_ASBOX
1143## ------------- ##
1144## Output files. ##
1145## ------------- ##
1146_ASBOX
1147 echo
1148 for ac_var in $ac_subst_files
1149 do
1150 eval ac_val=$`echo $ac_var`
ab509236 1151 echo "$ac_var='"'"'$ac_val'"'"'"
13b2be9c
DJ
1152 done | sort
1153 echo
1154 fi
1155
1156 if test -s confdefs.h; then
1157 cat <<\_ASBOX
1158## ----------- ##
1159## confdefs.h. ##
1160## ----------- ##
1161_ASBOX
1162 echo
1163 sed "/^$/d" confdefs.h | sort
1164 echo
1165 fi
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1169 } >&5
ab509236 1170 rm -f core *.core &&
13b2be9c
DJ
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172 exit $exit_status
1173 ' 0
1174for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176done
1177ac_signal=0
1178
1179# confdefs.h avoids OS command line length limits that DEFS can exceed.
1180rm -rf conftest* confdefs.h
1181# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182echo >confdefs.h
1183
1184# Predefined preprocessor variables.
1185
1186cat >>confdefs.h <<_ACEOF
1187#define PACKAGE_NAME "$PACKAGE_NAME"
1188_ACEOF
1189
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_VERSION "$PACKAGE_VERSION"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_STRING "$PACKAGE_STRING"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208_ACEOF
1209
1210
1211# Let the site file select an alternate cache file if it wants to.
1212# Prefer explicitly selected file to automatically selected ones.
1213if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 else
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218 fi
1219fi
1220for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1225 . "$ac_site_file"
1226 fi
1227done
1228
1229if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234echo "$as_me: loading cache $cache_file" >&6;}
1235 case $cache_file in
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1238 esac
1239 fi
1240else
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242echo "$as_me: creating cache $cache_file" >&6;}
1243 >$cache_file
1244fi
1245
1246# Check that the precious variables saved in the cache have kept the same
1247# value.
1248ac_cache_corrupted=false
1249for ac_var in `(set) 2>&1 |
ab509236 1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
13b2be9c
DJ
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1256 set,)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,set)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,);;
1265 *)
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
ab509236 1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
13b2be9c 1268echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ab509236 1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
13b2be9c 1270echo "$as_me: former value: $ac_old_val" >&2;}
ab509236 1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
13b2be9c 1272echo "$as_me: current value: $ac_new_val" >&2;}
ab509236 1273 ac_cache_corrupted=:
13b2be9c
DJ
1274 fi;;
1275 esac
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1278 case $ac_new_val in
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1282 esac
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 esac
1287 fi
1288done
1289if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1295fi
1296
1297ac_ext=c
1298ac_cpp='$CPP $CPPFLAGS'
1299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322ac_aux_dir=
1323for ac_dir in .. $srcdir/..; do
1324 if test -f $ac_dir/install-sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 break
1328 elif test -f $ac_dir/install.sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 break
1332 elif test -f $ac_dir/shtool; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1335 break
1336 fi
1337done
1338if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1340echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1341 { (exit 1); exit 1; }; }
1342fi
1343ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
1347# Make sure we can run config.sub.
1348$ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1352
1353echo "$as_me:$LINENO: checking build system type" >&5
1354echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1357else
1358 ac_cv_build_alias=$build_alias
1359test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1369
1370fi
1371echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372echo "${ECHO_T}$ac_cv_build" >&6
1373build=$ac_cv_build
1374build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377
1378
1379echo "$as_me:$LINENO: checking host system type" >&5
1380echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383else
1384 ac_cv_host_alias=$host_alias
1385test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1391
1392fi
1393echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394echo "${ECHO_T}$ac_cv_host" >&6
1395host=$ac_cv_host
1396host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399
1400
1401echo "$as_me:$LINENO: checking target system type" >&5
1402echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405else
1406 ac_cv_target_alias=$target_alias
1407test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1413
1414fi
1415echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416echo "${ECHO_T}$ac_cv_target" >&6
1417target=$ac_cv_target
1418target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423# The aliases save the names the user supplied, while $host etc.
1424# will get canonicalized.
1425test -n "$target_alias" &&
1426 test "$program_prefix$program_suffix$program_transform_name" = \
1427 NONENONEs,x,x, &&
1428 program_prefix=${target_alias}-
1429ac_ext=c
1430ac_cpp='$CPP $CPPFLAGS'
1431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437echo "$as_me:$LINENO: checking for $ac_word" >&5
1438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441else
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1444else
1445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446for as_dir in $PATH
1447do
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 break 2
1455 fi
1456done
1457done
1458
1459fi
1460fi
1461CC=$ac_cv_prog_CC
1462if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464echo "${ECHO_T}$CC" >&6
1465else
1466 echo "$as_me:$LINENO: result: no" >&5
1467echo "${ECHO_T}no" >&6
1468fi
1469
1470fi
1471if test -z "$ac_cv_prog_CC"; then
1472 ac_ct_CC=$CC
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474set dummy gcc; ac_word=$2
1475echo "$as_me:$LINENO: checking for $ac_word" >&5
1476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479else
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482else
1483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484for as_dir in $PATH
1485do
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 break 2
1493 fi
1494done
1495done
1496
1497fi
1498fi
1499ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502echo "${ECHO_T}$ac_ct_CC" >&6
1503else
1504 echo "$as_me:$LINENO: result: no" >&5
1505echo "${ECHO_T}no" >&6
1506fi
1507
1508 CC=$ac_ct_CC
1509else
1510 CC="$ac_cv_prog_CC"
1511fi
1512
1513if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516set dummy ${ac_tool_prefix}cc; ac_word=$2
1517echo "$as_me:$LINENO: checking for $ac_word" >&5
1518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521else
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1524else
1525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526for as_dir in $PATH
1527do
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 break 2
1535 fi
1536done
1537done
1538
1539fi
1540fi
1541CC=$ac_cv_prog_CC
1542if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544echo "${ECHO_T}$CC" >&6
1545else
1546 echo "$as_me:$LINENO: result: no" >&5
1547echo "${ECHO_T}no" >&6
1548fi
1549
1550fi
1551if test -z "$ac_cv_prog_CC"; then
1552 ac_ct_CC=$CC
1553 # Extract the first word of "cc", so it can be a program name with args.
1554set dummy cc; ac_word=$2
1555echo "$as_me:$LINENO: checking for $ac_word" >&5
1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562else
1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2
1573 fi
1574done
1575done
1576
1577fi
1578fi
1579ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582echo "${ECHO_T}$ac_ct_CC" >&6
1583else
1584 echo "$as_me:$LINENO: result: no" >&5
1585echo "${ECHO_T}no" >&6
1586fi
1587
1588 CC=$ac_ct_CC
1589else
1590 CC="$ac_cv_prog_CC"
1591fi
1592
1593fi
1594if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596set dummy cc; ac_word=$2
1597echo "$as_me:$LINENO: checking for $ac_word" >&5
1598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604else
1605 ac_prog_rejected=no
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected=yes
1615 continue
1616 fi
1617 ac_cv_prog_CC="cc"
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 break 2
1620 fi
1621done
1622done
1623
1624if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy $ac_cv_prog_CC
1627 shift
1628 if test $# != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1632 shift
1633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1634 fi
1635fi
1636fi
1637fi
1638CC=$ac_cv_prog_CC
1639if test -n "$CC"; then
1640 echo "$as_me:$LINENO: result: $CC" >&5
1641echo "${ECHO_T}$CC" >&6
1642else
1643 echo "$as_me:$LINENO: result: no" >&5
1644echo "${ECHO_T}no" >&6
1645fi
1646
1647fi
1648if test -z "$CC"; then
1649 if test -n "$ac_tool_prefix"; then
1650 for ac_prog in cl
1651 do
1652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654echo "$as_me:$LINENO: checking for $ac_word" >&5
1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1661else
1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673done
1674done
1675
1676fi
1677fi
1678CC=$ac_cv_prog_CC
1679if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681echo "${ECHO_T}$CC" >&6
1682else
1683 echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
1685fi
1686
1687 test -n "$CC" && break
1688 done
1689fi
1690if test -z "$CC"; then
1691 ac_ct_CC=$CC
1692 for ac_prog in cl
1693do
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695set dummy $ac_prog; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1714 fi
1715done
1716done
1717
1718fi
1719fi
1720ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723echo "${ECHO_T}$ac_ct_CC" >&6
1724else
1725 echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729 test -n "$ac_ct_CC" && break
1730done
1731
1732 CC=$ac_ct_CC
1733fi
1734
1735fi
1736
1737
1738test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739See \`config.log' for more details." >&5
1740echo "$as_me: error: no acceptable C compiler found in \$PATH
1741See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1743
1744# Provide some information about the compiler.
1745echo "$as_me:$LINENO:" \
1746 "checking for C compiler version" >&5
1747ac_compiler=`set X $ac_compile; echo $2`
1748{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749 (eval $ac_compiler --version </dev/null >&5) 2>&5
1750 ac_status=$?
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754 (eval $ac_compiler -v </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759 (eval $ac_compiler -V </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763
1764cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1765/* confdefs.h. */
1766_ACEOF
1767cat confdefs.h >>conftest.$ac_ext
1768cat >>conftest.$ac_ext <<_ACEOF
1769/* end confdefs.h. */
1770
1771int
1772main ()
1773{
1774
1775 ;
1776 return 0;
1777}
1778_ACEOF
1779ac_clean_files_save=$ac_clean_files
1780ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781# Try to create an executable without -o first, disregard a.out.
1782# It will help us diagnose broken compilers, and finding out an intuition
1783# of exeext.
ab509236
L
1784echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
13b2be9c
DJ
1786ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788 (eval $ac_link_default) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794# resort.
1795
1796# Be careful to initialize this variable, since it used to be cached.
1797# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798ac_cv_exeext=
1799# b.out is created by i960 compilers.
1800for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801do
1802 test -f "$ac_file" || continue
1803 case $ac_file in
1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ab509236 1805 ;;
13b2be9c 1806 conftest.$ac_ext )
ab509236
L
1807 # This is the source file.
1808 ;;
13b2be9c 1809 [ab].out )
ab509236
L
1810 # We found the default executable, but exeext='' is most
1811 # certainly right.
1812 break;;
13b2be9c 1813 *.* )
ab509236
L
1814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 # FIXME: I believe we export ac_cv_exeext for Libtool,
1816 # but it would be cool to find out if it's true. Does anybody
1817 # maintain Libtool? --akim.
1818 export ac_cv_exeext
1819 break;;
13b2be9c 1820 * )
ab509236 1821 break;;
13b2be9c
DJ
1822 esac
1823done
1824else
1825 echo "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829See \`config.log' for more details." >&5
1830echo "$as_me: error: C compiler cannot create executables
1831See \`config.log' for more details." >&2;}
1832 { (exit 77); exit 77; }; }
1833fi
1834
1835ac_exeext=$ac_cv_exeext
1836echo "$as_me:$LINENO: result: $ac_file" >&5
1837echo "${ECHO_T}$ac_file" >&6
1838
1839# Check the compiler produces executables we can run. If not, either
1840# the compiler is broken, or we cross compile.
1841echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844# If not cross compiling, check that we can run a simple program.
1845if test "$cross_compiling" != yes; then
1846 if { ac_try='./$ac_file'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848 (eval $ac_try) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1852 cross_compiling=no
1853 else
1854 if test "$cross_compiling" = maybe; then
1855 cross_compiling=yes
1856 else
1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858If you meant to cross compile, use \`--host'.
1859See \`config.log' for more details." >&5
1860echo "$as_me: error: cannot run C compiled programs.
1861If you meant to cross compile, use \`--host'.
1862See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1864 fi
1865 fi
1866fi
1867echo "$as_me:$LINENO: result: yes" >&5
1868echo "${ECHO_T}yes" >&6
1869
1870rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871ac_clean_files=$ac_clean_files_save
1872# Check the compiler produces executables we can run. If not, either
1873# the compiler is broken, or we cross compile.
1874echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877echo "${ECHO_T}$cross_compiling" >&6
1878
1879echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882 (eval $ac_link) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1888# work properly (i.e., refer to `conftest.exe'), while it won't with
1889# `rm'.
1890for ac_file in conftest.exe conftest conftest.*; do
1891 test -f "$ac_file" || continue
1892 case $ac_file in
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236
L
1895 export ac_cv_exeext
1896 break;;
13b2be9c
DJ
1897 * ) break;;
1898 esac
1899done
1900else
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902See \`config.log' for more details." >&5
1903echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1906fi
1907
1908rm -f conftest$ac_cv_exeext
1909echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910echo "${ECHO_T}$ac_cv_exeext" >&6
1911
1912rm -f conftest.$ac_ext
1913EXEEXT=$ac_cv_exeext
1914ac_exeext=$EXEEXT
1915echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917if test "${ac_cv_objext+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1921/* confdefs.h. */
1922_ACEOF
1923cat confdefs.h >>conftest.$ac_ext
1924cat >>conftest.$ac_ext <<_ACEOF
1925/* end confdefs.h. */
1926
1927int
1928main ()
1929{
1930
1931 ;
1932 return 0;
1933}
1934_ACEOF
1935rm -f conftest.o conftest.obj
1936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942 case $ac_file in
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1945 break;;
1946 esac
1947done
1948else
1949 echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
1951
1952{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953See \`config.log' for more details." >&5
1954echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955See \`config.log' for more details." >&2;}
1956 { (exit 1); exit 1; }; }
1957fi
1958
1959rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960fi
1961echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962echo "${ECHO_T}$ac_cv_objext" >&6
1963OBJEXT=$ac_cv_objext
1964ac_objext=$OBJEXT
1965echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
1970 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1971/* confdefs.h. */
1972_ACEOF
1973cat confdefs.h >>conftest.$ac_ext
1974cat >>conftest.$ac_ext <<_ACEOF
1975/* end confdefs.h. */
1976
1977int
1978main ()
1979{
1980#ifndef __GNUC__
1981 choke me
1982#endif
1983
1984 ;
1985 return 0;
1986}
1987_ACEOF
1988rm -f conftest.$ac_objext
1989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 1990 (eval $ac_compile) 2>conftest.er1
13b2be9c 1991 ac_status=$?
ab509236
L
1992 grep -v '^ *+' conftest.er1 >conftest.err
1993 rm -f conftest.er1
1994 cat conftest.err >&5
13b2be9c
DJ
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1ad12f97
NC
1997 { ac_try='test -z "$ac_c_werror_flag"
1998 || test ! -s conftest.err'
ab509236
L
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 (eval $ac_try) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
2010 ac_compiler_gnu=yes
2011else
2012 echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015ac_compiler_gnu=no
2016fi
ab509236 2017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2018ac_cv_c_compiler_gnu=$ac_compiler_gnu
2019
2020fi
2021echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023GCC=`test $ac_compiler_gnu = yes && echo yes`
2024ac_test_CFLAGS=${CFLAGS+set}
2025ac_save_CFLAGS=$CFLAGS
2026CFLAGS="-g"
2027echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029if test "${ac_cv_prog_cc_g+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2033/* confdefs.h. */
2034_ACEOF
2035cat confdefs.h >>conftest.$ac_ext
2036cat >>conftest.$ac_ext <<_ACEOF
2037/* end confdefs.h. */
2038
2039int
2040main ()
2041{
2042
2043 ;
2044 return 0;
2045}
2046_ACEOF
2047rm -f conftest.$ac_objext
2048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2049 (eval $ac_compile) 2>conftest.er1
13b2be9c 2050 ac_status=$?
ab509236
L
2051 grep -v '^ *+' conftest.er1 >conftest.err
2052 rm -f conftest.er1
2053 cat conftest.err >&5
13b2be9c
DJ
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
1ad12f97
NC
2056 { ac_try='test -z "$ac_c_werror_flag"
2057 || test ! -s conftest.err'
ab509236
L
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 (eval $ac_try) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; } &&
2063 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2069 ac_cv_prog_cc_g=yes
2070else
2071 echo "$as_me: failed program was:" >&5
2072sed 's/^/| /' conftest.$ac_ext >&5
2073
2074ac_cv_prog_cc_g=no
2075fi
ab509236 2076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2077fi
2078echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2079echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080if test "$ac_test_CFLAGS" = set; then
2081 CFLAGS=$ac_save_CFLAGS
2082elif test $ac_cv_prog_cc_g = yes; then
2083 if test "$GCC" = yes; then
2084 CFLAGS="-g -O2"
2085 else
2086 CFLAGS="-g"
2087 fi
2088else
2089 if test "$GCC" = yes; then
2090 CFLAGS="-O2"
2091 else
2092 CFLAGS=
2093 fi
2094fi
2095echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2096echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099else
2100 ac_cv_prog_cc_stdc=no
2101ac_save_CC=$CC
2102cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2103/* confdefs.h. */
2104_ACEOF
2105cat confdefs.h >>conftest.$ac_ext
2106cat >>conftest.$ac_ext <<_ACEOF
2107/* end confdefs.h. */
2108#include <stdarg.h>
2109#include <stdio.h>
2110#include <sys/types.h>
2111#include <sys/stat.h>
2112/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2113struct buf { int x; };
2114FILE * (*rcsopen) (struct buf *, struct stat *, int);
2115static char *e (p, i)
2116 char **p;
2117 int i;
2118{
2119 return p[i];
2120}
2121static char *f (char * (*g) (char **, int), char **p, ...)
2122{
2123 char *s;
2124 va_list v;
2125 va_start (v,p);
2126 s = g (p, va_arg (v,int));
2127 va_end (v);
2128 return s;
2129}
ab509236
L
2130
2131/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2132 function prototypes and stuff, but not '\xHH' hex character constants.
2133 These don't provoke an error unfortunately, instead are silently treated
2134 as 'x'. The following induces an error, until -std1 is added to get
2135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2136 array size at least. It's necessary to write '\x00'==0 to get something
2137 that's true only with -std1. */
2138int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2139
13b2be9c
DJ
2140int test (int i, double x);
2141struct s1 {int (*f) (int a);};
2142struct s2 {int (*f) (double a);};
2143int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2144int argc;
2145char **argv;
2146int
2147main ()
2148{
2149return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2150 ;
2151 return 0;
2152}
2153_ACEOF
2154# Don't try gcc -ansi; that turns off useful extensions and
2155# breaks some systems' header files.
2156# AIX -qlanglvl=ansi
2157# Ultrix and OSF/1 -std1
2158# HP-UX 10.20 and later -Ae
2159# HP-UX older versions -Aa -D_HPUX_SOURCE
2160# SVR4 -Xc -D__EXTENSIONS__
2161for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2162do
2163 CC="$ac_save_CC $ac_arg"
2164 rm -f conftest.$ac_objext
2165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2166 (eval $ac_compile) 2>conftest.er1
13b2be9c 2167 ac_status=$?
ab509236
L
2168 grep -v '^ *+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
13b2be9c
DJ
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
1ad12f97
NC
2173 { ac_try='test -z "$ac_c_werror_flag"
2174 || test ! -s conftest.err'
ab509236
L
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_cv_prog_cc_stdc=$ac_arg
2187break
2188else
2189 echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192fi
ab509236 2193rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
2194done
2195rm -f conftest.$ac_ext conftest.$ac_objext
2196CC=$ac_save_CC
2197
2198fi
2199
2200case "x$ac_cv_prog_cc_stdc" in
2201 x|xno)
2202 echo "$as_me:$LINENO: result: none needed" >&5
2203echo "${ECHO_T}none needed" >&6 ;;
2204 *)
2205 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207 CC="$CC $ac_cv_prog_cc_stdc" ;;
2208esac
2209
2210# Some people use a C++ compiler to compile C. Since we use `exit',
2211# in C++ we need to declare it. In case someone uses the same compiler
2212# for both compiling C and C++ we need to have the C++ compiler decide
2213# the declaration of exit, since it's the most demanding environment.
2214cat >conftest.$ac_ext <<_ACEOF
2215#ifndef __cplusplus
2216 choke me
2217#endif
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2221 (eval $ac_compile) 2>conftest.er1
13b2be9c 2222 ac_status=$?
ab509236
L
2223 grep -v '^ *+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
13b2be9c
DJ
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
1ad12f97
NC
2228 { ac_try='test -z "$ac_c_werror_flag"
2229 || test ! -s conftest.err'
ab509236
L
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; } &&
2235 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 for ac_declaration in \
ab509236 2242 '' \
13b2be9c
DJ
2243 'extern "C" void std::exit (int) throw (); using std::exit;' \
2244 'extern "C" void std::exit (int); using std::exit;' \
2245 'extern "C" void exit (int) throw ();' \
2246 'extern "C" void exit (int);' \
2247 'void exit (int);'
2248do
2249 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2250/* confdefs.h. */
2251_ACEOF
2252cat confdefs.h >>conftest.$ac_ext
2253cat >>conftest.$ac_ext <<_ACEOF
2254/* end confdefs.h. */
13dfd2d0 2255$ac_declaration
ab509236 2256#include <stdlib.h>
13b2be9c
DJ
2257int
2258main ()
2259{
2260exit (42);
2261 ;
2262 return 0;
2263}
2264_ACEOF
2265rm -f conftest.$ac_objext
2266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2267 (eval $ac_compile) 2>conftest.er1
13b2be9c 2268 ac_status=$?
ab509236
L
2269 grep -v '^ *+' conftest.er1 >conftest.err
2270 rm -f conftest.er1
2271 cat conftest.err >&5
13b2be9c
DJ
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
1ad12f97
NC
2274 { ac_try='test -z "$ac_c_werror_flag"
2275 || test ! -s conftest.err'
ab509236
L
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 :
2288else
2289 echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292continue
2293fi
ab509236 2294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 2295 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2296/* confdefs.h. */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h. */
2301$ac_declaration
2302int
2303main ()
2304{
2305exit (42);
2306 ;
2307 return 0;
2308}
2309_ACEOF
2310rm -f conftest.$ac_objext
2311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2312 (eval $ac_compile) 2>conftest.er1
13b2be9c 2313 ac_status=$?
ab509236
L
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
13b2be9c
DJ
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
1ad12f97
NC
2319 { ac_try='test -z "$ac_c_werror_flag"
2320 || test ! -s conftest.err'
ab509236
L
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 break
2333else
2334 echo "$as_me: failed program was:" >&5
2335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337fi
ab509236 2338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2339done
2340rm -f conftest*
2341if test -n "$ac_declaration"; then
2342 echo '#ifdef __cplusplus' >>confdefs.h
2343 echo $ac_declaration >>confdefs.h
2344 echo '#endif' >>confdefs.h
2345fi
2346
2347else
2348 echo "$as_me: failed program was:" >&5
2349sed 's/^/| /' conftest.$ac_ext >&5
2350
2351fi
ab509236 2352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2353ac_ext=c
2354ac_cpp='$CPP $CPPFLAGS'
2355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358
2359
ab509236
L
2360echo "$as_me:$LINENO: checking for library containing strerror" >&5
2361echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2362if test "${ac_cv_search_strerror+set}" = set; then
13b2be9c
DJ
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
ab509236
L
2365 ac_func_search_save_LIBS=$LIBS
2366ac_cv_search_strerror=no
13b2be9c 2367cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2368/* confdefs.h. */
2369_ACEOF
2370cat confdefs.h >>conftest.$ac_ext
2371cat >>conftest.$ac_ext <<_ACEOF
2372/* end confdefs.h. */
2373
2374/* Override any gcc2 internal prototype to avoid an error. */
2375#ifdef __cplusplus
2376extern "C"
2377#endif
2378/* We use char because int might match the return type of a gcc2
2379 builtin and then its argument prototype would still apply. */
2380char strerror ();
2381int
2382main ()
2383{
2384strerror ();
2385 ;
2386 return 0;
2387}
2388_ACEOF
2389rm -f conftest.$ac_objext conftest$ac_exeext
2390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 2391 (eval $ac_link) 2>conftest.er1
13b2be9c 2392 ac_status=$?
ab509236
L
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
13b2be9c
DJ
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
1ad12f97
NC
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
ab509236
L
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
ab509236 2411 ac_cv_search_strerror="none required"
13b2be9c
DJ
2412else
2413 echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
13b2be9c 2416fi
ab509236
L
2417rm -f conftest.err conftest.$ac_objext \
2418 conftest$ac_exeext conftest.$ac_ext
2419if test "$ac_cv_search_strerror" = no; then
2420 for ac_lib in cposix; do
2421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2422 cat >conftest.$ac_ext <<_ACEOF
2423/* confdefs.h. */
2424_ACEOF
2425cat confdefs.h >>conftest.$ac_ext
2426cat >>conftest.$ac_ext <<_ACEOF
2427/* end confdefs.h. */
2428
2429/* Override any gcc2 internal prototype to avoid an error. */
2430#ifdef __cplusplus
2431extern "C"
2432#endif
2433/* We use char because int might match the return type of a gcc2
2434 builtin and then its argument prototype would still apply. */
2435char strerror ();
2436int
2437main ()
2438{
2439strerror ();
2440 ;
2441 return 0;
2442}
2443_ACEOF
2444rm -f conftest.$ac_objext conftest$ac_exeext
2445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446 (eval $ac_link) 2>conftest.er1
2447 ac_status=$?
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
1ad12f97
NC
2453 { ac_try='test -z "$ac_c_werror_flag"
2454 || test ! -s conftest.err'
ab509236
L
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest$ac_exeext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 ac_cv_search_strerror="-l$ac_lib"
2467break
2468else
2469 echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
13b2be9c 2472fi
ab509236
L
2473rm -f conftest.err conftest.$ac_objext \
2474 conftest$ac_exeext conftest.$ac_ext
2475 done
13b2be9c 2476fi
ab509236
L
2477LIBS=$ac_func_search_save_LIBS
2478fi
2479echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2480echo "${ECHO_T}$ac_cv_search_strerror" >&6
2481if test "$ac_cv_search_strerror" != no; then
2482 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
13b2be9c 2483
ab509236 2484fi
13b2be9c
DJ
2485
2486
2487BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
8ea2b00f 2488am__api_version="1.9"
13b2be9c
DJ
2489# Find a good install program. We prefer a C program (faster),
2490# so one script is as good as another. But avoid the broken or
2491# incompatible versions:
2492# SysV /etc/install, /usr/sbin/install
2493# SunOS /usr/etc/install
2494# IRIX /sbin/install
2495# AIX /bin/install
2496# AmigaOS /C/install, which installs bootblocks on floppy discs
2497# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2498# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2499# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 2500# OS/2's system install, which has a completely different semantic
13b2be9c
DJ
2501# ./install, which can be erroneously created by make from ./install.sh.
2502echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2503echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2504if test -z "$INSTALL"; then
2505if test "${ac_cv_path_install+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 # Account for people who put trailing slashes in PATH elements.
2514case $as_dir/ in
2515 ./ | .// | /cC/* | \
2516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ab509236 2517 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13b2be9c
DJ
2518 /usr/ucb/* ) ;;
2519 *)
2520 # OSF1 and SCO ODT 3.0 have their own names for install.
2521 # Don't use installbsd from OSF since it installs stuff as root
2522 # by default.
2523 for ac_prog in ginstall scoinst install; do
2524 for ac_exec_ext in '' $ac_executable_extensions; do
ab509236
L
2525 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2526 if test $ac_prog = install &&
2527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # AIX install. It has an incompatible calling convention.
2529 :
2530 elif test $ac_prog = install &&
2531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # program-specific install script used by HP pwplus--don't use.
2533 :
2534 else
2535 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2536 break 3
2537 fi
2538 fi
13b2be9c
DJ
2539 done
2540 done
2541 ;;
2542esac
2543done
2544
252b5132
RH
2545
2546fi
2547 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2548 INSTALL=$ac_cv_path_install
252b5132
RH
2549 else
2550 # As a last resort, use the slow shell script. We don't cache a
2551 # path for INSTALL within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the path is relative.
13b2be9c 2554 INSTALL=$ac_install_sh
252b5132
RH
2555 fi
2556fi
13b2be9c
DJ
2557echo "$as_me:$LINENO: result: $INSTALL" >&5
2558echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2559
2560# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561# It thinks the first close brace ends the variable substitution.
2562test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2563
13b2be9c 2564test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2565
2566test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2567
13b2be9c
DJ
2568echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2569echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2570# Just in case
2571sleep 1
13b2be9c 2572echo timestamp > conftest.file
252b5132
RH
2573# Do `set' in a subshell so we don't clobber the current shell's
2574# arguments. Must try -L first in case configure is actually a
2575# symlink; some systems play weird games with the mod time of symlinks
2576# (eg FreeBSD returns the mod time of the symlink's containing
2577# directory).
2578if (
13b2be9c 2579 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2580 if test "$*" = "X"; then
2581 # -L didn't work.
13b2be9c 2582 set X `ls -t $srcdir/configure conftest.file`
252b5132 2583 fi
13b2be9c
DJ
2584 rm -f conftest.file
2585 if test "$*" != "X $srcdir/configure conftest.file" \
2586 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2587
2588 # If neither matched, then we have a broken ls. This can happen
2589 # if, for instance, CONFIG_SHELL is bash and it inherits a
2590 # broken ls alias from the environment. This has actually
2591 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2592 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2593alias in your environment" >&5
2594echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2595alias in your environment" >&2;}
2596 { (exit 1); exit 1; }; }
252b5132
RH
2597 fi
2598
13b2be9c
DJ
2599 test "$2" = conftest.file
2600 )
2601then
2602 # Ok.
2603 :
2604else
2605 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2606Check your system clock" >&5
2607echo "$as_me: error: newly created file is older than distributed files!
2608Check your system clock" >&2;}
2609 { (exit 1); exit 1; }; }
2610fi
2611echo "$as_me:$LINENO: result: yes" >&5
2612echo "${ECHO_T}yes" >&6
2613test "$program_prefix" != NONE &&
2614 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2615# Use a double $ so make ignores it.
2616test "$program_suffix" != NONE &&
2617 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2618# Double any \ or $. echo might interpret backslashes.
2619# By default was `s,x,x', remove it if useless.
2620cat <<\_ACEOF >conftest.sed
2621s/[\\$]/&&/g;s/;s,x,x,$//
2622_ACEOF
2623program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2624rm conftest.sed
2625
13b2be9c
DJ
2626# expand $ac_aux_dir to an absolute path
2627am_aux_dir=`cd $ac_aux_dir && pwd`
2628
2629test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2630# Use eval to expand $SHELL
2631if eval "$MISSING --run true"; then
2632 am_missing_run="$MISSING --run "
2633else
2634 am_missing_run=
2635 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2636echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2637fi
2638
4b363073 2639if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8ea2b00f
AM
2640 # We used to keeping the `.' as first argument, in order to
2641 # allow $(mkdir_p) to be used without argument. As in
ab509236 2642 # $(mkdir_p) $(somedir)
8ea2b00f
AM
2643 # where $(somedir) is conditionally defined. However this is wrong
2644 # for two reasons:
2645 # 1. if the package is installed by a user who cannot write `.'
2646 # make install will fail,
2647 # 2. the above comment should most certainly read
2648 # $(mkdir_p) $(DESTDIR)$(somedir)
2649 # so it does not work when $(somedir) is undefined and
2650 # $(DESTDIR) is not.
2651 # To support the latter case, we have to write
2652 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2653 # so the `.' trick is pointless.
2654 mkdir_p='mkdir -p --'
ab509236
L
2655else
2656 # On NextStep and OpenStep, the `mkdir' command does not
2657 # recognize any option. It will interpret all options as
2658 # directories to create, and then abort because `.' already
2659 # exists.
4b363073 2660 for d in ./-p ./--version;
ab509236
L
2661 do
2662 test -d $d && rmdir $d
2663 done
2664 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2665 if test -f "$ac_aux_dir/mkinstalldirs"; then
2666 mkdir_p='$(mkinstalldirs)'
2667 else
2668 mkdir_p='$(install_sh) -d'
2669 fi
2670fi
2671
13b2be9c
DJ
2672for ac_prog in gawk mawk nawk awk
2673do
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675set dummy $ac_prog; ac_word=$2
2676echo "$as_me:$LINENO: checking for $ac_word" >&5
2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678if test "${ac_cv_prog_AWK+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696done
2697
2698fi
2699fi
2700AWK=$ac_cv_prog_AWK
2701if test -n "$AWK"; then
2702 echo "$as_me:$LINENO: result: $AWK" >&5
2703echo "${ECHO_T}$AWK" >&6
2704else
2705 echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6
2707fi
2708
2709 test -n "$AWK" && break
2710done
2711
2712echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2713echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ab509236 2714set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
13b2be9c
DJ
2715if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717else
2718 cat >conftest.make <<\_ACEOF
2719all:
2720 @echo 'ac_maketemp="$(MAKE)"'
2721_ACEOF
2722# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2723eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2724if test -n "$ac_maketemp"; then
2725 eval ac_cv_prog_make_${ac_make}_set=yes
2726else
2727 eval ac_cv_prog_make_${ac_make}_set=no
2728fi
2729rm -f conftest.make
2730fi
2731if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2732 echo "$as_me:$LINENO: result: yes" >&5
2733echo "${ECHO_T}yes" >&6
2734 SET_MAKE=
2735else
2736 echo "$as_me:$LINENO: result: no" >&5
2737echo "${ECHO_T}no" >&6
2738 SET_MAKE="MAKE=${MAKE-make}"
2739fi
2740
2741rm -rf .tst 2>/dev/null
2742mkdir .tst 2>/dev/null
2743if test -d .tst; then
2744 am__leading_dot=.
2745else
2746 am__leading_dot=_
2747fi
2748rmdir .tst 2>/dev/null
2749
2750DEPDIR="${am__leading_dot}deps"
2751
2752 ac_config_commands="$ac_config_commands depfiles"
2753
2754
2755am_make=${MAKE-make}
2756cat > confinc << 'END'
2757am__doit:
2758 @echo done
2759.PHONY: am__doit
2760END
2761# If we don't find an include directive, just comment out the code.
2762echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2763echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2764am__include="#"
2765am__quote=
2766_am_result=none
2767# First try GNU make style include.
2768echo "include confinc" > confmf
2769# We grep out `Entering directory' and `Leaving directory'
2770# messages which can occur if `w' ends up in MAKEFLAGS.
2771# In particular we don't look at `^make:' because GNU make might
2772# be invoked under some other name (usually "gmake"), in which
2773# case it prints its new name instead of `make'.
2774if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2775 am__include=include
2776 am__quote=
2777 _am_result=GNU
2778fi
2779# Now try BSD make style include.
2780if test "$am__include" = "#"; then
2781 echo '.include "confinc"' > confmf
2782 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2783 am__include=.include
2784 am__quote="\""
2785 _am_result=BSD
2786 fi
2787fi
2788
2789
2790echo "$as_me:$LINENO: result: $_am_result" >&5
2791echo "${ECHO_T}$_am_result" >&6
2792rm -f confinc confmf
2793
2794# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2795if test "${enable_dependency_tracking+set}" = set; then
2796 enableval="$enable_dependency_tracking"
2797
2798fi;
2799if test "x$enable_dependency_tracking" != xno; then
2800 am_depcomp="$ac_aux_dir/depcomp"
2801 AMDEPBACKSLASH='\'
2802fi
2803
2804
2805if test "x$enable_dependency_tracking" != xno; then
2806 AMDEP_TRUE=
2807 AMDEP_FALSE='#'
2808else
2809 AMDEP_TRUE='#'
2810 AMDEP_FALSE=
2811fi
2812
2813
2814
ab509236 2815# test to see if srcdir already configured
13b2be9c
DJ
2816if test "`cd $srcdir && pwd`" != "`pwd`" &&
2817 test -f $srcdir/config.status; then
2818 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2819echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2820 { (exit 1); exit 1; }; }
2821fi
2822
2823# test whether we have cygpath
2824if test -z "$CYGPATH_W"; then
2825 if (cygpath --version) >/dev/null 2>/dev/null; then
2826 CYGPATH_W='cygpath -w'
2827 else
2828 CYGPATH_W=echo
2829 fi
2830fi
2831
2832
2833# Define the identity of the package.
2834 PACKAGE=gas
2835 VERSION=${BFD_VERSION}
2836
2837
2838cat >>confdefs.h <<_ACEOF
2839#define PACKAGE "$PACKAGE"
2840_ACEOF
2841
2842
2843cat >>confdefs.h <<_ACEOF
2844#define VERSION "$VERSION"
2845_ACEOF
2846
2847# Some tools Automake needs.
2848
2849ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2850
2851
2852AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2853
2854
2855AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2856
2857
2858AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2859
2860
2861MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2862
13b2be9c
DJ
2863install_sh=${install_sh-"$am_aux_dir/install-sh"}
2864
2865# Installed binaries are usually stripped using `strip' when the user
2866# run `make install-strip'. However `strip' might not be the right
2867# tool to use in cross-compilation environments, therefore Automake
2868# will honor the `STRIP' environment variable to overrule this program.
2869if test "$cross_compiling" != no; then
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2872set dummy ${ac_tool_prefix}strip; ac_word=$2
2873echo "$as_me:$LINENO: checking for $ac_word" >&5
2874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875if test "${ac_cv_prog_STRIP+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877else
2878 if test -n "$STRIP"; then
2879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2880else
13b2be9c
DJ
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892done
2893done
2894
252b5132 2895fi
13b2be9c
DJ
2896fi
2897STRIP=$ac_cv_prog_STRIP
2898if test -n "$STRIP"; then
2899 echo "$as_me:$LINENO: result: $STRIP" >&5
2900echo "${ECHO_T}$STRIP" >&6
c8615825 2901else
13b2be9c
DJ
2902 echo "$as_me:$LINENO: result: no" >&5
2903echo "${ECHO_T}no" >&6
c8615825 2904fi
c8615825 2905
13b2be9c
DJ
2906fi
2907if test -z "$ac_cv_prog_STRIP"; then
2908 ac_ct_STRIP=$STRIP
2909 # Extract the first word of "strip", so it can be a program name with args.
2910set dummy strip; ac_word=$2
2911echo "$as_me:$LINENO: checking for $ac_word" >&5
2912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 2915else
13b2be9c
DJ
2916 if test -n "$ac_ct_STRIP"; then
2917 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 2918else
13b2be9c
DJ
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_STRIP="strip"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930done
2931done
2932
2933 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 2934fi
252b5132 2935fi
13b2be9c
DJ
2936ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2937if test -n "$ac_ct_STRIP"; then
2938 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2939echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2940else
13b2be9c
DJ
2941 echo "$as_me:$LINENO: result: no" >&5
2942echo "${ECHO_T}no" >&6
252b5132
RH
2943fi
2944
13b2be9c
DJ
2945 STRIP=$ac_ct_STRIP
2946else
2947 STRIP="$ac_cv_prog_STRIP"
2948fi
d6d788bd 2949
252b5132 2950fi
13b2be9c 2951INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 2952
13b2be9c
DJ
2953# We need awk for the "check" target. The system "awk" is bad on
2954# some platforms.
8ea2b00f
AM
2955# Always define AMTAR for backward compatibility.
2956
2957AMTAR=${AMTAR-"${am_missing_run}tar"}
2958
2959am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2960
2961
252b5132 2962
d6d788bd 2963
13b2be9c 2964depcc="$CC" am_compiler_list=
d6d788bd 2965
13b2be9c
DJ
2966echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2967echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2968if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2970else
13b2be9c
DJ
2971 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2972 # We make a subdir and do the tests there. Otherwise we can end up
2973 # making bogus files that we don't know about and never remove. For
2974 # instance it was reported that on HP-UX the gcc test will end up
2975 # making a dummy file named `D' -- because `-MD' means `put the output
2976 # in D'.
2977 mkdir conftest.dir
2978 # Copy depcomp to subdir because otherwise we won't find it if we're
2979 # using a relative directory.
2980 cp "$am_depcomp" conftest.dir
2981 cd conftest.dir
2982 # We will build objects and dependencies in a subdirectory because
2983 # it helps to detect inapplicable dependency modes. For instance
2984 # both Tru64's cc and ICC support -MD to output dependencies as a
2985 # side effect of compilation, but ICC will put the dependencies in
2986 # the current directory while Tru64 will put them in the object
2987 # directory.
2988 mkdir sub
252b5132 2989
13b2be9c
DJ
2990 am_cv_CC_dependencies_compiler_type=none
2991 if test "$am_compiler_list" = ""; then
2992 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2993 fi
2994 for depmode in $am_compiler_list; do
2995 # Setup a source with many dependencies, because some compilers
2996 # like to wrap large dependency lists on column 80 (with \), and
2997 # we should not choose a depcomp mode which is confused by this.
2998 #
2999 # We need to recreate these files for each test, as the compiler may
3000 # overwrite some of them when testing with obscure command lines.
3001 # This happens at least with the AIX C compiler.
3002 : > sub/conftest.c
3003 for i in 1 2 3 4 5 6; do
3004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3005 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3006 # Solaris 8's {/usr,}/bin/sh.
3007 touch sub/conftst$i.h
13b2be9c
DJ
3008 done
3009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3010
3011 case $depmode in
3012 nosideeffect)
3013 # after this tag, mechanisms are not by side-effect, so they'll
3014 # only be used when explicitly requested
3015 if test "x$enable_dependency_tracking" = xyes; then
3016 continue
3017 else
3018 break
3019 fi
3020 ;;
3021 none) break ;;
3022 esac
3023 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3024 # mode. It turns out that the SunPro C++ compiler does not properly
3025 # handle `-M -o', and we need to detect this.
3026 if depmode=$depmode \
3027 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3028 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3029 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3030 >/dev/null 2>conftest.err &&
3031 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3032 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3033 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3034 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3035 # or remarks (even with -Werror). So we grep stderr for any message
3036 # that says an option was ignored or not supported.
3037 # When given -MP, icc 7.0 and 7.1 complain thusly:
3038 # icc: Command line warning: ignoring option '-M'; no argument required
3039 # The diagnosis changed in icc 8.0:
3040 # icc: Command line remark: option '-MP' not supported
3041 if (grep 'ignoring option' conftest.err ||
3042 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3043 am_cv_CC_dependencies_compiler_type=$depmode
3044 break
3045 fi
3046 fi
3047 done
252b5132 3048
13b2be9c
DJ
3049 cd ..
3050 rm -rf conftest.dir
252b5132 3051else
13b2be9c 3052 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3053fi
3054
252b5132 3055fi
13b2be9c
DJ
3056echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3057echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3058CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3059
13b2be9c
DJ
3060
3061
3062if
3063 test "x$enable_dependency_tracking" != xno \
3064 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3065 am__fastdepCC_TRUE=
3066 am__fastdepCC_FALSE='#'
252b5132 3067else
13b2be9c
DJ
3068 am__fastdepCC_TRUE='#'
3069 am__fastdepCC_FALSE=
252b5132
RH
3070fi
3071
d6d788bd
L
3072
3073
13b2be9c 3074
252b5132
RH
3075# Check whether --enable-shared or --disable-shared was given.
3076if test "${enable_shared+set}" = set; then
3077 enableval="$enable_shared"
3078 p=${PACKAGE-default}
f9c19112 3079case $enableval in
252b5132
RH
3080yes) enable_shared=yes ;;
3081no) enable_shared=no ;;
3082*)
3083 enable_shared=no
3084 # Look at the argument we got. We use all the common list separators.
3085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3086 for pkg in $enableval; do
3087 if test "X$pkg" = "X$p"; then
3088 enable_shared=yes
3089 fi
3090 done
3091 IFS="$ac_save_ifs"
3092 ;;
3093esac
3094else
3095 enable_shared=yes
13b2be9c 3096fi;
252b5132
RH
3097# Check whether --enable-static or --disable-static was given.
3098if test "${enable_static+set}" = set; then
3099 enableval="$enable_static"
3100 p=${PACKAGE-default}
f9c19112 3101case $enableval in
252b5132
RH
3102yes) enable_static=yes ;;
3103no) enable_static=no ;;
3104*)
3105 enable_static=no
3106 # Look at the argument we got. We use all the common list separators.
3107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3108 for pkg in $enableval; do
3109 if test "X$pkg" = "X$p"; then
3110 enable_static=yes
3111 fi
3112 done
3113 IFS="$ac_save_ifs"
3114 ;;
3115esac
3116else
3117 enable_static=yes
13b2be9c 3118fi;
bedf545c
ILT
3119# Check whether --enable-fast-install or --disable-fast-install was given.
3120if test "${enable_fast_install+set}" = set; then
3121 enableval="$enable_fast_install"
3122 p=${PACKAGE-default}
f9c19112 3123case $enableval in
bedf545c
ILT
3124yes) enable_fast_install=yes ;;
3125no) enable_fast_install=no ;;
3126*)
3127 enable_fast_install=no
3128 # Look at the argument we got. We use all the common list separators.
3129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3130 for pkg in $enableval; do
3131 if test "X$pkg" = "X$p"; then
3132 enable_fast_install=yes
3133 fi
3134 done
3135 IFS="$ac_save_ifs"
3136 ;;
3137esac
3138else
3139 enable_fast_install=yes
13b2be9c 3140fi;
87ccc1b0 3141
6840198f
NC
3142# Check whether --with-gnu-ld or --without-gnu-ld was given.
3143if test "${with_gnu_ld+set}" = set; then
3144 withval="$with_gnu_ld"
3145 test "$withval" = no || with_gnu_ld=yes
27b7e12d 3146else
6840198f 3147 with_gnu_ld=no
13b2be9c 3148fi;
6840198f
NC
3149ac_prog=ld
3150if test "$GCC" = yes; then
3151 # Check if gcc -print-prog-name=ld gives a path.
13b2be9c
DJ
3152 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3153echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6840198f
NC
3154 case $host in
3155 *-*-mingw*)
3156 # gcc leaves a trailing carriage return which upsets mingw
3157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3158 *)
3159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3160 esac
3161 case $ac_prog in
3162 # Accept absolute paths.
3163 [\\/]* | [A-Za-z]:[\\/]*)
3164 re_direlt='/[^/][^/]*/\.\./'
3165 # Canonicalize the path of ld
3166 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3167 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3168 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3169 done
3170 test -z "$LD" && LD="$ac_prog"
3171 ;;
3172 "")
3173 # If it fails, then pretend we aren't using GCC.
3174 ac_prog=ld
3175 ;;
3176 *)
3177 # If it is relative, then search for the first ld in PATH.
3178 with_gnu_ld=unknown
3179 ;;
3180 esac
3181elif test "$with_gnu_ld" = yes; then
13b2be9c
DJ
3182 echo "$as_me:$LINENO: checking for GNU ld" >&5
3183echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
27b7e12d 3184else
13b2be9c
DJ
3185 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3186echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
27b7e12d 3187fi
13b2be9c
DJ
3188if test "${lt_cv_path_LD+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3190else
3191 if test -z "$LD"; then
a74801ba 3192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3193 for ac_dir in $PATH; do
3194 test -z "$ac_dir" && ac_dir=.
a74801ba 3195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
f9c19112 3196 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3197 # Check to see if the program is GNU ld. I'd rather use --version,
3198 # but apparently some GNU ld's only accept -v.
3199 # Break only if it was the GNU/non-GNU ld that we prefer.
f9c19112 3200 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3201 test "$with_gnu_ld" != no && break
3202 else
bedf545c 3203 test "$with_gnu_ld" != yes && break
252b5132
RH
3204 fi
3205 fi
3206 done
3207 IFS="$ac_save_ifs"
3208else
f9c19112 3209 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3210fi
3211fi
3212
f9c19112 3213LD="$lt_cv_path_LD"
252b5132 3214if test -n "$LD"; then
13b2be9c
DJ
3215 echo "$as_me:$LINENO: result: $LD" >&5
3216echo "${ECHO_T}$LD" >&6
252b5132 3217else
13b2be9c
DJ
3218 echo "$as_me:$LINENO: result: no" >&5
3219echo "${ECHO_T}no" >&6
252b5132 3220fi
13b2be9c
DJ
3221test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3222echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3223 { (exit 1); exit 1; }; }
3224echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3225echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3226if test "${lt_cv_prog_gnu_ld+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3228else
3229 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3230if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
f9c19112 3231 lt_cv_prog_gnu_ld=yes
252b5132 3232else
f9c19112 3233 lt_cv_prog_gnu_ld=no
252b5132
RH
3234fi
3235fi
13b2be9c
DJ
3236echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3237echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
f9c19112 3238with_gnu_ld=$lt_cv_prog_gnu_ld
ac48eca1 3239
d6d788bd 3240
13b2be9c
DJ
3241echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3242echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3243if test "${lt_cv_ld_reload_flag+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3245else
3246 lt_cv_ld_reload_flag='-r'
3247fi
13b2be9c
DJ
3248echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3249echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3250reload_flag=$lt_cv_ld_reload_flag
3251test -n "$reload_flag" && reload_flag=" $reload_flag"
252b5132 3252
13b2be9c
DJ
3253echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3254echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3255if test "${lt_cv_path_NM+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3257else
3258 if test -n "$NM"; then
3259 # Let the user override the test.
f9c19112 3260 lt_cv_path_NM="$NM"
252b5132 3261else
a74801ba 3262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
bedf545c 3263 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3264 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3265 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3266 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3267 # Check to see if the nm accepts a BSD-compat flag.
3268 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3269 # nm: unknown option "B" ignored
58cccadb
AO
3270 # Tru64's nm complains that /dev/null is an invalid object file
3271 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
f9c19112 3272 lt_cv_path_NM="$tmp_nm -B"
bedf545c 3273 break
ac48eca1 3274 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
f9c19112 3275 lt_cv_path_NM="$tmp_nm -p"
bedf545c 3276 break
252b5132 3277 else
f9c19112 3278 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
bedf545c 3279 continue # so that we can try to find one that supports BSD flags
252b5132 3280 fi
252b5132
RH
3281 fi
3282 done
3283 IFS="$ac_save_ifs"
f9c19112 3284 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3285fi
3286fi
3287
f9c19112 3288NM="$lt_cv_path_NM"
13b2be9c
DJ
3289echo "$as_me:$LINENO: result: $NM" >&5
3290echo "${ECHO_T}$NM" >&6
252b5132 3291
13b2be9c
DJ
3292echo "$as_me:$LINENO: checking whether ln -s works" >&5
3293echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3294LN_S=$as_ln_s
3295if test "$LN_S" = "ln -s"; then
3296 echo "$as_me:$LINENO: result: yes" >&5
3297echo "${ECHO_T}yes" >&6
252b5132 3298else
13b2be9c
DJ
3299 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3300echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3301fi
3302
13b2be9c
DJ
3303echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3304echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3305if test "${lt_cv_deplibs_check_method+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3307else
d64552c5 3308 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3309lt_cv_file_magic_test_file=
3310lt_cv_deplibs_check_method='unknown'
3311# Need to set the preceding variable on all platforms that support
3312# interlibrary dependencies.
3313# 'none' -- dependencies not supported.
3314# `unknown' -- same as none, but documents that we really don't know.
3315# 'pass_all' -- all dependencies passed with no checks.
3316# 'test_compile' -- check by making test program.
3317# 'file_magic [regex]' -- check by looking for files in library path
3318# which responds to the $file_magic_cmd with a given egrep regex.
3319# If you have `file' or equivalent on your system and you're not sure
3320# whether `pass_all' will *always* work, you probably want this one.
3321
f9c19112
HPN
3322case $host_os in
3323aix*)
ac48eca1
AO
3324 lt_cv_deplibs_check_method=pass_all
3325 ;;
3326
3327beos*)
3328 lt_cv_deplibs_check_method=pass_all
3329 ;;
3330
3331bsdi4*)
f9c19112
HPN
3332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3333 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3334 lt_cv_file_magic_test_file=/shlib/libc.so
3335 ;;
3336
d64552c5 3337cygwin* | mingw* |pw32*)
ac48eca1 3338 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3339 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3340 ;;
3341
f9c19112 3342darwin* | rhapsody*)
d70c5fc7 3343 # this will be overwritten by pass_all, but leave it in just in case
f9c19112 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
d70c5fc7 3354 lt_cv_deplibs_check_method=pass_all
f9c19112
HPN
3355 ;;
3356
4101eec8 3357freebsd* | kfreebsd*-gnu)
ac48eca1 3358 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
f9c19112 3359 case $host_cpu in
ac48eca1 3360 i*86 )
58cccadb
AO
3361 # Not sure whether the presence of OpenBSD here was a mistake.
3362 # Let's accept both of them until this is cleared up.
f9c19112
HPN
3363 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3364 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3366 ;;
3367 esac
3368 else
3369 lt_cv_deplibs_check_method=pass_all
3370 fi
3371 ;;
3372
3373gnu*)
3374 lt_cv_deplibs_check_method=pass_all
3375 ;;
3376
f9c19112 3377hpux10.20*|hpux11*)
4867be41
DJ
3378 case $host_cpu in
3379 hppa*)
3380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3381 lt_cv_file_magic_cmd=/usr/bin/file
3382 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3383 ;;
3384 ia64*)
3385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3386 lt_cv_file_magic_cmd=/usr/bin/file
3387 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3388 ;;
3389 esac
ac48eca1
AO
3390 ;;
3391
3392irix5* | irix6*)
f9c19112 3393 case $host_os in
ac48eca1
AO
3394 irix5*)
3395 # this will be overridden with pass_all, but let us keep it just in case
3396 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3397 ;;
3398 *)
f9c19112 3399 case $LD in
ac48eca1
AO
3400 *-32|*"-32 ") libmagic=32-bit;;
3401 *-n32|*"-n32 ") libmagic=N32;;
3402 *-64|*"-64 ") libmagic=64-bit;;
3403 *) libmagic=never-match;;
3404 esac
3405 # this will be overridden with pass_all, but let us keep it just in case
f9c19112
HPN
3406 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3407 ;;
ac48eca1
AO
3408 esac
3409 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3410 lt_cv_deplibs_check_method=pass_all
3411 ;;
3412
3413# This must be Linux ELF.
58cccadb 3414linux-gnu*)
d70c5fc7 3415 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
3416 ;;
3417
4101eec8 3418netbsd* | knetbsd*-gnu)
f9c19112 3419 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6840198f 3420 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3421 else
6840198f 3422 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3423 fi
f9c19112
HPN
3424 ;;
3425
3426newsos6)
3427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3428 lt_cv_file_magic_cmd=/usr/bin/file
3429 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3430 ;;
3431
3432osf3* | osf4* | osf5*)
3433 # this will be overridden with pass_all, but let us keep it just in case
3434 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3435 lt_cv_file_magic_test_file=/shlib/libc.so
3436 lt_cv_deplibs_check_method=pass_all
3437 ;;
3438
3439sco3.2v5*)
3440 lt_cv_deplibs_check_method=pass_all
3441 ;;
3442
3443solaris*)
3444 lt_cv_deplibs_check_method=pass_all
3445 lt_cv_file_magic_test_file=/lib/libc.so
3446 ;;
3447
6be7c12c
AO
3448sysv5uw[78]* | sysv4*uw2*)
3449 lt_cv_deplibs_check_method=pass_all
3450 ;;
3451
ac48eca1 3452sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
f9c19112 3453 case $host_vendor in
ac48eca1
AO
3454 ncr)
3455 lt_cv_deplibs_check_method=pass_all
3456 ;;
3457 motorola)
f9c19112
HPN
3458 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]'
3459 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3460 ;;
3461 esac
3462 ;;
3463esac
3464
3465fi
13b2be9c
DJ
3466echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3467echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3468file_magic_cmd=$lt_cv_file_magic_cmd
3469deplibs_check_method=$lt_cv_deplibs_check_method
3470
c8615825 3471
c8615825 3472
c8615825 3473
ac48eca1
AO
3474# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3475
d70c5fc7
NC
3476# find the maximum length of command line arguments
3477echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3478echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3479if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481else
3482 i=0
3483 teststring="ABCD"
3484
3485 case $build_os in
3486 msdosdjgpp*)
3487 # On DJGPP, this test can blow up pretty badly due to problems in libc
3488 # (any single argument exceeding 2000 bytes causes a buffer overrun
3489 # during glob expansion). Even if it were fixed, the result of this
3490 # check would be larger than it should be.
3491 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3492 ;;
3493
3494 cygwin* | mingw*)
3495 # On Win9x/ME, this test blows up -- it succeeds, but takes
3496 # about 5 minutes as the teststring grows exponentially.
3497 # Worse, since 9x/ME are not pre-emptively multitasking,
3498 # you end up with a "frozen" computer, even though with patience
3499 # the test eventually succeeds (with a max line length of 256k).
3500 # Instead, let's just punt: use the minimum linelength reported by
3501 # all of the supported platforms: 8192 (on NT/2K/XP).
3502 lt_cv_sys_max_cmd_len=8192;
3503 ;;
3504
3505 amigaos*)
3506 # On AmigaOS with pdksh, this test takes hours, literally.
3507 # So we just punt and use a minimum line length of 8192.
3508 lt_cv_sys_max_cmd_len=8192;
3509 ;;
3510
3511 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3512 # This has been around since 386BSD, at least. Likely further.
3513 if test -x /sbin/sysctl; then
3514 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3515 elif test -x /usr/sbin/sysctl; then
3516 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3517 else
3518 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3519 fi
3520 # And add a safety zone
3521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3523 ;;
3524 esac
3525
3526fi
3527
3528if test -n "$lt_cv_sys_max_cmd_len" ; then
3529 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3530echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3531else
3532 echo "$as_me:$LINENO: result: none" >&5
3533echo "${ECHO_T}none" >&6
3534fi
3535
3536
ac48eca1 3537# Only perform the check for file, if the check method requires it
f9c19112 3538case $deplibs_check_method in
ac48eca1 3539file_magic*)
d64552c5 3540 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13b2be9c
DJ
3541 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3542echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3543if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3545else
f9c19112 3546 case $MAGIC_CMD in
ac48eca1 3547 /*)
d64552c5 3548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3549 ;;
3550 ?:/*)
d64552c5 3551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3552 ;;
3553 *)
d64552c5 3554 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3556 ac_dummy="/usr/bin:$PATH"
3557 for ac_dir in $ac_dummy; do
3558 test -z "$ac_dir" && ac_dir=.
3559 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3560 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3561 if test -n "$file_magic_test_file"; then
f9c19112 3562 case $deplibs_check_method in
ac48eca1
AO
3563 "file_magic "*)
3564 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3567 egrep "$file_magic_regex" > /dev/null; then
3568 :
3569 else
3570 cat <<EOF 1>&2
3571
3572*** Warning: the command libtool uses to detect shared libraries,
3573*** $file_magic_cmd, produces output that libtool cannot recognize.
3574*** The result is that libtool may fail to recognize shared libraries
3575*** as such. This will affect the creation of libtool libraries that
3576*** depend on shared libraries, but programs linked with such libtool
3577*** libraries will work regardless of this problem. Nevertheless, you
3578*** may want to report the problem to your system manager and/or to
3579*** bug-libtool@gnu.org
3580
3581EOF
3582 fi ;;
3583 esac
3584 fi
3585 break
3586 fi
3587 done
3588 IFS="$ac_save_ifs"
d64552c5 3589 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3590 ;;
3591esac
3592fi
3593
d64552c5
AO
3594MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3595if test -n "$MAGIC_CMD"; then
13b2be9c
DJ
3596 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3597echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3598else
13b2be9c
DJ
3599 echo "$as_me:$LINENO: result: no" >&5
3600echo "${ECHO_T}no" >&6
ac48eca1
AO
3601fi
3602
d64552c5 3603if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3604 if test -n "$ac_tool_prefix"; then
13b2be9c
DJ
3605 echo "$as_me:$LINENO: checking for file" >&5
3606echo $ECHO_N "checking for file... $ECHO_C" >&6
3607if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3609else
f9c19112 3610 case $MAGIC_CMD in
ac48eca1 3611 /*)
d64552c5 3612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3613 ;;
3614 ?:/*)
d64552c5 3615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3616 ;;
3617 *)
d64552c5 3618 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3620 ac_dummy="/usr/bin:$PATH"
3621 for ac_dir in $ac_dummy; do
3622 test -z "$ac_dir" && ac_dir=.
3623 if test -f $ac_dir/file; then
d64552c5 3624 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3625 if test -n "$file_magic_test_file"; then
f9c19112 3626 case $deplibs_check_method in
ac48eca1
AO
3627 "file_magic "*)
3628 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3631 egrep "$file_magic_regex" > /dev/null; then
3632 :
3633 else
3634 cat <<EOF 1>&2
3635
3636*** Warning: the command libtool uses to detect shared libraries,
3637*** $file_magic_cmd, produces output that libtool cannot recognize.
3638*** The result is that libtool may fail to recognize shared libraries
3639*** as such. This will affect the creation of libtool libraries that
3640*** depend on shared libraries, but programs linked with such libtool
3641*** libraries will work regardless of this problem. Nevertheless, you
3642*** may want to report the problem to your system manager and/or to
3643*** bug-libtool@gnu.org
3644
3645EOF
3646 fi ;;
3647 esac
3648 fi
3649 break
3650 fi
3651 done
3652 IFS="$ac_save_ifs"
d64552c5 3653 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3654 ;;
3655esac
3656fi
3657
d64552c5
AO
3658MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3659if test -n "$MAGIC_CMD"; then
13b2be9c
DJ
3660 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3661echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3662else
13b2be9c
DJ
3663 echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
ac48eca1
AO
3665fi
3666
3667 else
d64552c5 3668 MAGIC_CMD=:
ac48eca1
AO
3669 fi
3670fi
3671
3672 fi
3673 ;;
3674esac
3675
13b2be9c
DJ
3676if test -n "$ac_tool_prefix"; then
3677 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3678set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13b2be9c
DJ
3679echo "$as_me:$LINENO: checking for $ac_word" >&5
3680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3681if test "${ac_cv_prog_RANLIB+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3683else
3684 if test -n "$RANLIB"; then
3685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3686else
13b2be9c
DJ
3687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688for as_dir in $PATH
3689do
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 break 2
3697 fi
3698done
3699done
3700
ac48eca1
AO
3701fi
3702fi
13b2be9c 3703RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3704if test -n "$RANLIB"; then
13b2be9c
DJ
3705 echo "$as_me:$LINENO: result: $RANLIB" >&5
3706echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3707else
13b2be9c
DJ
3708 echo "$as_me:$LINENO: result: no" >&5
3709echo "${ECHO_T}no" >&6
ac48eca1
AO
3710fi
3711
13b2be9c 3712fi
ac48eca1 3713if test -z "$ac_cv_prog_RANLIB"; then
13b2be9c 3714 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3715 # Extract the first word of "ranlib", so it can be a program name with args.
3716set dummy ranlib; ac_word=$2
13b2be9c
DJ
3717echo "$as_me:$LINENO: checking for $ac_word" >&5
3718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 3721else
13b2be9c
DJ
3722 if test -n "$ac_ct_RANLIB"; then
3723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d6d788bd 3724else
13b2be9c
DJ
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH
3727do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_ac_ct_RANLIB="ranlib"
3733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736done
3737done
3738
3739 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3740fi
3741fi
13b2be9c
DJ
3742ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3743if test -n "$ac_ct_RANLIB"; then
3744 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3745echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3746else
13b2be9c
DJ
3747 echo "$as_me:$LINENO: result: no" >&5
3748echo "${ECHO_T}no" >&6
ac48eca1
AO
3749fi
3750
13b2be9c 3751 RANLIB=$ac_ct_RANLIB
ac48eca1 3752else
13b2be9c 3753 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3754fi
3755
13b2be9c
DJ
3756if test -n "$ac_tool_prefix"; then
3757 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3758set dummy ${ac_tool_prefix}strip; ac_word=$2
13b2be9c
DJ
3759echo "$as_me:$LINENO: checking for $ac_word" >&5
3760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761if test "${ac_cv_prog_STRIP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3763else
3764 if test -n "$STRIP"; then
3765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3766else
13b2be9c
DJ
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778done
3779done
3780
ac48eca1
AO
3781fi
3782fi
13b2be9c 3783STRIP=$ac_cv_prog_STRIP
ac48eca1 3784if test -n "$STRIP"; then
13b2be9c
DJ
3785 echo "$as_me:$LINENO: result: $STRIP" >&5
3786echo "${ECHO_T}$STRIP" >&6
ac48eca1 3787else
13b2be9c
DJ
3788 echo "$as_me:$LINENO: result: no" >&5
3789echo "${ECHO_T}no" >&6
ac48eca1
AO
3790fi
3791
13b2be9c 3792fi
ac48eca1 3793if test -z "$ac_cv_prog_STRIP"; then
13b2be9c 3794 ac_ct_STRIP=$STRIP
ac48eca1
AO
3795 # Extract the first word of "strip", so it can be a program name with args.
3796set dummy strip; ac_word=$2
13b2be9c
DJ
3797echo "$as_me:$LINENO: checking for $ac_word" >&5
3798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3799if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3801else
13b2be9c
DJ
3802 if test -n "$ac_ct_STRIP"; then
3803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3804else
13b2be9c
DJ
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_ac_ct_STRIP="strip"
3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816done
3817done
3818
3819 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
d6d788bd
L
3820fi
3821fi
13b2be9c
DJ
3822ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3823if test -n "$ac_ct_STRIP"; then
3824 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3825echo "${ECHO_T}$ac_ct_STRIP" >&6
d6d788bd 3826else
13b2be9c
DJ
3827 echo "$as_me:$LINENO: result: no" >&5
3828echo "${ECHO_T}no" >&6
d6d788bd
L
3829fi
3830
13b2be9c 3831 STRIP=$ac_ct_STRIP
d6d788bd 3832else
13b2be9c 3833 STRIP="$ac_cv_prog_STRIP"
d6d788bd
L
3834fi
3835
252b5132 3836
252b5132 3837# Check for any special flags to pass to ltconfig.
bedf545c 3838libtool_flags="--cache-file=$cache_file"
252b5132
RH
3839test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3840test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
bedf545c 3841test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
f9c19112
HPN
3842test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3843test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3844
d6d788bd 3845
a74801ba
ILT
3846# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3847if test "${enable_libtool_lock+set}" = set; then
3848 enableval="$enable_libtool_lock"
a74801ba 3849
13b2be9c 3850fi;
a74801ba
ILT
3851test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3852test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3853
13b2be9c 3854
ac48eca1
AO
3855# Check whether --with-pic or --without-pic was given.
3856if test "${with_pic+set}" = set; then
3857 withval="$with_pic"
3858 pic_mode="$withval"
3859else
3860 pic_mode=default
13b2be9c 3861fi;
ac48eca1
AO
3862test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3863test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3864
252b5132
RH
3865# Some flags need to be propagated to the compiler or linker for good
3866# libtool support.
f9c19112 3867case $host in
252b5132
RH
3868*-*-irix6*)
3869 # Find out which ABI we are using.
92f01d61 3870 echo '#line 3870 "configure"' > conftest.$ac_ext
13b2be9c
DJ
3871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872 (eval $ac_compile) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; then
e0001a05
NC
3876 if test "$lt_cv_prog_gnu_ld" = yes; then
3877 case `/usr/bin/file conftest.$ac_objext` in
3878 *32-bit*)
3879 LD="${LD-ld} -melf32bsmip"
3880 ;;
3881 *N32*)
3882 LD="${LD-ld} -melf32bmipn32"
3883 ;;
3884 *64-bit*)
3885 LD="${LD-ld} -melf64bmip"
3886 ;;
3887 esac
3888 else
f9c19112 3889 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3890 *32-bit*)
3891 LD="${LD-ld} -32"
3892 ;;
3893 *N32*)
3894 LD="${LD-ld} -n32"
3895 ;;
3896 *64-bit*)
3897 LD="${LD-ld} -64"
3898 ;;
3899 esac
e0001a05 3900 fi
252b5132
RH
3901 fi
3902 rm -rf conftest*
3903 ;;
3904
4867be41
DJ
3905ia64-*-hpux*)
3906 # Find out which ABI we are using.
3907 echo 'int i;' > conftest.$ac_ext
13b2be9c
DJ
3908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909 (eval $ac_compile) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; then
4867be41
DJ
3913 case "`/usr/bin/file conftest.o`" in
3914 *ELF-32*)
3915 HPUX_IA64_MODE="32"
3916 ;;
3917 *ELF-64*)
3918 HPUX_IA64_MODE="64"
3919 ;;
3920 esac
3921 fi
3922 rm -rf conftest*
3923 ;;
3924
e1b5fdd4 3925x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
d70c5fc7
NC
3926 # Find out which ABI we are using.
3927 echo 'int i;' > conftest.$ac_ext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; then
3933 case "`/usr/bin/file conftest.o`" in
3934 *32-bit*)
3935 case $host in
e1b5fdd4 3936 x86_64-*linux*)
d70c5fc7
NC
3937 LD="${LD-ld} -m elf_i386"
3938 ;;
3939 ppc64-*linux*|powerpc64-*linux*)
3940 LD="${LD-ld} -m elf32ppclinux"
3941 ;;
3942 s390x-*linux*)
3943 LD="${LD-ld} -m elf_s390"
3944 ;;
3945 sparc64-*linux*)
3946 LD="${LD-ld} -m elf32_sparc"
3947 ;;
3948 esac
3949 ;;
3950 *64-bit*)
3951 case $host in
e1b5fdd4 3952 x86_64-*linux*)
d70c5fc7
NC
3953 LD="${LD-ld} -m elf_x86_64"
3954 ;;
3955 ppc*-*linux*|powerpc*-*linux*)
3956 LD="${LD-ld} -m elf64ppc"
3957 ;;
3958 s390*-*linux*)
3959 LD="${LD-ld} -m elf64_s390"
3960 ;;
3961 sparc*-*linux*)
3962 LD="${LD-ld} -m elf64_sparc"
3963 ;;
3964 esac
3965 ;;
3966 esac
3967 fi
3968 rm -rf conftest*
3969 ;;
3970
252b5132
RH
3971*-*-sco3.2v5*)
3972 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
bedf545c 3973 SAVE_CFLAGS="$CFLAGS"
252b5132 3974 CFLAGS="$CFLAGS -belf"
13b2be9c
DJ
3975 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3976echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3977if test "${lt_cv_cc_needs_belf+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
bedf545c 3979else
13b2be9c
DJ
3980
3981
ac48eca1 3982 ac_ext=c
ac48eca1 3983ac_cpp='$CPP $CPPFLAGS'
13b2be9c
DJ
3984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987
3988 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
3989/* confdefs.h. */
3990_ACEOF
3991cat confdefs.h >>conftest.$ac_ext
3992cat >>conftest.$ac_ext <<_ACEOF
3993/* end confdefs.h. */
bedf545c 3994
13b2be9c
DJ
3995int
3996main ()
3997{
6840198f 3998
13b2be9c
DJ
3999 ;
4000 return 0;
4001}
4002_ACEOF
4003rm -f conftest.$ac_objext conftest$ac_exeext
4004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 4005 (eval $ac_link) 2>conftest.er1
13b2be9c 4006 ac_status=$?
ab509236
L
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
13b2be9c
DJ
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
1ad12f97
NC
4012 { ac_try='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
ab509236
L
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
bedf545c
ILT
4025 lt_cv_cc_needs_belf=yes
4026else
13b2be9c
DJ
4027 echo "$as_me: failed program was:" >&5
4028sed 's/^/| /' conftest.$ac_ext >&5
4029
4030lt_cv_cc_needs_belf=no
bedf545c 4031fi
ab509236
L
4032rm -f conftest.err conftest.$ac_objext \
4033 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4034 ac_ext=c
ac48eca1 4035ac_cpp='$CPP $CPPFLAGS'
13b2be9c
DJ
4036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4039
bedf545c 4040fi
13b2be9c
DJ
4041echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4042echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
bedf545c
ILT
4043 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4044 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4045 CFLAGS="$SAVE_CFLAGS"
4046 fi
252b5132
RH
4047 ;;
4048
d6d788bd 4049
252b5132
RH
4050esac
4051
d6d788bd 4052
bedf545c 4053# Save cache, so that ltconfig can load it
13b2be9c 4054cat >confcache <<\_ACEOF
bedf545c
ILT
4055# This file is a shell script that caches the results of configure
4056# tests run on this system so they can be shared between configure
13b2be9c
DJ
4057# scripts and configure runs, see configure's option --config-cache.
4058# It is not useful on other systems. If it contains results you don't
4059# want to keep, you may remove or edit it.
bedf545c 4060#
13b2be9c
DJ
4061# config.status only pays attention to the cache file if you give it
4062# the --recheck option to rerun configure.
bedf545c 4063#
13b2be9c
DJ
4064# `ac_cv_env_foo' variables (set or unset) will be overridden when
4065# loading this file, other *unset* `ac_cv_foo' will be assigned the
4066# following values.
4067
4068_ACEOF
4069
bedf545c 4070# The following way of writing the cache mishandles newlines in values,
9b2b7d69
MM
4071# but we know of no workaround that is simple, portable, and efficient.
4072# So, don't put newlines in cache variables' values.
4073# Ultrix sh set writes to stderr and can't be redirected directly,
4074# and sets the high bit in the cache file unless we assign to the vars.
13b2be9c
DJ
4075{
4076 (set) 2>&1 |
4077 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4078 *ac_space=\ *)
4079 # `set' does not quote correctly, so add quotes (double-quote
4080 # substitution turns \\\\ into \\, and sed turns \\ into \).
4081 sed -n \
ab509236
L
4082 "s/'/'\\\\''/g;
4083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
4084 ;;
4085 *)
4086 # `set' quotes correctly as required by POSIX, so do not add quotes.
4087 sed -n \
ab509236 4088 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
4089 ;;
4090 esac;
4091} |
4092 sed '
4093 t clear
4094 : clear
4095 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4096 t end
4097 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4098 : end' >>confcache
4099if diff $cache_file confcache >/dev/null 2>&1; then :; else
bedf545c 4100 if test -w $cache_file; then
13b2be9c
DJ
4101 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4102 cat confcache >$cache_file
bedf545c
ILT
4103 else
4104 echo "not updating unwritable cache $cache_file"
4105 fi
4106fi
4107rm -f confcache
4108
252b5132 4109# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4110AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4111MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4112LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4113AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4114objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4115deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4116${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4117$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
13b2be9c
DJ
4118|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4119echo "$as_me: error: libtool configure failed" >&2;}
4120 { (exit 1); exit 1; }; }
252b5132 4121
bedf545c
ILT
4122# Reload cache, that may have been modified by ltconfig
4123if test -r "$cache_file"; then
13b2be9c
DJ
4124 # Some versions of bash will fail to source /dev/null (special
4125 # files actually), so we avoid doing that.
4126 if test -f "$cache_file"; then
4127 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4128echo "$as_me: loading cache $cache_file" >&6;}
4129 case $cache_file in
4130 [\\/]* | ?:[\\/]* ) . $cache_file;;
4131 *) . ./$cache_file;;
4132 esac
4133 fi
bedf545c 4134else
13b2be9c
DJ
4135 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4136echo "$as_me: creating cache $cache_file" >&6;}
4137 >$cache_file
bedf545c
ILT
4138fi
4139
d6d788bd 4140
bedf545c 4141# This can be used to rebuild libtool when needed
ac48eca1 4142LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
bedf545c
ILT
4143
4144# Always use our own libtool.
4145LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4146
252b5132
RH
4147# Redirect the config.log output again, so that the ltconfig log is not
4148# clobbered by the next message.
4149exec 5>>./config.log
4150
d6d788bd 4151
13b2be9c
DJ
4152
4153
4154
4155
d6d788bd 4156
7be1c489 4157# Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4158if test "${enable_targets+set}" = set; then
4159 enableval="$enable_targets"
4160 case "${enableval}" in
13b2be9c
DJ
4161 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4162echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4163 { (exit 1); exit 1; }; }
252b5132
RH
4164 ;;
4165 no) enable_targets= ;;
4166 *) enable_targets=$enableval ;;
4167esac
13b2be9c 4168fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4169if test "${enable_commonbfdlib+set}" = set; then
4170 enableval="$enable_commonbfdlib"
4171 case "${enableval}" in
4172 yes) commonbfdlib=true ;;
4173 no) commonbfdlib=false ;;
13b2be9c
DJ
4174 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4175echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4176 { (exit 1); exit 1; }; } ;;
252b5132 4177esac
13b2be9c 4178fi;
252b5132
RH
4179using_cgen=no
4180
92f01d61
JM
4181# The location to which bugs should be reported.
4182
4183# Check whether --with-bugurl or --without-bugurl was given.
4184if test "${with_bugurl+set}" = set; then
4185 withval="$with_bugurl"
4186 case "$withval" in
4187 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4188echo "$as_me: error: bug URL not specified" >&2;}
4189 { (exit 1); exit 1; }; } ;;
ad22bfe8
JM
4190 no) REPORT_BUGS_TO="";
4191 REPORT_BUGS_TEXI=""
4192 ;;
4193 *) REPORT_BUGS_TO="<URL:$withval>"
4194 REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}"
4195 ;;
92f01d61
JM
4196 esac
4197else
4198 REPORT_BUGS_TO="<URL:http://www.sourceware.org/bugzilla/>"
ad22bfe8 4199 REPORT_BUGS_TEXI="@uref{http://www.sourceware.org/bugzilla/}"
92f01d61
JM
4200
4201fi;
4202
4203
9e9b66a9 4204
ad22bfe8 4205
a541e3ce 4206GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4207
569acd2c
NC
4208# Check whether --enable-werror or --disable-werror was given.
4209if test "${enable_werror+set}" = set; then
4210 enableval="$enable_werror"
1ad12f97
NC
4211 case "${enableval}" in
4212 yes | y) ERROR_ON_WARNING="yes" ;;
4213 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4214 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4215echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4216 { (exit 1); exit 1; }; } ;;
4217 esac
4218fi;
4219
9e9b66a9
AM
4220# Enable -Werror by default when using gcc
4221if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4222 ERROR_ON_WARNING=yes
4223fi
4224
4225NO_WERROR=
4226if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 4227 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 4228 NO_WERROR="-Wno-error"
1ad12f97
NC
4229fi
4230
a541e3ce
SE
4231if test "${GCC}" = yes ; then
4232 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4233fi
4234
a2d91340
AC
4235# Check whether --enable-build-warnings or --disable-build-warnings was given.
4236if test "${enable_build_warnings+set}" = set; then
4237 enableval="$enable_build_warnings"
4238 case "${enableval}" in
a541e3ce
SE
4239 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4240 no) if test "${GCC}" = yes ; then
4241 WARN_CFLAGS="-w"
4242 fi;;
a2d91340 4243 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 4244 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
a2d91340 4245 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 4246 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 4247 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4248esac
9e9b66a9
AM
4249fi;
4250
4251if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4252 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4253fi
4254
d6d788bd 4255
9e9b66a9
AM
4256
4257
4258
252b5132 4259# Generate a header file
13b2be9c 4260 ac_config_headers="$ac_config_headers config.h:config.in"
d6d788bd 4261
252b5132 4262
76a27922
ILT
4263# If we are on a DOS filesystem, we must use gdb.ini rather than
4264# .gdbinit.
76a27922 4265case "${host}" in
591d4689 4266 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
76a27922 4267 GDBINIT="gdb.ini"
13b2be9c
DJ
4268 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
4269
4270 ;;
4271 *)
4272 GDBINIT=".gdbinit"
4273 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
4274
76a27922
ILT
4275 ;;
4276esac
4277
d6d788bd 4278
44f2f9d2
AM
4279#We need this for the host. BOUT header is in host order.
4280echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4281echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4282if test "${ac_cv_c_bigendian+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284else
4285 # See if sys/param.h defines the BYTE_ORDER macro.
4286cat >conftest.$ac_ext <<_ACEOF
4287/* confdefs.h. */
4288_ACEOF
4289cat confdefs.h >>conftest.$ac_ext
4290cat >>conftest.$ac_ext <<_ACEOF
4291/* end confdefs.h. */
4292#include <sys/types.h>
4293#include <sys/param.h>
4294
4295int
4296main ()
4297{
4298#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4299 bogus endian macros
4300#endif
4301
4302 ;
4303 return 0;
4304}
4305_ACEOF
4306rm -f conftest.$ac_objext
4307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4308 (eval $ac_compile) 2>conftest.er1
4309 ac_status=$?
4310 grep -v '^ *+' conftest.er1 >conftest.err
4311 rm -f conftest.er1
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } &&
1ad12f97
NC
4315 { ac_try='test -z "$ac_c_werror_flag"
4316 || test ! -s conftest.err'
44f2f9d2
AM
4317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 (eval $ac_try) 2>&5
4319 ac_status=$?
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); }; } &&
4322 { ac_try='test -s conftest.$ac_objext'
4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 (eval $ac_try) 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 # It does; now see whether it defined to BIG_ENDIAN or not.
4329cat >conftest.$ac_ext <<_ACEOF
4330/* confdefs.h. */
4331_ACEOF
4332cat confdefs.h >>conftest.$ac_ext
4333cat >>conftest.$ac_ext <<_ACEOF
4334/* end confdefs.h. */
4335#include <sys/types.h>
4336#include <sys/param.h>
4337
4338int
4339main ()
4340{
4341#if BYTE_ORDER != BIG_ENDIAN
4342 not big endian
4343#endif
4344
4345 ;
4346 return 0;
4347}
4348_ACEOF
4349rm -f conftest.$ac_objext
4350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
1ad12f97
NC
4358 { ac_try='test -z "$ac_c_werror_flag"
4359 || test ! -s conftest.err'
44f2f9d2
AM
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 ac_cv_c_bigendian=yes
4372else
4373 echo "$as_me: failed program was:" >&5
4374sed 's/^/| /' conftest.$ac_ext >&5
4375
4376ac_cv_c_bigendian=no
4377fi
4378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4379else
4380 echo "$as_me: failed program was:" >&5
4381sed 's/^/| /' conftest.$ac_ext >&5
4382
4383# It does not; compile a test program.
4384if test "$cross_compiling" = yes; then
4385 # try to guess the endianness by grepping values into an object file
4386 ac_cv_c_bigendian=unknown
4387 cat >conftest.$ac_ext <<_ACEOF
4388/* confdefs.h. */
4389_ACEOF
4390cat confdefs.h >>conftest.$ac_ext
4391cat >>conftest.$ac_ext <<_ACEOF
4392/* end confdefs.h. */
4393short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4394short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4395void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4396short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4397short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4398void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4399int
4400main ()
4401{
4402 _ascii (); _ebcdic ();
4403 ;
4404 return 0;
4405}
4406_ACEOF
4407rm -f conftest.$ac_objext
4408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>conftest.er1
4410 ac_status=$?
4411 grep -v '^ *+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
1ad12f97
NC
4416 { ac_try='test -z "$ac_c_werror_flag"
4417 || test ! -s conftest.err'
44f2f9d2
AM
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4430 ac_cv_c_bigendian=yes
4431fi
4432if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4433 if test "$ac_cv_c_bigendian" = unknown; then
4434 ac_cv_c_bigendian=no
4435 else
4436 # finding both strings is unlikely to happen, but who knows?
4437 ac_cv_c_bigendian=unknown
4438 fi
4439fi
4440else
4441 echo "$as_me: failed program was:" >&5
4442sed 's/^/| /' conftest.$ac_ext >&5
4443
4444fi
4445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4446else
4447 cat >conftest.$ac_ext <<_ACEOF
4448/* confdefs.h. */
4449_ACEOF
4450cat confdefs.h >>conftest.$ac_ext
4451cat >>conftest.$ac_ext <<_ACEOF
4452/* end confdefs.h. */
4453int
4454main ()
4455{
4456 /* Are we little or big endian? From Harbison&Steele. */
4457 union
4458 {
4459 long l;
4460 char c[sizeof (long)];
4461 } u;
4462 u.l = 1;
4463 exit (u.c[sizeof (long) - 1] == 1);
4464}
4465_ACEOF
4466rm -f conftest$ac_exeext
4467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468 (eval $ac_link) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 ac_cv_c_bigendian=no
4478else
4479 echo "$as_me: program exited with status $ac_status" >&5
4480echo "$as_me: failed program was:" >&5
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
4483( exit $ac_status )
4484ac_cv_c_bigendian=yes
4485fi
4486rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4487fi
4488fi
4489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4490fi
4491echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4492echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4493case $ac_cv_c_bigendian in
4494 yes)
4495
4496cat >>confdefs.h <<\_ACEOF
4497#define WORDS_BIGENDIAN 1
4498_ACEOF
4499 ;;
4500 no)
4501 ;;
4502 *)
4503 { { echo "$as_me:$LINENO: error: unknown endianness
4504presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4505echo "$as_me: error: unknown endianness
4506presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4507 { (exit 1); exit 1; }; } ;;
4508esac
4509
4510
252b5132
RH
4511te_file=generic
4512
4513# Makefile target for installing gas in $(tooldir)/bin.
4514install_tooldir=install-exec-tooldir
4515
4516canon_targets=""
15886821 4517all_targets=no
252b5132
RH
4518if test -n "$enable_targets" ; then
4519 for t in `echo $enable_targets | sed 's/,/ /g'`; do
15886821
L
4520 if test $t = "all"; then
4521 all_targets=yes
4522 continue
4523 fi
6d83c84b 4524 result=`$ac_config_sub $t 2>/dev/null`
252b5132
RH
4525 if test -n "$result" ; then
4526 canon_targets="$canon_targets $result"
4527# else
4528# # Permit "all", etc. We don't support it yet though.
4529# canon_targets="$canon_targets $t"
4530 fi
4531 done
4532 _gas_uniq_list="$canon_targets"
4533_gas_uniq_newlist=""
4534for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4535 case $_gas_uniq_i in
4536 _gas_uniq_dummy) ;;
4537 *) case " $_gas_uniq_newlist " in
4538 *" $_gas_uniq_i "*) ;;
4539 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4540 esac ;;
4541 esac
4542done
4543canon_targets=$_gas_uniq_newlist
4544
4545fi
4546
4547emulations=""
4548
4549for this_target in $target $canon_targets ; do
4550
14ee9f48
ILT
4551 targ=${this_target}
4552 . ${srcdir}/configure.tgt
4553
4554 case ${target_cpu} in
4555 crisv32)
ae57792d
HPN
4556
4557cat >>confdefs.h <<_ACEOF
4558#define DEFAULT_CRIS_ARCH $arch
4559_ACEOF
4560
14ee9f48 4561 ;;
252b5132
RH
4562 esac
4563
4564 if test ${this_target} = $target ; then
4565 target_cpu_type=${cpu_type}
4566 elif test ${target_cpu_type} != ${cpu_type} ; then
4567 continue
4568 fi
4569
14ee9f48 4570 generic_target=${cpu_type}-${target_vendor}-${target_os}
252b5132 4571 case ${generic_target} in
14ee9f48
ILT
4572 i386-*-sco3.2v5*)
4573 if test ${this_target} = $target; then
13b2be9c
DJ
4574
4575cat >>confdefs.h <<\_ACEOF
252b5132 4576#define SCO_ELF 1
13b2be9c 4577_ACEOF
252b5132 4578
14ee9f48
ILT
4579 fi
4580 ;;
4581
79500683
AM
4582 i386-*-msdosdjgpp* \
4583 | i386-*-go32* \
14ee9f48 4584 | i386-go32-rtems*)
13b2be9c
DJ
4585
4586cat >>confdefs.h <<\_ACEOF
56385375 4587#define STRICTCOFF 1
13b2be9c 4588_ACEOF
14ee9f48
ILT
4589
4590 ;;
4591
4592 i860-*-*)
4593 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4594echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
4595 ;;
4596
4597 mips-sony-bsd*)
4598 ;;
79500683 4599 mips-*-bsd*)
14ee9f48 4600 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
13b2be9c 4601echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
14ee9f48
ILT
4602 { (exit 1); exit 1; }; }
4603 ;;
4604
4605 ppc-*-aix5.*)
f8fc3443
NC
4606
4607cat >>confdefs.h <<\_ACEOF
4608#define AIX_WEAK_SUPPORT 1
4609_ACEOF
4610
14ee9f48 4611 ;;
ed84e695 4612 ppc-*-linux-*)
14ee9f48
ILT
4613 case "$endian" in
4614 big) ;;
4615 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
13b2be9c
DJ
4616echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4617 { (exit 1); exit 1; }; } ;;
14ee9f48
ILT
4618 esac
4619 ;;
4620 ppc-*-solaris*)
4621 if test ${this_target} = $target; then
13b2be9c
DJ
4622
4623cat >>confdefs.h <<\_ACEOF
252b5132 4624#define TARGET_SOLARIS_COMMENT 1
13b2be9c 4625_ACEOF
252b5132 4626
14ee9f48
ILT
4627 fi
4628 if test x${endian} = xbig; then
4629 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
13b2be9c
DJ
4630echo "$as_me: error: Solaris must be configured little endian" >&2;}
4631 { (exit 1); exit 1; }; }
14ee9f48
ILT
4632 fi
4633 ;;
4634
4635 sh*-*-symbianelf*)
85fbca6a
NC
4636
4637cat >>confdefs.h <<\_ACEOF
4638#define TARGET_SYMBIAN 1
4639_ACEOF
4640
14ee9f48 4641 ;;
252b5132
RH
4642 esac
4643
4644 if test ${this_target} = $target ; then
4645 endian_def=
4646 if test x${endian} = xbig; then
4647 endian_def=1
4648 elif test x${endian} = xlittle; then
4649 endian_def=0
4650 fi
4651 if test x${endian_def} != x; then
13b2be9c
DJ
4652
4653cat >>confdefs.h <<_ACEOF
252b5132 4654#define TARGET_BYTES_BIG_ENDIAN $endian_def
13b2be9c 4655_ACEOF
252b5132
RH
4656
4657 fi
4658 fi
4659
252b5132
RH
4660# Other random stuff.
4661
316f5878
RS
4662 case ${cpu_type} in
4663 mips)
4664 # Set mips_cpu to the name of the default CPU.
4665 case ${target_cpu} in
4666 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4667 mips_cpu=from-abi
4668 ;;
4669 mipsisa32 | mipsisa32el)
4670 mips_cpu=mips32
4671 ;;
af7ee8bf
CD
4672 mipsisa32r2 | mipsisa32r2el)
4673 mips_cpu=mips32r2
4674 ;;
316f5878
RS
4675 mipsisa64 | mipsisa64el)
4676 mips_cpu=mips64
4677 ;;
5f74bc13
CD
4678 mipsisa64r2 | mipsisa64r2el)
4679 mips_cpu=mips64r2
4680 ;;
316f5878
RS
4681 mipstx39 | mipstx39el)
4682 mips_cpu=r3900
4683 ;;
8f6847cb
RS
4684 mips64vr | mips64vrel)
4685 mips_cpu=vr4100
4686 ;;
5f74bc13 4687 mipsisa32r2* | mipsisa64r2*)
af7ee8bf
CD
4688 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4689 ;;
316f5878
RS
4690 mips64* | mipsisa64* | mipsisa32*)
4691 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4692 ;;
4693 *)
13b2be9c
DJ
4694 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4695echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4696 { (exit 1); exit 1; }; }
316f5878
RS
4697 ;;
4698 esac
4699 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4700 # binaries. It's a GNU extension that some OSes don't understand.
4701 # The value only matters on ELF targets.
4702 case ${target} in
4703 *-*-irix*)
4704 use_e_mips_abi_o32=0
4705 ;;
4706 *)
4707 use_e_mips_abi_o32=1
4708 ;;
4709 esac
4710 # Decide whether to generate 32-bit or 64-bit code by default.
4711 # Used to resolve -march=from-abi when an embedded ABI is selected.
4712 case ${target} in
4713 mips64*-*-* | mipsisa64*-*-*)
4714 mips_default_64bit=1
4715 ;;
4716 *)
4717 mips_default_64bit=0
4718 ;;
4719 esac
cac012d6
AO
4720 # Decide which ABI to target by default.
4721 case ${target} in
4722 mips64*-linux* | mips-sgi-irix6*)
4723 mips_default_abi=N32_ABI
4724 ;;
4725 mips*-linux*)
4726 mips_default_abi=O32_ABI
4727 ;;
26eebcf5
MK
4728 mips64*-openbsd*)
4729 mips_default_abi=N64_ABI
4730 ;;
cac012d6
AO
4731 *)
4732 mips_default_abi=NO_ABI
4733 ;;
4734 esac
13b2be9c
DJ
4735
4736cat >>confdefs.h <<_ACEOF
316f5878 4737#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
13b2be9c 4738_ACEOF
316f5878 4739
13b2be9c
DJ
4740
4741cat >>confdefs.h <<_ACEOF
316f5878 4742#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
13b2be9c 4743_ACEOF
316f5878 4744
13b2be9c
DJ
4745
4746cat >>confdefs.h <<_ACEOF
316f5878 4747#define MIPS_DEFAULT_64BIT $mips_default_64bit
13b2be9c 4748_ACEOF
cac012d6 4749
13b2be9c
DJ
4750
4751cat >>confdefs.h <<_ACEOF
cac012d6 4752#define MIPS_DEFAULT_ABI $mips_default_abi
13b2be9c 4753_ACEOF
316f5878
RS
4754
4755 ;;
4756 esac
4757
252b5132
RH
4758 # Do we need the opcodes library?
4759 case ${cpu_type} in
4760 vax | i386 | tic30)
4761 ;;
4762
4763 *)
4764 need_opcodes=yes
4765
4766 case "${enable_shared}" in
4767 yes) shared_opcodes=true ;;
4768 *opcodes*) shared_opcodes=true ;;
4769 *) shared_opcodes=false ;;
4770 esac
252b5132
RH
4771 ;;
4772 esac
4773
4774 # Any other special object files needed ?
4775 case ${cpu_type} in
07c1b327
CM
4776
4777 bfin)
4778 echo ${extra_objects} | grep -s "bfin-parse.o"
4779 if test $? -ne 0 ; then
4780 extra_objects="$extra_objects bfin-parse.o"
4781 fi
4782
4783 echo ${extra_objects} | grep -s "bfin-lex.o"
4784 if test $? -ne 0 ; then
4785 extra_objects="$extra_objects bfin-lex.o"
4786 fi
4787 ;;
4788
1c53c80d 4789 fr30 | ip2k | iq2000 | m32r | openrisc)
252b5132
RH
4790 using_cgen=yes
4791 ;;
4792
49f58d10
JB
4793 m32c)
4794 using_cgen=yes
4795 ;;
0ebb9a87
DB
4796 frv)
4797 using_cgen=yes
4798 ;;
252b5132
RH
4799 m68k)
4800 case ${extra_objects} in
4801 *m68k-parse.o*) ;;
4802 *) extra_objects="$extra_objects m68k-parse.o" ;;
4803 esac
4804 ;;
4805
280d71bf
DB
4806 mep)
4807 using_cgen=yes
4808 ;;
4809
252b5132 4810 mips)
13b2be9c 4811 echo ${extra_objects} | grep -s "itbl-parse.o"
252b5132
RH
4812 if test $? -ne 0 ; then
4813 extra_objects="$extra_objects itbl-parse.o"
4814 fi
4815
13b2be9c 4816 echo ${extra_objects} | grep -s "itbl-lex.o"
252b5132
RH
4817 if test $? -ne 0 ; then
4818 extra_objects="$extra_objects itbl-lex.o"
4819 fi
4820
13b2be9c 4821 echo ${extra_objects} | grep -s "itbl-ops.o"
252b5132
RH
4822 if test $? -ne 0 ; then
4823 extra_objects="$extra_objects itbl-ops.o"
4824 fi
4825 ;;
4826
4970f871 4827 mt)
047af9ef
AH
4828 using_cgen=yes
4829 ;;
4830
c1e4eef7 4831 i386 | s390 | sparc)
252b5132 4832 if test $this_target = $target ; then
13b2be9c
DJ
4833
4834cat >>confdefs.h <<_ACEOF
252b5132 4835#define DEFAULT_ARCH "${arch}"
13b2be9c 4836_ACEOF
252b5132
RH
4837
4838 fi
4839 ;;
93fbbb04
GK
4840
4841 xstormy16)
4842 using_cgen=yes
4843 ;;
4844
d70c5fc7
NC
4845 xc16x)
4846 using_cgen=yes
4847 ;;
4848
e0001a05
NC
4849 xtensa)
4850 echo ${extra_objects} | grep -s "xtensa-relax.o"
4851 if test $? -ne 0 ; then
4852 extra_objects="$extra_objects xtensa-relax.o"
4853 fi
4854 ;;
4855
252b5132
RH
4856 *)
4857 ;;
4858 esac
4859
4860 if test $using_cgen = yes ; then
4861 case "x${extra_objects}" in
4862 *cgen.o*) ;;
4863 *) extra_objects="$extra_objects cgen.o" ;;
4864 esac
4865 fi
4866
4867# See if we really can support this configuration with the emulation code.
4868
4869 if test $this_target = $target ; then
252b5132
RH
4870 obj_format=$fmt
4871 te_file=$em
252b5132
RH
4872 fi
4873
4874# From target name and format, produce a list of supported emulations.
4875
4876 case ${generic_target}-${fmt} in
4877 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
056a1d49 4878 mips*-*-linux*-*) case "$endian" in
df3bcd6f
L
4879 big) emulation="mipsbelf mipslelf mipself" ;;
4880 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132
RH
4881 esac ;;
4882 mips-*-lnews*-ecoff) ;;
4883 mips-*-*-ecoff) case "$endian" in
4884 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4885 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4886 esac ;;
4887 mips-*-*-elf) case "$endian" in
4888 big) emulation="mipsbelf mipslelf mipself" ;;
4889 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132 4890 esac ;;
906fac54 4891 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
119caedd
L
4892 # i386-pc-pe-coff != i386-pc-coff.
4893 i386-*-pe-coff) ;;
4c63da97
AM
4894 # Uncommenting the next line will turn on support for i386 AOUT
4895 # for the default linux configuration
4896 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4897 #
4898 i386-*-aout) emulation="i386aout" ;;
4ca72d38 4899 i386-*-coff) emulation="i386coff" ;;
4c63da97 4900 i386-*-elf) emulation="i386elf" ;;
3bcbcc3d 4901
f9c19112
HPN
4902 # Always all formats. The first stated emulation becomes the default.
4903 cris-*-*aout*) emulation="crisaout criself" ;;
4904 cris-*-*) emulation="criself crisaout" ;;
252b5132
RH
4905 esac
4906
4907 emulations="$emulations $emulation"
4908
4909done
4910
15886821
L
4911# Turn on all targets if possible
4912if test ${all_targets} = "yes"; then
4913 case ${target_cpu_type} in
4914 i386)
4915 case ${obj_format} in
4916 aout)
4917 emulations="$emulations i386coff i386elf"
4918 ;;
4919 coff)
4920 emulations="$emulations i386aout i386elf"
4921 ;;
4922 elf)
4923 emulations="$emulations i386aout i386coff"
4924 ;;
4925 esac
4926 ;;
99ad8390
NC
4927 x86_64)
4928 case ${obj_format} in
4929 aout)
4930 emulations="$emulations i386coff i386elf"
4931 ;;
4932 coff)
4933 emulations="$emulations i386aout i386elf"
4934 ;;
4935 elf)
4936 emulations="$emulations i386aout i386coff"
4937 ;;
4938 esac
4939 ;;
15886821
L
4940 esac
4941fi
4942
252b5132
RH
4943# Assign floating point type. Most processors with FP support
4944# IEEE FP. On those that don't support FP at all, usually IEEE
4945# is emulated.
4946case ${target_cpu} in
12e64c2c 4947 vax | pdp11 ) atof=vax ;;
252b5132
RH
4948 *) atof=ieee ;;
4949esac
4950
4951case "${obj_format}" in
13b2be9c
DJ
4952 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4953echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4954 { (exit 1); exit 1; }; } ;;
252b5132
RH
4955esac
4956
4957# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4958cgen_cpu_prefix=""
4959if test $using_cgen = yes ; then
4960 case ${target_cpu} in
4961 *) cgen_cpu_prefix=${target_cpu} ;;
4962 esac
13b2be9c
DJ
4963
4964
4965cat >>confdefs.h <<\_ACEOF
252b5132 4966#define USING_CGEN 1
13b2be9c 4967_ACEOF
252b5132
RH
4968
4969fi
4970
d6d788bd 4971
252b5132 4972if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
13b2be9c
DJ
4973 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4974echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4975 { (exit 1); exit 1; }; }
252b5132
RH
4976fi
4977
4978if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
13b2be9c
DJ
4979 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4980echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4981 { (exit 1); exit 1; }; }
252b5132
RH
4982fi
4983
252b5132
RH
4984# Some COFF configurations want these random other flags set.
4985case ${obj_format} in
4986 coff)
4987 case ${target_cpu_type} in
13b2be9c
DJ
4988 i386)
4989cat >>confdefs.h <<\_ACEOF
252b5132 4990#define I386COFF 1
13b2be9c 4991_ACEOF
252b5132 4992 ;;
13b2be9c
DJ
4993 m68k)
4994cat >>confdefs.h <<\_ACEOF
252b5132 4995#define M68KCOFF 1
13b2be9c 4996_ACEOF
252b5132 4997 ;;
13b2be9c
DJ
4998 m88k)
4999cat >>confdefs.h <<\_ACEOF
252b5132 5000#define M88KCOFF 1
99ad8390
NC
5001_ACEOF
5002 ;;
5003 x86_64)
5004cat >>confdefs.h <<\_ACEOF
5005#define I386COFF 1
13b2be9c 5006_ACEOF
252b5132
RH
5007 ;;
5008 esac
5009 ;;
5010esac
5011
5012# Getting this done right is going to be a bitch. Each configuration specified
7be1c489
AM
5013# with --enable-targets=... should be checked for environment, format, cpu
5014# setting.
252b5132
RH
5015#
5016# For each configuration, the necessary object file support code must be linked
5017# in. This might be only one, it might be up to four. The necessary emulation
5018# code needs to be provided, too.
5019#
5020# And then there's "--enable-targets=all"....
5021#
5022# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
5023
5024formats="${obj_format}"
5025emfiles=""
5026EMULATIONS=""
5027_gas_uniq_list="$emulations"
5028_gas_uniq_newlist=""
5029for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5030 case $_gas_uniq_i in
5031 _gas_uniq_dummy) ;;
5032 *) case " $_gas_uniq_newlist " in
5033 *" $_gas_uniq_i "*) ;;
5034 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5035 esac ;;
5036 esac
5037done
5038emulations=$_gas_uniq_newlist
5039
5040for em in . $emulations ; do
5041 case $em in
5042 .) continue ;;
97238fbd 5043 mipsbelf | mipslelf | mipself)
252b5132 5044 fmt=elf file=mipself ;;
97238fbd 5045 mipsbecoff | mipslecoff | mipsecoff)
252b5132 5046 fmt=ecoff file=mipsecoff ;;
0aa5d426
HPN
5047 *coff)
5048 fmt=coff file=$em ;;
5049 *aout)
5050 fmt=aout file=$em ;;
5051 *elf)
5052 fmt=elf file=$em ;;
252b5132
RH
5053 esac
5054 formats="$formats $fmt"
5055 emfiles="$emfiles e-$file.o"
5056 EMULATIONS="$EMULATIONS &$em,"
5057done
5058_gas_uniq_list="$formats"
5059_gas_uniq_newlist=""
5060for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5061 case $_gas_uniq_i in
5062 _gas_uniq_dummy) ;;
5063 *) case " $_gas_uniq_newlist " in
5064 *" $_gas_uniq_i "*) ;;
5065 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5066 esac ;;
5067 esac
5068done
5069formats=$_gas_uniq_newlist
5070
5071_gas_uniq_list="$emfiles"
5072_gas_uniq_newlist=""
5073for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5074 case $_gas_uniq_i in
5075 _gas_uniq_dummy) ;;
5076 *) case " $_gas_uniq_newlist " in
5077 *" $_gas_uniq_i "*) ;;
5078 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5079 esac ;;
5080 esac
5081done
5082emfiles=$_gas_uniq_newlist
5083
5084if test `set . $formats ; shift ; echo $#` -gt 1 ; then
5085 for fmt in $formats ; do
5086 case $fmt in
13b2be9c
DJ
5087 aout)
5088cat >>confdefs.h <<\_ACEOF
252b5132 5089#define OBJ_MAYBE_AOUT 1
13b2be9c 5090_ACEOF
252b5132 5091 ;;
13b2be9c
DJ
5092 bout)
5093cat >>confdefs.h <<\_ACEOF
252b5132 5094#define OBJ_MAYBE_BOUT 1
13b2be9c 5095_ACEOF
252b5132 5096 ;;
13b2be9c
DJ
5097 coff)
5098cat >>confdefs.h <<\_ACEOF
252b5132 5099#define OBJ_MAYBE_COFF 1
13b2be9c 5100_ACEOF
252b5132 5101 ;;
13b2be9c
DJ
5102 ecoff)
5103cat >>confdefs.h <<\_ACEOF
252b5132 5104#define OBJ_MAYBE_ECOFF 1
13b2be9c 5105_ACEOF
252b5132 5106 ;;
13b2be9c
DJ
5107 elf)
5108cat >>confdefs.h <<\_ACEOF
252b5132 5109#define OBJ_MAYBE_ELF 1
13b2be9c 5110_ACEOF
252b5132 5111 ;;
13b2be9c
DJ
5112 generic)
5113cat >>confdefs.h <<\_ACEOF
252b5132 5114#define OBJ_MAYBE_GENERIC 1
13b2be9c 5115_ACEOF
252b5132 5116 ;;
13b2be9c
DJ
5117 som)
5118cat >>confdefs.h <<\_ACEOF
252b5132 5119#define OBJ_MAYBE_SOM 1
13b2be9c 5120_ACEOF
252b5132
RH
5121 ;;
5122 esac
5123 extra_objects="$extra_objects obj-$fmt.o"
5124 done
5125 obj_format=multi
5126fi
5127if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
252b5132 5128 DEFAULT_EMULATION=`set . $emulations ; echo $2`
4ca72d38
AM
5129 # e-mips* has more than one emulation per file, e-i386* has just one at the
5130 # moment. If only one emulation is specified, then don't define
5131 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
5132 case "${obj_format}${emfiles}" in
5133 multi* | *mips*)
4ca72d38 5134 extra_objects="$extra_objects $emfiles"
13b2be9c
DJ
5135
5136cat >>confdefs.h <<\_ACEOF
252b5132 5137#define USE_EMULATIONS 1
13b2be9c 5138_ACEOF
4ca72d38
AM
5139 ;;
5140 esac
252b5132
RH
5141fi
5142
13b2be9c
DJ
5143
5144cat >>confdefs.h <<_ACEOF
252b5132 5145#define EMULATIONS $EMULATIONS
13b2be9c
DJ
5146_ACEOF
5147
252b5132 5148
13b2be9c 5149cat >>confdefs.h <<_ACEOF
252b5132 5150#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
13b2be9c 5151_ACEOF
252b5132 5152
d6d788bd 5153
252b5132
RH
5154reject_dev_configs=yes
5155
5156case ${reject_dev_configs}-${dev} in
5157 yes-yes) # Oops.
13b2be9c
DJ
5158 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
5159echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
5160 { (exit 1); exit 1; }; }
252b5132
RH
5161 ;;
5162esac
5163
d6d788bd
L
5164
5165
5166
5167
5168
5169
252b5132
RH
5170# do we need the opcodes library?
5171case "${need_opcodes}" in
5172yes)
5173 OPCODES_LIB=../opcodes/libopcodes.la
5174 ;;
5175esac
5176
d6d788bd 5177
4001ad8c 5178
13b2be9c
DJ
5179
5180cat >>confdefs.h <<_ACEOF
252b5132 5181#define TARGET_ALIAS "${target_alias}"
13b2be9c 5182_ACEOF
9b2b7d69 5183
13b2be9c
DJ
5184
5185cat >>confdefs.h <<_ACEOF
252b5132 5186#define TARGET_CANONICAL "${target}"
13b2be9c 5187_ACEOF
9b2b7d69 5188
13b2be9c
DJ
5189
5190cat >>confdefs.h <<_ACEOF
252b5132 5191#define TARGET_CPU "${target_cpu}"
13b2be9c 5192_ACEOF
9b2b7d69 5193
13b2be9c
DJ
5194
5195cat >>confdefs.h <<_ACEOF
252b5132 5196#define TARGET_VENDOR "${target_vendor}"
13b2be9c 5197_ACEOF
9b2b7d69 5198
13b2be9c
DJ
5199
5200cat >>confdefs.h <<_ACEOF
252b5132 5201#define TARGET_OS "${target_os}"
13b2be9c
DJ
5202_ACEOF
5203
5204
5205ac_ext=c
5206ac_cpp='$CPP $CPPFLAGS'
5207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210if test -n "$ac_tool_prefix"; then
5211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5212set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213echo "$as_me:$LINENO: checking for $ac_word" >&5
5214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215if test "${ac_cv_prog_CC+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218 if test -n "$CC"; then
5219 ac_cv_prog_CC="$CC" # Let the user override the test.
5220else
5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232done
5233done
252b5132 5234
13b2be9c
DJ
5235fi
5236fi
5237CC=$ac_cv_prog_CC
5238if test -n "$CC"; then
5239 echo "$as_me:$LINENO: result: $CC" >&5
5240echo "${ECHO_T}$CC" >&6
5241else
5242 echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6
5244fi
252b5132 5245
13b2be9c
DJ
5246fi
5247if test -z "$ac_cv_prog_CC"; then
5248 ac_ct_CC=$CC
5249 # Extract the first word of "gcc", so it can be a program name with args.
252b5132 5250set dummy gcc; ac_word=$2
13b2be9c
DJ
5251echo "$as_me:$LINENO: checking for $ac_word" >&5
5252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255else
5256 if test -n "$ac_ct_CC"; then
5257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5258else
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_prog_ac_ct_CC="gcc"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270done
5271done
5272
5273fi
5274fi
5275ac_ct_CC=$ac_cv_prog_ac_ct_CC
5276if test -n "$ac_ct_CC"; then
5277 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5278echo "${ECHO_T}$ac_ct_CC" >&6
5279else
5280 echo "$as_me:$LINENO: result: no" >&5
5281echo "${ECHO_T}no" >&6
5282fi
5283
5284 CC=$ac_ct_CC
5285else
5286 CC="$ac_cv_prog_CC"
5287fi
5288
5289if test -z "$CC"; then
5290 if test -n "$ac_tool_prefix"; then
5291 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5292set dummy ${ac_tool_prefix}cc; ac_word=$2
5293echo "$as_me:$LINENO: checking for $ac_word" >&5
5294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5295if test "${ac_cv_prog_CC+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5297else
5298 if test -n "$CC"; then
5299 ac_cv_prog_CC="$CC" # Let the user override the test.
5300else
13b2be9c
DJ
5301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH
5303do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_prog_CC="${ac_tool_prefix}cc"
5309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5311 fi
5312done
5313done
5314
252b5132
RH
5315fi
5316fi
13b2be9c 5317CC=$ac_cv_prog_CC
252b5132 5318if test -n "$CC"; then
13b2be9c
DJ
5319 echo "$as_me:$LINENO: result: $CC" >&5
5320echo "${ECHO_T}$CC" >&6
5321else
5322 echo "$as_me:$LINENO: result: no" >&5
5323echo "${ECHO_T}no" >&6
5324fi
5325
5326fi
5327if test -z "$ac_cv_prog_CC"; then
5328 ac_ct_CC=$CC
5329 # Extract the first word of "cc", so it can be a program name with args.
5330set dummy cc; ac_word=$2
5331echo "$as_me:$LINENO: checking for $ac_word" >&5
5332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5333if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
9b2b7d69 5335else
13b2be9c
DJ
5336 if test -n "$ac_ct_CC"; then
5337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5338else
5339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340for as_dir in $PATH
5341do
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5346 ac_cv_prog_ac_ct_CC="cc"
5347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 break 2
5349 fi
5350done
5351done
5352
5353fi
5354fi
5355ac_ct_CC=$ac_cv_prog_ac_ct_CC
5356if test -n "$ac_ct_CC"; then
5357 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5358echo "${ECHO_T}$ac_ct_CC" >&6
5359else
5360 echo "$as_me:$LINENO: result: no" >&5
5361echo "${ECHO_T}no" >&6
5362fi
5363
5364 CC=$ac_ct_CC
5365else
5366 CC="$ac_cv_prog_CC"
6840198f
NC
5367fi
5368
13b2be9c 5369fi
252b5132
RH
5370if test -z "$CC"; then
5371 # Extract the first word of "cc", so it can be a program name with args.
5372set dummy cc; ac_word=$2
13b2be9c
DJ
5373echo "$as_me:$LINENO: checking for $ac_word" >&5
5374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5375if test "${ac_cv_prog_CC+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5377else
5378 if test -n "$CC"; then
5379 ac_cv_prog_CC="$CC" # Let the user override the test.
5380else
252b5132 5381 ac_prog_rejected=no
13b2be9c
DJ
5382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383for as_dir in $PATH
5384do
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5390 ac_prog_rejected=yes
5391 continue
5392 fi
5393 ac_cv_prog_CC="cc"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397done
5398done
5399
252b5132
RH
5400if test $ac_prog_rejected = yes; then
5401 # We found a bogon in the path, so make sure we never use it.
5402 set dummy $ac_cv_prog_CC
5403 shift
13b2be9c 5404 if test $# != 0; then
252b5132
RH
5405 # We chose a different compiler from the bogus one.
5406 # However, it has the same basename, so the bogon will be chosen
5407 # first if we set CC to just the basename; use the full file name.
5408 shift
13b2be9c 5409 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
252b5132
RH
5410 fi
5411fi
5412fi
5413fi
13b2be9c 5414CC=$ac_cv_prog_CC
252b5132 5415if test -n "$CC"; then
13b2be9c
DJ
5416 echo "$as_me:$LINENO: result: $CC" >&5
5417echo "${ECHO_T}$CC" >&6
252b5132 5418else
13b2be9c
DJ
5419 echo "$as_me:$LINENO: result: no" >&5
5420echo "${ECHO_T}no" >&6
252b5132
RH
5421fi
5422
13b2be9c
DJ
5423fi
5424if test -z "$CC"; then
5425 if test -n "$ac_tool_prefix"; then
5426 for ac_prog in cl
5427 do
5428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5429set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5430echo "$as_me:$LINENO: checking for $ac_word" >&5
5431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5432if test "${ac_cv_prog_CC+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5434else
5435 if test -n "$CC"; then
5436 ac_cv_prog_CC="$CC" # Let the user override the test.
5437else
13b2be9c
DJ
5438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439for as_dir in $PATH
5440do
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 break 2
5448 fi
5449done
5450done
5451
252b5132
RH
5452fi
5453fi
13b2be9c 5454CC=$ac_cv_prog_CC
252b5132 5455if test -n "$CC"; then
13b2be9c
DJ
5456 echo "$as_me:$LINENO: result: $CC" >&5
5457echo "${ECHO_T}$CC" >&6
c8615825 5458else
13b2be9c
DJ
5459 echo "$as_me:$LINENO: result: no" >&5
5460echo "${ECHO_T}no" >&6
c8615825 5461fi
6840198f 5462
13b2be9c
DJ
5463 test -n "$CC" && break
5464 done
5465fi
5466if test -z "$CC"; then
5467 ac_ct_CC=$CC
5468 for ac_prog in cl
5469do
5470 # Extract the first word of "$ac_prog", so it can be a program name with args.
5471set dummy $ac_prog; ac_word=$2
5472echo "$as_me:$LINENO: checking for $ac_word" >&5
5473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5474if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5476else
13b2be9c
DJ
5477 if test -n "$ac_ct_CC"; then
5478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
c8615825 5479else
13b2be9c
DJ
5480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481for as_dir in $PATH
5482do
5483 IFS=$as_save_IFS
5484 test -z "$as_dir" && as_dir=.
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5487 ac_cv_prog_ac_ct_CC="$ac_prog"
5488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 break 2
5490 fi
5491done
5492done
5493
c8615825
AM
5494fi
5495fi
13b2be9c
DJ
5496ac_ct_CC=$ac_cv_prog_ac_ct_CC
5497if test -n "$ac_ct_CC"; then
5498 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5499echo "${ECHO_T}$ac_ct_CC" >&6
c8615825 5500else
13b2be9c
DJ
5501 echo "$as_me:$LINENO: result: no" >&5
5502echo "${ECHO_T}no" >&6
c8615825 5503fi
252b5132 5504
13b2be9c
DJ
5505 test -n "$ac_ct_CC" && break
5506done
5507
5508 CC=$ac_ct_CC
5509fi
5510
5511fi
5512
5513
5514test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5515See \`config.log' for more details." >&5
5516echo "$as_me: error: no acceptable C compiler found in \$PATH
5517See \`config.log' for more details." >&2;}
5518 { (exit 1); exit 1; }; }
5519
5520# Provide some information about the compiler.
5521echo "$as_me:$LINENO:" \
5522 "checking for C compiler version" >&5
5523ac_compiler=`set X $ac_compile; echo $2`
5524{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5525 (eval $ac_compiler --version </dev/null >&5) 2>&5
5526 ac_status=$?
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }
5529{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5530 (eval $ac_compiler -v </dev/null >&5) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }
5534{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5535 (eval $ac_compiler -V </dev/null >&5) 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }
5539
5540echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5541echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5542if test "${ac_cv_c_compiler_gnu+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5546/* confdefs.h. */
5547_ACEOF
5548cat confdefs.h >>conftest.$ac_ext
5549cat >>conftest.$ac_ext <<_ACEOF
5550/* end confdefs.h. */
5551
5552int
5553main ()
5554{
5555#ifndef __GNUC__
5556 choke me
5557#endif
5558
5559 ;
5560 return 0;
5561}
5562_ACEOF
5563rm -f conftest.$ac_objext
5564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5565 (eval $ac_compile) 2>conftest.er1
13b2be9c 5566 ac_status=$?
ab509236
L
5567 grep -v '^ *+' conftest.er1 >conftest.err
5568 rm -f conftest.er1
5569 cat conftest.err >&5
13b2be9c
DJ
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } &&
1ad12f97
NC
5572 { ac_try='test -z "$ac_c_werror_flag"
5573 || test ! -s conftest.err'
ab509236
L
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 (eval $ac_try) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; } &&
5579 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 ac_compiler_gnu=yes
5586else
5587 echo "$as_me: failed program was:" >&5
5588sed 's/^/| /' conftest.$ac_ext >&5
5589
5590ac_compiler_gnu=no
5591fi
ab509236 5592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5593ac_cv_c_compiler_gnu=$ac_compiler_gnu
5594
5595fi
5596echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5597echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5598GCC=`test $ac_compiler_gnu = yes && echo yes`
5599ac_test_CFLAGS=${CFLAGS+set}
5600ac_save_CFLAGS=$CFLAGS
5601CFLAGS="-g"
5602echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5603echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5604if test "${ac_cv_prog_cc_g+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606else
5607 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
5613
5614int
5615main ()
5616{
5617
5618 ;
5619 return 0;
5620}
5621_ACEOF
5622rm -f conftest.$ac_objext
5623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5624 (eval $ac_compile) 2>conftest.er1
13b2be9c 5625 ac_status=$?
ab509236
L
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
13b2be9c
DJ
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
1ad12f97
NC
5631 { ac_try='test -z "$ac_c_werror_flag"
5632 || test ! -s conftest.err'
ab509236
L
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; } &&
5638 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
252b5132
RH
5644 ac_cv_prog_cc_g=yes
5645else
13b2be9c
DJ
5646 echo "$as_me: failed program was:" >&5
5647sed 's/^/| /' conftest.$ac_ext >&5
c8615825 5648
13b2be9c 5649ac_cv_prog_cc_g=no
252b5132 5650fi
ab509236 5651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5652fi
5653echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5654echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
252b5132 5655if test "$ac_test_CFLAGS" = set; then
13b2be9c 5656 CFLAGS=$ac_save_CFLAGS
252b5132
RH
5657elif test $ac_cv_prog_cc_g = yes; then
5658 if test "$GCC" = yes; then
5659 CFLAGS="-g -O2"
5660 else
5661 CFLAGS="-g"
5662 fi
5663else
9b2b7d69
MM
5664 if test "$GCC" = yes; then
5665 CFLAGS="-O2"
5666 else
5667 CFLAGS=
5668 fi
5669fi
13b2be9c
DJ
5670echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5671echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5672if test "${ac_cv_prog_cc_stdc+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674else
5675 ac_cv_prog_cc_stdc=no
5676ac_save_CC=$CC
5677cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5678/* confdefs.h. */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h. */
5683#include <stdarg.h>
5684#include <stdio.h>
5685#include <sys/types.h>
5686#include <sys/stat.h>
5687/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5688struct buf { int x; };
5689FILE * (*rcsopen) (struct buf *, struct stat *, int);
5690static char *e (p, i)
5691 char **p;
5692 int i;
5693{
5694 return p[i];
5695}
5696static char *f (char * (*g) (char **, int), char **p, ...)
5697{
5698 char *s;
5699 va_list v;
5700 va_start (v,p);
5701 s = g (p, va_arg (v,int));
5702 va_end (v);
5703 return s;
5704}
ab509236
L
5705
5706/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5707 function prototypes and stuff, but not '\xHH' hex character constants.
5708 These don't provoke an error unfortunately, instead are silently treated
5709 as 'x'. The following induces an error, until -std1 is added to get
5710 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5711 array size at least. It's necessary to write '\x00'==0 to get something
5712 that's true only with -std1. */
5713int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5714
13b2be9c
DJ
5715int test (int i, double x);
5716struct s1 {int (*f) (int a);};
5717struct s2 {int (*f) (double a);};
5718int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5719int argc;
5720char **argv;
5721int
5722main ()
5723{
5724return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5725 ;
5726 return 0;
5727}
5728_ACEOF
5729# Don't try gcc -ansi; that turns off useful extensions and
5730# breaks some systems' header files.
5731# AIX -qlanglvl=ansi
5732# Ultrix and OSF/1 -std1
5733# HP-UX 10.20 and later -Ae
5734# HP-UX older versions -Aa -D_HPUX_SOURCE
5735# SVR4 -Xc -D__EXTENSIONS__
5736for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5737do
5738 CC="$ac_save_CC $ac_arg"
5739 rm -f conftest.$ac_objext
5740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5741 (eval $ac_compile) 2>conftest.er1
13b2be9c 5742 ac_status=$?
ab509236
L
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
13b2be9c
DJ
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } &&
1ad12f97
NC
5748 { ac_try='test -z "$ac_c_werror_flag"
5749 || test ! -s conftest.err'
ab509236
L
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 (eval $ac_try) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; } &&
5755 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 (eval $ac_try) 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
5761 ac_cv_prog_cc_stdc=$ac_arg
5762break
5763else
5764 echo "$as_me: failed program was:" >&5
5765sed 's/^/| /' conftest.$ac_ext >&5
5766
5767fi
ab509236 5768rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
5769done
5770rm -f conftest.$ac_ext conftest.$ac_objext
5771CC=$ac_save_CC
5772
5773fi
5774
5775case "x$ac_cv_prog_cc_stdc" in
5776 x|xno)
5777 echo "$as_me:$LINENO: result: none needed" >&5
5778echo "${ECHO_T}none needed" >&6 ;;
5779 *)
5780 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5781echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5782 CC="$CC $ac_cv_prog_cc_stdc" ;;
5783esac
5784
5785# Some people use a C++ compiler to compile C. Since we use `exit',
5786# in C++ we need to declare it. In case someone uses the same compiler
5787# for both compiling C and C++ we need to have the C++ compiler decide
5788# the declaration of exit, since it's the most demanding environment.
5789cat >conftest.$ac_ext <<_ACEOF
5790#ifndef __cplusplus
5791 choke me
5792#endif
5793_ACEOF
5794rm -f conftest.$ac_objext
5795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5796 (eval $ac_compile) 2>conftest.er1
13b2be9c 5797 ac_status=$?
ab509236
L
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
13b2be9c
DJ
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
1ad12f97
NC
5803 { ac_try='test -z "$ac_c_werror_flag"
5804 || test ! -s conftest.err'
ab509236
L
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 (eval $ac_try) 2>&5
5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; } &&
5810 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812 (eval $ac_try) 2>&5
5813 ac_status=$?
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; }; then
5816 for ac_declaration in \
ab509236 5817 '' \
13b2be9c
DJ
5818 'extern "C" void std::exit (int) throw (); using std::exit;' \
5819 'extern "C" void std::exit (int); using std::exit;' \
5820 'extern "C" void exit (int) throw ();' \
5821 'extern "C" void exit (int);' \
5822 'void exit (int);'
5823do
5824 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5825/* confdefs.h. */
5826_ACEOF
5827cat confdefs.h >>conftest.$ac_ext
5828cat >>conftest.$ac_ext <<_ACEOF
5829/* end confdefs.h. */
13dfd2d0 5830$ac_declaration
ab509236 5831#include <stdlib.h>
13b2be9c
DJ
5832int
5833main ()
5834{
5835exit (42);
5836 ;
5837 return 0;
5838}
5839_ACEOF
5840rm -f conftest.$ac_objext
5841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5842 (eval $ac_compile) 2>conftest.er1
13b2be9c 5843 ac_status=$?
ab509236
L
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
13b2be9c
DJ
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
1ad12f97
NC
5849 { ac_try='test -z "$ac_c_werror_flag"
5850 || test ! -s conftest.err'
ab509236
L
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 (eval $ac_try) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; } &&
5856 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 :
5863else
5864 echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
5866
5867continue
5868fi
ab509236 5869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 5870 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
5871/* confdefs.h. */
5872_ACEOF
5873cat confdefs.h >>conftest.$ac_ext
5874cat >>conftest.$ac_ext <<_ACEOF
5875/* end confdefs.h. */
5876$ac_declaration
5877int
5878main ()
5879{
5880exit (42);
5881 ;
5882 return 0;
5883}
5884_ACEOF
5885rm -f conftest.$ac_objext
5886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 5887 (eval $ac_compile) 2>conftest.er1
13b2be9c 5888 ac_status=$?
ab509236
L
5889 grep -v '^ *+' conftest.er1 >conftest.err
5890 rm -f conftest.er1
5891 cat conftest.err >&5
13b2be9c
DJ
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } &&
1ad12f97
NC
5894 { ac_try='test -z "$ac_c_werror_flag"
5895 || test ! -s conftest.err'
ab509236
L
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 (eval $ac_try) 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; } &&
5901 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 (eval $ac_try) 2>&5
5904 ac_status=$?
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; }; then
5907 break
5908else
5909 echo "$as_me: failed program was:" >&5
5910sed 's/^/| /' conftest.$ac_ext >&5
5911
5912fi
ab509236 5913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5914done
5915rm -f conftest*
5916if test -n "$ac_declaration"; then
5917 echo '#ifdef __cplusplus' >>confdefs.h
5918 echo $ac_declaration >>confdefs.h
5919 echo '#endif' >>confdefs.h
5920fi
5921
5922else
5923 echo "$as_me: failed program was:" >&5
5924sed 's/^/| /' conftest.$ac_ext >&5
5925
5926fi
ab509236 5927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
5928ac_ext=c
5929ac_cpp='$CPP $CPPFLAGS'
5930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5932ac_compiler_gnu=$ac_cv_c_compiler_gnu
c8615825
AM
5933
5934
5935for ac_prog in 'bison -y' byacc
9b2b7d69 5936do
13b2be9c 5937 # Extract the first word of "$ac_prog", so it can be a program name with args.
c8615825 5938set dummy $ac_prog; ac_word=$2
13b2be9c
DJ
5939echo "$as_me:$LINENO: checking for $ac_word" >&5
5940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5941if test "${ac_cv_prog_YACC+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825
AM
5943else
5944 if test -n "$YACC"; then
5945 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5946else
13b2be9c
DJ
5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH
5949do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_YACC="$ac_prog"
5955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5957 fi
5958done
5959done
5960
c8615825
AM
5961fi
5962fi
13b2be9c 5963YACC=$ac_cv_prog_YACC
c8615825 5964if test -n "$YACC"; then
13b2be9c
DJ
5965 echo "$as_me:$LINENO: result: $YACC" >&5
5966echo "${ECHO_T}$YACC" >&6
c8615825 5967else
13b2be9c
DJ
5968 echo "$as_me:$LINENO: result: no" >&5
5969echo "${ECHO_T}no" >&6
c8615825
AM
5970fi
5971
13b2be9c 5972 test -n "$YACC" && break
c8615825
AM
5973done
5974test -n "$YACC" || YACC="yacc"
5975
13b2be9c
DJ
5976for ac_prog in flex lex
5977do
5978 # Extract the first word of "$ac_prog", so it can be a program name with args.
5979set dummy $ac_prog; ac_word=$2
5980echo "$as_me:$LINENO: checking for $ac_word" >&5
5981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5982if test "${ac_cv_prog_LEX+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 5984else
13b2be9c
DJ
5985 if test -n "$LEX"; then
5986 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9b2b7d69 5987else
13b2be9c
DJ
5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995 ac_cv_prog_LEX="$ac_prog"
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 break 2
5998 fi
5999done
6000done
6001
6002fi
6003fi
6004LEX=$ac_cv_prog_LEX
6005if test -n "$LEX"; then
6006 echo "$as_me:$LINENO: result: $LEX" >&5
6007echo "${ECHO_T}$LEX" >&6
c8615825 6008else
13b2be9c
DJ
6009 echo "$as_me:$LINENO: result: no" >&5
6010echo "${ECHO_T}no" >&6
6011fi
6012
6013 test -n "$LEX" && break
6014done
6015test -n "$LEX" || LEX=":"
6016
6017if test -z "$LEXLIB"
6018then
6019 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6020echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
6021if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023else
6024 ac_check_lib_save_LIBS=$LIBS
6025LIBS="-lfl $LIBS"
6026cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6027/* confdefs.h. */
6028_ACEOF
6029cat confdefs.h >>conftest.$ac_ext
6030cat >>conftest.$ac_ext <<_ACEOF
6031/* end confdefs.h. */
6032
6033/* Override any gcc2 internal prototype to avoid an error. */
6034#ifdef __cplusplus
6035extern "C"
6036#endif
6037/* We use char because int might match the return type of a gcc2
6038 builtin and then its argument prototype would still apply. */
6039char yywrap ();
6040int
6041main ()
6042{
6043yywrap ();
6044 ;
6045 return 0;
6046}
6047_ACEOF
6048rm -f conftest.$ac_objext conftest$ac_exeext
6049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 6050 (eval $ac_link) 2>conftest.er1
13b2be9c 6051 ac_status=$?
ab509236
L
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
13b2be9c
DJ
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
1ad12f97
NC
6057 { ac_try='test -z "$ac_c_werror_flag"
6058 || test ! -s conftest.err'
ab509236
L
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 (eval $ac_try) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; } &&
6064 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 (eval $ac_try) 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_cv_lib_fl_yywrap=yes
6071else
6072 echo "$as_me: failed program was:" >&5
6073sed 's/^/| /' conftest.$ac_ext >&5
6074
6075ac_cv_lib_fl_yywrap=no
6076fi
ab509236
L
6077rm -f conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
6079LIBS=$ac_check_lib_save_LIBS
6080fi
6081echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6082echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
6083if test $ac_cv_lib_fl_yywrap = yes; then
6084 LEXLIB="-lfl"
6085else
6086 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6087echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
6088if test "${ac_cv_lib_l_yywrap+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090else
6091 ac_check_lib_save_LIBS=$LIBS
6092LIBS="-ll $LIBS"
6093cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6094/* confdefs.h. */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h. */
6099
6100/* Override any gcc2 internal prototype to avoid an error. */
6101#ifdef __cplusplus
6102extern "C"
6103#endif
6104/* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6106char yywrap ();
6107int
6108main ()
6109{
6110yywrap ();
6111 ;
6112 return 0;
6113}
6114_ACEOF
6115rm -f conftest.$ac_objext conftest$ac_exeext
6116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 6117 (eval $ac_link) 2>conftest.er1
13b2be9c 6118 ac_status=$?
ab509236
L
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
13b2be9c
DJ
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
1ad12f97
NC
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
ab509236
L
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_lib_l_yywrap=yes
9b2b7d69 6138else
13b2be9c
DJ
6139 echo "$as_me: failed program was:" >&5
6140sed 's/^/| /' conftest.$ac_ext >&5
6141
6142ac_cv_lib_l_yywrap=no
9b2b7d69 6143fi
ab509236
L
6144rm -f conftest.err conftest.$ac_objext \
6145 conftest$ac_exeext conftest.$ac_ext
13b2be9c 6146LIBS=$ac_check_lib_save_LIBS
9b2b7d69 6147fi
13b2be9c
DJ
6148echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6149echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6150if test $ac_cv_lib_l_yywrap = yes; then
6151 LEXLIB="-ll"
252b5132 6152fi
13b2be9c
DJ
6153
6154fi
6155
252b5132 6156fi
13b2be9c
DJ
6157
6158if test "x$LEX" != "x:"; then
6159 echo "$as_me:$LINENO: checking lex output file root" >&5
6160echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6161if test "${ac_cv_prog_lex_root+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164 # The minimal lex program is just a single line: %%. But some broken lexes
6165# (Solaris, I think it was) want two %% lines, so accommodate them.
6166cat >conftest.l <<_ACEOF
6167%%
6168%%
6169_ACEOF
6170{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6171 (eval $LEX conftest.l) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }
6175if test -f lex.yy.c; then
6176 ac_cv_prog_lex_root=lex.yy
6177elif test -f lexyy.c; then
6178 ac_cv_prog_lex_root=lexyy
252b5132 6179else
13b2be9c
DJ
6180 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6181echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6182 { (exit 1); exit 1; }; }
252b5132 6183fi
13b2be9c
DJ
6184fi
6185echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6186echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6187rm -f conftest.l
6188LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
252b5132 6189
13b2be9c
DJ
6190echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6191echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6192if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6194else
13b2be9c
DJ
6195 # POSIX says lex can declare yytext either as a pointer or an array; the
6196# default is implementation-dependent. Figure out which it is, since
6197# not all implementations provide the %pointer and %array declarations.
6198ac_cv_prog_lex_yytext_pointer=no
6199echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6200ac_save_LIBS=$LIBS
6201LIBS="$LIBS $LEXLIB"
6202cat >conftest.$ac_ext <<_ACEOF
6203`cat $LEX_OUTPUT_ROOT.c`
6204_ACEOF
6205rm -f conftest.$ac_objext conftest$ac_exeext
6206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 6207 (eval $ac_link) 2>conftest.er1
13b2be9c 6208 ac_status=$?
ab509236
L
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
13b2be9c
DJ
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
1ad12f97
NC
6214 { ac_try='test -z "$ac_c_werror_flag"
6215 || test ! -s conftest.err'
ab509236
L
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 (eval $ac_try) 2>&5
6224 ac_status=$?
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6227 ac_cv_prog_lex_yytext_pointer=yes
252b5132 6228else
13b2be9c
DJ
6229 echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
252b5132 6232fi
ab509236
L
6233rm -f conftest.err conftest.$ac_objext \
6234 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
6235LIBS=$ac_save_LIBS
6236rm -f "${LEX_OUTPUT_ROOT}.c"
6237
252b5132 6238fi
13b2be9c
DJ
6239echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6240echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6241if test $ac_cv_prog_lex_yytext_pointer = yes; then
6242
6243cat >>confdefs.h <<\_ACEOF
6244#define YYTEXT_POINTER 1
6245_ACEOF
6246
6247fi
6248
6249fi
6250if test "$LEX" = :; then
6251 LEX=${am_missing_run}flex
6252fi
6253
0d6af1ab 6254ALL_LINGUAS="fr tr es rw"
20e95c23
DJ
6255# If we haven't got the data from the intl directory,
6256# assume NLS is disabled.
6257USE_NLS=no
6258LIBINTL=
6259LIBINTL_DEP=
6260INCINTL=
6261XGETTEXT=
6262GMSGFMT=
6263POSUB=
c973bc5c
NC
6264
6265if test -f ../intl/config.intl; then
6266 . ../intl/config.intl
20e95c23
DJ
6267fi
6268echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6269echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6270if test x"$USE_NLS" != xyes; then
6271 echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6
6273else
6274 echo "$as_me:$LINENO: result: yes" >&5
6275echo "${ECHO_T}yes" >&6
6276
6277cat >>confdefs.h <<\_ACEOF
6278#define ENABLE_NLS 1
6279_ACEOF
6280
6281
6282 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6283echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
6284 # Look for .po and .gmo files in the source directory.
6285 CATALOGS=
6286 XLINGUAS=
6287 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6288 # If there aren't any .gmo files the shell will give us the
6289 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6290 # weeded out.
6291 case "$cat" in *\**)
6292 continue;;
6293 esac
6294 # The quadruple backslash is collapsed to a double backslash
6295 # by the backticks, then collapsed again by the double quotes,
6296 # leaving us with one backslash in the sed expression (right
6297 # before the dot that mustn't act as a wildcard).
6298 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6299 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6300 # The user is allowed to set LINGUAS to a list of languages to
6301 # install catalogs for. If it's empty that means "all of them."
6302 if test "x$LINGUAS" = x; then
6303 CATALOGS="$CATALOGS $cat"
6304 XLINGUAS="$XLINGUAS $lang"
6305 else
6306 case "$LINGUAS" in *$lang*)
6307 CATALOGS="$CATALOGS $cat"
6308 XLINGUAS="$XLINGUAS $lang"
6309 ;;
6310 esac
6311 fi
6312 done
6313 LINGUAS="$XLINGUAS"
6314 echo "$as_me:$LINENO: result: $LINGUAS" >&5
6315echo "${ECHO_T}$LINGUAS" >&6
6316
6317
6318 DATADIRNAME=share
6319
6320 INSTOBJEXT=.mo
6321
6322 GENCAT=gencat
6323
6324 CATOBJEXT=.gmo
6325
6326fi
6327
6328 MKINSTALLDIRS=
6329 if test -n "$ac_aux_dir"; then
6330 case "$ac_aux_dir" in
6331 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6332 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6333 esac
6334 fi
6335 if test -z "$MKINSTALLDIRS"; then
6336 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6337 fi
6338
6339
6340
6341 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6342echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6343 # Check whether --enable-nls or --disable-nls was given.
6344if test "${enable_nls+set}" = set; then
6345 enableval="$enable_nls"
6346 USE_NLS=$enableval
6347else
6348 USE_NLS=yes
6349fi;
6350 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6351echo "${ECHO_T}$USE_NLS" >&6
6352
6353
6354
6355
6356
6357
6358# Prepare PATH_SEPARATOR.
6359# The user is always right.
6360if test "${PATH_SEPARATOR+set}" != set; then
6361 echo "#! /bin/sh" >conf$$.sh
6362 echo "exit 0" >>conf$$.sh
6363 chmod +x conf$$.sh
6364 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6365 PATH_SEPARATOR=';'
6366 else
6367 PATH_SEPARATOR=:
6368 fi
6369 rm -f conf$$.sh
6370fi
6371
6372# Find out how to test for executable files. Don't use a zero-byte file,
6373# as systems may use methods other than mode bits to determine executability.
6374cat >conf$$.file <<_ASEOF
6375#! /bin/sh
6376exit 0
6377_ASEOF
6378chmod +x conf$$.file
6379if test -x conf$$.file >/dev/null 2>&1; then
6380 ac_executable_p="test -x"
6381else
6382 ac_executable_p="test -f"
6383fi
6384rm -f conf$$.file
6385
6386# Extract the first word of "msgfmt", so it can be a program name with args.
6387set dummy msgfmt; ac_word=$2
13b2be9c
DJ
6388echo "$as_me:$LINENO: checking for $ac_word" >&5
6389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20e95c23 6390if test "${ac_cv_path_MSGFMT+set}" = set; then
13b2be9c
DJ
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392else
20e95c23
DJ
6393 case "$MSGFMT" in
6394 [\\/]* | ?:[\\/]*)
6395 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6396 ;;
6397 *)
6398 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6399 for ac_dir in $PATH; do
6400 IFS="$ac_save_IFS"
6401 test -z "$ac_dir" && ac_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6404 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6405 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6406 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6407 break 2
6408 fi
6409 fi
6410 done
6411 done
6412 IFS="$ac_save_IFS"
6413 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6414 ;;
6415esac
6416fi
6417MSGFMT="$ac_cv_path_MSGFMT"
6418if test "$MSGFMT" != ":"; then
6419 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6420echo "${ECHO_T}$MSGFMT" >&6
13b2be9c 6421else
20e95c23
DJ
6422 echo "$as_me:$LINENO: result: no" >&5
6423echo "${ECHO_T}no" >&6
6424fi
6425
6426 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6427set dummy gmsgfmt; ac_word=$2
6428echo "$as_me:$LINENO: checking for $ac_word" >&5
6429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6430if test "${ac_cv_path_GMSGFMT+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432else
6433 case $GMSGFMT in
6434 [\\/]* | ?:[\\/]*)
6435 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6436 ;;
6437 *)
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13b2be9c
DJ
6439for as_dir in $PATH
6440do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20e95c23 6445 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13b2be9c
DJ
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449done
6450done
6451
20e95c23
DJ
6452 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6453 ;;
6454esac
13b2be9c 6455fi
20e95c23
DJ
6456GMSGFMT=$ac_cv_path_GMSGFMT
6457
6458if test -n "$GMSGFMT"; then
6459 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6460echo "${ECHO_T}$GMSGFMT" >&6
252b5132 6461else
13b2be9c
DJ
6462 echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6
252b5132
RH
6464fi
6465
20e95c23
DJ
6466
6467
6468# Prepare PATH_SEPARATOR.
6469# The user is always right.
6470if test "${PATH_SEPARATOR+set}" != set; then
6471 echo "#! /bin/sh" >conf$$.sh
6472 echo "exit 0" >>conf$$.sh
6473 chmod +x conf$$.sh
6474 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6475 PATH_SEPARATOR=';'
6476 else
6477 PATH_SEPARATOR=:
6478 fi
6479 rm -f conf$$.sh
6480fi
6481
6482# Find out how to test for executable files. Don't use a zero-byte file,
6483# as systems may use methods other than mode bits to determine executability.
6484cat >conf$$.file <<_ASEOF
6485#! /bin/sh
6486exit 0
6487_ASEOF
6488chmod +x conf$$.file
6489if test -x conf$$.file >/dev/null 2>&1; then
6490 ac_executable_p="test -x"
6491else
6492 ac_executable_p="test -f"
13b2be9c 6493fi
20e95c23
DJ
6494rm -f conf$$.file
6495
6496# Extract the first word of "xgettext", so it can be a program name with args.
6497set dummy xgettext; ac_word=$2
13b2be9c
DJ
6498echo "$as_me:$LINENO: checking for $ac_word" >&5
6499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20e95c23 6500if test "${ac_cv_path_XGETTEXT+set}" = set; then
13b2be9c
DJ
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502else
20e95c23
DJ
6503 case "$XGETTEXT" in
6504 [\\/]* | ?:[\\/]*)
6505 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6506 ;;
6507 *)
6508 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6509 for ac_dir in $PATH; do
6510 IFS="$ac_save_IFS"
6511 test -z "$ac_dir" && ac_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6514 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6515 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6516 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6517 break 2
6518 fi
6519 fi
6520 done
6521 done
6522 IFS="$ac_save_IFS"
6523 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6524 ;;
6525esac
6526fi
6527XGETTEXT="$ac_cv_path_XGETTEXT"
6528if test "$XGETTEXT" != ":"; then
6529 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6530echo "${ECHO_T}$XGETTEXT" >&6
13b2be9c 6531else
20e95c23
DJ
6532 echo "$as_me:$LINENO: result: no" >&5
6533echo "${ECHO_T}no" >&6
6534fi
6535
6536 rm -f messages.po
6537
6538
6539# Prepare PATH_SEPARATOR.
6540# The user is always right.
6541if test "${PATH_SEPARATOR+set}" != set; then
6542 echo "#! /bin/sh" >conf$$.sh
6543 echo "exit 0" >>conf$$.sh
6544 chmod +x conf$$.sh
6545 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6546 PATH_SEPARATOR=';'
6547 else
6548 PATH_SEPARATOR=:
13b2be9c 6549 fi
20e95c23
DJ
6550 rm -f conf$$.sh
6551fi
d6d788bd 6552
20e95c23
DJ
6553# Find out how to test for executable files. Don't use a zero-byte file,
6554# as systems may use methods other than mode bits to determine executability.
6555cat >conf$$.file <<_ASEOF
6556#! /bin/sh
6557exit 0
6558_ASEOF
6559chmod +x conf$$.file
6560if test -x conf$$.file >/dev/null 2>&1; then
6561 ac_executable_p="test -x"
6562else
6563 ac_executable_p="test -f"
13b2be9c 6564fi
20e95c23
DJ
6565rm -f conf$$.file
6566
6567# Extract the first word of "msgmerge", so it can be a program name with args.
6568set dummy msgmerge; ac_word=$2
6569echo "$as_me:$LINENO: checking for $ac_word" >&5
6570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6571if test "${ac_cv_path_MSGMERGE+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573else
6574 case "$MSGMERGE" in
6575 [\\/]* | ?:[\\/]*)
6576 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6577 ;;
6578 *)
6579 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6580 for ac_dir in $PATH; do
6581 IFS="$ac_save_IFS"
6582 test -z "$ac_dir" && ac_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6585 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6586 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6587 break 2
6588 fi
6589 fi
6590 done
6591 done
6592 IFS="$ac_save_IFS"
6593 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6594 ;;
6595esac
13b2be9c 6596fi
20e95c23
DJ
6597MSGMERGE="$ac_cv_path_MSGMERGE"
6598if test "$MSGMERGE" != ":"; then
6599 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6600echo "${ECHO_T}$MSGMERGE" >&6
d6d788bd 6601else
13b2be9c
DJ
6602 echo "$as_me:$LINENO: result: no" >&5
6603echo "${ECHO_T}no" >&6
6604fi
6605
20e95c23
DJ
6606
6607 if test "$GMSGFMT" != ":"; then
6608 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6609 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6610 : ;
6611 else
6612 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6613 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6614echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6615 GMSGFMT=":"
6616 fi
6617 fi
6618
6619 if test "$XGETTEXT" != ":"; then
6620 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6621 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6622 : ;
6623 else
6624 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6625echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6626 XGETTEXT=":"
6627 fi
6628 rm -f messages.po
6629 fi
6630
6631 ac_config_commands="$ac_config_commands default-1"
6632
6633
6634
6635echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6636echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6637 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6638if test "${enable_maintainer_mode+set}" = set; then
6639 enableval="$enable_maintainer_mode"
6640 USE_MAINTAINER_MODE=$enableval
d6d788bd 6641else
20e95c23
DJ
6642 USE_MAINTAINER_MODE=no
6643fi;
6644 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6645echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6646
6647
6648if test $USE_MAINTAINER_MODE = yes; then
6649 MAINTAINER_MODE_TRUE=
6650 MAINTAINER_MODE_FALSE='#'
6651else
6652 MAINTAINER_MODE_TRUE='#'
6653 MAINTAINER_MODE_FALSE=
13b2be9c
DJ
6654fi
6655
20e95c23
DJ
6656 MAINT=$MAINTAINER_MODE_TRUE
6657
6658
6659
6660
d5fbea21
DJ
6661if false; then
6662 GENINSRC_NEVER_TRUE=
6663 GENINSRC_NEVER_FALSE='#'
6664else
6665 GENINSRC_NEVER_TRUE='#'
6666 GENINSRC_NEVER_FALSE=
6667fi
6668
6669
6670
13b2be9c
DJ
6671ac_ext=c
6672ac_cpp='$CPP $CPPFLAGS'
6673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6675ac_compiler_gnu=$ac_cv_c_compiler_gnu
6676echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6677echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6678# On Suns, sometimes $CPP names a directory.
6679if test -n "$CPP" && test -d "$CPP"; then
6680 CPP=
d6d788bd 6681fi
13b2be9c
DJ
6682if test -z "$CPP"; then
6683 if test "${ac_cv_prog_CPP+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685else
6686 # Double quotes because CPP needs to be expanded
6687 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6688 do
6689 ac_preproc_ok=false
6690for ac_c_preproc_warn_flag in '' yes
6691do
6692 # Use a header file that comes with gcc, so configuring glibc
6693 # with a fresh cross-compiler works.
6694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6695 # <limits.h> exists even on freestanding compilers.
6696 # On the NeXT, cc -E runs the code through the compiler's parser,
6697 # not just through cpp. "Syntax error" is here to catch this case.
6698 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6699/* confdefs.h. */
6700_ACEOF
6701cat confdefs.h >>conftest.$ac_ext
6702cat >>conftest.$ac_ext <<_ACEOF
6703/* end confdefs.h. */
6704#ifdef __STDC__
6705# include <limits.h>
6706#else
6707# include <assert.h>
6708#endif
ab509236 6709 Syntax error
13b2be9c
DJ
6710_ACEOF
6711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } >/dev/null; then
6719 if test -s conftest.err; then
6720 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6722 else
6723 ac_cpp_err=
6724 fi
6725else
6726 ac_cpp_err=yes
d6d788bd 6727fi
13b2be9c
DJ
6728if test -z "$ac_cpp_err"; then
6729 :
6730else
6731 echo "$as_me: failed program was:" >&5
6732sed 's/^/| /' conftest.$ac_ext >&5
6733
6734 # Broken: fails on valid input.
6735continue
6736fi
6737rm -f conftest.err conftest.$ac_ext
6738
6739 # OK, works on sane cases. Now check whether non-existent headers
6740 # can be detected and how.
6741 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6742/* confdefs.h. */
6743_ACEOF
6744cat confdefs.h >>conftest.$ac_ext
6745cat >>conftest.$ac_ext <<_ACEOF
6746/* end confdefs.h. */
6747#include <ac_nonexistent.h>
6748_ACEOF
6749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } >/dev/null; then
6757 if test -s conftest.err; then
6758 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6760 else
6761 ac_cpp_err=
6762 fi
d6d788bd 6763else
13b2be9c 6764 ac_cpp_err=yes
d6d788bd 6765fi
13b2be9c
DJ
6766if test -z "$ac_cpp_err"; then
6767 # Broken: success on invalid input.
6768continue
6769else
6770 echo "$as_me: failed program was:" >&5
6771sed 's/^/| /' conftest.$ac_ext >&5
6840198f 6772
13b2be9c
DJ
6773 # Passes both tests.
6774ac_preproc_ok=:
6775break
6776fi
6777rm -f conftest.err conftest.$ac_ext
252b5132 6778
13b2be9c
DJ
6779done
6780# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6781rm -f conftest.err conftest.$ac_ext
6782if $ac_preproc_ok; then
6783 break
9b2b7d69 6784fi
13b2be9c
DJ
6785
6786 done
6787 ac_cv_prog_CPP=$CPP
9b2b7d69 6788
d6d788bd 6789fi
13b2be9c 6790 CPP=$ac_cv_prog_CPP
c8615825 6791else
13b2be9c 6792 ac_cv_prog_CPP=$CPP
c8615825 6793fi
13b2be9c
DJ
6794echo "$as_me:$LINENO: result: $CPP" >&5
6795echo "${ECHO_T}$CPP" >&6
6796ac_preproc_ok=false
6797for ac_c_preproc_warn_flag in '' yes
6798do
6799 # Use a header file that comes with gcc, so configuring glibc
6800 # with a fresh cross-compiler works.
6801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6802 # <limits.h> exists even on freestanding compilers.
6803 # On the NeXT, cc -E runs the code through the compiler's parser,
6804 # not just through cpp. "Syntax error" is here to catch this case.
6805 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6806/* confdefs.h. */
6807_ACEOF
6808cat confdefs.h >>conftest.$ac_ext
6809cat >>conftest.$ac_ext <<_ACEOF
6810/* end confdefs.h. */
6811#ifdef __STDC__
6812# include <limits.h>
6813#else
6814# include <assert.h>
6815#endif
ab509236 6816 Syntax error
13b2be9c
DJ
6817_ACEOF
6818if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6820 ac_status=$?
6821 grep -v '^ *+' conftest.er1 >conftest.err
6822 rm -f conftest.er1
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } >/dev/null; then
6826 if test -s conftest.err; then
6827 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6829 else
6830 ac_cpp_err=
6831 fi
6832else
6833 ac_cpp_err=yes
252b5132 6834fi
13b2be9c
DJ
6835if test -z "$ac_cpp_err"; then
6836 :
252b5132 6837else
13b2be9c
DJ
6838 echo "$as_me: failed program was:" >&5
6839sed 's/^/| /' conftest.$ac_ext >&5
6840
6841 # Broken: fails on valid input.
6842continue
6843fi
6844rm -f conftest.err conftest.$ac_ext
6845
6846 # OK, works on sane cases. Now check whether non-existent headers
6847 # can be detected and how.
6848 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6849/* confdefs.h. */
6850_ACEOF
6851cat confdefs.h >>conftest.$ac_ext
6852cat >>conftest.$ac_ext <<_ACEOF
6853/* end confdefs.h. */
6854#include <ac_nonexistent.h>
6855_ACEOF
6856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6858 ac_status=$?
6859 grep -v '^ *+' conftest.er1 >conftest.err
6860 rm -f conftest.er1
6861 cat conftest.err >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } >/dev/null; then
6864 if test -s conftest.err; then
6865 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 6866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
6867 else
6868 ac_cpp_err=
6869 fi
252b5132 6870else
13b2be9c 6871 ac_cpp_err=yes
252b5132 6872fi
13b2be9c
DJ
6873if test -z "$ac_cpp_err"; then
6874 # Broken: success on invalid input.
6875continue
252b5132 6876else
13b2be9c
DJ
6877 echo "$as_me: failed program was:" >&5
6878sed 's/^/| /' conftest.$ac_ext >&5
c8615825 6879
13b2be9c
DJ
6880 # Passes both tests.
6881ac_preproc_ok=:
6882break
252b5132 6883fi
13b2be9c 6884rm -f conftest.err conftest.$ac_ext
252b5132 6885
13b2be9c
DJ
6886done
6887# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6888rm -f conftest.err conftest.$ac_ext
6889if $ac_preproc_ok; then
6890 :
6891else
6892 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6893See \`config.log' for more details." >&5
6894echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6895See \`config.log' for more details." >&2;}
6896 { (exit 1); exit 1; }; }
252b5132 6897fi
9b2b7d69 6898
13b2be9c
DJ
6899ac_ext=c
6900ac_cpp='$CPP $CPPFLAGS'
6901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132
RH
6904
6905
13b2be9c
DJ
6906echo "$as_me:$LINENO: checking for egrep" >&5
6907echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6908if test "${ac_cv_prog_egrep+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 6910else
13b2be9c
DJ
6911 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6912 then ac_cv_prog_egrep='grep -E'
6913 else ac_cv_prog_egrep='egrep'
c8615825 6914 fi
6840198f 6915fi
13b2be9c
DJ
6916echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6917echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6918 EGREP=$ac_cv_prog_egrep
6840198f 6919
13b2be9c
DJ
6920
6921echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6922echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6923if test "${ac_cv_header_stdc+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6840198f 6925else
20e95c23 6926 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6927/* confdefs.h. */
6928_ACEOF
6929cat confdefs.h >>conftest.$ac_ext
6930cat >>conftest.$ac_ext <<_ACEOF
6931/* end confdefs.h. */
20e95c23
DJ
6932#include <stdlib.h>
6933#include <stdarg.h>
6934#include <string.h>
6935#include <float.h>
6936
6937int
6938main ()
6939{
6940
6941 ;
6942 return 0;
6943}
13b2be9c
DJ
6944_ACEOF
6945rm -f conftest.$ac_objext
6946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 6947 (eval $ac_compile) 2>conftest.er1
13b2be9c 6948 ac_status=$?
ab509236
L
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
13b2be9c
DJ
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
1ad12f97
NC
6954 { ac_try='test -z "$ac_c_werror_flag"
6955 || test ! -s conftest.err'
ab509236
L
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; } &&
6961 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 (eval $ac_try) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
20e95c23 6967 ac_cv_header_stdc=yes
13b2be9c
DJ
6968else
6969 echo "$as_me: failed program was:" >&5
6970sed 's/^/| /' conftest.$ac_ext >&5
6971
20e95c23 6972ac_cv_header_stdc=no
13b2be9c 6973fi
ab509236 6974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 6975
20e95c23
DJ
6976if test $ac_cv_header_stdc = yes; then
6977 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6978 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6979/* confdefs.h. */
6980_ACEOF
6981cat confdefs.h >>conftest.$ac_ext
6982cat >>conftest.$ac_ext <<_ACEOF
6983/* end confdefs.h. */
20e95c23
DJ
6984#include <string.h>
6985
13b2be9c 6986_ACEOF
20e95c23
DJ
6987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6988 $EGREP "memchr" >/dev/null 2>&1; then
6989 :
252b5132 6990else
20e95c23 6991 ac_cv_header_stdc=no
13b2be9c 6992fi
20e95c23 6993rm -f conftest*
13b2be9c 6994
13b2be9c 6995fi
13b2be9c 6996
20e95c23
DJ
6997if test $ac_cv_header_stdc = yes; then
6998 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6999 cat >conftest.$ac_ext <<_ACEOF
7000/* confdefs.h. */
7001_ACEOF
7002cat confdefs.h >>conftest.$ac_ext
7003cat >>conftest.$ac_ext <<_ACEOF
7004/* end confdefs.h. */
7005#include <stdlib.h>
7006
7007_ACEOF
7008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7009 $EGREP "free" >/dev/null 2>&1; then
7010 :
13b2be9c 7011else
20e95c23 7012 ac_cv_header_stdc=no
252b5132 7013fi
20e95c23 7014rm -f conftest*
13b2be9c 7015
252b5132 7016fi
20e95c23
DJ
7017
7018if test $ac_cv_header_stdc = yes; then
7019 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7020 if test "$cross_compiling" = yes; then
7021 :
252b5132 7022else
20e95c23
DJ
7023 cat >conftest.$ac_ext <<_ACEOF
7024/* confdefs.h. */
7025_ACEOF
7026cat confdefs.h >>conftest.$ac_ext
7027cat >>conftest.$ac_ext <<_ACEOF
7028/* end confdefs.h. */
7029#include <ctype.h>
7030#if ((' ' & 0x0FF) == 0x020)
7031# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7032# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7033#else
7034# define ISLOWER(c) \
7035 (('a' <= (c) && (c) <= 'i') \
7036 || ('j' <= (c) && (c) <= 'r') \
7037 || ('s' <= (c) && (c) <= 'z'))
7038# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7039#endif
7040
7041#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7042int
7043main ()
7044{
7045 int i;
7046 for (i = 0; i < 256; i++)
7047 if (XOR (islower (i), ISLOWER (i))
7048 || toupper (i) != TOUPPER (i))
7049 exit(2);
7050 exit (0);
7051}
7052_ACEOF
7053rm -f conftest$ac_exeext
7054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7055 (eval $ac_link) 2>&5
7056 ac_status=$?
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 (eval $ac_try) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7064 :
7065else
7066 echo "$as_me: program exited with status $ac_status" >&5
7067echo "$as_me: failed program was:" >&5
7068sed 's/^/| /' conftest.$ac_ext >&5
252b5132 7069
20e95c23
DJ
7070( exit $ac_status )
7071ac_cv_header_stdc=no
7072fi
7073rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7074fi
7075fi
7076fi
7077echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7078echo "${ECHO_T}$ac_cv_header_stdc" >&6
7079if test $ac_cv_header_stdc = yes; then
d6d788bd 7080
20e95c23
DJ
7081cat >>confdefs.h <<\_ACEOF
7082#define STDC_HEADERS 1
7083_ACEOF
13b2be9c 7084
20e95c23 7085fi
252b5132 7086
20e95c23 7087# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13b2be9c
DJ
7088
7089
252b5132 7090
13b2be9c 7091
252b5132 7092
13b2be9c 7093
252b5132 7094
252b5132 7095
13b2be9c 7096
20e95c23
DJ
7097for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7098 inttypes.h stdint.h unistd.h
7099do
7100as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7101echo "$as_me:$LINENO: checking for $ac_header" >&5
7102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7103if eval "test \"\${$as_ac_Header+set}\" = set"; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7105else
20e95c23
DJ
7106 cat >conftest.$ac_ext <<_ACEOF
7107/* confdefs.h. */
7108_ACEOF
7109cat confdefs.h >>conftest.$ac_ext
7110cat >>conftest.$ac_ext <<_ACEOF
7111/* end confdefs.h. */
7112$ac_includes_default
252b5132 7113
20e95c23
DJ
7114#include <$ac_header>
7115_ACEOF
7116rm -f conftest.$ac_objext
7117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7118 (eval $ac_compile) 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } &&
7125 { ac_try='test -z "$ac_c_werror_flag"
7126 || test ! -s conftest.err'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 (eval $ac_try) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; } &&
7132 { ac_try='test -s conftest.$ac_objext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 (eval $ac_try) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 eval "$as_ac_Header=yes"
c8615825 7139else
20e95c23
DJ
7140 echo "$as_me: failed program was:" >&5
7141sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 7142
20e95c23
DJ
7143eval "$as_ac_Header=no"
7144fi
7145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7146fi
7147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7148echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7149if test `eval echo '${'$as_ac_Header'}'` = yes; then
7150 cat >>confdefs.h <<_ACEOF
7151#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7152_ACEOF
9b2b7d69 7153
20e95c23 7154fi
9b2b7d69 7155
20e95c23 7156done
9b2b7d69
MM
7157
7158
7159
7160
13b2be9c
DJ
7161
7162
7163
7164
7165
7166
7167
7168for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
d6d788bd 7169do
13b2be9c
DJ
7170as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7171if eval "test \"\${$as_ac_Header+set}\" = set"; then
7172 echo "$as_me:$LINENO: checking for $ac_header" >&5
7173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7174if eval "test \"\${$as_ac_Header+set}\" = set"; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176fi
7177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7178echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7179else
7180 # Is the header compilable?
7181echo "$as_me:$LINENO: checking $ac_header usability" >&5
7182echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7183cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7184/* confdefs.h. */
7185_ACEOF
7186cat confdefs.h >>conftest.$ac_ext
7187cat >>conftest.$ac_ext <<_ACEOF
7188/* end confdefs.h. */
7189$ac_includes_default
7190#include <$ac_header>
7191_ACEOF
7192rm -f conftest.$ac_objext
7193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 7194 (eval $ac_compile) 2>conftest.er1
13b2be9c 7195 ac_status=$?
ab509236
L
7196 grep -v '^ *+' conftest.er1 >conftest.err
7197 rm -f conftest.er1
7198 cat conftest.err >&5
13b2be9c
DJ
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } &&
1ad12f97
NC
7201 { ac_try='test -z "$ac_c_werror_flag"
7202 || test ! -s conftest.err'
ab509236
L
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 (eval $ac_try) 2>&5
7205 ac_status=$?
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; } &&
7208 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 (eval $ac_try) 2>&5
7211 ac_status=$?
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; }; then
7214 ac_header_compiler=yes
7215else
7216 echo "$as_me: failed program was:" >&5
7217sed 's/^/| /' conftest.$ac_ext >&5
7218
7219ac_header_compiler=no
7220fi
ab509236 7221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
7222echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7223echo "${ECHO_T}$ac_header_compiler" >&6
7224
7225# Is the header present?
7226echo "$as_me:$LINENO: checking $ac_header presence" >&5
7227echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7228cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7229/* confdefs.h. */
7230_ACEOF
7231cat confdefs.h >>conftest.$ac_ext
7232cat >>conftest.$ac_ext <<_ACEOF
7233/* end confdefs.h. */
7234#include <$ac_header>
7235_ACEOF
7236if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } >/dev/null; then
7244 if test -s conftest.err; then
7245 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 7246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
7247 else
7248 ac_cpp_err=
7249 fi
9b2b7d69 7250else
13b2be9c
DJ
7251 ac_cpp_err=yes
7252fi
7253if test -z "$ac_cpp_err"; then
7254 ac_header_preproc=yes
7255else
7256 echo "$as_me: failed program was:" >&5
7257sed 's/^/| /' conftest.$ac_ext >&5
7258
7259 ac_header_preproc=no
7260fi
7261rm -f conftest.err conftest.$ac_ext
7262echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7263echo "${ECHO_T}$ac_header_preproc" >&6
7264
7265# So? What about this header?
ab509236
L
7266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7267 yes:no: )
13b2be9c
DJ
7268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7269echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
7270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7271echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7272 ac_header_preproc=yes
13b2be9c 7273 ;;
ab509236 7274 no:yes:* )
13b2be9c
DJ
7275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7276echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
7277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7278echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7280echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7282echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
7283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7284echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
7285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7286echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
7287 (
7288 cat <<\_ASBOX
ab509236
L
7289## ------------------------------------------ ##
7290## Report this to the AC_PACKAGE_NAME lists. ##
7291## ------------------------------------------ ##
13b2be9c
DJ
7292_ASBOX
7293 ) |
7294 sed "s/^/$as_me: WARNING: /" >&2
7295 ;;
7296esac
7297echo "$as_me:$LINENO: checking for $ac_header" >&5
7298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7299if eval "test \"\${$as_ac_Header+set}\" = set"; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301else
ab509236 7302 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 7303fi
13b2be9c
DJ
7304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7305echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7306
252b5132 7307fi
13b2be9c
DJ
7308if test `eval echo '${'$as_ac_Header'}'` = yes; then
7309 cat >>confdefs.h <<_ACEOF
7310#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7311_ACEOF
7312
252b5132 7313fi
13b2be9c 7314
252b5132
RH
7315done
7316
d6d788bd 7317
252b5132
RH
7318# Put this here so that autoconf's "cross-compiling" message doesn't confuse
7319# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
7320echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
7321echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
7322if test "${host}" = "${target}"; then
7323 cross_gas=no
7324else
7325 cross_gas=yes
13b2be9c
DJ
7326
7327cat >>confdefs.h <<\_ACEOF
252b5132 7328#define CROSS_COMPILE 1
13b2be9c 7329_ACEOF
252b5132
RH
7330
7331fi
13b2be9c
DJ
7332echo "$as_me:$LINENO: result: $cross_gas" >&5
7333echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
7334
7335# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7336# for constant arguments. Useless!
13b2be9c
DJ
7337echo "$as_me:$LINENO: checking for working alloca.h" >&5
7338echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7339if test "${ac_cv_working_alloca_h+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341else
7342 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7343/* confdefs.h. */
7344_ACEOF
7345cat confdefs.h >>conftest.$ac_ext
7346cat >>conftest.$ac_ext <<_ACEOF
7347/* end confdefs.h. */
252b5132 7348#include <alloca.h>
13b2be9c
DJ
7349int
7350main ()
7351{
7352char *p = (char *) alloca (2 * sizeof (int));
7353 ;
7354 return 0;
7355}
7356_ACEOF
7357rm -f conftest.$ac_objext conftest$ac_exeext
7358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7359 (eval $ac_link) 2>conftest.er1
13b2be9c 7360 ac_status=$?
ab509236
L
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
13b2be9c
DJ
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } &&
1ad12f97
NC
7366 { ac_try='test -z "$ac_c_werror_flag"
7367 || test ! -s conftest.err'
ab509236
L
7368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 (eval $ac_try) 2>&5
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; } &&
7373 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 (eval $ac_try) 2>&5
7376 ac_status=$?
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379 ac_cv_working_alloca_h=yes
7380else
7381 echo "$as_me: failed program was:" >&5
7382sed 's/^/| /' conftest.$ac_ext >&5
7383
7384ac_cv_working_alloca_h=no
7385fi
ab509236
L
7386rm -f conftest.err conftest.$ac_objext \
7387 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7388fi
7389echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7390echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7391if test $ac_cv_working_alloca_h = yes; then
7392
7393cat >>confdefs.h <<\_ACEOF
252b5132 7394#define HAVE_ALLOCA_H 1
13b2be9c 7395_ACEOF
252b5132
RH
7396
7397fi
7398
13b2be9c
DJ
7399echo "$as_me:$LINENO: checking for alloca" >&5
7400echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7401if test "${ac_cv_func_alloca_works+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7403else
13b2be9c 7404 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7405/* confdefs.h. */
7406_ACEOF
7407cat confdefs.h >>conftest.$ac_ext
7408cat >>conftest.$ac_ext <<_ACEOF
7409/* end confdefs.h. */
252b5132
RH
7410#ifdef __GNUC__
7411# define alloca __builtin_alloca
7412#else
7413# ifdef _MSC_VER
7414# include <malloc.h>
7415# define alloca _alloca
7416# else
7417# if HAVE_ALLOCA_H
7418# include <alloca.h>
7419# else
7420# ifdef _AIX
7421 #pragma alloca
7422# else
7423# ifndef alloca /* predefined by HP cc +Olibcalls */
7424char *alloca ();
7425# endif
7426# endif
7427# endif
7428# endif
7429#endif
7430
13b2be9c
DJ
7431int
7432main ()
7433{
7434char *p = (char *) alloca (1);
7435 ;
7436 return 0;
7437}
7438_ACEOF
7439rm -f conftest.$ac_objext conftest$ac_exeext
7440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7441 (eval $ac_link) 2>conftest.er1
13b2be9c 7442 ac_status=$?
ab509236
L
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
13b2be9c
DJ
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } &&
1ad12f97
NC
7448 { ac_try='test -z "$ac_c_werror_flag"
7449 || test ! -s conftest.err'
ab509236
L
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 (eval $ac_try) 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; } &&
7455 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 (eval $ac_try) 2>&5
7458 ac_status=$?
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
252b5132
RH
7461 ac_cv_func_alloca_works=yes
7462else
13b2be9c
DJ
7463 echo "$as_me: failed program was:" >&5
7464sed 's/^/| /' conftest.$ac_ext >&5
7465
7466ac_cv_func_alloca_works=no
252b5132 7467fi
ab509236
L
7468rm -f conftest.err conftest.$ac_objext \
7469 conftest$ac_exeext conftest.$ac_ext
252b5132 7470fi
13b2be9c
DJ
7471echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7472echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 7473
252b5132 7474if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 7475
13b2be9c
DJ
7476cat >>confdefs.h <<\_ACEOF
7477#define HAVE_ALLOCA 1
7478_ACEOF
9b2b7d69 7479
13b2be9c 7480else
c8615825 7481 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
7482# that cause trouble. Some versions do not even contain alloca or
7483# contain a buggy version. If you still want to use their alloca,
7484# use ar to extract alloca.o from them instead of compiling alloca.c.
7485
7486ALLOCA=alloca.$ac_objext
7487
7488cat >>confdefs.h <<\_ACEOF
252b5132 7489#define C_ALLOCA 1
13b2be9c 7490_ACEOF
252b5132 7491
d6d788bd 7492
13b2be9c
DJ
7493echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7494echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7495if test "${ac_cv_os_cray+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7497else
13b2be9c 7498 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7499/* confdefs.h. */
7500_ACEOF
7501cat confdefs.h >>conftest.$ac_ext
7502cat >>conftest.$ac_ext <<_ACEOF
7503/* end confdefs.h. */
252b5132
RH
7504#if defined(CRAY) && ! defined(CRAY2)
7505webecray
7506#else
7507wenotbecray
7508#endif
7509
13b2be9c 7510_ACEOF
252b5132 7511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 7512 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
7513 ac_cv_os_cray=yes
7514else
252b5132
RH
7515 ac_cv_os_cray=no
7516fi
7517rm -f conftest*
7518
7519fi
13b2be9c
DJ
7520echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7521echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 7522if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
7523 for ac_func in _getb67 GETB67 getb67; do
7524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7525echo "$as_me:$LINENO: checking for $ac_func" >&5
7526echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7527if eval "test \"\${$as_ac_var+set}\" = set"; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7531/* confdefs.h. */
7532_ACEOF
7533cat confdefs.h >>conftest.$ac_ext
7534cat >>conftest.$ac_ext <<_ACEOF
7535/* end confdefs.h. */
ab509236
L
7536/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7538#define $ac_func innocuous_$ac_func
7539
252b5132 7540/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7541 which can conflict with char $ac_func (); below.
7542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7543 <limits.h> exists even on freestanding compilers. */
ab509236 7544
13b2be9c
DJ
7545#ifdef __STDC__
7546# include <limits.h>
7547#else
7548# include <assert.h>
7549#endif
ab509236
L
7550
7551#undef $ac_func
7552
252b5132 7553/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7554#ifdef __cplusplus
7555extern "C"
7556{
7557#endif
252b5132 7558/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7559 builtin and then its argument prototype would still apply. */
7560char $ac_func ();
252b5132
RH
7561/* The GNU C library defines this for functions which it implements
7562 to always fail with ENOSYS. Some functions are actually named
7563 something starting with __ and the normal name is an alias. */
7564#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7565choke me
7566#else
13b2be9c
DJ
7567char (*f) () = $ac_func;
7568#endif
7569#ifdef __cplusplus
7570}
252b5132
RH
7571#endif
7572
13b2be9c
DJ
7573int
7574main ()
7575{
7576return f != $ac_func;
7577 ;
7578 return 0;
7579}
7580_ACEOF
7581rm -f conftest.$ac_objext conftest$ac_exeext
7582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7583 (eval $ac_link) 2>conftest.er1
13b2be9c 7584 ac_status=$?
ab509236
L
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
13b2be9c
DJ
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
1ad12f97
NC
7590 { ac_try='test -z "$ac_c_werror_flag"
7591 || test ! -s conftest.err'
ab509236
L
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; } &&
7597 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 (eval $ac_try) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 eval "$as_ac_var=yes"
7604else
7605 echo "$as_me: failed program was:" >&5
7606sed 's/^/| /' conftest.$ac_ext >&5
7607
7608eval "$as_ac_var=no"
7609fi
ab509236
L
7610rm -f conftest.err conftest.$ac_objext \
7611 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7612fi
7613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7614echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7615if test `eval echo '${'$as_ac_var'}'` = yes; then
7616
7617cat >>confdefs.h <<_ACEOF
252b5132 7618#define CRAY_STACKSEG_END $ac_func
13b2be9c 7619_ACEOF
252b5132 7620
13b2be9c 7621 break
252b5132
RH
7622fi
7623
13b2be9c 7624 done
252b5132
RH
7625fi
7626
13b2be9c
DJ
7627echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7628echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7629if test "${ac_cv_c_stack_direction+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7631else
7632 if test "$cross_compiling" = yes; then
7633 ac_cv_c_stack_direction=0
7634else
13b2be9c 7635 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7636/* confdefs.h. */
7637_ACEOF
7638cat confdefs.h >>conftest.$ac_ext
7639cat >>conftest.$ac_ext <<_ACEOF
7640/* end confdefs.h. */
7641int
252b5132
RH
7642find_stack_direction ()
7643{
7644 static char *addr = 0;
7645 auto char dummy;
7646 if (addr == 0)
7647 {
7648 addr = &dummy;
7649 return find_stack_direction ();
7650 }
7651 else
7652 return (&dummy > addr) ? 1 : -1;
7653}
13b2be9c
DJ
7654
7655int
252b5132
RH
7656main ()
7657{
13b2be9c 7658 exit (find_stack_direction () < 0);
252b5132 7659}
13b2be9c
DJ
7660_ACEOF
7661rm -f conftest$ac_exeext
7662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
252b5132
RH
7672 ac_cv_c_stack_direction=1
7673else
13b2be9c
DJ
7674 echo "$as_me: program exited with status $ac_status" >&5
7675echo "$as_me: failed program was:" >&5
7676sed 's/^/| /' conftest.$ac_ext >&5
7677
7678( exit $ac_status )
7679ac_cv_c_stack_direction=-1
252b5132 7680fi
ab509236 7681rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 7682fi
252b5132 7683fi
13b2be9c
DJ
7684echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7685echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 7686
13b2be9c 7687cat >>confdefs.h <<_ACEOF
252b5132 7688#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
7689_ACEOF
7690
252b5132
RH
7691
7692fi
7693
13b2be9c
DJ
7694echo "$as_me:$LINENO: checking for inline" >&5
7695echo $ECHO_N "checking for inline... $ECHO_C" >&6
7696if test "${ac_cv_c_inline+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7698else
7699 ac_cv_c_inline=no
7700for ac_kw in inline __inline__ __inline; do
13b2be9c 7701 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7702/* confdefs.h. */
7703_ACEOF
7704cat confdefs.h >>conftest.$ac_ext
7705cat >>conftest.$ac_ext <<_ACEOF
7706/* end confdefs.h. */
7707#ifndef __cplusplus
7708typedef int foo_t;
7709static $ac_kw foo_t static_foo () {return 0; }
7710$ac_kw foo_t foo () {return 0; }
7711#endif
252b5132 7712
13b2be9c
DJ
7713_ACEOF
7714rm -f conftest.$ac_objext
7715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 7716 (eval $ac_compile) 2>conftest.er1
13b2be9c 7717 ac_status=$?
ab509236
L
7718 grep -v '^ *+' conftest.er1 >conftest.err
7719 rm -f conftest.er1
7720 cat conftest.err >&5
13b2be9c
DJ
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } &&
1ad12f97
NC
7723 { ac_try='test -z "$ac_c_werror_flag"
7724 || test ! -s conftest.err'
ab509236
L
7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 (eval $ac_try) 2>&5
7727 ac_status=$?
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; } &&
7730 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 (eval $ac_try) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; }; then
252b5132
RH
7736 ac_cv_c_inline=$ac_kw; break
7737else
13b2be9c
DJ
7738 echo "$as_me: failed program was:" >&5
7739sed 's/^/| /' conftest.$ac_ext >&5
7740
252b5132 7741fi
ab509236 7742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7743done
7744
7745fi
13b2be9c
DJ
7746echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7747echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
7748
7749
13b2be9c 7750case $ac_cv_c_inline in
252b5132 7751 inline | yes) ;;
ab509236
L
7752 *)
7753 case $ac_cv_c_inline in
7754 no) ac_val=;;
7755 *) ac_val=$ac_cv_c_inline;;
7756 esac
7757 cat >>confdefs.h <<_ACEOF
7758#ifndef __cplusplus
7759#define inline $ac_val
7760#endif
13b2be9c 7761_ACEOF
ab509236 7762 ;;
252b5132
RH
7763esac
7764
6840198f 7765
d6d788bd 7766# VMS doesn't have unlink.
13b2be9c
DJ
7767
7768
252b5132
RH
7769for ac_func in unlink remove
7770do
13b2be9c
DJ
7771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7772echo "$as_me:$LINENO: checking for $ac_func" >&5
7773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7774if eval "test \"\${$as_ac_var+set}\" = set"; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7776else
7777 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7778/* confdefs.h. */
7779_ACEOF
7780cat confdefs.h >>conftest.$ac_ext
7781cat >>conftest.$ac_ext <<_ACEOF
7782/* end confdefs.h. */
ab509236
L
7783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7785#define $ac_func innocuous_$ac_func
7786
252b5132 7787/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7788 which can conflict with char $ac_func (); below.
7789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7790 <limits.h> exists even on freestanding compilers. */
ab509236 7791
13b2be9c
DJ
7792#ifdef __STDC__
7793# include <limits.h>
7794#else
7795# include <assert.h>
7796#endif
ab509236
L
7797
7798#undef $ac_func
7799
252b5132 7800/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7801#ifdef __cplusplus
7802extern "C"
7803{
7804#endif
252b5132 7805/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7806 builtin and then its argument prototype would still apply. */
7807char $ac_func ();
252b5132
RH
7808/* The GNU C library defines this for functions which it implements
7809 to always fail with ENOSYS. Some functions are actually named
7810 something starting with __ and the normal name is an alias. */
7811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7812choke me
7813#else
13b2be9c
DJ
7814char (*f) () = $ac_func;
7815#endif
7816#ifdef __cplusplus
7817}
252b5132
RH
7818#endif
7819
13b2be9c
DJ
7820int
7821main ()
7822{
7823return f != $ac_func;
7824 ;
7825 return 0;
7826}
7827_ACEOF
7828rm -f conftest.$ac_objext conftest$ac_exeext
7829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7830 (eval $ac_link) 2>conftest.er1
13b2be9c 7831 ac_status=$?
ab509236
L
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
13b2be9c
DJ
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
1ad12f97
NC
7837 { ac_try='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
ab509236
L
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 eval "$as_ac_var=yes"
7851else
7852 echo "$as_me: failed program was:" >&5
7853sed 's/^/| /' conftest.$ac_ext >&5
7854
7855eval "$as_ac_var=no"
7856fi
ab509236
L
7857rm -f conftest.err conftest.$ac_objext \
7858 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7859fi
7860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7862if test `eval echo '${'$as_ac_var'}'` = yes; then
7863 cat >>confdefs.h <<_ACEOF
7864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7865_ACEOF
252b5132 7866 break
252b5132
RH
7867fi
7868done
7869
6840198f 7870
d6d788bd 7871# Some systems don't have sbrk().
13b2be9c 7872
252b5132
RH
7873for ac_func in sbrk
7874do
13b2be9c
DJ
7875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7876echo "$as_me:$LINENO: checking for $ac_func" >&5
7877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7878if eval "test \"\${$as_ac_var+set}\" = set"; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880else
7881 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7882/* confdefs.h. */
7883_ACEOF
7884cat confdefs.h >>conftest.$ac_ext
7885cat >>conftest.$ac_ext <<_ACEOF
7886/* end confdefs.h. */
ab509236
L
7887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7889#define $ac_func innocuous_$ac_func
7890
252b5132 7891/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
7892 which can conflict with char $ac_func (); below.
7893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7894 <limits.h> exists even on freestanding compilers. */
ab509236 7895
13b2be9c
DJ
7896#ifdef __STDC__
7897# include <limits.h>
7898#else
7899# include <assert.h>
7900#endif
ab509236
L
7901
7902#undef $ac_func
7903
252b5132 7904/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
7905#ifdef __cplusplus
7906extern "C"
7907{
7908#endif
252b5132 7909/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
7910 builtin and then its argument prototype would still apply. */
7911char $ac_func ();
252b5132
RH
7912/* The GNU C library defines this for functions which it implements
7913 to always fail with ENOSYS. Some functions are actually named
7914 something starting with __ and the normal name is an alias. */
7915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7916choke me
7917#else
13b2be9c
DJ
7918char (*f) () = $ac_func;
7919#endif
7920#ifdef __cplusplus
7921}
252b5132
RH
7922#endif
7923
13b2be9c
DJ
7924int
7925main ()
7926{
7927return f != $ac_func;
7928 ;
7929 return 0;
7930}
7931_ACEOF
7932rm -f conftest.$ac_objext conftest$ac_exeext
7933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 7934 (eval $ac_link) 2>conftest.er1
13b2be9c 7935 ac_status=$?
ab509236
L
7936 grep -v '^ *+' conftest.er1 >conftest.err
7937 rm -f conftest.er1
7938 cat conftest.err >&5
13b2be9c
DJ
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } &&
1ad12f97
NC
7941 { ac_try='test -z "$ac_c_werror_flag"
7942 || test ! -s conftest.err'
ab509236
L
7943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944 (eval $ac_try) 2>&5
7945 ac_status=$?
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; } &&
7948 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 (eval $ac_try) 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 eval "$as_ac_var=yes"
7955else
7956 echo "$as_me: failed program was:" >&5
7957sed 's/^/| /' conftest.$ac_ext >&5
7958
7959eval "$as_ac_var=no"
7960fi
ab509236
L
7961rm -f conftest.err conftest.$ac_objext \
7962 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
7963fi
7964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7965echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7966if test `eval echo '${'$as_ac_var'}'` = yes; then
7967 cat >>confdefs.h <<_ACEOF
7968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7969_ACEOF
252b5132 7970
252b5132
RH
7971fi
7972done
7973
d6d788bd 7974
39bec121
TW
7975# do we need the math library?
7976case "${need_libm}" in
13b2be9c 7977yes)
39bec121 7978 LIBM=
f9c19112 7979case $host in
d70c5fc7 7980*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
39bec121 7981 # These system don't have libm
d70c5fc7 7982 # on darwin the libm is a symbolic link to libSystem.dylib
39bec121
TW
7983 ;;
7984*-ncr-sysv4.3*)
13b2be9c
DJ
7985 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
7986echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
7987if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 7989else
13b2be9c 7990 ac_check_lib_save_LIBS=$LIBS
39bec121 7991LIBS="-lmw $LIBS"
13b2be9c 7992cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
7993/* confdefs.h. */
7994_ACEOF
7995cat confdefs.h >>conftest.$ac_ext
7996cat >>conftest.$ac_ext <<_ACEOF
7997/* end confdefs.h. */
7998
39bec121 7999/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
8000#ifdef __cplusplus
8001extern "C"
8002#endif
39bec121 8003/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
8004 builtin and then its argument prototype would still apply. */
8005char _mwvalidcheckl ();
8006int
8007main ()
8008{
8009_mwvalidcheckl ();
8010 ;
8011 return 0;
8012}
8013_ACEOF
8014rm -f conftest.$ac_objext conftest$ac_exeext
8015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8016 (eval $ac_link) 2>conftest.er1
13b2be9c 8017 ac_status=$?
ab509236
L
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
13b2be9c
DJ
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } &&
1ad12f97
NC
8023 { ac_try='test -z "$ac_c_werror_flag"
8024 || test ! -s conftest.err'
ab509236
L
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; } &&
8030 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 ac_cv_lib_mw__mwvalidcheckl=yes
8037else
8038 echo "$as_me: failed program was:" >&5
8039sed 's/^/| /' conftest.$ac_ext >&5
8040
8041ac_cv_lib_mw__mwvalidcheckl=no
8042fi
ab509236
L
8043rm -f conftest.err conftest.$ac_objext \
8044 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8045LIBS=$ac_check_lib_save_LIBS
8046fi
8047echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
8048echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
8049if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 8050 LIBM="-lmw"
39bec121
TW
8051fi
8052
13b2be9c
DJ
8053 echo "$as_me:$LINENO: checking for main in -lm" >&5
8054echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8055if test "${ac_cv_lib_m_main+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 8057else
13b2be9c 8058 ac_check_lib_save_LIBS=$LIBS
39bec121 8059LIBS="-lm $LIBS"
13b2be9c 8060cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8061/* confdefs.h. */
8062_ACEOF
8063cat confdefs.h >>conftest.$ac_ext
8064cat >>conftest.$ac_ext <<_ACEOF
8065/* end confdefs.h. */
39bec121 8066
d6d788bd 8067
13b2be9c
DJ
8068int
8069main ()
8070{
8071main ();
8072 ;
8073 return 0;
8074}
8075_ACEOF
8076rm -f conftest.$ac_objext conftest$ac_exeext
8077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8078 (eval $ac_link) 2>conftest.er1
13b2be9c 8079 ac_status=$?
ab509236
L
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
13b2be9c
DJ
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
1ad12f97
NC
8085 { ac_try='test -z "$ac_c_werror_flag"
8086 || test ! -s conftest.err'
ab509236
L
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 (eval $ac_try) 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; } &&
8092 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 (eval $ac_try) 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; }; then
8098 ac_cv_lib_m_main=yes
8099else
8100 echo "$as_me: failed program was:" >&5
8101sed 's/^/| /' conftest.$ac_ext >&5
8102
8103ac_cv_lib_m_main=no
8104fi
ab509236
L
8105rm -f conftest.err conftest.$ac_objext \
8106 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8107LIBS=$ac_check_lib_save_LIBS
8108fi
8109echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8110echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8111if test $ac_cv_lib_m_main = yes; then
39bec121 8112 LIBM="$LIBM -lm"
39bec121
TW
8113fi
8114
8115 ;;
8116*)
13b2be9c
DJ
8117 echo "$as_me:$LINENO: checking for main in -lm" >&5
8118echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8119if test "${ac_cv_lib_m_main+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 8121else
13b2be9c 8122 ac_check_lib_save_LIBS=$LIBS
39bec121 8123LIBS="-lm $LIBS"
13b2be9c 8124cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8125/* confdefs.h. */
8126_ACEOF
8127cat confdefs.h >>conftest.$ac_ext
8128cat >>conftest.$ac_ext <<_ACEOF
8129/* end confdefs.h. */
39bec121 8130
d6d788bd 8131
13b2be9c
DJ
8132int
8133main ()
8134{
8135main ();
8136 ;
8137 return 0;
8138}
8139_ACEOF
8140rm -f conftest.$ac_objext conftest$ac_exeext
8141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8142 (eval $ac_link) 2>conftest.er1
13b2be9c 8143 ac_status=$?
ab509236
L
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
13b2be9c
DJ
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
1ad12f97
NC
8149 { ac_try='test -z "$ac_c_werror_flag"
8150 || test ! -s conftest.err'
ab509236
L
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; } &&
8156 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 ac_cv_lib_m_main=yes
8163else
8164 echo "$as_me: failed program was:" >&5
8165sed 's/^/| /' conftest.$ac_ext >&5
8166
8167ac_cv_lib_m_main=no
8168fi
ab509236
L
8169rm -f conftest.err conftest.$ac_objext \
8170 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8171LIBS=$ac_check_lib_save_LIBS
8172fi
8173echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8174echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8175if test $ac_cv_lib_m_main = yes; then
39bec121 8176 LIBM="-lm"
39bec121
TW
8177fi
8178
8179 ;;
8180esac
8181
13b2be9c 8182
39bec121
TW
8183 ;;
8184esac
8185
252b5132
RH
8186# Some non-ANSI preprocessors botch requoting inside strings. That's bad
8187# enough, but on some of those systems, the assert macro relies on requoting
8188# working properly!
13b2be9c
DJ
8189echo "$as_me:$LINENO: checking for working assert macro" >&5
8190echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
8191if test "${gas_cv_assert_ok+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193else
8194 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8195/* confdefs.h. */
8196_ACEOF
8197cat confdefs.h >>conftest.$ac_ext
8198cat >>conftest.$ac_ext <<_ACEOF
8199/* end confdefs.h. */
252b5132
RH
8200#include <assert.h>
8201#include <stdio.h>
13b2be9c
DJ
8202int
8203main ()
8204{
252b5132
RH
8205
8206/* check for requoting problems */
8207static int a, b, c, d;
8208static char *s;
8209assert (!strcmp(s, "foo bar baz quux"));
8210/* check for newline handling */
8211assert (a == b
8212 || c == d);
8213
13b2be9c
DJ
8214 ;
8215 return 0;
8216}
8217_ACEOF
8218rm -f conftest.$ac_objext conftest$ac_exeext
8219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8220 (eval $ac_link) 2>conftest.er1
13b2be9c 8221 ac_status=$?
ab509236
L
8222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
13b2be9c
DJ
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
1ad12f97
NC
8227 { ac_try='test -z "$ac_c_werror_flag"
8228 || test ! -s conftest.err'
ab509236
L
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
252b5132
RH
8240 gas_cv_assert_ok=yes
8241else
13b2be9c
DJ
8242 echo "$as_me: failed program was:" >&5
8243sed 's/^/| /' conftest.$ac_ext >&5
8244
8245gas_cv_assert_ok=no
252b5132 8246fi
ab509236
L
8247rm -f conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
252b5132 8249fi
13b2be9c
DJ
8250echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
8251echo "${ECHO_T}$gas_cv_assert_ok" >&6
8252test $gas_cv_assert_ok = yes ||
8253cat >>confdefs.h <<\_ACEOF
252b5132 8254#define BROKEN_ASSERT 1
13b2be9c 8255_ACEOF
252b5132 8256
d6d788bd
L
8257
8258
252b5132
RH
8259# On some systems, the system header files may not declare malloc, realloc,
8260# and free. There are places where gas needs these functions to have been
8261# declared -- such as when taking their addresses.
8262gas_test_headers="
8263#ifdef HAVE_MEMORY_H
8264#include <memory.h>
8265#endif
8266#ifdef HAVE_STRING_H
8267#include <string.h>
8268#else
8269#ifdef HAVE_STRINGS_H
8270#include <strings.h>
8271#endif
8272#endif
8273#ifdef HAVE_STDLIB_H
8274#include <stdlib.h>
8275#endif
8276#ifdef HAVE_UNISTD_H
8277#include <unistd.h>
8278#endif
8279"
8280
e8a38df5
AL
8281# Does errno.h declare errno, or do we have to add a separate declaration
8282# for it?
8283
8284echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
8285echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
8286if test "${gas_cv_decl_needed_errno+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8288else
8289 cat >conftest.$ac_ext <<_ACEOF
8290/* confdefs.h. */
8291_ACEOF
8292cat confdefs.h >>conftest.$ac_ext
8293cat >>conftest.$ac_ext <<_ACEOF
8294/* end confdefs.h. */
8295
8296#ifdef HAVE_ERRNO_H
8297#include <errno.h>
8298#endif
8299
8300int
8301main ()
8302{
8303
8304typedef int f;
8305f x;
8306x = (f) errno;
8307
8308 ;
8309 return 0;
8310}
8311_ACEOF
8312rm -f conftest.$ac_objext conftest$ac_exeext
8313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314 (eval $ac_link) 2>conftest.er1
8315 ac_status=$?
8316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
8321 { ac_try='test -z "$ac_c_werror_flag"
8322 || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 (eval $ac_try) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try='test -s conftest$ac_exeext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 gas_cv_decl_needed_errno=no
8335else
8336 echo "$as_me: failed program was:" >&5
8337sed 's/^/| /' conftest.$ac_ext >&5
8338
8339gas_cv_decl_needed_errno=yes
8340fi
8341rm -f conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
8343fi
8344echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
8345echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
8346if test $gas_cv_decl_needed_errno = yes; then
8347
8348cat >>confdefs.h <<\_ACEOF
8349#define NEED_DECLARATION_ERRNO 1
8350_ACEOF
8351
8352fi
8353
8354
56f36663
NC
8355echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
8356echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
8357if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359else
8360 cat >conftest.$ac_ext <<_ACEOF
8361/* confdefs.h. */
8362_ACEOF
8363cat confdefs.h >>conftest.$ac_ext
8364cat >>conftest.$ac_ext <<_ACEOF
8365/* end confdefs.h. */
8366#include <unistd.h>
8367int
8368main ()
8369{
8370extern int getopt (int, char *const*, const char *);
8371 ;
8372 return 0;
8373}
8374_ACEOF
8375rm -f conftest.$ac_objext
8376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377 (eval $ac_compile) 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -z "$ac_c_werror_flag"
8385 || test ! -s conftest.err'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest.$ac_objext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 gas_cv_decl_getopt_unistd_h=yes
8398else
8399 echo "$as_me: failed program was:" >&5
8400sed 's/^/| /' conftest.$ac_ext >&5
8401
8402gas_cv_decl_getopt_unistd_h=no
8403fi
8404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8405fi
8406
8407echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
8408echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
8409if test $gas_cv_decl_getopt_unistd_h = yes; then
8410
8411cat >>confdefs.h <<\_ACEOF
8412#define HAVE_DECL_GETOPT 1
8413_ACEOF
8414
8415fi
8416
e8a38df5
AL
8417
8418echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
8419echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
8420if test "${gas_cv_decl_needed_environ+set}" = set; then
13b2be9c
DJ
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422else
8423 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8424/* confdefs.h. */
8425_ACEOF
8426cat confdefs.h >>conftest.$ac_ext
8427cat >>conftest.$ac_ext <<_ACEOF
8428/* end confdefs.h. */
252b5132 8429$gas_test_headers
13b2be9c
DJ
8430int
8431main ()
8432{
252b5132 8433
e8a38df5 8434typedef char **f;
252b5132 8435f x;
e8a38df5 8436x = (f) environ;
252b5132 8437
13b2be9c
DJ
8438 ;
8439 return 0;
8440}
8441_ACEOF
8442rm -f conftest.$ac_objext conftest$ac_exeext
8443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8444 (eval $ac_link) 2>conftest.er1
13b2be9c 8445 ac_status=$?
ab509236
L
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
13b2be9c
DJ
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
1ad12f97
NC
8451 { ac_try='test -z "$ac_c_werror_flag"
8452 || test ! -s conftest.err'
ab509236
L
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 (eval $ac_try) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
e8a38df5 8464 gas_cv_decl_needed_environ=no
252b5132 8465else
13b2be9c
DJ
8466 echo "$as_me: failed program was:" >&5
8467sed 's/^/| /' conftest.$ac_ext >&5
8468
e8a38df5 8469gas_cv_decl_needed_environ=yes
252b5132 8470fi
ab509236
L
8471rm -f conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
252b5132 8473fi
e8a38df5
AL
8474echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
8475echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
8476if test $gas_cv_decl_needed_environ = yes; then
13b2be9c
DJ
8477
8478cat >>confdefs.h <<\_ACEOF
e8a38df5 8479#define NEED_DECLARATION_ENVIRON 1
13b2be9c
DJ
8480_ACEOF
8481
8482fi
8483
8484
e8a38df5
AL
8485echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
8486echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
8487if test "${gas_cv_decl_needed_ffs+set}" = set; then
13b2be9c
DJ
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8489else
8490 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8491/* confdefs.h. */
8492_ACEOF
8493cat confdefs.h >>conftest.$ac_ext
8494cat >>conftest.$ac_ext <<_ACEOF
8495/* end confdefs.h. */
8496$gas_test_headers
8497int
8498main ()
8499{
8500
e8a38df5 8501typedef int (*f)(int);
13b2be9c 8502f x;
e8a38df5 8503x = (f) ffs;
13b2be9c
DJ
8504
8505 ;
8506 return 0;
8507}
8508_ACEOF
8509rm -f conftest.$ac_objext conftest$ac_exeext
8510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8511 (eval $ac_link) 2>conftest.er1
13b2be9c 8512 ac_status=$?
ab509236
L
8513 grep -v '^ *+' conftest.er1 >conftest.err
8514 rm -f conftest.er1
8515 cat conftest.err >&5
13b2be9c
DJ
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
1ad12f97
NC
8518 { ac_try='test -z "$ac_c_werror_flag"
8519 || test ! -s conftest.err'
ab509236
L
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; } &&
8525 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
e8a38df5 8531 gas_cv_decl_needed_ffs=no
13b2be9c
DJ
8532else
8533 echo "$as_me: failed program was:" >&5
8534sed 's/^/| /' conftest.$ac_ext >&5
8535
e8a38df5 8536gas_cv_decl_needed_ffs=yes
13b2be9c 8537fi
ab509236
L
8538rm -f conftest.err conftest.$ac_objext \
8539 conftest$ac_exeext conftest.$ac_ext
13b2be9c 8540fi
e8a38df5
AL
8541echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
8542echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
8543if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c
DJ
8544
8545cat >>confdefs.h <<\_ACEOF
e8a38df5 8546#define NEED_DECLARATION_FFS 1
13b2be9c
DJ
8547_ACEOF
8548
8549fi
8550
8551
8552echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
8553echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
8554if test "${gas_cv_decl_needed_free+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556else
8557 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8558/* confdefs.h. */
8559_ACEOF
8560cat confdefs.h >>conftest.$ac_ext
8561cat >>conftest.$ac_ext <<_ACEOF
8562/* end confdefs.h. */
8563$gas_test_headers
8564int
8565main ()
8566{
8567
8568typedef void (*f)();
8569f x;
8570x = (f) free;
8571
8572 ;
8573 return 0;
8574}
8575_ACEOF
8576rm -f conftest.$ac_objext conftest$ac_exeext
8577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8578 (eval $ac_link) 2>conftest.er1
13b2be9c 8579 ac_status=$?
ab509236
L
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
13b2be9c
DJ
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
1ad12f97
NC
8585 { ac_try='test -z "$ac_c_werror_flag"
8586 || test ! -s conftest.err'
ab509236
L
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 (eval $ac_try) 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; } &&
8592 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 gas_cv_decl_needed_free=no
8599else
8600 echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
8603gas_cv_decl_needed_free=yes
8604fi
ab509236
L
8605rm -f conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
8607fi
8608echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
8609echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
8610if test $gas_cv_decl_needed_free = yes; then
8611
8612cat >>confdefs.h <<\_ACEOF
8613#define NEED_DECLARATION_FREE 1
8614_ACEOF
8615
8616fi
8617
8618
e8a38df5
AL
8619echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
8620echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
8621if test "${gas_cv_decl_needed_malloc+set}" = set; then
13b2be9c
DJ
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623else
8624 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8625/* confdefs.h. */
8626_ACEOF
8627cat confdefs.h >>conftest.$ac_ext
8628cat >>conftest.$ac_ext <<_ACEOF
8629/* end confdefs.h. */
8630$gas_test_headers
8631int
8632main ()
8633{
8634
8635typedef char *(*f)();
8636f x;
e8a38df5 8637x = (f) malloc;
13b2be9c
DJ
8638
8639 ;
8640 return 0;
8641}
8642_ACEOF
8643rm -f conftest.$ac_objext conftest$ac_exeext
8644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8645 (eval $ac_link) 2>conftest.er1
13b2be9c 8646 ac_status=$?
ab509236
L
8647 grep -v '^ *+' conftest.er1 >conftest.err
8648 rm -f conftest.er1
8649 cat conftest.err >&5
13b2be9c
DJ
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
1ad12f97
NC
8652 { ac_try='test -z "$ac_c_werror_flag"
8653 || test ! -s conftest.err'
ab509236
L
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
e8a38df5 8665 gas_cv_decl_needed_malloc=no
13b2be9c
DJ
8666else
8667 echo "$as_me: failed program was:" >&5
8668sed 's/^/| /' conftest.$ac_ext >&5
8669
e8a38df5 8670gas_cv_decl_needed_malloc=yes
13b2be9c 8671fi
ab509236
L
8672rm -f conftest.err conftest.$ac_objext \
8673 conftest$ac_exeext conftest.$ac_ext
13b2be9c 8674fi
e8a38df5
AL
8675echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
8676echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
8677if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c
DJ
8678
8679cat >>confdefs.h <<\_ACEOF
e8a38df5 8680#define NEED_DECLARATION_MALLOC 1
13b2be9c
DJ
8681_ACEOF
8682
8683fi
8684
8685
e8a38df5
AL
8686echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
8687echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
8688if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13b2be9c
DJ
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8690else
8691 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8692/* confdefs.h. */
8693_ACEOF
8694cat confdefs.h >>conftest.$ac_ext
8695cat >>conftest.$ac_ext <<_ACEOF
8696/* end confdefs.h. */
8697$gas_test_headers
8698int
8699main ()
8700{
8701
e8a38df5 8702typedef char *(*f)();
13b2be9c 8703f x;
e8a38df5 8704x = (f) sbrk;
13b2be9c
DJ
8705
8706 ;
8707 return 0;
8708}
8709_ACEOF
8710rm -f conftest.$ac_objext conftest$ac_exeext
8711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8712 (eval $ac_link) 2>conftest.er1
13b2be9c 8713 ac_status=$?
ab509236
L
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
13b2be9c
DJ
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
1ad12f97
NC
8719 { ac_try='test -z "$ac_c_werror_flag"
8720 || test ! -s conftest.err'
ab509236
L
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
e8a38df5 8732 gas_cv_decl_needed_sbrk=no
13b2be9c
DJ
8733else
8734 echo "$as_me: failed program was:" >&5
8735sed 's/^/| /' conftest.$ac_ext >&5
8736
e8a38df5 8737gas_cv_decl_needed_sbrk=yes
13b2be9c 8738fi
ab509236
L
8739rm -f conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
13b2be9c 8741fi
e8a38df5
AL
8742echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
8743echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
8744if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c
DJ
8745
8746cat >>confdefs.h <<\_ACEOF
e8a38df5 8747#define NEED_DECLARATION_SBRK 1
13b2be9c
DJ
8748_ACEOF
8749
8750fi
8751
8752
e8a38df5
AL
8753echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
8754echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
8755if test "${gas_cv_decl_needed_strstr+set}" = set; then
13b2be9c
DJ
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8757else
8758 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
8759/* confdefs.h. */
8760_ACEOF
8761cat confdefs.h >>conftest.$ac_ext
8762cat >>conftest.$ac_ext <<_ACEOF
8763/* end confdefs.h. */
e8a38df5 8764$gas_test_headers
13b2be9c
DJ
8765int
8766main ()
8767{
8768
e8a38df5 8769typedef char *(*f)();
13b2be9c 8770f x;
e8a38df5 8771x = (f) strstr;
13b2be9c
DJ
8772
8773 ;
8774 return 0;
8775}
8776_ACEOF
8777rm -f conftest.$ac_objext conftest$ac_exeext
8778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 8779 (eval $ac_link) 2>conftest.er1
13b2be9c 8780 ac_status=$?
ab509236
L
8781 grep -v '^ *+' conftest.er1 >conftest.err
8782 rm -f conftest.er1
8783 cat conftest.err >&5
13b2be9c
DJ
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } &&
1ad12f97
NC
8786 { ac_try='test -z "$ac_c_werror_flag"
8787 || test ! -s conftest.err'
ab509236
L
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 (eval $ac_try) 2>&5
8790 ac_status=$?
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; } &&
8793 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 (eval $ac_try) 2>&5
8796 ac_status=$?
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
e8a38df5 8799 gas_cv_decl_needed_strstr=no
13b2be9c
DJ
8800else
8801 echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
e8a38df5 8804gas_cv_decl_needed_strstr=yes
13b2be9c 8805fi
ab509236
L
8806rm -f conftest.err conftest.$ac_objext \
8807 conftest$ac_exeext conftest.$ac_ext
13b2be9c 8808fi
e8a38df5
AL
8809echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
8810echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
8811if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
8812
8813cat >>confdefs.h <<\_ACEOF
e8a38df5 8814#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
8815_ACEOF
8816
8817fi
8818
8819
6d74f28b
EB
8820echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
8821echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
8822if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824else
8825 cat >conftest.$ac_ext <<_ACEOF
8826/* confdefs.h. */
8827_ACEOF
8828cat confdefs.h >>conftest.$ac_ext
8829cat >>conftest.$ac_ext <<_ACEOF
8830/* end confdefs.h. */
8831$ac_includes_default
8832int
8833main ()
8834{
8835#ifndef vsnprintf
8836 char *p = (char *) vsnprintf;
8837#endif
8838
8839 ;
8840 return 0;
8841}
8842_ACEOF
8843rm -f conftest.$ac_objext
8844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845 (eval $ac_compile) 2>conftest.er1
8846 ac_status=$?
8847 grep -v '^ *+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag"
8853 || test ! -s conftest.err'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest.$ac_objext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 (eval $ac_try) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 ac_cv_have_decl_vsnprintf=yes
8866else
8867 echo "$as_me: failed program was:" >&5
8868sed 's/^/| /' conftest.$ac_ext >&5
8869
8870ac_cv_have_decl_vsnprintf=no
8871fi
8872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8873fi
8874echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
8875echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
8876if test $ac_cv_have_decl_vsnprintf = yes; then
8877
8878cat >>confdefs.h <<_ACEOF
8879#define HAVE_DECL_VSNPRINTF 1
8880_ACEOF
8881
8882
8883else
8884 cat >>confdefs.h <<_ACEOF
8885#define HAVE_DECL_VSNPRINTF 0
8886_ACEOF
8887
8888
8889fi
8890
8891
8892
13b2be9c 8893
c973bc5c
NC
8894case "${host}" in
8895*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
8896
8897cat >>confdefs.h <<\_ACEOF
8898#define USE_BINARY_FOPEN 1
8899_ACEOF
8900 ;;
8901esac
8902
8903
13b2be9c 8904
108a6f8e
CD
8905
8906
8907
8908
13b2be9c
DJ
8909 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
8910
8911 ac_config_commands="$ac_config_commands default"
8912
8913
8914cat >confcache <<\_ACEOF
8915# This file is a shell script that caches the results of configure
8916# tests run on this system so they can be shared between configure
8917# scripts and configure runs, see configure's option --config-cache.
8918# It is not useful on other systems. If it contains results you don't
8919# want to keep, you may remove or edit it.
8920#
8921# config.status only pays attention to the cache file if you give it
8922# the --recheck option to rerun configure.
8923#
8924# `ac_cv_env_foo' variables (set or unset) will be overridden when
8925# loading this file, other *unset* `ac_cv_foo' will be assigned the
8926# following values.
8927
8928_ACEOF
8929
8930# The following way of writing the cache mishandles newlines in values,
8931# but we know of no workaround that is simple, portable, and efficient.
8932# So, don't put newlines in cache variables' values.
8933# Ultrix sh set writes to stderr and can't be redirected directly,
8934# and sets the high bit in the cache file unless we assign to the vars.
8935{
8936 (set) 2>&1 |
8937 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8938 *ac_space=\ *)
8939 # `set' does not quote correctly, so add quotes (double-quote
8940 # substitution turns \\\\ into \\, and sed turns \\ into \).
8941 sed -n \
ab509236
L
8942 "s/'/'\\\\''/g;
8943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
8944 ;;
8945 *)
8946 # `set' quotes correctly as required by POSIX, so do not add quotes.
8947 sed -n \
ab509236 8948 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
8949 ;;
8950 esac;
8951} |
8952 sed '
8953 t clear
8954 : clear
8955 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8956 t end
8957 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8958 : end' >>confcache
8959if diff $cache_file confcache >/dev/null 2>&1; then :; else
8960 if test -w $cache_file; then
8961 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8962 cat confcache >$cache_file
8963 else
8964 echo "not updating unwritable cache $cache_file"
8965 fi
8966fi
8967rm -f confcache
8968
8969test "x$prefix" = xNONE && prefix=$ac_default_prefix
8970# Let make expand exec_prefix.
8971test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8972
8973# VPATH may cause trouble with some makes, so we remove $(srcdir),
8974# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8975# trailing colons and then remove the whole line if VPATH becomes empty
8976# (actually we leave an empty line to preserve line numbers).
8977if test "x$srcdir" = x.; then
ab509236 8978 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13b2be9c
DJ
8979s/:*\$(srcdir):*/:/;
8980s/:*\${srcdir}:*/:/;
8981s/:*@srcdir@:*/:/;
ab509236 8982s/^\([^=]*=[ ]*\):*/\1/;
13b2be9c 8983s/:*$//;
ab509236 8984s/^[^=]*=[ ]*$//;
13b2be9c
DJ
8985}'
8986fi
8987
8988DEFS=-DHAVE_CONFIG_H
8989
8990ac_libobjs=
8991ac_ltlibobjs=
8992for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8993 # 1. Remove the extension, and $U if already installed.
8994 ac_i=`echo "$ac_i" |
ab509236 8995 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13b2be9c
DJ
8996 # 2. Add them.
8997 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8998 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8999done
9000LIBOBJS=$ac_libobjs
9001
9002LTLIBOBJS=$ac_ltlibobjs
9003
9004
9005if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9006 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9007Usually this means the macro was only invoked conditionally." >&5
9008echo "$as_me: error: conditional \"AMDEP\" was never defined.
9009Usually this means the macro was only invoked conditionally." >&2;}
9010 { (exit 1); exit 1; }; }
9011fi
9012if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9013 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9014Usually this means the macro was only invoked conditionally." >&5
9015echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9016Usually this means the macro was only invoked conditionally." >&2;}
9017 { (exit 1); exit 1; }; }
9018fi
9019if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9020 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9021Usually this means the macro was only invoked conditionally." >&5
9022echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9023Usually this means the macro was only invoked conditionally." >&2;}
9024 { (exit 1); exit 1; }; }
9025fi
d5fbea21
DJ
9026if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
9027 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
9028Usually this means the macro was only invoked conditionally." >&5
9029echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
9030Usually this means the macro was only invoked conditionally." >&2;}
9031 { (exit 1); exit 1; }; }
9032fi
13b2be9c
DJ
9033
9034: ${CONFIG_STATUS=./config.status}
9035ac_clean_files_save=$ac_clean_files
9036ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9037{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9038echo "$as_me: creating $CONFIG_STATUS" >&6;}
9039cat >$CONFIG_STATUS <<_ACEOF
9040#! $SHELL
9041# Generated by $as_me.
9042# Run this file to recreate the current configuration.
9043# Compiler output produced by configure, useful for debugging
9044# configure, is in config.log if it exists.
9045
9046debug=false
9047ac_cs_recheck=false
9048ac_cs_silent=false
9049SHELL=\${CONFIG_SHELL-$SHELL}
9050_ACEOF
9051
9052cat >>$CONFIG_STATUS <<\_ACEOF
9053## --------------------- ##
9054## M4sh Initialization. ##
9055## --------------------- ##
9056
9057# Be Bourne compatible
9058if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9059 emulate sh
9060 NULLCMD=:
9061 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9062 # is contrary to our usage. Disable this feature.
9063 alias -g '${1+"$@"}'='"$@"'
9064elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9065 set -o posix
9066fi
ab509236 9067DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
9068
9069# Support unset when possible.
ab509236 9070if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
9071 as_unset=unset
9072else
9073 as_unset=false
9074fi
9075
9076
9077# Work around bugs in pre-3.0 UWIN ksh.
9078$as_unset ENV MAIL MAILPATH
9079PS1='$ '
9080PS2='> '
9081PS4='+ '
9082
9083# NLS nuisances.
9084for as_var in \
9085 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9086 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9087 LC_TELEPHONE LC_TIME
9088do
ab509236 9089 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
9090 eval $as_var=C; export $as_var
9091 else
9092 $as_unset $as_var
9093 fi
9094done
9095
9096# Required to use basename.
9097if expr a : '\(a\)' >/dev/null 2>&1; then
9098 as_expr=expr
9099else
9100 as_expr=false
9101fi
9102
9103if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9104 as_basename=basename
9105else
9106 as_basename=false
9107fi
9108
9109
9110# Name of the executable.
9111as_me=`$as_basename "$0" ||
9112$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9113 X"$0" : 'X\(//\)$' \| \
9114 X"$0" : 'X\(/\)$' \| \
9115 . : '\(.\)' 2>/dev/null ||
9116echo X/"$0" |
9117 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9118 /^X\/\(\/\/\)$/{ s//\1/; q; }
9119 /^X\/\(\/\).*/{ s//\1/; q; }
9120 s/.*/./; q'`
9121
9122
9123# PATH needs CR, and LINENO needs CR and PATH.
9124# Avoid depending upon Character Ranges.
9125as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9126as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9127as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9128as_cr_digits='0123456789'
9129as_cr_alnum=$as_cr_Letters$as_cr_digits
9130
9131# The user is always right.
9132if test "${PATH_SEPARATOR+set}" != set; then
9133 echo "#! /bin/sh" >conf$$.sh
9134 echo "exit 0" >>conf$$.sh
9135 chmod +x conf$$.sh
9136 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9137 PATH_SEPARATOR=';'
9138 else
9139 PATH_SEPARATOR=:
9140 fi
9141 rm -f conf$$.sh
9142fi
9143
9144
9145 as_lineno_1=$LINENO
9146 as_lineno_2=$LINENO
9147 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9148 test "x$as_lineno_1" != "x$as_lineno_2" &&
9149 test "x$as_lineno_3" = "x$as_lineno_2" || {
9150 # Find who we are. Look in the path if we contain no path at all
9151 # relative or not.
9152 case $0 in
9153 *[\\/]* ) as_myself=$0 ;;
9154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155for as_dir in $PATH
9156do
9157 IFS=$as_save_IFS
9158 test -z "$as_dir" && as_dir=.
9159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9160done
252b5132 9161
13b2be9c
DJ
9162 ;;
9163 esac
9164 # We did not find ourselves, most probably we were run as `sh COMMAND'
9165 # in which case we are not to be found in the path.
9166 if test "x$as_myself" = x; then
9167 as_myself=$0
9168 fi
9169 if test ! -f "$as_myself"; then
9170 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9171echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9172 { (exit 1); exit 1; }; }
9173 fi
9174 case $CONFIG_SHELL in
9175 '')
9176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9178do
9179 IFS=$as_save_IFS
9180 test -z "$as_dir" && as_dir=.
9181 for as_base in sh bash ksh sh5; do
9182 case $as_dir in
9183 /*)
9184 if ("$as_dir/$as_base" -c '
9185 as_lineno_1=$LINENO
9186 as_lineno_2=$LINENO
9187 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9188 test "x$as_lineno_1" != "x$as_lineno_2" &&
9189 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9190 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9191 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9192 CONFIG_SHELL=$as_dir/$as_base
9193 export CONFIG_SHELL
9194 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9195 fi;;
9196 esac
9197 done
9198done
9199;;
9200 esac
252b5132 9201
13b2be9c
DJ
9202 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9203 # uniformly replaced by the line number. The first 'sed' inserts a
9204 # line-number line before each line; the second 'sed' does the real
9205 # work. The second script uses 'N' to pair each line-number line
9206 # with the numbered line, and appends trailing '-' during
9207 # substitution so that $LINENO is not a special case at line end.
9208 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9209 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9210 sed '=' <$as_myself |
9211 sed '
9212 N
9213 s,$,-,
9214 : loop
9215 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9216 t loop
9217 s,-$,,
9218 s,^['$as_cr_digits']*\n,,
9219 ' >$as_me.lineno &&
9220 chmod +x $as_me.lineno ||
9221 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9222echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9223 { (exit 1); exit 1; }; }
9224
9225 # Don't try to exec as it changes $[0], causing all sort of problems
9226 # (the dirname of $[0] is not the place where we might find the
9227 # original and so on. Autoconf is especially sensible to this).
9228 . ./$as_me.lineno
9229 # Exit status is that of the last command.
9230 exit
9231}
d6d788bd 9232
252b5132 9233
13b2be9c
DJ
9234case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9235 *c*,-n*) ECHO_N= ECHO_C='
9236' ECHO_T=' ' ;;
9237 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9238 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9239esac
252b5132 9240
13b2be9c
DJ
9241if expr a : '\(a\)' >/dev/null 2>&1; then
9242 as_expr=expr
252b5132 9243else
13b2be9c 9244 as_expr=false
252b5132 9245fi
252b5132 9246
13b2be9c
DJ
9247rm -f conf$$ conf$$.exe conf$$.file
9248echo >conf$$.file
9249if ln -s conf$$.file conf$$ 2>/dev/null; then
9250 # We could just check for DJGPP; but this test a) works b) is more generic
9251 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9252 if test -f conf$$.exe; then
9253 # Don't use ln at all; we don't have any links
9254 as_ln_s='cp -p'
9255 else
9256 as_ln_s='ln -s'
9257 fi
9258elif ln conf$$.file conf$$ 2>/dev/null; then
9259 as_ln_s=ln
9260else
9261 as_ln_s='cp -p'
252b5132 9262fi
13b2be9c 9263rm -f conf$$ conf$$.exe conf$$.file
252b5132 9264
13b2be9c
DJ
9265if mkdir -p . 2>/dev/null; then
9266 as_mkdir_p=:
252b5132 9267else
ab509236 9268 test -d ./-p && rmdir ./-p
13b2be9c
DJ
9269 as_mkdir_p=false
9270fi
252b5132 9271
13b2be9c 9272as_executable_p="test -f"
252b5132 9273
13b2be9c 9274# Sed expression to map a string onto a valid CPP name.
ab509236 9275as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 9276
13b2be9c 9277# Sed expression to map a string onto a valid variable name.
ab509236 9278as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 9279
d6d788bd 9280
13b2be9c
DJ
9281# IFS
9282# We need space, tab and new line, in precisely that order.
9283as_nl='
9284'
9285IFS=" $as_nl"
252b5132 9286
13b2be9c
DJ
9287# CDPATH.
9288$as_unset CDPATH
252b5132 9289
13b2be9c 9290exec 6>&1
252b5132 9291
13b2be9c
DJ
9292# Open the log real soon, to keep \$[0] and so on meaningful, and to
9293# report actual input values of CONFIG_FILES etc. instead of their
9294# values after options handling. Logging --version etc. is OK.
9295exec 5>>config.log
9296{
9297 echo
9298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9299## Running $as_me. ##
9300_ASBOX
9301} >&5
9302cat >&5 <<_CSEOF
252b5132 9303
13b2be9c 9304This file was extended by $as_me, which was
ab509236 9305generated by GNU Autoconf 2.59. Invocation command line was
d6d788bd 9306
13b2be9c
DJ
9307 CONFIG_FILES = $CONFIG_FILES
9308 CONFIG_HEADERS = $CONFIG_HEADERS
9309 CONFIG_LINKS = $CONFIG_LINKS
9310 CONFIG_COMMANDS = $CONFIG_COMMANDS
9311 $ $0 $@
252b5132 9312
13b2be9c
DJ
9313_CSEOF
9314echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9315echo >&5
9316_ACEOF
252b5132 9317
13b2be9c
DJ
9318# Files that config.status was made for.
9319if test -n "$ac_config_files"; then
9320 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 9321fi
13b2be9c
DJ
9322
9323if test -n "$ac_config_headers"; then
9324 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 9325fi
252b5132 9326
13b2be9c
DJ
9327if test -n "$ac_config_links"; then
9328 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
9329fi
9330
13b2be9c
DJ
9331if test -n "$ac_config_commands"; then
9332 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9333fi
d6d788bd 9334
13b2be9c 9335cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 9336
13b2be9c
DJ
9337ac_cs_usage="\
9338\`$as_me' instantiates files from templates according to the
9339current configuration.
252b5132 9340
13b2be9c 9341Usage: $0 [OPTIONS] [FILE]...
252b5132 9342
13b2be9c
DJ
9343 -h, --help print this help, then exit
9344 -V, --version print version number, then exit
9345 -q, --quiet do not print progress messages
9346 -d, --debug don't remove temporary files
9347 --recheck update $as_me by reconfiguring in the same conditions
9348 --file=FILE[:TEMPLATE]
ab509236 9349 instantiate the configuration file FILE
13b2be9c 9350 --header=FILE[:TEMPLATE]
ab509236 9351 instantiate the configuration header FILE
252b5132 9352
13b2be9c
DJ
9353Configuration files:
9354$config_files
252b5132 9355
13b2be9c
DJ
9356Configuration headers:
9357$config_headers
252b5132 9358
13b2be9c
DJ
9359Configuration commands:
9360$config_commands
252b5132 9361
13b2be9c
DJ
9362Report bugs to <bug-autoconf@gnu.org>."
9363_ACEOF
d6d788bd 9364
13b2be9c
DJ
9365cat >>$CONFIG_STATUS <<_ACEOF
9366ac_cs_version="\\
9367config.status
ab509236 9368configured by $0, generated by GNU Autoconf 2.59,
13b2be9c 9369 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 9370
ab509236 9371Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
9372This config.status script is free software; the Free Software Foundation
9373gives unlimited permission to copy, distribute and modify it."
9374srcdir=$srcdir
9375INSTALL="$INSTALL"
9376_ACEOF
d6d788bd 9377
13b2be9c
DJ
9378cat >>$CONFIG_STATUS <<\_ACEOF
9379# If no file are specified by the user, then we need to provide default
9380# value. By we need to know if files were specified by the user.
9381ac_need_defaults=:
9382while test $# != 0
9383do
9384 case $1 in
9385 --*=*)
9386 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9387 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9388 ac_shift=:
c8615825 9389 ;;
13b2be9c
DJ
9390 -*)
9391 ac_option=$1
9392 ac_optarg=$2
9393 ac_shift=shift
c8615825 9394 ;;
13b2be9c
DJ
9395 *) # This is not an option, so the user has probably given explicit
9396 # arguments.
9397 ac_option=$1
9398 ac_need_defaults=false;;
9399 esac
252b5132 9400
13b2be9c
DJ
9401 case $ac_option in
9402 # Handling of the options.
9403_ACEOF
9404cat >>$CONFIG_STATUS <<\_ACEOF
9405 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9406 ac_cs_recheck=: ;;
9407 --version | --vers* | -V )
9408 echo "$ac_cs_version"; exit 0 ;;
9409 --he | --h)
9410 # Conflict between --help and --header
9411 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9412Try \`$0 --help' for more information." >&5
9413echo "$as_me: error: ambiguous option: $1
9414Try \`$0 --help' for more information." >&2;}
9415 { (exit 1); exit 1; }; };;
9416 --help | --hel | -h )
9417 echo "$ac_cs_usage"; exit 0 ;;
9418 --debug | --d* | -d )
9419 debug=: ;;
9420 --file | --fil | --fi | --f )
9421 $ac_shift
9422 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9423 ac_need_defaults=false;;
9424 --header | --heade | --head | --hea )
9425 $ac_shift
9426 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9427 ac_need_defaults=false;;
9428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9429 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9430 ac_cs_silent=: ;;
c8615825 9431
13b2be9c
DJ
9432 # This is an error.
9433 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9434Try \`$0 --help' for more information." >&5
9435echo "$as_me: error: unrecognized option: $1
9436Try \`$0 --help' for more information." >&2;}
9437 { (exit 1); exit 1; }; } ;;
252b5132 9438
13b2be9c 9439 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 9440
13b2be9c
DJ
9441 esac
9442 shift
9443done
252b5132 9444
13b2be9c 9445ac_configure_extra_args=
d6d788bd 9446
13b2be9c
DJ
9447if $ac_cs_silent; then
9448 exec 6>/dev/null
9449 ac_configure_extra_args="$ac_configure_extra_args --silent"
9450fi
9b2b7d69 9451
13b2be9c
DJ
9452_ACEOF
9453cat >>$CONFIG_STATUS <<_ACEOF
9454if \$ac_cs_recheck; then
9455 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9456 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9457fi
9458
9459_ACEOF
9460
9461cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 9462#
13b2be9c 9463# INIT-COMMANDS section.
9b2b7d69
MM
9464#
9465
13b2be9c 9466AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20e95c23
DJ
9467# Capture the value of obsolete ALL_LINGUAS because we need it to compute
9468 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9469 # from automake.
9470 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9471 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9472 LINGUAS="${LINGUAS-%UNSET%}"
9473
13b2be9c
DJ
9474target_cpu_type=${target_cpu_type}
9475 cgen_cpu_prefix=${cgen_cpu_prefix}
9476 obj_format=${obj_format}
9477 te_file=${te_file}
9478
9479_ACEOF
9480
9481
9482
9483cat >>$CONFIG_STATUS <<\_ACEOF
9484for ac_config_target in $ac_config_targets
9b2b7d69 9485do
13b2be9c
DJ
9486 case "$ac_config_target" in
9487 # Handling of arguments.
9488 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
9489 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
9490 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9491 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9492 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9493 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20e95c23 9494 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13b2be9c
DJ
9495 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9496 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9497 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9498echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9499 { (exit 1); exit 1; }; };;
9b2b7d69
MM
9500 esac
9501done
9502
13b2be9c
DJ
9503# If the user did not use the arguments to specify the items to instantiate,
9504# then the envvar interface is used. Set only those that are not.
9505# We use the long form for the default assignment because of an extremely
9506# bizarre bug on SunOS 4.1.3.
9507if $ac_need_defaults; then
9508 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9509 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9510 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9511fi
9512
9513# Have a temporary directory for convenience. Make it in the build tree
9514# simply because there is no reason to put it here, and in addition,
9515# creating and moving files from /tmp can sometimes cause problems.
9516# Create a temporary directory, and hook for its removal unless debugging.
9517$debug ||
9518{
9519 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9520 trap '{ (exit 1); exit 1; }' 1 2 13 15
9521}
9b2b7d69 9522
13b2be9c 9523# Create a (secure) tmp directory for tmp files.
9b2b7d69 9524
13b2be9c
DJ
9525{
9526 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9527 test -n "$tmp" && test -d "$tmp"
9528} ||
9529{
9530 tmp=./confstat$$-$RANDOM
9531 (umask 077 && mkdir $tmp)
9532} ||
9533{
9534 echo "$me: cannot create a temporary directory in ." >&2
9535 { (exit 1); exit 1; }
9536}
9b2b7d69 9537
13b2be9c
DJ
9538_ACEOF
9539
9540cat >>$CONFIG_STATUS <<_ACEOF
9541
9542#
9543# CONFIG_FILES section.
9544#
9545
9546# No need to generate the scripts if there are no CONFIG_FILES.
9547# This happens for instance when ./config.status config.h
9548if test -n "\$CONFIG_FILES"; then
9549 # Protect against being on the right side of a sed subst in config.status.
9550 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9551 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9552s,@SHELL@,$SHELL,;t t
9553s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9554s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9555s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9556s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9557s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9558s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9559s,@exec_prefix@,$exec_prefix,;t t
9560s,@prefix@,$prefix,;t t
9561s,@program_transform_name@,$program_transform_name,;t t
9562s,@bindir@,$bindir,;t t
9563s,@sbindir@,$sbindir,;t t
9564s,@libexecdir@,$libexecdir,;t t
9565s,@datadir@,$datadir,;t t
9566s,@sysconfdir@,$sysconfdir,;t t
9567s,@sharedstatedir@,$sharedstatedir,;t t
9568s,@localstatedir@,$localstatedir,;t t
9569s,@libdir@,$libdir,;t t
9570s,@includedir@,$includedir,;t t
9571s,@oldincludedir@,$oldincludedir,;t t
9572s,@infodir@,$infodir,;t t
9573s,@mandir@,$mandir,;t t
9574s,@build_alias@,$build_alias,;t t
9575s,@host_alias@,$host_alias,;t t
9576s,@target_alias@,$target_alias,;t t
9577s,@DEFS@,$DEFS,;t t
9578s,@ECHO_C@,$ECHO_C,;t t
9579s,@ECHO_N@,$ECHO_N,;t t
9580s,@ECHO_T@,$ECHO_T,;t t
9581s,@LIBS@,$LIBS,;t t
9582s,@build@,$build,;t t
9583s,@build_cpu@,$build_cpu,;t t
9584s,@build_vendor@,$build_vendor,;t t
9585s,@build_os@,$build_os,;t t
9586s,@host@,$host,;t t
9587s,@host_cpu@,$host_cpu,;t t
9588s,@host_vendor@,$host_vendor,;t t
9589s,@host_os@,$host_os,;t t
9590s,@target@,$target,;t t
9591s,@target_cpu@,$target_cpu,;t t
9592s,@target_vendor@,$target_vendor,;t t
9593s,@target_os@,$target_os,;t t
9594s,@CC@,$CC,;t t
9595s,@CFLAGS@,$CFLAGS,;t t
9596s,@LDFLAGS@,$LDFLAGS,;t t
9597s,@CPPFLAGS@,$CPPFLAGS,;t t
9598s,@ac_ct_CC@,$ac_ct_CC,;t t
9599s,@EXEEXT@,$EXEEXT,;t t
9600s,@OBJEXT@,$OBJEXT,;t t
9601s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9602s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9603s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9604s,@CYGPATH_W@,$CYGPATH_W,;t t
9605s,@PACKAGE@,$PACKAGE,;t t
9606s,@VERSION@,$VERSION,;t t
9607s,@ACLOCAL@,$ACLOCAL,;t t
9608s,@AUTOCONF@,$AUTOCONF,;t t
9609s,@AUTOMAKE@,$AUTOMAKE,;t t
9610s,@AUTOHEADER@,$AUTOHEADER,;t t
9611s,@MAKEINFO@,$MAKEINFO,;t t
13b2be9c
DJ
9612s,@install_sh@,$install_sh,;t t
9613s,@STRIP@,$STRIP,;t t
9614s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9615s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
ab509236 9616s,@mkdir_p@,$mkdir_p,;t t
13b2be9c
DJ
9617s,@AWK@,$AWK,;t t
9618s,@SET_MAKE@,$SET_MAKE,;t t
9619s,@am__leading_dot@,$am__leading_dot,;t t
8ea2b00f
AM
9620s,@AMTAR@,$AMTAR,;t t
9621s,@am__tar@,$am__tar,;t t
9622s,@am__untar@,$am__untar,;t t
13b2be9c
DJ
9623s,@DEPDIR@,$DEPDIR,;t t
9624s,@am__include@,$am__include,;t t
9625s,@am__quote@,$am__quote,;t t
9626s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9627s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9628s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9629s,@CCDEPMODE@,$CCDEPMODE,;t t
9630s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9631s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9632s,@LN_S@,$LN_S,;t t
9633s,@RANLIB@,$RANLIB,;t t
9634s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9635s,@LIBTOOL@,$LIBTOOL,;t t
92f01d61 9636s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
ad22bfe8 9637s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
13b2be9c 9638s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 9639s,@NO_WERROR@,$NO_WERROR,;t t
13b2be9c
DJ
9640s,@GDBINIT@,$GDBINIT,;t t
9641s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
9642s,@extra_objects@,$extra_objects,;t t
9643s,@target_cpu_type@,$target_cpu_type,;t t
9644s,@obj_format@,$obj_format,;t t
9645s,@te_file@,$te_file,;t t
9646s,@install_tooldir@,$install_tooldir,;t t
9647s,@atof@,$atof,;t t
13b2be9c 9648s,@OPCODES_LIB@,$OPCODES_LIB,;t t
13b2be9c
DJ
9649s,@YACC@,$YACC,;t t
9650s,@LEX@,$LEX,;t t
9651s,@LEXLIB@,$LEXLIB,;t t
9652s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13b2be9c 9653s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
9654s,@LIBINTL@,$LIBINTL,;t t
9655s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
9656s,@INCINTL@,$INCINTL,;t t
13b2be9c 9657s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
9658s,@GMSGFMT@,$GMSGFMT,;t t
9659s,@POSUB@,$POSUB,;t t
13b2be9c 9660s,@CATALOGS@,$CATALOGS,;t t
13b2be9c 9661s,@DATADIRNAME@,$DATADIRNAME,;t t
13b2be9c 9662s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
9663s,@GENCAT@,$GENCAT,;t t
9664s,@CATOBJEXT@,$CATOBJEXT,;t t
13b2be9c 9665s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
9666s,@MSGFMT@,$MSGFMT,;t t
9667s,@MSGMERGE@,$MSGMERGE,;t t
13b2be9c
DJ
9668s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9669s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9670s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
9671s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
9672s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
20e95c23
DJ
9673s,@CPP@,$CPP,;t t
9674s,@EGREP@,$EGREP,;t t
9675s,@ALLOCA@,$ALLOCA,;t t
13b2be9c 9676s,@LIBM@,$LIBM,;t t
108a6f8e
CD
9677s,@datarootdir@,$datarootdir,;t t
9678s,@docdir@,$docdir,;t t
9679s,@htmldir@,$htmldir,;t t
13b2be9c
DJ
9680s,@LIBOBJS@,$LIBOBJS,;t t
9681s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
9682CEOF
9683
13b2be9c
DJ
9684_ACEOF
9685
9686 cat >>$CONFIG_STATUS <<\_ACEOF
9687 # Split the substitutions into bite-sized pieces for seds with
9688 # small command number limits, like on Digital OSF/1 and HP-UX.
9689 ac_max_sed_lines=48
9690 ac_sed_frag=1 # Number of current file.
9691 ac_beg=1 # First line for current file.
9692 ac_end=$ac_max_sed_lines # Line after last line for current file.
9693 ac_more_lines=:
9694 ac_sed_cmds=
9695 while $ac_more_lines; do
9696 if test $ac_beg -gt 1; then
9697 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9698 else
9699 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9700 fi
9701 if test ! -s $tmp/subs.frag; then
9702 ac_more_lines=false
9b2b7d69 9703 else
13b2be9c
DJ
9704 # The purpose of the label and of the branching condition is to
9705 # speed up the sed processing (if there are no `@' at all, there
9706 # is no need to browse any of the substitutions).
9707 # These are the two extra sed commands mentioned above.
9708 (echo ':t
9709 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9710 if test -z "$ac_sed_cmds"; then
ab509236 9711 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c 9712 else
ab509236 9713 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c
DJ
9714 fi
9715 ac_sed_frag=`expr $ac_sed_frag + 1`
9716 ac_beg=$ac_end
9717 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 9718 fi
13b2be9c
DJ
9719 done
9720 if test -z "$ac_sed_cmds"; then
9721 ac_sed_cmds=cat
252b5132 9722 fi
13b2be9c 9723fi # test -n "$CONFIG_FILES"
252b5132 9724
13b2be9c
DJ
9725_ACEOF
9726cat >>$CONFIG_STATUS <<\_ACEOF
9727for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 9728 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
9729 case $ac_file in
9730 - | *:- | *:-:* ) # input from stdin
ab509236
L
9731 cat >$tmp/stdin
9732 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9733 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 9734 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 9735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 9736 * ) ac_file_in=$ac_file.in ;;
252b5132 9737 esac
9b2b7d69 9738
13b2be9c
DJ
9739 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9740 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9741$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
9742 X"$ac_file" : 'X\(//\)[^/]' \| \
9743 X"$ac_file" : 'X\(//\)$' \| \
9744 X"$ac_file" : 'X\(/\)' \| \
9745 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
9746echo X"$ac_file" |
9747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9749 /^X\(\/\/\)$/{ s//\1/; q; }
9750 /^X\(\/\).*/{ s//\1/; q; }
9751 s/.*/./; q'`
9752 { if $as_mkdir_p; then
9753 mkdir -p "$ac_dir"
c8615825 9754 else
13b2be9c
DJ
9755 as_dir="$ac_dir"
9756 as_dirs=
9757 while test ! -d "$as_dir"; do
9758 as_dirs="$as_dir $as_dirs"
9759 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9760$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
9761 X"$as_dir" : 'X\(//\)[^/]' \| \
9762 X"$as_dir" : 'X\(//\)$' \| \
9763 X"$as_dir" : 'X\(/\)' \| \
9764 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
9765echo X"$as_dir" |
9766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9768 /^X\(\/\/\)$/{ s//\1/; q; }
9769 /^X\(\/\).*/{ s//\1/; q; }
9770 s/.*/./; q'`
9771 done
9772 test ! -n "$as_dirs" || mkdir $as_dirs
9773 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9774echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9775 { (exit 1); exit 1; }; }; }
9776
9777 ac_builddir=.
9778
9779if test "$ac_dir" != .; then
9780 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9781 # A "../" for each directory in $ac_dir_suffix.
9782 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9783else
9784 ac_dir_suffix= ac_top_builddir=
9785fi
9b2b7d69 9786
13b2be9c
DJ
9787case $srcdir in
9788 .) # No --srcdir option. We are building in place.
9789 ac_srcdir=.
9790 if test -z "$ac_top_builddir"; then
9791 ac_top_srcdir=.
9792 else
9793 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9794 fi ;;
9795 [\\/]* | ?:[\\/]* ) # Absolute path.
9796 ac_srcdir=$srcdir$ac_dir_suffix;
9797 ac_top_srcdir=$srcdir ;;
9b2b7d69 9798 *) # Relative path.
13b2be9c
DJ
9799 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9800 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9801esac
ab509236
L
9802
9803# Do not use `cd foo && pwd` to compute absolute paths, because
9804# the directories may not exist.
9805case `pwd` in
9806.) ac_abs_builddir="$ac_dir";;
9807*)
9808 case "$ac_dir" in
9809 .) ac_abs_builddir=`pwd`;;
9810 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9811 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9812 esac;;
9813esac
9814case $ac_abs_builddir in
9815.) ac_abs_top_builddir=${ac_top_builddir}.;;
9816*)
9817 case ${ac_top_builddir}. in
9818 .) ac_abs_top_builddir=$ac_abs_builddir;;
9819 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9820 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9821 esac;;
9822esac
9823case $ac_abs_builddir in
9824.) ac_abs_srcdir=$ac_srcdir;;
9825*)
9826 case $ac_srcdir in
9827 .) ac_abs_srcdir=$ac_abs_builddir;;
9828 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9829 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9830 esac;;
9831esac
9832case $ac_abs_builddir in
9833.) ac_abs_top_srcdir=$ac_top_srcdir;;
9834*)
9835 case $ac_top_srcdir in
9836 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9837 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9838 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9839 esac;;
9840esac
252b5132 9841
9b2b7d69 9842
13b2be9c
DJ
9843 case $INSTALL in
9844 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9845 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 9846 esac
9b2b7d69 9847
1ad12f97
NC
9848 if test x"$ac_file" != x-; then
9849 { echo "$as_me:$LINENO: creating $ac_file" >&5
9850echo "$as_me: creating $ac_file" >&6;}
9851 rm -f "$ac_file"
9852 fi
13b2be9c
DJ
9853 # Let's still pretend it is `configure' which instantiates (i.e., don't
9854 # use $as_me), people would be surprised to read:
9855 # /* config.h. Generated by config.status. */
9856 if test x"$ac_file" = x-; then
9857 configure_input=
9858 else
9859 configure_input="$ac_file. "
9860 fi
9861 configure_input=$configure_input"Generated from `echo $ac_file_in |
ab509236 9862 sed 's,.*/,,'` by configure."
13b2be9c
DJ
9863
9864 # First look for the input files in the build tree, otherwise in the
9865 # src tree.
9866 ac_file_inputs=`IFS=:
9867 for f in $ac_file_in; do
9868 case $f in
9869 -) echo $tmp/stdin ;;
9870 [\\/$]*)
ab509236
L
9871 # Absolute (can't be DOS-style, as IFS=:)
9872 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
9873echo "$as_me: error: cannot find input file: $f" >&2;}
9874 { (exit 1); exit 1; }; }
ab509236 9875 echo "$f";;
13b2be9c 9876 *) # Relative
ab509236
L
9877 if test -f "$f"; then
9878 # Build tree
9879 echo "$f"
9880 elif test -f "$srcdir/$f"; then
9881 # Source tree
9882 echo "$srcdir/$f"
9883 else
9884 # /dev/null tree
9885 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
9886echo "$as_me: error: cannot find input file: $f" >&2;}
9887 { (exit 1); exit 1; }; }
ab509236 9888 fi;;
13b2be9c
DJ
9889 esac
9890 done` || { (exit 1); exit 1; }
9891_ACEOF
9892cat >>$CONFIG_STATUS <<_ACEOF
9893 sed "$ac_vpsub
9894$extrasub
9895_ACEOF
9896cat >>$CONFIG_STATUS <<\_ACEOF
9897:t
9898/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9899s,@configure_input@,$configure_input,;t t
9900s,@srcdir@,$ac_srcdir,;t t
9901s,@abs_srcdir@,$ac_abs_srcdir,;t t
9902s,@top_srcdir@,$ac_top_srcdir,;t t
9903s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9904s,@builddir@,$ac_builddir,;t t
9905s,@abs_builddir@,$ac_abs_builddir,;t t
9906s,@top_builddir@,$ac_top_builddir,;t t
9907s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9908s,@INSTALL@,$ac_INSTALL,;t t
9909" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9910 rm -f $tmp/stdin
9911 if test x"$ac_file" != x-; then
9912 mv $tmp/out $ac_file
9913 else
9914 cat $tmp/out
9915 rm -f $tmp/out
9916 fi
9917
9918done
9919_ACEOF
9920cat >>$CONFIG_STATUS <<\_ACEOF
9921
9922#
9923# CONFIG_HEADER section.
9924#
252b5132
RH
9925
9926# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9927# NAME is the cpp macro being defined and VALUE is the value it is being given.
9928#
9929# ac_d sets the value in "#define NAME VALUE" lines.
ab509236
L
9930ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9931ac_dB='[ ].*$,\1#\2'
13b2be9c
DJ
9932ac_dC=' '
9933ac_dD=',;t'
9934# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ab509236 9935ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13b2be9c 9936ac_uB='$,\1#\2define\3'
252b5132 9937ac_uC=' '
13b2be9c
DJ
9938ac_uD=',;t'
9939
9940for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 9941 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
9942 case $ac_file in
9943 - | *:- | *:-:* ) # input from stdin
ab509236
L
9944 cat >$tmp/stdin
9945 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9946 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 9947 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 9948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 9949 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
9950 esac
9951
13b2be9c
DJ
9952 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9953echo "$as_me: creating $ac_file" >&6;}
9954
9955 # First look for the input files in the build tree, otherwise in the
9956 # src tree.
9957 ac_file_inputs=`IFS=:
9958 for f in $ac_file_in; do
9959 case $f in
9960 -) echo $tmp/stdin ;;
9961 [\\/$]*)
ab509236
L
9962 # Absolute (can't be DOS-style, as IFS=:)
9963 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
9964echo "$as_me: error: cannot find input file: $f" >&2;}
9965 { (exit 1); exit 1; }; }
ab509236
L
9966 # Do quote $f, to prevent DOS paths from being IFS'd.
9967 echo "$f";;
13b2be9c 9968 *) # Relative
ab509236
L
9969 if test -f "$f"; then
9970 # Build tree
9971 echo "$f"
9972 elif test -f "$srcdir/$f"; then
9973 # Source tree
9974 echo "$srcdir/$f"
9975 else
9976 # /dev/null tree
9977 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
9978echo "$as_me: error: cannot find input file: $f" >&2;}
9979 { (exit 1); exit 1; }; }
ab509236 9980 fi;;
13b2be9c
DJ
9981 esac
9982 done` || { (exit 1); exit 1; }
9983 # Remove the trailing spaces.
ab509236 9984 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13b2be9c
DJ
9985
9986_ACEOF
9987
9988# Transform confdefs.h into two sed scripts, `conftest.defines' and
9989# `conftest.undefs', that substitutes the proper values into
9990# config.h.in to produce config.h. The first handles `#define'
9991# templates, and the second `#undef' templates.
9992# And first: Protect against being on the right side of a sed subst in
9993# config.status. Protect against being in an unquoted here document
9994# in config.status.
9995rm -f conftest.defines conftest.undefs
9996# Using a here document instead of a string reduces the quoting nightmare.
9997# Putting comments in sed scripts is not portable.
9998#
9999# `end' is used to avoid that the second main sed command (meant for
10000# 0-ary CPP macros) applies to n-ary macro definitions.
10001# See the Autoconf documentation for `clear'.
10002cat >confdef2sed.sed <<\_ACEOF
10003s/[\\&,]/\\&/g
10004s,[\\$`],\\&,g
10005t clear
10006: clear
ab509236 10007s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13b2be9c 10008t end
ab509236 10009s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13b2be9c
DJ
10010: end
10011_ACEOF
10012# If some macros were called several times there might be several times
10013# the same #defines, which is useless. Nevertheless, we may not want to
10014# sort them, since we want the *last* AC-DEFINE to be honored.
10015uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10016sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10017rm -f confdef2sed.sed
252b5132
RH
10018
10019# This sed command replaces #undef with comments. This is necessary, for
10020# example, in the case of _POSIX_SOURCE, which is predefined and required
10021# on some systems where configure will not decide to define it.
13b2be9c 10022cat >>conftest.undefs <<\_ACEOF
ab509236 10023s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13b2be9c
DJ
10024_ACEOF
10025
10026# Break up conftest.defines because some shells have a limit on the size
10027# of here documents, and old seds have small limits too (100 cmds).
10028echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ab509236 10029echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13b2be9c
DJ
10030echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10031echo ' :' >>$CONFIG_STATUS
10032rm -f conftest.tail
10033while grep . conftest.defines >/dev/null
10034do
10035 # Write a limited-size here document to $tmp/defines.sed.
10036 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10037 # Speed up: don't consider the non `#define' lines.
ab509236 10038 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13b2be9c
DJ
10039 # Work around the forget-to-reset-the-flag bug.
10040 echo 't clr' >>$CONFIG_STATUS
10041 echo ': clr' >>$CONFIG_STATUS
10042 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10043 echo 'CEOF
10044 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10045 rm -f $tmp/in
10046 mv $tmp/out $tmp/in
10047' >>$CONFIG_STATUS
10048 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10049 rm -f conftest.defines
10050 mv conftest.tail conftest.defines
10051done
10052rm -f conftest.defines
10053echo ' fi # grep' >>$CONFIG_STATUS
10054echo >>$CONFIG_STATUS
252b5132 10055
13b2be9c
DJ
10056# Break up conftest.undefs because some shells have a limit on the size
10057# of here documents, and old seds have small limits too (100 cmds).
10058echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 10059rm -f conftest.tail
13b2be9c 10060while grep . conftest.undefs >/dev/null
252b5132 10061do
13b2be9c
DJ
10062 # Write a limited-size here document to $tmp/undefs.sed.
10063 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10064 # Speed up: don't consider the non `#undef'
ab509236 10065 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13b2be9c
DJ
10066 # Work around the forget-to-reset-the-flag bug.
10067 echo 't clr' >>$CONFIG_STATUS
10068 echo ': clr' >>$CONFIG_STATUS
10069 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 10070 echo 'CEOF
13b2be9c
DJ
10071 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10072 rm -f $tmp/in
10073 mv $tmp/out $tmp/in
10074' >>$CONFIG_STATUS
10075 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10076 rm -f conftest.undefs
10077 mv conftest.tail conftest.undefs
252b5132 10078done
13b2be9c
DJ
10079rm -f conftest.undefs
10080
10081cat >>$CONFIG_STATUS <<\_ACEOF
10082 # Let's still pretend it is `configure' which instantiates (i.e., don't
10083 # use $as_me), people would be surprised to read:
10084 # /* config.h. Generated by config.status. */
10085 if test x"$ac_file" = x-; then
10086 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 10087 else
13b2be9c
DJ
10088 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10089 fi
10090 cat $tmp/in >>$tmp/config.h
10091 rm -f $tmp/in
10092 if test x"$ac_file" != x-; then
10093 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10094 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10095echo "$as_me: $ac_file is unchanged" >&6;}
10096 else
10097 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10098$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
10099 X"$ac_file" : 'X\(//\)[^/]' \| \
10100 X"$ac_file" : 'X\(//\)$' \| \
10101 X"$ac_file" : 'X\(/\)' \| \
10102 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
10103echo X"$ac_file" |
10104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10106 /^X\(\/\/\)$/{ s//\1/; q; }
10107 /^X\(\/\).*/{ s//\1/; q; }
10108 s/.*/./; q'`
10109 { if $as_mkdir_p; then
10110 mkdir -p "$ac_dir"
10111 else
10112 as_dir="$ac_dir"
10113 as_dirs=
10114 while test ! -d "$as_dir"; do
10115 as_dirs="$as_dir $as_dirs"
10116 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10117$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
10118 X"$as_dir" : 'X\(//\)[^/]' \| \
10119 X"$as_dir" : 'X\(//\)$' \| \
10120 X"$as_dir" : 'X\(/\)' \| \
10121 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
10122echo X"$as_dir" |
10123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10125 /^X\(\/\/\)$/{ s//\1/; q; }
10126 /^X\(\/\).*/{ s//\1/; q; }
10127 s/.*/./; q'`
10128 done
10129 test ! -n "$as_dirs" || mkdir $as_dirs
10130 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10131echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10132 { (exit 1); exit 1; }; }; }
10133
10134 rm -f $ac_file
10135 mv $tmp/config.h $ac_file
9b2b7d69 10136 fi
13b2be9c
DJ
10137 else
10138 cat $tmp/config.h
10139 rm -f $tmp/config.h
9b2b7d69 10140 fi
13b2be9c
DJ
10141# Compute $ac_file's index in $config_headers.
10142_am_stamp_count=1
10143for _am_header in $config_headers :; do
10144 case $_am_header in
10145 $ac_file | $ac_file:* )
10146 break ;;
10147 * )
10148 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10149 esac
10150done
10151echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10152$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
10153 X$ac_file : 'X\(//\)[^/]' \| \
10154 X$ac_file : 'X\(//\)$' \| \
10155 X$ac_file : 'X\(/\)' \| \
10156 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
10157echo X$ac_file |
10158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10160 /^X\(\/\/\)$/{ s//\1/; q; }
10161 /^X\(\/\).*/{ s//\1/; q; }
10162 s/.*/./; q'`/stamp-h$_am_stamp_count
10163done
10164_ACEOF
10165cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 10166
13b2be9c
DJ
10167#
10168# CONFIG_COMMANDS section.
10169#
10170for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10171 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10172 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10173 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10174$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
10175 X"$ac_dest" : 'X\(//\)[^/]' \| \
10176 X"$ac_dest" : 'X\(//\)$' \| \
10177 X"$ac_dest" : 'X\(/\)' \| \
10178 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
10179echo X"$ac_dest" |
10180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10182 /^X\(\/\/\)$/{ s//\1/; q; }
10183 /^X\(\/\).*/{ s//\1/; q; }
10184 s/.*/./; q'`
ab509236
L
10185 { if $as_mkdir_p; then
10186 mkdir -p "$ac_dir"
10187 else
10188 as_dir="$ac_dir"
10189 as_dirs=
10190 while test ! -d "$as_dir"; do
10191 as_dirs="$as_dir $as_dirs"
10192 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10193$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10194 X"$as_dir" : 'X\(//\)[^/]' \| \
10195 X"$as_dir" : 'X\(//\)$' \| \
10196 X"$as_dir" : 'X\(/\)' \| \
10197 . : '\(.\)' 2>/dev/null ||
10198echo X"$as_dir" |
10199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10201 /^X\(\/\/\)$/{ s//\1/; q; }
10202 /^X\(\/\).*/{ s//\1/; q; }
10203 s/.*/./; q'`
10204 done
10205 test ! -n "$as_dirs" || mkdir $as_dirs
10206 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10207echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10208 { (exit 1); exit 1; }; }; }
10209
13b2be9c
DJ
10210 ac_builddir=.
10211
10212if test "$ac_dir" != .; then
10213 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10214 # A "../" for each directory in $ac_dir_suffix.
10215 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10216else
10217 ac_dir_suffix= ac_top_builddir=
10218fi
10219
10220case $srcdir in
10221 .) # No --srcdir option. We are building in place.
10222 ac_srcdir=.
10223 if test -z "$ac_top_builddir"; then
10224 ac_top_srcdir=.
10225 else
10226 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10227 fi ;;
10228 [\\/]* | ?:[\\/]* ) # Absolute path.
10229 ac_srcdir=$srcdir$ac_dir_suffix;
10230 ac_top_srcdir=$srcdir ;;
10231 *) # Relative path.
10232 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10233 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10234esac
ab509236
L
10235
10236# Do not use `cd foo && pwd` to compute absolute paths, because
10237# the directories may not exist.
10238case `pwd` in
10239.) ac_abs_builddir="$ac_dir";;
10240*)
10241 case "$ac_dir" in
10242 .) ac_abs_builddir=`pwd`;;
10243 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10244 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10245 esac;;
10246esac
10247case $ac_abs_builddir in
10248.) ac_abs_top_builddir=${ac_top_builddir}.;;
10249*)
10250 case ${ac_top_builddir}. in
10251 .) ac_abs_top_builddir=$ac_abs_builddir;;
10252 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10253 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10254 esac;;
10255esac
10256case $ac_abs_builddir in
10257.) ac_abs_srcdir=$ac_srcdir;;
10258*)
10259 case $ac_srcdir in
10260 .) ac_abs_srcdir=$ac_abs_builddir;;
10261 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10262 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10263 esac;;
10264esac
10265case $ac_abs_builddir in
10266.) ac_abs_top_srcdir=$ac_top_srcdir;;
10267*)
10268 case $ac_top_srcdir in
10269 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10270 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10271 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10272 esac;;
10273esac
13b2be9c
DJ
10274
10275
10276 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10277echo "$as_me: executing $ac_dest commands" >&6;}
10278 case $ac_dest in
10279 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10280 # Strip MF so we end up with the name of the file.
10281 mf=`echo "$mf" | sed -e 's/:.*$//'`
10282 # Check whether this is an Automake generated Makefile or not.
10283 # We used to match only the files named `Makefile.in', but
10284 # some people rename them; so instead we look at the file content.
10285 # Grep'ing the first line is not enough: some people post-process
10286 # each Makefile.in and add a new line on top of each file to say so.
10287 # So let's grep whole file.
10288 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10289 dirpart=`(dirname "$mf") 2>/dev/null ||
10290$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
10291 X"$mf" : 'X\(//\)[^/]' \| \
10292 X"$mf" : 'X\(//\)$' \| \
10293 X"$mf" : 'X\(/\)' \| \
10294 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
10295echo X"$mf" |
10296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10298 /^X\(\/\/\)$/{ s//\1/; q; }
10299 /^X\(\/\).*/{ s//\1/; q; }
10300 s/.*/./; q'`
10301 else
10302 continue
10303 fi
8ea2b00f
AM
10304 # Extract the definition of DEPDIR, am__include, and am__quote
10305 # from the Makefile without running `make'.
4b363073 10306 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13b2be9c 10307 test -z "$DEPDIR" && continue
8ea2b00f
AM
10308 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10309 test -z "am__include" && continue
10310 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13b2be9c 10311 # When using ansi2knr, U may be empty or an underscore; expand it
4b363073 10312 U=`sed -n 's/^U = //p' < "$mf"`
8ea2b00f
AM
10313 # Find all dependency output files, they are included files with
10314 # $(DEPDIR) in their names. We invoke sed twice because it is the
10315 # simplest approach to changing $(DEPDIR) to its actual value in the
10316 # expansion.
10317 for file in `sed -n "
10318 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13b2be9c
DJ
10319 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10320 # Make sure the directory exists.
10321 test -f "$dirpart/$file" && continue
10322 fdir=`(dirname "$file") 2>/dev/null ||
10323$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
10324 X"$file" : 'X\(//\)[^/]' \| \
10325 X"$file" : 'X\(//\)$' \| \
10326 X"$file" : 'X\(/\)' \| \
10327 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
10328echo X"$file" |
10329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10331 /^X\(\/\/\)$/{ s//\1/; q; }
10332 /^X\(\/\).*/{ s//\1/; q; }
10333 s/.*/./; q'`
10334 { if $as_mkdir_p; then
10335 mkdir -p $dirpart/$fdir
10336 else
10337 as_dir=$dirpart/$fdir
10338 as_dirs=
10339 while test ! -d "$as_dir"; do
10340 as_dirs="$as_dir $as_dirs"
10341 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
10343 X"$as_dir" : 'X\(//\)[^/]' \| \
10344 X"$as_dir" : 'X\(//\)$' \| \
10345 X"$as_dir" : 'X\(/\)' \| \
10346 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
10347echo X"$as_dir" |
10348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10349 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10350 /^X\(\/\/\)$/{ s//\1/; q; }
10351 /^X\(\/\).*/{ s//\1/; q; }
10352 s/.*/./; q'`
10353 done
10354 test ! -n "$as_dirs" || mkdir $as_dirs
10355 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10356echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10357 { (exit 1); exit 1; }; }; }
c8615825 10358
13b2be9c
DJ
10359 # echo "creating $dirpart/$file"
10360 echo '# dummy' > "$dirpart/$file"
10361 done
10362done
10363 ;;
20e95c23
DJ
10364 default-1 )
10365 for ac_file in $CONFIG_FILES; do
10366 # Support "outfile[:infile[:infile...]]"
10367 case "$ac_file" in
10368 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10369 esac
10370 # PO directories have a Makefile.in generated from Makefile.in.in.
10371 case "$ac_file" in */Makefile.in)
10372 # Adjust a relative srcdir.
10373 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10374 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10375 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10376 # In autoconf-2.13 it is called $ac_given_srcdir.
10377 # In autoconf-2.50 it is called $srcdir.
10378 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10379 case "$ac_given_srcdir" in
10380 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10381 /*) top_srcdir="$ac_given_srcdir" ;;
10382 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10383 esac
10384 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10385 rm -f "$ac_dir/POTFILES"
10386 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10387 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10388 POMAKEFILEDEPS="POTFILES.in"
10389 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10390 # on $ac_dir but don't depend on user-specified configuration
10391 # parameters.
10392 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10393 # The LINGUAS file contains the set of available languages.
10394 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10395 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10396 fi
10397 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10398 # Hide the ALL_LINGUAS assigment from automake.
10399 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10400 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10401 else
10402 # The set of available languages was given in configure.in.
10403 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10404 fi
10405 case "$ac_given_srcdir" in
10406 .) srcdirpre= ;;
10407 *) srcdirpre='$(srcdir)/' ;;
10408 esac
10409 POFILES=
10410 GMOFILES=
10411 UPDATEPOFILES=
10412 DUMMYPOFILES=
10413 for lang in $ALL_LINGUAS; do
10414 POFILES="$POFILES $srcdirpre$lang.po"
10415 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10416 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10417 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10418 done
10419 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10420 # environment variable.
10421 INST_LINGUAS=
10422 if test -n "$ALL_LINGUAS"; then
10423 for presentlang in $ALL_LINGUAS; do
10424 useit=no
10425 if test "%UNSET%" != "$LINGUAS"; then
10426 desiredlanguages="$LINGUAS"
10427 else
10428 desiredlanguages="$ALL_LINGUAS"
10429 fi
10430 for desiredlang in $desiredlanguages; do
10431 # Use the presentlang catalog if desiredlang is
10432 # a. equal to presentlang, or
10433 # b. a variant of presentlang (because in this case,
10434 # presentlang can be used as a fallback for messages
10435 # which are not translated in the desiredlang catalog).
10436 case "$desiredlang" in
10437 "$presentlang"*) useit=yes;;
10438 esac
10439 done
10440 if test $useit = yes; then
10441 INST_LINGUAS="$INST_LINGUAS $presentlang"
10442 fi
10443 done
10444 fi
10445 CATALOGS=
10446 if test -n "$INST_LINGUAS"; then
10447 for lang in $INST_LINGUAS; do
10448 CATALOGS="$CATALOGS $lang.gmo"
10449 done
10450 fi
10451 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10452 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10453 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10454 if test -f "$f"; then
10455 case "$f" in
10456 *.orig | *.bak | *~) ;;
10457 *) cat "$f" >> "$ac_dir/Makefile" ;;
10458 esac
10459 fi
10460 done
10461 fi
10462 ;;
10463 esac
10464 done ;;
13b2be9c 10465 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
10466 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
10467 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
10468 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
10469 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
10470 if test "x$cgen_cpu_prefix" != x ; then
10471 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 10472 fi ;;
13b2be9c
DJ
10473 esac
10474done
10475_ACEOF
10476
10477cat >>$CONFIG_STATUS <<\_ACEOF
10478
10479{ (exit 0); exit 0; }
10480_ACEOF
252b5132 10481chmod +x $CONFIG_STATUS
13b2be9c
DJ
10482ac_clean_files=$ac_clean_files_save
10483
10484
10485# configure is writing to config.log, and then calls config.status.
10486# config.status does its own redirection, appending to config.log.
10487# Unfortunately, on DOS this fails, as config.log is still kept open
10488# by configure, so config.status won't be able to write to it; its
10489# output is simply discarded. So we exec the FD to /dev/null,
10490# effectively closing config.log, so it can be properly (re)opened and
10491# appended to by config.status. When coming back to configure, we
10492# need to make the FD available again.
10493if test "$no_create" != yes; then
10494 ac_cs_success=:
10495 ac_config_status_args=
10496 test "$silent" = yes &&
10497 ac_config_status_args="$ac_config_status_args --quiet"
10498 exec 5>/dev/null
10499 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10500 exec 5>>config.log
10501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10502 # would make configure fail if this is the last instruction.
10503 $ac_cs_success || { (exit 1); exit 1; }
10504fi
252b5132 10505
This page took 1.406315 seconds and 4 git commands to generate.