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

Last change on this file since 1036 was 619, checked in by bird, 22 years ago

Regenerated configure files after 2.14 join.

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