* configure.in (bfd_elf32_frvfdpic_vec): New.
[binutils.git] / bfd / configure
blob112d34922e01ca592571d88f0313c0b774106146
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 --enable-install-libbfd controls installation of libbfd and related headers"
41 ac_help="$ac_help
42 --disable-nls do not use Native Language Support"
43 ac_help="$ac_help
44 --with-included-gettext use the GNU gettext library included here"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
49 build=NONE
50 cache_file=./config.cache
51 exec_prefix=NONE
52 host=NONE
53 no_create=
54 nonopt=NONE
55 no_recursion=
56 prefix=NONE
57 program_prefix=NONE
58 program_suffix=NONE
59 program_transform_name=s,x,x,
60 silent=
61 site=
62 srcdir=
63 target=NONE
64 verbose=
65 x_includes=NONE
66 x_libraries=NONE
67 bindir='${exec_prefix}/bin'
68 sbindir='${exec_prefix}/sbin'
69 libexecdir='${exec_prefix}/libexec'
70 datadir='${prefix}/share'
71 sysconfdir='${prefix}/etc'
72 sharedstatedir='${prefix}/com'
73 localstatedir='${prefix}/var'
74 libdir='${exec_prefix}/lib'
75 includedir='${prefix}/include'
76 oldincludedir='/usr/include'
77 infodir='${prefix}/info'
78 mandir='${prefix}/man'
80 # Initialize some other variables.
81 subdirs=
82 MFLAGS= MAKEFLAGS=
83 SHELL=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
85 ac_max_here_lines=12
87 ac_prev=
88 for ac_option
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
94 ac_prev=
95 continue
98 case "$ac_option" in
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 *) ac_optarg= ;;
101 esac
103 # Accept the important Cygnus configure options, so we can diagnose typos.
105 case "$ac_option" in
107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 ac_prev=bindir ;;
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110 bindir="$ac_optarg" ;;
112 -build | --build | --buil | --bui | --bu)
113 ac_prev=build ;;
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115 build="$ac_optarg" ;;
117 -cache-file | --cache-file | --cache-fil | --cache-fi \
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119 ac_prev=cache_file ;;
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122 cache_file="$ac_optarg" ;;
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 ac_prev=datadir ;;
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 | --da=*)
128 datadir="$ac_optarg" ;;
130 -disable-* | --disable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* | --enable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 case "$ac_option" in
147 *=*) ;;
148 *) ac_optarg=yes ;;
149 esac
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154 | --exec | --exe | --ex)
155 ac_prev=exec_prefix ;;
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158 | --exec=* | --exe=* | --ex=*)
159 exec_prefix="$ac_optarg" ;;
161 -gas | --gas | --ga | --g)
162 # Obsolete; use --with-gas.
163 with_gas=yes ;;
165 -help | --help | --hel | --he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
168 cat << EOF
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
171 Configuration:
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
179 [$ac_default_prefix]
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 [same as prefix]
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
186 [PREFIX/share]
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 [PREFIX/com]
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
202 cat << EOF
203 Host type:
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
218 exit 0 ;;
220 -host | --host | --hos | --ho)
221 ac_prev=host ;;
222 -host=* | --host=* | --hos=* | --ho=*)
223 host="$ac_optarg" ;;
225 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*)
230 includedir="$ac_optarg" ;;
232 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 ac_prev=infodir ;;
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;;
237 -libdir | --libdir | --libdi | --libd)
238 ac_prev=libdir ;;
239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
240 libdir="$ac_optarg" ;;
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*)
247 libexecdir="$ac_optarg" ;;
249 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \
251 | --locals | --local | --loca | --loc | --lo)
252 ac_prev=localstatedir ;;
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256 localstatedir="$ac_optarg" ;;
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 ac_prev=mandir ;;
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;;
263 -nfp | --nfp | --nf)
264 # Obsolete; use --without-fp.
265 with_fp=no ;;
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 | --no-cr | --no-c)
269 no_create=yes ;;
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 no_recursion=yes ;;
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277 | --oldin | --oldi | --old | --ol | --o)
278 ac_prev=oldincludedir ;;
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282 oldincludedir="$ac_optarg" ;;
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 ac_prev=prefix ;;
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287 prefix="$ac_optarg" ;;
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294 program_prefix="$ac_optarg" ;;
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301 program_suffix="$ac_optarg" ;;
303 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \
305 | --program-transform-n | --program-transform- \
306 | --program-transform | --program-transfor \
307 | --program-transfo | --program-transf \
308 | --program-trans | --program-tran \
309 | --progr-tra | --program-tr | --program-t)
310 ac_prev=program_transform_name ;;
311 -program-transform-name=* | --program-transform-name=* \
312 | --program-transform-nam=* | --program-transform-na=* \
313 | --program-transform-n=* | --program-transform-=* \
314 | --program-transform=* | --program-transfor=* \
315 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*)
318 program_transform_name="$ac_optarg" ;;
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil)
322 silent=yes ;;
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 ac_prev=sbindir ;;
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 | --sbi=* | --sb=*)
328 sbindir="$ac_optarg" ;;
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
333 | --sha | --sh)
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 | --sha=* | --sh=*)
339 sharedstatedir="$ac_optarg" ;;
341 -site | --site | --sit)
342 ac_prev=site ;;
343 -site=* | --site=* | --sit=*)
344 site="$ac_optarg" ;;
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 ac_prev=srcdir ;;
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;;
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;;
358 -target | --target | --targe | --targ | --tar | --ta | --t)
359 ac_prev=target ;;
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;;
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 verbose=yes ;;
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.13"
368 exit 0 ;;
370 -with-* | --with-*)
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 case "$ac_option" in
378 *=*) ;;
379 *) ac_optarg=yes ;;
380 esac
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* | --without-*)
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
392 --x)
393 # Obsolete; use --with-x.
394 with_x=yes ;;
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;;
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 nonopt="$ac_option"
423 esac
424 done
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
433 # 0 standard input
434 # 1 file creation
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
441 exec 6>/dev/null
442 else
443 exec 6>&1
445 exec 5>./config.log
447 echo "\
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
450 " 1>&5
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
454 ac_configure_args=
455 for ac_arg
457 case "$ac_arg" in
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459 | --no-cr | --no-c) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 esac
466 done
468 # NLS nuisances.
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 echo > confdefs.h
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file=libbfd.c
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent.
491 ac_prog=$0
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 srcdir=$ac_confdir
495 if test ! -r $srcdir/$ac_unique_file; then
496 srcdir=..
498 else
499 ac_srcdir_defaulted=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 else
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 else
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
521 . "$ac_site_file"
523 done
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
527 . $cache_file
528 else
529 echo "creating cache $cache_file"
530 > $cache_file
533 ac_ext=c
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp='$CPP $CPPFLAGS'
536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling=$ac_cv_prog_cc_cross
540 ac_exeext=
541 ac_objext=o
542 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545 ac_n= ac_c='
546 ' ac_t=' '
547 else
548 ac_n=-n ac_c= ac_t=
550 else
551 ac_n= ac_c='\c' ac_t=
554 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
555 echo "configure:556: checking for Cygwin environment" >&5
556 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
557 echo $ac_n "(cached) $ac_c" 1>&6
558 else
559 cat > conftest.$ac_ext <<EOF
560 #line 561 "configure"
561 #include "confdefs.h"
563 int main() {
565 #ifndef __CYGWIN__
566 #define __CYGWIN__ __CYGWIN32__
567 #endif
568 return __CYGWIN__;
569 ; return 0; }
571 if { (eval echo configure:572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
572 rm -rf conftest*
573 ac_cv_cygwin=yes
574 else
575 echo "configure: failed program was:" >&5
576 cat conftest.$ac_ext >&5
577 rm -rf conftest*
578 ac_cv_cygwin=no
580 rm -f conftest*
581 rm -f conftest*
584 echo "$ac_t""$ac_cv_cygwin" 1>&6
585 CYGWIN=
586 test "$ac_cv_cygwin" = yes && CYGWIN=yes
587 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
588 echo "configure:589: checking for mingw32 environment" >&5
589 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
591 else
592 cat > conftest.$ac_ext <<EOF
593 #line 594 "configure"
594 #include "confdefs.h"
596 int main() {
597 return __MINGW32__;
598 ; return 0; }
600 if { (eval echo configure:601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
601 rm -rf conftest*
602 ac_cv_mingw32=yes
603 else
604 echo "configure: failed program was:" >&5
605 cat conftest.$ac_ext >&5
606 rm -rf conftest*
607 ac_cv_mingw32=no
609 rm -f conftest*
610 rm -f conftest*
613 echo "$ac_t""$ac_cv_mingw32" 1>&6
614 MINGW32=
615 test "$ac_cv_mingw32" = yes && MINGW32=yes
618 ac_aux_dir=
619 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
620 if test -f $ac_dir/install-sh; then
621 ac_aux_dir=$ac_dir
622 ac_install_sh="$ac_aux_dir/install-sh -c"
623 break
624 elif test -f $ac_dir/install.sh; then
625 ac_aux_dir=$ac_dir
626 ac_install_sh="$ac_aux_dir/install.sh -c"
627 break
629 done
630 if test -z "$ac_aux_dir"; then
631 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
633 ac_config_guess=$ac_aux_dir/config.guess
634 ac_config_sub=$ac_aux_dir/config.sub
635 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
638 # Do some error checking and defaulting for the host and target type.
639 # The inputs are:
640 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
642 # The rules are:
643 # 1. You are not allowed to specify --host, --target, and nonopt at the
644 # same time.
645 # 2. Host defaults to nonopt.
646 # 3. If nonopt is not specified, then host defaults to the current host,
647 # as determined by config.guess.
648 # 4. Target and build default to nonopt.
649 # 5. If nonopt is not specified, then target and build default to host.
651 # The aliases save the names the user supplied, while $host etc.
652 # will get canonicalized.
653 case $host---$target---$nonopt in
654 NONE---*---* | *---NONE---* | *---*---NONE) ;;
655 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
656 esac
659 # Make sure we can run config.sub.
660 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
661 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
664 echo $ac_n "checking host system type""... $ac_c" 1>&6
665 echo "configure:666: checking host system type" >&5
667 host_alias=$host
668 case "$host_alias" in
669 NONE)
670 case $nonopt in
671 NONE)
672 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
673 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
674 fi ;;
675 *) host_alias=$nonopt ;;
676 esac ;;
677 esac
679 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
680 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$host" 1>&6
685 echo $ac_n "checking target system type""... $ac_c" 1>&6
686 echo "configure:687: checking target system type" >&5
688 target_alias=$target
689 case "$target_alias" in
690 NONE)
691 case $nonopt in
692 NONE) target_alias=$host_alias ;;
693 *) target_alias=$nonopt ;;
694 esac ;;
695 esac
697 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
698 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
699 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
700 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
701 echo "$ac_t""$target" 1>&6
703 echo $ac_n "checking build system type""... $ac_c" 1>&6
704 echo "configure:705: checking build system type" >&5
706 build_alias=$build
707 case "$build_alias" in
708 NONE)
709 case $nonopt in
710 NONE) build_alias=$host_alias ;;
711 *) build_alias=$nonopt ;;
712 esac ;;
713 esac
715 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
716 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
717 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
718 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
719 echo "$ac_t""$build" 1>&6
721 test "$host_alias" != "$target_alias" &&
722 test "$program_prefix$program_suffix$program_transform_name" = \
723 NONENONEs,x,x, &&
724 program_prefix=${target_alias}-
727 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
728 echo "configure:729: checking for strerror in -lcposix" >&5
729 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
732 else
733 ac_save_LIBS="$LIBS"
734 LIBS="-lcposix $LIBS"
735 cat > conftest.$ac_ext <<EOF
736 #line 737 "configure"
737 #include "confdefs.h"
738 /* Override any gcc2 internal prototype to avoid an error. */
739 /* We use char because int might match the return type of a gcc2
740 builtin and then its argument prototype would still apply. */
741 char strerror();
743 int main() {
744 strerror()
745 ; return 0; }
747 if { (eval echo configure:748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
748 rm -rf conftest*
749 eval "ac_cv_lib_$ac_lib_var=yes"
750 else
751 echo "configure: failed program was:" >&5
752 cat conftest.$ac_ext >&5
753 rm -rf conftest*
754 eval "ac_cv_lib_$ac_lib_var=no"
756 rm -f conftest*
757 LIBS="$ac_save_LIBS"
760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
761 echo "$ac_t""yes" 1>&6
762 LIBS="$LIBS -lcposix"
763 else
764 echo "$ac_t""no" 1>&6
770 am__api_version="1.4"
771 # Find a good install program. We prefer a C program (faster),
772 # so one script is as good as another. But avoid the broken or
773 # incompatible versions:
774 # SysV /etc/install, /usr/sbin/install
775 # SunOS /usr/etc/install
776 # IRIX /sbin/install
777 # AIX /bin/install
778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
781 # ./install, which can be erroneously created by make from ./install.sh.
782 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
783 echo "configure:784: checking for a BSD compatible install" >&5
784 if test -z "$INSTALL"; then
785 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
787 else
788 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
789 for ac_dir in $PATH; do
790 # Account for people who put trailing slashes in PATH elements.
791 case "$ac_dir/" in
792 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
794 # OSF1 and SCO ODT 3.0 have their own names for install.
795 # Don't use installbsd from OSF since it installs stuff as root
796 # by default.
797 for ac_prog in ginstall scoinst install; do
798 if test -f $ac_dir/$ac_prog; then
799 if test $ac_prog = install &&
800 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
801 # AIX install. It has an incompatible calling convention.
803 else
804 ac_cv_path_install="$ac_dir/$ac_prog -c"
805 break 2
808 done
810 esac
811 done
812 IFS="$ac_save_IFS"
815 if test "${ac_cv_path_install+set}" = set; then
816 INSTALL="$ac_cv_path_install"
817 else
818 # As a last resort, use the slow shell script. We don't cache a
819 # path for INSTALL within a source directory, because that will
820 # break other packages using the cache if that directory is
821 # removed, or if the path is relative.
822 INSTALL="$ac_install_sh"
825 echo "$ac_t""$INSTALL" 1>&6
827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
828 # It thinks the first close brace ends the variable substitution.
829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
833 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
835 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
836 echo "configure:837: checking whether build environment is sane" >&5
837 # Just in case
838 sleep 1
839 echo timestamp > conftestfile
840 # Do `set' in a subshell so we don't clobber the current shell's
841 # arguments. Must try -L first in case configure is actually a
842 # symlink; some systems play weird games with the mod time of symlinks
843 # (eg FreeBSD returns the mod time of the symlink's containing
844 # directory).
845 if (
846 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
847 if test "$*" = "X"; then
848 # -L didn't work.
849 set X `ls -t $srcdir/configure conftestfile`
851 if test "$*" != "X $srcdir/configure conftestfile" \
852 && test "$*" != "X conftestfile $srcdir/configure"; then
854 # If neither matched, then we have a broken ls. This can happen
855 # if, for instance, CONFIG_SHELL is bash and it inherits a
856 # broken ls alias from the environment. This has actually
857 # happened. Such a system could not be considered "sane".
858 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
859 alias in your environment" 1>&2; exit 1; }
862 test "$2" = conftestfile
864 then
865 # Ok.
867 else
868 { echo "configure: error: newly created file is older than distributed files!
869 Check your system clock" 1>&2; exit 1; }
871 rm -f conftest*
872 echo "$ac_t""yes" 1>&6
873 if test "$program_transform_name" = s,x,x,; then
874 program_transform_name=
875 else
876 # Double any \ or $. echo might interpret backslashes.
877 cat <<\EOF_SED > conftestsed
878 s,\\,\\\\,g; s,\$,$$,g
879 EOF_SED
880 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
881 rm -f conftestsed
883 test "$program_prefix" != NONE &&
884 program_transform_name="s,^,${program_prefix},; $program_transform_name"
885 # Use a double $ so make ignores it.
886 test "$program_suffix" != NONE &&
887 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
889 # sed with no file args requires a program.
890 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
892 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
893 echo "configure:894: checking whether ${MAKE-make} sets \${MAKE}" >&5
894 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
895 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
897 else
898 cat > conftestmake <<\EOF
899 all:
900 @echo 'ac_maketemp="${MAKE}"'
902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
903 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
904 if test -n "$ac_maketemp"; then
905 eval ac_cv_prog_make_${ac_make}_set=yes
906 else
907 eval ac_cv_prog_make_${ac_make}_set=no
909 rm -f conftestmake
911 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
912 echo "$ac_t""yes" 1>&6
913 SET_MAKE=
914 else
915 echo "$ac_t""no" 1>&6
916 SET_MAKE="MAKE=${MAKE-make}"
920 PACKAGE=bfd
922 VERSION=2.15.91
924 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
925 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
927 cat >> confdefs.h <<EOF
928 #define PACKAGE "$PACKAGE"
931 cat >> confdefs.h <<EOF
932 #define VERSION "$VERSION"
937 missing_dir=`cd $ac_aux_dir && pwd`
938 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
939 echo "configure:940: checking for working aclocal-${am__api_version}" >&5
940 # Run test in a subshell; some versions of sh will print an error if
941 # an executable is not found, even if stderr is redirected.
942 # Redirect stdin to placate older versions of autoconf. Sigh.
943 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
944 ACLOCAL=aclocal-${am__api_version}
945 echo "$ac_t""found" 1>&6
946 else
947 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
948 echo "$ac_t""missing" 1>&6
951 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
952 echo "configure:953: checking for working autoconf" >&5
953 # Run test in a subshell; some versions of sh will print an error if
954 # an executable is not found, even if stderr is redirected.
955 # Redirect stdin to placate older versions of autoconf. Sigh.
956 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
957 AUTOCONF=autoconf
958 echo "$ac_t""found" 1>&6
959 else
960 AUTOCONF="$missing_dir/missing autoconf"
961 echo "$ac_t""missing" 1>&6
964 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
965 echo "configure:966: checking for working automake-${am__api_version}" >&5
966 # Run test in a subshell; some versions of sh will print an error if
967 # an executable is not found, even if stderr is redirected.
968 # Redirect stdin to placate older versions of autoconf. Sigh.
969 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
970 AUTOMAKE=automake-${am__api_version}
971 echo "$ac_t""found" 1>&6
972 else
973 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
974 echo "$ac_t""missing" 1>&6
977 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
978 echo "configure:979: checking for working autoheader" >&5
979 # Run test in a subshell; some versions of sh will print an error if
980 # an executable is not found, even if stderr is redirected.
981 # Redirect stdin to placate older versions of autoconf. Sigh.
982 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
983 AUTOHEADER=autoheader
984 echo "$ac_t""found" 1>&6
985 else
986 AUTOHEADER="$missing_dir/missing autoheader"
987 echo "$ac_t""missing" 1>&6
990 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
991 echo "configure:992: checking for working makeinfo" >&5
992 # Run test in a subshell; some versions of sh will print an error if
993 # an executable is not found, even if stderr is redirected.
994 # Redirect stdin to placate older versions of autoconf. Sigh.
995 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
996 MAKEINFO=makeinfo
997 echo "$ac_t""found" 1>&6
998 else
999 MAKEINFO="$missing_dir/missing makeinfo"
1000 echo "$ac_t""missing" 1>&6
1004 # Uncomment the next line to remove the date from the reported bfd version
1005 #is_release=y
1007 bfd_version=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
1009 bfd_version_string="\"${VERSION}\""
1010 if test x${is_release} = x; then
1011 bfd_version_date=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
1012 bfd_version_string="\"${VERSION} ${bfd_version_date}\""
1017 if test $host != $build; then
1018 ac_tool_prefix=${host_alias}-
1019 else
1020 ac_tool_prefix=
1023 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1024 set dummy ${ac_tool_prefix}ar; ac_word=$2
1025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1026 echo "configure:1027: checking for $ac_word" >&5
1027 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1029 else
1030 if test -n "$AR"; then
1031 ac_cv_prog_AR="$AR" # Let the user override the test.
1032 else
1033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1034 ac_dummy="$PATH"
1035 for ac_dir in $ac_dummy; do
1036 test -z "$ac_dir" && ac_dir=.
1037 if test -f $ac_dir/$ac_word; then
1038 ac_cv_prog_AR="${ac_tool_prefix}ar"
1039 break
1041 done
1042 IFS="$ac_save_ifs"
1043 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1046 AR="$ac_cv_prog_AR"
1047 if test -n "$AR"; then
1048 echo "$ac_t""$AR" 1>&6
1049 else
1050 echo "$ac_t""no" 1>&6
1055 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1056 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1058 echo "configure:1059: checking for $ac_word" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1061 else
1062 if test -n "$RANLIB"; then
1063 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1064 else
1065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1066 ac_dummy="$PATH"
1067 for ac_dir in $ac_dummy; do
1068 test -z "$ac_dir" && ac_dir=.
1069 if test -f $ac_dir/$ac_word; then
1070 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1071 break
1073 done
1074 IFS="$ac_save_ifs"
1077 RANLIB="$ac_cv_prog_RANLIB"
1078 if test -n "$RANLIB"; then
1079 echo "$ac_t""$RANLIB" 1>&6
1080 else
1081 echo "$ac_t""no" 1>&6
1085 if test -z "$ac_cv_prog_RANLIB"; then
1086 if test -n "$ac_tool_prefix"; then
1087 # Extract the first word of "ranlib", so it can be a program name with args.
1088 set dummy ranlib; ac_word=$2
1089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_word" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1093 else
1094 if test -n "$RANLIB"; then
1095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1096 else
1097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1098 ac_dummy="$PATH"
1099 for ac_dir in $ac_dummy; do
1100 test -z "$ac_dir" && ac_dir=.
1101 if test -f $ac_dir/$ac_word; then
1102 ac_cv_prog_RANLIB="ranlib"
1103 break
1105 done
1106 IFS="$ac_save_ifs"
1107 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1110 RANLIB="$ac_cv_prog_RANLIB"
1111 if test -n "$RANLIB"; then
1112 echo "$ac_t""$RANLIB" 1>&6
1113 else
1114 echo "$ac_t""no" 1>&6
1117 else
1118 RANLIB=":"
1123 # Check whether --enable-shared or --disable-shared was given.
1124 if test "${enable_shared+set}" = set; then
1125 enableval="$enable_shared"
1126 p=${PACKAGE-default}
1127 case $enableval in
1128 yes) enable_shared=yes ;;
1129 no) enable_shared=no ;;
1131 enable_shared=no
1132 # Look at the argument we got. We use all the common list separators.
1133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1134 for pkg in $enableval; do
1135 if test "X$pkg" = "X$p"; then
1136 enable_shared=yes
1138 done
1139 IFS="$ac_save_ifs"
1141 esac
1142 else
1143 enable_shared=no
1147 # Check whether --enable-static or --disable-static was given.
1148 if test "${enable_static+set}" = set; then
1149 enableval="$enable_static"
1150 p=${PACKAGE-default}
1151 case $enableval in
1152 yes) enable_static=yes ;;
1153 no) enable_static=no ;;
1155 enable_static=no
1156 # Look at the argument we got. We use all the common list separators.
1157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1158 for pkg in $enableval; do
1159 if test "X$pkg" = "X$p"; then
1160 enable_static=yes
1162 done
1163 IFS="$ac_save_ifs"
1165 esac
1166 else
1167 enable_static=yes
1170 # Check whether --enable-fast-install or --disable-fast-install was given.
1171 if test "${enable_fast_install+set}" = set; then
1172 enableval="$enable_fast_install"
1173 p=${PACKAGE-default}
1174 case $enableval in
1175 yes) enable_fast_install=yes ;;
1176 no) enable_fast_install=no ;;
1178 enable_fast_install=no
1179 # Look at the argument we got. We use all the common list separators.
1180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1181 for pkg in $enableval; do
1182 if test "X$pkg" = "X$p"; then
1183 enable_fast_install=yes
1185 done
1186 IFS="$ac_save_ifs"
1188 esac
1189 else
1190 enable_fast_install=yes
1193 # Extract the first word of "gcc", so it can be a program name with args.
1194 set dummy gcc; ac_word=$2
1195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_word" >&5
1197 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1199 else
1200 if test -n "$CC"; then
1201 ac_cv_prog_CC="$CC" # Let the user override the test.
1202 else
1203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1204 ac_dummy="$PATH"
1205 for ac_dir in $ac_dummy; do
1206 test -z "$ac_dir" && ac_dir=.
1207 if test -f $ac_dir/$ac_word; then
1208 ac_cv_prog_CC="gcc"
1209 break
1211 done
1212 IFS="$ac_save_ifs"
1215 CC="$ac_cv_prog_CC"
1216 if test -n "$CC"; then
1217 echo "$ac_t""$CC" 1>&6
1218 else
1219 echo "$ac_t""no" 1>&6
1222 if test -z "$CC"; then
1223 # Extract the first word of "cc", so it can be a program name with args.
1224 set dummy cc; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1229 else
1230 if test -n "$CC"; then
1231 ac_cv_prog_CC="$CC" # Let the user override the test.
1232 else
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 ac_prog_rejected=no
1235 ac_dummy="$PATH"
1236 for ac_dir in $ac_dummy; do
1237 test -z "$ac_dir" && ac_dir=.
1238 if test -f $ac_dir/$ac_word; then
1239 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1240 ac_prog_rejected=yes
1241 continue
1243 ac_cv_prog_CC="cc"
1244 break
1246 done
1247 IFS="$ac_save_ifs"
1248 if test $ac_prog_rejected = yes; then
1249 # We found a bogon in the path, so make sure we never use it.
1250 set dummy $ac_cv_prog_CC
1251 shift
1252 if test $# -gt 0; then
1253 # We chose a different compiler from the bogus one.
1254 # However, it has the same basename, so the bogon will be chosen
1255 # first if we set CC to just the basename; use the full file name.
1256 shift
1257 set dummy "$ac_dir/$ac_word" "$@"
1258 shift
1259 ac_cv_prog_CC="$@"
1264 CC="$ac_cv_prog_CC"
1265 if test -n "$CC"; then
1266 echo "$ac_t""$CC" 1>&6
1267 else
1268 echo "$ac_t""no" 1>&6
1271 if test -z "$CC"; then
1272 case "`uname -s`" in
1273 *win32* | *WIN32*)
1274 # Extract the first word of "cl", so it can be a program name with args.
1275 set dummy cl; ac_word=$2
1276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1277 echo "configure:1278: checking for $ac_word" >&5
1278 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1280 else
1281 if test -n "$CC"; then
1282 ac_cv_prog_CC="$CC" # Let the user override the test.
1283 else
1284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1285 ac_dummy="$PATH"
1286 for ac_dir in $ac_dummy; do
1287 test -z "$ac_dir" && ac_dir=.
1288 if test -f $ac_dir/$ac_word; then
1289 ac_cv_prog_CC="cl"
1290 break
1292 done
1293 IFS="$ac_save_ifs"
1296 CC="$ac_cv_prog_CC"
1297 if test -n "$CC"; then
1298 echo "$ac_t""$CC" 1>&6
1299 else
1300 echo "$ac_t""no" 1>&6
1303 esac
1305 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1308 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1309 echo "configure:1310: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1311 ac_ext=c
1312 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1315 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1316 cross_compiling=$ac_cv_prog_cc_cross
1318 cat > conftest.$ac_ext << EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1323 main(){return(0);}
1325 if { (eval echo configure:1326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1326 ac_cv_prog_cc_works=yes
1327 # If we can't run a trivial program, we are probably using a cross compiler.
1328 if (./conftest; exit) 2>/dev/null; then
1329 ac_cv_prog_cc_cross=no
1330 else
1331 ac_cv_prog_cc_cross=yes
1333 else
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1336 ac_cv_prog_cc_works=no
1338 rm -fr conftest*
1339 ac_ext=c
1340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1341 ac_cpp='$CPP $CPPFLAGS'
1342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1344 cross_compiling=$ac_cv_prog_cc_cross
1346 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1347 if test $ac_cv_prog_cc_works = no; then
1348 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1350 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1351 echo "configure:1352: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1352 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1353 cross_compiling=$ac_cv_prog_cc_cross
1355 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1356 echo "configure:1357: checking whether we are using GNU C" >&5
1357 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1359 else
1360 cat > conftest.c <<EOF
1361 #ifdef __GNUC__
1362 yes;
1363 #endif
1365 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1366 ac_cv_prog_gcc=yes
1367 else
1368 ac_cv_prog_gcc=no
1372 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1374 if test $ac_cv_prog_gcc = yes; then
1375 GCC=yes
1376 else
1377 GCC=
1380 ac_test_CFLAGS="${CFLAGS+set}"
1381 ac_save_CFLAGS="$CFLAGS"
1382 CFLAGS=
1383 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1384 echo "configure:1385: checking whether ${CC-cc} accepts -g" >&5
1385 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1387 else
1388 echo 'void f(){}' > conftest.c
1389 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1390 ac_cv_prog_cc_g=yes
1391 else
1392 ac_cv_prog_cc_g=no
1394 rm -f conftest*
1398 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1399 if test "$ac_test_CFLAGS" = set; then
1400 CFLAGS="$ac_save_CFLAGS"
1401 elif test $ac_cv_prog_cc_g = yes; then
1402 if test "$GCC" = yes; then
1403 CFLAGS="-g -O2"
1404 else
1405 CFLAGS="-g"
1407 else
1408 if test "$GCC" = yes; then
1409 CFLAGS="-O2"
1410 else
1411 CFLAGS=
1415 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1416 if test "${with_gnu_ld+set}" = set; then
1417 withval="$with_gnu_ld"
1418 test "$withval" = no || with_gnu_ld=yes
1419 else
1420 with_gnu_ld=no
1423 ac_prog=ld
1424 if test "$GCC" = yes; then
1425 # Check if gcc -print-prog-name=ld gives a path.
1426 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1427 echo "configure:1428: checking for ld used by GCC" >&5
1428 case $host in
1429 *-*-mingw*)
1430 # gcc leaves a trailing carriage return which upsets mingw
1431 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1433 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1434 esac
1435 case $ac_prog in
1436 # Accept absolute paths.
1437 [\\/]* | [A-Za-z]:[\\/]*)
1438 re_direlt='/[^/][^/]*/\.\./'
1439 # Canonicalize the path of ld
1440 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1441 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1442 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1443 done
1444 test -z "$LD" && LD="$ac_prog"
1447 # If it fails, then pretend we aren't using GCC.
1448 ac_prog=ld
1451 # If it is relative, then search for the first ld in PATH.
1452 with_gnu_ld=unknown
1454 esac
1455 elif test "$with_gnu_ld" = yes; then
1456 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1457 echo "configure:1458: checking for GNU ld" >&5
1458 else
1459 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1460 echo "configure:1461: checking for non-GNU ld" >&5
1462 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1464 else
1465 if test -z "$LD"; then
1466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1467 for ac_dir in $PATH; do
1468 test -z "$ac_dir" && ac_dir=.
1469 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1470 lt_cv_path_LD="$ac_dir/$ac_prog"
1471 # Check to see if the program is GNU ld. I'd rather use --version,
1472 # but apparently some GNU ld's only accept -v.
1473 # Break only if it was the GNU/non-GNU ld that we prefer.
1474 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1475 test "$with_gnu_ld" != no && break
1476 else
1477 test "$with_gnu_ld" != yes && break
1480 done
1481 IFS="$ac_save_ifs"
1482 else
1483 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1487 LD="$lt_cv_path_LD"
1488 if test -n "$LD"; then
1489 echo "$ac_t""$LD" 1>&6
1490 else
1491 echo "$ac_t""no" 1>&6
1493 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1494 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1495 echo "configure:1496: checking if the linker ($LD) is GNU ld" >&5
1496 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1498 else
1499 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1500 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1501 lt_cv_prog_gnu_ld=yes
1502 else
1503 lt_cv_prog_gnu_ld=no
1507 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1508 with_gnu_ld=$lt_cv_prog_gnu_ld
1511 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1512 echo "configure:1513: checking for $LD option to reload object files" >&5
1513 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1515 else
1516 lt_cv_ld_reload_flag='-r'
1519 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1520 reload_flag=$lt_cv_ld_reload_flag
1521 test -n "$reload_flag" && reload_flag=" $reload_flag"
1523 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1524 echo "configure:1525: checking for BSD-compatible nm" >&5
1525 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1527 else
1528 if test -n "$NM"; then
1529 # Let the user override the test.
1530 lt_cv_path_NM="$NM"
1531 else
1532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1533 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1534 test -z "$ac_dir" && ac_dir=.
1535 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1536 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1537 # Check to see if the nm accepts a BSD-compat flag.
1538 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1539 # nm: unknown option "B" ignored
1540 # Tru64's nm complains that /dev/null is an invalid object file
1541 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1542 lt_cv_path_NM="$tmp_nm -B"
1543 break
1544 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1545 lt_cv_path_NM="$tmp_nm -p"
1546 break
1547 else
1548 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1549 continue # so that we can try to find one that supports BSD flags
1552 done
1553 IFS="$ac_save_ifs"
1554 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1558 NM="$lt_cv_path_NM"
1559 echo "$ac_t""$NM" 1>&6
1561 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1562 echo "configure:1563: checking whether ln -s works" >&5
1563 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1565 else
1566 rm -f conftestdata
1567 if ln -s X conftestdata 2>/dev/null
1568 then
1569 rm -f conftestdata
1570 ac_cv_prog_LN_S="ln -s"
1571 else
1572 ac_cv_prog_LN_S=ln
1575 LN_S="$ac_cv_prog_LN_S"
1576 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1577 echo "$ac_t""yes" 1>&6
1578 else
1579 echo "$ac_t""no" 1>&6
1582 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1583 echo "configure:1584: checking how to recognise dependant libraries" >&5
1584 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1586 else
1587 lt_cv_file_magic_cmd='$MAGIC_CMD'
1588 lt_cv_file_magic_test_file=
1589 lt_cv_deplibs_check_method='unknown'
1590 # Need to set the preceding variable on all platforms that support
1591 # interlibrary dependencies.
1592 # 'none' -- dependencies not supported.
1593 # `unknown' -- same as none, but documents that we really don't know.
1594 # 'pass_all' -- all dependencies passed with no checks.
1595 # 'test_compile' -- check by making test program.
1596 # 'file_magic [regex]' -- check by looking for files in library path
1597 # which responds to the $file_magic_cmd with a given egrep regex.
1598 # If you have `file' or equivalent on your system and you're not sure
1599 # whether `pass_all' will *always* work, you probably want this one.
1601 case $host_os in
1602 aix*)
1603 lt_cv_deplibs_check_method=pass_all
1606 beos*)
1607 lt_cv_deplibs_check_method=pass_all
1610 bsdi4*)
1611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1612 lt_cv_file_magic_cmd='/usr/bin/file -L'
1613 lt_cv_file_magic_test_file=/shlib/libc.so
1616 cygwin* | mingw* |pw32*)
1617 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1618 lt_cv_file_magic_cmd='$OBJDUMP -f'
1621 darwin* | rhapsody*)
1622 # this will be overwritten by pass_all, but leave it in just in case
1623 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1624 lt_cv_file_magic_cmd='/usr/bin/file -L'
1625 case "$host_os" in
1626 rhapsody* | darwin1.012)
1627 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1629 *) # Darwin 1.3 on
1630 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1632 esac
1633 lt_cv_deplibs_check_method=pass_all
1636 freebsd* | kfreebsd*-gnu)
1637 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1638 case $host_cpu in
1639 i*86 )
1640 # Not sure whether the presence of OpenBSD here was a mistake.
1641 # Let's accept both of them until this is cleared up.
1642 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1643 lt_cv_file_magic_cmd=/usr/bin/file
1644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1646 esac
1647 else
1648 lt_cv_deplibs_check_method=pass_all
1652 gnu*)
1653 lt_cv_deplibs_check_method=pass_all
1656 hpux10.20*|hpux11*)
1657 case $host_cpu in
1658 hppa*)
1659 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1660 lt_cv_file_magic_cmd=/usr/bin/file
1661 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1663 ia64*)
1664 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1665 lt_cv_file_magic_cmd=/usr/bin/file
1666 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1668 esac
1671 irix5* | irix6*)
1672 case $host_os in
1673 irix5*)
1674 # this will be overridden with pass_all, but let us keep it just in case
1675 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1678 case $LD in
1679 *-32|*"-32 ") libmagic=32-bit;;
1680 *-n32|*"-n32 ") libmagic=N32;;
1681 *-64|*"-64 ") libmagic=64-bit;;
1682 *) libmagic=never-match;;
1683 esac
1684 # this will be overridden with pass_all, but let us keep it just in case
1685 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1687 esac
1688 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1689 lt_cv_deplibs_check_method=pass_all
1692 # This must be Linux ELF.
1693 linux-gnu*)
1694 case $host_cpu in
1695 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1696 lt_cv_deplibs_check_method=pass_all ;;
1698 # glibc up to 2.1.1 does not perform some relocations on ARM
1699 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1700 esac
1701 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1704 netbsd* | knetbsd*-gnu)
1705 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1706 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1707 else
1708 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1712 newsos6)
1713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1714 lt_cv_file_magic_cmd=/usr/bin/file
1715 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1718 osf3* | osf4* | osf5*)
1719 # this will be overridden with pass_all, but let us keep it just in case
1720 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1721 lt_cv_file_magic_test_file=/shlib/libc.so
1722 lt_cv_deplibs_check_method=pass_all
1725 sco3.2v5*)
1726 lt_cv_deplibs_check_method=pass_all
1729 solaris*)
1730 lt_cv_deplibs_check_method=pass_all
1731 lt_cv_file_magic_test_file=/lib/libc.so
1734 sysv5uw[78]* | sysv4*uw2*)
1735 lt_cv_deplibs_check_method=pass_all
1738 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1739 case $host_vendor in
1740 ncr)
1741 lt_cv_deplibs_check_method=pass_all
1743 motorola)
1744 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]'
1745 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1747 esac
1749 esac
1753 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1754 file_magic_cmd=$lt_cv_file_magic_cmd
1755 deplibs_check_method=$lt_cv_deplibs_check_method
1757 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1758 echo "configure:1759: checking for object suffix" >&5
1759 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1761 else
1762 rm -f conftest*
1763 echo 'int i = 1;' > conftest.$ac_ext
1764 if { (eval echo configure:1765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1765 for ac_file in conftest.*; do
1766 case $ac_file in
1767 *.c) ;;
1768 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1769 esac
1770 done
1771 else
1772 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1774 rm -f conftest*
1777 echo "$ac_t""$ac_cv_objext" 1>&6
1778 OBJEXT=$ac_cv_objext
1779 ac_objext=$ac_cv_objext
1783 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1784 echo "configure:1785: checking for executable suffix" >&5
1785 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1787 else
1788 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1789 ac_cv_exeext=.exe
1790 else
1791 rm -f conftest*
1792 echo 'int main () { return 0; }' > conftest.$ac_ext
1793 ac_cv_exeext=
1794 if { (eval echo configure:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1795 for file in conftest.*; do
1796 case $file in
1797 *.c | *.o | *.obj) ;;
1798 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1799 esac
1800 done
1801 else
1802 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1804 rm -f conftest*
1805 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1809 EXEEXT=""
1810 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1811 echo "$ac_t""${ac_cv_exeext}" 1>&6
1812 ac_exeext=$EXEEXT
1814 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1816 # Only perform the check for file, if the check method requires it
1817 case $deplibs_check_method in
1818 file_magic*)
1819 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1820 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1821 echo "configure:1822: checking for ${ac_tool_prefix}file" >&5
1822 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1824 else
1825 case $MAGIC_CMD in
1827 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1829 ?:/*)
1830 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1833 ac_save_MAGIC_CMD="$MAGIC_CMD"
1834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1835 ac_dummy="/usr/bin:$PATH"
1836 for ac_dir in $ac_dummy; do
1837 test -z "$ac_dir" && ac_dir=.
1838 if test -f $ac_dir/${ac_tool_prefix}file; then
1839 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1840 if test -n "$file_magic_test_file"; then
1841 case $deplibs_check_method in
1842 "file_magic "*)
1843 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1844 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1845 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1846 egrep "$file_magic_regex" > /dev/null; then
1848 else
1849 cat <<EOF 1>&2
1851 *** Warning: the command libtool uses to detect shared libraries,
1852 *** $file_magic_cmd, produces output that libtool cannot recognize.
1853 *** The result is that libtool may fail to recognize shared libraries
1854 *** as such. This will affect the creation of libtool libraries that
1855 *** depend on shared libraries, but programs linked with such libtool
1856 *** libraries will work regardless of this problem. Nevertheless, you
1857 *** may want to report the problem to your system manager and/or to
1858 *** bug-libtool@gnu.org
1861 fi ;;
1862 esac
1864 break
1866 done
1867 IFS="$ac_save_ifs"
1868 MAGIC_CMD="$ac_save_MAGIC_CMD"
1870 esac
1873 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1874 if test -n "$MAGIC_CMD"; then
1875 echo "$ac_t""$MAGIC_CMD" 1>&6
1876 else
1877 echo "$ac_t""no" 1>&6
1880 if test -z "$lt_cv_path_MAGIC_CMD"; then
1881 if test -n "$ac_tool_prefix"; then
1882 echo $ac_n "checking for file""... $ac_c" 1>&6
1883 echo "configure:1884: checking for file" >&5
1884 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1886 else
1887 case $MAGIC_CMD in
1889 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1891 ?:/*)
1892 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1895 ac_save_MAGIC_CMD="$MAGIC_CMD"
1896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1897 ac_dummy="/usr/bin:$PATH"
1898 for ac_dir in $ac_dummy; do
1899 test -z "$ac_dir" && ac_dir=.
1900 if test -f $ac_dir/file; then
1901 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1902 if test -n "$file_magic_test_file"; then
1903 case $deplibs_check_method in
1904 "file_magic "*)
1905 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1906 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1907 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1908 egrep "$file_magic_regex" > /dev/null; then
1910 else
1911 cat <<EOF 1>&2
1913 *** Warning: the command libtool uses to detect shared libraries,
1914 *** $file_magic_cmd, produces output that libtool cannot recognize.
1915 *** The result is that libtool may fail to recognize shared libraries
1916 *** as such. This will affect the creation of libtool libraries that
1917 *** depend on shared libraries, but programs linked with such libtool
1918 *** libraries will work regardless of this problem. Nevertheless, you
1919 *** may want to report the problem to your system manager and/or to
1920 *** bug-libtool@gnu.org
1923 fi ;;
1924 esac
1926 break
1928 done
1929 IFS="$ac_save_ifs"
1930 MAGIC_CMD="$ac_save_MAGIC_CMD"
1932 esac
1935 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1936 if test -n "$MAGIC_CMD"; then
1937 echo "$ac_t""$MAGIC_CMD" 1>&6
1938 else
1939 echo "$ac_t""no" 1>&6
1942 else
1943 MAGIC_CMD=:
1949 esac
1951 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1952 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1954 echo "configure:1955: checking for $ac_word" >&5
1955 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6
1957 else
1958 if test -n "$RANLIB"; then
1959 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1960 else
1961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1962 ac_dummy="$PATH"
1963 for ac_dir in $ac_dummy; do
1964 test -z "$ac_dir" && ac_dir=.
1965 if test -f $ac_dir/$ac_word; then
1966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1967 break
1969 done
1970 IFS="$ac_save_ifs"
1973 RANLIB="$ac_cv_prog_RANLIB"
1974 if test -n "$RANLIB"; then
1975 echo "$ac_t""$RANLIB" 1>&6
1976 else
1977 echo "$ac_t""no" 1>&6
1981 if test -z "$ac_cv_prog_RANLIB"; then
1982 if test -n "$ac_tool_prefix"; then
1983 # Extract the first word of "ranlib", so it can be a program name with args.
1984 set dummy ranlib; ac_word=$2
1985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1986 echo "configure:1987: checking for $ac_word" >&5
1987 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1989 else
1990 if test -n "$RANLIB"; then
1991 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1992 else
1993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1994 ac_dummy="$PATH"
1995 for ac_dir in $ac_dummy; do
1996 test -z "$ac_dir" && ac_dir=.
1997 if test -f $ac_dir/$ac_word; then
1998 ac_cv_prog_RANLIB="ranlib"
1999 break
2001 done
2002 IFS="$ac_save_ifs"
2003 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2006 RANLIB="$ac_cv_prog_RANLIB"
2007 if test -n "$RANLIB"; then
2008 echo "$ac_t""$RANLIB" 1>&6
2009 else
2010 echo "$ac_t""no" 1>&6
2013 else
2014 RANLIB=":"
2018 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2019 set dummy ${ac_tool_prefix}strip; ac_word=$2
2020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2021 echo "configure:2022: checking for $ac_word" >&5
2022 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2024 else
2025 if test -n "$STRIP"; then
2026 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2027 else
2028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2029 ac_dummy="$PATH"
2030 for ac_dir in $ac_dummy; do
2031 test -z "$ac_dir" && ac_dir=.
2032 if test -f $ac_dir/$ac_word; then
2033 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2034 break
2036 done
2037 IFS="$ac_save_ifs"
2040 STRIP="$ac_cv_prog_STRIP"
2041 if test -n "$STRIP"; then
2042 echo "$ac_t""$STRIP" 1>&6
2043 else
2044 echo "$ac_t""no" 1>&6
2048 if test -z "$ac_cv_prog_STRIP"; then
2049 if test -n "$ac_tool_prefix"; then
2050 # Extract the first word of "strip", so it can be a program name with args.
2051 set dummy strip; ac_word=$2
2052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2053 echo "configure:2054: checking for $ac_word" >&5
2054 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2055 echo $ac_n "(cached) $ac_c" 1>&6
2056 else
2057 if test -n "$STRIP"; then
2058 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2059 else
2060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2061 ac_dummy="$PATH"
2062 for ac_dir in $ac_dummy; do
2063 test -z "$ac_dir" && ac_dir=.
2064 if test -f $ac_dir/$ac_word; then
2065 ac_cv_prog_STRIP="strip"
2066 break
2068 done
2069 IFS="$ac_save_ifs"
2070 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2073 STRIP="$ac_cv_prog_STRIP"
2074 if test -n "$STRIP"; then
2075 echo "$ac_t""$STRIP" 1>&6
2076 else
2077 echo "$ac_t""no" 1>&6
2080 else
2081 STRIP=":"
2086 # Check for any special flags to pass to ltconfig.
2087 libtool_flags="--cache-file=$cache_file"
2088 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2089 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2090 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2091 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2092 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2095 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2096 if test "${enable_libtool_lock+set}" = set; then
2097 enableval="$enable_libtool_lock"
2101 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2102 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2104 # Check whether --with-pic or --without-pic was given.
2105 if test "${with_pic+set}" = set; then
2106 withval="$with_pic"
2107 pic_mode="$withval"
2108 else
2109 pic_mode=default
2112 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2113 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2115 # Some flags need to be propagated to the compiler or linker for good
2116 # libtool support.
2117 case $host in
2118 *-*-irix6*)
2119 # Find out which ABI we are using.
2120 echo '#line 2121 "configure"' > conftest.$ac_ext
2121 if { (eval echo configure:2122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2122 if test "$lt_cv_prog_gnu_ld" = yes; then
2123 case `/usr/bin/file conftest.$ac_objext` in
2124 *32-bit*)
2125 LD="${LD-ld} -melf32bsmip"
2127 *N32*)
2128 LD="${LD-ld} -melf32bmipn32"
2130 *64-bit*)
2131 LD="${LD-ld} -melf64bmip"
2133 esac
2134 else
2135 case `/usr/bin/file conftest.$ac_objext` in
2136 *32-bit*)
2137 LD="${LD-ld} -32"
2139 *N32*)
2140 LD="${LD-ld} -n32"
2142 *64-bit*)
2143 LD="${LD-ld} -64"
2145 esac
2148 rm -rf conftest*
2151 ia64-*-hpux*)
2152 # Find out which ABI we are using.
2153 echo 'int i;' > conftest.$ac_ext
2154 if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2155 case "`/usr/bin/file conftest.o`" in
2156 *ELF-32*)
2157 HPUX_IA64_MODE="32"
2159 *ELF-64*)
2160 HPUX_IA64_MODE="64"
2162 esac
2164 rm -rf conftest*
2167 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2168 # Find out which ABI we are using.
2169 echo 'int i;' > conftest.$ac_ext
2170 if { (eval echo configure:2171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2171 case "`/usr/bin/file conftest.o`" in
2172 *32-bit*)
2173 case $host in
2174 x86_64-*linux*)
2175 LD="${LD-ld} -m elf_i386"
2177 ppc64-*linux*|powerpc64-*linux*)
2178 LD="${LD-ld} -m elf32ppclinux"
2180 s390x-*linux*)
2181 LD="${LD-ld} -m elf_s390"
2183 sparc64-*linux*)
2184 LD="${LD-ld} -m elf32_sparc"
2186 esac
2188 *64-bit*)
2189 case $host in
2190 x86_64-*linux*)
2191 LD="${LD-ld} -m elf_x86_64"
2193 ppc*-*linux*|powerpc*-*linux*)
2194 LD="${LD-ld} -m elf64ppc"
2196 s390*-*linux*)
2197 LD="${LD-ld} -m elf64_s390"
2199 sparc*-*linux*)
2200 LD="${LD-ld} -m elf64_sparc"
2202 esac
2204 esac
2206 rm -rf conftest*
2209 *-*-sco3.2v5*)
2210 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2211 SAVE_CFLAGS="$CFLAGS"
2212 CFLAGS="$CFLAGS -belf"
2213 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2214 echo "configure:2215: checking whether the C compiler needs -belf" >&5
2215 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2217 else
2219 ac_ext=c
2220 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2221 ac_cpp='$CPP $CPPFLAGS'
2222 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2223 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2224 cross_compiling=$ac_cv_prog_cc_cross
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2230 int main() {
2232 ; return 0; }
2234 if { (eval echo configure:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2235 rm -rf conftest*
2236 lt_cv_cc_needs_belf=yes
2237 else
2238 echo "configure: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2240 rm -rf conftest*
2241 lt_cv_cc_needs_belf=no
2243 rm -f conftest*
2244 ac_ext=c
2245 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2246 ac_cpp='$CPP $CPPFLAGS'
2247 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2248 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2249 cross_compiling=$ac_cv_prog_cc_cross
2253 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2254 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2255 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2256 CFLAGS="$SAVE_CFLAGS"
2261 esac
2264 # Save cache, so that ltconfig can load it
2265 cat > confcache <<\EOF
2266 # This file is a shell script that caches the results of configure
2267 # tests run on this system so they can be shared between configure
2268 # scripts and configure runs. It is not useful on other systems.
2269 # If it contains results you don't want to keep, you may remove or edit it.
2271 # By default, configure uses ./config.cache as the cache file,
2272 # creating it if it does not exist already. You can give configure
2273 # the --cache-file=FILE option to use a different cache file; that is
2274 # what configure does when it calls configure scripts in
2275 # subdirectories, so they share the cache.
2276 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2277 # config.status only pays attention to the cache file if you give it the
2278 # --recheck option to rerun configure.
2281 # The following way of writing the cache mishandles newlines in values,
2282 # but we know of no workaround that is simple, portable, and efficient.
2283 # So, don't put newlines in cache variables' values.
2284 # Ultrix sh set writes to stderr and can't be redirected directly,
2285 # and sets the high bit in the cache file unless we assign to the vars.
2286 (set) 2>&1 |
2287 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2288 *ac_space=\ *)
2289 # `set' does not quote correctly, so add quotes (double-quote substitution
2290 # turns \\\\ into \\, and sed turns \\ into \).
2291 sed -n \
2292 -e "s/'/'\\\\''/g" \
2293 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2296 # `set' quotes correctly as required by POSIX, so do not add quotes.
2297 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2299 esac >> confcache
2300 if cmp -s $cache_file confcache; then
2302 else
2303 if test -w $cache_file; then
2304 echo "updating cache $cache_file"
2305 cat confcache > $cache_file
2306 else
2307 echo "not updating unwritable cache $cache_file"
2310 rm -f confcache
2313 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2314 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2315 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2316 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2317 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2318 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2319 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2320 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2321 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2322 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2324 # Reload cache, that may have been modified by ltconfig
2325 if test -r "$cache_file"; then
2326 echo "loading cache $cache_file"
2327 . $cache_file
2328 else
2329 echo "creating cache $cache_file"
2330 > $cache_file
2334 # This can be used to rebuild libtool when needed
2335 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2337 # Always use our own libtool.
2338 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2340 # Redirect the config.log output again, so that the ltconfig log is not
2341 # clobbered by the next message.
2342 exec 5>>./config.log
2350 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2351 if test "${enable_64_bit_bfd+set}" = set; then
2352 enableval="$enable_64_bit_bfd"
2353 case "${enableval}" in
2354 yes) want64=true ;;
2355 no) want64=false ;;
2356 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2357 esac
2358 else
2359 want64=false
2361 # Check whether --enable-targets or --disable-targets was given.
2362 if test "${enable_targets+set}" = set; then
2363 enableval="$enable_targets"
2364 case "${enableval}" in
2365 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2367 no) enable_targets= ;;
2368 *) enable_targets=$enableval ;;
2369 esac
2371 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2372 if test "${enable_commonbfdlib+set}" = set; then
2373 enableval="$enable_commonbfdlib"
2374 case "${enableval}" in
2375 yes) commonbfdlib=true ;;
2376 no) commonbfdlib=false ;;
2377 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2378 esac
2380 # Check whether --with-mmap or --without-mmap was given.
2381 if test "${with_mmap+set}" = set; then
2382 withval="$with_mmap"
2383 case "${withval}" in
2384 yes) want_mmap=true ;;
2385 no) want_mmap=false ;;
2386 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2387 esac
2388 else
2389 want_mmap=false
2392 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2393 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2394 if test "${enable_build_warnings+set}" = set; then
2395 enableval="$enable_build_warnings"
2396 case "${enableval}" in
2397 yes) ;;
2398 no) build_warnings="-w";;
2399 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2400 build_warnings="${build_warnings} ${t}";;
2401 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2402 build_warnings="${t} ${build_warnings}";;
2403 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2404 esac
2405 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2406 echo "Setting warning flags = $build_warnings" 6>&1
2409 WARN_CFLAGS=""
2410 if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
2411 WARN_CFLAGS="${build_warnings}"
2419 if test -z "$target" ; then
2420 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2423 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2424 echo "configure:2425: checking whether to enable maintainer-specific portions of Makefiles" >&5
2425 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2426 if test "${enable_maintainer_mode+set}" = set; then
2427 enableval="$enable_maintainer_mode"
2428 USE_MAINTAINER_MODE=$enableval
2429 else
2430 USE_MAINTAINER_MODE=no
2433 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2436 if test $USE_MAINTAINER_MODE = yes; then
2437 MAINTAINER_MODE_TRUE=
2438 MAINTAINER_MODE_FALSE='#'
2439 else
2440 MAINTAINER_MODE_TRUE='#'
2441 MAINTAINER_MODE_FALSE=
2443 MAINT=$MAINTAINER_MODE_TRUE
2446 echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
2447 echo "configure:2448: checking whether to install libbfd" >&5
2448 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
2449 if test "${enable_install_libbfd+set}" = set; then
2450 enableval="$enable_install_libbfd"
2451 install_libbfd_p=$enableval
2452 else
2453 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
2454 install_libbfd_p=yes
2455 else
2456 install_libbfd_p=no
2460 echo "$ac_t""$install_libbfd_p" 1>&6
2463 if test $install_libbfd_p = yes; then
2464 INSTALL_LIBBFD_TRUE=
2465 INSTALL_LIBBFD_FALSE='#'
2466 else
2467 INSTALL_LIBBFD_TRUE='#'
2468 INSTALL_LIBBFD_FALSE=
2470 # libbfd.a is a host library containing target dependent code
2471 bfdlibdir='$(libdir)'
2472 bfdincludedir='$(includedir)'
2473 if test "${host}" != "${target}"; then
2474 bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
2475 bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
2483 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2484 echo "configure:2485: checking for executable suffix" >&5
2485 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2487 else
2488 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2489 ac_cv_exeext=.exe
2490 else
2491 rm -f conftest*
2492 echo 'int main () { return 0; }' > conftest.$ac_ext
2493 ac_cv_exeext=
2494 if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2495 for file in conftest.*; do
2496 case $file in
2497 *.c | *.o | *.obj) ;;
2498 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2499 esac
2500 done
2501 else
2502 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2504 rm -f conftest*
2505 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2509 EXEEXT=""
2510 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2511 echo "$ac_t""${ac_cv_exeext}" 1>&6
2512 ac_exeext=$EXEEXT
2515 host64=false
2516 target64=false
2517 bfd_default_target_size=32
2519 # host stuff:
2521 # Extract the first word of "gcc", so it can be a program name with args.
2522 set dummy gcc; ac_word=$2
2523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2524 echo "configure:2525: checking for $ac_word" >&5
2525 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2527 else
2528 if test -n "$CC"; then
2529 ac_cv_prog_CC="$CC" # Let the user override the test.
2530 else
2531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2532 ac_dummy="$PATH"
2533 for ac_dir in $ac_dummy; do
2534 test -z "$ac_dir" && ac_dir=.
2535 if test -f $ac_dir/$ac_word; then
2536 ac_cv_prog_CC="gcc"
2537 break
2539 done
2540 IFS="$ac_save_ifs"
2543 CC="$ac_cv_prog_CC"
2544 if test -n "$CC"; then
2545 echo "$ac_t""$CC" 1>&6
2546 else
2547 echo "$ac_t""no" 1>&6
2550 if test -z "$CC"; then
2551 # Extract the first word of "cc", so it can be a program name with args.
2552 set dummy cc; ac_word=$2
2553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2554 echo "configure:2555: checking for $ac_word" >&5
2555 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2557 else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 else
2561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2562 ac_prog_rejected=no
2563 ac_dummy="$PATH"
2564 for ac_dir in $ac_dummy; do
2565 test -z "$ac_dir" && ac_dir=.
2566 if test -f $ac_dir/$ac_word; then
2567 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2568 ac_prog_rejected=yes
2569 continue
2571 ac_cv_prog_CC="cc"
2572 break
2574 done
2575 IFS="$ac_save_ifs"
2576 if test $ac_prog_rejected = yes; then
2577 # We found a bogon in the path, so make sure we never use it.
2578 set dummy $ac_cv_prog_CC
2579 shift
2580 if test $# -gt 0; then
2581 # We chose a different compiler from the bogus one.
2582 # However, it has the same basename, so the bogon will be chosen
2583 # first if we set CC to just the basename; use the full file name.
2584 shift
2585 set dummy "$ac_dir/$ac_word" "$@"
2586 shift
2587 ac_cv_prog_CC="$@"
2592 CC="$ac_cv_prog_CC"
2593 if test -n "$CC"; then
2594 echo "$ac_t""$CC" 1>&6
2595 else
2596 echo "$ac_t""no" 1>&6
2599 if test -z "$CC"; then
2600 case "`uname -s`" in
2601 *win32* | *WIN32*)
2602 # Extract the first word of "cl", so it can be a program name with args.
2603 set dummy cl; ac_word=$2
2604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2605 echo "configure:2606: checking for $ac_word" >&5
2606 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2608 else
2609 if test -n "$CC"; then
2610 ac_cv_prog_CC="$CC" # Let the user override the test.
2611 else
2612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2613 ac_dummy="$PATH"
2614 for ac_dir in $ac_dummy; do
2615 test -z "$ac_dir" && ac_dir=.
2616 if test -f $ac_dir/$ac_word; then
2617 ac_cv_prog_CC="cl"
2618 break
2620 done
2621 IFS="$ac_save_ifs"
2624 CC="$ac_cv_prog_CC"
2625 if test -n "$CC"; then
2626 echo "$ac_t""$CC" 1>&6
2627 else
2628 echo "$ac_t""no" 1>&6
2631 esac
2633 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2636 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2637 echo "configure:2638: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2639 ac_ext=c
2640 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2641 ac_cpp='$CPP $CPPFLAGS'
2642 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2643 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2644 cross_compiling=$ac_cv_prog_cc_cross
2646 cat > conftest.$ac_ext << EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2651 main(){return(0);}
2653 if { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2654 ac_cv_prog_cc_works=yes
2655 # If we can't run a trivial program, we are probably using a cross compiler.
2656 if (./conftest; exit) 2>/dev/null; then
2657 ac_cv_prog_cc_cross=no
2658 else
2659 ac_cv_prog_cc_cross=yes
2661 else
2662 echo "configure: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2664 ac_cv_prog_cc_works=no
2666 rm -fr conftest*
2667 ac_ext=c
2668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2672 cross_compiling=$ac_cv_prog_cc_cross
2674 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2675 if test $ac_cv_prog_cc_works = no; then
2676 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2678 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2679 echo "configure:2680: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2680 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2681 cross_compiling=$ac_cv_prog_cc_cross
2683 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2684 echo "configure:2685: checking whether we are using GNU C" >&5
2685 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2687 else
2688 cat > conftest.c <<EOF
2689 #ifdef __GNUC__
2690 yes;
2691 #endif
2693 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2694 ac_cv_prog_gcc=yes
2695 else
2696 ac_cv_prog_gcc=no
2700 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2702 if test $ac_cv_prog_gcc = yes; then
2703 GCC=yes
2704 else
2705 GCC=
2708 ac_test_CFLAGS="${CFLAGS+set}"
2709 ac_save_CFLAGS="$CFLAGS"
2710 CFLAGS=
2711 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2712 echo "configure:2713: checking whether ${CC-cc} accepts -g" >&5
2713 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2715 else
2716 echo 'void f(){}' > conftest.c
2717 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2718 ac_cv_prog_cc_g=yes
2719 else
2720 ac_cv_prog_cc_g=no
2722 rm -f conftest*
2726 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2727 if test "$ac_test_CFLAGS" = set; then
2728 CFLAGS="$ac_save_CFLAGS"
2729 elif test $ac_cv_prog_cc_g = yes; then
2730 if test "$GCC" = yes; then
2731 CFLAGS="-g -O2"
2732 else
2733 CFLAGS="-g"
2735 else
2736 if test "$GCC" = yes; then
2737 CFLAGS="-O2"
2738 else
2739 CFLAGS=
2744 ALL_LINGUAS="fr tr ja es sv da zh_CN ro"
2745 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2746 echo "configure:2747: checking how to run the C preprocessor" >&5
2747 # On Suns, sometimes $CPP names a directory.
2748 if test -n "$CPP" && test -d "$CPP"; then
2749 CPP=
2751 if test -z "$CPP"; then
2752 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2754 else
2755 # This must be in double quotes, not single quotes, because CPP may get
2756 # substituted into the Makefile and "${CC-cc}" will confuse make.
2757 CPP="${CC-cc} -E"
2758 # On the NeXT, cc -E runs the code through the compiler's parser,
2759 # not just through cpp.
2760 cat > conftest.$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2763 #include <assert.h>
2764 Syntax Error
2766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2767 { (eval echo configure:2768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2769 if test -z "$ac_err"; then
2771 else
2772 echo "$ac_err" >&5
2773 echo "configure: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2775 rm -rf conftest*
2776 CPP="${CC-cc} -E -traditional-cpp"
2777 cat > conftest.$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2780 #include <assert.h>
2781 Syntax Error
2783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2784 { (eval echo configure:2785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2786 if test -z "$ac_err"; then
2788 else
2789 echo "$ac_err" >&5
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2792 rm -rf conftest*
2793 CPP="${CC-cc} -nologo -E"
2794 cat > conftest.$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2797 #include <assert.h>
2798 Syntax Error
2800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2801 { (eval echo configure:2802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2803 if test -z "$ac_err"; then
2805 else
2806 echo "$ac_err" >&5
2807 echo "configure: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2809 rm -rf conftest*
2810 CPP=/lib/cpp
2812 rm -f conftest*
2814 rm -f conftest*
2816 rm -f conftest*
2817 ac_cv_prog_CPP="$CPP"
2819 CPP="$ac_cv_prog_CPP"
2820 else
2821 ac_cv_prog_CPP="$CPP"
2823 echo "$ac_t""$CPP" 1>&6
2825 # Extract the first word of "ranlib", so it can be a program name with args.
2826 set dummy ranlib; ac_word=$2
2827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2828 echo "configure:2829: checking for $ac_word" >&5
2829 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2831 else
2832 if test -n "$RANLIB"; then
2833 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2834 else
2835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2836 ac_dummy="$PATH"
2837 for ac_dir in $ac_dummy; do
2838 test -z "$ac_dir" && ac_dir=.
2839 if test -f $ac_dir/$ac_word; then
2840 ac_cv_prog_RANLIB="ranlib"
2841 break
2843 done
2844 IFS="$ac_save_ifs"
2845 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2848 RANLIB="$ac_cv_prog_RANLIB"
2849 if test -n "$RANLIB"; then
2850 echo "$ac_t""$RANLIB" 1>&6
2851 else
2852 echo "$ac_t""no" 1>&6
2855 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2856 echo "configure:2857: checking for ANSI C header files" >&5
2857 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2859 else
2860 cat > conftest.$ac_ext <<EOF
2861 #line 2862 "configure"
2862 #include "confdefs.h"
2863 #include <stdlib.h>
2864 #include <stdarg.h>
2865 #include <string.h>
2866 #include <float.h>
2868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2869 { (eval echo configure:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2871 if test -z "$ac_err"; then
2872 rm -rf conftest*
2873 ac_cv_header_stdc=yes
2874 else
2875 echo "$ac_err" >&5
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2878 rm -rf conftest*
2879 ac_cv_header_stdc=no
2881 rm -f conftest*
2883 if test $ac_cv_header_stdc = yes; then
2884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2885 cat > conftest.$ac_ext <<EOF
2886 #line 2887 "configure"
2887 #include "confdefs.h"
2888 #include <string.h>
2890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2891 egrep "memchr" >/dev/null 2>&1; then
2893 else
2894 rm -rf conftest*
2895 ac_cv_header_stdc=no
2897 rm -f conftest*
2901 if test $ac_cv_header_stdc = yes; then
2902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2903 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2906 #include <stdlib.h>
2908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2909 egrep "free" >/dev/null 2>&1; then
2911 else
2912 rm -rf conftest*
2913 ac_cv_header_stdc=no
2915 rm -f conftest*
2919 if test $ac_cv_header_stdc = yes; then
2920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2921 if test "$cross_compiling" = yes; then
2923 else
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2927 #include <ctype.h>
2928 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2929 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2931 int main () { int i; for (i = 0; i < 256; i++)
2932 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2933 exit (0); }
2936 if { (eval echo configure:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2937 then
2939 else
2940 echo "configure: failed program was:" >&5
2941 cat conftest.$ac_ext >&5
2942 rm -fr conftest*
2943 ac_cv_header_stdc=no
2945 rm -fr conftest*
2951 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2952 if test $ac_cv_header_stdc = yes; then
2953 cat >> confdefs.h <<\EOF
2954 #define STDC_HEADERS 1
2959 echo $ac_n "checking for working const""... $ac_c" 1>&6
2960 echo "configure:2961: checking for working const" >&5
2961 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2963 else
2964 cat > conftest.$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2968 int main() {
2970 /* Ultrix mips cc rejects this. */
2971 typedef int charset[2]; const charset x;
2972 /* SunOS 4.1.1 cc rejects this. */
2973 char const *const *ccp;
2974 char **p;
2975 /* NEC SVR4.0.2 mips cc rejects this. */
2976 struct point {int x, y;};
2977 static struct point const zero = {0,0};
2978 /* AIX XL C 1.02.0.0 rejects this.
2979 It does not let you subtract one const X* pointer from another in an arm
2980 of an if-expression whose if-part is not a constant expression */
2981 const char *g = "string";
2982 ccp = &g + (g ? g-g : 0);
2983 /* HPUX 7.0 cc rejects these. */
2984 ++ccp;
2985 p = (char**) ccp;
2986 ccp = (char const *const *) p;
2987 { /* SCO 3.2v4 cc rejects this. */
2988 char *t;
2989 char const *s = 0 ? (char *) 0 : (char const *) 0;
2991 *t++ = 0;
2993 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2994 int x[] = {25, 17};
2995 const int *foo = &x[0];
2996 ++foo;
2998 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2999 typedef const int *iptr;
3000 iptr p = 0;
3001 ++p;
3003 { /* AIX XL C 1.02.0.0 rejects this saying
3004 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3005 struct s { int j; const int *ap[3]; };
3006 struct s *b; b->j = 5;
3008 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3009 const int foo = 10;
3012 ; return 0; }
3014 if { (eval echo configure:3015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3015 rm -rf conftest*
3016 ac_cv_c_const=yes
3017 else
3018 echo "configure: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3020 rm -rf conftest*
3021 ac_cv_c_const=no
3023 rm -f conftest*
3026 echo "$ac_t""$ac_cv_c_const" 1>&6
3027 if test $ac_cv_c_const = no; then
3028 cat >> confdefs.h <<\EOF
3029 #define const
3034 echo $ac_n "checking for inline""... $ac_c" 1>&6
3035 echo "configure:3036: checking for inline" >&5
3036 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3037 echo $ac_n "(cached) $ac_c" 1>&6
3038 else
3039 ac_cv_c_inline=no
3040 for ac_kw in inline __inline__ __inline; do
3041 cat > conftest.$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3045 int main() {
3046 } $ac_kw foo() {
3047 ; return 0; }
3049 if { (eval echo configure:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3050 rm -rf conftest*
3051 ac_cv_c_inline=$ac_kw; break
3052 else
3053 echo "configure: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3056 rm -f conftest*
3057 done
3061 echo "$ac_t""$ac_cv_c_inline" 1>&6
3062 case "$ac_cv_c_inline" in
3063 inline | yes) ;;
3064 no) cat >> confdefs.h <<\EOF
3065 #define inline
3068 *) cat >> confdefs.h <<EOF
3069 #define inline $ac_cv_c_inline
3072 esac
3074 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3075 echo "configure:3076: checking for off_t" >&5
3076 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3078 else
3079 cat > conftest.$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3082 #include <sys/types.h>
3083 #if STDC_HEADERS
3084 #include <stdlib.h>
3085 #include <stddef.h>
3086 #endif
3088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3089 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3090 rm -rf conftest*
3091 ac_cv_type_off_t=yes
3092 else
3093 rm -rf conftest*
3094 ac_cv_type_off_t=no
3096 rm -f conftest*
3099 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3100 if test $ac_cv_type_off_t = no; then
3101 cat >> confdefs.h <<\EOF
3102 #define off_t long
3107 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3108 echo "configure:3109: checking for size_t" >&5
3109 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3111 else
3112 cat > conftest.$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3115 #include <sys/types.h>
3116 #if STDC_HEADERS
3117 #include <stdlib.h>
3118 #include <stddef.h>
3119 #endif
3121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3122 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3123 rm -rf conftest*
3124 ac_cv_type_size_t=yes
3125 else
3126 rm -rf conftest*
3127 ac_cv_type_size_t=no
3129 rm -f conftest*
3132 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3133 if test $ac_cv_type_size_t = no; then
3134 cat >> confdefs.h <<\EOF
3135 #define size_t unsigned
3140 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3141 # for constant arguments. Useless!
3142 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3143 echo "configure:3144: checking for working alloca.h" >&5
3144 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3146 else
3147 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3150 #include <alloca.h>
3151 int main() {
3152 char *p = alloca(2 * sizeof(int));
3153 ; return 0; }
3155 if { (eval echo configure:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3156 rm -rf conftest*
3157 ac_cv_header_alloca_h=yes
3158 else
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3161 rm -rf conftest*
3162 ac_cv_header_alloca_h=no
3164 rm -f conftest*
3167 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3168 if test $ac_cv_header_alloca_h = yes; then
3169 cat >> confdefs.h <<\EOF
3170 #define HAVE_ALLOCA_H 1
3175 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3176 echo "configure:3177: checking for alloca" >&5
3177 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3179 else
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3184 #ifdef __GNUC__
3185 # define alloca __builtin_alloca
3186 #else
3187 # ifdef _MSC_VER
3188 # include <malloc.h>
3189 # define alloca _alloca
3190 # else
3191 # if HAVE_ALLOCA_H
3192 # include <alloca.h>
3193 # else
3194 # ifdef _AIX
3195 #pragma alloca
3196 # else
3197 # ifndef alloca /* predefined by HP cc +Olibcalls */
3198 char *alloca ();
3199 # endif
3200 # endif
3201 # endif
3202 # endif
3203 #endif
3205 int main() {
3206 char *p = (char *) alloca(1);
3207 ; return 0; }
3209 if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3210 rm -rf conftest*
3211 ac_cv_func_alloca_works=yes
3212 else
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3215 rm -rf conftest*
3216 ac_cv_func_alloca_works=no
3218 rm -f conftest*
3221 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3222 if test $ac_cv_func_alloca_works = yes; then
3223 cat >> confdefs.h <<\EOF
3224 #define HAVE_ALLOCA 1
3229 if test $ac_cv_func_alloca_works = no; then
3230 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3231 # that cause trouble. Some versions do not even contain alloca or
3232 # contain a buggy version. If you still want to use their alloca,
3233 # use ar to extract alloca.o from them instead of compiling alloca.c.
3234 ALLOCA=alloca.${ac_objext}
3235 cat >> confdefs.h <<\EOF
3236 #define C_ALLOCA 1
3240 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3241 echo "configure:3242: checking whether alloca needs Cray hooks" >&5
3242 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3244 else
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 #if defined(CRAY) && ! defined(CRAY2)
3249 webecray
3250 #else
3251 wenotbecray
3252 #endif
3255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3256 egrep "webecray" >/dev/null 2>&1; then
3257 rm -rf conftest*
3258 ac_cv_os_cray=yes
3259 else
3260 rm -rf conftest*
3261 ac_cv_os_cray=no
3263 rm -f conftest*
3267 echo "$ac_t""$ac_cv_os_cray" 1>&6
3268 if test $ac_cv_os_cray = yes; then
3269 for ac_func in _getb67 GETB67 getb67; do
3270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3271 echo "configure:3272: checking for $ac_func" >&5
3272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3274 else
3275 cat > conftest.$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278 /* System header to define __stub macros and hopefully few prototypes,
3279 which can conflict with char $ac_func(); below. */
3280 #include <assert.h>
3281 /* Override any gcc2 internal prototype to avoid an error. */
3282 /* We use char because int might match the return type of a gcc2
3283 builtin and then its argument prototype would still apply. */
3284 char $ac_func();
3286 int main() {
3288 /* The GNU C library defines this for functions which it implements
3289 to always fail with ENOSYS. Some functions are actually named
3290 something starting with __ and the normal name is an alias. */
3291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3292 choke me
3293 #else
3294 $ac_func();
3295 #endif
3297 ; return 0; }
3299 if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3300 rm -rf conftest*
3301 eval "ac_cv_func_$ac_func=yes"
3302 else
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3305 rm -rf conftest*
3306 eval "ac_cv_func_$ac_func=no"
3308 rm -f conftest*
3311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3312 echo "$ac_t""yes" 1>&6
3313 cat >> confdefs.h <<EOF
3314 #define CRAY_STACKSEG_END $ac_func
3317 break
3318 else
3319 echo "$ac_t""no" 1>&6
3322 done
3325 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3326 echo "configure:3327: checking stack direction for C alloca" >&5
3327 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3328 echo $ac_n "(cached) $ac_c" 1>&6
3329 else
3330 if test "$cross_compiling" = yes; then
3331 ac_cv_c_stack_direction=0
3332 else
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 find_stack_direction ()
3338 static char *addr = 0;
3339 auto char dummy;
3340 if (addr == 0)
3342 addr = &dummy;
3343 return find_stack_direction ();
3345 else
3346 return (&dummy > addr) ? 1 : -1;
3348 main ()
3350 exit (find_stack_direction() < 0);
3353 if { (eval echo configure:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3354 then
3355 ac_cv_c_stack_direction=1
3356 else
3357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3359 rm -fr conftest*
3360 ac_cv_c_stack_direction=-1
3362 rm -fr conftest*
3367 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3368 cat >> confdefs.h <<EOF
3369 #define STACK_DIRECTION $ac_cv_c_stack_direction
3374 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
3376 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3377 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3378 echo "configure:3379: checking for $ac_hdr" >&5
3379 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3381 else
3382 cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 #include <$ac_hdr>
3387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3388 { (eval echo configure:3389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3390 if test -z "$ac_err"; then
3391 rm -rf conftest*
3392 eval "ac_cv_header_$ac_safe=yes"
3393 else
3394 echo "$ac_err" >&5
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3397 rm -rf conftest*
3398 eval "ac_cv_header_$ac_safe=no"
3400 rm -f conftest*
3402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3403 echo "$ac_t""yes" 1>&6
3404 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3405 cat >> confdefs.h <<EOF
3406 #define $ac_tr_hdr 1
3409 else
3410 echo "$ac_t""no" 1>&6
3412 done
3414 for ac_func in getpagesize
3416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3417 echo "configure:3418: checking for $ac_func" >&5
3418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3420 else
3421 cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 /* System header to define __stub macros and hopefully few prototypes,
3425 which can conflict with char $ac_func(); below. */
3426 #include <assert.h>
3427 /* Override any gcc2 internal prototype to avoid an error. */
3428 /* We use char because int might match the return type of a gcc2
3429 builtin and then its argument prototype would still apply. */
3430 char $ac_func();
3432 int main() {
3434 /* The GNU C library defines this for functions which it implements
3435 to always fail with ENOSYS. Some functions are actually named
3436 something starting with __ and the normal name is an alias. */
3437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3438 choke me
3439 #else
3440 $ac_func();
3441 #endif
3443 ; return 0; }
3445 if { (eval echo configure:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3446 rm -rf conftest*
3447 eval "ac_cv_func_$ac_func=yes"
3448 else
3449 echo "configure: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3451 rm -rf conftest*
3452 eval "ac_cv_func_$ac_func=no"
3454 rm -f conftest*
3457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3458 echo "$ac_t""yes" 1>&6
3459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3460 cat >> confdefs.h <<EOF
3461 #define $ac_tr_func 1
3464 else
3465 echo "$ac_t""no" 1>&6
3467 done
3469 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3470 echo "configure:3471: checking for working mmap" >&5
3471 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3473 else
3474 if test "$cross_compiling" = yes; then
3475 ac_cv_func_mmap_fixed_mapped=no
3476 else
3477 cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3481 /* Thanks to Mike Haertel and Jim Avera for this test.
3482 Here is a matrix of mmap possibilities:
3483 mmap private not fixed
3484 mmap private fixed at somewhere currently unmapped
3485 mmap private fixed at somewhere already mapped
3486 mmap shared not fixed
3487 mmap shared fixed at somewhere currently unmapped
3488 mmap shared fixed at somewhere already mapped
3489 For private mappings, we should verify that changes cannot be read()
3490 back from the file, nor mmap's back from the file at a different
3491 address. (There have been systems where private was not correctly
3492 implemented like the infamous i386 svr4.0, and systems where the
3493 VM page cache was not coherent with the filesystem buffer cache
3494 like early versions of FreeBSD and possibly contemporary NetBSD.)
3495 For shared mappings, we should conversely verify that changes get
3496 propogated back to all the places they're supposed to be.
3498 Grep wants private fixed already mapped.
3499 The main things grep needs to know about mmap are:
3500 * does it exist and is it safe to write into the mmap'd area
3501 * how to use it (BSD variants) */
3502 #include <sys/types.h>
3503 #include <fcntl.h>
3504 #include <sys/mman.h>
3506 #if HAVE_SYS_TYPES_H
3507 # include <sys/types.h>
3508 #endif
3510 #if HAVE_STDLIB_H
3511 # include <stdlib.h>
3512 #endif
3514 #if HAVE_SYS_STAT_H
3515 # include <sys/stat.h>
3516 #endif
3518 #if HAVE_UNISTD_H
3519 # include <unistd.h>
3520 #endif
3522 /* This mess was copied from the GNU getpagesize.h. */
3523 #ifndef HAVE_GETPAGESIZE
3525 /* Assume that all systems that can run configure have sys/param.h. */
3526 # ifndef HAVE_SYS_PARAM_H
3527 # define HAVE_SYS_PARAM_H 1
3528 # endif
3530 # ifdef _SC_PAGESIZE
3531 # define getpagesize() sysconf(_SC_PAGESIZE)
3532 # else /* no _SC_PAGESIZE */
3533 # ifdef HAVE_SYS_PARAM_H
3534 # include <sys/param.h>
3535 # ifdef EXEC_PAGESIZE
3536 # define getpagesize() EXEC_PAGESIZE
3537 # else /* no EXEC_PAGESIZE */
3538 # ifdef NBPG
3539 # define getpagesize() NBPG * CLSIZE
3540 # ifndef CLSIZE
3541 # define CLSIZE 1
3542 # endif /* no CLSIZE */
3543 # else /* no NBPG */
3544 # ifdef NBPC
3545 # define getpagesize() NBPC
3546 # else /* no NBPC */
3547 # ifdef PAGESIZE
3548 # define getpagesize() PAGESIZE
3549 # endif /* PAGESIZE */
3550 # endif /* no NBPC */
3551 # endif /* no NBPG */
3552 # endif /* no EXEC_PAGESIZE */
3553 # else /* no HAVE_SYS_PARAM_H */
3554 # define getpagesize() 8192 /* punt totally */
3555 # endif /* no HAVE_SYS_PARAM_H */
3556 # endif /* no _SC_PAGESIZE */
3558 #endif /* no HAVE_GETPAGESIZE */
3560 #ifdef __cplusplus
3561 extern "C" { void *malloc(unsigned); }
3562 #else
3563 char *malloc();
3564 #endif
3567 main()
3569 char *data, *data2, *data3;
3570 int i, pagesize;
3571 int fd;
3573 pagesize = getpagesize();
3576 * First, make a file with some known garbage in it.
3578 data = malloc(pagesize);
3579 if (!data)
3580 exit(1);
3581 for (i = 0; i < pagesize; ++i)
3582 *(data + i) = rand();
3583 umask(0);
3584 fd = creat("conftestmmap", 0600);
3585 if (fd < 0)
3586 exit(1);
3587 if (write(fd, data, pagesize) != pagesize)
3588 exit(1);
3589 close(fd);
3592 * Next, try to mmap the file at a fixed address which
3593 * already has something else allocated at it. If we can,
3594 * also make sure that we see the same garbage.
3596 fd = open("conftestmmap", O_RDWR);
3597 if (fd < 0)
3598 exit(1);
3599 data2 = malloc(2 * pagesize);
3600 if (!data2)
3601 exit(1);
3602 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3603 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3604 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3605 exit(1);
3606 for (i = 0; i < pagesize; ++i)
3607 if (*(data + i) != *(data2 + i))
3608 exit(1);
3611 * Finally, make sure that changes to the mapped area
3612 * do not percolate back to the file as seen by read().
3613 * (This is a bug on some variants of i386 svr4.0.)
3615 for (i = 0; i < pagesize; ++i)
3616 *(data2 + i) = *(data2 + i) + 1;
3617 data3 = malloc(pagesize);
3618 if (!data3)
3619 exit(1);
3620 if (read(fd, data3, pagesize) != pagesize)
3621 exit(1);
3622 for (i = 0; i < pagesize; ++i)
3623 if (*(data + i) != *(data3 + i))
3624 exit(1);
3625 close(fd);
3626 unlink("conftestmmap");
3627 exit(0);
3631 if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3632 then
3633 ac_cv_func_mmap_fixed_mapped=yes
3634 else
3635 echo "configure: failed program was:" >&5
3636 cat conftest.$ac_ext >&5
3637 rm -fr conftest*
3638 ac_cv_func_mmap_fixed_mapped=no
3640 rm -fr conftest*
3645 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3646 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3647 cat >> confdefs.h <<\EOF
3648 #define HAVE_MMAP 1
3654 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3655 unistd.h values.h sys/param.h
3657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3659 echo "configure:3660: checking for $ac_hdr" >&5
3660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3662 else
3663 cat > conftest.$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3666 #include <$ac_hdr>
3668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3669 { (eval echo configure:3670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3671 if test -z "$ac_err"; then
3672 rm -rf conftest*
3673 eval "ac_cv_header_$ac_safe=yes"
3674 else
3675 echo "$ac_err" >&5
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 rm -rf conftest*
3679 eval "ac_cv_header_$ac_safe=no"
3681 rm -f conftest*
3683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3684 echo "$ac_t""yes" 1>&6
3685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3686 cat >> confdefs.h <<EOF
3687 #define $ac_tr_hdr 1
3690 else
3691 echo "$ac_t""no" 1>&6
3693 done
3695 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3696 __argz_count __argz_stringify __argz_next
3698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3699 echo "configure:3700: checking for $ac_func" >&5
3700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3702 else
3703 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 /* System header to define __stub macros and hopefully few prototypes,
3707 which can conflict with char $ac_func(); below. */
3708 #include <assert.h>
3709 /* Override any gcc2 internal prototype to avoid an error. */
3710 /* We use char because int might match the return type of a gcc2
3711 builtin and then its argument prototype would still apply. */
3712 char $ac_func();
3714 int main() {
3716 /* The GNU C library defines this for functions which it implements
3717 to always fail with ENOSYS. Some functions are actually named
3718 something starting with __ and the normal name is an alias. */
3719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3720 choke me
3721 #else
3722 $ac_func();
3723 #endif
3725 ; return 0; }
3727 if { (eval echo configure:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3728 rm -rf conftest*
3729 eval "ac_cv_func_$ac_func=yes"
3730 else
3731 echo "configure: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3733 rm -rf conftest*
3734 eval "ac_cv_func_$ac_func=no"
3736 rm -f conftest*
3739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3740 echo "$ac_t""yes" 1>&6
3741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3742 cat >> confdefs.h <<EOF
3743 #define $ac_tr_func 1
3746 else
3747 echo "$ac_t""no" 1>&6
3749 done
3752 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3753 for ac_func in stpcpy
3755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3756 echo "configure:3757: checking for $ac_func" >&5
3757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3759 else
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 /* System header to define __stub macros and hopefully few prototypes,
3764 which can conflict with char $ac_func(); below. */
3765 #include <assert.h>
3766 /* Override any gcc2 internal prototype to avoid an error. */
3767 /* We use char because int might match the return type of a gcc2
3768 builtin and then its argument prototype would still apply. */
3769 char $ac_func();
3771 int main() {
3773 /* The GNU C library defines this for functions which it implements
3774 to always fail with ENOSYS. Some functions are actually named
3775 something starting with __ and the normal name is an alias. */
3776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3777 choke me
3778 #else
3779 $ac_func();
3780 #endif
3782 ; return 0; }
3784 if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3785 rm -rf conftest*
3786 eval "ac_cv_func_$ac_func=yes"
3787 else
3788 echo "configure: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3790 rm -rf conftest*
3791 eval "ac_cv_func_$ac_func=no"
3793 rm -f conftest*
3796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3799 cat >> confdefs.h <<EOF
3800 #define $ac_tr_func 1
3803 else
3804 echo "$ac_t""no" 1>&6
3806 done
3809 if test "${ac_cv_func_stpcpy}" = "yes"; then
3810 cat >> confdefs.h <<\EOF
3811 #define HAVE_STPCPY 1
3816 if test $ac_cv_header_locale_h = yes; then
3817 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3818 echo "configure:3819: checking for LC_MESSAGES" >&5
3819 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3821 else
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3825 #include <locale.h>
3826 int main() {
3827 return LC_MESSAGES
3828 ; return 0; }
3830 if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3831 rm -rf conftest*
3832 am_cv_val_LC_MESSAGES=yes
3833 else
3834 echo "configure: failed program was:" >&5
3835 cat conftest.$ac_ext >&5
3836 rm -rf conftest*
3837 am_cv_val_LC_MESSAGES=no
3839 rm -f conftest*
3842 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3843 if test $am_cv_val_LC_MESSAGES = yes; then
3844 cat >> confdefs.h <<\EOF
3845 #define HAVE_LC_MESSAGES 1
3850 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3851 echo "configure:3852: checking whether NLS is requested" >&5
3852 # Check whether --enable-nls or --disable-nls was given.
3853 if test "${enable_nls+set}" = set; then
3854 enableval="$enable_nls"
3855 USE_NLS=$enableval
3856 else
3857 USE_NLS=yes
3860 echo "$ac_t""$USE_NLS" 1>&6
3863 USE_INCLUDED_LIBINTL=no
3865 if test "$USE_NLS" = "yes"; then
3866 cat >> confdefs.h <<\EOF
3867 #define ENABLE_NLS 1
3870 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3871 echo "configure:3872: checking whether included gettext is requested" >&5
3872 # Check whether --with-included-gettext or --without-included-gettext was given.
3873 if test "${with_included_gettext+set}" = set; then
3874 withval="$with_included_gettext"
3875 nls_cv_force_use_gnu_gettext=$withval
3876 else
3877 nls_cv_force_use_gnu_gettext=no
3880 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3882 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3883 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3884 nls_cv_header_intl=
3885 nls_cv_header_libgt=
3886 CATOBJEXT=NONE
3888 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3889 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3890 echo "configure:3891: checking for libintl.h" >&5
3891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3893 else
3894 cat > conftest.$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3897 #include <libintl.h>
3899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3900 { (eval echo configure:3901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3902 if test -z "$ac_err"; then
3903 rm -rf conftest*
3904 eval "ac_cv_header_$ac_safe=yes"
3905 else
3906 echo "$ac_err" >&5
3907 echo "configure: failed program was:" >&5
3908 cat conftest.$ac_ext >&5
3909 rm -rf conftest*
3910 eval "ac_cv_header_$ac_safe=no"
3912 rm -f conftest*
3914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3915 echo "$ac_t""yes" 1>&6
3916 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3917 echo "configure:3918: checking for gettext in libc" >&5
3918 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3920 else
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3924 #include <libintl.h>
3925 int main() {
3926 return (int) gettext ("")
3927 ; return 0; }
3929 if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3930 rm -rf conftest*
3931 gt_cv_func_gettext_libc=yes
3932 else
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3935 rm -rf conftest*
3936 gt_cv_func_gettext_libc=no
3938 rm -f conftest*
3941 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3943 if test "$gt_cv_func_gettext_libc" != "yes"; then
3944 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3945 echo "configure:3946: checking for bindtextdomain in -lintl" >&5
3946 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3949 else
3950 ac_save_LIBS="$LIBS"
3951 LIBS="-lintl $LIBS"
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3955 /* Override any gcc2 internal prototype to avoid an error. */
3956 /* We use char because int might match the return type of a gcc2
3957 builtin and then its argument prototype would still apply. */
3958 char bindtextdomain();
3960 int main() {
3961 bindtextdomain()
3962 ; return 0; }
3964 if { (eval echo configure:3965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3965 rm -rf conftest*
3966 eval "ac_cv_lib_$ac_lib_var=yes"
3967 else
3968 echo "configure: failed program was:" >&5
3969 cat conftest.$ac_ext >&5
3970 rm -rf conftest*
3971 eval "ac_cv_lib_$ac_lib_var=no"
3973 rm -f conftest*
3974 LIBS="$ac_save_LIBS"
3977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3978 echo "$ac_t""yes" 1>&6
3979 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3980 echo "configure:3981: checking for gettext in libintl" >&5
3981 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3983 else
3984 cat > conftest.$ac_ext <<EOF
3985 #line 3986 "configure"
3986 #include "confdefs.h"
3988 int main() {
3989 return (int) gettext ("")
3990 ; return 0; }
3992 if { (eval echo configure:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3993 rm -rf conftest*
3994 gt_cv_func_gettext_libintl=yes
3995 else
3996 echo "configure: failed program was:" >&5
3997 cat conftest.$ac_ext >&5
3998 rm -rf conftest*
3999 gt_cv_func_gettext_libintl=no
4001 rm -f conftest*
4004 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4005 else
4006 echo "$ac_t""no" 1>&6
4011 if test "$gt_cv_func_gettext_libc" = "yes" \
4012 || test "$gt_cv_func_gettext_libintl" = "yes"; then
4013 cat >> confdefs.h <<\EOF
4014 #define HAVE_GETTEXT 1
4017 # Extract the first word of "msgfmt", so it can be a program name with args.
4018 set dummy msgfmt; ac_word=$2
4019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4020 echo "configure:4021: checking for $ac_word" >&5
4021 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4022 echo $ac_n "(cached) $ac_c" 1>&6
4023 else
4024 case "$MSGFMT" in
4026 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4030 for ac_dir in $PATH; do
4031 test -z "$ac_dir" && ac_dir=.
4032 if test -f $ac_dir/$ac_word; then
4033 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4034 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4035 break
4038 done
4039 IFS="$ac_save_ifs"
4040 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
4042 esac
4044 MSGFMT="$ac_cv_path_MSGFMT"
4045 if test -n "$MSGFMT"; then
4046 echo "$ac_t""$MSGFMT" 1>&6
4047 else
4048 echo "$ac_t""no" 1>&6
4050 if test "$MSGFMT" != "no"; then
4051 for ac_func in dcgettext
4053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4054 echo "configure:4055: checking for $ac_func" >&5
4055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4057 else
4058 cat > conftest.$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4061 /* System header to define __stub macros and hopefully few prototypes,
4062 which can conflict with char $ac_func(); below. */
4063 #include <assert.h>
4064 /* Override any gcc2 internal prototype to avoid an error. */
4065 /* We use char because int might match the return type of a gcc2
4066 builtin and then its argument prototype would still apply. */
4067 char $ac_func();
4069 int main() {
4071 /* The GNU C library defines this for functions which it implements
4072 to always fail with ENOSYS. Some functions are actually named
4073 something starting with __ and the normal name is an alias. */
4074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4075 choke me
4076 #else
4077 $ac_func();
4078 #endif
4080 ; return 0; }
4082 if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4083 rm -rf conftest*
4084 eval "ac_cv_func_$ac_func=yes"
4085 else
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4088 rm -rf conftest*
4089 eval "ac_cv_func_$ac_func=no"
4091 rm -f conftest*
4094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4095 echo "$ac_t""yes" 1>&6
4096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4097 cat >> confdefs.h <<EOF
4098 #define $ac_tr_func 1
4101 else
4102 echo "$ac_t""no" 1>&6
4104 done
4106 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4107 set dummy gmsgfmt; ac_word=$2
4108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4109 echo "configure:4110: checking for $ac_word" >&5
4110 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4112 else
4113 case "$GMSGFMT" in
4115 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4117 ?:/*)
4118 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4122 ac_dummy="$PATH"
4123 for ac_dir in $ac_dummy; do
4124 test -z "$ac_dir" && ac_dir=.
4125 if test -f $ac_dir/$ac_word; then
4126 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4127 break
4129 done
4130 IFS="$ac_save_ifs"
4131 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4133 esac
4135 GMSGFMT="$ac_cv_path_GMSGFMT"
4136 if test -n "$GMSGFMT"; then
4137 echo "$ac_t""$GMSGFMT" 1>&6
4138 else
4139 echo "$ac_t""no" 1>&6
4142 # Extract the first word of "xgettext", so it can be a program name with args.
4143 set dummy xgettext; ac_word=$2
4144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4145 echo "configure:4146: checking for $ac_word" >&5
4146 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4148 else
4149 case "$XGETTEXT" in
4151 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4155 for ac_dir in $PATH; do
4156 test -z "$ac_dir" && ac_dir=.
4157 if test -f $ac_dir/$ac_word; then
4158 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4159 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4160 break
4163 done
4164 IFS="$ac_save_ifs"
4165 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4167 esac
4169 XGETTEXT="$ac_cv_path_XGETTEXT"
4170 if test -n "$XGETTEXT"; then
4171 echo "$ac_t""$XGETTEXT" 1>&6
4172 else
4173 echo "$ac_t""no" 1>&6
4176 cat > conftest.$ac_ext <<EOF
4177 #line 4178 "configure"
4178 #include "confdefs.h"
4180 int main() {
4181 extern int _nl_msg_cat_cntr;
4182 return _nl_msg_cat_cntr
4183 ; return 0; }
4185 if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4186 rm -rf conftest*
4187 CATOBJEXT=.gmo
4188 DATADIRNAME=share
4189 else
4190 echo "configure: failed program was:" >&5
4191 cat conftest.$ac_ext >&5
4192 rm -rf conftest*
4193 CATOBJEXT=.mo
4194 DATADIRNAME=lib
4196 rm -f conftest*
4197 INSTOBJEXT=.mo
4201 else
4202 echo "$ac_t""no" 1>&6
4207 if test "$CATOBJEXT" = "NONE"; then
4208 nls_cv_use_gnu_gettext=yes
4212 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4213 INTLOBJS="\$(GETTOBJS)"
4214 # Extract the first word of "msgfmt", so it can be a program name with args.
4215 set dummy msgfmt; ac_word=$2
4216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4217 echo "configure:4218: checking for $ac_word" >&5
4218 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4220 else
4221 case "$MSGFMT" in
4223 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4227 for ac_dir in $PATH; do
4228 test -z "$ac_dir" && ac_dir=.
4229 if test -f $ac_dir/$ac_word; then
4230 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4231 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4232 break
4235 done
4236 IFS="$ac_save_ifs"
4237 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4239 esac
4241 MSGFMT="$ac_cv_path_MSGFMT"
4242 if test -n "$MSGFMT"; then
4243 echo "$ac_t""$MSGFMT" 1>&6
4244 else
4245 echo "$ac_t""no" 1>&6
4248 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4249 set dummy gmsgfmt; ac_word=$2
4250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4251 echo "configure:4252: checking for $ac_word" >&5
4252 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4254 else
4255 case "$GMSGFMT" in
4257 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4259 ?:/*)
4260 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4264 ac_dummy="$PATH"
4265 for ac_dir in $ac_dummy; do
4266 test -z "$ac_dir" && ac_dir=.
4267 if test -f $ac_dir/$ac_word; then
4268 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4269 break
4271 done
4272 IFS="$ac_save_ifs"
4273 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4275 esac
4277 GMSGFMT="$ac_cv_path_GMSGFMT"
4278 if test -n "$GMSGFMT"; then
4279 echo "$ac_t""$GMSGFMT" 1>&6
4280 else
4281 echo "$ac_t""no" 1>&6
4284 # Extract the first word of "xgettext", so it can be a program name with args.
4285 set dummy xgettext; ac_word=$2
4286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4287 echo "configure:4288: checking for $ac_word" >&5
4288 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4290 else
4291 case "$XGETTEXT" in
4293 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4297 for ac_dir in $PATH; do
4298 test -z "$ac_dir" && ac_dir=.
4299 if test -f $ac_dir/$ac_word; then
4300 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4301 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4302 break
4305 done
4306 IFS="$ac_save_ifs"
4307 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4309 esac
4311 XGETTEXT="$ac_cv_path_XGETTEXT"
4312 if test -n "$XGETTEXT"; then
4313 echo "$ac_t""$XGETTEXT" 1>&6
4314 else
4315 echo "$ac_t""no" 1>&6
4319 USE_INCLUDED_LIBINTL=yes
4320 CATOBJEXT=.gmo
4321 INSTOBJEXT=.mo
4322 DATADIRNAME=share
4323 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4324 INTLLIBS=$INTLDEPS
4325 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4326 nls_cv_header_intl=libintl.h
4327 nls_cv_header_libgt=libgettext.h
4330 if test "$XGETTEXT" != ":"; then
4331 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4333 else
4334 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4335 XGETTEXT=":"
4339 # We need to process the po/ directory.
4340 POSUB=po
4341 else
4342 DATADIRNAME=share
4343 nls_cv_header_intl=libintl.h
4344 nls_cv_header_libgt=libgettext.h
4347 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4348 # because some of the sources are only built for this goal.
4349 if test "$PACKAGE" = gettext; then
4350 USE_NLS=yes
4351 USE_INCLUDED_LIBINTL=yes
4354 for lang in $ALL_LINGUAS; do
4355 GMOFILES="$GMOFILES $lang.gmo"
4356 POFILES="$POFILES $lang.po"
4357 done
4372 if test "x$CATOBJEXT" != "x"; then
4373 if test "x$ALL_LINGUAS" = "x"; then
4374 LINGUAS=
4375 else
4376 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4377 echo "configure:4378: checking for catalogs to be installed" >&5
4378 NEW_LINGUAS=
4379 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4380 case "$ALL_LINGUAS" in
4381 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4382 esac
4383 done
4384 LINGUAS=$NEW_LINGUAS
4385 echo "$ac_t""$LINGUAS" 1>&6
4388 if test -n "$LINGUAS"; then
4389 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4393 if test $ac_cv_header_locale_h = yes; then
4394 INCLUDE_LOCALE_H="#include <locale.h>"
4395 else
4396 INCLUDE_LOCALE_H="\
4397 /* The system does not provide the header <locale.h>. Take care yourself. */"
4401 if test -f $srcdir/po2tbl.sed.in; then
4402 if test "$CATOBJEXT" = ".cat"; then
4403 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4404 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4405 echo "configure:4406: checking for linux/version.h" >&5
4406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4408 else
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 #include <linux/version.h>
4414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4415 { (eval echo configure:4416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4417 if test -z "$ac_err"; then
4418 rm -rf conftest*
4419 eval "ac_cv_header_$ac_safe=yes"
4420 else
4421 echo "$ac_err" >&5
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 rm -rf conftest*
4425 eval "ac_cv_header_$ac_safe=no"
4427 rm -f conftest*
4429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4430 echo "$ac_t""yes" 1>&6
4431 msgformat=linux
4432 else
4433 echo "$ac_t""no" 1>&6
4434 msgformat=xopen
4438 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4440 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4441 $srcdir/po2tbl.sed.in > po2tbl.sed
4444 if test "$PACKAGE" = "gettext"; then
4445 GT_NO="#NO#"
4446 GT_YES=
4447 else
4448 GT_NO=
4449 GT_YES="#YES#"
4454 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4460 if test -f $srcdir/po/POTFILES.in; then
4461 test -d po || mkdir po
4462 if test "x$srcdir" != "x."; then
4463 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4464 posrcprefix="$srcdir/"
4465 else
4466 posrcprefix="../$srcdir/"
4468 else
4469 posrcprefix="../"
4471 rm -f po/POTFILES
4472 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4473 < $srcdir/po/POTFILES.in > po/POTFILES
4477 # Permit host specific settings.
4478 . ${srcdir}/configure.host
4481 # Find a good install program. We prefer a C program (faster),
4482 # so one script is as good as another. But avoid the broken or
4483 # incompatible versions:
4484 # SysV /etc/install, /usr/sbin/install
4485 # SunOS /usr/etc/install
4486 # IRIX /sbin/install
4487 # AIX /bin/install
4488 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4489 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4490 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4491 # ./install, which can be erroneously created by make from ./install.sh.
4492 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4493 echo "configure:4494: checking for a BSD compatible install" >&5
4494 if test -z "$INSTALL"; then
4495 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4497 else
4498 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4499 for ac_dir in $PATH; do
4500 # Account for people who put trailing slashes in PATH elements.
4501 case "$ac_dir/" in
4502 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4504 # OSF1 and SCO ODT 3.0 have their own names for install.
4505 # Don't use installbsd from OSF since it installs stuff as root
4506 # by default.
4507 for ac_prog in ginstall scoinst install; do
4508 if test -f $ac_dir/$ac_prog; then
4509 if test $ac_prog = install &&
4510 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4511 # AIX install. It has an incompatible calling convention.
4513 else
4514 ac_cv_path_install="$ac_dir/$ac_prog -c"
4515 break 2
4518 done
4520 esac
4521 done
4522 IFS="$ac_save_IFS"
4525 if test "${ac_cv_path_install+set}" = set; then
4526 INSTALL="$ac_cv_path_install"
4527 else
4528 # As a last resort, use the slow shell script. We don't cache a
4529 # path for INSTALL within a source directory, because that will
4530 # break other packages using the cache if that directory is
4531 # removed, or if the path is relative.
4532 INSTALL="$ac_install_sh"
4535 echo "$ac_t""$INSTALL" 1>&6
4537 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4538 # It thinks the first close brace ends the variable substitution.
4539 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4541 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4543 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4546 BFD_HOST_64BIT_LONG=0
4547 BFD_HOST_LONG_LONG=0
4548 BFD_HOST_64_BIT_DEFINED=0
4549 BFD_HOST_64_BIT=
4550 BFD_HOST_U_64_BIT=
4552 echo $ac_n "checking for long long""... $ac_c" 1>&6
4553 echo "configure:4554: checking for long long" >&5
4554 if eval "test \"`echo '$''{'bfd_cv_has_long_long'+set}'`\" = set"; then
4555 echo $ac_n "(cached) $ac_c" 1>&6
4556 else
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4561 int main() {
4562 unsigned long long ll = 18446744073709551615ULL;
4563 ; return 0; }
4565 if { (eval echo configure:4566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4566 rm -rf conftest*
4567 bfd_cv_has_long_long=yes
4568 else
4569 echo "configure: failed program was:" >&5
4570 cat conftest.$ac_ext >&5
4571 rm -rf conftest*
4572 bfd_cv_has_long_long=no
4574 rm -f conftest*
4577 echo "$ac_t""$bfd_cv_has_long_long" 1>&6
4578 if test $bfd_cv_has_long_long = yes; then
4579 BFD_HOST_LONG_LONG=1
4580 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4581 echo "configure:4582: checking size of long long" >&5
4582 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4583 echo $ac_n "(cached) $ac_c" 1>&6
4584 else
4585 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4586 cat > conftest.$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4589 #include "confdefs.h"
4590 #include <sys/types.h>
4593 int main() {
4594 switch (0) case 0: case (sizeof (long long) == $ac_size):;
4595 ; return 0; }
4597 if { (eval echo configure:4598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4598 rm -rf conftest*
4599 ac_cv_sizeof_long_long=$ac_size
4600 else
4601 echo "configure: failed program was:" >&5
4602 cat conftest.$ac_ext >&5
4604 rm -f conftest*
4605 if test x$ac_cv_sizeof_long_long != x ; then break; fi
4606 done
4610 if test x$ac_cv_sizeof_long_long = x ; then
4611 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
4613 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4614 cat >> confdefs.h <<EOF
4615 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4621 echo $ac_n "checking size of long""... $ac_c" 1>&6
4622 echo "configure:4623: checking size of long" >&5
4623 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4625 else
4626 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 #include "confdefs.h"
4631 #include <sys/types.h>
4634 int main() {
4635 switch (0) case 0: case (sizeof (long) == $ac_size):;
4636 ; return 0; }
4638 if { (eval echo configure:4639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4639 rm -rf conftest*
4640 ac_cv_sizeof_long=$ac_size
4641 else
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4645 rm -f conftest*
4646 if test x$ac_cv_sizeof_long != x ; then break; fi
4647 done
4651 if test x$ac_cv_sizeof_long = x ; then
4652 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
4654 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4655 cat >> confdefs.h <<EOF
4656 #define SIZEOF_LONG $ac_cv_sizeof_long
4660 if test "x${ac_cv_sizeof_long}" = "x8"; then
4661 host64=true
4662 BFD_HOST_64BIT_LONG=1
4663 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
4664 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
4665 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
4666 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
4667 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
4670 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
4671 BFD_HOST_64_BIT_DEFINED=1
4672 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
4673 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
4682 # Put a plausible default for CC_FOR_BUILD in Makefile.
4683 if test -z "$CC_FOR_BUILD"; then
4684 if test "x$cross_compiling" = "xno"; then
4685 CC_FOR_BUILD='$(CC)'
4686 else
4687 CC_FOR_BUILD=gcc
4691 # Also set EXEEXT_FOR_BUILD.
4692 if test "x$cross_compiling" = "xno"; then
4693 EXEEXT_FOR_BUILD='$(EXEEXT)'
4694 else
4695 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4696 echo "configure:4697: checking for build system executable suffix" >&5
4697 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4699 else
4700 rm -f conftest*
4701 echo 'int main () { return 0; }' > conftest.c
4702 bfd_cv_build_exeext=
4703 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4704 for file in conftest.*; do
4705 case $file in
4706 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4707 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4708 esac
4709 done
4710 rm -f conftest*
4711 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4714 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4715 EXEEXT_FOR_BUILD=""
4716 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4720 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
4722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4724 echo "configure:4725: checking for $ac_hdr" >&5
4725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4727 else
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 #include <$ac_hdr>
4733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4734 { (eval echo configure:4735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4736 if test -z "$ac_err"; then
4737 rm -rf conftest*
4738 eval "ac_cv_header_$ac_safe=yes"
4739 else
4740 echo "$ac_err" >&5
4741 echo "configure: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4743 rm -rf conftest*
4744 eval "ac_cv_header_$ac_safe=no"
4746 rm -f conftest*
4748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4749 echo "$ac_t""yes" 1>&6
4750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4751 cat >> confdefs.h <<EOF
4752 #define $ac_tr_hdr 1
4755 else
4756 echo "$ac_t""no" 1>&6
4758 done
4760 for ac_hdr in fcntl.h sys/file.h sys/time.h
4762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4764 echo "configure:4765: checking for $ac_hdr" >&5
4765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4767 else
4768 cat > conftest.$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4771 #include <$ac_hdr>
4773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4774 { (eval echo configure:4775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4776 if test -z "$ac_err"; then
4777 rm -rf conftest*
4778 eval "ac_cv_header_$ac_safe=yes"
4779 else
4780 echo "$ac_err" >&5
4781 echo "configure: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4783 rm -rf conftest*
4784 eval "ac_cv_header_$ac_safe=no"
4786 rm -f conftest*
4788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4789 echo "$ac_t""yes" 1>&6
4790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4791 cat >> confdefs.h <<EOF
4792 #define $ac_tr_hdr 1
4795 else
4796 echo "$ac_t""no" 1>&6
4798 done
4800 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4801 echo "configure:4802: checking whether time.h and sys/time.h may both be included" >&5
4802 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4804 else
4805 cat > conftest.$ac_ext <<EOF
4806 #line 4807 "configure"
4807 #include "confdefs.h"
4808 #include <sys/types.h>
4809 #include <sys/time.h>
4810 #include <time.h>
4811 int main() {
4812 struct tm *tp;
4813 ; return 0; }
4815 if { (eval echo configure:4816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4816 rm -rf conftest*
4817 ac_cv_header_time=yes
4818 else
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4821 rm -rf conftest*
4822 ac_cv_header_time=no
4824 rm -f conftest*
4827 echo "$ac_t""$ac_cv_header_time" 1>&6
4828 if test $ac_cv_header_time = yes; then
4829 cat >> confdefs.h <<\EOF
4830 #define TIME_WITH_SYS_TIME 1
4835 ac_header_dirent=no
4836 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4839 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4840 echo "configure:4841: checking for $ac_hdr that defines DIR" >&5
4841 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4843 else
4844 cat > conftest.$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4847 #include <sys/types.h>
4848 #include <$ac_hdr>
4849 int main() {
4850 DIR *dirp = 0;
4851 ; return 0; }
4853 if { (eval echo configure:4854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4854 rm -rf conftest*
4855 eval "ac_cv_header_dirent_$ac_safe=yes"
4856 else
4857 echo "configure: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4859 rm -rf conftest*
4860 eval "ac_cv_header_dirent_$ac_safe=no"
4862 rm -f conftest*
4864 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4865 echo "$ac_t""yes" 1>&6
4866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4867 cat >> confdefs.h <<EOF
4868 #define $ac_tr_hdr 1
4870 ac_header_dirent=$ac_hdr; break
4871 else
4872 echo "$ac_t""no" 1>&6
4874 done
4875 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4876 if test $ac_header_dirent = dirent.h; then
4877 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4878 echo "configure:4879: checking for opendir in -ldir" >&5
4879 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4881 echo $ac_n "(cached) $ac_c" 1>&6
4882 else
4883 ac_save_LIBS="$LIBS"
4884 LIBS="-ldir $LIBS"
4885 cat > conftest.$ac_ext <<EOF
4886 #line 4887 "configure"
4887 #include "confdefs.h"
4888 /* Override any gcc2 internal prototype to avoid an error. */
4889 /* We use char because int might match the return type of a gcc2
4890 builtin and then its argument prototype would still apply. */
4891 char opendir();
4893 int main() {
4894 opendir()
4895 ; return 0; }
4897 if { (eval echo configure:4898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4898 rm -rf conftest*
4899 eval "ac_cv_lib_$ac_lib_var=yes"
4900 else
4901 echo "configure: failed program was:" >&5
4902 cat conftest.$ac_ext >&5
4903 rm -rf conftest*
4904 eval "ac_cv_lib_$ac_lib_var=no"
4906 rm -f conftest*
4907 LIBS="$ac_save_LIBS"
4910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4912 LIBS="$LIBS -ldir"
4913 else
4914 echo "$ac_t""no" 1>&6
4917 else
4918 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4919 echo "configure:4920: checking for opendir in -lx" >&5
4920 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4923 else
4924 ac_save_LIBS="$LIBS"
4925 LIBS="-lx $LIBS"
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4929 /* Override any gcc2 internal prototype to avoid an error. */
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4932 char opendir();
4934 int main() {
4935 opendir()
4936 ; return 0; }
4938 if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4939 rm -rf conftest*
4940 eval "ac_cv_lib_$ac_lib_var=yes"
4941 else
4942 echo "configure: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4944 rm -rf conftest*
4945 eval "ac_cv_lib_$ac_lib_var=no"
4947 rm -f conftest*
4948 LIBS="$ac_save_LIBS"
4951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4952 echo "$ac_t""yes" 1>&6
4953 LIBS="$LIBS -lx"
4954 else
4955 echo "$ac_t""no" 1>&6
4960 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4963 echo "configure:4964: checking for $ac_func" >&5
4964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4966 else
4967 cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 /* System header to define __stub macros and hopefully few prototypes,
4971 which can conflict with char $ac_func(); below. */
4972 #include <assert.h>
4973 /* Override any gcc2 internal prototype to avoid an error. */
4974 /* We use char because int might match the return type of a gcc2
4975 builtin and then its argument prototype would still apply. */
4976 char $ac_func();
4978 int main() {
4980 /* The GNU C library defines this for functions which it implements
4981 to always fail with ENOSYS. Some functions are actually named
4982 something starting with __ and the normal name is an alias. */
4983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4984 choke me
4985 #else
4986 $ac_func();
4987 #endif
4989 ; return 0; }
4991 if { (eval echo configure:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4992 rm -rf conftest*
4993 eval "ac_cv_func_$ac_func=yes"
4994 else
4995 echo "configure: failed program was:" >&5
4996 cat conftest.$ac_ext >&5
4997 rm -rf conftest*
4998 eval "ac_cv_func_$ac_func=no"
5000 rm -f conftest*
5003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5006 cat >> confdefs.h <<EOF
5007 #define $ac_tr_func 1
5010 else
5011 echo "$ac_t""no" 1>&6
5013 done
5015 for ac_func in strtoull
5017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5018 echo "configure:5019: checking for $ac_func" >&5
5019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5021 else
5022 cat > conftest.$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5025 /* System header to define __stub macros and hopefully few prototypes,
5026 which can conflict with char $ac_func(); below. */
5027 #include <assert.h>
5028 /* Override any gcc2 internal prototype to avoid an error. */
5029 /* We use char because int might match the return type of a gcc2
5030 builtin and then its argument prototype would still apply. */
5031 char $ac_func();
5033 int main() {
5035 /* The GNU C library defines this for functions which it implements
5036 to always fail with ENOSYS. Some functions are actually named
5037 something starting with __ and the normal name is an alias. */
5038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5039 choke me
5040 #else
5041 $ac_func();
5042 #endif
5044 ; return 0; }
5046 if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5047 rm -rf conftest*
5048 eval "ac_cv_func_$ac_func=yes"
5049 else
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5052 rm -rf conftest*
5053 eval "ac_cv_func_$ac_func=no"
5055 rm -f conftest*
5058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5059 echo "$ac_t""yes" 1>&6
5060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5061 cat >> confdefs.h <<EOF
5062 #define $ac_tr_func 1
5065 else
5066 echo "$ac_t""no" 1>&6
5068 done
5072 case "${host}" in
5073 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5074 cat >> confdefs.h <<\EOF
5075 #define USE_BINARY_FOPEN 1
5078 esac
5080 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5081 echo "configure:5082: checking whether strstr must be declared" >&5
5082 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5084 else
5085 cat > conftest.$ac_ext <<EOF
5086 #line 5087 "configure"
5087 #include "confdefs.h"
5089 #include <stdio.h>
5090 #ifdef HAVE_STRING_H
5091 #include <string.h>
5092 #else
5093 #ifdef HAVE_STRINGS_H
5094 #include <strings.h>
5095 #endif
5096 #endif
5097 #ifdef HAVE_STDLIB_H
5098 #include <stdlib.h>
5099 #endif
5100 #ifdef HAVE_UNISTD_H
5101 #include <unistd.h>
5102 #endif
5103 int main() {
5104 char *(*pfn) = (char *(*)) strstr
5105 ; return 0; }
5107 if { (eval echo configure:5108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5108 rm -rf conftest*
5109 bfd_cv_decl_needed_strstr=no
5110 else
5111 echo "configure: failed program was:" >&5
5112 cat conftest.$ac_ext >&5
5113 rm -rf conftest*
5114 bfd_cv_decl_needed_strstr=yes
5116 rm -f conftest*
5119 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5120 if test $bfd_cv_decl_needed_strstr = yes; then
5121 cat >> confdefs.h <<\EOF
5122 #define NEED_DECLARATION_STRSTR 1
5127 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
5128 echo "configure:5129: checking whether malloc must be declared" >&5
5129 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5131 else
5132 cat > conftest.$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5136 #include <stdio.h>
5137 #ifdef HAVE_STRING_H
5138 #include <string.h>
5139 #else
5140 #ifdef HAVE_STRINGS_H
5141 #include <strings.h>
5142 #endif
5143 #endif
5144 #ifdef HAVE_STDLIB_H
5145 #include <stdlib.h>
5146 #endif
5147 #ifdef HAVE_UNISTD_H
5148 #include <unistd.h>
5149 #endif
5150 int main() {
5151 char *(*pfn) = (char *(*)) malloc
5152 ; return 0; }
5154 if { (eval echo configure:5155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5155 rm -rf conftest*
5156 bfd_cv_decl_needed_malloc=no
5157 else
5158 echo "configure: failed program was:" >&5
5159 cat conftest.$ac_ext >&5
5160 rm -rf conftest*
5161 bfd_cv_decl_needed_malloc=yes
5163 rm -f conftest*
5166 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
5167 if test $bfd_cv_decl_needed_malloc = yes; then
5168 cat >> confdefs.h <<\EOF
5169 #define NEED_DECLARATION_MALLOC 1
5174 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
5175 echo "configure:5176: checking whether realloc must be declared" >&5
5176 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
5177 echo $ac_n "(cached) $ac_c" 1>&6
5178 else
5179 cat > conftest.$ac_ext <<EOF
5180 #line 5181 "configure"
5181 #include "confdefs.h"
5183 #include <stdio.h>
5184 #ifdef HAVE_STRING_H
5185 #include <string.h>
5186 #else
5187 #ifdef HAVE_STRINGS_H
5188 #include <strings.h>
5189 #endif
5190 #endif
5191 #ifdef HAVE_STDLIB_H
5192 #include <stdlib.h>
5193 #endif
5194 #ifdef HAVE_UNISTD_H
5195 #include <unistd.h>
5196 #endif
5197 int main() {
5198 char *(*pfn) = (char *(*)) realloc
5199 ; return 0; }
5201 if { (eval echo configure:5202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5202 rm -rf conftest*
5203 bfd_cv_decl_needed_realloc=no
5204 else
5205 echo "configure: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5207 rm -rf conftest*
5208 bfd_cv_decl_needed_realloc=yes
5210 rm -f conftest*
5213 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
5214 if test $bfd_cv_decl_needed_realloc = yes; then
5215 cat >> confdefs.h <<\EOF
5216 #define NEED_DECLARATION_REALLOC 1
5221 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
5222 echo "configure:5223: checking whether free must be declared" >&5
5223 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
5224 echo $ac_n "(cached) $ac_c" 1>&6
5225 else
5226 cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5230 #include <stdio.h>
5231 #ifdef HAVE_STRING_H
5232 #include <string.h>
5233 #else
5234 #ifdef HAVE_STRINGS_H
5235 #include <strings.h>
5236 #endif
5237 #endif
5238 #ifdef HAVE_STDLIB_H
5239 #include <stdlib.h>
5240 #endif
5241 #ifdef HAVE_UNISTD_H
5242 #include <unistd.h>
5243 #endif
5244 int main() {
5245 char *(*pfn) = (char *(*)) free
5246 ; return 0; }
5248 if { (eval echo configure:5249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5249 rm -rf conftest*
5250 bfd_cv_decl_needed_free=no
5251 else
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5254 rm -rf conftest*
5255 bfd_cv_decl_needed_free=yes
5257 rm -f conftest*
5260 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
5261 if test $bfd_cv_decl_needed_free = yes; then
5262 cat >> confdefs.h <<\EOF
5263 #define NEED_DECLARATION_FREE 1
5268 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5269 echo "configure:5270: checking whether getenv must be declared" >&5
5270 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5272 else
5273 cat > conftest.$ac_ext <<EOF
5274 #line 5275 "configure"
5275 #include "confdefs.h"
5277 #include <stdio.h>
5278 #ifdef HAVE_STRING_H
5279 #include <string.h>
5280 #else
5281 #ifdef HAVE_STRINGS_H
5282 #include <strings.h>
5283 #endif
5284 #endif
5285 #ifdef HAVE_STDLIB_H
5286 #include <stdlib.h>
5287 #endif
5288 #ifdef HAVE_UNISTD_H
5289 #include <unistd.h>
5290 #endif
5291 int main() {
5292 char *(*pfn) = (char *(*)) getenv
5293 ; return 0; }
5295 if { (eval echo configure:5296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5296 rm -rf conftest*
5297 bfd_cv_decl_needed_getenv=no
5298 else
5299 echo "configure: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5301 rm -rf conftest*
5302 bfd_cv_decl_needed_getenv=yes
5304 rm -f conftest*
5307 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5308 if test $bfd_cv_decl_needed_getenv = yes; then
5309 cat >> confdefs.h <<\EOF
5310 #define NEED_DECLARATION_GETENV 1
5316 # If we are configured native, pick a core file support file.
5317 COREFILE=
5318 COREFLAG=
5319 TRAD_HEADER=
5320 if test "${target}" = "${host}"; then
5321 case "${host}" in
5322 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
5323 COREFILE=''
5325 alpha*-*-linux-gnu*)
5326 COREFILE=trad-core.lo
5327 TRAD_HEADER='"hosts/alphalinux.h"'
5329 alpha*-*-netbsd* | alpha*-*-openbsd*)
5330 COREFILE=netbsd-core.lo
5332 alpha*-*-*) COREFILE=osf-core.lo ;;
5333 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
5334 COREFILE='' ;;
5335 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
5336 arm-*-riscix) COREFILE=trad-core.lo ;;
5337 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
5338 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
5339 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
5340 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
5341 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
5342 i370-*-*)
5343 COREFILE=trad-core.lo
5344 TRAD_HEADER='"hosts/i370linux.h"'
5347 i[3-7]86-sequent-bsd*)
5348 COREFILE=trad-core.lo
5349 TRAD_HEADER='"hosts/symmetry.h"'
5351 i[3-7]86-sequent-sysv4*) ;;
5352 i[3-7]86-sequent-sysv*)
5353 COREFILE=trad-core.lo
5354 TRAD_HEADER='"hosts/symmetry.h"'
5356 i[3-7]86-*-bsdi)
5357 COREFILE=
5359 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234]* | i[3-7]86-*-freebsd*aout*)
5360 COREFILE=trad-core.lo
5361 TRAD_HEADER='"hosts/i386bsd.h"'
5363 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
5364 COREFILE=''
5365 TRAD_HEADER='"hosts/i386bsd.h"'
5367 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
5368 COREFILE=netbsd-core.lo
5370 i[3-7]86-esix-sysv3*)
5371 COREFILE=trad-core.lo
5372 TRAD_HEADER='"hosts/esix.h"'
5374 i[3-7]86-*-sco3.2v5*)
5375 COREFILE=sco5-core.lo
5377 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
5378 COREFILE=trad-core.lo
5379 TRAD_HEADER='"hosts/i386sco.h"'
5381 i[3-7]86-*-mach3*)
5382 COREFILE=trad-core.lo
5383 TRAD_HEADER='"hosts/i386mach3.h"'
5385 i[3-7]86-*-linux-gnu*)
5386 COREFILE=trad-core.lo
5387 TRAD_HEADER='"hosts/i386linux.h"'
5389 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
5390 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
5391 i860-*-mach3* | i860-*-osf1*)
5392 COREFILE=trad-core.lo
5393 TRAD_HEADER='"hosts/i860mach3.h"'
5395 mips-*-netbsd* | mips*-*-openbsd*)
5396 COREFILE=netbsd-core.lo
5398 mips-dec-*)
5399 COREFILE=trad-core.lo
5400 TRAD_HEADER='"hosts/decstation.h"'
5402 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
5403 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
5404 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
5405 mips-*-sysv4*) ;;
5406 mips-*-sysv* | mips-*-riscos*)
5407 COREFILE=trad-core.lo
5408 TRAD_HEADER='"hosts/riscos.h"'
5410 mips-sony-bsd*)
5411 COREFILE=trad-core.lo
5412 TRAD_HEADER='"hosts/news-mips.h"'
5414 m68*-bull*-sysv*)
5415 COREFILE=trad-core.lo
5416 TRAD_HEADER='"hosts/dpx2.h"'
5418 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
5419 m68*-hp-bsd*)
5420 COREFILE=trad-core.lo
5421 TRAD_HEADER='"hosts/hp300bsd.h"'
5423 m68*-*-linux-gnu*)
5424 COREFILE=trad-core.lo
5425 TRAD_HEADER='"hosts/m68klinux.h"'
5427 m68*-motorola-sysv*)
5428 COREFILE=trad-core.lo
5429 TRAD_HEADER='"hosts/delta68.h"'
5431 m68*-sony-*)
5432 COREFILE=trad-core.lo
5433 TRAD_HEADER='"hosts/news.h"'
5435 m68*-*-netbsd* | m68*-*-openbsd*)
5436 COREFILE=netbsd-core.lo
5438 m68*-apple-aux*)
5439 COREFILE=trad-core.lo
5440 TRAD_HEADER='"hosts/m68kaux.h"'
5442 m88*-*-sysv4*)
5444 m88*-motorola-sysv*)
5445 COREFILE=ptrace-core.lo
5447 m88*-*-mach3*)
5448 COREFILE=trad-core.lo
5449 TRAD_HEADER='"hosts/m88kmach3.h"'
5451 ns32k-pc532-mach)
5452 COREFILE=trad-core.lo
5453 TRAD_HEADER='"hosts/pc532mach.h"'
5455 ns32k-*-netbsd* | ns32k-*-openbsd*)
5456 COREFILE=netbsd-core.lo
5458 rs6000-*-lynx*)
5459 COREFILE=lynx-core.lo
5461 rs6000-*-aix5.* | powerpc-*-aix5.*)
5462 COREFILE=rs6000-core.lo
5463 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
5465 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
5466 COREFILE=rs6000-core.lo
5467 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5468 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
5469 # have c_impl as a member of struct core_dumpx
5470 echo $ac_n "checking for c_impl in struct core_dumpx""... $ac_c" 1>&6
5471 echo "configure:5472: checking for c_impl in struct core_dumpx" >&5
5472 cat > conftest.$ac_ext <<EOF
5473 #line 5474 "configure"
5474 #include "confdefs.h"
5475 #include <core.h>
5476 int main() {
5477 struct core_dumpx c; c.c_impl = 0;
5478 ; return 0; }
5480 if { (eval echo configure:5481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5481 rm -rf conftest*
5482 cat >> confdefs.h <<\EOF
5483 #define HAVE_ST_C_IMPL 1
5486 echo "$ac_t""yes" 1>&6
5487 else
5488 echo "configure: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5490 rm -rf conftest*
5491 echo "$ac_t""no" 1>&6
5493 rm -f conftest*
5495 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
5496 rs6000-*-*) COREFILE=rs6000-core.lo ;;
5497 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
5498 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
5499 powerpc-*-beos*) ;;
5500 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
5501 COREFILE='' ;;
5502 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
5503 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
5504 s390*-*-*) COREFILE=trad-core.lo ;;
5505 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
5506 sparc-*-netbsd* | sparc*-*-openbsd*)
5507 COREFILE=netbsd-core.lo
5509 tahoe-*-*)
5510 COREFILE=trad-core.lo
5511 TRAD_HEADER='"hosts/tahoe.h"'
5513 vax-*-netbsd* | vax-*-openbsd*)
5514 COREFILE=netbsd-core.lo
5516 vax-*-ultrix2*)
5517 COREFILE=trad-core.lo
5518 TRAD_HEADER='"hosts/vaxult2.h"'
5520 vax-*-ultrix*)
5521 COREFILE=trad-core.lo
5522 TRAD_HEADER='"hosts/vaxult2.h"'
5524 vax-*-linux-gnu*)
5525 COREFILE=trad-core.lo
5526 TRAD_HEADER='"hosts/vaxlinux.h"'
5528 vax-*-*)
5529 COREFILE=trad-core.lo
5530 TRAD_HEADER='"hosts/vaxbsd.h"'
5532 x86_64-*-netbsd* | x86_64-*-openbsd*)
5533 COREFILE=netbsd-core.lo
5535 esac
5537 case "$COREFILE" in
5538 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
5539 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
5540 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
5541 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
5542 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
5543 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
5544 osf-core.lo) COREFLAG=-DOSF_CORE ;;
5545 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
5546 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
5547 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
5548 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
5549 esac
5551 # ELF corefile support has several flavors, but all of
5552 # them use something called <sys/procfs.h>
5553 for ac_hdr in sys/procfs.h
5555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5557 echo "configure:5558: checking for $ac_hdr" >&5
5558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5560 else
5561 cat > conftest.$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5564 #include <$ac_hdr>
5566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5567 { (eval echo configure:5568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5569 if test -z "$ac_err"; then
5570 rm -rf conftest*
5571 eval "ac_cv_header_$ac_safe=yes"
5572 else
5573 echo "$ac_err" >&5
5574 echo "configure: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5576 rm -rf conftest*
5577 eval "ac_cv_header_$ac_safe=no"
5579 rm -f conftest*
5581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5582 echo "$ac_t""yes" 1>&6
5583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5584 cat >> confdefs.h <<EOF
5585 #define $ac_tr_hdr 1
5588 else
5589 echo "$ac_t""no" 1>&6
5591 done
5593 if test "$ac_cv_header_sys_procfs_h" = yes; then
5594 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5595 echo "configure:5596: checking for prstatus_t in sys/procfs.h" >&5
5596 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5598 else
5599 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5603 #define _SYSCALL32
5604 #include <sys/procfs.h>
5605 int main() {
5606 prstatus_t avar
5607 ; return 0; }
5609 if { (eval echo configure:5610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5610 rm -rf conftest*
5611 bfd_cv_have_sys_procfs_type_prstatus_t=yes
5612 else
5613 echo "configure: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5615 rm -rf conftest*
5616 bfd_cv_have_sys_procfs_type_prstatus_t=no
5619 rm -f conftest*
5622 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5623 cat >> confdefs.h <<\EOF
5624 #define HAVE_PRSTATUS_T 1
5628 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5630 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5631 echo "configure:5632: checking for prstatus32_t in sys/procfs.h" >&5
5632 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5633 echo $ac_n "(cached) $ac_c" 1>&6
5634 else
5635 cat > conftest.$ac_ext <<EOF
5636 #line 5637 "configure"
5637 #include "confdefs.h"
5639 #define _SYSCALL32
5640 #include <sys/procfs.h>
5641 int main() {
5642 prstatus32_t avar
5643 ; return 0; }
5645 if { (eval echo configure:5646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5646 rm -rf conftest*
5647 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
5648 else
5649 echo "configure: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5651 rm -rf conftest*
5652 bfd_cv_have_sys_procfs_type_prstatus32_t=no
5655 rm -f conftest*
5658 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5659 cat >> confdefs.h <<\EOF
5660 #define HAVE_PRSTATUS32_T 1
5664 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5666 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5667 echo "configure:5668: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5668 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5669 echo $ac_n "(cached) $ac_c" 1>&6
5670 else
5671 cat > conftest.$ac_ext <<EOF
5672 #line 5673 "configure"
5673 #include "confdefs.h"
5675 #define _SYSCALL32
5676 #include <sys/procfs.h>
5677 int main() {
5678 prstatus_t avar; void* aref = (void*) &avar.pr_who
5679 ; return 0; }
5681 if { (eval echo configure:5682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5682 rm -rf conftest*
5683 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
5684 else
5685 echo "configure: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5687 rm -rf conftest*
5688 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
5691 rm -f conftest*
5694 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5695 cat >> confdefs.h <<\EOF
5696 #define HAVE_PRSTATUS_T_PR_WHO 1
5700 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5702 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5703 echo "configure:5704: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5704 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5706 else
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5711 #define _SYSCALL32
5712 #include <sys/procfs.h>
5713 int main() {
5714 prstatus32_t avar; void* aref = (void*) &avar.pr_who
5715 ; return 0; }
5717 if { (eval echo configure:5718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5718 rm -rf conftest*
5719 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
5720 else
5721 echo "configure: failed program was:" >&5
5722 cat conftest.$ac_ext >&5
5723 rm -rf conftest*
5724 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
5727 rm -f conftest*
5730 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5731 cat >> confdefs.h <<\EOF
5732 #define HAVE_PRSTATUS32_T_PR_WHO 1
5736 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5738 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5739 echo "configure:5740: checking for pstatus_t in sys/procfs.h" >&5
5740 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5741 echo $ac_n "(cached) $ac_c" 1>&6
5742 else
5743 cat > conftest.$ac_ext <<EOF
5744 #line 5745 "configure"
5745 #include "confdefs.h"
5747 #define _SYSCALL32
5748 #include <sys/procfs.h>
5749 int main() {
5750 pstatus_t avar
5751 ; return 0; }
5753 if { (eval echo configure:5754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5754 rm -rf conftest*
5755 bfd_cv_have_sys_procfs_type_pstatus_t=yes
5756 else
5757 echo "configure: failed program was:" >&5
5758 cat conftest.$ac_ext >&5
5759 rm -rf conftest*
5760 bfd_cv_have_sys_procfs_type_pstatus_t=no
5763 rm -f conftest*
5766 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5767 cat >> confdefs.h <<\EOF
5768 #define HAVE_PSTATUS_T 1
5772 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5774 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5775 echo "configure:5776: checking for pxstatus_t in sys/procfs.h" >&5
5776 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5778 else
5779 cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5783 #define _SYSCALL32
5784 #include <sys/procfs.h>
5785 int main() {
5786 pxstatus_t avar
5787 ; return 0; }
5789 if { (eval echo configure:5790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5790 rm -rf conftest*
5791 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
5792 else
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 rm -rf conftest*
5796 bfd_cv_have_sys_procfs_type_pxstatus_t=no
5799 rm -f conftest*
5802 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5803 cat >> confdefs.h <<\EOF
5804 #define HAVE_PXSTATUS_T 1
5808 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5810 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5811 echo "configure:5812: checking for pstatus32_t in sys/procfs.h" >&5
5812 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5814 else
5815 cat > conftest.$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5819 #define _SYSCALL32
5820 #include <sys/procfs.h>
5821 int main() {
5822 pstatus32_t avar
5823 ; return 0; }
5825 if { (eval echo configure:5826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5826 rm -rf conftest*
5827 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
5828 else
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5831 rm -rf conftest*
5832 bfd_cv_have_sys_procfs_type_pstatus32_t=no
5835 rm -f conftest*
5838 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5839 cat >> confdefs.h <<\EOF
5840 #define HAVE_PSTATUS32_T 1
5844 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5846 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5847 echo "configure:5848: checking for prpsinfo_t in sys/procfs.h" >&5
5848 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5850 else
5851 cat > conftest.$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5855 #define _SYSCALL32
5856 #include <sys/procfs.h>
5857 int main() {
5858 prpsinfo_t avar
5859 ; return 0; }
5861 if { (eval echo configure:5862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5862 rm -rf conftest*
5863 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
5864 else
5865 echo "configure: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5867 rm -rf conftest*
5868 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
5871 rm -f conftest*
5874 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5875 cat >> confdefs.h <<\EOF
5876 #define HAVE_PRPSINFO_T 1
5880 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5882 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5883 echo "configure:5884: checking for prpsinfo32_t in sys/procfs.h" >&5
5884 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5886 else
5887 cat > conftest.$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5891 #define _SYSCALL32
5892 #include <sys/procfs.h>
5893 int main() {
5894 prpsinfo32_t avar
5895 ; return 0; }
5897 if { (eval echo configure:5898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5898 rm -rf conftest*
5899 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
5900 else
5901 echo "configure: failed program was:" >&5
5902 cat conftest.$ac_ext >&5
5903 rm -rf conftest*
5904 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
5907 rm -f conftest*
5910 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5911 cat >> confdefs.h <<\EOF
5912 #define HAVE_PRPSINFO32_T 1
5916 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5918 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5919 echo "configure:5920: checking for psinfo_t in sys/procfs.h" >&5
5920 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5922 else
5923 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5927 #define _SYSCALL32
5928 #include <sys/procfs.h>
5929 int main() {
5930 psinfo_t avar
5931 ; return 0; }
5933 if { (eval echo configure:5934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5934 rm -rf conftest*
5935 bfd_cv_have_sys_procfs_type_psinfo_t=yes
5936 else
5937 echo "configure: failed program was:" >&5
5938 cat conftest.$ac_ext >&5
5939 rm -rf conftest*
5940 bfd_cv_have_sys_procfs_type_psinfo_t=no
5943 rm -f conftest*
5946 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5947 cat >> confdefs.h <<\EOF
5948 #define HAVE_PSINFO_T 1
5952 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5954 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5955 echo "configure:5956: checking for psinfo32_t in sys/procfs.h" >&5
5956 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5958 else
5959 cat > conftest.$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5963 #define _SYSCALL32
5964 #include <sys/procfs.h>
5965 int main() {
5966 psinfo32_t avar
5967 ; return 0; }
5969 if { (eval echo configure:5970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5970 rm -rf conftest*
5971 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
5972 else
5973 echo "configure: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5975 rm -rf conftest*
5976 bfd_cv_have_sys_procfs_type_psinfo32_t=no
5979 rm -f conftest*
5982 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5983 cat >> confdefs.h <<\EOF
5984 #define HAVE_PSINFO32_T 1
5988 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5990 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5991 echo "configure:5992: checking for lwpstatus_t in sys/procfs.h" >&5
5992 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5993 echo $ac_n "(cached) $ac_c" 1>&6
5994 else
5995 cat > conftest.$ac_ext <<EOF
5996 #line 5997 "configure"
5997 #include "confdefs.h"
5999 #define _SYSCALL32
6000 #include <sys/procfs.h>
6001 int main() {
6002 lwpstatus_t avar
6003 ; return 0; }
6005 if { (eval echo configure:6006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6006 rm -rf conftest*
6007 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
6008 else
6009 echo "configure: failed program was:" >&5
6010 cat conftest.$ac_ext >&5
6011 rm -rf conftest*
6012 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
6015 rm -f conftest*
6018 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
6019 cat >> confdefs.h <<\EOF
6020 #define HAVE_LWPSTATUS_T 1
6024 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
6026 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
6027 echo "configure:6028: checking for lwpxstatus_t in sys/procfs.h" >&5
6028 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
6029 echo $ac_n "(cached) $ac_c" 1>&6
6030 else
6031 cat > conftest.$ac_ext <<EOF
6032 #line 6033 "configure"
6033 #include "confdefs.h"
6035 #define _SYSCALL32
6036 #include <sys/procfs.h>
6037 int main() {
6038 lwpxstatus_t avar
6039 ; return 0; }
6041 if { (eval echo configure:6042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6042 rm -rf conftest*
6043 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
6044 else
6045 echo "configure: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6047 rm -rf conftest*
6048 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
6051 rm -f conftest*
6054 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
6055 cat >> confdefs.h <<\EOF
6056 #define HAVE_LWPXSTATUS_T 1
6060 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
6062 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
6063 echo "configure:6064: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
6064 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
6065 echo $ac_n "(cached) $ac_c" 1>&6
6066 else
6067 cat > conftest.$ac_ext <<EOF
6068 #line 6069 "configure"
6069 #include "confdefs.h"
6071 #define _SYSCALL32
6072 #include <sys/procfs.h>
6073 int main() {
6074 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
6075 ; return 0; }
6077 if { (eval echo configure:6078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6078 rm -rf conftest*
6079 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
6080 else
6081 echo "configure: failed program was:" >&5
6082 cat conftest.$ac_ext >&5
6083 rm -rf conftest*
6084 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
6087 rm -f conftest*
6090 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
6091 cat >> confdefs.h <<\EOF
6092 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
6096 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
6098 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
6099 echo "configure:6100: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
6100 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
6101 echo $ac_n "(cached) $ac_c" 1>&6
6102 else
6103 cat > conftest.$ac_ext <<EOF
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6107 #define _SYSCALL32
6108 #include <sys/procfs.h>
6109 int main() {
6110 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
6111 ; return 0; }
6113 if { (eval echo configure:6114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6114 rm -rf conftest*
6115 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
6116 else
6117 echo "configure: failed program was:" >&5
6118 cat conftest.$ac_ext >&5
6119 rm -rf conftest*
6120 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
6123 rm -f conftest*
6126 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
6127 cat >> confdefs.h <<\EOF
6128 #define HAVE_LWPSTATUS_T_PR_REG 1
6132 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
6134 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
6135 echo "configure:6136: checking for win32_pstatus_t in sys/procfs.h" >&5
6136 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
6137 echo $ac_n "(cached) $ac_c" 1>&6
6138 else
6139 cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6143 #define _SYSCALL32
6144 #include <sys/procfs.h>
6145 int main() {
6146 win32_pstatus_t avar
6147 ; return 0; }
6149 if { (eval echo configure:6150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6150 rm -rf conftest*
6151 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
6152 else
6153 echo "configure: failed program was:" >&5
6154 cat conftest.$ac_ext >&5
6155 rm -rf conftest*
6156 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
6159 rm -f conftest*
6162 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
6163 cat >> confdefs.h <<\EOF
6164 #define HAVE_WIN32_PSTATUS_T 1
6168 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
6174 if test -n "$TRAD_HEADER"; then
6175 cat >> confdefs.h <<EOF
6176 #define TRAD_HEADER $TRAD_HEADER
6181 # Horrible hacks to build DLLs on Windows.
6182 WIN32LDFLAGS=
6183 WIN32LIBADD=
6184 case "${host}" in
6185 *-*-cygwin*)
6186 if test "$enable_shared" = "yes"; then
6187 WIN32LDFLAGS="-no-undefined"
6188 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
6191 *-*-linux*)
6192 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
6193 # libiberty.a.
6194 case "${host}" in
6195 mips*-*-linux*)
6196 # Linux/MIPS uses PIC by default.
6197 if test "$enable_shared" = "yes"; then
6198 WIN32LIBADD="-L../libiberty -liberty"
6202 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
6203 if test -n "$x"; then
6204 WIN32LIBADD="-L../libiberty/pic -liberty"
6207 esac
6209 esac
6213 # target stuff:
6215 # Canonicalize the secondary target names.
6216 if test -n "$enable_targets" ; then
6217 for targ in `echo $enable_targets | sed 's/,/ /g'`
6219 result=`$ac_config_sub $targ 2>/dev/null`
6220 if test -n "$result" ; then
6221 canon_targets="$canon_targets $result"
6222 else
6223 # Allow targets that config.sub doesn't recognize, like "all".
6224 canon_targets="$canon_targets $targ"
6226 done
6229 all_targets=false
6230 defvec=
6231 selvecs=
6232 assocvecs=
6233 selarchs=
6234 TDEFINES=
6235 for targ in $target $canon_targets
6237 if test "x$targ" = "xall"; then
6238 all_targets=true
6239 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
6240 else
6241 . $srcdir/config.bfd
6242 if test "x$targ" = "x$target"; then
6243 defvec=$targ_defvec
6245 selvecs="$selvecs $targ_defvec $targ_selvecs"
6246 selarchs="$selarchs $targ_archs"
6247 TDEFINES="$TDEFINES $targ_cflags"
6249 done
6252 # This processing still needs to be done if we're to decide properly whether
6253 # 64-bit support needs to be compiled in. Currently, it will be included if
6254 # the default or any other explicitly requested target requires it; it
6255 # will not be included on a 32-bit host if no 64-bit target is requested, and
6256 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
6257 # used.
6259 # uniq the default and selected vectors in all the configured targets.
6260 f=""
6261 for i in $selvecs ; do
6262 case " $f " in
6263 *" $i "*) ;;
6264 *) f="$f $i" ;;
6265 esac
6266 done
6267 selvecs="$f"
6270 # uniq the associated vectors in all the configured targets.
6271 f=""
6272 for i in $assocvecs ; do
6273 case " $f " in
6274 *" $i "*) ;;
6275 *) f="$f $i" ;;
6276 esac
6277 done
6278 assocvecs="$f"
6281 # uniq the architectures in all the configured targets.
6282 f=""
6283 for i in $selarchs ; do
6284 case " $f " in
6285 *" $i "*) ;;
6286 *) f="$f $i" ;;
6287 esac
6288 done
6289 selarchs="$f"
6291 # Target backend .o files.
6294 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
6296 for vec in $selvecs
6298 target_size=32
6299 case "$vec" in
6300 # This list is alphabetized to make it easy to compare
6301 # with the two vector lists in targets.c. For the same reason,
6302 # use one entry per line, even though this leads to long lines.
6303 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
6304 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
6305 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
6306 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
6307 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
6308 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
6309 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
6310 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6311 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6312 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6313 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6314 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
6315 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
6316 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
6317 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6318 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6319 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6320 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6321 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
6322 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
6323 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
6324 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
6325 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
6326 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
6327 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
6328 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
6329 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6330 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6331 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6332 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
6333 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
6334 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
6335 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
6336 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
6337 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
6338 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
6339 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
6340 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
6341 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
6342 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
6343 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
6344 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
6345 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
6346 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
6347 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
6348 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
6349 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
6350 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
6351 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
6352 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
6353 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
6354 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
6355 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6356 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6357 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6358 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6359 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6360 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6361 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6362 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
6363 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
6364 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
6365 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
6366 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
6367 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
6368 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
6369 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
6370 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
6371 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6372 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6373 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6374 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6375 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
6376 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
6377 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
6378 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
6379 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
6380 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
6381 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
6382 # FIXME: We include cofflink.lo not because it's needed for
6383 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
6384 # which needs it but does not list it. Should be fixed in right place.
6385 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6386 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6387 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6388 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6389 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6390 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6391 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6392 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6393 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6394 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6395 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6396 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6397 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
6398 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6399 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6400 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
6401 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
6402 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
6403 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
6404 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
6405 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
6406 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
6407 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
6408 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6409 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6410 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
6411 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
6412 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6413 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6414 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6415 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6416 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6417 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
6418 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6419 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
6420 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
6421 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6422 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6423 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6424 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6425 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6426 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6427 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
6428 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6429 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6430 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
6431 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
6432 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6433 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6434 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6435 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6436 cris_aout_vec) tb="$tb aout-cris.lo" ;;
6437 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
6438 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6439 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6440 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6441 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
6442 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
6443 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
6444 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
6445 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
6446 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
6447 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
6448 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
6449 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
6450 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
6451 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
6452 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
6453 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
6454 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
6455 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6456 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6457 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
6458 i386msdos_vec) tb="$tb i386msdos.lo" ;;
6459 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
6460 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
6461 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6462 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6463 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
6464 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
6465 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
6466 ieee_vec) tb="$tb ieee.lo" ;;
6467 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
6468 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6469 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
6470 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6471 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
6472 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6473 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6474 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
6475 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
6476 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
6477 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
6478 mach_o_be_vec) tb="$tb mach-o.lo" ;;
6479 mach_o_le_vec) tb="$tb mach-o.lo" ;;
6480 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
6481 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6482 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6483 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6484 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6485 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6486 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6487 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
6488 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
6489 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6490 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6491 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6492 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
6493 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
6494 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6495 pef_vec) tb="$tb pef.lo" ;;
6496 pef_xlib_vec) tb="$tb pef.lo" ;;
6497 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6498 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
6499 ppcboot_vec) tb="$tb ppcboot.lo" ;;
6500 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
6501 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
6502 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
6503 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6504 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6505 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6506 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6507 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6508 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6509 som_vec) tb="$tb som.lo" ;;
6510 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
6511 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
6512 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
6513 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6514 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
6515 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
6516 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
6517 sym_vec) tb="$tb xsym.lo" ;;
6518 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
6519 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
6520 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
6521 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
6522 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
6523 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
6524 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
6525 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
6526 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
6527 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
6528 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
6529 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
6530 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
6531 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
6532 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
6533 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
6534 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
6535 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
6536 versados_vec) tb="$tb versados.lo" ;;
6537 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
6538 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6539 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
6540 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
6541 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
6543 # These appear out of order in targets.c
6544 srec_vec) tb="$tb srec.lo" ;;
6545 symbolsrec_vec) tb="$tb srec.lo" ;;
6546 tekhex_vec) tb="$tb tekhex.lo" ;;
6547 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
6548 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
6550 "") ;;
6551 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6552 esac
6554 if test ${target_size} = 64; then
6555 target64=true
6557 if test x"${vec}" = x"${defvec}"; then
6558 bfd_default_target_size=${target_size}
6560 done
6562 # Target architecture .o files.
6563 # A couple of CPUs use shorter file names to avoid problems on DOS
6564 # filesystems.
6565 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6567 # Weed out duplicate .o files.
6568 f=""
6569 for i in $tb ; do
6570 case " $f " in
6571 *" $i "*) ;;
6572 *) f="$f $i" ;;
6573 esac
6574 done
6575 tb="$f"
6577 f=""
6578 for i in $ta ; do
6579 case " $f " in
6580 *" $i "*) ;;
6581 *) f="$f $i" ;;
6582 esac
6583 done
6584 ta="$f"
6586 bfd_backends="$tb"
6587 bfd_machines="$ta"
6589 if test x${all_targets} = xtrue ; then
6590 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
6591 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
6592 selvecs=
6593 havevecs=
6594 selarchs=
6595 test -n "$assocvecs" &&
6596 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6597 else # all_targets is true
6598 # Only set these if they will be nonempty, for the clever echo.
6599 havevecs=
6600 assocvecs=
6601 test -n "$selvecs" &&
6602 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6603 test -n "$selvecs" &&
6604 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6605 test -n "$selarchs" &&
6606 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6607 fi # all_targets is true
6609 case ${host64}-${target64}-${want64} in
6610 *true*)
6611 wordsize=64
6612 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
6613 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6614 if test $BFD_HOST_64_BIT_DEFINED = 0; then
6615 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6616 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6618 if test -n "$GCC" ; then
6619 bad_64bit_gcc=no;
6620 echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
6621 echo "configure:6622: checking for gcc version with buggy 64-bit support" >&5
6622 # Add more tests for gcc versions with non-working 64-bit support here.
6623 cat > conftest.$ac_ext <<EOF
6624 #line 6625 "configure"
6625 #include "confdefs.h"
6626 :__GNUC__:__GNUC_MINOR__:__i386__:
6628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6629 egrep ": 2 : 91 : 1 :" >/dev/null 2>&1; then
6630 rm -rf conftest*
6631 bad_64bit_gcc=yes;
6632 echo "$ac_t""yes: egcs-1.1.2 on ix86 spotted" 1>&6
6633 else
6634 rm -rf conftest*
6635 echo "$ac_t""no" 1>&6
6637 rm -f conftest*
6639 if test $bad_64bit_gcc = yes ; then
6640 { echo "configure: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" 1>&2; exit 1; }
6644 false-false-false)
6645 wordsize=32
6646 bfd_libs='$(BFD32_LIBS)'
6647 all_backends='$(BFD32_BACKENDS)'
6649 esac
6658 # Determine the host dependant file_ptr a.k.a. off_t type. In order
6659 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
6660 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
6661 # Hopefully a reasonable assumption since fseeko et.al. should be
6662 # upward compatible.
6663 for ac_func in ftello ftello64 fseeko fseeko64
6665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6666 echo "configure:6667: checking for $ac_func" >&5
6667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6668 echo $ac_n "(cached) $ac_c" 1>&6
6669 else
6670 cat > conftest.$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6673 /* System header to define __stub macros and hopefully few prototypes,
6674 which can conflict with char $ac_func(); below. */
6675 #include <assert.h>
6676 /* Override any gcc2 internal prototype to avoid an error. */
6677 /* We use char because int might match the return type of a gcc2
6678 builtin and then its argument prototype would still apply. */
6679 char $ac_func();
6681 int main() {
6683 /* The GNU C library defines this for functions which it implements
6684 to always fail with ENOSYS. Some functions are actually named
6685 something starting with __ and the normal name is an alias. */
6686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6687 choke me
6688 #else
6689 $ac_func();
6690 #endif
6692 ; return 0; }
6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6695 rm -rf conftest*
6696 eval "ac_cv_func_$ac_func=yes"
6697 else
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6700 rm -rf conftest*
6701 eval "ac_cv_func_$ac_func=no"
6703 rm -f conftest*
6706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6707 echo "$ac_t""yes" 1>&6
6708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6709 cat >> confdefs.h <<EOF
6710 #define $ac_tr_func 1
6713 else
6714 echo "$ac_t""no" 1>&6
6716 done
6718 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
6719 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
6720 echo "configure:6721: checking size of off_t" >&5
6721 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6723 else
6724 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
6725 cat > conftest.$ac_ext <<EOF
6726 #line 6727 "configure"
6727 #include "confdefs.h"
6728 #include "confdefs.h"
6729 #include <sys/types.h>
6732 int main() {
6733 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
6734 ; return 0; }
6736 if { (eval echo configure:6737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6737 rm -rf conftest*
6738 ac_cv_sizeof_off_t=$ac_size
6739 else
6740 echo "configure: failed program was:" >&5
6741 cat conftest.$ac_ext >&5
6743 rm -f conftest*
6744 if test x$ac_cv_sizeof_off_t != x ; then break; fi
6745 done
6749 if test x$ac_cv_sizeof_off_t = x ; then
6750 { echo "configure: error: cannot determine a size for off_t" 1>&2; exit 1; }
6752 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
6753 cat >> confdefs.h <<EOF
6754 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
6759 echo $ac_n "checking file_ptr type""... $ac_c" 1>&6
6760 echo "configure:6761: checking file_ptr type" >&5
6761 bfd_file_ptr="long"
6762 bfd_ufile_ptr="unsigned long"
6763 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
6764 -o x"${ac_cv_sizeof_off_t}" = x8; then
6765 bfd_file_ptr=BFD_HOST_64_BIT
6766 bfd_ufile_ptr=BFD_HOST_U_64_BIT
6768 echo "$ac_t""$bfd_file_ptr" 1>&6
6773 tdefaults=""
6774 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6775 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6776 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
6777 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6778 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6781 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
6783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6785 echo "configure:6786: checking for $ac_hdr" >&5
6786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6787 echo $ac_n "(cached) $ac_c" 1>&6
6788 else
6789 cat > conftest.$ac_ext <<EOF
6790 #line 6791 "configure"
6791 #include "confdefs.h"
6792 #include <$ac_hdr>
6794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6795 { (eval echo configure:6796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6797 if test -z "$ac_err"; then
6798 rm -rf conftest*
6799 eval "ac_cv_header_$ac_safe=yes"
6800 else
6801 echo "$ac_err" >&5
6802 echo "configure: failed program was:" >&5
6803 cat conftest.$ac_ext >&5
6804 rm -rf conftest*
6805 eval "ac_cv_header_$ac_safe=no"
6807 rm -f conftest*
6809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6810 echo "$ac_t""yes" 1>&6
6811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6812 cat >> confdefs.h <<EOF
6813 #define $ac_tr_hdr 1
6816 else
6817 echo "$ac_t""no" 1>&6
6819 done
6821 for ac_func in getpagesize
6823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6824 echo "configure:6825: checking for $ac_func" >&5
6825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6827 else
6828 cat > conftest.$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6831 /* System header to define __stub macros and hopefully few prototypes,
6832 which can conflict with char $ac_func(); below. */
6833 #include <assert.h>
6834 /* Override any gcc2 internal prototype to avoid an error. */
6835 /* We use char because int might match the return type of a gcc2
6836 builtin and then its argument prototype would still apply. */
6837 char $ac_func();
6839 int main() {
6841 /* The GNU C library defines this for functions which it implements
6842 to always fail with ENOSYS. Some functions are actually named
6843 something starting with __ and the normal name is an alias. */
6844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6845 choke me
6846 #else
6847 $ac_func();
6848 #endif
6850 ; return 0; }
6852 if { (eval echo configure:6853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6853 rm -rf conftest*
6854 eval "ac_cv_func_$ac_func=yes"
6855 else
6856 echo "configure: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6858 rm -rf conftest*
6859 eval "ac_cv_func_$ac_func=no"
6861 rm -f conftest*
6864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6865 echo "$ac_t""yes" 1>&6
6866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6867 cat >> confdefs.h <<EOF
6868 #define $ac_tr_func 1
6871 else
6872 echo "$ac_t""no" 1>&6
6874 done
6876 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6877 echo "configure:6878: checking for working mmap" >&5
6878 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6
6880 else
6881 if test "$cross_compiling" = yes; then
6882 ac_cv_func_mmap_fixed_mapped=no
6883 else
6884 cat > conftest.$ac_ext <<EOF
6885 #line 6886 "configure"
6886 #include "confdefs.h"
6888 /* Thanks to Mike Haertel and Jim Avera for this test.
6889 Here is a matrix of mmap possibilities:
6890 mmap private not fixed
6891 mmap private fixed at somewhere currently unmapped
6892 mmap private fixed at somewhere already mapped
6893 mmap shared not fixed
6894 mmap shared fixed at somewhere currently unmapped
6895 mmap shared fixed at somewhere already mapped
6896 For private mappings, we should verify that changes cannot be read()
6897 back from the file, nor mmap's back from the file at a different
6898 address. (There have been systems where private was not correctly
6899 implemented like the infamous i386 svr4.0, and systems where the
6900 VM page cache was not coherent with the filesystem buffer cache
6901 like early versions of FreeBSD and possibly contemporary NetBSD.)
6902 For shared mappings, we should conversely verify that changes get
6903 propogated back to all the places they're supposed to be.
6905 Grep wants private fixed already mapped.
6906 The main things grep needs to know about mmap are:
6907 * does it exist and is it safe to write into the mmap'd area
6908 * how to use it (BSD variants) */
6909 #include <sys/types.h>
6910 #include <fcntl.h>
6911 #include <sys/mman.h>
6913 #if HAVE_SYS_TYPES_H
6914 # include <sys/types.h>
6915 #endif
6917 #if HAVE_STDLIB_H
6918 # include <stdlib.h>
6919 #endif
6921 #if HAVE_SYS_STAT_H
6922 # include <sys/stat.h>
6923 #endif
6925 #if HAVE_UNISTD_H
6926 # include <unistd.h>
6927 #endif
6929 /* This mess was copied from the GNU getpagesize.h. */
6930 #ifndef HAVE_GETPAGESIZE
6932 /* Assume that all systems that can run configure have sys/param.h. */
6933 # ifndef HAVE_SYS_PARAM_H
6934 # define HAVE_SYS_PARAM_H 1
6935 # endif
6937 # ifdef _SC_PAGESIZE
6938 # define getpagesize() sysconf(_SC_PAGESIZE)
6939 # else /* no _SC_PAGESIZE */
6940 # ifdef HAVE_SYS_PARAM_H
6941 # include <sys/param.h>
6942 # ifdef EXEC_PAGESIZE
6943 # define getpagesize() EXEC_PAGESIZE
6944 # else /* no EXEC_PAGESIZE */
6945 # ifdef NBPG
6946 # define getpagesize() NBPG * CLSIZE
6947 # ifndef CLSIZE
6948 # define CLSIZE 1
6949 # endif /* no CLSIZE */
6950 # else /* no NBPG */
6951 # ifdef NBPC
6952 # define getpagesize() NBPC
6953 # else /* no NBPC */
6954 # ifdef PAGESIZE
6955 # define getpagesize() PAGESIZE
6956 # endif /* PAGESIZE */
6957 # endif /* no NBPC */
6958 # endif /* no NBPG */
6959 # endif /* no EXEC_PAGESIZE */
6960 # else /* no HAVE_SYS_PARAM_H */
6961 # define getpagesize() 8192 /* punt totally */
6962 # endif /* no HAVE_SYS_PARAM_H */
6963 # endif /* no _SC_PAGESIZE */
6965 #endif /* no HAVE_GETPAGESIZE */
6967 #ifdef __cplusplus
6968 extern "C" { void *malloc(unsigned); }
6969 #else
6970 char *malloc();
6971 #endif
6974 main()
6976 char *data, *data2, *data3;
6977 int i, pagesize;
6978 int fd;
6980 pagesize = getpagesize();
6983 * First, make a file with some known garbage in it.
6985 data = malloc(pagesize);
6986 if (!data)
6987 exit(1);
6988 for (i = 0; i < pagesize; ++i)
6989 *(data + i) = rand();
6990 umask(0);
6991 fd = creat("conftestmmap", 0600);
6992 if (fd < 0)
6993 exit(1);
6994 if (write(fd, data, pagesize) != pagesize)
6995 exit(1);
6996 close(fd);
6999 * Next, try to mmap the file at a fixed address which
7000 * already has something else allocated at it. If we can,
7001 * also make sure that we see the same garbage.
7003 fd = open("conftestmmap", O_RDWR);
7004 if (fd < 0)
7005 exit(1);
7006 data2 = malloc(2 * pagesize);
7007 if (!data2)
7008 exit(1);
7009 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7010 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
7011 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7012 exit(1);
7013 for (i = 0; i < pagesize; ++i)
7014 if (*(data + i) != *(data2 + i))
7015 exit(1);
7018 * Finally, make sure that changes to the mapped area
7019 * do not percolate back to the file as seen by read().
7020 * (This is a bug on some variants of i386 svr4.0.)
7022 for (i = 0; i < pagesize; ++i)
7023 *(data2 + i) = *(data2 + i) + 1;
7024 data3 = malloc(pagesize);
7025 if (!data3)
7026 exit(1);
7027 if (read(fd, data3, pagesize) != pagesize)
7028 exit(1);
7029 for (i = 0; i < pagesize; ++i)
7030 if (*(data + i) != *(data3 + i))
7031 exit(1);
7032 close(fd);
7033 unlink("conftestmmap");
7034 exit(0);
7038 if { (eval echo configure:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7039 then
7040 ac_cv_func_mmap_fixed_mapped=yes
7041 else
7042 echo "configure: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7044 rm -fr conftest*
7045 ac_cv_func_mmap_fixed_mapped=no
7047 rm -fr conftest*
7052 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
7053 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7054 cat >> confdefs.h <<\EOF
7055 #define HAVE_MMAP 1
7060 for ac_func in madvise mprotect
7062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7063 echo "configure:7064: checking for $ac_func" >&5
7064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7065 echo $ac_n "(cached) $ac_c" 1>&6
7066 else
7067 cat > conftest.$ac_ext <<EOF
7068 #line 7069 "configure"
7069 #include "confdefs.h"
7070 /* System header to define __stub macros and hopefully few prototypes,
7071 which can conflict with char $ac_func(); below. */
7072 #include <assert.h>
7073 /* Override any gcc2 internal prototype to avoid an error. */
7074 /* We use char because int might match the return type of a gcc2
7075 builtin and then its argument prototype would still apply. */
7076 char $ac_func();
7078 int main() {
7080 /* The GNU C library defines this for functions which it implements
7081 to always fail with ENOSYS. Some functions are actually named
7082 something starting with __ and the normal name is an alias. */
7083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7084 choke me
7085 #else
7086 $ac_func();
7087 #endif
7089 ; return 0; }
7091 if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7092 rm -rf conftest*
7093 eval "ac_cv_func_$ac_func=yes"
7094 else
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7097 rm -rf conftest*
7098 eval "ac_cv_func_$ac_func=no"
7100 rm -f conftest*
7103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7104 echo "$ac_t""yes" 1>&6
7105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7106 cat >> confdefs.h <<EOF
7107 #define $ac_tr_func 1
7110 else
7111 echo "$ac_t""no" 1>&6
7113 done
7115 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
7116 true+yes ) cat >> confdefs.h <<\EOF
7117 #define USE_MMAP 1
7120 esac
7122 rm -f doc/config.status
7123 trap '' 1 2 15
7124 cat > confcache <<\EOF
7125 # This file is a shell script that caches the results of configure
7126 # tests run on this system so they can be shared between configure
7127 # scripts and configure runs. It is not useful on other systems.
7128 # If it contains results you don't want to keep, you may remove or edit it.
7130 # By default, configure uses ./config.cache as the cache file,
7131 # creating it if it does not exist already. You can give configure
7132 # the --cache-file=FILE option to use a different cache file; that is
7133 # what configure does when it calls configure scripts in
7134 # subdirectories, so they share the cache.
7135 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7136 # config.status only pays attention to the cache file if you give it the
7137 # --recheck option to rerun configure.
7140 # The following way of writing the cache mishandles newlines in values,
7141 # but we know of no workaround that is simple, portable, and efficient.
7142 # So, don't put newlines in cache variables' values.
7143 # Ultrix sh set writes to stderr and can't be redirected directly,
7144 # and sets the high bit in the cache file unless we assign to the vars.
7145 (set) 2>&1 |
7146 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7147 *ac_space=\ *)
7148 # `set' does not quote correctly, so add quotes (double-quote substitution
7149 # turns \\\\ into \\, and sed turns \\ into \).
7150 sed -n \
7151 -e "s/'/'\\\\''/g" \
7152 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7155 # `set' quotes correctly as required by POSIX, so do not add quotes.
7156 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7158 esac >> confcache
7159 if cmp -s $cache_file confcache; then
7161 else
7162 if test -w $cache_file; then
7163 echo "updating cache $cache_file"
7164 cat confcache > $cache_file
7165 else
7166 echo "not updating unwritable cache $cache_file"
7169 rm -f confcache
7171 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7173 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7174 # Let make expand exec_prefix.
7175 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7177 # Any assignment to VPATH causes Sun make to only execute
7178 # the first set of double-colon rules, so remove it if not needed.
7179 # If there is a colon in the path, we need to keep it.
7180 if test "x$srcdir" = x.; then
7181 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7184 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7186 DEFS=-DHAVE_CONFIG_H
7188 # Without the "./", some shells look in PATH for config.status.
7189 : ${CONFIG_STATUS=./config.status}
7191 echo creating $CONFIG_STATUS
7192 rm -f $CONFIG_STATUS
7193 cat > $CONFIG_STATUS <<EOF
7194 #! /bin/sh
7195 # Generated automatically by configure.
7196 # Run this file to recreate the current configuration.
7197 # This directory was configured as follows,
7198 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7200 # $0 $ac_configure_args
7202 # Compiler output produced by configure, useful for debugging
7203 # configure, is in ./config.log if it exists.
7205 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7206 for ac_option
7208 case "\$ac_option" in
7209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7210 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7211 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7212 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7213 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7214 exit 0 ;;
7215 -help | --help | --hel | --he | --h)
7216 echo "\$ac_cs_usage"; exit 0 ;;
7217 *) echo "\$ac_cs_usage"; exit 1 ;;
7218 esac
7219 done
7221 ac_given_srcdir=$srcdir
7222 ac_given_INSTALL="$INSTALL"
7224 trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7226 cat >> $CONFIG_STATUS <<EOF
7228 # Protect against being on the right side of a sed subst in config.status.
7229 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7230 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7231 $ac_vpsub
7232 $extrasub
7233 s%@SHELL@%$SHELL%g
7234 s%@CFLAGS@%$CFLAGS%g
7235 s%@CPPFLAGS@%$CPPFLAGS%g
7236 s%@CXXFLAGS@%$CXXFLAGS%g
7237 s%@FFLAGS@%$FFLAGS%g
7238 s%@DEFS@%$DEFS%g
7239 s%@LDFLAGS@%$LDFLAGS%g
7240 s%@LIBS@%$LIBS%g
7241 s%@exec_prefix@%$exec_prefix%g
7242 s%@prefix@%$prefix%g
7243 s%@program_transform_name@%$program_transform_name%g
7244 s%@bindir@%$bindir%g
7245 s%@sbindir@%$sbindir%g
7246 s%@libexecdir@%$libexecdir%g
7247 s%@datadir@%$datadir%g
7248 s%@sysconfdir@%$sysconfdir%g
7249 s%@sharedstatedir@%$sharedstatedir%g
7250 s%@localstatedir@%$localstatedir%g
7251 s%@libdir@%$libdir%g
7252 s%@includedir@%$includedir%g
7253 s%@oldincludedir@%$oldincludedir%g
7254 s%@infodir@%$infodir%g
7255 s%@mandir@%$mandir%g
7256 s%@host@%$host%g
7257 s%@host_alias@%$host_alias%g
7258 s%@host_cpu@%$host_cpu%g
7259 s%@host_vendor@%$host_vendor%g
7260 s%@host_os@%$host_os%g
7261 s%@target@%$target%g
7262 s%@target_alias@%$target_alias%g
7263 s%@target_cpu@%$target_cpu%g
7264 s%@target_vendor@%$target_vendor%g
7265 s%@target_os@%$target_os%g
7266 s%@build@%$build%g
7267 s%@build_alias@%$build_alias%g
7268 s%@build_cpu@%$build_cpu%g
7269 s%@build_vendor@%$build_vendor%g
7270 s%@build_os@%$build_os%g
7271 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7272 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7273 s%@INSTALL_DATA@%$INSTALL_DATA%g
7274 s%@PACKAGE@%$PACKAGE%g
7275 s%@VERSION@%$VERSION%g
7276 s%@ACLOCAL@%$ACLOCAL%g
7277 s%@AUTOCONF@%$AUTOCONF%g
7278 s%@AUTOMAKE@%$AUTOMAKE%g
7279 s%@AUTOHEADER@%$AUTOHEADER%g
7280 s%@MAKEINFO@%$MAKEINFO%g
7281 s%@SET_MAKE@%$SET_MAKE%g
7282 s%@bfd_version@%$bfd_version%g
7283 s%@bfd_version_string@%$bfd_version_string%g
7284 s%@AR@%$AR%g
7285 s%@RANLIB@%$RANLIB%g
7286 s%@CC@%$CC%g
7287 s%@LN_S@%$LN_S%g
7288 s%@OBJEXT@%$OBJEXT%g
7289 s%@EXEEXT@%$EXEEXT%g
7290 s%@STRIP@%$STRIP%g
7291 s%@LIBTOOL@%$LIBTOOL%g
7292 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7293 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7294 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7295 s%@MAINT@%$MAINT%g
7296 s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
7297 s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
7298 s%@bfdlibdir@%$bfdlibdir%g
7299 s%@bfdincludedir@%$bfdincludedir%g
7300 s%@CPP@%$CPP%g
7301 s%@ALLOCA@%$ALLOCA%g
7302 s%@USE_NLS@%$USE_NLS%g
7303 s%@MSGFMT@%$MSGFMT%g
7304 s%@GMSGFMT@%$GMSGFMT%g
7305 s%@XGETTEXT@%$XGETTEXT%g
7306 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7307 s%@CATALOGS@%$CATALOGS%g
7308 s%@CATOBJEXT@%$CATOBJEXT%g
7309 s%@DATADIRNAME@%$DATADIRNAME%g
7310 s%@GMOFILES@%$GMOFILES%g
7311 s%@INSTOBJEXT@%$INSTOBJEXT%g
7312 s%@INTLDEPS@%$INTLDEPS%g
7313 s%@INTLLIBS@%$INTLLIBS%g
7314 s%@INTLOBJS@%$INTLOBJS%g
7315 s%@POFILES@%$POFILES%g
7316 s%@POSUB@%$POSUB%g
7317 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7318 s%@GT_NO@%$GT_NO%g
7319 s%@GT_YES@%$GT_YES%g
7320 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7321 s%@l@%$l%g
7322 s%@HDEFINES@%$HDEFINES%g
7323 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
7324 s%@BFD_HOST_LONG_LONG@%$BFD_HOST_LONG_LONG%g
7325 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
7326 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
7327 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
7328 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7329 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
7330 s%@COREFILE@%$COREFILE%g
7331 s%@COREFLAG@%$COREFLAG%g
7332 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
7333 s%@WIN32LIBADD@%$WIN32LIBADD%g
7334 s%@TDEFINES@%$TDEFINES%g
7335 s%@wordsize@%$wordsize%g
7336 s%@bfd_libs@%$bfd_libs%g
7337 s%@all_backends@%$all_backends%g
7338 s%@bfd_backends@%$bfd_backends%g
7339 s%@bfd_machines@%$bfd_machines%g
7340 s%@bfd_default_target_size@%$bfd_default_target_size%g
7341 s%@bfd_file_ptr@%$bfd_file_ptr%g
7342 s%@bfd_ufile_ptr@%$bfd_ufile_ptr%g
7343 s%@tdefaults@%$tdefaults%g
7345 CEOF
7348 cat >> $CONFIG_STATUS <<\EOF
7350 # Split the substitutions into bite-sized pieces for seds with
7351 # small command number limits, like on Digital OSF/1 and HP-UX.
7352 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7353 ac_file=1 # Number of current file.
7354 ac_beg=1 # First line for current file.
7355 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7356 ac_more_lines=:
7357 ac_sed_cmds=""
7358 while $ac_more_lines; do
7359 if test $ac_beg -gt 1; then
7360 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7361 else
7362 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7364 if test ! -s conftest.s$ac_file; then
7365 ac_more_lines=false
7366 rm -f conftest.s$ac_file
7367 else
7368 if test -z "$ac_sed_cmds"; then
7369 ac_sed_cmds="sed -f conftest.s$ac_file"
7370 else
7371 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7373 ac_file=`expr $ac_file + 1`
7374 ac_beg=$ac_end
7375 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7377 done
7378 if test -z "$ac_sed_cmds"; then
7379 ac_sed_cmds=cat
7383 cat >> $CONFIG_STATUS <<EOF
7385 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in"}
7387 cat >> $CONFIG_STATUS <<\EOF
7388 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7389 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7390 case "$ac_file" in
7391 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7392 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7393 *) ac_file_in="${ac_file}.in" ;;
7394 esac
7396 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7398 # Remove last slash and all that follows it. Not all systems have dirname.
7399 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7400 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7401 # The file is in a subdirectory.
7402 test ! -d "$ac_dir" && mkdir "$ac_dir"
7403 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7404 # A "../" for each directory in $ac_dir_suffix.
7405 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7406 else
7407 ac_dir_suffix= ac_dots=
7410 case "$ac_given_srcdir" in
7411 .) srcdir=.
7412 if test -z "$ac_dots"; then top_srcdir=.
7413 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7414 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7415 *) # Relative path.
7416 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7417 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7418 esac
7420 case "$ac_given_INSTALL" in
7421 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7422 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7423 esac
7425 echo creating "$ac_file"
7426 rm -f "$ac_file"
7427 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7428 case "$ac_file" in
7429 *Makefile*) ac_comsub="1i\\
7430 # $configure_input" ;;
7431 *) ac_comsub= ;;
7432 esac
7434 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7435 sed -e "$ac_comsub
7436 s%@configure_input@%$configure_input%g
7437 s%@srcdir@%$srcdir%g
7438 s%@top_srcdir@%$top_srcdir%g
7439 s%@INSTALL@%$INSTALL%g
7440 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7441 fi; done
7442 rm -f conftest.s*
7444 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7445 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7447 # ac_d sets the value in "#define NAME VALUE" lines.
7448 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7449 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7450 ac_dC='\3'
7451 ac_dD='%g'
7452 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7453 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7454 ac_uB='\([ ]\)%\1#\2define\3'
7455 ac_uC=' '
7456 ac_uD='\4%g'
7457 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7458 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7459 ac_eB='$%\1#\2define\3'
7460 ac_eC=' '
7461 ac_eD='%g'
7463 if test "${CONFIG_HEADERS+set}" != set; then
7465 cat >> $CONFIG_STATUS <<EOF
7466 CONFIG_HEADERS="config.h:config.in"
7468 cat >> $CONFIG_STATUS <<\EOF
7470 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7471 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7472 case "$ac_file" in
7473 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7474 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7475 *) ac_file_in="${ac_file}.in" ;;
7476 esac
7478 echo creating $ac_file
7480 rm -f conftest.frag conftest.in conftest.out
7481 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7482 cat $ac_file_inputs > conftest.in
7486 # Transform confdefs.h into a sed script conftest.vals that substitutes
7487 # the proper values into config.h.in to produce config.h. And first:
7488 # Protect against being on the right side of a sed subst in config.status.
7489 # Protect against being in an unquoted here document in config.status.
7490 rm -f conftest.vals
7491 cat > conftest.hdr <<\EOF
7492 s/[\\&%]/\\&/g
7493 s%[\\$`]%\\&%g
7494 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7495 s%ac_d%ac_u%gp
7496 s%ac_u%ac_e%gp
7498 sed -n -f conftest.hdr confdefs.h > conftest.vals
7499 rm -f conftest.hdr
7501 # This sed command replaces #undef with comments. This is necessary, for
7502 # example, in the case of _POSIX_SOURCE, which is predefined and required
7503 # on some systems where configure will not decide to define it.
7504 cat >> conftest.vals <<\EOF
7505 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7508 # Break up conftest.vals because some shells have a limit on
7509 # the size of here documents, and old seds have small limits too.
7511 rm -f conftest.tail
7512 while :
7514 ac_lines=`grep -c . conftest.vals`
7515 # grep -c gives empty output for an empty file on some AIX systems.
7516 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7517 # Write a limited-size here document to conftest.frag.
7518 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7519 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7520 echo 'CEOF
7521 sed -f conftest.frag conftest.in > conftest.out
7522 rm -f conftest.in
7523 mv conftest.out conftest.in
7524 ' >> $CONFIG_STATUS
7525 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7526 rm -f conftest.vals
7527 mv conftest.tail conftest.vals
7528 done
7529 rm -f conftest.vals
7531 cat >> $CONFIG_STATUS <<\EOF
7532 rm -f conftest.frag conftest.h
7533 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7534 cat conftest.in >> conftest.h
7535 rm -f conftest.in
7536 if cmp -s $ac_file conftest.h 2>/dev/null; then
7537 echo "$ac_file is unchanged"
7538 rm -f conftest.h
7539 else
7540 # Remove last slash and all that follows it. Not all systems have dirname.
7541 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7542 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7543 # The file is in a subdirectory.
7544 test ! -d "$ac_dir" && mkdir "$ac_dir"
7546 rm -f $ac_file
7547 mv conftest.h $ac_file
7549 fi; done
7552 cat >> $CONFIG_STATUS <<EOF
7556 cat >> $CONFIG_STATUS <<\EOF
7557 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7558 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
7559 exit 0
7561 chmod +x $CONFIG_STATUS
7562 rm -fr confdefs* $ac_clean_files
7563 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1