binutils:
[deliverable/binutils-gdb.git] / binutils / configure
CommitLineData
252b5132
RH
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
16ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22ac_help="$ac_help
a74801ba 23 --disable-libtool-lock avoid locking (might break parallel builds)"
ac48eca1
AO
24ac_help="$ac_help
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
252b5132
RH
26ac_help="$ac_help
27 --enable-targets alternative target configurations"
28ac_help="$ac_help
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
a2d91340
AC
30ac_help="$ac_help
31 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
252b5132
RH
32ac_help="$ac_help
33 --disable-nls do not use Native Language Support"
34ac_help="$ac_help
35 --with-included-gettext use the GNU gettext library included here"
36ac_help="$ac_help
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
39
40# Initialize some variables set by options.
41# The variables have the same names as the options, with
42# dashes changed to underlines.
43build=NONE
44cache_file=./config.cache
45exec_prefix=NONE
46host=NONE
47no_create=
48nonopt=NONE
49no_recursion=
50prefix=NONE
51program_prefix=NONE
52program_suffix=NONE
53program_transform_name=s,x,x,
54silent=
55site=
56srcdir=
57target=NONE
58verbose=
59x_includes=NONE
60x_libraries=NONE
61bindir='${exec_prefix}/bin'
62sbindir='${exec_prefix}/sbin'
63libexecdir='${exec_prefix}/libexec'
64datadir='${prefix}/share'
65sysconfdir='${prefix}/etc'
66sharedstatedir='${prefix}/com'
67localstatedir='${prefix}/var'
68libdir='${exec_prefix}/lib'
69includedir='${prefix}/include'
70oldincludedir='/usr/include'
71infodir='${prefix}/info'
72mandir='${prefix}/man'
73
74# Initialize some other variables.
75subdirs=
76MFLAGS= MAKEFLAGS=
77SHELL=${CONFIG_SHELL-/bin/sh}
78# Maximum number of lines to put in a shell here document.
79ac_max_here_lines=12
80
81ac_prev=
82for ac_option
83do
84
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
88 ac_prev=
89 continue
90 fi
91
92 case "$ac_option" in
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 *) ac_optarg= ;;
95 esac
96
97 # Accept the important Cygnus configure options, so we can diagnose typos.
98
99 case "$ac_option" in
100
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 ac_prev=bindir ;;
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
105
106 -build | --build | --buil | --bui | --bu)
107 ac_prev=build ;;
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
110
111 -cache-file | --cache-file | --cache-fil | --cache-fi \
112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113 ac_prev=cache_file ;;
114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116 cache_file="$ac_optarg" ;;
117
118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 ac_prev=datadir ;;
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 | --da=*)
122 datadir="$ac_optarg" ;;
123
124 -disable-* | --disable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 fi
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
132
133 -enable-* | --enable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 fi
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 case "$ac_option" in
141 *=*) ;;
142 *) ac_optarg=yes ;;
143 esac
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
145
146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148 | --exec | --exe | --ex)
149 ac_prev=exec_prefix ;;
150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152 | --exec=* | --exe=* | --ex=*)
153 exec_prefix="$ac_optarg" ;;
154
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
157 with_gas=yes ;;
158
159 -help | --help | --hel | --he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
162 cat << EOF
163Usage: configure [options] [host]
164Options: [defaults in brackets after descriptions]
165Configuration:
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
173 [$ac_default_prefix]
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 [same as prefix]
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
180 [PREFIX/share]
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 [PREFIX/com]
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
195EOF
196 cat << EOF
197Host type:
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
208EOF
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
211 fi
212 exit 0 ;;
213
214 -host | --host | --hos | --ho)
215 ac_prev=host ;;
216 -host=* | --host=* | --hos=* | --ho=*)
217 host="$ac_optarg" ;;
218
219 -includedir | --includedir | --includedi | --included | --include \
220 | --includ | --inclu | --incl | --inc)
221 ac_prev=includedir ;;
222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223 | --includ=* | --inclu=* | --incl=* | --inc=*)
224 includedir="$ac_optarg" ;;
225
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 ac_prev=infodir ;;
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
230
231 -libdir | --libdir | --libdi | --libd)
232 ac_prev=libdir ;;
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir="$ac_optarg" ;;
235
236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237 | --libexe | --libex | --libe)
238 ac_prev=libexecdir ;;
239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240 | --libexe=* | --libex=* | --libe=*)
241 libexecdir="$ac_optarg" ;;
242
243 -localstatedir | --localstatedir | --localstatedi | --localstated \
244 | --localstate | --localstat | --localsta | --localst \
245 | --locals | --local | --loca | --loc | --lo)
246 ac_prev=localstatedir ;;
247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250 localstatedir="$ac_optarg" ;;
251
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 ac_prev=mandir ;;
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
256
257 -nfp | --nfp | --nf)
258 # Obsolete; use --without-fp.
259 with_fp=no ;;
260
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 | --no-cr | --no-c)
263 no_create=yes ;;
264
265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 no_recursion=yes ;;
268
269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271 | --oldin | --oldi | --old | --ol | --o)
272 ac_prev=oldincludedir ;;
273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276 oldincludedir="$ac_optarg" ;;
277
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 ac_prev=prefix ;;
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix="$ac_optarg" ;;
282
283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
284 | --program-pre | --program-pr | --program-p)
285 ac_prev=program_prefix ;;
286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288 program_prefix="$ac_optarg" ;;
289
290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
291 | --program-suf | --program-su | --program-s)
292 ac_prev=program_suffix ;;
293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295 program_suffix="$ac_optarg" ;;
296
297 -program-transform-name | --program-transform-name \
298 | --program-transform-nam | --program-transform-na \
299 | --program-transform-n | --program-transform- \
300 | --program-transform | --program-transfor \
301 | --program-transfo | --program-transf \
302 | --program-trans | --program-tran \
303 | --progr-tra | --program-tr | --program-t)
304 ac_prev=program_transform_name ;;
305 -program-transform-name=* | --program-transform-name=* \
306 | --program-transform-nam=* | --program-transform-na=* \
307 | --program-transform-n=* | --program-transform-=* \
308 | --program-transform=* | --program-transfor=* \
309 | --program-transfo=* | --program-transf=* \
310 | --program-trans=* | --program-tran=* \
311 | --progr-tra=* | --program-tr=* | --program-t=*)
312 program_transform_name="$ac_optarg" ;;
313
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
316 silent=yes ;;
317
318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 ac_prev=sbindir ;;
320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321 | --sbi=* | --sb=*)
322 sbindir="$ac_optarg" ;;
323
324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326 | --sharedst | --shareds | --shared | --share | --shar \
327 | --sha | --sh)
328 ac_prev=sharedstatedir ;;
329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332 | --sha=* | --sh=*)
333 sharedstatedir="$ac_optarg" ;;
334
335 -site | --site | --sit)
336 ac_prev=site ;;
337 -site=* | --site=* | --sit=*)
338 site="$ac_optarg" ;;
339
340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 ac_prev=srcdir ;;
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir="$ac_optarg" ;;
344
345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346 | --syscon | --sysco | --sysc | --sys | --sy)
347 ac_prev=sysconfdir ;;
348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350 sysconfdir="$ac_optarg" ;;
351
352 -target | --target | --targe | --targ | --tar | --ta | --t)
353 ac_prev=target ;;
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
356
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
358 verbose=yes ;;
359
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.13"
362 exit 0 ;;
363
364 -with-* | --with-*)
365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 fi
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 case "$ac_option" in
372 *=*) ;;
373 *) ac_optarg=yes ;;
374 esac
375 eval "with_${ac_package}='$ac_optarg'" ;;
376
377 -without-* | --without-*)
378 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 fi
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
385
386 --x)
387 # Obsolete; use --with-x.
388 with_x=yes ;;
389
390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391 | --x-incl | --x-inc | --x-in | --x-i)
392 ac_prev=x_includes ;;
393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395 x_includes="$ac_optarg" ;;
396
397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399 ac_prev=x_libraries ;;
400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402 x_libraries="$ac_optarg" ;;
403
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 ;;
406
407 *)
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 fi
411 if test "x$nonopt" != xNONE; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 fi
414 nonopt="$ac_option"
415 ;;
416
417 esac
418done
419
420if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422fi
423
424trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425
426# File descriptor usage:
427# 0 standard input
428# 1 file creation
429# 2 errors and warnings
430# 3 some systems may open it to /dev/tty
431# 4 used on the Kubota Titan
432# 6 checking for... messages and results
433# 5 compiler messages saved in config.log
434if test "$silent" = yes; then
435 exec 6>/dev/null
436else
437 exec 6>&1
438fi
439exec 5>./config.log
440
441echo "\
442This file contains any messages produced by compilers while
443running configure, to aid debugging if configure makes a mistake.
444" 1>&5
445
446# Strip out --no-create and --no-recursion so they do not pile up.
447# Also quote any args containing shell metacharacters.
448ac_configure_args=
449for ac_arg
450do
451 case "$ac_arg" in
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c) ;;
454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459 esac
460done
461
462# NLS nuisances.
463# Only set these to C if already set. These must not be set unconditionally
464# because not all systems understand e.g. LANG=C (notably SCO).
465# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466# Non-C LC_CTYPE values break the ctype check.
467if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471
472# confdefs.h avoids OS command line length limits that DEFS can exceed.
473rm -rf conftest* confdefs.h
474# AIX cpp loses on an empty file, so make sure it contains at least a newline.
475echo > confdefs.h
476
477# A filename unique to this package, relative to the directory that
478# configure is in, which we can look for to find out if srcdir is correct.
479ac_unique_file=ar.c
480
481# Find the source files, if location was not specified.
482if test -z "$srcdir"; then
483 ac_srcdir_defaulted=yes
484 # Try the directory containing this script, then its parent.
485 ac_prog=$0
486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 srcdir=$ac_confdir
489 if test ! -r $srcdir/$ac_unique_file; then
490 srcdir=..
491 fi
492else
493 ac_srcdir_defaulted=no
494fi
495if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 else
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500 fi
501fi
502srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503
504# Prefer explicitly selected file to automatically selected ones.
3c62831e
NC
505if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE; then
507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508 else
509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
252b5132
RH
510 fi
511fi
512for ac_site_file in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
515 . "$ac_site_file"
516 fi
517done
518
519if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
521 . $cache_file
522else
523 echo "creating cache $cache_file"
524 > $cache_file
525fi
526
527ac_ext=c
528# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529ac_cpp='$CPP $CPPFLAGS'
530ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532cross_compiling=$ac_cv_prog_cc_cross
533
534ac_exeext=
535ac_objext=o
536if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539 ac_n= ac_c='
540' ac_t=' '
541 else
542 ac_n=-n ac_c= ac_t=
543 fi
544else
545 ac_n= ac_c='\c' ac_t=
546fi
547
ac48eca1 548echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3c62831e 549echo "configure:550: checking for Cygwin environment" >&5
ac48eca1
AO
550if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
551 echo $ac_n "(cached) $ac_c" 1>&6
552else
553 cat > conftest.$ac_ext <<EOF
3c62831e 554#line 555 "configure"
ac48eca1
AO
555#include "confdefs.h"
556
557int main() {
558
559#ifndef __CYGWIN__
560#define __CYGWIN__ __CYGWIN32__
561#endif
562return __CYGWIN__;
563; return 0; }
564EOF
3c62831e 565if { (eval echo configure:566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ac48eca1
AO
566 rm -rf conftest*
567 ac_cv_cygwin=yes
568else
569 echo "configure: failed program was:" >&5
570 cat conftest.$ac_ext >&5
571 rm -rf conftest*
572 ac_cv_cygwin=no
573fi
574rm -f conftest*
575rm -f conftest*
576fi
577
578echo "$ac_t""$ac_cv_cygwin" 1>&6
579CYGWIN=
580test "$ac_cv_cygwin" = yes && CYGWIN=yes
581echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3c62831e 582echo "configure:583: checking for mingw32 environment" >&5
ac48eca1
AO
583if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
585else
586 cat > conftest.$ac_ext <<EOF
3c62831e 587#line 588 "configure"
ac48eca1
AO
588#include "confdefs.h"
589
590int main() {
591return __MINGW32__;
592; return 0; }
593EOF
3c62831e 594if { (eval echo configure:595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ac48eca1
AO
595 rm -rf conftest*
596 ac_cv_mingw32=yes
597else
598 echo "configure: failed program was:" >&5
599 cat conftest.$ac_ext >&5
600 rm -rf conftest*
601 ac_cv_mingw32=no
602fi
603rm -f conftest*
604rm -f conftest*
605fi
606
607echo "$ac_t""$ac_cv_mingw32" 1>&6
608MINGW32=
609test "$ac_cv_mingw32" = yes && MINGW32=yes
252b5132
RH
610
611
612ac_aux_dir=
613for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
614 if test -f $ac_dir/install-sh; then
615 ac_aux_dir=$ac_dir
616 ac_install_sh="$ac_aux_dir/install-sh -c"
617 break
618 elif test -f $ac_dir/install.sh; then
619 ac_aux_dir=$ac_dir
620 ac_install_sh="$ac_aux_dir/install.sh -c"
621 break
622 fi
623done
624if test -z "$ac_aux_dir"; then
625 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
626fi
627ac_config_guess=$ac_aux_dir/config.guess
628ac_config_sub=$ac_aux_dir/config.sub
629ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
630
631
632# Do some error checking and defaulting for the host and target type.
633# The inputs are:
634# configure --host=HOST --target=TARGET --build=BUILD NONOPT
635#
636# The rules are:
637# 1. You are not allowed to specify --host, --target, and nonopt at the
638# same time.
639# 2. Host defaults to nonopt.
640# 3. If nonopt is not specified, then host defaults to the current host,
641# as determined by config.guess.
642# 4. Target and build default to nonopt.
643# 5. If nonopt is not specified, then target and build default to host.
644
645# The aliases save the names the user supplied, while $host etc.
646# will get canonicalized.
647case $host---$target---$nonopt in
648NONE---*---* | *---NONE---* | *---*---NONE) ;;
649*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
650esac
651
652
653# Make sure we can run config.sub.
654if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
655else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
656fi
657
658echo $ac_n "checking host system type""... $ac_c" 1>&6
3c62831e 659echo "configure:660: checking host system type" >&5
252b5132
RH
660
661host_alias=$host
662case "$host_alias" in
663NONE)
664 case $nonopt in
665 NONE)
666 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
667 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
668 fi ;;
669 *) host_alias=$nonopt ;;
670 esac ;;
671esac
672
673host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
674host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677echo "$ac_t""$host" 1>&6
678
679echo $ac_n "checking target system type""... $ac_c" 1>&6
3c62831e 680echo "configure:681: checking target system type" >&5
252b5132
RH
681
682target_alias=$target
683case "$target_alias" in
684NONE)
685 case $nonopt in
686 NONE) target_alias=$host_alias ;;
687 *) target_alias=$nonopt ;;
688 esac ;;
689esac
690
691target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
692target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
693target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
694target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
695echo "$ac_t""$target" 1>&6
696
697echo $ac_n "checking build system type""... $ac_c" 1>&6
3c62831e 698echo "configure:699: checking build system type" >&5
252b5132
RH
699
700build_alias=$build
701case "$build_alias" in
702NONE)
703 case $nonopt in
704 NONE) build_alias=$host_alias ;;
705 *) build_alias=$nonopt ;;
706 esac ;;
707esac
708
709build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
710build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
713echo "$ac_t""$build" 1>&6
714
715test "$host_alias" != "$target_alias" &&
716 test "$program_prefix$program_suffix$program_transform_name" = \
717 NONENONEs,x,x, &&
718 program_prefix=${target_alias}-
719
1ea788ee
AM
720# Extract the first word of "gcc", so it can be a program name with args.
721set dummy gcc; ac_word=$2
722echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
723echo "configure:724: checking for $ac_word" >&5
724if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
725 echo $ac_n "(cached) $ac_c" 1>&6
726else
727 if test -n "$CC"; then
728 ac_cv_prog_CC="$CC" # Let the user override the test.
729else
730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
731 ac_dummy="$PATH"
732 for ac_dir in $ac_dummy; do
733 test -z "$ac_dir" && ac_dir=.
734 if test -f $ac_dir/$ac_word; then
735 ac_cv_prog_CC="gcc"
736 break
737 fi
738 done
739 IFS="$ac_save_ifs"
740fi
741fi
742CC="$ac_cv_prog_CC"
743if test -n "$CC"; then
744 echo "$ac_t""$CC" 1>&6
745else
746 echo "$ac_t""no" 1>&6
747fi
5d64ca4e 748
1ea788ee
AM
749if test -z "$CC"; then
750 # Extract the first word of "cc", so it can be a program name with args.
751set dummy cc; ac_word=$2
752echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
753echo "configure:754: checking for $ac_word" >&5
754if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5d64ca4e
L
755 echo $ac_n "(cached) $ac_c" 1>&6
756else
1ea788ee
AM
757 if test -n "$CC"; then
758 ac_cv_prog_CC="$CC" # Let the user override the test.
759else
760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
761 ac_prog_rejected=no
762 ac_dummy="$PATH"
763 for ac_dir in $ac_dummy; do
764 test -z "$ac_dir" && ac_dir=.
765 if test -f $ac_dir/$ac_word; then
766 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
767 ac_prog_rejected=yes
768 continue
769 fi
770 ac_cv_prog_CC="cc"
771 break
772 fi
773 done
774 IFS="$ac_save_ifs"
775if test $ac_prog_rejected = yes; then
776 # We found a bogon in the path, so make sure we never use it.
777 set dummy $ac_cv_prog_CC
778 shift
779 if test $# -gt 0; then
780 # We chose a different compiler from the bogus one.
781 # However, it has the same basename, so the bogon will be chosen
782 # first if we set CC to just the basename; use the full file name.
783 shift
784 set dummy "$ac_dir/$ac_word" "$@"
785 shift
786 ac_cv_prog_CC="$@"
787 fi
788fi
789fi
790fi
791CC="$ac_cv_prog_CC"
792if test -n "$CC"; then
793 echo "$ac_t""$CC" 1>&6
794else
795 echo "$ac_t""no" 1>&6
796fi
797
798 if test -z "$CC"; then
799 case "`uname -s`" in
800 *win32* | *WIN32*)
801 # Extract the first word of "cl", so it can be a program name with args.
802set dummy cl; ac_word=$2
803echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
804echo "configure:805: checking for $ac_word" >&5
805if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
807else
808 if test -n "$CC"; then
809 ac_cv_prog_CC="$CC" # Let the user override the test.
810else
811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
812 ac_dummy="$PATH"
813 for ac_dir in $ac_dummy; do
814 test -z "$ac_dir" && ac_dir=.
815 if test -f $ac_dir/$ac_word; then
816 ac_cv_prog_CC="cl"
817 break
818 fi
819 done
820 IFS="$ac_save_ifs"
821fi
822fi
823CC="$ac_cv_prog_CC"
824if test -n "$CC"; then
825 echo "$ac_t""$CC" 1>&6
826else
827 echo "$ac_t""no" 1>&6
828fi
829 ;;
830 esac
831 fi
832 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
833fi
834
835echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
836echo "configure:837: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
837
838ac_ext=c
839# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
840ac_cpp='$CPP $CPPFLAGS'
841ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
842ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
843cross_compiling=$ac_cv_prog_cc_cross
844
845cat > conftest.$ac_ext << EOF
846
847#line 848 "configure"
5d64ca4e
L
848#include "confdefs.h"
849
1ea788ee 850main(){return(0);}
5d64ca4e 851EOF
1ea788ee
AM
852if { (eval echo configure:853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
853 ac_cv_prog_cc_works=yes
854 # If we can't run a trivial program, we are probably using a cross compiler.
855 if (./conftest; exit) 2>/dev/null; then
856 ac_cv_prog_cc_cross=no
857 else
858 ac_cv_prog_cc_cross=yes
859 fi
5d64ca4e
L
860else
861 echo "configure: failed program was:" >&5
862 cat conftest.$ac_ext >&5
1ea788ee
AM
863 ac_cv_prog_cc_works=no
864fi
865rm -fr conftest*
866ac_ext=c
867# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
868ac_cpp='$CPP $CPPFLAGS'
869ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
870ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
871cross_compiling=$ac_cv_prog_cc_cross
872
873echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
874if test $ac_cv_prog_cc_works = no; then
875 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
876fi
877echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
878echo "configure:879: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
879echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
880cross_compiling=$ac_cv_prog_cc_cross
881
882echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
883echo "configure:884: checking whether we are using GNU C" >&5
884if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
886else
887 cat > conftest.c <<EOF
888#ifdef __GNUC__
889 yes;
890#endif
891EOF
892if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
893 ac_cv_prog_gcc=yes
894else
895 ac_cv_prog_gcc=no
896fi
897fi
898
899echo "$ac_t""$ac_cv_prog_gcc" 1>&6
900
901if test $ac_cv_prog_gcc = yes; then
902 GCC=yes
903else
904 GCC=
905fi
906
907ac_test_CFLAGS="${CFLAGS+set}"
908ac_save_CFLAGS="$CFLAGS"
909CFLAGS=
910echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
911echo "configure:912: checking whether ${CC-cc} accepts -g" >&5
912if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
914else
915 echo 'void f(){}' > conftest.c
916if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
917 ac_cv_prog_cc_g=yes
918else
919 ac_cv_prog_cc_g=no
5d64ca4e
L
920fi
921rm -f conftest*
922
923fi
1ea788ee
AM
924
925echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
926if test "$ac_test_CFLAGS" = set; then
927 CFLAGS="$ac_save_CFLAGS"
928elif test $ac_cv_prog_cc_g = yes; then
929 if test "$GCC" = yes; then
930 CFLAGS="-g -O2"
931 else
932 CFLAGS="-g"
933 fi
934else
935 if test "$GCC" = yes; then
936 CFLAGS="-O2"
937 else
938 CFLAGS=
939 fi
940fi
941
942echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
943echo "configure:944: checking for POSIXized ISC" >&5
944if test -d /etc/conf/kconfig.d &&
945 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
946then
5d64ca4e 947 echo "$ac_t""yes" 1>&6
1ea788ee
AM
948 ISC=yes # If later tests want to check for ISC.
949 cat >> confdefs.h <<\EOF
950#define _POSIX_SOURCE 1
951EOF
952
953 if test "$GCC" = yes; then
954 CC="$CC -posix"
955 else
956 CC="$CC -Xp"
957 fi
5d64ca4e
L
958else
959 echo "$ac_t""no" 1>&6
1ea788ee 960 ISC=
5d64ca4e
L
961fi
962
252b5132 963
27b7e12d 964BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
252b5132
RH
965# Find a good install program. We prefer a C program (faster),
966# so one script is as good as another. But avoid the broken or
967# incompatible versions:
968# SysV /etc/install, /usr/sbin/install
969# SunOS /usr/etc/install
970# IRIX /sbin/install
971# AIX /bin/install
972# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
973# AFS /usr/afsws/bin/install, which mishandles nonexistent args
974# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
975# ./install, which can be erroneously created by make from ./install.sh.
976echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1ea788ee 977echo "configure:978: checking for a BSD compatible install" >&5
252b5132
RH
978if test -z "$INSTALL"; then
979if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
981else
982 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
983 for ac_dir in $PATH; do
984 # Account for people who put trailing slashes in PATH elements.
985 case "$ac_dir/" in
986 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
987 *)
988 # OSF1 and SCO ODT 3.0 have their own names for install.
989 # Don't use installbsd from OSF since it installs stuff as root
990 # by default.
991 for ac_prog in ginstall scoinst install; do
992 if test -f $ac_dir/$ac_prog; then
993 if test $ac_prog = install &&
994 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
995 # AIX install. It has an incompatible calling convention.
996 :
997 else
998 ac_cv_path_install="$ac_dir/$ac_prog -c"
999 break 2
1000 fi
1001 fi
1002 done
1003 ;;
1004 esac
1005 done
1006 IFS="$ac_save_IFS"
1007
1008fi
1009 if test "${ac_cv_path_install+set}" = set; then
1010 INSTALL="$ac_cv_path_install"
1011 else
1012 # As a last resort, use the slow shell script. We don't cache a
1013 # path for INSTALL within a source directory, because that will
1014 # break other packages using the cache if that directory is
1015 # removed, or if the path is relative.
1016 INSTALL="$ac_install_sh"
1017 fi
1018fi
1019echo "$ac_t""$INSTALL" 1>&6
1020
1021# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1022# It thinks the first close brace ends the variable substitution.
1023test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1024
1025test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1026
1027test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1028
1029echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1ea788ee 1030echo "configure:1031: checking whether build environment is sane" >&5
252b5132
RH
1031# Just in case
1032sleep 1
1033echo timestamp > conftestfile
1034# Do `set' in a subshell so we don't clobber the current shell's
1035# arguments. Must try -L first in case configure is actually a
1036# symlink; some systems play weird games with the mod time of symlinks
1037# (eg FreeBSD returns the mod time of the symlink's containing
1038# directory).
1039if (
1040 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1041 if test "$*" = "X"; then
1042 # -L didn't work.
1043 set X `ls -t $srcdir/configure conftestfile`
1044 fi
1045 if test "$*" != "X $srcdir/configure conftestfile" \
1046 && test "$*" != "X conftestfile $srcdir/configure"; then
1047
1048 # If neither matched, then we have a broken ls. This can happen
1049 # if, for instance, CONFIG_SHELL is bash and it inherits a
1050 # broken ls alias from the environment. This has actually
1051 # happened. Such a system could not be considered "sane".
1052 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1053alias in your environment" 1>&2; exit 1; }
1054 fi
1055
1056 test "$2" = conftestfile
1057 )
1058then
1059 # Ok.
1060 :
1061else
1062 { echo "configure: error: newly created file is older than distributed files!
1063Check your system clock" 1>&2; exit 1; }
1064fi
1065rm -f conftest*
1066echo "$ac_t""yes" 1>&6
1067if test "$program_transform_name" = s,x,x,; then
1068 program_transform_name=
1069else
1070 # Double any \ or $. echo might interpret backslashes.
1071 cat <<\EOF_SED > conftestsed
1072s,\\,\\\\,g; s,\$,$$,g
1073EOF_SED
1074 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1075 rm -f conftestsed
1076fi
1077test "$program_prefix" != NONE &&
1078 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1079# Use a double $ so make ignores it.
1080test "$program_suffix" != NONE &&
1081 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1082
1083# sed with no file args requires a program.
1084test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1085
1086echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1ea788ee 1087echo "configure:1088: checking whether ${MAKE-make} sets \${MAKE}" >&5
252b5132
RH
1088set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1089if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1091else
1092 cat > conftestmake <<\EOF
1093all:
1094 @echo 'ac_maketemp="${MAKE}"'
1095EOF
1096# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1097eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1098if test -n "$ac_maketemp"; then
1099 eval ac_cv_prog_make_${ac_make}_set=yes
1100else
1101 eval ac_cv_prog_make_${ac_make}_set=no
1102fi
1103rm -f conftestmake
1104fi
1105if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1106 echo "$ac_t""yes" 1>&6
1107 SET_MAKE=
1108else
1109 echo "$ac_t""no" 1>&6
1110 SET_MAKE="MAKE=${MAKE-make}"
1111fi
1112
1113
1114PACKAGE=binutils
1115
27b7e12d 1116VERSION=${BFD_VERSION}
252b5132
RH
1117
1118if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1119 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1120fi
1121cat >> confdefs.h <<EOF
1122#define PACKAGE "$PACKAGE"
1123EOF
1124
1125cat >> confdefs.h <<EOF
1126#define VERSION "$VERSION"
1127EOF
1128
1129
1130
1131missing_dir=`cd $ac_aux_dir && pwd`
1132echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1ea788ee 1133echo "configure:1134: checking for working aclocal" >&5
252b5132
RH
1134# Run test in a subshell; some versions of sh will print an error if
1135# an executable is not found, even if stderr is redirected.
1136# Redirect stdin to placate older versions of autoconf. Sigh.
1137if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1138 ACLOCAL=aclocal
1139 echo "$ac_t""found" 1>&6
1140else
1141 ACLOCAL="$missing_dir/missing aclocal"
1142 echo "$ac_t""missing" 1>&6
1143fi
1144
1145echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1ea788ee 1146echo "configure:1147: checking for working autoconf" >&5
252b5132
RH
1147# Run test in a subshell; some versions of sh will print an error if
1148# an executable is not found, even if stderr is redirected.
1149# Redirect stdin to placate older versions of autoconf. Sigh.
1150if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1151 AUTOCONF=autoconf
1152 echo "$ac_t""found" 1>&6
1153else
1154 AUTOCONF="$missing_dir/missing autoconf"
1155 echo "$ac_t""missing" 1>&6
1156fi
1157
1158echo $ac_n "checking for working automake""... $ac_c" 1>&6
1ea788ee 1159echo "configure:1160: checking for working automake" >&5
252b5132
RH
1160# Run test in a subshell; some versions of sh will print an error if
1161# an executable is not found, even if stderr is redirected.
1162# Redirect stdin to placate older versions of autoconf. Sigh.
1163if (automake --version) < /dev/null > /dev/null 2>&1; then
1164 AUTOMAKE=automake
1165 echo "$ac_t""found" 1>&6
1166else
1167 AUTOMAKE="$missing_dir/missing automake"
1168 echo "$ac_t""missing" 1>&6
1169fi
1170
1171echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1ea788ee 1172echo "configure:1173: checking for working autoheader" >&5
252b5132
RH
1173# Run test in a subshell; some versions of sh will print an error if
1174# an executable is not found, even if stderr is redirected.
1175# Redirect stdin to placate older versions of autoconf. Sigh.
1176if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1177 AUTOHEADER=autoheader
1178 echo "$ac_t""found" 1>&6
1179else
1180 AUTOHEADER="$missing_dir/missing autoheader"
1181 echo "$ac_t""missing" 1>&6
1182fi
1183
1184echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1ea788ee 1185echo "configure:1186: checking for working makeinfo" >&5
252b5132
RH
1186# Run test in a subshell; some versions of sh will print an error if
1187# an executable is not found, even if stderr is redirected.
1188# Redirect stdin to placate older versions of autoconf. Sigh.
1189if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1190 MAKEINFO=makeinfo
1191 echo "$ac_t""found" 1>&6
1192else
1193 MAKEINFO="$missing_dir/missing makeinfo"
1194 echo "$ac_t""missing" 1>&6
1195fi
1196
1197
1198
1199# Check whether --enable-shared or --disable-shared was given.
1200if test "${enable_shared+set}" = set; then
1201 enableval="$enable_shared"
1202 p=${PACKAGE-default}
6be7c12c 1203case $enableval in
252b5132
RH
1204yes) enable_shared=yes ;;
1205no) enable_shared=no ;;
1206*)
1207 enable_shared=no
1208 # Look at the argument we got. We use all the common list separators.
1209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1210 for pkg in $enableval; do
1211 if test "X$pkg" = "X$p"; then
1212 enable_shared=yes
1213 fi
1214 done
1215 IFS="$ac_save_ifs"
1216 ;;
1217esac
1218else
1219 enable_shared=yes
1220fi
1221
1222# Check whether --enable-static or --disable-static was given.
1223if test "${enable_static+set}" = set; then
1224 enableval="$enable_static"
1225 p=${PACKAGE-default}
6be7c12c 1226case $enableval in
252b5132
RH
1227yes) enable_static=yes ;;
1228no) enable_static=no ;;
1229*)
1230 enable_static=no
1231 # Look at the argument we got. We use all the common list separators.
1232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1233 for pkg in $enableval; do
1234 if test "X$pkg" = "X$p"; then
1235 enable_static=yes
1236 fi
1237 done
1238 IFS="$ac_save_ifs"
1239 ;;
1240esac
1241else
1242 enable_static=yes
1243fi
1244
1245# Check whether --enable-fast-install or --disable-fast-install was given.
1246if test "${enable_fast_install+set}" = set; then
1247 enableval="$enable_fast_install"
1248 p=${PACKAGE-default}
6be7c12c 1249case $enableval in
252b5132
RH
1250yes) enable_fast_install=yes ;;
1251no) enable_fast_install=no ;;
1252*)
1253 enable_fast_install=no
1254 # Look at the argument we got. We use all the common list separators.
1255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1256 for pkg in $enableval; do
1257 if test "X$pkg" = "X$p"; then
1258 enable_fast_install=yes
1259 fi
1260 done
1261 IFS="$ac_save_ifs"
1262 ;;
1263esac
1264else
1265 enable_fast_install=yes
1266fi
1267
252b5132
RH
1268# Check whether --with-gnu-ld or --without-gnu-ld was given.
1269if test "${with_gnu_ld+set}" = set; then
1270 withval="$with_gnu_ld"
1271 test "$withval" = no || with_gnu_ld=yes
1272else
1273 with_gnu_ld=no
1274fi
1275
1276ac_prog=ld
6be7c12c 1277if test "$GCC" = yes; then
252b5132
RH
1278 # Check if gcc -print-prog-name=ld gives a path.
1279 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1ea788ee 1280echo "configure:1281: checking for ld used by GCC" >&5
ac48eca1
AO
1281 case $host in
1282 *-*-mingw*)
1283 # gcc leaves a trailing carriage return which upsets mingw
1284 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1285 *)
1286 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1287 esac
6be7c12c 1288 case $ac_prog in
252b5132 1289 # Accept absolute paths.
a74801ba 1290 [\\/]* | [A-Za-z]:[\\/]*)
252b5132
RH
1291 re_direlt='/[^/][^/]*/\.\./'
1292 # Canonicalize the path of ld
1293 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1294 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1295 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1296 done
1297 test -z "$LD" && LD="$ac_prog"
1298 ;;
1299 "")
1300 # If it fails, then pretend we aren't using GCC.
1301 ac_prog=ld
1302 ;;
1303 *)
1304 # If it is relative, then search for the first ld in PATH.
1305 with_gnu_ld=unknown
1306 ;;
1307 esac
1308elif test "$with_gnu_ld" = yes; then
1309 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1ea788ee 1310echo "configure:1311: checking for GNU ld" >&5
252b5132
RH
1311else
1312 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1ea788ee 1313echo "configure:1314: checking for non-GNU ld" >&5
252b5132 1314fi
6be7c12c 1315if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
252b5132
RH
1316 echo $ac_n "(cached) $ac_c" 1>&6
1317else
1318 if test -z "$LD"; then
a74801ba 1319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
1320 for ac_dir in $PATH; do
1321 test -z "$ac_dir" && ac_dir=.
a74801ba 1322 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6be7c12c 1323 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
1324 # Check to see if the program is GNU ld. I'd rather use --version,
1325 # but apparently some GNU ld's only accept -v.
1326 # Break only if it was the GNU/non-GNU ld that we prefer.
6be7c12c 1327 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
1328 test "$with_gnu_ld" != no && break
1329 else
1330 test "$with_gnu_ld" != yes && break
1331 fi
1332 fi
1333 done
1334 IFS="$ac_save_ifs"
1335else
6be7c12c 1336 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
1337fi
1338fi
1339
6be7c12c 1340LD="$lt_cv_path_LD"
252b5132
RH
1341if test -n "$LD"; then
1342 echo "$ac_t""$LD" 1>&6
1343else
1344 echo "$ac_t""no" 1>&6
1345fi
1346test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
252b5132 1347echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1ea788ee 1348echo "configure:1349: checking if the linker ($LD) is GNU ld" >&5
6be7c12c 1349if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
252b5132
RH
1350 echo $ac_n "(cached) $ac_c" 1>&6
1351else
1352 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1353if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6be7c12c 1354 lt_cv_prog_gnu_ld=yes
252b5132 1355else
6be7c12c 1356 lt_cv_prog_gnu_ld=no
252b5132
RH
1357fi
1358fi
1359
6be7c12c
AO
1360echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1361with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132
RH
1362
1363
ac48eca1 1364echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1ea788ee 1365echo "configure:1366: checking for $LD option to reload object files" >&5
ac48eca1
AO
1366if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1368else
1369 lt_cv_ld_reload_flag='-r'
1370fi
1371
1372echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1373reload_flag=$lt_cv_ld_reload_flag
1374test -n "$reload_flag" && reload_flag=" $reload_flag"
1375
252b5132 1376echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1ea788ee 1377echo "configure:1378: checking for BSD-compatible nm" >&5
6be7c12c 1378if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
252b5132
RH
1379 echo $ac_n "(cached) $ac_c" 1>&6
1380else
1381 if test -n "$NM"; then
1382 # Let the user override the test.
6be7c12c 1383 lt_cv_path_NM="$NM"
252b5132 1384else
a74801ba 1385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
1386 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1387 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
1388 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1389 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
1390 # Check to see if the nm accepts a BSD-compat flag.
1391 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1392 # nm: unknown option "B" ignored
58cccadb
AO
1393 # Tru64's nm complains that /dev/null is an invalid object file
1394 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
6be7c12c 1395 lt_cv_path_NM="$tmp_nm -B"
252b5132 1396 break
ac48eca1 1397 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
6be7c12c 1398 lt_cv_path_NM="$tmp_nm -p"
252b5132
RH
1399 break
1400 else
6be7c12c 1401 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
252b5132
RH
1402 continue # so that we can try to find one that supports BSD flags
1403 fi
1404 fi
1405 done
1406 IFS="$ac_save_ifs"
6be7c12c 1407 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
1408fi
1409fi
1410
6be7c12c 1411NM="$lt_cv_path_NM"
252b5132
RH
1412echo "$ac_t""$NM" 1>&6
1413
252b5132 1414echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1ea788ee 1415echo "configure:1416: checking whether ln -s works" >&5
252b5132
RH
1416if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1418else
1419 rm -f conftestdata
1420if ln -s X conftestdata 2>/dev/null
1421then
1422 rm -f conftestdata
1423 ac_cv_prog_LN_S="ln -s"
1424else
1425 ac_cv_prog_LN_S=ln
1426fi
1427fi
1428LN_S="$ac_cv_prog_LN_S"
1429if test "$ac_cv_prog_LN_S" = "ln -s"; then
1430 echo "$ac_t""yes" 1>&6
1431else
1432 echo "$ac_t""no" 1>&6
1433fi
1434
ac48eca1 1435echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1ea788ee 1436echo "configure:1437: checking how to recognise dependant libraries" >&5
ac48eca1
AO
1437if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1439else
d64552c5 1440 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
1441lt_cv_file_magic_test_file=
1442lt_cv_deplibs_check_method='unknown'
1443# Need to set the preceding variable on all platforms that support
1444# interlibrary dependencies.
1445# 'none' -- dependencies not supported.
1446# `unknown' -- same as none, but documents that we really don't know.
1447# 'pass_all' -- all dependencies passed with no checks.
1448# 'test_compile' -- check by making test program.
1449# 'file_magic [regex]' -- check by looking for files in library path
1450# which responds to the $file_magic_cmd with a given egrep regex.
1451# If you have `file' or equivalent on your system and you're not sure
1452# whether `pass_all' will *always* work, you probably want this one.
1453
6be7c12c
AO
1454case $host_os in
1455aix*)
ac48eca1
AO
1456 lt_cv_deplibs_check_method=pass_all
1457 ;;
1458
1459beos*)
1460 lt_cv_deplibs_check_method=pass_all
1461 ;;
1462
1463bsdi4*)
6be7c12c
AO
1464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1465 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
1466 lt_cv_file_magic_test_file=/shlib/libc.so
1467 ;;
1468
d64552c5 1469cygwin* | mingw* |pw32*)
ac48eca1 1470 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 1471 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
1472 ;;
1473
6be7c12c
AO
1474darwin* | rhapsody*)
1475 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1476 lt_cv_file_magic_cmd='/usr/bin/file -L'
1477 case "$host_os" in
1478 rhapsody* | darwin1.012)
1479 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1480 ;;
1481 *) # Darwin 1.3 on
1482 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1483 ;;
1484 esac
1485 ;;
1486
ac48eca1
AO
1487freebsd* )
1488 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6be7c12c 1489 case $host_cpu in
ac48eca1 1490 i*86 )
58cccadb
AO
1491 # Not sure whether the presence of OpenBSD here was a mistake.
1492 # Let's accept both of them until this is cleared up.
6be7c12c
AO
1493 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1494 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
1495 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1496 ;;
1497 esac
1498 else
1499 lt_cv_deplibs_check_method=pass_all
1500 fi
1501 ;;
1502
1503gnu*)
1504 lt_cv_deplibs_check_method=pass_all
1505 ;;
1506
6be7c12c 1507hpux10.20*|hpux11*)
4867be41
DJ
1508 case $host_cpu in
1509 hppa*)
1510 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1511 lt_cv_file_magic_cmd=/usr/bin/file
1512 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1513 ;;
1514 ia64*)
1515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1516 lt_cv_file_magic_cmd=/usr/bin/file
1517 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1518 ;;
1519 esac
ac48eca1
AO
1520 ;;
1521
1522irix5* | irix6*)
6be7c12c 1523 case $host_os in
ac48eca1
AO
1524 irix5*)
1525 # this will be overridden with pass_all, but let us keep it just in case
1526 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1527 ;;
1528 *)
6be7c12c 1529 case $LD in
ac48eca1
AO
1530 *-32|*"-32 ") libmagic=32-bit;;
1531 *-n32|*"-n32 ") libmagic=N32;;
1532 *-64|*"-64 ") libmagic=64-bit;;
1533 *) libmagic=never-match;;
1534 esac
1535 # this will be overridden with pass_all, but let us keep it just in case
6be7c12c
AO
1536 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1537 ;;
ac48eca1
AO
1538 esac
1539 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1540 lt_cv_deplibs_check_method=pass_all
1541 ;;
1542
1543# This must be Linux ELF.
58cccadb 1544linux-gnu*)
6be7c12c
AO
1545 case $host_cpu in
1546 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
1547 lt_cv_deplibs_check_method=pass_all ;;
1548 *)
1549 # glibc up to 2.1.1 does not perform some relocations on ARM
6be7c12c
AO
1550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1551 esac
ac48eca1
AO
1552 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1553 ;;
1554
1555netbsd*)
6be7c12c
AO
1556 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1557 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 1558 else
6be7c12c 1559 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1
AO
1560 fi
1561 ;;
1562
6be7c12c
AO
1563newsos6)
1564 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1565 lt_cv_file_magic_cmd=/usr/bin/file
1566 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1567 ;;
1568
ac48eca1
AO
1569osf3* | osf4* | osf5*)
1570 # this will be overridden with pass_all, but let us keep it just in case
1571 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1572 lt_cv_file_magic_test_file=/shlib/libc.so
1573 lt_cv_deplibs_check_method=pass_all
1574 ;;
1575
1576sco3.2v5*)
1577 lt_cv_deplibs_check_method=pass_all
1578 ;;
1579
1580solaris*)
1581 lt_cv_deplibs_check_method=pass_all
1582 lt_cv_file_magic_test_file=/lib/libc.so
1583 ;;
1584
6be7c12c
AO
1585sysv5uw[78]* | sysv4*uw2*)
1586 lt_cv_deplibs_check_method=pass_all
1587 ;;
1588
ac48eca1 1589sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6be7c12c 1590 case $host_vendor in
ac48eca1
AO
1591 ncr)
1592 lt_cv_deplibs_check_method=pass_all
1593 ;;
1594 motorola)
6be7c12c
AO
1595 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]'
1596 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
1597 ;;
1598 esac
1599 ;;
1600esac
1601
1602fi
1603
1604echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1605file_magic_cmd=$lt_cv_file_magic_cmd
1606deplibs_check_method=$lt_cv_deplibs_check_method
1607
1608echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1ea788ee 1609echo "configure:1610: checking for object suffix" >&5
ac48eca1
AO
1610if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1612else
1613 rm -f conftest*
1614echo 'int i = 1;' > conftest.$ac_ext
1ea788ee 1615if { (eval echo configure:1616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ac48eca1
AO
1616 for ac_file in conftest.*; do
1617 case $ac_file in
1618 *.c) ;;
1619 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1620 esac
1621 done
1622else
1623 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1624fi
1625rm -f conftest*
1626fi
1627
1628echo "$ac_t""$ac_cv_objext" 1>&6
1629OBJEXT=$ac_cv_objext
1630ac_objext=$ac_cv_objext
1631
1632
1633
1634echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1ea788ee 1635echo "configure:1636: checking for executable suffix" >&5
ac48eca1
AO
1636if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1638else
1639 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1640 ac_cv_exeext=.exe
1641else
1642 rm -f conftest*
1643 echo 'int main () { return 0; }' > conftest.$ac_ext
1644 ac_cv_exeext=
1ea788ee 1645 if { (eval echo configure:1646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
ac48eca1
AO
1646 for file in conftest.*; do
1647 case $file in
bb279dc0 1648 *.$ac_ext | *.c | *.o | *.obj) ;;
ac48eca1
AO
1649 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1650 esac
1651 done
1652 else
1653 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1654 fi
1655 rm -f conftest*
1656 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1657fi
1658fi
1659
1660EXEEXT=""
1661test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1662echo "$ac_t""${ac_cv_exeext}" 1>&6
1663ac_exeext=$EXEEXT
1664
1665if test $host != $build; then
1666 ac_tool_prefix=${host_alias}-
1667else
1668 ac_tool_prefix=
1669fi
1670
1671# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1672
1673# Only perform the check for file, if the check method requires it
6be7c12c 1674case $deplibs_check_method in
ac48eca1 1675file_magic*)
d64552c5 1676 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
ac48eca1 1677 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1ea788ee 1678echo "configure:1679: checking for ${ac_tool_prefix}file" >&5
d64552c5 1679if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
ac48eca1
AO
1680 echo $ac_n "(cached) $ac_c" 1>&6
1681else
6be7c12c 1682 case $MAGIC_CMD in
ac48eca1 1683 /*)
d64552c5 1684 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
1685 ;;
1686 ?:/*)
d64552c5 1687 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
1688 ;;
1689 *)
d64552c5 1690 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
1691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1692 ac_dummy="/usr/bin:$PATH"
1693 for ac_dir in $ac_dummy; do
1694 test -z "$ac_dir" && ac_dir=.
1695 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 1696 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 1697 if test -n "$file_magic_test_file"; then
6be7c12c 1698 case $deplibs_check_method in
ac48eca1
AO
1699 "file_magic "*)
1700 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 1701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
1702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1703 egrep "$file_magic_regex" > /dev/null; then
1704 :
1705 else
1706 cat <<EOF 1>&2
1707
1708*** Warning: the command libtool uses to detect shared libraries,
1709*** $file_magic_cmd, produces output that libtool cannot recognize.
1710*** The result is that libtool may fail to recognize shared libraries
1711*** as such. This will affect the creation of libtool libraries that
1712*** depend on shared libraries, but programs linked with such libtool
1713*** libraries will work regardless of this problem. Nevertheless, you
1714*** may want to report the problem to your system manager and/or to
1715*** bug-libtool@gnu.org
1716
1717EOF
1718 fi ;;
1719 esac
1720 fi
1721 break
1722 fi
1723 done
1724 IFS="$ac_save_ifs"
d64552c5 1725 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
1726 ;;
1727esac
1728fi
1729
d64552c5
AO
1730MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1731if test -n "$MAGIC_CMD"; then
1732 echo "$ac_t""$MAGIC_CMD" 1>&6
ac48eca1
AO
1733else
1734 echo "$ac_t""no" 1>&6
1735fi
1736
d64552c5 1737if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1
AO
1738 if test -n "$ac_tool_prefix"; then
1739 echo $ac_n "checking for file""... $ac_c" 1>&6
1ea788ee 1740echo "configure:1741: checking for file" >&5
d64552c5 1741if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
ac48eca1
AO
1742 echo $ac_n "(cached) $ac_c" 1>&6
1743else
6be7c12c 1744 case $MAGIC_CMD in
ac48eca1 1745 /*)
d64552c5 1746 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
1747 ;;
1748 ?:/*)
d64552c5 1749 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
1750 ;;
1751 *)
d64552c5 1752 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1754 ac_dummy="/usr/bin:$PATH"
1755 for ac_dir in $ac_dummy; do
1756 test -z "$ac_dir" && ac_dir=.
1757 if test -f $ac_dir/file; then
d64552c5 1758 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 1759 if test -n "$file_magic_test_file"; then
6be7c12c 1760 case $deplibs_check_method in
ac48eca1
AO
1761 "file_magic "*)
1762 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 1763 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
1764 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1765 egrep "$file_magic_regex" > /dev/null; then
1766 :
1767 else
1768 cat <<EOF 1>&2
1769
1770*** Warning: the command libtool uses to detect shared libraries,
1771*** $file_magic_cmd, produces output that libtool cannot recognize.
1772*** The result is that libtool may fail to recognize shared libraries
1773*** as such. This will affect the creation of libtool libraries that
1774*** depend on shared libraries, but programs linked with such libtool
1775*** libraries will work regardless of this problem. Nevertheless, you
1776*** may want to report the problem to your system manager and/or to
1777*** bug-libtool@gnu.org
1778
1779EOF
1780 fi ;;
1781 esac
1782 fi
1783 break
1784 fi
1785 done
1786 IFS="$ac_save_ifs"
d64552c5 1787 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
1788 ;;
1789esac
1790fi
1791
d64552c5
AO
1792MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1793if test -n "$MAGIC_CMD"; then
1794 echo "$ac_t""$MAGIC_CMD" 1>&6
ac48eca1
AO
1795else
1796 echo "$ac_t""no" 1>&6
1797fi
1798
1799 else
d64552c5 1800 MAGIC_CMD=:
ac48eca1
AO
1801 fi
1802fi
252b5132 1803
ac48eca1
AO
1804 fi
1805 ;;
a74801ba 1806esac
252b5132 1807
ac48eca1
AO
1808# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1809set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1810echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1ea788ee 1811echo "configure:1812: checking for $ac_word" >&5
ac48eca1
AO
1812if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1814else
1815 if test -n "$RANLIB"; then
1816 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1817else
1818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1819 ac_dummy="$PATH"
1820 for ac_dir in $ac_dummy; do
1821 test -z "$ac_dir" && ac_dir=.
1822 if test -f $ac_dir/$ac_word; then
1823 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1824 break
1825 fi
1826 done
1827 IFS="$ac_save_ifs"
1828fi
1829fi
1830RANLIB="$ac_cv_prog_RANLIB"
1831if test -n "$RANLIB"; then
1832 echo "$ac_t""$RANLIB" 1>&6
1833else
1834 echo "$ac_t""no" 1>&6
1835fi
1836
1837
1838if test -z "$ac_cv_prog_RANLIB"; then
1839if test -n "$ac_tool_prefix"; then
1840 # Extract the first word of "ranlib", so it can be a program name with args.
1841set dummy ranlib; ac_word=$2
1842echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1ea788ee 1843echo "configure:1844: checking for $ac_word" >&5
ac48eca1
AO
1844if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1846else
1847 if test -n "$RANLIB"; then
1848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1849else
1850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1851 ac_dummy="$PATH"
1852 for ac_dir in $ac_dummy; do
1853 test -z "$ac_dir" && ac_dir=.
1854 if test -f $ac_dir/$ac_word; then
1855 ac_cv_prog_RANLIB="ranlib"
1856 break
1857 fi
1858 done
1859 IFS="$ac_save_ifs"
1860 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1861fi
1862fi
1863RANLIB="$ac_cv_prog_RANLIB"
1864if test -n "$RANLIB"; then
1865 echo "$ac_t""$RANLIB" 1>&6
1866else
1867 echo "$ac_t""no" 1>&6
1868fi
1869
1870else
1871 RANLIB=":"
1872fi
1873fi
1874
1875# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1876set dummy ${ac_tool_prefix}strip; ac_word=$2
1877echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1ea788ee 1878echo "configure:1879: checking for $ac_word" >&5
ac48eca1
AO
1879if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1881else
1882 if test -n "$STRIP"; then
1883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1884else
1885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1886 ac_dummy="$PATH"
1887 for ac_dir in $ac_dummy; do
1888 test -z "$ac_dir" && ac_dir=.
1889 if test -f $ac_dir/$ac_word; then
1890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1891 break
1892 fi
1893 done
1894 IFS="$ac_save_ifs"
1895fi
1896fi
1897STRIP="$ac_cv_prog_STRIP"
1898if test -n "$STRIP"; then
1899 echo "$ac_t""$STRIP" 1>&6
1900else
1901 echo "$ac_t""no" 1>&6
1902fi
1903
1904
1905if test -z "$ac_cv_prog_STRIP"; then
1906if test -n "$ac_tool_prefix"; then
1907 # Extract the first word of "strip", so it can be a program name with args.
1908set dummy strip; ac_word=$2
1909echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1ea788ee 1910echo "configure:1911: checking for $ac_word" >&5
ac48eca1
AO
1911if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1913else
1914 if test -n "$STRIP"; then
1915 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1916else
1917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1918 ac_dummy="$PATH"
1919 for ac_dir in $ac_dummy; do
1920 test -z "$ac_dir" && ac_dir=.
1921 if test -f $ac_dir/$ac_word; then
1922 ac_cv_prog_STRIP="strip"
1923 break
1924 fi
1925 done
1926 IFS="$ac_save_ifs"
1927 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1928fi
1929fi
1930STRIP="$ac_cv_prog_STRIP"
1931if test -n "$STRIP"; then
1932 echo "$ac_t""$STRIP" 1>&6
1933else
1934 echo "$ac_t""no" 1>&6
1935fi
1936
1937else
1938 STRIP=":"
1939fi
1940fi
1941
1942
252b5132
RH
1943# Check for any special flags to pass to ltconfig.
1944libtool_flags="--cache-file=$cache_file"
1945test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1946test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1947test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
6be7c12c
AO
1948test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1949test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 1950
a74801ba
ILT
1951
1952# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1953if test "${enable_libtool_lock+set}" = set; then
1954 enableval="$enable_libtool_lock"
1955 :
1956fi
1957
1958test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1959test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1960
ac48eca1
AO
1961# Check whether --with-pic or --without-pic was given.
1962if test "${with_pic+set}" = set; then
1963 withval="$with_pic"
1964 pic_mode="$withval"
1965else
1966 pic_mode=default
1967fi
1968
1969test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1970test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1971
252b5132
RH
1972# Some flags need to be propagated to the compiler or linker for good
1973# libtool support.
6be7c12c 1974case $host in
252b5132
RH
1975*-*-irix6*)
1976 # Find out which ABI we are using.
1ea788ee
AM
1977 echo '#line 1978 "configure"' > conftest.$ac_ext
1978 if { (eval echo configure:1979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 1979 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
1980 *32-bit*)
1981 LD="${LD-ld} -32"
1982 ;;
1983 *N32*)
1984 LD="${LD-ld} -n32"
1985 ;;
1986 *64-bit*)
1987 LD="${LD-ld} -64"
1988 ;;
1989 esac
1990 fi
1991 rm -rf conftest*
1992 ;;
1993
4867be41
DJ
1994ia64-*-hpux*)
1995 # Find out which ABI we are using.
1996 echo 'int i;' > conftest.$ac_ext
1ea788ee 1997 if { (eval echo configure:1998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4867be41
DJ
1998 case "`/usr/bin/file conftest.o`" in
1999 *ELF-32*)
2000 HPUX_IA64_MODE="32"
2001 ;;
2002 *ELF-64*)
2003 HPUX_IA64_MODE="64"
2004 ;;
2005 esac
2006 fi
2007 rm -rf conftest*
2008 ;;
2009
252b5132
RH
2010*-*-sco3.2v5*)
2011 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2012 SAVE_CFLAGS="$CFLAGS"
2013 CFLAGS="$CFLAGS -belf"
2014 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1ea788ee 2015echo "configure:2016: checking whether the C compiler needs -belf" >&5
252b5132
RH
2016if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2018else
ac48eca1
AO
2019
2020 ac_ext=c
2021# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2022ac_cpp='$CPP $CPPFLAGS'
2023ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2024ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2025cross_compiling=$ac_cv_prog_cc_cross
2026
2027 cat > conftest.$ac_ext <<EOF
1ea788ee 2028#line 2029 "configure"
252b5132
RH
2029#include "confdefs.h"
2030
2031int main() {
2032
2033; return 0; }
2034EOF
1ea788ee 2035if { (eval echo configure:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
2036 rm -rf conftest*
2037 lt_cv_cc_needs_belf=yes
2038else
2039 echo "configure: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2041 rm -rf conftest*
2042 lt_cv_cc_needs_belf=no
2043fi
2044rm -f conftest*
ac48eca1
AO
2045 ac_ext=c
2046# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2047ac_cpp='$CPP $CPPFLAGS'
2048ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2049ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2050cross_compiling=$ac_cv_prog_cc_cross
2051
252b5132
RH
2052fi
2053
2054echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2055 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2056 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2057 CFLAGS="$SAVE_CFLAGS"
2058 fi
2059 ;;
2060
252b5132
RH
2061
2062esac
2063
252b5132
RH
2064
2065# Save cache, so that ltconfig can load it
2066cat > confcache <<\EOF
2067# This file is a shell script that caches the results of configure
2068# tests run on this system so they can be shared between configure
2069# scripts and configure runs. It is not useful on other systems.
2070# If it contains results you don't want to keep, you may remove or edit it.
2071#
2072# By default, configure uses ./config.cache as the cache file,
2073# creating it if it does not exist already. You can give configure
2074# the --cache-file=FILE option to use a different cache file; that is
2075# what configure does when it calls configure scripts in
2076# subdirectories, so they share the cache.
2077# Giving --cache-file=/dev/null disables caching, for debugging configure.
2078# config.status only pays attention to the cache file if you give it the
2079# --recheck option to rerun configure.
2080#
2081EOF
2082# The following way of writing the cache mishandles newlines in values,
2083# but we know of no workaround that is simple, portable, and efficient.
2084# So, don't put newlines in cache variables' values.
2085# Ultrix sh set writes to stderr and can't be redirected directly,
2086# and sets the high bit in the cache file unless we assign to the vars.
2087(set) 2>&1 |
2088 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2089 *ac_space=\ *)
2090 # `set' does not quote correctly, so add quotes (double-quote substitution
2091 # turns \\\\ into \\, and sed turns \\ into \).
2092 sed -n \
2093 -e "s/'/'\\\\''/g" \
2094 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2095 ;;
2096 *)
2097 # `set' quotes correctly as required by POSIX, so do not add quotes.
2098 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2099 ;;
2100 esac >> confcache
2101if cmp -s $cache_file confcache; then
2102 :
2103else
2104 if test -w $cache_file; then
2105 echo "updating cache $cache_file"
2106 cat confcache > $cache_file
2107 else
2108 echo "not updating unwritable cache $cache_file"
2109 fi
2110fi
2111rm -f confcache
2112
2113
2114# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 2115AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 2116MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
2117LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2118AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2119objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2120deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 2121${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 2122$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
252b5132
RH
2123|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2124
2125# Reload cache, that may have been modified by ltconfig
2126if test -r "$cache_file"; then
2127 echo "loading cache $cache_file"
2128 . $cache_file
2129else
2130 echo "creating cache $cache_file"
2131 > $cache_file
2132fi
2133
2134
2135# This can be used to rebuild libtool when needed
ac48eca1 2136LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
252b5132
RH
2137
2138# Always use our own libtool.
2139LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2140
2141# Redirect the config.log output again, so that the ltconfig log is not
2142# clobbered by the next message.
2143exec 5>>./config.log
2144
ac48eca1
AO
2145
2146
2147
2148
d64552c5 2149
ac48eca1 2150
252b5132
RH
2151# Check whether --enable-targets or --disable-targets was given.
2152if test "${enable_targets+set}" = set; then
2153 enableval="$enable_targets"
2154 case "${enableval}" in
2155 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2156 ;;
2157 no) enable_targets= ;;
2158 *) enable_targets=$enableval ;;
2159esac
2160fi
2161# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2162if test "${enable_commonbfdlib+set}" = set; then
2163 enableval="$enable_commonbfdlib"
2164 case "${enableval}" in
2165 yes) commonbfdlib=true ;;
2166 no) commonbfdlib=false ;;
2167 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2168esac
2169fi
2170
0218d1e4 2171build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
2172# Check whether --enable-build-warnings or --disable-build-warnings was given.
2173if test "${enable_build_warnings+set}" = set; then
2174 enableval="$enable_build_warnings"
2175 case "${enableval}" in
2176 yes) ;;
2177 no) build_warnings="-w";;
2178 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2179 build_warnings="${build_warnings} ${t}";;
2180 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2181 build_warnings="${t} ${build_warnings}";;
2182 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2183esac
2184if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2185 echo "Setting warning flags = $build_warnings" 6>&1
2186fi
2187fi
2188WARN_CFLAGS=""
2189if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2190 WARN_CFLAGS="${build_warnings}"
2191fi
2192
2193
252b5132
RH
2194
2195
2196
2197
2198if test -z "$target" ; then
2199 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2200fi
2201if test -z "$host" ; then
2202 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2203fi
2204
2205# Extract the first word of "gcc", so it can be a program name with args.
2206set dummy gcc; ac_word=$2
2207echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1ea788ee 2208echo "configure:2209: checking for $ac_word" >&5
252b5132
RH
2209if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2211else
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2214else
2215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2216 ac_dummy="$PATH"
2217 for ac_dir in $ac_dummy; do
2218 test -z "$ac_dir" && ac_dir=.
2219 if test -f $ac_dir/$ac_word; then
2220 ac_cv_prog_CC="gcc"
2221 break
2222 fi
2223 done
2224 IFS="$ac_save_ifs"
2225fi
2226fi
2227CC="$ac_cv_prog_CC"
2228if test -n "$CC"; then
2229 echo "$ac_t""$CC" 1>&6
2230else
2231 echo "$ac_t""no" 1>&6
2232fi
2233
2234if test -z "$CC"; then
2235 # Extract the first word of "cc", so it can be a program name with args.
2236set dummy cc; ac_word=$2
2237echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1ea788ee 2238echo "configure:2239: checking for $ac_word" >&5
252b5132
RH
2239if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2241else
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2244else
2245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2246 ac_prog_rejected=no
2247 ac_dummy="$PATH"
2248 for ac_dir in $ac_dummy; do
2249 test -z "$ac_dir" && ac_dir=.
2250 if test -f $ac_dir/$ac_word; then
2251 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2252 ac_prog_rejected=yes
2253 continue
2254 fi
2255 ac_cv_prog_CC="cc"
2256 break
2257 fi
2258 done
2259 IFS="$ac_save_ifs"
2260if test $ac_prog_rejected = yes; then
2261 # We found a bogon in the path, so make sure we never use it.
2262 set dummy $ac_cv_prog_CC
2263 shift
2264 if test $# -gt 0; then
2265 # We chose a different compiler from the bogus one.
2266 # However, it has the same basename, so the bogon will be chosen
2267 # first if we set CC to just the basename; use the full file name.
2268 shift
2269 set dummy "$ac_dir/$ac_word" "$@"
2270 shift
2271 ac_cv_prog_CC="$@"
2272 fi
2273fi
2274fi
2275fi
2276CC="$ac_cv_prog_CC"
2277if test -n "$CC"; then
2278 echo "$ac_t""$CC" 1>&6
2279else
2280 echo "$ac_t""no" 1>&6
2281fi
2282
2283 if test -z "$CC"; then
2284 case "`uname -s`" in
2285 *win32* | *WIN32*)
2286 # Extract the first word of "cl", so it can be a program name with args.
2287set dummy cl; ac_word=$2
2288echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1ea788ee 2289echo "configure:2290: checking for $ac_word" >&5
252b5132
RH
2290if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2292else
2293 if test -n "$CC"; then
2294 ac_cv_prog_CC="$CC" # Let the user override the test.
2295else
2296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2297 ac_dummy="$PATH"
2298 for ac_dir in $ac_dummy; do
2299 test -z "$ac_dir" && ac_dir=.
2300 if test -f $ac_dir/$ac_word; then
2301 ac_cv_prog_CC="cl"
2302 break
2303 fi
2304 done
2305 IFS="$ac_save_ifs"
2306fi
2307fi
2308CC="$ac_cv_prog_CC"
2309if test -n "$CC"; then
2310 echo "$ac_t""$CC" 1>&6
2311else
2312 echo "$ac_t""no" 1>&6
2313fi
2314 ;;
2315 esac
2316 fi
2317 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2318fi
2319
2320echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1ea788ee 2321echo "configure:2322: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
252b5132
RH
2322
2323ac_ext=c
2324# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2325ac_cpp='$CPP $CPPFLAGS'
2326ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2327ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2328cross_compiling=$ac_cv_prog_cc_cross
2329
2330cat > conftest.$ac_ext << EOF
2331
1ea788ee 2332#line 2333 "configure"
252b5132
RH
2333#include "confdefs.h"
2334
2335main(){return(0);}
2336EOF
1ea788ee 2337if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
2338 ac_cv_prog_cc_works=yes
2339 # If we can't run a trivial program, we are probably using a cross compiler.
2340 if (./conftest; exit) 2>/dev/null; then
2341 ac_cv_prog_cc_cross=no
2342 else
2343 ac_cv_prog_cc_cross=yes
2344 fi
2345else
2346 echo "configure: failed program was:" >&5
2347 cat conftest.$ac_ext >&5
2348 ac_cv_prog_cc_works=no
2349fi
2350rm -fr conftest*
2351ac_ext=c
2352# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2353ac_cpp='$CPP $CPPFLAGS'
2354ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2355ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2356cross_compiling=$ac_cv_prog_cc_cross
2357
2358echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2359if test $ac_cv_prog_cc_works = no; then
2360 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2361fi
2362echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1ea788ee 2363echo "configure:2364: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
252b5132
RH
2364echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2365cross_compiling=$ac_cv_prog_cc_cross
2366
2367echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1ea788ee 2368echo "configure:2369: checking whether we are using GNU C" >&5
252b5132
RH
2369if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2371else
2372 cat > conftest.c <<EOF
2373#ifdef __GNUC__
2374 yes;
2375#endif
2376EOF
1ea788ee 2377if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
252b5132
RH
2378 ac_cv_prog_gcc=yes
2379else
2380 ac_cv_prog_gcc=no
2381fi
2382fi
2383
2384echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2385
2386if test $ac_cv_prog_gcc = yes; then
2387 GCC=yes
2388else
2389 GCC=
2390fi
2391
2392ac_test_CFLAGS="${CFLAGS+set}"
2393ac_save_CFLAGS="$CFLAGS"
2394CFLAGS=
2395echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1ea788ee 2396echo "configure:2397: checking whether ${CC-cc} accepts -g" >&5
252b5132
RH
2397if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2399else
2400 echo 'void f(){}' > conftest.c
2401if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2402 ac_cv_prog_cc_g=yes
2403else
2404 ac_cv_prog_cc_g=no
2405fi
2406rm -f conftest*
2407
2408fi
2409
2410echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2411if test "$ac_test_CFLAGS" = set; then
2412 CFLAGS="$ac_save_CFLAGS"
2413elif test $ac_cv_prog_cc_g = yes; then
2414 if test "$GCC" = yes; then
2415 CFLAGS="-g -O2"
2416 else
2417 CFLAGS="-g"
2418 fi
2419else
2420 if test "$GCC" = yes; then
2421 CFLAGS="-O2"
2422 else
2423 CFLAGS=
2424 fi
2425fi
2426
2427
2428for ac_prog in 'bison -y' byacc
2429do
2430# Extract the first word of "$ac_prog", so it can be a program name with args.
2431set dummy $ac_prog; ac_word=$2
2432echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1ea788ee 2433echo "configure:2434: checking for $ac_word" >&5
252b5132
RH
2434if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2436else
2437 if test -n "$YACC"; then
2438 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2439else
2440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2441 ac_dummy="$PATH"
2442 for ac_dir in $ac_dummy; do
2443 test -z "$ac_dir" && ac_dir=.
2444 if test -f $ac_dir/$ac_word; then
2445 ac_cv_prog_YACC="$ac_prog"
2446 break
2447 fi
2448 done
2449 IFS="$ac_save_ifs"
2450fi
2451fi
2452YACC="$ac_cv_prog_YACC"
2453if test -n "$YACC"; then
2454 echo "$ac_t""$YACC" 1>&6
2455else
2456 echo "$ac_t""no" 1>&6
2457fi
2458
2459test -n "$YACC" && break
2460done
2461test -n "$YACC" || YACC="yacc"
2462
2463echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1ea788ee 2464echo "configure:2465: checking how to run the C preprocessor" >&5
252b5132
RH
2465# On Suns, sometimes $CPP names a directory.
2466if test -n "$CPP" && test -d "$CPP"; then
2467 CPP=
2468fi
2469if test -z "$CPP"; then
2470if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2472else
2473 # This must be in double quotes, not single quotes, because CPP may get
2474 # substituted into the Makefile and "${CC-cc}" will confuse make.
2475 CPP="${CC-cc} -E"
2476 # On the NeXT, cc -E runs the code through the compiler's parser,
2477 # not just through cpp.
2478 cat > conftest.$ac_ext <<EOF
1ea788ee 2479#line 2480 "configure"
252b5132
RH
2480#include "confdefs.h"
2481#include <assert.h>
2482Syntax Error
2483EOF
2484ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1ea788ee 2485{ (eval echo configure:2486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
2486ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2487if test -z "$ac_err"; then
2488 :
2489else
2490 echo "$ac_err" >&5
2491 echo "configure: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2493 rm -rf conftest*
2494 CPP="${CC-cc} -E -traditional-cpp"
2495 cat > conftest.$ac_ext <<EOF
1ea788ee 2496#line 2497 "configure"
252b5132
RH
2497#include "confdefs.h"
2498#include <assert.h>
2499Syntax Error
2500EOF
2501ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1ea788ee 2502{ (eval echo configure:2503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
2503ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2504if test -z "$ac_err"; then
2505 :
2506else
2507 echo "$ac_err" >&5
2508 echo "configure: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2510 rm -rf conftest*
2511 CPP="${CC-cc} -nologo -E"
2512 cat > conftest.$ac_ext <<EOF
1ea788ee 2513#line 2514 "configure"
252b5132
RH
2514#include "confdefs.h"
2515#include <assert.h>
2516Syntax Error
2517EOF
2518ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1ea788ee 2519{ (eval echo configure:2520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
2520ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2521if test -z "$ac_err"; then
2522 :
2523else
2524 echo "$ac_err" >&5
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2527 rm -rf conftest*
2528 CPP=/lib/cpp
2529fi
2530rm -f conftest*
2531fi
2532rm -f conftest*
2533fi
2534rm -f conftest*
2535 ac_cv_prog_CPP="$CPP"
2536fi
2537 CPP="$ac_cv_prog_CPP"
2538else
2539 ac_cv_prog_CPP="$CPP"
2540fi
2541echo "$ac_t""$CPP" 1>&6
2542
2543missing_dir=`cd $ac_aux_dir && pwd`
2544for ac_prog in flex lex
2545do
2546# Extract the first word of "$ac_prog", so it can be a program name with args.
2547set dummy $ac_prog; ac_word=$2
2548echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1ea788ee 2549echo "configure:2550: checking for $ac_word" >&5
252b5132
RH
2550if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2552else
2553 if test -n "$LEX"; then
2554 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2555else
2556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2557 ac_dummy="$PATH"
2558 for ac_dir in $ac_dummy; do
2559 test -z "$ac_dir" && ac_dir=.
2560 if test -f $ac_dir/$ac_word; then
2561 ac_cv_prog_LEX="$ac_prog"
2562 break
2563 fi
2564 done
2565 IFS="$ac_save_ifs"
2566fi
2567fi
2568LEX="$ac_cv_prog_LEX"
2569if test -n "$LEX"; then
2570 echo "$ac_t""$LEX" 1>&6
2571else
2572 echo "$ac_t""no" 1>&6
2573fi
2574
2575test -n "$LEX" && break
2576done
8ca8f343 2577test -n "$LEX" || LEX="$missing_dir/missing flex"
252b5132
RH
2578
2579# Extract the first word of "flex", so it can be a program name with args.
2580set dummy flex; ac_word=$2
2581echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1ea788ee 2582echo "configure:2583: checking for $ac_word" >&5
252b5132
RH
2583if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2585else
2586 if test -n "$LEX"; then
2587 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2588else
2589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2590 ac_dummy="$PATH"
2591 for ac_dir in $ac_dummy; do
2592 test -z "$ac_dir" && ac_dir=.
2593 if test -f $ac_dir/$ac_word; then
2594 ac_cv_prog_LEX="flex"
2595 break
2596 fi
2597 done
2598 IFS="$ac_save_ifs"
2599 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2600fi
2601fi
2602LEX="$ac_cv_prog_LEX"
2603if test -n "$LEX"; then
2604 echo "$ac_t""$LEX" 1>&6
2605else
2606 echo "$ac_t""no" 1>&6
2607fi
2608
2609if test -z "$LEXLIB"
2610then
2611 case "$LEX" in
2612 flex*) ac_lib=fl ;;
2613 *) ac_lib=l ;;
2614 esac
2615 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1ea788ee 2616echo "configure:2617: checking for yywrap in -l$ac_lib" >&5
252b5132
RH
2617ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2618if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2620else
2621 ac_save_LIBS="$LIBS"
2622LIBS="-l$ac_lib $LIBS"
2623cat > conftest.$ac_ext <<EOF
1ea788ee 2624#line 2625 "configure"
252b5132
RH
2625#include "confdefs.h"
2626/* Override any gcc2 internal prototype to avoid an error. */
2627/* We use char because int might match the return type of a gcc2
2628 builtin and then its argument prototype would still apply. */
2629char yywrap();
2630
2631int main() {
2632yywrap()
2633; return 0; }
2634EOF
1ea788ee 2635if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
2636 rm -rf conftest*
2637 eval "ac_cv_lib_$ac_lib_var=yes"
2638else
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2641 rm -rf conftest*
2642 eval "ac_cv_lib_$ac_lib_var=no"
2643fi
2644rm -f conftest*
2645LIBS="$ac_save_LIBS"
2646
2647fi
2648if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2649 echo "$ac_t""yes" 1>&6
2650 LEXLIB="-l$ac_lib"
2651else
2652 echo "$ac_t""no" 1>&6
2653fi
2654
2655fi
2656
2657echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1ea788ee 2658echo "configure:2659: checking lex output file root" >&5
252b5132
RH
2659if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2661else
2662 # The minimal lex program is just a single line: %%. But some broken lexes
2663# (Solaris, I think it was) want two %% lines, so accommodate them.
2664echo '%%
2665%%' | $LEX
2666if test -f lex.yy.c; then
2667 ac_cv_prog_lex_root=lex.yy
2668elif test -f lexyy.c; then
2669 ac_cv_prog_lex_root=lexyy
2670else
2671 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2672fi
2673fi
2674
2675echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2676LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2677
2678echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1ea788ee 2679echo "configure:2680: checking whether yytext is a pointer" >&5
252b5132
RH
2680if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2682else
2683 # POSIX says lex can declare yytext either as a pointer or an array; the
2684# default is implementation-dependent. Figure out which it is, since
2685# not all implementations provide the %pointer and %array declarations.
2686ac_cv_prog_lex_yytext_pointer=no
2687echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2688ac_save_LIBS="$LIBS"
2689LIBS="$LIBS $LEXLIB"
2690cat > conftest.$ac_ext <<EOF
1ea788ee 2691#line 2692 "configure"
252b5132
RH
2692#include "confdefs.h"
2693`cat $LEX_OUTPUT_ROOT.c`
2694int main() {
2695
2696; return 0; }
2697EOF
1ea788ee 2698if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
2699 rm -rf conftest*
2700 ac_cv_prog_lex_yytext_pointer=yes
2701else
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2704fi
2705rm -f conftest*
2706LIBS="$ac_save_LIBS"
2707rm -f "${LEX_OUTPUT_ROOT}.c"
2708
2709fi
2710
2711echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2712if test $ac_cv_prog_lex_yytext_pointer = yes; then
2713 cat >> confdefs.h <<\EOF
2714#define YYTEXT_POINTER 1
2715EOF
2716
2717fi
2718
2719
e8834cb7 2720ALL_LINGUAS="fr tr ja es sv"
ac48eca1
AO
2721# Extract the first word of "ranlib", so it can be a program name with args.
2722set dummy ranlib; ac_word=$2
2723echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1ea788ee 2724echo "configure:2725: checking for $ac_word" >&5
ac48eca1
AO
2725if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2727else
2728 if test -n "$RANLIB"; then
2729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2730else
2731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2732 ac_dummy="$PATH"
2733 for ac_dir in $ac_dummy; do
2734 test -z "$ac_dir" && ac_dir=.
2735 if test -f $ac_dir/$ac_word; then
2736 ac_cv_prog_RANLIB="ranlib"
2737 break
2738 fi
2739 done
2740 IFS="$ac_save_ifs"
2741 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2742fi
2743fi
2744RANLIB="$ac_cv_prog_RANLIB"
2745if test -n "$RANLIB"; then
2746 echo "$ac_t""$RANLIB" 1>&6
2747else
2748 echo "$ac_t""no" 1>&6
2749fi
2750
252b5132 2751echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1ea788ee 2752echo "configure:2753: checking for ANSI C header files" >&5
252b5132
RH
2753if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2755else
2756 cat > conftest.$ac_ext <<EOF
1ea788ee 2757#line 2758 "configure"
252b5132
RH
2758#include "confdefs.h"
2759#include <stdlib.h>
2760#include <stdarg.h>
2761#include <string.h>
2762#include <float.h>
2763EOF
2764ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1ea788ee 2765{ (eval echo configure:2766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
2766ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2767if test -z "$ac_err"; then
2768 rm -rf conftest*
2769 ac_cv_header_stdc=yes
2770else
2771 echo "$ac_err" >&5
2772 echo "configure: failed program was:" >&5
2773 cat conftest.$ac_ext >&5
2774 rm -rf conftest*
2775 ac_cv_header_stdc=no
2776fi
2777rm -f conftest*
2778
2779if test $ac_cv_header_stdc = yes; then
2780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2781cat > conftest.$ac_ext <<EOF
1ea788ee 2782#line 2783 "configure"
252b5132
RH
2783#include "confdefs.h"
2784#include <string.h>
2785EOF
2786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2787 egrep "memchr" >/dev/null 2>&1; then
2788 :
2789else
2790 rm -rf conftest*
2791 ac_cv_header_stdc=no
2792fi
2793rm -f conftest*
2794
2795fi
2796
2797if test $ac_cv_header_stdc = yes; then
2798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2799cat > conftest.$ac_ext <<EOF
1ea788ee 2800#line 2801 "configure"
252b5132
RH
2801#include "confdefs.h"
2802#include <stdlib.h>
2803EOF
2804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2805 egrep "free" >/dev/null 2>&1; then
2806 :
2807else
2808 rm -rf conftest*
2809 ac_cv_header_stdc=no
2810fi
2811rm -f conftest*
2812
2813fi
2814
2815if test $ac_cv_header_stdc = yes; then
2816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2817if test "$cross_compiling" = yes; then
2818 :
2819else
2820 cat > conftest.$ac_ext <<EOF
1ea788ee 2821#line 2822 "configure"
252b5132
RH
2822#include "confdefs.h"
2823#include <ctype.h>
2824#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2825#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2826#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2827int main () { int i; for (i = 0; i < 256; i++)
2828if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2829exit (0); }
2830
2831EOF
1ea788ee 2832if { (eval echo configure:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
252b5132
RH
2833then
2834 :
2835else
2836 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2838 rm -fr conftest*
2839 ac_cv_header_stdc=no
2840fi
2841rm -fr conftest*
2842fi
2843
2844fi
2845fi
2846
2847echo "$ac_t""$ac_cv_header_stdc" 1>&6
2848if test $ac_cv_header_stdc = yes; then
2849 cat >> confdefs.h <<\EOF
2850#define STDC_HEADERS 1
2851EOF
2852
2853fi
2854
2855echo $ac_n "checking for working const""... $ac_c" 1>&6
1ea788ee 2856echo "configure:2857: checking for working const" >&5
252b5132
RH
2857if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2859else
2860 cat > conftest.$ac_ext <<EOF
1ea788ee 2861#line 2862 "configure"
252b5132
RH
2862#include "confdefs.h"
2863
2864int main() {
2865
2866/* Ultrix mips cc rejects this. */
2867typedef int charset[2]; const charset x;
2868/* SunOS 4.1.1 cc rejects this. */
2869char const *const *ccp;
2870char **p;
2871/* NEC SVR4.0.2 mips cc rejects this. */
2872struct point {int x, y;};
2873static struct point const zero = {0,0};
2874/* AIX XL C 1.02.0.0 rejects this.
2875 It does not let you subtract one const X* pointer from another in an arm
2876 of an if-expression whose if-part is not a constant expression */
2877const char *g = "string";
2878ccp = &g + (g ? g-g : 0);
2879/* HPUX 7.0 cc rejects these. */
2880++ccp;
2881p = (char**) ccp;
2882ccp = (char const *const *) p;
2883{ /* SCO 3.2v4 cc rejects this. */
2884 char *t;
2885 char const *s = 0 ? (char *) 0 : (char const *) 0;
2886
2887 *t++ = 0;
2888}
2889{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2890 int x[] = {25, 17};
2891 const int *foo = &x[0];
2892 ++foo;
2893}
2894{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2895 typedef const int *iptr;
2896 iptr p = 0;
2897 ++p;
2898}
2899{ /* AIX XL C 1.02.0.0 rejects this saying
2900 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2901 struct s { int j; const int *ap[3]; };
2902 struct s *b; b->j = 5;
2903}
2904{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2905 const int foo = 10;
2906}
2907
2908; return 0; }
2909EOF
1ea788ee 2910if { (eval echo configure:2911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
2911 rm -rf conftest*
2912 ac_cv_c_const=yes
2913else
2914 echo "configure: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2916 rm -rf conftest*
2917 ac_cv_c_const=no
2918fi
2919rm -f conftest*
2920fi
2921
2922echo "$ac_t""$ac_cv_c_const" 1>&6
2923if test $ac_cv_c_const = no; then
2924 cat >> confdefs.h <<\EOF
2925#define const
2926EOF
2927
2928fi
2929
2930echo $ac_n "checking for inline""... $ac_c" 1>&6
1ea788ee 2931echo "configure:2932: checking for inline" >&5
252b5132
RH
2932if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2933 echo $ac_n "(cached) $ac_c" 1>&6
2934else
2935 ac_cv_c_inline=no
2936for ac_kw in inline __inline__ __inline; do
2937 cat > conftest.$ac_ext <<EOF
1ea788ee 2938#line 2939 "configure"
252b5132
RH
2939#include "confdefs.h"
2940
2941int main() {
2942} $ac_kw foo() {
2943; return 0; }
2944EOF
1ea788ee 2945if { (eval echo configure:2946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
2946 rm -rf conftest*
2947 ac_cv_c_inline=$ac_kw; break
2948else
2949 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2951fi
2952rm -f conftest*
2953done
2954
2955fi
2956
2957echo "$ac_t""$ac_cv_c_inline" 1>&6
2958case "$ac_cv_c_inline" in
2959 inline | yes) ;;
2960 no) cat >> confdefs.h <<\EOF
2961#define inline
2962EOF
2963 ;;
2964 *) cat >> confdefs.h <<EOF
2965#define inline $ac_cv_c_inline
2966EOF
2967 ;;
2968esac
2969
2970echo $ac_n "checking for off_t""... $ac_c" 1>&6
1ea788ee 2971echo "configure:2972: checking for off_t" >&5
252b5132
RH
2972if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2974else
2975 cat > conftest.$ac_ext <<EOF
1ea788ee 2976#line 2977 "configure"
252b5132
RH
2977#include "confdefs.h"
2978#include <sys/types.h>
2979#if STDC_HEADERS
2980#include <stdlib.h>
2981#include <stddef.h>
2982#endif
2983EOF
2984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2985 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2986 rm -rf conftest*
2987 ac_cv_type_off_t=yes
2988else
2989 rm -rf conftest*
2990 ac_cv_type_off_t=no
2991fi
2992rm -f conftest*
2993
2994fi
2995echo "$ac_t""$ac_cv_type_off_t" 1>&6
2996if test $ac_cv_type_off_t = no; then
2997 cat >> confdefs.h <<\EOF
2998#define off_t long
2999EOF
3000
3001fi
3002
3003echo $ac_n "checking for size_t""... $ac_c" 1>&6
1ea788ee 3004echo "configure:3005: checking for size_t" >&5
252b5132
RH
3005if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3007else
3008 cat > conftest.$ac_ext <<EOF
1ea788ee 3009#line 3010 "configure"
252b5132
RH
3010#include "confdefs.h"
3011#include <sys/types.h>
3012#if STDC_HEADERS
3013#include <stdlib.h>
3014#include <stddef.h>
3015#endif
3016EOF
3017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3018 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3019 rm -rf conftest*
3020 ac_cv_type_size_t=yes
3021else
3022 rm -rf conftest*
3023 ac_cv_type_size_t=no
3024fi
3025rm -f conftest*
3026
3027fi
3028echo "$ac_t""$ac_cv_type_size_t" 1>&6
3029if test $ac_cv_type_size_t = no; then
3030 cat >> confdefs.h <<\EOF
3031#define size_t unsigned
3032EOF
3033
3034fi
3035
3036# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3037# for constant arguments. Useless!
3038echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1ea788ee 3039echo "configure:3040: checking for working alloca.h" >&5
252b5132
RH
3040if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3042else
3043 cat > conftest.$ac_ext <<EOF
1ea788ee 3044#line 3045 "configure"
252b5132
RH
3045#include "confdefs.h"
3046#include <alloca.h>
3047int main() {
3048char *p = alloca(2 * sizeof(int));
3049; return 0; }
3050EOF
1ea788ee 3051if { (eval echo configure:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3052 rm -rf conftest*
3053 ac_cv_header_alloca_h=yes
3054else
3055 echo "configure: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3057 rm -rf conftest*
3058 ac_cv_header_alloca_h=no
3059fi
3060rm -f conftest*
3061fi
3062
3063echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3064if test $ac_cv_header_alloca_h = yes; then
3065 cat >> confdefs.h <<\EOF
3066#define HAVE_ALLOCA_H 1
3067EOF
3068
3069fi
3070
3071echo $ac_n "checking for alloca""... $ac_c" 1>&6
1ea788ee 3072echo "configure:3073: checking for alloca" >&5
252b5132
RH
3073if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3075else
3076 cat > conftest.$ac_ext <<EOF
1ea788ee 3077#line 3078 "configure"
252b5132
RH
3078#include "confdefs.h"
3079
3080#ifdef __GNUC__
3081# define alloca __builtin_alloca
3082#else
3083# ifdef _MSC_VER
3084# include <malloc.h>
3085# define alloca _alloca
3086# else
3087# if HAVE_ALLOCA_H
3088# include <alloca.h>
3089# else
3090# ifdef _AIX
3091 #pragma alloca
3092# else
3093# ifndef alloca /* predefined by HP cc +Olibcalls */
3094char *alloca ();
3095# endif
3096# endif
3097# endif
3098# endif
3099#endif
3100
3101int main() {
3102char *p = (char *) alloca(1);
3103; return 0; }
3104EOF
1ea788ee 3105if { (eval echo configure:3106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3106 rm -rf conftest*
3107 ac_cv_func_alloca_works=yes
3108else
3109 echo "configure: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3111 rm -rf conftest*
3112 ac_cv_func_alloca_works=no
3113fi
3114rm -f conftest*
3115fi
3116
3117echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3118if test $ac_cv_func_alloca_works = yes; then
3119 cat >> confdefs.h <<\EOF
3120#define HAVE_ALLOCA 1
3121EOF
3122
3123fi
3124
3125if test $ac_cv_func_alloca_works = no; then
3126 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3127 # that cause trouble. Some versions do not even contain alloca or
3128 # contain a buggy version. If you still want to use their alloca,
3129 # use ar to extract alloca.o from them instead of compiling alloca.c.
3130 ALLOCA=alloca.${ac_objext}
3131 cat >> confdefs.h <<\EOF
3132#define C_ALLOCA 1
3133EOF
3134
3135
3136echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1ea788ee 3137echo "configure:3138: checking whether alloca needs Cray hooks" >&5
252b5132
RH
3138if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3140else
3141 cat > conftest.$ac_ext <<EOF
1ea788ee 3142#line 3143 "configure"
252b5132
RH
3143#include "confdefs.h"
3144#if defined(CRAY) && ! defined(CRAY2)
3145webecray
3146#else
3147wenotbecray
3148#endif
3149
3150EOF
3151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3152 egrep "webecray" >/dev/null 2>&1; then
3153 rm -rf conftest*
3154 ac_cv_os_cray=yes
3155else
3156 rm -rf conftest*
3157 ac_cv_os_cray=no
3158fi
3159rm -f conftest*
3160
3161fi
3162
3163echo "$ac_t""$ac_cv_os_cray" 1>&6
3164if test $ac_cv_os_cray = yes; then
3165for ac_func in _getb67 GETB67 getb67; do
3166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1ea788ee 3167echo "configure:3168: checking for $ac_func" >&5
252b5132
RH
3168if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3170else
3171 cat > conftest.$ac_ext <<EOF
1ea788ee 3172#line 3173 "configure"
252b5132
RH
3173#include "confdefs.h"
3174/* System header to define __stub macros and hopefully few prototypes,
3175 which can conflict with char $ac_func(); below. */
3176#include <assert.h>
3177/* Override any gcc2 internal prototype to avoid an error. */
3178/* We use char because int might match the return type of a gcc2
3179 builtin and then its argument prototype would still apply. */
3180char $ac_func();
3181
3182int main() {
3183
3184/* The GNU C library defines this for functions which it implements
3185 to always fail with ENOSYS. Some functions are actually named
3186 something starting with __ and the normal name is an alias. */
3187#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3188choke me
3189#else
3190$ac_func();
3191#endif
3192
3193; return 0; }
3194EOF
1ea788ee 3195if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3196 rm -rf conftest*
3197 eval "ac_cv_func_$ac_func=yes"
3198else
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3201 rm -rf conftest*
3202 eval "ac_cv_func_$ac_func=no"
3203fi
3204rm -f conftest*
3205fi
3206
3207if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3208 echo "$ac_t""yes" 1>&6
3209 cat >> confdefs.h <<EOF
3210#define CRAY_STACKSEG_END $ac_func
3211EOF
3212
3213 break
3214else
3215 echo "$ac_t""no" 1>&6
3216fi
3217
3218done
3219fi
3220
3221echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1ea788ee 3222echo "configure:3223: checking stack direction for C alloca" >&5
252b5132
RH
3223if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3225else
3226 if test "$cross_compiling" = yes; then
3227 ac_cv_c_stack_direction=0
3228else
3229 cat > conftest.$ac_ext <<EOF
1ea788ee 3230#line 3231 "configure"
252b5132
RH
3231#include "confdefs.h"
3232find_stack_direction ()
3233{
3234 static char *addr = 0;
3235 auto char dummy;
3236 if (addr == 0)
3237 {
3238 addr = &dummy;
3239 return find_stack_direction ();
3240 }
3241 else
3242 return (&dummy > addr) ? 1 : -1;
3243}
3244main ()
3245{
3246 exit (find_stack_direction() < 0);
3247}
3248EOF
1ea788ee 3249if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
252b5132
RH
3250then
3251 ac_cv_c_stack_direction=1
3252else
3253 echo "configure: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3255 rm -fr conftest*
3256 ac_cv_c_stack_direction=-1
3257fi
3258rm -fr conftest*
3259fi
3260
3261fi
3262
3263echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3264cat >> confdefs.h <<EOF
3265#define STACK_DIRECTION $ac_cv_c_stack_direction
3266EOF
3267
3268fi
3269
bb279dc0 3270for ac_hdr in unistd.h
252b5132
RH
3271do
3272ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3273echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1ea788ee 3274echo "configure:3275: checking for $ac_hdr" >&5
252b5132
RH
3275if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3277else
3278 cat > conftest.$ac_ext <<EOF
1ea788ee 3279#line 3280 "configure"
252b5132
RH
3280#include "confdefs.h"
3281#include <$ac_hdr>
3282EOF
3283ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1ea788ee 3284{ (eval echo configure:3285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
3285ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3286if test -z "$ac_err"; then
3287 rm -rf conftest*
3288 eval "ac_cv_header_$ac_safe=yes"
3289else
3290 echo "$ac_err" >&5
3291 echo "configure: failed program was:" >&5
3292 cat conftest.$ac_ext >&5
3293 rm -rf conftest*
3294 eval "ac_cv_header_$ac_safe=no"
3295fi
3296rm -f conftest*
3297fi
3298if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3299 echo "$ac_t""yes" 1>&6
3300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3301 cat >> confdefs.h <<EOF
3302#define $ac_tr_hdr 1
3303EOF
3304
3305else
3306 echo "$ac_t""no" 1>&6
3307fi
3308done
3309
3310for ac_func in getpagesize
3311do
3312echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1ea788ee 3313echo "configure:3314: checking for $ac_func" >&5
252b5132
RH
3314if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3316else
3317 cat > conftest.$ac_ext <<EOF
1ea788ee 3318#line 3319 "configure"
252b5132
RH
3319#include "confdefs.h"
3320/* System header to define __stub macros and hopefully few prototypes,
3321 which can conflict with char $ac_func(); below. */
3322#include <assert.h>
3323/* Override any gcc2 internal prototype to avoid an error. */
3324/* We use char because int might match the return type of a gcc2
3325 builtin and then its argument prototype would still apply. */
3326char $ac_func();
3327
3328int main() {
3329
3330/* The GNU C library defines this for functions which it implements
3331 to always fail with ENOSYS. Some functions are actually named
3332 something starting with __ and the normal name is an alias. */
3333#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3334choke me
3335#else
3336$ac_func();
3337#endif
3338
3339; return 0; }
3340EOF
1ea788ee 3341if { (eval echo configure:3342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3342 rm -rf conftest*
3343 eval "ac_cv_func_$ac_func=yes"
3344else
3345 echo "configure: failed program was:" >&5
3346 cat conftest.$ac_ext >&5
3347 rm -rf conftest*
3348 eval "ac_cv_func_$ac_func=no"
3349fi
3350rm -f conftest*
3351fi
3352
3353if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3354 echo "$ac_t""yes" 1>&6
3355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3356 cat >> confdefs.h <<EOF
3357#define $ac_tr_func 1
3358EOF
3359
3360else
3361 echo "$ac_t""no" 1>&6
3362fi
3363done
3364
3365echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1ea788ee 3366echo "configure:3367: checking for working mmap" >&5
252b5132
RH
3367if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3369else
3370 if test "$cross_compiling" = yes; then
3371 ac_cv_func_mmap_fixed_mapped=no
3372else
3373 cat > conftest.$ac_ext <<EOF
1ea788ee 3374#line 3375 "configure"
252b5132
RH
3375#include "confdefs.h"
3376
3377/* Thanks to Mike Haertel and Jim Avera for this test.
3378 Here is a matrix of mmap possibilities:
3379 mmap private not fixed
3380 mmap private fixed at somewhere currently unmapped
3381 mmap private fixed at somewhere already mapped
3382 mmap shared not fixed
3383 mmap shared fixed at somewhere currently unmapped
3384 mmap shared fixed at somewhere already mapped
3385 For private mappings, we should verify that changes cannot be read()
3386 back from the file, nor mmap's back from the file at a different
3387 address. (There have been systems where private was not correctly
3388 implemented like the infamous i386 svr4.0, and systems where the
3389 VM page cache was not coherent with the filesystem buffer cache
3390 like early versions of FreeBSD and possibly contemporary NetBSD.)
3391 For shared mappings, we should conversely verify that changes get
3392 propogated back to all the places they're supposed to be.
3393
3394 Grep wants private fixed already mapped.
3395 The main things grep needs to know about mmap are:
3396 * does it exist and is it safe to write into the mmap'd area
3397 * how to use it (BSD variants) */
3398#include <sys/types.h>
3399#include <fcntl.h>
3400#include <sys/mman.h>
3401
3402/* This mess was copied from the GNU getpagesize.h. */
3403#ifndef HAVE_GETPAGESIZE
bb279dc0
ZW
3404# ifdef HAVE_UNISTD_H
3405# include <unistd.h>
3406# endif
252b5132
RH
3407
3408/* Assume that all systems that can run configure have sys/param.h. */
3409# ifndef HAVE_SYS_PARAM_H
3410# define HAVE_SYS_PARAM_H 1
3411# endif
3412
3413# ifdef _SC_PAGESIZE
3414# define getpagesize() sysconf(_SC_PAGESIZE)
3415# else /* no _SC_PAGESIZE */
3416# ifdef HAVE_SYS_PARAM_H
3417# include <sys/param.h>
3418# ifdef EXEC_PAGESIZE
3419# define getpagesize() EXEC_PAGESIZE
3420# else /* no EXEC_PAGESIZE */
3421# ifdef NBPG
3422# define getpagesize() NBPG * CLSIZE
3423# ifndef CLSIZE
3424# define CLSIZE 1
3425# endif /* no CLSIZE */
3426# else /* no NBPG */
3427# ifdef NBPC
3428# define getpagesize() NBPC
3429# else /* no NBPC */
3430# ifdef PAGESIZE
3431# define getpagesize() PAGESIZE
3432# endif /* PAGESIZE */
3433# endif /* no NBPC */
3434# endif /* no NBPG */
3435# endif /* no EXEC_PAGESIZE */
3436# else /* no HAVE_SYS_PARAM_H */
3437# define getpagesize() 8192 /* punt totally */
3438# endif /* no HAVE_SYS_PARAM_H */
3439# endif /* no _SC_PAGESIZE */
3440
3441#endif /* no HAVE_GETPAGESIZE */
3442
3443#ifdef __cplusplus
3444extern "C" { void *malloc(unsigned); }
3445#else
3446char *malloc();
3447#endif
3448
3449int
3450main()
3451{
3452 char *data, *data2, *data3;
3453 int i, pagesize;
3454 int fd;
3455
3456 pagesize = getpagesize();
3457
3458 /*
3459 * First, make a file with some known garbage in it.
3460 */
3461 data = malloc(pagesize);
3462 if (!data)
3463 exit(1);
3464 for (i = 0; i < pagesize; ++i)
3465 *(data + i) = rand();
3466 umask(0);
3467 fd = creat("conftestmmap", 0600);
3468 if (fd < 0)
3469 exit(1);
3470 if (write(fd, data, pagesize) != pagesize)
3471 exit(1);
3472 close(fd);
3473
3474 /*
3475 * Next, try to mmap the file at a fixed address which
3476 * already has something else allocated at it. If we can,
3477 * also make sure that we see the same garbage.
3478 */
3479 fd = open("conftestmmap", O_RDWR);
3480 if (fd < 0)
3481 exit(1);
3482 data2 = malloc(2 * pagesize);
3483 if (!data2)
3484 exit(1);
3485 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3486 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3487 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3488 exit(1);
3489 for (i = 0; i < pagesize; ++i)
3490 if (*(data + i) != *(data2 + i))
3491 exit(1);
3492
3493 /*
3494 * Finally, make sure that changes to the mapped area
3495 * do not percolate back to the file as seen by read().
3496 * (This is a bug on some variants of i386 svr4.0.)
3497 */
3498 for (i = 0; i < pagesize; ++i)
3499 *(data2 + i) = *(data2 + i) + 1;
3500 data3 = malloc(pagesize);
3501 if (!data3)
3502 exit(1);
3503 if (read(fd, data3, pagesize) != pagesize)
3504 exit(1);
3505 for (i = 0; i < pagesize; ++i)
3506 if (*(data + i) != *(data3 + i))
3507 exit(1);
3508 close(fd);
3509 unlink("conftestmmap");
3510 exit(0);
3511}
3512
3513EOF
bb279dc0 3514if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
252b5132
RH
3515then
3516 ac_cv_func_mmap_fixed_mapped=yes
3517else
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520 rm -fr conftest*
3521 ac_cv_func_mmap_fixed_mapped=no
3522fi
3523rm -fr conftest*
3524fi
3525
3526fi
3527
3528echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3529if test $ac_cv_func_mmap_fixed_mapped = yes; then
3530 cat >> confdefs.h <<\EOF
3531#define HAVE_MMAP 1
3532EOF
3533
3534fi
3535
3536
3537 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3538unistd.h values.h sys/param.h
3539do
3540ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3541echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
bb279dc0 3542echo "configure:3543: checking for $ac_hdr" >&5
252b5132
RH
3543if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3545else
3546 cat > conftest.$ac_ext <<EOF
bb279dc0 3547#line 3548 "configure"
252b5132
RH
3548#include "confdefs.h"
3549#include <$ac_hdr>
3550EOF
3551ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bb279dc0 3552{ (eval echo configure:3553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
3553ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3554if test -z "$ac_err"; then
3555 rm -rf conftest*
3556 eval "ac_cv_header_$ac_safe=yes"
3557else
3558 echo "$ac_err" >&5
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3561 rm -rf conftest*
3562 eval "ac_cv_header_$ac_safe=no"
3563fi
3564rm -f conftest*
3565fi
3566if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3567 echo "$ac_t""yes" 1>&6
3568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3569 cat >> confdefs.h <<EOF
3570#define $ac_tr_hdr 1
3571EOF
3572
3573else
3574 echo "$ac_t""no" 1>&6
3575fi
3576done
3577
3578 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3579__argz_count __argz_stringify __argz_next
3580do
3581echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bb279dc0 3582echo "configure:3583: checking for $ac_func" >&5
252b5132
RH
3583if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3585else
3586 cat > conftest.$ac_ext <<EOF
bb279dc0 3587#line 3588 "configure"
252b5132
RH
3588#include "confdefs.h"
3589/* System header to define __stub macros and hopefully few prototypes,
3590 which can conflict with char $ac_func(); below. */
3591#include <assert.h>
3592/* Override any gcc2 internal prototype to avoid an error. */
3593/* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
3595char $ac_func();
3596
3597int main() {
3598
3599/* The GNU C library defines this for functions which it implements
3600 to always fail with ENOSYS. Some functions are actually named
3601 something starting with __ and the normal name is an alias. */
3602#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3603choke me
3604#else
3605$ac_func();
3606#endif
3607
3608; return 0; }
3609EOF
bb279dc0 3610if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3611 rm -rf conftest*
3612 eval "ac_cv_func_$ac_func=yes"
3613else
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3616 rm -rf conftest*
3617 eval "ac_cv_func_$ac_func=no"
3618fi
3619rm -f conftest*
3620fi
3621
3622if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3623 echo "$ac_t""yes" 1>&6
3624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3625 cat >> confdefs.h <<EOF
3626#define $ac_tr_func 1
3627EOF
3628
3629else
3630 echo "$ac_t""no" 1>&6
3631fi
3632done
3633
3634
3635 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3636 for ac_func in stpcpy
3637do
3638echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bb279dc0 3639echo "configure:3640: checking for $ac_func" >&5
252b5132
RH
3640if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3642else
3643 cat > conftest.$ac_ext <<EOF
bb279dc0 3644#line 3645 "configure"
252b5132
RH
3645#include "confdefs.h"
3646/* System header to define __stub macros and hopefully few prototypes,
3647 which can conflict with char $ac_func(); below. */
3648#include <assert.h>
3649/* Override any gcc2 internal prototype to avoid an error. */
3650/* We use char because int might match the return type of a gcc2
3651 builtin and then its argument prototype would still apply. */
3652char $ac_func();
3653
3654int main() {
3655
3656/* The GNU C library defines this for functions which it implements
3657 to always fail with ENOSYS. Some functions are actually named
3658 something starting with __ and the normal name is an alias. */
3659#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3660choke me
3661#else
3662$ac_func();
3663#endif
3664
3665; return 0; }
3666EOF
bb279dc0 3667if { (eval echo configure:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3668 rm -rf conftest*
3669 eval "ac_cv_func_$ac_func=yes"
3670else
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3673 rm -rf conftest*
3674 eval "ac_cv_func_$ac_func=no"
3675fi
3676rm -f conftest*
3677fi
3678
3679if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3680 echo "$ac_t""yes" 1>&6
3681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3682 cat >> confdefs.h <<EOF
3683#define $ac_tr_func 1
3684EOF
3685
3686else
3687 echo "$ac_t""no" 1>&6
3688fi
3689done
3690
3691 fi
3692 if test "${ac_cv_func_stpcpy}" = "yes"; then
3693 cat >> confdefs.h <<\EOF
3694#define HAVE_STPCPY 1
3695EOF
3696
3697 fi
3698
3699 if test $ac_cv_header_locale_h = yes; then
3700 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
bb279dc0 3701echo "configure:3702: checking for LC_MESSAGES" >&5
252b5132
RH
3702if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3704else
3705 cat > conftest.$ac_ext <<EOF
bb279dc0 3706#line 3707 "configure"
252b5132
RH
3707#include "confdefs.h"
3708#include <locale.h>
3709int main() {
3710return LC_MESSAGES
3711; return 0; }
3712EOF
bb279dc0 3713if { (eval echo configure:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3714 rm -rf conftest*
3715 am_cv_val_LC_MESSAGES=yes
3716else
3717 echo "configure: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3719 rm -rf conftest*
3720 am_cv_val_LC_MESSAGES=no
3721fi
3722rm -f conftest*
3723fi
3724
3725echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3726 if test $am_cv_val_LC_MESSAGES = yes; then
3727 cat >> confdefs.h <<\EOF
3728#define HAVE_LC_MESSAGES 1
3729EOF
3730
3731 fi
3732 fi
3733 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
bb279dc0 3734echo "configure:3735: checking whether NLS is requested" >&5
252b5132
RH
3735 # Check whether --enable-nls or --disable-nls was given.
3736if test "${enable_nls+set}" = set; then
3737 enableval="$enable_nls"
3738 USE_NLS=$enableval
3739else
3740 USE_NLS=yes
3741fi
3742
3743 echo "$ac_t""$USE_NLS" 1>&6
3744
3745
3746 USE_INCLUDED_LIBINTL=no
3747
3748 if test "$USE_NLS" = "yes"; then
3749 cat >> confdefs.h <<\EOF
3750#define ENABLE_NLS 1
3751EOF
3752
3753 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
bb279dc0 3754echo "configure:3755: checking whether included gettext is requested" >&5
252b5132
RH
3755 # Check whether --with-included-gettext or --without-included-gettext was given.
3756if test "${with_included_gettext+set}" = set; then
3757 withval="$with_included_gettext"
3758 nls_cv_force_use_gnu_gettext=$withval
3759else
3760 nls_cv_force_use_gnu_gettext=no
3761fi
3762
3763 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3764
3765 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3766 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3767 nls_cv_header_intl=
3768 nls_cv_header_libgt=
3769 CATOBJEXT=NONE
3770
3771 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3772echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
bb279dc0 3773echo "configure:3774: checking for libintl.h" >&5
252b5132
RH
3774if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3776else
3777 cat > conftest.$ac_ext <<EOF
bb279dc0 3778#line 3779 "configure"
252b5132
RH
3779#include "confdefs.h"
3780#include <libintl.h>
3781EOF
3782ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bb279dc0 3783{ (eval echo configure:3784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
3784ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3785if test -z "$ac_err"; then
3786 rm -rf conftest*
3787 eval "ac_cv_header_$ac_safe=yes"
3788else
3789 echo "$ac_err" >&5
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3792 rm -rf conftest*
3793 eval "ac_cv_header_$ac_safe=no"
3794fi
3795rm -f conftest*
3796fi
3797if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3798 echo "$ac_t""yes" 1>&6
3799 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
bb279dc0 3800echo "configure:3801: checking for gettext in libc" >&5
252b5132
RH
3801if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3803else
3804 cat > conftest.$ac_ext <<EOF
bb279dc0 3805#line 3806 "configure"
252b5132
RH
3806#include "confdefs.h"
3807#include <libintl.h>
3808int main() {
3809return (int) gettext ("")
3810; return 0; }
3811EOF
bb279dc0 3812if { (eval echo configure:3813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3813 rm -rf conftest*
3814 gt_cv_func_gettext_libc=yes
3815else
3816 echo "configure: failed program was:" >&5
3817 cat conftest.$ac_ext >&5
3818 rm -rf conftest*
3819 gt_cv_func_gettext_libc=no
3820fi
3821rm -f conftest*
3822fi
3823
3824echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3825
3826 if test "$gt_cv_func_gettext_libc" != "yes"; then
3827 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
bb279dc0 3828echo "configure:3829: checking for bindtextdomain in -lintl" >&5
252b5132
RH
3829ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3830if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3832else
3833 ac_save_LIBS="$LIBS"
3834LIBS="-lintl $LIBS"
3835cat > conftest.$ac_ext <<EOF
bb279dc0 3836#line 3837 "configure"
252b5132
RH
3837#include "confdefs.h"
3838/* Override any gcc2 internal prototype to avoid an error. */
3839/* We use char because int might match the return type of a gcc2
3840 builtin and then its argument prototype would still apply. */
3841char bindtextdomain();
3842
3843int main() {
3844bindtextdomain()
3845; return 0; }
3846EOF
bb279dc0 3847if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3848 rm -rf conftest*
3849 eval "ac_cv_lib_$ac_lib_var=yes"
3850else
3851 echo "configure: failed program was:" >&5
3852 cat conftest.$ac_ext >&5
3853 rm -rf conftest*
3854 eval "ac_cv_lib_$ac_lib_var=no"
3855fi
3856rm -f conftest*
3857LIBS="$ac_save_LIBS"
3858
3859fi
3860if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3861 echo "$ac_t""yes" 1>&6
3862 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
bb279dc0 3863echo "configure:3864: checking for gettext in libintl" >&5
252b5132
RH
3864if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3865 echo $ac_n "(cached) $ac_c" 1>&6
3866else
3867 cat > conftest.$ac_ext <<EOF
bb279dc0 3868#line 3869 "configure"
252b5132
RH
3869#include "confdefs.h"
3870
3871int main() {
3872return (int) gettext ("")
3873; return 0; }
3874EOF
bb279dc0 3875if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3876 rm -rf conftest*
3877 gt_cv_func_gettext_libintl=yes
3878else
3879 echo "configure: failed program was:" >&5
3880 cat conftest.$ac_ext >&5
3881 rm -rf conftest*
3882 gt_cv_func_gettext_libintl=no
3883fi
3884rm -f conftest*
3885fi
3886
3887echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3888else
3889 echo "$ac_t""no" 1>&6
3890fi
3891
3892 fi
3893
3894 if test "$gt_cv_func_gettext_libc" = "yes" \
3895 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3896 cat >> confdefs.h <<\EOF
3897#define HAVE_GETTEXT 1
3898EOF
3899
3900 # Extract the first word of "msgfmt", so it can be a program name with args.
3901set dummy msgfmt; ac_word=$2
3902echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bb279dc0 3903echo "configure:3904: checking for $ac_word" >&5
252b5132
RH
3904if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3906else
3907 case "$MSGFMT" in
3908 /*)
3909 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3910 ;;
3911 *)
3912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3913 for ac_dir in $PATH; do
3914 test -z "$ac_dir" && ac_dir=.
3915 if test -f $ac_dir/$ac_word; then
3916 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3917 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3918 break
3919 fi
3920 fi
3921 done
3922 IFS="$ac_save_ifs"
3923 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3924 ;;
3925esac
3926fi
3927MSGFMT="$ac_cv_path_MSGFMT"
3928if test -n "$MSGFMT"; then
3929 echo "$ac_t""$MSGFMT" 1>&6
3930else
3931 echo "$ac_t""no" 1>&6
3932fi
3933 if test "$MSGFMT" != "no"; then
3934 for ac_func in dcgettext
3935do
3936echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bb279dc0 3937echo "configure:3938: checking for $ac_func" >&5
252b5132
RH
3938if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3940else
3941 cat > conftest.$ac_ext <<EOF
bb279dc0 3942#line 3943 "configure"
252b5132
RH
3943#include "confdefs.h"
3944/* System header to define __stub macros and hopefully few prototypes,
3945 which can conflict with char $ac_func(); below. */
3946#include <assert.h>
3947/* Override any gcc2 internal prototype to avoid an error. */
3948/* We use char because int might match the return type of a gcc2
3949 builtin and then its argument prototype would still apply. */
3950char $ac_func();
3951
3952int main() {
3953
3954/* The GNU C library defines this for functions which it implements
3955 to always fail with ENOSYS. Some functions are actually named
3956 something starting with __ and the normal name is an alias. */
3957#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3958choke me
3959#else
3960$ac_func();
3961#endif
3962
3963; return 0; }
3964EOF
bb279dc0 3965if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3966 rm -rf conftest*
3967 eval "ac_cv_func_$ac_func=yes"
3968else
3969 echo "configure: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3971 rm -rf conftest*
3972 eval "ac_cv_func_$ac_func=no"
3973fi
3974rm -f conftest*
3975fi
3976
3977if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3978 echo "$ac_t""yes" 1>&6
3979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3980 cat >> confdefs.h <<EOF
3981#define $ac_tr_func 1
3982EOF
3983
3984else
3985 echo "$ac_t""no" 1>&6
3986fi
3987done
3988
3989 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3990set dummy gmsgfmt; ac_word=$2
3991echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bb279dc0 3992echo "configure:3993: checking for $ac_word" >&5
252b5132
RH
3993if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3995else
3996 case "$GMSGFMT" in
3997 /*)
3998 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3999 ;;
4000 ?:/*)
4001 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4002 ;;
4003 *)
4004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4005 ac_dummy="$PATH"
4006 for ac_dir in $ac_dummy; do
4007 test -z "$ac_dir" && ac_dir=.
4008 if test -f $ac_dir/$ac_word; then
4009 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4010 break
4011 fi
4012 done
4013 IFS="$ac_save_ifs"
4014 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4015 ;;
4016esac
4017fi
4018GMSGFMT="$ac_cv_path_GMSGFMT"
4019if test -n "$GMSGFMT"; then
4020 echo "$ac_t""$GMSGFMT" 1>&6
4021else
4022 echo "$ac_t""no" 1>&6
4023fi
4024
4025 # Extract the first word of "xgettext", so it can be a program name with args.
4026set dummy xgettext; ac_word=$2
4027echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bb279dc0 4028echo "configure:4029: checking for $ac_word" >&5
252b5132
RH
4029if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4030 echo $ac_n "(cached) $ac_c" 1>&6
4031else
4032 case "$XGETTEXT" in
4033 /*)
4034 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4035 ;;
4036 *)
4037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4038 for ac_dir in $PATH; do
4039 test -z "$ac_dir" && ac_dir=.
4040 if test -f $ac_dir/$ac_word; then
4041 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4042 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4043 break
4044 fi
4045 fi
4046 done
4047 IFS="$ac_save_ifs"
4048 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4049 ;;
4050esac
4051fi
4052XGETTEXT="$ac_cv_path_XGETTEXT"
4053if test -n "$XGETTEXT"; then
4054 echo "$ac_t""$XGETTEXT" 1>&6
4055else
4056 echo "$ac_t""no" 1>&6
4057fi
4058
4059 cat > conftest.$ac_ext <<EOF
bb279dc0 4060#line 4061 "configure"
252b5132
RH
4061#include "confdefs.h"
4062
4063int main() {
4064extern int _nl_msg_cat_cntr;
4065 return _nl_msg_cat_cntr
4066; return 0; }
4067EOF
bb279dc0 4068if { (eval echo configure:4069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
4069 rm -rf conftest*
4070 CATOBJEXT=.gmo
4071 DATADIRNAME=share
4072else
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4075 rm -rf conftest*
4076 CATOBJEXT=.mo
4077 DATADIRNAME=lib
4078fi
4079rm -f conftest*
4080 INSTOBJEXT=.mo
4081 fi
4082 fi
4083
4084else
4085 echo "$ac_t""no" 1>&6
4086fi
4087
4088
4089
4090 if test "$CATOBJEXT" = "NONE"; then
4091 nls_cv_use_gnu_gettext=yes
4092 fi
4093 fi
4094
4095 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4096 INTLOBJS="\$(GETTOBJS)"
4097 # Extract the first word of "msgfmt", so it can be a program name with args.
4098set dummy msgfmt; ac_word=$2
4099echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bb279dc0 4100echo "configure:4101: checking for $ac_word" >&5
252b5132
RH
4101if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4103else
4104 case "$MSGFMT" in
4105 /*)
4106 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4107 ;;
4108 *)
4109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4110 for ac_dir in $PATH; do
4111 test -z "$ac_dir" && ac_dir=.
4112 if test -f $ac_dir/$ac_word; then
4113 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4114 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4115 break
4116 fi
4117 fi
4118 done
4119 IFS="$ac_save_ifs"
4120 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4121 ;;
4122esac
4123fi
4124MSGFMT="$ac_cv_path_MSGFMT"
4125if test -n "$MSGFMT"; then
4126 echo "$ac_t""$MSGFMT" 1>&6
4127else
4128 echo "$ac_t""no" 1>&6
4129fi
4130
4131 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4132set dummy gmsgfmt; ac_word=$2
4133echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bb279dc0 4134echo "configure:4135: checking for $ac_word" >&5
252b5132
RH
4135if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4137else
4138 case "$GMSGFMT" in
4139 /*)
4140 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4141 ;;
4142 ?:/*)
4143 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4144 ;;
4145 *)
4146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4147 ac_dummy="$PATH"
4148 for ac_dir in $ac_dummy; do
4149 test -z "$ac_dir" && ac_dir=.
4150 if test -f $ac_dir/$ac_word; then
4151 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4152 break
4153 fi
4154 done
4155 IFS="$ac_save_ifs"
4156 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4157 ;;
4158esac
4159fi
4160GMSGFMT="$ac_cv_path_GMSGFMT"
4161if test -n "$GMSGFMT"; then
4162 echo "$ac_t""$GMSGFMT" 1>&6
4163else
4164 echo "$ac_t""no" 1>&6
4165fi
4166
4167 # Extract the first word of "xgettext", so it can be a program name with args.
4168set dummy xgettext; ac_word=$2
4169echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bb279dc0 4170echo "configure:4171: checking for $ac_word" >&5
252b5132
RH
4171if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4172 echo $ac_n "(cached) $ac_c" 1>&6
4173else
4174 case "$XGETTEXT" in
4175 /*)
4176 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4177 ;;
4178 *)
4179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4180 for ac_dir in $PATH; do
4181 test -z "$ac_dir" && ac_dir=.
4182 if test -f $ac_dir/$ac_word; then
4183 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4184 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4185 break
4186 fi
4187 fi
4188 done
4189 IFS="$ac_save_ifs"
4190 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4191 ;;
4192esac
4193fi
4194XGETTEXT="$ac_cv_path_XGETTEXT"
4195if test -n "$XGETTEXT"; then
4196 echo "$ac_t""$XGETTEXT" 1>&6
4197else
4198 echo "$ac_t""no" 1>&6
4199fi
4200
4201
4202 USE_INCLUDED_LIBINTL=yes
4203 CATOBJEXT=.gmo
4204 INSTOBJEXT=.mo
4205 DATADIRNAME=share
4206 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4207 INTLLIBS=$INTLDEPS
4208 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4209 nls_cv_header_intl=libintl.h
4210 nls_cv_header_libgt=libgettext.h
4211 fi
4212
4213 if test "$XGETTEXT" != ":"; then
4214 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4215 : ;
4216 else
4217 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4218 XGETTEXT=":"
4219 fi
4220 fi
4221
4222 # We need to process the po/ directory.
4223 POSUB=po
4224 else
4225 DATADIRNAME=share
4226 nls_cv_header_intl=libintl.h
4227 nls_cv_header_libgt=libgettext.h
4228 fi
4229
4230 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4231 # because some of the sources are only built for this goal.
4232 if test "$PACKAGE" = gettext; then
4233 USE_NLS=yes
4234 USE_INCLUDED_LIBINTL=yes
4235 fi
4236
4237 for lang in $ALL_LINGUAS; do
4238 GMOFILES="$GMOFILES $lang.gmo"
4239 POFILES="$POFILES $lang.po"
4240 done
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255 if test "x$CATOBJEXT" != "x"; then
4256 if test "x$ALL_LINGUAS" = "x"; then
4257 LINGUAS=
4258 else
4259 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
bb279dc0 4260echo "configure:4261: checking for catalogs to be installed" >&5
252b5132
RH
4261 NEW_LINGUAS=
4262 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4263 case "$ALL_LINGUAS" in
4264 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4265 esac
4266 done
4267 LINGUAS=$NEW_LINGUAS
4268 echo "$ac_t""$LINGUAS" 1>&6
4269 fi
4270
4271 if test -n "$LINGUAS"; then
4272 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4273 fi
4274 fi
4275
4276 if test $ac_cv_header_locale_h = yes; then
4277 INCLUDE_LOCALE_H="#include <locale.h>"
4278 else
4279 INCLUDE_LOCALE_H="\
4280/* The system does not provide the header <locale.h>. Take care yourself. */"
4281 fi
4282
4283
4284 if test -f $srcdir/po2tbl.sed.in; then
4285 if test "$CATOBJEXT" = ".cat"; then
4286 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4287echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
bb279dc0 4288echo "configure:4289: checking for linux/version.h" >&5
252b5132
RH
4289if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4291else
4292 cat > conftest.$ac_ext <<EOF
bb279dc0 4293#line 4294 "configure"
252b5132
RH
4294#include "confdefs.h"
4295#include <linux/version.h>
4296EOF
4297ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bb279dc0 4298{ (eval echo configure:4299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
4299ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4300if test -z "$ac_err"; then
4301 rm -rf conftest*
4302 eval "ac_cv_header_$ac_safe=yes"
4303else
4304 echo "$ac_err" >&5
4305 echo "configure: failed program was:" >&5
4306 cat conftest.$ac_ext >&5
4307 rm -rf conftest*
4308 eval "ac_cv_header_$ac_safe=no"
4309fi
4310rm -f conftest*
4311fi
4312if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4313 echo "$ac_t""yes" 1>&6
4314 msgformat=linux
4315else
4316 echo "$ac_t""no" 1>&6
4317msgformat=xopen
4318fi
4319
4320
4321 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4322 fi
4323 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4324 $srcdir/po2tbl.sed.in > po2tbl.sed
4325 fi
4326
4327 if test "$PACKAGE" = "gettext"; then
4328 GT_NO="#NO#"
4329 GT_YES=
4330 else
4331 GT_NO=
4332 GT_YES="#YES#"
4333 fi
4334
4335
4336
4337 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4338
4339
4340 l=
4341
4342
fcd8210c 4343 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
4344 test -d po || mkdir po
4345 if test "x$srcdir" != "x."; then
4346 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4347 posrcprefix="$srcdir/"
4348 else
4349 posrcprefix="../$srcdir/"
4350 fi
4351 else
4352 posrcprefix="../"
4353 fi
4354 rm -f po/POTFILES
4355 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4356 < $srcdir/po/POTFILES.in > po/POTFILES
4357 fi
4358
4359
4360echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
bb279dc0 4361echo "configure:4362: checking whether to enable maintainer-specific portions of Makefiles" >&5
252b5132
RH
4362 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4363if test "${enable_maintainer_mode+set}" = set; then
4364 enableval="$enable_maintainer_mode"
4365 USE_MAINTAINER_MODE=$enableval
4366else
4367 USE_MAINTAINER_MODE=no
4368fi
4369
4370 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4371
4372
4373if test $USE_MAINTAINER_MODE = yes; then
4374 MAINTAINER_MODE_TRUE=
4375 MAINTAINER_MODE_FALSE='#'
4376else
4377 MAINTAINER_MODE_TRUE='#'
4378 MAINTAINER_MODE_FALSE=
4379fi
4380 MAINT=$MAINTAINER_MODE_TRUE
4381
4382
252b5132
RH
4383
4384
4385echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
bb279dc0 4386echo "configure:4387: checking for executable suffix" >&5
252b5132
RH
4387if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4389else
4390 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4391 ac_cv_exeext=.exe
4392else
4393 rm -f conftest*
4394 echo 'int main () { return 0; }' > conftest.$ac_ext
4395 ac_cv_exeext=
bb279dc0 4396 if { (eval echo configure:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
252b5132
RH
4397 for file in conftest.*; do
4398 case $file in
bb279dc0 4399 *.$ac_ext | *.c | *.o | *.obj) ;;
252b5132
RH
4400 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4401 esac
4402 done
4403 else
4404 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4405 fi
4406 rm -f conftest*
4407 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4408fi
4409fi
4410
4411EXEEXT=""
4412test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4413echo "$ac_t""${ac_cv_exeext}" 1>&6
4414ac_exeext=$EXEEXT
4415
2481e6a2
ILT
4416if test -n "$EXEEXT"; then
4417 cat >> confdefs.h <<\EOF
4418#define HAVE_EXECUTABLE_SUFFIX 1
4419EOF
4420
4421fi
bb0cb4db
ILT
4422cat >> confdefs.h <<EOF
4423#define EXECUTABLE_SUFFIX "${EXEEXT}"
4424EOF
4425
252b5132
RH
4426
4427# host-specific stuff:
4428
4429HDEFINES=
4430
4431. ${srcdir}/../bfd/configure.host
4432
4433
4434AR=${AR-ar}
4435
4436# Extract the first word of "ranlib", so it can be a program name with args.
4437set dummy ranlib; ac_word=$2
4438echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bb279dc0 4439echo "configure:4440: checking for $ac_word" >&5
252b5132
RH
4440if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4442else
4443 if test -n "$RANLIB"; then
4444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4445else
4446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4447 ac_dummy="$PATH"
4448 for ac_dir in $ac_dummy; do
4449 test -z "$ac_dir" && ac_dir=.
4450 if test -f $ac_dir/$ac_word; then
4451 ac_cv_prog_RANLIB="ranlib"
4452 break
4453 fi
4454 done
4455 IFS="$ac_save_ifs"
4456 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4457fi
4458fi
4459RANLIB="$ac_cv_prog_RANLIB"
4460if test -n "$RANLIB"; then
4461 echo "$ac_t""$RANLIB" 1>&6
4462else
4463 echo "$ac_t""no" 1>&6
4464fi
4465
4466# Find a good install program. We prefer a C program (faster),
4467# so one script is as good as another. But avoid the broken or
4468# incompatible versions:
4469# SysV /etc/install, /usr/sbin/install
4470# SunOS /usr/etc/install
4471# IRIX /sbin/install
4472# AIX /bin/install
4473# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4474# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4475# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4476# ./install, which can be erroneously created by make from ./install.sh.
4477echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
bb279dc0 4478echo "configure:4479: checking for a BSD compatible install" >&5
252b5132
RH
4479if test -z "$INSTALL"; then
4480if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4482else
4483 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4484 for ac_dir in $PATH; do
4485 # Account for people who put trailing slashes in PATH elements.
4486 case "$ac_dir/" in
4487 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4488 *)
4489 # OSF1 and SCO ODT 3.0 have their own names for install.
4490 # Don't use installbsd from OSF since it installs stuff as root
4491 # by default.
4492 for ac_prog in ginstall scoinst install; do
4493 if test -f $ac_dir/$ac_prog; then
4494 if test $ac_prog = install &&
4495 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4496 # AIX install. It has an incompatible calling convention.
4497 :
4498 else
4499 ac_cv_path_install="$ac_dir/$ac_prog -c"
4500 break 2
4501 fi
4502 fi
4503 done
4504 ;;
4505 esac
4506 done
4507 IFS="$ac_save_IFS"
4508
4509fi
4510 if test "${ac_cv_path_install+set}" = set; then
4511 INSTALL="$ac_cv_path_install"
4512 else
4513 # As a last resort, use the slow shell script. We don't cache a
4514 # path for INSTALL within a source directory, because that will
4515 # break other packages using the cache if that directory is
4516 # removed, or if the path is relative.
4517 INSTALL="$ac_install_sh"
4518 fi
4519fi
4520echo "$ac_t""$INSTALL" 1>&6
4521
4522# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4523# It thinks the first close brace ends the variable substitution.
4524test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4525
4526test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4527
4528test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4529
4530
4531# Put a plausible default for CC_FOR_BUILD in Makefile.
4532if test -z "$CC_FOR_BUILD"; then
4533 if test "x$cross_compiling" = "xno"; then
4534 CC_FOR_BUILD='$(CC)'
4535 else
4536 CC_FOR_BUILD=gcc
4537 fi
4538fi
4539
4540# Also set EXEEXT_FOR_BUILD.
4541if test "x$cross_compiling" = "xno"; then
4542 EXEEXT_FOR_BUILD='$(EXEEXT)'
4543else
4544 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
bb279dc0 4545echo "configure:4546: checking for build system executable suffix" >&5
252b5132
RH
4546if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4547 echo $ac_n "(cached) $ac_c" 1>&6
4548else
7a7b06ef
ILT
4549 rm -f conftest*
4550 echo 'int main () { return 0; }' > conftest.c
4551 bfd_cv_build_exeext=
4552 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4553 for file in conftest.*; do
4554 case $file in
4555 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4556 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4557 esac
4558 done
4559 rm -f conftest*
4560 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132
RH
4561fi
4562
4563echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4564 EXEEXT_FOR_BUILD=""
4565 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4566fi
4567
4568
8a965946
ILT
4569DEMANGLER_NAME=c++filt
4570case "${host}" in
4571 *-*-go32* | *-*-msdos*)
4572 DEMANGLER_NAME=cxxfilt
4573esac
4574
4575
252b5132
RH
4576for ac_hdr in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
4577do
4578ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4579echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
bb279dc0 4580echo "configure:4581: checking for $ac_hdr" >&5
252b5132
RH
4581if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4583else
4584 cat > conftest.$ac_ext <<EOF
bb279dc0 4585#line 4586 "configure"
252b5132
RH
4586#include "confdefs.h"
4587#include <$ac_hdr>
4588EOF
4589ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bb279dc0 4590{ (eval echo configure:4591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
4591ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4592if test -z "$ac_err"; then
4593 rm -rf conftest*
4594 eval "ac_cv_header_$ac_safe=yes"
4595else
4596 echo "$ac_err" >&5
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4599 rm -rf conftest*
4600 eval "ac_cv_header_$ac_safe=no"
4601fi
4602rm -f conftest*
4603fi
4604if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4607 cat >> confdefs.h <<EOF
4608#define $ac_tr_hdr 1
4609EOF
4610
4611else
4612 echo "$ac_t""no" 1>&6
4613fi
4614done
4615
4616echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
bb279dc0 4617echo "configure:4618: checking for sys/wait.h that is POSIX.1 compatible" >&5
252b5132
RH
4618if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4620else
4621 cat > conftest.$ac_ext <<EOF
bb279dc0 4622#line 4623 "configure"
252b5132
RH
4623#include "confdefs.h"
4624#include <sys/types.h>
4625#include <sys/wait.h>
4626#ifndef WEXITSTATUS
4627#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4628#endif
4629#ifndef WIFEXITED
4630#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4631#endif
4632int main() {
4633int s;
4634wait (&s);
4635s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4636; return 0; }
4637EOF
bb279dc0 4638if { (eval echo configure:4639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
4639 rm -rf conftest*
4640 ac_cv_header_sys_wait_h=yes
4641else
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4644 rm -rf conftest*
4645 ac_cv_header_sys_wait_h=no
4646fi
4647rm -f conftest*
4648fi
4649
4650echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4651if test $ac_cv_header_sys_wait_h = yes; then
4652 cat >> confdefs.h <<\EOF
4653#define HAVE_SYS_WAIT_H 1
4654EOF
4655
4656fi
4657
4658# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4659# for constant arguments. Useless!
4660echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
bb279dc0 4661echo "configure:4662: checking for working alloca.h" >&5
252b5132
RH
4662if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4664else
4665 cat > conftest.$ac_ext <<EOF
bb279dc0 4666#line 4667 "configure"
252b5132
RH
4667#include "confdefs.h"
4668#include <alloca.h>
4669int main() {
4670char *p = alloca(2 * sizeof(int));
4671; return 0; }
4672EOF
bb279dc0 4673if { (eval echo configure:4674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
4674 rm -rf conftest*
4675 ac_cv_header_alloca_h=yes
4676else
4677 echo "configure: failed program was:" >&5
4678 cat conftest.$ac_ext >&5
4679 rm -rf conftest*
4680 ac_cv_header_alloca_h=no
4681fi
4682rm -f conftest*
4683fi
4684
4685echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4686if test $ac_cv_header_alloca_h = yes; then
4687 cat >> confdefs.h <<\EOF
4688#define HAVE_ALLOCA_H 1
4689EOF
4690
4691fi
4692
4693echo $ac_n "checking for alloca""... $ac_c" 1>&6
bb279dc0 4694echo "configure:4695: checking for alloca" >&5
252b5132
RH
4695if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4697else
4698 cat > conftest.$ac_ext <<EOF
bb279dc0 4699#line 4700 "configure"
252b5132
RH
4700#include "confdefs.h"
4701
4702#ifdef __GNUC__
4703# define alloca __builtin_alloca
4704#else
4705# ifdef _MSC_VER
4706# include <malloc.h>
4707# define alloca _alloca
4708# else
4709# if HAVE_ALLOCA_H
4710# include <alloca.h>
4711# else
4712# ifdef _AIX
4713 #pragma alloca
4714# else
4715# ifndef alloca /* predefined by HP cc +Olibcalls */
4716char *alloca ();
4717# endif
4718# endif
4719# endif
4720# endif
4721#endif
4722
4723int main() {
4724char *p = (char *) alloca(1);
4725; return 0; }
4726EOF
bb279dc0 4727if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
4728 rm -rf conftest*
4729 ac_cv_func_alloca_works=yes
4730else
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4733 rm -rf conftest*
4734 ac_cv_func_alloca_works=no
4735fi
4736rm -f conftest*
4737fi
4738
4739echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4740if test $ac_cv_func_alloca_works = yes; then
4741 cat >> confdefs.h <<\EOF
4742#define HAVE_ALLOCA 1
4743EOF
4744
4745fi
4746
4747if test $ac_cv_func_alloca_works = no; then
4748 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4749 # that cause trouble. Some versions do not even contain alloca or
4750 # contain a buggy version. If you still want to use their alloca,
4751 # use ar to extract alloca.o from them instead of compiling alloca.c.
4752 ALLOCA=alloca.${ac_objext}
4753 cat >> confdefs.h <<\EOF
4754#define C_ALLOCA 1
4755EOF
4756
4757
4758echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
bb279dc0 4759echo "configure:4760: checking whether alloca needs Cray hooks" >&5
252b5132
RH
4760if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4761 echo $ac_n "(cached) $ac_c" 1>&6
4762else
4763 cat > conftest.$ac_ext <<EOF
bb279dc0 4764#line 4765 "configure"
252b5132
RH
4765#include "confdefs.h"
4766#if defined(CRAY) && ! defined(CRAY2)
4767webecray
4768#else
4769wenotbecray
4770#endif
4771
4772EOF
4773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4774 egrep "webecray" >/dev/null 2>&1; then
4775 rm -rf conftest*
4776 ac_cv_os_cray=yes
4777else
4778 rm -rf conftest*
4779 ac_cv_os_cray=no
4780fi
4781rm -f conftest*
4782
4783fi
4784
4785echo "$ac_t""$ac_cv_os_cray" 1>&6
4786if test $ac_cv_os_cray = yes; then
4787for ac_func in _getb67 GETB67 getb67; do
4788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bb279dc0 4789echo "configure:4790: checking for $ac_func" >&5
252b5132
RH
4790if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4792else
4793 cat > conftest.$ac_ext <<EOF
bb279dc0 4794#line 4795 "configure"
252b5132
RH
4795#include "confdefs.h"
4796/* System header to define __stub macros and hopefully few prototypes,
4797 which can conflict with char $ac_func(); below. */
4798#include <assert.h>
4799/* Override any gcc2 internal prototype to avoid an error. */
4800/* We use char because int might match the return type of a gcc2
4801 builtin and then its argument prototype would still apply. */
4802char $ac_func();
4803
4804int main() {
4805
4806/* The GNU C library defines this for functions which it implements
4807 to always fail with ENOSYS. Some functions are actually named
4808 something starting with __ and the normal name is an alias. */
4809#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4810choke me
4811#else
4812$ac_func();
4813#endif
4814
4815; return 0; }
4816EOF
bb279dc0 4817if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
4818 rm -rf conftest*
4819 eval "ac_cv_func_$ac_func=yes"
4820else
4821 echo "configure: failed program was:" >&5
4822 cat conftest.$ac_ext >&5
4823 rm -rf conftest*
4824 eval "ac_cv_func_$ac_func=no"
4825fi
4826rm -f conftest*
4827fi
4828
4829if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4830 echo "$ac_t""yes" 1>&6
4831 cat >> confdefs.h <<EOF
4832#define CRAY_STACKSEG_END $ac_func
4833EOF
4834
4835 break
4836else
4837 echo "$ac_t""no" 1>&6
4838fi
4839
4840done
4841fi
4842
4843echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
bb279dc0 4844echo "configure:4845: checking stack direction for C alloca" >&5
252b5132
RH
4845if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4846 echo $ac_n "(cached) $ac_c" 1>&6
4847else
4848 if test "$cross_compiling" = yes; then
4849 ac_cv_c_stack_direction=0
4850else
4851 cat > conftest.$ac_ext <<EOF
bb279dc0 4852#line 4853 "configure"
252b5132
RH
4853#include "confdefs.h"
4854find_stack_direction ()
4855{
4856 static char *addr = 0;
4857 auto char dummy;
4858 if (addr == 0)
4859 {
4860 addr = &dummy;
4861 return find_stack_direction ();
4862 }
4863 else
4864 return (&dummy > addr) ? 1 : -1;
4865}
4866main ()
4867{
4868 exit (find_stack_direction() < 0);
4869}
4870EOF
bb279dc0 4871if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
252b5132
RH
4872then
4873 ac_cv_c_stack_direction=1
4874else
4875 echo "configure: failed program was:" >&5
4876 cat conftest.$ac_ext >&5
4877 rm -fr conftest*
4878 ac_cv_c_stack_direction=-1
4879fi
4880rm -fr conftest*
4881fi
4882
4883fi
4884
4885echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4886cat >> confdefs.h <<EOF
4887#define STACK_DIRECTION $ac_cv_c_stack_direction
4888EOF
4889
4890fi
4891
9710509e 4892for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132
RH
4893do
4894echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bb279dc0 4895echo "configure:4896: checking for $ac_func" >&5
252b5132
RH
4896if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4898else
4899 cat > conftest.$ac_ext <<EOF
bb279dc0 4900#line 4901 "configure"
252b5132
RH
4901#include "confdefs.h"
4902/* System header to define __stub macros and hopefully few prototypes,
4903 which can conflict with char $ac_func(); below. */
4904#include <assert.h>
4905/* Override any gcc2 internal prototype to avoid an error. */
4906/* We use char because int might match the return type of a gcc2
4907 builtin and then its argument prototype would still apply. */
4908char $ac_func();
4909
4910int main() {
4911
4912/* The GNU C library defines this for functions which it implements
4913 to always fail with ENOSYS. Some functions are actually named
4914 something starting with __ and the normal name is an alias. */
4915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4916choke me
4917#else
4918$ac_func();
4919#endif
4920
4921; return 0; }
4922EOF
bb279dc0 4923if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
4924 rm -rf conftest*
4925 eval "ac_cv_func_$ac_func=yes"
4926else
4927 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4929 rm -rf conftest*
4930 eval "ac_cv_func_$ac_func=no"
4931fi
4932rm -f conftest*
4933fi
4934
4935if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4938 cat >> confdefs.h <<EOF
4939#define $ac_tr_func 1
4940EOF
4941
4942else
4943 echo "$ac_t""no" 1>&6
4944fi
4945done
4946
4947
cedd9a58
JJ
4948# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
4949# needs to be defined for it
4950echo $ac_n "checking for fopen64""... $ac_c" 1>&6
bb279dc0 4951echo "configure:4952: checking for fopen64" >&5
cedd9a58
JJ
4952if eval "test \"`echo '$''{'bu_cv_have_fopen64'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4954else
4955 cat > conftest.$ac_ext <<EOF
bb279dc0 4956#line 4957 "configure"
cedd9a58
JJ
4957#include "confdefs.h"
4958#include <stdio.h>
4959int main() {
4960FILE *f = fopen64 ("/tmp/foo","r");
4961; return 0; }
4962EOF
bb279dc0 4963if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cedd9a58
JJ
4964 rm -rf conftest*
4965 bu_cv_have_fopen64=yes
4966else
4967 echo "configure: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4969 rm -rf conftest*
4970 saved_CPPFLAGS=$CPPFLAGS
4971 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
4972 cat > conftest.$ac_ext <<EOF
bb279dc0 4973#line 4974 "configure"
cedd9a58
JJ
4974#include "confdefs.h"
4975#include <stdio.h>
4976int main() {
4977FILE *f = fopen64 ("/tmp/foo","r");
4978; return 0; }
4979EOF
bb279dc0 4980if { (eval echo configure:4981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cedd9a58
JJ
4981 rm -rf conftest*
4982 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
4983else
4984 echo "configure: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4986 rm -rf conftest*
4987 bu_cv_have_fopen64=no
4988fi
4989rm -f conftest*
17a5a5c3 4990 CPPFLAGS=$saved_CPPFLAGS
cedd9a58
JJ
4991fi
4992rm -f conftest*
4993fi
cedd9a58
JJ
4994
4995echo "$ac_t""$bu_cv_have_fopen64" 1>&6
6db7a086 4996if test "$bu_cv_have_fopen64" != no; then
cedd9a58
JJ
4997 cat >> confdefs.h <<\EOF
4998#define HAVE_FOPEN64 1
4999EOF
5000
6db7a086 5001 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE"; then
cedd9a58
JJ
5002 cat >> confdefs.h <<\EOF
5003#define _LARGEFILE64_SOURCE 1
5004EOF
5005
5006 fi
5007fi
5008
f353eb8a
ILT
5009# Some systems have frexp only in -lm, not in -lc.
5010
5011echo $ac_n "checking for library containing frexp""... $ac_c" 1>&6
bb279dc0 5012echo "configure:5013: checking for library containing frexp" >&5
f353eb8a
ILT
5013if eval "test \"`echo '$''{'ac_cv_search_frexp'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5015else
5016 ac_func_search_save_LIBS="$LIBS"
5017ac_cv_search_frexp="no"
5018cat > conftest.$ac_ext <<EOF
bb279dc0 5019#line 5020 "configure"
f353eb8a
ILT
5020#include "confdefs.h"
5021/* Override any gcc2 internal prototype to avoid an error. */
5022/* We use char because int might match the return type of a gcc2
5023 builtin and then its argument prototype would still apply. */
5024char frexp();
5025
5026int main() {
5027frexp()
5028; return 0; }
5029EOF
bb279dc0 5030if { (eval echo configure:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f353eb8a
ILT
5031 rm -rf conftest*
5032 ac_cv_search_frexp="none required"
5033else
5034 echo "configure: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5036fi
5037rm -f conftest*
9a1cab10 5038test "$ac_cv_search_frexp" = "no" && for i in m; do
f353eb8a
ILT
5039LIBS="-l$i $ac_func_search_save_LIBS"
5040cat > conftest.$ac_ext <<EOF
bb279dc0 5041#line 5042 "configure"
f353eb8a
ILT
5042#include "confdefs.h"
5043/* Override any gcc2 internal prototype to avoid an error. */
5044/* We use char because int might match the return type of a gcc2
5045 builtin and then its argument prototype would still apply. */
5046char frexp();
5047
5048int main() {
5049frexp()
5050; return 0; }
5051EOF
bb279dc0 5052if { (eval echo configure:5053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f353eb8a
ILT
5053 rm -rf conftest*
5054 ac_cv_search_frexp="-l$i"
5055break
5056else
5057 echo "configure: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5059fi
5060rm -f conftest*
5061done
5062LIBS="$ac_func_search_save_LIBS"
5063fi
5064
5065echo "$ac_t""$ac_cv_search_frexp" 1>&6
5066if test "$ac_cv_search_frexp" != "no"; then
5067 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
5068
5069else :
5070
5071fi
5072
252b5132 5073echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
bb279dc0 5074echo "configure:5075: checking for time_t in time.h" >&5
252b5132
RH
5075if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
5076 echo $ac_n "(cached) $ac_c" 1>&6
5077else
5078 cat > conftest.$ac_ext <<EOF
bb279dc0 5079#line 5080 "configure"
252b5132
RH
5080#include "confdefs.h"
5081#include <time.h>
5082int main() {
5083time_t i;
5084; return 0; }
5085EOF
bb279dc0 5086if { (eval echo configure:5087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
5087 rm -rf conftest*
5088 bu_cv_decl_time_t_time_h=yes
5089else
5090 echo "configure: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5092 rm -rf conftest*
5093 bu_cv_decl_time_t_time_h=no
5094fi
5095rm -f conftest*
5096fi
5097
5098echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
5099if test $bu_cv_decl_time_t_time_h = yes; then
5100 cat >> confdefs.h <<\EOF
5101#define HAVE_TIME_T_IN_TIME_H 1
5102EOF
5103
5104fi
5105
5106echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
bb279dc0 5107echo "configure:5108: checking for time_t in sys/types.h" >&5
252b5132
RH
5108if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
5109 echo $ac_n "(cached) $ac_c" 1>&6
5110else
5111 cat > conftest.$ac_ext <<EOF
bb279dc0 5112#line 5113 "configure"
252b5132
RH
5113#include "confdefs.h"
5114#include <sys/types.h>
5115int main() {
5116time_t i;
5117; return 0; }
5118EOF
bb279dc0 5119if { (eval echo configure:5120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
5120 rm -rf conftest*
5121 bu_cv_decl_time_t_types_h=yes
5122else
5123 echo "configure: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5125 rm -rf conftest*
5126 bu_cv_decl_time_t_types_h=no
5127fi
5128rm -f conftest*
5129fi
5130
5131echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
5132if test $bu_cv_decl_time_t_types_h = yes; then
5133 cat >> confdefs.h <<\EOF
5134#define HAVE_TIME_T_IN_TYPES_H 1
5135EOF
5136
5137fi
5138
5139# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
5140# by default.
5141echo $ac_n "checking for utime.h""... $ac_c" 1>&6
bb279dc0 5142echo "configure:5143: checking for utime.h" >&5
252b5132
RH
5143if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5145else
5146 cat > conftest.$ac_ext <<EOF
bb279dc0 5147#line 5148 "configure"
252b5132
RH
5148#include "confdefs.h"
5149#include <sys/types.h>
5150#ifdef HAVE_TIME_H
5151#include <time.h>
5152#endif
5153#include <utime.h>
5154int main() {
5155struct utimbuf s;
5156; return 0; }
5157EOF
bb279dc0 5158if { (eval echo configure:5159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
5159 rm -rf conftest*
5160 bu_cv_header_utime_h=yes
5161else
5162 echo "configure: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5164 rm -rf conftest*
5165 bu_cv_header_utime_h=no
5166fi
5167rm -f conftest*
5168fi
5169
5170echo "$ac_t""$bu_cv_header_utime_h" 1>&6
5171if test $bu_cv_header_utime_h = yes; then
5172 cat >> confdefs.h <<\EOF
5173#define HAVE_GOOD_UTIME_H 1
5174EOF
5175
5176fi
5177
5178echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
bb279dc0 5179echo "configure:5180: checking whether fprintf must be declared" >&5
252b5132
RH
5180if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5182else
5183 cat > conftest.$ac_ext <<EOF
bb279dc0 5184#line 5185 "configure"
252b5132
RH
5185#include "confdefs.h"
5186
5187#include <stdio.h>
5188#ifdef HAVE_STRING_H
5189#include <string.h>
5190#else
5191#ifdef HAVE_STRINGS_H
5192#include <strings.h>
5193#endif
5194#endif
5195#ifdef HAVE_STDLIB_H
5196#include <stdlib.h>
5197#endif
5198#ifdef HAVE_UNISTD_H
5199#include <unistd.h>
5200#endif
5201int main() {
5202char *(*pfn) = (char *(*)) fprintf
5203; return 0; }
5204EOF
bb279dc0 5205if { (eval echo configure:5206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
5206 rm -rf conftest*
5207 bfd_cv_decl_needed_fprintf=no
5208else
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5211 rm -rf conftest*
5212 bfd_cv_decl_needed_fprintf=yes
5213fi
5214rm -f conftest*
5215fi
5216
5217echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
5218if test $bfd_cv_decl_needed_fprintf = yes; then
5219 cat >> confdefs.h <<\EOF
5220#define NEED_DECLARATION_FPRINTF 1
5221EOF
5222
5223fi
5224
5225echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
bb279dc0 5226echo "configure:5227: checking whether strstr must be declared" >&5
252b5132
RH
5227if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5229else
5230 cat > conftest.$ac_ext <<EOF
bb279dc0 5231#line 5232 "configure"
252b5132
RH
5232#include "confdefs.h"
5233
5234#include <stdio.h>
5235#ifdef HAVE_STRING_H
5236#include <string.h>
5237#else
5238#ifdef HAVE_STRINGS_H
5239#include <strings.h>
5240#endif
5241#endif
5242#ifdef HAVE_STDLIB_H
5243#include <stdlib.h>
5244#endif
5245#ifdef HAVE_UNISTD_H
5246#include <unistd.h>
5247#endif
5248int main() {
5249char *(*pfn) = (char *(*)) strstr
5250; return 0; }
5251EOF
bb279dc0 5252if { (eval echo configure:5253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
5253 rm -rf conftest*
5254 bfd_cv_decl_needed_strstr=no
5255else
5256 echo "configure: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5258 rm -rf conftest*
5259 bfd_cv_decl_needed_strstr=yes
5260fi
5261rm -f conftest*
5262fi
5263
5264echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5265if test $bfd_cv_decl_needed_strstr = yes; then
5266 cat >> confdefs.h <<\EOF
5267#define NEED_DECLARATION_STRSTR 1
5268EOF
5269
5270fi
5271
5272echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
bb279dc0 5273echo "configure:5274: checking whether sbrk must be declared" >&5
252b5132
RH
5274if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5276else
5277 cat > conftest.$ac_ext <<EOF
bb279dc0 5278#line 5279 "configure"
252b5132
RH
5279#include "confdefs.h"
5280
5281#include <stdio.h>
5282#ifdef HAVE_STRING_H
5283#include <string.h>
5284#else
5285#ifdef HAVE_STRINGS_H
5286#include <strings.h>
5287#endif
5288#endif
5289#ifdef HAVE_STDLIB_H
5290#include <stdlib.h>
5291#endif
5292#ifdef HAVE_UNISTD_H
5293#include <unistd.h>
5294#endif
5295int main() {
5296char *(*pfn) = (char *(*)) sbrk
5297; return 0; }
5298EOF
bb279dc0 5299if { (eval echo configure:5300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
5300 rm -rf conftest*
5301 bfd_cv_decl_needed_sbrk=no
5302else
5303 echo "configure: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5305 rm -rf conftest*
5306 bfd_cv_decl_needed_sbrk=yes
5307fi
5308rm -f conftest*
5309fi
5310
5311echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5312if test $bfd_cv_decl_needed_sbrk = yes; then
5313 cat >> confdefs.h <<\EOF
5314#define NEED_DECLARATION_SBRK 1
5315EOF
5316
5317fi
5318
5319echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
bb279dc0 5320echo "configure:5321: checking whether getenv must be declared" >&5
252b5132
RH
5321if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5323else
5324 cat > conftest.$ac_ext <<EOF
bb279dc0 5325#line 5326 "configure"
252b5132
RH
5326#include "confdefs.h"
5327
5328#include <stdio.h>
5329#ifdef HAVE_STRING_H
5330#include <string.h>
5331#else
5332#ifdef HAVE_STRINGS_H
5333#include <strings.h>
5334#endif
5335#endif
5336#ifdef HAVE_STDLIB_H
5337#include <stdlib.h>
5338#endif
5339#ifdef HAVE_UNISTD_H
5340#include <unistd.h>
5341#endif
5342int main() {
5343char *(*pfn) = (char *(*)) getenv
5344; return 0; }
5345EOF
bb279dc0 5346if { (eval echo configure:5347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
5347 rm -rf conftest*
5348 bfd_cv_decl_needed_getenv=no
5349else
5350 echo "configure: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5352 rm -rf conftest*
5353 bfd_cv_decl_needed_getenv=yes
5354fi
5355rm -f conftest*
5356fi
5357
5358echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5359if test $bfd_cv_decl_needed_getenv = yes; then
5360 cat >> confdefs.h <<\EOF
5361#define NEED_DECLARATION_GETENV 1
5362EOF
5363
5364fi
5365
5366echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
bb279dc0 5367echo "configure:5368: checking whether environ must be declared" >&5
252b5132
RH
5368if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5370else
5371 cat > conftest.$ac_ext <<EOF
bb279dc0 5372#line 5373 "configure"
252b5132
RH
5373#include "confdefs.h"
5374
5375#include <stdio.h>
5376#ifdef HAVE_STRING_H
5377#include <string.h>
5378#else
5379#ifdef HAVE_STRINGS_H
5380#include <strings.h>
5381#endif
5382#endif
5383#ifdef HAVE_STDLIB_H
5384#include <stdlib.h>
5385#endif
5386#ifdef HAVE_UNISTD_H
5387#include <unistd.h>
5388#endif
5389int main() {
5390char *(*pfn) = (char *(*)) environ
5391; return 0; }
5392EOF
bb279dc0 5393if { (eval echo configure:5394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
5394 rm -rf conftest*
5395 bfd_cv_decl_needed_environ=no
5396else
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5399 rm -rf conftest*
5400 bfd_cv_decl_needed_environ=yes
5401fi
5402rm -f conftest*
5403fi
5404
5405echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5406if test $bfd_cv_decl_needed_environ = yes; then
5407 cat >> confdefs.h <<\EOF
5408#define NEED_DECLARATION_ENVIRON 1
5409EOF
5410
5411fi
5412
5413
5414
5415case "${host}" in
8a965946 5416*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
252b5132
RH
5417 cat >> confdefs.h <<\EOF
5418#define USE_BINARY_FOPEN 1
5419EOF
5420 ;;
5421esac
5422
5423# target-specific stuff:
5424
5425# Canonicalize the secondary target names.
5426if test -n "$enable_targets"; then
5427 for targ in `echo $enable_targets | sed 's/,/ /g'`
5428 do
6d83c84b 5429 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
5430 if test -n "$result"; then
5431 canon_targets="$canon_targets $result"
5432 else
5433 # Allow targets that config.sub doesn't recognize, like "all".
5434 canon_targets="$canon_targets $targ"
5435 fi
5436 done
5437fi
5438
5439all_targets=false
5440BUILD_NLMCONV=
5441NLMCONV_DEFS=
5442BUILD_SRCONV=
5443BUILD_DLLTOOL=
5444DLLTOOL_DEFS=
5445BUILD_WINDRES=
5446BUILD_DLLWRAP=
5447BUILD_MISC=
8b1e6df3 5448OBJDUMP_DEFS=
252b5132
RH
5449
5450for targ in $target $canon_targets
5451do
5452 if test "x$targ" = "xall"; then
5453 all_targets=true
5454 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5455 BUILD_SRCONV='$(SRCONV_PROG)'
5456 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5457 else
5458 case $targ in
5459 i[3456]86*-*-netware*)
5460 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5461 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
5462 ;;
5463 alpha*-*-netware*)
5464 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5465 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5466 ;;
5467 powerpc*-*-netware*)
5468 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5469 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5470 ;;
5471 sparc*-*-netware*)
5472 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5473 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
5474 ;;
5475 esac
5476 case $targ in
5477 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
5478 esac
5479 case $targ in
a8c548cb
NC
5480 arm-epoc-pe*)
5481 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5482 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
5483 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5484 ;;
e1d5b1e7 5485 arm-pe* | arm-*-wince)
252b5132
RH
5486 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5487 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5488 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 5489 ;;
e1d5b1e7 5490 thumb-pe*)
252b5132
RH
5491 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5492 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5493 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 5494 ;;
c7217458 5495 arm*-* | xscale-* | strongarm-* | d10v-*)
8b1e6df3
NC
5496 OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS"
5497 ;;
436e8db0 5498 i[3-6]86-pe* | i[3-6]86-*-cygwin* | i[3-6]86-*-mingw32** | i[3-6]86-*-netbsdpe*)
252b5132
RH
5499 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5500 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5501 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5502 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef
ILT
5503 ;;
5504 i3-686-*-interix)
5505 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
5506 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5507 ;;
e1d5b1e7 5508 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132
RH
5509 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5510 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5511 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8a0e0f38 5512 ;;
e1d5b1e7 5513 sh*-*-pe)
8a0e0f38
NC
5514 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5515 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
5516 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5517 ;;
e1d5b1e7 5518 mips*-*-pe)
8a0e0f38
NC
5519 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5520 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
5521 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 5522 ;;
e1d5b1e7 5523 mcore-pe)
661016bb
NC
5524 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5525 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
5526 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 5527 ;;
661016bb
NC
5528 mcore-*elf)
5529 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5530 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 5531 ;;
252b5132
RH
5532 esac
5533 fi
5534done
5535
c918cb96
DD
5536if test "${with_windres+set}" = set; then
5537 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5538fi
252b5132
RH
5539
5540
5541
5542
5543
5544
5545
5546
5547
8b1e6df3 5548
0218d1e4 5549
252b5132
RH
5550cat >> confdefs.h <<EOF
5551#define TARGET "${target}"
5552EOF
5553
5554
5555targ=$target
5556. $srcdir/../bfd/config.bfd
5557if test "x$targ_underscore" = "xyes"; then
5558 UNDERSCORE=1
5559else
5560 UNDERSCORE=0
5561fi
bb279dc0
ZW
5562cat >> confdefs.h <<EOF
5563#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
5564EOF
252b5132
RH
5565
5566
eb1e0e80
NC
5567# Emulation
5568for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5569do
5570 # Canonicalize the secondary target names.
5571 result=`$ac_config_sub $targ_alias 2>/dev/null`
5572 if test -n "$result"; then
5573 targ=$result
5574 else
5575 targ=$targ_alias
5576 fi
5577
5578 . ${srcdir}/configure.tgt
5579
5580 EMULATION=$targ_emul
5581 EMULATION_VECTOR=$targ_emul_vector
5582done
5583
5584
5585
5586
252b5132
RH
5587trap '' 1 2 15
5588cat > confcache <<\EOF
5589# This file is a shell script that caches the results of configure
5590# tests run on this system so they can be shared between configure
5591# scripts and configure runs. It is not useful on other systems.
5592# If it contains results you don't want to keep, you may remove or edit it.
5593#
5594# By default, configure uses ./config.cache as the cache file,
5595# creating it if it does not exist already. You can give configure
5596# the --cache-file=FILE option to use a different cache file; that is
5597# what configure does when it calls configure scripts in
5598# subdirectories, so they share the cache.
5599# Giving --cache-file=/dev/null disables caching, for debugging configure.
5600# config.status only pays attention to the cache file if you give it the
5601# --recheck option to rerun configure.
5602#
5603EOF
5604# The following way of writing the cache mishandles newlines in values,
5605# but we know of no workaround that is simple, portable, and efficient.
5606# So, don't put newlines in cache variables' values.
5607# Ultrix sh set writes to stderr and can't be redirected directly,
5608# and sets the high bit in the cache file unless we assign to the vars.
5609(set) 2>&1 |
5610 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5611 *ac_space=\ *)
5612 # `set' does not quote correctly, so add quotes (double-quote substitution
5613 # turns \\\\ into \\, and sed turns \\ into \).
5614 sed -n \
5615 -e "s/'/'\\\\''/g" \
5616 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5617 ;;
5618 *)
5619 # `set' quotes correctly as required by POSIX, so do not add quotes.
5620 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5621 ;;
5622 esac >> confcache
5623if cmp -s $cache_file confcache; then
5624 :
5625else
5626 if test -w $cache_file; then
5627 echo "updating cache $cache_file"
5628 cat confcache > $cache_file
5629 else
5630 echo "not updating unwritable cache $cache_file"
5631 fi
5632fi
5633rm -f confcache
5634
5635trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5636
5637test "x$prefix" = xNONE && prefix=$ac_default_prefix
5638# Let make expand exec_prefix.
5639test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5640
5641# Any assignment to VPATH causes Sun make to only execute
5642# the first set of double-colon rules, so remove it if not needed.
5643# If there is a colon in the path, we need to keep it.
5644if test "x$srcdir" = x.; then
5645 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5646fi
5647
5648trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5649
5650DEFS=-DHAVE_CONFIG_H
5651
5652# Without the "./", some shells look in PATH for config.status.
5653: ${CONFIG_STATUS=./config.status}
5654
5655echo creating $CONFIG_STATUS
5656rm -f $CONFIG_STATUS
5657cat > $CONFIG_STATUS <<EOF
5658#! /bin/sh
5659# Generated automatically by configure.
5660# Run this file to recreate the current configuration.
5661# This directory was configured as follows,
5662# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5663#
5664# $0 $ac_configure_args
5665#
5666# Compiler output produced by configure, useful for debugging
5667# configure, is in ./config.log if it exists.
5668
5669ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5670for ac_option
5671do
5672 case "\$ac_option" in
5673 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5674 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5675 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5676 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5677 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5678 exit 0 ;;
5679 -help | --help | --hel | --he | --h)
5680 echo "\$ac_cs_usage"; exit 0 ;;
5681 *) echo "\$ac_cs_usage"; exit 1 ;;
5682 esac
5683done
5684
5685ac_given_srcdir=$srcdir
5686ac_given_INSTALL="$INSTALL"
5687
c45021f2 5688trap 'rm -fr `echo "Makefile doc/Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
252b5132
RH
5689EOF
5690cat >> $CONFIG_STATUS <<EOF
5691
5692# Protect against being on the right side of a sed subst in config.status.
5693sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5694 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5695$ac_vpsub
5696$extrasub
5697s%@SHELL@%$SHELL%g
5698s%@CFLAGS@%$CFLAGS%g
5699s%@CPPFLAGS@%$CPPFLAGS%g
5700s%@CXXFLAGS@%$CXXFLAGS%g
5701s%@FFLAGS@%$FFLAGS%g
5702s%@DEFS@%$DEFS%g
5703s%@LDFLAGS@%$LDFLAGS%g
5704s%@LIBS@%$LIBS%g
5705s%@exec_prefix@%$exec_prefix%g
5706s%@prefix@%$prefix%g
5707s%@program_transform_name@%$program_transform_name%g
5708s%@bindir@%$bindir%g
5709s%@sbindir@%$sbindir%g
5710s%@libexecdir@%$libexecdir%g
5711s%@datadir@%$datadir%g
5712s%@sysconfdir@%$sysconfdir%g
5713s%@sharedstatedir@%$sharedstatedir%g
5714s%@localstatedir@%$localstatedir%g
5715s%@libdir@%$libdir%g
5716s%@includedir@%$includedir%g
5717s%@oldincludedir@%$oldincludedir%g
5718s%@infodir@%$infodir%g
5719s%@mandir@%$mandir%g
5720s%@host@%$host%g
5721s%@host_alias@%$host_alias%g
5722s%@host_cpu@%$host_cpu%g
5723s%@host_vendor@%$host_vendor%g
5724s%@host_os@%$host_os%g
5725s%@target@%$target%g
5726s%@target_alias@%$target_alias%g
5727s%@target_cpu@%$target_cpu%g
5728s%@target_vendor@%$target_vendor%g
5729s%@target_os@%$target_os%g
5730s%@build@%$build%g
5731s%@build_alias@%$build_alias%g
5732s%@build_cpu@%$build_cpu%g
5733s%@build_vendor@%$build_vendor%g
5734s%@build_os@%$build_os%g
1ea788ee 5735s%@CC@%$CC%g
252b5132
RH
5736s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5737s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5738s%@INSTALL_DATA@%$INSTALL_DATA%g
5739s%@PACKAGE@%$PACKAGE%g
5740s%@VERSION@%$VERSION%g
5741s%@ACLOCAL@%$ACLOCAL%g
5742s%@AUTOCONF@%$AUTOCONF%g
5743s%@AUTOMAKE@%$AUTOMAKE%g
5744s%@AUTOHEADER@%$AUTOHEADER%g
5745s%@MAKEINFO@%$MAKEINFO%g
5746s%@SET_MAKE@%$SET_MAKE%g
252b5132 5747s%@LN_S@%$LN_S%g
ac48eca1
AO
5748s%@OBJEXT@%$OBJEXT%g
5749s%@EXEEXT@%$EXEEXT%g
5750s%@RANLIB@%$RANLIB%g
5751s%@STRIP@%$STRIP%g
252b5132 5752s%@LIBTOOL@%$LIBTOOL%g
a2d91340 5753s%@WARN_CFLAGS@%$WARN_CFLAGS%g
252b5132
RH
5754s%@YACC@%$YACC%g
5755s%@LEX@%$LEX%g
5756s%@LEXLIB@%$LEXLIB%g
5757s%@CPP@%$CPP%g
5758s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5759s%@ALLOCA@%$ALLOCA%g
5760s%@USE_NLS@%$USE_NLS%g
5761s%@MSGFMT@%$MSGFMT%g
5762s%@GMSGFMT@%$GMSGFMT%g
5763s%@XGETTEXT@%$XGETTEXT%g
5764s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5765s%@CATALOGS@%$CATALOGS%g
5766s%@CATOBJEXT@%$CATOBJEXT%g
5767s%@DATADIRNAME@%$DATADIRNAME%g
5768s%@GMOFILES@%$GMOFILES%g
5769s%@INSTOBJEXT@%$INSTOBJEXT%g
5770s%@INTLDEPS@%$INTLDEPS%g
5771s%@INTLLIBS@%$INTLLIBS%g
5772s%@INTLOBJS@%$INTLOBJS%g
5773s%@POFILES@%$POFILES%g
5774s%@POSUB@%$POSUB%g
5775s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5776s%@GT_NO@%$GT_NO%g
5777s%@GT_YES@%$GT_YES%g
5778s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5779s%@l@%$l%g
5780s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5781s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5782s%@MAINT@%$MAINT%g
252b5132
RH
5783s%@HDEFINES@%$HDEFINES%g
5784s%@AR@%$AR%g
5785s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5786s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
8a965946 5787s%@DEMANGLER_NAME@%$DEMANGLER_NAME%g
252b5132
RH
5788s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5789s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5790s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5791s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5792s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5793s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5794s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5795s%@BUILD_MISC@%$BUILD_MISC%g
8b1e6df3 5796s%@OBJDUMP_DEFS@%$OBJDUMP_DEFS%g
eb1e0e80
NC
5797s%@EMULATION@%$EMULATION%g
5798s%@EMULATION_VECTOR@%$EMULATION_VECTOR%g
252b5132
RH
5799
5800CEOF
5801EOF
5802
5803cat >> $CONFIG_STATUS <<\EOF
5804
5805# Split the substitutions into bite-sized pieces for seds with
5806# small command number limits, like on Digital OSF/1 and HP-UX.
5807ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5808ac_file=1 # Number of current file.
5809ac_beg=1 # First line for current file.
5810ac_end=$ac_max_sed_cmds # Line after last line for current file.
5811ac_more_lines=:
5812ac_sed_cmds=""
5813while $ac_more_lines; do
5814 if test $ac_beg -gt 1; then
5815 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5816 else
5817 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5818 fi
5819 if test ! -s conftest.s$ac_file; then
5820 ac_more_lines=false
5821 rm -f conftest.s$ac_file
5822 else
5823 if test -z "$ac_sed_cmds"; then
5824 ac_sed_cmds="sed -f conftest.s$ac_file"
5825 else
5826 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5827 fi
5828 ac_file=`expr $ac_file + 1`
5829 ac_beg=$ac_end
5830 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5831 fi
5832done
5833if test -z "$ac_sed_cmds"; then
5834 ac_sed_cmds=cat
5835fi
5836EOF
5837
5838cat >> $CONFIG_STATUS <<EOF
5839
c45021f2 5840CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile po/Makefile.in:po/Make-in"}
252b5132
RH
5841EOF
5842cat >> $CONFIG_STATUS <<\EOF
5843for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5844 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5845 case "$ac_file" in
5846 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5847 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5848 *) ac_file_in="${ac_file}.in" ;;
5849 esac
5850
5851 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5852
5853 # Remove last slash and all that follows it. Not all systems have dirname.
5854 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5855 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5856 # The file is in a subdirectory.
5857 test ! -d "$ac_dir" && mkdir "$ac_dir"
5858 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5859 # A "../" for each directory in $ac_dir_suffix.
5860 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5861 else
5862 ac_dir_suffix= ac_dots=
5863 fi
5864
5865 case "$ac_given_srcdir" in
5866 .) srcdir=.
5867 if test -z "$ac_dots"; then top_srcdir=.
5868 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5869 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5870 *) # Relative path.
5871 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5872 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5873 esac
5874
5875 case "$ac_given_INSTALL" in
5876 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5877 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5878 esac
5879
5880 echo creating "$ac_file"
5881 rm -f "$ac_file"
5882 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5883 case "$ac_file" in
5884 *Makefile*) ac_comsub="1i\\
5885# $configure_input" ;;
5886 *) ac_comsub= ;;
5887 esac
5888
5889 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5890 sed -e "$ac_comsub
5891s%@configure_input@%$configure_input%g
5892s%@srcdir@%$srcdir%g
5893s%@top_srcdir@%$top_srcdir%g
5894s%@INSTALL@%$INSTALL%g
5895" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5896fi; done
5897rm -f conftest.s*
5898
5899# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5900# NAME is the cpp macro being defined and VALUE is the value it is being given.
5901#
5902# ac_d sets the value in "#define NAME VALUE" lines.
5903ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5904ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5905ac_dC='\3'
5906ac_dD='%g'
5907# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5908ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5909ac_uB='\([ ]\)%\1#\2define\3'
5910ac_uC=' '
5911ac_uD='\4%g'
5912# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5913ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5914ac_eB='$%\1#\2define\3'
5915ac_eC=' '
5916ac_eD='%g'
5917
5918if test "${CONFIG_HEADERS+set}" != set; then
5919EOF
5920cat >> $CONFIG_STATUS <<EOF
5921 CONFIG_HEADERS="config.h:config.in"
5922EOF
5923cat >> $CONFIG_STATUS <<\EOF
5924fi
5925for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5926 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5927 case "$ac_file" in
5928 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5929 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5930 *) ac_file_in="${ac_file}.in" ;;
5931 esac
5932
5933 echo creating $ac_file
5934
5935 rm -f conftest.frag conftest.in conftest.out
5936 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5937 cat $ac_file_inputs > conftest.in
5938
5939EOF
5940
5941# Transform confdefs.h into a sed script conftest.vals that substitutes
5942# the proper values into config.h.in to produce config.h. And first:
5943# Protect against being on the right side of a sed subst in config.status.
5944# Protect against being in an unquoted here document in config.status.
5945rm -f conftest.vals
5946cat > conftest.hdr <<\EOF
5947s/[\\&%]/\\&/g
5948s%[\\$`]%\\&%g
5949s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5950s%ac_d%ac_u%gp
5951s%ac_u%ac_e%gp
5952EOF
5953sed -n -f conftest.hdr confdefs.h > conftest.vals
5954rm -f conftest.hdr
5955
5956# This sed command replaces #undef with comments. This is necessary, for
5957# example, in the case of _POSIX_SOURCE, which is predefined and required
5958# on some systems where configure will not decide to define it.
5959cat >> conftest.vals <<\EOF
5960s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5961EOF
5962
5963# Break up conftest.vals because some shells have a limit on
5964# the size of here documents, and old seds have small limits too.
5965
5966rm -f conftest.tail
5967while :
5968do
5969 ac_lines=`grep -c . conftest.vals`
5970 # grep -c gives empty output for an empty file on some AIX systems.
5971 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5972 # Write a limited-size here document to conftest.frag.
5973 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5974 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5975 echo 'CEOF
5976 sed -f conftest.frag conftest.in > conftest.out
5977 rm -f conftest.in
5978 mv conftest.out conftest.in
5979' >> $CONFIG_STATUS
5980 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5981 rm -f conftest.vals
5982 mv conftest.tail conftest.vals
5983done
5984rm -f conftest.vals
5985
5986cat >> $CONFIG_STATUS <<\EOF
5987 rm -f conftest.frag conftest.h
5988 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5989 cat conftest.in >> conftest.h
5990 rm -f conftest.in
5991 if cmp -s $ac_file conftest.h 2>/dev/null; then
5992 echo "$ac_file is unchanged"
5993 rm -f conftest.h
5994 else
5995 # Remove last slash and all that follows it. Not all systems have dirname.
5996 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5997 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5998 # The file is in a subdirectory.
5999 test ! -d "$ac_dir" && mkdir "$ac_dir"
6000 fi
6001 rm -f $ac_file
6002 mv conftest.h $ac_file
6003 fi
6004fi; done
6005
6006EOF
6007cat >> $CONFIG_STATUS <<EOF
6008
6009
6010EOF
6011cat >> $CONFIG_STATUS <<\EOF
6012test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6013
6014case "x$CONFIG_FILES" in
6015*) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
6016esac
6017
6018exit 0
6019EOF
6020chmod +x $CONFIG_STATUS
6021rm -fr confdefs* $ac_clean_files
6022test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6023
This page took 0.390599 seconds and 4 git commands to generate.