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