rebuild
[deliverable/binutils-gdb.git] / gas / configure
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:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
16 ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
23 --disable-libtool-lock force libtool not to do file locking"
24 ac_help="$ac_help
25 --enable-bfd-assembler use BFD back end for writing object files"
26 ac_help="$ac_help
27 targets alternative target configurations besides the primary"
28 ac_help="$ac_help
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
30 ac_help="$ac_help
31 --disable-nls do not use Native Language Support"
32 ac_help="$ac_help
33 --with-included-gettext use the GNU gettext library included here"
34 ac_help="$ac_help
35 --enable-maintainer-mode enable make rules and dependencies not useful
36 (and sometimes confusing) to the casual installer"
37
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
41 build=NONE
42 cache_file=./config.cache
43 exec_prefix=NONE
44 host=NONE
45 no_create=
46 nonopt=NONE
47 no_recursion=
48 prefix=NONE
49 program_prefix=NONE
50 program_suffix=NONE
51 program_transform_name=s,x,x,
52 silent=
53 site=
54 sitefile=
55 srcdir=
56 target=NONE
57 verbose=
58 x_includes=NONE
59 x_libraries=NONE
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
72
73 # Initialize some other variables.
74 subdirs=
75 MFLAGS= MAKEFLAGS=
76 SHELL=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
78 ac_max_here_lines=12
79
80 ac_prev=
81 for ac_option
82 do
83
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
87 ac_prev=
88 continue
89 fi
90
91 case "$ac_option" in
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 *) ac_optarg= ;;
94 esac
95
96 # Accept the important Cygnus configure options, so we can diagnose typos.
97
98 case "$ac_option" in
99
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
101 ac_prev=bindir ;;
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
104
105 -build | --build | --buil | --bui | --bu)
106 ac_prev=build ;;
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
109
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
116
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118 ac_prev=datadir ;;
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120 | --da=*)
121 datadir="$ac_optarg" ;;
122
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 fi
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
131
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 fi
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 case "$ac_option" in
140 *=*) ;;
141 *) ac_optarg=yes ;;
142 esac
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
144
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
153
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
156 with_gas=yes ;;
157
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
161 cat << EOF
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
164 Configuration:
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --site-file=FILE use FILE as the site file
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
173 [$ac_default_prefix]
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 [same as prefix]
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
180 [PREFIX/share]
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 [PREFIX/com]
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
195 EOF
196 cat << EOF
197 Host type:
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
208 EOF
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
211 fi
212 exit 0 ;;
213
214 -host | --host | --hos | --ho)
215 ac_prev=host ;;
216 -host=* | --host=* | --hos=* | --ho=*)
217 host="$ac_optarg" ;;
218
219 -includedir | --includedir | --includedi | --included | --include \
220 | --includ | --inclu | --incl | --inc)
221 ac_prev=includedir ;;
222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223 | --includ=* | --inclu=* | --incl=* | --inc=*)
224 includedir="$ac_optarg" ;;
225
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 ac_prev=infodir ;;
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
230
231 -libdir | --libdir | --libdi | --libd)
232 ac_prev=libdir ;;
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir="$ac_optarg" ;;
235
236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237 | --libexe | --libex | --libe)
238 ac_prev=libexecdir ;;
239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240 | --libexe=* | --libex=* | --libe=*)
241 libexecdir="$ac_optarg" ;;
242
243 -localstatedir | --localstatedir | --localstatedi | --localstated \
244 | --localstate | --localstat | --localsta | --localst \
245 | --locals | --local | --loca | --loc | --lo)
246 ac_prev=localstatedir ;;
247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250 localstatedir="$ac_optarg" ;;
251
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 ac_prev=mandir ;;
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
256
257 -nfp | --nfp | --nf)
258 # Obsolete; use --without-fp.
259 with_fp=no ;;
260
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 | --no-cr | --no-c)
263 no_create=yes ;;
264
265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 no_recursion=yes ;;
268
269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271 | --oldin | --oldi | --old | --ol | --o)
272 ac_prev=oldincludedir ;;
273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276 oldincludedir="$ac_optarg" ;;
277
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 ac_prev=prefix ;;
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix="$ac_optarg" ;;
282
283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
284 | --program-pre | --program-pr | --program-p)
285 ac_prev=program_prefix ;;
286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288 program_prefix="$ac_optarg" ;;
289
290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
291 | --program-suf | --program-su | --program-s)
292 ac_prev=program_suffix ;;
293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295 program_suffix="$ac_optarg" ;;
296
297 -program-transform-name | --program-transform-name \
298 | --program-transform-nam | --program-transform-na \
299 | --program-transform-n | --program-transform- \
300 | --program-transform | --program-transfor \
301 | --program-transfo | --program-transf \
302 | --program-trans | --program-tran \
303 | --progr-tra | --program-tr | --program-t)
304 ac_prev=program_transform_name ;;
305 -program-transform-name=* | --program-transform-name=* \
306 | --program-transform-nam=* | --program-transform-na=* \
307 | --program-transform-n=* | --program-transform-=* \
308 | --program-transform=* | --program-transfor=* \
309 | --program-transfo=* | --program-transf=* \
310 | --program-trans=* | --program-tran=* \
311 | --progr-tra=* | --program-tr=* | --program-t=*)
312 program_transform_name="$ac_optarg" ;;
313
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
316 silent=yes ;;
317
318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 ac_prev=sbindir ;;
320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321 | --sbi=* | --sb=*)
322 sbindir="$ac_optarg" ;;
323
324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326 | --sharedst | --shareds | --shared | --share | --shar \
327 | --sha | --sh)
328 ac_prev=sharedstatedir ;;
329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332 | --sha=* | --sh=*)
333 sharedstatedir="$ac_optarg" ;;
334
335 -site | --site | --sit)
336 ac_prev=site ;;
337 -site=* | --site=* | --sit=*)
338 site="$ac_optarg" ;;
339
340 -site-file | --site-file | --site-fil | --site-fi | --site-f)
341 ac_prev=sitefile ;;
342 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
343 sitefile="$ac_optarg" ;;
344
345 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 ac_prev=srcdir ;;
347 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
348 srcdir="$ac_optarg" ;;
349
350 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
351 | --syscon | --sysco | --sysc | --sys | --sy)
352 ac_prev=sysconfdir ;;
353 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
354 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
355 sysconfdir="$ac_optarg" ;;
356
357 -target | --target | --targe | --targ | --tar | --ta | --t)
358 ac_prev=target ;;
359 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
360 target="$ac_optarg" ;;
361
362 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 verbose=yes ;;
364
365 -version | --version | --versio | --versi | --vers)
366 echo "configure generated by autoconf version 2.13"
367 exit 0 ;;
368
369 -with-* | --with-*)
370 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 fi
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 case "$ac_option" in
377 *=*) ;;
378 *) ac_optarg=yes ;;
379 esac
380 eval "with_${ac_package}='$ac_optarg'" ;;
381
382 -without-* | --without-*)
383 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 fi
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
390
391 --x)
392 # Obsolete; use --with-x.
393 with_x=yes ;;
394
395 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
396 | --x-incl | --x-inc | --x-in | --x-i)
397 ac_prev=x_includes ;;
398 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
399 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
400 x_includes="$ac_optarg" ;;
401
402 -x-libraries | --x-libraries | --x-librarie | --x-librari \
403 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
404 ac_prev=x_libraries ;;
405 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
406 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
407 x_libraries="$ac_optarg" ;;
408
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 ;;
411
412 *)
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 fi
416 if test "x$nonopt" != xNONE; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
418 fi
419 nonopt="$ac_option"
420 ;;
421
422 esac
423 done
424
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 fi
428
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430
431 # File descriptor usage:
432 # 0 standard input
433 # 1 file creation
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
440 exec 6>/dev/null
441 else
442 exec 6>&1
443 fi
444 exec 5>./config.log
445
446 echo "\
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
449 " 1>&5
450
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
453 ac_configure_args=
454 for ac_arg
455 do
456 case "$ac_arg" in
457 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
458 | --no-cr | --no-c) ;;
459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
464 esac
465 done
466
467 # NLS nuisances.
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
476
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 echo > confdefs.h
481
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
484 ac_unique_file=as.h
485
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted=yes
489 # Try the directory containing this script, then its parent.
490 ac_prog=$0
491 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493 srcdir=$ac_confdir
494 if test ! -r $srcdir/$ac_unique_file; then
495 srcdir=..
496 fi
497 else
498 ac_srcdir_defaulted=no
499 fi
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 else
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 fi
506 fi
507 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$sitefile"; then
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 else
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 fi
517 fi
518 else
519 CONFIG_SITE="$sitefile"
520 fi
521 for ac_site_file in $CONFIG_SITE; do
522 if test -r "$ac_site_file"; then
523 echo "loading site script $ac_site_file"
524 . "$ac_site_file"
525 fi
526 done
527
528 if test -r "$cache_file"; then
529 echo "loading cache $cache_file"
530 . $cache_file
531 else
532 echo "creating cache $cache_file"
533 > $cache_file
534 fi
535
536 ac_ext=c
537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538 ac_cpp='$CPP $CPPFLAGS'
539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
541 cross_compiling=$ac_cv_prog_cc_cross
542
543 ac_exeext=
544 ac_objext=o
545 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
546 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548 ac_n= ac_c='
549 ' ac_t=' '
550 else
551 ac_n=-n ac_c= ac_t=
552 fi
553 else
554 ac_n= ac_c='\c' ac_t=
555 fi
556
557
558
559 ac_aux_dir=
560 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
561 if test -f $ac_dir/install-sh; then
562 ac_aux_dir=$ac_dir
563 ac_install_sh="$ac_aux_dir/install-sh -c"
564 break
565 elif test -f $ac_dir/install.sh; then
566 ac_aux_dir=$ac_dir
567 ac_install_sh="$ac_aux_dir/install.sh -c"
568 break
569 fi
570 done
571 if test -z "$ac_aux_dir"; then
572 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
573 fi
574 ac_config_guess=$ac_aux_dir/config.guess
575 ac_config_sub=$ac_aux_dir/config.sub
576 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
577
578
579 # Do some error checking and defaulting for the host and target type.
580 # The inputs are:
581 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
582 #
583 # The rules are:
584 # 1. You are not allowed to specify --host, --target, and nonopt at the
585 # same time.
586 # 2. Host defaults to nonopt.
587 # 3. If nonopt is not specified, then host defaults to the current host,
588 # as determined by config.guess.
589 # 4. Target and build default to nonopt.
590 # 5. If nonopt is not specified, then target and build default to host.
591
592 # The aliases save the names the user supplied, while $host etc.
593 # will get canonicalized.
594 case $host---$target---$nonopt in
595 NONE---*---* | *---NONE---* | *---*---NONE) ;;
596 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
597 esac
598
599
600 # Make sure we can run config.sub.
601 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
602 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 fi
604
605 echo $ac_n "checking host system type""... $ac_c" 1>&6
606 echo "configure:607: checking host system type" >&5
607
608 host_alias=$host
609 case "$host_alias" in
610 NONE)
611 case $nonopt in
612 NONE)
613 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
614 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
615 fi ;;
616 *) host_alias=$nonopt ;;
617 esac ;;
618 esac
619
620 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
621 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
622 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
623 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
624 echo "$ac_t""$host" 1>&6
625
626 echo $ac_n "checking target system type""... $ac_c" 1>&6
627 echo "configure:628: checking target system type" >&5
628
629 target_alias=$target
630 case "$target_alias" in
631 NONE)
632 case $nonopt in
633 NONE) target_alias=$host_alias ;;
634 *) target_alias=$nonopt ;;
635 esac ;;
636 esac
637
638 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
639 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
640 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
641 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
642 echo "$ac_t""$target" 1>&6
643
644 echo $ac_n "checking build system type""... $ac_c" 1>&6
645 echo "configure:646: checking build system type" >&5
646
647 build_alias=$build
648 case "$build_alias" in
649 NONE)
650 case $nonopt in
651 NONE) build_alias=$host_alias ;;
652 *) build_alias=$nonopt ;;
653 esac ;;
654 esac
655
656 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
657 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
658 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
659 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
660 echo "$ac_t""$build" 1>&6
661
662 test "$host_alias" != "$target_alias" &&
663 test "$program_prefix$program_suffix$program_transform_name" = \
664 NONENONEs,x,x, &&
665 program_prefix=${target_alias}-
666
667
668 # Find a good install program. We prefer a C program (faster),
669 # so one script is as good as another. But avoid the broken or
670 # incompatible versions:
671 # SysV /etc/install, /usr/sbin/install
672 # SunOS /usr/etc/install
673 # IRIX /sbin/install
674 # AIX /bin/install
675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
678 # ./install, which can be erroneously created by make from ./install.sh.
679 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
680 echo "configure:681: checking for a BSD compatible install" >&5
681 if test -z "$INSTALL"; then
682 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
684 else
685 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
686 for ac_dir in $PATH; do
687 # Account for people who put trailing slashes in PATH elements.
688 case "$ac_dir/" in
689 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
690 *)
691 # OSF1 and SCO ODT 3.0 have their own names for install.
692 # Don't use installbsd from OSF since it installs stuff as root
693 # by default.
694 for ac_prog in ginstall scoinst install; do
695 if test -f $ac_dir/$ac_prog; then
696 if test $ac_prog = install &&
697 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
698 # AIX install. It has an incompatible calling convention.
699 :
700 else
701 ac_cv_path_install="$ac_dir/$ac_prog -c"
702 break 2
703 fi
704 fi
705 done
706 ;;
707 esac
708 done
709 IFS="$ac_save_IFS"
710
711 fi
712 if test "${ac_cv_path_install+set}" = set; then
713 INSTALL="$ac_cv_path_install"
714 else
715 # As a last resort, use the slow shell script. We don't cache a
716 # path for INSTALL within a source directory, because that will
717 # break other packages using the cache if that directory is
718 # removed, or if the path is relative.
719 INSTALL="$ac_install_sh"
720 fi
721 fi
722 echo "$ac_t""$INSTALL" 1>&6
723
724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
725 # It thinks the first close brace ends the variable substitution.
726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
727
728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
729
730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
731
732 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
733 echo "configure:734: checking whether build environment is sane" >&5
734 # Just in case
735 sleep 1
736 echo timestamp > conftestfile
737 # Do `set' in a subshell so we don't clobber the current shell's
738 # arguments. Must try -L first in case configure is actually a
739 # symlink; some systems play weird games with the mod time of symlinks
740 # (eg FreeBSD returns the mod time of the symlink's containing
741 # directory).
742 if (
743 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
744 if test "$*" = "X"; then
745 # -L didn't work.
746 set X `ls -t $srcdir/configure conftestfile`
747 fi
748 if test "$*" != "X $srcdir/configure conftestfile" \
749 && test "$*" != "X conftestfile $srcdir/configure"; then
750
751 # If neither matched, then we have a broken ls. This can happen
752 # if, for instance, CONFIG_SHELL is bash and it inherits a
753 # broken ls alias from the environment. This has actually
754 # happened. Such a system could not be considered "sane".
755 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
756 alias in your environment" 1>&2; exit 1; }
757 fi
758
759 test "$2" = conftestfile
760 )
761 then
762 # Ok.
763 :
764 else
765 { echo "configure: error: newly created file is older than distributed files!
766 Check your system clock" 1>&2; exit 1; }
767 fi
768 rm -f conftest*
769 echo "$ac_t""yes" 1>&6
770 if test "$program_transform_name" = s,x,x,; then
771 program_transform_name=
772 else
773 # Double any \ or $. echo might interpret backslashes.
774 cat <<\EOF_SED > conftestsed
775 s,\\,\\\\,g; s,\$,$$,g
776 EOF_SED
777 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
778 rm -f conftestsed
779 fi
780 test "$program_prefix" != NONE &&
781 program_transform_name="s,^,${program_prefix},; $program_transform_name"
782 # Use a double $ so make ignores it.
783 test "$program_suffix" != NONE &&
784 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
785
786 # sed with no file args requires a program.
787 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
788
789 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
790 echo "configure:791: checking whether ${MAKE-make} sets \${MAKE}" >&5
791 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
792 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
794 else
795 cat > conftestmake <<\EOF
796 all:
797 @echo 'ac_maketemp="${MAKE}"'
798 EOF
799 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
800 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
801 if test -n "$ac_maketemp"; then
802 eval ac_cv_prog_make_${ac_make}_set=yes
803 else
804 eval ac_cv_prog_make_${ac_make}_set=no
805 fi
806 rm -f conftestmake
807 fi
808 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
809 echo "$ac_t""yes" 1>&6
810 SET_MAKE=
811 else
812 echo "$ac_t""no" 1>&6
813 SET_MAKE="MAKE=${MAKE-make}"
814 fi
815
816
817 PACKAGE=gas
818
819 VERSION=2.9.4
820
821 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
822 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
823 fi
824 cat >> confdefs.h <<EOF
825 #define PACKAGE "$PACKAGE"
826 EOF
827
828 cat >> confdefs.h <<EOF
829 #define VERSION "$VERSION"
830 EOF
831
832
833
834 missing_dir=`cd $ac_aux_dir && pwd`
835 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
836 echo "configure:837: checking for working aclocal" >&5
837 # Run test in a subshell; some versions of sh will print an error if
838 # an executable is not found, even if stderr is redirected.
839 # Redirect stdin to placate older versions of autoconf. Sigh.
840 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
841 ACLOCAL=aclocal
842 echo "$ac_t""found" 1>&6
843 else
844 ACLOCAL="$missing_dir/missing aclocal"
845 echo "$ac_t""missing" 1>&6
846 fi
847
848 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
849 echo "configure:850: checking for working autoconf" >&5
850 # Run test in a subshell; some versions of sh will print an error if
851 # an executable is not found, even if stderr is redirected.
852 # Redirect stdin to placate older versions of autoconf. Sigh.
853 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
854 AUTOCONF=autoconf
855 echo "$ac_t""found" 1>&6
856 else
857 AUTOCONF="$missing_dir/missing autoconf"
858 echo "$ac_t""missing" 1>&6
859 fi
860
861 echo $ac_n "checking for working automake""... $ac_c" 1>&6
862 echo "configure:863: checking for working automake" >&5
863 # Run test in a subshell; some versions of sh will print an error if
864 # an executable is not found, even if stderr is redirected.
865 # Redirect stdin to placate older versions of autoconf. Sigh.
866 if (automake --version) < /dev/null > /dev/null 2>&1; then
867 AUTOMAKE=automake
868 echo "$ac_t""found" 1>&6
869 else
870 AUTOMAKE="$missing_dir/missing automake"
871 echo "$ac_t""missing" 1>&6
872 fi
873
874 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
875 echo "configure:876: checking for working autoheader" >&5
876 # Run test in a subshell; some versions of sh will print an error if
877 # an executable is not found, even if stderr is redirected.
878 # Redirect stdin to placate older versions of autoconf. Sigh.
879 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
880 AUTOHEADER=autoheader
881 echo "$ac_t""found" 1>&6
882 else
883 AUTOHEADER="$missing_dir/missing autoheader"
884 echo "$ac_t""missing" 1>&6
885 fi
886
887 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
888 echo "configure:889: checking for working makeinfo" >&5
889 # Run test in a subshell; some versions of sh will print an error if
890 # an executable is not found, even if stderr is redirected.
891 # Redirect stdin to placate older versions of autoconf. Sigh.
892 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
893 MAKEINFO=makeinfo
894 echo "$ac_t""found" 1>&6
895 else
896 MAKEINFO="$missing_dir/missing makeinfo"
897 echo "$ac_t""missing" 1>&6
898 fi
899
900
901
902 # Check whether --enable-shared or --disable-shared was given.
903 if test "${enable_shared+set}" = set; then
904 enableval="$enable_shared"
905 p=${PACKAGE-default}
906 case "$enableval" in
907 yes) enable_shared=yes ;;
908 no) enable_shared=no ;;
909 *)
910 enable_shared=no
911 # Look at the argument we got. We use all the common list separators.
912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
913 for pkg in $enableval; do
914 if test "X$pkg" = "X$p"; then
915 enable_shared=yes
916 fi
917 done
918 IFS="$ac_save_ifs"
919 ;;
920 esac
921 else
922 enable_shared=yes
923 fi
924
925 # Check whether --enable-static or --disable-static was given.
926 if test "${enable_static+set}" = set; then
927 enableval="$enable_static"
928 p=${PACKAGE-default}
929 case "$enableval" in
930 yes) enable_static=yes ;;
931 no) enable_static=no ;;
932 *)
933 enable_static=no
934 # Look at the argument we got. We use all the common list separators.
935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
936 for pkg in $enableval; do
937 if test "X$pkg" = "X$p"; then
938 enable_static=yes
939 fi
940 done
941 IFS="$ac_save_ifs"
942 ;;
943 esac
944 else
945 enable_static=yes
946 fi
947
948 # Check whether --enable-fast-install or --disable-fast-install was given.
949 if test "${enable_fast_install+set}" = set; then
950 enableval="$enable_fast_install"
951 p=${PACKAGE-default}
952 case "$enableval" in
953 yes) enable_fast_install=yes ;;
954 no) enable_fast_install=no ;;
955 *)
956 enable_fast_install=no
957 # Look at the argument we got. We use all the common list separators.
958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
959 for pkg in $enableval; do
960 if test "X$pkg" = "X$p"; then
961 enable_fast_install=yes
962 fi
963 done
964 IFS="$ac_save_ifs"
965 ;;
966 esac
967 else
968 enable_fast_install=yes
969 fi
970
971 # Extract the first word of "ranlib", so it can be a program name with args.
972 set dummy ranlib; ac_word=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
977 else
978 if test -n "$RANLIB"; then
979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
980 else
981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
982 ac_dummy="$PATH"
983 for ac_dir in $ac_dummy; do
984 test -z "$ac_dir" && ac_dir=.
985 if test -f $ac_dir/$ac_word; then
986 ac_cv_prog_RANLIB="ranlib"
987 break
988 fi
989 done
990 IFS="$ac_save_ifs"
991 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
992 fi
993 fi
994 RANLIB="$ac_cv_prog_RANLIB"
995 if test -n "$RANLIB"; then
996 echo "$ac_t""$RANLIB" 1>&6
997 else
998 echo "$ac_t""no" 1>&6
999 fi
1000
1001 # Extract the first word of "gcc", so it can be a program name with args.
1002 set dummy gcc; ac_word=$2
1003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1004 echo "configure:1005: checking for $ac_word" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1007 else
1008 if test -n "$CC"; then
1009 ac_cv_prog_CC="$CC" # Let the user override the test.
1010 else
1011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1012 ac_dummy="$PATH"
1013 for ac_dir in $ac_dummy; do
1014 test -z "$ac_dir" && ac_dir=.
1015 if test -f $ac_dir/$ac_word; then
1016 ac_cv_prog_CC="gcc"
1017 break
1018 fi
1019 done
1020 IFS="$ac_save_ifs"
1021 fi
1022 fi
1023 CC="$ac_cv_prog_CC"
1024 if test -n "$CC"; then
1025 echo "$ac_t""$CC" 1>&6
1026 else
1027 echo "$ac_t""no" 1>&6
1028 fi
1029
1030 if test -z "$CC"; then
1031 # Extract the first word of "cc", so it can be a program name with args.
1032 set dummy cc; ac_word=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1037 else
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC="$CC" # Let the user override the test.
1040 else
1041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1042 ac_prog_rejected=no
1043 ac_dummy="$PATH"
1044 for ac_dir in $ac_dummy; do
1045 test -z "$ac_dir" && ac_dir=.
1046 if test -f $ac_dir/$ac_word; then
1047 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1048 ac_prog_rejected=yes
1049 continue
1050 fi
1051 ac_cv_prog_CC="cc"
1052 break
1053 fi
1054 done
1055 IFS="$ac_save_ifs"
1056 if test $ac_prog_rejected = yes; then
1057 # We found a bogon in the path, so make sure we never use it.
1058 set dummy $ac_cv_prog_CC
1059 shift
1060 if test $# -gt 0; then
1061 # We chose a different compiler from the bogus one.
1062 # However, it has the same basename, so the bogon will be chosen
1063 # first if we set CC to just the basename; use the full file name.
1064 shift
1065 set dummy "$ac_dir/$ac_word" "$@"
1066 shift
1067 ac_cv_prog_CC="$@"
1068 fi
1069 fi
1070 fi
1071 fi
1072 CC="$ac_cv_prog_CC"
1073 if test -n "$CC"; then
1074 echo "$ac_t""$CC" 1>&6
1075 else
1076 echo "$ac_t""no" 1>&6
1077 fi
1078
1079 if test -z "$CC"; then
1080 case "`uname -s`" in
1081 *win32* | *WIN32*)
1082 # Extract the first word of "cl", so it can be a program name with args.
1083 set dummy cl; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089 if test -n "$CC"; then
1090 ac_cv_prog_CC="$CC" # Let the user override the test.
1091 else
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 ac_dummy="$PATH"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1097 ac_cv_prog_CC="cl"
1098 break
1099 fi
1100 done
1101 IFS="$ac_save_ifs"
1102 fi
1103 fi
1104 CC="$ac_cv_prog_CC"
1105 if test -n "$CC"; then
1106 echo "$ac_t""$CC" 1>&6
1107 else
1108 echo "$ac_t""no" 1>&6
1109 fi
1110 ;;
1111 esac
1112 fi
1113 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1114 fi
1115
1116 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1118
1119 ac_ext=c
1120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1121 ac_cpp='$CPP $CPPFLAGS'
1122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1124 cross_compiling=$ac_cv_prog_cc_cross
1125
1126 cat > conftest.$ac_ext << EOF
1127
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1130
1131 main(){return(0);}
1132 EOF
1133 if { (eval echo configure:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1134 ac_cv_prog_cc_works=yes
1135 # If we can't run a trivial program, we are probably using a cross compiler.
1136 if (./conftest; exit) 2>/dev/null; then
1137 ac_cv_prog_cc_cross=no
1138 else
1139 ac_cv_prog_cc_cross=yes
1140 fi
1141 else
1142 echo "configure: failed program was:" >&5
1143 cat conftest.$ac_ext >&5
1144 ac_cv_prog_cc_works=no
1145 fi
1146 rm -fr conftest*
1147 ac_ext=c
1148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1149 ac_cpp='$CPP $CPPFLAGS'
1150 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1151 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1152 cross_compiling=$ac_cv_prog_cc_cross
1153
1154 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1155 if test $ac_cv_prog_cc_works = no; then
1156 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1157 fi
1158 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1160 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1161 cross_compiling=$ac_cv_prog_cc_cross
1162
1163 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether we are using GNU C" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1167 else
1168 cat > conftest.c <<EOF
1169 #ifdef __GNUC__
1170 yes;
1171 #endif
1172 EOF
1173 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1174 ac_cv_prog_gcc=yes
1175 else
1176 ac_cv_prog_gcc=no
1177 fi
1178 fi
1179
1180 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1181
1182 if test $ac_cv_prog_gcc = yes; then
1183 GCC=yes
1184 else
1185 GCC=
1186 fi
1187
1188 ac_test_CFLAGS="${CFLAGS+set}"
1189 ac_save_CFLAGS="$CFLAGS"
1190 CFLAGS=
1191 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether ${CC-cc} accepts -g" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1195 else
1196 echo 'void f(){}' > conftest.c
1197 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1198 ac_cv_prog_cc_g=yes
1199 else
1200 ac_cv_prog_cc_g=no
1201 fi
1202 rm -f conftest*
1203
1204 fi
1205
1206 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1207 if test "$ac_test_CFLAGS" = set; then
1208 CFLAGS="$ac_save_CFLAGS"
1209 elif test $ac_cv_prog_cc_g = yes; then
1210 if test "$GCC" = yes; then
1211 CFLAGS="-g -O2"
1212 else
1213 CFLAGS="-g"
1214 fi
1215 else
1216 if test "$GCC" = yes; then
1217 CFLAGS="-O2"
1218 else
1219 CFLAGS=
1220 fi
1221 fi
1222
1223 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1224 if test "${with_gnu_ld+set}" = set; then
1225 withval="$with_gnu_ld"
1226 test "$withval" = no || with_gnu_ld=yes
1227 else
1228 with_gnu_ld=no
1229 fi
1230
1231 ac_prog=ld
1232 if test "$ac_cv_prog_gcc" = yes; then
1233 # Check if gcc -print-prog-name=ld gives a path.
1234 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1235 echo "configure:1236: checking for ld used by GCC" >&5
1236 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1237 case "$ac_prog" in
1238 # Accept absolute paths.
1239 /* | [A-Za-z]:[\\/]*)
1240 re_direlt='/[^/][^/]*/\.\./'
1241 # Canonicalize the path of ld
1242 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1243 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1244 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1245 done
1246 test -z "$LD" && LD="$ac_prog"
1247 ;;
1248 "")
1249 # If it fails, then pretend we aren't using GCC.
1250 ac_prog=ld
1251 ;;
1252 *)
1253 # If it is relative, then search for the first ld in PATH.
1254 with_gnu_ld=unknown
1255 ;;
1256 esac
1257 elif test "$with_gnu_ld" = yes; then
1258 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1259 echo "configure:1260: checking for GNU ld" >&5
1260 else
1261 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1262 echo "configure:1263: checking for non-GNU ld" >&5
1263 fi
1264 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1267 if test -z "$LD"; then
1268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1269 for ac_dir in $PATH; do
1270 test -z "$ac_dir" && ac_dir=.
1271 if test -f "$ac_dir/$ac_prog"; then
1272 ac_cv_path_LD="$ac_dir/$ac_prog"
1273 # Check to see if the program is GNU ld. I'd rather use --version,
1274 # but apparently some GNU ld's only accept -v.
1275 # Break only if it was the GNU/non-GNU ld that we prefer.
1276 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1277 test "$with_gnu_ld" != no && break
1278 else
1279 test "$with_gnu_ld" != yes && break
1280 fi
1281 fi
1282 done
1283 IFS="$ac_save_ifs"
1284 else
1285 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1286 fi
1287 fi
1288
1289 LD="$ac_cv_path_LD"
1290 if test -n "$LD"; then
1291 echo "$ac_t""$LD" 1>&6
1292 else
1293 echo "$ac_t""no" 1>&6
1294 fi
1295 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1296
1297 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1298 echo "configure:1299: checking if the linker ($LD) is GNU ld" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301 else
1302 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1303 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1304 ac_cv_prog_gnu_ld=yes
1305 else
1306 ac_cv_prog_gnu_ld=no
1307 fi
1308 fi
1309
1310 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1311
1312
1313 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1314 echo "configure:1315: checking for BSD-compatible nm" >&5
1315 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1317 else
1318 if test -n "$NM"; then
1319 # Let the user override the test.
1320 ac_cv_path_NM="$NM"
1321 else
1322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1323 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1324 test -z "$ac_dir" && ac_dir=.
1325 if test -f $ac_dir/nm; then
1326 # Check to see if the nm accepts a BSD-compat flag.
1327 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1328 # nm: unknown option "B" ignored
1329 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1330 ac_cv_path_NM="$ac_dir/nm -B"
1331 break
1332 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1333 ac_cv_path_NM="$ac_dir/nm -p"
1334 break
1335 else
1336 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1337 continue # so that we can try to find one that supports BSD flags
1338 fi
1339 fi
1340 done
1341 IFS="$ac_save_ifs"
1342 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1343 fi
1344 fi
1345
1346 NM="$ac_cv_path_NM"
1347 echo "$ac_t""$NM" 1>&6
1348
1349
1350 # Check for command to grab the raw symbol name followed by C symbol from nm.
1351 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1352 echo "configure:1353: checking command to parse $NM output" >&5
1353 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1355 else
1356 # These are sane defaults that work on at least a few old systems.
1357 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1358
1359 # Character class describing NM global symbol codes.
1360 ac_symcode='[BCDEGRST]'
1361
1362 # Regexp to match symbols that can be accessed directly from C.
1363 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1364
1365 # Transform the above into a raw symbol and a C symbol.
1366 ac_symxfrm='\1 \2\3 \3'
1367
1368 # Transform an extracted symbol line into a proper C declaration
1369 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1370
1371 # Define system-specific variables.
1372 case "$host_os" in
1373 aix*)
1374 ac_symcode='[BCDT]'
1375 ;;
1376 cygwin* | mingw*)
1377 ac_symcode='[ABCDGISTW]'
1378 ;;
1379 hpux*)
1380 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1381 ;;
1382 irix*)
1383 ac_symcode='[BCDEGRST]'
1384 ;;
1385 solaris*)
1386 ac_symcode='[BDT]'
1387 ;;
1388 esac
1389
1390 # If we're using GNU nm, then use its standard symbol codes.
1391 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1392 ac_symcode='[ABCDGISTW]'
1393 fi
1394
1395 # Try without a prefix undercore, then with it.
1396 for ac_symprfx in "" "_"; do
1397
1398 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1399
1400 # Check to see that the pipe works correctly.
1401 ac_pipe_works=no
1402 rm -f conftest.$ac_ext
1403 cat > conftest.$ac_ext <<EOF
1404 #ifdef __cplusplus
1405 extern "C" {
1406 #endif
1407 char nm_test_var;
1408 void nm_test_func(){}
1409 #ifdef __cplusplus
1410 }
1411 #endif
1412 int main(){nm_test_var='a';nm_test_func;return 0;}
1413 EOF
1414
1415 if { (eval echo configure:1416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1416 # Now try to grab the symbols.
1417 ac_nlist=conftest.nm
1418
1419 if { (eval echo configure:1420: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1420
1421 # Try sorting and uniquifying the output.
1422 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
1423 mv -f "$ac_nlist"T "$ac_nlist"
1424 else
1425 rm -f "$ac_nlist"T
1426 fi
1427
1428 # Make sure that we snagged all the symbols we need.
1429 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
1430 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
1431 cat <<EOF > conftest.c
1432 #ifdef __cplusplus
1433 extern "C" {
1434 #endif
1435
1436 EOF
1437 # Now generate the symbol file.
1438 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1439
1440 cat <<EOF >> conftest.c
1441 #if defined (__STDC__) && __STDC__
1442 # define lt_ptr_t void *
1443 #else
1444 # define lt_ptr_t char *
1445 # define const
1446 #endif
1447
1448 /* The mapping between symbol names and symbols. */
1449 const struct {
1450 const char *name;
1451 lt_ptr_t address;
1452 }
1453 lt_preloaded_symbols[] =
1454 {
1455 EOF
1456 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1457 cat <<\EOF >> conftest.c
1458 {0, (lt_ptr_t) 0}
1459 };
1460
1461 #ifdef __cplusplus
1462 }
1463 #endif
1464 EOF
1465 # Now try linking the two files.
1466 mv conftest.$ac_objext conftestm.$ac_objext
1467 ac_save_LIBS="$LIBS"
1468 ac_save_CFLAGS="$CFLAGS"
1469 LIBS="conftestm.$ac_objext"
1470 CFLAGS="$CFLAGS$no_builtin_flag"
1471 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1472 ac_pipe_works=yes
1473 else
1474 echo "configure: failed program was:" >&5
1475 cat conftest.c >&5
1476 fi
1477 LIBS="$ac_save_LIBS"
1478 CFLAGS="$ac_save_CFLAGS"
1479 else
1480 echo "cannot find nm_test_func in $ac_nlist" >&5
1481 fi
1482 else
1483 echo "cannot find nm_test_var in $ac_nlist" >&5
1484 fi
1485 else
1486 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1487 fi
1488 else
1489 echo "$progname: failed program was:" >&5
1490 cat conftest.c >&5
1491 fi
1492 rm -rf conftest*
1493
1494 # Do not use the global_symbol_pipe unless it works.
1495 if test "$ac_pipe_works" = yes; then
1496 if test x"$ac_symprfx" = x"_"; then
1497 ac_cv_sys_symbol_underscore=yes
1498 else
1499 ac_cv_sys_symbol_underscore=no
1500 fi
1501 break
1502 else
1503 ac_cv_sys_global_symbol_pipe=
1504 fi
1505 done
1506
1507 fi
1508
1509
1510 ac_result=yes
1511 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1512 ac_result=no
1513 fi
1514 echo "$ac_t""$ac_result" 1>&6
1515
1516 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1517 echo "configure:1518: checking for _ prefix in compiled symbols" >&5
1518 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1520 else
1521 ac_cv_sys_symbol_underscore=no
1522 cat > conftest.$ac_ext <<EOF
1523 void nm_test_func(){}
1524 int main(){nm_test_func;return 0;}
1525 EOF
1526 if { (eval echo configure:1527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1527 # Now try to grab the symbols.
1528 ac_nlist=conftest.nm
1529 if { (eval echo configure:1530: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1530 # See whether the symbols have a leading underscore.
1531 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
1532 ac_cv_sys_symbol_underscore=yes
1533 else
1534 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
1535 :
1536 else
1537 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1538 fi
1539 fi
1540 else
1541 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1542 fi
1543 else
1544 echo "configure: failed program was:" >&5
1545 cat conftest.c >&5
1546 fi
1547 rm -rf conftest*
1548
1549 fi
1550
1551 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1552 USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
1553
1554 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1555 echo "configure:1556: checking whether ln -s works" >&5
1556 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1558 else
1559 rm -f conftestdata
1560 if ln -s X conftestdata 2>/dev/null
1561 then
1562 rm -f conftestdata
1563 ac_cv_prog_LN_S="ln -s"
1564 else
1565 ac_cv_prog_LN_S=ln
1566 fi
1567 fi
1568 LN_S="$ac_cv_prog_LN_S"
1569 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1570 echo "$ac_t""yes" 1>&6
1571 else
1572 echo "$ac_t""no" 1>&6
1573 fi
1574
1575 if test $host != $build; then
1576 ac_tool_prefix=${host_alias}-
1577 else
1578 ac_tool_prefix=
1579 fi
1580
1581
1582 # Check for any special flags to pass to ltconfig.
1583 libtool_flags="--cache-file=$cache_file"
1584 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1585 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1586 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1587 test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
1588 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1589 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1590 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1591
1592 # Some flags need to be propagated to the compiler or linker for good
1593 # libtool support.
1594 case "$host" in
1595 *-*-irix6*)
1596 # Find out which ABI we are using.
1597 echo '#line 1598 "configure"' > conftest.$ac_ext
1598 if { (eval echo configure:1599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1599 case "`/usr/bin/file conftest.o`" in
1600 *32-bit*)
1601 LD="${LD-ld} -32"
1602 ;;
1603 *N32*)
1604 LD="${LD-ld} -n32"
1605 ;;
1606 *64-bit*)
1607 LD="${LD-ld} -64"
1608 ;;
1609 esac
1610 fi
1611 rm -rf conftest*
1612 ;;
1613
1614 *-*-sco3.2v5*)
1615 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1616 SAVE_CFLAGS="$CFLAGS"
1617 CFLAGS="$CFLAGS -belf"
1618 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1619 echo "configure:1620: checking whether the C compiler needs -belf" >&5
1620 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1622 else
1623 cat > conftest.$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1626
1627 int main() {
1628
1629 ; return 0; }
1630 EOF
1631 if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1632 rm -rf conftest*
1633 lt_cv_cc_needs_belf=yes
1634 else
1635 echo "configure: failed program was:" >&5
1636 cat conftest.$ac_ext >&5
1637 rm -rf conftest*
1638 lt_cv_cc_needs_belf=no
1639 fi
1640 rm -f conftest*
1641 fi
1642
1643 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1644 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1645 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1646 CFLAGS="$SAVE_CFLAGS"
1647 fi
1648 ;;
1649
1650 *-*-cygwin*)
1651 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1652 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1655 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1657 else
1658 if test -n "$DLLTOOL"; then
1659 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1660 else
1661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1662 ac_dummy="$PATH"
1663 for ac_dir in $ac_dummy; do
1664 test -z "$ac_dir" && ac_dir=.
1665 if test -f $ac_dir/$ac_word; then
1666 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1667 break
1668 fi
1669 done
1670 IFS="$ac_save_ifs"
1671 fi
1672 fi
1673 DLLTOOL="$ac_cv_prog_DLLTOOL"
1674 if test -n "$DLLTOOL"; then
1675 echo "$ac_t""$DLLTOOL" 1>&6
1676 else
1677 echo "$ac_t""no" 1>&6
1678 fi
1679
1680
1681 if test -z "$ac_cv_prog_DLLTOOL"; then
1682 if test -n "$ac_tool_prefix"; then
1683 # Extract the first word of "dlltool", so it can be a program name with args.
1684 set dummy dlltool; ac_word=$2
1685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1686 echo "configure:1687: checking for $ac_word" >&5
1687 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1689 else
1690 if test -n "$DLLTOOL"; then
1691 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1692 else
1693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1694 ac_dummy="$PATH"
1695 for ac_dir in $ac_dummy; do
1696 test -z "$ac_dir" && ac_dir=.
1697 if test -f $ac_dir/$ac_word; then
1698 ac_cv_prog_DLLTOOL="dlltool"
1699 break
1700 fi
1701 done
1702 IFS="$ac_save_ifs"
1703 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1704 fi
1705 fi
1706 DLLTOOL="$ac_cv_prog_DLLTOOL"
1707 if test -n "$DLLTOOL"; then
1708 echo "$ac_t""$DLLTOOL" 1>&6
1709 else
1710 echo "$ac_t""no" 1>&6
1711 fi
1712
1713 else
1714 DLLTOOL="false"
1715 fi
1716 fi
1717
1718 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1719 set dummy ${ac_tool_prefix}as; ac_word=$2
1720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1721 echo "configure:1722: checking for $ac_word" >&5
1722 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1724 else
1725 if test -n "$AS"; then
1726 ac_cv_prog_AS="$AS" # Let the user override the test.
1727 else
1728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1729 ac_dummy="$PATH"
1730 for ac_dir in $ac_dummy; do
1731 test -z "$ac_dir" && ac_dir=.
1732 if test -f $ac_dir/$ac_word; then
1733 ac_cv_prog_AS="${ac_tool_prefix}as"
1734 break
1735 fi
1736 done
1737 IFS="$ac_save_ifs"
1738 fi
1739 fi
1740 AS="$ac_cv_prog_AS"
1741 if test -n "$AS"; then
1742 echo "$ac_t""$AS" 1>&6
1743 else
1744 echo "$ac_t""no" 1>&6
1745 fi
1746
1747
1748 if test -z "$ac_cv_prog_AS"; then
1749 if test -n "$ac_tool_prefix"; then
1750 # Extract the first word of "as", so it can be a program name with args.
1751 set dummy as; ac_word=$2
1752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1753 echo "configure:1754: checking for $ac_word" >&5
1754 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1756 else
1757 if test -n "$AS"; then
1758 ac_cv_prog_AS="$AS" # Let the user override the test.
1759 else
1760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1761 ac_dummy="$PATH"
1762 for ac_dir in $ac_dummy; do
1763 test -z "$ac_dir" && ac_dir=.
1764 if test -f $ac_dir/$ac_word; then
1765 ac_cv_prog_AS="as"
1766 break
1767 fi
1768 done
1769 IFS="$ac_save_ifs"
1770 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1771 fi
1772 fi
1773 AS="$ac_cv_prog_AS"
1774 if test -n "$AS"; then
1775 echo "$ac_t""$AS" 1>&6
1776 else
1777 echo "$ac_t""no" 1>&6
1778 fi
1779
1780 else
1781 AS="false"
1782 fi
1783 fi
1784
1785
1786 ;;
1787
1788 esac
1789
1790 # enable the --disable-libtool-lock switch
1791
1792 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1793 if test "${enable_libtool_lock+set}" = set; then
1794 enableval="$enable_libtool_lock"
1795 need_locks=$enableval
1796 else
1797 need_locks=yes
1798 fi
1799
1800
1801 if test x"$need_locks" = xno; then
1802 libtool_flags="$libtool_flags --disable-lock"
1803 fi
1804
1805
1806 # Save cache, so that ltconfig can load it
1807 cat > confcache <<\EOF
1808 # This file is a shell script that caches the results of configure
1809 # tests run on this system so they can be shared between configure
1810 # scripts and configure runs. It is not useful on other systems.
1811 # If it contains results you don't want to keep, you may remove or edit it.
1812 #
1813 # By default, configure uses ./config.cache as the cache file,
1814 # creating it if it does not exist already. You can give configure
1815 # the --cache-file=FILE option to use a different cache file; that is
1816 # what configure does when it calls configure scripts in
1817 # subdirectories, so they share the cache.
1818 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1819 # config.status only pays attention to the cache file if you give it the
1820 # --recheck option to rerun configure.
1821 #
1822 EOF
1823 # The following way of writing the cache mishandles newlines in values,
1824 # but we know of no workaround that is simple, portable, and efficient.
1825 # So, don't put newlines in cache variables' values.
1826 # Ultrix sh set writes to stderr and can't be redirected directly,
1827 # and sets the high bit in the cache file unless we assign to the vars.
1828 (set) 2>&1 |
1829 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1830 *ac_space=\ *)
1831 # `set' does not quote correctly, so add quotes (double-quote substitution
1832 # turns \\\\ into \\, and sed turns \\ into \).
1833 sed -n \
1834 -e "s/'/'\\\\''/g" \
1835 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1836 ;;
1837 *)
1838 # `set' quotes correctly as required by POSIX, so do not add quotes.
1839 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1840 ;;
1841 esac >> confcache
1842 if cmp -s $cache_file confcache; then
1843 :
1844 else
1845 if test -w $cache_file; then
1846 echo "updating cache $cache_file"
1847 cat confcache > $cache_file
1848 else
1849 echo "not updating unwritable cache $cache_file"
1850 fi
1851 fi
1852 rm -f confcache
1853
1854
1855 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1856 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1857 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1858 DLLTOOL="$DLLTOOL" AS="$AS" \
1859 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1860 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1861 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1862
1863 # Reload cache, that may have been modified by ltconfig
1864 if test -r "$cache_file"; then
1865 echo "loading cache $cache_file"
1866 . $cache_file
1867 else
1868 echo "creating cache $cache_file"
1869 > $cache_file
1870 fi
1871
1872
1873 # This can be used to rebuild libtool when needed
1874 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1875
1876 # Always use our own libtool.
1877 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1878
1879 # Redirect the config.log output again, so that the ltconfig log is not
1880 # clobbered by the next message.
1881 exec 5>>./config.log
1882
1883
1884 user_bfd_gas=
1885 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
1886 if test "${enable_bfd_assembler+set}" = set; then
1887 enableval="$enable_bfd_assembler"
1888 case "${enableval}" in
1889 yes) need_bfd=yes user_bfd_gas=yes ;;
1890 no) user_bfd_gas=no ;;
1891 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
1892 esac
1893 fi
1894 # Check whether --enable-targets or --disable-targets was given.
1895 if test "${enable_targets+set}" = set; then
1896 enableval="$enable_targets"
1897 case "${enableval}" in
1898 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1899 ;;
1900 no) enable_targets= ;;
1901 *) enable_targets=$enableval ;;
1902 esac
1903 fi
1904 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1905 if test "${enable_commonbfdlib+set}" = set; then
1906 enableval="$enable_commonbfdlib"
1907 case "${enableval}" in
1908 yes) commonbfdlib=true ;;
1909 no) commonbfdlib=false ;;
1910 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1911 esac
1912 fi
1913
1914 using_cgen=no
1915
1916 # Generate a header file
1917
1918
1919
1920
1921 te_file=generic
1922
1923 # Makefile target for installing gas in $(tooldir)/bin.
1924 install_tooldir=install-exec-tooldir
1925
1926 canon_targets=""
1927 if test -n "$enable_targets" ; then
1928 for t in `echo $enable_targets | sed 's/,/ /g'`; do
1929 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $t 2>/dev/null`
1930 if test -n "$result" ; then
1931 canon_targets="$canon_targets $result"
1932 # else
1933 # # Permit "all", etc. We don't support it yet though.
1934 # canon_targets="$canon_targets $t"
1935 fi
1936 done
1937 _gas_uniq_list="$canon_targets"
1938 _gas_uniq_newlist=""
1939 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
1940 case $_gas_uniq_i in
1941 _gas_uniq_dummy) ;;
1942 *) case " $_gas_uniq_newlist " in
1943 *" $_gas_uniq_i "*) ;;
1944 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
1945 esac ;;
1946 esac
1947 done
1948 canon_targets=$_gas_uniq_newlist
1949
1950 fi
1951
1952 emulations=""
1953
1954 for this_target in $target $canon_targets ; do
1955
1956 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
1957
1958 # check for architecture variants
1959 arch=
1960 endian=
1961 case ${cpu} in
1962 alpha*) cpu_type=alpha ;;
1963 armeb) cpu_type=arm endian=big ;;
1964 arm*) cpu_type=arm endian=little ;;
1965 armb*) cpu_type=arm endian=little ;;
1966 armv*l) cpu_type=arm endian=little ;;
1967 armv*b) cpu_type=arm endian=big ;;
1968 strongarm*) cpu_type=arm endian=little ;;
1969 thumb*) cpu_type=arm endian=little ;;
1970 hppa*) cpu_type=hppa ;;
1971 i[456]86) cpu_type=i386 ;;
1972 m680[012346]0) cpu_type=m68k ;;
1973 m68008) cpu_type=m68k ;;
1974 m683??) cpu_type=m68k ;;
1975 m5200) cpu_type=m68k ;;
1976 m8*) cpu_type=m88k ;;
1977 mips*el) cpu_type=mips endian=little ;;
1978 mips*) cpu_type=mips endian=big ;;
1979 powerpcle*) cpu_type=ppc endian=little ;;
1980 powerpc*) cpu_type=ppc endian=big ;;
1981 rs6000*) cpu_type=ppc ;;
1982 sparclite*) cpu_type=sparc arch=sparclite ;;
1983 sparclet*) cpu_type=sparc arch=sparclet ;;
1984 sparc64*) cpu_type=sparc arch=v9-64 ;;
1985 sparc86x*) cpu_type=sparc arch=sparc86x ;;
1986 sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
1987 v850*) cpu_type=v850 ;;
1988 *) cpu_type=${cpu} ;;
1989 esac
1990
1991 if test ${this_target} = $target ; then
1992 target_cpu_type=${cpu_type}
1993 elif test ${target_cpu_type} != ${cpu_type} ; then
1994 continue
1995 fi
1996
1997 generic_target=${cpu_type}-$vendor-$os
1998 dev=no
1999 bfd_gas=no
2000 em=generic
2001
2002 # assign object format
2003 case ${generic_target} in
2004 a29k-*-coff) fmt=coff ;;
2005 a29k-amd-udi) fmt=coff ;;
2006 a29k-amd-ebmon) fmt=coff ;;
2007 a29k-nyu-sym1) fmt=coff ;;
2008 a29k-*-vxworks*) fmt=coff ;;
2009
2010 alpha*-*-*vms*) fmt=evax ;;
2011 alpha*-*-netware*) fmt=ecoff ;;
2012 alpha*-*-openbsd*) fmt=ecoff ;;
2013 alpha*-*-osf*) fmt=ecoff ;;
2014 alpha*-*-linuxecoff*) fmt=ecoff ;;
2015 alpha*-*-linux-gnu*) fmt=elf em=linux ;;
2016 alpha*-*-netbsd*) fmt=elf em=nbsd ;;
2017
2018 arc-*-elf*) fmt=elf bfd_gas=yes ;;
2019
2020 arm-*-aout) fmt=aout ;;
2021 arm-*-coff | thumb-*-coff) fmt=coff ;;
2022 arm-*-elf | thumb-*-elf) fmt=elf ;;
2023 arm-*-linux*aout*) fmt=aout em=linux ;;
2024 arm-*-linux* | armv*-*-linux-gnu) fmt=elf em=linux ;;
2025 arm-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
2026 arm-*-oabi | thumb-*-oabi) fmt=elf ;;
2027 arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
2028 arm-*-pe | thumb-*-pe) fmt=coff em=pe ;;
2029 arm-*-riscix*) fmt=aout em=riscix ;;
2030
2031 d10v-*-*) fmt=elf bfd_gas=yes ;;
2032 d30v-*-*) fmt=elf bfd_gas=yes ;;
2033
2034
2035 fr30-*-*) fmt=elf bfd_gas=yes ;;
2036
2037 hppa-*-*elf*) fmt=elf em=hppa ;;
2038 hppa-*-linux-gnu*) fmt=elf em=hppa ;;
2039 hppa-*-lites*) fmt=elf em=hppa ;;
2040 hppa-*-osf*) fmt=som em=hppa ;;
2041 hppa-*-rtems*) fmt=elf em=hppa ;;
2042 hppa-*-hpux*) fmt=som em=hppa ;;
2043 hppa-*-mpeix*) fmt=som em=hppa ;;
2044 hppa-*-bsd*) fmt=som em=hppa ;;
2045 hppa-*-hiux*) fmt=som em=hppa ;;
2046
2047 h8300-*-coff) fmt=coff ;;
2048
2049 i386-ibm-aix*) fmt=coff em=i386aix ;;
2050 i386-sequent-bsd*) fmt=aout em=dynix bfd_gas=yes ;;
2051 i386-*-beospe*) fmt=coff em=pe bfd_gas=yes ;;
2052 i386-*-beoself* | i386-*-beos*) fmt=elf bfd_gas=yes ;;
2053 i386-*-bsd*) fmt=aout em=386bsd ;;
2054 i386-*-netbsd0.8) fmt=aout em=386bsd ;;
2055 i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;;
2056 i386-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes;;
2057 i386-*-linux*aout* | i386-*-linuxoldld) fmt=aout em=linux ;;
2058 i386-*-linux*coff*) fmt=coff em=linux ;;
2059 i386-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
2060 i386-*-lynxos*) fmt=coff em=lynx ;;
2061 i386-*-sysv4* | i386-*-solaris* | i386-*-elf)
2062 fmt=elf bfd_gas=yes ;;
2063 i386-*-freebsdaout* | i386-*-freebsd12.* | i386-*-freebsd12)
2064 fmt=aout em=386bsd ;;
2065 i386-*-freebsd*) fmt=elf bfd_gas=yes ;;
2066 i386-*-coff | i386-*-sysv* | i386-*-sco3.2v5*coff | i386-*-isc*)
2067 fmt=coff ;;
2068 i386-*-sco3.2v5*) fmt=elf
2069 if test ${this_target} = $target; then
2070 cat >> confdefs.h <<\EOF
2071 #define SCO_ELF 1
2072 EOF
2073
2074 fi
2075 ;;
2076 i386-*-sco3.2*) fmt=coff ;;
2077 i386-*-vsta) fmt=aout ;;
2078 i386-*-msdosdjgpp* | i386-*-go32* | i386-go32-rtems*)
2079 fmt=coff em=go32;;
2080 i386-*-rtemself*) fmt=elf ;;
2081 i386-*-rtems*) fmt=coff ;;
2082 i386-*-gnu*) fmt=elf ;;
2083 i386-*-mach*)
2084 fmt=aout em=mach bfd_gas=yes ;;
2085 i386-*-msdos*) fmt=aout ;;
2086 i386-*-moss*) fmt=elf ;;
2087 i386-*-pe) fmt=coff em=pe ;;
2088 i386-*-cygwin*) fmt=coff em=pe bfd_gas=yes ;;
2089 i386-*-mingw32*) fmt=coff em=pe bfd_gas=yes ;;
2090 i386-*-*nt*) fmt=coff em=pe ;;
2091 i960-*-bout) fmt=bout ;;
2092 i960-*-coff) fmt=coff em=ic960 ;;
2093 i960-*-rtems*) fmt=coff em=ic960 ;;
2094 i960-*-nindy*) fmt=bout ;;
2095 i960-*-vxworks4*) fmt=bout ;;
2096 i960-*-vxworks5.0) fmt=bout ;;
2097 i960-*-vxworks5.*) fmt=coff em=ic960 ;;
2098 i960-*-vxworks*) fmt=bout ;;
2099 i960-*-elf*) fmt=elf ;;
2100
2101 m32r-*-*) fmt=elf bfd_gas=yes ;;
2102
2103 m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*)
2104 fmt=aout em=sun3 ;;
2105 m68k-motorola-sysv*) fmt=coff em=delta ;;
2106 m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
2107 m68k-apollo-*) fmt=coff em=apollo ;;
2108 m68k-*-sysv4*) # must be before -sysv*
2109 fmt=elf em=svr4 ;;
2110 m68k-*-elf*) fmt=elf ;;
2111 m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*)
2112 fmt=coff ;;
2113 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
2114 m68k-*-linux*aout*) fmt=aout em=linux ;;
2115 m68k-*-linux-gnu*) fmt=elf em=linux ;;
2116 m68k-*-gnu*) fmt=elf ;;
2117 m68k-*-lynxos*) fmt=coff em=lynx ;;
2118 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
2119 m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
2120 m68k-apple-aux*) fmt=coff em=aux ;;
2121 m68k-*-psos*) fmt=elf em=psos;;
2122
2123 m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
2124 m88k-*-coff*) fmt=coff ;;
2125
2126 mcore-*-elf) fmt=elf bfd_gas=yes ;;
2127 mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
2128
2129 # don't change em like *-*-bsd does
2130 mips-dec-netbsd*) fmt=elf endian=little ;;
2131 mips-dec-openbsd*) fmt=elf endian=little ;;
2132 mips-dec-bsd*) fmt=aout endian=little ;;
2133 mips-sony-bsd*) fmt=ecoff ;;
2134 mips-*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
2135 mips-*-ultrix*) fmt=ecoff endian=little ;;
2136 mips-*-osf*) fmt=ecoff endian=little ;;
2137 mips-*-ecoff*) fmt=ecoff ;;
2138 mips-*-ecoff*) fmt=ecoff ;;
2139 mips-*-irix6*) fmt=elf ;;
2140 mips-*-irix5*) fmt=elf ;;
2141 mips-*-irix*) fmt=ecoff ;;
2142 mips-*-lnews*) fmt=ecoff em=lnews ;;
2143 mips-*-riscos*) fmt=ecoff ;;
2144 mips-*-sysv*) fmt=ecoff ;;
2145 mips-*-elf* | mips-*-rtems* | mips-*-linux-gnu* | mips-*-gnu* | mips-*-openbsd*)
2146 fmt=elf ;;
2147 mips-*-vxworks*) fmt=elf
2148 cat >> confdefs.h <<\EOF
2149 #define MIPS_STABS_ELF 1
2150 EOF
2151
2152 ;;
2153 mn10200-*-*) fmt=elf bfd_gas=yes ;;
2154 mn10300-*-*) fmt=elf bfd_gas=yes ;;
2155 ppc-*-pe | ppc-*-cygwin* | ppc-*-winnt*)
2156 fmt=coff em=pe ;;
2157 ppc-*-aix*) fmt=coff ;;
2158 ppc-*-beos*) fmt=coff ;;
2159 ppc-*-*bsd* | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
2160 fmt=elf ;;
2161 ppc-*-linux-gnu*) fmt=elf
2162 case "$endian" in
2163 big) ;;
2164 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
2165 esac
2166 ;;
2167 ppc-*-solaris*) fmt=elf
2168 if test ${this_target} = $target; then
2169 cat >> confdefs.h <<\EOF
2170 #define TARGET_SOLARIS_COMMENT 1
2171 EOF
2172
2173 fi
2174 if test x${endian} = xbig; then
2175 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
2176 fi
2177 ;;
2178 ppc-*-rtems*) fmt=elf ;;
2179 ppc-*-macos* | ppc-*-mpw*)
2180 fmt=coff em=macos ;;
2181 ppc-*-netware*) fmt=elf em=ppcnw ;;
2182 ppc-*-vxworks*) fmt=elf ;;
2183
2184 sh-*-elf*) fmt=elf ;;
2185 sh-*-coff*) fmt=coff ;;
2186 sh-*-rtemself*) fmt=elf ;;
2187 sh-*-rtems*) fmt=coff ;;
2188
2189 ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
2190 ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
2191 ns32k-pc532-openbsd*) fmt=aout em=nbsd532 ;;
2192
2193 sparc-*-rtems*) fmt=aout ;;
2194 sparc-*-sunos4*) fmt=aout em=sun3 ;;
2195 sparc-*-aout | sparc*-*-vxworks*)
2196 fmt=aout em=sparcaout ;;
2197 sparc-*-coff) fmt=coff ;;
2198 sparc-*-linux*aout*) fmt=aout em=linux ;;
2199 sparc-*-linux-gnu*) fmt=elf em=linux ;;
2200 sparc-*-lynxos*) fmt=coff em=lynx ;;
2201 sparc-fujitsu-none) fmt=aout ;;
2202 sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*)
2203 fmt=elf ;;
2204 sparc-*-netbsd*) fmt=aout em=nbsd ;;
2205 sparc-*-openbsd*) fmt=aout em=nbsd ;;
2206
2207 strongarm-*-coff) fmt=coff ;;
2208 strongarm-*-elf) fmt=elf ;;
2209
2210 tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
2211 tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
2212 tic80-*-*) fmt=coff ;;
2213
2214 v850-*-*) fmt=elf bfd_gas=yes ;;
2215 v850e-*-*) fmt=elf bfd_gas=yes ;;
2216 v850ea-*-*) fmt=elf bfd_gas=yes ;;
2217
2218 vax-*-bsd* | vax-*-ultrix*)
2219 fmt=aout ;;
2220 vax-*-vms) fmt=vms ;;
2221
2222
2223 z8k-*-coff | z8k-*-sim)
2224 fmt=coff ;;
2225
2226 w65-*-*) fmt=coff ;;
2227
2228 *-*-aout | *-*-scout)
2229 fmt=aout ;;
2230 *-*-nindy*)
2231 fmt=bout ;;
2232 *-*-bsd*)
2233 fmt=aout em=sun3 ;;
2234 *-*-generic) fmt=generic ;;
2235 *-*-xray | *-*-hms) fmt=coff ;;
2236 *-*-sim) fmt=coff ;;
2237 *-*-elf | *-*-sysv4* | *-*-solaris*)
2238 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
2239 fmt=elf dev=yes ;;
2240 *-*-vxworks) fmt=aout ;;
2241 *-*-netware) fmt=elf ;;
2242 esac
2243
2244 if test ${this_target} = $target ; then
2245 endian_def=
2246 if test x${endian} = xbig; then
2247 endian_def=1
2248 elif test x${endian} = xlittle; then
2249 endian_def=0
2250 fi
2251 if test x${endian_def} != x; then
2252 cat >> confdefs.h <<EOF
2253 #define TARGET_BYTES_BIG_ENDIAN $endian_def
2254 EOF
2255
2256 fi
2257 fi
2258
2259 case ${cpu_type}-${fmt} in
2260 alpha*-*) bfd_gas=yes ;;
2261 arm-*) bfd_gas=yes ;;
2262 # not yet
2263 # i386-aout) bfd_gas=preferred ;;
2264 mips-*) bfd_gas=yes ;;
2265 ns32k-*) bfd_gas=yes ;;
2266 ppc-*) bfd_gas=yes ;;
2267 sparc-*) bfd_gas=yes ;;
2268 strongarm-*) bfd_gas=yes ;;
2269 *-elf) bfd_gas=yes ;;
2270 *-ecoff) bfd_gas=yes ;;
2271 *-som) bfd_gas=yes ;;
2272 *) ;;
2273 esac
2274
2275 # Other random stuff.
2276
2277 # Do we need the opcodes library?
2278 case ${cpu_type} in
2279 vax | i386 | tic30)
2280 ;;
2281
2282 *)
2283 need_opcodes=yes
2284
2285 case "${enable_shared}" in
2286 yes) shared_opcodes=true ;;
2287 *opcodes*) shared_opcodes=true ;;
2288 *) shared_opcodes=false ;;
2289 esac
2290 if test "${shared_opcodes}" = "true"; then
2291 # A shared libopcodes must be linked against libbfd.
2292 need_bfd=yes
2293 fi
2294 ;;
2295 esac
2296
2297 # Any other special object files needed ?
2298 case ${cpu_type} in
2299 fr30 | m32r)
2300 using_cgen=yes
2301 ;;
2302
2303 m68k)
2304 case ${extra_objects} in
2305 *m68k-parse.o*) ;;
2306 *) extra_objects="$extra_objects m68k-parse.o" ;;
2307 esac
2308 ;;
2309
2310 mips)
2311 echo ${extra_objects} | grep -s "itbl-parse.o"
2312 if test $? -ne 0 ; then
2313 extra_objects="$extra_objects itbl-parse.o"
2314 fi
2315
2316 echo ${extra_objects} | grep -s "itbl-lex.o"
2317 if test $? -ne 0 ; then
2318 extra_objects="$extra_objects itbl-lex.o"
2319 fi
2320
2321 echo ${extra_objects} | grep -s "itbl-ops.o"
2322 if test $? -ne 0 ; then
2323 extra_objects="$extra_objects itbl-ops.o"
2324 fi
2325 ;;
2326
2327 sparc)
2328 if test $this_target = $target ; then
2329 cat >> confdefs.h <<EOF
2330 #define DEFAULT_ARCH "${arch}"
2331 EOF
2332
2333 fi
2334 ;;
2335 *)
2336 ;;
2337 esac
2338
2339 if test $using_cgen = yes ; then
2340 case "x${extra_objects}" in
2341 *cgen.o*) ;;
2342 *) extra_objects="$extra_objects cgen.o" ;;
2343 esac
2344 fi
2345
2346 # See if we really can support this configuration with the emulation code.
2347
2348 if test $this_target = $target ; then
2349 primary_bfd_gas=$bfd_gas
2350 obj_format=$fmt
2351 te_file=$em
2352
2353 if test $bfd_gas = no ; then
2354 # Can't support other configurations this way.
2355 break
2356 fi
2357 elif test $bfd_gas = no ; then
2358 # Can't support this configuration.
2359 break
2360 fi
2361
2362 # From target name and format, produce a list of supported emulations.
2363
2364 case ${generic_target}-${fmt} in
2365 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2366 mips-*-linux-gnu*-*) case "$endian" in
2367 big) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2368 *) emulation="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
2369 esac ;;
2370 mips-*-lnews*-ecoff) ;;
2371 mips-*-*-ecoff) case "$endian" in
2372 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
2373 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
2374 esac ;;
2375 mips-*-*-elf) case "$endian" in
2376 big) emulation="mipsbelf mipslelf mipself" ;;
2377 *) emulation="mipslelf mipsbelf mipself" ;;
2378 # Uncommenting the next line will turn on support for i386 COFF
2379 # in any i386 ELF configuration. This probably doesn't work
2380 # correctly.
2381 # i386-*-*-elf) emulation="i386coff i386elf" ;;
2382 esac ;;
2383 esac
2384
2385 emulations="$emulations $emulation"
2386
2387 done
2388
2389 # Assign floating point type. Most processors with FP support
2390 # IEEE FP. On those that don't support FP at all, usually IEEE
2391 # is emulated.
2392 case ${target_cpu} in
2393 vax | tahoe ) atof=${target_cpu} ;;
2394 *) atof=ieee ;;
2395 esac
2396
2397 case "${obj_format}" in
2398 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
2399 esac
2400
2401 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
2402 cgen_cpu_prefix=""
2403 if test $using_cgen = yes ; then
2404 case ${target_cpu} in
2405 *) cgen_cpu_prefix=${target_cpu} ;;
2406 esac
2407
2408 cat >> confdefs.h <<\EOF
2409 #define USING_CGEN 1
2410 EOF
2411
2412 fi
2413
2414
2415 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
2416 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
2417 fi
2418
2419 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
2420 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
2421 fi
2422
2423 case ${user_bfd_gas}-${primary_bfd_gas} in
2424 yes-yes | no-no)
2425 # We didn't override user's choice.
2426 ;;
2427 no-yes)
2428 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
2429 ;;
2430 no-preferred)
2431 primary_bfd_gas=no
2432 ;;
2433 *-preferred)
2434 primary_bfd_gas=yes
2435 ;;
2436 yes-*)
2437 primary_bfd_gas=yes
2438 ;;
2439 -*)
2440 # User specified nothing.
2441 ;;
2442 esac
2443
2444 # Some COFF configurations want these random other flags set.
2445 case ${obj_format} in
2446 coff)
2447 case ${target_cpu_type} in
2448 i386) cat >> confdefs.h <<\EOF
2449 #define I386COFF 1
2450 EOF
2451 ;;
2452 m68k) cat >> confdefs.h <<\EOF
2453 #define M68KCOFF 1
2454 EOF
2455 ;;
2456 m88k) cat >> confdefs.h <<\EOF
2457 #define M88KCOFF 1
2458 EOF
2459 ;;
2460 esac
2461 ;;
2462 esac
2463
2464 # Getting this done right is going to be a bitch. Each configuration specified
2465 # with --enable-targets=... should be checked for environment, format, cpu, and
2466 # bfd_gas setting.
2467 #
2468 # For each configuration, the necessary object file support code must be linked
2469 # in. This might be only one, it might be up to four. The necessary emulation
2470 # code needs to be provided, too.
2471 #
2472 # And then there's "--enable-targets=all"....
2473 #
2474 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2475
2476 formats="${obj_format}"
2477 emfiles=""
2478 EMULATIONS=""
2479 _gas_uniq_list="$emulations"
2480 _gas_uniq_newlist=""
2481 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2482 case $_gas_uniq_i in
2483 _gas_uniq_dummy) ;;
2484 *) case " $_gas_uniq_newlist " in
2485 *" $_gas_uniq_i "*) ;;
2486 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2487 esac ;;
2488 esac
2489 done
2490 emulations=$_gas_uniq_newlist
2491
2492 for em in . $emulations ; do
2493 case $em in
2494 .) continue ;;
2495 mipsbelf | mipslelf)
2496 fmt=elf file=mipself ;;
2497 mipsbecoff | mipslecoff)
2498 fmt=ecoff file=mipsecoff ;;
2499 i386coff)
2500 fmt=coff file=i386coff ;;
2501 i386elf)
2502 fmt=elf file=i386elf ;;
2503 esac
2504 formats="$formats $fmt"
2505 emfiles="$emfiles e-$file.o"
2506 EMULATIONS="$EMULATIONS &$em,"
2507 done
2508 _gas_uniq_list="$formats"
2509 _gas_uniq_newlist=""
2510 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2511 case $_gas_uniq_i in
2512 _gas_uniq_dummy) ;;
2513 *) case " $_gas_uniq_newlist " in
2514 *" $_gas_uniq_i "*) ;;
2515 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2516 esac ;;
2517 esac
2518 done
2519 formats=$_gas_uniq_newlist
2520
2521 _gas_uniq_list="$emfiles"
2522 _gas_uniq_newlist=""
2523 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2524 case $_gas_uniq_i in
2525 _gas_uniq_dummy) ;;
2526 *) case " $_gas_uniq_newlist " in
2527 *" $_gas_uniq_i "*) ;;
2528 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2529 esac ;;
2530 esac
2531 done
2532 emfiles=$_gas_uniq_newlist
2533
2534 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2535 for fmt in $formats ; do
2536 case $fmt in
2537 aout) cat >> confdefs.h <<\EOF
2538 #define OBJ_MAYBE_AOUT 1
2539 EOF
2540 ;;
2541 bout) cat >> confdefs.h <<\EOF
2542 #define OBJ_MAYBE_BOUT 1
2543 EOF
2544 ;;
2545 coff) cat >> confdefs.h <<\EOF
2546 #define OBJ_MAYBE_COFF 1
2547 EOF
2548 ;;
2549 ecoff) cat >> confdefs.h <<\EOF
2550 #define OBJ_MAYBE_ECOFF 1
2551 EOF
2552 ;;
2553 elf) cat >> confdefs.h <<\EOF
2554 #define OBJ_MAYBE_ELF 1
2555 EOF
2556 ;;
2557 generic) cat >> confdefs.h <<\EOF
2558 #define OBJ_MAYBE_GENERIC 1
2559 EOF
2560 ;;
2561 hp300) cat >> confdefs.h <<\EOF
2562 #define OBJ_MAYBE_HP300 1
2563 EOF
2564 ;;
2565 ieee) cat >> confdefs.h <<\EOF
2566 #define OBJ_MAYBE_IEEE 1
2567 EOF
2568 ;;
2569 som) cat >> confdefs.h <<\EOF
2570 #define OBJ_MAYBE_SOM 1
2571 EOF
2572 ;;
2573 vms) cat >> confdefs.h <<\EOF
2574 #define OBJ_MAYBE_VMS 1
2575 EOF
2576 ;;
2577 esac
2578 extra_objects="$extra_objects obj-$fmt.o"
2579 done
2580 obj_format=multi
2581 fi
2582 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2583 te_file=multi
2584 extra_objects="$extra_objects $emfiles"
2585 DEFAULT_EMULATION=`set . $emulations ; echo $2`
2586 cat >> confdefs.h <<\EOF
2587 #define USE_EMULATIONS 1
2588 EOF
2589
2590 fi
2591
2592 cat >> confdefs.h <<EOF
2593 #define EMULATIONS $EMULATIONS
2594 EOF
2595
2596 cat >> confdefs.h <<EOF
2597 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2598 EOF
2599
2600
2601 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2602 yes-*-coff) need_bfd=yes ;;
2603 no-*-coff) need_bfd=yes
2604 cat >> confdefs.h <<\EOF
2605 #define MANY_SEGMENTS 1
2606 EOF
2607 ;;
2608 esac
2609
2610 reject_dev_configs=yes
2611
2612 case ${reject_dev_configs}-${dev} in
2613 yes-yes) # Oops.
2614 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2615 ;;
2616 esac
2617
2618
2619
2620
2621
2622
2623
2624 case "${primary_bfd_gas}" in
2625 yes) cat >> confdefs.h <<\EOF
2626 #define BFD_ASSEMBLER 1
2627 EOF
2628
2629 need_bfd=yes ;;
2630 esac
2631
2632 # do we need the opcodes library?
2633 case "${need_opcodes}" in
2634 yes)
2635 OPCODES_LIB=../opcodes/libopcodes.la
2636 ;;
2637 esac
2638
2639 case "${need_bfd}" in
2640 yes)
2641 BFDLIB=../bfd/libbfd.la
2642 ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
2643 ;;
2644 esac
2645
2646
2647
2648
2649
2650
2651 cat >> confdefs.h <<EOF
2652 #define TARGET_ALIAS "${target_alias}"
2653 EOF
2654
2655 cat >> confdefs.h <<EOF
2656 #define TARGET_CANONICAL "${target}"
2657 EOF
2658
2659 cat >> confdefs.h <<EOF
2660 #define TARGET_CPU "${target_cpu}"
2661 EOF
2662
2663 cat >> confdefs.h <<EOF
2664 #define TARGET_VENDOR "${target_vendor}"
2665 EOF
2666
2667 cat >> confdefs.h <<EOF
2668 #define TARGET_OS "${target_os}"
2669 EOF
2670
2671
2672 # Extract the first word of "gcc", so it can be a program name with args.
2673 set dummy gcc; ac_word=$2
2674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_word" >&5
2676 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2678 else
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2681 else
2682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2683 ac_dummy="$PATH"
2684 for ac_dir in $ac_dummy; do
2685 test -z "$ac_dir" && ac_dir=.
2686 if test -f $ac_dir/$ac_word; then
2687 ac_cv_prog_CC="gcc"
2688 break
2689 fi
2690 done
2691 IFS="$ac_save_ifs"
2692 fi
2693 fi
2694 CC="$ac_cv_prog_CC"
2695 if test -n "$CC"; then
2696 echo "$ac_t""$CC" 1>&6
2697 else
2698 echo "$ac_t""no" 1>&6
2699 fi
2700
2701 if test -z "$CC"; then
2702 # Extract the first word of "cc", so it can be a program name with args.
2703 set dummy cc; ac_word=$2
2704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2705 echo "configure:2706: checking for $ac_word" >&5
2706 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2708 else
2709 if test -n "$CC"; then
2710 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 else
2712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2713 ac_prog_rejected=no
2714 ac_dummy="$PATH"
2715 for ac_dir in $ac_dummy; do
2716 test -z "$ac_dir" && ac_dir=.
2717 if test -f $ac_dir/$ac_word; then
2718 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2719 ac_prog_rejected=yes
2720 continue
2721 fi
2722 ac_cv_prog_CC="cc"
2723 break
2724 fi
2725 done
2726 IFS="$ac_save_ifs"
2727 if test $ac_prog_rejected = yes; then
2728 # We found a bogon in the path, so make sure we never use it.
2729 set dummy $ac_cv_prog_CC
2730 shift
2731 if test $# -gt 0; then
2732 # We chose a different compiler from the bogus one.
2733 # However, it has the same basename, so the bogon will be chosen
2734 # first if we set CC to just the basename; use the full file name.
2735 shift
2736 set dummy "$ac_dir/$ac_word" "$@"
2737 shift
2738 ac_cv_prog_CC="$@"
2739 fi
2740 fi
2741 fi
2742 fi
2743 CC="$ac_cv_prog_CC"
2744 if test -n "$CC"; then
2745 echo "$ac_t""$CC" 1>&6
2746 else
2747 echo "$ac_t""no" 1>&6
2748 fi
2749
2750 if test -z "$CC"; then
2751 case "`uname -s`" in
2752 *win32* | *WIN32*)
2753 # Extract the first word of "cl", so it can be a program name with args.
2754 set dummy cl; ac_word=$2
2755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2756 echo "configure:2757: checking for $ac_word" >&5
2757 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2759 else
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2762 else
2763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2764 ac_dummy="$PATH"
2765 for ac_dir in $ac_dummy; do
2766 test -z "$ac_dir" && ac_dir=.
2767 if test -f $ac_dir/$ac_word; then
2768 ac_cv_prog_CC="cl"
2769 break
2770 fi
2771 done
2772 IFS="$ac_save_ifs"
2773 fi
2774 fi
2775 CC="$ac_cv_prog_CC"
2776 if test -n "$CC"; then
2777 echo "$ac_t""$CC" 1>&6
2778 else
2779 echo "$ac_t""no" 1>&6
2780 fi
2781 ;;
2782 esac
2783 fi
2784 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2785 fi
2786
2787 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2788 echo "configure:2789: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2789
2790 ac_ext=c
2791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2795 cross_compiling=$ac_cv_prog_cc_cross
2796
2797 cat > conftest.$ac_ext << EOF
2798
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2801
2802 main(){return(0);}
2803 EOF
2804 if { (eval echo configure:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2805 ac_cv_prog_cc_works=yes
2806 # If we can't run a trivial program, we are probably using a cross compiler.
2807 if (./conftest; exit) 2>/dev/null; then
2808 ac_cv_prog_cc_cross=no
2809 else
2810 ac_cv_prog_cc_cross=yes
2811 fi
2812 else
2813 echo "configure: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2815 ac_cv_prog_cc_works=no
2816 fi
2817 rm -fr conftest*
2818 ac_ext=c
2819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2823 cross_compiling=$ac_cv_prog_cc_cross
2824
2825 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2826 if test $ac_cv_prog_cc_works = no; then
2827 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2828 fi
2829 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2830 echo "configure:2831: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2831 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2832 cross_compiling=$ac_cv_prog_cc_cross
2833
2834 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2835 echo "configure:2836: checking whether we are using GNU C" >&5
2836 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2838 else
2839 cat > conftest.c <<EOF
2840 #ifdef __GNUC__
2841 yes;
2842 #endif
2843 EOF
2844 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2845 ac_cv_prog_gcc=yes
2846 else
2847 ac_cv_prog_gcc=no
2848 fi
2849 fi
2850
2851 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2852
2853 if test $ac_cv_prog_gcc = yes; then
2854 GCC=yes
2855 else
2856 GCC=
2857 fi
2858
2859 ac_test_CFLAGS="${CFLAGS+set}"
2860 ac_save_CFLAGS="$CFLAGS"
2861 CFLAGS=
2862 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2863 echo "configure:2864: checking whether ${CC-cc} accepts -g" >&5
2864 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2866 else
2867 echo 'void f(){}' > conftest.c
2868 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2869 ac_cv_prog_cc_g=yes
2870 else
2871 ac_cv_prog_cc_g=no
2872 fi
2873 rm -f conftest*
2874
2875 fi
2876
2877 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2878 if test "$ac_test_CFLAGS" = set; then
2879 CFLAGS="$ac_save_CFLAGS"
2880 elif test $ac_cv_prog_cc_g = yes; then
2881 if test "$GCC" = yes; then
2882 CFLAGS="-g -O2"
2883 else
2884 CFLAGS="-g"
2885 fi
2886 else
2887 if test "$GCC" = yes; then
2888 CFLAGS="-O2"
2889 else
2890 CFLAGS=
2891 fi
2892 fi
2893
2894
2895 for ac_prog in 'bison -y' byacc
2896 do
2897 # Extract the first word of "$ac_prog", so it can be a program name with args.
2898 set dummy $ac_prog; ac_word=$2
2899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2900 echo "configure:2901: checking for $ac_word" >&5
2901 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2903 else
2904 if test -n "$YACC"; then
2905 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2906 else
2907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2908 ac_dummy="$PATH"
2909 for ac_dir in $ac_dummy; do
2910 test -z "$ac_dir" && ac_dir=.
2911 if test -f $ac_dir/$ac_word; then
2912 ac_cv_prog_YACC="$ac_prog"
2913 break
2914 fi
2915 done
2916 IFS="$ac_save_ifs"
2917 fi
2918 fi
2919 YACC="$ac_cv_prog_YACC"
2920 if test -n "$YACC"; then
2921 echo "$ac_t""$YACC" 1>&6
2922 else
2923 echo "$ac_t""no" 1>&6
2924 fi
2925
2926 test -n "$YACC" && break
2927 done
2928 test -n "$YACC" || YACC="yacc"
2929
2930 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2931 echo "configure:2932: checking how to run the C preprocessor" >&5
2932 # On Suns, sometimes $CPP names a directory.
2933 if test -n "$CPP" && test -d "$CPP"; then
2934 CPP=
2935 fi
2936 if test -z "$CPP"; then
2937 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2939 else
2940 # This must be in double quotes, not single quotes, because CPP may get
2941 # substituted into the Makefile and "${CC-cc}" will confuse make.
2942 CPP="${CC-cc} -E"
2943 # On the NeXT, cc -E runs the code through the compiler's parser,
2944 # not just through cpp.
2945 cat > conftest.$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2948 #include <assert.h>
2949 Syntax Error
2950 EOF
2951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2952 { (eval echo configure:2953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2954 if test -z "$ac_err"; then
2955 :
2956 else
2957 echo "$ac_err" >&5
2958 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2960 rm -rf conftest*
2961 CPP="${CC-cc} -E -traditional-cpp"
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 #include <assert.h>
2966 Syntax Error
2967 EOF
2968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2969 { (eval echo configure:2970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2971 if test -z "$ac_err"; then
2972 :
2973 else
2974 echo "$ac_err" >&5
2975 echo "configure: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2977 rm -rf conftest*
2978 CPP="${CC-cc} -nologo -E"
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 #include <assert.h>
2983 Syntax Error
2984 EOF
2985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2986 { (eval echo configure:2987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2988 if test -z "$ac_err"; then
2989 :
2990 else
2991 echo "$ac_err" >&5
2992 echo "configure: failed program was:" >&5
2993 cat conftest.$ac_ext >&5
2994 rm -rf conftest*
2995 CPP=/lib/cpp
2996 fi
2997 rm -f conftest*
2998 fi
2999 rm -f conftest*
3000 fi
3001 rm -f conftest*
3002 ac_cv_prog_CPP="$CPP"
3003 fi
3004 CPP="$ac_cv_prog_CPP"
3005 else
3006 ac_cv_prog_CPP="$CPP"
3007 fi
3008 echo "$ac_t""$CPP" 1>&6
3009
3010 missing_dir=`cd $ac_aux_dir && pwd`
3011 for ac_prog in flex lex
3012 do
3013 # Extract the first word of "$ac_prog", so it can be a program name with args.
3014 set dummy $ac_prog; ac_word=$2
3015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3016 echo "configure:3017: checking for $ac_word" >&5
3017 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3019 else
3020 if test -n "$LEX"; then
3021 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3022 else
3023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3024 ac_dummy="$PATH"
3025 for ac_dir in $ac_dummy; do
3026 test -z "$ac_dir" && ac_dir=.
3027 if test -f $ac_dir/$ac_word; then
3028 ac_cv_prog_LEX="$ac_prog"
3029 break
3030 fi
3031 done
3032 IFS="$ac_save_ifs"
3033 fi
3034 fi
3035 LEX="$ac_cv_prog_LEX"
3036 if test -n "$LEX"; then
3037 echo "$ac_t""$LEX" 1>&6
3038 else
3039 echo "$ac_t""no" 1>&6
3040 fi
3041
3042 test -n "$LEX" && break
3043 done
3044 test -n "$LEX" || LEX=""$missing_dir/missing flex""
3045
3046 # Extract the first word of "flex", so it can be a program name with args.
3047 set dummy flex; ac_word=$2
3048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3049 echo "configure:3050: checking for $ac_word" >&5
3050 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3052 else
3053 if test -n "$LEX"; then
3054 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3055 else
3056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3057 ac_dummy="$PATH"
3058 for ac_dir in $ac_dummy; do
3059 test -z "$ac_dir" && ac_dir=.
3060 if test -f $ac_dir/$ac_word; then
3061 ac_cv_prog_LEX="flex"
3062 break
3063 fi
3064 done
3065 IFS="$ac_save_ifs"
3066 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
3067 fi
3068 fi
3069 LEX="$ac_cv_prog_LEX"
3070 if test -n "$LEX"; then
3071 echo "$ac_t""$LEX" 1>&6
3072 else
3073 echo "$ac_t""no" 1>&6
3074 fi
3075
3076 if test -z "$LEXLIB"
3077 then
3078 case "$LEX" in
3079 flex*) ac_lib=fl ;;
3080 *) ac_lib=l ;;
3081 esac
3082 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3083 echo "configure:3084: checking for yywrap in -l$ac_lib" >&5
3084 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3086 echo $ac_n "(cached) $ac_c" 1>&6
3087 else
3088 ac_save_LIBS="$LIBS"
3089 LIBS="-l$ac_lib $LIBS"
3090 cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3093 /* Override any gcc2 internal prototype to avoid an error. */
3094 /* We use char because int might match the return type of a gcc2
3095 builtin and then its argument prototype would still apply. */
3096 char yywrap();
3097
3098 int main() {
3099 yywrap()
3100 ; return 0; }
3101 EOF
3102 if { (eval echo configure:3103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3103 rm -rf conftest*
3104 eval "ac_cv_lib_$ac_lib_var=yes"
3105 else
3106 echo "configure: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3108 rm -rf conftest*
3109 eval "ac_cv_lib_$ac_lib_var=no"
3110 fi
3111 rm -f conftest*
3112 LIBS="$ac_save_LIBS"
3113
3114 fi
3115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3116 echo "$ac_t""yes" 1>&6
3117 LEXLIB="-l$ac_lib"
3118 else
3119 echo "$ac_t""no" 1>&6
3120 fi
3121
3122 fi
3123
3124 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3125 echo "configure:3126: checking lex output file root" >&5
3126 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3128 else
3129 # The minimal lex program is just a single line: %%. But some broken lexes
3130 # (Solaris, I think it was) want two %% lines, so accommodate them.
3131 echo '%%
3132 %%' | $LEX
3133 if test -f lex.yy.c; then
3134 ac_cv_prog_lex_root=lex.yy
3135 elif test -f lexyy.c; then
3136 ac_cv_prog_lex_root=lexyy
3137 else
3138 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3139 fi
3140 fi
3141
3142 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3143 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3144
3145 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3146 echo "configure:3147: checking whether yytext is a pointer" >&5
3147 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3149 else
3150 # POSIX says lex can declare yytext either as a pointer or an array; the
3151 # default is implementation-dependent. Figure out which it is, since
3152 # not all implementations provide the %pointer and %array declarations.
3153 ac_cv_prog_lex_yytext_pointer=no
3154 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3155 ac_save_LIBS="$LIBS"
3156 LIBS="$LIBS $LEXLIB"
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3160 `cat $LEX_OUTPUT_ROOT.c`
3161 int main() {
3162
3163 ; return 0; }
3164 EOF
3165 if { (eval echo configure:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3166 rm -rf conftest*
3167 ac_cv_prog_lex_yytext_pointer=yes
3168 else
3169 echo "configure: failed program was:" >&5
3170 cat conftest.$ac_ext >&5
3171 fi
3172 rm -f conftest*
3173 LIBS="$ac_save_LIBS"
3174 rm -f "${LEX_OUTPUT_ROOT}.c"
3175
3176 fi
3177
3178 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3179 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3180 cat >> confdefs.h <<\EOF
3181 #define YYTEXT_POINTER 1
3182 EOF
3183
3184 fi
3185
3186
3187 ALL_LINGUAS=
3188 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3189 echo "configure:3190: checking for POSIXized ISC" >&5
3190 if test -d /etc/conf/kconfig.d &&
3191 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3192 then
3193 echo "$ac_t""yes" 1>&6
3194 ISC=yes # If later tests want to check for ISC.
3195 cat >> confdefs.h <<\EOF
3196 #define _POSIX_SOURCE 1
3197 EOF
3198
3199 if test "$GCC" = yes; then
3200 CC="$CC -posix"
3201 else
3202 CC="$CC -Xp"
3203 fi
3204 else
3205 echo "$ac_t""no" 1>&6
3206 ISC=
3207 fi
3208
3209 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3210 echo "configure:3211: checking for ANSI C header files" >&5
3211 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3212 echo $ac_n "(cached) $ac_c" 1>&6
3213 else
3214 cat > conftest.$ac_ext <<EOF
3215 #line 3216 "configure"
3216 #include "confdefs.h"
3217 #include <stdlib.h>
3218 #include <stdarg.h>
3219 #include <string.h>
3220 #include <float.h>
3221 EOF
3222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3223 { (eval echo configure:3224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3225 if test -z "$ac_err"; then
3226 rm -rf conftest*
3227 ac_cv_header_stdc=yes
3228 else
3229 echo "$ac_err" >&5
3230 echo "configure: failed program was:" >&5
3231 cat conftest.$ac_ext >&5
3232 rm -rf conftest*
3233 ac_cv_header_stdc=no
3234 fi
3235 rm -f conftest*
3236
3237 if test $ac_cv_header_stdc = yes; then
3238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 #include <string.h>
3243 EOF
3244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3245 egrep "memchr" >/dev/null 2>&1; then
3246 :
3247 else
3248 rm -rf conftest*
3249 ac_cv_header_stdc=no
3250 fi
3251 rm -f conftest*
3252
3253 fi
3254
3255 if test $ac_cv_header_stdc = yes; then
3256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3257 cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260 #include <stdlib.h>
3261 EOF
3262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3263 egrep "free" >/dev/null 2>&1; then
3264 :
3265 else
3266 rm -rf conftest*
3267 ac_cv_header_stdc=no
3268 fi
3269 rm -f conftest*
3270
3271 fi
3272
3273 if test $ac_cv_header_stdc = yes; then
3274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3275 if test "$cross_compiling" = yes; then
3276 :
3277 else
3278 cat > conftest.$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3281 #include <ctype.h>
3282 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3283 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3284 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3285 int main () { int i; for (i = 0; i < 256; i++)
3286 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3287 exit (0); }
3288
3289 EOF
3290 if { (eval echo configure:3291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3291 then
3292 :
3293 else
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3296 rm -fr conftest*
3297 ac_cv_header_stdc=no
3298 fi
3299 rm -fr conftest*
3300 fi
3301
3302 fi
3303 fi
3304
3305 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3306 if test $ac_cv_header_stdc = yes; then
3307 cat >> confdefs.h <<\EOF
3308 #define STDC_HEADERS 1
3309 EOF
3310
3311 fi
3312
3313 echo $ac_n "checking for working const""... $ac_c" 1>&6
3314 echo "configure:3315: checking for working const" >&5
3315 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3317 else
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321
3322 int main() {
3323
3324 /* Ultrix mips cc rejects this. */
3325 typedef int charset[2]; const charset x;
3326 /* SunOS 4.1.1 cc rejects this. */
3327 char const *const *ccp;
3328 char **p;
3329 /* NEC SVR4.0.2 mips cc rejects this. */
3330 struct point {int x, y;};
3331 static struct point const zero = {0,0};
3332 /* AIX XL C 1.02.0.0 rejects this.
3333 It does not let you subtract one const X* pointer from another in an arm
3334 of an if-expression whose if-part is not a constant expression */
3335 const char *g = "string";
3336 ccp = &g + (g ? g-g : 0);
3337 /* HPUX 7.0 cc rejects these. */
3338 ++ccp;
3339 p = (char**) ccp;
3340 ccp = (char const *const *) p;
3341 { /* SCO 3.2v4 cc rejects this. */
3342 char *t;
3343 char const *s = 0 ? (char *) 0 : (char const *) 0;
3344
3345 *t++ = 0;
3346 }
3347 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3348 int x[] = {25, 17};
3349 const int *foo = &x[0];
3350 ++foo;
3351 }
3352 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3353 typedef const int *iptr;
3354 iptr p = 0;
3355 ++p;
3356 }
3357 { /* AIX XL C 1.02.0.0 rejects this saying
3358 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3359 struct s { int j; const int *ap[3]; };
3360 struct s *b; b->j = 5;
3361 }
3362 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3363 const int foo = 10;
3364 }
3365
3366 ; return 0; }
3367 EOF
3368 if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3369 rm -rf conftest*
3370 ac_cv_c_const=yes
3371 else
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3374 rm -rf conftest*
3375 ac_cv_c_const=no
3376 fi
3377 rm -f conftest*
3378 fi
3379
3380 echo "$ac_t""$ac_cv_c_const" 1>&6
3381 if test $ac_cv_c_const = no; then
3382 cat >> confdefs.h <<\EOF
3383 #define const
3384 EOF
3385
3386 fi
3387
3388 echo $ac_n "checking for inline""... $ac_c" 1>&6
3389 echo "configure:3390: checking for inline" >&5
3390 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3392 else
3393 ac_cv_c_inline=no
3394 for ac_kw in inline __inline__ __inline; do
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398
3399 int main() {
3400 } $ac_kw foo() {
3401 ; return 0; }
3402 EOF
3403 if { (eval echo configure:3404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3404 rm -rf conftest*
3405 ac_cv_c_inline=$ac_kw; break
3406 else
3407 echo "configure: failed program was:" >&5
3408 cat conftest.$ac_ext >&5
3409 fi
3410 rm -f conftest*
3411 done
3412
3413 fi
3414
3415 echo "$ac_t""$ac_cv_c_inline" 1>&6
3416 case "$ac_cv_c_inline" in
3417 inline | yes) ;;
3418 no) cat >> confdefs.h <<\EOF
3419 #define inline
3420 EOF
3421 ;;
3422 *) cat >> confdefs.h <<EOF
3423 #define inline $ac_cv_c_inline
3424 EOF
3425 ;;
3426 esac
3427
3428 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3429 echo "configure:3430: checking for off_t" >&5
3430 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3432 else
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 #include <sys/types.h>
3437 #if STDC_HEADERS
3438 #include <stdlib.h>
3439 #include <stddef.h>
3440 #endif
3441 EOF
3442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3443 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3444 rm -rf conftest*
3445 ac_cv_type_off_t=yes
3446 else
3447 rm -rf conftest*
3448 ac_cv_type_off_t=no
3449 fi
3450 rm -f conftest*
3451
3452 fi
3453 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3454 if test $ac_cv_type_off_t = no; then
3455 cat >> confdefs.h <<\EOF
3456 #define off_t long
3457 EOF
3458
3459 fi
3460
3461 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3462 echo "configure:3463: checking for size_t" >&5
3463 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3464 echo $ac_n "(cached) $ac_c" 1>&6
3465 else
3466 cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3469 #include <sys/types.h>
3470 #if STDC_HEADERS
3471 #include <stdlib.h>
3472 #include <stddef.h>
3473 #endif
3474 EOF
3475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3476 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3477 rm -rf conftest*
3478 ac_cv_type_size_t=yes
3479 else
3480 rm -rf conftest*
3481 ac_cv_type_size_t=no
3482 fi
3483 rm -f conftest*
3484
3485 fi
3486 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3487 if test $ac_cv_type_size_t = no; then
3488 cat >> confdefs.h <<\EOF
3489 #define size_t unsigned
3490 EOF
3491
3492 fi
3493
3494 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3495 # for constant arguments. Useless!
3496 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3497 echo "configure:3498: checking for working alloca.h" >&5
3498 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3500 else
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 #include <alloca.h>
3505 int main() {
3506 char *p = alloca(2 * sizeof(int));
3507 ; return 0; }
3508 EOF
3509 if { (eval echo configure:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3510 rm -rf conftest*
3511 ac_cv_header_alloca_h=yes
3512 else
3513 echo "configure: failed program was:" >&5
3514 cat conftest.$ac_ext >&5
3515 rm -rf conftest*
3516 ac_cv_header_alloca_h=no
3517 fi
3518 rm -f conftest*
3519 fi
3520
3521 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3522 if test $ac_cv_header_alloca_h = yes; then
3523 cat >> confdefs.h <<\EOF
3524 #define HAVE_ALLOCA_H 1
3525 EOF
3526
3527 fi
3528
3529 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3530 echo "configure:3531: checking for alloca" >&5
3531 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3533 else
3534 cat > conftest.$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3537
3538 #ifdef __GNUC__
3539 # define alloca __builtin_alloca
3540 #else
3541 # ifdef _MSC_VER
3542 # include <malloc.h>
3543 # define alloca _alloca
3544 # else
3545 # if HAVE_ALLOCA_H
3546 # include <alloca.h>
3547 # else
3548 # ifdef _AIX
3549 #pragma alloca
3550 # else
3551 # ifndef alloca /* predefined by HP cc +Olibcalls */
3552 char *alloca ();
3553 # endif
3554 # endif
3555 # endif
3556 # endif
3557 #endif
3558
3559 int main() {
3560 char *p = (char *) alloca(1);
3561 ; return 0; }
3562 EOF
3563 if { (eval echo configure:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3564 rm -rf conftest*
3565 ac_cv_func_alloca_works=yes
3566 else
3567 echo "configure: failed program was:" >&5
3568 cat conftest.$ac_ext >&5
3569 rm -rf conftest*
3570 ac_cv_func_alloca_works=no
3571 fi
3572 rm -f conftest*
3573 fi
3574
3575 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3576 if test $ac_cv_func_alloca_works = yes; then
3577 cat >> confdefs.h <<\EOF
3578 #define HAVE_ALLOCA 1
3579 EOF
3580
3581 fi
3582
3583 if test $ac_cv_func_alloca_works = no; then
3584 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3585 # that cause trouble. Some versions do not even contain alloca or
3586 # contain a buggy version. If you still want to use their alloca,
3587 # use ar to extract alloca.o from them instead of compiling alloca.c.
3588 ALLOCA=alloca.${ac_objext}
3589 cat >> confdefs.h <<\EOF
3590 #define C_ALLOCA 1
3591 EOF
3592
3593
3594 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3595 echo "configure:3596: checking whether alloca needs Cray hooks" >&5
3596 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3598 else
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3602 #if defined(CRAY) && ! defined(CRAY2)
3603 webecray
3604 #else
3605 wenotbecray
3606 #endif
3607
3608 EOF
3609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3610 egrep "webecray" >/dev/null 2>&1; then
3611 rm -rf conftest*
3612 ac_cv_os_cray=yes
3613 else
3614 rm -rf conftest*
3615 ac_cv_os_cray=no
3616 fi
3617 rm -f conftest*
3618
3619 fi
3620
3621 echo "$ac_t""$ac_cv_os_cray" 1>&6
3622 if test $ac_cv_os_cray = yes; then
3623 for ac_func in _getb67 GETB67 getb67; do
3624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3625 echo "configure:3626: checking for $ac_func" >&5
3626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3628 else
3629 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 /* System header to define __stub macros and hopefully few prototypes,
3633 which can conflict with char $ac_func(); below. */
3634 #include <assert.h>
3635 /* Override any gcc2 internal prototype to avoid an error. */
3636 /* We use char because int might match the return type of a gcc2
3637 builtin and then its argument prototype would still apply. */
3638 char $ac_func();
3639
3640 int main() {
3641
3642 /* The GNU C library defines this for functions which it implements
3643 to always fail with ENOSYS. Some functions are actually named
3644 something starting with __ and the normal name is an alias. */
3645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3646 choke me
3647 #else
3648 $ac_func();
3649 #endif
3650
3651 ; return 0; }
3652 EOF
3653 if { (eval echo configure:3654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3654 rm -rf conftest*
3655 eval "ac_cv_func_$ac_func=yes"
3656 else
3657 echo "configure: failed program was:" >&5
3658 cat conftest.$ac_ext >&5
3659 rm -rf conftest*
3660 eval "ac_cv_func_$ac_func=no"
3661 fi
3662 rm -f conftest*
3663 fi
3664
3665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3667 cat >> confdefs.h <<EOF
3668 #define CRAY_STACKSEG_END $ac_func
3669 EOF
3670
3671 break
3672 else
3673 echo "$ac_t""no" 1>&6
3674 fi
3675
3676 done
3677 fi
3678
3679 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3680 echo "configure:3681: checking stack direction for C alloca" >&5
3681 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3683 else
3684 if test "$cross_compiling" = yes; then
3685 ac_cv_c_stack_direction=0
3686 else
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 find_stack_direction ()
3691 {
3692 static char *addr = 0;
3693 auto char dummy;
3694 if (addr == 0)
3695 {
3696 addr = &dummy;
3697 return find_stack_direction ();
3698 }
3699 else
3700 return (&dummy > addr) ? 1 : -1;
3701 }
3702 main ()
3703 {
3704 exit (find_stack_direction() < 0);
3705 }
3706 EOF
3707 if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3708 then
3709 ac_cv_c_stack_direction=1
3710 else
3711 echo "configure: failed program was:" >&5
3712 cat conftest.$ac_ext >&5
3713 rm -fr conftest*
3714 ac_cv_c_stack_direction=-1
3715 fi
3716 rm -fr conftest*
3717 fi
3718
3719 fi
3720
3721 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3722 cat >> confdefs.h <<EOF
3723 #define STACK_DIRECTION $ac_cv_c_stack_direction
3724 EOF
3725
3726 fi
3727
3728 for ac_hdr in unistd.h
3729 do
3730 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3731 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3732 echo "configure:3733: checking for $ac_hdr" >&5
3733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3735 else
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 #include <$ac_hdr>
3740 EOF
3741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3742 { (eval echo configure:3743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3744 if test -z "$ac_err"; then
3745 rm -rf conftest*
3746 eval "ac_cv_header_$ac_safe=yes"
3747 else
3748 echo "$ac_err" >&5
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3751 rm -rf conftest*
3752 eval "ac_cv_header_$ac_safe=no"
3753 fi
3754 rm -f conftest*
3755 fi
3756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3757 echo "$ac_t""yes" 1>&6
3758 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3759 cat >> confdefs.h <<EOF
3760 #define $ac_tr_hdr 1
3761 EOF
3762
3763 else
3764 echo "$ac_t""no" 1>&6
3765 fi
3766 done
3767
3768 for ac_func in getpagesize
3769 do
3770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3771 echo "configure:3772: checking for $ac_func" >&5
3772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3774 else
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3778 /* System header to define __stub macros and hopefully few prototypes,
3779 which can conflict with char $ac_func(); below. */
3780 #include <assert.h>
3781 /* Override any gcc2 internal prototype to avoid an error. */
3782 /* We use char because int might match the return type of a gcc2
3783 builtin and then its argument prototype would still apply. */
3784 char $ac_func();
3785
3786 int main() {
3787
3788 /* The GNU C library defines this for functions which it implements
3789 to always fail with ENOSYS. Some functions are actually named
3790 something starting with __ and the normal name is an alias. */
3791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3792 choke me
3793 #else
3794 $ac_func();
3795 #endif
3796
3797 ; return 0; }
3798 EOF
3799 if { (eval echo configure:3800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3800 rm -rf conftest*
3801 eval "ac_cv_func_$ac_func=yes"
3802 else
3803 echo "configure: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3805 rm -rf conftest*
3806 eval "ac_cv_func_$ac_func=no"
3807 fi
3808 rm -f conftest*
3809 fi
3810
3811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3812 echo "$ac_t""yes" 1>&6
3813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3814 cat >> confdefs.h <<EOF
3815 #define $ac_tr_func 1
3816 EOF
3817
3818 else
3819 echo "$ac_t""no" 1>&6
3820 fi
3821 done
3822
3823 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3824 echo "configure:3825: checking for working mmap" >&5
3825 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3827 else
3828 if test "$cross_compiling" = yes; then
3829 ac_cv_func_mmap_fixed_mapped=no
3830 else
3831 cat > conftest.$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834
3835 /* Thanks to Mike Haertel and Jim Avera for this test.
3836 Here is a matrix of mmap possibilities:
3837 mmap private not fixed
3838 mmap private fixed at somewhere currently unmapped
3839 mmap private fixed at somewhere already mapped
3840 mmap shared not fixed
3841 mmap shared fixed at somewhere currently unmapped
3842 mmap shared fixed at somewhere already mapped
3843 For private mappings, we should verify that changes cannot be read()
3844 back from the file, nor mmap's back from the file at a different
3845 address. (There have been systems where private was not correctly
3846 implemented like the infamous i386 svr4.0, and systems where the
3847 VM page cache was not coherent with the filesystem buffer cache
3848 like early versions of FreeBSD and possibly contemporary NetBSD.)
3849 For shared mappings, we should conversely verify that changes get
3850 propogated back to all the places they're supposed to be.
3851
3852 Grep wants private fixed already mapped.
3853 The main things grep needs to know about mmap are:
3854 * does it exist and is it safe to write into the mmap'd area
3855 * how to use it (BSD variants) */
3856 #include <sys/types.h>
3857 #include <fcntl.h>
3858 #include <sys/mman.h>
3859
3860 /* This mess was copied from the GNU getpagesize.h. */
3861 #ifndef HAVE_GETPAGESIZE
3862 # ifdef HAVE_UNISTD_H
3863 # include <unistd.h>
3864 # endif
3865
3866 /* Assume that all systems that can run configure have sys/param.h. */
3867 # ifndef HAVE_SYS_PARAM_H
3868 # define HAVE_SYS_PARAM_H 1
3869 # endif
3870
3871 # ifdef _SC_PAGESIZE
3872 # define getpagesize() sysconf(_SC_PAGESIZE)
3873 # else /* no _SC_PAGESIZE */
3874 # ifdef HAVE_SYS_PARAM_H
3875 # include <sys/param.h>
3876 # ifdef EXEC_PAGESIZE
3877 # define getpagesize() EXEC_PAGESIZE
3878 # else /* no EXEC_PAGESIZE */
3879 # ifdef NBPG
3880 # define getpagesize() NBPG * CLSIZE
3881 # ifndef CLSIZE
3882 # define CLSIZE 1
3883 # endif /* no CLSIZE */
3884 # else /* no NBPG */
3885 # ifdef NBPC
3886 # define getpagesize() NBPC
3887 # else /* no NBPC */
3888 # ifdef PAGESIZE
3889 # define getpagesize() PAGESIZE
3890 # endif /* PAGESIZE */
3891 # endif /* no NBPC */
3892 # endif /* no NBPG */
3893 # endif /* no EXEC_PAGESIZE */
3894 # else /* no HAVE_SYS_PARAM_H */
3895 # define getpagesize() 8192 /* punt totally */
3896 # endif /* no HAVE_SYS_PARAM_H */
3897 # endif /* no _SC_PAGESIZE */
3898
3899 #endif /* no HAVE_GETPAGESIZE */
3900
3901 #ifdef __cplusplus
3902 extern "C" { void *malloc(unsigned); }
3903 #else
3904 char *malloc();
3905 #endif
3906
3907 int
3908 main()
3909 {
3910 char *data, *data2, *data3;
3911 int i, pagesize;
3912 int fd;
3913
3914 pagesize = getpagesize();
3915
3916 /*
3917 * First, make a file with some known garbage in it.
3918 */
3919 data = malloc(pagesize);
3920 if (!data)
3921 exit(1);
3922 for (i = 0; i < pagesize; ++i)
3923 *(data + i) = rand();
3924 umask(0);
3925 fd = creat("conftestmmap", 0600);
3926 if (fd < 0)
3927 exit(1);
3928 if (write(fd, data, pagesize) != pagesize)
3929 exit(1);
3930 close(fd);
3931
3932 /*
3933 * Next, try to mmap the file at a fixed address which
3934 * already has something else allocated at it. If we can,
3935 * also make sure that we see the same garbage.
3936 */
3937 fd = open("conftestmmap", O_RDWR);
3938 if (fd < 0)
3939 exit(1);
3940 data2 = malloc(2 * pagesize);
3941 if (!data2)
3942 exit(1);
3943 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3944 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3945 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3946 exit(1);
3947 for (i = 0; i < pagesize; ++i)
3948 if (*(data + i) != *(data2 + i))
3949 exit(1);
3950
3951 /*
3952 * Finally, make sure that changes to the mapped area
3953 * do not percolate back to the file as seen by read().
3954 * (This is a bug on some variants of i386 svr4.0.)
3955 */
3956 for (i = 0; i < pagesize; ++i)
3957 *(data2 + i) = *(data2 + i) + 1;
3958 data3 = malloc(pagesize);
3959 if (!data3)
3960 exit(1);
3961 if (read(fd, data3, pagesize) != pagesize)
3962 exit(1);
3963 for (i = 0; i < pagesize; ++i)
3964 if (*(data + i) != *(data3 + i))
3965 exit(1);
3966 close(fd);
3967 unlink("conftestmmap");
3968 exit(0);
3969 }
3970
3971 EOF
3972 if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3973 then
3974 ac_cv_func_mmap_fixed_mapped=yes
3975 else
3976 echo "configure: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3978 rm -fr conftest*
3979 ac_cv_func_mmap_fixed_mapped=no
3980 fi
3981 rm -fr conftest*
3982 fi
3983
3984 fi
3985
3986 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3987 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3988 cat >> confdefs.h <<\EOF
3989 #define HAVE_MMAP 1
3990 EOF
3991
3992 fi
3993
3994
3995 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3996 unistd.h values.h sys/param.h
3997 do
3998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4000 echo "configure:4001: checking for $ac_hdr" >&5
4001 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4003 else
4004 cat > conftest.$ac_ext <<EOF
4005 #line 4006 "configure"
4006 #include "confdefs.h"
4007 #include <$ac_hdr>
4008 EOF
4009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4010 { (eval echo configure:4011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4012 if test -z "$ac_err"; then
4013 rm -rf conftest*
4014 eval "ac_cv_header_$ac_safe=yes"
4015 else
4016 echo "$ac_err" >&5
4017 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4019 rm -rf conftest*
4020 eval "ac_cv_header_$ac_safe=no"
4021 fi
4022 rm -f conftest*
4023 fi
4024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4025 echo "$ac_t""yes" 1>&6
4026 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4027 cat >> confdefs.h <<EOF
4028 #define $ac_tr_hdr 1
4029 EOF
4030
4031 else
4032 echo "$ac_t""no" 1>&6
4033 fi
4034 done
4035
4036 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4037 __argz_count __argz_stringify __argz_next
4038 do
4039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4040 echo "configure:4041: checking for $ac_func" >&5
4041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4042 echo $ac_n "(cached) $ac_c" 1>&6
4043 else
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 /* System header to define __stub macros and hopefully few prototypes,
4048 which can conflict with char $ac_func(); below. */
4049 #include <assert.h>
4050 /* Override any gcc2 internal prototype to avoid an error. */
4051 /* We use char because int might match the return type of a gcc2
4052 builtin and then its argument prototype would still apply. */
4053 char $ac_func();
4054
4055 int main() {
4056
4057 /* The GNU C library defines this for functions which it implements
4058 to always fail with ENOSYS. Some functions are actually named
4059 something starting with __ and the normal name is an alias. */
4060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4061 choke me
4062 #else
4063 $ac_func();
4064 #endif
4065
4066 ; return 0; }
4067 EOF
4068 if { (eval echo configure:4069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4069 rm -rf conftest*
4070 eval "ac_cv_func_$ac_func=yes"
4071 else
4072 echo "configure: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4074 rm -rf conftest*
4075 eval "ac_cv_func_$ac_func=no"
4076 fi
4077 rm -f conftest*
4078 fi
4079
4080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4081 echo "$ac_t""yes" 1>&6
4082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4083 cat >> confdefs.h <<EOF
4084 #define $ac_tr_func 1
4085 EOF
4086
4087 else
4088 echo "$ac_t""no" 1>&6
4089 fi
4090 done
4091
4092
4093 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4094 for ac_func in stpcpy
4095 do
4096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4097 echo "configure:4098: checking for $ac_func" >&5
4098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4100 else
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 /* System header to define __stub macros and hopefully few prototypes,
4105 which can conflict with char $ac_func(); below. */
4106 #include <assert.h>
4107 /* Override any gcc2 internal prototype to avoid an error. */
4108 /* We use char because int might match the return type of a gcc2
4109 builtin and then its argument prototype would still apply. */
4110 char $ac_func();
4111
4112 int main() {
4113
4114 /* The GNU C library defines this for functions which it implements
4115 to always fail with ENOSYS. Some functions are actually named
4116 something starting with __ and the normal name is an alias. */
4117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4118 choke me
4119 #else
4120 $ac_func();
4121 #endif
4122
4123 ; return 0; }
4124 EOF
4125 if { (eval echo configure:4126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4126 rm -rf conftest*
4127 eval "ac_cv_func_$ac_func=yes"
4128 else
4129 echo "configure: failed program was:" >&5
4130 cat conftest.$ac_ext >&5
4131 rm -rf conftest*
4132 eval "ac_cv_func_$ac_func=no"
4133 fi
4134 rm -f conftest*
4135 fi
4136
4137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4138 echo "$ac_t""yes" 1>&6
4139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4140 cat >> confdefs.h <<EOF
4141 #define $ac_tr_func 1
4142 EOF
4143
4144 else
4145 echo "$ac_t""no" 1>&6
4146 fi
4147 done
4148
4149 fi
4150 if test "${ac_cv_func_stpcpy}" = "yes"; then
4151 cat >> confdefs.h <<\EOF
4152 #define HAVE_STPCPY 1
4153 EOF
4154
4155 fi
4156
4157 if test $ac_cv_header_locale_h = yes; then
4158 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4159 echo "configure:4160: checking for LC_MESSAGES" >&5
4160 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4162 else
4163 cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4166 #include <locale.h>
4167 int main() {
4168 return LC_MESSAGES
4169 ; return 0; }
4170 EOF
4171 if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4172 rm -rf conftest*
4173 am_cv_val_LC_MESSAGES=yes
4174 else
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4177 rm -rf conftest*
4178 am_cv_val_LC_MESSAGES=no
4179 fi
4180 rm -f conftest*
4181 fi
4182
4183 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4184 if test $am_cv_val_LC_MESSAGES = yes; then
4185 cat >> confdefs.h <<\EOF
4186 #define HAVE_LC_MESSAGES 1
4187 EOF
4188
4189 fi
4190 fi
4191 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4192 echo "configure:4193: checking whether NLS is requested" >&5
4193 # Check whether --enable-nls or --disable-nls was given.
4194 if test "${enable_nls+set}" = set; then
4195 enableval="$enable_nls"
4196 USE_NLS=$enableval
4197 else
4198 USE_NLS=yes
4199 fi
4200
4201 echo "$ac_t""$USE_NLS" 1>&6
4202
4203
4204 USE_INCLUDED_LIBINTL=no
4205
4206 if test "$USE_NLS" = "yes"; then
4207 cat >> confdefs.h <<\EOF
4208 #define ENABLE_NLS 1
4209 EOF
4210
4211 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4212 echo "configure:4213: checking whether included gettext is requested" >&5
4213 # Check whether --with-included-gettext or --without-included-gettext was given.
4214 if test "${with_included_gettext+set}" = set; then
4215 withval="$with_included_gettext"
4216 nls_cv_force_use_gnu_gettext=$withval
4217 else
4218 nls_cv_force_use_gnu_gettext=no
4219 fi
4220
4221 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4222
4223 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4224 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4225 nls_cv_header_intl=
4226 nls_cv_header_libgt=
4227 CATOBJEXT=NONE
4228
4229 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4230 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4231 echo "configure:4232: checking for libintl.h" >&5
4232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4234 else
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4238 #include <libintl.h>
4239 EOF
4240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4241 { (eval echo configure:4242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4243 if test -z "$ac_err"; then
4244 rm -rf conftest*
4245 eval "ac_cv_header_$ac_safe=yes"
4246 else
4247 echo "$ac_err" >&5
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 rm -rf conftest*
4251 eval "ac_cv_header_$ac_safe=no"
4252 fi
4253 rm -f conftest*
4254 fi
4255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4256 echo "$ac_t""yes" 1>&6
4257 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4258 echo "configure:4259: checking for gettext in libc" >&5
4259 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4261 else
4262 cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4265 #include <libintl.h>
4266 int main() {
4267 return (int) gettext ("")
4268 ; return 0; }
4269 EOF
4270 if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4271 rm -rf conftest*
4272 gt_cv_func_gettext_libc=yes
4273 else
4274 echo "configure: failed program was:" >&5
4275 cat conftest.$ac_ext >&5
4276 rm -rf conftest*
4277 gt_cv_func_gettext_libc=no
4278 fi
4279 rm -f conftest*
4280 fi
4281
4282 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4283
4284 if test "$gt_cv_func_gettext_libc" != "yes"; then
4285 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4286 echo "configure:4287: checking for bindtextdomain in -lintl" >&5
4287 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4290 else
4291 ac_save_LIBS="$LIBS"
4292 LIBS="-lintl $LIBS"
4293 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */
4299 char bindtextdomain();
4300
4301 int main() {
4302 bindtextdomain()
4303 ; return 0; }
4304 EOF
4305 if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4306 rm -rf conftest*
4307 eval "ac_cv_lib_$ac_lib_var=yes"
4308 else
4309 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4311 rm -rf conftest*
4312 eval "ac_cv_lib_$ac_lib_var=no"
4313 fi
4314 rm -f conftest*
4315 LIBS="$ac_save_LIBS"
4316
4317 fi
4318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4321 echo "configure:4322: checking for gettext in libintl" >&5
4322 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4323 echo $ac_n "(cached) $ac_c" 1>&6
4324 else
4325 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4328
4329 int main() {
4330 return (int) gettext ("")
4331 ; return 0; }
4332 EOF
4333 if { (eval echo configure:4334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4334 rm -rf conftest*
4335 gt_cv_func_gettext_libintl=yes
4336 else
4337 echo "configure: failed program was:" >&5
4338 cat conftest.$ac_ext >&5
4339 rm -rf conftest*
4340 gt_cv_func_gettext_libintl=no
4341 fi
4342 rm -f conftest*
4343 fi
4344
4345 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4346 else
4347 echo "$ac_t""no" 1>&6
4348 fi
4349
4350 fi
4351
4352 if test "$gt_cv_func_gettext_libc" = "yes" \
4353 || test "$gt_cv_func_gettext_libintl" = "yes"; then
4354 cat >> confdefs.h <<\EOF
4355 #define HAVE_GETTEXT 1
4356 EOF
4357
4358 # Extract the first word of "msgfmt", so it can be a program name with args.
4359 set dummy msgfmt; ac_word=$2
4360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4361 echo "configure:4362: checking for $ac_word" >&5
4362 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4364 else
4365 case "$MSGFMT" in
4366 /*)
4367 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4368 ;;
4369 *)
4370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4371 for ac_dir in $PATH; do
4372 test -z "$ac_dir" && ac_dir=.
4373 if test -f $ac_dir/$ac_word; then
4374 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4375 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4376 break
4377 fi
4378 fi
4379 done
4380 IFS="$ac_save_ifs"
4381 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
4382 ;;
4383 esac
4384 fi
4385 MSGFMT="$ac_cv_path_MSGFMT"
4386 if test -n "$MSGFMT"; then
4387 echo "$ac_t""$MSGFMT" 1>&6
4388 else
4389 echo "$ac_t""no" 1>&6
4390 fi
4391 if test "$MSGFMT" != "no"; then
4392 for ac_func in dcgettext
4393 do
4394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4395 echo "configure:4396: checking for $ac_func" >&5
4396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4397 echo $ac_n "(cached) $ac_c" 1>&6
4398 else
4399 cat > conftest.$ac_ext <<EOF
4400 #line 4401 "configure"
4401 #include "confdefs.h"
4402 /* System header to define __stub macros and hopefully few prototypes,
4403 which can conflict with char $ac_func(); below. */
4404 #include <assert.h>
4405 /* Override any gcc2 internal prototype to avoid an error. */
4406 /* We use char because int might match the return type of a gcc2
4407 builtin and then its argument prototype would still apply. */
4408 char $ac_func();
4409
4410 int main() {
4411
4412 /* The GNU C library defines this for functions which it implements
4413 to always fail with ENOSYS. Some functions are actually named
4414 something starting with __ and the normal name is an alias. */
4415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4416 choke me
4417 #else
4418 $ac_func();
4419 #endif
4420
4421 ; return 0; }
4422 EOF
4423 if { (eval echo configure:4424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4424 rm -rf conftest*
4425 eval "ac_cv_func_$ac_func=yes"
4426 else
4427 echo "configure: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
4429 rm -rf conftest*
4430 eval "ac_cv_func_$ac_func=no"
4431 fi
4432 rm -f conftest*
4433 fi
4434
4435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4436 echo "$ac_t""yes" 1>&6
4437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4438 cat >> confdefs.h <<EOF
4439 #define $ac_tr_func 1
4440 EOF
4441
4442 else
4443 echo "$ac_t""no" 1>&6
4444 fi
4445 done
4446
4447 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4448 set dummy gmsgfmt; ac_word=$2
4449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4450 echo "configure:4451: checking for $ac_word" >&5
4451 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4452 echo $ac_n "(cached) $ac_c" 1>&6
4453 else
4454 case "$GMSGFMT" in
4455 /*)
4456 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4457 ;;
4458 ?:/*)
4459 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4460 ;;
4461 *)
4462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4463 ac_dummy="$PATH"
4464 for ac_dir in $ac_dummy; do
4465 test -z "$ac_dir" && ac_dir=.
4466 if test -f $ac_dir/$ac_word; then
4467 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4468 break
4469 fi
4470 done
4471 IFS="$ac_save_ifs"
4472 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4473 ;;
4474 esac
4475 fi
4476 GMSGFMT="$ac_cv_path_GMSGFMT"
4477 if test -n "$GMSGFMT"; then
4478 echo "$ac_t""$GMSGFMT" 1>&6
4479 else
4480 echo "$ac_t""no" 1>&6
4481 fi
4482
4483 # Extract the first word of "xgettext", so it can be a program name with args.
4484 set dummy xgettext; ac_word=$2
4485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4486 echo "configure:4487: checking for $ac_word" >&5
4487 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4489 else
4490 case "$XGETTEXT" in
4491 /*)
4492 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4493 ;;
4494 *)
4495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4496 for ac_dir in $PATH; do
4497 test -z "$ac_dir" && ac_dir=.
4498 if test -f $ac_dir/$ac_word; then
4499 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4500 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4501 break
4502 fi
4503 fi
4504 done
4505 IFS="$ac_save_ifs"
4506 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4507 ;;
4508 esac
4509 fi
4510 XGETTEXT="$ac_cv_path_XGETTEXT"
4511 if test -n "$XGETTEXT"; then
4512 echo "$ac_t""$XGETTEXT" 1>&6
4513 else
4514 echo "$ac_t""no" 1>&6
4515 fi
4516
4517 cat > conftest.$ac_ext <<EOF
4518 #line 4519 "configure"
4519 #include "confdefs.h"
4520
4521 int main() {
4522 extern int _nl_msg_cat_cntr;
4523 return _nl_msg_cat_cntr
4524 ; return 0; }
4525 EOF
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4527 rm -rf conftest*
4528 CATOBJEXT=.gmo
4529 DATADIRNAME=share
4530 else
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4533 rm -rf conftest*
4534 CATOBJEXT=.mo
4535 DATADIRNAME=lib
4536 fi
4537 rm -f conftest*
4538 INSTOBJEXT=.mo
4539 fi
4540 fi
4541
4542 else
4543 echo "$ac_t""no" 1>&6
4544 fi
4545
4546
4547
4548 if test "$CATOBJEXT" = "NONE"; then
4549 nls_cv_use_gnu_gettext=yes
4550 fi
4551 fi
4552
4553 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4554 INTLOBJS="\$(GETTOBJS)"
4555 # Extract the first word of "msgfmt", so it can be a program name with args.
4556 set dummy msgfmt; ac_word=$2
4557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4558 echo "configure:4559: checking for $ac_word" >&5
4559 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4561 else
4562 case "$MSGFMT" in
4563 /*)
4564 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4565 ;;
4566 *)
4567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4568 for ac_dir in $PATH; do
4569 test -z "$ac_dir" && ac_dir=.
4570 if test -f $ac_dir/$ac_word; then
4571 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4572 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4573 break
4574 fi
4575 fi
4576 done
4577 IFS="$ac_save_ifs"
4578 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4579 ;;
4580 esac
4581 fi
4582 MSGFMT="$ac_cv_path_MSGFMT"
4583 if test -n "$MSGFMT"; then
4584 echo "$ac_t""$MSGFMT" 1>&6
4585 else
4586 echo "$ac_t""no" 1>&6
4587 fi
4588
4589 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4590 set dummy gmsgfmt; ac_word=$2
4591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4592 echo "configure:4593: checking for $ac_word" >&5
4593 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4595 else
4596 case "$GMSGFMT" in
4597 /*)
4598 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4599 ;;
4600 ?:/*)
4601 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4602 ;;
4603 *)
4604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4605 ac_dummy="$PATH"
4606 for ac_dir in $ac_dummy; do
4607 test -z "$ac_dir" && ac_dir=.
4608 if test -f $ac_dir/$ac_word; then
4609 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4610 break
4611 fi
4612 done
4613 IFS="$ac_save_ifs"
4614 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4615 ;;
4616 esac
4617 fi
4618 GMSGFMT="$ac_cv_path_GMSGFMT"
4619 if test -n "$GMSGFMT"; then
4620 echo "$ac_t""$GMSGFMT" 1>&6
4621 else
4622 echo "$ac_t""no" 1>&6
4623 fi
4624
4625 # Extract the first word of "xgettext", so it can be a program name with args.
4626 set dummy xgettext; ac_word=$2
4627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4628 echo "configure:4629: checking for $ac_word" >&5
4629 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4631 else
4632 case "$XGETTEXT" in
4633 /*)
4634 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4635 ;;
4636 *)
4637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4638 for ac_dir in $PATH; do
4639 test -z "$ac_dir" && ac_dir=.
4640 if test -f $ac_dir/$ac_word; then
4641 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4642 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4643 break
4644 fi
4645 fi
4646 done
4647 IFS="$ac_save_ifs"
4648 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4649 ;;
4650 esac
4651 fi
4652 XGETTEXT="$ac_cv_path_XGETTEXT"
4653 if test -n "$XGETTEXT"; then
4654 echo "$ac_t""$XGETTEXT" 1>&6
4655 else
4656 echo "$ac_t""no" 1>&6
4657 fi
4658
4659
4660 USE_INCLUDED_LIBINTL=yes
4661 CATOBJEXT=.gmo
4662 INSTOBJEXT=.mo
4663 DATADIRNAME=share
4664 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4665 INTLLIBS=$INTLDEPS
4666 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4667 nls_cv_header_intl=libintl.h
4668 nls_cv_header_libgt=libgettext.h
4669 fi
4670
4671 if test "$XGETTEXT" != ":"; then
4672 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4673 : ;
4674 else
4675 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4676 XGETTEXT=":"
4677 fi
4678 fi
4679
4680 # We need to process the po/ directory.
4681 POSUB=po
4682 else
4683 DATADIRNAME=share
4684 nls_cv_header_intl=libintl.h
4685 nls_cv_header_libgt=libgettext.h
4686 fi
4687
4688 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4689 # because some of the sources are only built for this goal.
4690 if test "$PACKAGE" = gettext; then
4691 USE_NLS=yes
4692 USE_INCLUDED_LIBINTL=yes
4693 fi
4694
4695 for lang in $ALL_LINGUAS; do
4696 GMOFILES="$GMOFILES $lang.gmo"
4697 POFILES="$POFILES $lang.po"
4698 done
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713 if test "x$CATOBJEXT" != "x"; then
4714 if test "x$ALL_LINGUAS" = "x"; then
4715 LINGUAS=
4716 else
4717 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4718 echo "configure:4719: checking for catalogs to be installed" >&5
4719 NEW_LINGUAS=
4720 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4721 case "$ALL_LINGUAS" in
4722 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4723 esac
4724 done
4725 LINGUAS=$NEW_LINGUAS
4726 echo "$ac_t""$LINGUAS" 1>&6
4727 fi
4728
4729 if test -n "$LINGUAS"; then
4730 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4731 fi
4732 fi
4733
4734 if test $ac_cv_header_locale_h = yes; then
4735 INCLUDE_LOCALE_H="#include <locale.h>"
4736 else
4737 INCLUDE_LOCALE_H="\
4738 /* The system does not provide the header <locale.h>. Take care yourself. */"
4739 fi
4740
4741
4742 if test -f $srcdir/po2tbl.sed.in; then
4743 if test "$CATOBJEXT" = ".cat"; then
4744 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4745 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4746 echo "configure:4747: checking for linux/version.h" >&5
4747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4749 else
4750 cat > conftest.$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4753 #include <linux/version.h>
4754 EOF
4755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4756 { (eval echo configure:4757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4758 if test -z "$ac_err"; then
4759 rm -rf conftest*
4760 eval "ac_cv_header_$ac_safe=yes"
4761 else
4762 echo "$ac_err" >&5
4763 echo "configure: failed program was:" >&5
4764 cat conftest.$ac_ext >&5
4765 rm -rf conftest*
4766 eval "ac_cv_header_$ac_safe=no"
4767 fi
4768 rm -f conftest*
4769 fi
4770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4771 echo "$ac_t""yes" 1>&6
4772 msgformat=linux
4773 else
4774 echo "$ac_t""no" 1>&6
4775 msgformat=xopen
4776 fi
4777
4778
4779 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4780 fi
4781 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4782 $srcdir/po2tbl.sed.in > po2tbl.sed
4783 fi
4784
4785 if test "$PACKAGE" = "gettext"; then
4786 GT_NO="#NO#"
4787 GT_YES=
4788 else
4789 GT_NO=
4790 GT_YES="#YES#"
4791 fi
4792
4793
4794
4795 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4796
4797
4798 l=
4799
4800
4801 if test -d $srcdir/po; then
4802 test -d po || mkdir po
4803 if test "x$srcdir" != "x."; then
4804 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4805 posrcprefix="$srcdir/"
4806 else
4807 posrcprefix="../$srcdir/"
4808 fi
4809 else
4810 posrcprefix="../"
4811 fi
4812 rm -f po/POTFILES
4813 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4814 < $srcdir/po/POTFILES.in > po/POTFILES
4815 fi
4816
4817
4818 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4819 echo "configure:4820: checking whether to enable maintainer-specific portions of Makefiles" >&5
4820 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4821 if test "${enable_maintainer_mode+set}" = set; then
4822 enableval="$enable_maintainer_mode"
4823 USE_MAINTAINER_MODE=$enableval
4824 else
4825 USE_MAINTAINER_MODE=no
4826 fi
4827
4828 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4829
4830
4831 if test $USE_MAINTAINER_MODE = yes; then
4832 MAINTAINER_MODE_TRUE=
4833 MAINTAINER_MODE_FALSE='#'
4834 else
4835 MAINTAINER_MODE_TRUE='#'
4836 MAINTAINER_MODE_FALSE=
4837 fi
4838 MAINT=$MAINTAINER_MODE_TRUE
4839
4840
4841 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4842 echo "configure:4843: checking for Cygwin environment" >&5
4843 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4845 else
4846 cat > conftest.$ac_ext <<EOF
4847 #line 4848 "configure"
4848 #include "confdefs.h"
4849
4850 int main() {
4851
4852 #ifndef __CYGWIN__
4853 #define __CYGWIN__ __CYGWIN32__
4854 #endif
4855 return __CYGWIN__;
4856 ; return 0; }
4857 EOF
4858 if { (eval echo configure:4859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4859 rm -rf conftest*
4860 ac_cv_cygwin=yes
4861 else
4862 echo "configure: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4864 rm -rf conftest*
4865 ac_cv_cygwin=no
4866 fi
4867 rm -f conftest*
4868 rm -f conftest*
4869 fi
4870
4871 echo "$ac_t""$ac_cv_cygwin" 1>&6
4872 CYGWIN=
4873 test "$ac_cv_cygwin" = yes && CYGWIN=yes
4874 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4875 echo "configure:4876: checking for mingw32 environment" >&5
4876 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4877 echo $ac_n "(cached) $ac_c" 1>&6
4878 else
4879 cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4882
4883 int main() {
4884 return __MINGW32__;
4885 ; return 0; }
4886 EOF
4887 if { (eval echo configure:4888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4888 rm -rf conftest*
4889 ac_cv_mingw32=yes
4890 else
4891 echo "configure: failed program was:" >&5
4892 cat conftest.$ac_ext >&5
4893 rm -rf conftest*
4894 ac_cv_mingw32=no
4895 fi
4896 rm -f conftest*
4897 rm -f conftest*
4898 fi
4899
4900 echo "$ac_t""$ac_cv_mingw32" 1>&6
4901 MINGW32=
4902 test "$ac_cv_mingw32" = yes && MINGW32=yes
4903
4904
4905 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4906 echo "configure:4907: checking for executable suffix" >&5
4907 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4909 else
4910 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4911 ac_cv_exeext=.exe
4912 else
4913 rm -f conftest*
4914 echo 'int main () { return 0; }' > conftest.$ac_ext
4915 ac_cv_exeext=
4916 if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4917 for file in conftest.*; do
4918 case $file in
4919 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4920 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4921 esac
4922 done
4923 else
4924 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4925 fi
4926 rm -f conftest*
4927 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4928 fi
4929 fi
4930
4931 EXEEXT=""
4932 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4933 echo "$ac_t""${ac_cv_exeext}" 1>&6
4934 ac_exeext=$EXEEXT
4935
4936
4937 for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
4938 do
4939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4941 echo "configure:4942: checking for $ac_hdr" >&5
4942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4944 else
4945 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4948 #include <$ac_hdr>
4949 EOF
4950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4951 { (eval echo configure:4952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4953 if test -z "$ac_err"; then
4954 rm -rf conftest*
4955 eval "ac_cv_header_$ac_safe=yes"
4956 else
4957 echo "$ac_err" >&5
4958 echo "configure: failed program was:" >&5
4959 cat conftest.$ac_ext >&5
4960 rm -rf conftest*
4961 eval "ac_cv_header_$ac_safe=no"
4962 fi
4963 rm -f conftest*
4964 fi
4965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4966 echo "$ac_t""yes" 1>&6
4967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4968 cat >> confdefs.h <<EOF
4969 #define $ac_tr_hdr 1
4970 EOF
4971
4972 else
4973 echo "$ac_t""no" 1>&6
4974 fi
4975 done
4976
4977
4978 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
4979 # people who are not cross-compiling but are compiling cross-assemblers.
4980 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
4981 echo "configure:4982: checking whether compiling a cross-assembler" >&5
4982 if test "${host}" = "${target}"; then
4983 cross_gas=no
4984 else
4985 cross_gas=yes
4986 cat >> confdefs.h <<\EOF
4987 #define CROSS_COMPILE 1
4988 EOF
4989
4990 fi
4991 echo "$ac_t""$cross_gas" 1>&6
4992
4993 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4994 # for constant arguments. Useless!
4995 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4996 echo "configure:4997: checking for working alloca.h" >&5
4997 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
4999 else
5000 cat > conftest.$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5003 #include <alloca.h>
5004 int main() {
5005 char *p = alloca(2 * sizeof(int));
5006 ; return 0; }
5007 EOF
5008 if { (eval echo configure:5009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5009 rm -rf conftest*
5010 ac_cv_header_alloca_h=yes
5011 else
5012 echo "configure: failed program was:" >&5
5013 cat conftest.$ac_ext >&5
5014 rm -rf conftest*
5015 ac_cv_header_alloca_h=no
5016 fi
5017 rm -f conftest*
5018 fi
5019
5020 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5021 if test $ac_cv_header_alloca_h = yes; then
5022 cat >> confdefs.h <<\EOF
5023 #define HAVE_ALLOCA_H 1
5024 EOF
5025
5026 fi
5027
5028 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5029 echo "configure:5030: checking for alloca" >&5
5030 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5031 echo $ac_n "(cached) $ac_c" 1>&6
5032 else
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5036
5037 #ifdef __GNUC__
5038 # define alloca __builtin_alloca
5039 #else
5040 # ifdef _MSC_VER
5041 # include <malloc.h>
5042 # define alloca _alloca
5043 # else
5044 # if HAVE_ALLOCA_H
5045 # include <alloca.h>
5046 # else
5047 # ifdef _AIX
5048 #pragma alloca
5049 # else
5050 # ifndef alloca /* predefined by HP cc +Olibcalls */
5051 char *alloca ();
5052 # endif
5053 # endif
5054 # endif
5055 # endif
5056 #endif
5057
5058 int main() {
5059 char *p = (char *) alloca(1);
5060 ; return 0; }
5061 EOF
5062 if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5063 rm -rf conftest*
5064 ac_cv_func_alloca_works=yes
5065 else
5066 echo "configure: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 rm -rf conftest*
5069 ac_cv_func_alloca_works=no
5070 fi
5071 rm -f conftest*
5072 fi
5073
5074 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5075 if test $ac_cv_func_alloca_works = yes; then
5076 cat >> confdefs.h <<\EOF
5077 #define HAVE_ALLOCA 1
5078 EOF
5079
5080 fi
5081
5082 if test $ac_cv_func_alloca_works = no; then
5083 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5084 # that cause trouble. Some versions do not even contain alloca or
5085 # contain a buggy version. If you still want to use their alloca,
5086 # use ar to extract alloca.o from them instead of compiling alloca.c.
5087 ALLOCA=alloca.${ac_objext}
5088 cat >> confdefs.h <<\EOF
5089 #define C_ALLOCA 1
5090 EOF
5091
5092
5093 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5094 echo "configure:5095: checking whether alloca needs Cray hooks" >&5
5095 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5097 else
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 #if defined(CRAY) && ! defined(CRAY2)
5102 webecray
5103 #else
5104 wenotbecray
5105 #endif
5106
5107 EOF
5108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5109 egrep "webecray" >/dev/null 2>&1; then
5110 rm -rf conftest*
5111 ac_cv_os_cray=yes
5112 else
5113 rm -rf conftest*
5114 ac_cv_os_cray=no
5115 fi
5116 rm -f conftest*
5117
5118 fi
5119
5120 echo "$ac_t""$ac_cv_os_cray" 1>&6
5121 if test $ac_cv_os_cray = yes; then
5122 for ac_func in _getb67 GETB67 getb67; do
5123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5124 echo "configure:5125: checking for $ac_func" >&5
5125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5127 else
5128 cat > conftest.$ac_ext <<EOF
5129 #line 5130 "configure"
5130 #include "confdefs.h"
5131 /* System header to define __stub macros and hopefully few prototypes,
5132 which can conflict with char $ac_func(); below. */
5133 #include <assert.h>
5134 /* Override any gcc2 internal prototype to avoid an error. */
5135 /* We use char because int might match the return type of a gcc2
5136 builtin and then its argument prototype would still apply. */
5137 char $ac_func();
5138
5139 int main() {
5140
5141 /* The GNU C library defines this for functions which it implements
5142 to always fail with ENOSYS. Some functions are actually named
5143 something starting with __ and the normal name is an alias. */
5144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5145 choke me
5146 #else
5147 $ac_func();
5148 #endif
5149
5150 ; return 0; }
5151 EOF
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5153 rm -rf conftest*
5154 eval "ac_cv_func_$ac_func=yes"
5155 else
5156 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5158 rm -rf conftest*
5159 eval "ac_cv_func_$ac_func=no"
5160 fi
5161 rm -f conftest*
5162 fi
5163
5164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5165 echo "$ac_t""yes" 1>&6
5166 cat >> confdefs.h <<EOF
5167 #define CRAY_STACKSEG_END $ac_func
5168 EOF
5169
5170 break
5171 else
5172 echo "$ac_t""no" 1>&6
5173 fi
5174
5175 done
5176 fi
5177
5178 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5179 echo "configure:5180: checking stack direction for C alloca" >&5
5180 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5182 else
5183 if test "$cross_compiling" = yes; then
5184 ac_cv_c_stack_direction=0
5185 else
5186 cat > conftest.$ac_ext <<EOF
5187 #line 5188 "configure"
5188 #include "confdefs.h"
5189 find_stack_direction ()
5190 {
5191 static char *addr = 0;
5192 auto char dummy;
5193 if (addr == 0)
5194 {
5195 addr = &dummy;
5196 return find_stack_direction ();
5197 }
5198 else
5199 return (&dummy > addr) ? 1 : -1;
5200 }
5201 main ()
5202 {
5203 exit (find_stack_direction() < 0);
5204 }
5205 EOF
5206 if { (eval echo configure:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5207 then
5208 ac_cv_c_stack_direction=1
5209 else
5210 echo "configure: failed program was:" >&5
5211 cat conftest.$ac_ext >&5
5212 rm -fr conftest*
5213 ac_cv_c_stack_direction=-1
5214 fi
5215 rm -fr conftest*
5216 fi
5217
5218 fi
5219
5220 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5221 cat >> confdefs.h <<EOF
5222 #define STACK_DIRECTION $ac_cv_c_stack_direction
5223 EOF
5224
5225 fi
5226
5227 echo $ac_n "checking for inline""... $ac_c" 1>&6
5228 echo "configure:5229: checking for inline" >&5
5229 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5231 else
5232 ac_cv_c_inline=no
5233 for ac_kw in inline __inline__ __inline; do
5234 cat > conftest.$ac_ext <<EOF
5235 #line 5236 "configure"
5236 #include "confdefs.h"
5237
5238 int main() {
5239 } $ac_kw foo() {
5240 ; return 0; }
5241 EOF
5242 if { (eval echo configure:5243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5243 rm -rf conftest*
5244 ac_cv_c_inline=$ac_kw; break
5245 else
5246 echo "configure: failed program was:" >&5
5247 cat conftest.$ac_ext >&5
5248 fi
5249 rm -f conftest*
5250 done
5251
5252 fi
5253
5254 echo "$ac_t""$ac_cv_c_inline" 1>&6
5255 case "$ac_cv_c_inline" in
5256 inline | yes) ;;
5257 no) cat >> confdefs.h <<\EOF
5258 #define inline
5259 EOF
5260 ;;
5261 *) cat >> confdefs.h <<EOF
5262 #define inline $ac_cv_c_inline
5263 EOF
5264 ;;
5265 esac
5266
5267
5268 # VMS doesn't have unlink.
5269 for ac_func in unlink remove
5270 do
5271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5272 echo "configure:5273: checking for $ac_func" >&5
5273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5275 else
5276 cat > conftest.$ac_ext <<EOF
5277 #line 5278 "configure"
5278 #include "confdefs.h"
5279 /* System header to define __stub macros and hopefully few prototypes,
5280 which can conflict with char $ac_func(); below. */
5281 #include <assert.h>
5282 /* Override any gcc2 internal prototype to avoid an error. */
5283 /* We use char because int might match the return type of a gcc2
5284 builtin and then its argument prototype would still apply. */
5285 char $ac_func();
5286
5287 int main() {
5288
5289 /* The GNU C library defines this for functions which it implements
5290 to always fail with ENOSYS. Some functions are actually named
5291 something starting with __ and the normal name is an alias. */
5292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5293 choke me
5294 #else
5295 $ac_func();
5296 #endif
5297
5298 ; return 0; }
5299 EOF
5300 if { (eval echo configure:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5301 rm -rf conftest*
5302 eval "ac_cv_func_$ac_func=yes"
5303 else
5304 echo "configure: failed program was:" >&5
5305 cat conftest.$ac_ext >&5
5306 rm -rf conftest*
5307 eval "ac_cv_func_$ac_func=no"
5308 fi
5309 rm -f conftest*
5310 fi
5311
5312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5313 echo "$ac_t""yes" 1>&6
5314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5315 cat >> confdefs.h <<EOF
5316 #define $ac_tr_func 1
5317 EOF
5318 break
5319 else
5320 echo "$ac_t""no" 1>&6
5321 fi
5322 done
5323
5324
5325 # Some systems don't have sbrk().
5326 for ac_func in sbrk
5327 do
5328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5329 echo "configure:5330: checking for $ac_func" >&5
5330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5332 else
5333 cat > conftest.$ac_ext <<EOF
5334 #line 5335 "configure"
5335 #include "confdefs.h"
5336 /* System header to define __stub macros and hopefully few prototypes,
5337 which can conflict with char $ac_func(); below. */
5338 #include <assert.h>
5339 /* Override any gcc2 internal prototype to avoid an error. */
5340 /* We use char because int might match the return type of a gcc2
5341 builtin and then its argument prototype would still apply. */
5342 char $ac_func();
5343
5344 int main() {
5345
5346 /* The GNU C library defines this for functions which it implements
5347 to always fail with ENOSYS. Some functions are actually named
5348 something starting with __ and the normal name is an alias. */
5349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5350 choke me
5351 #else
5352 $ac_func();
5353 #endif
5354
5355 ; return 0; }
5356 EOF
5357 if { (eval echo configure:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5358 rm -rf conftest*
5359 eval "ac_cv_func_$ac_func=yes"
5360 else
5361 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5363 rm -rf conftest*
5364 eval "ac_cv_func_$ac_func=no"
5365 fi
5366 rm -f conftest*
5367 fi
5368
5369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5370 echo "$ac_t""yes" 1>&6
5371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5372 cat >> confdefs.h <<EOF
5373 #define $ac_tr_func 1
5374 EOF
5375
5376 else
5377 echo "$ac_t""no" 1>&6
5378 fi
5379 done
5380
5381
5382 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
5383 # enough, but on some of those systems, the assert macro relies on requoting
5384 # working properly!
5385 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
5386 echo "configure:5387: checking for working assert macro" >&5
5387 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5389 else
5390 cat > conftest.$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5393 #include <assert.h>
5394 #include <stdio.h>
5395 int main() {
5396
5397 /* check for requoting problems */
5398 static int a, b, c, d;
5399 static char *s;
5400 assert (!strcmp(s, "foo bar baz quux"));
5401 /* check for newline handling */
5402 assert (a == b
5403 || c == d);
5404
5405 ; return 0; }
5406 EOF
5407 if { (eval echo configure:5408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5408 rm -rf conftest*
5409 gas_cv_assert_ok=yes
5410 else
5411 echo "configure: failed program was:" >&5
5412 cat conftest.$ac_ext >&5
5413 rm -rf conftest*
5414 gas_cv_assert_ok=no
5415 fi
5416 rm -f conftest*
5417 fi
5418 echo "$ac_t""$gas_cv_assert_ok" 1>&6
5419 test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF
5420 #define BROKEN_ASSERT 1
5421 EOF
5422
5423
5424
5425 # On some systems, the system header files may not declare malloc, realloc,
5426 # and free. There are places where gas needs these functions to have been
5427 # declared -- such as when taking their addresses.
5428 gas_test_headers="
5429 #ifdef HAVE_MEMORY_H
5430 #include <memory.h>
5431 #endif
5432 #ifdef HAVE_STRING_H
5433 #include <string.h>
5434 #else
5435 #ifdef HAVE_STRINGS_H
5436 #include <strings.h>
5437 #endif
5438 #endif
5439 #ifdef HAVE_STDLIB_H
5440 #include <stdlib.h>
5441 #endif
5442 #ifdef HAVE_UNISTD_H
5443 #include <unistd.h>
5444 #endif
5445 "
5446
5447 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
5448 echo "configure:5449: checking whether declaration is required for strstr" >&5
5449 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
5451 else
5452 cat > conftest.$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455 $gas_test_headers
5456 int main() {
5457
5458 typedef char *(*f)();
5459 f x;
5460 x = (f) strstr;
5461
5462 ; return 0; }
5463 EOF
5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5465 rm -rf conftest*
5466 gas_cv_decl_needed_strstr=no
5467 else
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5470 rm -rf conftest*
5471 gas_cv_decl_needed_strstr=yes
5472 fi
5473 rm -f conftest*
5474 fi
5475 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
5476 if test $gas_cv_decl_needed_strstr = yes; then
5477 cat >> confdefs.h <<\EOF
5478 #define NEED_DECLARATION_STRSTR 1
5479 EOF
5480
5481 fi
5482
5483
5484 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
5485 echo "configure:5486: checking whether declaration is required for malloc" >&5
5486 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
5487 echo $ac_n "(cached) $ac_c" 1>&6
5488 else
5489 cat > conftest.$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5492 $gas_test_headers
5493 int main() {
5494
5495 typedef char *(*f)();
5496 f x;
5497 x = (f) malloc;
5498
5499 ; return 0; }
5500 EOF
5501 if { (eval echo configure:5502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5502 rm -rf conftest*
5503 gas_cv_decl_needed_malloc=no
5504 else
5505 echo "configure: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5507 rm -rf conftest*
5508 gas_cv_decl_needed_malloc=yes
5509 fi
5510 rm -f conftest*
5511 fi
5512 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
5513 if test $gas_cv_decl_needed_malloc = yes; then
5514 cat >> confdefs.h <<\EOF
5515 #define NEED_DECLARATION_MALLOC 1
5516 EOF
5517
5518 fi
5519
5520
5521 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
5522 echo "configure:5523: checking whether declaration is required for free" >&5
5523 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
5524 echo $ac_n "(cached) $ac_c" 1>&6
5525 else
5526 cat > conftest.$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5529 $gas_test_headers
5530 int main() {
5531
5532 typedef void (*f)();
5533 f x;
5534 x = (f) free;
5535
5536 ; return 0; }
5537 EOF
5538 if { (eval echo configure:5539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5539 rm -rf conftest*
5540 gas_cv_decl_needed_free=no
5541 else
5542 echo "configure: failed program was:" >&5
5543 cat conftest.$ac_ext >&5
5544 rm -rf conftest*
5545 gas_cv_decl_needed_free=yes
5546 fi
5547 rm -f conftest*
5548 fi
5549 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5550 if test $gas_cv_decl_needed_free = yes; then
5551 cat >> confdefs.h <<\EOF
5552 #define NEED_DECLARATION_FREE 1
5553 EOF
5554
5555 fi
5556
5557
5558 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5559 echo "configure:5560: checking whether declaration is required for sbrk" >&5
5560 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5562 else
5563 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566 $gas_test_headers
5567 int main() {
5568
5569 typedef char *(*f)();
5570 f x;
5571 x = (f) sbrk;
5572
5573 ; return 0; }
5574 EOF
5575 if { (eval echo configure:5576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5576 rm -rf conftest*
5577 gas_cv_decl_needed_sbrk=no
5578 else
5579 echo "configure: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5581 rm -rf conftest*
5582 gas_cv_decl_needed_sbrk=yes
5583 fi
5584 rm -f conftest*
5585 fi
5586 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
5587 if test $gas_cv_decl_needed_sbrk = yes; then
5588 cat >> confdefs.h <<\EOF
5589 #define NEED_DECLARATION_SBRK 1
5590 EOF
5591
5592 fi
5593
5594
5595 echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
5596 echo "configure:5597: checking whether declaration is required for environ" >&5
5597 if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then
5598 echo $ac_n "(cached) $ac_c" 1>&6
5599 else
5600 cat > conftest.$ac_ext <<EOF
5601 #line 5602 "configure"
5602 #include "confdefs.h"
5603 $gas_test_headers
5604 int main() {
5605
5606 typedef char **f;
5607 f x;
5608 x = (f) environ;
5609
5610 ; return 0; }
5611 EOF
5612 if { (eval echo configure:5613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5613 rm -rf conftest*
5614 gas_cv_decl_needed_environ=no
5615 else
5616 echo "configure: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5618 rm -rf conftest*
5619 gas_cv_decl_needed_environ=yes
5620 fi
5621 rm -f conftest*
5622 fi
5623 echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
5624 if test $gas_cv_decl_needed_environ = yes; then
5625 cat >> confdefs.h <<\EOF
5626 #define NEED_DECLARATION_ENVIRON 1
5627 EOF
5628
5629 fi
5630
5631
5632 # Does errno.h declare errno, or do we have to add a separate declaration
5633 # for it?
5634
5635 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
5636 echo "configure:5637: checking whether declaration is required for errno" >&5
5637 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
5638 echo $ac_n "(cached) $ac_c" 1>&6
5639 else
5640 cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5643
5644 #ifdef HAVE_ERRNO_H
5645 #include <errno.h>
5646 #endif
5647
5648 int main() {
5649
5650 typedef int f;
5651 f x;
5652 x = (f) errno;
5653
5654 ; return 0; }
5655 EOF
5656 if { (eval echo configure:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5657 rm -rf conftest*
5658 gas_cv_decl_needed_errno=no
5659 else
5660 echo "configure: failed program was:" >&5
5661 cat conftest.$ac_ext >&5
5662 rm -rf conftest*
5663 gas_cv_decl_needed_errno=yes
5664 fi
5665 rm -f conftest*
5666 fi
5667 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
5668 if test $gas_cv_decl_needed_errno = yes; then
5669 cat >> confdefs.h <<\EOF
5670 #define NEED_DECLARATION_ERRNO 1
5671 EOF
5672
5673 fi
5674
5675
5676
5677
5678 trap '' 1 2 15
5679 cat > confcache <<\EOF
5680 # This file is a shell script that caches the results of configure
5681 # tests run on this system so they can be shared between configure
5682 # scripts and configure runs. It is not useful on other systems.
5683 # If it contains results you don't want to keep, you may remove or edit it.
5684 #
5685 # By default, configure uses ./config.cache as the cache file,
5686 # creating it if it does not exist already. You can give configure
5687 # the --cache-file=FILE option to use a different cache file; that is
5688 # what configure does when it calls configure scripts in
5689 # subdirectories, so they share the cache.
5690 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5691 # config.status only pays attention to the cache file if you give it the
5692 # --recheck option to rerun configure.
5693 #
5694 EOF
5695 # The following way of writing the cache mishandles newlines in values,
5696 # but we know of no workaround that is simple, portable, and efficient.
5697 # So, don't put newlines in cache variables' values.
5698 # Ultrix sh set writes to stderr and can't be redirected directly,
5699 # and sets the high bit in the cache file unless we assign to the vars.
5700 (set) 2>&1 |
5701 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5702 *ac_space=\ *)
5703 # `set' does not quote correctly, so add quotes (double-quote substitution
5704 # turns \\\\ into \\, and sed turns \\ into \).
5705 sed -n \
5706 -e "s/'/'\\\\''/g" \
5707 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5708 ;;
5709 *)
5710 # `set' quotes correctly as required by POSIX, so do not add quotes.
5711 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5712 ;;
5713 esac >> confcache
5714 if cmp -s $cache_file confcache; then
5715 :
5716 else
5717 if test -w $cache_file; then
5718 echo "updating cache $cache_file"
5719 cat confcache > $cache_file
5720 else
5721 echo "not updating unwritable cache $cache_file"
5722 fi
5723 fi
5724 rm -f confcache
5725
5726 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5727
5728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5729 # Let make expand exec_prefix.
5730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5731
5732 # Any assignment to VPATH causes Sun make to only execute
5733 # the first set of double-colon rules, so remove it if not needed.
5734 # If there is a colon in the path, we need to keep it.
5735 if test "x$srcdir" = x.; then
5736 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5737 fi
5738
5739 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5740
5741 DEFS=-DHAVE_CONFIG_H
5742
5743 # Without the "./", some shells look in PATH for config.status.
5744 : ${CONFIG_STATUS=./config.status}
5745
5746 echo creating $CONFIG_STATUS
5747 rm -f $CONFIG_STATUS
5748 cat > $CONFIG_STATUS <<EOF
5749 #! /bin/sh
5750 # Generated automatically by configure.
5751 # Run this file to recreate the current configuration.
5752 # This directory was configured as follows,
5753 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5754 #
5755 # $0 $ac_configure_args
5756 #
5757 # Compiler output produced by configure, useful for debugging
5758 # configure, is in ./config.log if it exists.
5759
5760 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5761 for ac_option
5762 do
5763 case "\$ac_option" in
5764 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5765 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5766 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5767 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5768 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5769 exit 0 ;;
5770 -help | --help | --hel | --he | --h)
5771 echo "\$ac_cs_usage"; exit 0 ;;
5772 *) echo "\$ac_cs_usage"; exit 1 ;;
5773 esac
5774 done
5775
5776 ac_given_srcdir=$srcdir
5777 ac_given_INSTALL="$INSTALL"
5778
5779 trap '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
5780 EOF
5781 cat >> $CONFIG_STATUS <<EOF
5782
5783 # Protect against being on the right side of a sed subst in config.status.
5784 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5785 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5786 $ac_vpsub
5787 $extrasub
5788 s%@SHELL@%$SHELL%g
5789 s%@CFLAGS@%$CFLAGS%g
5790 s%@CPPFLAGS@%$CPPFLAGS%g
5791 s%@CXXFLAGS@%$CXXFLAGS%g
5792 s%@FFLAGS@%$FFLAGS%g
5793 s%@DEFS@%$DEFS%g
5794 s%@LDFLAGS@%$LDFLAGS%g
5795 s%@LIBS@%$LIBS%g
5796 s%@exec_prefix@%$exec_prefix%g
5797 s%@prefix@%$prefix%g
5798 s%@program_transform_name@%$program_transform_name%g
5799 s%@bindir@%$bindir%g
5800 s%@sbindir@%$sbindir%g
5801 s%@libexecdir@%$libexecdir%g
5802 s%@datadir@%$datadir%g
5803 s%@sysconfdir@%$sysconfdir%g
5804 s%@sharedstatedir@%$sharedstatedir%g
5805 s%@localstatedir@%$localstatedir%g
5806 s%@libdir@%$libdir%g
5807 s%@includedir@%$includedir%g
5808 s%@oldincludedir@%$oldincludedir%g
5809 s%@infodir@%$infodir%g
5810 s%@mandir@%$mandir%g
5811 s%@host@%$host%g
5812 s%@host_alias@%$host_alias%g
5813 s%@host_cpu@%$host_cpu%g
5814 s%@host_vendor@%$host_vendor%g
5815 s%@host_os@%$host_os%g
5816 s%@target@%$target%g
5817 s%@target_alias@%$target_alias%g
5818 s%@target_cpu@%$target_cpu%g
5819 s%@target_vendor@%$target_vendor%g
5820 s%@target_os@%$target_os%g
5821 s%@build@%$build%g
5822 s%@build_alias@%$build_alias%g
5823 s%@build_cpu@%$build_cpu%g
5824 s%@build_vendor@%$build_vendor%g
5825 s%@build_os@%$build_os%g
5826 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5827 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5828 s%@INSTALL_DATA@%$INSTALL_DATA%g
5829 s%@PACKAGE@%$PACKAGE%g
5830 s%@VERSION@%$VERSION%g
5831 s%@ACLOCAL@%$ACLOCAL%g
5832 s%@AUTOCONF@%$AUTOCONF%g
5833 s%@AUTOMAKE@%$AUTOMAKE%g
5834 s%@AUTOHEADER@%$AUTOHEADER%g
5835 s%@MAKEINFO@%$MAKEINFO%g
5836 s%@SET_MAKE@%$SET_MAKE%g
5837 s%@RANLIB@%$RANLIB%g
5838 s%@CC@%$CC%g
5839 s%@LD@%$LD%g
5840 s%@NM@%$NM%g
5841 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5842 s%@LN_S@%$LN_S%g
5843 s%@DLLTOOL@%$DLLTOOL%g
5844 s%@AS@%$AS%g
5845 s%@LIBTOOL@%$LIBTOOL%g
5846 s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
5847 s%@extra_objects@%$extra_objects%g
5848 s%@target_cpu_type@%$target_cpu_type%g
5849 s%@obj_format@%$obj_format%g
5850 s%@te_file@%$te_file%g
5851 s%@install_tooldir@%$install_tooldir%g
5852 s%@atof@%$atof%g
5853 s%@BFDLIB@%$BFDLIB%g
5854 s%@OPCODES_LIB@%$OPCODES_LIB%g
5855 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
5856 s%@YACC@%$YACC%g
5857 s%@LEX@%$LEX%g
5858 s%@LEXLIB@%$LEXLIB%g
5859 s%@CPP@%$CPP%g
5860 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5861 s%@ALLOCA@%$ALLOCA%g
5862 s%@USE_NLS@%$USE_NLS%g
5863 s%@MSGFMT@%$MSGFMT%g
5864 s%@GMSGFMT@%$GMSGFMT%g
5865 s%@XGETTEXT@%$XGETTEXT%g
5866 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5867 s%@CATALOGS@%$CATALOGS%g
5868 s%@CATOBJEXT@%$CATOBJEXT%g
5869 s%@DATADIRNAME@%$DATADIRNAME%g
5870 s%@GMOFILES@%$GMOFILES%g
5871 s%@INSTOBJEXT@%$INSTOBJEXT%g
5872 s%@INTLDEPS@%$INTLDEPS%g
5873 s%@INTLLIBS@%$INTLLIBS%g
5874 s%@INTLOBJS@%$INTLOBJS%g
5875 s%@POFILES@%$POFILES%g
5876 s%@POSUB@%$POSUB%g
5877 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5878 s%@GT_NO@%$GT_NO%g
5879 s%@GT_YES@%$GT_YES%g
5880 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5881 s%@l@%$l%g
5882 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5883 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5884 s%@MAINT@%$MAINT%g
5885 s%@EXEEXT@%$EXEEXT%g
5886
5887 CEOF
5888 EOF
5889
5890 cat >> $CONFIG_STATUS <<\EOF
5891
5892 # Split the substitutions into bite-sized pieces for seds with
5893 # small command number limits, like on Digital OSF/1 and HP-UX.
5894 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5895 ac_file=1 # Number of current file.
5896 ac_beg=1 # First line for current file.
5897 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5898 ac_more_lines=:
5899 ac_sed_cmds=""
5900 while $ac_more_lines; do
5901 if test $ac_beg -gt 1; then
5902 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5903 else
5904 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5905 fi
5906 if test ! -s conftest.s$ac_file; then
5907 ac_more_lines=false
5908 rm -f conftest.s$ac_file
5909 else
5910 if test -z "$ac_sed_cmds"; then
5911 ac_sed_cmds="sed -f conftest.s$ac_file"
5912 else
5913 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5914 fi
5915 ac_file=`expr $ac_file + 1`
5916 ac_beg=$ac_end
5917 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5918 fi
5919 done
5920 if test -z "$ac_sed_cmds"; then
5921 ac_sed_cmds=cat
5922 fi
5923 EOF
5924
5925 cat >> $CONFIG_STATUS <<EOF
5926
5927 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in"}
5928 EOF
5929 cat >> $CONFIG_STATUS <<\EOF
5930 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5931 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5932 case "$ac_file" in
5933 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5934 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5935 *) ac_file_in="${ac_file}.in" ;;
5936 esac
5937
5938 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5939
5940 # Remove last slash and all that follows it. Not all systems have dirname.
5941 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5942 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5943 # The file is in a subdirectory.
5944 test ! -d "$ac_dir" && mkdir "$ac_dir"
5945 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5946 # A "../" for each directory in $ac_dir_suffix.
5947 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5948 else
5949 ac_dir_suffix= ac_dots=
5950 fi
5951
5952 case "$ac_given_srcdir" in
5953 .) srcdir=.
5954 if test -z "$ac_dots"; then top_srcdir=.
5955 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5956 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5957 *) # Relative path.
5958 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5959 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5960 esac
5961
5962 case "$ac_given_INSTALL" in
5963 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5964 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5965 esac
5966
5967 echo creating "$ac_file"
5968 rm -f "$ac_file"
5969 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5970 case "$ac_file" in
5971 *Makefile*) ac_comsub="1i\\
5972 # $configure_input" ;;
5973 *) ac_comsub= ;;
5974 esac
5975
5976 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5977 sed -e "$ac_comsub
5978 s%@configure_input@%$configure_input%g
5979 s%@srcdir@%$srcdir%g
5980 s%@top_srcdir@%$top_srcdir%g
5981 s%@INSTALL@%$INSTALL%g
5982 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5983 fi; done
5984 rm -f conftest.s*
5985
5986 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5987 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5988 #
5989 # ac_d sets the value in "#define NAME VALUE" lines.
5990 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5991 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5992 ac_dC='\3'
5993 ac_dD='%g'
5994 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5995 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5996 ac_uB='\([ ]\)%\1#\2define\3'
5997 ac_uC=' '
5998 ac_uD='\4%g'
5999 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6000 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6001 ac_eB='$%\1#\2define\3'
6002 ac_eC=' '
6003 ac_eD='%g'
6004
6005 if test "${CONFIG_HEADERS+set}" != set; then
6006 EOF
6007 cat >> $CONFIG_STATUS <<EOF
6008 CONFIG_HEADERS="config.h:config.in"
6009 EOF
6010 cat >> $CONFIG_STATUS <<\EOF
6011 fi
6012 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6014 case "$ac_file" in
6015 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6016 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6017 *) ac_file_in="${ac_file}.in" ;;
6018 esac
6019
6020 echo creating $ac_file
6021
6022 rm -f conftest.frag conftest.in conftest.out
6023 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6024 cat $ac_file_inputs > conftest.in
6025
6026 EOF
6027
6028 # Transform confdefs.h into a sed script conftest.vals that substitutes
6029 # the proper values into config.h.in to produce config.h. And first:
6030 # Protect against being on the right side of a sed subst in config.status.
6031 # Protect against being in an unquoted here document in config.status.
6032 rm -f conftest.vals
6033 cat > conftest.hdr <<\EOF
6034 s/[\\&%]/\\&/g
6035 s%[\\$`]%\\&%g
6036 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6037 s%ac_d%ac_u%gp
6038 s%ac_u%ac_e%gp
6039 EOF
6040 sed -n -f conftest.hdr confdefs.h > conftest.vals
6041 rm -f conftest.hdr
6042
6043 # This sed command replaces #undef with comments. This is necessary, for
6044 # example, in the case of _POSIX_SOURCE, which is predefined and required
6045 # on some systems where configure will not decide to define it.
6046 cat >> conftest.vals <<\EOF
6047 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6048 EOF
6049
6050 # Break up conftest.vals because some shells have a limit on
6051 # the size of here documents, and old seds have small limits too.
6052
6053 rm -f conftest.tail
6054 while :
6055 do
6056 ac_lines=`grep -c . conftest.vals`
6057 # grep -c gives empty output for an empty file on some AIX systems.
6058 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6059 # Write a limited-size here document to conftest.frag.
6060 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6061 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6062 echo 'CEOF
6063 sed -f conftest.frag conftest.in > conftest.out
6064 rm -f conftest.in
6065 mv conftest.out conftest.in
6066 ' >> $CONFIG_STATUS
6067 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6068 rm -f conftest.vals
6069 mv conftest.tail conftest.vals
6070 done
6071 rm -f conftest.vals
6072
6073 cat >> $CONFIG_STATUS <<\EOF
6074 rm -f conftest.frag conftest.h
6075 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6076 cat conftest.in >> conftest.h
6077 rm -f conftest.in
6078 if cmp -s $ac_file conftest.h 2>/dev/null; then
6079 echo "$ac_file is unchanged"
6080 rm -f conftest.h
6081 else
6082 # Remove last slash and all that follows it. Not all systems have dirname.
6083 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6084 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6085 # The file is in a subdirectory.
6086 test ! -d "$ac_dir" && mkdir "$ac_dir"
6087 fi
6088 rm -f $ac_file
6089 mv conftest.h $ac_file
6090 fi
6091 fi; done
6092
6093 EOF
6094 cat >> $CONFIG_STATUS <<EOF
6095
6096 target_cpu_type=${target_cpu_type}
6097 cgen_cpu_prefix=${cgen_cpu_prefix}
6098 obj_format=${obj_format}
6099 te_file=${te_file}
6100 EOF
6101 cat >> $CONFIG_STATUS <<\EOF
6102 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6103 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
6104 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
6105 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
6106 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
6107 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
6108 if test "x$cgen_cpu_prefix" != x ; then
6109 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
6110 fi
6111
6112 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6113 exit 0
6114 EOF
6115 chmod +x $CONFIG_STATUS
6116 rm -fr confdefs* $ac_clean_files
6117 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6118
This page took 0.197648 seconds and 5 git commands to generate.