source: trunk/src/binutils/opcodes/configure@ 1853

Last change on this file since 1853 was 1853, checked in by bird, 21 years ago

regenerated (intl)

  • Property cvs2svn:cvs-rev set to 1.9
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 154.1 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=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
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24ac_help="$ac_help
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
26ac_help="$ac_help
27 --enable-targets alternative target configurations"
28ac_help="$ac_help
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
30ac_help="$ac_help
31 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
32ac_help="$ac_help
33 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
35ac_help="$ac_help
36 --enable-install-libbfd controls installation of libbfd and related headers"
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"
41ac_help="$ac_help
42 --enable-cgen-maint[=dir] build cgen generated files"
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)
365 echo "configure generated by autoconf version 2.13"
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.
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"
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"
525 . $cache_file
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 [email protected].
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
552echo $ac_n "checking for path separator""... $ac_c" 1>&6
553echo "configure:554: checking for path separator" >&5
554# Filter path to get backslahes into forwardslashes
555case "`uname -s 2> /dev/null`" in
556OS/2)
557 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
558 PATH_IFS=';'
559 ;;
560*)
561 PATH_IFS=':'
562 ;;
563esac
564echo "$ac_t""${PATH_IFS}" 1>&6
565
566echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
567echo "configure:568: checking for Cygwin environment" >&5
568if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
569 echo $ac_n "(cached) $ac_c" 1>&6
570else
571 cat > conftest.$ac_ext <<EOF
572#line 573 "configure"
573#include "confdefs.h"
574
575int main() {
576
577#ifndef __CYGWIN__
578#define __CYGWIN__ __CYGWIN32__
579#endif
580return __CYGWIN__;
581; return 0; }
582EOF
583if { (eval echo configure:584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
584 rm -rf conftest*
585 ac_cv_cygwin=yes
586else
587 echo "configure: failed program was:" >&5
588 cat conftest.$ac_ext >&5
589 rm -rf conftest*
590 ac_cv_cygwin=no
591fi
592rm -f conftest*
593rm -f conftest*
594fi
595
596echo "$ac_t""$ac_cv_cygwin" 1>&6
597CYGWIN=
598test "$ac_cv_cygwin" = yes && CYGWIN=yes
599echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
600echo "configure:601: checking for mingw32 environment" >&5
601if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
602 echo $ac_n "(cached) $ac_c" 1>&6
603else
604 cat > conftest.$ac_ext <<EOF
605#line 606 "configure"
606#include "confdefs.h"
607
608int main() {
609return __MINGW32__;
610; return 0; }
611EOF
612if { (eval echo configure:613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
613 rm -rf conftest*
614 ac_cv_mingw32=yes
615else
616 echo "configure: failed program was:" >&5
617 cat conftest.$ac_ext >&5
618 rm -rf conftest*
619 ac_cv_mingw32=no
620fi
621rm -f conftest*
622rm -f conftest*
623fi
624
625echo "$ac_t""$ac_cv_mingw32" 1>&6
626MINGW32=
627test "$ac_cv_mingw32" = yes && MINGW32=yes
628echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
629echo "configure:630: checking for EMX/OS2 environment" >&5
630if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
631 echo $ac_n "(cached) $ac_c" 1>&6
632else
633 : ${CC=gcc.exe}
634cat > conftest.$ac_ext <<EOF
635#line 636 "configure"
636#include "confdefs.h"
637
638int main() {
639return __EMX__;
640; return 0; }
641EOF
642if { (eval echo configure:643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
643 rm -rf conftest*
644 ac_cv_emxos2=yes
645else
646 echo "configure: failed program was:" >&5
647 cat conftest.$ac_ext >&5
648 rm -rf conftest*
649 ac_cv_emxos2=no
650fi
651rm -f conftest*
652rm -f conftest*
653fi
654
655echo "$ac_t""$ac_cv_emxos2" 1>&6
656if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
657 echo $ac_n "(cached) $ac_c" 1>&6
658else
659 if test "$ac_cv_emxos2" = yes ; then
660 ac_cv_libpre=
661else
662 ac_cv_libpre=lib
663fi
664
665fi
666
667EMXOS2=
668test "$ac_cv_emxos2" = yes && EMXOS2=yes
669
670
671
672echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
673echo "configure:674: checking for executable suffix" >&5
674if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
676else
677 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
678 ac_cv_exeext=.exe
679else
680 rm -f conftest*
681 echo 'int main () { return 0; }' > conftest.$ac_ext
682 ac_cv_exeext=
683 if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
684 for file in conftest.*; do
685 case $file in
686 *.c | *.o | *.obj) ;;
687 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
688 esac
689 done
690 else
691 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
692 fi
693 rm -f conftest*
694 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
695fi
696fi
697
698EXEEXT=""
699test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
700echo "$ac_t""${ac_cv_exeext}" 1>&6
701ac_exeext=$EXEEXT
702
703
704
705ac_aux_dir=
706for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
707 if test -f $ac_dir/install-sh; then
708 ac_aux_dir=$ac_dir
709 ac_install_sh="$ac_aux_dir/install-sh -c"
710 break
711 elif test -f $ac_dir/install.sh; then
712 ac_aux_dir=$ac_dir
713 ac_install_sh="$ac_aux_dir/install.sh -c"
714 break
715 fi
716done
717if test -z "$ac_aux_dir"; then
718 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
719fi
720ac_config_guess=$ac_aux_dir/config.guess
721ac_config_sub=$ac_aux_dir/config.sub
722ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
723
724
725# Do some error checking and defaulting for the host and target type.
726# The inputs are:
727# configure --host=HOST --target=TARGET --build=BUILD NONOPT
728#
729# The rules are:
730# 1. You are not allowed to specify --host, --target, and nonopt at the
731# same time.
732# 2. Host defaults to nonopt.
733# 3. If nonopt is not specified, then host defaults to the current host,
734# as determined by config.guess.
735# 4. Target and build default to nonopt.
736# 5. If nonopt is not specified, then target and build default to host.
737
738# The aliases save the names the user supplied, while $host etc.
739# will get canonicalized.
740case $host---$target---$nonopt in
741NONE---*---* | *---NONE---* | *---*---NONE) ;;
742*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
743esac
744
745
746# Make sure we can run config.sub.
747if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
748else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
749fi
750
751echo $ac_n "checking host system type""... $ac_c" 1>&6
752echo "configure:753: checking host system type" >&5
753
754host_alias=$host
755case "$host_alias" in
756NONE)
757 case $nonopt in
758 NONE)
759 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
760 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
761 fi ;;
762 *) host_alias=$nonopt ;;
763 esac ;;
764esac
765
766host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
767host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
768host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
769host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
770echo "$ac_t""$host" 1>&6
771
772echo $ac_n "checking target system type""... $ac_c" 1>&6
773echo "configure:774: checking target system type" >&5
774
775target_alias=$target
776case "$target_alias" in
777NONE)
778 case $nonopt in
779 NONE) target_alias=$host_alias ;;
780 *) target_alias=$nonopt ;;
781 esac ;;
782esac
783
784target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
785target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
786target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
787target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
788echo "$ac_t""$target" 1>&6
789
790echo $ac_n "checking build system type""... $ac_c" 1>&6
791echo "configure:792: checking build system type" >&5
792
793build_alias=$build
794case "$build_alias" in
795NONE)
796 case $nonopt in
797 NONE) build_alias=$host_alias ;;
798 *) build_alias=$nonopt ;;
799 esac ;;
800esac
801
802build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
803build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
804build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
805build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
806echo "$ac_t""$build" 1>&6
807
808test "$host_alias" != "$target_alias" &&
809 test "$program_prefix$program_suffix$program_transform_name" = \
810 NONENONEs,x,x, &&
811 program_prefix=${target_alias}-
812
813# Extract the first word of "gcc", so it can be a program name with args.
814set dummy gcc; ac_word=$2
815echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
816echo "configure:817: checking for $ac_word" >&5
817if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
819else
820 if test -n "$CC"; then
821 ac_cv_prog_CC="$CC" # Let the user override the test.
822else
823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
824 ac_dummy="$PATH"
825 for ac_dir in $ac_dummy; do
826 test -z "$ac_dir" && ac_dir=.
827 if test -f $ac_dir/$ac_word -o \
828 -f $ac_dir/$ac_word$ac_exeext ; then
829 ac_cv_prog_CC="gcc"
830 break
831 fi
832 done
833 IFS="$ac_save_ifs"
834fi
835fi
836CC="$ac_cv_prog_CC"
837if test -n "$CC"; then
838 echo "$ac_t""$CC" 1>&6
839else
840 echo "$ac_t""no" 1>&6
841fi
842
843if test -z "$CC"; then
844 # Extract the first word of "cc", so it can be a program name with args.
845set dummy cc; ac_word=$2
846echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
847echo "configure:848: checking for $ac_word" >&5
848if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
850else
851 if test -n "$CC"; then
852 ac_cv_prog_CC="$CC" # Let the user override the test.
853else
854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
855 ac_prog_rejected=no
856 ac_dummy="$PATH"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word -o \
860 -f $ac_dir/$ac_word$ac_exeext ; then
861 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
862 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
863 ac_prog_rejected=yes
864 continue
865 fi
866 ac_cv_prog_CC="cc"
867 break
868 fi
869 done
870 IFS="$ac_save_ifs"
871if test $ac_prog_rejected = yes; then
872 # We found a bogon in the path, so make sure we never use it.
873 set dummy $ac_cv_prog_CC
874 shift
875 if test $# -gt 0; then
876 # We chose a different compiler from the bogus one.
877 # However, it has the same basename, so the bogon will be chosen
878 # first if we set CC to just the basename; use the full file name.
879 shift
880 set dummy "$ac_dir/$ac_word" "$@"
881 shift
882 ac_cv_prog_CC="$@"
883 fi
884fi
885fi
886fi
887CC="$ac_cv_prog_CC"
888if test -n "$CC"; then
889 echo "$ac_t""$CC" 1>&6
890else
891 echo "$ac_t""no" 1>&6
892fi
893
894 if test -z "$CC"; then
895 case "`uname -s`" in
896 *win32* | *WIN32*)
897 # Extract the first word of "cl", so it can be a program name with args.
898set dummy cl; ac_word=$2
899echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
900echo "configure:901: checking for $ac_word" >&5
901if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
903else
904 if test -n "$CC"; then
905 ac_cv_prog_CC="$CC" # Let the user override the test.
906else
907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
908 ac_dummy="$PATH"
909 for ac_dir in $ac_dummy; do
910 test -z "$ac_dir" && ac_dir=.
911 if test -f $ac_dir/$ac_word -o \
912 -f $ac_dir/$ac_word$ac_exeext ; then
913 ac_cv_prog_CC="cl"
914 break
915 fi
916 done
917 IFS="$ac_save_ifs"
918fi
919fi
920CC="$ac_cv_prog_CC"
921if test -n "$CC"; then
922 echo "$ac_t""$CC" 1>&6
923else
924 echo "$ac_t""no" 1>&6
925fi
926 ;;
927 esac
928 fi
929 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
930fi
931
932echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
933echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
934
935ac_ext=c
936# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
937ac_cpp='$CPP $CPPFLAGS'
938ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
939ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
940cross_compiling=$ac_cv_prog_cc_cross
941
942cat > conftest.$ac_ext << EOF
943
944#line 945 "configure"
945#include "confdefs.h"
946
947main(){return(0);}
948EOF
949if { (eval echo configure:950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
950 ac_cv_prog_cc_works=yes
951 # If we can't run a trivial program, we are probably using a cross compiler.
952 if (./conftest; exit) 2>/dev/null; then
953 ac_cv_prog_cc_cross=no
954 else
955 ac_cv_prog_cc_cross=yes
956 fi
957else
958 echo "configure: failed program was:" >&5
959 cat conftest.$ac_ext >&5
960 ac_cv_prog_cc_works=no
961fi
962rm -fr conftest*
963ac_ext=c
964# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
965ac_cpp='$CPP $CPPFLAGS'
966ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
967ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
968cross_compiling=$ac_cv_prog_cc_cross
969
970echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
971if test $ac_cv_prog_cc_works = no; then
972 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
973fi
974echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
975echo "configure:976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
976echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
977cross_compiling=$ac_cv_prog_cc_cross
978
979echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
980echo "configure:981: checking whether we are using GNU C" >&5
981if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
983else
984 cat > conftest.c <<EOF
985#ifdef __GNUC__
986 yes;
987#endif
988EOF
989if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
990 ac_cv_prog_gcc=yes
991else
992 ac_cv_prog_gcc=no
993fi
994fi
995
996echo "$ac_t""$ac_cv_prog_gcc" 1>&6
997
998if test $ac_cv_prog_gcc = yes; then
999 GCC=yes
1000else
1001 GCC=
1002fi
1003
1004ac_test_CFLAGS="${CFLAGS+set}"
1005ac_save_CFLAGS="$CFLAGS"
1006CFLAGS=
1007echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1008echo "configure:1009: checking whether ${CC-cc} accepts -g" >&5
1009if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1011else
1012 echo 'void f(){}' > conftest.c
1013if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1014 ac_cv_prog_cc_g=yes
1015else
1016 ac_cv_prog_cc_g=no
1017fi
1018rm -f conftest*
1019
1020fi
1021
1022echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1023if test "$ac_test_CFLAGS" = set; then
1024 CFLAGS="$ac_save_CFLAGS"
1025elif test $ac_cv_prog_cc_g = yes; then
1026 if test "$GCC" = yes; then
1027 CFLAGS="-g -O2"
1028 else
1029 CFLAGS="-g"
1030 fi
1031else
1032 if test "$GCC" = yes; then
1033 CFLAGS="-O2"
1034 else
1035 CFLAGS=
1036 fi
1037fi
1038
1039echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1040echo "configure:1041: checking for POSIXized ISC" >&5
1041if test -d /etc/conf/kconfig.d &&
1042 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1043then
1044 echo "$ac_t""yes" 1>&6
1045 ISC=yes # If later tests want to check for ISC.
1046 cat >> confdefs.h <<\EOF
1047#define _POSIX_SOURCE 1
1048EOF
1049
1050 if test "$GCC" = yes; then
1051 CC="$CC -posix"
1052 else
1053 CC="$CC -Xp"
1054 fi
1055else
1056 echo "$ac_t""no" 1>&6
1057 ISC=
1058fi
1059
1060
1061# We currently only use the version number for the name of any shared
1062# library. For user convenience, we always use the same version
1063# number that BFD is using.
1064BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
1065
1066am__api_version="1.4"
1067# Find a good install program. We prefer a C program (faster),
1068# so one script is as good as another. But avoid the broken or
1069# incompatible versions:
1070# SysV /etc/install, /usr/sbin/install
1071# SunOS /usr/etc/install
1072# IRIX /sbin/install
1073# AIX /bin/install
1074# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1075# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1076# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1077# ./install, which can be erroneously created by make from ./install.sh.
1078echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1079echo "configure:1080: checking for a BSD compatible install" >&5
1080if test -z "$INSTALL"; then
1081if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1083else
1084 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
1085 for ac_dir in $PATH; do
1086 # Account for people who put trailing slashes in PATH elements.
1087 case "$ac_dir/" in
1088 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1089 # We reject the install program from OS/2 or W3.1
1090 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
1091 *)
1092 # OSF1 and SCO ODT 3.0 have their own names for install.
1093 # Don't use installbsd from OSF since it installs stuff as root
1094 # by default.
1095 for ac_prog in ginstall scoinst install; do
1096 if test -f $ac_dir/$ac_prog$ac_exeext; then
1097 if test $ac_prog = install &&
1098 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1099 # AIX install. It has an incompatible calling convention.
1100 :
1101 else
1102 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
1103 break 2
1104 fi
1105 fi
1106 done
1107 ;;
1108 esac
1109 done
1110 IFS="$ac_save_IFS"
1111
1112fi
1113 if test "${ac_cv_path_install+set}" = set; then
1114 INSTALL="$ac_cv_path_install"
1115 else
1116 # As a last resort, use the slow shell script. We don't cache a
1117 # path for INSTALL within a source directory, because that will
1118 # break other packages using the cache if that directory is
1119 # removed, or if the path is relative.
1120 INSTALL="$ac_install_sh"
1121 fi
1122fi
1123echo "$ac_t""$INSTALL" 1>&6
1124
1125# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1126# It thinks the first close brace ends the variable substitution.
1127test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1128
1129test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1130
1131test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1132
1133echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1134echo "configure:1135: checking whether build environment is sane" >&5
1135# Just in case
1136sleep 1
1137echo timestamp > conftestfile
1138# Do `set' in a subshell so we don't clobber the current shell's
1139# arguments. Must try -L first in case configure is actually a
1140# symlink; some systems play weird games with the mod time of symlinks
1141# (eg FreeBSD returns the mod time of the symlink's containing
1142# directory).
1143if (
1144 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1145 if test "$*" = "X"; then
1146 # -L didn't work.
1147 set X `ls -t $srcdir/configure conftestfile`
1148 fi
1149 if test "$*" != "X $srcdir/configure conftestfile" \
1150 && test "$*" != "X conftestfile $srcdir/configure"; then
1151
1152 # If neither matched, then we have a broken ls. This can happen
1153 # if, for instance, CONFIG_SHELL is bash and it inherits a
1154 # broken ls alias from the environment. This has actually
1155 # happened. Such a system could not be considered "sane".
1156 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1157alias in your environment" 1>&2; exit 1; }
1158 fi
1159
1160 test "$2" = conftestfile
1161 )
1162then
1163 # Ok.
1164 :
1165else
1166 { echo "configure: error: newly created file is older than distributed files!
1167Check your system clock" 1>&2; exit 1; }
1168fi
1169rm -f conftest*
1170echo "$ac_t""yes" 1>&6
1171if test "$program_transform_name" = s,x,x,; then
1172 program_transform_name=
1173else
1174 # Double any \ or $. echo might interpret backslashes.
1175 cat <<\EOF_SED > conftestsed
1176s,\\,\\\\,g; s,\$,$$,g
1177EOF_SED
1178 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1179 rm -f conftestsed
1180fi
1181test "$program_prefix" != NONE &&
1182 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1183# Use a double $ so make ignores it.
1184test "$program_suffix" != NONE &&
1185 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1186
1187# sed with no file args requires a program.
1188test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1189
1190echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1191echo "configure:1192: checking whether ${MAKE-make} sets \${MAKE}" >&5
1192set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1193if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1195else
1196 cat > conftestmake <<\EOF
1197all:
1198 @echo 'ac_maketemp="${MAKE}"'
1199EOF
1200# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1201eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1202if test -n "$ac_maketemp"; then
1203 eval ac_cv_prog_make_${ac_make}_set=yes
1204else
1205 eval ac_cv_prog_make_${ac_make}_set=no
1206fi
1207rm -f conftestmake
1208fi
1209if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1210 echo "$ac_t""yes" 1>&6
1211 SET_MAKE=
1212else
1213 echo "$ac_t""no" 1>&6
1214 SET_MAKE="MAKE=${MAKE-make}"
1215fi
1216
1217
1218PACKAGE=opcodes
1219
1220VERSION=${BFD_VERSION}
1221
1222if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1223 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1224fi
1225cat >> confdefs.h <<EOF
1226#define PACKAGE "$PACKAGE"
1227EOF
1228
1229cat >> confdefs.h <<EOF
1230#define VERSION "$VERSION"
1231EOF
1232
1233
1234
1235missing_dir=`cd $ac_aux_dir && pwd`
1236echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1237echo "configure:1238: checking for working aclocal-${am__api_version}" >&5
1238# Run test in a subshell; some versions of sh will print an error if
1239# an executable is not found, even if stderr is redirected.
1240# Redirect stdin to placate older versions of autoconf. Sigh.
1241if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1242 ACLOCAL=aclocal-${am__api_version}
1243 echo "$ac_t""found" 1>&6
1244else
1245 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1246 echo "$ac_t""missing" 1>&6
1247fi
1248
1249echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1250echo "configure:1251: checking for working autoconf" >&5
1251# Run test in a subshell; some versions of sh will print an error if
1252# an executable is not found, even if stderr is redirected.
1253# Redirect stdin to placate older versions of autoconf. Sigh.
1254if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1255 AUTOCONF=autoconf
1256 echo "$ac_t""found" 1>&6
1257else
1258 AUTOCONF="$missing_dir/missing autoconf"
1259 echo "$ac_t""missing" 1>&6
1260fi
1261
1262echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1263echo "configure:1264: checking for working automake-${am__api_version}" >&5
1264# Run test in a subshell; some versions of sh will print an error if
1265# an executable is not found, even if stderr is redirected.
1266# Redirect stdin to placate older versions of autoconf. Sigh.
1267if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1268 AUTOMAKE=automake-${am__api_version}
1269 echo "$ac_t""found" 1>&6
1270else
1271 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1272 echo "$ac_t""missing" 1>&6
1273fi
1274
1275echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1276echo "configure:1277: checking for working autoheader" >&5
1277# Run test in a subshell; some versions of sh will print an error if
1278# an executable is not found, even if stderr is redirected.
1279# Redirect stdin to placate older versions of autoconf. Sigh.
1280if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1281 AUTOHEADER=autoheader
1282 echo "$ac_t""found" 1>&6
1283else
1284 AUTOHEADER="$missing_dir/missing autoheader"
1285 echo "$ac_t""missing" 1>&6
1286fi
1287
1288echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1289echo "configure:1290: checking for working makeinfo" >&5
1290# Run test in a subshell; some versions of sh will print an error if
1291# an executable is not found, even if stderr is redirected.
1292# Redirect stdin to placate older versions of autoconf. Sigh.
1293if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1294 MAKEINFO=makeinfo
1295 echo "$ac_t""found" 1>&6
1296else
1297 MAKEINFO="$missing_dir/missing makeinfo"
1298 echo "$ac_t""missing" 1>&6
1299fi
1300
1301
1302
1303if test $host != $build; then
1304 ac_tool_prefix=${host_alias}-
1305else
1306 ac_tool_prefix=
1307fi
1308
1309# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1310set dummy ${ac_tool_prefix}ar; ac_word=$2
1311echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1312echo "configure:1313: checking for $ac_word" >&5
1313if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1315else
1316 if test -n "$AR"; then
1317 ac_cv_prog_AR="$AR" # Let the user override the test.
1318else
1319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1320 ac_dummy="$PATH"
1321 for ac_dir in $ac_dummy; do
1322 test -z "$ac_dir" && ac_dir=.
1323 if test -f $ac_dir/$ac_word -o \
1324 -f $ac_dir/$ac_word$ac_exeext ; then
1325 ac_cv_prog_AR="${ac_tool_prefix}ar"
1326 break
1327 fi
1328 done
1329 IFS="$ac_save_ifs"
1330 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1331fi
1332fi
1333AR="$ac_cv_prog_AR"
1334if test -n "$AR"; then
1335 echo "$ac_t""$AR" 1>&6
1336else
1337 echo "$ac_t""no" 1>&6
1338fi
1339
1340
1341
1342# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1343set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1344echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1345echo "configure:1346: checking for $ac_word" >&5
1346if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1348else
1349 if test -n "$RANLIB"; then
1350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1351else
1352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1353 ac_dummy="$PATH"
1354 for ac_dir in $ac_dummy; do
1355 test -z "$ac_dir" && ac_dir=.
1356 if test -f $ac_dir/$ac_word -o \
1357 -f $ac_dir/$ac_word$ac_exeext ; then
1358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1359 break
1360 fi
1361 done
1362 IFS="$ac_save_ifs"
1363fi
1364fi
1365RANLIB="$ac_cv_prog_RANLIB"
1366if test -n "$RANLIB"; then
1367 echo "$ac_t""$RANLIB" 1>&6
1368else
1369 echo "$ac_t""no" 1>&6
1370fi
1371
1372
1373if test -z "$ac_cv_prog_RANLIB"; then
1374if test -n "$ac_tool_prefix"; then
1375 # Extract the first word of "ranlib", so it can be a program name with args.
1376set dummy ranlib; ac_word=$2
1377echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1378echo "configure:1379: checking for $ac_word" >&5
1379if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1381else
1382 if test -n "$RANLIB"; then
1383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1384else
1385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1386 ac_dummy="$PATH"
1387 for ac_dir in $ac_dummy; do
1388 test -z "$ac_dir" && ac_dir=.
1389 if test -f $ac_dir/$ac_word -o \
1390 -f $ac_dir/$ac_word$ac_exeext ; then
1391 ac_cv_prog_RANLIB="ranlib"
1392 break
1393 fi
1394 done
1395 IFS="$ac_save_ifs"
1396 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1397fi
1398fi
1399RANLIB="$ac_cv_prog_RANLIB"
1400if test -n "$RANLIB"; then
1401 echo "$ac_t""$RANLIB" 1>&6
1402else
1403 echo "$ac_t""no" 1>&6
1404fi
1405
1406else
1407 RANLIB=":"
1408fi
1409fi
1410
1411
1412# Check whether --enable-shared or --disable-shared was given.
1413if test "${enable_shared+set}" = set; then
1414 enableval="$enable_shared"
1415 p=${PACKAGE-default}
1416case $enableval in
1417yes) enable_shared=yes ;;
1418no) enable_shared=no ;;
1419*)
1420 enable_shared=no
1421 # Look at the argument we got. We use all the common list separators.
1422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1423 for pkg in $enableval; do
1424 if test "X$pkg" = "X$p"; then
1425 enable_shared=yes
1426 fi
1427 done
1428 IFS="$ac_save_ifs"
1429 ;;
1430esac
1431else
1432 enable_shared=no
1433fi
1434
1435
1436# Check whether --enable-static or --disable-static was given.
1437if test "${enable_static+set}" = set; then
1438 enableval="$enable_static"
1439 p=${PACKAGE-default}
1440case $enableval in
1441yes) enable_static=yes ;;
1442no) enable_static=no ;;
1443*)
1444 enable_static=no
1445 # Look at the argument we got. We use all the common list separators.
1446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1447 for pkg in $enableval; do
1448 if test "X$pkg" = "X$p"; then
1449 enable_static=yes
1450 fi
1451 done
1452 IFS="$ac_save_ifs"
1453 ;;
1454esac
1455else
1456 enable_static=yes
1457fi
1458
1459# Check whether --enable-fast-install or --disable-fast-install was given.
1460if test "${enable_fast_install+set}" = set; then
1461 enableval="$enable_fast_install"
1462 p=${PACKAGE-default}
1463case $enableval in
1464yes) enable_fast_install=yes ;;
1465no) enable_fast_install=no ;;
1466*)
1467 enable_fast_install=no
1468 # Look at the argument we got. We use all the common list separators.
1469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1470 for pkg in $enableval; do
1471 if test "X$pkg" = "X$p"; then
1472 enable_fast_install=yes
1473 fi
1474 done
1475 IFS="$ac_save_ifs"
1476 ;;
1477esac
1478else
1479 enable_fast_install=yes
1480fi
1481
1482# Check whether --with-gnu-ld or --without-gnu-ld was given.
1483if test "${with_gnu_ld+set}" = set; then
1484 withval="$with_gnu_ld"
1485 test "$withval" = no || with_gnu_ld=yes
1486else
1487 with_gnu_ld=no
1488fi
1489
1490ac_prog=ld
1491if test "$GCC" = yes; then
1492 # Check if gcc -print-prog-name=ld gives a path.
1493 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1494echo "configure:1495: checking for ld used by GCC" >&5
1495 case $host in
1496 *-*-mingw*)
1497 # gcc leaves a trailing carriage return which upsets mingw
1498 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1499 *)
1500 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1501 esac
1502 case $ac_prog in
1503 # Accept absolute paths.
1504 [\\/]* | [A-Za-z]:[\\/]*)
1505 re_direlt='/[^/][^/]*/\.\./'
1506 # Canonicalize the path of ld
1507 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1508 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1509 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1510 done
1511 test -z "$LD" && LD="$ac_prog"
1512 ;;
1513 "")
1514 # If it fails, then pretend we aren't using GCC.
1515 ac_prog=ld
1516 ;;
1517 *)
1518 # If it is relative, then search for the first ld in PATH.
1519 with_gnu_ld=unknown
1520 ;;
1521 esac
1522elif test "$with_gnu_ld" = yes; then
1523 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1524echo "configure:1525: checking for GNU ld" >&5
1525else
1526 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1527echo "configure:1528: checking for non-GNU ld" >&5
1528fi
1529if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1531else
1532 if test -z "$LD"; then
1533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1534 for ac_dir in $PATH; do
1535 test -z "$ac_dir" && ac_dir=.
1536 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1537 lt_cv_path_LD="$ac_dir/$ac_prog"
1538 # Check to see if the program is GNU ld. I'd rather use --version,
1539 # but apparently some GNU ld's only accept -v.
1540 # Break only if it was the GNU/non-GNU ld that we prefer.
1541 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1542 test "$with_gnu_ld" != no && break
1543 else
1544 test "$with_gnu_ld" != yes && break
1545 fi
1546 fi
1547 done
1548 IFS="$ac_save_ifs"
1549else
1550 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1551fi
1552fi
1553
1554LD="$lt_cv_path_LD"
1555if test -n "$LD"; then
1556 echo "$ac_t""$LD" 1>&6
1557else
1558 echo "$ac_t""no" 1>&6
1559fi
1560test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1561echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1562echo "configure:1563: checking if the linker ($LD) is GNU ld" >&5
1563if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1565else
1566 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1567if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1568 lt_cv_prog_gnu_ld=yes
1569else
1570 lt_cv_prog_gnu_ld=no
1571fi
1572fi
1573
1574echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1575with_gnu_ld=$lt_cv_prog_gnu_ld
1576
1577
1578echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1579echo "configure:1580: checking for $LD option to reload object files" >&5
1580if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1582else
1583 lt_cv_ld_reload_flag='-r'
1584fi
1585
1586echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1587reload_flag=$lt_cv_ld_reload_flag
1588test -n "$reload_flag" && reload_flag=" $reload_flag"
1589
1590echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1591echo "configure:1592: checking for BSD-compatible nm" >&5
1592if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1594else
1595 if test -n "$NM"; then
1596 # Let the user override the test.
1597 lt_cv_path_NM="$NM"
1598else
1599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1600 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1601 test -z "$ac_dir" && ac_dir=.
1602 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1603 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1604 # Check to see if the nm accepts a BSD-compat flag.
1605 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1606 # nm: unknown option "B" ignored
1607 # Tru64's nm complains that /dev/null is an invalid object file
1608 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1609 lt_cv_path_NM="$tmp_nm -B"
1610 break
1611 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1612 lt_cv_path_NM="$tmp_nm -p"
1613 break
1614 else
1615 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1616 continue # so that we can try to find one that supports BSD flags
1617 fi
1618 fi
1619 done
1620 IFS="$ac_save_ifs"
1621 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1622fi
1623fi
1624
1625NM="$lt_cv_path_NM"
1626echo "$ac_t""$NM" 1>&6
1627
1628echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1629echo "configure:1630: checking whether ln -s works" >&5
1630if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1632else
1633 rm -f conftestdata
1634if ln -s X conftestdata 2>/dev/null
1635then
1636 rm -f conftestdata
1637 ac_cv_prog_LN_S="ln -s"
1638else
1639 echo A > conftestdata;
1640 if ln conftestdata conftestdata2 2>/dev/null; then
1641 ac_cv_prog_LN_S=ln
1642 else
1643 ac_cv_prog_LN_S=cp
1644 fi
1645fi
1646rm -f conftestdata*
1647fi
1648LN_S="$ac_cv_prog_LN_S"
1649if test "$ac_cv_prog_LN_S" = "ln -s"; then
1650 echo "$ac_t""yes" 1>&6
1651else
1652 echo "$ac_t""no" 1>&6
1653fi
1654
1655echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1656echo "configure:1657: checking how to recognise dependant libraries" >&5
1657if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
1659else
1660 lt_cv_file_magic_cmd='$MAGIC_CMD'
1661lt_cv_file_magic_test_file=
1662lt_cv_deplibs_check_method='unknown'
1663# Need to set the preceding variable on all platforms that support
1664# interlibrary dependencies.
1665# 'none' -- dependencies not supported.
1666# `unknown' -- same as none, but documents that we really don't know.
1667# 'pass_all' -- all dependencies passed with no checks.
1668# 'test_compile' -- check by making test program.
1669# 'file_magic [regex]' -- check by looking for files in library path
1670# which responds to the $file_magic_cmd with a given egrep regex.
1671# If you have `file' or equivalent on your system and you're not sure
1672# whether `pass_all' will *always* work, you probably want this one.
1673
1674case $host_os in
1675aix*)
1676 lt_cv_deplibs_check_method=pass_all
1677 ;;
1678
1679beos*)
1680 lt_cv_deplibs_check_method=pass_all
1681 ;;
1682
1683bsdi4*)
1684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1685 lt_cv_file_magic_cmd='/usr/bin/file -L'
1686 lt_cv_file_magic_test_file=/shlib/libc.so
1687 ;;
1688
1689cygwin* | mingw* |pw32*)
1690 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1691 lt_cv_file_magic_cmd='$OBJDUMP -f'
1692 ;;
1693
1694darwin* | rhapsody*)
1695 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1696 lt_cv_file_magic_cmd='/usr/bin/file -L'
1697 case "$host_os" in
1698 rhapsody* | darwin1.012)
1699 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1700 ;;
1701 *) # Darwin 1.3 on
1702 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1703 ;;
1704 esac
1705 ;;
1706
1707freebsd* )
1708 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1709 case $host_cpu in
1710 i*86 )
1711 # Not sure whether the presence of OpenBSD here was a mistake.
1712 # Let's accept both of them until this is cleared up.
1713 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1714 lt_cv_file_magic_cmd=/usr/bin/file
1715 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1716 ;;
1717 esac
1718 else
1719 lt_cv_deplibs_check_method=pass_all
1720 fi
1721 ;;
1722
1723gnu*)
1724 lt_cv_deplibs_check_method=pass_all
1725 ;;
1726
1727hpux10.20*|hpux11*)
1728 case $host_cpu in
1729 hppa*)
1730 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1731 lt_cv_file_magic_cmd=/usr/bin/file
1732 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1733 ;;
1734 ia64*)
1735 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1736 lt_cv_file_magic_cmd=/usr/bin/file
1737 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1738 ;;
1739 esac
1740 ;;
1741
1742irix5* | irix6*)
1743 case $host_os in
1744 irix5*)
1745 # this will be overridden with pass_all, but let us keep it just in case
1746 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1747 ;;
1748 *)
1749 case $LD in
1750 *-32|*"-32 ") libmagic=32-bit;;
1751 *-n32|*"-n32 ") libmagic=N32;;
1752 *-64|*"-64 ") libmagic=64-bit;;
1753 *) libmagic=never-match;;
1754 esac
1755 # this will be overridden with pass_all, but let us keep it just in case
1756 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1757 ;;
1758 esac
1759 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1760 lt_cv_deplibs_check_method=pass_all
1761 ;;
1762
1763# This must be Linux ELF.
1764linux-gnu*)
1765 case $host_cpu in
1766 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1767 lt_cv_deplibs_check_method=pass_all ;;
1768 *)
1769 # glibc up to 2.1.1 does not perform some relocations on ARM
1770 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1771 esac
1772 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1773 ;;
1774
1775netbsd*)
1776 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1777 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1778 else
1779 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1780 fi
1781 ;;
1782
1783newsos6)
1784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1785 lt_cv_file_magic_cmd=/usr/bin/file
1786 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1787 ;;
1788
1789os2*)
1790 lt_cv_deplibs_check_method=pass_all
1791 ;;
1792
1793osf3* | osf4* | osf5*)
1794 # this will be overridden with pass_all, but let us keep it just in case
1795 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1796 lt_cv_file_magic_test_file=/shlib/libc.so
1797 lt_cv_deplibs_check_method=pass_all
1798 ;;
1799
1800sco3.2v5*)
1801 lt_cv_deplibs_check_method=pass_all
1802 ;;
1803
1804solaris*)
1805 lt_cv_deplibs_check_method=pass_all
1806 lt_cv_file_magic_test_file=/lib/libc.so
1807 ;;
1808
1809sysv5uw[78]* | sysv4*uw2*)
1810 lt_cv_deplibs_check_method=pass_all
1811 ;;
1812
1813sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1814 case $host_vendor in
1815 ncr)
1816 lt_cv_deplibs_check_method=pass_all
1817 ;;
1818 motorola)
1819 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]'
1820 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1821 ;;
1822 esac
1823 ;;
1824esac
1825
1826fi
1827
1828echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1829file_magic_cmd=$lt_cv_file_magic_cmd
1830deplibs_check_method=$lt_cv_deplibs_check_method
1831
1832echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1833echo "configure:1834: checking for object suffix" >&5
1834if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1836else
1837 rm -f conftest*
1838echo 'int i = 1;' > conftest.$ac_ext
1839if { (eval echo configure:1840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1840 for ac_file in conftest.*; do
1841 case $ac_file in
1842 *.c) ;;
1843 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1844 esac
1845 done
1846else
1847 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1848fi
1849rm -f conftest*
1850fi
1851
1852echo "$ac_t""$ac_cv_objext" 1>&6
1853OBJEXT=$ac_cv_objext
1854ac_objext=$ac_cv_objext
1855
1856# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1857
1858# Only perform the check for file, if the check method requires it
1859case $deplibs_check_method in
1860file_magic*)
1861 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1862 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1863echo "configure:1864: checking for ${ac_tool_prefix}file" >&5
1864if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1866else
1867 case $MAGIC_CMD in
1868 /*)
1869 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1870 ;;
1871 ?:/*)
1872 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1873 ;;
1874 *)
1875 ac_save_MAGIC_CMD="$MAGIC_CMD"
1876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1877 ac_dummy="/usr/bin:$PATH"
1878 for ac_dir in $ac_dummy; do
1879 test -z "$ac_dir" && ac_dir=.
1880 if test -f $ac_dir/${ac_tool_prefix}file; then
1881 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1882 if test -n "$file_magic_test_file"; then
1883 case $deplibs_check_method in
1884 "file_magic "*)
1885 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1886 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1887 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1888 egrep "$file_magic_regex" > /dev/null; then
1889 :
1890 else
1891 cat <<EOF 1>&2
1892
1893*** Warning: the command libtool uses to detect shared libraries,
1894*** $file_magic_cmd, produces output that libtool cannot recognize.
1895*** The result is that libtool may fail to recognize shared libraries
1896*** as such. This will affect the creation of libtool libraries that
1897*** depend on shared libraries, but programs linked with such libtool
1898*** libraries will work regardless of this problem. Nevertheless, you
1899*** may want to report the problem to your system manager and/or to
1900*** [email protected]
1901
1902EOF
1903 fi ;;
1904 esac
1905 fi
1906 break
1907 fi
1908 done
1909 IFS="$ac_save_ifs"
1910 MAGIC_CMD="$ac_save_MAGIC_CMD"
1911 ;;
1912esac
1913fi
1914
1915MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1916if test -n "$MAGIC_CMD"; then
1917 echo "$ac_t""$MAGIC_CMD" 1>&6
1918else
1919 echo "$ac_t""no" 1>&6
1920fi
1921
1922if test -z "$lt_cv_path_MAGIC_CMD"; then
1923 if test -n "$ac_tool_prefix"; then
1924 echo $ac_n "checking for file""... $ac_c" 1>&6
1925echo "configure:1926: checking for file" >&5
1926if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1928else
1929 case $MAGIC_CMD in
1930 /*)
1931 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1932 ;;
1933 ?:/*)
1934 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1935 ;;
1936 *)
1937 ac_save_MAGIC_CMD="$MAGIC_CMD"
1938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1939 ac_dummy="/usr/bin:$PATH"
1940 for ac_dir in $ac_dummy; do
1941 test -z "$ac_dir" && ac_dir=.
1942 if test -f $ac_dir/file; then
1943 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1944 if test -n "$file_magic_test_file"; then
1945 case $deplibs_check_method in
1946 "file_magic "*)
1947 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1949 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1950 egrep "$file_magic_regex" > /dev/null; then
1951 :
1952 else
1953 cat <<EOF 1>&2
1954
1955*** Warning: the command libtool uses to detect shared libraries,
1956*** $file_magic_cmd, produces output that libtool cannot recognize.
1957*** The result is that libtool may fail to recognize shared libraries
1958*** as such. This will affect the creation of libtool libraries that
1959*** depend on shared libraries, but programs linked with such libtool
1960*** libraries will work regardless of this problem. Nevertheless, you
1961*** may want to report the problem to your system manager and/or to
1962*** [email protected]
1963
1964EOF
1965 fi ;;
1966 esac
1967 fi
1968 break
1969 fi
1970 done
1971 IFS="$ac_save_ifs"
1972 MAGIC_CMD="$ac_save_MAGIC_CMD"
1973 ;;
1974esac
1975fi
1976
1977MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1978if test -n "$MAGIC_CMD"; then
1979 echo "$ac_t""$MAGIC_CMD" 1>&6
1980else
1981 echo "$ac_t""no" 1>&6
1982fi
1983
1984 else
1985 MAGIC_CMD=:
1986 fi
1987fi
1988
1989 fi
1990 ;;
1991esac
1992
1993# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1994set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1995echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1996echo "configure:1997: checking for $ac_word" >&5
1997if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
1999else
2000 if test -n "$RANLIB"; then
2001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2002else
2003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2004 ac_dummy="$PATH"
2005 for ac_dir in $ac_dummy; do
2006 test -z "$ac_dir" && ac_dir=.
2007 if test -f $ac_dir/$ac_word -o \
2008 -f $ac_dir/$ac_word$ac_exeext ; then
2009 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2010 break
2011 fi
2012 done
2013 IFS="$ac_save_ifs"
2014fi
2015fi
2016RANLIB="$ac_cv_prog_RANLIB"
2017if test -n "$RANLIB"; then
2018 echo "$ac_t""$RANLIB" 1>&6
2019else
2020 echo "$ac_t""no" 1>&6
2021fi
2022
2023
2024if test -z "$ac_cv_prog_RANLIB"; then
2025if test -n "$ac_tool_prefix"; then
2026 # Extract the first word of "ranlib", so it can be a program name with args.
2027set dummy ranlib; ac_word=$2
2028echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2029echo "configure:2030: checking for $ac_word" >&5
2030if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2032else
2033 if test -n "$RANLIB"; then
2034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2035else
2036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2037 ac_dummy="$PATH"
2038 for ac_dir in $ac_dummy; do
2039 test -z "$ac_dir" && ac_dir=.
2040 if test -f $ac_dir/$ac_word -o \
2041 -f $ac_dir/$ac_word$ac_exeext ; then
2042 ac_cv_prog_RANLIB="ranlib"
2043 break
2044 fi
2045 done
2046 IFS="$ac_save_ifs"
2047 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2048fi
2049fi
2050RANLIB="$ac_cv_prog_RANLIB"
2051if test -n "$RANLIB"; then
2052 echo "$ac_t""$RANLIB" 1>&6
2053else
2054 echo "$ac_t""no" 1>&6
2055fi
2056
2057else
2058 RANLIB=":"
2059fi
2060fi
2061
2062# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2063set dummy ${ac_tool_prefix}strip; ac_word=$2
2064echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2065echo "configure:2066: checking for $ac_word" >&5
2066if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2068else
2069 if test -n "$STRIP"; then
2070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2071else
2072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2073 ac_dummy="$PATH"
2074 for ac_dir in $ac_dummy; do
2075 test -z "$ac_dir" && ac_dir=.
2076 if test -f $ac_dir/$ac_word -o \
2077 -f $ac_dir/$ac_word$ac_exeext ; then
2078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2079 break
2080 fi
2081 done
2082 IFS="$ac_save_ifs"
2083fi
2084fi
2085STRIP="$ac_cv_prog_STRIP"
2086if test -n "$STRIP"; then
2087 echo "$ac_t""$STRIP" 1>&6
2088else
2089 echo "$ac_t""no" 1>&6
2090fi
2091
2092
2093if test -z "$ac_cv_prog_STRIP"; then
2094if test -n "$ac_tool_prefix"; then
2095 # Extract the first word of "strip", so it can be a program name with args.
2096set dummy strip; ac_word=$2
2097echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2098echo "configure:2099: checking for $ac_word" >&5
2099if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2101else
2102 if test -n "$STRIP"; then
2103 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2104else
2105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2106 ac_dummy="$PATH"
2107 for ac_dir in $ac_dummy; do
2108 test -z "$ac_dir" && ac_dir=.
2109 if test -f $ac_dir/$ac_word -o \
2110 -f $ac_dir/$ac_word$ac_exeext ; then
2111 ac_cv_prog_STRIP="strip"
2112 break
2113 fi
2114 done
2115 IFS="$ac_save_ifs"
2116 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2117fi
2118fi
2119STRIP="$ac_cv_prog_STRIP"
2120if test -n "$STRIP"; then
2121 echo "$ac_t""$STRIP" 1>&6
2122else
2123 echo "$ac_t""no" 1>&6
2124fi
2125
2126else
2127 STRIP=":"
2128fi
2129fi
2130
2131
2132# Check for any special flags to pass to ltconfig.
2133libtool_flags="--cache-file=$cache_file"
2134test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2135test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2136test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2137test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2138test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2139
2140
2141# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2142if test "${enable_libtool_lock+set}" = set; then
2143 enableval="$enable_libtool_lock"
2144 :
2145fi
2146
2147test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2148test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2149
2150# Check whether --with-pic or --without-pic was given.
2151if test "${with_pic+set}" = set; then
2152 withval="$with_pic"
2153 pic_mode="$withval"
2154else
2155 pic_mode=default
2156fi
2157
2158test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2159test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2160
2161# Some flags need to be propagated to the compiler or linker for good
2162# libtool support.
2163case $host in
2164*-*-irix6*)
2165 # Find out which ABI we are using.
2166 echo '#line 2167 "configure"' > conftest.$ac_ext
2167 if { (eval echo configure:2168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2168 if test "$lt_cv_prog_gnu_ld" = yes; then
2169 case `/usr/bin/file conftest.$ac_objext` in
2170 *32-bit*)
2171 LD="${LD-ld} -melf32bsmip"
2172 ;;
2173 *N32*)
2174 LD="${LD-ld} -melf32bmipn32"
2175 ;;
2176 *64-bit*)
2177 LD="${LD-ld} -melf64bmip"
2178 ;;
2179 esac
2180 else
2181 case `/usr/bin/file conftest.$ac_objext` in
2182 *32-bit*)
2183 LD="${LD-ld} -32"
2184 ;;
2185 *N32*)
2186 LD="${LD-ld} -n32"
2187 ;;
2188 *64-bit*)
2189 LD="${LD-ld} -64"
2190 ;;
2191 esac
2192 fi
2193 fi
2194 rm -rf conftest*
2195 ;;
2196
2197ia64-*-hpux*)
2198 # Find out which ABI we are using.
2199 echo 'int i;' > conftest.$ac_ext
2200 if { (eval echo configure:2201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2201 case "`/usr/bin/file conftest.o`" in
2202 *ELF-32*)
2203 HPUX_IA64_MODE="32"
2204 ;;
2205 *ELF-64*)
2206 HPUX_IA64_MODE="64"
2207 ;;
2208 esac
2209 fi
2210 rm -rf conftest*
2211 ;;
2212
2213*-*-sco3.2v5*)
2214 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2215 SAVE_CFLAGS="$CFLAGS"
2216 CFLAGS="$CFLAGS -belf"
2217 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2218echo "configure:2219: checking whether the C compiler needs -belf" >&5
2219if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2221else
2222
2223 ac_ext=c
2224# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2225ac_cpp='$CPP $CPPFLAGS'
2226ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2227ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2228cross_compiling=$ac_cv_prog_cc_cross
2229
2230 cat > conftest.$ac_ext <<EOF
2231#line 2232 "configure"
2232#include "confdefs.h"
2233
2234int main() {
2235
2236; return 0; }
2237EOF
2238if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2239 rm -rf conftest*
2240 lt_cv_cc_needs_belf=yes
2241else
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2244 rm -rf conftest*
2245 lt_cv_cc_needs_belf=no
2246fi
2247rm -f conftest*
2248 ac_ext=c
2249# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2250ac_cpp='$CPP $CPPFLAGS'
2251ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2252ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2253cross_compiling=$ac_cv_prog_cc_cross
2254
2255fi
2256
2257echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2258 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2259 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2260 CFLAGS="$SAVE_CFLAGS"
2261 fi
2262 ;;
2263
2264
2265esac
2266
2267
2268# Save cache, so that ltconfig can load it
2269cat > confcache <<\EOF
2270# This file is a shell script that caches the results of configure
2271# tests run on this system so they can be shared between configure
2272# scripts and configure runs. It is not useful on other systems.
2273# If it contains results you don't want to keep, you may remove or edit it.
2274#
2275# By default, configure uses ./config.cache as the cache file,
2276# creating it if it does not exist already. You can give configure
2277# the --cache-file=FILE option to use a different cache file; that is
2278# what configure does when it calls configure scripts in
2279# subdirectories, so they share the cache.
2280# Giving --cache-file=/dev/null disables caching, for debugging configure.
2281# config.status only pays attention to the cache file if you give it the
2282# --recheck option to rerun configure.
2283#
2284EOF
2285# The following way of writing the cache mishandles newlines in values,
2286# but we know of no workaround that is simple, portable, and efficient.
2287# So, don't put newlines in cache variables' values.
2288# Ultrix sh set writes to stderr and can't be redirected directly,
2289# and sets the high bit in the cache file unless we assign to the vars.
2290(set) 2>&1 |
2291 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2292 *ac_space=\ *)
2293 # `set' does not quote correctly, so add quotes (double-quote substitution
2294 # turns \\\\ into \\, and sed turns \\ into \).
2295 sed -n \
2296 -e "s/'/'\\\\''/g" \
2297 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2298 ;;
2299 *)
2300 # `set' quotes correctly as required by POSIX, so do not add quotes.
2301 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2302 ;;
2303 esac >> confcache
2304if cmp -s $cache_file confcache; then
2305 :
2306else
2307 if test -w $cache_file; then
2308 echo "updating cache $cache_file"
2309 cat confcache > $cache_file
2310 else
2311 echo "not updating unwritable cache $cache_file"
2312 fi
2313fi
2314rm -f confcache
2315
2316
2317# Actually configure libtool. ac_aux_dir is where install-sh is found.
2318AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2319MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2320LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2321AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2322objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2323deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2324${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2325$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2326|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2327
2328# Reload cache, that may have been modified by ltconfig
2329if test -r "$cache_file"; then
2330 echo "loading cache $cache_file"
2331 . $cache_file
2332else
2333 echo "creating cache $cache_file"
2334 > $cache_file
2335fi
2336
2337
2338# This can be used to rebuild libtool when needed
2339LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2340
2341# Always use our own libtool.
2342LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2343
2344# Redirect the config.log output again, so that the ltconfig log is not
2345# clobbered by the next message.
2346exec 5>>./config.log
2347
2348
2349
2350
2351
2352
2353
2354# Check whether --enable-targets or --disable-targets was given.
2355if test "${enable_targets+set}" = set; then
2356 enableval="$enable_targets"
2357 case "${enableval}" in
2358 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2359 ;;
2360 no) enable_targets= ;;
2361 *) enable_targets=$enableval ;;
2362esac
2363fi
2364# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2365if test "${enable_commonbfdlib+set}" = set; then
2366 enableval="$enable_commonbfdlib"
2367 case "${enableval}" in
2368 yes) commonbfdlib=true ;;
2369 no) commonbfdlib=false ;;
2370 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
2371esac
2372fi
2373
2374build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2375# Check whether --enable-build-warnings or --disable-build-warnings was given.
2376if test "${enable_build_warnings+set}" = set; then
2377 enableval="$enable_build_warnings"
2378 case "${enableval}" in
2379 yes) ;;
2380 no) build_warnings="-w";;
2381 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2382 build_warnings="${build_warnings} ${t}";;
2383 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2384 build_warnings="${t} ${build_warnings}";;
2385 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2386esac
2387if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2388 echo "Setting warning flags = $build_warnings" 6>&1
2389fi
2390fi
2391WARN_CFLAGS=""
2392if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2393 WARN_CFLAGS="${build_warnings}"
2394fi
2395
2396
2397
2398
2399
2400
2401if test -z "$target" ; then
2402 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2403fi
2404
2405echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2406echo "configure:2407: checking whether to enable maintainer-specific portions of Makefiles" >&5
2407 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2408if test "${enable_maintainer_mode+set}" = set; then
2409 enableval="$enable_maintainer_mode"
2410 USE_MAINTAINER_MODE=$enableval
2411else
2412 USE_MAINTAINER_MODE=no
2413fi
2414
2415 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2416
2417
2418if test $USE_MAINTAINER_MODE = yes; then
2419 MAINTAINER_MODE_TRUE=
2420 MAINTAINER_MODE_FALSE='#'
2421else
2422 MAINTAINER_MODE_TRUE='#'
2423 MAINTAINER_MODE_FALSE=
2424fi
2425 MAINT=$MAINTAINER_MODE_TRUE
2426
2427
2428echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
2429echo "configure:2430: checking whether to install libbfd" >&5
2430 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
2431if test "${enable_install_libbfd+set}" = set; then
2432 enableval="$enable_install_libbfd"
2433 install_libbfd_p=$enableval
2434else
2435 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
2436 install_libbfd_p=yes
2437 else
2438 install_libbfd_p=no