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