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