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