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