]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/configure
(buffer_and_nest): Store more to sb instead of '\n'.
[thirdparty/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
6be7c12c 2
252b5132 3# Guess values for system-dependent variables and create Makefiles.
6be7c12c
AO
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
252b5132
RH
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
6be7c12c
AO
10# Defaults:
11ac_help=
252b5132 12ac_default_prefix=/usr/local
6be7c12c
AO
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=no]"
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
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24ac_help="$ac_help
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
26ac_help="$ac_help
27 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
28ac_help="$ac_help
29 --enable-targets alternative target configurations"
30ac_help="$ac_help
31 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
32ac_help="$ac_help
33 --with-mmap try using mmap for BFD input files if available"
34ac_help="$ac_help
35 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
36ac_help="$ac_help
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
a703a6ea
AM
39ac_help="$ac_help
40 --install-libbfd controls installation of libbfd and related headers"
6be7c12c
AO
41ac_help="$ac_help
42 --disable-nls do not use Native Language Support"
43ac_help="$ac_help
44 --with-included-gettext use the GNU gettext library included here"
252b5132
RH
45
46# Initialize some variables set by options.
47# The variables have the same names as the options, with
48# dashes changed to underlines.
6be7c12c
AO
49build=NONE
50cache_file=./config.cache
252b5132 51exec_prefix=NONE
6be7c12c 52host=NONE
252b5132 53no_create=
6be7c12c 54nonopt=NONE
252b5132
RH
55no_recursion=
56prefix=NONE
57program_prefix=NONE
58program_suffix=NONE
59program_transform_name=s,x,x,
60silent=
61site=
62srcdir=
6be7c12c 63target=NONE
252b5132
RH
64verbose=
65x_includes=NONE
66x_libraries=NONE
67bindir='${exec_prefix}/bin'
68sbindir='${exec_prefix}/sbin'
69libexecdir='${exec_prefix}/libexec'
70datadir='${prefix}/share'
71sysconfdir='${prefix}/etc'
72sharedstatedir='${prefix}/com'
73localstatedir='${prefix}/var'
74libdir='${exec_prefix}/lib'
75includedir='${prefix}/include'
76oldincludedir='/usr/include'
77infodir='${prefix}/info'
78mandir='${prefix}/man'
79
6be7c12c
AO
80# Initialize some other variables.
81subdirs=
82MFLAGS= MAKEFLAGS=
83SHELL=${CONFIG_SHELL-/bin/sh}
84# Maximum number of lines to put in a shell here document.
85ac_max_here_lines=12
252b5132
RH
86
87ac_prev=
88for ac_option
89do
6be7c12c 90
252b5132
RH
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
94 ac_prev=
95 continue
96 fi
97
6be7c12c
AO
98 case "$ac_option" in
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 *) ac_optarg= ;;
101 esac
252b5132
RH
102
103 # Accept the important Cygnus configure options, so we can diagnose typos.
104
6be7c12c 105 case "$ac_option" in
252b5132
RH
106
107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 ac_prev=bindir ;;
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
6be7c12c 110 bindir="$ac_optarg" ;;
252b5132
RH
111
112 -build | --build | --buil | --bui | --bu)
6be7c12c 113 ac_prev=build ;;
252b5132 114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
6be7c12c 115 build="$ac_optarg" ;;
252b5132
RH
116
117 -cache-file | --cache-file | --cache-fil | --cache-fi \
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119 ac_prev=cache_file ;;
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6be7c12c 122 cache_file="$ac_optarg" ;;
252b5132
RH
123
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 ac_prev=datadir ;;
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 | --da=*)
6be7c12c 128 datadir="$ac_optarg" ;;
252b5132
RH
129
130 -disable-* | --disable-*)
6be7c12c 131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
252b5132 132 # Reject names that are not valid shell variable names.
6be7c12c
AO
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 fi
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
252b5132
RH
138
139 -enable-* | --enable-*)
6be7c12c 140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
252b5132 141 # Reject names that are not valid shell variable names.
6be7c12c
AO
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 fi
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 case "$ac_option" in
147 *=*) ;;
252b5132
RH
148 *) ac_optarg=yes ;;
149 esac
6be7c12c 150 eval "enable_${ac_feature}='$ac_optarg'" ;;
252b5132
RH
151
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154 | --exec | --exe | --ex)
155 ac_prev=exec_prefix ;;
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158 | --exec=* | --exe=* | --ex=*)
6be7c12c 159 exec_prefix="$ac_optarg" ;;
252b5132
RH
160
161 -gas | --gas | --ga | --g)
162 # Obsolete; use --with-gas.
163 with_gas=yes ;;
164
6be7c12c
AO
165 -help | --help | --hel | --he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
168 cat << EOF
169Usage: configure [options] [host]
170Options: [defaults in brackets after descriptions]
171Configuration:
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
6be7c12c
AO
176 --version print the version of autoconf that created configure
177Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
179 [$ac_default_prefix]
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 [same as prefix]
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
186 [PREFIX/share]
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 [PREFIX/com]
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
201EOF
202 cat << EOF
203Host type:
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
214EOF
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
217 fi
218 exit 0 ;;
252b5132
RH
219
220 -host | --host | --hos | --ho)
6be7c12c 221 ac_prev=host ;;
252b5132 222 -host=* | --host=* | --hos=* | --ho=*)
6be7c12c 223 host="$ac_optarg" ;;
252b5132
RH
224
225 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*)
6be7c12c 230 includedir="$ac_optarg" ;;
252b5132
RH
231
232 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 ac_prev=infodir ;;
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
6be7c12c 235 infodir="$ac_optarg" ;;
252b5132
RH
236
237 -libdir | --libdir | --libdi | --libd)
238 ac_prev=libdir ;;
239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
6be7c12c 240 libdir="$ac_optarg" ;;
252b5132
RH
241
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*)
6be7c12c 247 libexecdir="$ac_optarg" ;;
252b5132
RH
248
249 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \
251 | --locals | --local | --loca | --loc | --lo)
252 ac_prev=localstatedir ;;
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
6be7c12c 256 localstatedir="$ac_optarg" ;;
252b5132
RH
257
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 ac_prev=mandir ;;
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
6be7c12c 261 mandir="$ac_optarg" ;;
252b5132
RH
262
263 -nfp | --nfp | --nf)
264 # Obsolete; use --without-fp.
265 with_fp=no ;;
266
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 | --no-cr | --no-c)
269 no_create=yes ;;
270
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 no_recursion=yes ;;
274
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277 | --oldin | --oldi | --old | --ol | --o)
278 ac_prev=oldincludedir ;;
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
6be7c12c 282 oldincludedir="$ac_optarg" ;;
252b5132
RH
283
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 ac_prev=prefix ;;
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6be7c12c 287 prefix="$ac_optarg" ;;
252b5132
RH
288
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
6be7c12c 294 program_prefix="$ac_optarg" ;;
252b5132
RH
295
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
6be7c12c 301 program_suffix="$ac_optarg" ;;
252b5132
RH
302
303 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \
305 | --program-transform-n | --program-transform- \
306 | --program-transform | --program-transfor \
307 | --program-transfo | --program-transf \
308 | --program-trans | --program-tran \
309 | --progr-tra | --program-tr | --program-t)
310 ac_prev=program_transform_name ;;
311 -program-transform-name=* | --program-transform-name=* \
312 | --program-transform-nam=* | --program-transform-na=* \
313 | --program-transform-n=* | --program-transform-=* \
314 | --program-transform=* | --program-transfor=* \
315 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*)
6be7c12c 318 program_transform_name="$ac_optarg" ;;
252b5132
RH
319
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil)
322 silent=yes ;;
323
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 ac_prev=sbindir ;;
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 | --sbi=* | --sb=*)
6be7c12c 328 sbindir="$ac_optarg" ;;
252b5132
RH
329
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
333 | --sha | --sh)
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 | --sha=* | --sh=*)
6be7c12c 339 sharedstatedir="$ac_optarg" ;;
252b5132
RH
340
341 -site | --site | --sit)
342 ac_prev=site ;;
343 -site=* | --site=* | --sit=*)
6be7c12c
AO
344 site="$ac_optarg" ;;
345
252b5132
RH
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 ac_prev=srcdir ;;
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6be7c12c 349 srcdir="$ac_optarg" ;;
252b5132
RH
350
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
6be7c12c 356 sysconfdir="$ac_optarg" ;;
252b5132
RH
357
358 -target | --target | --targe | --targ | --tar | --ta | --t)
6be7c12c 359 ac_prev=target ;;
252b5132 360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
6be7c12c 361 target="$ac_optarg" ;;
252b5132
RH
362
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 verbose=yes ;;
365
6be7c12c
AO
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.13"
368 exit 0 ;;
252b5132
RH
369
370 -with-* | --with-*)
6be7c12c 371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
252b5132 372 # Reject names that are not valid shell variable names.
6be7c12c
AO
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 fi
252b5132 376 ac_package=`echo $ac_package| sed 's/-/_/g'`
6be7c12c
AO
377 case "$ac_option" in
378 *=*) ;;
252b5132
RH
379 *) ac_optarg=yes ;;
380 esac
6be7c12c 381 eval "with_${ac_package}='$ac_optarg'" ;;
252b5132
RH
382
383 -without-* | --without-*)
6be7c12c 384 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
252b5132 385 # Reject names that are not valid shell variable names.
6be7c12c
AO
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 fi
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
252b5132
RH
391
392 --x)
393 # Obsolete; use --with-x.
394 with_x=yes ;;
395
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
6be7c12c 401 x_includes="$ac_optarg" ;;
252b5132
RH
402
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
6be7c12c 408 x_libraries="$ac_optarg" ;;
252b5132 409
6be7c12c 410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
252b5132
RH
411 ;;
412
413 *)
6be7c12c
AO
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 fi
417 if test "x$nonopt" != xNONE; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 fi
420 nonopt="$ac_option"
252b5132
RH
421 ;;
422
423 esac
424done
425
426if test -n "$ac_prev"; then
6be7c12c
AO
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428fi
429
430trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431
432# File descriptor usage:
433# 0 standard input
434# 1 file creation
435# 2 errors and warnings
436# 3 some systems may open it to /dev/tty
437# 4 used on the Kubota Titan
438# 6 checking for... messages and results
439# 5 compiler messages saved in config.log
440if test "$silent" = yes; then
441 exec 6>/dev/null
442else
443 exec 6>&1
252b5132 444fi
6be7c12c 445exec 5>./config.log
252b5132 446
6be7c12c
AO
447echo "\
448This file contains any messages produced by compilers while
449running configure, to aid debugging if configure makes a mistake.
450" 1>&5
451
452# Strip out --no-create and --no-recursion so they do not pile up.
453# Also quote any args containing shell metacharacters.
454ac_configure_args=
455for ac_arg
252b5132 456do
6be7c12c
AO
457 case "$ac_arg" in
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459 | --no-cr | --no-c) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
252b5132
RH
465 esac
466done
467
6be7c12c
AO
468# NLS nuisances.
469# Only set these to C if already set. These must not be set unconditionally
470# because not all systems understand e.g. LANG=C (notably SCO).
471# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472# Non-C LC_CTYPE values break the ctype check.
473if test "${LANG+set}" = set; then LANG=C; export LANG; fi
474if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
252b5132 477
6be7c12c
AO
478# confdefs.h avoids OS command line length limits that DEFS can exceed.
479rm -rf conftest* confdefs.h
480# AIX cpp loses on an empty file, so make sure it contains at least a newline.
481echo > confdefs.h
252b5132 482
6be7c12c
AO
483# A filename unique to this package, relative to the directory that
484# configure is in, which we can look for to find out if srcdir is correct.
485ac_unique_file=libbfd.c
252b5132
RH
486
487# Find the source files, if location was not specified.
488if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent.
491 ac_prog=$0
6be7c12c 492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
252b5132
RH
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 srcdir=$ac_confdir
495 if test ! -r $srcdir/$ac_unique_file; then
496 srcdir=..
497 fi
498else
499 ac_srcdir_defaulted=no
500fi
501if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
6be7c12c 503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
252b5132 504 else
6be7c12c 505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
252b5132
RH
506 fi
507fi
6be7c12c 508srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
b3baf5d0 509
6be7c12c 510# Prefer explicitly selected file to automatically selected ones.
690cc98b
NC
511if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 else
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
252b5132
RH
516 fi
517fi
518for ac_site_file in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
6be7c12c 520 echo "loading site script $ac_site_file"
252b5132
RH
521 . "$ac_site_file"
522 fi
523done
524
525if test -r "$cache_file"; then
6be7c12c
AO
526 echo "loading cache $cache_file"
527 . $cache_file
252b5132 528else
6be7c12c
AO
529 echo "creating cache $cache_file"
530 > $cache_file
252b5132
RH
531fi
532
533ac_ext=c
6be7c12c 534# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
252b5132 535ac_cpp='$CPP $CPPFLAGS'
6be7c12c
AO
536ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538cross_compiling=$ac_cv_prog_cc_cross
539
540ac_exeext=
541ac_objext=o
542if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545 ac_n= ac_c='
546' ac_t=' '
547 else
548 ac_n=-n ac_c= ac_t=
549 fi
550else
551 ac_n= ac_c='\c' ac_t=
552fi
553
554echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
a703a6ea 555echo "configure:556: checking for Cygwin environment" >&5
6be7c12c
AO
556if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
557 echo $ac_n "(cached) $ac_c" 1>&6
558else
559 cat > conftest.$ac_ext <<EOF
a703a6ea 560#line 561 "configure"
6be7c12c
AO
561#include "confdefs.h"
562
563int main() {
564
565#ifndef __CYGWIN__
566#define __CYGWIN__ __CYGWIN32__
567#endif
568return __CYGWIN__;
569; return 0; }
570EOF
a703a6ea 571if { (eval echo configure:572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c
AO
572 rm -rf conftest*
573 ac_cv_cygwin=yes
574else
575 echo "configure: failed program was:" >&5
576 cat conftest.$ac_ext >&5
577 rm -rf conftest*
578 ac_cv_cygwin=no
579fi
580rm -f conftest*
581rm -f conftest*
582fi
583
584echo "$ac_t""$ac_cv_cygwin" 1>&6
585CYGWIN=
586test "$ac_cv_cygwin" = yes && CYGWIN=yes
587echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
a703a6ea 588echo "configure:589: checking for mingw32 environment" >&5
6be7c12c
AO
589if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
591else
592 cat > conftest.$ac_ext <<EOF
a703a6ea 593#line 594 "configure"
6be7c12c
AO
594#include "confdefs.h"
595
596int main() {
597return __MINGW32__;
598; return 0; }
599EOF
a703a6ea 600if { (eval echo configure:601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c
AO
601 rm -rf conftest*
602 ac_cv_mingw32=yes
ac48eca1 603else
6be7c12c
AO
604 echo "configure: failed program was:" >&5
605 cat conftest.$ac_ext >&5
606 rm -rf conftest*
607 ac_cv_mingw32=no
608fi
609rm -f conftest*
610rm -f conftest*
ac48eca1 611fi
6be7c12c
AO
612
613echo "$ac_t""$ac_cv_mingw32" 1>&6
614MINGW32=
615test "$ac_cv_mingw32" = yes && MINGW32=yes
616
252b5132
RH
617
618ac_aux_dir=
619for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
620 if test -f $ac_dir/install-sh; then
621 ac_aux_dir=$ac_dir
622 ac_install_sh="$ac_aux_dir/install-sh -c"
623 break
624 elif test -f $ac_dir/install.sh; then
625 ac_aux_dir=$ac_dir
626 ac_install_sh="$ac_aux_dir/install.sh -c"
627 break
628 fi
629done
630if test -z "$ac_aux_dir"; then
6be7c12c 631 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
252b5132 632fi
6be7c12c
AO
633ac_config_guess=$ac_aux_dir/config.guess
634ac_config_sub=$ac_aux_dir/config.sub
635ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
252b5132 636
6be7c12c
AO
637
638# Do some error checking and defaulting for the host and target type.
639# The inputs are:
640# configure --host=HOST --target=TARGET --build=BUILD NONOPT
641#
642# The rules are:
643# 1. You are not allowed to specify --host, --target, and nonopt at the
644# same time.
645# 2. Host defaults to nonopt.
646# 3. If nonopt is not specified, then host defaults to the current host,
647# as determined by config.guess.
648# 4. Target and build default to nonopt.
649# 5. If nonopt is not specified, then target and build default to host.
252b5132
RH
650
651# The aliases save the names the user supplied, while $host etc.
652# will get canonicalized.
6be7c12c
AO
653case $host---$target---$nonopt in
654NONE---*---* | *---NONE---* | *---*---NONE) ;;
655*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
656esac
657
658
659# Make sure we can run config.sub.
660if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
661else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
662fi
663
664echo $ac_n "checking host system type""... $ac_c" 1>&6
a703a6ea 665echo "configure:666: checking host system type" >&5
6be7c12c
AO
666
667host_alias=$host
668case "$host_alias" in
669NONE)
670 case $nonopt in
671 NONE)
672 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
673 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
674 fi ;;
675 *) host_alias=$nonopt ;;
676 esac ;;
677esac
678
679host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
680host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683echo "$ac_t""$host" 1>&6
684
685echo $ac_n "checking target system type""... $ac_c" 1>&6
a703a6ea 686echo "configure:687: checking target system type" >&5
6be7c12c
AO
687
688target_alias=$target
689case "$target_alias" in
690NONE)
691 case $nonopt in
692 NONE) target_alias=$host_alias ;;
693 *) target_alias=$nonopt ;;
694 esac ;;
695esac
696
697target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
698target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
699target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
700target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
701echo "$ac_t""$target" 1>&6
702
703echo $ac_n "checking build system type""... $ac_c" 1>&6
a703a6ea 704echo "configure:705: checking build system type" >&5
6be7c12c
AO
705
706build_alias=$build
707case "$build_alias" in
708NONE)
709 case $nonopt in
710 NONE) build_alias=$host_alias ;;
711 *) build_alias=$nonopt ;;
712 esac ;;
713esac
714
715build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
716build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
717build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
718build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
719echo "$ac_t""$build" 1>&6
720
721test "$host_alias" != "$target_alias" &&
252b5132
RH
722 test "$program_prefix$program_suffix$program_transform_name" = \
723 NONENONEs,x,x, &&
724 program_prefix=${target_alias}-
6be7c12c 725
66e25bab
AM
726# Extract the first word of "gcc", so it can be a program name with args.
727set dummy gcc; ac_word=$2
728echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
729echo "configure:730: checking for $ac_word" >&5
730if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
732else
733 if test -n "$CC"; then
734 ac_cv_prog_CC="$CC" # Let the user override the test.
735else
736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
737 ac_dummy="$PATH"
738 for ac_dir in $ac_dummy; do
739 test -z "$ac_dir" && ac_dir=.
740 if test -f $ac_dir/$ac_word; then
741 ac_cv_prog_CC="gcc"
742 break
743 fi
744 done
745 IFS="$ac_save_ifs"
746fi
747fi
748CC="$ac_cv_prog_CC"
749if test -n "$CC"; then
750 echo "$ac_t""$CC" 1>&6
751else
752 echo "$ac_t""no" 1>&6
753fi
3b16e843 754
66e25bab
AM
755if test -z "$CC"; then
756 # Extract the first word of "cc", so it can be a program name with args.
757set dummy cc; ac_word=$2
758echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
759echo "configure:760: checking for $ac_word" >&5
760if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3b16e843
NC
761 echo $ac_n "(cached) $ac_c" 1>&6
762else
66e25bab
AM
763 if test -n "$CC"; then
764 ac_cv_prog_CC="$CC" # Let the user override the test.
765else
766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
767 ac_prog_rejected=no
768 ac_dummy="$PATH"
769 for ac_dir in $ac_dummy; do
770 test -z "$ac_dir" && ac_dir=.
771 if test -f $ac_dir/$ac_word; then
772 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
773 ac_prog_rejected=yes
774 continue
775 fi
776 ac_cv_prog_CC="cc"
777 break
778 fi
779 done
780 IFS="$ac_save_ifs"
781if test $ac_prog_rejected = yes; then
782 # We found a bogon in the path, so make sure we never use it.
783 set dummy $ac_cv_prog_CC
784 shift
785 if test $# -gt 0; then
786 # We chose a different compiler from the bogus one.
787 # However, it has the same basename, so the bogon will be chosen
788 # first if we set CC to just the basename; use the full file name.
789 shift
790 set dummy "$ac_dir/$ac_word" "$@"
791 shift
792 ac_cv_prog_CC="$@"
793 fi
794fi
795fi
796fi
797CC="$ac_cv_prog_CC"
798if test -n "$CC"; then
799 echo "$ac_t""$CC" 1>&6
800else
801 echo "$ac_t""no" 1>&6
802fi
803
804 if test -z "$CC"; then
805 case "`uname -s`" in
806 *win32* | *WIN32*)
807 # Extract the first word of "cl", so it can be a program name with args.
808set dummy cl; ac_word=$2
809echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
810echo "configure:811: checking for $ac_word" >&5
811if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
813else
814 if test -n "$CC"; then
815 ac_cv_prog_CC="$CC" # Let the user override the test.
816else
817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
818 ac_dummy="$PATH"
819 for ac_dir in $ac_dummy; do
820 test -z "$ac_dir" && ac_dir=.
821 if test -f $ac_dir/$ac_word; then
822 ac_cv_prog_CC="cl"
823 break
824 fi
825 done
826 IFS="$ac_save_ifs"
827fi
828fi
829CC="$ac_cv_prog_CC"
830if test -n "$CC"; then
831 echo "$ac_t""$CC" 1>&6
832else
833 echo "$ac_t""no" 1>&6
834fi
835 ;;
836 esac
837 fi
838 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
839fi
840
841echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
842echo "configure:843: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
843
844ac_ext=c
845# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
846ac_cpp='$CPP $CPPFLAGS'
847ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
848ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
849cross_compiling=$ac_cv_prog_cc_cross
850
851cat > conftest.$ac_ext << EOF
852
853#line 854 "configure"
b3baf5d0
NC
854#include "confdefs.h"
855
66e25bab 856main(){return(0);}
6be7c12c 857EOF
66e25bab
AM
858if { (eval echo configure:859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
859 ac_cv_prog_cc_works=yes
860 # If we can't run a trivial program, we are probably using a cross compiler.
861 if (./conftest; exit) 2>/dev/null; then
862 ac_cv_prog_cc_cross=no
863 else
864 ac_cv_prog_cc_cross=yes
865 fi
b3baf5d0 866else
6be7c12c
AO
867 echo "configure: failed program was:" >&5
868 cat conftest.$ac_ext >&5
66e25bab
AM
869 ac_cv_prog_cc_works=no
870fi
871rm -fr conftest*
872ac_ext=c
873# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
874ac_cpp='$CPP $CPPFLAGS'
875ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
876ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
877cross_compiling=$ac_cv_prog_cc_cross
878
879echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
880if test $ac_cv_prog_cc_works = no; then
881 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
882fi
883echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
884echo "configure:885: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
885echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
886cross_compiling=$ac_cv_prog_cc_cross
887
888echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
889echo "configure:890: checking whether we are using GNU C" >&5
890if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
892else
893 cat > conftest.c <<EOF
894#ifdef __GNUC__
895 yes;
896#endif
897EOF
898if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
899 ac_cv_prog_gcc=yes
900else
901 ac_cv_prog_gcc=no
902fi
903fi
904
905echo "$ac_t""$ac_cv_prog_gcc" 1>&6
906
907if test $ac_cv_prog_gcc = yes; then
908 GCC=yes
909else
910 GCC=
911fi
912
913ac_test_CFLAGS="${CFLAGS+set}"
914ac_save_CFLAGS="$CFLAGS"
915CFLAGS=
916echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
917echo "configure:918: checking whether ${CC-cc} accepts -g" >&5
918if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
920else
921 echo 'void f(){}' > conftest.c
922if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
923 ac_cv_prog_cc_g=yes
924else
925 ac_cv_prog_cc_g=no
b3baf5d0 926fi
6be7c12c
AO
927rm -f conftest*
928
b3baf5d0 929fi
66e25bab
AM
930
931echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
932if test "$ac_test_CFLAGS" = set; then
933 CFLAGS="$ac_save_CFLAGS"
934elif test $ac_cv_prog_cc_g = yes; then
935 if test "$GCC" = yes; then
936 CFLAGS="-g -O2"
937 else
938 CFLAGS="-g"
939 fi
940else
941 if test "$GCC" = yes; then
942 CFLAGS="-O2"
943 else
944 CFLAGS=
945 fi
946fi
947
948echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
949echo "configure:950: checking for POSIXized ISC" >&5
950if test -d /etc/conf/kconfig.d &&
951 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
952then
6be7c12c 953 echo "$ac_t""yes" 1>&6
66e25bab
AM
954 ISC=yes # If later tests want to check for ISC.
955 cat >> confdefs.h <<\EOF
956#define _POSIX_SOURCE 1
957EOF
958
959 if test "$GCC" = yes; then
960 CC="$CC -posix"
961 else
962 CC="$CC -Xp"
963 fi
b3baf5d0 964else
6be7c12c 965 echo "$ac_t""no" 1>&6
66e25bab 966 ISC=
b3baf5d0 967fi
252b5132 968
6be7c12c 969
252b5132
RH
970# Find a good install program. We prefer a C program (faster),
971# so one script is as good as another. But avoid the broken or
972# incompatible versions:
973# SysV /etc/install, /usr/sbin/install
974# SunOS /usr/etc/install
975# IRIX /sbin/install
976# AIX /bin/install
977# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
978# AFS /usr/afsws/bin/install, which mishandles nonexistent args
979# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
980# ./install, which can be erroneously created by make from ./install.sh.
6be7c12c 981echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
66e25bab 982echo "configure:983: checking for a BSD compatible install" >&5
252b5132 983if test -z "$INSTALL"; then
6be7c12c
AO
984if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 986else
6be7c12c 987 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
252b5132
RH
988 for ac_dir in $PATH; do
989 # Account for people who put trailing slashes in PATH elements.
6be7c12c
AO
990 case "$ac_dir/" in
991 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
252b5132
RH
992 *)
993 # OSF1 and SCO ODT 3.0 have their own names for install.
994 # Don't use installbsd from OSF since it installs stuff as root
995 # by default.
996 for ac_prog in ginstall scoinst install; do
6be7c12c 997 if test -f $ac_dir/$ac_prog; then
252b5132 998 if test $ac_prog = install &&
6be7c12c 999 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
252b5132
RH
1000 # AIX install. It has an incompatible calling convention.
1001 :
1002 else
1003 ac_cv_path_install="$ac_dir/$ac_prog -c"
1004 break 2
1005 fi
1006 fi
1007 done
1008 ;;
1009 esac
1010 done
6be7c12c 1011 IFS="$ac_save_IFS"
252b5132
RH
1012
1013fi
1014 if test "${ac_cv_path_install+set}" = set; then
6be7c12c 1015 INSTALL="$ac_cv_path_install"
252b5132
RH
1016 else
1017 # As a last resort, use the slow shell script. We don't cache a
1018 # path for INSTALL within a source directory, because that will
1019 # break other packages using the cache if that directory is
1020 # removed, or if the path is relative.
6be7c12c 1021 INSTALL="$ac_install_sh"
252b5132
RH
1022 fi
1023fi
6be7c12c 1024echo "$ac_t""$INSTALL" 1>&6
252b5132
RH
1025
1026# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1027# It thinks the first close brace ends the variable substitution.
1028test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1029
6be7c12c 1030test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
252b5132
RH
1031
1032test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1033
6be7c12c 1034echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
66e25bab 1035echo "configure:1036: checking whether build environment is sane" >&5
252b5132
RH
1036# Just in case
1037sleep 1
1038echo timestamp > conftestfile
1039# Do `set' in a subshell so we don't clobber the current shell's
1040# arguments. Must try -L first in case configure is actually a
1041# symlink; some systems play weird games with the mod time of symlinks
1042# (eg FreeBSD returns the mod time of the symlink's containing
1043# directory).
1044if (
1045 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1046 if test "$*" = "X"; then
1047 # -L didn't work.
1048 set X `ls -t $srcdir/configure conftestfile`
1049 fi
1050 if test "$*" != "X $srcdir/configure conftestfile" \
1051 && test "$*" != "X conftestfile $srcdir/configure"; then
1052
1053 # If neither matched, then we have a broken ls. This can happen
1054 # if, for instance, CONFIG_SHELL is bash and it inherits a
1055 # broken ls alias from the environment. This has actually
1056 # happened. Such a system could not be considered "sane".
6be7c12c
AO
1057 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1058alias in your environment" 1>&2; exit 1; }
252b5132
RH
1059 fi
1060
1061 test "$2" = conftestfile
1062 )
1063then
1064 # Ok.
1065 :
1066else
6be7c12c
AO
1067 { echo "configure: error: newly created file is older than distributed files!
1068Check your system clock" 1>&2; exit 1; }
252b5132
RH
1069fi
1070rm -f conftest*
6be7c12c 1071echo "$ac_t""yes" 1>&6
252b5132
RH
1072if test "$program_transform_name" = s,x,x,; then
1073 program_transform_name=
1074else
1075 # Double any \ or $. echo might interpret backslashes.
6be7c12c 1076 cat <<\EOF_SED > conftestsed
252b5132 1077s,\\,\\\\,g; s,\$,$$,g
6be7c12c
AO
1078EOF_SED
1079 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1080 rm -f conftestsed
252b5132
RH
1081fi
1082test "$program_prefix" != NONE &&
6be7c12c 1083 program_transform_name="s,^,${program_prefix},; $program_transform_name"
252b5132
RH
1084# Use a double $ so make ignores it.
1085test "$program_suffix" != NONE &&
6be7c12c 1086 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
252b5132
RH
1087
1088# sed with no file args requires a program.
6be7c12c 1089test "$program_transform_name" = "" && program_transform_name="s,x,x,"
252b5132 1090
6be7c12c 1091echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
66e25bab 1092echo "configure:1093: checking whether ${MAKE-make} sets \${MAKE}" >&5
6be7c12c
AO
1093set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1094if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 1096else
6be7c12c 1097 cat > conftestmake <<\EOF
252b5132
RH
1098all:
1099 @echo 'ac_maketemp="${MAKE}"'
1100EOF
1101# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6be7c12c 1102eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
252b5132
RH
1103if test -n "$ac_maketemp"; then
1104 eval ac_cv_prog_make_${ac_make}_set=yes
1105else
1106 eval ac_cv_prog_make_${ac_make}_set=no
1107fi
6be7c12c 1108rm -f conftestmake
252b5132
RH
1109fi
1110if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6be7c12c 1111 echo "$ac_t""yes" 1>&6
252b5132
RH
1112 SET_MAKE=
1113else
6be7c12c 1114 echo "$ac_t""no" 1>&6
252b5132
RH
1115 SET_MAKE="MAKE=${MAKE-make}"
1116fi
1117
6be7c12c 1118
252b5132
RH
1119PACKAGE=bfd
1120
a6903459 1121VERSION=2.13.90
252b5132
RH
1122
1123if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
6be7c12c 1124 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
252b5132 1125fi
6be7c12c 1126cat >> confdefs.h <<EOF
252b5132
RH
1127#define PACKAGE "$PACKAGE"
1128EOF
1129
6be7c12c 1130cat >> confdefs.h <<EOF
252b5132
RH
1131#define VERSION "$VERSION"
1132EOF
1133
6be7c12c
AO
1134
1135
252b5132 1136missing_dir=`cd $ac_aux_dir && pwd`
6be7c12c 1137echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
66e25bab 1138echo "configure:1139: checking for working aclocal" >&5
252b5132
RH
1139# Run test in a subshell; some versions of sh will print an error if
1140# an executable is not found, even if stderr is redirected.
1141# Redirect stdin to placate older versions of autoconf. Sigh.
1142if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1143 ACLOCAL=aclocal
6be7c12c 1144 echo "$ac_t""found" 1>&6
252b5132
RH
1145else
1146 ACLOCAL="$missing_dir/missing aclocal"
6be7c12c 1147 echo "$ac_t""missing" 1>&6
252b5132
RH
1148fi
1149
6be7c12c 1150echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
66e25bab 1151echo "configure:1152: checking for working autoconf" >&5
252b5132
RH
1152# Run test in a subshell; some versions of sh will print an error if
1153# an executable is not found, even if stderr is redirected.
1154# Redirect stdin to placate older versions of autoconf. Sigh.
1155if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1156 AUTOCONF=autoconf
6be7c12c 1157 echo "$ac_t""found" 1>&6
252b5132
RH
1158else
1159 AUTOCONF="$missing_dir/missing autoconf"
6be7c12c 1160 echo "$ac_t""missing" 1>&6
252b5132
RH
1161fi
1162
6be7c12c 1163echo $ac_n "checking for working automake""... $ac_c" 1>&6
66e25bab 1164echo "configure:1165: checking for working automake" >&5
252b5132
RH
1165# Run test in a subshell; some versions of sh will print an error if
1166# an executable is not found, even if stderr is redirected.
1167# Redirect stdin to placate older versions of autoconf. Sigh.
1168if (automake --version) < /dev/null > /dev/null 2>&1; then
1169 AUTOMAKE=automake
6be7c12c 1170 echo "$ac_t""found" 1>&6
252b5132
RH
1171else
1172 AUTOMAKE="$missing_dir/missing automake"
6be7c12c 1173 echo "$ac_t""missing" 1>&6
252b5132
RH
1174fi
1175
6be7c12c 1176echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
66e25bab 1177echo "configure:1178: checking for working autoheader" >&5
252b5132
RH
1178# Run test in a subshell; some versions of sh will print an error if
1179# an executable is not found, even if stderr is redirected.
1180# Redirect stdin to placate older versions of autoconf. Sigh.
1181if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1182 AUTOHEADER=autoheader
6be7c12c 1183 echo "$ac_t""found" 1>&6
252b5132
RH
1184else
1185 AUTOHEADER="$missing_dir/missing autoheader"
6be7c12c 1186 echo "$ac_t""missing" 1>&6
252b5132
RH
1187fi
1188
6be7c12c 1189echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
66e25bab 1190echo "configure:1191: checking for working makeinfo" >&5
252b5132
RH
1191# Run test in a subshell; some versions of sh will print an error if
1192# an executable is not found, even if stderr is redirected.
1193# Redirect stdin to placate older versions of autoconf. Sigh.
1194if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1195 MAKEINFO=makeinfo
6be7c12c 1196 echo "$ac_t""found" 1>&6
252b5132
RH
1197else
1198 MAKEINFO="$missing_dir/missing makeinfo"
6be7c12c 1199 echo "$ac_t""missing" 1>&6
252b5132
RH
1200fi
1201
6be7c12c 1202
e43d48cc
AM
1203# Uncomment the next line to remove the date from the reported bfd version
1204#is_release=y
1205
1206bfd_version=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
1207
1208bfd_version_string="\"${VERSION}\""
e43d48cc 1209if test x${is_release} = x; then
6a0735ef 1210 bfd_version_date=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
e43d48cc
AM
1211 bfd_version_string="\"${VERSION} ${bfd_version_date}\""
1212fi
1213
1214
1215
6be7c12c
AO
1216if test $host != $build; then
1217 ac_tool_prefix=${host_alias}-
1218else
1219 ac_tool_prefix=
1220fi
1221
1222# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 1223set dummy ${ac_tool_prefix}ar; ac_word=$2
6be7c12c 1224echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 1225echo "configure:1226: checking for $ac_word" >&5
6be7c12c
AO
1226if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
1228else
1229 if test -n "$AR"; then
1230 ac_cv_prog_AR="$AR" # Let the user override the test.
1231else
6be7c12c
AO
1232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1233 ac_dummy="$PATH"
1234 for ac_dir in $ac_dummy; do
1235 test -z "$ac_dir" && ac_dir=.
1236 if test -f $ac_dir/$ac_word; then
1237 ac_cv_prog_AR="${ac_tool_prefix}ar"
1238 break
1239 fi
1240 done
1241 IFS="$ac_save_ifs"
1242 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
252b5132
RH
1243fi
1244fi
6be7c12c 1245AR="$ac_cv_prog_AR"
252b5132 1246if test -n "$AR"; then
6be7c12c 1247 echo "$ac_t""$AR" 1>&6
252b5132 1248else
6be7c12c 1249 echo "$ac_t""no" 1>&6
252b5132
RH
1250fi
1251
1252
6be7c12c
AO
1253
1254# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 1255set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6be7c12c 1256echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 1257echo "configure:1258: checking for $ac_word" >&5
6be7c12c
AO
1258if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
1260else
1261 if test -n "$RANLIB"; then
1262 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1263else
6be7c12c
AO
1264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1265 ac_dummy="$PATH"
1266 for ac_dir in $ac_dummy; do
1267 test -z "$ac_dir" && ac_dir=.
1268 if test -f $ac_dir/$ac_word; then
1269 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1270 break
1271 fi
1272 done
1273 IFS="$ac_save_ifs"
252b5132
RH
1274fi
1275fi
6be7c12c 1276RANLIB="$ac_cv_prog_RANLIB"
252b5132 1277if test -n "$RANLIB"; then
6be7c12c 1278 echo "$ac_t""$RANLIB" 1>&6
252b5132 1279else
6be7c12c 1280 echo "$ac_t""no" 1>&6
252b5132
RH
1281fi
1282
6be7c12c 1283
252b5132 1284if test -z "$ac_cv_prog_RANLIB"; then
6be7c12c 1285if test -n "$ac_tool_prefix"; then
252b5132
RH
1286 # Extract the first word of "ranlib", so it can be a program name with args.
1287set dummy ranlib; ac_word=$2
6be7c12c 1288echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 1289echo "configure:1290: checking for $ac_word" >&5
6be7c12c
AO
1290if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1292else
1293 if test -n "$RANLIB"; then
1294 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1295else
1296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1297 ac_dummy="$PATH"
1298 for ac_dir in $ac_dummy; do
1299 test -z "$ac_dir" && ac_dir=.
1300 if test -f $ac_dir/$ac_word; then
1301 ac_cv_prog_RANLIB="ranlib"
1302 break
1303 fi
1304 done
1305 IFS="$ac_save_ifs"
1306 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
252b5132
RH
1307fi
1308fi
6be7c12c
AO
1309RANLIB="$ac_cv_prog_RANLIB"
1310if test -n "$RANLIB"; then
1311 echo "$ac_t""$RANLIB" 1>&6
252b5132 1312else
6be7c12c 1313 echo "$ac_t""no" 1>&6
252b5132
RH
1314fi
1315
1316else
6be7c12c 1317 RANLIB=":"
252b5132 1318fi
6be7c12c
AO
1319fi
1320
252b5132
RH
1321
1322# Check whether --enable-shared or --disable-shared was given.
1323if test "${enable_shared+set}" = set; then
1324 enableval="$enable_shared"
1325 p=${PACKAGE-default}
55c80943 1326case $enableval in
252b5132
RH
1327yes) enable_shared=yes ;;
1328no) enable_shared=no ;;
1329*)
1330 enable_shared=no
1331 # Look at the argument we got. We use all the common list separators.
1332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1333 for pkg in $enableval; do
1334 if test "X$pkg" = "X$p"; then
1335 enable_shared=yes
1336 fi
1337 done
1338 IFS="$ac_save_ifs"
1339 ;;
1340esac
1341else
1342 enable_shared=no
6be7c12c
AO
1343fi
1344
252b5132
RH
1345
1346# Check whether --enable-static or --disable-static was given.
1347if test "${enable_static+set}" = set; then
1348 enableval="$enable_static"
1349 p=${PACKAGE-default}
55c80943 1350case $enableval in
252b5132
RH
1351yes) enable_static=yes ;;
1352no) enable_static=no ;;
1353*)
1354 enable_static=no
1355 # Look at the argument we got. We use all the common list separators.
1356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1357 for pkg in $enableval; do
1358 if test "X$pkg" = "X$p"; then
1359 enable_static=yes
1360 fi
1361 done
1362 IFS="$ac_save_ifs"
1363 ;;
1364esac
1365else
1366 enable_static=yes
6be7c12c
AO
1367fi
1368
b2ef150d
ILT
1369# Check whether --enable-fast-install or --disable-fast-install was given.
1370if test "${enable_fast_install+set}" = set; then
1371 enableval="$enable_fast_install"
1372 p=${PACKAGE-default}
55c80943 1373case $enableval in
b2ef150d
ILT
1374yes) enable_fast_install=yes ;;
1375no) enable_fast_install=no ;;
1376*)
1377 enable_fast_install=no
1378 # Look at the argument we got. We use all the common list separators.
1379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1380 for pkg in $enableval; do
1381 if test "X$pkg" = "X$p"; then
1382 enable_fast_install=yes
1383 fi
1384 done
1385 IFS="$ac_save_ifs"
1386 ;;
1387esac
1388else
1389 enable_fast_install=yes
6be7c12c 1390fi
8d88c4ca 1391
252b5132
RH
1392# Check whether --with-gnu-ld or --without-gnu-ld was given.
1393if test "${with_gnu_ld+set}" = set; then
1394 withval="$with_gnu_ld"
1395 test "$withval" = no || with_gnu_ld=yes
1396else
1397 with_gnu_ld=no
6be7c12c
AO
1398fi
1399
252b5132 1400ac_prog=ld
55c80943 1401if test "$GCC" = yes; then
252b5132 1402 # Check if gcc -print-prog-name=ld gives a path.
6be7c12c 1403 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
66e25bab 1404echo "configure:1405: checking for ld used by GCC" >&5
ac48eca1
AO
1405 case $host in
1406 *-*-mingw*)
1407 # gcc leaves a trailing carriage return which upsets mingw
1408 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1409 *)
1410 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1411 esac
55c80943 1412 case $ac_prog in
b2ef150d 1413 # Accept absolute paths.
a74801ba 1414 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
1415 re_direlt='/[^/][^/]*/\.\./'
1416 # Canonicalize the path of ld
1417 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1418 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1419 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1420 done
1421 test -z "$LD" && LD="$ac_prog"
1422 ;;
252b5132
RH
1423 "")
1424 # If it fails, then pretend we aren't using GCC.
1425 ac_prog=ld
1426 ;;
1427 *)
1428 # If it is relative, then search for the first ld in PATH.
1429 with_gnu_ld=unknown
1430 ;;
1431 esac
1432elif test "$with_gnu_ld" = yes; then
6be7c12c 1433 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
66e25bab 1434echo "configure:1435: checking for GNU ld" >&5
252b5132 1435else
6be7c12c 1436 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
66e25bab 1437echo "configure:1438: checking for non-GNU ld" >&5
252b5132 1438fi
6be7c12c
AO
1439if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
1441else
1442 if test -z "$LD"; then
a74801ba 1443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
1444 for ac_dir in $PATH; do
1445 test -z "$ac_dir" && ac_dir=.
a74801ba 1446 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 1447 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
1448 # Check to see if the program is GNU ld. I'd rather use --version,
1449 # but apparently some GNU ld's only accept -v.
1450 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 1451 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
1452 test "$with_gnu_ld" != no && break
1453 else
b2ef150d 1454 test "$with_gnu_ld" != yes && break
252b5132
RH
1455 fi
1456 fi
1457 done
1458 IFS="$ac_save_ifs"
1459else
55c80943 1460 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
1461fi
1462fi
1463
55c80943 1464LD="$lt_cv_path_LD"
252b5132 1465if test -n "$LD"; then
6be7c12c 1466 echo "$ac_t""$LD" 1>&6
252b5132 1467else
6be7c12c 1468 echo "$ac_t""no" 1>&6
252b5132 1469fi
6be7c12c
AO
1470test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1471echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
66e25bab 1472echo "configure:1473: checking if the linker ($LD) is GNU ld" >&5
6be7c12c
AO
1473if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
1475else
1476 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1477if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 1478 lt_cv_prog_gnu_ld=yes
252b5132 1479else
55c80943 1480 lt_cv_prog_gnu_ld=no
252b5132
RH
1481fi
1482fi
6be7c12c
AO
1483
1484echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
55c80943 1485with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 1486
6be7c12c
AO
1487
1488echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
66e25bab 1489echo "configure:1490: checking for $LD option to reload object files" >&5
6be7c12c
AO
1490if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
ac48eca1
AO
1492else
1493 lt_cv_ld_reload_flag='-r'
1494fi
6be7c12c
AO
1495
1496echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
ac48eca1
AO
1497reload_flag=$lt_cv_ld_reload_flag
1498test -n "$reload_flag" && reload_flag=" $reload_flag"
1499
6be7c12c 1500echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
66e25bab 1501echo "configure:1502: checking for BSD-compatible nm" >&5
6be7c12c
AO
1502if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
1504else
1505 if test -n "$NM"; then
1506 # Let the user override the test.
55c80943 1507 lt_cv_path_NM="$NM"
252b5132 1508else
a74801ba 1509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 1510 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 1511 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
1512 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1513 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
1514 # Check to see if the nm accepts a BSD-compat flag.
1515 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1516 # nm: unknown option "B" ignored
90f2472a
AO
1517 # Tru64's nm complains that /dev/null is an invalid object file
1518 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 1519 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 1520 break
ac48eca1 1521 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 1522 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 1523 break
252b5132 1524 else
55c80943 1525 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 1526 continue # so that we can try to find one that supports BSD flags
252b5132 1527 fi
252b5132
RH
1528 fi
1529 done
1530 IFS="$ac_save_ifs"
55c80943 1531 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
1532fi
1533fi
1534
55c80943 1535NM="$lt_cv_path_NM"
6be7c12c 1536echo "$ac_t""$NM" 1>&6
252b5132 1537
6be7c12c 1538echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
66e25bab 1539echo "configure:1540: checking whether ln -s works" >&5
6be7c12c
AO
1540if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1542else
1543 rm -f conftestdata
1544if ln -s X conftestdata 2>/dev/null
1545then
1546 rm -f conftestdata
1547 ac_cv_prog_LN_S="ln -s"
252b5132 1548else
6be7c12c
AO
1549 ac_cv_prog_LN_S=ln
1550fi
1551fi
1552LN_S="$ac_cv_prog_LN_S"
1553if test "$ac_cv_prog_LN_S" = "ln -s"; then
1554 echo "$ac_t""yes" 1>&6
1555else
1556 echo "$ac_t""no" 1>&6
252b5132
RH
1557fi
1558
6be7c12c 1559echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
66e25bab 1560echo "configure:1561: checking how to recognise dependant libraries" >&5
6be7c12c
AO
1561if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
ac48eca1 1563else
d64552c5 1564 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
1565lt_cv_file_magic_test_file=
1566lt_cv_deplibs_check_method='unknown'
1567# Need to set the preceding variable on all platforms that support
1568# interlibrary dependencies.
1569# 'none' -- dependencies not supported.
1570# `unknown' -- same as none, but documents that we really don't know.
1571# 'pass_all' -- all dependencies passed with no checks.
1572# 'test_compile' -- check by making test program.
1573# 'file_magic [regex]' -- check by looking for files in library path
1574# which responds to the $file_magic_cmd with a given egrep regex.
1575# If you have `file' or equivalent on your system and you're not sure
1576# whether `pass_all' will *always* work, you probably want this one.
1577
55c80943
NC
1578case $host_os in
1579aix*)
ac48eca1
AO
1580 lt_cv_deplibs_check_method=pass_all
1581 ;;
1582
1583beos*)
1584 lt_cv_deplibs_check_method=pass_all
1585 ;;
1586
1587bsdi4*)
55c80943
NC
1588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1589 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
1590 lt_cv_file_magic_test_file=/shlib/libc.so
1591 ;;
1592
d64552c5 1593cygwin* | mingw* |pw32*)
ac48eca1 1594 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 1595 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
1596 ;;
1597
55c80943
NC
1598darwin* | rhapsody*)
1599 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
1600 lt_cv_file_magic_cmd='/usr/bin/file -L'
1601 case "$host_os" in
1602 rhapsody* | darwin1.012)
1603 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1604 ;;
1605 *) # Darwin 1.3 on
1606 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1607 ;;
1608 esac
55c80943
NC
1609 ;;
1610
ac48eca1
AO
1611freebsd* )
1612 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 1613 case $host_cpu in
ac48eca1 1614 i*86 )
90f2472a
AO
1615 # Not sure whether the presence of OpenBSD here was a mistake.
1616 # Let's accept both of them until this is cleared up.
55c80943
NC
1617 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1618 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
1619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1620 ;;
1621 esac
1622 else
1623 lt_cv_deplibs_check_method=pass_all
1624 fi
1625 ;;
1626
1627gnu*)
1628 lt_cv_deplibs_check_method=pass_all
1629 ;;
1630
55c80943 1631hpux10.20*|hpux11*)
4867be41
DJ
1632 case $host_cpu in
1633 hppa*)
1634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1635 lt_cv_file_magic_cmd=/usr/bin/file
1636 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1637 ;;
1638 ia64*)
1639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1640 lt_cv_file_magic_cmd=/usr/bin/file
1641 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1642 ;;
1643 esac
ac48eca1
AO
1644 ;;
1645
1646irix5* | irix6*)
55c80943 1647 case $host_os in
ac48eca1
AO
1648 irix5*)
1649 # this will be overridden with pass_all, but let us keep it just in case
1650 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1651 ;;
1652 *)
55c80943 1653 case $LD in
ac48eca1
AO
1654 *-32|*"-32 ") libmagic=32-bit;;
1655 *-n32|*"-n32 ") libmagic=N32;;
1656 *-64|*"-64 ") libmagic=64-bit;;
1657 *) libmagic=never-match;;
1658 esac
1659 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
1660 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1661 ;;
ac48eca1
AO
1662 esac
1663 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1664 lt_cv_deplibs_check_method=pass_all
1665 ;;
1666
1667# This must be Linux ELF.
90f2472a 1668linux-gnu*)
55c80943 1669 case $host_cpu in
6be7c12c 1670 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
1671 lt_cv_deplibs_check_method=pass_all ;;
1672 *)
1673 # glibc up to 2.1.1 does not perform some relocations on ARM
55c80943
NC
1674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1675 esac
ac48eca1
AO
1676 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1677 ;;
1678
1679netbsd*)
55c80943 1680 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 1681 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 1682 else
b3baf5d0 1683 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 1684 fi
55c80943
NC
1685 ;;
1686
1687newsos6)
1688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1689 lt_cv_file_magic_cmd=/usr/bin/file
1690 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
1691 ;;
1692
1693osf3* | osf4* | osf5*)
1694 # this will be overridden with pass_all, but let us keep it just in case
1695 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1696 lt_cv_file_magic_test_file=/shlib/libc.so
1697 lt_cv_deplibs_check_method=pass_all
1698 ;;
1699
1700sco3.2v5*)
1701 lt_cv_deplibs_check_method=pass_all
1702 ;;
1703
1704solaris*)
1705 lt_cv_deplibs_check_method=pass_all
1706 lt_cv_file_magic_test_file=/lib/libc.so
1707 ;;
1708
6be7c12c
AO
1709sysv5uw[78]* | sysv4*uw2*)
1710 lt_cv_deplibs_check_method=pass_all
1711 ;;
1712
ac48eca1 1713sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 1714 case $host_vendor in
ac48eca1
AO
1715 ncr)
1716 lt_cv_deplibs_check_method=pass_all
1717 ;;
1718 motorola)
55c80943
NC
1719 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]'
1720 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
1721 ;;
1722 esac
1723 ;;
1724esac
1725
1726fi
6be7c12c
AO
1727
1728echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
ac48eca1
AO
1729file_magic_cmd=$lt_cv_file_magic_cmd
1730deplibs_check_method=$lt_cv_deplibs_check_method
1731
6be7c12c 1732echo $ac_n "checking for object suffix""... $ac_c" 1>&6
66e25bab 1733echo "configure:1734: checking for object suffix" >&5
6be7c12c
AO
1734if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1736else
1737 rm -f conftest*
1738echo 'int i = 1;' > conftest.$ac_ext
66e25bab 1739if { (eval echo configure:1740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c
AO
1740 for ac_file in conftest.*; do
1741 case $ac_file in
1742 *.c) ;;
1743 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1744 esac
1745 done
1746else
1747 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1748fi
1749rm -f conftest*
1750fi
ac48eca1 1751
6be7c12c
AO
1752echo "$ac_t""$ac_cv_objext" 1>&6
1753OBJEXT=$ac_cv_objext
1754ac_objext=$ac_cv_objext
1755
1756
1757
1758echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
66e25bab 1759echo "configure:1760: checking for executable suffix" >&5
6be7c12c
AO
1760if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
ac48eca1 1762else
6be7c12c
AO
1763 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1764 ac_cv_exeext=.exe
1765else
1766 rm -f conftest*
1767 echo 'int main () { return 0; }' > conftest.$ac_ext
1768 ac_cv_exeext=
66e25bab 1769 if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
6be7c12c
AO
1770 for file in conftest.*; do
1771 case $file in
a6903459 1772 *.c | *.o | *.obj) ;;
6be7c12c
AO
1773 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1774 esac
1775 done
1776 else
1777 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1778 fi
1779 rm -f conftest*
1780 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1781fi
1782fi
1783
1784EXEEXT=""
1785test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1786echo "$ac_t""${ac_cv_exeext}" 1>&6
1787ac_exeext=$EXEEXT
1788
1789# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1790
1791# Only perform the check for file, if the check method requires it
1792case $deplibs_check_method in
1793file_magic*)
1794 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1795 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
66e25bab 1796echo "configure:1797: checking for ${ac_tool_prefix}file" >&5
6be7c12c
AO
1797if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1799else
1800 case $MAGIC_CMD in
1801 /*)
1802 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1803 ;;
1804 ?:/*)
1805 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1806 ;;
1807 *)
d64552c5 1808 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
1809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1810 ac_dummy="/usr/bin:$PATH"
1811 for ac_dir in $ac_dummy; do
1812 test -z "$ac_dir" && ac_dir=.
1813 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 1814 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 1815 if test -n "$file_magic_test_file"; then
55c80943 1816 case $deplibs_check_method in
ac48eca1
AO
1817 "file_magic "*)
1818 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 1819 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
1820 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1821 egrep "$file_magic_regex" > /dev/null; then
1822 :
1823 else
1824 cat <<EOF 1>&2
1825
1826*** Warning: the command libtool uses to detect shared libraries,
1827*** $file_magic_cmd, produces output that libtool cannot recognize.
1828*** The result is that libtool may fail to recognize shared libraries
1829*** as such. This will affect the creation of libtool libraries that
1830*** depend on shared libraries, but programs linked with such libtool
1831*** libraries will work regardless of this problem. Nevertheless, you
1832*** may want to report the problem to your system manager and/or to
1833*** bug-libtool@gnu.org
1834
1835EOF
1836 fi ;;
1837 esac
1838 fi
1839 break
1840 fi
1841 done
1842 IFS="$ac_save_ifs"
d64552c5 1843 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
1844 ;;
1845esac
1846fi
1847
d64552c5
AO
1848MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1849if test -n "$MAGIC_CMD"; then
6be7c12c 1850 echo "$ac_t""$MAGIC_CMD" 1>&6
ac48eca1 1851else
6be7c12c 1852 echo "$ac_t""no" 1>&6
ac48eca1
AO
1853fi
1854
d64552c5 1855if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 1856 if test -n "$ac_tool_prefix"; then
6be7c12c 1857 echo $ac_n "checking for file""... $ac_c" 1>&6
66e25bab 1858echo "configure:1859: checking for file" >&5
6be7c12c
AO
1859if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
ac48eca1 1861else
55c80943 1862 case $MAGIC_CMD in
ac48eca1 1863 /*)
d64552c5 1864 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
1865 ;;
1866 ?:/*)
d64552c5 1867 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
1868 ;;
1869 *)
d64552c5 1870 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
1871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1872 ac_dummy="/usr/bin:$PATH"
1873 for ac_dir in $ac_dummy; do
1874 test -z "$ac_dir" && ac_dir=.
1875 if test -f $ac_dir/file; then
d64552c5 1876 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 1877 if test -n "$file_magic_test_file"; then
55c80943 1878 case $deplibs_check_method in
ac48eca1
AO
1879 "file_magic "*)
1880 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 1881 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
1882 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1883 egrep "$file_magic_regex" > /dev/null; then
1884 :
1885 else
1886 cat <<EOF 1>&2
1887
1888*** Warning: the command libtool uses to detect shared libraries,
1889*** $file_magic_cmd, produces output that libtool cannot recognize.
1890*** The result is that libtool may fail to recognize shared libraries
1891*** as such. This will affect the creation of libtool libraries that
1892*** depend on shared libraries, but programs linked with such libtool
1893*** libraries will work regardless of this problem. Nevertheless, you
1894*** may want to report the problem to your system manager and/or to
1895*** bug-libtool@gnu.org
1896
1897EOF
1898 fi ;;
1899 esac
1900 fi
1901 break
1902 fi
1903 done
1904 IFS="$ac_save_ifs"
d64552c5 1905 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
1906 ;;
1907esac
1908fi
1909
d64552c5
AO
1910MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1911if test -n "$MAGIC_CMD"; then
6be7c12c 1912 echo "$ac_t""$MAGIC_CMD" 1>&6
ac48eca1 1913else
6be7c12c 1914 echo "$ac_t""no" 1>&6
ac48eca1
AO
1915fi
1916
1917 else
d64552c5 1918 MAGIC_CMD=:
ac48eca1
AO
1919 fi
1920fi
1921
1922 fi
1923 ;;
1924esac
1925
6be7c12c 1926# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 1927set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6be7c12c 1928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 1929echo "configure:1930: checking for $ac_word" >&5
6be7c12c
AO
1930if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
ac48eca1
AO
1932else
1933 if test -n "$RANLIB"; then
1934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1935else
6be7c12c
AO
1936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1937 ac_dummy="$PATH"
1938 for ac_dir in $ac_dummy; do
1939 test -z "$ac_dir" && ac_dir=.
1940 if test -f $ac_dir/$ac_word; then
1941 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1942 break
1943 fi
1944 done
1945 IFS="$ac_save_ifs"
ac48eca1
AO
1946fi
1947fi
6be7c12c 1948RANLIB="$ac_cv_prog_RANLIB"
ac48eca1 1949if test -n "$RANLIB"; then
6be7c12c 1950 echo "$ac_t""$RANLIB" 1>&6
ac48eca1 1951else
6be7c12c 1952 echo "$ac_t""no" 1>&6
ac48eca1
AO
1953fi
1954
6be7c12c 1955
ac48eca1 1956if test -z "$ac_cv_prog_RANLIB"; then
6be7c12c 1957if test -n "$ac_tool_prefix"; then
ac48eca1
AO
1958 # Extract the first word of "ranlib", so it can be a program name with args.
1959set dummy ranlib; ac_word=$2
6be7c12c 1960echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 1961echo "configure:1962: checking for $ac_word" >&5
6be7c12c
AO
1962if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1964else
1965 if test -n "$RANLIB"; then
1966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1967else
1968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1969 ac_dummy="$PATH"
1970 for ac_dir in $ac_dummy; do
1971 test -z "$ac_dir" && ac_dir=.
1972 if test -f $ac_dir/$ac_word; then
1973 ac_cv_prog_RANLIB="ranlib"
1974 break
1975 fi
1976 done
1977 IFS="$ac_save_ifs"
1978 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
ac48eca1
AO
1979fi
1980fi
6be7c12c
AO
1981RANLIB="$ac_cv_prog_RANLIB"
1982if test -n "$RANLIB"; then
1983 echo "$ac_t""$RANLIB" 1>&6
ac48eca1 1984else
6be7c12c 1985 echo "$ac_t""no" 1>&6
ac48eca1
AO
1986fi
1987
1988else
6be7c12c
AO
1989 RANLIB=":"
1990fi
ac48eca1
AO
1991fi
1992
6be7c12c 1993# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 1994set dummy ${ac_tool_prefix}strip; ac_word=$2
6be7c12c 1995echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 1996echo "configure:1997: checking for $ac_word" >&5
6be7c12c
AO
1997if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
ac48eca1
AO
1999else
2000 if test -n "$STRIP"; then
2001 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2002else
6be7c12c
AO
2003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2004 ac_dummy="$PATH"
2005 for ac_dir in $ac_dummy; do
2006 test -z "$ac_dir" && ac_dir=.
2007 if test -f $ac_dir/$ac_word; then
2008 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2009 break
2010 fi
2011 done
2012 IFS="$ac_save_ifs"
ac48eca1
AO
2013fi
2014fi
6be7c12c 2015STRIP="$ac_cv_prog_STRIP"
ac48eca1 2016if test -n "$STRIP"; then
6be7c12c 2017 echo "$ac_t""$STRIP" 1>&6
ac48eca1 2018else
6be7c12c 2019 echo "$ac_t""no" 1>&6
ac48eca1
AO
2020fi
2021
6be7c12c 2022
ac48eca1 2023if test -z "$ac_cv_prog_STRIP"; then
6be7c12c 2024if test -n "$ac_tool_prefix"; then
ac48eca1
AO
2025 # Extract the first word of "strip", so it can be a program name with args.
2026set dummy strip; ac_word=$2
6be7c12c 2027echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 2028echo "configure:2029: checking for $ac_word" >&5
6be7c12c
AO
2029if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2031else
2032 if test -n "$STRIP"; then
2033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2034else
2035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2036 ac_dummy="$PATH"
2037 for ac_dir in $ac_dummy; do
2038 test -z "$ac_dir" && ac_dir=.
2039 if test -f $ac_dir/$ac_word; then
2040 ac_cv_prog_STRIP="strip"
2041 break
2042 fi
2043 done
2044 IFS="$ac_save_ifs"
2045 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
ac48eca1
AO
2046fi
2047fi
6be7c12c
AO
2048STRIP="$ac_cv_prog_STRIP"
2049if test -n "$STRIP"; then
2050 echo "$ac_t""$STRIP" 1>&6
ac48eca1 2051else
6be7c12c 2052 echo "$ac_t""no" 1>&6
ac48eca1
AO
2053fi
2054
2055else
6be7c12c
AO
2056 STRIP=":"
2057fi
ac48eca1 2058fi
252b5132 2059
6be7c12c 2060
252b5132 2061# Check for any special flags to pass to ltconfig.
b2ef150d 2062libtool_flags="--cache-file=$cache_file"
252b5132
RH
2063test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2064test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 2065test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
2066test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2067test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 2068
6be7c12c 2069
a74801ba
ILT
2070# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2071if test "${enable_libtool_lock+set}" = set; then
2072 enableval="$enable_libtool_lock"
6be7c12c
AO
2073 :
2074fi
a74801ba
ILT
2075
2076test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2077test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2078
ac48eca1
AO
2079# Check whether --with-pic or --without-pic was given.
2080if test "${with_pic+set}" = set; then
2081 withval="$with_pic"
2082 pic_mode="$withval"
2083else
2084 pic_mode=default
6be7c12c
AO
2085fi
2086
ac48eca1
AO
2087test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2088test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2089
252b5132
RH
2090# Some flags need to be propagated to the compiler or linker for good
2091# libtool support.
55c80943 2092case $host in
252b5132
RH
2093*-*-irix6*)
2094 # Find out which ABI we are using.
66e25bab
AM
2095 echo '#line 2096 "configure"' > conftest.$ac_ext
2096 if { (eval echo configure:2097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55c80943 2097 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
2098 *32-bit*)
2099 LD="${LD-ld} -32"
2100 ;;
2101 *N32*)
2102 LD="${LD-ld} -n32"
2103 ;;
2104 *64-bit*)
2105 LD="${LD-ld} -64"
2106 ;;
2107 esac
2108 fi
2109 rm -rf conftest*
2110 ;;
2111
4867be41
DJ
2112ia64-*-hpux*)
2113 # Find out which ABI we are using.
2114 echo 'int i;' > conftest.$ac_ext
66e25bab 2115 if { (eval echo configure:2116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4867be41
DJ
2116 case "`/usr/bin/file conftest.o`" in
2117 *ELF-32*)
2118 HPUX_IA64_MODE="32"
2119 ;;
2120 *ELF-64*)
2121 HPUX_IA64_MODE="64"
2122 ;;
2123 esac
2124 fi
2125 rm -rf conftest*
2126 ;;
2127
252b5132
RH
2128*-*-sco3.2v5*)
2129 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 2130 SAVE_CFLAGS="$CFLAGS"
252b5132 2131 CFLAGS="$CFLAGS -belf"
6be7c12c 2132 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
66e25bab 2133echo "configure:2134: checking whether the C compiler needs -belf" >&5
6be7c12c
AO
2134if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
b2ef150d 2136else
6be7c12c 2137
ac48eca1 2138 ac_ext=c
6be7c12c 2139# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac48eca1 2140ac_cpp='$CPP $CPPFLAGS'
6be7c12c
AO
2141ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2142ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2143cross_compiling=$ac_cv_prog_cc_cross
ac48eca1 2144
6be7c12c 2145 cat > conftest.$ac_ext <<EOF
66e25bab 2146#line 2147 "configure"
b2ef150d
ILT
2147#include "confdefs.h"
2148
6be7c12c 2149int main() {
b2ef150d 2150
6be7c12c
AO
2151; return 0; }
2152EOF
66e25bab 2153if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c 2154 rm -rf conftest*
b2ef150d
ILT
2155 lt_cv_cc_needs_belf=yes
2156else
6be7c12c
AO
2157 echo "configure: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 rm -rf conftest*
2160 lt_cv_cc_needs_belf=no
b2ef150d 2161fi
6be7c12c 2162rm -f conftest*
ac48eca1 2163 ac_ext=c
6be7c12c 2164# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac48eca1 2165ac_cpp='$CPP $CPPFLAGS'
6be7c12c
AO
2166ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2167ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2168cross_compiling=$ac_cv_prog_cc_cross
ac48eca1 2169
b2ef150d 2170fi
6be7c12c
AO
2171
2172echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
b2ef150d
ILT
2173 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2174 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2175 CFLAGS="$SAVE_CFLAGS"
2176 fi
252b5132
RH
2177 ;;
2178
6be7c12c 2179
252b5132
RH
2180esac
2181
6be7c12c 2182
b2ef150d 2183# Save cache, so that ltconfig can load it
6be7c12c 2184cat > confcache <<\EOF
b2ef150d
ILT
2185# This file is a shell script that caches the results of configure
2186# tests run on this system so they can be shared between configure
6be7c12c
AO
2187# scripts and configure runs. It is not useful on other systems.
2188# If it contains results you don't want to keep, you may remove or edit it.
b2ef150d 2189#
6be7c12c
AO
2190# By default, configure uses ./config.cache as the cache file,
2191# creating it if it does not exist already. You can give configure
2192# the --cache-file=FILE option to use a different cache file; that is
2193# what configure does when it calls configure scripts in
2194# subdirectories, so they share the cache.
2195# Giving --cache-file=/dev/null disables caching, for debugging configure.
2196# config.status only pays attention to the cache file if you give it the
2197# --recheck option to rerun configure.
b2ef150d 2198#
6be7c12c 2199EOF
b2ef150d
ILT
2200# The following way of writing the cache mishandles newlines in values,
2201# but we know of no workaround that is simple, portable, and efficient.
2202# So, don't put newlines in cache variables' values.
2203# Ultrix sh set writes to stderr and can't be redirected directly,
2204# and sets the high bit in the cache file unless we assign to the vars.
6be7c12c
AO
2205(set) 2>&1 |
2206 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2207 *ac_space=\ *)
2208 # `set' does not quote correctly, so add quotes (double-quote substitution
2209 # turns \\\\ into \\, and sed turns \\ into \).
2210 sed -n \
2211 -e "s/'/'\\\\''/g" \
2212 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2213 ;;
2214 *)
2215 # `set' quotes correctly as required by POSIX, so do not add quotes.
2216 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2217 ;;
2218 esac >> confcache
2219if cmp -s $cache_file confcache; then
2220 :
2221else
b2ef150d 2222 if test -w $cache_file; then
6be7c12c
AO
2223 echo "updating cache $cache_file"
2224 cat confcache > $cache_file
b2ef150d
ILT
2225 else
2226 echo "not updating unwritable cache $cache_file"
2227 fi
2228fi
2229rm -f confcache
2230
6be7c12c 2231
252b5132 2232# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 2233AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 2234MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
2235LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2236AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2237objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2238deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 2239${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 2240$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6be7c12c 2241|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
252b5132 2242
b2ef150d
ILT
2243# Reload cache, that may have been modified by ltconfig
2244if test -r "$cache_file"; then
6be7c12c
AO
2245 echo "loading cache $cache_file"
2246 . $cache_file
b2ef150d 2247else
6be7c12c
AO
2248 echo "creating cache $cache_file"
2249 > $cache_file
b2ef150d
ILT
2250fi
2251
6be7c12c 2252
b2ef150d 2253# This can be used to rebuild libtool when needed
ac48eca1 2254LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
2255
2256# Always use our own libtool.
2257LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2258
252b5132
RH
2259# Redirect the config.log output again, so that the ltconfig log is not
2260# clobbered by the next message.
2261exec 5>>./config.log
2262
6be7c12c
AO
2263
2264
2265
2266
2267
2268
252b5132
RH
2269# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2270if test "${enable_64_bit_bfd+set}" = set; then
2271 enableval="$enable_64_bit_bfd"
2272 case "${enableval}" in
2273 yes) want64=true ;;
2274 no) want64=false ;;
6be7c12c 2275 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
252b5132
RH
2276esac
2277else
2278 want64=false
6be7c12c
AO
2279fi
2280# Check whether --enable-targets or --disable-targets was given.
252b5132
RH
2281if test "${enable_targets+set}" = set; then
2282 enableval="$enable_targets"
2283 case "${enableval}" in
6be7c12c 2284 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
252b5132
RH
2285 ;;
2286 no) enable_targets= ;;
2287 *) enable_targets=$enableval ;;
2288esac
6be7c12c
AO
2289fi
2290# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
2291if test "${enable_commonbfdlib+set}" = set; then
2292 enableval="$enable_commonbfdlib"
2293 case "${enableval}" in
2294 yes) commonbfdlib=true ;;
2295 no) commonbfdlib=false ;;
6be7c12c 2296 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
252b5132 2297esac
6be7c12c 2298fi
252b5132
RH
2299# Check whether --with-mmap or --without-mmap was given.
2300if test "${with_mmap+set}" = set; then
2301 withval="$with_mmap"
2302 case "${withval}" in
2303 yes) want_mmap=true ;;
2304 no) want_mmap=false ;;
6be7c12c 2305 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
252b5132
RH
2306esac
2307else
2308 want_mmap=false
6be7c12c
AO
2309fi
2310
0218d1e4 2311build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
2312# Check whether --enable-build-warnings or --disable-build-warnings was given.
2313if test "${enable_build_warnings+set}" = set; then
2314 enableval="$enable_build_warnings"
2315 case "${enableval}" in
2316 yes) ;;
2317 no) build_warnings="-w";;
2318 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2319 build_warnings="${build_warnings} ${t}";;
2320 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2321 build_warnings="${t} ${build_warnings}";;
2322 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2323esac
2324if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2325 echo "Setting warning flags = $build_warnings" 6>&1
2326fi
6be7c12c
AO
2327fi
2328WARN_CFLAGS=""
66e25bab 2329if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
a2d91340
AC
2330 WARN_CFLAGS="${build_warnings}"
2331fi
2332
2333
6be7c12c
AO
2334
2335
2336
252b5132
RH
2337
2338if test -z "$target" ; then
6be7c12c 2339 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
252b5132 2340fi
252b5132 2341
6be7c12c 2342echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
66e25bab 2343echo "configure:2344: checking whether to enable maintainer-specific portions of Makefiles" >&5
252b5132
RH
2344 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2345if test "${enable_maintainer_mode+set}" = set; then
2346 enableval="$enable_maintainer_mode"
2347 USE_MAINTAINER_MODE=$enableval
2348else
2349 USE_MAINTAINER_MODE=no
6be7c12c
AO
2350fi
2351
2352 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2353
252b5132
RH
2354
2355if test $USE_MAINTAINER_MODE = yes; then
2356 MAINTAINER_MODE_TRUE=
2357 MAINTAINER_MODE_FALSE='#'
2358else
2359 MAINTAINER_MODE_TRUE='#'
2360 MAINTAINER_MODE_FALSE=
2361fi
2362 MAINT=$MAINTAINER_MODE_TRUE
6be7c12c 2363
252b5132 2364
a703a6ea 2365echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
66e25bab 2366echo "configure:2367: checking whether to install libbfd" >&5
a703a6ea
AM
2367 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
2368if test "${enable_install_libbfd+set}" = set; then
2369 enableval="$enable_install_libbfd"
2370 install_libbfd_p=$enableval
2371else
66e25bab 2372 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
2373 install_libbfd_p=yes
2374 else
2375 install_libbfd_p=no
2376 fi
2377fi
2378
2379 echo "$ac_t""$install_libbfd_p" 1>&6
2380
2381
2382if test $install_libbfd_p = yes; then
2383 INSTALL_LIBBFD_TRUE=
2384 INSTALL_LIBBFD_FALSE='#'
2385else
2386 INSTALL_LIBBFD_TRUE='#'
2387 INSTALL_LIBBFD_FALSE=
2388fi
2389 # libbfd.a is a host library containing target dependent code
2390 bfdlibdir='$(libdir)'
2391 bfdincludedir='$(includedir)'
2392 if test "${host}" != "${target}"; then
2393 bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
2394 bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
2395 fi
2396
2397
2398
2399
252b5132
RH
2400
2401
6be7c12c 2402echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
66e25bab 2403echo "configure:2404: checking for executable suffix" >&5
6be7c12c
AO
2404if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 2406else
6be7c12c
AO
2407 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2408 ac_cv_exeext=.exe
252b5132 2409else
6be7c12c
AO
2410 rm -f conftest*
2411 echo 'int main () { return 0; }' > conftest.$ac_ext
2412 ac_cv_exeext=
66e25bab 2413 if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
6be7c12c
AO
2414 for file in conftest.*; do
2415 case $file in
a6903459 2416 *.c | *.o | *.obj) ;;
6be7c12c
AO
2417 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2418 esac
2419 done
2420 else
2421 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2422 fi
2423 rm -f conftest*
2424 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
252b5132 2425fi
b3baf5d0 2426fi
252b5132 2427
6be7c12c
AO
2428EXEEXT=""
2429test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2430echo "$ac_t""${ac_cv_exeext}" 1>&6
2431ac_exeext=$EXEEXT
252b5132 2432
252b5132 2433
6be7c12c
AO
2434host64=false
2435target64=false
69263e90 2436bfd_default_target_size=32
252b5132 2437
6be7c12c
AO
2438# host stuff:
2439
2440# Extract the first word of "gcc", so it can be a program name with args.
2441set dummy gcc; ac_word=$2
2442echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 2443echo "configure:2444: checking for $ac_word" >&5
6be7c12c
AO
2444if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
2446else
2447 if test -n "$CC"; then
2448 ac_cv_prog_CC="$CC" # Let the user override the test.
2449else
6be7c12c
AO
2450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2451 ac_dummy="$PATH"
2452 for ac_dir in $ac_dummy; do
2453 test -z "$ac_dir" && ac_dir=.
2454 if test -f $ac_dir/$ac_word; then
2455 ac_cv_prog_CC="gcc"
2456 break
2457 fi
2458 done
2459 IFS="$ac_save_ifs"
252b5132
RH
2460fi
2461fi
6be7c12c 2462CC="$ac_cv_prog_CC"
252b5132 2463if test -n "$CC"; then
6be7c12c 2464 echo "$ac_t""$CC" 1>&6
b3baf5d0 2465else
6be7c12c 2466 echo "$ac_t""no" 1>&6
b3baf5d0
NC
2467fi
2468
252b5132
RH
2469if test -z "$CC"; then
2470 # Extract the first word of "cc", so it can be a program name with args.
2471set dummy cc; ac_word=$2
6be7c12c 2472echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 2473echo "configure:2474: checking for $ac_word" >&5
6be7c12c
AO
2474if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
2476else
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC="$CC" # Let the user override the test.
2479else
6be7c12c 2480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
252b5132 2481 ac_prog_rejected=no
6be7c12c
AO
2482 ac_dummy="$PATH"
2483 for ac_dir in $ac_dummy; do
2484 test -z "$ac_dir" && ac_dir=.
2485 if test -f $ac_dir/$ac_word; then
2486 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2487 ac_prog_rejected=yes
2488 continue
2489 fi
2490 ac_cv_prog_CC="cc"
2491 break
2492 fi
2493 done
2494 IFS="$ac_save_ifs"
252b5132
RH
2495if test $ac_prog_rejected = yes; then
2496 # We found a bogon in the path, so make sure we never use it.
2497 set dummy $ac_cv_prog_CC
2498 shift
6be7c12c 2499 if test $# -gt 0; then
252b5132
RH
2500 # We chose a different compiler from the bogus one.
2501 # However, it has the same basename, so the bogon will be chosen
2502 # first if we set CC to just the basename; use the full file name.
2503 shift
6be7c12c 2504 set dummy "$ac_dir/$ac_word" "$@"
252b5132
RH
2505 shift
2506 ac_cv_prog_CC="$@"
2507 fi
2508fi
2509fi
2510fi
6be7c12c 2511CC="$ac_cv_prog_CC"
252b5132 2512if test -n "$CC"; then
6be7c12c 2513 echo "$ac_t""$CC" 1>&6
252b5132 2514else
6be7c12c 2515 echo "$ac_t""no" 1>&6
252b5132
RH
2516fi
2517
6be7c12c
AO
2518 if test -z "$CC"; then
2519 case "`uname -s`" in
2520 *win32* | *WIN32*)
2521 # Extract the first word of "cl", so it can be a program name with args.
2522set dummy cl; ac_word=$2
2523echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 2524echo "configure:2525: checking for $ac_word" >&5
6be7c12c
AO
2525if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
2527else
2528 if test -n "$CC"; then
2529 ac_cv_prog_CC="$CC" # Let the user override the test.
2530else
6be7c12c
AO
2531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2532 ac_dummy="$PATH"
2533 for ac_dir in $ac_dummy; do
2534 test -z "$ac_dir" && ac_dir=.
2535 if test -f $ac_dir/$ac_word; then
2536 ac_cv_prog_CC="cl"
2537 break
2538 fi
2539 done
2540 IFS="$ac_save_ifs"
252b5132
RH
2541fi
2542fi
6be7c12c 2543CC="$ac_cv_prog_CC"
252b5132 2544if test -n "$CC"; then
6be7c12c 2545 echo "$ac_t""$CC" 1>&6
252b5132 2546else
6be7c12c 2547 echo "$ac_t""no" 1>&6
252b5132 2548fi
6be7c12c
AO
2549 ;;
2550 esac
2551 fi
2552 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
b3baf5d0 2553fi
252b5132 2554
6be7c12c 2555echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
66e25bab 2556echo "configure:2557: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
252b5132 2557
6be7c12c
AO
2558ac_ext=c
2559# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2560ac_cpp='$CPP $CPPFLAGS'
2561ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2562ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2563cross_compiling=$ac_cv_prog_cc_cross
252b5132 2564
6be7c12c 2565cat > conftest.$ac_ext << EOF
252b5132 2566
66e25bab 2567#line 2568 "configure"
6be7c12c
AO
2568#include "confdefs.h"
2569
2570main(){return(0);}
2571EOF
66e25bab 2572if { (eval echo configure:2573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c
AO
2573 ac_cv_prog_cc_works=yes
2574 # If we can't run a trivial program, we are probably using a cross compiler.
2575 if (./conftest; exit) 2>/dev/null; then
2576 ac_cv_prog_cc_cross=no
2577 else
2578 ac_cv_prog_cc_cross=yes
2579 fi
2580else
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2583 ac_cv_prog_cc_works=no
252b5132 2584fi
6be7c12c
AO
2585rm -fr conftest*
2586ac_ext=c
2587# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2588ac_cpp='$CPP $CPPFLAGS'
2589ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2590ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2591cross_compiling=$ac_cv_prog_cc_cross
252b5132 2592
6be7c12c
AO
2593echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2594if test $ac_cv_prog_cc_works = no; then
2595 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2596fi
2597echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
66e25bab 2598echo "configure:2599: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6be7c12c
AO
2599echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2600cross_compiling=$ac_cv_prog_cc_cross
b3baf5d0 2601
6be7c12c 2602echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
66e25bab 2603echo "configure:2604: checking whether we are using GNU C" >&5
6be7c12c
AO
2604if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 2606else
6be7c12c
AO
2607 cat > conftest.c <<EOF
2608#ifdef __GNUC__
2609 yes;
252b5132 2610#endif
6be7c12c 2611EOF
66e25bab 2612if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6be7c12c
AO
2613 ac_cv_prog_gcc=yes
2614else
2615 ac_cv_prog_gcc=no
2616fi
2617fi
252b5132 2618
6be7c12c 2619echo "$ac_t""$ac_cv_prog_gcc" 1>&6
252b5132 2620
6be7c12c
AO
2621if test $ac_cv_prog_gcc = yes; then
2622 GCC=yes
2623else
2624 GCC=
2625fi
252b5132 2626
6be7c12c
AO
2627ac_test_CFLAGS="${CFLAGS+set}"
2628ac_save_CFLAGS="$CFLAGS"
2629CFLAGS=
2630echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
66e25bab 2631echo "configure:2632: checking whether ${CC-cc} accepts -g" >&5
6be7c12c
AO
2632if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2634else
2635 echo 'void f(){}' > conftest.c
2636if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
252b5132
RH
2637 ac_cv_prog_cc_g=yes
2638else
6be7c12c 2639 ac_cv_prog_cc_g=no
252b5132 2640fi
6be7c12c
AO
2641rm -f conftest*
2642
252b5132 2643fi
6be7c12c
AO
2644
2645echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
252b5132 2646if test "$ac_test_CFLAGS" = set; then
6be7c12c 2647 CFLAGS="$ac_save_CFLAGS"
252b5132
RH
2648elif test $ac_cv_prog_cc_g = yes; then
2649 if test "$GCC" = yes; then
2650 CFLAGS="-g -O2"
2651 else
2652 CFLAGS="-g"
2653 fi
2654else
2655 if test "$GCC" = yes; then
2656 CFLAGS="-O2"
2657 else
2658 CFLAGS=
2659 fi
2660fi
2661
2662
e09f4395 2663ALL_LINGUAS="fr tr ja es sv da"
6be7c12c 2664echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
66e25bab 2665echo "configure:2666: checking how to run the C preprocessor" >&5
252b5132
RH
2666# On Suns, sometimes $CPP names a directory.
2667if test -n "$CPP" && test -d "$CPP"; then
2668 CPP=
2669fi
2670if test -z "$CPP"; then
6be7c12c
AO
2671if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2673else
2674 # This must be in double quotes, not single quotes, because CPP may get
2675 # substituted into the Makefile and "${CC-cc}" will confuse make.
2676 CPP="${CC-cc} -E"
2677 # On the NeXT, cc -E runs the code through the compiler's parser,
2678 # not just through cpp.
2679 cat > conftest.$ac_ext <<EOF
66e25bab 2680#line 2681 "configure"
252b5132
RH
2681#include "confdefs.h"
2682#include <assert.h>
6be7c12c
AO
2683Syntax Error
2684EOF
2685ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
66e25bab 2686{ (eval echo configure:2687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6be7c12c
AO
2687ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2688if test -z "$ac_err"; then
2689 :
252b5132 2690else
6be7c12c
AO
2691 echo "$ac_err" >&5
2692 echo "configure: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2694 rm -rf conftest*
2695 CPP="${CC-cc} -E -traditional-cpp"
2696 cat > conftest.$ac_ext <<EOF
66e25bab 2697#line 2698 "configure"
252b5132 2698#include "confdefs.h"
6be7c12c
AO
2699#include <assert.h>
2700Syntax Error
2701EOF
2702ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
66e25bab 2703{ (eval echo configure:2704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6be7c12c
AO
2704ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2705if test -z "$ac_err"; then
2706 :
252b5132 2707else
6be7c12c
AO
2708 echo "$ac_err" >&5
2709 echo "configure: failed program was:" >&5
252b5132 2710 cat conftest.$ac_ext >&5
6be7c12c
AO
2711 rm -rf conftest*
2712 CPP="${CC-cc} -nologo -E"
2713 cat > conftest.$ac_ext <<EOF
66e25bab 2714#line 2715 "configure"
6be7c12c
AO
2715#include "confdefs.h"
2716#include <assert.h>
2717Syntax Error
2718EOF
2719ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
66e25bab 2720{ (eval echo configure:2721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6be7c12c
AO
2721ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2722if test -z "$ac_err"; then
2723 :
b3baf5d0 2724else
6be7c12c
AO
2725 echo "$ac_err" >&5
2726 echo "configure: failed program was:" >&5
b3baf5d0 2727 cat conftest.$ac_ext >&5
6be7c12c
AO
2728 rm -rf conftest*
2729 CPP=/lib/cpp
252b5132 2730fi
6be7c12c 2731rm -f conftest*
252b5132 2732fi
6be7c12c 2733rm -f conftest*
252b5132 2734fi
6be7c12c
AO
2735rm -f conftest*
2736 ac_cv_prog_CPP="$CPP"
2737fi
2738 CPP="$ac_cv_prog_CPP"
ac48eca1 2739else
6be7c12c 2740 ac_cv_prog_CPP="$CPP"
b3baf5d0 2741fi
6be7c12c
AO
2742echo "$ac_t""$CPP" 1>&6
2743
2744# Extract the first word of "ranlib", so it can be a program name with args.
2745set dummy ranlib; ac_word=$2
2746echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 2747echo "configure:2748: checking for $ac_word" >&5
6be7c12c
AO
2748if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
ac48eca1 2750else
6be7c12c
AO
2751 if test -n "$RANLIB"; then
2752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2753else
2754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2755 ac_dummy="$PATH"
2756 for ac_dir in $ac_dummy; do
2757 test -z "$ac_dir" && ac_dir=.
2758 if test -f $ac_dir/$ac_word; then
2759 ac_cv_prog_RANLIB="ranlib"
2760 break
ac48eca1 2761 fi
6be7c12c
AO
2762 done
2763 IFS="$ac_save_ifs"
2764 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
ac48eca1
AO
2765fi
2766fi
6be7c12c
AO
2767RANLIB="$ac_cv_prog_RANLIB"
2768if test -n "$RANLIB"; then
2769 echo "$ac_t""$RANLIB" 1>&6
ac48eca1 2770else
6be7c12c 2771 echo "$ac_t""no" 1>&6
b3baf5d0 2772fi
ac48eca1 2773
6be7c12c 2774echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
66e25bab 2775echo "configure:2776: checking for ANSI C header files" >&5
6be7c12c
AO
2776if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 2778else
6be7c12c 2779 cat > conftest.$ac_ext <<EOF
66e25bab 2780#line 2781 "configure"
252b5132
RH
2781#include "confdefs.h"
2782#include <stdlib.h>
2783#include <stdarg.h>
2784#include <string.h>
2785#include <float.h>
6be7c12c
AO
2786EOF
2787ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
66e25bab 2788{ (eval echo configure:2789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6be7c12c
AO
2789ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2790if test -z "$ac_err"; then
2791 rm -rf conftest*
252b5132
RH
2792 ac_cv_header_stdc=yes
2793else
6be7c12c
AO
2794 echo "$ac_err" >&5
2795 echo "configure: failed program was:" >&5
252b5132 2796 cat conftest.$ac_ext >&5
6be7c12c 2797 rm -rf conftest*
252b5132
RH
2798 ac_cv_header_stdc=no
2799fi
6be7c12c 2800rm -f conftest*
252b5132
RH
2801
2802if test $ac_cv_header_stdc = yes; then
2803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6be7c12c 2804cat > conftest.$ac_ext <<EOF
66e25bab 2805#line 2806 "configure"
252b5132
RH
2806#include "confdefs.h"
2807#include <string.h>
6be7c12c 2808EOF
252b5132
RH
2809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2810 egrep "memchr" >/dev/null 2>&1; then
2811 :
2812else
6be7c12c 2813 rm -rf conftest*
252b5132
RH
2814 ac_cv_header_stdc=no
2815fi
2816rm -f conftest*
2817
2818fi
2819
2820if test $ac_cv_header_stdc = yes; then
2821 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6be7c12c 2822cat > conftest.$ac_ext <<EOF
66e25bab 2823#line 2824 "configure"
252b5132
RH
2824#include "confdefs.h"
2825#include <stdlib.h>
6be7c12c 2826EOF
252b5132
RH
2827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2828 egrep "free" >/dev/null 2>&1; then
2829 :
2830else
6be7c12c 2831 rm -rf conftest*
252b5132
RH
2832 ac_cv_header_stdc=no
2833fi
2834rm -f conftest*
2835
2836fi
2837
2838if test $ac_cv_header_stdc = yes; then
2839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6be7c12c 2840if test "$cross_compiling" = yes; then
252b5132
RH
2841 :
2842else
6be7c12c 2843 cat > conftest.$ac_ext <<EOF
66e25bab 2844#line 2845 "configure"
252b5132
RH
2845#include "confdefs.h"
2846#include <ctype.h>
6be7c12c
AO
2847#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2848#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
b3baf5d0 2849#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6be7c12c
AO
2850int main () { int i; for (i = 0; i < 256; i++)
2851if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2852exit (0); }
2853
2854EOF
66e25bab 2855if { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6be7c12c 2856then
252b5132
RH
2857 :
2858else
6be7c12c
AO
2859 echo "configure: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2861 rm -fr conftest*
2862 ac_cv_header_stdc=no
252b5132 2863fi
6be7c12c 2864rm -fr conftest*
252b5132 2865fi
6be7c12c 2866
252b5132
RH
2867fi
2868fi
b3baf5d0 2869
6be7c12c
AO
2870echo "$ac_t""$ac_cv_header_stdc" 1>&6
2871if test $ac_cv_header_stdc = yes; then
2872 cat >> confdefs.h <<\EOF
252b5132
RH
2873#define STDC_HEADERS 1
2874EOF
2875
2876fi
2877
6be7c12c 2878echo $ac_n "checking for working const""... $ac_c" 1>&6
66e25bab 2879echo "configure:2880: checking for working const" >&5
6be7c12c
AO
2880if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 2882else
6be7c12c 2883 cat > conftest.$ac_ext <<EOF
66e25bab 2884#line 2885 "configure"
252b5132 2885#include "confdefs.h"
6be7c12c
AO
2886
2887int main() {
2888
2889/* Ultrix mips cc rejects this. */
2890typedef int charset[2]; const charset x;
2891/* SunOS 4.1.1 cc rejects this. */
2892char const *const *ccp;
2893char **p;
2894/* NEC SVR4.0.2 mips cc rejects this. */
2895struct point {int x, y;};
2896static struct point const zero = {0,0};
2897/* AIX XL C 1.02.0.0 rejects this.
2898 It does not let you subtract one const X* pointer from another in an arm
2899 of an if-expression whose if-part is not a constant expression */
2900const char *g = "string";
2901ccp = &g + (g ? g-g : 0);
2902/* HPUX 7.0 cc rejects these. */
2903++ccp;
2904p = (char**) ccp;
2905ccp = (char const *const *) p;
2906{ /* SCO 3.2v4 cc rejects this. */
2907 char *t;
2908 char const *s = 0 ? (char *) 0 : (char const *) 0;
2909
2910 *t++ = 0;
252b5132 2911}
6be7c12c
AO
2912{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2913 int x[] = {25, 17};
2914 const int *foo = &x[0];
2915 ++foo;
252b5132 2916}
6be7c12c
AO
2917{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2918 typedef const int *iptr;
2919 iptr p = 0;
2920 ++p;
252b5132 2921}
6be7c12c
AO
2922{ /* AIX XL C 1.02.0.0 rejects this saying
2923 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2924 struct s { int j; const int *ap[3]; };
2925 struct s *b; b->j = 5;
b3baf5d0 2926}
6be7c12c
AO
2927{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2928 const int foo = 10;
2929}
2930
2931; return 0; }
2932EOF
66e25bab 2933if { (eval echo configure:2934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 2934 rm -rf conftest*
252b5132
RH
2935 ac_cv_c_const=yes
2936else
6be7c12c
AO
2937 echo "configure: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2939 rm -rf conftest*
2940 ac_cv_c_const=no
252b5132 2941fi
6be7c12c 2942rm -f conftest*
252b5132 2943fi
b3baf5d0 2944
6be7c12c
AO
2945echo "$ac_t""$ac_cv_c_const" 1>&6
2946if test $ac_cv_c_const = no; then
2947 cat >> confdefs.h <<\EOF
2948#define const
252b5132
RH
2949EOF
2950
2951fi
2952
6be7c12c 2953echo $ac_n "checking for inline""... $ac_c" 1>&6
66e25bab 2954echo "configure:2955: checking for inline" >&5
6be7c12c
AO
2955if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
2957else
2958 ac_cv_c_inline=no
2959for ac_kw in inline __inline__ __inline; do
6be7c12c 2960 cat > conftest.$ac_ext <<EOF
66e25bab 2961#line 2962 "configure"
252b5132
RH
2962#include "confdefs.h"
2963
6be7c12c
AO
2964int main() {
2965} $ac_kw foo() {
2966; return 0; }
2967EOF
66e25bab 2968if { (eval echo configure:2969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 2969 rm -rf conftest*
252b5132
RH
2970 ac_cv_c_inline=$ac_kw; break
2971else
6be7c12c
AO
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
252b5132 2974fi
6be7c12c 2975rm -f conftest*
252b5132
RH
2976done
2977
2978fi
6be7c12c
AO
2979
2980echo "$ac_t""$ac_cv_c_inline" 1>&6
2981case "$ac_cv_c_inline" in
252b5132 2982 inline | yes) ;;
6be7c12c
AO
2983 no) cat >> confdefs.h <<\EOF
2984#define inline
252b5132
RH
2985EOF
2986 ;;
6be7c12c 2987 *) cat >> confdefs.h <<EOF
252b5132
RH
2988#define inline $ac_cv_c_inline
2989EOF
2990 ;;
2991esac
2992
6be7c12c 2993echo $ac_n "checking for off_t""... $ac_c" 1>&6
66e25bab 2994echo "configure:2995: checking for off_t" >&5
6be7c12c
AO
2995if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
b3baf5d0 2997else
6be7c12c 2998 cat > conftest.$ac_ext <<EOF
66e25bab 2999#line 3000 "configure"
b3baf5d0 3000#include "confdefs.h"
6be7c12c
AO
3001#include <sys/types.h>
3002#if STDC_HEADERS
3003#include <stdlib.h>
3004#include <stddef.h>
3005#endif
3006EOF
3007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3008 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3009 rm -rf conftest*
653f71ca 3010 ac_cv_type_off_t=yes
252b5132 3011else
6be7c12c
AO
3012 rm -rf conftest*
3013 ac_cv_type_off_t=no
252b5132 3014fi
6be7c12c 3015rm -f conftest*
b3baf5d0 3016
6be7c12c
AO
3017fi
3018echo "$ac_t""$ac_cv_type_off_t" 1>&6
3019if test $ac_cv_type_off_t = no; then
3020 cat >> confdefs.h <<\EOF
252b5132
RH
3021#define off_t long
3022EOF
3023
3024fi
3025
6be7c12c 3026echo $ac_n "checking for size_t""... $ac_c" 1>&6
66e25bab 3027echo "configure:3028: checking for size_t" >&5
6be7c12c
AO
3028if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 3030else
6be7c12c 3031 cat > conftest.$ac_ext <<EOF
66e25bab 3032#line 3033 "configure"
252b5132 3033#include "confdefs.h"
6be7c12c
AO
3034#include <sys/types.h>
3035#if STDC_HEADERS
3036#include <stdlib.h>
3037#include <stddef.h>
3038#endif
3039EOF
3040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3041 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3042 rm -rf conftest*
653f71ca 3043 ac_cv_type_size_t=yes
252b5132 3044else
6be7c12c
AO
3045 rm -rf conftest*
3046 ac_cv_type_size_t=no
252b5132 3047fi
6be7c12c 3048rm -f conftest*
b3baf5d0 3049
6be7c12c
AO
3050fi
3051echo "$ac_t""$ac_cv_type_size_t" 1>&6
3052if test $ac_cv_type_size_t = no; then
3053 cat >> confdefs.h <<\EOF
252b5132
RH
3054#define size_t unsigned
3055EOF
3056
3057fi
3058
3059# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3060# for constant arguments. Useless!
6be7c12c 3061echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
66e25bab 3062echo "configure:3063: checking for working alloca.h" >&5
6be7c12c
AO
3063if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 3065else
6be7c12c 3066 cat > conftest.$ac_ext <<EOF
66e25bab 3067#line 3068 "configure"
252b5132
RH
3068#include "confdefs.h"
3069#include <alloca.h>
6be7c12c
AO
3070int main() {
3071char *p = alloca(2 * sizeof(int));
3072; return 0; }
3073EOF
66e25bab 3074if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c
AO
3075 rm -rf conftest*
3076 ac_cv_header_alloca_h=yes
3077else
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3080 rm -rf conftest*
3081 ac_cv_header_alloca_h=no
3082fi
3083rm -f conftest*
3084fi
3085
3086echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3087if test $ac_cv_header_alloca_h = yes; then
3088 cat >> confdefs.h <<\EOF
252b5132
RH
3089#define HAVE_ALLOCA_H 1
3090EOF
3091
3092fi
3093
6be7c12c 3094echo $ac_n "checking for alloca""... $ac_c" 1>&6
66e25bab 3095echo "configure:3096: checking for alloca" >&5
6be7c12c
AO
3096if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 3098else
6be7c12c 3099 cat > conftest.$ac_ext <<EOF
66e25bab 3100#line 3101 "configure"
252b5132 3101#include "confdefs.h"
6be7c12c 3102
252b5132
RH
3103#ifdef __GNUC__
3104# define alloca __builtin_alloca
3105#else
3106# ifdef _MSC_VER
3107# include <malloc.h>
3108# define alloca _alloca
3109# else
3110# if HAVE_ALLOCA_H
3111# include <alloca.h>
3112# else
3113# ifdef _AIX
3114 #pragma alloca
3115# else
3116# ifndef alloca /* predefined by HP cc +Olibcalls */
3117char *alloca ();
3118# endif
3119# endif
3120# endif
3121# endif
3122#endif
3123
6be7c12c
AO
3124int main() {
3125char *p = (char *) alloca(1);
3126; return 0; }
3127EOF
66e25bab 3128if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c 3129 rm -rf conftest*
252b5132
RH
3130 ac_cv_func_alloca_works=yes
3131else
6be7c12c
AO
3132 echo "configure: failed program was:" >&5
3133 cat conftest.$ac_ext >&5
3134 rm -rf conftest*
3135 ac_cv_func_alloca_works=no
252b5132 3136fi
6be7c12c 3137rm -f conftest*
252b5132
RH
3138fi
3139
6be7c12c 3140echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
252b5132 3141if test $ac_cv_func_alloca_works = yes; then
6be7c12c 3142 cat >> confdefs.h <<\EOF
252b5132
RH
3143#define HAVE_ALLOCA 1
3144EOF
3145
6be7c12c 3146fi
b3baf5d0 3147
6be7c12c
AO
3148if test $ac_cv_func_alloca_works = no; then
3149 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3150 # that cause trouble. Some versions do not even contain alloca or
3151 # contain a buggy version. If you still want to use their alloca,
3152 # use ar to extract alloca.o from them instead of compiling alloca.c.
3153 ALLOCA=alloca.${ac_objext}
3154 cat >> confdefs.h <<\EOF
252b5132
RH
3155#define C_ALLOCA 1
3156EOF
3157
6be7c12c
AO
3158
3159echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
66e25bab 3160echo "configure:3161: checking whether alloca needs Cray hooks" >&5
6be7c12c
AO
3161if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 3163else
6be7c12c 3164 cat > conftest.$ac_ext <<EOF
66e25bab 3165#line 3166 "configure"
252b5132
RH
3166#include "confdefs.h"
3167#if defined(CRAY) && ! defined(CRAY2)
3168webecray
3169#else
3170wenotbecray
3171#endif
3172
6be7c12c 3173EOF
252b5132
RH
3174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3175 egrep "webecray" >/dev/null 2>&1; then
6be7c12c 3176 rm -rf conftest*
252b5132
RH
3177 ac_cv_os_cray=yes
3178else
6be7c12c 3179 rm -rf conftest*
252b5132
RH
3180 ac_cv_os_cray=no
3181fi
3182rm -f conftest*
3183
3184fi
6be7c12c
AO
3185
3186echo "$ac_t""$ac_cv_os_cray" 1>&6
252b5132 3187if test $ac_cv_os_cray = yes; then
6be7c12c
AO
3188for ac_func in _getb67 GETB67 getb67; do
3189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
66e25bab 3190echo "configure:3191: checking for $ac_func" >&5
6be7c12c
AO
3191if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3193else
3194 cat > conftest.$ac_ext <<EOF
66e25bab 3195#line 3196 "configure"
252b5132
RH
3196#include "confdefs.h"
3197/* System header to define __stub macros and hopefully few prototypes,
6be7c12c 3198 which can conflict with char $ac_func(); below. */
252b5132
RH
3199#include <assert.h>
3200/* Override any gcc2 internal prototype to avoid an error. */
3201/* We use char because int might match the return type of a gcc2
6be7c12c
AO
3202 builtin and then its argument prototype would still apply. */
3203char $ac_func();
3204
3205int main() {
252b5132
RH
3206
3207/* The GNU C library defines this for functions which it implements
3208 to always fail with ENOSYS. Some functions are actually named
3209 something starting with __ and the normal name is an alias. */
3210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3211choke me
3212#else
6be7c12c 3213$ac_func();
252b5132
RH
3214#endif
3215
6be7c12c
AO
3216; return 0; }
3217EOF
66e25bab 3218if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c
AO
3219 rm -rf conftest*
3220 eval "ac_cv_func_$ac_func=yes"
3221else
3222 echo "configure: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3224 rm -rf conftest*
3225 eval "ac_cv_func_$ac_func=no"
3226fi
3227rm -f conftest*
3228fi
3229
3230if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3231 echo "$ac_t""yes" 1>&6
3232 cat >> confdefs.h <<EOF
252b5132
RH
3233#define CRAY_STACKSEG_END $ac_func
3234EOF
3235
6be7c12c
AO
3236 break
3237else
3238 echo "$ac_t""no" 1>&6
252b5132
RH
3239fi
3240
6be7c12c 3241done
252b5132
RH
3242fi
3243
6be7c12c 3244echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
66e25bab 3245echo "configure:3246: checking stack direction for C alloca" >&5
6be7c12c
AO
3246if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
3248else
3249 if test "$cross_compiling" = yes; then
3250 ac_cv_c_stack_direction=0
3251else
6be7c12c 3252 cat > conftest.$ac_ext <<EOF
66e25bab 3253#line 3254 "configure"
252b5132
RH
3254#include "confdefs.h"
3255find_stack_direction ()
3256{
3257 static char *addr = 0;
3258 auto char dummy;
3259 if (addr == 0)
3260 {
3261 addr = &dummy;
3262 return find_stack_direction ();
3263 }
3264 else
3265 return (&dummy > addr) ? 1 : -1;
3266}
3267main ()
3268{
6be7c12c 3269 exit (find_stack_direction() < 0);
252b5132 3270}
6be7c12c 3271EOF
66e25bab 3272if { (eval echo configure:3273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6be7c12c 3273then
252b5132
RH
3274 ac_cv_c_stack_direction=1
3275else
6be7c12c
AO
3276 echo "configure: failed program was:" >&5
3277 cat conftest.$ac_ext >&5
3278 rm -fr conftest*
3279 ac_cv_c_stack_direction=-1
252b5132 3280fi
6be7c12c 3281rm -fr conftest*
252b5132 3282fi
6be7c12c 3283
252b5132
RH
3284fi
3285
6be7c12c
AO
3286echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3287cat >> confdefs.h <<EOF
252b5132
RH
3288#define STACK_DIRECTION $ac_cv_c_stack_direction
3289EOF
3290
3291fi
3292
a6903459 3293for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
252b5132 3294do
6be7c12c
AO
3295ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3296echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
66e25bab 3297echo "configure:3298: checking for $ac_hdr" >&5
6be7c12c
AO
3298if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3300else
3301 cat > conftest.$ac_ext <<EOF
66e25bab 3302#line 3303 "configure"
252b5132 3303#include "confdefs.h"
6be7c12c
AO
3304#include <$ac_hdr>
3305EOF
3306ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
66e25bab 3307{ (eval echo configure:3308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6be7c12c
AO
3308ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3309if test -z "$ac_err"; then
3310 rm -rf conftest*
3311 eval "ac_cv_header_$ac_safe=yes"
252b5132 3312else
6be7c12c
AO
3313 echo "$ac_err" >&5
3314 echo "configure: failed program was:" >&5
252b5132 3315 cat conftest.$ac_ext >&5
6be7c12c
AO
3316 rm -rf conftest*
3317 eval "ac_cv_header_$ac_safe=no"
252b5132 3318fi
6be7c12c 3319rm -f conftest*
252b5132 3320fi
6be7c12c
AO
3321if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3322 echo "$ac_t""yes" 1>&6
3323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3324 cat >> confdefs.h <<EOF
3325#define $ac_tr_hdr 1
252b5132 3326EOF
6be7c12c
AO
3327
3328else
3329 echo "$ac_t""no" 1>&6
252b5132
RH
3330fi
3331done
3332
3333for ac_func in getpagesize
3334do
6be7c12c 3335echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
66e25bab 3336echo "configure:3337: checking for $ac_func" >&5
6be7c12c
AO
3337if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3338 echo $ac_n "(cached) $ac_c" 1>&6
3339else
3340 cat > conftest.$ac_ext <<EOF
66e25bab 3341#line 3342 "configure"
252b5132
RH
3342#include "confdefs.h"
3343/* System header to define __stub macros and hopefully few prototypes,
6be7c12c 3344 which can conflict with char $ac_func(); below. */
252b5132
RH
3345#include <assert.h>
3346/* Override any gcc2 internal prototype to avoid an error. */
3347/* We use char because int might match the return type of a gcc2
6be7c12c
AO
3348 builtin and then its argument prototype would still apply. */
3349char $ac_func();
3350
3351int main() {
252b5132
RH
3352
3353/* The GNU C library defines this for functions which it implements
3354 to always fail with ENOSYS. Some functions are actually named
3355 something starting with __ and the normal name is an alias. */
3356#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3357choke me
3358#else
6be7c12c 3359$ac_func();
252b5132
RH
3360#endif
3361
6be7c12c 3362; return 0; }
252b5132 3363EOF
66e25bab 3364if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c
AO
3365 rm -rf conftest*
3366 eval "ac_cv_func_$ac_func=yes"
3367else
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3370 rm -rf conftest*
3371 eval "ac_cv_func_$ac_func=no"
3372fi
3373rm -f conftest*
3374fi
252b5132 3375
6be7c12c
AO
3376if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3377 echo "$ac_t""yes" 1>&6
3378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3379 cat >> confdefs.h <<EOF
3380#define $ac_tr_func 1
3381EOF
3382
3383else
3384 echo "$ac_t""no" 1>&6
252b5132
RH
3385fi
3386done
3387
6be7c12c 3388echo $ac_n "checking for working mmap""... $ac_c" 1>&6
66e25bab 3389echo "configure:3390: checking for working mmap" >&5
6be7c12c
AO
3390if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
3392else
3393 if test "$cross_compiling" = yes; then
3394 ac_cv_func_mmap_fixed_mapped=no
3395else
6be7c12c 3396 cat > conftest.$ac_ext <<EOF
66e25bab 3397#line 3398 "configure"
252b5132 3398#include "confdefs.h"
6be7c12c 3399
252b5132
RH
3400/* Thanks to Mike Haertel and Jim Avera for this test.
3401 Here is a matrix of mmap possibilities:
3402 mmap private not fixed
3403 mmap private fixed at somewhere currently unmapped
3404 mmap private fixed at somewhere already mapped
3405 mmap shared not fixed
3406 mmap shared fixed at somewhere currently unmapped
3407 mmap shared fixed at somewhere already mapped
3408 For private mappings, we should verify that changes cannot be read()
3409 back from the file, nor mmap's back from the file at a different
3410 address. (There have been systems where private was not correctly
3411 implemented like the infamous i386 svr4.0, and systems where the
6be7c12c 3412 VM page cache was not coherent with the filesystem buffer cache
252b5132
RH
3413 like early versions of FreeBSD and possibly contemporary NetBSD.)
3414 For shared mappings, we should conversely verify that changes get
3415 propogated back to all the places they're supposed to be.
3416
3417 Grep wants private fixed already mapped.
3418 The main things grep needs to know about mmap are:
3419 * does it exist and is it safe to write into the mmap'd area
3420 * how to use it (BSD variants) */
3421#include <sys/types.h>
3422#include <fcntl.h>
3423#include <sys/mman.h>
3424
a6903459
NC
3425#if HAVE_SYS_TYPES_H
3426# include <sys/types.h>
3427#endif
3428
3429#if HAVE_STDLIB_H
3430# include <stdlib.h>
3431#endif
3432
3433#if HAVE_SYS_STAT_H
3434# include <sys/stat.h>
3435#endif
3436
3437#if HAVE_UNISTD_H
3438# include <unistd.h>
3439#endif
3440
b3baf5d0 3441/* This mess was copied from the GNU getpagesize.h. */
6be7c12c 3442#ifndef HAVE_GETPAGESIZE
6be7c12c 3443
252b5132 3444/* Assume that all systems that can run configure have sys/param.h. */
6be7c12c 3445# ifndef HAVE_SYS_PARAM_H
252b5132
RH
3446# define HAVE_SYS_PARAM_H 1
3447# endif
3448
3449# ifdef _SC_PAGESIZE
3450# define getpagesize() sysconf(_SC_PAGESIZE)
3451# else /* no _SC_PAGESIZE */
6be7c12c 3452# ifdef HAVE_SYS_PARAM_H
252b5132
RH
3453# include <sys/param.h>
3454# ifdef EXEC_PAGESIZE
3455# define getpagesize() EXEC_PAGESIZE
3456# else /* no EXEC_PAGESIZE */
3457# ifdef NBPG
3458# define getpagesize() NBPG * CLSIZE
3459# ifndef CLSIZE
3460# define CLSIZE 1
3461# endif /* no CLSIZE */
3462# else /* no NBPG */
3463# ifdef NBPC
3464# define getpagesize() NBPC
3465# else /* no NBPC */
3466# ifdef PAGESIZE
3467# define getpagesize() PAGESIZE
3468# endif /* PAGESIZE */
3469# endif /* no NBPC */
3470# endif /* no NBPG */
3471# endif /* no EXEC_PAGESIZE */
3472# else /* no HAVE_SYS_PARAM_H */
3473# define getpagesize() 8192 /* punt totally */
3474# endif /* no HAVE_SYS_PARAM_H */
3475# endif /* no _SC_PAGESIZE */
3476
3477#endif /* no HAVE_GETPAGESIZE */
3478
6be7c12c
AO
3479#ifdef __cplusplus
3480extern "C" { void *malloc(unsigned); }
3481#else
3482char *malloc();
3483#endif
3484
252b5132 3485int
6be7c12c 3486main()
252b5132 3487{
6be7c12c
AO
3488 char *data, *data2, *data3;
3489 int i, pagesize;
3490 int fd;
3491
3492 pagesize = getpagesize();
3493
3494 /*
3495 * First, make a file with some known garbage in it.
3496 */
3497 data = malloc(pagesize);
3498 if (!data)
3499 exit(1);
3500 for (i = 0; i < pagesize; ++i)
3501 *(data + i) = rand();
3502 umask(0);
3503 fd = creat("conftestmmap", 0600);
3504 if (fd < 0)
3505 exit(1);
3506 if (write(fd, data, pagesize) != pagesize)
3507 exit(1);
3508 close(fd);
3509
3510 /*
3511 * Next, try to mmap the file at a fixed address which
3512 * already has something else allocated at it. If we can,
3513 * also make sure that we see the same garbage.
3514 */
3515 fd = open("conftestmmap", O_RDWR);
3516 if (fd < 0)
3517 exit(1);
3518 data2 = malloc(2 * pagesize);
3519 if (!data2)
3520 exit(1);
3521 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3522 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3523 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3524 exit(1);
3525 for (i = 0; i < pagesize; ++i)
3526 if (*(data + i) != *(data2 + i))
3527 exit(1);
3528
3529 /*
3530 * Finally, make sure that changes to the mapped area
3531 * do not percolate back to the file as seen by read().
3532 * (This is a bug on some variants of i386 svr4.0.)
3533 */
3534 for (i = 0; i < pagesize; ++i)
3535 *(data2 + i) = *(data2 + i) + 1;
3536 data3 = malloc(pagesize);
3537 if (!data3)
3538 exit(1);
3539 if (read(fd, data3, pagesize) != pagesize)
3540 exit(1);
3541 for (i = 0; i < pagesize; ++i)
3542 if (*(data + i) != *(data3 + i))
3543 exit(1);
3544 close(fd);
3545 unlink("conftestmmap");
3546 exit(0);
252b5132 3547}
6be7c12c
AO
3548
3549EOF
66e25bab 3550if { (eval echo configure:3551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6be7c12c 3551then
252b5132
RH
3552 ac_cv_func_mmap_fixed_mapped=yes
3553else
6be7c12c
AO
3554 echo "configure: failed program was:" >&5
3555 cat conftest.$ac_ext >&5
3556 rm -fr conftest*
3557 ac_cv_func_mmap_fixed_mapped=no
252b5132 3558fi
6be7c12c 3559rm -fr conftest*
252b5132 3560fi
6be7c12c 3561
252b5132 3562fi
b3baf5d0 3563
6be7c12c
AO
3564echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3565if test $ac_cv_func_mmap_fixed_mapped = yes; then
3566 cat >> confdefs.h <<\EOF
252b5132
RH
3567#define HAVE_MMAP 1
3568EOF
3569
3570fi
3571
6be7c12c
AO
3572
3573 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
3574unistd.h values.h sys/param.h
3575do
6be7c12c
AO
3576ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3577echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
66e25bab 3578echo "configure:3579: checking for $ac_hdr" >&5
6be7c12c
AO
3579if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3581else
3582 cat > conftest.$ac_ext <<EOF
66e25bab 3583#line 3584 "configure"
252b5132 3584#include "confdefs.h"
6be7c12c
AO
3585#include <$ac_hdr>
3586EOF
3587ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
66e25bab 3588{ (eval echo configure:3589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6be7c12c
AO
3589ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3590if test -z "$ac_err"; then
3591 rm -rf conftest*
3592 eval "ac_cv_header_$ac_safe=yes"
252b5132 3593else
6be7c12c
AO
3594 echo "$ac_err" >&5
3595 echo "configure: failed program was:" >&5
252b5132 3596 cat conftest.$ac_ext >&5
6be7c12c
AO
3597 rm -rf conftest*
3598 eval "ac_cv_header_$ac_safe=no"
252b5132 3599fi
6be7c12c 3600rm -f conftest*
252b5132 3601fi
6be7c12c
AO
3602if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3603 echo "$ac_t""yes" 1>&6
3604 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3605 cat >> confdefs.h <<EOF
3606#define $ac_tr_hdr 1
252b5132 3607EOF
6be7c12c
AO
3608
3609else
3610 echo "$ac_t""no" 1>&6
252b5132
RH
3611fi
3612done
3613
6be7c12c 3614 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
3615__argz_count __argz_stringify __argz_next
3616do
6be7c12c 3617echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
66e25bab 3618echo "configure:3619: checking for $ac_func" >&5
6be7c12c
AO
3619if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3621else
3622 cat > conftest.$ac_ext <<EOF
66e25bab 3623#line 3624 "configure"
252b5132
RH
3624#include "confdefs.h"
3625/* System header to define __stub macros and hopefully few prototypes,
6be7c12c 3626 which can conflict with char $ac_func(); below. */
252b5132
RH
3627#include <assert.h>
3628/* Override any gcc2 internal prototype to avoid an error. */
3629/* We use char because int might match the return type of a gcc2
6be7c12c
AO
3630 builtin and then its argument prototype would still apply. */
3631char $ac_func();
3632
3633int main() {
252b5132
RH
3634
3635/* The GNU C library defines this for functions which it implements
3636 to always fail with ENOSYS. Some functions are actually named
3637 something starting with __ and the normal name is an alias. */
3638#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3639choke me
3640#else
6be7c12c 3641$ac_func();
252b5132
RH
3642#endif
3643
6be7c12c 3644; return 0; }
252b5132 3645EOF
66e25bab 3646if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c
AO
3647 rm -rf conftest*
3648 eval "ac_cv_func_$ac_func=yes"
3649else
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3652 rm -rf conftest*
3653 eval "ac_cv_func_$ac_func=no"
3654fi
3655rm -f conftest*
3656fi
252b5132 3657
6be7c12c
AO
3658if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3659 echo "$ac_t""yes" 1>&6
3660 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3661 cat >> confdefs.h <<EOF
3662#define $ac_tr_func 1
3663EOF
3664
3665else
3666 echo "$ac_t""no" 1>&6
252b5132
RH
3667fi
3668done
3669
b3baf5d0 3670
6be7c12c
AO
3671 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3672 for ac_func in stpcpy
252b5132 3673do
6be7c12c 3674echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
66e25bab 3675echo "configure:3676: checking for $ac_func" >&5
6be7c12c
AO
3676if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3678else
3679 cat > conftest.$ac_ext <<EOF
66e25bab 3680#line 3681 "configure"
252b5132
RH
3681#include "confdefs.h"
3682/* System header to define __stub macros and hopefully few prototypes,
6be7c12c 3683 which can conflict with char $ac_func(); below. */
252b5132
RH
3684#include <assert.h>
3685/* Override any gcc2 internal prototype to avoid an error. */
3686/* We use char because int might match the return type of a gcc2
6be7c12c
AO
3687 builtin and then its argument prototype would still apply. */
3688char $ac_func();
3689
3690int main() {
252b5132
RH
3691
3692/* The GNU C library defines this for functions which it implements
3693 to always fail with ENOSYS. Some functions are actually named
3694 something starting with __ and the normal name is an alias. */
3695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3696choke me
3697#else
6be7c12c 3698$ac_func();
252b5132
RH
3699#endif
3700
6be7c12c 3701; return 0; }
252b5132 3702EOF
66e25bab 3703if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c
AO
3704 rm -rf conftest*
3705 eval "ac_cv_func_$ac_func=yes"
3706else
3707 echo "configure: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3709 rm -rf conftest*
3710 eval "ac_cv_func_$ac_func=no"
3711fi
3712rm -f conftest*
3713fi
252b5132 3714
6be7c12c
AO
3715if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3716 echo "$ac_t""yes" 1>&6
3717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3718 cat >> confdefs.h <<EOF
3719#define $ac_tr_func 1
3720EOF
3721
3722else
3723 echo "$ac_t""no" 1>&6
252b5132
RH
3724fi
3725done
3726
3727 fi
3728 if test "${ac_cv_func_stpcpy}" = "yes"; then
6be7c12c 3729 cat >> confdefs.h <<\EOF
252b5132
RH
3730#define HAVE_STPCPY 1
3731EOF
3732
3733 fi
3734
3735 if test $ac_cv_header_locale_h = yes; then
6be7c12c 3736 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
66e25bab 3737echo "configure:3738: checking for LC_MESSAGES" >&5
6be7c12c
AO
3738if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 3740else
6be7c12c 3741 cat > conftest.$ac_ext <<EOF
66e25bab 3742#line 3743 "configure"
252b5132
RH
3743#include "confdefs.h"
3744#include <locale.h>
6be7c12c 3745int main() {
252b5132 3746return LC_MESSAGES
6be7c12c
AO
3747; return 0; }
3748EOF
66e25bab 3749if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c 3750 rm -rf conftest*
252b5132
RH
3751 am_cv_val_LC_MESSAGES=yes
3752else
6be7c12c
AO
3753 echo "configure: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3755 rm -rf conftest*
3756 am_cv_val_LC_MESSAGES=no
252b5132 3757fi
6be7c12c 3758rm -f conftest*
252b5132 3759fi
b3baf5d0 3760
6be7c12c
AO
3761echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3762 if test $am_cv_val_LC_MESSAGES = yes; then
3763 cat >> confdefs.h <<\EOF
252b5132
RH
3764#define HAVE_LC_MESSAGES 1
3765EOF
3766
3767 fi
3768 fi
6be7c12c 3769 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
66e25bab 3770echo "configure:3771: checking whether NLS is requested" >&5
252b5132
RH
3771 # Check whether --enable-nls or --disable-nls was given.
3772if test "${enable_nls+set}" = set; then
3773 enableval="$enable_nls"
3774 USE_NLS=$enableval
3775else
3776 USE_NLS=yes
6be7c12c
AO
3777fi
3778
3779 echo "$ac_t""$USE_NLS" 1>&6
3780
252b5132
RH
3781
3782 USE_INCLUDED_LIBINTL=no
3783
3784 if test "$USE_NLS" = "yes"; then
6be7c12c 3785 cat >> confdefs.h <<\EOF
252b5132
RH
3786#define ENABLE_NLS 1
3787EOF
3788
6be7c12c 3789 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
66e25bab 3790echo "configure:3791: checking whether included gettext is requested" >&5
6be7c12c 3791 # Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
3792if test "${with_included_gettext+set}" = set; then
3793 withval="$with_included_gettext"
3794 nls_cv_force_use_gnu_gettext=$withval
3795else
3796 nls_cv_force_use_gnu_gettext=no
6be7c12c
AO
3797fi
3798
3799 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
252b5132
RH
3800
3801 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3802 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3803 nls_cv_header_intl=
3804 nls_cv_header_libgt=
3805 CATOBJEXT=NONE
3806
6be7c12c
AO
3807 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3808echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
66e25bab 3809echo "configure:3810: checking for libintl.h" >&5
6be7c12c
AO
3810if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 3812else
6be7c12c 3813 cat > conftest.$ac_ext <<EOF
66e25bab 3814#line 3815 "configure"
252b5132
RH
3815#include "confdefs.h"
3816#include <libintl.h>
6be7c12c
AO
3817EOF
3818ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
66e25bab 3819{ (eval echo configure:3820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6be7c12c
AO
3820ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3821if test -z "$ac_err"; then
3822 rm -rf conftest*
3823 eval "ac_cv_header_$ac_safe=yes"
252b5132 3824else
6be7c12c
AO
3825 echo "$ac_err" >&5
3826 echo "configure: failed program was:" >&5
252b5132 3827 cat conftest.$ac_ext >&5
6be7c12c
AO
3828 rm -rf conftest*
3829 eval "ac_cv_header_$ac_safe=no"
252b5132 3830fi
6be7c12c 3831rm -f conftest*
252b5132 3832fi
6be7c12c
AO
3833if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3835 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
66e25bab 3836echo "configure:3837: checking for gettext in libc" >&5
6be7c12c
AO
3837if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 3839else
6be7c12c 3840 cat > conftest.$ac_ext <<EOF
66e25bab 3841#line 3842 "configure"
252b5132
RH
3842#include "confdefs.h"
3843#include <libintl.h>
6be7c12c 3844int main() {
252b5132 3845return (int) gettext ("")
6be7c12c
AO
3846; return 0; }
3847EOF
66e25bab 3848if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c 3849 rm -rf conftest*
252b5132
RH
3850 gt_cv_func_gettext_libc=yes
3851else
6be7c12c
AO
3852 echo "configure: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3854 rm -rf conftest*
3855 gt_cv_func_gettext_libc=no
252b5132 3856fi
6be7c12c 3857rm -f conftest*
252b5132 3858fi
6be7c12c
AO
3859
3860echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
252b5132
RH
3861
3862 if test "$gt_cv_func_gettext_libc" != "yes"; then
6be7c12c 3863 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
66e25bab 3864echo "configure:3865: checking for bindtextdomain in -lintl" >&5
6be7c12c
AO
3865ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3866if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 3868else
6be7c12c 3869 ac_save_LIBS="$LIBS"
252b5132 3870LIBS="-lintl $LIBS"
6be7c12c 3871cat > conftest.$ac_ext <<EOF
66e25bab 3872#line 3873 "configure"
252b5132
RH
3873#include "confdefs.h"
3874/* Override any gcc2 internal prototype to avoid an error. */
3875/* We use char because int might match the return type of a gcc2
6be7c12c
AO
3876 builtin and then its argument prototype would still apply. */
3877char bindtextdomain();
3878
3879int main() {
3880bindtextdomain()
3881; return 0; }
3882EOF
66e25bab 3883if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c
AO
3884 rm -rf conftest*
3885 eval "ac_cv_lib_$ac_lib_var=yes"
3886else
3887 echo "configure: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3889 rm -rf conftest*
3890 eval "ac_cv_lib_$ac_lib_var=no"
3891fi
3892rm -f conftest*
3893LIBS="$ac_save_LIBS"
3894
3895fi
3896if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3897 echo "$ac_t""yes" 1>&6
3898 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
66e25bab 3899echo "configure:3900: checking for gettext in libintl" >&5
6be7c12c
AO
3900if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3902else
3903 cat > conftest.$ac_ext <<EOF
66e25bab 3904#line 3905 "configure"
252b5132
RH
3905#include "confdefs.h"
3906
6be7c12c 3907int main() {
252b5132 3908return (int) gettext ("")
6be7c12c
AO
3909; return 0; }
3910EOF
66e25bab 3911if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c 3912 rm -rf conftest*
252b5132
RH
3913 gt_cv_func_gettext_libintl=yes
3914else
6be7c12c
AO
3915 echo "configure: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3917 rm -rf conftest*
3918 gt_cv_func_gettext_libintl=no
252b5132 3919fi
6be7c12c 3920rm -f conftest*
252b5132 3921fi
6be7c12c
AO
3922
3923echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3924else
3925 echo "$ac_t""no" 1>&6
252b5132
RH
3926fi
3927
3928 fi
3929
3930 if test "$gt_cv_func_gettext_libc" = "yes" \
3931 || test "$gt_cv_func_gettext_libintl" = "yes"; then
6be7c12c 3932 cat >> confdefs.h <<\EOF
252b5132
RH
3933#define HAVE_GETTEXT 1
3934EOF
3935
3936 # Extract the first word of "msgfmt", so it can be a program name with args.
3937set dummy msgfmt; ac_word=$2
6be7c12c 3938echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 3939echo "configure:3940: checking for $ac_word" >&5
6be7c12c
AO
3940if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
3942else
3943 case "$MSGFMT" in
3944 /*)
3945 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3946 ;;
3947 *)
3948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3949 for ac_dir in $PATH; do
3950 test -z "$ac_dir" && ac_dir=.
3951 if test -f $ac_dir/$ac_word; then
3952 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3953 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3954 break
3955 fi
3956 fi
3957 done
3958 IFS="$ac_save_ifs"
3959 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3960 ;;
3961esac
3962fi
3963MSGFMT="$ac_cv_path_MSGFMT"
3964if test -n "$MSGFMT"; then
6be7c12c 3965 echo "$ac_t""$MSGFMT" 1>&6
252b5132 3966else
6be7c12c 3967 echo "$ac_t""no" 1>&6
252b5132
RH
3968fi
3969 if test "$MSGFMT" != "no"; then
6be7c12c 3970 for ac_func in dcgettext
252b5132 3971do
6be7c12c 3972echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
66e25bab 3973echo "configure:3974: checking for $ac_func" >&5
6be7c12c
AO
3974if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3976else
3977 cat > conftest.$ac_ext <<EOF
66e25bab 3978#line 3979 "configure"
252b5132
RH
3979#include "confdefs.h"
3980/* System header to define __stub macros and hopefully few prototypes,
6be7c12c 3981 which can conflict with char $ac_func(); below. */
252b5132
RH
3982#include <assert.h>
3983/* Override any gcc2 internal prototype to avoid an error. */
3984/* We use char because int might match the return type of a gcc2
6be7c12c
AO
3985 builtin and then its argument prototype would still apply. */
3986char $ac_func();
3987
3988int main() {
252b5132
RH
3989
3990/* The GNU C library defines this for functions which it implements
3991 to always fail with ENOSYS. Some functions are actually named
3992 something starting with __ and the normal name is an alias. */
3993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3994choke me
3995#else
6be7c12c 3996$ac_func();
252b5132
RH
3997#endif
3998
6be7c12c 3999; return 0; }
252b5132 4000EOF
66e25bab 4001if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c
AO
4002 rm -rf conftest*
4003 eval "ac_cv_func_$ac_func=yes"
4004else
4005 echo "configure: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4007 rm -rf conftest*
4008 eval "ac_cv_func_$ac_func=no"
4009fi
4010rm -f conftest*
4011fi
252b5132 4012
6be7c12c
AO
4013if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4014 echo "$ac_t""yes" 1>&6
4015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4016 cat >> confdefs.h <<EOF
4017#define $ac_tr_func 1
4018EOF
4019
4020else
4021 echo "$ac_t""no" 1>&6
252b5132
RH
4022fi
4023done
4024
4025 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4026set dummy gmsgfmt; ac_word=$2
6be7c12c 4027echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 4028echo "configure:4029: checking for $ac_word" >&5
6be7c12c
AO
4029if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4030 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 4031else
6be7c12c
AO
4032 case "$GMSGFMT" in
4033 /*)
252b5132
RH
4034 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4035 ;;
6be7c12c
AO
4036 ?:/*)
4037 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4038 ;;
252b5132 4039 *)
6be7c12c
AO
4040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4041 ac_dummy="$PATH"
4042 for ac_dir in $ac_dummy; do
4043 test -z "$ac_dir" && ac_dir=.
4044 if test -f $ac_dir/$ac_word; then
4045 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4046 break
4047 fi
4048 done
4049 IFS="$ac_save_ifs"
252b5132
RH
4050 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4051 ;;
4052esac
4053fi
6be7c12c 4054GMSGFMT="$ac_cv_path_GMSGFMT"
252b5132 4055if test -n "$GMSGFMT"; then
6be7c12c 4056 echo "$ac_t""$GMSGFMT" 1>&6
252b5132 4057else
6be7c12c 4058 echo "$ac_t""no" 1>&6
252b5132
RH
4059fi
4060
4061 # Extract the first word of "xgettext", so it can be a program name with args.
4062set dummy xgettext; ac_word=$2
6be7c12c 4063echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 4064echo "configure:4065: checking for $ac_word" >&5
6be7c12c
AO
4065if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
4067else
4068 case "$XGETTEXT" in
4069 /*)
4070 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4071 ;;
4072 *)
4073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4074 for ac_dir in $PATH; do
4075 test -z "$ac_dir" && ac_dir=.
4076 if test -f $ac_dir/$ac_word; then
4077 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4078 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4079 break
4080 fi
4081 fi
4082 done
4083 IFS="$ac_save_ifs"
4084 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4085 ;;
4086esac
4087fi
4088XGETTEXT="$ac_cv_path_XGETTEXT"
4089if test -n "$XGETTEXT"; then
6be7c12c 4090 echo "$ac_t""$XGETTEXT" 1>&6
252b5132 4091else
6be7c12c 4092 echo "$ac_t""no" 1>&6
252b5132
RH
4093fi
4094
6be7c12c 4095 cat > conftest.$ac_ext <<EOF
66e25bab 4096#line 4097 "configure"
252b5132
RH
4097#include "confdefs.h"
4098
6be7c12c 4099int main() {
252b5132
RH
4100extern int _nl_msg_cat_cntr;
4101 return _nl_msg_cat_cntr
6be7c12c
AO
4102; return 0; }
4103EOF
66e25bab 4104if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c 4105 rm -rf conftest*
252b5132
RH
4106 CATOBJEXT=.gmo
4107 DATADIRNAME=share
4108else
6be7c12c
AO
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4111 rm -rf conftest*
4112 CATOBJEXT=.mo
252b5132
RH
4113 DATADIRNAME=lib
4114fi
6be7c12c 4115rm -f conftest*
252b5132
RH
4116 INSTOBJEXT=.mo
4117 fi
4118 fi
6be7c12c
AO
4119
4120else
4121 echo "$ac_t""no" 1>&6
b3baf5d0 4122fi
252b5132 4123
6be7c12c
AO
4124
4125
252b5132
RH
4126 if test "$CATOBJEXT" = "NONE"; then
4127 nls_cv_use_gnu_gettext=yes
4128 fi
4129 fi
4130
4131 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4132 INTLOBJS="\$(GETTOBJS)"
4133 # Extract the first word of "msgfmt", so it can be a program name with args.
4134set dummy msgfmt; ac_word=$2
6be7c12c 4135echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 4136echo "configure:4137: checking for $ac_word" >&5
6be7c12c
AO
4137if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
4139else
4140 case "$MSGFMT" in
4141 /*)
4142 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4143 ;;
4144 *)
4145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4146 for ac_dir in $PATH; do
4147 test -z "$ac_dir" && ac_dir=.
4148 if test -f $ac_dir/$ac_word; then
4149 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4150 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4151 break
4152 fi
4153 fi
4154 done
4155 IFS="$ac_save_ifs"
4156 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4157 ;;
4158esac
4159fi
4160MSGFMT="$ac_cv_path_MSGFMT"
4161if test -n "$MSGFMT"; then
6be7c12c 4162 echo "$ac_t""$MSGFMT" 1>&6
252b5132 4163else
6be7c12c 4164 echo "$ac_t""no" 1>&6
252b5132
RH
4165fi
4166
4167 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4168set dummy gmsgfmt; ac_word=$2
6be7c12c 4169echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 4170echo "configure:4171: checking for $ac_word" >&5
6be7c12c
AO
4171if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4172 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 4173else
6be7c12c
AO
4174 case "$GMSGFMT" in
4175 /*)
252b5132
RH
4176 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4177 ;;
6be7c12c
AO
4178 ?:/*)
4179 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4180 ;;
252b5132 4181 *)
6be7c12c
AO
4182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4183 ac_dummy="$PATH"
4184 for ac_dir in $ac_dummy; do
4185 test -z "$ac_dir" && ac_dir=.
4186 if test -f $ac_dir/$ac_word; then
4187 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4188 break
4189 fi
4190 done
4191 IFS="$ac_save_ifs"
252b5132
RH
4192 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4193 ;;
4194esac
4195fi
6be7c12c 4196GMSGFMT="$ac_cv_path_GMSGFMT"
252b5132 4197if test -n "$GMSGFMT"; then
6be7c12c 4198 echo "$ac_t""$GMSGFMT" 1>&6
252b5132 4199else
6be7c12c 4200 echo "$ac_t""no" 1>&6
252b5132
RH
4201fi
4202
4203 # Extract the first word of "xgettext", so it can be a program name with args.
4204set dummy xgettext; ac_word=$2
6be7c12c 4205echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
66e25bab 4206echo "configure:4207: checking for $ac_word" >&5
6be7c12c
AO
4207if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
4209else
4210 case "$XGETTEXT" in
4211 /*)
4212 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4213 ;;
4214 *)
4215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4216 for ac_dir in $PATH; do
4217 test -z "$ac_dir" && ac_dir=.
4218 if test -f $ac_dir/$ac_word; then
4219 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4220 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4221 break
4222 fi
4223 fi
4224 done
4225 IFS="$ac_save_ifs"
4226 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4227 ;;
4228esac
4229fi
4230XGETTEXT="$ac_cv_path_XGETTEXT"
4231if test -n "$XGETTEXT"; then
6be7c12c 4232 echo "$ac_t""$XGETTEXT" 1>&6
252b5132 4233else
6be7c12c 4234 echo "$ac_t""no" 1>&6
252b5132
RH
4235fi
4236
6be7c12c 4237
252b5132
RH
4238 USE_INCLUDED_LIBINTL=yes
4239 CATOBJEXT=.gmo
4240 INSTOBJEXT=.mo
4241 DATADIRNAME=share
4242 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4243 INTLLIBS=$INTLDEPS
4244 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4245 nls_cv_header_intl=libintl.h
4246 nls_cv_header_libgt=libgettext.h
4247 fi
4248
4249 if test "$XGETTEXT" != ":"; then
4250 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4251 : ;
4252 else
6be7c12c 4253 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
252b5132
RH
4254 XGETTEXT=":"
4255 fi
4256 fi
4257
4258 # We need to process the po/ directory.
4259 POSUB=po
4260 else
4261 DATADIRNAME=share
4262 nls_cv_header_intl=libintl.h
4263 nls_cv_header_libgt=libgettext.h
4264 fi
4265
4266 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4267 # because some of the sources are only built for this goal.
4268 if test "$PACKAGE" = gettext; then
4269 USE_NLS=yes
4270 USE_INCLUDED_LIBINTL=yes
4271 fi
4272
4273 for lang in $ALL_LINGUAS; do
4274 GMOFILES="$GMOFILES $lang.gmo"
4275 POFILES="$POFILES $lang.po"
4276 done
4277
6be7c12c
AO
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
252b5132
RH
4291 if test "x$CATOBJEXT" != "x"; then
4292 if test "x$ALL_LINGUAS" = "x"; then
4293 LINGUAS=
4294 else
6be7c12c 4295 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
66e25bab 4296echo "configure:4297: checking for catalogs to be installed" >&5
252b5132
RH
4297 NEW_LINGUAS=
4298 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4299 case "$ALL_LINGUAS" in
4300 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4301 esac
4302 done
4303 LINGUAS=$NEW_LINGUAS
6be7c12c 4304 echo "$ac_t""$LINGUAS" 1>&6
252b5132
RH
4305 fi
4306
4307 if test -n "$LINGUAS"; then
4308 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4309 fi
4310 fi
4311
4312 if test $ac_cv_header_locale_h = yes; then
4313 INCLUDE_LOCALE_H="#include <locale.h>"
4314 else
4315 INCLUDE_LOCALE_H="\
4316/* The system does not provide the header <locale.h>. Take care yourself. */"
4317 fi
6be7c12c 4318
252b5132
RH
4319
4320 if test -f $srcdir/po2tbl.sed.in; then
4321 if test "$CATOBJEXT" = ".cat"; then
6be7c12c
AO
4322 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4323echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
66e25bab 4324echo "configure:4325: checking for linux/version.h" >&5
6be7c12c
AO
4325if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4327else
4328 cat > conftest.$ac_ext <<EOF
66e25bab 4329#line 4330 "configure"
252b5132
RH
4330#include "confdefs.h"
4331#include <linux/version.h>
6be7c12c
AO
4332EOF
4333ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
66e25bab 4334{ (eval echo configure:4335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6be7c12c
AO
4335ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4336if test -z "$ac_err"; then
4337 rm -rf conftest*
4338 eval "ac_cv_header_$ac_safe=yes"
252b5132 4339else
6be7c12c
AO
4340 echo "$ac_err" >&5
4341 echo "configure: failed program was:" >&5
252b5132 4342 cat conftest.$ac_ext >&5
6be7c12c
AO
4343 rm -rf conftest*
4344 eval "ac_cv_header_$ac_safe=no"
252b5132 4345fi
6be7c12c 4346rm -f conftest*
252b5132 4347fi
6be7c12c
AO
4348if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4349 echo "$ac_t""yes" 1>&6
252b5132
RH
4350 msgformat=linux
4351else
6be7c12c
AO
4352 echo "$ac_t""no" 1>&6
4353msgformat=xopen
252b5132
RH
4354fi
4355
6be7c12c 4356
252b5132
RH
4357 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4358 fi
4359 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4360 $srcdir/po2tbl.sed.in > po2tbl.sed
4361 fi
4362
4363 if test "$PACKAGE" = "gettext"; then
4364 GT_NO="#NO#"
4365 GT_YES=
4366 else
4367 GT_NO=
4368 GT_YES="#YES#"
4369 fi
6be7c12c
AO
4370
4371
252b5132
RH
4372
4373 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
6be7c12c 4374
252b5132
RH
4375
4376 l=
6be7c12c 4377
252b5132 4378
3c3bdf30 4379 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
4380 test -d po || mkdir po
4381 if test "x$srcdir" != "x."; then
4382 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4383 posrcprefix="$srcdir/"
4384 else
4385 posrcprefix="../$srcdir/"
4386 fi
4387 else
4388 posrcprefix="../"
4389 fi
4390 rm -f po/POTFILES
4391 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4392 < $srcdir/po/POTFILES.in > po/POTFILES
4393 fi
6be7c12c 4394
252b5132
RH
4395
4396# Permit host specific settings.
4397. ${srcdir}/configure.host
4398
6be7c12c 4399
252b5132
RH
4400# Find a good install program. We prefer a C program (faster),
4401# so one script is as good as another. But avoid the broken or
4402# incompatible versions:
4403# SysV /etc/install, /usr/sbin/install
4404# SunOS /usr/etc/install
4405# IRIX /sbin/install
4406# AIX /bin/install
4407# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4408# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4409# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4410# ./install, which can be erroneously created by make from ./install.sh.
6be7c12c 4411echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
66e25bab 4412echo "configure:4413: checking for a BSD compatible install" >&5
252b5132 4413if test -z "$INSTALL"; then
6be7c12c
AO
4414if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4415 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 4416else
6be7c12c 4417 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
252b5132
RH
4418 for ac_dir in $PATH; do
4419 # Account for people who put trailing slashes in PATH elements.
6be7c12c
AO
4420 case "$ac_dir/" in
4421 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
252b5132
RH
4422 *)
4423 # OSF1 and SCO ODT 3.0 have their own names for install.
4424 # Don't use installbsd from OSF since it installs stuff as root
4425 # by default.
4426 for ac_prog in ginstall scoinst install; do
6be7c12c 4427 if test -f $ac_dir/$ac_prog; then
252b5132 4428 if test $ac_prog = install &&
6be7c12c 4429 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
252b5132
RH
4430 # AIX install. It has an incompatible calling convention.
4431 :
4432 else
4433 ac_cv_path_install="$ac_dir/$ac_prog -c"
4434 break 2
4435 fi
4436 fi
4437 done
4438 ;;
4439 esac
4440 done
6be7c12c 4441 IFS="$ac_save_IFS"
252b5132
RH
4442
4443fi
4444 if test "${ac_cv_path_install+set}" = set; then
6be7c12c 4445 INSTALL="$ac_cv_path_install"
252b5132
RH
4446 else
4447 # As a last resort, use the slow shell script. We don't cache a
4448 # path for INSTALL within a source directory, because that will
4449 # break other packages using the cache if that directory is
4450 # removed, or if the path is relative.
6be7c12c 4451 INSTALL="$ac_install_sh"
252b5132
RH
4452 fi
4453fi
6be7c12c 4454echo "$ac_t""$INSTALL" 1>&6
252b5132
RH
4455
4456# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4457# It thinks the first close brace ends the variable substitution.
4458test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4459
6be7c12c 4460test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
252b5132
RH
4461
4462test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4463
6be7c12c 4464
252b5132
RH
4465BFD_HOST_64BIT_LONG=0
4466BFD_HOST_64_BIT_DEFINED=0
4467BFD_HOST_64_BIT=
4468BFD_HOST_U_64_BIT=
4469if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4470 BFD_HOST_64BIT_LONG=1
4471elif test "x${HOST_64BIT_TYPE}" != "x"; then
4472 BFD_HOST_64_BIT_DEFINED=1
4473 BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
4474 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
4475fi
4476
6be7c12c
AO
4477
4478
4479
4480
252b5132
RH
4481# Put a plausible default for CC_FOR_BUILD in Makefile.
4482if test -z "$CC_FOR_BUILD"; then
4483 if test "x$cross_compiling" = "xno"; then
4484 CC_FOR_BUILD='$(CC)'
4485 else
4486 CC_FOR_BUILD=gcc
4487 fi
4488fi
4489
4490# Also set EXEEXT_FOR_BUILD.
4491if test "x$cross_compiling" = "xno"; then
4492 EXEEXT_FOR_BUILD='$(EXEEXT)'
4493else
6be7c12c 4494 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
66e25bab 4495echo "configure:4496: checking for build system executable suffix" >&5
6be7c12c
AO
4496if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4497 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 4498else
aab08431
ILT
4499 rm -f conftest*
4500 echo 'int main () { return 0; }' > conftest.c
4501 bfd_cv_build_exeext=
4502 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4503 for file in conftest.*; do
4504 case $file in
4505 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4506 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4507 esac
4508 done
4509 rm -f conftest*
4510 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 4511fi
6be7c12c
AO
4512
4513echo "$ac_t""$bfd_cv_build_exeext" 1>&6
252b5132
RH
4514 EXEEXT_FOR_BUILD=""
4515 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4516fi
4517
6be7c12c
AO
4518
4519for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
252b5132 4520do
6be7c12c
AO
4521ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4522echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
66e25bab 4523echo "configure:4524: checking for $ac_hdr" >&5
6be7c12c
AO
4524if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4525 echo $ac_n "(cached) $ac_c" 1>&6
4526else
4527 cat > conftest.$ac_ext <<EOF
66e25bab 4528#line 4529 "configure"
252b5132 4529#include "confdefs.h"
6be7c12c
AO
4530#include <$ac_hdr>
4531EOF
4532ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
66e25bab 4533{ (eval echo configure:4534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6be7c12c
AO
4534ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4535if test -z "$ac_err"; then
4536 rm -rf conftest*
4537 eval "ac_cv_header_$ac_safe=yes"
252b5132 4538else
6be7c12c
AO
4539 echo "$ac_err" >&5
4540 echo "configure: failed program was:" >&5
252b5132 4541 cat conftest.$ac_ext >&5
6be7c12c
AO
4542 rm -rf conftest*
4543 eval "ac_cv_header_$ac_safe=no"
252b5132 4544fi
6be7c12c 4545rm -f conftest*
252b5132 4546fi
6be7c12c
AO
4547if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4548 echo "$ac_t""yes" 1>&6
4549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4550 cat >> confdefs.h <<EOF
4551#define $ac_tr_hdr 1
252b5132 4552EOF
6be7c12c
AO
4553
4554else
4555 echo "$ac_t""no" 1>&6
252b5132
RH
4556fi
4557done
4558
6be7c12c 4559for ac_hdr in fcntl.h sys/file.h sys/time.h
252b5132 4560do
6be7c12c
AO
4561ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4562echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
66e25bab 4563echo "configure:4564: checking for $ac_hdr" >&5
6be7c12c
AO
4564if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4566else
4567 cat > conftest.$ac_ext <<EOF
66e25bab 4568#line 4569 "configure"
252b5132 4569#include "confdefs.h"
6be7c12c
AO
4570#include <$ac_hdr>
4571EOF
4572ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
66e25bab 4573{ (eval echo configure:4574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6be7c12c
AO
4574ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4575if test -z "$ac_err"; then
4576 rm -rf conftest*
4577 eval "ac_cv_header_$ac_safe=yes"
252b5132 4578else
6be7c12c
AO
4579 echo "$ac_err" >&5
4580 echo "configure: failed program was:" >&5
252b5132 4581 cat conftest.$ac_ext >&5
6be7c12c
AO
4582 rm -rf conftest*
4583 eval "ac_cv_header_$ac_safe=no"
252b5132 4584fi
6be7c12c 4585rm -f conftest*
252b5132 4586fi
6be7c12c
AO
4587if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4588 echo "$ac_t""yes" 1>&6
4589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4590 cat >> confdefs.h <<EOF
4591#define $ac_tr_hdr 1
252b5132 4592EOF
6be7c12c
AO
4593
4594else
4595 echo "$ac_t""no" 1>&6
252b5132
RH
4596fi
4597done
4598
6be7c12c 4599echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
66e25bab 4600echo "configure:4601: checking whether time.h and sys/time.h may both be included" >&5
6be7c12c
AO
4601if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 4603else
6be7c12c 4604 cat > conftest.$ac_ext <<EOF
66e25bab 4605#line 4606 "configure"
252b5132
RH
4606#include "confdefs.h"
4607#include <sys/types.h>
4608#include <sys/time.h>
4609#include <time.h>
6be7c12c 4610int main() {
252b5132 4611struct tm *tp;
6be7c12c
AO
4612; return 0; }
4613EOF
66e25bab 4614if { (eval echo configure:4615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 4615 rm -rf conftest*
252b5132
RH
4616 ac_cv_header_time=yes
4617else
6be7c12c
AO
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4620 rm -rf conftest*
4621 ac_cv_header_time=no
252b5132 4622fi
6be7c12c 4623rm -f conftest*
252b5132 4624fi
b3baf5d0 4625
6be7c12c
AO
4626echo "$ac_t""$ac_cv_header_time" 1>&6
4627if test $ac_cv_header_time = yes; then
4628 cat >> confdefs.h <<\EOF
252b5132
RH
4629#define TIME_WITH_SYS_TIME 1
4630EOF
4631
4632fi
4633
4634ac_header_dirent=no
6be7c12c
AO
4635for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4636do
4637ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4638echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
66e25bab 4639echo "configure:4640: checking for $ac_hdr that defines DIR" >&5
6be7c12c
AO
4640if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4642else
4643 cat > conftest.$ac_ext <<EOF
66e25bab 4644#line 4645 "configure"
252b5132
RH
4645#include "confdefs.h"
4646#include <sys/types.h>
4647#include <$ac_hdr>
6be7c12c 4648int main() {
252b5132 4649DIR *dirp = 0;
6be7c12c
AO
4650; return 0; }
4651EOF
66e25bab 4652if { (eval echo configure:4653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c
AO
4653 rm -rf conftest*
4654 eval "ac_cv_header_dirent_$ac_safe=yes"
252b5132 4655else
6be7c12c
AO
4656 echo "configure: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4658 rm -rf conftest*
4659 eval "ac_cv_header_dirent_$ac_safe=no"
252b5132 4660fi
6be7c12c 4661rm -f conftest*
252b5132 4662fi
6be7c12c
AO
4663if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4664 echo "$ac_t""yes" 1>&6
4665 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4666 cat >> confdefs.h <<EOF
4667#define $ac_tr_hdr 1
252b5132 4668EOF
6be7c12c
AO
4669 ac_header_dirent=$ac_hdr; break
4670else
4671 echo "$ac_t""no" 1>&6
252b5132
RH
4672fi
4673done
4674# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4675if test $ac_header_dirent = dirent.h; then
6be7c12c 4676echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
66e25bab 4677echo "configure:4678: checking for opendir in -ldir" >&5
6be7c12c
AO
4678ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4679if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 4681else
6be7c12c 4682 ac_save_LIBS="$LIBS"
252b5132 4683LIBS="-ldir $LIBS"
6be7c12c 4684cat > conftest.$ac_ext <<EOF
66e25bab 4685#line 4686 "configure"
252b5132
RH
4686#include "confdefs.h"
4687/* Override any gcc2 internal prototype to avoid an error. */
4688/* We use char because int might match the return type of a gcc2
6be7c12c
AO
4689 builtin and then its argument prototype would still apply. */
4690char opendir();
4691
4692int main() {
4693opendir()
4694; return 0; }
4695EOF
66e25bab 4696if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c
AO
4697 rm -rf conftest*
4698 eval "ac_cv_lib_$ac_lib_var=yes"
4699else
4700 echo "configure: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4702 rm -rf conftest*
4703 eval "ac_cv_lib_$ac_lib_var=no"
4704fi
4705rm -f conftest*
4706LIBS="$ac_save_LIBS"
4707
4708fi
4709if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6
252b5132 4711 LIBS="$LIBS -ldir"
6be7c12c
AO
4712else
4713 echo "$ac_t""no" 1>&6
252b5132
RH
4714fi
4715
4716else
6be7c12c 4717echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
66e25bab 4718echo "configure:4719: checking for opendir in -lx" >&5
6be7c12c
AO
4719ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4720if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
b3baf5d0 4722else
6be7c12c 4723 ac_save_LIBS="$LIBS"
b3baf5d0 4724LIBS="-lx $LIBS"
6be7c12c 4725cat > conftest.$ac_ext <<EOF
66e25bab 4726#line 4727 "configure"
b3baf5d0 4727#include "confdefs.h"
6be7c12c
AO
4728/* Override any gcc2 internal prototype to avoid an error. */
4729/* We use char because int might match the return type of a gcc2
4730 builtin and then its argument prototype would still apply. */
4731char opendir();
4732
4733int main() {
4734opendir()
4735; return 0; }
4736EOF
66e25bab 4737if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c
AO
4738 rm -rf conftest*
4739 eval "ac_cv_lib_$ac_lib_var=yes"
4740else
4741 echo "configure: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4743 rm -rf conftest*
4744 eval "ac_cv_lib_$ac_lib_var=no"
4745fi
4746rm -f conftest*
4747LIBS="$ac_save_LIBS"
252b5132 4748
6be7c12c
AO
4749fi
4750if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4751 echo "$ac_t""yes" 1>&6
252b5132 4752 LIBS="$LIBS -lx"
6be7c12c
AO
4753else
4754 echo "$ac_t""no" 1>&6
252b5132
RH
4755fi
4756
4757fi
4758
633fd09f 4759for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 4760do
6be7c12c 4761echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
66e25bab 4762echo "configure:4763: checking for $ac_func" >&5
6be7c12c
AO
4763if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4764 echo $ac_n "(cached) $ac_c" 1>&6
4765else
4766 cat > conftest.$ac_ext <<EOF
66e25bab 4767#line 4768 "configure"
252b5132
RH
4768#include "confdefs.h"
4769/* System header to define __stub macros and hopefully few prototypes,
6be7c12c 4770 which can conflict with char $ac_func(); below. */
252b5132
RH
4771#include <assert.h>
4772/* Override any gcc2 internal prototype to avoid an error. */
4773/* We use char because int might match the return type of a gcc2
6be7c12c
AO
4774 builtin and then its argument prototype would still apply. */
4775char $ac_func();
4776
4777int main() {
252b5132
RH
4778
4779/* The GNU C library defines this for functions which it implements
4780 to always fail with ENOSYS. Some functions are actually named
4781 something starting with __ and the normal name is an alias. */
4782#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4783choke me
4784#else
6be7c12c 4785$ac_func();
252b5132
RH
4786#endif
4787
6be7c12c 4788; return 0; }
252b5132 4789EOF
66e25bab 4790if { (eval echo configure:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c
AO
4791 rm -rf conftest*
4792 eval "ac_cv_func_$ac_func=yes"
4793else
4794 echo "configure: failed program was:" >&5
4795 cat conftest.$ac_ext >&5
4796 rm -rf conftest*
4797 eval "ac_cv_func_$ac_func=no"
4798fi
4799rm -f conftest*
4800fi
252b5132 4801
6be7c12c
AO
4802if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4805 cat >> confdefs.h <<EOF
4806#define $ac_tr_func 1
4807EOF
4808
4809else
4810 echo "$ac_t""no" 1>&6
252b5132
RH
4811fi
4812done
4813
6be7c12c
AO
4814
4815
252b5132 4816case "${host}" in
855b0be7 4817*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
6be7c12c 4818 cat >> confdefs.h <<\EOF
252b5132
RH
4819#define USE_BINARY_FOPEN 1
4820EOF
4821 ;;
4822esac
4823
6be7c12c 4824echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
66e25bab 4825echo "configure:4826: checking whether strstr must be declared" >&5
6be7c12c
AO
4826if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 4828else
6be7c12c 4829 cat > conftest.$ac_ext <<EOF
66e25bab 4830#line 4831 "configure"
252b5132
RH
4831#include "confdefs.h"
4832
4833#include <stdio.h>
4834#ifdef HAVE_STRING_H
4835#include <string.h>
4836#else
4837#ifdef HAVE_STRINGS_H
4838#include <strings.h>
4839#endif
4840#endif
4841#ifdef HAVE_STDLIB_H
4842#include <stdlib.h>
4843#endif
4844#ifdef HAVE_UNISTD_H
4845#include <unistd.h>
4846#endif
6be7c12c 4847int main() {
252b5132 4848char *(*pfn) = (char *(*)) strstr
6be7c12c
AO
4849; return 0; }
4850EOF
66e25bab 4851if { (eval echo configure:4852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 4852 rm -rf conftest*
252b5132
RH
4853 bfd_cv_decl_needed_strstr=no
4854else
6be7c12c
AO
4855 echo "configure: failed program was:" >&5
4856 cat conftest.$ac_ext >&5
4857 rm -rf conftest*
4858 bfd_cv_decl_needed_strstr=yes
252b5132 4859fi
6be7c12c 4860rm -f conftest*
252b5132
RH
4861fi
4862
6be7c12c 4863echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
252b5132 4864if test $bfd_cv_decl_needed_strstr = yes; then
6be7c12c 4865 cat >> confdefs.h <<\EOF
252b5132
RH
4866#define NEED_DECLARATION_STRSTR 1
4867EOF
4868
4869fi
4870
6be7c12c 4871echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
66e25bab 4872echo "configure:4873: checking whether malloc must be declared" >&5
6be7c12c
AO
4873if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 4875else
6be7c12c 4876 cat > conftest.$ac_ext <<EOF
66e25bab 4877#line 4878 "configure"
252b5132
RH
4878#include "confdefs.h"
4879
4880#include <stdio.h>
4881#ifdef HAVE_STRING_H
4882#include <string.h>
4883#else
4884#ifdef HAVE_STRINGS_H
4885#include <strings.h>
4886#endif
4887#endif
4888#ifdef HAVE_STDLIB_H
4889#include <stdlib.h>
4890#endif
4891#ifdef HAVE_UNISTD_H
4892#include <unistd.h>
4893#endif
6be7c12c 4894int main() {
252b5132 4895char *(*pfn) = (char *(*)) malloc
6be7c12c
AO
4896; return 0; }
4897EOF
66e25bab 4898if { (eval echo configure:4899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 4899 rm -rf conftest*
252b5132
RH
4900 bfd_cv_decl_needed_malloc=no
4901else
6be7c12c
AO
4902 echo "configure: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4904 rm -rf conftest*
4905 bfd_cv_decl_needed_malloc=yes
252b5132 4906fi
6be7c12c 4907rm -f conftest*
252b5132
RH
4908fi
4909
6be7c12c 4910echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
252b5132 4911if test $bfd_cv_decl_needed_malloc = yes; then
6be7c12c 4912 cat >> confdefs.h <<\EOF
252b5132
RH
4913#define NEED_DECLARATION_MALLOC 1
4914EOF
4915
4916fi
4917
6be7c12c 4918echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
66e25bab 4919echo "configure:4920: checking whether realloc must be declared" >&5
6be7c12c
AO
4920if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 4922else
6be7c12c 4923 cat > conftest.$ac_ext <<EOF
66e25bab 4924#line 4925 "configure"
252b5132
RH
4925#include "confdefs.h"
4926
4927#include <stdio.h>
4928#ifdef HAVE_STRING_H
4929#include <string.h>
4930#else
4931#ifdef HAVE_STRINGS_H
4932#include <strings.h>
4933#endif
4934#endif
4935#ifdef HAVE_STDLIB_H
4936#include <stdlib.h>
4937#endif
4938#ifdef HAVE_UNISTD_H
4939#include <unistd.h>
4940#endif
6be7c12c 4941int main() {
252b5132 4942char *(*pfn) = (char *(*)) realloc
6be7c12c
AO
4943; return 0; }
4944EOF
66e25bab 4945if { (eval echo configure:4946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 4946 rm -rf conftest*
252b5132
RH
4947 bfd_cv_decl_needed_realloc=no
4948else
6be7c12c
AO
4949 echo "configure: failed program was:" >&5
4950 cat conftest.$ac_ext >&5
4951 rm -rf conftest*
4952 bfd_cv_decl_needed_realloc=yes
252b5132 4953fi
6be7c12c 4954rm -f conftest*
252b5132
RH
4955fi
4956
6be7c12c 4957echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
252b5132 4958if test $bfd_cv_decl_needed_realloc = yes; then
6be7c12c 4959 cat >> confdefs.h <<\EOF
252b5132
RH
4960#define NEED_DECLARATION_REALLOC 1
4961EOF
4962
4963fi
4964
6be7c12c 4965echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
66e25bab 4966echo "configure:4967: checking whether free must be declared" >&5
6be7c12c
AO
4967if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4968 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 4969else
6be7c12c 4970 cat > conftest.$ac_ext <<EOF
66e25bab 4971#line 4972 "configure"
252b5132
RH
4972#include "confdefs.h"
4973
4974#include <stdio.h>
4975#ifdef HAVE_STRING_H
4976#include <string.h>
4977#else
4978#ifdef HAVE_STRINGS_H
4979#include <strings.h>
4980#endif
4981#endif
4982#ifdef HAVE_STDLIB_H
4983#include <stdlib.h>
4984#endif
4985#ifdef HAVE_UNISTD_H
4986#include <unistd.h>
4987#endif
6be7c12c 4988int main() {
252b5132 4989char *(*pfn) = (char *(*)) free
6be7c12c
AO
4990; return 0; }
4991EOF
66e25bab 4992if { (eval echo configure:4993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 4993 rm -rf conftest*
252b5132
RH
4994 bfd_cv_decl_needed_free=no
4995else
6be7c12c
AO
4996 echo "configure: failed program was:" >&5
4997 cat conftest.$ac_ext >&5
4998 rm -rf conftest*
4999 bfd_cv_decl_needed_free=yes
252b5132 5000fi
6be7c12c 5001rm -f conftest*
252b5132
RH
5002fi
5003
6be7c12c 5004echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
252b5132 5005if test $bfd_cv_decl_needed_free = yes; then
6be7c12c 5006 cat >> confdefs.h <<\EOF
252b5132
RH
5007#define NEED_DECLARATION_FREE 1
5008EOF
5009
5010fi
5011
6be7c12c 5012echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
66e25bab 5013echo "configure:5014: checking whether getenv must be declared" >&5
6be7c12c
AO
5014if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 5016else
6be7c12c 5017 cat > conftest.$ac_ext <<EOF
66e25bab 5018#line 5019 "configure"
252b5132
RH
5019#include "confdefs.h"
5020
5021#include <stdio.h>
5022#ifdef HAVE_STRING_H
5023#include <string.h>
5024#else
5025#ifdef HAVE_STRINGS_H
5026#include <strings.h>
5027#endif
5028#endif
5029#ifdef HAVE_STDLIB_H
5030#include <stdlib.h>
5031#endif
5032#ifdef HAVE_UNISTD_H
5033#include <unistd.h>
5034#endif
6be7c12c 5035int main() {
252b5132 5036char *(*pfn) = (char *(*)) getenv
6be7c12c
AO
5037; return 0; }
5038EOF
66e25bab 5039if { (eval echo configure:5040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5040 rm -rf conftest*
252b5132
RH
5041 bfd_cv_decl_needed_getenv=no
5042else
6be7c12c
AO
5043 echo "configure: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5045 rm -rf conftest*
5046 bfd_cv_decl_needed_getenv=yes
252b5132 5047fi
6be7c12c 5048rm -f conftest*
252b5132
RH
5049fi
5050
6be7c12c 5051echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
252b5132 5052if test $bfd_cv_decl_needed_getenv = yes; then
6be7c12c 5053 cat >> confdefs.h <<\EOF
252b5132
RH
5054#define NEED_DECLARATION_GETENV 1
5055EOF
5056
5057fi
5058
6be7c12c 5059
252b5132
RH
5060# If we are configured native, pick a core file support file.
5061COREFILE=
5062COREFLAG=
5063TRAD_HEADER=
5064if test "${target}" = "${host}"; then
5065 case "${host}" in
46d59bfa
DB
5066 alpha*-*-freebsd*)
5067 COREFILE=''
5068 ;;
252b5132
RH
5069 alpha*-*-linux-gnu*)
5070 COREFILE=trad-core.lo
5071 TRAD_HEADER='"hosts/alphalinux.h"'
5072 ;;
690cc98b
NC
5073 alpha*-*-netbsd* | alpha*-*-openbsd*)
5074 COREFILE=netbsd-core.lo
5075 ;;
252b5132 5076 alpha*-*-*) COREFILE=osf-core.lo ;;
d4af9775 5077 arm-*-freebsd*) COREFILE='' ;;
61d0bc33 5078 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
252b5132
RH
5079 arm-*-riscix) COREFILE=trad-core.lo ;;
5080 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
5081 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
5082 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
5083 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
5084 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
dc810e39 5085 i370-*-*)
5b93d8bb
AM
5086 COREFILE=trad-core.lo
5087 TRAD_HEADER='"hosts/i370linux.h"'
5088 ;;
5089
252b5132 5090 i[3456]86-sequent-bsd*)
5b93d8bb 5091 COREFILE=trad-core.lo
252b5132
RH
5092 TRAD_HEADER='"hosts/symmetry.h"'
5093 ;;
5094 i[3456]86-sequent-sysv4*) ;;
5095 i[3456]86-sequent-sysv*)
5096 COREFILE=trad-core.lo
5097 TRAD_HEADER='"hosts/symmetry.h"'
5098 ;;
7e3b3466
NC
5099 i[3456]86-*-bsdi)
5100 COREFILE=
5101 ;;
537c972e 5102 i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | i[34567]86-*-freebsd[123]\.* | i[34567]86-*-freebsd4\.[01234]* | i[34567]86-*-freebsd*aout*)
252b5132
RH
5103 COREFILE=trad-core.lo
5104 TRAD_HEADER='"hosts/i386bsd.h"'
5105 ;;
d4af9775
DB
5106 i[3456]86-*-freebsd*)
5107 COREFILE=''
5108 TRAD_HEADER='"hosts/i386bsd.h"'
5109 ;;
252b5132
RH
5110 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
5111 COREFILE=netbsd-core.lo
5112 ;;
5113 i[3456]86-esix-sysv3*)
5114 COREFILE=trad-core.lo
5115 TRAD_HEADER='"hosts/esix.h"'
5116 ;;
5117 i[3456]86-*-sco3.2v5*)
5118 COREFILE=sco5-core.lo
5119 ;;
5120 i[3456]86-*-sco* | i[3456]86-*-isc*)
5121 COREFILE=trad-core.lo
5122 TRAD_HEADER='"hosts/i386sco.h"'
5123 ;;
5124 i[3456]86-*-mach3*)
5125 COREFILE=trad-core.lo
5126 TRAD_HEADER='"hosts/i386mach3.h"'
5127 ;;
5128 i[3456]86-*-linux-gnu*)
5129 COREFILE=trad-core.lo
5130 TRAD_HEADER='"hosts/i386linux.h"'
5131 ;;
5132 i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
5133 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
5134 i860-*-mach3* | i860-*-osf1*)
5135 COREFILE=trad-core.lo
5136 TRAD_HEADER='"hosts/i860mach3.h"'
5137 ;;
5138 mips-dec-bsd*)
5139 COREFILE=trad-core.lo
5140 TRAD_HEADER='"hosts/mipsbsd.h"'
5141 ;;
5142 mips-dec-mach3*)
5143 COREFILE=trad-core.lo
5144 TRAD_HEADER='"hosts/mipsmach3.h"'
5145 ;;
5146 mips-*-netbsd* | mips*-*-openbsd*)
5147 COREFILE=netbsd-core.lo
5148 ;;
5149 mips-dec-*)
5150 COREFILE=trad-core.lo
5151 TRAD_HEADER='"hosts/decstation.h"'
5152 ;;
5153 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
5154 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
5155 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
5156 mips-*-mach3*)
5157 COREFILE=trad-core.lo
5158 TRAD_HEADER='"hosts/mipsmach3.h"'
5159 ;;
5160 mips-*-sysv4*) ;;
5161 mips-*-sysv* | mips-*-riscos*)
5162 COREFILE=trad-core.lo
5163 TRAD_HEADER='"hosts/riscos.h"'
5164 ;;
5165 mips-sony-bsd*)
5166 COREFILE=trad-core.lo
5167 TRAD_HEADER='"hosts/news-mips.h"'
5168 ;;
5169 m68*-bull*-sysv*)
5170 COREFILE=trad-core.lo
5171 TRAD_HEADER='"hosts/dpx2.h"'
5172 ;;
5173 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
5174 m68*-hp-bsd*)
5175 COREFILE=trad-core.lo
5176 TRAD_HEADER='"hosts/hp300bsd.h"'
5177 ;;
5178 m68*-*-linux-gnu*)
5179 COREFILE=trad-core.lo
5180 TRAD_HEADER='"hosts/m68klinux.h"'
5181 ;;
5182 m68*-motorola-sysv*)
5183 COREFILE=trad-core.lo
5184 TRAD_HEADER='"hosts/delta68.h"'
5185 ;;
5186 m68*-sony-*)
5187 COREFILE=trad-core.lo
5188 TRAD_HEADER='"hosts/news.h"'
5189 ;;
5190 m68*-*-netbsd* | m68*-*-openbsd*)
5191 COREFILE=netbsd-core.lo
5192 ;;
5193 m68*-apple-aux*)
5194 COREFILE=trad-core.lo
5195 TRAD_HEADER='"hosts/m68kaux.h"'
5196 ;;
eb1e0e80
NC
5197 m88*-*-sysv4*)
5198 ;;
5199 m88*-motorola-sysv*)
5200 COREFILE=ptrace-core.lo
5201 ;;
252b5132
RH
5202 m88*-*-mach3*)
5203 COREFILE=trad-core.lo
5204 TRAD_HEADER='"hosts/m88kmach3.h"'
5205 ;;
5206 ns32k-pc532-mach)
5207 COREFILE=trad-core.lo
5208 TRAD_HEADER='"hosts/pc532mach.h"'
5209 ;;
5210 ns32k-*-netbsd* | ns32k-*-openbsd*)
5211 COREFILE=netbsd-core.lo
5212 ;;
eb1e0e80
NC
5213 rs6000-*-lynx*)
5214 COREFILE=lynx-core.lo
5215 ;;
5216 rs6000-*-aix5.* | powerpc-*-aix5.*)
5217 COREFILE=rs6000-core.lo
5218 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
5219 ;;
83954261 5220 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
5221 COREFILE=rs6000-core.lo
5222 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
5223 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
5224 # have c_impl as a member of struct core_dumpx
5225 echo $ac_n "checking for c_impl in struct core_dumpx""... $ac_c" 1>&6
66e25bab 5226echo "configure:5227: checking for c_impl in struct core_dumpx" >&5
83954261 5227 cat > conftest.$ac_ext <<EOF
66e25bab 5228#line 5229 "configure"
83954261
AM
5229#include "confdefs.h"
5230#include <core.h>
5231int main() {
5232struct core_dumpx c; c.c_impl = 0;
5233; return 0; }
5234EOF
66e25bab 5235if { (eval echo configure:5236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
83954261
AM
5236 rm -rf conftest*
5237 cat >> confdefs.h <<\EOF
5238#define HAVE_ST_C_IMPL 1
5239EOF
5240
5241 echo "$ac_t""yes" 1>&6
5242else
5243 echo "configure: failed program was:" >&5
5244 cat conftest.$ac_ext >&5
5245 rm -rf conftest*
5246 echo "$ac_t""no" 1>&6
5247fi
5248rm -f conftest*
653f71ca 5249 ;;
252b5132
RH
5250 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
5251 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
5252 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
5253 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
5254 powerpc-*-beos*) ;;
d4af9775 5255 powerpc-*-freebsd*) COREFILE='' ;;
252b5132 5256 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 5257 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 5258 s390*-*-*) COREFILE=trad-core.lo ;;
8d05742f 5259 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
a9bf1154 5260 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
5261 COREFILE=netbsd-core.lo
5262 ;;
5263 tahoe-*-*)
5264 COREFILE=trad-core.lo
5265 TRAD_HEADER='"hosts/tahoe.h"'
5266 ;;
a4e6cefc 5267 vax-*-netbsd*) COREFILE=netbsd-core.lo ;;
252b5132
RH
5268 vax-*-ultrix2*)
5269 COREFILE=trad-core.lo
5270 TRAD_HEADER='"hosts/vaxult2.h"'
5271 ;;
5272 vax-*-ultrix*)
5273 COREFILE=trad-core.lo
5274 TRAD_HEADER='"hosts/vaxult2.h"'
5275 ;;
5276 vax-*-*)
5277 COREFILE=trad-core.lo
5278 TRAD_HEADER='"hosts/vaxbsd.h"'
5279 ;;
8a8b2d4b 5280 x86_64-*-netbsd*) COREFILE=netbsd-core.lo ;;
252b5132
RH
5281 esac
5282
5283 case "$COREFILE" in
5284 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
5285 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
5286 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
5287 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
5288 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
5289 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
5290 osf-core.lo) COREFLAG=-DOSF_CORE ;;
5291 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
5292 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
5293 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
5294 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
5295 esac
5296
5297 # ELF corefile support has several flavors, but all of
5298 # them use something called <sys/procfs.h>
6be7c12c 5299 for ac_hdr in sys/procfs.h
252b5132 5300do
6be7c12c
AO
5301ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5302echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
66e25bab 5303echo "configure:5304: checking for $ac_hdr" >&5
6be7c12c
AO
5304if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5306else
5307 cat > conftest.$ac_ext <<EOF
66e25bab 5308#line 5309 "configure"
252b5132 5309#include "confdefs.h"
6be7c12c
AO
5310#include <$ac_hdr>
5311EOF
5312ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
66e25bab 5313{ (eval echo configure:5314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6be7c12c
AO
5314ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5315if test -z "$ac_err"; then
5316 rm -rf conftest*
5317 eval "ac_cv_header_$ac_safe=yes"
252b5132 5318else
6be7c12c
AO
5319 echo "$ac_err" >&5
5320 echo "configure: failed program was:" >&5
252b5132 5321 cat conftest.$ac_ext >&5
6be7c12c
AO
5322 rm -rf conftest*
5323 eval "ac_cv_header_$ac_safe=no"
252b5132 5324fi
6be7c12c 5325rm -f conftest*
252b5132 5326fi
6be7c12c
AO
5327if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5328 echo "$ac_t""yes" 1>&6
5329 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5330 cat >> confdefs.h <<EOF
5331#define $ac_tr_hdr 1
252b5132 5332EOF
6be7c12c
AO
5333
5334else
5335 echo "$ac_t""no" 1>&6
252b5132
RH
5336fi
5337done
5338
5339 if test "$ac_cv_header_sys_procfs_h" = yes; then
6be7c12c 5340 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5341echo "configure:5342: checking for prstatus_t in sys/procfs.h" >&5
6be7c12c
AO
5342 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 5344else
6be7c12c 5345 cat > conftest.$ac_ext <<EOF
66e25bab 5346#line 5347 "configure"
252b5132 5347#include "confdefs.h"
7ee38065
MS
5348
5349#define _SYSCALL32
252b5132 5350#include <sys/procfs.h>
6be7c12c 5351int main() {
252b5132 5352prstatus_t avar
6be7c12c
AO
5353; return 0; }
5354EOF
66e25bab 5355if { (eval echo configure:5356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5356 rm -rf conftest*
252b5132
RH
5357 bfd_cv_have_sys_procfs_type_prstatus_t=yes
5358else
6be7c12c
AO
5359 echo "configure: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5361 rm -rf conftest*
5362 bfd_cv_have_sys_procfs_type_prstatus_t=no
5363
252b5132 5364fi
6be7c12c 5365rm -f conftest*
252b5132
RH
5366fi
5367
5368 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
6be7c12c 5369 cat >> confdefs.h <<\EOF
252b5132
RH
5370#define HAVE_PRSTATUS_T 1
5371EOF
5372
5373 fi
6be7c12c 5374 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
252b5132 5375
6be7c12c 5376 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5377echo "configure:5378: checking for prstatus32_t in sys/procfs.h" >&5
6be7c12c
AO
5378 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
7ee38065 5380else
6be7c12c 5381 cat > conftest.$ac_ext <<EOF
66e25bab 5382#line 5383 "configure"
7ee38065
MS
5383#include "confdefs.h"
5384
5385#define _SYSCALL32
5386#include <sys/procfs.h>
6be7c12c 5387int main() {
7ee38065 5388prstatus32_t avar
6be7c12c
AO
5389; return 0; }
5390EOF
66e25bab 5391if { (eval echo configure:5392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5392 rm -rf conftest*
7ee38065
MS
5393 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
5394else
6be7c12c
AO
5395 echo "configure: failed program was:" >&5
5396 cat conftest.$ac_ext >&5
5397 rm -rf conftest*
5398 bfd_cv_have_sys_procfs_type_prstatus32_t=no
5399
7ee38065 5400fi
6be7c12c 5401rm -f conftest*
7ee38065
MS
5402fi
5403
5404 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
6be7c12c 5405 cat >> confdefs.h <<\EOF
7ee38065
MS
5406#define HAVE_PRSTATUS32_T 1
5407EOF
5408
5409 fi
6be7c12c 5410 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
7ee38065 5411
6be7c12c 5412 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5413echo "configure:5414: checking for prstatus_t.pr_who in sys/procfs.h" >&5
6be7c12c
AO
5414 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 5416else
6be7c12c 5417 cat > conftest.$ac_ext <<EOF
66e25bab 5418#line 5419 "configure"
252b5132 5419#include "confdefs.h"
7ee38065
MS
5420
5421#define _SYSCALL32
252b5132 5422#include <sys/procfs.h>
6be7c12c 5423int main() {
252b5132 5424prstatus_t avar; void* aref = (void*) &avar.pr_who
6be7c12c
AO
5425; return 0; }
5426EOF
66e25bab 5427if { (eval echo configure:5428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5428 rm -rf conftest*
252b5132
RH
5429 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
5430else
6be7c12c
AO
5431 echo "configure: failed program was:" >&5
5432 cat conftest.$ac_ext >&5
5433 rm -rf conftest*
5434 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
5435
252b5132 5436fi
6be7c12c 5437rm -f conftest*
252b5132
RH
5438fi
5439
5440 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
6be7c12c 5441 cat >> confdefs.h <<\EOF
252b5132
RH
5442#define HAVE_PRSTATUS_T_PR_WHO 1
5443EOF
5444
5445 fi
6be7c12c 5446 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
252b5132 5447
6be7c12c 5448 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5449echo "configure:5450: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
6be7c12c
AO
5450 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5451 echo $ac_n "(cached) $ac_c" 1>&6
7ee38065 5452else
6be7c12c 5453 cat > conftest.$ac_ext <<EOF
66e25bab 5454#line 5455 "configure"
7ee38065
MS
5455#include "confdefs.h"
5456
5457#define _SYSCALL32
5458#include <sys/procfs.h>
6be7c12c 5459int main() {
7ee38065 5460prstatus32_t avar; void* aref = (void*) &avar.pr_who
6be7c12c
AO
5461; return 0; }
5462EOF
66e25bab 5463if { (eval echo configure:5464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5464 rm -rf conftest*
7ee38065
MS
5465 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
5466else
6be7c12c
AO
5467 echo "configure: failed program was:" >&5
5468 cat conftest.$ac_ext >&5
5469 rm -rf conftest*
5470 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
5471
7ee38065 5472fi
6be7c12c 5473rm -f conftest*
7ee38065
MS
5474fi
5475
5476 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
6be7c12c 5477 cat >> confdefs.h <<\EOF
7ee38065
MS
5478#define HAVE_PRSTATUS32_T_PR_WHO 1
5479EOF
5480
5481 fi
6be7c12c 5482 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
7ee38065 5483
6be7c12c 5484 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5485echo "configure:5486: checking for pstatus_t in sys/procfs.h" >&5
6be7c12c
AO
5486 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5487 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 5488else
6be7c12c 5489 cat > conftest.$ac_ext <<EOF
66e25bab 5490#line 5491 "configure"
252b5132 5491#include "confdefs.h"
7ee38065
MS
5492
5493#define _SYSCALL32
252b5132 5494#include <sys/procfs.h>
6be7c12c 5495int main() {
252b5132 5496pstatus_t avar
6be7c12c
AO
5497; return 0; }
5498EOF
66e25bab 5499if { (eval echo configure:5500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5500 rm -rf conftest*
252b5132
RH
5501 bfd_cv_have_sys_procfs_type_pstatus_t=yes
5502else
6be7c12c
AO
5503 echo "configure: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5505 rm -rf conftest*
5506 bfd_cv_have_sys_procfs_type_pstatus_t=no
5507
252b5132 5508fi
6be7c12c 5509rm -f conftest*
252b5132
RH
5510fi
5511
5512 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
6be7c12c 5513 cat >> confdefs.h <<\EOF
252b5132
RH
5514#define HAVE_PSTATUS_T 1
5515EOF
5516
5517 fi
6be7c12c 5518 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
252b5132 5519
6be7c12c 5520 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5521echo "configure:5522: checking for pxstatus_t in sys/procfs.h" >&5
6be7c12c
AO
5522 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
f572a39d 5524else
6be7c12c 5525 cat > conftest.$ac_ext <<EOF
66e25bab 5526#line 5527 "configure"
f572a39d
AM
5527#include "confdefs.h"
5528
5529#define _SYSCALL32
5530#include <sys/procfs.h>
6be7c12c 5531int main() {
f572a39d 5532pxstatus_t avar
6be7c12c
AO
5533; return 0; }
5534EOF
66e25bab 5535if { (eval echo configure:5536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5536 rm -rf conftest*
f572a39d
AM
5537 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
5538else
6be7c12c
AO
5539 echo "configure: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5541 rm -rf conftest*
5542 bfd_cv_have_sys_procfs_type_pxstatus_t=no
5543
f572a39d 5544fi
6be7c12c 5545rm -f conftest*
f572a39d
AM
5546fi
5547
5548 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
6be7c12c 5549 cat >> confdefs.h <<\EOF
f572a39d
AM
5550#define HAVE_PXSTATUS_T 1
5551EOF
5552
5553 fi
6be7c12c 5554 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
f572a39d 5555
6be7c12c 5556 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5557echo "configure:5558: checking for pstatus32_t in sys/procfs.h" >&5
6be7c12c
AO
5558 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
7ee38065 5560else
6be7c12c 5561 cat > conftest.$ac_ext <<EOF
66e25bab 5562#line 5563 "configure"
7ee38065
MS
5563#include "confdefs.h"
5564
5565#define _SYSCALL32
5566#include <sys/procfs.h>
6be7c12c 5567int main() {
7ee38065 5568pstatus32_t avar
6be7c12c
AO
5569; return 0; }
5570EOF
66e25bab 5571if { (eval echo configure:5572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5572 rm -rf conftest*
7ee38065
MS
5573 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
5574else
6be7c12c
AO
5575 echo "configure: failed program was:" >&5
5576 cat conftest.$ac_ext >&5
5577 rm -rf conftest*
5578 bfd_cv_have_sys_procfs_type_pstatus32_t=no
5579
7ee38065 5580fi
6be7c12c 5581rm -f conftest*
7ee38065
MS
5582fi
5583
5584 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
6be7c12c 5585 cat >> confdefs.h <<\EOF
7ee38065
MS
5586#define HAVE_PSTATUS32_T 1
5587EOF
5588
5589 fi
6be7c12c 5590 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
7ee38065 5591
6be7c12c 5592 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5593echo "configure:5594: checking for prpsinfo_t in sys/procfs.h" >&5
6be7c12c
AO
5594 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 5596else
6be7c12c 5597 cat > conftest.$ac_ext <<EOF
66e25bab 5598#line 5599 "configure"
252b5132 5599#include "confdefs.h"
7ee38065
MS
5600
5601#define _SYSCALL32
252b5132 5602#include <sys/procfs.h>
6be7c12c 5603int main() {
252b5132 5604prpsinfo_t avar
6be7c12c
AO
5605; return 0; }
5606EOF
66e25bab 5607if { (eval echo configure:5608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5608 rm -rf conftest*
252b5132
RH
5609 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
5610else
6be7c12c
AO
5611 echo "configure: failed program was:" >&5
5612 cat conftest.$ac_ext >&5
5613 rm -rf conftest*
5614 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
5615
252b5132 5616fi
6be7c12c 5617rm -f conftest*
252b5132
RH
5618fi
5619
5620 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
6be7c12c 5621 cat >> confdefs.h <<\EOF
252b5132
RH
5622#define HAVE_PRPSINFO_T 1
5623EOF
5624
5625 fi
6be7c12c 5626 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
252b5132 5627
6be7c12c 5628 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5629echo "configure:5630: checking for prpsinfo32_t in sys/procfs.h" >&5
6be7c12c
AO
5630 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5631 echo $ac_n "(cached) $ac_c" 1>&6
7ee38065 5632else
6be7c12c 5633 cat > conftest.$ac_ext <<EOF
66e25bab 5634#line 5635 "configure"
7ee38065
MS
5635#include "confdefs.h"
5636
5637#define _SYSCALL32
5638#include <sys/procfs.h>
6be7c12c 5639int main() {
7ee38065 5640prpsinfo32_t avar
6be7c12c
AO
5641; return 0; }
5642EOF
66e25bab 5643if { (eval echo configure:5644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5644 rm -rf conftest*
7ee38065
MS
5645 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
5646else
6be7c12c
AO
5647 echo "configure: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5649 rm -rf conftest*
5650 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
5651
7ee38065 5652fi
6be7c12c 5653rm -f conftest*
7ee38065
MS
5654fi
5655
5656 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
6be7c12c 5657 cat >> confdefs.h <<\EOF
7ee38065
MS
5658#define HAVE_PRPSINFO32_T 1
5659EOF
5660
5661 fi
6be7c12c 5662 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
7ee38065 5663
6be7c12c 5664 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5665echo "configure:5666: checking for psinfo_t in sys/procfs.h" >&5
6be7c12c
AO
5666 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5667 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 5668else
6be7c12c 5669 cat > conftest.$ac_ext <<EOF
66e25bab 5670#line 5671 "configure"
252b5132 5671#include "confdefs.h"
7ee38065
MS
5672
5673#define _SYSCALL32
252b5132 5674#include <sys/procfs.h>
6be7c12c 5675int main() {
252b5132 5676psinfo_t avar
6be7c12c
AO
5677; return 0; }
5678EOF
66e25bab 5679if { (eval echo configure:5680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5680 rm -rf conftest*
252b5132
RH
5681 bfd_cv_have_sys_procfs_type_psinfo_t=yes
5682else
6be7c12c
AO
5683 echo "configure: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5685 rm -rf conftest*
5686 bfd_cv_have_sys_procfs_type_psinfo_t=no
5687
252b5132 5688fi
6be7c12c 5689rm -f conftest*
252b5132
RH
5690fi
5691
5692 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
6be7c12c 5693 cat >> confdefs.h <<\EOF
252b5132
RH
5694#define HAVE_PSINFO_T 1
5695EOF
5696
5697 fi
6be7c12c 5698 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
252b5132 5699
6be7c12c 5700 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5701echo "configure:5702: checking for psinfo32_t in sys/procfs.h" >&5
6be7c12c
AO
5702 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
7ee38065 5704else
6be7c12c 5705 cat > conftest.$ac_ext <<EOF
66e25bab 5706#line 5707 "configure"
7ee38065
MS
5707#include "confdefs.h"
5708
5709#define _SYSCALL32
5710#include <sys/procfs.h>
6be7c12c 5711int main() {
7ee38065 5712psinfo32_t avar
6be7c12c
AO
5713; return 0; }
5714EOF
66e25bab 5715if { (eval echo configure:5716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5716 rm -rf conftest*
7ee38065
MS
5717 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
5718else
6be7c12c
AO
5719 echo "configure: failed program was:" >&5
5720 cat conftest.$ac_ext >&5
5721 rm -rf conftest*
5722 bfd_cv_have_sys_procfs_type_psinfo32_t=no
5723
7ee38065 5724fi
6be7c12c 5725rm -f conftest*
7ee38065
MS
5726fi
5727
5728 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
6be7c12c 5729 cat >> confdefs.h <<\EOF
7ee38065
MS
5730#define HAVE_PSINFO32_T 1
5731EOF
5732
5733 fi
6be7c12c 5734 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
7ee38065 5735
6be7c12c 5736 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5737echo "configure:5738: checking for lwpstatus_t in sys/procfs.h" >&5
6be7c12c
AO
5738 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5739 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 5740else
6be7c12c 5741 cat > conftest.$ac_ext <<EOF
66e25bab 5742#line 5743 "configure"
252b5132 5743#include "confdefs.h"
7ee38065
MS
5744
5745#define _SYSCALL32
252b5132 5746#include <sys/procfs.h>
6be7c12c 5747int main() {
252b5132 5748lwpstatus_t avar
6be7c12c
AO
5749; return 0; }
5750EOF
66e25bab 5751if { (eval echo configure:5752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5752 rm -rf conftest*
252b5132
RH
5753 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
5754else
6be7c12c
AO
5755 echo "configure: failed program was:" >&5
5756 cat conftest.$ac_ext >&5
5757 rm -rf conftest*
5758 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
5759
252b5132 5760fi
6be7c12c 5761rm -f conftest*
252b5132
RH
5762fi
5763
5764 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
6be7c12c 5765 cat >> confdefs.h <<\EOF
252b5132
RH
5766#define HAVE_LWPSTATUS_T 1
5767EOF
5768
5769 fi
6be7c12c 5770 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
252b5132 5771
6be7c12c 5772 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5773echo "configure:5774: checking for lwpxstatus_t in sys/procfs.h" >&5
6be7c12c
AO
5774 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
f572a39d 5776else
6be7c12c 5777 cat > conftest.$ac_ext <<EOF
66e25bab 5778#line 5779 "configure"
f572a39d
AM
5779#include "confdefs.h"
5780
5781#define _SYSCALL32
5782#include <sys/procfs.h>
6be7c12c 5783int main() {
f572a39d 5784lwpxstatus_t avar
6be7c12c
AO
5785; return 0; }
5786EOF
66e25bab 5787if { (eval echo configure:5788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5788 rm -rf conftest*
f572a39d
AM
5789 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
5790else
6be7c12c
AO
5791 echo "configure: failed program was:" >&5
5792 cat conftest.$ac_ext >&5
5793 rm -rf conftest*
5794 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
5795
f572a39d 5796fi
6be7c12c 5797rm -f conftest*
f572a39d
AM
5798fi
5799
5800 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
6be7c12c 5801 cat >> confdefs.h <<\EOF
f572a39d
AM
5802#define HAVE_LWPXSTATUS_T 1
5803EOF
5804
5805 fi
6be7c12c 5806 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
f572a39d 5807
6be7c12c 5808 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5809echo "configure:5810: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
6be7c12c
AO
5810 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 5812else
6be7c12c 5813 cat > conftest.$ac_ext <<EOF
66e25bab 5814#line 5815 "configure"
252b5132 5815#include "confdefs.h"
7ee38065
MS
5816
5817#define _SYSCALL32
252b5132 5818#include <sys/procfs.h>
6be7c12c 5819int main() {
252b5132 5820lwpstatus_t avar; void* aref = (void*) &avar.pr_context
6be7c12c
AO
5821; return 0; }
5822EOF
66e25bab 5823if { (eval echo configure:5824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5824 rm -rf conftest*
252b5132
RH
5825 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
5826else
6be7c12c
AO
5827 echo "configure: failed program was:" >&5
5828 cat conftest.$ac_ext >&5
5829 rm -rf conftest*
5830 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
5831
252b5132 5832fi
6be7c12c 5833rm -f conftest*
252b5132
RH
5834fi
5835
5836 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
6be7c12c 5837 cat >> confdefs.h <<\EOF
252b5132
RH
5838#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5839EOF
5840
5841 fi
6be7c12c 5842 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
252b5132 5843
6be7c12c 5844 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5845echo "configure:5846: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
6be7c12c
AO
5846 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
5847 echo $ac_n "(cached) $ac_c" 1>&6
252b5132 5848else
6be7c12c 5849 cat > conftest.$ac_ext <<EOF
66e25bab 5850#line 5851 "configure"
252b5132 5851#include "confdefs.h"
7ee38065
MS
5852
5853#define _SYSCALL32
252b5132 5854#include <sys/procfs.h>
6be7c12c 5855int main() {
252b5132 5856lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
6be7c12c
AO
5857; return 0; }
5858EOF
66e25bab 5859if { (eval echo configure:5860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5860 rm -rf conftest*
252b5132
RH
5861 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
5862else
6be7c12c
AO
5863 echo "configure: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5865 rm -rf conftest*
5866 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
5867
252b5132 5868fi
6be7c12c 5869rm -f conftest*
252b5132
RH
5870fi
5871
5872 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
6be7c12c 5873 cat >> confdefs.h <<\EOF
252b5132
RH
5874#define HAVE_LWPSTATUS_T_PR_REG 1
5875EOF
5876
5877 fi
6be7c12c 5878 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
252b5132 5879
6be7c12c 5880 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
66e25bab 5881echo "configure:5882: checking for win32_pstatus_t in sys/procfs.h" >&5
6be7c12c
AO
5882 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
5883 echo $ac_n "(cached) $ac_c" 1>&6
e3c976c4 5884else
6be7c12c 5885 cat > conftest.$ac_ext <<EOF
66e25bab 5886#line 5887 "configure"
e3c976c4 5887#include "confdefs.h"
7ee38065
MS
5888
5889#define _SYSCALL32
e3c976c4 5890#include <sys/procfs.h>
6be7c12c 5891int main() {
e3c976c4 5892win32_pstatus_t avar
6be7c12c
AO
5893; return 0; }
5894EOF
66e25bab 5895if { (eval echo configure:5896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 5896 rm -rf conftest*
e3c976c4
ILT
5897 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
5898else
6be7c12c
AO
5899 echo "configure: failed program was:" >&5
5900 cat conftest.$ac_ext >&5
5901 rm -rf conftest*
5902 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
5903
e3c976c4 5904fi
6be7c12c 5905rm -f conftest*
252b5132
RH
5906fi
5907
e3c976c4 5908 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
6be7c12c 5909 cat >> confdefs.h <<\EOF
e3c976c4 5910#define HAVE_WIN32_PSTATUS_T 1
16e9c715
NC
5911EOF
5912
5913 fi
6be7c12c 5914 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
e3c976c4
ILT
5915
5916 fi
5917fi
16e9c715 5918
b3baf5d0 5919
6be7c12c
AO
5920if test -n "$TRAD_HEADER"; then
5921 cat >> confdefs.h <<EOF
252b5132
RH
5922#define TRAD_HEADER $TRAD_HEADER
5923EOF
5924
3f9b03b5 5925fi
252b5132
RH
5926
5927# Horrible hacks to build DLLs on Windows.
5928WIN32LDFLAGS=
5929WIN32LIBADD=
5930case "${host}" in
5931*-*-cygwin*)
5932 if test "$enable_shared" = "yes"; then
5933 WIN32LDFLAGS="-no-undefined"
5934 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5935 fi
5936 ;;
78be1d6e 5937*-*-linux*)
39691762
L
5938 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
5939 # libiberty.a.
ca51bfff
L
5940 case "${host}" in
5941 mips*-*-linux*)
5942 # Linux/MIPS uses PIC by default.
5943 if test "$enable_shared" = "yes"; then
5944 WIN32LIBADD="-L../libiberty -liberty"
5945 fi
5946 ;;
5947 *)
66e25bab 5948 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 5949 if test -n "$x"; then
ca51bfff
L
5950 WIN32LIBADD="-L../libiberty/pic -liberty"
5951 fi
5952 ;;
5953 esac
39691762 5954 ;;
252b5132
RH
5955esac
5956
6be7c12c
AO
5957
5958
252b5132
RH
5959# target stuff:
5960
5961# Canonicalize the secondary target names.
5962if test -n "$enable_targets" ; then
5963 for targ in `echo $enable_targets | sed 's/,/ /g'`
5964 do
6d83c84b 5965 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
5966 if test -n "$result" ; then
5967 canon_targets="$canon_targets $result"
5968 else
5969 # Allow targets that config.sub doesn't recognize, like "all".
5970 canon_targets="$canon_targets $targ"
5971 fi
5972 done
5973fi
5974
5975all_targets=false
5976defvec=
5977selvecs=
08f74004 5978assocvecs=
252b5132
RH
5979selarchs=
5980TDEFINES=
5981for targ in $target $canon_targets
5982do
5983 if test "x$targ" = "xall"; then
5984 all_targets=true
08f74004 5985 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
5986 else
5987 . $srcdir/config.bfd
5988 if test "x$targ" = "x$target"; then
5989 defvec=$targ_defvec
5990 fi
5991 selvecs="$selvecs $targ_defvec $targ_selvecs"
5992 selarchs="$selarchs $targ_archs"
5993 TDEFINES="$TDEFINES $targ_cflags"
5994 fi
5995done
5996
6be7c12c 5997
252b5132
RH
5998# This processing still needs to be done if we're to decide properly whether
5999# 64-bit support needs to be compiled in. Currently, it will be included if
6000# the default or any other explicitly requested target requires it; it
6001# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 6002# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
6003# used.
6004
6005# uniq the default and selected vectors in all the configured targets.
6006f=""
6007for i in $selvecs ; do
6008 case " $f " in
6009 *" $i "*) ;;
6010 *) f="$f $i" ;;
6011 esac
6012done
6013selvecs="$f"
6014
6be7c12c 6015
08f74004
AM
6016# uniq the associated vectors in all the configured targets.
6017f=""
6018for i in $assocvecs ; do
6019 case " $f " in
6020 *" $i "*) ;;
6021 *) f="$f $i" ;;
6022 esac
6023done
6024assocvecs="$f"
6025
6026
252b5132
RH
6027# uniq the architectures in all the configured targets.
6028f=""
6029for i in $selarchs ; do
6030 case " $f " in
6031 *" $i "*) ;;
6032 *) f="$f $i" ;;
6033 esac
6034done
6035selarchs="$f"
6036
6037# Target backend .o files.
6038tb=
6039
65765700 6040elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
6041
6042for vec in $selvecs
6043do
69263e90 6044 target_size=32
252b5132
RH
6045 case "$vec" in
6046 # This list is alphabetized to make it easy to compare
dc810e39
AM
6047 # with the two vector lists in targets.c. For the same reason,
6048 # use one entry per line, even though this leads to long lines.
252b5132
RH
6049 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
6050 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 6051 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
6052 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
6053 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
6054 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
6055 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
6056 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
6057 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
6058 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6059 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6060 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6061 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6062 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
6063 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
6064 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
6065 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6066 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6067 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6068 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
6069 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
6070 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 6071 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
dc810e39 6072 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
adde6300 6073 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
dc810e39 6074 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 6075 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
252b5132 6076 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
b6821651 6077 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
c6e90b02 6078 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
06c15ad7 6079 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132
RH
6080 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
6081 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 6082 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 6083 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 6084 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 6085 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39
AM
6086 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
6087 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 6088 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
b6821651
AM
6089 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
6090 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
9d751335 6091 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 6092 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 6093 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 6094 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 6095 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 6096 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 6097 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 6098 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39
AM
6099 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
6100 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
b6821651 6101 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
c6e90b02 6102 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
252b5132 6103 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
60bcf0fa
NC
6104 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
6105 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
252b5132
RH
6106 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
6107 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
6108 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
6109 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
6110 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
6111 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
2469cfa2 6112 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
8a397dad
TS
6113 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6114 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6115 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6116 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 6117 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 6118 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
6119 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
6120 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
b6821651
AM
6121 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
6122 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
a85d7ed0 6123 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
eb1e0e80
NC
6124 # FIXME: We include cofflink.lo not because it's needed for
6125 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
6126 # which needs it but does not list it. Should be fixed in right place.
9cba27b2
JT
6127 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6128 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
2bc3c89a
AM
6129 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6130 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6131 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6132 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
b6821651
AM
6133 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6134 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6135 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6136 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6137 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6138 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
252b5132 6139 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
c6e90b02
TS
6140 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6141 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 6142 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 6143 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 6144 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 6145 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
2238051f 6146 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
6147 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
6148 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 6149 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39
AM
6150 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
6151 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
6152 bfd_elf64_ia64_aix_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6153 bfd_elf64_ia64_aix_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6154 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 6155 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
6156 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6157 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 6158 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
3c3bdf30 6159 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
6160 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6161 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
6162 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
6163 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6164 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
6165 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6166 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6167 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6168 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
dc810e39 6169 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02
TS
6170 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6171 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39 6172 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 6173 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
6174 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6175 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6176 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6177 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 6178 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 6179 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 6180 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 6181 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
6182 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6183 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
6184 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
6185 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
6186 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
6187 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
6188 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
6189 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
6190 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
6191 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
6192 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
6193 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
6194 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
6195 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
6196 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
6197 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6198 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6199 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 6200 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
6201 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
6202 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
6203 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6204 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
252b5132
RH
6205 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
6206 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
6207 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
6208 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
6209 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
6210 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
6211 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
6212 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6213 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
6214 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6215 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6216 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
6217 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
6218 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 6219 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
93509525
KD
6220 mach_o_be_vec) tb="$tb mach-o.lo" ;;
6221 mach_o_le_vec) tb="$tb mach-o.lo" ;;
6222 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
6223 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6224 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6225 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6226 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
6227 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6228 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 6229 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 6230 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 6231 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 6232 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 6233 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 6234 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 6235 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 6236 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
6237 pef_vec) tb="$tb pef.lo" ;;
6238 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 6239 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 6240 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 6241 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 6242 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 6243 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 6244 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 6245 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 6246 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 6247 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 6248 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
6249 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6250 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 6251 som_vec) tb="$tb som.lo" ;;
dc810e39 6252 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
6253 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
6254 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
6255 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6256 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
6257 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 6258 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 6259 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
6260 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
6261 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
6262 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
6263 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
6264 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
6265 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
6266 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
6267 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 6268 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 6269 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 6270 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 6271 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 6272 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 6273 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 6274 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 6275 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 6276 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 6277 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 6278 versados_vec) tb="$tb versados.lo" ;;
dc810e39 6279 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
6280 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6281 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
6282 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
6283 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
6284
341ca622
AM
6285 # These appear out of order in targets.c
6286 srec_vec) tb="$tb srec.lo" ;;
6287 symbolsrec_vec) tb="$tb srec.lo" ;;
6288 tekhex_vec) tb="$tb tekhex.lo" ;;
6289 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
6290 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
6291
252b5132 6292 "") ;;
6be7c12c 6293 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
252b5132 6294 esac
69263e90
AM
6295
6296 if test ${target_size} = 64; then
6297 target64=true
6298 fi
6299 if test x"${vec}" = x"${defvec}"; then
6300 bfd_default_target_size=${target_size}
6301 fi
252b5132
RH
6302done
6303
6304# Target architecture .o files.
6305# A couple of CPUs use shorter file names to avoid problems on DOS
6306# filesystems.
6307ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6308
6309# Weed out duplicate .o files.
6310f=""
6311for i in $tb ; do
6312 case " $f " in
6313 *" $i "*) ;;
6314 *) f="$f $i" ;;
6315 esac
6316done
6317tb="$f"
6318
6319f=""
6320for i in $ta ; do
6321 case " $f " in
6322 *" $i "*) ;;
6323 *) f="$f $i" ;;
6324 esac
6325done
6326ta="$f"
6327
6328bfd_backends="$tb"
6329bfd_machines="$ta"
6330
6331if test x${all_targets} = xtrue ; then
6332 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
6333 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
6334 selvecs=
6335 havevecs=
6336 selarchs=
08f74004
AM
6337 test -n "$assocvecs" &&
6338 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
6339else # all_targets is true
6340 # Only set these if they will be nonempty, for the clever echo.
6341 havevecs=
08f74004 6342 assocvecs=
252b5132
RH
6343 test -n "$selvecs" &&
6344 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6345 test -n "$selvecs" &&
6346 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6347 test -n "$selarchs" &&
6348 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6349fi # all_targets is true
6350
6351case ${host64}-${target64}-${want64} in
6352 *true*)
6353 wordsize=64
2858ef35 6354 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
252b5132
RH
6355 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6356 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
6be7c12c
AO
6357 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6358 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
252b5132 6359 fi
966abd70
HPN
6360 if test -n "$GCC" ; then
6361 bad_64bit_gcc=no;
6362 echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
2469cfa2 6363echo "configure:6363: checking for gcc version with buggy 64-bit support" >&5
966abd70
HPN
6364 # Add more tests for gcc versions with non-working 64-bit support here.
6365 cat > conftest.$ac_ext <<EOF
2469cfa2 6366#line 6366 "configure"
966abd70
HPN
6367#include "confdefs.h"
6368:__GNUC__:__GNUC_MINOR__:__i386__:
6369EOF
6370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6371 egrep ": 2 : 91 : 1 :" >/dev/null 2>&1; then
6372 rm -rf conftest*
6373 bad_64bit_gcc=yes;
6374 echo "$ac_t""yes: egcs-1.1.2 on ix86 spotted" 1>&6
6375else
6376 rm -rf conftest*
6377 echo "$ac_t""no" 1>&6
6378fi
6379rm -f conftest*
6380
6381 if test $bad_64bit_gcc = yes ; then
6382 { echo "configure: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" 1>&2; exit 1; }
6383 fi
6384 fi
252b5132
RH
6385 ;;
6386 false-false-false)
6387 wordsize=32
2858ef35 6388 bfd_libs='$(BFD32_LIBS)'
252b5132
RH
6389 all_backends='$(BFD32_BACKENDS)'
6390 ;;
6391esac
6392
6be7c12c
AO
6393
6394
6395
6396
6397
69263e90 6398
2858ef35 6399
252b5132
RH
6400tdefaults=""
6401test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6402test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 6403test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
6404test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6405test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6406
6be7c12c 6407
a6903459 6408for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
252b5132 6409do
6be7c12c
AO
6410ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6411echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2469cfa2 6412echo "configure:6412: checking for $ac_hdr" >&5
6be7c12c
AO
6413if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6414 echo $ac_n "(cached) $ac_c" 1>&6
6415else
6416 cat > conftest.$ac_ext <<EOF
2469cfa2 6417#line 6417 "configure"
252b5132 6418#include "confdefs.h"
6be7c12c
AO
6419#include <$ac_hdr>
6420EOF
6421ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2469cfa2 6422{ (eval echo configure:6422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6be7c12c
AO
6423ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6424if test -z "$ac_err"; then
6425 rm -rf conftest*
6426 eval "ac_cv_header_$ac_safe=yes"
252b5132 6427else
6be7c12c
AO
6428 echo "$ac_err" >&5
6429 echo "configure: failed program was:" >&5
252b5132 6430 cat conftest.$ac_ext >&5
6be7c12c
AO
6431 rm -rf conftest*
6432 eval "ac_cv_header_$ac_safe=no"
252b5132 6433fi
6be7c12c 6434rm -f conftest*
252b5132 6435fi
6be7c12c
AO
6436if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6437 echo "$ac_t""yes" 1>&6
6438 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6439 cat >> confdefs.h <<EOF
6440#define $ac_tr_hdr 1
252b5132 6441EOF
6be7c12c
AO
6442
6443else
6444 echo "$ac_t""no" 1>&6
252b5132
RH
6445fi
6446done
6447
6448for ac_func in getpagesize
6449do
6be7c12c 6450echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2469cfa2 6451echo "configure:6451: checking for $ac_func" >&5
6be7c12c
AO
6452if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6453 echo $ac_n "(cached) $ac_c" 1>&6
6454else
6455 cat > conftest.$ac_ext <<EOF
2469cfa2 6456#line 6456 "configure"
252b5132
RH
6457#include "confdefs.h"
6458/* System header to define __stub macros and hopefully few prototypes,
6be7c12c 6459 which can conflict with char $ac_func(); below. */
252b5132
RH
6460#include <assert.h>
6461/* Override any gcc2 internal prototype to avoid an error. */
6462/* We use char because int might match the return type of a gcc2
6be7c12c
AO
6463 builtin and then its argument prototype would still apply. */
6464char $ac_func();
6465
6466int main() {
252b5132
RH
6467
6468/* The GNU C library defines this for functions which it implements
6469 to always fail with ENOSYS. Some functions are actually named
6470 something starting with __ and the normal name is an alias. */
6471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6472choke me
6473#else
6be7c12c 6474$ac_func();
252b5132
RH
6475#endif
6476
6be7c12c 6477; return 0; }
252b5132 6478EOF
2469cfa2 6479if { (eval echo configure:6479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c
AO
6480 rm -rf conftest*
6481 eval "ac_cv_func_$ac_func=yes"
6482else
6483 echo "configure: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6485 rm -rf conftest*
6486 eval "ac_cv_func_$ac_func=no"
6487fi
6488rm -f conftest*
6489fi
252b5132 6490
6be7c12c
AO
6491if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6492 echo "$ac_t""yes" 1>&6
6493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6494 cat >> confdefs.h <<EOF
6495#define $ac_tr_func 1
6496EOF
6497
6498else
6499 echo "$ac_t""no" 1>&6
252b5132
RH
6500fi
6501done
6502
6be7c12c 6503echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2469cfa2 6504echo "configure:6504: checking for working mmap" >&5
6be7c12c
AO
6505if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
252b5132
RH
6507else
6508 if test "$cross_compiling" = yes; then
6509 ac_cv_func_mmap_fixed_mapped=no
6510else
6be7c12c 6511 cat > conftest.$ac_ext <<EOF
2469cfa2 6512#line 6512 "configure"
252b5132 6513#include "confdefs.h"
6be7c12c 6514
252b5132
RH
6515/* Thanks to Mike Haertel and Jim Avera for this test.
6516 Here is a matrix of mmap possibilities:
6517 mmap private not fixed
6518 mmap private fixed at somewhere currently unmapped
6519 mmap private fixed at somewhere already mapped
6520 mmap shared not fixed
6521 mmap shared fixed at somewhere currently unmapped
6522 mmap shared fixed at somewhere already mapped
6523 For private mappings, we should verify that changes cannot be read()
6524 back from the file, nor mmap's back from the file at a different
6525 address. (There have been systems where private was not correctly
6526 implemented like the infamous i386 svr4.0, and systems where the
6be7c12c 6527 VM page cache was not coherent with the filesystem buffer cache
252b5132
RH
6528 like early versions of FreeBSD and possibly contemporary NetBSD.)
6529 For shared mappings, we should conversely verify that changes get
6530 propogated back to all the places they're supposed to be.
6531
6532 Grep wants private fixed already mapped.
6533 The main things grep needs to know about mmap are:
6534 * does it exist and is it safe to write into the mmap'd area
6535 * how to use it (BSD variants) */
6536#include <sys/types.h>
6537#include <fcntl.h>
6538#include <sys/mman.h>
6539
a6903459
NC
6540#if HAVE_SYS_TYPES_H
6541# include <sys/types.h>
6542#endif
6543
6544#if HAVE_STDLIB_H
6545# include <stdlib.h>
6546#endif
6547
6548#if HAVE_SYS_STAT_H
6549# include <sys/stat.h>
6550#endif
6551
6552#if HAVE_UNISTD_H
6553# include <unistd.h>
6554#endif
6555
b3baf5d0 6556/* This mess was copied from the GNU getpagesize.h. */
6be7c12c 6557#ifndef HAVE_GETPAGESIZE
6be7c12c 6558
252b5132 6559/* Assume that all systems that can run configure have sys/param.h. */
6be7c12c 6560# ifndef HAVE_SYS_PARAM_H
252b5132
RH
6561# define HAVE_SYS_PARAM_H 1
6562# endif
6563
6564# ifdef _SC_PAGESIZE
6565# define getpagesize() sysconf(_SC_PAGESIZE)
6566# else /* no _SC_PAGESIZE */
6be7c12c 6567# ifdef HAVE_SYS_PARAM_H
252b5132
RH
6568# include <sys/param.h>
6569# ifdef EXEC_PAGESIZE
6570# define getpagesize() EXEC_PAGESIZE
6571# else /* no EXEC_PAGESIZE */
6572# ifdef NBPG
6573# define getpagesize() NBPG * CLSIZE
6574# ifndef CLSIZE
6575# define CLSIZE 1
6576# endif /* no CLSIZE */
6577# else /* no NBPG */
6578# ifdef NBPC
6579# define getpagesize() NBPC
6580# else /* no NBPC */
6581# ifdef PAGESIZE
6582# define getpagesize() PAGESIZE
6583# endif /* PAGESIZE */
6584# endif /* no NBPC */
6585# endif /* no NBPG */
6586# endif /* no EXEC_PAGESIZE */
6587# else /* no HAVE_SYS_PARAM_H */
6588# define getpagesize() 8192 /* punt totally */
6589# endif /* no HAVE_SYS_PARAM_H */
6590# endif /* no _SC_PAGESIZE */
6591
6592#endif /* no HAVE_GETPAGESIZE */
6593
6be7c12c
AO
6594#ifdef __cplusplus
6595extern "C" { void *malloc(unsigned); }
6596#else
6597char *malloc();
6598#endif
6599
252b5132 6600int
6be7c12c 6601main()
252b5132 6602{
6be7c12c
AO
6603 char *data, *data2, *data3;
6604 int i, pagesize;
6605 int fd;
6606
6607 pagesize = getpagesize();
6608
6609 /*
6610 * First, make a file with some known garbage in it.
6611 */
6612 data = malloc(pagesize);
6613 if (!data)
6614 exit(1);
6615 for (i = 0; i < pagesize; ++i)
6616 *(data + i) = rand();
6617 umask(0);
6618 fd = creat("conftestmmap", 0600);
6619 if (fd < 0)
6620 exit(1);
6621 if (write(fd, data, pagesize) != pagesize)
6622 exit(1);
6623 close(fd);
6624
6625 /*
6626 * Next, try to mmap the file at a fixed address which
6627 * already has something else allocated at it. If we can,
6628 * also make sure that we see the same garbage.
6629 */
6630 fd = open("conftestmmap", O_RDWR);
6631 if (fd < 0)
6632 exit(1);
6633 data2 = malloc(2 * pagesize);
6634 if (!data2)
6635 exit(1);
6636 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6637 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6638 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6639 exit(1);
6640 for (i = 0; i < pagesize; ++i)
6641 if (*(data + i) != *(data2 + i))
6642 exit(1);
6643
6644 /*
6645 * Finally, make sure that changes to the mapped area
6646 * do not percolate back to the file as seen by read().
6647 * (This is a bug on some variants of i386 svr4.0.)
6648 */
6649 for (i = 0; i < pagesize; ++i)
6650 *(data2 + i) = *(data2 + i) + 1;
6651 data3 = malloc(pagesize);
6652 if (!data3)
6653 exit(1);
6654 if (read(fd, data3, pagesize) != pagesize)
6655 exit(1);
6656 for (i = 0; i < pagesize; ++i)
6657 if (*(data + i) != *(data3 + i))
6658 exit(1);
6659 close(fd);
6660 unlink("conftestmmap");
6661 exit(0);
252b5132 6662}
6be7c12c
AO
6663
6664EOF
2469cfa2 6665if { (eval echo configure:6665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6be7c12c 6666then
252b5132
RH
6667 ac_cv_func_mmap_fixed_mapped=yes
6668else
6be7c12c
AO
6669 echo "configure: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6671 rm -fr conftest*
6672 ac_cv_func_mmap_fixed_mapped=no
252b5132 6673fi
6be7c12c 6674rm -fr conftest*
252b5132 6675fi
6be7c12c 6676
252b5132 6677fi
b3baf5d0 6678
6be7c12c
AO
6679echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6680if test $ac_cv_func_mmap_fixed_mapped = yes; then
6681 cat >> confdefs.h <<\EOF
252b5132
RH
6682#define HAVE_MMAP 1
6683EOF
6684
6685fi
6686
6687for ac_func in madvise mprotect
6688do
6be7c12c 6689echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2469cfa2 6690echo "configure:6690: checking for $ac_func" >&5
6be7c12c
AO
6691if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6693else
6694 cat > conftest.$ac_ext <<EOF
2469cfa2 6695#line 6695 "configure"
252b5132
RH
6696#include "confdefs.h"
6697/* System header to define __stub macros and hopefully few prototypes,
6be7c12c 6698 which can conflict with char $ac_func(); below. */
252b5132
RH
6699#include <assert.h>
6700/* Override any gcc2 internal prototype to avoid an error. */
6701/* We use char because int might match the return type of a gcc2
6be7c12c
AO
6702 builtin and then its argument prototype would still apply. */
6703char $ac_func();
6704
6705int main() {
252b5132
RH
6706
6707/* The GNU C library defines this for functions which it implements
6708 to always fail with ENOSYS. Some functions are actually named
6709 something starting with __ and the normal name is an alias. */
6710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6711choke me
6712#else
6be7c12c 6713$ac_func();
252b5132
RH
6714#endif
6715
6be7c12c 6716; return 0; }
252b5132 6717EOF
2469cfa2 6718if { (eval echo configure:6718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6be7c12c
AO
6719 rm -rf conftest*
6720 eval "ac_cv_func_$ac_func=yes"
6721else
6722 echo "configure: failed program was:" >&5
6723 cat conftest.$ac_ext >&5
6724 rm -rf conftest*
6725 eval "ac_cv_func_$ac_func=no"
6726fi
6727rm -f conftest*
6728fi
252b5132 6729
6be7c12c
AO
6730if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6731 echo "$ac_t""yes" 1>&6
6732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6733 cat >> confdefs.h <<EOF
6734#define $ac_tr_func 1
6735EOF
6736
6737else
6738 echo "$ac_t""no" 1>&6
252b5132
RH
6739fi
6740done
6741
6742case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6be7c12c 6743 true+yes ) cat >> confdefs.h <<\EOF
252b5132
RH
6744#define USE_MMAP 1
6745EOF
6746 ;;
6747esac
6748
6749rm -f doc/config.status
6be7c12c
AO
6750trap '' 1 2 15
6751cat > confcache <<\EOF
252b5132
RH
6752# This file is a shell script that caches the results of configure
6753# tests run on this system so they can be shared between configure
6be7c12c
AO
6754# scripts and configure runs. It is not useful on other systems.
6755# If it contains results you don't want to keep, you may remove or edit it.
252b5132 6756#
6be7c12c
AO
6757# By default, configure uses ./config.cache as the cache file,
6758# creating it if it does not exist already. You can give configure
6759# the --cache-file=FILE option to use a different cache file; that is
6760# what configure does when it calls configure scripts in
6761# subdirectories, so they share the cache.
6762# Giving --cache-file=/dev/null disables caching, for debugging configure.
6763# config.status only pays attention to the cache file if you give it the
6764# --recheck option to rerun configure.
252b5132 6765#
6be7c12c 6766EOF
252b5132
RH
6767# The following way of writing the cache mishandles newlines in values,
6768# but we know of no workaround that is simple, portable, and efficient.
6769# So, don't put newlines in cache variables' values.
6770# Ultrix sh set writes to stderr and can't be redirected directly,
6771# and sets the high bit in the cache file unless we assign to the vars.
6be7c12c
AO
6772(set) 2>&1 |
6773 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6774 *ac_space=\ *)
6775 # `set' does not quote correctly, so add quotes (double-quote substitution
6776 # turns \\\\ into \\, and sed turns \\ into \).
6777 sed -n \
6778 -e "s/'/'\\\\''/g" \
6779 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6780 ;;
6781 *)
6782 # `set' quotes correctly as required by POSIX, so do not add quotes.
6783 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6784 ;;
6785 esac >> confcache
6786if cmp -s $cache_file confcache; then
6787 :
6788else
252b5132 6789 if test -w $cache_file; then
6be7c12c
AO
6790 echo "updating cache $cache_file"
6791 cat confcache > $cache_file
252b5132
RH
6792 else
6793 echo "not updating unwritable cache $cache_file"
6794 fi
6795fi
6796rm -f confcache
6797
6be7c12c
AO
6798trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6799
252b5132
RH
6800test "x$prefix" = xNONE && prefix=$ac_default_prefix
6801# Let make expand exec_prefix.
6802test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6803
6be7c12c
AO
6804# Any assignment to VPATH causes Sun make to only execute
6805# the first set of double-colon rules, so remove it if not needed.
6806# If there is a colon in the path, we need to keep it.
252b5132 6807if test "x$srcdir" = x.; then
6be7c12c 6808 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
252b5132
RH
6809fi
6810
6be7c12c
AO
6811trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6812
252b5132
RH
6813DEFS=-DHAVE_CONFIG_H
6814
6be7c12c 6815# Without the "./", some shells look in PATH for config.status.
252b5132 6816: ${CONFIG_STATUS=./config.status}
6be7c12c
AO
6817
6818echo creating $CONFIG_STATUS
6819rm -f $CONFIG_STATUS
6820cat > $CONFIG_STATUS <<EOF
6821#! /bin/sh
252b5132
RH
6822# Generated automatically by configure.
6823# Run this file to recreate the current configuration.
6be7c12c
AO
6824# This directory was configured as follows,
6825# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6826#
6827# $0 $ac_configure_args
6828#
252b5132 6829# Compiler output produced by configure, useful for debugging
6be7c12c 6830# configure, is in ./config.log if it exists.
b3baf5d0 6831
6be7c12c
AO
6832ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6833for ac_option
252b5132 6834do
6be7c12c 6835 case "\$ac_option" in
252b5132 6836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6be7c12c
AO
6837 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6838 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6839 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6840 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6841 exit 0 ;;
6842 -help | --help | --hel | --he | --h)
6843 echo "\$ac_cs_usage"; exit 0 ;;
6844 *) echo "\$ac_cs_usage"; exit 1 ;;
252b5132
RH
6845 esac
6846done
6847
6be7c12c
AO
6848ac_given_srcdir=$srcdir
6849ac_given_INSTALL="$INSTALL"
b3baf5d0 6850
6a0735ef 6851trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
b3baf5d0 6852EOF
6be7c12c 6853cat >> $CONFIG_STATUS <<EOF
b3baf5d0 6854
6be7c12c
AO
6855# Protect against being on the right side of a sed subst in config.status.
6856sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6857 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6858$ac_vpsub
6859$extrasub
6860s%@SHELL@%$SHELL%g
6861s%@CFLAGS@%$CFLAGS%g
6862s%@CPPFLAGS@%$CPPFLAGS%g
6863s%@CXXFLAGS@%$CXXFLAGS%g
6864s%@FFLAGS@%$FFLAGS%g
6865s%@DEFS@%$DEFS%g
6866s%@LDFLAGS@%$LDFLAGS%g
6867s%@LIBS@%$LIBS%g
6868s%@exec_prefix@%$exec_prefix%g
6869s%@prefix@%$prefix%g
6870s%@program_transform_name@%$program_transform_name%g
6871s%@bindir@%$bindir%g
6872s%@sbindir@%$sbindir%g
6873s%@libexecdir@%$libexecdir%g
6874s%@datadir@%$datadir%g
6875s%@sysconfdir@%$sysconfdir%g
6876s%@sharedstatedir@%$sharedstatedir%g
6877s%@localstatedir@%$localstatedir%g
6878s%@libdir@%$libdir%g
6879s%@includedir@%$includedir%g
6880s%@oldincludedir@%$oldincludedir%g
6881s%@infodir@%$infodir%g
6882s%@mandir@%$mandir%g
6883s%@host@%$host%g
6884s%@host_alias@%$host_alias%g
6885s%@host_cpu@%$host_cpu%g
6886s%@host_vendor@%$host_vendor%g
6887s%@host_os@%$host_os%g
6888s%@target@%$target%g
6889s%@target_alias@%$target_alias%g
6890s%@target_cpu@%$target_cpu%g
6891s%@target_vendor@%$target_vendor%g
6892s%@target_os@%$target_os%g
6893s%@build@%$build%g
6894s%@build_alias@%$build_alias%g
6895s%@build_cpu@%$build_cpu%g
6896s%@build_vendor@%$build_vendor%g
6897s%@build_os@%$build_os%g
66e25bab 6898s%@CC@%$CC%g
6be7c12c
AO
6899s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6900s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6901s%@INSTALL_DATA@%$INSTALL_DATA%g
6902s%@PACKAGE@%$PACKAGE%g
6903s%@VERSION@%$VERSION%g
6904s%@ACLOCAL@%$ACLOCAL%g
6905s%@AUTOCONF@%$AUTOCONF%g
6906s%@AUTOMAKE@%$AUTOMAKE%g
6907s%@AUTOHEADER@%$AUTOHEADER%g
6908s%@MAKEINFO@%$MAKEINFO%g
6909s%@SET_MAKE@%$SET_MAKE%g
e43d48cc 6910s%@bfd_version@%$bfd_version%g
e43d48cc 6911s%@bfd_version_string@%$bfd_version_string%g
6be7c12c
AO
6912s%@AR@%$AR%g
6913s%@RANLIB@%$RANLIB%g
6914s%@LN_S@%$LN_S%g
6915s%@OBJEXT@%$OBJEXT%g
6916s%@EXEEXT@%$EXEEXT%g
6917s%@STRIP@%$STRIP%g
6918s%@LIBTOOL@%$LIBTOOL%g
6919s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6920s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6921s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6922s%@MAINT@%$MAINT%g
a703a6ea
AM
6923s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
6924s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
6925s%@bfdlibdir@%$bfdlibdir%g
6926s%@bfdincludedir@%$bfdincludedir%g
6be7c12c
AO
6927s%@CPP@%$CPP%g
6928s%@ALLOCA@%$ALLOCA%g
6929s%@USE_NLS@%$USE_NLS%g
6930s%@MSGFMT@%$MSGFMT%g
6931s%@GMSGFMT@%$GMSGFMT%g
6932s%@XGETTEXT@%$XGETTEXT%g
6933s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6934s%@CATALOGS@%$CATALOGS%g
6935s%@CATOBJEXT@%$CATOBJEXT%g
6936s%@DATADIRNAME@%$DATADIRNAME%g
6937s%@GMOFILES@%$GMOFILES%g
6938s%@INSTOBJEXT@%$INSTOBJEXT%g
6939s%@INTLDEPS@%$INTLDEPS%g
6940s%@INTLLIBS@%$INTLLIBS%g
6941s%@INTLOBJS@%$INTLOBJS%g
6942s%@POFILES@%$POFILES%g
6943s%@POSUB@%$POSUB%g
6944s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6945s%@GT_NO@%$GT_NO%g
6946s%@GT_YES@%$GT_YES%g
6947s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6948s%@l@%$l%g
6949s%@HDEFINES@%$HDEFINES%g
6950s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
6951s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
6952s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
6953s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
6954s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6955s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
6956s%@COREFILE@%$COREFILE%g
6957s%@COREFLAG@%$COREFLAG%g
6958s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
6959s%@WIN32LIBADD@%$WIN32LIBADD%g
6960s%@TDEFINES@%$TDEFINES%g
6961s%@wordsize@%$wordsize%g
2858ef35 6962s%@bfd_libs@%$bfd_libs%g
6be7c12c
AO
6963s%@all_backends@%$all_backends%g
6964s%@bfd_backends@%$bfd_backends%g
6965s%@bfd_machines@%$bfd_machines%g
69263e90 6966s%@bfd_default_target_size@%$bfd_default_target_size%g
6be7c12c 6967s%@tdefaults@%$tdefaults%g
b3baf5d0 6968
252b5132
RH
6969CEOF
6970EOF
6971
6be7c12c
AO
6972cat >> $CONFIG_STATUS <<\EOF
6973
6974# Split the substitutions into bite-sized pieces for seds with
6975# small command number limits, like on Digital OSF/1 and HP-UX.
dc810e39 6976ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6be7c12c
AO
6977ac_file=1 # Number of current file.
6978ac_beg=1 # First line for current file.
6979ac_end=$ac_max_sed_cmds # Line after last line for current file.
6980ac_more_lines=:
6981ac_sed_cmds=""
6982while $ac_more_lines; do
6983 if test $ac_beg -gt 1; then
6984 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6985 else
6986 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6987 fi
6988 if test ! -s conftest.s$ac_file; then
6989 ac_more_lines=false
6990 rm -f conftest.s$ac_file
6991 else
6992 if test -z "$ac_sed_cmds"; then
6993 ac_sed_cmds="sed -f conftest.s$ac_file"
252b5132 6994 else
6be7c12c 6995 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
252b5132 6996 fi
6be7c12c
AO
6997 ac_file=`expr $ac_file + 1`
6998 ac_beg=$ac_end
6999 ac_end=`expr $ac_end + $ac_max_sed_cmds`
252b5132 7000 fi
6be7c12c
AO
7001done
7002if test -z "$ac_sed_cmds"; then
7003 ac_sed_cmds=cat
7004fi
7005EOF
7006
7007cat >> $CONFIG_STATUS <<EOF
252b5132 7008
6a0735ef 7009CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in"}
252b5132 7010EOF
6be7c12c
AO
7011cat >> $CONFIG_STATUS <<\EOF
7012for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
252b5132 7013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6be7c12c
AO
7014 case "$ac_file" in
7015 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7016 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7017 *) ac_file_in="${ac_file}.in" ;;
252b5132
RH
7018 esac
7019
6be7c12c 7020 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
b3baf5d0 7021
6be7c12c
AO
7022 # Remove last slash and all that follows it. Not all systems have dirname.
7023 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7024 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7025 # The file is in a subdirectory.
7026 test ! -d "$ac_dir" && mkdir "$ac_dir"
7027 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
252b5132 7028 # A "../" for each directory in $ac_dir_suffix.
6be7c12c 7029 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
252b5132
RH
7030 else
7031 ac_dir_suffix= ac_dots=
7032 fi
7033
6be7c12c
AO
7034 case "$ac_given_srcdir" in
7035 .) srcdir=.
7036 if test -z "$ac_dots"; then top_srcdir=.
7037 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7038 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
252b5132 7039 *) # Relative path.
6be7c12c
AO
7040 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7041 top_srcdir="$ac_dots$ac_given_srcdir" ;;
252b5132
RH
7042 esac
7043
6be7c12c
AO
7044 case "$ac_given_INSTALL" in
7045 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7046 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
252b5132
RH
7047 esac
7048
6be7c12c
AO
7049 echo creating "$ac_file"
7050 rm -f "$ac_file"
7051 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7052 case "$ac_file" in
7053 *Makefile*) ac_comsub="1i\\
7054# $configure_input" ;;
7055 *) ac_comsub= ;;
7056 esac
252b5132 7057
6be7c12c
AO
7058 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7059 sed -e "$ac_comsub
7060s%@configure_input@%$configure_input%g
7061s%@srcdir@%$srcdir%g
7062s%@top_srcdir@%$top_srcdir%g
7063s%@INSTALL@%$INSTALL%g
7064" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7065fi; done
7066rm -f conftest.s*
252b5132
RH
7067
7068# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7069# NAME is the cpp macro being defined and VALUE is the value it is being given.
7070#
7071# ac_d sets the value in "#define NAME VALUE" lines.
6be7c12c
AO
7072ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7073ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7074ac_dC='\3'
7075ac_dD='%g'
7076# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7077ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7078ac_uB='\([ ]\)%\1#\2define\3'
252b5132 7079ac_uC=' '
6be7c12c
AO
7080ac_uD='\4%g'
7081# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7082ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7083ac_eB='$%\1#\2define\3'
7084ac_eC=' '
7085ac_eD='%g'
7086
7087if test "${CONFIG_HEADERS+set}" != set; then
7088EOF
7089cat >> $CONFIG_STATUS <<EOF
7090 CONFIG_HEADERS="config.h:config.in"
7091EOF
7092cat >> $CONFIG_STATUS <<\EOF
7093fi
7094for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
252b5132 7095 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6be7c12c
AO
7096 case "$ac_file" in
7097 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7098 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7099 *) ac_file_in="${ac_file}.in" ;;
252b5132
RH
7100 esac
7101
6be7c12c
AO
7102 echo creating $ac_file
7103
7104 rm -f conftest.frag conftest.in conftest.out
7105 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7106 cat $ac_file_inputs > conftest.in
7107
7108EOF
7109
7110# Transform confdefs.h into a sed script conftest.vals that substitutes
7111# the proper values into config.h.in to produce config.h. And first:
7112# Protect against being on the right side of a sed subst in config.status.
7113# Protect against being in an unquoted here document in config.status.
7114rm -f conftest.vals
7115cat > conftest.hdr <<\EOF
7116s/[\\&%]/\\&/g
7117s%[\\$`]%\\&%g
7118s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7119s%ac_d%ac_u%gp
7120s%ac_u%ac_e%gp
7121EOF
7122sed -n -f conftest.hdr confdefs.h > conftest.vals
7123rm -f conftest.hdr
252b5132
RH
7124
7125# This sed command replaces #undef with comments. This is necessary, for
7126# example, in the case of _POSIX_SOURCE, which is predefined and required
7127# on some systems where configure will not decide to define it.
6be7c12c
AO
7128cat >> conftest.vals <<\EOF
7129s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
252b5132
RH
7130EOF
7131
6be7c12c
AO
7132# Break up conftest.vals because some shells have a limit on
7133# the size of here documents, and old seds have small limits too.
252b5132
RH
7134
7135rm -f conftest.tail
6be7c12c 7136while :
252b5132 7137do
6be7c12c
AO
7138 ac_lines=`grep -c . conftest.vals`
7139 # grep -c gives empty output for an empty file on some AIX systems.
7140 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7141 # Write a limited-size here document to conftest.frag.
7142 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7143 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
252b5132 7144 echo 'CEOF
6be7c12c
AO
7145 sed -f conftest.frag conftest.in > conftest.out
7146 rm -f conftest.in
7147 mv conftest.out conftest.in
7148' >> $CONFIG_STATUS
7149 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7150 rm -f conftest.vals
7151 mv conftest.tail conftest.vals
252b5132 7152done
6be7c12c
AO
7153rm -f conftest.vals
7154
7155cat >> $CONFIG_STATUS <<\EOF
7156 rm -f conftest.frag conftest.h
7157 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7158 cat conftest.in >> conftest.h
7159 rm -f conftest.in
7160 if cmp -s $ac_file conftest.h 2>/dev/null; then
7161 echo "$ac_file is unchanged"
7162 rm -f conftest.h
252b5132 7163 else
6be7c12c
AO
7164 # Remove last slash and all that follows it. Not all systems have dirname.
7165 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
252b5132 7166 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6be7c12c
AO
7167 # The file is in a subdirectory.
7168 test ! -d "$ac_dir" && mkdir "$ac_dir"
252b5132 7169 fi
6be7c12c
AO
7170 rm -f $ac_file
7171 mv conftest.h $ac_file
252b5132 7172 fi
6be7c12c 7173fi; done
252b5132
RH
7174
7175EOF
6be7c12c 7176cat >> $CONFIG_STATUS <<EOF
b3baf5d0 7177
b3baf5d0 7178
6be7c12c
AO
7179EOF
7180cat >> $CONFIG_STATUS <<\EOF
7181test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7182sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
7183exit 0
252b5132
RH
7184EOF
7185chmod +x $CONFIG_STATUS
6be7c12c
AO
7186rm -fr confdefs* $ac_clean_files
7187test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
252b5132 7188
55c80943 7189