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

Last change on this file since 529 was 202, checked in by bird, 22 years ago

#422: Regenerated (DLL hack).

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