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

Last change on this file since 1120 was 1113, checked in by bird, 22 years ago

Regenerated.

  • Property cvs2svn:cvs-rev set to 1.4
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 194.0 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
1667os2*)
1668 lt_cv_deplibs_check_method=pass_all
1669 ;;
1670
1671newsos6)
1672 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1673 lt_cv_file_magic_cmd=/usr/bin/file
1674 lt_cv_file_magic_test_file=/usr/lib/libnls.so
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*) fmt=aout em=emx bfd_gas=yes ;;
2546 i386-*-vxworks*) fmt=aout ;;
2547 i386-*-chaos) fmt=elf ;;
2548
2549 i860-*-*) fmt=elf endian=little
2550 echo "configure: warning: GAS support for ${generic_target} is preliminary and a work in progress" 1>&2 ;;
2551 i960-*-bout) fmt=bout ;;
2552 i960-*-coff) fmt=coff em=ic960 ;;
2553 i960-*-rtems*) fmt=coff em=ic960 ;;
2554 i960-*-nindy*) fmt=bout ;;
2555 i960-*-vxworks5.0) fmt=bout ;;
2556 i960-*-vxworks5.*) fmt=coff em=ic960 ;;
2557 i960-*-vxworks*) fmt=bout ;;
2558 i960-*-elf*) fmt=elf ;;
2559
2560 ia64-*-elf*) fmt=elf ;;
2561 ia64-*-aix*) fmt=elf em=ia64aix ;;
2562 ia64-*-linux-gnu*) fmt=elf em=linux ;;
2563 ia64-*-hpux*) fmt=elf em=hpux ;;
2564 ia64-*-netbsd*) fmt=elf em=nbsd ;;
2565
2566 ip2k-*-*) fmt=elf ;;
2567
2568 iq2000-*-elf) fmt=elf bfd_gas=yes ;;
2569
2570 m32r-*-*) fmt=elf ;;
2571
2572 m68hc11-*-* | m6811-*-*) fmt=elf ;;
2573 m68hc12-*-* | m6812-*-*) fmt=elf ;;
2574
2575 m68k-*-vxworks*) fmt=aout em=sun3 ;;
2576 m68k-ericsson-ose) fmt=aout em=sun3 ;;
2577 m68k-*-sunos*) fmt=aout em=sun3 ;;
2578 m68k-motorola-sysv*) fmt=coff em=delta ;;
2579 m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
2580 m68k-apollo-*) fmt=coff em=apollo ;;
2581 m68k-*-elf*) fmt=elf ;;
2582 m68k-*-sysv4*) fmt=elf em=svr4 ;;
2583 m68k-*-sysv*) fmt=coff ;;
2584 m68k-*-coff | m68k-*-rtemscoff*) fmt=coff ;;
2585 m68k-*-rtems*) fmt=elf ;;
2586 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
2587 m68k-*-linux*aout*) fmt=aout em=linux ;;
2588 m68k-*-linux-gnu*) fmt=elf em=linux ;;
2589 m68k-*-gnu*) fmt=elf ;;
2590 m68k-*-lynxos*) fmt=coff em=lynx ;;
2591 m68k-*-netbsdelf*) fmt=elf em=nbsd ;;
2592 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
2593 m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
2594 m68k-apple-aux*) fmt=coff em=aux ;;
2595 m68k-*-psos*) fmt=elf em=psos;;
2596
2597 m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
2598 m88k-*-coff*) fmt=coff ;;
2599
2600 mcore-*-elf) fmt=elf ;;
2601 mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
2602
2603 # don't change em like *-*-bsd does
2604 mips-dec-openbsd*) fmt=elf endian=little ;;
2605 mips-dec-bsd*) fmt=aout endian=little ;;
2606 mips-sony-bsd*) fmt=ecoff ;;
2607 mips-*-bsd*)
2608 { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
2609 mips-*-ultrix*) fmt=ecoff endian=little ;;
2610 mips-*-osf*) fmt=ecoff endian=little ;;
2611 mips-*-ecoff*) fmt=ecoff ;;
2612 mips-*-pe*) fmt=coff endian=little em=pe ;;
2613 mips-*-irix6*) fmt=elf em=irix ;;
2614 mips-*-irix5*) fmt=elf em=irix ;;
2615 mips-*-irix*) fmt=ecoff em=irix ;;
2616 mips-*-lnews*) fmt=ecoff em=lnews ;;
2617 mips-*-riscos*) fmt=ecoff ;;
2618 mips*-*-linux*) fmt=elf em=tmips ;;
2619 mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;;
2620 mips-*-sysv*) fmt=ecoff ;;
2621 mips-*-elf* | mips-*-rtems*) fmt=elf ;;
2622 mips-*-netbsd*) fmt=elf ;;
2623 mips-*-openbsd*) fmt=elf ;;
2624 mips-*-vxworks*) fmt=elf ;;
2625
2626 mmix-*-*) fmt=elf ;;
2627 mn10200-*-*) fmt=elf ;;
2628 mn10300-*-*) fmt=elf ;;
2629 msp430-*-*) fmt=elf ;;
2630 openrisc-*-*) fmt=elf ;;
2631 or32-*-rtems*) fmt=coff ;;
2632 or32-*-coff) fmt=coff ;;
2633 or32-*-elf) fmt=elf ;;
2634 pj*) fmt=elf ;;
2635
2636 ppc-*-pe | ppc-*-cygwin*) fmt=coff em=pe ;;
2637 ppc-*-winnt*) fmt=coff em=pe ;;
2638 ppc-*-aix5*) fmt=coff em=aix5 ;;
2639 ppc-*-aix*) fmt=coff ;;
2640 ppc-*-beos*) fmt=coff ;;
2641 ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
2642 ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
2643 ppc-*-linux-gnu*) fmt=elf
2644 case "$endian" in
2645 big) ;;
2646 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
2647 esac ;;
2648 ppc-*-solaris*) fmt=elf
2649 if test ${this_target} = $target; then
2650 cat >> confdefs.h <<\EOF
2651#define TARGET_SOLARIS_COMMENT 1
2652EOF
2653
2654 fi
2655 if test x${endian} = xbig; then
2656 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
2657 fi ;;
2658 ppc-*-rtems*) fmt=elf ;;
2659 ppc-*-macos* | ppc-*-mpw*) fmt=coff em=macos ;;
2660 ppc-*-netware*) fmt=elf em=ppcnw ;;
2661 ppc-**-nto*) fmt=elf ;;
2662 ppc-*-vxworks*) fmt=elf ;;
2663 ppc-*-windiss*) fmt=elf ;;
2664 ppc-*-kaos*) fmt=elf ;;
2665
2666 s390x-*-linux-gnu*) fmt=elf em=linux ;;
2667 s390-*-linux-gnu*) fmt=elf em=linux ;;
2668
2669 sh*-*-linux*) fmt=elf em=linux
2670 case ${cpu} in
2671 sh*eb) endian=big ;;
2672 *) endian=little ;;
2673 esac ;;
2674 sh5*-*-netbsd*) fmt=elf em=nbsd ;;
2675 sh64*-*-netbsd*) fmt=elf em=nbsd ;;
2676 sh*-*-netbsdelf*) fmt=elf em=nbsd ;;
2677 sh-*-elf*) fmt=elf ;;
2678 sh-*-coff*) fmt=coff ;;
2679 sh-*-nto*) fmt=elf ;;
2680 sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
2681 sh-*-rtemself*) fmt=elf ;;
2682 sh-*-rtems*) fmt=coff ;;
2683 sh-*-kaos*) fmt=elf ;;
2684 shle*-*-kaos*) fmt=elf ;;
2685 sh64-*-elf*) fmt=elf ;;
2686
2687 ns32k-pc532-mach*) fmt=aout em=pc532mach ;;
2688 ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
2689 ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
2690 ns32k-*-*n*bsd*) fmt=aout em=nbsd532 ;;
2691
2692 sparc-*-rtemsaout*) fmt=aout ;;
2693 sparc-*-rtemself*) fmt=elf ;;
2694 sparc-*-rtems*) fmt=elf ;;
2695 sparc-*-sunos4*) fmt=aout em=sun3 ;;
2696 sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;;
2697 sparc-*-coff) fmt=coff ;;
2698 sparc-*-linux*aout*) fmt=aout em=linux ;;
2699 sparc-*-linux-gnu*) fmt=elf em=linux ;;
2700 sparc-*-lynxos*) fmt=coff em=lynx ;;
2701 sparc-fujitsu-none) fmt=aout ;;
2702 sparc-*-elf) fmt=elf ;;
2703 sparc-*-sysv4*) fmt=elf ;;
2704 sparc-*-solaris*) fmt=elf ;;
2705 sparc-*-netbsdelf*) fmt=elf em=nbsd ;;
2706 sparc-*-*n*bsd*) case ${cpu} in
2707 sparc64) fmt=elf em=nbsd ;;
2708 *) fmt=aout em=nbsd ;;
2709 esac ;;
2710 strongarm-*-coff) fmt=coff ;;
2711 strongarm-*-elf) fmt=elf ;;
2712 strongarm-*-kaos*) fmt=elf ;;
2713 xscale-*-coff) fmt=coff ;;
2714 xscale-*-elf) fmt=elf ;;
2715
2716 tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
2717 tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
2718 tic4x-*-* | c4x-*-*) fmt=coff bfd_gas=yes ;;
2719 tic54x-*-* | c54x*-*-*) fmt=coff bfd_gas=yes need_libm=yes;;
2720 tic80-*-*) fmt=coff ;;
2721
2722 v850-*-*) fmt=elf ;;
2723 v850e-*-*) fmt=elf ;;
2724 v850ea-*-*) fmt=elf ;;
2725
2726 vax-*-netbsdelf*) fmt=elf em=nbsd ;;
2727 vax-*-netbsd*) fmt=aout em=nbsd ;;
2728 vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
2729 vax-*-vms) fmt=vms ;;
2730
2731 w65-*-*) fmt=coff ;;
2732
2733 xstormy16-*-*) fmt=elf ;;
2734
2735 xtensa-*-*) fmt=elf ;;
2736
2737 z8k-*-coff | z8k-*-sim) fmt=coff ;;
2738
2739 *-*-aout | *-*-scout) fmt=aout ;;
2740 *-*-freebsd*) fmt=elf em=freebsd ;;
2741 *-*-nindy*) fmt=bout ;;
2742 *-*-bsd*) fmt=aout em=sun3 ;;
2743 *-*-generic) fmt=generic ;;
2744 *-*-xray | *-*-hms) fmt=coff ;;
2745 *-*-sim) fmt=coff ;;
2746 *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;;
2747 *-*-aros*) fmt=elf em=linux bfd_gas=yes ;;
2748 *-*-vxworks) fmt=aout ;;
2749 *-*-netware) fmt=elf ;;
2750 esac
2751
2752 if test ${this_target} = $target ; then
2753 endian_def=
2754 if test x${endian} = xbig; then
2755 endian_def=1
2756 elif test x${endian} = xlittle; then
2757 endian_def=0
2758 fi
2759 if test x${endian_def} != x; then
2760 cat >> confdefs.h <<EOF
2761#define TARGET_BYTES_BIG_ENDIAN $endian_def
2762EOF
2763
2764 fi
2765 fi
2766
2767 case ${cpu_type}-${fmt} in
2768 alpha*-* | arm-* | i386-* | ia64*-* | mips-* | ns32k-* \
2769 | pdp11-* | ppc-* | sparc-* | strongarm-* | xscale-* \
2770 | *-elf | *-ecoff | *-som)
2771 bfd_gas=yes ;;
2772 esac
2773
2774# Other random stuff.
2775
2776 case ${cpu_type} in
2777 mips)
2778 # Set mips_cpu to the name of the default CPU.
2779 case ${target_cpu} in
2780 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
2781 mips_cpu=from-abi
2782 ;;
2783 mipsisa32 | mipsisa32el)
2784 mips_cpu=mips32
2785 ;;
2786 mipsisa32r2 | mipsisa32r2el)
2787 mips_cpu=mips32r2
2788 ;;
2789 mipsisa64 | mipsisa64el)
2790 mips_cpu=mips64
2791 ;;
2792 mipstx39 | mipstx39el)
2793 mips_cpu=r3900
2794 ;;
2795 mips64vr | mips64vrel)
2796 mips_cpu=vr4100
2797 ;;
2798 mipsisa32r2*)
2799 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
2800 ;;
2801 mips64* | mipsisa64* | mipsisa32*)
2802 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
2803 ;;
2804 *)
2805 { echo "configure: error: $target_cpu isn't a supported MIPS CPU name" 1>&2; exit 1; }
2806 ;;
2807 esac
2808 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
2809 # binaries. It's a GNU extension that some OSes don't understand.
2810 # The value only matters on ELF targets.
2811 case ${target} in
2812 *-*-irix*)
2813 use_e_mips_abi_o32=0
2814 ;;
2815 *)
2816 use_e_mips_abi_o32=1
2817 ;;
2818 esac
2819 # Decide whether to generate 32-bit or 64-bit code by default.
2820 # Used to resolve -march=from-abi when an embedded ABI is selected.
2821 case ${target} in
2822 mips64*-*-* | mipsisa64*-*-*)
2823 mips_default_64bit=1
2824 ;;
2825 *)
2826 mips_default_64bit=0
2827 ;;
2828 esac
2829 # Decide which ABI to target by default.
2830 case ${target} in
2831 mips64*-linux* | mips-sgi-irix6*)
2832 mips_default_abi=N32_ABI
2833 ;;
2834 mips*-linux*)
2835 mips_default_abi=O32_ABI
2836 ;;
2837 *)
2838 mips_default_abi=NO_ABI
2839 ;;
2840 esac
2841 cat >> confdefs.h <<EOF
2842#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
2843EOF
2844
2845 cat >> confdefs.h <<EOF
2846#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
2847EOF
2848
2849 cat >> confdefs.h <<EOF
2850#define MIPS_DEFAULT_64BIT $mips_default_64bit
2851EOF
2852
2853 cat >> confdefs.h <<EOF
2854#define MIPS_DEFAULT_ABI $mips_default_abi
2855EOF
2856
2857 ;;
2858 esac
2859
2860 # Do we need the opcodes library?
2861 case ${cpu_type} in
2862 vax | i386 | tic30)
2863 ;;
2864
2865 *)
2866 need_opcodes=yes
2867
2868 case "${enable_shared}" in
2869 yes) shared_opcodes=true ;;
2870 *opcodes*) shared_opcodes=true ;;
2871 *) shared_opcodes=false ;;
2872 esac
2873 if test "${shared_opcodes}" = "true"; then
2874 # A shared libopcodes must be linked against libbfd.
2875 need_bfd=yes
2876 fi
2877 ;;
2878 esac
2879
2880 # Any other special object files needed ?
2881 case ${cpu_type} in
2882 fr30 | ip2k | iq2000 | m32r | openrisc)
2883 using_cgen=yes
2884 ;;
2885
2886 frv)
2887 using_cgen=yes
2888 ;;
2889 m68k)
2890 case ${extra_objects} in
2891 *m68k-parse.o*) ;;
2892 *) extra_objects="$extra_objects m68k-parse.o" ;;
2893 esac
2894 ;;
2895
2896 mips)
2897 echo ${extra_objects} | grep -s "itbl-parse.o"
2898 if test $? -ne 0 ; then
2899 extra_objects="$extra_objects itbl-parse.o"
2900 fi
2901
2902 echo ${extra_objects} | grep -s "itbl-lex.o"
2903 if test $? -ne 0 ; then
2904 extra_objects="$extra_objects itbl-lex.o"
2905 fi
2906
2907 echo ${extra_objects} | grep -s "itbl-ops.o"
2908 if test $? -ne 0 ; then
2909 extra_objects="$extra_objects itbl-ops.o"
2910 fi
2911 ;;
2912
2913 i386 | s390 | sparc)
2914 if test $this_target = $target ; then
2915 cat >> confdefs.h <<EOF
2916#define DEFAULT_ARCH "${arch}"
2917EOF
2918
2919 fi
2920 ;;
2921
2922 xstormy16)
2923 using_cgen=yes
2924 ;;
2925
2926 xtensa)
2927 echo ${extra_objects} | grep -s "xtensa-relax.o"
2928 if test $? -ne 0 ; then
2929 extra_objects="$extra_objects xtensa-relax.o"
2930 fi
2931 ;;
2932
2933 *)
2934 ;;
2935 esac
2936
2937 if test $using_cgen = yes ; then
2938 case "x${extra_objects}" in
2939 *cgen.o*) ;;
2940 *) extra_objects="$extra_objects cgen.o" ;;
2941 esac
2942 fi
2943
2944# See if we really can support this configuration with the emulation code.
2945
2946 if test $this_target = $target ; then
2947 primary_bfd_gas=$bfd_gas
2948 obj_format=$fmt
2949 te_file=$em
2950
2951 if test $bfd_gas = no ; then
2952 # Can't support other configurations this way.
2953 break
2954 fi
2955 elif test $bfd_gas = no ; then
2956 # Can't support this configuration.
2957 break
2958 fi
2959
2960# From target name and format, produce a list of supported emulations.
2961
2962 case ${generic_target}-${fmt} in
2963 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2964 mips*-*-linux*-*) case "$endian" in
2965 big) emulation="mipsbelf mipslelf mipself" ;;
2966 *) emulation="mipslelf mipsbelf mipself" ;;
2967 esac ;;
2968 mips-*-lnews*-ecoff) ;;
2969 mips-*-*-ecoff) case "$endian" in
2970 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
2971 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
2972 esac ;;
2973 mips-*-*-elf) case "$endian" in
2974 big) emulation="mipsbelf mipslelf mipself" ;;
2975 *) emulation="mipslelf mipsbelf mipself" ;;
2976 esac ;;
2977 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2978 # i386-pc-pe-coff != i386-pc-coff.
2979 i386-*-pe-coff) ;;
2980 # Uncommenting the next line will turn on support for i386 AOUT
2981 # for the default linux configuration
2982 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
2983 #
2984 i386-*-aout) emulation="i386aout" ;;
2985 i386-*-coff) emulation="i386coff" ;;
2986 i386-*-elf) emulation="i386elf" ;;
2987
2988 # Always all formats. The first stated emulation becomes the default.
2989 cris-*-*aout*) emulation="crisaout criself" ;;
2990 cris-*-*) emulation="criself crisaout" ;;
2991 esac
2992
2993 emulations="$emulations $emulation"
2994
2995done
2996
2997# Turn on all targets if possible
2998if test ${all_targets} = "yes"; then
2999 case ${target_cpu_type} in
3000 i386)
3001 case ${obj_format} in
3002 aout)
3003 emulations="$emulations i386coff i386elf"
3004 ;;
3005 coff)
3006 emulations="$emulations i386aout i386elf"
3007 ;;
3008 elf)
3009 emulations="$emulations i386aout i386coff"
3010 ;;
3011 esac
3012 ;;
3013 esac
3014fi
3015
3016# Assign floating point type. Most processors with FP support
3017# IEEE FP. On those that don't support FP at all, usually IEEE
3018# is emulated.
3019case ${target_cpu} in
3020 vax | tahoe ) atof=${target_cpu} ;;
3021 pdp11) atof=vax ;;
3022 *) atof=ieee ;;
3023esac
3024
3025case "${obj_format}" in
3026 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
3027esac
3028
3029# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
3030cgen_cpu_prefix=""
3031if test $using_cgen = yes ; then
3032 case ${target_cpu} in
3033 *) cgen_cpu_prefix=${target_cpu} ;;
3034 esac
3035
3036 cat >> confdefs.h <<\EOF
3037#define USING_CGEN 1
3038EOF
3039
3040fi
3041
3042
3043if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
3044 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
3045fi
3046
3047if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
3048 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
3049fi
3050
3051case ${user_bfd_gas}-${primary_bfd_gas} in
3052 yes-yes | no-no)
3053 # We didn't override user's choice.
3054 ;;
3055 no-yes)
3056 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
3057 ;;
3058 no-preferred)
3059 primary_bfd_gas=no
3060 ;;
3061 *-preferred)
3062 primary_bfd_gas=yes
3063 ;;
3064 yes-*)
3065 primary_bfd_gas=yes
3066 ;;
3067 -*)
3068 # User specified nothing.
3069 ;;
3070esac
3071
3072# Some COFF configurations want these random other flags set.
3073case ${obj_format} in
3074 coff)
3075 case ${target_cpu_type} in
3076 i386) cat >> confdefs.h <<\EOF
3077#define I386COFF 1
3078EOF
3079 ;;
3080 m68k) cat >> confdefs.h <<\EOF
3081#define M68KCOFF 1
3082EOF
3083 ;;
3084 m88k) cat >> confdefs.h <<\EOF
3085#define M88KCOFF 1
3086EOF
3087 ;;
3088 esac
3089 ;;
3090esac
3091
3092# Getting this done right is going to be a bitch. Each configuration specified
3093# with --enable-targets=... should be checked for environment, format, cpu, and
3094# bfd_gas setting.
3095#
3096# For each configuration, the necessary object file support code must be linked
3097# in. This might be only one, it might be up to four. The necessary emulation
3098# code needs to be provided, too.
3099#
3100# And then there's "--enable-targets=all"....
3101#
3102# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
3103
3104formats="${obj_format}"
3105emfiles=""
3106EMULATIONS=""
3107_gas_uniq_list="$emulations"
3108_gas_uniq_newlist=""
3109for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
3110 case $_gas_uniq_i in
3111 _gas_uniq_dummy) ;;
3112 *) case " $_gas_uniq_newlist " in
3113 *" $_gas_uniq_i "*) ;;
3114 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
3115 esac ;;
3116 esac
3117done
3118emulations=$_gas_uniq_newlist
3119
3120for em in . $emulations ; do
3121 case $em in
3122 .) continue ;;
3123 mipsbelf | mipslelf | mipself)
3124 fmt=elf file=mipself ;;
3125 mipsbecoff | mipslecoff | mipsecoff)
3126 fmt=ecoff file=mipsecoff ;;
3127 *coff)
3128 fmt=coff file=$em ;;
3129 *aout)
3130 fmt=aout file=$em ;;
3131 *elf)
3132 fmt=elf file=$em ;;
3133 esac
3134 formats="$formats $fmt"
3135 emfiles="$emfiles e-$file.o"
3136 EMULATIONS="$EMULATIONS &$em,"
3137done
3138_gas_uniq_list="$formats"
3139_gas_uniq_newlist=""
3140for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
3141 case $_gas_uniq_i in
3142 _gas_uniq_dummy) ;;
3143 *) case " $_gas_uniq_newlist " in
3144 *" $_gas_uniq_i "*) ;;
3145 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
3146 esac ;;
3147 esac
3148done
3149formats=$_gas_uniq_newlist
3150
3151_gas_uniq_list="$emfiles"
3152_gas_uniq_newlist=""
3153for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
3154 case $_gas_uniq_i in
3155 _gas_uniq_dummy) ;;
3156 *) case " $_gas_uniq_newlist " in
3157 *" $_gas_uniq_i "*) ;;
3158 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
3159 esac ;;
3160 esac
3161done
3162emfiles=$_gas_uniq_newlist
3163
3164if test `set . $formats ; shift ; echo $#` -gt 1 ; then
3165 for fmt in $formats ; do
3166 case $fmt in
3167 aout) cat >> confdefs.h <<\EOF
3168#define OBJ_MAYBE_AOUT 1
3169EOF
3170 ;;
3171 bout) cat >> confdefs.h <<\EOF
3172#define OBJ_MAYBE_BOUT 1
3173EOF
3174 ;;
3175 coff) cat >> confdefs.h <<\EOF
3176#define OBJ_MAYBE_COFF 1
3177EOF
3178 ;;
3179 ecoff) cat >> confdefs.h <<\EOF
3180#define OBJ_MAYBE_ECOFF 1
3181EOF
3182 ;;
3183 elf) cat >> confdefs.h <<\EOF
3184#define OBJ_MAYBE_ELF 1
3185EOF
3186 ;;
3187 generic) cat >> confdefs.h <<\EOF
3188#define OBJ_MAYBE_GENERIC 1
3189EOF
3190 ;;
3191 hp300) cat >> confdefs.h <<\EOF
3192#define OBJ_MAYBE_HP300 1
3193EOF
3194 ;;
3195 ieee) cat >> confdefs.h <<\EOF
3196#define OBJ_MAYBE_IEEE 1
3197EOF
3198 ;;
3199 som) cat >> confdefs.h <<\EOF
3200#define OBJ_MAYBE_SOM 1
3201EOF
3202 ;;
3203 vms) cat >> confdefs.h <<\EOF
3204#define OBJ_MAYBE_VMS 1
3205EOF
3206 ;;
3207 esac
3208 extra_objects="$extra_objects obj-$fmt.o"
3209 done
3210 obj_format=multi
3211fi
3212if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
3213 DEFAULT_EMULATION=`set . $emulations ; echo $2`
3214 # e-mips* has more than one emulation per file, e-i386* has just one at the
3215 # moment. If only one emulation is specified, then don't define
3216 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
3217 case "${obj_format}${emfiles}" in
3218 multi* | *mips*)
3219 extra_objects="$extra_objects $emfiles"
3220 cat >> confdefs.h <<\EOF
3221#define USE_EMULATIONS 1
3222EOF
3223 ;;
3224 esac
3225fi
3226
3227cat >> confdefs.h <<EOF
3228#define EMULATIONS $EMULATIONS
3229EOF
3230
3231cat >> confdefs.h <<EOF
3232#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
3233EOF
3234
3235
3236case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
3237 yes-*-coff) need_bfd=yes ;;
3238 no-*-coff) need_bfd=yes
3239 cat >> confdefs.h <<\EOF
3240#define MANY_SEGMENTS 1
3241EOF
3242 ;;
3243esac
3244
3245reject_dev_configs=yes
3246
3247case ${reject_dev_configs}-${dev} in
3248 yes-yes) # Oops.
3249 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
3250 ;;
3251esac
3252
3253
3254
3255
3256
3257
3258
3259case "${primary_bfd_gas}" in
3260 yes) cat >> confdefs.h <<\EOF
3261#define BFD_ASSEMBLER 1
3262EOF
3263
3264 need_bfd=yes ;;
3265esac
3266
3267# do we need the opcodes library?
3268case "${need_opcodes}" in
3269yes)
3270 OPCODES_LIB=../opcodes/libopcodes.la
3271 ;;
3272esac
3273
3274case "${need_bfd}" in
3275yes)
3276 BFDLIB=../bfd/libbfd.la
3277 BFDVER_H=../bfd/bfdver.h
3278 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
3279 ;;
3280esac
3281
3282
3283
3284
3285
3286
3287
3288cat >> confdefs.h <<EOF
3289#define TARGET_ALIAS "${target_alias}"
3290EOF
3291
3292cat >> confdefs.h <<EOF
3293#define TARGET_CANONICAL "${target}"
3294EOF
3295
3296cat >> confdefs.h <<EOF
3297#define TARGET_CPU "${target_cpu}"
3298EOF
3299
3300cat >> confdefs.h <<EOF
3301#define TARGET_VENDOR "${target_vendor}"
3302EOF
3303
3304cat >> confdefs.h <<EOF
3305#define TARGET_OS "${target_os}"
3306EOF
3307
3308
3309# Extract the first word of "gcc", so it can be a program name with args.
3310set dummy gcc; ac_word=$2
3311echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3312echo "configure:3313: checking for $ac_word" >&5
3313if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3315else
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3318else
3319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3320 ac_dummy="$PATH"
3321 for ac_dir in $ac_dummy; do
3322 test -z "$ac_dir" && ac_dir=.
3323 if test -f $ac_dir/$ac_word -o \
3324 -f $ac_dir/$ac_word$ac_exeext ; then
3325 ac_cv_prog_CC="gcc"
3326 break
3327 fi
3328 done
3329 IFS="$ac_save_ifs"
3330fi
3331fi
3332CC="$ac_cv_prog_CC"
3333if test -n "$CC"; then
3334 echo "$ac_t""$CC" 1>&6
3335else
3336 echo "$ac_t""no" 1>&6
3337fi
3338
3339if test -z "$CC"; then
3340 # Extract the first word of "cc", so it can be a program name with args.
3341set dummy cc; ac_word=$2
3342echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3343echo "configure:3344: checking for $ac_word" >&5
3344if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3346else
3347 if test -n "$CC"; then
3348 ac_cv_prog_CC="$CC" # Let the user override the test.
3349else
3350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3351 ac_prog_rejected=no
3352 ac_dummy="$PATH"
3353 for ac_dir in $ac_dummy; do
3354 test -z "$ac_dir" && ac_dir=.
3355 if test -f $ac_dir/$ac_word -o \
3356 -f $ac_dir/$ac_word$ac_exeext ; then
3357 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
3358 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
3359 ac_prog_rejected=yes
3360 continue
3361 fi
3362 ac_cv_prog_CC="cc"
3363 break
3364 fi
3365 done
3366 IFS="$ac_save_ifs"
3367if test $ac_prog_rejected = yes; then
3368 # We found a bogon in the path, so make sure we never use it.
3369 set dummy $ac_cv_prog_CC
3370 shift
3371 if test $# -gt 0; then
3372 # We chose a different compiler from the bogus one.
3373 # However, it has the same basename, so the bogon will be chosen
3374 # first if we set CC to just the basename; use the full file name.
3375 shift
3376 set dummy "$ac_dir/$ac_word" "$@"
3377 shift
3378 ac_cv_prog_CC="$@"
3379 fi
3380fi
3381fi
3382fi
3383CC="$ac_cv_prog_CC"
3384if test -n "$CC"; then
3385 echo "$ac_t""$CC" 1>&6
3386else
3387 echo "$ac_t""no" 1>&6
3388fi
3389
3390 if test -z "$CC"; then
3391 case "`uname -s`" in
3392 *win32* | *WIN32*)
3393 # Extract the first word of "cl", so it can be a program name with args.
3394set dummy cl; ac_word=$2
3395echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3396echo "configure:3397: checking for $ac_word" >&5
3397if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3398 echo $ac_n "(cached) $ac_c" 1>&6
3399else
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402else
3403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3404 ac_dummy="$PATH"
3405 for ac_dir in $ac_dummy; do
3406 test -z "$ac_dir" && ac_dir=.
3407 if test -f $ac_dir/$ac_word -o \
3408 -f $ac_dir/$ac_word$ac_exeext ; then
3409 ac_cv_prog_CC="cl"
3410 break
3411 fi
3412 done
3413 IFS="$ac_save_ifs"
3414fi
3415fi
3416CC="$ac_cv_prog_CC"
3417if test -n "$CC"; then
3418 echo "$ac_t""$CC" 1>&6
3419else
3420 echo "$ac_t""no" 1>&6
3421fi
3422 ;;
3423 esac
3424 fi
3425 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3426fi
3427
3428echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3429echo "configure:3430: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
3430
3431ac_ext=c
3432# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3433ac_cpp='$CPP $CPPFLAGS'
3434ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3435ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3436cross_compiling=$ac_cv_prog_cc_cross
3437
3438cat > conftest.$ac_ext << EOF
3439
3440#line 3441 "configure"
3441#include "confdefs.h"
3442
3443main(){return(0);}
3444EOF
3445if { (eval echo configure:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3446 ac_cv_prog_cc_works=yes
3447 # If we can't run a trivial program, we are probably using a cross compiler.
3448 if (./conftest; exit) 2>/dev/null; then
3449 ac_cv_prog_cc_cross=no
3450 else
3451 ac_cv_prog_cc_cross=yes
3452 fi
3453else
3454 echo "configure: failed program was:" >&5
3455 cat conftest.$ac_ext >&5
3456 ac_cv_prog_cc_works=no
3457fi
3458rm -fr conftest*
3459ac_ext=c
3460# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3463ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3464cross_compiling=$ac_cv_prog_cc_cross
3465
3466echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3467if test $ac_cv_prog_cc_works = no; then
3468 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3469fi
3470echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3471echo "configure:3472: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
3472echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3473cross_compiling=$ac_cv_prog_cc_cross
3474
3475echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3476echo "configure:3477: checking whether we are using GNU C" >&5
3477if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3479else
3480 cat > conftest.c <<EOF
3481#ifdef __GNUC__
3482 yes;
3483#endif
3484EOF
3485if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3486 ac_cv_prog_gcc=yes
3487else
3488 ac_cv_prog_gcc=no
3489fi
3490fi
3491
3492echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3493
3494if test $ac_cv_prog_gcc = yes; then
3495 GCC=yes
3496else
3497 GCC=
3498fi
3499
3500ac_test_CFLAGS="${CFLAGS+set}"
3501ac_save_CFLAGS="$CFLAGS"
3502CFLAGS=
3503echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3504echo "configure:3505: checking whether ${CC-cc} accepts -g" >&5
3505if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3507else
3508 echo 'void f(){}' > conftest.c
3509if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3510 ac_cv_prog_cc_g=yes
3511else
3512 ac_cv_prog_cc_g=no
3513fi
3514rm -f conftest*
3515
3516fi
3517
3518echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3519if test "$ac_test_CFLAGS" = set; then
3520 CFLAGS="$ac_save_CFLAGS"
3521elif test $ac_cv_prog_cc_g = yes; then
3522 if test "$GCC" = yes; then
3523 CFLAGS="-g -O2"
3524 else
3525 CFLAGS="-g"
3526 fi
3527else
3528 if test "$GCC" = yes; then
3529 CFLAGS="-O2"
3530 else
3531 CFLAGS=
3532 fi
3533fi
3534
3535
3536for ac_prog in 'bison -y' byacc
3537do
3538# Extract the first word of "$ac_prog", so it can be a program name with args.
3539set dummy $ac_prog; ac_word=$2
3540echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3541echo "configure:3542: checking for $ac_word" >&5
3542if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3544else
3545 if test -n "$YACC"; then
3546 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3547else
3548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3549 ac_dummy="$PATH"
3550 for ac_dir in $ac_dummy; do
3551 test -z "$ac_dir" && ac_dir=.
3552 if test -f $ac_dir/$ac_word -o \
3553 -f $ac_dir/$ac_word$ac_exeext ; then
3554 ac_cv_prog_YACC="$ac_prog"
3555 break
3556 fi
3557 done
3558 IFS="$ac_save_ifs"
3559fi
3560fi
3561YACC="$ac_cv_prog_YACC"
3562if test -n "$YACC"; then
3563 echo "$ac_t""$YACC" 1>&6
3564else
3565 echo "$ac_t""no" 1>&6
3566fi
3567
3568test -n "$YACC" && break
3569done
3570test -n "$YACC" || YACC="yacc"
3571
3572echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3573echo "configure:3574: checking how to run the C preprocessor" >&5
3574# On Suns, sometimes $CPP names a directory.
3575if test -n "$CPP" && test -d "$CPP"; then
3576 CPP=
3577fi
3578if test -z "$CPP"; then
3579if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3581else
3582 # This must be in double quotes, not single quotes, because CPP may get
3583 # substituted into the Makefile and "${CC-cc}" will confuse make.
3584 CPP="${CC-cc} -E"
3585 # On the NeXT, cc -E runs the code through the compiler's parser,
3586 # not just through cpp.
3587 cat > conftest.$ac_ext <<EOF
3588#include <sys/types.h>
3589#line 3590 "configure"
3590#include "confdefs.h"
3591#include <assert.h>
3592Syntax Error
3593EOF
3594ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3595{ (eval echo configure:3596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3596ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3597if test -z "$ac_err"; then
3598 :
3599else
3600 echo "$ac_err" >&5
3601 echo "configure: failed program was:" >&5
3602 cat conftest.$ac_ext >&5
3603 rm -rf conftest*
3604 CPP="${CC-cc} -E -traditional-cpp"
3605 cat > conftest.$ac_ext <<EOF
3606#include <sys/types.h>
3607#line 3608 "configure"
3608#include "confdefs.h"
3609#include <assert.h>
3610Syntax Error
3611EOF
3612ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3613{ (eval echo configure:3614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3614ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3615if test -z "$ac_err"; then
3616 :
3617else
3618 echo "$ac_err" >&5
3619 echo "configure: failed program was:" >&5
3620 cat conftest.$ac_ext >&5
3621 rm -rf conftest*
3622 CPP="${CC-cc} -nologo -E"
3623 cat > conftest.$ac_ext <<EOF
3624#include <sys/types.h>
3625#line 3626 "configure"
3626#include "confdefs.h"
3627#include <assert.h>
3628Syntax Error
3629EOF
3630ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3631{ (eval echo configure:3632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3632ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3633if test -z "$ac_err"; then
3634 :
3635else
3636 echo "$ac_err" >&5
3637 echo "configure: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3639 rm -rf conftest*
3640 CPP=/lib/cpp
3641fi
3642rm -f conftest*
3643fi
3644rm -f conftest*
3645fi
3646rm -f conftest*
3647 ac_cv_prog_CPP="$CPP"
3648fi
3649 CPP="$ac_cv_prog_CPP"
3650else
3651 ac_cv_prog_CPP="$CPP"
3652fi
3653echo "$ac_t""$CPP" 1>&6
3654
3655missing_dir=`cd $ac_aux_dir && pwd`
3656for ac_prog in flex lex
3657do
3658# Extract the first word of "$ac_prog", so it can be a program name with args.
3659set dummy $ac_prog; ac_word=$2
3660echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3661echo "configure:3662: checking for $ac_word" >&5
3662if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3664else
3665 if test -n "$LEX"; then
3666 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3667else
3668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3669 ac_dummy="$PATH"
3670 for ac_dir in $ac_dummy; do
3671 test -z "$ac_dir" && ac_dir=.
3672 if test -f $ac_dir/$ac_word -o \
3673 -f $ac_dir/$ac_word$ac_exeext ; then
3674 ac_cv_prog_LEX="$ac_prog"
3675 break
3676 fi
3677 done
3678 IFS="$ac_save_ifs"
3679fi
3680fi
3681LEX="$ac_cv_prog_LEX"
3682if test -n "$LEX"; then
3683 echo "$ac_t""$LEX" 1>&6
3684else
3685 echo "$ac_t""no" 1>&6
3686fi
3687
3688test -n "$LEX" && break
3689done
3690test -n "$LEX" || LEX=""$missing_dir/missing flex""
3691
3692# Extract the first word of "flex", so it can be a program name with args.
3693set dummy flex; ac_word=$2
3694echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3695echo "configure:3696: checking for $ac_word" >&5
3696if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3697 echo $ac_n "(cached) $ac_c" 1>&6
3698else
3699 if test -n "$LEX"; then
3700 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3701else
3702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3703 ac_dummy="$PATH"
3704 for ac_dir in $ac_dummy; do
3705 test -z "$ac_dir" && ac_dir=.
3706 if test -f $ac_dir/$ac_word -o \
3707 -f $ac_dir/$ac_word$ac_exeext ; then
3708 ac_cv_prog_LEX="flex"
3709 break
3710 fi
3711 done
3712 IFS="$ac_save_ifs"
3713 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
3714fi
3715fi
3716LEX="$ac_cv_prog_LEX"
3717if test -n "$LEX"; then
3718 echo "$ac_t""$LEX" 1>&6
3719else
3720 echo "$ac_t""no" 1>&6
3721fi
3722
3723if test -z "$LEXLIB"
3724then
3725 case "$LEX" in
3726 flex*) ac_lib=fl ;;
3727 *) ac_lib=l ;;
3728 esac
3729 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3730echo "configure:3731: checking for yywrap in -l$ac_lib" >&5
3731ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3732if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3734else
3735 ac_save_LIBS="$LIBS"
3736LIBS="-l$ac_lib $LIBS"
3737cat > conftest.$ac_ext <<EOF
3738#line 3739 "configure"
3739#include "confdefs.h"
3740/* Override any gcc2 internal prototype to avoid an error. */
3741/* We use char because int might match the return type of a gcc2
3742 builtin and then its argument prototype would still apply. */
3743char yywrap();
3744
3745int main() {
3746yywrap()
3747; return 0; }
3748EOF
3749if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3750 rm -rf conftest*
3751 eval "ac_cv_lib_$ac_lib_var=yes"
3752else
3753 echo "configure: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3755 rm -rf conftest*
3756 eval "ac_cv_lib_$ac_lib_var=no"
3757fi
3758rm -f conftest*
3759LIBS="$ac_save_LIBS"
3760
3761fi
3762if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3763 echo "$ac_t""yes" 1>&6
3764 LEXLIB="-l$ac_lib"
3765else
3766 echo "$ac_t""no" 1>&6
3767fi
3768
3769fi
3770
3771echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3772echo "configure:3773: checking lex output file root" >&5
3773if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3775else
3776 # The minimal lex program is just a single line: %%. But some broken lexes
3777# (Solaris, I think it was) want two %% lines, so accommodate them.
3778echo '%%
3779%%' | $LEX
3780if test -f lex.yy.c; then
3781 ac_cv_prog_lex_root=lex.yy
3782elif test -f lexyy.c; then
3783 ac_cv_prog_lex_root=lexyy
3784else
3785 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3786fi
3787fi
3788
3789echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3790LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3791
3792echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3793echo "configure:3794: checking whether yytext is a pointer" >&5
3794if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3796else
3797 # POSIX says lex can declare yytext either as a pointer or an array; the
3798# default is implementation-dependent. Figure out which it is, since
3799# not all implementations provide the %pointer and %array declarations.
3800ac_cv_prog_lex_yytext_pointer=no
3801echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3802ac_save_LIBS="$LIBS"
3803LIBS="$LIBS $LEXLIB"
3804cat > conftest.$ac_ext <<EOF
3805#line 3806 "configure"
3806#include "confdefs.h"
3807`cat $LEX_OUTPUT_ROOT.c`
3808int main() {
3809
3810; return 0; }
3811EOF
3812if { (eval echo configure:3813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3813 rm -rf conftest*
3814 ac_cv_prog_lex_yytext_pointer=yes
3815else
3816 echo "configure: failed program was:" >&5
3817 cat conftest.$ac_ext >&5
3818fi
3819rm -f conftest*
3820LIBS="$ac_save_LIBS"
3821rm -f "${LEX_OUTPUT_ROOT}.c"
3822
3823fi
3824
3825echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3826if test $ac_cv_prog_lex_yytext_pointer = yes; then
3827 cat >> confdefs.h <<\EOF
3828#define YYTEXT_POINTER 1
3829EOF
3830
3831fi
3832
3833
3834ALL_LINGUAS="fr tr es"
3835# Extract the first word of "ranlib", so it can be a program name with args.
3836set dummy ranlib; ac_word=$2
3837echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3838echo "configure:3839: checking for $ac_word" >&5
3839if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3841else
3842 if test -n "$RANLIB"; then
3843 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3844else
3845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3846 ac_dummy="$PATH"
3847 for ac_dir in $ac_dummy; do
3848 test -z "$ac_dir" && ac_dir=.
3849 if test -f $ac_dir/$ac_word -o \
3850 -f $ac_dir/$ac_word$ac_exeext ; then
3851 ac_cv_prog_RANLIB="ranlib"
3852 break
3853 fi
3854 done
3855 IFS="$ac_save_ifs"
3856 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3857fi
3858fi
3859RANLIB="$ac_cv_prog_RANLIB"
3860if test -n "$RANLIB"; then
3861 echo "$ac_t""$RANLIB" 1>&6
3862else
3863 echo "$ac_t""no" 1>&6
3864fi
3865
3866echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3867echo "configure:3868: checking for ANSI C header files" >&5
3868if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3870else
3871 cat > conftest.$ac_ext <<EOF
3872#include <sys/types.h>
3873#line 3874 "configure"
3874#include "confdefs.h"
3875#include <stdlib.h>
3876#include <stdarg.h>
3877#include <string.h>
3878#include <float.h>
3879EOF
3880ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3881{ (eval echo configure:3882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3882ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3883if test -z "$ac_err"; then
3884 rm -rf conftest*
3885 ac_cv_header_stdc=yes
3886else
3887 echo "$ac_err" >&5
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3890 rm -rf conftest*
3891 ac_cv_header_stdc=no
3892fi
3893rm -f conftest*
3894
3895if test $ac_cv_header_stdc = yes; then
3896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3897cat > conftest.$ac_ext <<EOF
3898#line 3899 "configure"
3899#include "confdefs.h"
3900#include <string.h>
3901EOF
3902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903 egrep "memchr" >/dev/null 2>&1; then
3904 :
3905else
3906 rm -rf conftest*
3907 ac_cv_header_stdc=no
3908fi
3909rm -f conftest*
3910
3911fi
3912
3913if test $ac_cv_header_stdc = yes; then
3914 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3915cat > conftest.$ac_ext <<EOF
3916#line 3917 "configure"
3917#include "confdefs.h"
3918#include <stdlib.h>
3919EOF
3920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3921 egrep "free" >/dev/null 2>&1; then
3922 :
3923else
3924 rm -rf conftest*
3925 ac_cv_header_stdc=no
3926fi
3927rm -f conftest*
3928
3929fi
3930
3931if test $ac_cv_header_stdc = yes; then
3932 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3933if test "$cross_compiling" = yes; then
3934 :
3935else
3936 cat > conftest.$ac_ext <<EOF
3937#line 3938 "configure"
3938#include "confdefs.h"
3939#include <ctype.h>
3940#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3941#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3942#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3943int main () { int i; for (i = 0; i < 256; i++)
3944if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3945exit (0); }
3946
3947EOF
3948if { (eval echo configure:3949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3949then
3950 :
3951else
3952 echo "configure: failed program was:" >&5
3953 cat conftest.$ac_ext >&5
3954 rm -fr conftest*
3955 ac_cv_header_stdc=no
3956fi
3957rm -fr conftest*
3958fi
3959
3960fi
3961fi
3962
3963echo "$ac_t""$ac_cv_header_stdc" 1>&6
3964if test $ac_cv_header_stdc = yes; then
3965 cat >> confdefs.h <<\EOF
3966#define STDC_HEADERS 1
3967EOF
3968
3969fi
3970
3971echo $ac_n "checking for working const""... $ac_c" 1>&6
3972echo "configure:3973: checking for working const" >&5
3973if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3975else
3976 cat > conftest.$ac_ext <<EOF
3977#line 3978 "configure"
3978#include "confdefs.h"
3979
3980int main() {
3981
3982/* Ultrix mips cc rejects this. */
3983typedef int charset[2]; const charset x;
3984/* SunOS 4.1.1 cc rejects this. */
3985char const *const *ccp;
3986char **p;
3987/* NEC SVR4.0.2 mips cc rejects this. */
3988struct point {int x, y;};
3989static struct point const zero = {0,0};
3990/* AIX XL C 1.02.0.0 rejects this.
3991 It does not let you subtract one const X* pointer from another in an arm
3992 of an if-expression whose if-part is not a constant expression */
3993const char *g = "string";
3994ccp = &g + (g ? g-g : 0);
3995/* HPUX 7.0 cc rejects these. */
3996++ccp;
3997p = (char**) ccp;
3998ccp = (char const *const *) p;
3999{ /* SCO 3.2v4 cc rejects this. */
4000 char *t;
4001 char const *s = 0 ? (char *) 0 : (char const *) 0;
4002
4003 *t++ = 0;
4004}
4005{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4006 int x[] = {25, 17};
4007 const int *foo = &x[0];
4008 ++foo;
4009}
4010{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4011 typedef const int *iptr;
4012 iptr p = 0;
4013 ++p;
4014}
4015{ /* AIX XL C 1.02.0.0 rejects this saying
4016 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4017 struct s { int j; const int *ap[3]; };
4018 struct s *b; b->j = 5;
4019}
4020{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4021 const int foo = 10;
4022}
4023
4024; return 0; }
4025EOF
4026if { (eval echo configure:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4027 rm -rf conftest*
4028 ac_cv_c_const=yes
4029else
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4032 rm -rf conftest*
4033 ac_cv_c_const=no
4034fi
4035rm -f conftest*
4036fi
4037
4038echo "$ac_t""$ac_cv_c_const" 1>&6
4039if test $ac_cv_c_const = no; then
4040 cat >> confdefs.h <<\EOF
4041#define const
4042EOF
4043
4044fi
4045
4046echo $ac_n "checking for inline""... $ac_c" 1>&6
4047echo "configure:4048: checking for inline" >&5
4048if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4050else
4051 ac_cv_c_inline=no
4052for ac_kw in inline __inline__ __inline; do
4053 cat > conftest.$ac_ext <<EOF
4054#line 4055 "configure"
4055#include "confdefs.h"
4056
4057int main() {
4058} $ac_kw foo() {
4059; return 0; }
4060EOF
4061if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4062 rm -rf conftest*
4063 ac_cv_c_inline=$ac_kw; break
4064else
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067fi
4068rm -f conftest*
4069done
4070
4071fi
4072
4073echo "$ac_t""$ac_cv_c_inline" 1>&6
4074case "$ac_cv_c_inline" in
4075 inline | yes) ;;
4076 no) cat >> confdefs.h <<\EOF
4077#define inline
4078EOF
4079 ;;
4080 *) cat >> confdefs.h <<EOF
4081#define inline $ac_cv_c_inline
4082EOF
4083 ;;
4084esac
4085
4086echo $ac_n "checking for off_t""... $ac_c" 1>&6
4087echo "configure:4088: checking for off_t" >&5
4088if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4090else
4091 cat > conftest.$ac_ext <<EOF
4092#line 4093 "configure"
4093#include "confdefs.h"
4094#include <sys/types.h>
4095#if STDC_HEADERS
4096#include <stdlib.h>
4097#include <stddef.h>
4098#endif
4099EOF
4100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4101 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4102 rm -rf conftest*
4103 ac_cv_type_off_t=yes
4104else
4105 rm -rf conftest*
4106 ac_cv_type_off_t=no
4107fi
4108rm -f conftest*
4109
4110fi
4111echo "$ac_t""$ac_cv_type_off_t" 1>&6
4112if test $ac_cv_type_off_t = no; then
4113 cat >> confdefs.h <<\EOF
4114#define off_t long
4115EOF
4116
4117fi
4118
4119echo $ac_n "checking for size_t""... $ac_c" 1>&6
4120echo "configure:4121: checking for size_t" >&5
4121if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4123else
4124 cat > conftest.$ac_ext <<EOF
4125#line 4126 "configure"
4126#include "confdefs.h"
4127#include <sys/types.h>
4128#if STDC_HEADERS
4129#include <stdlib.h>
4130#include <stddef.h>
4131#endif
4132EOF
4133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4134 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4135 rm -rf conftest*
4136 ac_cv_type_size_t=yes
4137else
4138 rm -rf conftest*
4139 ac_cv_type_size_t=no
4140fi
4141rm -f conftest*
4142
4143fi
4144echo "$ac_t""$ac_cv_type_size_t" 1>&6
4145if test $ac_cv_type_size_t = no; then
4146 cat >> confdefs.h <<\EOF
4147#define size_t unsigned
4148EOF
4149
4150fi
4151
4152# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4153# for constant arguments. Useless!
4154echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4155echo "configure:4156: checking for working alloca.h" >&5
4156if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4157 echo $ac_n "(cached) $ac_c" 1>&6
4158else
4159 cat > conftest.$ac_ext <<EOF
4160#line 4161 "configure"
4161#include "confdefs.h"
4162#include <alloca.h>
4163int main() {
4164char *p = alloca(2 * sizeof(int));
4165; return 0; }
4166EOF
4167if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4168 rm -rf conftest*
4169 ac_cv_header_alloca_h=yes
4170else
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4173 rm -rf conftest*
4174 ac_cv_header_alloca_h=no
4175fi
4176rm -f conftest*
4177fi
4178
4179echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4180if test $ac_cv_header_alloca_h = yes; then
4181 cat >> confdefs.h <<\EOF
4182#define HAVE_ALLOCA_H 1
4183EOF
4184
4185fi
4186
4187echo $ac_n "checking for alloca""... $ac_c" 1>&6
4188echo "configure:4189: checking for alloca" >&5
4189if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4191else
4192 cat > conftest.$ac_ext <<EOF
4193#line 4194 "configure"
4194#include "confdefs.h"
4195
4196#ifdef __GNUC__
4197# define alloca __builtin_alloca
4198#else
4199# ifdef _MSC_VER
4200# include <malloc.h>
4201# define alloca _alloca
4202# else
4203# if HAVE_ALLOCA_H
4204# include <alloca.h>
4205# else
4206# ifdef _AIX
4207 #pragma alloca
4208# else
4209# ifndef alloca /* predefined by HP cc +Olibcalls */
4210char *alloca ();
4211# endif
4212# endif
4213# endif
4214# endif
4215#endif
4216
4217int main() {
4218char *p = (char *) alloca(1);
4219; return 0; }
4220EOF
4221if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4222 rm -rf conftest*
4223 ac_cv_func_alloca_works=yes
4224else
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4227 rm -rf conftest*
4228 ac_cv_func_alloca_works=no
4229fi
4230rm -f conftest*
4231fi
4232
4233echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4234if test $ac_cv_func_alloca_works = yes; then
4235 cat >> confdefs.h <<\EOF
4236#define HAVE_ALLOCA 1
4237EOF
4238
4239fi
4240
4241if test $ac_cv_func_alloca_works = no; then
4242 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4243 # that cause trouble. Some versions do not even contain alloca or
4244 # contain a buggy version. If you still want to use their alloca,
4245 # use ar to extract alloca.o from them instead of compiling alloca.c.
4246 ALLOCA=alloca.${ac_objext}
4247 cat >> confdefs.h <<\EOF
4248#define C_ALLOCA 1
4249EOF
4250
4251
4252echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4253echo "configure:4254: checking whether alloca needs Cray hooks" >&5
4254if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4255 echo $ac_n "(cached) $ac_c" 1>&6
4256else
4257 cat > conftest.$ac_ext <<EOF
4258#line 4259 "configure"
4259#include "confdefs.h"
4260#if defined(CRAY) && ! defined(CRAY2)
4261webecray
4262#else
4263wenotbecray
4264#endif
4265
4266EOF
4267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268 egrep "webecray" >/dev/null 2>&1; then
4269 rm -rf conftest*
4270 ac_cv_os_cray=yes
4271else
4272 rm -rf conftest*
4273 ac_cv_os_cray=no
4274fi
4275rm -f conftest*
4276
4277fi
4278
4279echo "$ac_t""$ac_cv_os_cray" 1>&6
4280if test $ac_cv_os_cray = yes; then
4281for ac_func in _getb67 GETB67 getb67; do
4282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4283echo "configure:4284: checking for $ac_func" >&5
4284if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4286else
4287 cat > conftest.$ac_ext <<EOF
4288#line 4289 "configure"
4289#include "confdefs.h"
4290/* System header to define __stub macros and hopefully few prototypes,
4291 which can conflict with char $ac_func(); below. */
4292#include <assert.h>
4293/* Override any gcc2 internal prototype to avoid an error. */
4294/* We use char because int might match the return type of a gcc2
4295 builtin and then its argument prototype would still apply. */
4296char $ac_func();
4297
4298int main() {
4299
4300/* The GNU C library defines this for functions which it implements
4301 to always fail with ENOSYS. Some functions are actually named
4302 something starting with __ and the normal name is an alias. */
4303#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4304choke me
4305#else
4306$ac_func();
4307#endif
4308
4309; return 0; }
4310EOF
4311if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4312 rm -rf conftest*
4313 eval "ac_cv_func_$ac_func=yes"
4314else
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4317 rm -rf conftest*
4318 eval "ac_cv_func_$ac_func=no"
4319fi
4320rm -f conftest*
4321fi
4322
4323if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4324 echo "$ac_t""yes" 1>&6
4325 cat >> confdefs.h <<EOF
4326#define CRAY_STACKSEG_END $ac_func
4327EOF
4328
4329 break
4330else
4331 echo "$ac_t""no" 1>&6
4332fi
4333
4334done
4335fi
4336
4337echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4338echo "configure:4339: checking stack direction for C alloca" >&5
4339if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4340 echo $ac_n "(cached) $ac_c" 1>&6
4341else
4342 if test "$cross_compiling" = yes; then
4343 ac_cv_c_stack_direction=0
4344else
4345 cat > conftest.$ac_ext <<EOF
4346#line 4347 "configure"
4347#include "confdefs.h"
4348find_stack_direction ()
4349{
4350 static char *addr = 0;
4351 auto char dummy;
4352 if (addr == 0)
4353 {
4354 addr = &dummy;
4355 return find_stack_direction ();
4356 }
4357 else
4358 return (&dummy > addr) ? 1 : -1;
4359}
4360main ()
4361{
4362 exit (find_stack_direction() < 0);
4363}
4364EOF
4365if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4366then
4367 ac_cv_c_stack_direction=1
4368else
4369 echo "configure: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4371 rm -fr conftest*
4372 ac_cv_c_stack_direction=-1
4373fi
4374rm -fr conftest*
4375fi
4376
4377fi
4378
4379echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4380cat >> confdefs.h <<EOF
4381#define STACK_DIRECTION $ac_cv_c_stack_direction
4382EOF
4383
4384fi
4385
4386for ac_hdr in unistd.h
4387do
4388ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4389echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4390echo "configure:4391: checking for $ac_hdr" >&5
4391if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4393else
4394 cat > conftest.$ac_ext <<EOF
4395#include <sys/types.h>
4396#line 4397 "configure"
4397#include "confdefs.h"
4398#include <$ac_hdr>
4399EOF
4400ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4401{ (eval echo configure:4402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4402ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4403if test -z "$ac_err"; then
4404 rm -rf conftest*
4405 eval "ac_cv_header_$ac_safe=yes"
4406else
4407 echo "$ac_err" >&5
4408 echo "configure: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4410 rm -rf conftest*
4411 eval "ac_cv_header_$ac_safe=no"
4412fi
4413rm -f conftest*
4414fi
4415if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4416 echo "$ac_t""yes" 1>&6
4417 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4418 cat >> confdefs.h <<EOF
4419#define $ac_tr_hdr 1
4420EOF
4421
4422else
4423 echo "$ac_t""no" 1>&6
4424fi
4425done
4426
4427for ac_func in getpagesize
4428do
4429echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4430echo "configure:4431: checking for $ac_func" >&5
4431if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4433else
4434 cat > conftest.$ac_ext <<EOF
4435#line 4436 "configure"
4436#include "confdefs.h"
4437/* System header to define __stub macros and hopefully few prototypes,
4438 which can conflict with char $ac_func(); below. */
4439#include <assert.h>
4440/* Override any gcc2 internal prototype to avoid an error. */
4441/* We use char because int might match the return type of a gcc2
4442 builtin and then its argument prototype would still apply. */
4443char $ac_func();
4444
4445int main() {
4446
4447/* The GNU C library defines this for functions which it implements
4448 to always fail with ENOSYS. Some functions are actually named
4449 something starting with __ and the normal name is an alias. */
4450#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4451choke me
4452#else
4453$ac_func();
4454#endif
4455
4456; return 0; }
4457EOF
4458if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4459 rm -rf conftest*
4460 eval "ac_cv_func_$ac_func=yes"
4461else
4462 echo "configure: failed program was:" >&5
4463 cat conftest.$ac_ext >&5
4464 rm -rf conftest*
4465 eval "ac_cv_func_$ac_func=no"
4466fi
4467rm -f conftest*
4468fi
4469
4470if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4471 echo "$ac_t""yes" 1>&6
4472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4473 cat >> confdefs.h <<EOF
4474#define $ac_tr_func 1
4475EOF
4476
4477else
4478 echo "$ac_t""no" 1>&6
4479fi
4480done
4481
4482echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4483echo "configure:4484: checking for working mmap" >&5
4484if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4486else
4487 if test "$cross_compiling" = yes; then
4488 ac_cv_func_mmap_fixed_mapped=no
4489else
4490 cat > conftest.$ac_ext <<EOF
4491#line 4492 "configure"
4492#include "confdefs.h"
4493
4494/* Thanks to Mike Haertel and Jim Avera for this test.
4495 Here is a matrix of mmap possibilities:
4496 mmap private not fixed
4497 mmap private fixed at somewhere currently unmapped
4498 mmap private fixed at somewhere already mapped
4499 mmap shared not fixed
4500 mmap shared fixed at somewhere currently unmapped
4501 mmap shared fixed at somewhere already mapped
4502 For private mappings, we should verify that changes cannot be read()
4503 back from the file, nor mmap's back from the file at a different
4504 address. (There have been systems where private was not correctly
4505 implemented like the infamous i386 svr4.0, and systems where the
4506 VM page cache was not coherent with the filesystem buffer cache
4507 like early versions of FreeBSD and possibly contemporary NetBSD.)
4508 For shared mappings, we should conversely verify that changes get
4509 propogated back to all the places they're supposed to be.
4510
4511 Grep wants private fixed already mapped.
4512 The main things grep needs to know about mmap are:
4513 * does it exist and is it safe to write into the mmap'd area
4514 * how to use it (BSD variants) */
4515#include <sys/types.h>
4516#include <fcntl.h>
4517#include <sys/mman.h>
4518
4519/* This mess was copied from the GNU getpagesize.h. */
4520#ifndef HAVE_GETPAGESIZE
4521# ifdef HAVE_UNISTD_H
4522# include <unistd.h>
4523# endif
4524
4525/* Assume that all systems that can run configure have sys/param.h. */
4526# ifndef HAVE_SYS_PARAM_H
4527# define HAVE_SYS_PARAM_H 1
4528# endif
4529
4530# ifdef _SC_PAGESIZE
4531# define getpagesize() sysconf(_SC_PAGESIZE)
4532# else /* no _SC_PAGESIZE */
4533# ifdef HAVE_SYS_PARAM_H
4534# include <sys/param.h>
4535# ifdef EXEC_PAGESIZE
4536# define getpagesize() EXEC_PAGESIZE
4537# else /* no EXEC_PAGESIZE */
4538# ifdef NBPG
4539# define getpagesize() NBPG * CLSIZE
4540# ifndef CLSIZE
4541# define CLSIZE 1
4542# endif /* no CLSIZE */
4543# else /* no NBPG */
4544# ifdef NBPC
4545# define getpagesize() NBPC
4546# else /* no NBPC */
4547# ifdef PAGESIZE
4548# define getpagesize() PAGESIZE
4549# endif /* PAGESIZE */
4550# endif /* no NBPC */
4551# endif /* no NBPG */
4552# endif /* no EXEC_PAGESIZE */
4553# else /* no HAVE_SYS_PARAM_H */
4554# define getpagesize() 8192 /* punt totally */
4555# endif /* no HAVE_SYS_PARAM_H */
4556# endif /* no _SC_PAGESIZE */
4557
4558#endif /* no HAVE_GETPAGESIZE */
4559
4560#ifdef __cplusplus
4561extern "C" { void *malloc(unsigned); }
4562#else
4563char *malloc();
4564#endif
4565
4566int
4567main()
4568{
4569 char *data, *data2, *data3;
4570 int i, pagesize;
4571 int fd;
4572
4573 pagesize = getpagesize();
4574
4575 /*
4576 * First, make a file with some known garbage in it.
4577 */
4578 data = malloc(pagesize);
4579 if (!data)
4580 exit(1);
4581 for (i = 0; i < pagesize; ++i)
4582 *(data + i) = rand();
4583 umask(0);
4584 fd = creat("conftestmmap", 0600);
4585 if (fd < 0)
4586 exit(1);
4587 if (write(fd, data, pagesize) != pagesize)
4588 exit(1);
4589 close(fd);
4590
4591 /*
4592 * Next, try to mmap the file at a fixed address which
4593 * already has something else allocated at it. If we can,
4594 * also make sure that we see the same garbage.
4595 */
4596 fd = open("conftestmmap", O_RDWR);
4597 if (fd < 0)
4598 exit(1);
4599 data2 = malloc(2 * pagesize);
4600 if (!data2)
4601 exit(1);
4602 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4603 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4604 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4605 exit(1);
4606 for (i = 0; i < pagesize; ++i)
4607 if (*(data + i) != *(data2 + i))
4608 exit(1);
4609
4610 /*
4611 * Finally, make sure that changes to the mapped area
4612 * do not percolate back to the file as seen by read().
4613 * (This is a bug on some variants of i386 svr4.0.)
4614 */
4615 for (i = 0; i < pagesize; ++i)
4616 *(data2 + i) = *(data2 + i) + 1;
4617 data3 = malloc(pagesize);
4618 if (!data3)
4619 exit(1);
4620 if (read(fd, data3, pagesize) != pagesize)
4621 exit(1);
4622 for (i = 0; i < pagesize; ++i)
4623 if (*(data + i) != *(data3 + i))
4624 exit(1);
4625 close(fd);
4626 unlink("conftestmmap");
4627 exit(0);
4628}
4629
4630EOF
4631if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4632then
4633 ac_cv_func_mmap_fixed_mapped=yes
4634else
4635 echo "configure: failed program was:" >&5
4636 cat conftest.$ac_ext >&5
4637 rm -fr conftest*
4638 ac_cv_func_mmap_fixed_mapped=no
4639fi
4640rm -fr conftest*
4641fi
4642
4643fi
4644
4645echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4646if test $ac_cv_func_mmap_fixed_mapped = yes; then
4647 cat >> confdefs.h <<\EOF
4648#define HAVE_MMAP 1
4649EOF
4650
4651fi
4652
4653
4654 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4655unistd.h values.h sys/param.h
4656do
4657ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4658echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4659echo "configure:4660: checking for $ac_hdr" >&5
4660if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6
4662else
4663 cat > conftest.$ac_ext <<EOF
4664#include <sys/types.h>
4665#line 4666 "configure"
4666#include "confdefs.h"
4667#include <$ac_hdr>
4668EOF
4669ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4670{ (eval echo configure:4671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4671ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4672if test -z "$ac_err"; then
4673 rm -rf conftest*
4674 eval "ac_cv_header_$ac_safe=yes"
4675else
4676 echo "$ac_err" >&5
4677 echo "configure: failed program was:" >&5
4678 cat conftest.$ac_ext >&5
4679 rm -rf conftest*
4680 eval "ac_cv_header_$ac_safe=no"
4681fi
4682rm -f conftest*
4683fi
4684if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4685 echo "$ac_t""yes" 1>&6
4686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4687 cat >> confdefs.h <<EOF
4688#define $ac_tr_hdr 1
4689EOF
4690
4691else
4692 echo "$ac_t""no" 1>&6
4693fi
4694done
4695
4696 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4697__argz_count __argz_stringify __argz_next
4698do
4699echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4700echo "configure:4701: checking for $ac_func" >&5
4701if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4702 echo $ac_n "(cached) $ac_c" 1>&6
4703else
4704 cat > conftest.$ac_ext <<EOF
4705#line 4706 "configure"
4706#include "confdefs.h"
4707/* System header to define __stub macros and hopefully few prototypes,
4708 which can conflict with char $ac_func(); below. */
4709#include <assert.h>
4710/* Override any gcc2 internal prototype to avoid an error. */
4711/* We use char because int might match the return type of a gcc2
4712 builtin and then its argument prototype would still apply. */
4713char $ac_func();
4714
4715int main() {
4716
4717/* The GNU C library defines this for functions which it implements
4718 to always fail with ENOSYS. Some functions are actually named
4719 something starting with __ and the normal name is an alias. */
4720#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4721choke me
4722#else
4723$ac_func();
4724#endif
4725
4726; return 0; }
4727EOF
4728if { (eval echo configure:4729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4729 rm -rf conftest*
4730 eval "ac_cv_func_$ac_func=yes"
4731else
4732 echo "configure: failed program was:" >&5
4733 cat conftest.$ac_ext >&5
4734 rm -rf conftest*
4735 eval "ac_cv_func_$ac_func=no"
4736fi
4737rm -f conftest*
4738fi
4739
4740if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4741 echo "$ac_t""yes" 1>&6
4742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4743 cat >> confdefs.h <<EOF
4744#define $ac_tr_func 1
4745EOF
4746
4747else
4748 echo "$ac_t""no" 1>&6
4749fi
4750done
4751
4752
4753 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4754 for ac_func in stpcpy
4755do
4756echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4757echo "configure:4758: checking for $ac_func" >&5
4758if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4760else
4761 cat > conftest.$ac_ext <<EOF
4762#line 4763 "configure"
4763#include "confdefs.h"
4764/* System header to define __stub macros and hopefully few prototypes,
4765 which can conflict with char $ac_func(); below. */
4766#include <assert.h>
4767/* Override any gcc2 internal prototype to avoid an error. */
4768/* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4770char $ac_func();
4771
4772int main() {
4773
4774/* The GNU C library defines this for functions which it implements
4775 to always fail with ENOSYS. Some functions are actually named
4776 something starting with __ and the normal name is an alias. */
4777#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4778choke me
4779#else
4780$ac_func();
4781#endif
4782
4783; return 0; }
4784EOF
4785if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4786 rm -rf conftest*
4787 eval "ac_cv_func_$ac_func=yes"
4788else
4789 echo "configure: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4791 rm -rf conftest*
4792 eval "ac_cv_func_$ac_func=no"
4793fi
4794rm -f conftest*
4795fi
4796
4797if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4800 cat >> confdefs.h <<EOF
4801#define $ac_tr_func 1
4802EOF
4803
4804else
4805 echo "$ac_t""no" 1>&6
4806fi
4807done
4808
4809 fi
4810 if test "${ac_cv_func_stpcpy}" = "yes"; then
4811 cat >> confdefs.h <<\EOF
4812#define HAVE_STPCPY 1
4813EOF
4814
4815 fi
4816
4817 if test $ac_cv_header_locale_h = yes; then
4818 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4819echo "configure:4820: checking for LC_MESSAGES" >&5
4820if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4822else
4823 cat > conftest.$ac_ext <<EOF
4824#line 4825 "configure"
4825#include "confdefs.h"
4826#include <locale.h>
4827int main() {
4828return LC_MESSAGES
4829; return 0; }
4830EOF
4831if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4832 rm -rf conftest*
4833 am_cv_val_LC_MESSAGES=yes
4834else
4835 echo "configure: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4837 rm -rf conftest*
4838 am_cv_val_LC_MESSAGES=no
4839fi
4840rm -f conftest*
4841fi
4842
4843echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4844 if test $am_cv_val_LC_MESSAGES = yes; then
4845 cat >> confdefs.h <<\EOF
4846#define HAVE_LC_MESSAGES 1
4847EOF
4848
4849 fi
4850 fi
4851 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4852echo "configure:4853: checking whether NLS is requested" >&5
4853 # Check whether --enable-nls or --disable-nls was given.
4854if test "${enable_nls+set}" = set; then
4855 enableval="$enable_nls"
4856 USE_NLS=$enableval
4857else
4858 USE_NLS=yes
4859fi
4860
4861 echo "$ac_t""$USE_NLS" 1>&6
4862
4863
4864 USE_INCLUDED_LIBINTL=no
4865
4866 if test "$USE_NLS" = "yes"; then
4867 cat >> confdefs.h <<\EOF
4868#define ENABLE_NLS 1
4869EOF
4870
4871 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4872echo "configure:4873: checking whether included gettext is requested" >&5
4873 # Check whether --with-included-gettext or --without-included-gettext was given.
4874if test "${with_included_gettext+set}" = set; then
4875 withval="$with_included_gettext"
4876 nls_cv_force_use_gnu_gettext=$withval
4877else
4878 nls_cv_force_use_gnu_gettext=no
4879fi
4880
4881 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4882
4883 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4884 echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext" >&5
4885 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4886 nls_cv_header_intl=
4887 nls_cv_header_libgt=
4888 CATOBJEXT=NONE
4889
4890 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4891echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4892echo "configure:4893: checking for libintl.h" >&5
4893if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4894 echo $ac_n "(cached) $ac_c" 1>&6
4895else
4896 cat > conftest.$ac_ext <<EOF
4897#include <sys/types.h>
4898#line 4899 "configure"
4899#include "confdefs.h"
4900#include <libintl.h>
4901EOF
4902ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4903{ (eval echo configure:4904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4904ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4905if test -z "$ac_err"; then
4906 rm -rf conftest*
4907 eval "ac_cv_header_$ac_safe=yes"
4908else
4909 echo "$ac_err" >&5
4910 echo "configure: failed program was:" >&5
4911 cat conftest.$ac_ext >&5
4912 rm -rf conftest*
4913 eval "ac_cv_header_$ac_safe=no"
4914fi
4915rm -f conftest*
4916fi
4917if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4918 echo "$ac_t""yes" 1>&6
4919 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4920echo "configure:4921: checking for gettext in libc" >&5
4921if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4923else
4924 cat > conftest.$ac_ext <<EOF
4925#line 4926 "configure"
4926#include "confdefs.h"
4927#include <libintl.h>
4928int main() {
4929return (int) gettext ("")
4930; return 0; }
4931EOF
4932if { (eval echo configure:4933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4933 rm -rf conftest*
4934 gt_cv_func_gettext_libc=yes
4935else
4936 echo "configure: failed program was:" >&5
4937 cat conftest.$ac_ext >&5
4938 rm -rf conftest*
4939 gt_cv_func_gettext_libc=no
4940fi
4941rm -f conftest*
4942fi
4943
4944echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4945
4946 if test "$gt_cv_func_gettext_libc" != "yes"; then
4947 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4948echo "configure:4949: checking for bindtextdomain in -lintl" >&5
4949ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4950if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4952else
4953 ac_save_LIBS="$LIBS"
4954LIBS="-lintl $LIBS"
4955cat > conftest.$ac_ext <<EOF
4956#line 4957 "configure"
4957#include "confdefs.h"
4958/* Override any gcc2 internal prototype to avoid an error. */
4959/* We use char because int might match the return type of a gcc2
4960 builtin and then its argument prototype would still apply. */
4961char bindtextdomain();
4962
4963int main() {
4964bindtextdomain()
4965; return 0; }
4966EOF
4967if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4968 rm -rf conftest*
4969 eval "ac_cv_lib_$ac_lib_var=yes"
4970else
4971 echo "configure: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4973 rm -rf conftest*
4974 eval "ac_cv_lib_$ac_lib_var=no"
4975fi
4976rm -f conftest*
4977LIBS="$ac_save_LIBS"
4978
4979fi
4980if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4981 echo "$ac_t""yes" 1>&6
4982 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4983echo "configure:4984: checking for gettext in libintl" >&5
4984if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4986else
4987 ac_save_LIBS="$LIBS"; LIBS="-lintl $LIBS";
4988 cat > conftest.$ac_ext <<EOF
4989#line 4990 "configure"
4990#include "confdefs.h"
4991#include <libintl.h>
4992int main() {
4993return (int) gettext ("")
4994; return 0; }
4995EOF
4996if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4997 rm -rf conftest*
4998 gt_cv_func_gettext_libintl=yes
4999else
5000 echo "configure: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5002 rm -rf conftest*
5003 gt_cv_func_gettext_libintl=no
5004fi
5005rm -f conftest*
5006 LIBS="$ac_save_LIBS";
5007fi
5008
5009echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
5010else
5011 echo "$ac_t""no" 1>&6
5012fi
5013
5014 fi
5015
5016 if test "$gt_cv_func_gettext_libc" = "yes" \
5017 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5018 cat >> confdefs.h <<\EOF
5019#define HAVE_GETTEXT 1
5020EOF
5021
5022 # Extract the first word of "msgfmt", so it can be a program name with args.
5023set dummy msgfmt; ac_word=$2
5024echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5025echo "configure:5026: checking for $ac_word" >&5
5026if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
5027 echo $ac_n "(cached) $ac_c" 1>&6
5028else
5029 case "$MSGFMT" in
5030 [/\\]*|[a-zA-Z]:*)
5031 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5032 ;;
5033 *)
5034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
5035 for ac_dir in $PATH; do
5036 test -z "$ac_dir" && ac_dir=.
5037 if test -f $ac_dir/$ac_word; then
5038 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5039 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5040 break
5041 fi
5042 fi
5043 ac_word_saved="$ac_word"
5044 ac_word=$ac_word$ac_cv_exeext
5045 if test -f $ac_dir/$ac_word; then
5046 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5047 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5048 break
5049 fi
5050 fi
5051 ac_word="$ac_word_saved"
5052 done
5053 IFS="$ac_save_ifs"
5054 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5055 ;;
5056esac
5057fi
5058MSGFMT="$ac_cv_path_MSGFMT"
5059if test -n "$MSGFMT"; then
5060 echo "$ac_t""$MSGFMT" 1>&6
5061else
5062 echo "$ac_t""no" 1>&6
5063fi
5064 if test "$MSGFMT" != "no"; then
5065 for ac_func in dcgettext
5066do
5067echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5068echo "configure:5069: checking for $ac_func" >&5
5069if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5071else
5072 cat > conftest.$ac_ext <<EOF
5073#line 5074 "configure"
5074#include "confdefs.h"
5075/* System header to define __stub macros and hopefully few prototypes,
5076 which can conflict with char $ac_func(); below. */
5077#include <assert.h>
5078/* Override any gcc2 internal prototype to avoid an error. */
5079/* We use char because int might match the return type of a gcc2
5080 builtin and then its argument prototype would still apply. */
5081char $ac_func();
5082
5083int main() {
5084
5085/* The GNU C library defines this for functions which it implements
5086 to always fail with ENOSYS. Some functions are actually named
5087 something starting with __ and the normal name is an alias. */
5088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5089choke me
5090#else
5091$ac_func();
5092#endif
5093
5094; return 0; }
5095EOF
5096if { (eval echo configure:5097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5097 rm -rf conftest*
5098 eval "ac_cv_func_$ac_func=yes"
5099else
5100 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5102 rm -rf conftest*
5103 eval "ac_cv_func_$ac_func=no"
5104fi
5105rm -f conftest*
5106fi
5107
5108if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5109 echo "$ac_t""yes" 1>&6
5110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5111 cat >> confdefs.h <<EOF
5112#define $ac_tr_func 1
5113EOF
5114
5115else
5116 echo "$ac_t""no" 1>&6
5117fi
5118done
5119
5120 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5121set dummy gmsgfmt; ac_word=$2
5122echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5123echo "configure:5124: checking for $ac_word" >&5
5124if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
5125 echo $ac_n "(cached) $ac_c" 1>&6
5126else
5127 case "$GMSGFMT" in
5128 [/\\]* | [a-zA-Z]:*)
5129 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5130 ;;
5131 ?:/*)
5132 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5133 ;;
5134 *)
5135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
5136 ac_dummy="$PATH"
5137 for ac_dir in $ac_dummy; do
5138 test -z "$ac_dir" && ac_dir=.
5139 if test -f $ac_dir/$ac_word; then
5140 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
5141 break
5142 fi
5143 if test -f $ac_dir/$ac_word$ac_exeext; then
5144 ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
5145 break
5146 fi
5147 done
5148 IFS="$ac_save_ifs"
5149 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5150 ;;
5151esac
5152fi
5153GMSGFMT="$ac_cv_path_GMSGFMT"
5154if test -n "$GMSGFMT"; then
5155 echo "$ac_t""$GMSGFMT" 1>&6
5156else
5157 echo "$ac_t""no" 1>&6
5158fi
5159
5160 # Extract the first word of "xgettext", so it can be a program name with args.
5161set dummy xgettext; ac_word=$2
5162echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5163echo "configure:5164: checking for $ac_word" >&5
5164if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5166else
5167 case "$XGETTEXT" in
5168 [/\\]*|[a-zA-Z]:*)
5169 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5170 ;;
5171 *)
5172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
5173 for ac_dir in $PATH; do
5174 test -z "$ac_dir" && ac_dir=.
5175 if test -f $ac_dir/$ac_word; then
5176 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5177 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5178 break
5179 fi
5180 fi
5181 ac_word_saved="$ac_word"
5182 ac_word=$ac_word$ac_cv_exeext
5183 if test -f $ac_dir/$ac_word; then
5184 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5185 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5186 break
5187 fi
5188 fi
5189 ac_word="$ac_word_saved"
5190 done
5191 IFS="$ac_save_ifs"
5192 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5193 ;;
5194esac
5195fi
5196XGETTEXT="$ac_cv_path_XGETTEXT"
5197if test -n "$XGETTEXT"; then
5198 echo "$ac_t""$XGETTEXT" 1>&6
5199else
5200 echo "$ac_t""no" 1>&6
5201fi
5202
5203
5204 cat > conftest.$ac_ext <<EOF
5205#line 5206 "configure"
5206#include "confdefs.h"
5207
5208int main() {
5209extern int _nl_msg_cat_cntr;
5210 return _nl_msg_cat_cntr
5211; return 0; }
5212EOF
5213if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5214 rm -rf conftest*
5215 CATOBJEXT=.gmo
5216 DATADIRNAME=share
5217else
5218 echo "configure: failed program was:" >&5
5219 cat conftest.$ac_ext >&5
5220 rm -rf conftest*
5221 CATOBJEXT=.mo
5222 DATADIRNAME=lib
5223fi
5224rm -f conftest*
5225 INSTOBJEXT=.mo
5226 fi
5227 fi
5228
5229else
5230 echo "$ac_t""no" 1>&6
5231fi
5232
5233
5234
5235 if test "$CATOBJEXT" = "NONE"; then
5236 nls_cv_use_gnu_gettext=yes
5237 echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext fallback" >&5
5238 fi
5239 fi
5240
5241 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5242 INTLOBJS="\$(GETTOBJS)"
5243 # Extract the first word of "msgfmt", so it can be a program name with args.
5244set dummy msgfmt; ac_word=$2
5245echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5246echo "configure:5247: checking for $ac_word" >&5
5247if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5249else
5250 case "$MSGFMT" in
5251 [/\\]*|[a-zA-Z]:*)
5252 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5253 ;;
5254 *)
5255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
5256 for ac_dir in $PATH; do
5257 test -z "$ac_dir" && ac_dir=.
5258 if test -f $ac_dir/$ac_word; then
5259 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5260 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5261 break
5262 fi
5263 fi
5264 ac_word_saved="$ac_word"
5265 ac_word=$ac_word$ac_cv_exeext
5266 if test -f $ac_dir/$ac_word; then
5267 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5268 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5269 break
5270 fi
5271 fi
5272 ac_word="$ac_word_saved"
5273 done
5274 IFS="$ac_save_ifs"
5275 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5276 ;;
5277esac
5278fi
5279MSGFMT="$ac_cv_path_MSGFMT"
5280if test -n "$MSGFMT"; then
5281 echo "$ac_t""$MSGFMT" 1>&6
5282else
5283 echo "$ac_t""no" 1>&6
5284fi
5285
5286 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5287set dummy gmsgfmt; ac_word=$2
5288echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5289echo "configure:5290: checking for $ac_word" >&5
5290if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5292else
5293 case "$GMSGFMT" in
5294 [/\\]* | [a-zA-Z]:*)
5295 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5296 ;;
5297 ?:/*)
5298 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5299 ;;
5300 *)
5301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
5302 ac_dummy="$PATH"
5303 for ac_dir in $ac_dummy; do
5304 test -z "$ac_dir" && ac_dir=.
5305 if test -f $ac_dir/$ac_word; then
5306 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
5307 break
5308 fi
5309 if test -f $ac_dir/$ac_word$ac_exeext; then
5310 ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
5311 break
5312 fi
5313 done
5314 IFS="$ac_save_ifs"
5315 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5316 ;;
5317esac
5318fi
5319GMSGFMT="$ac_cv_path_GMSGFMT"
5320if test -n "$GMSGFMT"; then
5321 echo "$ac_t""$GMSGFMT" 1>&6
5322else
5323 echo "$ac_t""no" 1>&6
5324fi
5325
5326 # Extract the first word of "xgettext", so it can be a program name with args.
5327set dummy xgettext; ac_word=$2
5328echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5329echo "configure:5330: checking for $ac_word" >&5
5330if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5332else
5333 case "$XGETTEXT" in
5334 [/\\]*|[a-zA-Z]:*)
5335 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5336 ;;
5337 *)
5338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
5339 for ac_dir in $PATH; do
5340 test -z "$ac_dir" && ac_dir=.
5341 if test -f $ac_dir/$ac_word; then
5342 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5343 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5344 break
5345 fi
5346 fi
5347 ac_word_saved="$ac_word"
5348 ac_word=$ac_word$ac_cv_exeext
5349 if test -f $ac_dir/$ac_word; then
5350 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5351 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5352 break
5353 fi
5354 fi
5355 ac_word="$ac_word_saved"
5356 done
5357 IFS="$ac_save_ifs"
5358 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5359 ;;
5360esac
5361fi
5362XGETTEXT="$ac_cv_path_XGETTEXT"
5363if test -n "$XGETTEXT"; then
5364 echo "$ac_t""$XGETTEXT" 1>&6
5365else
5366 echo "$ac_t""no" 1>&6
5367fi
5368
5369
5370 USE_INCLUDED_LIBINTL=yes
5371 CATOBJEXT=.gmo
5372 INSTOBJEXT=.mo
5373 DATADIRNAME=share
5374 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5375 INTLLIBS=$INTLDEPS
5376 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5377 nls_cv_header_intl=libintl.h
5378 nls_cv_header_libgt=libgettext.h
5379 else
5380 echo "dbg: else: gt_cv_func_gettext_libintl" >&5
5381 if test "$gt_cv_func_gettext_libintl" = "yes"; then
5382 echo "dbg: updating LIBS" >&5
5383 LIBS="-lintl $LIBS"
5384 INTLLIBS="-lintl"
5385 fi
5386 fi
5387
5388 if test "$XGETTEXT" != ":"; then
5389 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5390 : ;
5391 else
5392 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
5393 XGETTEXT=":"
5394 fi
5395 fi
5396
5397 # We need to process the po/ directory.
5398 POSUB=po
5399 else
5400 DATADIRNAME=share
5401 nls_cv_header_intl=libintl.h
5402 nls_cv_header_libgt=libgettext.h
5403 fi
5404
5405 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5406 # because some of the sources are only built for this goal.
5407 if test "$PACKAGE" = gettext; then
5408 USE_NLS=yes
5409 USE_INCLUDED_LIBINTL=yes
5410 fi
5411
5412 for lang in $ALL_LINGUAS; do
5413 GMOFILES="$GMOFILES $lang.gmo"
5414 POFILES="$POFILES $lang.po"
5415 done
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430 if test "x$CATOBJEXT" != "x"; then
5431 if test "x$ALL_LINGUAS" = "x"; then
5432 LINGUAS=
5433 else
5434 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5435echo "configure:5436: checking for catalogs to be installed" >&5
5436 NEW_LINGUAS=
5437 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5438 case "$ALL_LINGUAS" in
5439 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5440 esac
5441 done
5442 LINGUAS=$NEW_LINGUAS
5443 echo "$ac_t""$LINGUAS" 1>&6
5444 fi
5445
5446 if test -n "$LINGUAS"; then
5447 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5448 fi
5449 fi
5450
5451 if test $ac_cv_header_locale_h = yes; then
5452 INCLUDE_LOCALE_H="#include <locale.h>"
5453 else
5454 INCLUDE_LOCALE_H="\
5455/* The system does not provide the header <locale.h>. Take care yourself. */"
5456 fi
5457
5458
5459 if test -f $srcdir/po2tbl.sed.in; then
5460 if test "$CATOBJEXT" = ".cat"; then
5461 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
5462echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
5463echo "configure:5464: checking for linux/version.h" >&5
5464if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5466else
5467 cat > conftest.$ac_ext <<EOF
5468#include <sys/types.h>
5469#line 5470 "configure"
5470#include "confdefs.h"
5471#include <linux/version.h>
5472EOF
5473ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5474{ (eval echo configure:5475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5475ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5476if test -z "$ac_err"; then
5477 rm -rf conftest*
5478 eval "ac_cv_header_$ac_safe=yes"
5479else
5480 echo "$ac_err" >&5
5481 echo "configure: failed program was:" >&5
5482 cat conftest.$ac_ext >&5
5483 rm -rf conftest*
5484 eval "ac_cv_header_$ac_safe=no"
5485fi
5486rm -f conftest*
5487fi
5488if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5489 echo "$ac_t""yes" 1>&6
5490 msgformat=linux
5491else
5492 echo "$ac_t""no" 1>&6
5493msgformat=xopen
5494fi
5495
5496
5497 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5498 fi
5499 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5500 $srcdir/po2tbl.sed.in > po2tbl.sed
5501 fi
5502
5503 if test "$PACKAGE" = "gettext"; then
5504 GT_NO="#NO#"
5505 GT_YES=
5506 else
5507 GT_NO=
5508 GT_YES="#YES#"
5509 fi
5510
5511
5512
5513 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5514
5515
5516 l=
5517
5518
5519 if test -f $srcdir/po/POTFILES.in; then
5520 test -d po || mkdir po
5521 if test "x$srcdir" != "x."; then
5522 if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
5523 posrcprefix="$srcdir/"
5524 else
5525 posrcprefix="../$srcdir/"
5526 fi
5527 else
5528 posrcprefix="../"
5529 fi
5530 rm -f po/POTFILES
5531 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5532 < $srcdir/po/POTFILES.in > po/POTFILES
5533 fi
5534
5535
5536echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
5537echo "configure:5538: checking whether to enable maintainer-specific portions of Makefiles" >&5
5538 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5539if test "${enable_maintainer_mode+set}" = set; then
5540 enableval="$enable_maintainer_mode"
5541 USE_MAINTAINER_MODE=$enableval
5542else
5543 USE_MAINTAINER_MODE=no
5544fi
5545
5546 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
5547
5548
5549if test $USE_MAINTAINER_MODE = yes; then
5550 MAINTAINER_MODE_TRUE=
5551 MAINTAINER_MODE_FALSE='#'
5552else
5553 MAINTAINER_MODE_TRUE='#'
5554 MAINTAINER_MODE_FALSE=
5555fi
5556 MAINT=$MAINTAINER_MODE_TRUE
5557
5558
5559
5560
5561
5562echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5563echo "configure:5564: checking for executable suffix" >&5
5564if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5565 echo $ac_n "(cached) $ac_c" 1>&6
5566else
5567 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
5568 ac_cv_exeext=.exe
5569else
5570 rm -f conftest*
5571 echo 'int main () { return 0; }' > conftest.$ac_ext
5572 ac_cv_exeext=
5573 if { (eval echo configure:5574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5574 for file in conftest.*; do
5575 case $file in
5576 *.c | *.o | *.obj) ;;
5577 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5578 esac
5579 done
5580 else
5581 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5582 fi
5583 rm -f conftest*
5584 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5585fi
5586fi
5587
5588EXEEXT=""
5589test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5590echo "$ac_t""${ac_cv_exeext}" 1>&6
5591ac_exeext=$EXEEXT
5592
5593
5594for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
5595do
5596ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5597echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5598echo "configure:5599: checking for $ac_hdr" >&5
5599if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5600 echo $ac_n "(cached) $ac_c" 1>&6
5601else
5602 cat > conftest.$ac_ext <<EOF
5603#include <sys/types.h>
5604#line 5605 "configure"
5605#include "confdefs.h"
5606#include <$ac_hdr>
5607EOF
5608ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5609{ (eval echo configure:5610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5610ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5611if test -z "$ac_err"; then
5612 rm -rf conftest*
5613 eval "ac_cv_header_$ac_safe=yes"
5614else
5615 echo "$ac_err" >&5
5616 echo "configure: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5618 rm -rf conftest*
5619 eval "ac_cv_header_$ac_safe=no"
5620fi
5621rm -f conftest*
5622fi
5623if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5624 echo "$ac_t""yes" 1>&6
5625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5626 cat >> confdefs.h <<EOF
5627#define $ac_tr_hdr 1
5628EOF
5629
5630else
5631 echo "$ac_t""no" 1>&6
5632fi
5633done
5634
5635
5636# Put this here so that autoconf's "cross-compiling" message doesn't confuse
5637# people who are not cross-compiling but are compiling cross-assemblers.
5638echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
5639echo "configure:5640: checking whether compiling a cross-assembler" >&5
5640if test "${host}" = "${target}"; then
5641 cross_gas=no
5642else
5643 cross_gas=yes
5644 cat >> confdefs.h <<\EOF
5645#define CROSS_COMPILE 1
5646EOF
5647
5648fi
5649echo "$ac_t""$cross_gas" 1>&6
5650
5651# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5652# for constant arguments. Useless!
5653echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5654echo "configure:5655: checking for working alloca.h" >&5
5655if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5657else
5658 cat > conftest.$ac_ext <<EOF
5659#line 5660 "configure"
5660#include "confdefs.h"
5661#include <alloca.h>
5662int main() {
5663char *p = alloca(2 * sizeof(int));
5664; return 0; }
5665EOF
5666if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5667 rm -rf conftest*
5668 ac_cv_header_alloca_h=yes
5669else
5670 echo "configure: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5672 rm -rf conftest*
5673 ac_cv_header_alloca_h=no
5674fi
5675rm -f conftest*
5676fi
5677
5678echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5679if test $ac_cv_header_alloca_h = yes; then
5680 cat >> confdefs.h <<\EOF
5681#define HAVE_ALLOCA_H 1
5682EOF
5683
5684fi
5685
5686echo $ac_n "checking for alloca""... $ac_c" 1>&6
5687echo "configure:5688: checking for alloca" >&5
5688if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5690else
5691 cat > conftest.$ac_ext <<EOF
5692#line 5693 "configure"
5693#include "confdefs.h"
5694
5695#ifdef __GNUC__
5696# define alloca __builtin_alloca
5697#else
5698# ifdef _MSC_VER
5699# include <malloc.h>
5700# define alloca _alloca
5701# else
5702# if HAVE_ALLOCA_H
5703# include <alloca.h>
5704# else
5705# ifdef _AIX
5706 #pragma alloca
5707# else
5708# ifndef alloca /* predefined by HP cc +Olibcalls */
5709char *alloca ();
5710# endif
5711# endif
5712# endif
5713# endif
5714#endif
5715
5716int main() {
5717char *p = (char *) alloca(1);
5718; return 0; }
5719EOF
5720if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5721 rm -rf conftest*
5722 ac_cv_func_alloca_works=yes
5723else
5724 echo "configure: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5726 rm -rf conftest*
5727 ac_cv_func_alloca_works=no
5728fi
5729rm -f conftest*
5730fi
5731
5732echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5733if test $ac_cv_func_alloca_works = yes; then
5734 cat >> confdefs.h <<\EOF
5735#define HAVE_ALLOCA 1
5736EOF
5737
5738fi
5739
5740if test $ac_cv_func_alloca_works = no; then
5741 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5742 # that cause trouble. Some versions do not even contain alloca or
5743 # contain a buggy version. If you still want to use their alloca,
5744 # use ar to extract alloca.o from them instead of compiling alloca.c.
5745 ALLOCA=alloca.${ac_objext}
5746 cat >> confdefs.h <<\EOF
5747#define C_ALLOCA 1
5748EOF
5749
5750
5751echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5752echo "configure:5753: checking whether alloca needs Cray hooks" >&5
5753if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5754 echo $ac_n "(cached) $ac_c" 1>&6
5755else
5756 cat > conftest.$ac_ext <<EOF
5757#line 5758 "configure"
5758#include "confdefs.h"
5759#if defined(CRAY) && ! defined(CRAY2)
5760webecray
5761#else
5762wenotbecray
5763#endif
5764
5765EOF
5766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5767 egrep "webecray" >/dev/null 2>&1; then
5768 rm -rf conftest*
5769 ac_cv_os_cray=yes
5770else
5771 rm -rf conftest*
5772 ac_cv_os_cray=no
5773fi
5774rm -f conftest*
5775
5776fi
5777
5778echo "$ac_t""$ac_cv_os_cray" 1>&6
5779if test $ac_cv_os_cray = yes; then
5780for ac_func in _getb67 GETB67 getb67; do
5781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5782echo "configure:5783: checking for $ac_func" >&5
5783if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5784 echo $ac_n "(cached) $ac_c" 1>&6
5785else
5786 cat > conftest.$ac_ext <<EOF
5787#line 5788 "configure"
5788#include "confdefs.h"
5789/* System header to define __stub macros and hopefully few prototypes,
5790 which can conflict with char $ac_func(); below. */
5791#include <assert.h>
5792/* Override any gcc2 internal prototype to avoid an error. */
5793/* We use char because int might match the return type of a gcc2
5794 builtin and then its argument prototype would still apply. */
5795char $ac_func();
5796
5797int main() {
5798
5799/* The GNU C library defines this for functions which it implements
5800 to always fail with ENOSYS. Some functions are actually named
5801 something starting with __ and the normal name is an alias. */
5802#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5803choke me
5804#else
5805$ac_func();
5806#endif
5807
5808; return 0; }
5809EOF
5810if { (eval echo configure:5811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5811 rm -rf conftest*
5812 eval "ac_cv_func_$ac_func=yes"
5813else
5814 echo "configure: failed program was:" >&5
5815 cat conftest.$ac_ext >&5
5816 rm -rf conftest*
5817 eval "ac_cv_func_$ac_func=no"
5818fi
5819rm -f conftest*
5820fi
5821
5822if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5823 echo "$ac_t""yes" 1>&6
5824 cat >> confdefs.h <<EOF
5825#define CRAY_STACKSEG_END $ac_func
5826EOF
5827
5828 break
5829else
5830 echo "$ac_t""no" 1>&6
5831fi
5832
5833done
5834fi
5835
5836echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5837echo "configure:5838: checking stack direction for C alloca" >&5
5838if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5839 echo $ac_n "(cached) $ac_c" 1>&6
5840else
5841 if test "$cross_compiling" = yes; then
5842 ac_cv_c_stack_direction=0
5843else
5844 cat > conftest.$ac_ext <<EOF
5845#line 5846 "configure"
5846#include "confdefs.h"
5847find_stack_direction ()
5848{
5849 static char *addr = 0;
5850 auto char dummy;
5851 if (addr == 0)
5852 {
5853 addr = &dummy;
5854 return find_stack_direction ();
5855 }
5856 else
5857 return (&dummy > addr) ? 1 : -1;
5858}
5859main ()
5860{
5861 exit (find_stack_direction() < 0);
5862}
5863EOF
5864if { (eval echo configure:5865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5865then
5866 ac_cv_c_stack_direction=1
5867else
5868 echo "configure: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5870 rm -fr conftest*
5871 ac_cv_c_stack_direction=-1
5872fi
5873rm -fr conftest*
5874fi
5875
5876fi
5877
5878echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5879cat >> confdefs.h <<EOF
5880#define STACK_DIRECTION $ac_cv_c_stack_direction
5881EOF
5882
5883fi
5884
5885echo $ac_n "checking for inline""... $ac_c" 1>&6
5886echo "configure:5887: checking for inline" >&5
5887if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5889else
5890 ac_cv_c_inline=no
5891for ac_kw in inline __inline__ __inline; do
5892 cat > conftest.$ac_ext <<EOF
5893#line 5894 "configure"
5894#include "confdefs.h"
5895
5896int main() {
5897} $ac_kw foo() {
5898; return 0; }
5899EOF
5900if { (eval echo configure:5901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5901 rm -rf conftest*
5902 ac_cv_c_inline=$ac_kw; break
5903else
5904 echo "configure: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5906fi
5907rm -f conftest*
5908done
5909
5910fi
5911
5912echo "$ac_t""$ac_cv_c_inline" 1>&6
5913case "$ac_cv_c_inline" in
5914 inline | yes) ;;
5915 no) cat >> confdefs.h <<\EOF
5916#define inline
5917EOF
5918 ;;
5919 *) cat >> confdefs.h <<EOF
5920#define inline $ac_cv_c_inline
5921EOF
5922 ;;
5923esac
5924
5925
5926# VMS doesn't have unlink.
5927for ac_func in unlink remove
5928do
5929echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5930echo "configure:5931: checking for $ac_func" >&5
5931if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5932 echo $ac_n "(cached) $ac_c" 1>&6
5933else
5934 cat > conftest.$ac_ext <<EOF
5935#line 5936 "configure"
5936#include "confdefs.h"
5937/* System header to define __stub macros and hopefully few prototypes,
5938 which can conflict with char $ac_func(); below. */
5939#include <assert.h>
5940/* Override any gcc2 internal prototype to avoid an error. */
5941/* We use char because int might match the return type of a gcc2
5942 builtin and then its argument prototype would still apply. */
5943char $ac_func();
5944
5945int main() {
5946
5947/* The GNU C library defines this for functions which it implements
5948 to always fail with ENOSYS. Some functions are actually named
5949 something starting with __ and the normal name is an alias. */
5950#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5951choke me
5952#else
5953$ac_func();
5954#endif
5955
5956; return 0; }
5957EOF
5958if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5959 rm -rf conftest*
5960 eval "ac_cv_func_$ac_func=yes"
5961else
5962 echo "configure: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5964 rm -rf conftest*
5965 eval "ac_cv_func_$ac_func=no"
5966fi
5967rm -f conftest*
5968fi
5969
5970if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5971 echo "$ac_t""yes" 1>&6
5972 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5973 cat >> confdefs.h <<EOF
5974#define $ac_tr_func 1
5975EOF
5976 break
5977else
5978 echo "$ac_t""no" 1>&6
5979fi
5980done
5981
5982
5983# Some systems don't have sbrk().
5984for ac_func in sbrk
5985do
5986echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5987echo "configure:5988: checking for $ac_func" >&5
5988if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5989 echo $ac_n "(cached) $ac_c" 1>&6
5990else
5991 cat > conftest.$ac_ext <<EOF
5992#line 5993 "configure"
5993#include "confdefs.h"
5994/* System header to define __stub macros and hopefully few prototypes,
5995 which can conflict with char $ac_func(); below. */
5996#include <assert.h>
5997/* Override any gcc2 internal prototype to avoid an error. */
5998/* We use char because int might match the return type of a gcc2
5999 builtin and then its argument prototype would still apply. */
6000char $ac_func();
6001
6002int main() {
6003
6004/* The GNU C library defines this for functions which it implements
6005 to always fail with ENOSYS. Some functions are actually named
6006 something starting with __ and the normal name is an alias. */
6007#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6008choke me
6009#else
6010$ac_func();
6011#endif
6012
6013; return 0; }
6014EOF
6015if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6016 rm -rf conftest*
6017 eval "ac_cv_func_$ac_func=yes"
6018else
6019 echo "configure: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6021 rm -rf conftest*
6022 eval "ac_cv_func_$ac_func=no"
6023fi
6024rm -f conftest*
6025fi
6026
6027if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6028 echo "$ac_t""yes" 1>&6
6029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6030 cat >> confdefs.h <<EOF
6031#define $ac_tr_func 1
6032EOF
6033
6034else
6035 echo "$ac_t""no" 1>&6
6036fi
6037done
6038
6039
6040# do we need the math library?
6041case "${need_libm}" in
6042yes)
6043 LIBM=
6044case $host in
6045*-*-beos* | *-*-cygwin* | *-*-pw32*)
6046 # These system don't have libm
6047 ;;
6048*-ncr-sysv4.3*)
6049 echo $ac_n "checking for _mwvalidcheckl in -lmw""... $ac_c" 1>&6
6050echo "configure:6051: checking for _mwvalidcheckl in -lmw" >&5
6051ac_lib_var=`echo mw'_'_mwvalidcheckl | sed 'y%./+-%__p_%'`
6052if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6053 echo $ac_n "(cached) $ac_c" 1>&6
6054else
6055 ac_save_LIBS="$LIBS"
6056LIBS="-lmw $LIBS"
6057cat > conftest.$ac_ext <<EOF
6058#line 6059 "configure"
6059#include "confdefs.h"
6060/* Override any gcc2 internal prototype to avoid an error. */
6061/* We use char because int might match the return type of a gcc2
6062 builtin and then its argument prototype would still apply. */
6063char _mwvalidcheckl();
6064
6065int main() {
6066_mwvalidcheckl()
6067; return 0; }
6068EOF
6069if { (eval echo configure:6070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6070 rm -rf conftest*
6071 eval "ac_cv_lib_$ac_lib_var=yes"
6072else
6073 echo "configure: failed program was:" >&5
6074 cat conftest.$ac_ext >&5
6075 rm -rf conftest*
6076 eval "ac_cv_lib_$ac_lib_var=no"
6077fi
6078rm -f conftest*
6079LIBS="$ac_save_LIBS"
6080
6081fi
6082if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6083 echo "$ac_t""yes" 1>&6
6084 LIBM="-lmw"
6085else
6086 echo "$ac_t""no" 1>&6
6087fi
6088
6089 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6090echo "configure:6091: checking for main in -lm" >&5
6091ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6092if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6094else
6095 ac_save_LIBS="$LIBS"
6096LIBS="-lm $LIBS"
6097cat > conftest.$ac_ext <<EOF
6098#line 6099 "configure"
6099#include "confdefs.h"
6100
6101int main() {
6102main()
6103; return 0; }
6104EOF
6105if { (eval echo configure:6106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6106 rm -rf conftest*
6107 eval "ac_cv_lib_$ac_lib_var=yes"
6108else
6109 echo "configure: failed program was:" >&5
6110 cat conftest.$ac_ext >&5
6111 rm -rf conftest*
6112 eval "ac_cv_lib_$ac_lib_var=no"
6113fi
6114rm -f conftest*
6115LIBS="$ac_save_LIBS"
6116
6117fi
6118if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6119 echo "$ac_t""yes" 1>&6
6120 LIBM="$LIBM -lm"
6121else
6122 echo "$ac_t""no" 1>&6
6123fi
6124
6125 ;;
6126*)
6127 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6128echo "configure:6129: checking for main in -lm" >&5
6129ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6130if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6131 echo $ac_n "(cached) $ac_c" 1>&6
6132else
6133 ac_save_LIBS="$LIBS"
6134LIBS="-lm $LIBS"
6135cat > conftest.$ac_ext <<EOF
6136#line 6137 "configure"
6137#include "confdefs.h"
6138
6139int main() {
6140main()
6141; return 0; }
6142EOF
6143if { (eval echo configure:6144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6144 rm -rf conftest*
6145 eval "ac_cv_lib_$ac_lib_var=yes"
6146else
6147 echo "configure: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6149 rm -rf conftest*
6150 eval "ac_cv_lib_$ac_lib_var=no"
6151fi
6152rm -f conftest*
6153LIBS="$ac_save_LIBS"
6154
6155fi
6156if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6157 echo "$ac_t""yes" 1>&6
6158 LIBM="-lm"
6159else
6160 echo "$ac_t""no" 1>&6
6161fi
6162
6163 ;;
6164esac
6165
6166
6167 ;;
6168esac
6169
6170# Some non-ANSI preprocessors botch requoting inside strings. That's bad
6171# enough, but on some of those systems, the assert macro relies on requoting
6172# working properly!
6173echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
6174echo "configure:6175: checking for working assert macro" >&5
6175if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
6176 echo $ac_n "(cached) $ac_c" 1>&6
6177else
6178 cat > conftest.$ac_ext <<EOF
6179#line 6180 "configure"
6180#include "confdefs.h"
6181#include <assert.h>
6182#include <stdio.h>
6183int main() {
6184
6185/* check for requoting problems */
6186static int a, b, c, d;
6187static char *s;
6188assert (!strcmp(s, "foo bar baz quux"));
6189/* check for newline handling */
6190assert (a == b
6191 || c == d);
6192
6193; return 0; }
6194EOF
6195if { (eval echo configure:6196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6196 rm -rf conftest*
6197 gas_cv_assert_ok=yes
6198else
6199 echo "configure: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6201 rm -rf conftest*
6202 gas_cv_assert_ok=no
6203fi
6204rm -f conftest*
6205fi
6206echo "$ac_t""$gas_cv_assert_ok" 1>&6
6207test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF
6208#define BROKEN_ASSERT 1
6209EOF
6210
6211
6212
6213# On some systems, the system header files may not declare malloc, realloc,
6214# and free. There are places where gas needs these functions to have been
6215# declared -- such as when taking their addresses.
6216gas_test_headers="
6217#ifdef HAVE_MEMORY_H
6218#include <memory.h>
6219#endif
6220#ifdef HAVE_STRING_H
6221#include <string.h>
6222#else
6223#ifdef HAVE_STRINGS_H
6224#include <strings.h>
6225#endif
6226#endif
6227#ifdef HAVE_STDLIB_H
6228#include <stdlib.h>
6229#endif
6230#ifdef HAVE_UNISTD_H
6231#include <unistd.h>
6232#endif
6233"
6234
6235echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
6236echo "configure:6237: checking whether declaration is required for strstr" >&5
6237if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
6238 echo $ac_n "(cached) $ac_c" 1>&6
6239else
6240 cat > conftest.$ac_ext <<EOF
6241#line 6242 "configure"
6242#include "confdefs.h"
6243$gas_test_headers
6244int main() {
6245
6246typedef char *(*f)();
6247f x;
6248x = (f) strstr;
6249
6250; return 0; }
6251EOF
6252if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6253 rm -rf conftest*
6254 gas_cv_decl_needed_strstr=no
6255else
6256 echo "configure: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6258 rm -rf conftest*
6259 gas_cv_decl_needed_strstr=yes
6260fi
6261rm -f conftest*
6262fi
6263echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
6264if test $gas_cv_decl_needed_strstr = yes; then
6265 cat >> confdefs.h <<\EOF
6266#define NEED_DECLARATION_STRSTR 1
6267EOF
6268
6269fi
6270
6271
6272echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
6273echo "configure:6274: checking whether declaration is required for malloc" >&5
6274if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
6275 echo $ac_n "(cached) $ac_c" 1>&6
6276else
6277 cat > conftest.$ac_ext <<EOF
6278#line 6279 "configure"
6279#include "confdefs.h"
6280$gas_test_headers
6281int main() {
6282
6283typedef char *(*f)();
6284f x;
6285x = (f) malloc;
6286
6287; return 0; }
6288EOF
6289if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6290 rm -rf conftest*
6291 gas_cv_decl_needed_malloc=no
6292else
6293 echo "configure: failed program was:" >&5
6294 cat conftest.$ac_ext >&5
6295 rm -rf conftest*
6296 gas_cv_decl_needed_malloc=yes
6297fi
6298rm -f conftest*
6299fi
6300echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
6301if test $gas_cv_decl_needed_malloc = yes; then
6302 cat >> confdefs.h <<\EOF
6303#define NEED_DECLARATION_MALLOC 1
6304EOF
6305
6306fi
6307
6308
6309echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
6310echo "configure:6311: checking whether declaration is required for free" >&5
6311if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6313else
6314 cat > conftest.$ac_ext <<EOF
6315#line 6316 "configure"
6316#include "confdefs.h"
6317$gas_test_headers
6318int main() {
6319
6320typedef void (*f)();
6321f x;
6322x = (f) free;
6323
6324; return 0; }
6325EOF
6326if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6327 rm -rf conftest*
6328 gas_cv_decl_needed_free=no
6329else
6330 echo "configure: failed program was:" >&5
6331 cat conftest.$ac_ext >&5
6332 rm -rf conftest*
6333 gas_cv_decl_needed_free=yes
6334fi
6335rm -f conftest*
6336fi
6337echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
6338if test $gas_cv_decl_needed_free = yes; then
6339 cat >> confdefs.h <<\EOF
6340#define NEED_DECLARATION_FREE 1
6341EOF
6342
6343fi
6344
6345
6346echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
6347echo "configure:6348: checking whether declaration is required for sbrk" >&5
6348if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
6349 echo $ac_n "(cached) $ac_c" 1>&6
6350else
6351 cat > conftest.$ac_ext <<EOF
6352#line 6353 "configure"
6353#include "confdefs.h"
6354$gas_test_headers
6355int main() {
6356
6357typedef char *(*f)();
6358f x;
6359x = (f) sbrk;
6360
6361; return 0; }
6362EOF
6363if { (eval echo configure:6364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6364 rm -rf conftest*
6365 gas_cv_decl_needed_sbrk=no
6366else
6367 echo "configure: failed program was:" >&5
6368 cat conftest.$ac_ext >&5
6369 rm -rf conftest*
6370 gas_cv_decl_needed_sbrk=yes
6371fi
6372rm -f conftest*
6373fi
6374echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
6375if test $gas_cv_decl_needed_sbrk = yes; then
6376 cat >> confdefs.h <<\EOF
6377#define NEED_DECLARATION_SBRK 1
6378EOF
6379
6380fi
6381
6382
6383echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
6384echo "configure:6385: checking whether declaration is required for environ" >&5
6385if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then
6386 echo $ac_n "(cached) $ac_c" 1>&6
6387else
6388 cat > conftest.$ac_ext <<EOF
6389#line 6390 "configure"
6390#include "confdefs.h"
6391$gas_test_headers
6392int main() {
6393
6394typedef char **f;
6395f x;
6396x = (f) environ;
6397
6398; return 0; }
6399EOF
6400if { (eval echo configure:6401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6401 rm -rf conftest*
6402 gas_cv_decl_needed_environ=no
6403else
6404 echo "configure: failed program was:" >&5
6405 cat conftest.$ac_ext >&5
6406 rm -rf conftest*
6407 gas_cv_decl_needed_environ=yes
6408fi
6409rm -f conftest*
6410fi
6411echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
6412if test $gas_cv_decl_needed_environ = yes; then
6413 cat >> confdefs.h <<\EOF
6414#define NEED_DECLARATION_ENVIRON 1
6415EOF
6416
6417fi
6418
6419
6420# Does errno.h declare errno, or do we have to add a separate declaration
6421# for it?
6422
6423echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
6424echo "configure:6425: checking whether declaration is required for errno" >&5
6425if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
6426 echo $ac_n "(cached) $ac_c" 1>&6
6427else
6428 cat > conftest.$ac_ext <<EOF
6429#line 6430 "configure"
6430#include "confdefs.h"
6431
6432#ifdef HAVE_ERRNO_H
6433#include <errno.h>
6434#endif
6435
6436int main() {
6437
6438typedef int f;
6439f x;
6440x = (f) errno;
6441
6442; return 0; }
6443EOF
6444if { (eval echo configure:6445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6445 rm -rf conftest*
6446 gas_cv_decl_needed_errno=no
6447else
6448 echo "configure: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6450 rm -rf conftest*
6451 gas_cv_decl_needed_errno=yes
6452fi
6453rm -f conftest*
6454fi
6455echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
6456if test $gas_cv_decl_needed_errno = yes; then
6457 cat >> confdefs.h <<\EOF
6458#define NEED_DECLARATION_ERRNO 1
6459EOF
6460
6461fi
6462
6463
6464
6465
6466trap '' 1 2 15
6467cat > confcache <<\EOF
6468# This file is a shell script that caches the results of configure
6469# tests run on this system so they can be shared between configure
6470# scripts and configure runs. It is not useful on other systems.
6471# If it contains results you don't want to keep, you may remove or edit it.
6472#
6473# By default, configure uses ./config.cache as the cache file,
6474# creating it if it does not exist already. You can give configure
6475# the --cache-file=FILE option to use a different cache file; that is
6476# what configure does when it calls configure scripts in
6477# subdirectories, so they share the cache.
6478# Giving --cache-file=/dev/null disables caching, for debugging configure.
6479# config.status only pays attention to the cache file if you give it the
6480# --recheck option to rerun configure.
6481#
6482EOF
6483# The following way of writing the cache mishandles newlines in values,
6484# but we know of no workaround that is simple, portable, and efficient.
6485# So, don't put newlines in cache variables' values.
6486# Ultrix sh set writes to stderr and can't be redirected directly,
6487# and sets the high bit in the cache file unless we assign to the vars.
6488(set) 2>&1 |
6489 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6490 *ac_space=\ *)
6491 # `set' does not quote correctly, so add quotes (double-quote substitution
6492 # turns \\\\ into \\, and sed turns \\ into \).
6493 sed -n \
6494 -e "s/'/'\\\\''/g" \
6495 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6496 ;;
6497 *)
6498 # `set' quotes correctly as required by POSIX, so do not add quotes.
6499 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6500 ;;
6501 esac >> confcache
6502if cmp -s $cache_file confcache; then
6503 :
6504else
6505 if test -w $cache_file; then
6506 echo "updating cache $cache_file"
6507 cat confcache > $cache_file
6508 else
6509 echo "not updating unwritable cache $cache_file"
6510 fi
6511fi
6512rm -f confcache
6513
6514trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6515
6516test "x$prefix" = xNONE && prefix=$ac_default_prefix
6517# Let make expand exec_prefix.
6518test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6519
6520# Any assignment to VPATH causes Sun make to only execute
6521# the first set of double-colon rules, so remove it if not needed.
6522# If there is a colon in the path, we need to keep it.
6523if test "x$srcdir" = x.; then
6524 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6525fi
6526
6527trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6528
6529DEFS=-DHAVE_CONFIG_H
6530
6531# Without the "./", some shells look in PATH for config.status.
6532: ${CONFIG_STATUS=./config.status}
6533
6534echo creating $CONFIG_STATUS
6535rm -f $CONFIG_STATUS
6536cat > $CONFIG_STATUS <<EOF
6537#! /bin/sh
6538# Generated automatically by configure.
6539# Run this file to recreate the current configuration.
6540# This directory was configured as follows,
6541EOF
6542echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
6543cat >> $CONFIG_STATUS <<EOF
6544# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6545#
6546# $0 $ac_configure_args
6547#
6548# Compiler output produced by configure, useful for debugging
6549# configure, is in ./config.log if it exists.
6550
6551ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6552for ac_option
6553do
6554 case "\$ac_option" in
6555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6556 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6557 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6558 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6559 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6560 exit 0 ;;
6561 -help | --help | --hel | --he | --h)
6562 echo "\$ac_cs_usage"; exit 0 ;;
6563 *) echo "\$ac_cs_usage"; exit 1 ;;
6564 esac
6565done
6566
6567ac_given_srcdir=$srcdir
6568ac_given_INSTALL="$INSTALL"
6569PATHIFS="$PATH_IFS"
6570
6571trap '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
6572EOF
6573cat >> $CONFIG_STATUS <<EOF
6574
6575# Protect against being on the right side of a sed subst in config.status.
6576sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6577 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6578$ac_vpsub
6579$extrasub
6580s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
6581s%@SHELL@%$SHELL%g
6582s%@CFLAGS@%$CFLAGS%g
6583s%@CPPFLAGS@%$CPPFLAGS%g
6584s%@CXXFLAGS@%$CXXFLAGS%g
6585s%@FFLAGS@%$FFLAGS%g
6586s%@DEFS@%$DEFS%g
6587s%@LDFLAGS@%$LDFLAGS%g
6588s%@LIBS@%$LIBS%g
6589s%@exec_prefix@%$exec_prefix%g
6590s%@prefix@%$prefix%g
6591s%@program_transform_name@%$program_transform_name%g
6592s%@bindir@%$bindir%g
6593s%@sbindir@%$sbindir%g
6594s%@libexecdir@%$libexecdir%g
6595s%@datadir@%$datadir%g
6596s%@sysconfdir@%$sysconfdir%g
6597s%@sharedstatedir@%$sharedstatedir%g
6598s%@localstatedir@%$localstatedir%g
6599s%@libdir@%$libdir%g
6600s%@includedir@%$includedir%g
6601s%@oldincludedir@%$oldincludedir%g
6602s%@infodir@%$infodir%g
6603s%@mandir@%$mandir%g
6604s%@PATH_IFS@%$PATH_IFS%g
6605s%@EXEEXT@%$EXEEXT%g
6606s%@host@%$host%g
6607s%@host_alias@%$host_alias%g
6608s%@host_cpu@%$host_cpu%g
6609s%@host_vendor@%$host_vendor%g
6610s%@host_os@%$host_os%g
6611s%@target@%$target%g
6612s%@target_alias@%$target_alias%g
6613s%@target_cpu@%$target_cpu%g
6614s%@target_vendor@%$target_vendor%g
6615s%@target_os@%$target_os%g
6616s%@build@%$build%g
6617s%@build_alias@%$build_alias%g
6618s%@build_cpu@%$build_cpu%g
6619s%@build_vendor@%$build_vendor%g
6620s%@build_os@%$build_os%g
6621s%@CC@%$CC%g
6622s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6623s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6624s%@INSTALL_DATA@%$INSTALL_DATA%g
6625s%@PACKAGE@%$PACKAGE%g
6626s%@VERSION@%$VERSION%g
6627s%@ACLOCAL@%$ACLOCAL%g
6628s%@AUTOCONF@%$AUTOCONF%g
6629s%@AUTOMAKE@%$AUTOMAKE%g
6630s%@AUTOHEADER@%$AUTOHEADER%g
6631s%@MAKEINFO@%$MAKEINFO%g
6632s%@SET_MAKE@%$SET_MAKE%g
6633s%@LN_S@%$LN_S%g
6634s%@OBJEXT@%$OBJEXT%g
6635s%@RANLIB@%$RANLIB%g
6636s%@STRIP@%$STRIP%g
6637s%@LIBTOOL@%$LIBTOOL%g
6638s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6639s%@GDBINIT@%$GDBINIT%g
6640s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
6641s%@extra_objects@%$extra_objects%g
6642s%@target_cpu_type@%$target_cpu_type%g
6643s%@obj_format@%$obj_format%g
6644s%@te_file@%$te_file%g
6645s%@install_tooldir@%$install_tooldir%g
6646s%@atof@%$atof%g
6647s%@BFDLIB@%$BFDLIB%g
6648s%@OPCODES_LIB@%$OPCODES_LIB%g
6649s%@BFDVER_H@%$BFDVER_H%g
6650s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
6651s%@YACC@%$YACC%g
6652s%@LEX@%$LEX%g
6653s%@LEXLIB@%$LEXLIB%g
6654s%@CPP@%$CPP%g
6655s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6656s%@ALLOCA@%$ALLOCA%g
6657s%@USE_NLS@%$USE_NLS%g
6658s%@MSGFMT@%$MSGFMT%g
6659s%@GMSGFMT@%$GMSGFMT%g
6660s%@XGETTEXT@%$XGETTEXT%g
6661s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6662s%@CATALOGS@%$CATALOGS%g
6663s%@CATOBJEXT@%$CATOBJEXT%g
6664s%@DATADIRNAME@%$DATADIRNAME%g
6665s%@GMOFILES@%$GMOFILES%g
6666s%@INSTOBJEXT@%$INSTOBJEXT%g
6667s%@INTLDEPS@%$INTLDEPS%g
6668s%@INTLLIBS@%$INTLLIBS%g
6669s%@INTLOBJS@%$INTLOBJS%g
6670s%@POFILES@%$POFILES%g
6671s%@POSUB@%$POSUB%g
6672s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6673s%@GT_NO@%$GT_NO%g
6674s%@GT_YES@%$GT_YES%g
6675s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6676s%@l@%$l%g
6677s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6678s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6679s%@MAINT@%$MAINT%g
6680s%@LIBM@%$LIBM%g
6681
6682CEOF
6683EOF
6684
6685cat >> $CONFIG_STATUS <<\EOF
6686
6687# Split the substitutions into bite-sized pieces for seds with
6688# small command number limits, like on Digital OSF/1 and HP-UX.
6689ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6690ac_file=1 # Number of current file.
6691ac_beg=1 # First line for current file.
6692ac_end=$ac_max_sed_cmds # Line after last line for current file.
6693ac_more_lines=:
6694ac_sed_cmds=""
6695while $ac_more_lines; do
6696 if test $ac_beg -gt 1; then
6697 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6698 else
6699 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6700 fi
6701 if test ! -s conftest.s$ac_file; then
6702 ac_more_lines=false
6703 rm -f conftest.s$ac_file
6704 else
6705 if test -z "$ac_sed_cmds"; then
6706 ac_sed_cmds="sed -f conftest.s$ac_file"
6707 else
6708 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6709 fi
6710 ac_file=`expr $ac_file + 1`
6711 ac_beg=$ac_end
6712 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6713 fi
6714done
6715if test -z "$ac_sed_cmds"; then
6716 ac_sed_cmds=cat
6717fi
6718EOF
6719
6720cat >> $CONFIG_STATUS <<EOF
6721
6722CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"}
6723EOF
6724cat >> $CONFIG_STATUS <<\EOF
6725for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6726 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6727 case "$ac_file" in
6728 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6729 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6730 *) ac_file_in="${ac_file}.in" ;;
6731 esac
6732
6733 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6734
6735 # Remove last slash and all that follows it. Not all systems have dirname.
6736 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6737 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6738 # The file is in a subdirectory.
6739 test ! -d "$ac_dir" && mkdir "$ac_dir"
6740 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6741 # A "../" for each directory in $ac_dir_suffix.
6742 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6743 else
6744 ac_dir_suffix= ac_dots=
6745 fi
6746
6747 case "$ac_given_srcdir" in
6748 .) srcdir=.
6749 if test -z "$ac_dots"; then top_srcdir=.
6750 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6751 [/\\]* | [a-zA-Z]:*)
6752 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6753 *) # Relative path.
6754 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6755 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6756 esac
6757
6758 case "$ac_given_INSTALL" in
6759 [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
6760 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6761 esac
6762
6763 echo creating "$ac_file"
6764 rm -f "$ac_file"
6765 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6766 case "$ac_file" in
6767 *Makefile*) ac_comsub="1i\\
6768# $configure_input" ;;
6769 *) ac_comsub= ;;
6770 esac
6771
6772 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
6773 sed -e "$ac_comsub
6774s%@configure_input@%$configure_input%g
6775s%@srcdir@%$srcdir%g
6776s%@top_srcdir@%$top_srcdir%g
6777s%@INSTALL@%$INSTALL%g
6778" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6779fi; done
6780rm -f conftest.s*
6781
6782# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6783# NAME is the cpp macro being defined and VALUE is the value it is being given.
6784#
6785# ac_d sets the value in "#define NAME VALUE" lines.
6786ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6787ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6788ac_dC='\3'
6789ac_dD='%g'
6790# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6791ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6792ac_uB='\([ ]\)%\1#\2define\3'
6793ac_uC=' '
6794ac_uD='\4%g'
6795# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6796ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6797ac_eB='$%\1#\2define\3'
6798ac_eC=' '
6799ac_eD='%g'
6800
6801if test "${CONFIG_HEADERS+set}" != set; then
6802EOF
6803cat >> $CONFIG_STATUS <<EOF
6804 CONFIG_HEADERS="config.h:config.in"
6805EOF
6806cat >> $CONFIG_STATUS <<\EOF
6807fi
6808for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6810 case "$ac_file" in
6811 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6812 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6813 *) ac_file_in="${ac_file}.in" ;;
6814 esac
6815
6816 echo creating $ac_file
6817
6818 rm -f conftest.frag conftest.in conftest.out
6819# kso the other way around might work better with drive letters and such.
6820# ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6821 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
6822 cat $ac_file_inputs > conftest.in
6823
6824EOF
6825
6826# Transform confdefs.h into a sed script conftest.vals that substitutes
6827# the proper values into config.h.in to produce config.h. And first:
6828# Protect against being on the right side of a sed subst in config.status.
6829# Protect against being in an unquoted here document in config.status.
6830rm -f conftest.vals
6831cat > conftest.hdr <<\EOF
6832s/[\\&%]/\\&/g
6833s%[\\$`]%\\&%g
6834s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6835s%ac_d%ac_u%gp
6836s%ac_u%ac_e%gp
6837EOF
6838sed -n -f conftest.hdr confdefs.h > conftest.vals
6839rm -f conftest.hdr
6840
6841# This sed command replaces #undef with comments. This is necessary, for
6842# example, in the case of _POSIX_SOURCE, which is predefined and required
6843# on some systems where configure will not decide to define it.
6844cat >> conftest.vals <<\EOF
6845s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6846EOF
6847
6848# Break up conftest.vals because some shells have a limit on
6849# the size of here documents, and old seds have small limits too.
6850
6851rm -f conftest.tail
6852while :
6853do
6854 ac_lines=`grep -c . conftest.vals`
6855 # grep -c gives empty output for an empty file on some AIX systems.
6856 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6857 # Write a limited-size here document to conftest.frag.
6858 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6859 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6860 echo 'CEOF
6861 sed -f conftest.frag conftest.in > conftest.out
6862 rm -f conftest.in
6863 mv conftest.out conftest.in
6864' >> $CONFIG_STATUS
6865 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6866 rm -f conftest.vals
6867 mv conftest.tail conftest.vals
6868done
6869rm -f conftest.vals
6870
6871cat >> $CONFIG_STATUS <<\EOF
6872 rm -f conftest.frag conftest.h
6873 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6874 cat conftest.in >> conftest.h
6875 rm -f conftest.in
6876 if cmp -s $ac_file conftest.h 2>/dev/null; then
6877 echo "$ac_file is unchanged"
6878 rm -f conftest.h
6879 else
6880 # Remove last slash and all that follows it. Not all systems have dirname.
6881 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6882 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6883 # The file is in a subdirectory.
6884 test ! -d "$ac_dir" && mkdir "$ac_dir"
6885 fi
6886 rm -f $ac_file
6887 mv conftest.h $ac_file
6888 fi
6889fi; done
6890
6891EOF
6892cat >> $CONFIG_STATUS <<EOF
6893
6894target_cpu_type=${target_cpu_type}
6895 cgen_cpu_prefix=${cgen_cpu_prefix}
6896 obj_format=${obj_format}
6897 te_file=${te_file}
6898EOF
6899cat >> $CONFIG_STATUS <<\EOF
6900test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6901rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
6902 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
6903 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
6904 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
6905 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
6906 if test "x$cgen_cpu_prefix" != x ; then
6907 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
6908 fi
6909
6910 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6911exit 0
6912EOF
6913chmod +x $CONFIG_STATUS
6914rm -fr confdefs* $ac_clean_files
6915test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6916
Note: See TracBrowser for help on using the repository browser.