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