source: trunk/src/binutils/gas/configure@ 1569

Last change on this file since 1569 was 1239, checked in by bird, 22 years ago

Added i386-pc-os2-elf target.

  • Property cvs2svn:cvs-rev set to 1.7
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 194.1 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
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-bfd-assembler use BFD back end for writing object files"
28ac_help="$ac_help
29 targets alternative target configurations besides the primary"
30ac_help="$ac_help
31 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
32ac_help="$ac_help
33 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
34ac_help="$ac_help
35 --disable-nls do not use Native Language Support"
36ac_help="$ac_help
37 --with-included-gettext use the GNU gettext library included here"
38ac_help="$ac_help
39 --enable-maintainer-mode enable make rules and dependencies not useful
40 (and sometimes confusing) to the casual installer"
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=as.h
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
1059BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
1060am__api_version="1.4"
1061# Find a good install program. We prefer a C program (faster),
1062# so one script is as good as another. But avoid the broken or
1063# incompatible versions:
1064# SysV /etc/install, /usr/sbin/install
1065# SunOS /usr/etc/install
1066# IRIX /sbin/install
1067# AIX /bin/install
1068# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1069# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1070# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1071# ./install, which can be erroneously created by make from ./install.sh.
1072echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1073echo "configure:1074: checking for a BSD compatible install" >&5
1074if test -z "$INSTALL"; then
1075if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1077else
1078 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
1079 for ac_dir in $PATH; do
1080 # Account for people who put trailing slashes in PATH elements.
1081 case "$ac_dir/" in
1082 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1083 # We reject the install program from OS/2 or W3.1
1084 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
1085 *)
1086 # OSF1 and SCO ODT 3.0 have their own names for install.
1087 # Don't use installbsd from OSF since it installs stuff as root
1088 # by default.
1089 for ac_prog in ginstall scoinst install; do
1090 if test -f $ac_dir/$ac_prog$ac_exeext; then
1091 if test $ac_prog = install &&
1092 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1093 # AIX install. It has an incompatible calling convention.
1094 :
1095 else
1096 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
1097 break 2
1098 fi
1099 fi
1100 done
1101 ;;
1102 esac
1103 done
1104 IFS="$ac_save_IFS"
1105
1106fi
1107 if test "${ac_cv_path_install+set}" = set; then
1108 INSTALL="$ac_cv_path_install"
1109 else
1110 # As a last resort, use the slow shell script. We don't cache a
1111 # path for INSTALL within a source directory, because that will
1112 # break other packages using the cache if that directory is
1113 # removed, or if the path is relative.
1114 INSTALL="$ac_install_sh"
1115 fi
1116fi
1117echo "$ac_t""$INSTALL" 1>&6
1118
1119# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1120# It thinks the first close brace ends the variable substitution.
1121test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1122
1123test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1124
1125test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1126
1127echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1128echo "configure:1129: checking whether build environment is sane" >&5
1129# Just in case
1130sleep 1
1131echo timestamp > conftestfile
1132# Do `set' in a subshell so we don't clobber the current shell's
1133# arguments. Must try -L first in case configure is actually a
1134# symlink; some systems play weird games with the mod time of symlinks
1135# (eg FreeBSD returns the mod time of the symlink's containing
1136# directory).
1137if (
1138 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1139 if test "$*" = "X"; then
1140 # -L didn't work.
1141 set X `ls -t $srcdir/configure conftestfile`
1142 fi
1143 if test "$*" != "X $srcdir/configure conftestfile" \
1144 && test "$*" != "X conftestfile $srcdir/configure"; then
1145
1146 # If neither matched, then we have a broken ls. This can happen
1147 # if, for instance, CONFIG_SHELL is bash and it inherits a
1148 # broken ls alias from the environment. This has actually
1149 # happened. Such a system could not be considered "sane".
1150 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1151alias in your environment" 1>&2; exit 1; }
1152 fi
1153
1154 test "$2" = conftestfile
1155 )
1156then
1157 # Ok.
1158 :
1159else
1160 { echo "configure: error: newly created file is older than distributed files!
1161Check your system clock" 1>&2; exit 1; }
1162fi
1163rm -f conftest*
1164echo "$ac_t""yes" 1>&6
1165if test "$program_transform_name" = s,x,x,; then
1166 program_transform_name=
1167else
1168 # Double any \ or $. echo might interpret backslashes.
1169 cat <<\EOF_SED > conftestsed
1170s,\\,\\\\,g; s,\$,$$,g
1171EOF_SED
1172 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1173 rm -f conftestsed
1174fi
1175test "$program_prefix" != NONE &&
1176 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1177# Use a double $ so make ignores it.
1178test "$program_suffix" != NONE &&
1179 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1180
1181# sed with no file args requires a program.
1182test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1183
1184echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1185echo "configure:1186: checking whether ${MAKE-make} sets \${MAKE}" >&5
1186set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1187if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1189else
1190 cat > conftestmake <<\EOF
1191all:
1192 @echo 'ac_maketemp="${MAKE}"'
1193EOF
1194# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1195eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1196if test -n "$ac_maketemp"; then
1197 eval ac_cv_prog_make_${ac_make}_set=yes
1198else
1199 eval ac_cv_prog_make_${ac_make}_set=no
1200fi
1201rm -f conftestmake
1202fi
1203if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1204 echo "$ac_t""yes" 1>&6
1205 SET_MAKE=
1206else
1207 echo "$ac_t""no" 1>&6
1208 SET_MAKE="MAKE=${MAKE-make}"
1209fi
1210
1211
1212PACKAGE=gas
1213
1214VERSION=${BFD_VERSION}
1215
1216if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1217 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1218fi
1219cat >> confdefs.h <<EOF
1220#define PACKAGE "$PACKAGE"
1221EOF
1222
1223cat >> confdefs.h <<EOF
1224#define VERSION "$VERSION"
1225EOF
1226
1227
1228
1229missing_dir=`cd $ac_aux_dir && pwd`
1230echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1231echo "configure:1232: checking for working aclocal-${am__api_version}" >&5
1232# Run test in a subshell; some versions of sh will print an error if
1233# an executable is not found, even if stderr is redirected.
1234# Redirect stdin to placate older versions of autoconf. Sigh.
1235if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1236 ACLOCAL=aclocal-${am__api_version}
1237 echo "$ac_t""found" 1>&6
1238else
1239 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1240 echo "$ac_t""missing" 1>&6
1241fi
1242
1243echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1244echo "configure:1245: checking for working autoconf" >&5
1245# Run test in a subshell; some versions of sh will print an error if
1246# an executable is not found, even if stderr is redirected.
1247# Redirect stdin to placate older versions of autoconf. Sigh.
1248if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1249 AUTOCONF=autoconf
1250 echo "$ac_t""found" 1>&6
1251else
1252 AUTOCONF="$missing_dir/missing autoconf"
1253 echo "$ac_t""missing" 1>&6
1254fi
1255
1256echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1257echo "configure:1258: checking for working automake-${am__api_version}" >&5
1258# Run test in a subshell; some versions of sh will print an error if
1259# an executable is not found, even if stderr is redirected.
1260# Redirect stdin to placate older versions of autoconf. Sigh.
1261if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1262 AUTOMAKE=automake-${am__api_version}
1263 echo "$ac_t""found" 1>&6
1264else
1265 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1266 echo "$ac_t""missing" 1>&6
1267fi
1268
1269echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1270echo "configure:1271: checking for working autoheader" >&5
1271# Run test in a subshell; some versions of sh will print an error if
1272# an executable is not found, even if stderr is redirected.
1273# Redirect stdin to placate older versions of autoconf. Sigh.
1274if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1275 AUTOHEADER=autoheader
1276 echo "$ac_t""found" 1>&6
1277else
1278 AUTOHEADER="$missing_dir/missing autoheader"
1279 echo "$ac_t""missing" 1>&6
1280fi
1281
1282echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1283echo "configure:1284: checking for working makeinfo" >&5
1284# Run test in a subshell; some versions of sh will print an error if
1285# an executable is not found, even if stderr is redirected.
1286# Redirect stdin to placate older versions of autoconf. Sigh.
1287if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1288 MAKEINFO=makeinfo
1289 echo "$ac_t""found" 1>&6
1290else
1291 MAKEINFO="$missing_dir/missing makeinfo"
1292 echo "$ac_t""missing" 1>&6
1293fi
1294
1295
1296
1297# Check whether --enable-shared or --disable-shared was given.
1298if test "${enable_shared+set}" = set; then
1299 enableval="$enable_shared"
1300 p=${PACKAGE-default}
1301case $enableval in
1302yes) enable_shared=yes ;;
1303no) enable_shared=no ;;
1304*)
1305 enable_shared=no
1306 # Look at the argument we got. We use all the common list separators.
1307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1308 for pkg in $enableval; do
1309 if test "X$pkg" = "X$p"; then
1310 enable_shared=yes
1311 fi
1312 done
1313 IFS="$ac_save_ifs"
1314 ;;
1315esac
1316else
1317 enable_shared=yes
1318fi
1319
1320# Check whether --enable-static or --disable-static was given.
1321if test "${enable_static+set}" = set; then
1322 enableval="$enable_static"
1323 p=${PACKAGE-default}
1324case $enableval in
1325yes) enable_static=yes ;;
1326no) enable_static=no ;;
1327*)
1328 enable_static=no
1329 # Look at the argument we got. We use all the common list separators.
1330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1331 for pkg in $enableval; do
1332 if test "X$pkg" = "X$p"; then
1333 enable_static=yes
1334 fi
1335 done
1336 IFS="$ac_save_ifs"
1337 ;;
1338esac
1339else
1340 enable_static=yes
1341fi
1342
1343# Check whether --enable-fast-install or --disable-fast-install was given.
1344if test "${enable_fast_install+set}" = set; then
1345 enableval="$enable_fast_install"
1346 p=${PACKAGE-default}
1347case $enableval in
1348yes) enable_fast_install=yes ;;
1349no) enable_fast_install=no ;;
1350*)
1351 enable_fast_install=no
1352 # Look at the argument we got. We use all the common list separators.
1353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1354 for pkg in $enableval; do
1355 if test "X$pkg" = "X$p"; then
1356 enable_fast_install=yes
1357 fi
1358 done
1359 IFS="$ac_save_ifs"
1360 ;;
1361esac
1362else
1363 enable_fast_install=yes
1364fi
1365
1366# Check whether --with-gnu-ld or --without-gnu-ld was given.
1367if test "${with_gnu_ld+set}" = set; then
1368 withval="$with_gnu_ld"
1369 test "$withval" = no || with_gnu_ld=yes
1370else
1371 with_gnu_ld=no
1372fi
1373
1374ac_prog=ld
1375if test "$GCC" = yes; then
1376 # Check if gcc -print-prog-name=ld gives a path.
1377 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1378echo "configure:1379: checking for ld used by GCC" >&5
1379 case $host in
1380 *-*-mingw*)
1381 # gcc leaves a trailing carriage return which upsets mingw
1382 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1383 *)
1384 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1385 esac
1386 case $ac_prog in
1387 # Accept absolute paths.
1388 [\\/]* | [A-Za-z]:[\\/]*)
1389 re_direlt='/[^/][^/]*/\.\./'
1390 # Canonicalize the path of ld
1391 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1392 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1393 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1394 done
1395 test -z "$LD" && LD="$ac_prog"
1396 ;;
1397 "")
1398 # If it fails, then pretend we aren't using GCC.
1399 ac_prog=ld
1400 ;;
1401 *)
1402 # If it is relative, then search for the first ld in PATH.
1403 with_gnu_ld=unknown
1404 ;;
1405 esac
1406elif test "$with_gnu_ld" = yes; then
1407 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1408echo "configure:1409: checking for GNU ld" >&5
1409else
1410 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1411echo "configure:1412: checking for non-GNU ld" >&5
1412fi
1413if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1415else
1416 if test -z "$LD"; then
1417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1418 for ac_dir in $PATH; do
1419 test -z "$ac_dir" && ac_dir=.
1420 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1421 lt_cv_path_LD="$ac_dir/$ac_prog"
1422 # Check to see if the program is GNU ld. I'd rather use --version,
1423 # but apparently some GNU ld's only accept -v.
1424 # Break only if it was the GNU/non-GNU ld that we prefer.
1425 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1426 test "$with_gnu_ld" != no && break
1427 else
1428 test "$with_gnu_ld" != yes && break
1429 fi
1430 fi
1431 done
1432 IFS="$ac_save_ifs"
1433else
1434 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1435fi
1436fi
1437
1438LD="$lt_cv_path_LD"
1439if test -n "$LD"; then
1440 echo "$ac_t""$LD" 1>&6
1441else
1442 echo "$ac_t""no" 1>&6
1443fi
1444test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1445echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1446echo "configure:1447: checking if the linker ($LD) is GNU ld" >&5
1447if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1449else
1450 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1451if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1452 lt_cv_prog_gnu_ld=yes
1453else
1454 lt_cv_prog_gnu_ld=no
1455fi
1456fi
1457
1458echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1459with_gnu_ld=$lt_cv_prog_gnu_ld
1460
1461
1462echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1463echo "configure:1464: checking for $LD option to reload object files" >&5
1464if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1466else
1467 lt_cv_ld_reload_flag='-r'
1468fi
1469
1470echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1471reload_flag=$lt_cv_ld_reload_flag
1472test -n "$reload_flag" && reload_flag=" $reload_flag"
1473
1474echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1475echo "configure:1476: checking for BSD-compatible nm" >&5
1476if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1478else
1479 if test -n "$NM"; then
1480 # Let the user override the test.
1481 lt_cv_path_NM="$NM"
1482else
1483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1484 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1485 test -z "$ac_dir" && ac_dir=.
1486 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1487 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1488 # Check to see if the nm accepts a BSD-compat flag.
1489 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1490 # nm: unknown option "B" ignored
1491 # Tru64's nm complains that /dev/null is an invalid object file
1492 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1493 lt_cv_path_NM="$tmp_nm -B"
1494 break
1495 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1496 lt_cv_path_NM="$tmp_nm -p"
1497 break
1498 else
1499 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1500 continue # so that we can try to find one that supports BSD flags
1501 fi
1502 fi
1503 done
1504 IFS="$ac_save_ifs"
1505 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1506fi
1507fi
1508
1509NM="$lt_cv_path_NM"
1510echo "$ac_t""$NM" 1>&6
1511
1512echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1513echo "configure:1514: checking whether ln -s works" >&5
1514if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1516else
1517 rm -f conftestdata
1518if ln -s X conftestdata 2>/dev/null
1519then
1520 rm -f conftestdata
1521 ac_cv_prog_LN_S="ln -s"
1522else
1523 echo A > conftestdata;
1524 if ln conftestdata conftestdata2 2>/dev/null; then
1525 ac_cv_prog_LN_S=ln
1526 else
1527 ac_cv_prog_LN_S=cp
1528 fi
1529fi
1530rm -f conftestdata*
1531fi
1532LN_S="$ac_cv_prog_LN_S"
1533if test "$ac_cv_prog_LN_S" = "ln -s"; then
1534 echo "$ac_t""yes" 1>&6
1535else
1536 echo "$ac_t""no" 1>&6
1537fi
1538
1539echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1540echo "configure:1541: checking how to recognise dependant libraries" >&5
1541if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1543else
1544 lt_cv_file_magic_cmd='$MAGIC_CMD'
1545lt_cv_file_magic_test_file=
1546lt_cv_deplibs_check_method='unknown'
1547# Need to set the preceding variable on all platforms that support
1548# interlibrary dependencies.
1549# 'none' -- dependencies not supported.
1550# `unknown' -- same as none, but documents that we really don't know.
1551# 'pass_all' -- all dependencies passed with no checks.
1552# 'test_compile' -- check by making test program.
1553# 'file_magic [regex]' -- check by looking for files in library path
1554# which responds to the $file_magic_cmd with a given egrep regex.
1555# If you have `file' or equivalent on your system and you're not sure
1556# whether `pass_all' will *always* work, you probably want this one.
1557
1558case $host_os in
1559aix*)
1560 lt_cv_deplibs_check_method=pass_all
1561 ;;
1562
1563beos*)
1564 lt_cv_deplibs_check_method=pass_all
1565 ;;
1566
1567bsdi4*)
1568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1569 lt_cv_file_magic_cmd='/usr/bin/file -L'
1570 lt_cv_file_magic_test_file=/shlib/libc.so
1571 ;;
1572
1573cygwin* | mingw* |pw32*)
1574 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1575 lt_cv_file_magic_cmd='$OBJDUMP -f'
1576 ;;
1577
1578darwin* | rhapsody*)
1579 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1580 lt_cv_file_magic_cmd='/usr/bin/file -L'
1581 case "$host_os" in
1582 rhapsody* | darwin1.012)
1583 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1584 ;;
1585 *) # Darwin 1.3 on
1586 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1587 ;;
1588 esac
1589 ;;
1590
1591freebsd* )
1592 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1593 case $host_cpu in
1594 i*86 )
1595 # Not sure whether the presence of OpenBSD here was a mistake.
1596 # Let's accept both of them until this is cleared up.
1597 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1598 lt_cv_file_magic_cmd=/usr/bin/file
1599 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1600 ;;
1601 esac
1602 else
1603 lt_cv_deplibs_check_method=pass_all
1604 fi
1605 ;;
1606
1607gnu*)
1608 lt_cv_deplibs_check_method=pass_all
1609 ;;
1610
1611hpux10.20*|hpux11*)
1612 case $host_cpu in
1613 hppa*)
1614 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1615 lt_cv_file_magic_cmd=/usr/bin/file
1616 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1617 ;;
1618 ia64*)
1619 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1620 lt_cv_file_magic_cmd=/usr/bin/file
1621 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1622 ;;
1623 esac
1624 ;;
1625
1626irix5* | irix6*)
1627 case $host_os in
1628 irix5*)
1629 # this will be overridden with pass_all, but let us keep it just in case
1630 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1631 ;;
1632 *)
1633 case $LD in
1634 *-32|*"-32 ") libmagic=32-bit;;
1635 *-n32|*"-n32 ") libmagic=N32;;
1636 *-64|*"-64 ") libmagic=64-bit;;
1637 *) libmagic=never-match;;
1638 esac
1639 # this will be overridden with pass_all, but let us keep it just in case
1640 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1641 ;;
1642 esac
1643 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1644 lt_cv_deplibs_check_method=pass_all
1645 ;;
1646
1647# This must be Linux ELF.
1648linux-gnu*)
1649 case $host_cpu in
1650 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1651 lt_cv_deplibs_check_method=pass_all ;;
1652 *)
1653 # glibc up to 2.1.1 does not perform some relocations on ARM
1654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1655 esac
1656 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1657 ;;
1658
1659netbsd*)
1660 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1661 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1662 else
1663 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1664 fi
1665 ;;
1666
1667newsos6)
1668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1669 lt_cv_file_magic_cmd=/usr/bin/file
1670 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1671 ;;
1672
1673os2*)
1674 lt_cv_deplibs_check_method=pass_all
1675 ;;
1676
1677osf3* | osf4* | osf5*)
1678 # this will be overridden with pass_all, but let us keep it just in case
1679 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1680 lt_cv_file_magic_test_file=/shlib/libc.so
1681 lt_cv_deplibs_check_method=pass_all
1682 ;;
1683
1684sco3.2v5*)
1685 lt_cv_deplibs_check_method=pass_all
1686 ;;
1687
1688solaris*)
1689 lt_cv_deplibs_check_method=pass_all
1690 lt_cv_file_magic_test_file=/lib/libc.so
1691 ;;
1692
1693sysv5uw[78]* | sysv4*uw2*)
1694 lt_cv_deplibs_check_method=pass_all
1695 ;;
1696
1697sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1698 case $host_vendor in
1699 ncr)
1700 lt_cv_deplibs_check_method=pass_all
1701 ;;
1702 motorola)
1703 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]'
1704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1705 ;;
1706 esac
1707 ;;
1708esac
1709
1710fi
1711
1712echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1713file_magic_cmd=$lt_cv_file_magic_cmd
1714deplibs_check_method=$lt_cv_deplibs_check_method
1715
1716echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1717echo "configure:1718: checking for object suffix" >&5
1718if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1720else
1721 rm -f conftest*
1722echo 'int i = 1;' > conftest.$ac_ext
1723if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1724 for ac_file in conftest.*; do
1725 case $ac_file in
1726 *.c) ;;
1727 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1728 esac
1729 done
1730else
1731 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1732fi
1733rm -f conftest*
1734fi
1735
1736echo "$ac_t""$ac_cv_objext" 1>&6
1737OBJEXT=$ac_cv_objext
1738ac_objext=$ac_cv_objext
1739
1740if test $host != $build; then
1741 ac_tool_prefix=${host_alias}-
1742else
1743 ac_tool_prefix=
1744fi
1745
1746# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1747
1748# Only perform the check for file, if the check method requires it
1749case $deplibs_check_method in
1750file_magic*)
1751 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1752 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1753echo "configure:1754: checking for ${ac_tool_prefix}file" >&5
1754if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1756else
1757 case $MAGIC_CMD in
1758 /*)
1759 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1760 ;;
1761 ?:/*)
1762 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1763 ;;
1764 *)
1765 ac_save_MAGIC_CMD="$MAGIC_CMD"
1766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1767 ac_dummy="/usr/bin:$PATH"
1768 for ac_dir in $ac_dummy; do
1769 test -z "$ac_dir" && ac_dir=.
1770 if test -f $ac_dir/${ac_tool_prefix}file; then
1771 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1772 if test -n "$file_magic_test_file"; then
1773 case $deplibs_check_method in
1774 "file_magic "*)
1775 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1776 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1777 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1778 egrep "$file_magic_regex" > /dev/null; then
1779 :
1780 else
1781 cat <<EOF 1>&2
1782
1783*** Warning: the command libtool uses to detect shared libraries,
1784*** $file_magic_cmd, produces output that libtool cannot recognize.
1785*** The result is that libtool may fail to recognize shared libraries
1786*** as such. This will affect the creation of libtool libraries that
1787*** depend on shared libraries, but programs linked with such libtool
1788*** libraries will work regardless of this problem. Nevertheless, you
1789*** may want to report the problem to your system manager and/or to
1790*** bug-libtool@gnu.org
1791
1792EOF
1793 fi ;;
1794 esac
1795 fi
1796 break
1797 fi
1798 done
1799 IFS="$ac_save_ifs"
1800 MAGIC_CMD="$ac_save_MAGIC_CMD"
1801 ;;
1802esac
1803fi
1804
1805MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1806if test -n "$MAGIC_CMD"; then
1807 echo "$ac_t""$MAGIC_CMD" 1>&6
1808else
1809 echo "$ac_t""no" 1>&6
1810fi
1811
1812if test -z "$lt_cv_path_MAGIC_CMD"; then
1813 if test -n "$ac_tool_prefix"; then
1814 echo $ac_n "checking for file""... $ac_c" 1>&6
1815echo "configure:1816: checking for file" >&5
1816if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1818else
1819 case $MAGIC_CMD in
1820 /*)
1821 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1822 ;;
1823 ?:/*)
1824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1825 ;;
1826 *)
1827 ac_save_MAGIC_CMD="$MAGIC_CMD"
1828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1829 ac_dummy="/usr/bin:$PATH"
1830 for ac_dir in $ac_dummy; do
1831 test -z "$ac_dir" && ac_dir=.
1832 if test -f $ac_dir/file; then
1833 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1834 if test -n "$file_magic_test_file"; then
1835 case $deplibs_check_method in
1836 "file_magic "*)
1837 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1840 egrep "$file_magic_regex" > /dev/null; then
1841 :
1842 else
1843 cat <<EOF 1>&2
1844
1845*** Warning: the command libtool uses to detect shared libraries,
1846*** $file_magic_cmd, produces output that libtool cannot recognize.
1847*** The result is that libtool may fail to recognize shared libraries
1848*** as such. This will affect the creation of libtool libraries that
1849*** depend on shared libraries, but programs linked with such libtool
1850*** libraries will work regardless of this problem. Nevertheless, you
1851*** may want to report the problem to your system manager and/or to
1852*** bug-libtool@gnu.org
1853
1854EOF
1855 fi ;;
1856 esac
1857 fi
1858 break
1859 fi
1860 done
1861 IFS="$ac_save_ifs"
1862 MAGIC_CMD="$ac_save_MAGIC_CMD"
1863 ;;
1864esac
1865fi
1866
1867MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1868if test -n "$MAGIC_CMD"; then
1869 echo "$ac_t""$MAGIC_CMD" 1>&6
1870else
1871 echo "$ac_t""no" 1>&6
1872fi
1873
1874 else
1875 MAGIC_CMD=:
1876 fi
1877fi
1878
1879 fi
1880 ;;
1881esac
1882
1883# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1884set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1885echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1886echo "configure:1887: checking for $ac_word" >&5
1887if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1889else
1890 if test -n "$RANLIB"; then
1891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1892else
1893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1894 ac_dummy="$PATH"
1895 for ac_dir in $ac_dummy; do
1896 test -z "$ac_dir" && ac_dir=.
1897 if test -f $ac_dir/$ac_word -o \
1898 -f $ac_dir/$ac_word$ac_exeext ; then
1899 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1900 break
1901 fi
1902 done
1903 IFS="$ac_save_ifs"
1904fi
1905fi
1906RANLIB="$ac_cv_prog_RANLIB"
1907if test -n "$RANLIB"; then
1908 echo "$ac_t""$RANLIB" 1>&6
1909else
1910 echo "$ac_t""no" 1>&6
1911fi
1912
1913
1914if test -z "$ac_cv_prog_RANLIB"; then
1915if test -n "$ac_tool_prefix"; then
1916 # Extract the first word of "ranlib", so it can be a program name with args.
1917set dummy ranlib; ac_word=$2
1918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1919echo "configure:1920: checking for $ac_word" >&5
1920if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1922else
1923 if test -n "$RANLIB"; then
1924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1925else
1926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1927 ac_dummy="$PATH"
1928 for ac_dir in $ac_dummy; do
1929 test -z "$ac_dir" && ac_dir=.
1930 if test -f $ac_dir/$ac_word -o \
1931 -f $ac_dir/$ac_word$ac_exeext ; then
1932 ac_cv_prog_RANLIB="ranlib"
1933 break
1934 fi
1935 done
1936 IFS="$ac_save_ifs"
1937 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1938fi
1939fi
1940RANLIB="$ac_cv_prog_RANLIB"
1941if test -n "$RANLIB"; then
1942 echo "$ac_t""$RANLIB" 1>&6
1943else
1944 echo "$ac_t""no" 1>&6
1945fi
1946
1947else
1948 RANLIB=":"
1949fi
1950fi
1951
1952# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1953set dummy ${ac_tool_prefix}strip; ac_word=$2
1954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1955echo "configure:1956: checking for $ac_word" >&5
1956if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1958else
1959 if test -n "$STRIP"; then
1960 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1961else
1962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1963 ac_dummy="$PATH"
1964 for ac_dir in $ac_dummy; do
1965 test -z "$ac_dir" && ac_dir=.
1966 if test -f $ac_dir/$ac_word -o \
1967 -f $ac_dir/$ac_word$ac_exeext ; then
1968 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1969 break
1970 fi
1971 done
1972 IFS="$ac_save_ifs"
1973fi
1974fi
1975STRIP="$ac_cv_prog_STRIP"
1976if test -n "$STRIP"; then
1977 echo "$ac_t""$STRIP" 1>&6
1978else
1979 echo "$ac_t""no" 1>&6
1980fi
1981
1982
1983if test -z "$ac_cv_prog_STRIP"; then
1984if test -n "$ac_tool_prefix"; then
1985 # Extract the first word of "strip", so it can be a program name with args.
1986set dummy strip; ac_word=$2
1987echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988echo "configure:1989: checking for $ac_word" >&5
1989if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1991else
1992 if test -n "$STRIP"; then
1993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1994else
1995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1996 ac_dummy="$PATH"
1997 for ac_dir in $ac_dummy; do
1998 test -z "$ac_dir" && ac_dir=.
1999 if test -f $ac_dir/$ac_word -o \
2000 -f $ac_dir/$ac_word$ac_exeext ; then
2001 ac_cv_prog_STRIP="strip"
2002 break
2003 fi
2004 done
2005 IFS="$ac_save_ifs"
2006 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2007fi
2008fi
2009STRIP="$ac_cv_prog_STRIP"
2010if test -n "$STRIP"; then
2011 echo "$ac_t""$STRIP" 1>&6
2012else
2013 echo "$ac_t""no" 1>&6
2014fi
2015
2016else
2017 STRIP=":"
2018fi
2019fi
2020
2021
2022# Check for any special flags to pass to ltconfig.
2023libtool_flags="--cache-file=$cache_file"
2024test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2025test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2026test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2027test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2028test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2029
2030
2031# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2032if test "${enable_libtool_lock+set}" = set; then
2033 enableval="$enable_libtool_lock"
2034 :
2035fi
2036
2037test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2038test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2039
2040# Check whether --with-pic or --without-pic was given.
2041if test "${with_pic+set}" = set; then
2042 withval="$with_pic"
2043 pic_mode="$withval"
2044else
2045 pic_mode=default
2046fi
2047
2048test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2049test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2050
2051# Some flags need to be propagated to the compiler or linker for good
2052# libtool support.
2053case $host in
2054*-*-irix6*)
2055 # Find out which ABI we are using.
2056 echo '#line 2057 "configure"' > conftest.$ac_ext
2057 if { (eval echo configure:2058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2058 if test "$lt_cv_prog_gnu_ld" = yes; then
2059 case `/usr/bin/file conftest.$ac_objext` in
2060 *32-bit*)
2061 LD="${LD-ld} -melf32bsmip"
2062 ;;
2063 *N32*)
2064 LD="${LD-ld} -melf32bmipn32"
2065 ;;
2066 *64-bit*)
2067 LD="${LD-ld} -melf64bmip"
2068 ;;
2069 esac
2070 else
2071 case `/usr/bin/file conftest.$ac_objext` in
2072 *32-bit*)
2073 LD="${LD-ld} -32"
2074 ;;
2075 *N32*)
2076 LD="${LD-ld} -n32"
2077 ;;
2078 *64-bit*)
2079 LD="${LD-ld} -64"
2080 ;;
2081 esac
2082 fi
2083 fi
2084 rm -rf conftest*
2085 ;;
2086
2087ia64-*-hpux*)
2088 # Find out which ABI we are using.
2089 echo 'int i;' > conftest.$ac_ext
2090 if { (eval echo configure:2091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2091 case "`/usr/bin/file conftest.o`" in
2092 *ELF-32*)
2093 HPUX_IA64_MODE="32"
2094 ;;
2095 *ELF-64*)
2096 HPUX_IA64_MODE="64"
2097 ;;
2098 esac
2099 fi
2100 rm -rf conftest*
2101 ;;
2102
2103*-*-sco3.2v5*)
2104 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2105 SAVE_CFLAGS="$CFLAGS"
2106 CFLAGS="$CFLAGS -belf"
2107 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2108echo "configure:2109: checking whether the C compiler needs -belf" >&5
2109if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2111else
2112
2113 ac_ext=c
2114# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2115ac_cpp='$CPP $CPPFLAGS'
2116ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2117ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2118cross_compiling=$ac_cv_prog_cc_cross
2119
2120 cat > conftest.$ac_ext <<EOF
2121#line 2122 "configure"
2122#include "confdefs.h"
2123
2124int main() {
2125
2126; return 0; }
2127EOF
2128if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2129 rm -rf conftest*
2130 lt_cv_cc_needs_belf=yes
2131else
2132 echo "configure: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
2134 rm -rf conftest*
2135 lt_cv_cc_needs_belf=no
2136fi
2137rm -f conftest*
2138 ac_ext=c
2139# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2140ac_cpp='$CPP $CPPFLAGS'
2141ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2142ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2143cross_compiling=$ac_cv_prog_cc_cross
2144
2145fi
2146
2147echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2148 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2149 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2150 CFLAGS="$SAVE_CFLAGS"
2151 fi
2152 ;;
2153
2154
2155esac
2156
2157
2158# Save cache, so that ltconfig can load it
2159cat > confcache <<\EOF
2160# This file is a shell script that caches the results of configure
2161# tests run on this system so they can be shared between configure
2162# scripts and configure runs. It is not useful on other systems.
2163# If it contains results you don't want to keep, you may remove or edit it.
2164#
2165# By default, configure uses ./config.cache as the cache file,
2166# creating it if it does not exist already. You can give configure
2167# the --cache-file=FILE option to use a different cache file; that is
2168# what configure does when it calls configure scripts in
2169# subdirectories, so they share the cache.
2170# Giving --cache-file=/dev/null disables caching, for debugging configure.
2171# config.status only pays attention to the cache file if you give it the
2172# --recheck option to rerun configure.
2173#
2174EOF
2175# The following way of writing the cache mishandles newlines in values,
2176# but we know of no workaround that is simple, portable, and efficient.
2177# So, don't put newlines in cache variables' values.
2178# Ultrix sh set writes to stderr and can't be redirected directly,
2179# and sets the high bit in the cache file unless we assign to the vars.
2180(set) 2>&1 |
2181 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2182 *ac_space=\ *)
2183 # `set' does not quote correctly, so add quotes (double-quote substitution
2184 # turns \\\\ into \\, and sed turns \\ into \).
2185 sed -n \
2186 -e "s/'/'\\\\''/g" \
2187 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2188 ;;
2189 *)
2190 # `set' quotes correctly as required by POSIX, so do not add quotes.
2191 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2192 ;;
2193 esac >> confcache
2194if cmp -s $cache_file confcache; then
2195 :
2196else
2197 if test -w $cache_file; then
2198 echo "updating cache $cache_file"
2199 cat confcache > $cache_file
2200 else
2201 echo "not updating unwritable cache $cache_file"
2202 fi
2203fi
2204rm -f confcache
2205
2206
2207# Actually configure libtool. ac_aux_dir is where install-sh is found.
2208AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2209MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2210LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2211AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2212objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2213deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2214${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2215$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2216|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2217
2218# Reload cache, that may have been modified by ltconfig
2219if test -r "$cache_file"; then
2220 echo "loading cache $cache_file"
2221 . $cache_file
2222else
2223 echo "creating cache $cache_file"
2224 > $cache_file
2225fi
2226
2227
2228# This can be used to rebuild libtool when needed
2229LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2230
2231# Always use our own libtool.
2232LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2233
2234# Redirect the config.log output again, so that the ltconfig log is not
2235# clobbered by the next message.
2236exec 5>>./config.log
2237
2238
2239
2240
2241
2242
2243
2244user_bfd_gas=
2245# Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
2246if test "${enable_bfd_assembler+set}" = set; then
2247 enableval="$enable_bfd_assembler"
2248 case "${enableval}" in
2249 yes) need_bfd=yes user_bfd_gas=yes ;;
2250 no) user_bfd_gas=no ;;
2251 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
2252esac
2253fi
2254# Check whether --enable-targets or --disable-targets was given.
2255if test "${enable_targets+set}" = set; then
2256 enableval="$enable_targets"
2257 case "${enableval}" in
2258 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2259 ;;
2260 no) enable_targets= ;;
2261 *) enable_targets=$enableval ;;
2262esac
2263fi
2264# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2265if test "${enable_commonbfdlib+set}" = set; then
2266 enableval="$enable_commonbfdlib"
2267 case "${enableval}" in
2268 yes) commonbfdlib=true ;;
2269 no) commonbfdlib=false ;;
2270 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2271esac
2272fi
2273
2274using_cgen=no
2275
2276build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2277# Check whether --enable-build-warnings or --disable-build-warnings was given.
2278if test "${enable_build_warnings+set}" = set; then
2279 enableval="$enable_build_warnings"
2280 case "${enableval}" in
2281 yes) ;;
2282 no) build_warnings="-w";;
2283 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2284 build_warnings="${build_warnings} ${t}";;
2285 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2286 build_warnings="${t} ${build_warnings}";;
2287 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2288esac
2289if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2290 echo "Setting warning flags = $build_warnings" 6>&1
2291fi
2292fi
2293WARN_CFLAGS=""
2294if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2295 WARN_CFLAGS="${build_warnings}"
2296fi
2297
2298
2299# Generate a header file
2300
2301
2302
2303
2304# If we are on a DOS filesystem, we must use gdb.ini rather than
2305# .gdbinit.
2306GDBINIT=".gdbinit"
2307case "${host}" in
2308 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
2309 GDBINIT="gdb.ini"
2310 ;;
2311esac
2312
2313
2314te_file=generic
2315
2316# Makefile target for installing gas in $(tooldir)/bin.
2317install_tooldir=install-exec-tooldir
2318
2319canon_targets=""
2320all_targets=no
2321if test -n "$enable_targets" ; then
2322 for t in `echo $enable_targets | sed 's/,/ /g'`; do
2323 if test $t = "all"; then
2324 all_targets=yes
2325 continue
2326 fi
2327 result=`$ac_config_sub $t 2>/dev/null`
2328 if test -n "$result" ; then
2329 canon_targets="$canon_targets $result"
2330# else
2331# # Permit "all", etc. We don't support it yet though.
2332# canon_targets="$canon_targets $t"
2333 fi
2334 done
2335 _gas_uniq_list="$canon_targets"
2336_gas_uniq_newlist=""
2337for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2338 case $_gas_uniq_i in
2339 _gas_uniq_dummy) ;;
2340 *) case " $_gas_uniq_newlist " in
2341 *" $_gas_uniq_i "*) ;;
2342 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2343 esac ;;
2344 esac
2345done
2346canon_targets=$_gas_uniq_newlist
2347
2348fi
2349
2350emulations=""
2351
2352for this_target in $target $canon_targets ; do
2353
2354 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
2355
2356 # check for architecture variants
2357 arch=
2358 endian=
2359 case ${cpu} in
2360 alpha*) cpu_type=alpha ;;
2361 arm*b|xscale*b|strongarm*b) cpu_type=arm endian=big ;;
2362 arm*|xscale*|strongarm*) cpu_type=arm endian=little ;;
2363 hppa*) cpu_type=hppa ;;
2364 i[3456]86) cpu_type=i386 arch=i386;;
2365 x86_64) cpu_type=i386 arch=x86_64;;
2366 ia64) cpu_type=ia64 ;;
2367 ip2k) cpu_type=ip2k endian=big ;;
2368 iq2000) cpu_type=iq2000 endian=big ;;
2369 m6811|m6812|m68hc12) cpu_type=m68hc11 ;;
2370 m680[012346]0) cpu_type=m68k ;;
2371 m68008) cpu_type=m68k ;;
2372 m683??) cpu_type=m68k ;;
2373 m5200) cpu_type=m68k ;;
2374 m8*) cpu_type=m88k ;;
2375 mips*el) cpu_type=mips endian=little ;;
2376 mips*) cpu_type=mips endian=big ;;
2377 or32*) cpu_type=or32 endian=big ;;
2378 pjl*) cpu_type=pj endian=little ;;
2379 pj*) cpu_type=pj endian=big ;;
2380 powerpc*le*) cpu_type=ppc endian=little ;;
2381 powerpc*) cpu_type=ppc endian=big ;;
2382 rs6000*) cpu_type=ppc ;;
2383 s390x*) cpu_type=s390 arch=s390x ;;
2384 s390*) cpu_type=s390 arch=s390 ;;
2385 sh5*) cpu_type=sh64 endian=big ;;
2386 sh5le*) cpu_type=sh64 endian=little ;;
2387 sh64*) cpu_type=sh64 endian=big ;;
2388 sh64le*) cpu_type=sh64 endian=little ;;
2389 sh*le) cpu_type=sh endian=little ;;
2390 sh*) cpu_type=sh endian=big ;;
2391 sparclite*) cpu_type=sparc arch=sparclite ;;
2392 sparclet*) cpu_type=sparc arch=sparclet ;;
2393 sparc64*) cpu_type=sparc arch=v9-64 ;;
2394 sparc86x*) cpu_type=sparc arch=sparc86x ;;
2395 sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
2396 v850*) cpu_type=v850 ;;
2397 xtensa*) cpu_type=xtensa arch=xtensa ;;
2398 *) cpu_type=${cpu} ;;
2399 esac
2400
2401 if test ${this_target} = $target ; then
2402 target_cpu_type=${cpu_type}
2403 elif test ${target_cpu_type} != ${cpu_type} ; then
2404 continue
2405 fi
2406
2407 generic_target=${cpu_type}-$vendor-$os
2408 dev=no
2409 bfd_gas=no
2410 em=generic
2411
2412 # assign object format
2413 case ${generic_target} in
2414 a29k-*-coff) fmt=coff ;;
2415 a29k-amd-udi) fmt=coff ;;
2416 a29k-amd-ebmon) fmt=coff ;;
2417 a29k-nyu-sym1) fmt=coff ;;
2418 a29k-*-rtems*) fmt=coff ;;
2419 a29k-*-vxworks*) fmt=coff ;;
2420
2421 alpha*-*-*vms*) fmt=evax ;;
2422 alpha*-*-netware*) fmt=ecoff ;;
2423 alpha*-*-osf*) fmt=ecoff ;;
2424 alpha*-*-linuxecoff*) fmt=ecoff ;;
2425 alpha*-*-linux-gnu*) fmt=elf em=linux ;;
2426 alpha*-*-netbsd*) fmt=elf em=nbsd ;;
2427 alpha*-*-openbsd*) fmt=elf em=obsd ;;
2428
2429 arc-*-elf*) fmt=elf ;;
2430
2431 arm-*-aout) fmt=aout ;;
2432 arm-*-coff | thumb-*-coff) fmt=coff ;;
2433 arm-*-rtems | thumb-*-rtems) fmt=elf ;;
2434 arm-*-elf | thumb-*-elf) fmt=elf ;;
2435 arm-*-kaos*) fmt=elf ;;
2436 arm*-*-conix*) fmt=elf ;;
2437 arm-*-linux*aout*) fmt=aout em=linux ;;
2438 arm*-*-linux-gnu*) fmt=elf em=linux ;;
2439 arm*-*-uclinux*) fmt=elf em=linux ;;
2440 arm-*-netbsdelf*) fmt=elf em=nbsd ;;
2441 arm-*-*n*bsd*) fmt=aout em=nbsd ;;
2442 arm-**-nto*) fmt=elf ;;
2443 arm-*-oabi | thumb-*-oabi) fmt=elf ;;
2444 arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
2445 arm-*-wince) fmt=coff em=wince-pe ;;
2446 arm-*-pe | thumb-*-pe) fmt=coff em=pe ;;
2447 arm-*-riscix*) fmt=aout em=riscix ;;
2448 arm-*-vxworks) fmt=coff ;;
2449
2450 avr-*-*) fmt=elf ;;
2451
2452 cris-*-*) fmt=multi bfd_gas=yes ;;
2453
2454 d10v-*-*) fmt=elf ;;
2455 d30v-*-*) fmt=elf ;;
2456 dlx-*-*) fmt=elf ;;
2457
2458 fr30-*-*) fmt=elf ;;
2459 frv-*-*) fmt=elf ;;
2460
2461 hppa-*-linux*) case ${cpu} in
2462 hppa*64*) fmt=elf em=hppalinux64;;
2463 hppa*) fmt=elf em=linux;;
2464 esac ;;
2465 hppa-*-*elf*) fmt=elf em=hppa ;;
2466 hppa-*-lites*) fmt=elf em=hppa ;;
2467 hppa-*-netbsd*) fmt=elf em=nbsd ;;
2468 hppa-*-openbsd*) fmt=elf em=hppa ;;
2469 hppa-*-osf*) fmt=som em=hppa ;;
2470 hppa-*-rtems*) fmt=elf em=hppa ;;
2471 hppa-*-hpux11*) case ${cpu} in
2472 hppa*64*) fmt=elf em=hppa64 ;;
2473 hppa*) fmt=som em=hppa ;;
2474 esac ;;
2475 hppa-*-hpux*) fmt=som em=hppa ;;
2476 hppa-*-mpeix*) fmt=som em=hppa ;;
2477 hppa-*-bsd*) fmt=som em=hppa ;;
2478 hppa-*-hiux*) fmt=som em=hppa ;;
2479
2480 h8300-*-rtems*) fmt=coff ;;
2481 h8300-*-coff) fmt=coff ;;
2482 h8300-*-elf) fmt=elf ;;
2483 h8500-*-rtems*) fmt=coff ;;
2484 h8500-*-coff) fmt=coff ;;
2485
2486 i370-*-elf* | i370-*-linux*) fmt=elf ;;
2487 i386-ibm-aix*) fmt=coff em=i386aix ;;
2488 i386-sequent-bsd*) fmt=aout em=dynix ;;
2489 i386-*-beospe*) fmt=coff em=pe ;;
2490 i386-*-beos*) fmt=elf ;;
2491 i386-*-coff) fmt=coff ;;
2492 i386-*-elf) fmt=elf ;;
2493 i386-*-kaos*) fmt=elf ;;
2494 i386-*-bsd*) fmt=aout em=386bsd ;;
2495 i386-*-netbsd0.8) fmt=aout em=386bsd ;;
2496 i386-*-netbsdpe*) fmt=coff em=pe ;;
2497 i386-*-netbsdelf*) fmt=elf em=nbsd ;;
2498 i386-*-*n*bsd*) case ${cpu} in
2499 x86_64) fmt=elf em=nbsd ;;
2500 *) fmt=aout em=nbsd ;;
2501 esac ;;
2502 i386-*-linux*aout*) fmt=aout em=linux ;;
2503 i386-*-linux*oldld) fmt=aout em=linux ;;
2504 i386-*-linux*coff*) fmt=coff em=linux ;;
2505 i386-*-linux-gnu*) fmt=elf em=linux ;;
2506 x86_64-*-linux-gnu*) fmt=elf em=linux ;;
2507 i386-*-lynxos*) fmt=coff em=lynx ;;
2508 i386-*-sysv[45]*) fmt=elf ;;
2509 i386-*-solaris*) fmt=elf ;;
2510 i386-*-freebsdaout*) fmt=aout em=386bsd ;;
2511 i386-*-freebsd[12].*) fmt=aout em=386bsd ;;
2512 i386-*-freebsd[12]) fmt=aout em=386bsd ;;
2513 i386-*-sysv*) fmt=coff ;;
2514 i386-*-sco3.2v5*coff) fmt=coff ;;
2515 i386-*-isc*) fmt=coff ;;
2516 i386-*-sco3.2v5*) fmt=elf
2517 if test ${this_target} = $target; then
2518 cat >> confdefs.h <<\EOF
2519#define SCO_ELF 1
2520EOF
2521
2522 fi ;;
2523 i386-*-sco3.2*) fmt=coff ;;
2524 i386-*-vsta) fmt=aout ;;
2525 i386-*-msdosdjgpp* \
2526 | i386-*-go32* \
2527 | i386-go32-rtems*) fmt=coff em=go32
2528 cat >> confdefs.h <<\EOF
2529#define STRICTCOFF 1
2530EOF
2531 ;;
2532 i386-*-rtemself*) fmt=elf ;;
2533 i386-*-rtemscoff*) fmt=coff ;;
2534 i386-*-rtems*) fmt=elf ;;
2535 i386-*-gnu*) fmt=elf ;;
2536 i386-*-mach*) fmt=aout em=mach ;;
2537 i386-*-msdos*) fmt=aout ;;
2538 i386-*-moss*) fmt=elf ;;
2539 i386-*-pe) fmt=coff em=pe ;;
2540 i386-*-cygwin*) fmt=coff em=pe ;;
2541 i386-*-interix*) fmt=coff em=interix ;;
2542 i386-*-mingw32*) fmt=coff em=pe ;;
2543 i386-*-nto-qnx*) fmt=elf ;;
2544 i386-*-*nt*) fmt=coff em=pe ;;
2545 i386-*-os2-elf*) fmt=elf ;;
2546 i386-*-os2*) fmt=aout em=emx bfd_gas=yes ;;
2547 i386-*-vxworks*) fmt=aout ;;
2548 i386-*-chaos) fmt=elf ;;
2549
2550 i860-*-*) fmt=elf endian=little
2551 echo "configure: warning: GAS support for ${generic_target} is preliminary and a work in progress" 1>&2 ;;
2552 i960-*-bout) fmt=bout ;;
2553 i960-*-coff) fmt=coff em=ic960 ;;
2554 i960-*-rtems*) fmt=coff em=ic960 ;;
2555 i960-*-nindy*) fmt=bout ;;
2556 i960-*-vxworks5.0) fmt=bout ;;
2557 i960-*-vxworks5.*) fmt=coff em=ic960 ;;
2558 i960-*-vxworks*) fmt=bout ;;
2559 i960-*-elf*) fmt=elf ;;
2560
2561 ia64-*-elf*) fmt=elf ;;
2562 ia64-*-aix*) fmt=elf em=ia64aix ;;
2563 ia64-*-linux-gnu*) fmt=elf em=linux ;;
2564 ia64-*-hpux*) fmt=elf em=hpux ;;
2565 ia64-*-netbsd*) fmt=elf em=nbsd ;;
2566
2567 ip2k-*-*) fmt=elf ;;
2568
2569 iq2000-*-elf) fmt=elf bfd_gas=yes ;;
2570
2571 m32r-*-*) fmt=elf ;;
2572
2573 m68hc11-*-* | m6811-*-*) fmt=elf ;;
2574 m68hc12-*-* | m6812-*-*) fmt=elf ;;
2575
2576 m68k-*-vxworks*) fmt=aout em=sun3 ;;
2577 m68k-ericsson-ose) fmt=aout em=sun3 ;;
2578 m68k-*-sunos*) fmt=aout em=sun3 ;;
2579 m68k-motorola-sysv*) fmt=coff em=delta ;;
2580 m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
2581 m68k-apollo-*) fmt=coff em=apollo ;;
2582 m68k-*-elf*) fmt=elf ;;
2583 m68k-*-sysv4*) fmt=elf em=svr4 ;;
2584 m68k-*-sysv*) fmt=coff ;;
2585 m68k-*-coff | m68k-*-rtemscoff*) fmt=coff ;;
2586 m68k-*-rtems*) fmt=elf ;;
2587 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
2588 m68k-*-linux*aout*) fmt=aout em=linux ;;
2589 m68k-*-linux-gnu*) fmt=elf em=linux ;;
2590 m68k-*-gnu*) fmt=elf ;;
2591 m68k-*-lynxos*) fmt=coff em=lynx ;;
2592 m68k-*-netbsdelf*) fmt=elf em=nbsd ;;
2593 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
2594 m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
2595 m68k-apple-aux*) fmt=coff em=aux ;;
2596 m68k-*-psos*) fmt=elf em=psos;;
2597
2598 m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
2599 m88k-*-coff*) fmt=coff ;;
2600
2601 mcore-*-elf) fmt=elf ;;
2602 mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
2603
2604 # don't change em like *-*-bsd does
2605 mips-dec-openbsd*) fmt=elf endian=little ;;
2606 mips-dec-bsd*) fmt=aout endian=little ;;
2607 mips-sony-bsd*) fmt=ecoff ;;
2608 mips-*-bsd*)
2609 { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
2610 mips-*-ultrix*) fmt=ecoff endian=little ;;
2611 mips-*-osf*) fmt=ecoff endian=little ;;
2612 mips-*-ecoff*) fmt=ecoff ;;
2613 mips-*-pe*) fmt=coff endian=little em=pe ;;
2614 mips-*-irix6*) fmt=elf em=irix ;;
2615 mips-*-irix5*) fmt=elf em=irix ;;
2616 mips-*-irix*) fmt=ecoff em=irix ;;
2617 mips-*-lnews*) fmt=ecoff em=lnews ;;
2618 mips-*-riscos*) fmt=ecoff ;;
2619 mips*-*-linux*) fmt=elf em=tmips ;;
2620 mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;;
2621 mips-*-sysv*) fmt=ecoff ;;
2622 mips-*-elf* | mips-*-rtems*) fmt=elf ;;
2623 mips-*-netbsd*) fmt=elf ;;
2624 mips-*-openbsd*) fmt=elf ;;
2625 mips-*-vxworks*) fmt=elf ;;
2626
2627 mmix-*-*) fmt=elf ;;
2628 mn10200-*-*) fmt=elf ;;
2629 mn10300-*-*) fmt=elf ;;
2630 msp430-*-*) fmt=elf ;;
2631 openrisc-*-*) fmt=elf ;;
2632 or32-*-rtems*) fmt=coff ;;
2633 or32-*-coff) fmt=coff ;;
2634 or32-*-elf) fmt=elf ;;
2635 pj*) fmt=elf ;;
2636
2637 ppc-*-pe | ppc-*-cygwin*) fmt=coff em=pe ;;
2638 ppc-*-winnt*) fmt=coff em=pe ;;
2639 ppc-*-aix5*) fmt=coff em=aix5 ;;
2640 ppc-*-aix*) fmt=coff ;;
2641 ppc-*-beos*) fmt=coff ;;
2642 ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
2643 ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
2644 ppc-*-linux-gnu*) fmt=elf
2645 case "$endian" in
2646 big) ;;
2647 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
2648 esac ;;
2649 ppc-*-solaris*) fmt=elf
2650 if test ${this_target} = $target; then
2651 cat >> confdefs.h <<\EOF
2652#define TARGET_SOLARIS_COMMENT 1
2653EOF
2654
2655 fi
2656 if test x${endian} = xbig; then
2657 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
2658 fi ;;
2659 ppc-*-rtems*) fmt=elf ;;
2660 ppc-*-macos* | ppc-*-mpw*) fmt=coff em=macos ;;
2661 ppc-*-netware*) fmt=elf em=ppcnw ;;
2662 ppc-**-nto*) fmt=elf ;;
2663 ppc-*-vxworks*) fmt=elf ;;
2664 ppc-*-windiss*) fmt=elf ;;
2665 ppc-*-kaos*) fmt=elf ;;
2666
2667 s390x-*-linux-gnu*) fmt=elf em=linux ;;
2668 s390-*-linux-gnu*) fmt=elf em=linux ;;
2669
2670 sh*-*-linux*) fmt=elf em=linux
2671 case ${cpu} in
2672 sh*eb) endian=big ;;
2673 *) endian=little ;;
2674 esac ;;
2675 sh5*-*-netbsd*) fmt=elf em=nbsd ;;
2676 sh64*-*-netbsd*) fmt=elf em=nbsd ;;
2677 sh*-*-netbsdelf*) fmt=elf em=nbsd ;;
2678 sh-*-elf*) fmt=elf ;;
2679 sh-*-coff*) fmt=coff ;;
2680 sh-*-nto*) fmt=elf ;;
2681 sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
2682 sh-*-rtemself*) fmt=elf ;;
2683 sh-*-rtems*) fmt=coff ;;
2684 sh-*-kaos*) fmt=elf ;;
2685 shle*-*-kaos*) fmt=elf ;;
2686 sh64-*-elf*) fmt=elf ;;
2687
2688 ns32k-pc532-mach*) fmt=aout em=pc532mach ;;
2689 ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
2690 ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
2691 ns32k-*-*n*bsd*) fmt=aout em=nbsd532 ;;
2692
2693 sparc-*-rtemsaout*) fmt=aout ;;
2694 sparc-*-rtemself*) fmt=elf ;;
2695 sparc-*-rtems*) fmt=elf ;;
2696 sparc-*-sunos4*) fmt=aout em=sun3 ;;
2697 sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;;
2698 sparc-*-coff) fmt=coff ;;
2699 sparc-*-linux*aout*) fmt=aout em=linux ;;
2700 sparc-*-linux-gnu*) fmt=elf em=linux ;;
2701 sparc-*-lynxos*) fmt=coff em=lynx ;;
2702 sparc-fujitsu-none) fmt=aout ;;
2703 sparc-*-elf) fmt=elf ;;
2704 sparc-*-sysv4*) fmt=elf ;;
2705 sparc-*-solaris*) fmt=elf ;;
2706 sparc-*-netbsdelf*) fmt=elf em=nbsd ;;
2707 sparc-*-*n*bsd*) case ${cpu} in
2708 sparc64) fmt=elf em=nbsd ;;
2709 *) fmt=aout em=nbsd ;;
2710 esac ;;
2711 strongarm-*-coff) fmt=coff ;;
2712 strongarm-*-elf) fmt=elf ;;
2713 strongarm-*-kaos*) fmt=elf ;;
2714 xscale-*-coff) fmt=coff ;;
2715 xscale-*-elf) fmt=elf ;;
2716
2717 tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
2718 tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
2719 tic4x-*-* | c4x-*-*) fmt=coff bfd_gas=yes ;;
2720 tic54x-*-* | c54x*-*-*) fmt=coff bfd_gas=yes need_libm=yes;;
2721 tic80-*-*) fmt=coff ;;
2722
2723 v850-*-*) fmt=elf ;;
2724 v850e-*-*) fmt=elf ;;
2725 v850ea-*-*) fmt=elf ;;
2726
2727 vax-*-netbsdelf*) fmt=elf em=nbsd ;;
2728 vax-*-netbsd*) fmt=aout em=nbsd ;;
2729 vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
2730 vax-*-vms) fmt=vms ;;
2731
2732 w65-*-*) fmt=coff ;;
2733
2734 xstormy16-*-*) fmt=elf ;;
2735
2736 xtensa-*-*) fmt=elf ;;
2737
2738 z8k-*-coff | z8k-*-sim) fmt=coff ;;
2739
2740 *-*-aout | *-*-scout) fmt=aout ;;
2741 *-*-freebsd*) fmt=elf em=freebsd ;;
2742 *-*-nindy*) fmt=bout ;;
2743 *-*-bsd*) fmt=aout em=sun3 ;;
2744 *-*-generic) fmt=generic ;;
2745 *-*-xray | *-*-hms) fmt=coff ;;
2746 *-*-sim) fmt=coff ;;
2747 *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;;
2748 *-*-aros*) fmt=elf em=linux bfd_gas=yes ;;
2749 *-*-vxworks) fmt=aout ;;
2750 *-*-netware) fmt=elf ;;
2751 esac
2752
2753 if test ${this_target} = $target ; then
2754 endian_def=
2755 if test x${endian} = xbig; then
2756 endian_def=1
2757 elif test x${endian} = xlittle; then
2758 endian_def=0
2759 fi
2760 if test x${endian_def} != x; then
2761 cat >> confdefs.h <<EOF
2762#define TARGET_BYTES_BIG_ENDIAN $endian_def
2763EOF
2764
2765 fi
2766 fi
2767
2768 case ${cpu_type}-${fmt} in
2769 alpha*-* | arm-* | i386-* | ia64*-* | mips-* | ns32k-* \
2770 | pdp11-* | ppc-* | sparc-* | strongarm-* | xscale-* \
2771 | *-elf | *-ecoff | *-som)
2772 bfd_gas=yes ;;
2773 esac
2774
2775# Other random stuff.
2776
2777 case ${cpu_type} in
2778 mips)
2779 # Set mips_cpu to the name of the default CPU.
2780 case ${target_cpu} in
2781 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
2782 mips_cpu=from-abi
2783 ;;
2784 mipsisa32 | mipsisa32el)
2785 mips_cpu=mips32
2786 ;;
2787 mipsisa32r2 | mipsisa32r2el)
2788 mips_cpu=mips32r2
2789 ;;
2790 mipsisa64 | mipsisa64el)
2791 mips_cpu=mips64
2792 ;;
2793 mipstx39 | mipstx39el)
2794 mips_cpu=r3900
2795 ;;
2796 mips64vr | mips64vrel)
2797 mips_cpu=vr4100
2798 ;;
2799 mipsisa32r2*)
2800 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
2801 ;;
2802 mips64* | mipsisa64* | mipsisa32*)
2803 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
2804 ;;
2805 *)
2806 { echo "configure: error: $target_cpu isn't a supported MIPS CPU name" 1>&2; exit 1; }
2807 ;;
2808 esac
2809 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
2810 # binaries. It's a GNU extension that some OSes don't understand.
2811 # The value only matters on ELF targets.
2812 case ${target} in
2813 *-*-irix*)
2814 use_e_mips_abi_o32=0
2815 ;;
2816 *)
2817 use_e_mips_abi_o32=1
2818 ;;
2819 esac
2820 # Decide whether to generate 32-bit or 64-bit code by default.
2821 # Used to resolve -march=from-abi when an embedded ABI is selected.
2822 case ${target} in
2823 mips64*-*-* | mipsisa64*-*-*)
2824 mips_default_64bit=1
2825 ;;
2826 *)
2827 mips_default_64bit=0
2828 ;;
2829 esac
2830 # Decide which ABI to target by default.
2831 case ${target} in
2832 mips64*-linux* | mips-sgi-irix6*)
2833 mips_default_abi=N32_ABI
2834 ;;
2835 mips*-linux*)
2836 mips_default_abi=O32_ABI
2837 ;;
2838 *)
2839 mips_default_abi=NO_ABI
2840 ;;
2841 esac
2842 cat >> confdefs.h <<EOF
2843#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
2844EOF
2845
2846 cat >> confdefs.h <<EOF
2847#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
2848EOF
2849
2850 cat >> confdefs.h <<EOF
2851#define MIPS_DEFAULT_64BIT $mips_default_64bit
2852EOF
2853
2854 cat >> confdefs.h <<EOF
2855#define MIPS_DEFAULT_ABI $mips_default_abi
2856EOF
2857
2858 ;;
2859 esac
2860
2861 # Do we need the opcodes library?
2862 case ${cpu_type} in
2863 vax | i386 | tic30)
2864 ;;
2865
2866 *)
2867 need_opcodes=yes
2868
2869 case "${enable_shared}" in
2870 yes) shared_opcodes=true ;;
2871 *opcodes*) shared_opcodes=true ;;
2872 *) shared_opcodes=false ;;
2873 esac
2874 if test "${shared_opcodes}" = "true"; then
2875 # A shared libopcodes must be linked against libbfd.
2876 need_bfd=yes
2877 fi
2878 ;;
2879 esac
2880
2881 # Any other special object files needed ?
2882 case ${cpu_type} in
2883 fr30 | ip2k | iq2000 | m32r | openrisc)
2884 using_cgen=yes
2885 ;;
2886
2887 frv)
2888 using_cgen=yes
2889 ;;
2890 m68k)
2891 case ${extra_objects} in
2892 *m68k-parse.o*) ;;
2893 *) extra_objects="$extra_objects m68k-parse.o" ;;
2894 esac
2895 ;;
2896
2897 mips)
2898 echo ${extra_objects} | grep -s "itbl-parse.o"
2899 if test $? -ne 0 ; then
2900 extra_objects="$extra_objects itbl-parse.o"
2901 fi
2902
2903 echo ${extra_objects} | grep -s "itbl-lex.o"
2904 if test $? -ne 0 ; then
2905 extra_objects="$extra_objects itbl-lex.o"
2906 fi
2907
2908 echo ${extra_objects} | grep -s "itbl-ops.o"
2909 if test $? -ne 0 ; then
2910 extra_objects="$extra_objects itbl-ops.o"
2911 fi
2912 ;;
2913
2914 i386 | s390 | sparc)
2915 if test $this_target = $target ; then
2916 cat >> confdefs.h <<EOF
2917#define DEFAULT_ARCH "${arch}"
2918EOF
2919
2920 fi
2921 ;;
2922
2923 xstormy16)
2924 using_cgen=yes
2925 ;;
2926
2927 xtensa)
2928 echo ${extra_objects} | grep -s "xtensa-relax.o"
2929 if test $? -ne 0 ; then
2930 extra_objects="$extra_objects xtensa-relax.o"
2931 fi
2932 ;;
2933
2934 *)
2935 ;;
2936 esac
2937
2938 if test $using_cgen = yes ; then
2939 case "x${extra_objects}" in
2940 *cgen.o*) ;;
2941 *) extra_objects="$extra_objects cgen.o" ;;
2942 esac
2943 fi
2944
2945# See if we really can support this configuration with the emulation code.
2946
2947 if test $this_target = $target ; then
2948 primary_bfd_gas=$bfd_gas
2949 obj_format=$fmt
2950 te_file=$em
2951
2952 if test $bfd_gas = no ; then
2953 # Can't support other configurations this way.
2954 break
2955 fi
2956 elif test $bfd_gas = no ; then
2957 # Can't support this configuration.
2958 break
2959 fi
2960
2961# From target name and format, produce a list of supported emulations.
2962
2963 case ${generic_target}-${fmt} in
2964 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2965 mips*-*-linux*-*) case "$endian" in
2966 big) emulation="mipsbelf mipslelf mipself" ;;
2967 *) emulation="mipslelf mipsbelf mipself" ;;
2968 esac ;;
2969 mips-*-lnews*-ecoff) ;;
2970 mips-*-*-ecoff) case "$endian" in
2971 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
2972 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
2973 esac ;;
2974 mips-*-*-elf) case "$endian" in
2975 big) emulation="mipsbelf mipslelf mipself" ;;
2976 *) emulation="mipslelf mipsbelf mipself" ;;
2977 esac ;;
2978 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2979 # i386-pc-pe-coff != i386-pc-coff.
2980 i386-*-pe-coff) ;;
2981 # Uncommenting the next line will turn on support for i386 AOUT
2982 # for the default linux configuration
2983 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
2984 #
2985 i386-*-aout) emulation="i386aout" ;;
2986 i386-*-coff) emulation="i386coff" ;;
2987 i386-*-elf) emulation="i386elf" ;;
2988
2989 # Always all formats. The first stated emulation becomes the default.
2990 cris-*-*aout*) emulation="crisaout criself" ;;
2991 cris-*-*) emulation="criself crisaout" ;;
2992 esac
2993
2994 emulations="$emulations $emulation"
2995
2996done
2997
2998# Turn on all targets if possible
2999if test ${all_targets} = "yes"; then
3000 case ${target_cpu_type} in
3001 i386)
3002 case ${obj_format} in
3003 aout)
3004 emulations="$emulations i386coff i386elf"
3005 ;;
3006 coff)
3007 emulations="$emulations i386aout i386elf"
3008 ;;
3009 elf)
3010 emulations="$emulations i386aout i386coff"
3011 ;;
3012 esac
3013 ;;
3014 esac
3015fi
3016
3017# Assign floating point type. Most processors with FP support
3018# IEEE FP. On those that don't support FP at all, usually IEEE
3019# is emulated.
3020case ${target_cpu} in
3021 vax | tahoe ) atof=${target_cpu} ;;
3022 pdp11) atof=vax ;;
3023 *) atof=ieee ;;
3024esac
3025
3026case "${obj_format}" in
3027 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
3028esac
3029
3030# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
3031cgen_cpu_prefix=""
3032if test $using_cgen = yes ; then
3033 case ${target_cpu} in
3034 *) cgen_cpu_prefix=${target_cpu} ;;
3035 esac
3036
3037 cat >> confdefs.h <<\EOF
3038#define USING_CGEN 1
3039EOF
3040
3041fi
3042
3043
3044if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
3045 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
3046fi
3047
3048if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
3049 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
3050fi
3051
3052case ${user_bfd_gas}-${primary_bfd_gas} in
3053 yes-yes | no-no)
3054 # We didn't override user's choice.
3055 ;;
3056 no-yes)
3057 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
3058 ;;
3059 no-preferred)
3060 primary_bfd_gas=no
3061 ;;
3062 *-preferred)
3063 primary_bfd_gas=yes
3064 ;;
3065 yes-*)
3066 primary_bfd_gas=yes
3067 ;;
3068 -*)
3069 # User specified nothing.
3070 ;;
3071esac
3072
3073# Some COFF configurations want these random other flags set.
3074case ${obj_format} in
3075 coff)
3076 case ${target_cpu_type} in
3077 i386) cat >> confdefs.h <<\EOF
3078#define I386COFF 1
3079EOF
3080 ;;
3081 m68k) cat >> confdefs.h <<\EOF
3082#define M68KCOFF 1
3083EOF
3084 ;;
3085 m88k) cat >> confdefs.h <<\EOF
3086#define M88KCOFF 1
3087EOF
3088 ;;
3089 esac
3090 ;;
3091esac
3092
3093# Getting this done right is going to be a bitch. Each configuration specified
3094# with --enable-targets=... should be checked for environment, format, cpu, and
3095# bfd_gas setting.
3096#
3097# For each configuration, the necessary object file support code must be linked
3098# in. This might be only one, it might be up to four. The necessary emulation
3099# code needs to be provided, too.
3100#
3101# And then there's "--enable-targets=all"....
3102#
3103# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
3104
3105formats="${obj_format}"
3106emfiles=""
3107EMULATIONS=""
3108_gas_uniq_list="$emulations"
3109_gas_uniq_newlist=""
3110for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
3111 case $_gas_uniq_i in
3112 _gas_uniq_dummy) ;;
3113 *) case " $_gas_uniq_newlist " in
3114 *" $_gas_uniq_i "*) ;;
3115 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
3116 esac ;;
3117 esac
3118done
3119emulations=$_gas_uniq_newlist
3120
3121for em in . $emulations ; do
3122 case $em in
3123 .) continue ;;
3124 mipsbelf | mipslelf | mipself)
3125 fmt=elf file=mipself ;;
3126 mipsbecoff | mipslecoff | mipsecoff)
3127 fmt=ecoff file=mipsecoff ;;
3128 *coff)
3129 fmt=coff file=$em ;;
3130 *aout)
3131 fmt=aout file=$em ;;
3132 *elf)
3133 fmt=elf file=$em ;;
3134 esac
3135 formats="$formats $fmt"
3136 emfiles="$emfiles e-$file.o"
3137 EMULATIONS="$EMULATIONS &$em,"
3138done
3139_gas_uniq_list="$formats"
3140_gas_uniq_newlist=""
3141for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
3142 case $_gas_uniq_i in
3143 _gas_uniq_dummy) ;;
3144 *) case " $_gas_uniq_newlist " in
3145 *" $_gas_uniq_i "*) ;;
3146 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
3147 esac ;;
3148 esac
3149done
3150formats=$_gas_uniq_newlist
3151
3152_gas_uniq_list="$emfiles"
3153_gas_uniq_newlist=""
3154for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
3155 case $_gas_uniq_i in
3156 _gas_uniq_dummy) ;;
3157 *) case " $_gas_uniq_newlist " in
3158 *" $_gas_uniq_i "*) ;;
3159 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
3160 esac ;;
3161 esac
3162done
3163emfiles=$_gas_uniq_newlist
3164
3165if test `set . $formats ; shift ; echo $#` -gt 1 ; then
3166 for fmt in $formats ; do
3167 case $fmt in
3168 aout) cat >> confdefs.h <<\EOF
3169#define OBJ_MAYBE_AOUT 1
3170EOF
3171 ;;
3172 bout) cat >> confdefs.h <<\EOF
3173#define OBJ_MAYBE_BOUT 1
3174EOF
3175 ;;
3176 coff) cat >> confdefs.h <<\EOF
3177#define OBJ_MAYBE_COFF 1
3178EOF
3179 ;;
3180 ecoff) cat >> confdefs.h <<\EOF
3181#define OBJ_MAYBE_ECOFF 1
3182EOF
3183 ;;
3184 elf) cat >> confdefs.h <<\EOF
3185#define OBJ_MAYBE_ELF 1
3186EOF
3187 ;;
3188 generic) cat >> confdefs.h <<\EOF
3189#define OBJ_MAYBE_GENERIC 1
3190EOF
3191 ;;
3192 hp300) cat >> confdefs.h <<\EOF
3193#define OBJ_MAYBE_HP300 1
3194EOF
3195 ;;
3196 ieee) cat >> confdefs.h <<\EOF
3197#define OBJ_MAYBE_IEEE 1
3198EOF
3199 ;;
3200 som) cat >> confdefs.h <<\EOF
3201#define OBJ_MAYBE_SOM 1
3202EOF
3203 ;;
3204 vms) cat >> confdefs.h <<\EOF
3205#define OBJ_MAYBE_VMS 1
3206EOF
3207 ;;
3208 esac
3209 extra_objects="$extra_objects obj-$fmt.o"
3210 done
3211 obj_format=multi
3212fi
3213if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
3214 DEFAULT_EMULATION=`set . $emulations ; echo $2`
3215 # e-mips* has more than one emulation per file, e-i386* has just one at the
3216 # moment. If only one emulation is specified, then don't define
3217 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
3218 case "${obj_format}${emfiles}" in
3219 multi* | *mips*)
3220 extra_objects="$extra_objects $emfiles"
3221 cat >> confdefs.h <<\EOF
3222#define USE_EMULATIONS 1
3223EOF
3224 ;;
3225 esac
3226fi
3227
3228cat >> confdefs.h <<EOF
3229#define EMULATIONS $EMULATIONS
3230EOF
3231
3232cat >> confdefs.h <<EOF
3233#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
3234EOF
3235
3236
3237case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
3238 yes-*-coff) need_bfd=yes ;;
3239 no-*-coff) need_bfd=yes
3240 cat >> confdefs.h <<\EOF
3241#define MANY_SEGMENTS 1
3242EOF
3243 ;;
3244esac
3245
3246reject_dev_configs=yes
3247
3248case ${reject_dev_configs}-${dev} in
3249 yes-yes) # Oops.
3250 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
3251 ;;
3252esac
3253
3254
3255
3256
3257
3258
3259
3260case "${primary_bfd_gas}" in
3261 yes) cat >> confdefs.h <<\EOF
3262#define BFD_ASSEMBLER 1
3263EOF
3264
3265 need_bfd=yes ;;
3266esac
3267
3268# do we need the opcodes library?
3269case "${need_opcodes}" in
3270yes)
3271 OPCODES_LIB=../opcodes/libopcodes.la
3272 ;;
3273esac
3274
3275case "${need_bfd}" in
3276yes)
3277 BFDLIB=../bfd/libbfd.la
3278 BFDVER_H=../bfd/bfdver.h
3279 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
3280 ;;
3281esac
3282
3283
3284
3285
3286
3287
3288
3289cat >> confdefs.h <<EOF
3290#define TARGET_ALIAS "${target_alias}"
3291EOF
3292
3293cat >> confdefs.h <<EOF
3294#define TARGET_CANONICAL "${target}"
3295EOF
3296
3297cat >> confdefs.h <<EOF
3298#define TARGET_CPU "${target_cpu}"
3299EOF
3300
3301cat >> confdefs.h <<EOF
3302#define TARGET_VENDOR "${target_vendor}"
3303EOF
3304
3305cat >> confdefs.h <<EOF
3306#define TARGET_OS "${target_os}"
3307EOF
3308
3309
3310# Extract the first word of "gcc", so it can be a program name with args.
3311set dummy gcc; ac_word=$2
3312echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3313echo "configure:3314: checking for $ac_word" >&5
3314if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3316else
3317 if test -n "$CC"; then
3318 ac_cv_prog_CC="$CC" # Let the user override the test.
3319else
3320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3321 ac_dummy="$PATH"
3322 for ac_dir in $ac_dummy; do
3323 test -z "$ac_dir" && ac_dir=.
3324 if test -f $ac_dir/$ac_word -o \
3325 -f $ac_dir/$ac_word$ac_exeext ; then
3326 ac_cv_prog_CC="gcc"
3327 break
3328 fi
3329 done
3330 IFS="$ac_save_ifs"
3331fi
3332fi
3333CC="$ac_cv_prog_CC"
3334if test -n "$CC"; then
3335 echo "$ac_t""$CC" 1>&6
3336else
3337 echo "$ac_t""no" 1>&6
3338fi
3339
3340if test -z "$CC"; then
3341 # Extract the first word of "cc", so it can be a program name with args.
3342set dummy cc; ac_word=$2
3343echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3344echo "configure:3345: checking for $ac_word" >&5
3345if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3347else
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3350else
3351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3352 ac_prog_rejected=no
3353 ac_dummy="$PATH"
3354 for ac_dir in $ac_dummy; do
3355 test -z "$ac_dir" && ac_dir=.
3356 if test -f $ac_dir/$ac_word -o \
3357 -f $ac_dir/$ac_word$ac_exeext ; then
3358 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
3359 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
3360 ac_prog_rejected=yes
3361 continue
3362 fi
3363 ac_cv_prog_CC="cc"
3364 break
3365 fi
3366 done
3367 IFS="$ac_save_ifs"
3368if test $ac_prog_rejected = yes; then
3369 # We found a bogon in the path, so make sure we never use it.
3370 set dummy $ac_cv_prog_CC
3371 shift
3372 if test $# -gt 0; then
3373 # We chose a different compiler from the bogus one.
3374 # However, it has the same basename, so the bogon will be chosen
3375 # first if we set CC to just the basename; use the full file name.
3376 shift
3377 set dummy "$ac_dir/$ac_word" "$@"
3378 shift
3379 ac_cv_prog_CC="$@"
3380 fi
3381fi
3382fi
3383fi
3384CC="$ac_cv_prog_CC"
3385if test -n "$CC"; then
3386 echo "$ac_t""$CC" 1>&6
3387else
3388 echo "$ac_t""no" 1>&6
3389fi
3390
3391 if test -z "$CC"; then
3392 case "`uname -s`" in
3393 *win32* | *WIN32*)
3394 # Extract the first word of "cl", so it can be a program name with args.
3395set dummy cl; ac_word=$2
3396echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3397echo "configure:3398: checking for $ac_word" >&5
3398if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3399 echo $ac_n "(cached) $ac_c" 1>&6
3400else
3401 if test -n "$CC"; then
3402 ac_cv_prog_CC="$CC" # Let the user override the test.
3403else
3404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3405 ac_dummy="$PATH"
3406 for ac_dir in $ac_dummy; do
3407 test -z "$ac_dir" && ac_dir=.
3408 if test -f $ac_dir/$ac_word -o \
3409 -f $ac_dir/$ac_word$ac_exeext ; then
3410 ac_cv_prog_CC="cl"
3411 break
3412 fi
3413 done
3414 IFS="$ac_save_ifs"
3415fi
3416fi
3417CC="$ac_cv_prog_CC"
3418if test -n "$CC"; then
3419 echo "$ac_t""$CC" 1>&6
3420else
3421 echo "$ac_t""no" 1>&6
3422fi
3423 ;;
3424 esac
3425 fi
3426 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3427fi
3428
3429echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3430echo "configure:3431: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
3431
3432ac_ext=c
3433# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3434ac_cpp='$CPP $CPPFLAGS'
3435ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3436ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3437cross_compiling=$ac_cv_prog_cc_cross
3438
3439cat > conftest.$ac_ext << EOF
3440
3441#line 3442 "configure"
3442#include "confdefs.h"
3443
3444main(){return(0);}
3445EOF
3446if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3447 ac_cv_prog_cc_works=yes
3448 # If we can't run a trivial program, we are probably using a cross compiler.
3449 if (./conftest; exit) 2>/dev/null; then
3450 ac_cv_prog_cc_cross=no
3451 else
3452 ac_cv_prog_cc_cross=yes
3453 fi
3454else
3455 echo "configure: failed program was:" >&5
3456 cat conftest.$ac_ext >&5
3457 ac_cv_prog_cc_works=no
3458fi
3459rm -fr conftest*
3460ac_ext=c
3461# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3462ac_cpp='$CPP $CPPFLAGS'
3463ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3464ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3465cross_compiling=$ac_cv_prog_cc_cross
3466
3467echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3468if test $ac_cv_prog_cc_works = no; then
3469 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3470fi
3471echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3472echo "configure:3473: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
3473echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3474cross_compiling=$ac_cv_prog_cc_cross
3475
3476echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3477echo "configure:3478: checking whether we are using GNU C" >&5
3478if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3480else
3481 cat > conftest.c <<EOF
3482#ifdef __GNUC__
3483 yes;
3484#endif
3485EOF
3486if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3487 ac_cv_prog_gcc=yes
3488else
3489 ac_cv_prog_gcc=no
3490fi
3491fi
3492
3493echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3494
3495if test $ac_cv_prog_gcc = yes; then
3496 GCC=yes
3497else
3498 GCC=
3499fi
3500
3501ac_test_CFLAGS="${CFLAGS+set}"
3502ac_save_CFLAGS="$CFLAGS"
3503CFLAGS=
3504echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3505echo "configure:3506: checking whether ${CC-cc} accepts -g" >&5
3506if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
3507 echo $ac_n "(cached) $ac_c" 1>&6
3508else
3509 echo 'void f(){}' > conftest.c
3510if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3511 ac_cv_prog_cc_g=yes
3512else
3513 ac_cv_prog_cc_g=no
3514fi
3515rm -f conftest*
3516
3517fi
3518
3519echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3520if test "$ac_test_CFLAGS" = set; then
3521 CFLAGS="$ac_save_CFLAGS"
3522elif test $ac_cv_prog_cc_g = yes; then
3523 if test "$GCC" = yes; then
3524 CFLAGS="-g -O2"
3525 else
3526 CFLAGS="-g"
3527 fi
3528else
3529 if test "$GCC" = yes; then
3530 CFLAGS="-O2"
3531 else
3532 CFLAGS=
3533 fi
3534fi
3535
3536
3537for ac_prog in 'bison -y' byacc
3538do
3539# Extract the first word of "$ac_prog", so it can be a program name with args.
3540set dummy $ac_prog; ac_word=$2
3541echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3542echo "configure:3543: checking for $ac_word" >&5
3543if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3545else
3546 if test -n "$YACC"; then
3547 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3548else
3549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3550 ac_dummy="$PATH"
3551 for ac_dir in $ac_dummy; do
3552 test -z "$ac_dir" && ac_dir=.
3553 if test -f $ac_dir/$ac_word -o \
3554 -f $ac_dir/$ac_word$ac_exeext ; then
3555 ac_cv_prog_YACC="$ac_prog"
3556 break
3557 fi
3558 done
3559 IFS="$ac_save_ifs"
3560fi
3561fi
3562YACC="$ac_cv_prog_YACC"
3563if test -n "$YACC"; then
3564 echo "$ac_t""$YACC" 1>&6
3565else
3566 echo "$ac_t""no" 1>&6
3567fi
3568
3569test -n "$YACC" && break
3570done
3571test -n "$YACC" || YACC="yacc"
3572
3573echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3574echo "configure:3575: checking how to run the C preprocessor" >&5
3575# On Suns, sometimes $CPP names a directory.
3576if test -n "$CPP" && test -d "$CPP"; then
3577 CPP=
3578fi
3579if test -z "$CPP"; then
3580if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3582else
3583 # This must be in double quotes, not single quotes, because CPP may get
3584 # substituted into the Makefile and "${CC-cc}" will confuse make.
3585 CPP="${CC-cc} -E"
3586 # On the NeXT, cc -E runs the code through the compiler's parser,
3587 # not just through cpp.
3588 cat > conftest.$ac_ext <<EOF
3589#include <sys/types.h>
3590#line 3591 "configure"
3591#include "confdefs.h"
3592#include <assert.h>
3593Syntax Error
3594EOF
3595ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3596{ (eval echo configure:3597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3597ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3598if test -z "$ac_err"; then
3599 :
3600else
3601 echo "$ac_err" >&5
3602 echo "configure: failed program was:" >&5
3603 cat conftest.$ac_ext >&5
3604 rm -rf conftest*
3605 CPP="${CC-cc} -E -traditional-cpp"
3606 cat > conftest.$ac_ext <<EOF
3607#include <sys/types.h>
3608#line 3609 "configure"
3609#include "confdefs.h"
3610#include <assert.h>
3611Syntax Error
3612EOF
3613ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3614{ (eval echo configure:3615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3615ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3616if test -z "$ac_err"; then
3617 :
3618else
3619 echo "$ac_err" >&5
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 rm -rf conftest*
3623 CPP="${CC-cc} -nologo -E"
3624 cat > conftest.$ac_ext <<EOF
3625#include <sys/types.h>
3626#line 3627 "configure"
3627#include "confdefs.h"
3628#include <assert.h>
3629Syntax Error
3630EOF
3631ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3632{ (eval echo configure:3633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3633ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3634if test -z "$ac_err"; then
3635 :
3636else
3637 echo "$ac_err" >&5
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3640 rm -rf conftest*
3641 CPP=/lib/cpp
3642fi
3643rm -f conftest*
3644fi
3645rm -f conftest*
3646fi
3647rm -f conftest*
3648 ac_cv_prog_CPP="$CPP"
3649fi
3650 CPP="$ac_cv_prog_CPP"
3651else
3652 ac_cv_prog_CPP="$CPP"
3653fi
3654echo "$ac_t""$CPP" 1>&6
3655
3656missing_dir=`cd $ac_aux_dir && pwd`
3657for ac_prog in flex lex
3658do
3659# Extract the first word of "$ac_prog", so it can be a program name with args.
3660set dummy $ac_prog; ac_word=$2
3661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3662echo "configure:3663: checking for $ac_word" >&5
3663if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3664 echo $ac_n "(cached) $ac_c" 1>&6
3665else
3666 if test -n "$LEX"; then
3667 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3668else
3669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3670 ac_dummy="$PATH"
3671 for ac_dir in $ac_dummy; do
3672 test -z "$ac_dir" && ac_dir=.
3673 if test -f $ac_dir/$ac_word -o \
3674 -f $ac_dir/$ac_word$ac_exeext ; then
3675 ac_cv_prog_LEX="$ac_prog"
3676 break
3677 fi
3678 done
3679 IFS="$ac_save_ifs"
3680fi
3681fi
3682LEX="$ac_cv_prog_LEX"
3683if test -n "$LEX"; then
3684 echo "$ac_t""$LEX" 1>&6
3685else
3686 echo "$ac_t""no" 1>&6
3687fi
3688
3689test -n "$LEX" && break
3690done
3691test -n "$LEX" || LEX=""$missing_dir/missing flex""
3692
3693# Extract the first word of "flex", so it can be a program name with args.
3694set dummy flex; ac_word=$2
3695echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3696echo "configure:3697: checking for $ac_word" >&5
3697if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3699else
3700 if test -n "$LEX"; then
3701 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3702else
3703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3704 ac_dummy="$PATH"
3705 for ac_dir in $ac_dummy; do
3706 test -z "$ac_dir" && ac_dir=.
3707 if test -f $ac_dir/$ac_word -o \
3708 -f $ac_dir/$ac_word$ac_exeext ; then
3709 ac_cv_prog_LEX="flex"
3710 break
3711 fi
3712 done
3713 IFS="$ac_save_ifs"
3714 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
3715fi
3716fi
3717LEX="$ac_cv_prog_LEX"
3718if test -n "$LEX"; then
3719 echo "$ac_t""$LEX" 1>&6
3720else
3721 echo "$ac_t""no" 1>&6
3722fi
3723
3724if test -z "$LEXLIB"
3725then
3726 case "$LEX" in
3727 flex*) ac_lib=fl ;;
3728 *) ac_lib=l ;;
3729 esac
3730 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3731echo "configure:3732: checking for yywrap in -l$ac_lib" >&5
3732ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3733if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3735else
3736 ac_save_LIBS="$LIBS"
3737LIBS="-l$ac_lib $LIBS"
3738cat > conftest.$ac_ext <<EOF
3739#line 3740 "configure"
3740#include "confdefs.h"
3741/* Override any gcc2 internal prototype to avoid an error. */
3742/* We use char because int might match the return type of a gcc2
3743 builtin and then its argument prototype would still apply. */
3744char yywrap();
3745
3746int main() {
3747yywrap()
3748; return 0; }
3749EOF
3750if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3751 rm -rf conftest*
3752 eval "ac_cv_lib_$ac_lib_var=yes"
3753else
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3756 rm -rf conftest*
3757 eval "ac_cv_lib_$ac_lib_var=no"
3758fi
3759rm -f conftest*
3760LIBS="$ac_save_LIBS"
3761
3762fi
3763if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3764 echo "$ac_t""yes" 1>&6
3765 LEXLIB="-l$ac_lib"
3766else
3767 echo "$ac_t""no" 1>&6
3768fi
3769
3770fi
3771
3772echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3773echo "configure:3774: checking lex output file root" >&5
3774if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3776else
3777 # The minimal lex program is just a single line: %%. But some broken lexes
3778# (Solaris, I think it was) want two %% lines, so accommodate them.
3779echo '%%
3780%%' | $LEX
3781if test -f lex.yy.c; then
3782 ac_cv_prog_lex_root=lex.yy
3783elif test -f lexyy.c; then
3784 ac_cv_prog_lex_root=lexyy
3785else
3786 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3787fi
3788fi
3789
3790echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3791LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3792
3793echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3794echo "configure:3795: checking whether yytext is a pointer" >&5
3795if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3797else
3798 # POSIX says lex can declare yytext either as a pointer or an array; the
3799# default is implementation-dependent. Figure out which it is, since
3800# not all implementations provide the %pointer and %array declarations.
3801ac_cv_prog_lex_yytext_pointer=no
3802echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3803ac_save_LIBS="$LIBS"
3804LIBS="$LIBS $LEXLIB"
3805cat > conftest.$ac_ext <<EOF
3806#line 3807 "configure"
3807#include "confdefs.h"
3808`cat $LEX_OUTPUT_ROOT.c`
3809int main() {
3810
3811; return 0; }
3812EOF
3813if { (eval echo configure:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3814 rm -rf conftest*
3815 ac_cv_prog_lex_yytext_pointer=yes
3816else
3817 echo "configure: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3819fi
3820rm -f conftest*
3821LIBS="$ac_save_LIBS"
3822rm -f "${LEX_OUTPUT_ROOT}.c"
3823
3824fi
3825
3826echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3827if test $ac_cv_prog_lex_yytext_pointer = yes; then
3828 cat >> confdefs.h <<\EOF
3829#define YYTEXT_POINTER 1
3830EOF
3831
3832fi
3833
3834
3835ALL_LINGUAS="fr tr es"
3836# Extract the first word of "ranlib", so it can be a program name with args.
3837set dummy ranlib; ac_word=$2
3838echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3839echo "configure:3840: checking for $ac_word" >&5
3840if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3841 echo $ac_n "(cached) $ac_c" 1>&6
3842else
3843 if test -n "$RANLIB"; then
3844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3845else
3846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3847 ac_dummy="$PATH"
3848 for ac_dir in $ac_dummy; do
3849 test -z "$ac_dir" && ac_dir=.
3850 if test -f $ac_dir/$ac_word -o \
3851 -f $ac_dir/$ac_word$ac_exeext ; then
3852 ac_cv_prog_RANLIB="ranlib"
3853 break
3854 fi
3855 done
3856 IFS="$ac_save_ifs"
3857 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3858fi
3859fi
3860RANLIB="$ac_cv_prog_RANLIB"
3861if test -n "$RANLIB"; then
3862 echo "$ac_t""$RANLIB" 1>&6
3863else
3864 echo "$ac_t""no" 1>&6
3865fi
3866
3867echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3868echo "configure:3869: checking for ANSI C header files" >&5
3869if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3871else
3872 cat > conftest.$ac_ext <<EOF
3873#include <sys/types.h>
3874#line 3875 "configure"
3875#include "confdefs.h"
3876#include <stdlib.h>
3877#include <stdarg.h>
3878#include <string.h>
3879#include <float.h>
3880EOF
3881ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3882{ (eval echo configure:3883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3883ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3884if test -z "$ac_err"; then
3885 rm -rf conftest*
3886 ac_cv_header_stdc=yes
3887else
3888 echo "$ac_err" >&5
3889 echo "configure: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3891 rm -rf conftest*
3892 ac_cv_header_stdc=no
3893fi
3894rm -f conftest*
3895
3896if test $ac_cv_header_stdc = yes; then
3897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3898cat > conftest.$ac_ext <<EOF
3899#line 3900 "configure"
3900#include "confdefs.h"
3901#include <string.h>
3902EOF
3903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3904 egrep "memchr" >/dev/null 2>&1; then
3905 :
3906else
3907 rm -rf conftest*
3908 ac_cv_header_stdc=no
3909fi
3910rm -f conftest*
3911
3912fi
3913
3914if test $ac_cv_header_stdc = yes; then
3915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3916cat > conftest.$ac_ext <<EOF
3917#line 3918 "configure"
3918#include "confdefs.h"
3919#include <stdlib.h>
3920EOF
3921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3922 egrep "free" >/dev/null 2>&1; then
3923 :
3924else
3925 rm -rf conftest*
3926 ac_cv_header_stdc=no
3927fi
3928rm -f conftest*
3929
3930fi
3931
3932if test $ac_cv_header_stdc = yes; then
3933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3934if test "$cross_compiling" = yes; then
3935 :
3936else
3937 cat > conftest.$ac_ext <<EOF
3938#line 3939 "configure"
3939#include "confdefs.h"
3940#include <ctype.h>
3941#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3942#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3943#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3944int main () { int i; for (i = 0; i < 256; i++)
3945if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3946exit (0); }
3947
3948EOF
3949if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3950then
3951 :
3952else
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3955 rm -fr conftest*
3956 ac_cv_header_stdc=no
3957fi
3958rm -fr conftest*
3959fi
3960
3961fi
3962fi
3963
3964echo "$ac_t""$ac_cv_header_stdc" 1>&6
3965if test $ac_cv_header_stdc = yes; then
3966 cat >> confdefs.h <<\EOF
3967#define STDC_HEADERS 1
3968EOF
3969
3970fi
3971
3972echo $ac_n "checking for working const""... $ac_c" 1>&6
3973echo "configure:3974: checking for working const" >&5
3974if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3976else
3977 cat > conftest.$ac_ext <<EOF
3978#line 3979 "configure"
3979#include "confdefs.h"
3980
3981int main() {
3982
3983/* Ultrix mips cc rejects this. */
3984typedef int charset[2]; const charset x;
3985/* SunOS 4.1.1 cc rejects this. */
3986char const *const *ccp;
3987char **p;
3988/* NEC SVR4.0.2 mips cc rejects this. */
3989struct point {int x, y;};
3990static struct point const zero = {0,0};
3991/* AIX XL C 1.02.0.0 rejects this.
3992 It does not let you subtract one const X* pointer from another in an arm
3993 of an if-expression whose if-part is not a constant expression */
3994const char *g = "string";
3995ccp = &g + (g ? g-g : 0);
3996/* HPUX 7.0 cc rejects these. */
3997++ccp;
3998p = (char**) ccp;
3999ccp = (char const *const *) p;
4000{ /* SCO 3.2v4 cc rejects this. */
4001 char *t;
4002 char const *s = 0 ? (char *) 0 : (char const *) 0;
4003
4004 *t++ = 0;
4005}
4006{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4007 int x[] = {25, 17};
4008 const int *foo = &x[0];
4009 ++foo;
4010}
4011{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4012 typedef const int *iptr;
4013 iptr p = 0;
4014 ++p;
4015}
4016{ /* AIX XL C 1.02.0.0 rejects this saying
4017 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4018 struct s { int j; const int *ap[3]; };
4019 struct s *b; b->j = 5;
4020}
4021{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4022 const int foo = 10;
4023}
4024
4025; return 0; }
4026EOF
4027if { (eval echo configure:4028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4028 rm -rf conftest*
4029 ac_cv_c_const=yes
4030else
4031 echo "configure: failed program was:" >&5
4032 cat conftest.$ac_ext >&5
4033 rm -rf conftest*
4034 ac_cv_c_const=no
4035fi
4036rm -f conftest*
4037fi
4038
4039echo "$ac_t""$ac_cv_c_const" 1>&6
4040if test $ac_cv_c_const = no; then
4041 cat >> confdefs.h <<\EOF
4042#define const
4043EOF
4044
4045fi
4046
4047echo $ac_n "checking for inline""... $ac_c" 1>&6
4048echo "configure:4049: checking for inline" >&5
4049if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4051else
4052 ac_cv_c_inline=no
4053for ac_kw in inline __inline__ __inline; do
4054 cat > conftest.$ac_ext <<EOF
4055#line 4056 "configure"
4056#include "confdefs.h"
4057
4058int main() {
4059} $ac_kw foo() {
4060; return 0; }
4061EOF
4062if { (eval echo configure:4063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 rm -rf conftest*
4064 ac_cv_c_inline=$ac_kw; break
4065else
4066 echo "configure: failed program was:" >&5
4067 cat conftest.$ac_ext >&5
4068fi
4069rm -f conftest*
4070done
4071
4072fi
4073
4074echo "$ac_t""$ac_cv_c_inline" 1>&6
4075case "$ac_cv_c_inline" in
4076 inline | yes) ;;
4077 no) cat >> confdefs.h <<\EOF
4078#define inline
4079EOF
4080 ;;
4081 *) cat >> confdefs.h <<EOF
4082#define inline $ac_cv_c_inline
4083EOF
4084 ;;
4085esac
4086
4087echo $ac_n "checking for off_t""... $ac_c" 1>&6
4088echo "configure:4089: checking for off_t" >&5
4089if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4091else
4092 cat > conftest.$ac_ext <<EOF
4093#line 4094 "configure"
4094#include "confdefs.h"
4095#include <sys/types.h>
4096#if STDC_HEADERS
4097#include <stdlib.h>
4098#include <stddef.h>
4099#endif
4100EOF
4101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4102 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4103 rm -rf conftest*
4104 ac_cv_type_off_t=yes
4105else
4106 rm -rf conftest*
4107 ac_cv_type_off_t=no
4108fi
4109rm -f conftest*
4110
4111fi
4112echo "$ac_t""$ac_cv_type_off_t" 1>&6
4113if test $ac_cv_type_off_t = no; then
4114 cat >> confdefs.h <<\EOF
4115#define off_t long
4116EOF
4117
4118fi
4119
4120echo $ac_n "checking for size_t""... $ac_c" 1>&6
4121echo "configure:4122: checking for size_t" >&5
4122if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4123 echo $ac_n "(cached) $ac_c" 1>&6
4124else
4125 cat > conftest.$ac_ext <<EOF
4126#line 4127 "configure"
4127#include "confdefs.h"
4128#include <sys/types.h>
4129#if STDC_HEADERS
4130#include <stdlib.h>
4131#include <stddef.h>
4132#endif
4133EOF
4134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4136 rm -rf conftest*
4137 ac_cv_type_size_t=yes
4138else
4139 rm -rf conftest*
4140 ac_cv_type_size_t=no
4141fi
4142rm -f conftest*
4143
4144fi
4145echo "$ac_t""$ac_cv_type_size_t" 1>&6
4146if test $ac_cv_type_size_t = no; then
4147 cat >> confdefs.h <<\EOF
4148#define size_t unsigned
4149EOF
4150
4151fi
4152
4153# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4154# for constant arguments. Useless!
4155echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4156echo "configure:4157: checking for working alloca.h" >&5
4157if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4159else
4160 cat > conftest.$ac_ext <<EOF
4161#line 4162 "configure"
4162#include "confdefs.h"
4163#include <alloca.h>
4164int main() {
4165char *p = alloca(2 * sizeof(int));
4166; return 0; }
4167EOF
4168if { (eval echo configure:4169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4169 rm -rf conftest*
4170 ac_cv_header_alloca_h=yes
4171else
4172 echo "configure: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4174 rm -rf conftest*
4175 ac_cv_header_alloca_h=no
4176fi
4177rm -f conftest*
4178fi
4179
4180echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4181if test $ac_cv_header_alloca_h = yes; then
4182 cat >> confdefs.h <<\EOF
4183#define HAVE_ALLOCA_H 1
4184EOF
4185
4186fi
4187
4188echo $ac_n "checking for alloca""... $ac_c" 1>&6
4189echo "configure:4190: checking for alloca" >&5
4190if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4192else
4193 cat > conftest.$ac_ext <<EOF
4194#line 4195 "configure"
4195#include "confdefs.h"
4196
4197#ifdef __GNUC__
4198# define alloca __builtin_alloca
4199#else
4200# ifdef _MSC_VER
4201# include <malloc.h>
4202# define alloca _alloca
4203# else
4204# if HAVE_ALLOCA_H
4205# include <alloca.h>
4206# else
4207# ifdef _AIX
4208 #pragma alloca
4209# else
4210# ifndef alloca /* predefined by HP cc +Olibcalls */
4211char *alloca ();
4212# endif
4213# endif
4214# endif
4215# endif
4216#endif
4217
4218int main() {
4219char *p = (char *) alloca(1);
4220; return 0; }
4221EOF
4222if { (eval echo configure:4223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4223 rm -rf conftest*
4224 ac_cv_func_alloca_works=yes
4225else
4226 echo "configure: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4228 rm -rf conftest*
4229 ac_cv_func_alloca_works=no
4230fi
4231rm -f conftest*
4232fi
4233
4234echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4235if test $ac_cv_func_alloca_works = yes; then
4236 cat >> confdefs.h <<\EOF
4237#define HAVE_ALLOCA 1
4238EOF
4239
4240fi
4241
4242if test $ac_cv_func_alloca_works = no; then
4243 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4244 # that cause trouble. Some versions do not even contain alloca or
4245 # contain a buggy version. If you still want to use their alloca,
4246 # use ar to extract alloca.o from them instead of compiling alloca.c.
4247 ALLOCA=alloca.${ac_objext}
4248 cat >> confdefs.h <<\EOF
4249#define C_ALLOCA 1
4250EOF
4251
4252
4253echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4254echo "configure:4255: checking whether alloca needs Cray hooks" >&5
4255if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4256 echo $ac_n "(cached) $ac_c" 1>&6
4257else
4258 cat > conftest.$ac_ext <<EOF
4259#line 4260 "configure"
4260#include "confdefs.h"
4261#if defined(CRAY) && ! defined(CRAY2)
4262webecray
4263#else
4264wenotbecray
4265#endif
4266
4267EOF
4268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4269 egrep "webecray" >/dev/null 2>&1; then
4270 rm -rf conftest*
4271 ac_cv_os_cray=yes
4272else
4273 rm -rf conftest*
4274 ac_cv_os_cray=no
4275fi
4276rm -f conftest*
4277
4278fi
4279
4280echo "$ac_t""$ac_cv_os_cray" 1>&6
4281if test $ac_cv_os_cray = yes; then
4282for ac_func in _getb67 GETB67 getb67; do
4283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4284echo "configure:4285: checking for $ac_func" >&5
4285if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4286 echo $ac_n "(cached) $ac_c" 1>&6
4287else
4288 cat > conftest.$ac_ext <<EOF
4289#line 4290 "configure"
4290#include "confdefs.h"
4291/* System header to define __stub macros and hopefully few prototypes,
4292 which can conflict with char $ac_func(); below. */
4293#include <assert.h>
4294/* Override any gcc2 internal prototype to avoid an error. */
4295/* We use char because int might match the return type of a gcc2
4296 builtin and then its argument prototype would still apply. */
4297char $ac_func();
4298
4299int main() {
4300
4301/* The GNU C library defines this for functions which it implements
4302 to always fail with ENOSYS. Some functions are actually named
4303 something starting with __ and the normal name is an alias. */
4304#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4305choke me
4306#else
4307$ac_func();
4308#endif
4309
4310; return 0; }
4311EOF
4312if { (eval echo configure:4313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4313 rm -rf conftest*
4314 eval "ac_cv_func_$ac_func=yes"
4315else
4316 echo "configure: failed program was:" >&5
4317 cat conftest.$ac_ext >&5
4318 rm -rf conftest*
4319 eval "ac_cv_func_$ac_func=no"
4320fi
4321rm -f conftest*
4322fi
4323
4324if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4325 echo "$ac_t""yes" 1>&6
4326 cat >> confdefs.h <<EOF
4327#define CRAY_STACKSEG_END $ac_func
4328EOF
4329
4330 break
4331else
4332 echo "$ac_t""no" 1>&6
4333fi
4334
4335done
4336fi
4337
4338echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4339echo "configure:4340: checking stack direction for C alloca" >&5
4340if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4341 echo $ac_n "(cached) $ac_c" 1>&6
4342else
4343 if test "$cross_compiling" = yes; then
4344 ac_cv_c_stack_direction=0
4345else
4346 cat > conftest.$ac_ext <<EOF
4347#line 4348 "configure"
4348#include "confdefs.h"
4349find_stack_direction ()
4350{
4351 static char *addr = 0;
4352 auto char dummy;
4353 if (addr == 0)
4354 {
4355 addr = &dummy;
4356 return find_stack_direction ();
4357 }
4358 else
4359 return (&dummy > addr) ? 1 : -1;
4360}
4361main ()
4362{
4363 exit (find_stack_direction() < 0);
4364}
4365EOF
4366if { (eval echo configure:4367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4367then
4368 ac_cv_c_stack_direction=1
4369else
4370 echo "configure: failed program was:" >&5
4371 cat conftest.$ac_ext >&5
4372 rm -fr conftest*
4373 ac_cv_c_stack_direction=-1
4374fi
4375rm -fr conftest*
4376fi
4377
4378fi
4379
4380echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4381cat >> confdefs.h <<EOF
4382#define STACK_DIRECTION $ac_cv_c_stack_direction
4383EOF
4384
4385fi
4386
4387for ac_hdr in unistd.h
4388do
4389ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4390echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4391echo "configure:4392: checking for $ac_hdr" >&5
4392if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4394else
4395 cat > conftest.$ac_ext <<EOF
4396#include <sys/types.h>
4397#line 4398 "configure"
4398#include "confdefs.h"
4399#include <$ac_hdr>
4400EOF
4401ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4402{ (eval echo configure:4403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4403ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4404if test -z "$ac_err"; then
4405 rm -rf conftest*
4406 eval "ac_cv_header_$ac_safe=yes"
4407else
4408 echo "$ac_err" >&5
4409 echo "configure: failed program was:" >&5
4410 cat conftest.$ac_ext >&5
4411 rm -rf conftest*
4412 eval "ac_cv_header_$ac_safe=no"
4413fi
4414rm -f conftest*
4415fi
4416if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4417 echo "$ac_t""yes" 1>&6
4418 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4419 cat >> confdefs.h <<EOF
4420#define $ac_tr_hdr 1
4421EOF
4422
4423else
4424 echo "$ac_t""no" 1>&6
4425fi
4426done
4427
4428for ac_func in getpagesize
4429do
4430echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4431echo "configure:4432: checking for $ac_func" >&5
4432if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4434else
4435 cat > conftest.$ac_ext <<EOF
4436#line 4437 "configure"
4437#include "confdefs.h"
4438/* System header to define __stub macros and hopefully few prototypes,
4439 which can conflict with char $ac_func(); below. */
4440#include <assert.h>
4441/* Override any gcc2 internal prototype to avoid an error. */
4442/* We use char because int might match the return type of a gcc2
4443 builtin and then its argument prototype would still apply. */
4444char $ac_func();
4445
4446int main() {
4447
4448/* The GNU C library defines this for functions which it implements
4449 to always fail with ENOSYS. Some functions are actually named
4450 something starting with __ and the normal name is an alias. */
4451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4452choke me
4453#else
4454$ac_func();
4455#endif
4456
4457; return 0; }
4458EOF
4459if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4460 rm -rf conftest*
4461 eval "ac_cv_func_$ac_func=yes"
4462else
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4465 rm -rf conftest*
4466 eval "ac_cv_func_$ac_func=no"
4467fi
4468rm -f conftest*
4469fi
4470
4471if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4472 echo "$ac_t""yes" 1>&6
4473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4474 cat >> confdefs.h <<EOF
4475#define $ac_tr_func 1
4476EOF
4477
4478else
4479 echo "$ac_t""no" 1>&6
4480fi
4481done
4482
4483echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4484echo "configure:4485: checking for working mmap" >&5
4485if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4487else
4488 if test "$cross_compiling" = yes; then
4489 ac_cv_func_mmap_fixed_mapped=no
4490else
4491 cat > conftest.$ac_ext <<EOF
4492#line 4493 "configure"
4493#include "confdefs.h"
4494
4495/* Thanks to Mike Haertel and Jim Avera for this test.
4496 Here is a matrix of mmap possibilities:
4497 mmap private not fixed
4498 mmap private fixed at somewhere currently unmapped
4499 mmap private fixed at somewhere already mapped
4500 mmap shared not fixed
4501 mmap shared fixed at somewhere currently unmapped
4502 mmap shared fixed at somewhere already mapped
4503 For private mappings, we should verify that changes cannot be read()
4504 back from the file, nor mmap's back from the file at a different
4505 address. (There have been systems where private was not correctly
4506 implemented like the infamous i386 svr4.0, and systems where the
4507 VM page cache was not coherent with the filesystem buffer cache
4508 like early versions of FreeBSD and possibly contemporary NetBSD.)
4509 For shared mappings, we should conversely verify that changes get
4510 propogated back to all the places they're supposed to be.
4511
4512 Grep wants private fixed already mapped.
4513 The main things grep needs to know about mmap are:
4514 * does it exist and is it safe to write into the mmap'd area
4515 * how to use it (BSD variants) */
4516#include <sys/types.h>
4517#include <fcntl.h>
4518#include <sys/mman.h>
4519
4520/* This mess was copied from the GNU getpagesize.h. */
4521#ifndef HAVE_GETPAGESIZE
4522# ifdef HAVE_UNISTD_H
4523# include <unistd.h>
4524# endif
4525
4526/* Assume that all systems that can run configure have sys/param.h. */
4527# ifndef HAVE_SYS_PARAM_H
4528# define HAVE_SYS_PARAM_H 1
4529# endif
4530
4531# ifdef _SC_PAGESIZE
4532# define getpagesize() sysconf(_SC_PAGESIZE)
4533# else /* no _SC_PAGESIZE */
4534# ifdef HAVE_SYS_PARAM_H
4535# include <sys/param.h>
4536# ifdef EXEC_PAGESIZE
4537# define getpagesize() EXEC_PAGESIZE
4538# else /* no EXEC_PAGESIZE */
4539# ifdef NBPG
4540# define getpagesize() NBPG * CLSIZE
4541# ifndef CLSIZE
4542# define CLSIZE 1
4543# endif /* no CLSIZE */
4544# else /* no NBPG */
4545# ifdef NBPC
4546# define getpagesize() NBPC
4547# else /* no NBPC */
4548# ifdef PAGESIZE
4549# define getpagesize() PAGESIZE
4550# endif /* PAGESIZE */
4551# endif /* no NBPC */
4552# endif /* no NBPG */
4553# endif /* no EXEC_PAGESIZE */
4554# else /* no HAVE_SYS_PARAM_H */
4555# define getpagesize() 8192 /* punt totally */
4556# endif /* no HAVE_SYS_PARAM_H */
4557# endif /* no _SC_PAGESIZE */
4558
4559#endif /* no HAVE_GETPAGESIZE */
4560
4561#ifdef __cplusplus
4562extern "C" { void *malloc(unsigned); }
4563#else
4564char *malloc();
4565#endif
4566
4567int
4568main()
4569{
4570 char *data, *data2, *data3;
4571 int i, pagesize;
4572 int fd;
4573
4574 pagesize = getpagesize();
4575
4576 /*
4577 * First, make a file with some known garbage in it.
4578 */
4579 data = malloc(pagesize);
4580 if (!data)
4581 exit(1);
4582 for (i = 0; i < pagesize; ++i)
4583 *(data + i) = rand();
4584 umask(0);
4585 fd = creat("conftestmmap", 0600);
4586 if (fd < 0)
4587 exit(1);
4588 if (write(fd, data, pagesize) != pagesize)
4589 exit(1);
4590 close(fd);
4591
4592 /*
4593 * Next, try to mmap the file at a fixed address which
4594 * already has something else allocated at it. If we can,
4595 * also make sure that we see the same garbage.
4596 */
4597 fd = open("conftestmmap", O_RDWR);
4598 if (fd < 0)
4599 exit(1);
4600 data2 = malloc(2 * pagesize);
4601 if (!data2)
4602 exit(1);
4603 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4604 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4605 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4606 exit(1);
4607 for (i = 0; i < pagesize; ++i)
4608 if (*(data + i) != *(data2 + i))
4609 exit(1);
4610
4611 /*
4612 * Finally, make sure that changes to the mapped area
4613 * do not percolate back to the file as seen by read().
4614 * (This is a bug on some variants of i386 svr4.0.)
4615 */
4616 for (i = 0; i < pagesize; ++i)
4617 *(data2 + i) = *(data2 + i) + 1;
4618 data3 = malloc(pagesize);
4619 if (!data3)
4620 exit(1);
4621 if (read(fd, data3, pagesize) != pagesize)
4622 exit(1);
4623 for (i = 0; i < pagesize; ++i)
4624 if (*(data + i) != *(data3 + i))
4625 exit(1);
4626 close(fd);
4627 unlink("conftestmmap");
4628 exit(0);
4629}
4630
4631EOF
4632if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4633then
4634 ac_cv_func_mmap_fixed_mapped=yes
4635else
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4638 rm -fr conftest*
4639 ac_cv_func_mmap_fixed_mapped=no
4640fi
4641rm -fr conftest*
4642fi
4643
4644fi
4645
4646echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4647if test $ac_cv_func_mmap_fixed_mapped = yes; then
4648 cat >> confdefs.h <<\EOF
4649#define HAVE_MMAP 1
4650EOF
4651
4652fi
4653
4654
4655 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4656unistd.h values.h sys/param.h
4657do
4658ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4659echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4660echo "configure:4661: checking for $ac_hdr" >&5
4661if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4663else
4664 cat > conftest.$ac_ext <<EOF
4665#include <sys/types.h>
4666#line 4667 "configure"
4667#include "confdefs.h"
4668#include <$ac_hdr>
4669EOF
4670ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4671{ (eval echo configure:4672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4672ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4673if test -z "$ac_err"; then
4674 rm -rf conftest*
4675 eval "ac_cv_header_$ac_safe=yes"
4676else
4677 echo "$ac_err" >&5
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4680 rm -rf conftest*
4681 eval "ac_cv_header_$ac_safe=no"
4682fi
4683rm -f conftest*
4684fi
4685if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6
4687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4688 cat >> confdefs.h <<EOF
4689#define $ac_tr_hdr 1
4690EOF
4691
4692else
4693 echo "$ac_t""no" 1>&6
4694fi
4695done
4696
4697 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4698__argz_count __argz_stringify __argz_next
4699do
4700echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4701echo "configure:4702: checking for $ac_func" >&5
4702if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4704else
4705 cat > conftest.$ac_ext <<EOF
4706#line 4707 "configure"
4707#include "confdefs.h"
4708/* System header to define __stub macros and hopefully few prototypes,
4709 which can conflict with char $ac_func(); below. */
4710#include <assert.h>
4711/* Override any gcc2 internal prototype to avoid an error. */
4712/* We use char because int might match the return type of a gcc2
4713 builtin and then its argument prototype would still apply. */
4714char $ac_func();
4715
4716int main() {
4717
4718/* The GNU C library defines this for functions which it implements
4719 to always fail with ENOSYS. Some functions are actually named
4720 something starting with __ and the normal name is an alias. */
4721#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4722choke me
4723#else
4724$ac_func();
4725#endif
4726
4727; return 0; }
4728EOF
4729if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4730 rm -rf conftest*
4731 eval "ac_cv_func_$ac_func=yes"
4732else
4733 echo "configure: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4735 rm -rf conftest*
4736 eval "ac_cv_func_$ac_func=no"
4737fi
4738rm -f conftest*
4739fi
4740
4741if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4742 echo "$ac_t""yes" 1>&6
4743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4744 cat >> confdefs.h <<EOF
4745#define $ac_tr_func 1
4746EOF
4747
4748else
4749 echo "$ac_t""no" 1>&6
4750fi
4751done
4752
4753
4754 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4755 for ac_func in stpcpy
4756do
4757echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4758echo "configure:4759: checking for $ac_func" >&5
4759if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4761else
4762 cat > conftest.$ac_ext <<EOF
4763#line 4764 "configure"
4764#include "confdefs.h"
4765/* System header to define __stub macros and hopefully few prototypes,
4766 which can conflict with char $ac_func(); below. */
4767#include <assert.h>
4768/* Override any gcc2 internal prototype to avoid an error. */
4769/* We use char because int might match the return type of a gcc2
4770 builtin and then its argument prototype would still apply. */
4771char $ac_func();
4772
4773int main() {
4774
4775/* The GNU C library defines this for functions which it implements
4776 to always fail with ENOSYS. Some functions are actually named
4777 something starting with __ and the normal name is an alias. */
4778#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4779choke me
4780#else
4781$ac_func();
4782#endif
4783
4784; return 0; }
4785EOF
4786if { (eval echo configure:4787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4787 rm -rf conftest*
4788 eval "ac_cv_func_$ac_func=yes"
4789else
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4792 rm -rf conftest*
4793 eval "ac_cv_func_$ac_func=no"
4794fi
4795rm -f conftest*
4796fi
4797
4798if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4799 echo "$ac_t""yes" 1>&6
4800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4801 cat >> confdefs.h <<EOF
4802#define $ac_tr_func 1
4803EOF
4804
4805else
4806 echo "$ac_t""no" 1>&6
4807fi
4808done
4809
4810 fi
4811 if test "${ac_cv_func_stpcpy}" = "yes"; then
4812 cat >> confdefs.h <<\EOF
4813#define HAVE_STPCPY 1
4814EOF
4815
4816 fi
4817
4818 if test $ac_cv_header_locale_h = yes; then
4819 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4820echo "configure:4821: checking for LC_MESSAGES" >&5
4821if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4822 echo $ac_n "(cached) $ac_c" 1>&6
4823else
4824 cat > conftest.$ac_ext <<EOF
4825#line 4826 "configure"
4826#include "confdefs.h"
4827#include <locale.h>
4828int main() {
4829return LC_MESSAGES
4830; return 0; }
4831EOF
4832if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4833 rm -rf conftest*
4834 am_cv_val_LC_MESSAGES=yes
4835else
4836 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4838 rm -rf conftest*
4839 am_cv_val_LC_MESSAGES=no
4840fi
4841rm -f conftest*
4842fi
4843
4844echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4845 if test $am_cv_val_LC_MESSAGES = yes; then
4846 cat >> confdefs.h <<\EOF
4847#define HAVE_LC_MESSAGES 1
4848EOF
4849
4850 fi
4851 fi
4852 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4853echo "configure:4854: checking whether NLS is requested" >&5
4854 # Check whether --enable-nls or --disable-nls was given.
4855if test "${enable_nls+set}" = set; then
4856 enableval="$enable_nls"
4857 USE_NLS=$enableval
4858else
4859 USE_NLS=yes
4860fi
4861
4862 echo "$ac_t""$USE_NLS" 1>&6
4863
4864
4865 USE_INCLUDED_LIBINTL=no
4866
4867 if test "$USE_NLS" = "yes"; then
4868 cat >> confdefs.h <<\EOF
4869#define ENABLE_NLS 1
4870EOF
4871
4872 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4873echo "configure:4874: checking whether included gettext is requested" >&5
4874 # Check whether --with-included-gettext or --without-included-gettext was given.
4875if test "${with_included_gettext+set}" = set; then
4876 withval="$with_included_gettext"
4877 nls_cv_force_use_gnu_gettext=$withval
4878else
4879 nls_cv_force_use_gnu_gettext=no
4880fi
4881
4882 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4883
4884 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4885 echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext" >&5
4886 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4887 nls_cv_header_intl=
4888 nls_cv_header_libgt=
4889 CATOBJEXT=NONE
4890
4891 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4892echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4893echo "configure:4894: checking for libintl.h" >&5
4894if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4895 echo $ac_n "(cached) $ac_c" 1>&6
4896else
4897 cat > conftest.$ac_ext <<EOF
4898#include <sys/types.h>
4899#line 4900 "configure"
4900#include "confdefs.h"
4901#include <libintl.h>
4902EOF
4903ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4904{ (eval echo configure:4905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4905ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4906if test -z "$ac_err"; then
4907 rm -rf conftest*
4908 eval "ac_cv_header_$ac_safe=yes"
4909else
4910 echo "$ac_err" >&5
4911 echo "configure: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4913 rm -rf conftest*
4914 eval "ac_cv_header_$ac_safe=no"
4915fi
4916rm -f conftest*
4917fi
4918if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4919 echo "$ac_t""yes" 1>&6
4920 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4921echo "configure:4922: checking for gettext in libc" >&5
4922if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4924else
4925 cat > conftest.$ac_ext <<EOF
4926#line 4927 "configure"
4927#include "confdefs.h"
4928#include <libintl.h>
4929int main() {
4930return (int) gettext ("")
4931; return 0; }
4932EOF
4933if { (eval echo configure:4934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4934 rm -rf conftest*
4935 gt_cv_func_gettext_libc=yes
4936else
4937 echo "configure: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4939 rm -rf conftest*
4940 gt_cv_func_gettext_libc=no
4941fi
4942rm -f conftest*
4943fi
4944
4945echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4946
4947 if test "$gt_cv_func_gettext_libc" != "yes"; then
4948 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4949echo "configure:4950: checking for bindtextdomain in -lintl" >&5
4950ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4951if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4952 echo $ac_n "(cached) $ac_c" 1>&6
4953else
4954 ac_save_LIBS="$LIBS"
4955LIBS="-lintl $LIBS"
4956cat > conftest.$ac_ext <<EOF
4957#line 4958 "configure"
4958#include "confdefs.h"
4959/* Override any gcc2 internal prototype to avoid an error. */
4960/* We use char because int might match the return type of a gcc2
4961 builtin and then its argument prototype would still apply. */
4962char bindtextdomain();
4963
4964int main() {
4965bindtextdomain()
4966; return 0; }
4967EOF
4968if { (eval echo configure:4969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4969 rm -rf conftest*
4970 eval "ac_cv_lib_$ac_lib_var=yes"
4971else
4972 echo "configure: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4974 rm -rf conftest*
4975 eval "ac_cv_lib_$ac_lib_var=no"
4976fi
4977rm -f conftest*
4978LIBS="$ac_save_LIBS"
4979
4980fi
4981if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4982 echo "$ac_t""yes" 1>&6
4983 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4984echo "configure:4985: checking for gettext in libintl" >&5
4985if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4987else
4988 ac_save_LIBS="$LIBS"; LIBS="-lintl $LIBS";
4989 cat > conftest.$ac_ext <<EOF
4990#line 4991 "configure"
4991#include "confdefs.h"
4992#include <libintl.h>
4993int main() {
4994return (int) gettext ("")
4995; return 0; }
4996EOF
4997if { (eval echo configure:4998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4998 rm -rf conftest*
4999 gt_cv_func_gettext_libintl=yes
5000else
5001 echo "configure: failed program was:" >&5
5002 cat conftest.$ac_ext >&5
5003 rm -rf conftest*
5004 gt_cv_func_gettext_libintl=no
5005fi
5006rm -f conftest*
5007 LIBS="$ac_save_LIBS";
5008fi
5009
5010echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
5011else
5012 echo "$ac_t""no" 1>&6
5013fi
5014
5015 fi
5016
5017 if test "$gt_cv_func_gettext_libc" = "yes" \
5018 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5019 cat >> confdefs.h <<\EOF
5020#define HAVE_GETTEXT 1
5021EOF
5022
5023 # Extract the first word of "msgfmt", so it can be a program name with args.
5024set dummy msgfmt; ac_word=$2
5025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5026echo "configure:5027: checking for $ac_word" >&5
5027if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5029else
5030 case "$MSGFMT" in
5031 [/\\]*|[a-zA-Z]:*)
5032 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5033 ;;
5034 *)
5035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
5036 for ac_dir in $PATH; do
5037 test -z "$ac_dir" && ac_dir=.
5038 if test -f $ac_dir/$ac_word; then
5039 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5040 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5041 break
5042 fi
5043 fi
5044 ac_word_saved="$ac_word"
5045 ac_word=$ac_word$ac_cv_exeext
5046 if test -f $ac_dir/$ac_word; then
5047 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5048 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5049 break
5050 fi
5051 fi
5052 ac_word="$ac_word_saved"
5053 done
5054 IFS="$ac_save_ifs"
5055 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5056 ;;
5057esac
5058fi
5059MSGFMT="$ac_cv_path_MSGFMT"
5060if test -n "$MSGFMT"; then
5061 echo "$ac_t""$MSGFMT" 1>&6
5062else
5063 echo "$ac_t""no" 1>&6
5064fi
5065 if test "$MSGFMT" != "no"; then
5066 for ac_func in dcgettext
5067do
5068echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5069echo "configure:5070: checking for $ac_func" >&5
5070if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5071 echo $ac_n "(cached) $ac_c" 1>&6
5072else
5073 cat > conftest.$ac_ext <<EOF
5074#line 5075 "configure"
5075#include "confdefs.h"
5076/* System header to define __stub macros and hopefully few prototypes,
5077 which can conflict with char $ac_func(); below. */
5078#include <assert.h>
5079/* Override any gcc2 internal prototype to avoid an error. */
5080/* We use char because int might match the return type of a gcc2
5081 builtin and then its argument prototype would still apply. */
5082char $ac_func();
5083
5084int main() {
5085
5086/* The GNU C library defines this for functions which it implements
5087 to always fail with ENOSYS. Some functions are actually named
5088 something starting with __ and the normal name is an alias. */
5089#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5090choke me
5091#else
5092$ac_func();
5093#endif
5094
5095; return 0; }
5096EOF
5097if { (eval echo configure:5098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5098 rm -rf conftest*
5099 eval "ac_cv_func_$ac_func=yes"
5100else
5101 echo "configure: failed program was:" >&5
5102 cat conftest.$ac_ext >&5
5103 rm -rf conftest*
5104 eval "ac_cv_func_$ac_func=no"
5105fi
5106rm -f conftest*
5107fi
5108
5109if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5110 echo "$ac_t""yes" 1>&6
5111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5112 cat >> confdefs.h <<EOF
5113#define $ac_tr_func 1
5114EOF
5115
5116else
5117 echo "$ac_t""no" 1>&6
5118fi
5119done
5120
5121 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5122set dummy gmsgfmt; ac_word=$2
5123echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5124echo "configure:5125: checking for $ac_word" >&5
5125if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5127else
5128 case "$GMSGFMT" in
5129 [/\\]* | [a-zA-Z]:*)
5130 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5131 ;;
5132 ?:/*)
5133 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5134 ;;
5135 *)
5136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
5137 ac_dummy="$PATH"
5138 for ac_dir in $ac_dummy; do
5139 test -z "$ac_dir" && ac_dir=.
5140 if test -f $ac_dir/$ac_word; then
5141 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
5142 break
5143 fi
5144 if test -f $ac_dir/$ac_word$ac_exeext; then
5145 ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
5146 break
5147 fi
5148 done
5149 IFS="$ac_save_ifs"
5150 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5151 ;;
5152esac
5153fi
5154GMSGFMT="$ac_cv_path_GMSGFMT"
5155if test -n "$GMSGFMT"; then
5156 echo "$ac_t""$GMSGFMT" 1>&6
5157else
5158 echo "$ac_t""no" 1>&6
5159fi
5160
5161 # Extract the first word of "xgettext", so it can be a program name with args.
5162set dummy xgettext; ac_word=$2
5163echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5164echo "configure:5165: checking for $ac_word" >&5
5165if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5167else
5168 case "$XGETTEXT" in
5169 [/\\]*|[a-zA-Z]:*)
5170 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5171 ;;
5172 *)
5173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
5174 for ac_dir in $PATH; do
5175 test -z "$ac_dir" && ac_dir=.
5176 if test -f $ac_dir/$ac_word; then
5177 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5178 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5179 break
5180 fi
5181 fi
5182 ac_word_saved="$ac_word"
5183 ac_word=$ac_word$ac_cv_exeext
5184 if test -f $ac_dir/$ac_word; then
5185 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5186 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5187 break
5188 fi
5189 fi
5190 ac_word="$ac_word_saved"
5191 done
5192 IFS="$ac_save_ifs"
5193 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5194 ;;
5195esac
5196fi
5197XGETTEXT="$ac_cv_path_XGETTEXT"
5198if test -n "$XGETTEXT"; then
5199 echo "$ac_t""$XGETTEXT" 1>&6
5200else
5201 echo "$ac_t""no" 1>&6
5202fi
5203
5204
5205 cat > conftest.$ac_ext <<EOF
5206#line 5207 "configure"
5207#include "confdefs.h"
5208
5209int main() {
5210extern int _nl_msg_cat_cntr;
5211 return _nl_msg_cat_cntr
5212; return 0; }
5213EOF
5214if { (eval echo configure:5215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5215 rm -rf conftest*
5216 CATOBJEXT=.gmo
5217 DATADIRNAME=share
5218else
5219 echo "configure: failed program was:" >&5
5220 cat conftest.$ac_ext >&5
5221 rm -rf conftest*
5222 CATOBJEXT=.mo
5223 DATADIRNAME=lib
5224fi
5225rm -f conftest*
5226 INSTOBJEXT=.mo
5227 fi
5228 fi
5229
5230else
5231 echo "$ac_t""no" 1>&6
5232fi
5233
5234
5235
5236 if test "$CATOBJEXT" = "NONE"; then
5237 nls_cv_use_gnu_gettext=yes
5238 echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext fallback" >&5
5239 fi
5240 fi
5241
5242 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5243 INTLOBJS="\$(GETTOBJS)"
5244 # Extract the first word of "msgfmt", so it can be a program name with args.
5245set dummy msgfmt; ac_word=$2
5246echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5247echo "configure:5248: checking for $ac_word" >&5
5248if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
5249 echo $ac_n "(cached) $ac_c" 1>&6
5250else
5251 case "$MSGFMT" in
5252 [/\\]*|[a-zA-Z]:*)
5253 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5254 ;;
5255 *)
5256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
5257 for ac_dir in $PATH; do
5258 test -z "$ac_dir" && ac_dir=.
5259 if test -f $ac_dir/$ac_word; then
5260 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5261 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5262 break
5263 fi
5264 fi
5265 ac_word_saved="$ac_word"
5266 ac_word=$ac_word$ac_cv_exeext
5267 if test -f $ac_dir/$ac_word; then
5268 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5269 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5270 break
5271 fi
5272 fi
5273 ac_word="$ac_word_saved"
5274 done
5275 IFS="$ac_save_ifs"
5276 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5277 ;;
5278esac
5279fi
5280MSGFMT="$ac_cv_path_MSGFMT"
5281if test -n "$MSGFMT"; then
5282 echo "$ac_t""$MSGFMT" 1>&6
5283else
5284 echo "$ac_t""no" 1>&6
5285fi
5286
5287 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5288set dummy gmsgfmt; ac_word=$2
5289echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5290echo "configure:5291: checking for $ac_word" >&5
5291if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5293else
5294 case "$GMSGFMT" in
5295 [/\\]* | [a-zA-Z]:*)
5296 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5297 ;;
5298 ?:/*)
5299 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5300 ;;
5301 *)
5302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
5303 ac_dummy="$PATH"
5304 for ac_dir in $ac_dummy; do
5305 test -z "$ac_dir" && ac_dir=.
5306 if test -f $ac_dir/$ac_word; then
5307 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
5308 break
5309 fi
5310 if test -f $ac_dir/$ac_word$ac_exeext; then
5311 ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
5312 break
5313 fi
5314 done
5315 IFS="$ac_save_ifs"
5316 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5317 ;;
5318esac
5319fi
5320GMSGFMT="$ac_cv_path_GMSGFMT"
5321if test -n "$GMSGFMT"; then
5322 echo "$ac_t""$GMSGFMT" 1>&6
5323else
5324 echo "$ac_t""no" 1>&6
5325fi
5326
5327 # Extract the first word of "xgettext", so it can be a program name with args.
5328set dummy xgettext; ac_word=$2
5329echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5330echo "configure:5331: checking for $ac_word" >&5
5331if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
5332 echo $ac_n "(cached) $ac_c" 1>&6
5333else
5334 case "$XGETTEXT" in
5335 [/\\]*|[a-zA-Z]:*)
5336 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5337 ;;
5338 *)
5339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
5340 for ac_dir in $PATH; do
5341 test -z "$ac_dir" && ac_dir=.
5342 if test -f $ac_dir/$ac_word; then
5343 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5344 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5345 break
5346 fi
5347 fi
5348 ac_word_saved="$ac_word"
5349 ac_word=$ac_word$ac_cv_exeext
5350 if test -f $ac_dir/$ac_word; then
5351 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5352 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5353 break
5354 fi
5355 fi
5356 ac_word="$ac_word_saved"
5357 done
5358 IFS="$ac_save_ifs"
5359 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5360 ;;
5361esac
5362fi
5363XGETTEXT="$ac_cv_path_XGETTEXT"
5364if test -n "$XGETTEXT"; then
5365 echo "$ac_t""$XGETTEXT" 1>&6
5366else
5367 echo "$ac_t""no" 1>&6
5368fi
5369
5370
5371 USE_INCLUDED_LIBINTL=yes
5372 CATOBJEXT=.gmo
5373 INSTOBJEXT=.mo
5374 DATADIRNAME=share
5375 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5376 INTLLIBS=$INTLDEPS
5377 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5378 nls_cv_header_intl=libintl.h
5379 nls_cv_header_libgt=libgettext.h
5380 else
5381 echo "dbg: else: gt_cv_func_gettext_libintl" >&5
5382 if test "$gt_cv_func_gettext_libintl" = "yes"; then
5383 echo "dbg: updating LIBS" >&5
5384 LIBS="-lintl $LIBS"
5385 INTLLIBS="-lintl"
5386 fi
5387 fi
5388
5389 if test "$XGETTEXT" != ":"; then
5390 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5391 : ;
5392 else
5393 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
5394 XGETTEXT=":"
5395 fi
5396 fi
5397
5398 # We need to process the po/ directory.
5399 POSUB=po
5400 else
5401 DATADIRNAME=share
5402 nls_cv_header_intl=libintl.h
5403 nls_cv_header_libgt=libgettext.h
5404 fi
5405
5406 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5407 # because some of the sources are only built for this goal.
5408 if test "$PACKAGE" = gettext; then
5409 USE_NLS=yes
5410 USE_INCLUDED_LIBINTL=yes
5411 fi
5412
5413 for lang in $ALL_LINGUAS; do
5414 GMOFILES="$GMOFILES $lang.gmo"
5415 POFILES="$POFILES $lang.po"
5416 done
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431 if test "x$CATOBJEXT" != "x"; then
5432 if test "x$ALL_LINGUAS" = "x"; then
5433 LINGUAS=
5434 else
5435 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5436echo "configure:5437: checking for catalogs to be installed" >&5
5437 NEW_LINGUAS=
5438 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5439 case "$ALL_LINGUAS" in
5440 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5441 esac
5442 done
5443 LINGUAS=$NEW_LINGUAS
5444 echo "$ac_t""$LINGUAS" 1>&6
5445 fi
5446
5447 if test -n "$LINGUAS"; then
5448 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5449 fi
5450 fi
5451
5452 if test $ac_cv_header_locale_h = yes; then
5453 INCLUDE_LOCALE_H="#include <locale.h>"
5454 else
5455 INCLUDE_LOCALE_H="\
5456/* The system does not provide the header <locale.h>. Take care yourself. */"
5457 fi
5458
5459
5460 if test -f $srcdir/po2tbl.sed.in; then
5461 if test "$CATOBJEXT" = ".cat"; then
5462 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
5463echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
5464echo "configure:5465: checking for linux/version.h" >&5
5465if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5466 echo $ac_n "(cached) $ac_c" 1>&6
5467else
5468 cat > conftest.$ac_ext <<EOF
5469#include <sys/types.h>
5470#line 5471 "configure"
5471#include "confdefs.h"
5472#include <linux/version.h>
5473EOF
5474ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5475{ (eval echo configure:5476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5476ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5477if test -z "$ac_err"; then
5478 rm -rf conftest*
5479 eval "ac_cv_header_$ac_safe=yes"
5480else
5481 echo "$ac_err" >&5
5482 echo "configure: failed program was:" >&5
5483 cat conftest.$ac_ext >&5
5484 rm -rf conftest*
5485 eval "ac_cv_header_$ac_safe=no"
5486fi
5487rm -f conftest*
5488fi
5489if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5490 echo "$ac_t""yes" 1>&6
5491 msgformat=linux
5492else
5493 echo "$ac_t""no" 1>&6
5494msgformat=xopen
5495fi
5496
5497
5498 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5499 fi
5500 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5501 $srcdir/po2tbl.sed.in > po2tbl.sed
5502 fi
5503
5504 if test "$PACKAGE" = "gettext"; then
5505 GT_NO="#NO#"
5506 GT_YES=
5507 else
5508 GT_NO=
5509 GT_YES="#YES#"
5510 fi
5511
5512
5513
5514 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5515
5516
5517 l=
5518
5519
5520 if test -f $srcdir/po/POTFILES.in; then
5521 test -d po || mkdir po
5522 if test "x$srcdir" != "x."; then
5523 if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
5524 posrcprefix="$srcdir/"
5525 else
5526 posrcprefix="../$srcdir/"
5527 fi
5528 else
5529 posrcprefix="../"
5530 fi
5531 rm -f po/POTFILES
5532 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5533 < $srcdir/po/POTFILES.in > po/POTFILES
5534 fi
5535
5536
5537echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
5538echo "configure:5539: checking whether to enable maintainer-specific portions of Makefiles" >&5
5539 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5540if test "${enable_maintainer_mode+set}" = set; then
5541 enableval="$enable_maintainer_mode"
5542 USE_MAINTAINER_MODE=$enableval
5543else
5544 USE_MAINTAINER_MODE=no
5545fi
5546
5547 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
5548
5549
5550if test $USE_MAINTAINER_MODE = yes; then
5551 MAINTAINER_MODE_TRUE=
5552 MAINTAINER_MODE_FALSE='#'
5553else
5554 MAINTAINER_MODE_TRUE='#'
5555 MAINTAINER_MODE_FALSE=
5556fi
5557 MAINT=$MAINTAINER_MODE_TRUE
5558
5559
5560
5561
5562
5563echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5564echo "configure:5565: checking for executable suffix" >&5
5565if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5567else
5568 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
5569 ac_cv_exeext=.exe
5570else
5571 rm -f conftest*
5572 echo 'int main () { return 0; }' > conftest.$ac_ext
5573 ac_cv_exeext=
5574 if { (eval echo configure:5575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5575 for file in conftest.*; do
5576 case $file in
5577 *.c | *.o | *.obj) ;;
5578 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5579 esac
5580 done
5581 else
5582 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5583 fi
5584 rm -f conftest*
5585 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5586fi
5587fi
5588
5589EXEEXT=""
5590test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5591echo "$ac_t""${ac_cv_exeext}" 1>&6
5592ac_exeext=$EXEEXT
5593
5594
5595for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
5596do
5597ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5598echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5599echo "configure:5600: checking for $ac_hdr" >&5
5600if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5601 echo $ac_n "(cached) $ac_c" 1>&6
5602else
5603 cat > conftest.$ac_ext <<EOF
5604#include <sys/types.h>
5605#line 5606 "configure"
5606#include "confdefs.h"
5607#include <$ac_hdr>
5608EOF
5609ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5610{ (eval echo configure:5611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5611ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5612if test -z "$ac_err"; then
5613 rm -rf conftest*
5614 eval "ac_cv_header_$ac_safe=yes"
5615else
5616 echo "$ac_err" >&5
5617 echo "configure: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5619 rm -rf conftest*
5620 eval "ac_cv_header_$ac_safe=no"
5621fi
5622rm -f conftest*
5623fi
5624if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5625 echo "$ac_t""yes" 1>&6
5626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5627 cat >> confdefs.h <<EOF
5628#define $ac_tr_hdr 1
5629EOF
5630
5631else
5632 echo "$ac_t""no" 1>&6
5633fi
5634done
5635
5636
5637# Put this here so that autoconf's "cross-compiling" message doesn't confuse
5638# people who are not cross-compiling but are compiling cross-assemblers.
5639echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
5640echo "configure:5641: checking whether compiling a cross-assembler" >&5
5641if test "${host}" = "${target}"; then
5642 cross_gas=no
5643else
5644 cross_gas=yes
5645 cat >> confdefs.h <<\EOF
5646#define CROSS_COMPILE 1
5647EOF
5648
5649fi
5650echo "$ac_t""$cross_gas" 1>&6
5651
5652# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5653# for constant arguments. Useless!
5654echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5655echo "configure:5656: checking for working alloca.h" >&5
5656if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5657 echo $ac_n "(cached) $ac_c" 1>&6
5658else
5659 cat > conftest.$ac_ext <<EOF
5660#line 5661 "configure"
5661#include "confdefs.h"
5662#include <alloca.h>
5663int main() {
5664char *p = alloca(2 * sizeof(int));
5665; return 0; }
5666EOF
5667if { (eval echo configure:5668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5668 rm -rf conftest*
5669 ac_cv_header_alloca_h=yes
5670else
5671 echo "configure: failed program was:" >&5
5672 cat conftest.$ac_ext >&5
5673 rm -rf conftest*
5674 ac_cv_header_alloca_h=no
5675fi
5676rm -f conftest*
5677fi
5678
5679echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5680if test $ac_cv_header_alloca_h = yes; then
5681 cat >> confdefs.h <<\EOF
5682#define HAVE_ALLOCA_H 1
5683EOF
5684
5685fi
5686
5687echo $ac_n "checking for alloca""... $ac_c" 1>&6
5688echo "configure:5689: checking for alloca" >&5
5689if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5690 echo $ac_n "(cached) $ac_c" 1>&6
5691else
5692 cat > conftest.$ac_ext <<EOF
5693#line 5694 "configure"
5694#include "confdefs.h"
5695
5696#ifdef __GNUC__
5697# define alloca __builtin_alloca
5698#else
5699# ifdef _MSC_VER
5700# include <malloc.h>
5701# define alloca _alloca
5702# else
5703# if HAVE_ALLOCA_H
5704# include <alloca.h>
5705# else
5706# ifdef _AIX
5707 #pragma alloca
5708# else
5709# ifndef alloca /* predefined by HP cc +Olibcalls */
5710char *alloca ();
5711# endif
5712# endif
5713# endif
5714# endif
5715#endif
5716
5717int main() {
5718char *p = (char *) alloca(1);
5719; return 0; }
5720EOF
5721if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5722 rm -rf conftest*
5723 ac_cv_func_alloca_works=yes
5724else
5725 echo "configure: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5727 rm -rf conftest*
5728 ac_cv_func_alloca_works=no
5729fi
5730rm -f conftest*
5731fi
5732
5733echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5734if test $ac_cv_func_alloca_works = yes; then
5735 cat >> confdefs.h <<\EOF
5736#define HAVE_ALLOCA 1
5737EOF
5738
5739fi
5740
5741if test $ac_cv_func_alloca_works = no; then
5742 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5743 # that cause trouble. Some versions do not even contain alloca or
5744 # contain a buggy version. If you still want to use their alloca,
5745 # use ar to extract alloca.o from them instead of compiling alloca.c.
5746 ALLOCA=alloca.${ac_objext}
5747 cat >> confdefs.h <<\EOF
5748#define C_ALLOCA 1
5749EOF
5750
5751
5752echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5753echo "configure:5754: checking whether alloca needs Cray hooks" >&5
5754if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5756else
5757 cat > conftest.$ac_ext <<EOF
5758#line 5759 "configure"
5759#include "confdefs.h"
5760#if defined(CRAY) && ! defined(CRAY2)
5761webecray
5762#else
5763wenotbecray
5764#endif
5765
5766EOF
5767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5768 egrep "webecray" >/dev/null 2>&1; then
5769 rm -rf conftest*
5770 ac_cv_os_cray=yes
5771else
5772 rm -rf conftest*
5773 ac_cv_os_cray=no
5774fi
5775rm -f conftest*
5776
5777fi
5778
5779echo "$ac_t""$ac_cv_os_cray" 1>&6
5780if test $ac_cv_os_cray = yes; then
5781for ac_func in _getb67 GETB67 getb67; do
5782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5783echo "configure:5784: checking for $ac_func" >&5
5784if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5785 echo $ac_n "(cached) $ac_c" 1>&6
5786else
5787 cat > conftest.$ac_ext <<EOF
5788#line 5789 "configure"
5789#include "confdefs.h"
5790/* System header to define __stub macros and hopefully few prototypes,
5791 which can conflict with char $ac_func(); below. */
5792#include <assert.h>
5793/* Override any gcc2 internal prototype to avoid an error. */
5794/* We use char because int might match the return type of a gcc2
5795 builtin and then its argument prototype would still apply. */
5796char $ac_func();
5797
5798int main() {
5799
5800/* The GNU C library defines this for functions which it implements
5801 to always fail with ENOSYS. Some functions are actually named
5802 something starting with __ and the normal name is an alias. */
5803#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5804choke me
5805#else
5806$ac_func();
5807#endif
5808
5809; return 0; }
5810EOF
5811if { (eval echo configure:5812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5812 rm -rf conftest*
5813 eval "ac_cv_func_$ac_func=yes"
5814else
5815 echo "configure: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5817 rm -rf conftest*
5818 eval "ac_cv_func_$ac_func=no"
5819fi
5820rm -f conftest*
5821fi
5822
5823if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5824 echo "$ac_t""yes" 1>&6
5825 cat >> confdefs.h <<EOF
5826#define CRAY_STACKSEG_END $ac_func
5827EOF
5828
5829 break
5830else
5831 echo "$ac_t""no" 1>&6
5832fi
5833
5834done
5835fi
5836
5837echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5838echo "configure:5839: checking stack direction for C alloca" >&5
5839if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5840 echo $ac_n "(cached) $ac_c" 1>&6
5841else
5842 if test "$cross_compiling" = yes; then
5843 ac_cv_c_stack_direction=0
5844else
5845 cat > conftest.$ac_ext <<EOF
5846#line 5847 "configure"
5847#include "confdefs.h"
5848find_stack_direction ()
5849{
5850 static char *addr = 0;
5851 auto char dummy;
5852 if (addr == 0)
5853 {
5854 addr = &dummy;
5855 return find_stack_direction ();
5856 }
5857 else
5858 return (&dummy > addr) ? 1 : -1;
5859}
5860main ()
5861{
5862 exit (find_stack_direction() < 0);
5863}
5864EOF
5865if { (eval echo configure:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5866then
5867 ac_cv_c_stack_direction=1
5868else
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5871 rm -fr conftest*
5872 ac_cv_c_stack_direction=-1
5873fi
5874rm -fr conftest*
5875fi
5876
5877fi
5878
5879echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5880cat >> confdefs.h <<EOF
5881#define STACK_DIRECTION $ac_cv_c_stack_direction
5882EOF
5883
5884fi
5885
5886echo $ac_n "checking for inline""... $ac_c" 1>&6
5887echo "configure:5888: checking for inline" >&5
5888if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5889 echo $ac_n "(cached) $ac_c" 1>&6
5890else
5891 ac_cv_c_inline=no
5892for ac_kw in inline __inline__ __inline; do
5893 cat > conftest.$ac_ext <<EOF
5894#line 5895 "configure"
5895#include "confdefs.h"
5896
5897int main() {
5898} $ac_kw foo() {
5899; return 0; }
5900EOF
5901if { (eval echo configure:5902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5902 rm -rf conftest*
5903 ac_cv_c_inline=$ac_kw; break
5904else
5905 echo "configure: failed program was:" >&5
5906 cat conftest.$ac_ext >&5
5907fi
5908rm -f conftest*
5909done
5910
5911fi
5912
5913echo "$ac_t""$ac_cv_c_inline" 1>&6
5914case "$ac_cv_c_inline" in
5915 inline | yes) ;;
5916 no) cat >> confdefs.h <<\EOF
5917#define inline
5918EOF
5919 ;;
5920 *) cat >> confdefs.h <<EOF
5921#define inline $ac_cv_c_inline
5922EOF
5923 ;;
5924esac
5925
5926
5927# VMS doesn't have unlink.
5928for ac_func in unlink remove
5929do
5930echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5931echo "configure:5932: checking for $ac_func" >&5
5932if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5933 echo $ac_n "(cached) $ac_c" 1>&6
5934else
5935 cat > conftest.$ac_ext <<EOF
5936#line 5937 "configure"
5937#include "confdefs.h"
5938/* System header to define __stub macros and hopefully few prototypes,
5939 which can conflict with char $ac_func(); below. */
5940#include <assert.h>
5941/* Override any gcc2 internal prototype to avoid an error. */
5942/* We use char because int might match the return type of a gcc2
5943 builtin and then its argument prototype would still apply. */
5944char $ac_func();
5945
5946int main() {
5947
5948/* The GNU C library defines this for functions which it implements
5949 to always fail with ENOSYS. Some functions are actually named
5950 something starting with __ and the normal name is an alias. */
5951#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5952choke me
5953#else
5954$ac_func();
5955#endif
5956
5957; return 0; }
5958EOF
5959if { (eval echo configure:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5960 rm -rf conftest*
5961 eval "ac_cv_func_$ac_func=yes"
5962else
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5965 rm -rf conftest*
5966 eval "ac_cv_func_$ac_func=no"
5967fi
5968rm -f conftest*
5969fi
5970
5971if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5972 echo "$ac_t""yes" 1>&6
5973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5974 cat >> confdefs.h <<EOF
5975#define $ac_tr_func 1
5976EOF
5977 break
5978else
5979 echo "$ac_t""no" 1>&6
5980fi
5981done
5982
5983
5984# Some systems don't have sbrk().
5985for ac_func in sbrk
5986do
5987echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5988echo "configure:5989: checking for $ac_func" >&5
5989if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5991else
5992 cat > conftest.$ac_ext <<EOF
5993#line 5994 "configure"
5994#include "confdefs.h"
5995/* System header to define __stub macros and hopefully few prototypes,
5996 which can conflict with char $ac_func(); below. */
5997#include <assert.h>
5998/* Override any gcc2 internal prototype to avoid an error. */
5999/* We use char because int might match the return type of a gcc2
6000 builtin and then its argument prototype would still apply. */
6001char $ac_func();
6002
6003int main() {
6004
6005/* The GNU C library defines this for functions which it implements
6006 to always fail with ENOSYS. Some functions are actually named
6007 something starting with __ and the normal name is an alias. */
6008#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6009choke me
6010#else
6011$ac_func();
6012#endif
6013
6014; return 0; }
6015EOF
6016if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6017 rm -rf conftest*
6018 eval "ac_cv_func_$ac_func=yes"
6019else
6020 echo "configure: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6022 rm -rf conftest*
6023 eval "ac_cv_func_$ac_func=no"
6024fi
6025rm -f conftest*
6026fi
6027
6028if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6029 echo "$ac_t""yes" 1>&6
6030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6031 cat >> confdefs.h <<EOF
6032#define $ac_tr_func 1
6033EOF
6034
6035else
6036 echo "$ac_t""no" 1>&6
6037fi
6038done
6039
6040
6041# do we need the math library?
6042case "${need_libm}" in
6043yes)
6044 LIBM=
6045case $host in
6046*-*-beos* | *-*-cygwin* | *-*-pw32*)
6047 # These system don't have libm
6048 ;;
6049*-ncr-sysv4.3*)
6050 echo $ac_n "checking for _mwvalidcheckl in -lmw""... $ac_c" 1>&6
6051echo "configure:6052: checking for _mwvalidcheckl in -lmw" >&5
6052ac_lib_var=`echo mw'_'_mwvalidcheckl | sed 'y%./+-%__p_%'`
6053if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6054 echo $ac_n "(cached) $ac_c" 1>&6
6055else
6056 ac_save_LIBS="$LIBS"
6057LIBS="-lmw $LIBS"
6058cat > conftest.$ac_ext <<EOF
6059#line 6060 "configure"
6060#include "confdefs.h"
6061/* Override any gcc2 internal prototype to avoid an error. */
6062/* We use char because int might match the return type of a gcc2
6063 builtin and then its argument prototype would still apply. */
6064char _mwvalidcheckl();
6065
6066int main() {
6067_mwvalidcheckl()
6068; return 0; }
6069EOF
6070if { (eval echo configure:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6071 rm -rf conftest*
6072 eval "ac_cv_lib_$ac_lib_var=yes"
6073else
6074 echo "configure: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6076 rm -rf conftest*
6077 eval "ac_cv_lib_$ac_lib_var=no"
6078fi
6079rm -f conftest*
6080LIBS="$ac_save_LIBS"
6081
6082fi
6083if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6084 echo "$ac_t""yes" 1>&6
6085 LIBM="-lmw"
6086else
6087 echo "$ac_t""no" 1>&6
6088fi
6089
6090 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6091echo "configure:6092: checking for main in -lm" >&5
6092ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6093if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6094 echo $ac_n "(cached) $ac_c" 1>&6
6095else
6096 ac_save_LIBS="$LIBS"
6097LIBS="-lm $LIBS"
6098cat > conftest.$ac_ext <<EOF
6099#line 6100 "configure"
6100#include "confdefs.h"
6101
6102int main() {
6103main()
6104; return 0; }
6105EOF
6106if { (eval echo configure:6107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6107 rm -rf conftest*
6108 eval "ac_cv_lib_$ac_lib_var=yes"
6109else
6110 echo "configure: failed program was:" >&5
6111 cat conftest.$ac_ext >&5
6112 rm -rf conftest*
6113 eval "ac_cv_lib_$ac_lib_var=no"
6114fi
6115rm -f conftest*
6116LIBS="$ac_save_LIBS"
6117
6118fi
6119if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6120 echo "$ac_t""yes" 1>&6
6121 LIBM="$LIBM -lm"
6122else
6123 echo "$ac_t""no" 1>&6
6124fi
6125
6126 ;;
6127*)
6128 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6129echo "configure:6130: checking for main in -lm" >&5
6130ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6131if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6133else
6134 ac_save_LIBS="$LIBS"
6135LIBS="-lm $LIBS"
6136cat > conftest.$ac_ext <<EOF
6137#line 6138 "configure"
6138#include "confdefs.h"
6139
6140int main() {
6141main()
6142; return 0; }
6143EOF
6144if { (eval echo configure:6145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6145 rm -rf conftest*
6146 eval "ac_cv_lib_$ac_lib_var=yes"
6147else
6148 echo "configure: failed program was:" >&5
6149 cat conftest.$ac_ext >&5
6150 rm -rf conftest*
6151 eval "ac_cv_lib_$ac_lib_var=no"
6152fi
6153rm -f conftest*
6154LIBS="$ac_save_LIBS"
6155
6156fi
6157if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6158 echo "$ac_t""yes" 1>&6
6159 LIBM="-lm"
6160else
6161 echo "$ac_t""no" 1>&6
6162fi
6163
6164 ;;
6165esac
6166
6167
6168 ;;
6169esac
6170
6171# Some non-ANSI preprocessors botch requoting inside strings. That's bad
6172# enough, but on some of those systems, the assert macro relies on requoting
6173# working properly!
6174echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
6175echo "configure:6176: checking for working assert macro" >&5
6176if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6178else
6179 cat > conftest.$ac_ext <<EOF
6180#line 6181 "configure"
6181#include "confdefs.h"
6182#include <assert.h>
6183#include <stdio.h>
6184int main() {
6185
6186/* check for requoting problems */
6187static int a, b, c, d;
6188static char *s;
6189assert (!strcmp(s, "foo bar baz quux"));
6190/* check for newline handling */
6191assert (a == b
6192 || c == d);
6193
6194; return 0; }
6195EOF
6196if { (eval echo configure:6197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6197 rm -rf conftest*
6198 gas_cv_assert_ok=yes
6199else
6200 echo "configure: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6202 rm -rf conftest*
6203 gas_cv_assert_ok=no
6204fi
6205rm -f conftest*
6206fi
6207echo "$ac_t""$gas_cv_assert_ok" 1>&6
6208test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF
6209#define BROKEN_ASSERT 1
6210EOF
6211
6212
6213
6214# On some systems, the system header files may not declare malloc, realloc,
6215# and free. There are places where gas needs these functions to have been
6216# declared -- such as when taking their addresses.
6217gas_test_headers="
6218#ifdef HAVE_MEMORY_H
6219#include <memory.h>
6220#endif
6221#ifdef HAVE_STRING_H
6222#include <string.h>
6223#else
6224#ifdef HAVE_STRINGS_H
6225#include <strings.h>
6226#endif
6227#endif
6228#ifdef HAVE_STDLIB_H
6229#include <stdlib.h>
6230#endif
6231#ifdef HAVE_UNISTD_H
6232#include <unistd.h>
6233#endif
6234"
6235
6236echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
6237echo "configure:6238: checking whether declaration is required for strstr" >&5
6238if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
6239 echo $ac_n "(cached) $ac_c" 1>&6
6240else
6241 cat > conftest.$ac_ext <<EOF
6242#line 6243 "configure"
6243#include "confdefs.h"
6244$gas_test_headers
6245int main() {
6246
6247typedef char *(*f)();
6248f x;
6249x = (f) strstr;
6250
6251; return 0; }
6252EOF
6253if { (eval echo configure:6254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6254 rm -rf conftest*
6255 gas_cv_decl_needed_strstr=no
6256else
6257 echo "configure: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6259 rm -rf conftest*
6260 gas_cv_decl_needed_strstr=yes
6261fi
6262rm -f conftest*
6263fi
6264echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
6265if test $gas_cv_decl_needed_strstr = yes; then
6266 cat >> confdefs.h <<\EOF
6267#define NEED_DECLARATION_STRSTR 1
6268EOF
6269
6270fi
6271
6272
6273echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
6274echo "configure:6275: checking whether declaration is required for malloc" >&5
6275if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
6276 echo $ac_n "(cached) $ac_c" 1>&6
6277else
6278 cat > conftest.$ac_ext <<EOF
6279#line 6280 "configure"
6280#include "confdefs.h"
6281$gas_test_headers
6282int main() {
6283
6284typedef char *(*f)();
6285f x;
6286x = (f) malloc;
6287
6288; return 0; }
6289EOF
6290if { (eval echo configure:6291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6291 rm -rf conftest*
6292 gas_cv_decl_needed_malloc=no
6293else
6294 echo "configure: failed program was:" >&5
6295 cat conftest.$ac_ext >&5
6296 rm -rf conftest*
6297 gas_cv_decl_needed_malloc=yes
6298fi
6299rm -f conftest*
6300fi
6301echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
6302if test $gas_cv_decl_needed_malloc = yes; then
6303 cat >> confdefs.h <<\EOF
6304#define NEED_DECLARATION_MALLOC 1
6305EOF
6306
6307fi
6308
6309
6310echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
6311echo "configure:6312: checking whether declaration is required for free" >&5
6312if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
6313 echo $ac_n "(cached) $ac_c" 1>&6
6314else
6315 cat > conftest.$ac_ext <<EOF
6316#line 6317 "configure"
6317#include "confdefs.h"
6318$gas_test_headers
6319int main() {
6320
6321typedef void (*f)();
6322f x;
6323x = (f) free;
6324
6325; return 0; }
6326EOF
6327if { (eval echo configure:6328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6328 rm -rf conftest*
6329 gas_cv_decl_needed_free=no
6330else
6331 echo "configure: failed program was:" >&5
6332 cat conftest.$ac_ext >&5
6333 rm -rf conftest*
6334 gas_cv_decl_needed_free=yes
6335fi
6336rm -f conftest*
6337fi
6338echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
6339if test $gas_cv_decl_needed_free = yes; then
6340 cat >> confdefs.h <<\EOF
6341#define NEED_DECLARATION_FREE 1
6342EOF
6343
6344fi
6345
6346
6347echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
6348echo "configure:6349: checking whether declaration is required for sbrk" >&5
6349if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
6350 echo $ac_n "(cached) $ac_c" 1>&6
6351else
6352 cat > conftest.$ac_ext <<EOF
6353#line 6354 "configure"
6354#include "confdefs.h"
6355$gas_test_headers
6356int main() {
6357
6358typedef char *(*f)();
6359f x;
6360x = (f) sbrk;
6361
6362; return 0; }
6363EOF
6364if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6365 rm -rf conftest*
6366 gas_cv_decl_needed_sbrk=no
6367else
6368 echo "configure: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6370 rm -rf conftest*
6371 gas_cv_decl_needed_sbrk=yes
6372fi
6373rm -f conftest*
6374fi
6375echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
6376if test $gas_cv_decl_needed_sbrk = yes; then
6377 cat >> confdefs.h <<\EOF
6378#define NEED_DECLARATION_SBRK 1
6379EOF
6380
6381fi
6382
6383
6384echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
6385echo "configure:6386: checking whether declaration is required for environ" >&5
6386if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6388else
6389 cat > conftest.$ac_ext <<EOF
6390#line 6391 "configure"
6391#include "confdefs.h"
6392$gas_test_headers
6393int main() {
6394
6395typedef char **f;
6396f x;
6397x = (f) environ;
6398
6399; return 0; }
6400EOF
6401if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6402 rm -rf conftest*
6403 gas_cv_decl_needed_environ=no
6404else
6405 echo "configure: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6407 rm -rf conftest*
6408 gas_cv_decl_needed_environ=yes
6409fi
6410rm -f conftest*
6411fi
6412echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
6413if test $gas_cv_decl_needed_environ = yes; then
6414 cat >> confdefs.h <<\EOF
6415#define NEED_DECLARATION_ENVIRON 1
6416EOF
6417
6418fi
6419
6420
6421# Does errno.h declare errno, or do we have to add a separate declaration
6422# for it?
6423
6424echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
6425echo "configure:6426: checking whether declaration is required for errno" >&5
6426if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
6427 echo $ac_n "(cached) $ac_c" 1>&6
6428else
6429 cat > conftest.$ac_ext <<EOF
6430#line 6431 "configure"
6431#include "confdefs.h"
6432
6433#ifdef HAVE_ERRNO_H
6434#include <errno.h>
6435#endif
6436
6437int main() {
6438
6439typedef int f;
6440f x;
6441x = (f) errno;
6442
6443; return 0; }
6444EOF
6445if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6446 rm -rf conftest*
6447 gas_cv_decl_needed_errno=no
6448else
6449 echo "configure: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6451 rm -rf conftest*
6452 gas_cv_decl_needed_errno=yes
6453fi
6454rm -f conftest*
6455fi
6456echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
6457if test $gas_cv_decl_needed_errno = yes; then
6458 cat >> confdefs.h <<\EOF
6459#define NEED_DECLARATION_ERRNO 1
6460EOF
6461
6462fi
6463
6464
6465
6466
6467trap '' 1 2 15
6468cat > confcache <<\EOF
6469# This file is a shell script that caches the results of configure
6470# tests run on this system so they can be shared between configure
6471# scripts and configure runs. It is not useful on other systems.
6472# If it contains results you don't want to keep, you may remove or edit it.
6473#
6474# By default, configure uses ./config.cache as the cache file,
6475# creating it if it does not exist already. You can give configure
6476# the --cache-file=FILE option to use a different cache file; that is
6477# what configure does when it calls configure scripts in
6478# subdirectories, so they share the cache.
6479# Giving --cache-file=/dev/null disables caching, for debugging configure.
6480# config.status only pays attention to the cache file if you give it the
6481# --recheck option to rerun configure.
6482#
6483EOF
6484# The following way of writing the cache mishandles newlines in values,
6485# but we know of no workaround that is simple, portable, and efficient.
6486# So, don't put newlines in cache variables' values.
6487# Ultrix sh set writes to stderr and can't be redirected directly,
6488# and sets the high bit in the cache file unless we assign to the vars.
6489(set) 2>&1 |
6490 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6491 *ac_space=\ *)
6492 # `set' does not quote correctly, so add quotes (double-quote substitution
6493 # turns \\\\ into \\, and sed turns \\ into \).
6494 sed -n \
6495 -e "s/'/'\\\\''/g" \
6496 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6497 ;;
6498 *)
6499 # `set' quotes correctly as required by POSIX, so do not add quotes.
6500 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6501 ;;
6502 esac >> confcache
6503if cmp -s $cache_file confcache; then
6504 :
6505else
6506 if test -w $cache_file; then
6507 echo "updating cache $cache_file"
6508 cat confcache > $cache_file
6509 else
6510 echo "not updating unwritable cache $cache_file"
6511 fi
6512fi
6513rm -f confcache
6514
6515trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6516
6517test "x$prefix" = xNONE && prefix=$ac_default_prefix
6518# Let make expand exec_prefix.
6519test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6520
6521# Any assignment to VPATH causes Sun make to only execute
6522# the first set of double-colon rules, so remove it if not needed.
6523# If there is a colon in the path, we need to keep it.
6524if test "x$srcdir" = x.; then
6525 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6526fi
6527
6528trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6529
6530DEFS=-DHAVE_CONFIG_H
6531
6532# Without the "./", some shells look in PATH for config.status.
6533: ${CONFIG_STATUS=./config.status}
6534
6535echo creating $CONFIG_STATUS
6536rm -f $CONFIG_STATUS
6537cat > $CONFIG_STATUS <<EOF
6538#! /bin/sh
6539# Generated automatically by configure.
6540# Run this file to recreate the current configuration.
6541# This directory was configured as follows,
6542EOF
6543echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
6544cat >> $CONFIG_STATUS <<EOF
6545# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6546#
6547# $0 $ac_configure_args
6548#
6549# Compiler output produced by configure, useful for debugging
6550# configure, is in ./config.log if it exists.
6551
6552ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6553for ac_option
6554do
6555 case "\$ac_option" in
6556 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6557 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6558 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6559 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6560 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6561 exit 0 ;;
6562 -help | --help | --hel | --he | --h)
6563 echo "\$ac_cs_usage"; exit 0 ;;
6564 *) echo "\$ac_cs_usage"; exit 1 ;;
6565 esac
6566done
6567
6568ac_given_srcdir=$srcdir
6569ac_given_INSTALL="$INSTALL"
6570PATHIFS="$PATH_IFS"
6571
6572trap 'rm -fr `echo "Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6573EOF
6574cat >> $CONFIG_STATUS <<EOF
6575
6576# Protect against being on the right side of a sed subst in config.status.
6577sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6578 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6579$ac_vpsub
6580$extrasub
6581s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
6582s%@SHELL@%$SHELL%g
6583s%@CFLAGS@%$CFLAGS%g
6584s%@CPPFLAGS@%$CPPFLAGS%g
6585s%@CXXFLAGS@%$CXXFLAGS%g
6586s%@FFLAGS@%$FFLAGS%g
6587s%@DEFS@%$DEFS%g
6588s%@LDFLAGS@%$LDFLAGS%g
6589s%@LIBS@%$LIBS%g
6590s%@exec_prefix@%$exec_prefix%g
6591s%@prefix@%$prefix%g
6592s%@program_transform_name@%$program_transform_name%g
6593s%@bindir@%$bindir%g
6594s%@sbindir@%$sbindir%g
6595s%@libexecdir@%$libexecdir%g
6596s%@datadir@%$datadir%g
6597s%@sysconfdir@%$sysconfdir%g
6598s%@sharedstatedir@%$sharedstatedir%g
6599s%@localstatedir@%$localstatedir%g
6600s%@libdir@%$libdir%g
6601s%@includedir@%$includedir%g
6602s%@oldincludedir@%$oldincludedir%g
6603s%@infodir@%$infodir%g
6604s%@mandir@%$mandir%g
6605s%@PATH_IFS@%$PATH_IFS%g
6606s%@EXEEXT@%$EXEEXT%g
6607s%@host@%$host%g
6608s%@host_alias@%$host_alias%g
6609s%@host_cpu@%$host_cpu%g
6610s%@host_vendor@%$host_vendor%g
6611s%@host_os@%$host_os%g
6612s%@target@%$target%g
6613s%@target_alias@%$target_alias%g
6614s%@target_cpu@%$target_cpu%g
6615s%@target_vendor@%$target_vendor%g
6616s%@target_os@%$target_os%g
6617s%@build@%$build%g
6618s%@build_alias@%$build_alias%g
6619s%@build_cpu@%$build_cpu%g
6620s%@build_vendor@%$build_vendor%g
6621s%@build_os@%$build_os%g
6622s%@CC@%$CC%g
6623s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6624s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6625s%@INSTALL_DATA@%$INSTALL_DATA%g
6626s%@PACKAGE@%$PACKAGE%g
6627s%@VERSION@%$VERSION%g
6628s%@ACLOCAL@%$ACLOCAL%g
6629s%@AUTOCONF@%$AUTOCONF%g
6630s%@AUTOMAKE@%$AUTOMAKE%g
6631s%@AUTOHEADER@%$AUTOHEADER%g
6632s%@MAKEINFO@%$MAKEINFO%g
6633s%@SET_MAKE@%$SET_MAKE%g
6634s%@LN_S@%$LN_S%g
6635s%@OBJEXT@%$OBJEXT%g
6636s%@RANLIB@%$RANLIB%g
6637s%@STRIP@%$STRIP%g
6638s%@LIBTOOL@%$LIBTOOL%g
6639s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6640s%@GDBINIT@%$GDBINIT%g
6641s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
6642s%@extra_objects@%$extra_objects%g
6643s%@target_cpu_type@%$target_cpu_type%g
6644s%@obj_format@%$obj_format%g
6645s%@te_file@%$te_file%g
6646s%@install_tooldir@%$install_tooldir%g
6647s%@atof@%$atof%g
6648s%@BFDLIB@%$BFDLIB%g
6649s%@OPCODES_LIB@%$OPCODES_LIB%g
6650s%@BFDVER_H@%$BFDVER_H%g
6651s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
6652s%@YACC@%$YACC%g
6653s%@LEX@%$LEX%g
6654s%@LEXLIB@%$LEXLIB%g
6655s%@CPP@%$CPP%g
6656s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6657s%@ALLOCA@%$ALLOCA%g
6658s%@USE_NLS@%$USE_NLS%g
6659s%@MSGFMT@%$MSGFMT%g
6660s%@GMSGFMT@%$GMSGFMT%g
6661s%@XGETTEXT@%$XGETTEXT%g
6662s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6663s%@CATALOGS@%$CATALOGS%g
6664s%@CATOBJEXT@%$CATOBJEXT%g
6665s%@DATADIRNAME@%$DATADIRNAME%g
6666s%@GMOFILES@%$GMOFILES%g
6667s%@INSTOBJEXT@%$INSTOBJEXT%g
6668s%@INTLDEPS@%$INTLDEPS%g
6669s%@INTLLIBS@%$INTLLIBS%g
6670s%@INTLOBJS@%$INTLOBJS%g
6671s%@POFILES@%$POFILES%g
6672s%@POSUB@%$POSUB%g
6673s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6674s%@GT_NO@%$GT_NO%g
6675s%@GT_YES@%$GT_YES%g
6676s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6677s%@l@%$l%g
6678s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6679s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6680s%@MAINT@%$MAINT%g
6681s%@LIBM@%$LIBM%g
6682
6683CEOF
6684EOF
6685
6686cat >> $CONFIG_STATUS <<\EOF
6687
6688# Split the substitutions into bite-sized pieces for seds with
6689# small command number limits, like on Digital OSF/1 and HP-UX.
6690ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6691ac_file=1 # Number of current file.
6692ac_beg=1 # First line for current file.
6693ac_end=$ac_max_sed_cmds # Line after last line for current file.
6694ac_more_lines=:
6695ac_sed_cmds=""
6696while $ac_more_lines; do
6697 if test $ac_beg -gt 1; then
6698 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6699 else
6700 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6701 fi
6702 if test ! -s conftest.s$ac_file; then
6703 ac_more_lines=false
6704 rm -f conftest.s$ac_file
6705 else
6706 if test -z "$ac_sed_cmds"; then
6707 ac_sed_cmds="sed -f conftest.s$ac_file"
6708 else
6709 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6710 fi
6711 ac_file=`expr $ac_file + 1`
6712 ac_beg=$ac_end
6713 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6714 fi
6715done
6716if test -z "$ac_sed_cmds"; then
6717 ac_sed_cmds=cat
6718fi
6719EOF
6720
6721cat >> $CONFIG_STATUS <<EOF
6722
6723CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"}
6724EOF
6725cat >> $CONFIG_STATUS <<\EOF
6726for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6727 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6728 case "$ac_file" in
6729 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6730 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6731 *) ac_file_in="${ac_file}.in" ;;
6732 esac
6733
6734 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6735
6736 # Remove last slash and all that follows it. Not all systems have dirname.
6737 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6738 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6739 # The file is in a subdirectory.
6740 test ! -d "$ac_dir" && mkdir "$ac_dir"
6741 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6742 # A "../" for each directory in $ac_dir_suffix.
6743 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6744 else
6745 ac_dir_suffix= ac_dots=
6746 fi
6747
6748 case "$ac_given_srcdir" in
6749 .) srcdir=.
6750 if test -z "$ac_dots"; then top_srcdir=.
6751 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6752 [/\\]* | [a-zA-Z]:*)
6753 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6754 *) # Relative path.
6755 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6756 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6757 esac
6758
6759 case "$ac_given_INSTALL" in
6760 [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
6761 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6762 esac
6763
6764 echo creating "$ac_file"
6765 rm -f "$ac_file"
6766 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6767 case "$ac_file" in
6768 *Makefile*) ac_comsub="1i\\
6769# $configure_input" ;;
6770 *) ac_comsub= ;;
6771 esac
6772
6773 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
6774 sed -e "$ac_comsub
6775s%@configure_input@%$configure_input%g
6776s%@srcdir@%$srcdir%g
6777s%@top_srcdir@%$top_srcdir%g
6778s%@INSTALL@%$INSTALL%g
6779" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6780fi; done
6781rm -f conftest.s*
6782
6783# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6784# NAME is the cpp macro being defined and VALUE is the value it is being given.
6785#
6786# ac_d sets the value in "#define NAME VALUE" lines.
6787ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6788ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6789ac_dC='\3'
6790ac_dD='%g'
6791# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6792ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6793ac_uB='\([ ]\)%\1#\2define\3'
6794ac_uC=' '
6795ac_uD='\4%g'
6796# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6797ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6798ac_eB='$%\1#\2define\3'
6799ac_eC=' '
6800ac_eD='%g'
6801
6802if test "${CONFIG_HEADERS+set}" != set; then
6803EOF
6804cat >> $CONFIG_STATUS <<EOF
6805 CONFIG_HEADERS="config.h:config.in"
6806EOF
6807cat >> $CONFIG_STATUS <<\EOF
6808fi
6809for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6811 case "$ac_file" in
6812 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6813 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6814 *) ac_file_in="${ac_file}.in" ;;
6815 esac
6816
6817 echo creating $ac_file
6818
6819 rm -f conftest.frag conftest.in conftest.out
6820# kso the other way around might work better with drive letters and such.
6821# ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6822 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
6823 cat $ac_file_inputs > conftest.in
6824
6825EOF
6826
6827# Transform confdefs.h into a sed script conftest.vals that substitutes
6828# the proper values into config.h.in to produce config.h. And first:
6829# Protect against being on the right side of a sed subst in config.status.
6830# Protect against being in an unquoted here document in config.status.
6831rm -f conftest.vals
6832cat > conftest.hdr <<\EOF
6833s/[\\&%]/\\&/g
6834s%[\\$`]%\\&%g
6835s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6836s%ac_d%ac_u%gp
6837s%ac_u%ac_e%gp
6838EOF
6839sed -n -f conftest.hdr confdefs.h > conftest.vals
6840rm -f conftest.hdr
6841
6842# This sed command replaces #undef with comments. This is necessary, for
6843# example, in the case of _POSIX_SOURCE, which is predefined and required
6844# on some systems where configure will not decide to define it.
6845cat >> conftest.vals <<\EOF
6846s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6847EOF
6848
6849# Break up conftest.vals because some shells have a limit on
6850# the size of here documents, and old seds have small limits too.
6851
6852rm -f conftest.tail
6853while :
6854do
6855 ac_lines=`grep -c . conftest.vals`
6856 # grep -c gives empty output for an empty file on some AIX systems.
6857 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6858 # Write a limited-size here document to conftest.frag.
6859 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6860 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6861 echo 'CEOF
6862 sed -f conftest.frag conftest.in > conftest.out
6863 rm -f conftest.in
6864 mv conftest.out conftest.in
6865' >> $CONFIG_STATUS
6866 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6867 rm -f conftest.vals
6868 mv conftest.tail conftest.vals
6869done
6870rm -f conftest.vals
6871
6872cat >> $CONFIG_STATUS <<\EOF
6873 rm -f conftest.frag conftest.h
6874 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6875 cat conftest.in >> conftest.h
6876 rm -f conftest.in
6877 if cmp -s $ac_file conftest.h 2>/dev/null; then
6878 echo "$ac_file is unchanged"
6879 rm -f conftest.h
6880 else
6881 # Remove last slash and all that follows it. Not all systems have dirname.
6882 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6883 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6884 # The file is in a subdirectory.
6885 test ! -d "$ac_dir" && mkdir "$ac_dir"
6886 fi
6887 rm -f $ac_file
6888 mv conftest.h $ac_file
6889 fi
6890fi; done
6891
6892EOF
6893cat >> $CONFIG_STATUS <<EOF
6894
6895target_cpu_type=${target_cpu_type}
6896 cgen_cpu_prefix=${cgen_cpu_prefix}
6897 obj_format=${obj_format}
6898 te_file=${te_file}
6899EOF
6900cat >> $CONFIG_STATUS <<\EOF
6901test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6902rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
6903 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
6904 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
6905 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
6906 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
6907 if test "x$cgen_cpu_prefix" != x ; then
6908 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
6909 fi
6910
6911 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6912exit 0
6913EOF
6914chmod +x $CONFIG_STATUS
6915rm -fr confdefs* $ac_clean_files
6916test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6917
Note: See TracBrowser for help on using the repository browser.