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