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