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