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