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