* configure.in (hppa*-linux-gnu*): New target.
[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-*-linux-gnu*) fmt=elf em=hppa ;;
2028 hppa-*-lites*) fmt=elf em=hppa ;;
2029 hppa-*-osf*) fmt=som em=hppa ;;
2030 hppa-*-rtems*) fmt=elf em=hppa ;;
2031 hppa-*-hpux*) fmt=som em=hppa ;;
2032 hppa-*-mpeix*) fmt=som em=hppa ;;
2033 hppa-*-bsd*) fmt=som em=hppa ;;
2034 hppa-*-hiux*) fmt=som em=hppa ;;
2035
2036 h8300-*-coff) fmt=coff ;;
2037
2038 i386-ibm-aix*) fmt=coff em=i386aix ;;
2039 i386-sequent-bsd*) fmt=aout em=dynix bfd_gas=yes ;;
2040 i386-*-beospe*) fmt=coff em=pe bfd_gas=yes ;;
2041 i386-*-beoself* | i386-*-beos*) fmt=elf bfd_gas=yes ;;
2042 i386-*-bsd*) fmt=aout em=386bsd ;;
2043 i386-*-netbsd0.8) fmt=aout em=386bsd ;;
2044 i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;;
2045 i386-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes;;
2046 i386-*-linux*aout* | i386-*-linuxoldld) fmt=aout em=linux ;;
2047 i386-*-linux*coff*) fmt=coff em=linux ;;
2048 i386-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
2049 i386-*-lynxos*) fmt=coff em=lynx ;;
2050 i386-*-sysv4* | i386-*-solaris* | i386-*-elf)
2051 fmt=elf bfd_gas=yes ;;
2052 i386-*-freebsdaout* | i386-*-freebsd12.* | i386-*-freebsd12)
2053 fmt=aout em=386bsd ;;
2054 i386-*-freebsd*) fmt=elf bfd_gas=yes ;;
2055 i386-*-coff | i386-*-sysv* | i386-*-sco3.2v5*coff | i386-*-isc*)
2056 fmt=coff ;;
2057 i386-*-sco3.2v5*) fmt=elf
2058 if test ${this_target} = $target; then
2059 cat >> confdefs.h <<\EOF
2060 #define SCO_ELF 1
2061 EOF
2062
2063 fi
2064 ;;
2065 i386-*-sco3.2*) fmt=coff ;;
2066 i386-*-vsta) fmt=aout ;;
2067 i386-*-msdosdjgpp* | i386-*-go32* | i386-go32-rtems*)
2068 fmt=coff em=go32;;
2069 i386-*-rtemself*) fmt=elf ;;
2070 i386-*-rtems*) fmt=coff ;;
2071 i386-*-gnu*) fmt=elf ;;
2072 i386-*-mach*)
2073 fmt=aout em=mach bfd_gas=yes ;;
2074 i386-*-msdos*) fmt=aout ;;
2075 i386-*-moss*) fmt=elf ;;
2076 i386-*-pe) fmt=coff em=pe ;;
2077 i386-*-cygwin*) fmt=coff em=pe bfd_gas=yes ;;
2078 i386-*-mingw32*) fmt=coff em=pe bfd_gas=yes ;;
2079 i386-*-*nt*) fmt=coff em=pe ;;
2080 i960-*-bout) fmt=bout ;;
2081 i960-*-coff) fmt=coff em=ic960 ;;
2082 i960-*-rtems*) fmt=coff em=ic960 ;;
2083 i960-*-nindy*) fmt=bout ;;
2084 i960-*-vxworks4*) fmt=bout ;;
2085 i960-*-vxworks5.0) fmt=bout ;;
2086 i960-*-vxworks5.*) fmt=coff em=ic960 ;;
2087 i960-*-vxworks*) fmt=bout ;;
2088 i960-*-elf*) fmt=elf ;;
2089
2090 m32r-*-*) fmt=elf bfd_gas=yes ;;
2091
2092 m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*)
2093 fmt=aout em=sun3 ;;
2094 m68k-motorola-sysv*) fmt=coff em=delta ;;
2095 m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
2096 m68k-apollo-*) fmt=coff em=apollo ;;
2097 m68k-*-sysv4*) # must be before -sysv*
2098 fmt=elf em=svr4 ;;
2099 m68k-*-elf*) fmt=elf ;;
2100 m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*)
2101 fmt=coff ;;
2102 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
2103 m68k-*-linux*aout*) fmt=aout em=linux ;;
2104 m68k-*-linux-gnu*) fmt=elf em=linux ;;
2105 m68k-*-gnu*) fmt=elf ;;
2106 m68k-*-lynxos*) fmt=coff em=lynx ;;
2107 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
2108 m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
2109 m68k-apple-aux*) fmt=coff em=aux ;;
2110 m68k-*-psos*) fmt=elf em=psos;;
2111
2112 m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
2113 m88k-*-coff*) fmt=coff ;;
2114
2115 mcore-*-elf) fmt=elf bfd_gas=yes ;;
2116 mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
2117
2118 # don't change em like *-*-bsd does
2119 mips-dec-netbsd*) fmt=elf endian=little ;;
2120 mips-dec-openbsd*) fmt=elf endian=little ;;
2121 mips-dec-bsd*) fmt=aout endian=little ;;
2122 mips-sony-bsd*) fmt=ecoff ;;
2123 mips-*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
2124 mips-*-ultrix*) fmt=ecoff endian=little ;;
2125 mips-*-osf*) fmt=ecoff endian=little ;;
2126 mips-*-ecoff*) fmt=ecoff ;;
2127 mips-*-ecoff*) fmt=ecoff ;;
2128 mips-*-irix6*) fmt=elf ;;
2129 mips-*-irix5*) fmt=elf ;;
2130 mips-*-irix*) fmt=ecoff ;;
2131 mips-*-lnews*) fmt=ecoff em=lnews ;;
2132 mips-*-riscos*) fmt=ecoff ;;
2133 mips-*-sysv*) fmt=ecoff ;;
2134 mips-*-elf* | mips-*-rtems* | mips-*-linux-gnu* | mips-*-gnu* | mips-*-openbsd*)
2135 fmt=elf ;;
2136 mips-*-vxworks*) fmt=elf
2137 cat >> confdefs.h <<\EOF
2138 #define MIPS_STABS_ELF 1
2139 EOF
2140
2141 ;;
2142 mn10200-*-*) fmt=elf bfd_gas=yes ;;
2143 mn10300-*-*) fmt=elf bfd_gas=yes ;;
2144 ppc-*-pe | ppc-*-cygwin* | ppc-*-winnt*)
2145 fmt=coff em=pe ;;
2146 ppc-*-aix*) fmt=coff ;;
2147 ppc-*-beos*) fmt=coff ;;
2148 ppc-*-*bsd* | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
2149 fmt=elf ;;
2150 ppc-*-linux-gnu*) fmt=elf
2151 case "$endian" in
2152 big) ;;
2153 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
2154 esac
2155 ;;
2156 ppc-*-solaris*) fmt=elf
2157 if test ${this_target} = $target; then
2158 cat >> confdefs.h <<\EOF
2159 #define TARGET_SOLARIS_COMMENT 1
2160 EOF
2161
2162 fi
2163 if test x${endian} = xbig; then
2164 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
2165 fi
2166 ;;
2167 ppc-*-rtems*) fmt=elf ;;
2168 ppc-*-macos* | ppc-*-mpw*)
2169 fmt=coff em=macos ;;
2170 ppc-*-netware*) fmt=elf em=ppcnw ;;
2171 ppc-*-vxworks*) fmt=elf ;;
2172
2173 sh-*-elf*) fmt=elf ;;
2174 sh-*-coff*) fmt=coff ;;
2175 sh-*-rtemself*) fmt=elf ;;
2176 sh-*-rtems*) fmt=coff ;;
2177
2178 ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
2179 ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
2180 ns32k-pc532-openbsd*) fmt=aout em=nbsd532 ;;
2181
2182 sparc-*-rtems*) fmt=aout ;;
2183 sparc-*-sunos4*) fmt=aout em=sun3 ;;
2184 sparc-*-aout | sparc*-*-vxworks*)
2185 fmt=aout em=sparcaout ;;
2186 sparc-*-coff) fmt=coff ;;
2187 sparc-*-linux*aout*) fmt=aout em=linux ;;
2188 sparc-*-linux-gnu*) fmt=elf em=linux ;;
2189 sparc-*-lynxos*) fmt=coff em=lynx ;;
2190 sparc-fujitsu-none) fmt=aout ;;
2191 sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*)
2192 fmt=elf ;;
2193 sparc-*-netbsd*) fmt=aout em=nbsd ;;
2194 sparc-*-openbsd*) fmt=aout em=nbsd ;;
2195
2196 strongarm-*-coff) fmt=coff ;;
2197 strongarm-*-elf) fmt=elf ;;
2198
2199 tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
2200 tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
2201 tic80-*-*) fmt=coff ;;
2202
2203 v850-*-*) fmt=elf bfd_gas=yes ;;
2204 v850e-*-*) fmt=elf bfd_gas=yes ;;
2205 v850ea-*-*) fmt=elf bfd_gas=yes ;;
2206
2207 vax-*-bsd* | vax-*-ultrix*)
2208 fmt=aout ;;
2209 vax-*-vms) fmt=vms ;;
2210
2211
2212 z8k-*-coff | z8k-*-sim)
2213 fmt=coff ;;
2214
2215 w65-*-*) fmt=coff ;;
2216
2217 *-*-aout | *-*-scout)
2218 fmt=aout ;;
2219 *-*-nindy*)
2220 fmt=bout ;;
2221 *-*-bsd*)
2222 fmt=aout em=sun3 ;;
2223 *-*-generic) fmt=generic ;;
2224 *-*-xray | *-*-hms) fmt=coff ;;
2225 *-*-sim) fmt=coff ;;
2226 *-*-elf | *-*-sysv4* | *-*-solaris*)
2227 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
2228 fmt=elf dev=yes ;;
2229 *-*-vxworks) fmt=aout ;;
2230 *-*-netware) fmt=elf ;;
2231 esac
2232
2233 if test ${this_target} = $target ; then
2234 endian_def=
2235 if test x${endian} = xbig; then
2236 endian_def=1
2237 elif test x${endian} = xlittle; then
2238 endian_def=0
2239 fi
2240 if test x${endian_def} != x; then
2241 cat >> confdefs.h <<EOF
2242 #define TARGET_BYTES_BIG_ENDIAN $endian_def
2243 EOF
2244
2245 fi
2246 fi
2247
2248 case ${cpu_type}-${fmt} in
2249 alpha*-*) bfd_gas=yes ;;
2250 arm-*) bfd_gas=yes ;;
2251 # not yet
2252 # i386-aout) bfd_gas=preferred ;;
2253 mips-*) bfd_gas=yes ;;
2254 ns32k-*) bfd_gas=yes ;;
2255 ppc-*) bfd_gas=yes ;;
2256 sparc-*) bfd_gas=yes ;;
2257 strongarm-*) bfd_gas=yes ;;
2258 *-elf) bfd_gas=yes ;;
2259 *-ecoff) bfd_gas=yes ;;
2260 *-som) bfd_gas=yes ;;
2261 *) ;;
2262 esac
2263
2264 # Other random stuff.
2265
2266 # Do we need the opcodes library?
2267 case ${cpu_type} in
2268 vax | i386 | tic30)
2269 ;;
2270
2271 *)
2272 need_opcodes=yes
2273
2274 case "${enable_shared}" in
2275 yes) shared_opcodes=true ;;
2276 *opcodes*) shared_opcodes=true ;;
2277 *) shared_opcodes=false ;;
2278 esac
2279 if test "${shared_opcodes}" = "true"; then
2280 # A shared libopcodes must be linked against libbfd.
2281 need_bfd=yes
2282 fi
2283 ;;
2284 esac
2285
2286 # Any other special object files needed ?
2287 case ${cpu_type} in
2288 fr30 | m32r)
2289 using_cgen=yes
2290 ;;
2291
2292 m68k)
2293 case ${extra_objects} in
2294 *m68k-parse.o*) ;;
2295 *) extra_objects="$extra_objects m68k-parse.o" ;;
2296 esac
2297 ;;
2298
2299 mips)
2300 echo ${extra_objects} | grep -s "itbl-parse.o"
2301 if test $? -ne 0 ; then
2302 extra_objects="$extra_objects itbl-parse.o"
2303 fi
2304
2305 echo ${extra_objects} | grep -s "itbl-lex.o"
2306 if test $? -ne 0 ; then
2307 extra_objects="$extra_objects itbl-lex.o"
2308 fi
2309
2310 echo ${extra_objects} | grep -s "itbl-ops.o"
2311 if test $? -ne 0 ; then
2312 extra_objects="$extra_objects itbl-ops.o"
2313 fi
2314 ;;
2315
2316 sparc)
2317 if test $this_target = $target ; then
2318 cat >> confdefs.h <<EOF
2319 #define DEFAULT_ARCH "${arch}"
2320 EOF
2321
2322 fi
2323 ;;
2324 *)
2325 ;;
2326 esac
2327
2328 if test $using_cgen = yes ; then
2329 case "x${extra_objects}" in
2330 *cgen.o*) ;;
2331 *) extra_objects="$extra_objects cgen.o" ;;
2332 esac
2333 fi
2334
2335 # See if we really can support this configuration with the emulation code.
2336
2337 if test $this_target = $target ; then
2338 primary_bfd_gas=$bfd_gas
2339 obj_format=$fmt
2340 te_file=$em
2341
2342 if test $bfd_gas = no ; then
2343 # Can't support other configurations this way.
2344 break
2345 fi
2346 elif test $bfd_gas = no ; then
2347 # Can't support this configuration.
2348 break
2349 fi
2350
2351 # From target name and format, produce a list of supported emulations.
2352
2353 case ${generic_target}-${fmt} in
2354 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2355 mips-*-linux-gnu*-*) case "$endian" in
2356 big) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2357 *) emulation="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
2358 esac ;;
2359 mips-*-lnews*-ecoff) ;;
2360 mips-*-*-ecoff) case "$endian" in
2361 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
2362 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
2363 esac ;;
2364 mips-*-*-elf) case "$endian" in
2365 big) emulation="mipsbelf mipslelf mipself" ;;
2366 *) emulation="mipslelf mipsbelf mipself" ;;
2367 # Uncommenting the next line will turn on support for i386 COFF
2368 # in any i386 ELF configuration. This probably doesn't work
2369 # correctly.
2370 # i386-*-*-elf) emulation="i386coff i386elf" ;;
2371 esac ;;
2372 esac
2373
2374 emulations="$emulations $emulation"
2375
2376 done
2377
2378 # Assign floating point type. Most processors with FP support
2379 # IEEE FP. On those that don't support FP at all, usually IEEE
2380 # is emulated.
2381 case ${target_cpu} in
2382 vax | tahoe ) atof=${target_cpu} ;;
2383 *) atof=ieee ;;
2384 esac
2385
2386 case "${obj_format}" in
2387 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
2388 esac
2389
2390 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
2391 cgen_cpu_prefix=""
2392 if test $using_cgen = yes ; then
2393 case ${target_cpu} in
2394 *) cgen_cpu_prefix=${target_cpu} ;;
2395 esac
2396
2397 cat >> confdefs.h <<\EOF
2398 #define USING_CGEN 1
2399 EOF
2400
2401 fi
2402
2403
2404 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
2405 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
2406 fi
2407
2408 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
2409 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
2410 fi
2411
2412 case ${user_bfd_gas}-${primary_bfd_gas} in
2413 yes-yes | no-no)
2414 # We didn't override user's choice.
2415 ;;
2416 no-yes)
2417 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
2418 ;;
2419 no-preferred)
2420 primary_bfd_gas=no
2421 ;;
2422 *-preferred)
2423 primary_bfd_gas=yes
2424 ;;
2425 yes-*)
2426 primary_bfd_gas=yes
2427 ;;
2428 -*)
2429 # User specified nothing.
2430 ;;
2431 esac
2432
2433 # Some COFF configurations want these random other flags set.
2434 case ${obj_format} in
2435 coff)
2436 case ${target_cpu_type} in
2437 i386) cat >> confdefs.h <<\EOF
2438 #define I386COFF 1
2439 EOF
2440 ;;
2441 m68k) cat >> confdefs.h <<\EOF
2442 #define M68KCOFF 1
2443 EOF
2444 ;;
2445 m88k) cat >> confdefs.h <<\EOF
2446 #define M88KCOFF 1
2447 EOF
2448 ;;
2449 esac
2450 ;;
2451 esac
2452
2453 # Getting this done right is going to be a bitch. Each configuration specified
2454 # with --enable-targets=... should be checked for environment, format, cpu, and
2455 # bfd_gas setting.
2456 #
2457 # For each configuration, the necessary object file support code must be linked
2458 # in. This might be only one, it might be up to four. The necessary emulation
2459 # code needs to be provided, too.
2460 #
2461 # And then there's "--enable-targets=all"....
2462 #
2463 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2464
2465 formats="${obj_format}"
2466 emfiles=""
2467 EMULATIONS=""
2468 _gas_uniq_list="$emulations"
2469 _gas_uniq_newlist=""
2470 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2471 case $_gas_uniq_i in
2472 _gas_uniq_dummy) ;;
2473 *) case " $_gas_uniq_newlist " in
2474 *" $_gas_uniq_i "*) ;;
2475 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2476 esac ;;
2477 esac
2478 done
2479 emulations=$_gas_uniq_newlist
2480
2481 for em in . $emulations ; do
2482 case $em in
2483 .) continue ;;
2484 mipsbelf | mipslelf)
2485 fmt=elf file=mipself ;;
2486 mipsbecoff | mipslecoff)
2487 fmt=ecoff file=mipsecoff ;;
2488 i386coff)
2489 fmt=coff file=i386coff ;;
2490 i386elf)
2491 fmt=elf file=i386elf ;;
2492 esac
2493 formats="$formats $fmt"
2494 emfiles="$emfiles e-$file.o"
2495 EMULATIONS="$EMULATIONS &$em,"
2496 done
2497 _gas_uniq_list="$formats"
2498 _gas_uniq_newlist=""
2499 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2500 case $_gas_uniq_i in
2501 _gas_uniq_dummy) ;;
2502 *) case " $_gas_uniq_newlist " in
2503 *" $_gas_uniq_i "*) ;;
2504 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2505 esac ;;
2506 esac
2507 done
2508 formats=$_gas_uniq_newlist
2509
2510 _gas_uniq_list="$emfiles"
2511 _gas_uniq_newlist=""
2512 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2513 case $_gas_uniq_i in
2514 _gas_uniq_dummy) ;;
2515 *) case " $_gas_uniq_newlist " in
2516 *" $_gas_uniq_i "*) ;;
2517 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2518 esac ;;
2519 esac
2520 done
2521 emfiles=$_gas_uniq_newlist
2522
2523 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2524 for fmt in $formats ; do
2525 case $fmt in
2526 aout) cat >> confdefs.h <<\EOF
2527 #define OBJ_MAYBE_AOUT 1
2528 EOF
2529 ;;
2530 bout) cat >> confdefs.h <<\EOF
2531 #define OBJ_MAYBE_BOUT 1
2532 EOF
2533 ;;
2534 coff) cat >> confdefs.h <<\EOF
2535 #define OBJ_MAYBE_COFF 1
2536 EOF
2537 ;;
2538 ecoff) cat >> confdefs.h <<\EOF
2539 #define OBJ_MAYBE_ECOFF 1
2540 EOF
2541 ;;
2542 elf) cat >> confdefs.h <<\EOF
2543 #define OBJ_MAYBE_ELF 1
2544 EOF
2545 ;;
2546 generic) cat >> confdefs.h <<\EOF
2547 #define OBJ_MAYBE_GENERIC 1
2548 EOF
2549 ;;
2550 hp300) cat >> confdefs.h <<\EOF
2551 #define OBJ_MAYBE_HP300 1
2552 EOF
2553 ;;
2554 ieee) cat >> confdefs.h <<\EOF
2555 #define OBJ_MAYBE_IEEE 1
2556 EOF
2557 ;;
2558 som) cat >> confdefs.h <<\EOF
2559 #define OBJ_MAYBE_SOM 1
2560 EOF
2561 ;;
2562 vms) cat >> confdefs.h <<\EOF
2563 #define OBJ_MAYBE_VMS 1
2564 EOF
2565 ;;
2566 esac
2567 extra_objects="$extra_objects obj-$fmt.o"
2568 done
2569 obj_format=multi
2570 fi
2571 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2572 te_file=multi
2573 extra_objects="$extra_objects $emfiles"
2574 DEFAULT_EMULATION=`set . $emulations ; echo $2`
2575 cat >> confdefs.h <<\EOF
2576 #define USE_EMULATIONS 1
2577 EOF
2578
2579 fi
2580
2581 cat >> confdefs.h <<EOF
2582 #define EMULATIONS $EMULATIONS
2583 EOF
2584
2585 cat >> confdefs.h <<EOF
2586 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2587 EOF
2588
2589
2590 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2591 yes-*-coff) need_bfd=yes ;;
2592 no-*-coff) need_bfd=yes
2593 cat >> confdefs.h <<\EOF
2594 #define MANY_SEGMENTS 1
2595 EOF
2596 ;;
2597 esac
2598
2599 reject_dev_configs=yes
2600
2601 case ${reject_dev_configs}-${dev} in
2602 yes-yes) # Oops.
2603 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2604 ;;
2605 esac
2606
2607
2608
2609
2610
2611
2612
2613 case "${primary_bfd_gas}" in
2614 yes) cat >> confdefs.h <<\EOF
2615 #define BFD_ASSEMBLER 1
2616 EOF
2617
2618 need_bfd=yes ;;
2619 esac
2620
2621 # do we need the opcodes library?
2622 case "${need_opcodes}" in
2623 yes)
2624 OPCODES_LIB=../opcodes/libopcodes.la
2625 ;;
2626 esac
2627
2628 case "${need_bfd}" in
2629 yes)
2630 BFDLIB=../bfd/libbfd.la
2631 ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
2632 ;;
2633 esac
2634
2635
2636
2637
2638
2639
2640 cat >> confdefs.h <<EOF
2641 #define TARGET_ALIAS "${target_alias}"
2642 EOF
2643
2644 cat >> confdefs.h <<EOF
2645 #define TARGET_CANONICAL "${target}"
2646 EOF
2647
2648 cat >> confdefs.h <<EOF
2649 #define TARGET_CPU "${target_cpu}"
2650 EOF
2651
2652 cat >> confdefs.h <<EOF
2653 #define TARGET_VENDOR "${target_vendor}"
2654 EOF
2655
2656 cat >> confdefs.h <<EOF
2657 #define TARGET_OS "${target_os}"
2658 EOF
2659
2660
2661 # Extract the first word of "gcc", so it can be a program name with args.
2662 set dummy gcc; ac_word=$2
2663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2664 echo "configure:2665: checking for $ac_word" >&5
2665 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2667 else
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2670 else
2671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2672 ac_dummy="$PATH"
2673 for ac_dir in $ac_dummy; do
2674 test -z "$ac_dir" && ac_dir=.
2675 if test -f $ac_dir/$ac_word; then
2676 ac_cv_prog_CC="gcc"
2677 break
2678 fi
2679 done
2680 IFS="$ac_save_ifs"
2681 fi
2682 fi
2683 CC="$ac_cv_prog_CC"
2684 if test -n "$CC"; then
2685 echo "$ac_t""$CC" 1>&6
2686 else
2687 echo "$ac_t""no" 1>&6
2688 fi
2689
2690 if test -z "$CC"; then
2691 # Extract the first word of "cc", so it can be a program name with args.
2692 set dummy cc; ac_word=$2
2693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2694 echo "configure:2695: checking for $ac_word" >&5
2695 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2702 ac_prog_rejected=no
2703 ac_dummy="$PATH"
2704 for ac_dir in $ac_dummy; do
2705 test -z "$ac_dir" && ac_dir=.
2706 if test -f $ac_dir/$ac_word; then
2707 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2708 ac_prog_rejected=yes
2709 continue
2710 fi
2711 ac_cv_prog_CC="cc"
2712 break
2713 fi
2714 done
2715 IFS="$ac_save_ifs"
2716 if test $ac_prog_rejected = yes; then
2717 # We found a bogon in the path, so make sure we never use it.
2718 set dummy $ac_cv_prog_CC
2719 shift
2720 if test $# -gt 0; then
2721 # We chose a different compiler from the bogus one.
2722 # However, it has the same basename, so the bogon will be chosen
2723 # first if we set CC to just the basename; use the full file name.
2724 shift
2725 set dummy "$ac_dir/$ac_word" "$@"
2726 shift
2727 ac_cv_prog_CC="$@"
2728 fi
2729 fi
2730 fi
2731 fi
2732 CC="$ac_cv_prog_CC"
2733 if test -n "$CC"; then
2734 echo "$ac_t""$CC" 1>&6
2735 else
2736 echo "$ac_t""no" 1>&6
2737 fi
2738
2739 if test -z "$CC"; then
2740 case "`uname -s`" in
2741 *win32* | *WIN32*)
2742 # Extract the first word of "cl", so it can be a program name with args.
2743 set dummy cl; ac_word=$2
2744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2745 echo "configure:2746: checking for $ac_word" >&5
2746 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2748 else
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC="$CC" # Let the user override the test.
2751 else
2752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2753 ac_dummy="$PATH"
2754 for ac_dir in $ac_dummy; do
2755 test -z "$ac_dir" && ac_dir=.
2756 if test -f $ac_dir/$ac_word; then
2757 ac_cv_prog_CC="cl"
2758 break
2759 fi
2760 done
2761 IFS="$ac_save_ifs"
2762 fi
2763 fi
2764 CC="$ac_cv_prog_CC"
2765 if test -n "$CC"; then
2766 echo "$ac_t""$CC" 1>&6
2767 else
2768 echo "$ac_t""no" 1>&6
2769 fi
2770 ;;
2771 esac
2772 fi
2773 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2774 fi
2775
2776 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2777 echo "configure:2778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2778
2779 ac_ext=c
2780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2784 cross_compiling=$ac_cv_prog_cc_cross
2785
2786 cat > conftest.$ac_ext << EOF
2787
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2790
2791 main(){return(0);}
2792 EOF
2793 if { (eval echo configure:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2794 ac_cv_prog_cc_works=yes
2795 # If we can't run a trivial program, we are probably using a cross compiler.
2796 if (./conftest; exit) 2>/dev/null; then
2797 ac_cv_prog_cc_cross=no
2798 else
2799 ac_cv_prog_cc_cross=yes
2800 fi
2801 else
2802 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2804 ac_cv_prog_cc_works=no
2805 fi
2806 rm -fr conftest*
2807 ac_ext=c
2808 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2809 ac_cpp='$CPP $CPPFLAGS'
2810 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2811 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2812 cross_compiling=$ac_cv_prog_cc_cross
2813
2814 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2815 if test $ac_cv_prog_cc_works = no; then
2816 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2817 fi
2818 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2819 echo "configure:2820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2820 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2821 cross_compiling=$ac_cv_prog_cc_cross
2822
2823 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2824 echo "configure:2825: checking whether we are using GNU C" >&5
2825 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2827 else
2828 cat > conftest.c <<EOF
2829 #ifdef __GNUC__
2830 yes;
2831 #endif
2832 EOF
2833 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2834 ac_cv_prog_gcc=yes
2835 else
2836 ac_cv_prog_gcc=no
2837 fi
2838 fi
2839
2840 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2841
2842 if test $ac_cv_prog_gcc = yes; then
2843 GCC=yes
2844 else
2845 GCC=
2846 fi
2847
2848 ac_test_CFLAGS="${CFLAGS+set}"
2849 ac_save_CFLAGS="$CFLAGS"
2850 CFLAGS=
2851 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2852 echo "configure:2853: checking whether ${CC-cc} accepts -g" >&5
2853 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2854 echo $ac_n "(cached) $ac_c" 1>&6
2855 else
2856 echo 'void f(){}' > conftest.c
2857 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2858 ac_cv_prog_cc_g=yes
2859 else
2860 ac_cv_prog_cc_g=no
2861 fi
2862 rm -f conftest*
2863
2864 fi
2865
2866 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2867 if test "$ac_test_CFLAGS" = set; then
2868 CFLAGS="$ac_save_CFLAGS"
2869 elif test $ac_cv_prog_cc_g = yes; then
2870 if test "$GCC" = yes; then
2871 CFLAGS="-g -O2"
2872 else
2873 CFLAGS="-g"
2874 fi
2875 else
2876 if test "$GCC" = yes; then
2877 CFLAGS="-O2"
2878 else
2879 CFLAGS=
2880 fi
2881 fi
2882
2883
2884 for ac_prog in 'bison -y' byacc
2885 do
2886 # Extract the first word of "$ac_prog", so it can be a program name with args.
2887 set dummy $ac_prog; ac_word=$2
2888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2889 echo "configure:2890: checking for $ac_word" >&5
2890 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2892 else
2893 if test -n "$YACC"; then
2894 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2895 else
2896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2897 ac_dummy="$PATH"
2898 for ac_dir in $ac_dummy; do
2899 test -z "$ac_dir" && ac_dir=.
2900 if test -f $ac_dir/$ac_word; then
2901 ac_cv_prog_YACC="$ac_prog"
2902 break
2903 fi
2904 done
2905 IFS="$ac_save_ifs"
2906 fi
2907 fi
2908 YACC="$ac_cv_prog_YACC"
2909 if test -n "$YACC"; then
2910 echo "$ac_t""$YACC" 1>&6
2911 else
2912 echo "$ac_t""no" 1>&6
2913 fi
2914
2915 test -n "$YACC" && break
2916 done
2917 test -n "$YACC" || YACC="yacc"
2918
2919 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2920 echo "configure:2921: checking how to run the C preprocessor" >&5
2921 # On Suns, sometimes $CPP names a directory.
2922 if test -n "$CPP" && test -d "$CPP"; then
2923 CPP=
2924 fi
2925 if test -z "$CPP"; then
2926 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2928 else
2929 # This must be in double quotes, not single quotes, because CPP may get
2930 # substituted into the Makefile and "${CC-cc}" will confuse make.
2931 CPP="${CC-cc} -E"
2932 # On the NeXT, cc -E runs the code through the compiler's parser,
2933 # not just through cpp.
2934 cat > conftest.$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2937 #include <assert.h>
2938 Syntax Error
2939 EOF
2940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2941 { (eval echo configure:2942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2943 if test -z "$ac_err"; then
2944 :
2945 else
2946 echo "$ac_err" >&5
2947 echo "configure: failed program was:" >&5
2948 cat conftest.$ac_ext >&5
2949 rm -rf conftest*
2950 CPP="${CC-cc} -E -traditional-cpp"
2951 cat > conftest.$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2954 #include <assert.h>
2955 Syntax Error
2956 EOF
2957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2958 { (eval echo configure:2959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2960 if test -z "$ac_err"; then
2961 :
2962 else
2963 echo "$ac_err" >&5
2964 echo "configure: failed program was:" >&5
2965 cat conftest.$ac_ext >&5
2966 rm -rf conftest*
2967 CPP="${CC-cc} -nologo -E"
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2971 #include <assert.h>
2972 Syntax Error
2973 EOF
2974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2975 { (eval echo configure:2976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2977 if test -z "$ac_err"; then
2978 :
2979 else
2980 echo "$ac_err" >&5
2981 echo "configure: failed program was:" >&5
2982 cat conftest.$ac_ext >&5
2983 rm -rf conftest*
2984 CPP=/lib/cpp
2985 fi
2986 rm -f conftest*
2987 fi
2988 rm -f conftest*
2989 fi
2990 rm -f conftest*
2991 ac_cv_prog_CPP="$CPP"
2992 fi
2993 CPP="$ac_cv_prog_CPP"
2994 else
2995 ac_cv_prog_CPP="$CPP"
2996 fi
2997 echo "$ac_t""$CPP" 1>&6
2998
2999 missing_dir=`cd $ac_aux_dir && pwd`
3000 for ac_prog in flex lex
3001 do
3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003 set dummy $ac_prog; ac_word=$2
3004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3005 echo "configure:3006: checking for $ac_word" >&5
3006 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3008 else
3009 if test -n "$LEX"; then
3010 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3011 else
3012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3013 ac_dummy="$PATH"
3014 for ac_dir in $ac_dummy; do
3015 test -z "$ac_dir" && ac_dir=.
3016 if test -f $ac_dir/$ac_word; then
3017 ac_cv_prog_LEX="$ac_prog"
3018 break
3019 fi
3020 done
3021 IFS="$ac_save_ifs"
3022 fi
3023 fi
3024 LEX="$ac_cv_prog_LEX"
3025 if test -n "$LEX"; then
3026 echo "$ac_t""$LEX" 1>&6
3027 else
3028 echo "$ac_t""no" 1>&6
3029 fi
3030
3031 test -n "$LEX" && break
3032 done
3033 test -n "$LEX" || LEX=""$missing_dir/missing flex""
3034
3035 # Extract the first word of "flex", so it can be a program name with args.
3036 set dummy flex; ac_word=$2
3037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3038 echo "configure:3039: checking for $ac_word" >&5
3039 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3040 echo $ac_n "(cached) $ac_c" 1>&6
3041 else
3042 if test -n "$LEX"; then
3043 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3044 else
3045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3046 ac_dummy="$PATH"
3047 for ac_dir in $ac_dummy; do
3048 test -z "$ac_dir" && ac_dir=.
3049 if test -f $ac_dir/$ac_word; then
3050 ac_cv_prog_LEX="flex"
3051 break
3052 fi
3053 done
3054 IFS="$ac_save_ifs"
3055 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
3056 fi
3057 fi
3058 LEX="$ac_cv_prog_LEX"
3059 if test -n "$LEX"; then
3060 echo "$ac_t""$LEX" 1>&6
3061 else
3062 echo "$ac_t""no" 1>&6
3063 fi
3064
3065 if test -z "$LEXLIB"
3066 then
3067 case "$LEX" in
3068 flex*) ac_lib=fl ;;
3069 *) ac_lib=l ;;
3070 esac
3071 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3072 echo "configure:3073: checking for yywrap in -l$ac_lib" >&5
3073 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3076 else
3077 ac_save_LIBS="$LIBS"
3078 LIBS="-l$ac_lib $LIBS"
3079 cat > conftest.$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3082 /* Override any gcc2 internal prototype to avoid an error. */
3083 /* We use char because int might match the return type of a gcc2
3084 builtin and then its argument prototype would still apply. */
3085 char yywrap();
3086
3087 int main() {
3088 yywrap()
3089 ; return 0; }
3090 EOF
3091 if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3092 rm -rf conftest*
3093 eval "ac_cv_lib_$ac_lib_var=yes"
3094 else
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3097 rm -rf conftest*
3098 eval "ac_cv_lib_$ac_lib_var=no"
3099 fi
3100 rm -f conftest*
3101 LIBS="$ac_save_LIBS"
3102
3103 fi
3104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3105 echo "$ac_t""yes" 1>&6
3106 LEXLIB="-l$ac_lib"
3107 else
3108 echo "$ac_t""no" 1>&6
3109 fi
3110
3111 fi
3112
3113 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3114 echo "configure:3115: checking lex output file root" >&5
3115 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3117 else
3118 # The minimal lex program is just a single line: %%. But some broken lexes
3119 # (Solaris, I think it was) want two %% lines, so accommodate them.
3120 echo '%%
3121 %%' | $LEX
3122 if test -f lex.yy.c; then
3123 ac_cv_prog_lex_root=lex.yy
3124 elif test -f lexyy.c; then
3125 ac_cv_prog_lex_root=lexyy
3126 else
3127 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3128 fi
3129 fi
3130
3131 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3132 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3133
3134 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3135 echo "configure:3136: checking whether yytext is a pointer" >&5
3136 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3137 echo $ac_n "(cached) $ac_c" 1>&6
3138 else
3139 # POSIX says lex can declare yytext either as a pointer or an array; the
3140 # default is implementation-dependent. Figure out which it is, since
3141 # not all implementations provide the %pointer and %array declarations.
3142 ac_cv_prog_lex_yytext_pointer=no
3143 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3144 ac_save_LIBS="$LIBS"
3145 LIBS="$LIBS $LEXLIB"
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 `cat $LEX_OUTPUT_ROOT.c`
3150 int main() {
3151
3152 ; return 0; }
3153 EOF
3154 if { (eval echo configure:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3155 rm -rf conftest*
3156 ac_cv_prog_lex_yytext_pointer=yes
3157 else
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3160 fi
3161 rm -f conftest*
3162 LIBS="$ac_save_LIBS"
3163 rm -f "${LEX_OUTPUT_ROOT}.c"
3164
3165 fi
3166
3167 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3168 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3169 cat >> confdefs.h <<\EOF
3170 #define YYTEXT_POINTER 1
3171 EOF
3172
3173 fi
3174
3175
3176 ALL_LINGUAS=
3177 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3178 echo "configure:3179: checking for POSIXized ISC" >&5
3179 if test -d /etc/conf/kconfig.d &&
3180 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3181 then
3182 echo "$ac_t""yes" 1>&6
3183 ISC=yes # If later tests want to check for ISC.
3184 cat >> confdefs.h <<\EOF
3185 #define _POSIX_SOURCE 1
3186 EOF
3187
3188 if test "$GCC" = yes; then
3189 CC="$CC -posix"
3190 else
3191 CC="$CC -Xp"
3192 fi
3193 else
3194 echo "$ac_t""no" 1>&6
3195 ISC=
3196 fi
3197
3198 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3199 echo "configure:3200: checking for ANSI C header files" >&5
3200 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3202 else
3203 cat > conftest.$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3206 #include <stdlib.h>
3207 #include <stdarg.h>
3208 #include <string.h>
3209 #include <float.h>
3210 EOF
3211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3212 { (eval echo configure:3213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3214 if test -z "$ac_err"; then
3215 rm -rf conftest*
3216 ac_cv_header_stdc=yes
3217 else
3218 echo "$ac_err" >&5
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3221 rm -rf conftest*
3222 ac_cv_header_stdc=no
3223 fi
3224 rm -f conftest*
3225
3226 if test $ac_cv_header_stdc = yes; then
3227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3228 cat > conftest.$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 #include <string.h>
3232 EOF
3233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3234 egrep "memchr" >/dev/null 2>&1; then
3235 :
3236 else
3237 rm -rf conftest*
3238 ac_cv_header_stdc=no
3239 fi
3240 rm -f conftest*
3241
3242 fi
3243
3244 if test $ac_cv_header_stdc = yes; then
3245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3246 cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 #include <stdlib.h>
3250 EOF
3251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3252 egrep "free" >/dev/null 2>&1; then
3253 :
3254 else
3255 rm -rf conftest*
3256 ac_cv_header_stdc=no
3257 fi
3258 rm -f conftest*
3259
3260 fi
3261
3262 if test $ac_cv_header_stdc = yes; then
3263 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3264 if test "$cross_compiling" = yes; then
3265 :
3266 else
3267 cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 #include <ctype.h>
3271 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3272 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3273 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3274 int main () { int i; for (i = 0; i < 256; i++)
3275 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3276 exit (0); }
3277
3278 EOF
3279 if { (eval echo configure:3280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3280 then
3281 :
3282 else
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3285 rm -fr conftest*
3286 ac_cv_header_stdc=no
3287 fi
3288 rm -fr conftest*
3289 fi
3290
3291 fi
3292 fi
3293
3294 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3295 if test $ac_cv_header_stdc = yes; then
3296 cat >> confdefs.h <<\EOF
3297 #define STDC_HEADERS 1
3298 EOF
3299
3300 fi
3301
3302 echo $ac_n "checking for working const""... $ac_c" 1>&6
3303 echo "configure:3304: checking for working const" >&5
3304 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3306 else
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310
3311 int main() {
3312
3313 /* Ultrix mips cc rejects this. */
3314 typedef int charset[2]; const charset x;
3315 /* SunOS 4.1.1 cc rejects this. */
3316 char const *const *ccp;
3317 char **p;
3318 /* NEC SVR4.0.2 mips cc rejects this. */
3319 struct point {int x, y;};
3320 static struct point const zero = {0,0};
3321 /* AIX XL C 1.02.0.0 rejects this.
3322 It does not let you subtract one const X* pointer from another in an arm
3323 of an if-expression whose if-part is not a constant expression */
3324 const char *g = "string";
3325 ccp = &g + (g ? g-g : 0);
3326 /* HPUX 7.0 cc rejects these. */
3327 ++ccp;
3328 p = (char**) ccp;
3329 ccp = (char const *const *) p;
3330 { /* SCO 3.2v4 cc rejects this. */
3331 char *t;
3332 char const *s = 0 ? (char *) 0 : (char const *) 0;
3333
3334 *t++ = 0;
3335 }
3336 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3337 int x[] = {25, 17};
3338 const int *foo = &x[0];
3339 ++foo;
3340 }
3341 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3342 typedef const int *iptr;
3343 iptr p = 0;
3344 ++p;
3345 }
3346 { /* AIX XL C 1.02.0.0 rejects this saying
3347 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3348 struct s { int j; const int *ap[3]; };
3349 struct s *b; b->j = 5;
3350 }
3351 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3352 const int foo = 10;
3353 }
3354
3355 ; return 0; }
3356 EOF
3357 if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358 rm -rf conftest*
3359 ac_cv_c_const=yes
3360 else
3361 echo "configure: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3363 rm -rf conftest*
3364 ac_cv_c_const=no
3365 fi
3366 rm -f conftest*
3367 fi
3368
3369 echo "$ac_t""$ac_cv_c_const" 1>&6
3370 if test $ac_cv_c_const = no; then
3371 cat >> confdefs.h <<\EOF
3372 #define const
3373 EOF
3374
3375 fi
3376
3377 echo $ac_n "checking for inline""... $ac_c" 1>&6
3378 echo "configure:3379: checking for inline" >&5
3379 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3381 else
3382 ac_cv_c_inline=no
3383 for ac_kw in inline __inline__ __inline; do
3384 cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3387
3388 int main() {
3389 } $ac_kw foo() {
3390 ; return 0; }
3391 EOF
3392 if { (eval echo configure:3393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3393 rm -rf conftest*
3394 ac_cv_c_inline=$ac_kw; break
3395 else
3396 echo "configure: failed program was:" >&5
3397 cat conftest.$ac_ext >&5
3398 fi
3399 rm -f conftest*
3400 done
3401
3402 fi
3403
3404 echo "$ac_t""$ac_cv_c_inline" 1>&6
3405 case "$ac_cv_c_inline" in
3406 inline | yes) ;;
3407 no) cat >> confdefs.h <<\EOF
3408 #define inline
3409 EOF
3410 ;;
3411 *) cat >> confdefs.h <<EOF
3412 #define inline $ac_cv_c_inline
3413 EOF
3414 ;;
3415 esac
3416
3417 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3418 echo "configure:3419: checking for off_t" >&5
3419 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3420 echo $ac_n "(cached) $ac_c" 1>&6
3421 else
3422 cat > conftest.$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3425 #include <sys/types.h>
3426 #if STDC_HEADERS
3427 #include <stdlib.h>
3428 #include <stddef.h>
3429 #endif
3430 EOF
3431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3432 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3433 rm -rf conftest*
3434 ac_cv_type_off_t=yes
3435 else
3436 rm -rf conftest*
3437 ac_cv_type_off_t=no
3438 fi
3439 rm -f conftest*
3440
3441 fi
3442 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3443 if test $ac_cv_type_off_t = no; then
3444 cat >> confdefs.h <<\EOF
3445 #define off_t long
3446 EOF
3447
3448 fi
3449
3450 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3451 echo "configure:3452: checking for size_t" >&5
3452 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3454 else
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 #include <sys/types.h>
3459 #if STDC_HEADERS
3460 #include <stdlib.h>
3461 #include <stddef.h>
3462 #endif
3463 EOF
3464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3465 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3466 rm -rf conftest*
3467 ac_cv_type_size_t=yes
3468 else
3469 rm -rf conftest*
3470 ac_cv_type_size_t=no
3471 fi
3472 rm -f conftest*
3473
3474 fi
3475 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3476 if test $ac_cv_type_size_t = no; then
3477 cat >> confdefs.h <<\EOF
3478 #define size_t unsigned
3479 EOF
3480
3481 fi
3482
3483 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3484 # for constant arguments. Useless!
3485 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3486 echo "configure:3487: checking for working alloca.h" >&5
3487 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3489 else
3490 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3493 #include <alloca.h>
3494 int main() {
3495 char *p = alloca(2 * sizeof(int));
3496 ; return 0; }
3497 EOF
3498 if { (eval echo configure:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3499 rm -rf conftest*
3500 ac_cv_header_alloca_h=yes
3501 else
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 rm -rf conftest*
3505 ac_cv_header_alloca_h=no
3506 fi
3507 rm -f conftest*
3508 fi
3509
3510 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3511 if test $ac_cv_header_alloca_h = yes; then
3512 cat >> confdefs.h <<\EOF
3513 #define HAVE_ALLOCA_H 1
3514 EOF
3515
3516 fi
3517
3518 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3519 echo "configure:3520: checking for alloca" >&5
3520 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3522 else
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526
3527 #ifdef __GNUC__
3528 # define alloca __builtin_alloca
3529 #else
3530 # ifdef _MSC_VER
3531 # include <malloc.h>
3532 # define alloca _alloca
3533 # else
3534 # if HAVE_ALLOCA_H
3535 # include <alloca.h>
3536 # else
3537 # ifdef _AIX
3538 #pragma alloca
3539 # else
3540 # ifndef alloca /* predefined by HP cc +Olibcalls */
3541 char *alloca ();
3542 # endif
3543 # endif
3544 # endif
3545 # endif
3546 #endif
3547
3548 int main() {
3549 char *p = (char *) alloca(1);
3550 ; return 0; }
3551 EOF
3552 if { (eval echo configure:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3553 rm -rf conftest*
3554 ac_cv_func_alloca_works=yes
3555 else
3556 echo "configure: failed program was:" >&5
3557 cat conftest.$ac_ext >&5
3558 rm -rf conftest*
3559 ac_cv_func_alloca_works=no
3560 fi
3561 rm -f conftest*
3562 fi
3563
3564 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3565 if test $ac_cv_func_alloca_works = yes; then
3566 cat >> confdefs.h <<\EOF
3567 #define HAVE_ALLOCA 1
3568 EOF
3569
3570 fi
3571
3572 if test $ac_cv_func_alloca_works = no; then
3573 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3574 # that cause trouble. Some versions do not even contain alloca or
3575 # contain a buggy version. If you still want to use their alloca,
3576 # use ar to extract alloca.o from them instead of compiling alloca.c.
3577 ALLOCA=alloca.${ac_objext}
3578 cat >> confdefs.h <<\EOF
3579 #define C_ALLOCA 1
3580 EOF
3581
3582
3583 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3584 echo "configure:3585: checking whether alloca needs Cray hooks" >&5
3585 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3587 else
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 #if defined(CRAY) && ! defined(CRAY2)
3592 webecray
3593 #else
3594 wenotbecray
3595 #endif
3596
3597 EOF
3598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3599 egrep "webecray" >/dev/null 2>&1; then
3600 rm -rf conftest*
3601 ac_cv_os_cray=yes
3602 else
3603 rm -rf conftest*
3604 ac_cv_os_cray=no
3605 fi
3606 rm -f conftest*
3607
3608 fi
3609
3610 echo "$ac_t""$ac_cv_os_cray" 1>&6
3611 if test $ac_cv_os_cray = yes; then
3612 for ac_func in _getb67 GETB67 getb67; do
3613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3614 echo "configure:3615: checking for $ac_func" >&5
3615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3617 else
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 /* System header to define __stub macros and hopefully few prototypes,
3622 which can conflict with char $ac_func(); below. */
3623 #include <assert.h>
3624 /* Override any gcc2 internal prototype to avoid an error. */
3625 /* We use char because int might match the return type of a gcc2
3626 builtin and then its argument prototype would still apply. */
3627 char $ac_func();
3628
3629 int main() {
3630
3631 /* The GNU C library defines this for functions which it implements
3632 to always fail with ENOSYS. Some functions are actually named
3633 something starting with __ and the normal name is an alias. */
3634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3635 choke me
3636 #else
3637 $ac_func();
3638 #endif
3639
3640 ; return 0; }
3641 EOF
3642 if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3643 rm -rf conftest*
3644 eval "ac_cv_func_$ac_func=yes"
3645 else
3646 echo "configure: failed program was:" >&5
3647 cat conftest.$ac_ext >&5
3648 rm -rf conftest*
3649 eval "ac_cv_func_$ac_func=no"
3650 fi
3651 rm -f conftest*
3652 fi
3653
3654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3655 echo "$ac_t""yes" 1>&6
3656 cat >> confdefs.h <<EOF
3657 #define CRAY_STACKSEG_END $ac_func
3658 EOF
3659
3660 break
3661 else
3662 echo "$ac_t""no" 1>&6
3663 fi
3664
3665 done
3666 fi
3667
3668 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3669 echo "configure:3670: checking stack direction for C alloca" >&5
3670 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3672 else
3673 if test "$cross_compiling" = yes; then
3674 ac_cv_c_stack_direction=0
3675 else
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 find_stack_direction ()
3680 {
3681 static char *addr = 0;
3682 auto char dummy;
3683 if (addr == 0)
3684 {
3685 addr = &dummy;
3686 return find_stack_direction ();
3687 }
3688 else
3689 return (&dummy > addr) ? 1 : -1;
3690 }
3691 main ()
3692 {
3693 exit (find_stack_direction() < 0);
3694 }
3695 EOF
3696 if { (eval echo configure:3697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3697 then
3698 ac_cv_c_stack_direction=1
3699 else
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3702 rm -fr conftest*
3703 ac_cv_c_stack_direction=-1
3704 fi
3705 rm -fr conftest*
3706 fi
3707
3708 fi
3709
3710 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3711 cat >> confdefs.h <<EOF
3712 #define STACK_DIRECTION $ac_cv_c_stack_direction
3713 EOF
3714
3715 fi
3716
3717 for ac_hdr in unistd.h
3718 do
3719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3721 echo "configure:3722: checking for $ac_hdr" >&5
3722 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3724 else
3725 cat > conftest.$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3728 #include <$ac_hdr>
3729 EOF
3730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3731 { (eval echo configure:3732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3733 if test -z "$ac_err"; then
3734 rm -rf conftest*
3735 eval "ac_cv_header_$ac_safe=yes"
3736 else
3737 echo "$ac_err" >&5
3738 echo "configure: failed program was:" >&5
3739 cat conftest.$ac_ext >&5
3740 rm -rf conftest*
3741 eval "ac_cv_header_$ac_safe=no"
3742 fi
3743 rm -f conftest*
3744 fi
3745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3746 echo "$ac_t""yes" 1>&6
3747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3748 cat >> confdefs.h <<EOF
3749 #define $ac_tr_hdr 1
3750 EOF
3751
3752 else
3753 echo "$ac_t""no" 1>&6
3754 fi
3755 done
3756
3757 for ac_func in getpagesize
3758 do
3759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3760 echo "configure:3761: checking for $ac_func" >&5
3761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3763 else
3764 cat > conftest.$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 /* System header to define __stub macros and hopefully few prototypes,
3768 which can conflict with char $ac_func(); below. */
3769 #include <assert.h>
3770 /* Override any gcc2 internal prototype to avoid an error. */
3771 /* We use char because int might match the return type of a gcc2
3772 builtin and then its argument prototype would still apply. */
3773 char $ac_func();
3774
3775 int main() {
3776
3777 /* The GNU C library defines this for functions which it implements
3778 to always fail with ENOSYS. Some functions are actually named
3779 something starting with __ and the normal name is an alias. */
3780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3781 choke me
3782 #else
3783 $ac_func();
3784 #endif
3785
3786 ; return 0; }
3787 EOF
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3789 rm -rf conftest*
3790 eval "ac_cv_func_$ac_func=yes"
3791 else
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3794 rm -rf conftest*
3795 eval "ac_cv_func_$ac_func=no"
3796 fi
3797 rm -f conftest*
3798 fi
3799
3800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3801 echo "$ac_t""yes" 1>&6
3802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3803 cat >> confdefs.h <<EOF
3804 #define $ac_tr_func 1
3805 EOF
3806
3807 else
3808 echo "$ac_t""no" 1>&6
3809 fi
3810 done
3811
3812 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3813 echo "configure:3814: checking for working mmap" >&5
3814 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3816 else
3817 if test "$cross_compiling" = yes; then
3818 ac_cv_func_mmap_fixed_mapped=no
3819 else
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823
3824 /* Thanks to Mike Haertel and Jim Avera for this test.
3825 Here is a matrix of mmap possibilities:
3826 mmap private not fixed
3827 mmap private fixed at somewhere currently unmapped
3828 mmap private fixed at somewhere already mapped
3829 mmap shared not fixed
3830 mmap shared fixed at somewhere currently unmapped
3831 mmap shared fixed at somewhere already mapped
3832 For private mappings, we should verify that changes cannot be read()
3833 back from the file, nor mmap's back from the file at a different
3834 address. (There have been systems where private was not correctly
3835 implemented like the infamous i386 svr4.0, and systems where the
3836 VM page cache was not coherent with the filesystem buffer cache
3837 like early versions of FreeBSD and possibly contemporary NetBSD.)
3838 For shared mappings, we should conversely verify that changes get
3839 propogated back to all the places they're supposed to be.
3840
3841 Grep wants private fixed already mapped.
3842 The main things grep needs to know about mmap are:
3843 * does it exist and is it safe to write into the mmap'd area
3844 * how to use it (BSD variants) */
3845 #include <sys/types.h>
3846 #include <fcntl.h>
3847 #include <sys/mman.h>
3848
3849 /* This mess was copied from the GNU getpagesize.h. */
3850 #ifndef HAVE_GETPAGESIZE
3851 # ifdef HAVE_UNISTD_H
3852 # include <unistd.h>
3853 # endif
3854
3855 /* Assume that all systems that can run configure have sys/param.h. */
3856 # ifndef HAVE_SYS_PARAM_H
3857 # define HAVE_SYS_PARAM_H 1
3858 # endif
3859
3860 # ifdef _SC_PAGESIZE
3861 # define getpagesize() sysconf(_SC_PAGESIZE)
3862 # else /* no _SC_PAGESIZE */
3863 # ifdef HAVE_SYS_PARAM_H
3864 # include <sys/param.h>
3865 # ifdef EXEC_PAGESIZE
3866 # define getpagesize() EXEC_PAGESIZE
3867 # else /* no EXEC_PAGESIZE */
3868 # ifdef NBPG
3869 # define getpagesize() NBPG * CLSIZE
3870 # ifndef CLSIZE
3871 # define CLSIZE 1
3872 # endif /* no CLSIZE */
3873 # else /* no NBPG */
3874 # ifdef NBPC
3875 # define getpagesize() NBPC
3876 # else /* no NBPC */
3877 # ifdef PAGESIZE
3878 # define getpagesize() PAGESIZE
3879 # endif /* PAGESIZE */
3880 # endif /* no NBPC */
3881 # endif /* no NBPG */
3882 # endif /* no EXEC_PAGESIZE */
3883 # else /* no HAVE_SYS_PARAM_H */
3884 # define getpagesize() 8192 /* punt totally */
3885 # endif /* no HAVE_SYS_PARAM_H */
3886 # endif /* no _SC_PAGESIZE */
3887
3888 #endif /* no HAVE_GETPAGESIZE */
3889
3890 #ifdef __cplusplus
3891 extern "C" { void *malloc(unsigned); }
3892 #else
3893 char *malloc();
3894 #endif
3895
3896 int
3897 main()
3898 {
3899 char *data, *data2, *data3;
3900 int i, pagesize;
3901 int fd;
3902
3903 pagesize = getpagesize();
3904
3905 /*
3906 * First, make a file with some known garbage in it.
3907 */
3908 data = malloc(pagesize);
3909 if (!data)
3910 exit(1);
3911 for (i = 0; i < pagesize; ++i)
3912 *(data + i) = rand();
3913 umask(0);
3914 fd = creat("conftestmmap", 0600);
3915 if (fd < 0)
3916 exit(1);
3917 if (write(fd, data, pagesize) != pagesize)
3918 exit(1);
3919 close(fd);
3920
3921 /*
3922 * Next, try to mmap the file at a fixed address which
3923 * already has something else allocated at it. If we can,
3924 * also make sure that we see the same garbage.
3925 */
3926 fd = open("conftestmmap", O_RDWR);
3927 if (fd < 0)
3928 exit(1);
3929 data2 = malloc(2 * pagesize);
3930 if (!data2)
3931 exit(1);
3932 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3933 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3934 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3935 exit(1);
3936 for (i = 0; i < pagesize; ++i)
3937 if (*(data + i) != *(data2 + i))
3938 exit(1);
3939
3940 /*
3941 * Finally, make sure that changes to the mapped area
3942 * do not percolate back to the file as seen by read().
3943 * (This is a bug on some variants of i386 svr4.0.)
3944 */
3945 for (i = 0; i < pagesize; ++i)
3946 *(data2 + i) = *(data2 + i) + 1;
3947 data3 = malloc(pagesize);
3948 if (!data3)
3949 exit(1);
3950 if (read(fd, data3, pagesize) != pagesize)
3951 exit(1);
3952 for (i = 0; i < pagesize; ++i)
3953 if (*(data + i) != *(data3 + i))
3954 exit(1);
3955 close(fd);
3956 unlink("conftestmmap");
3957 exit(0);
3958 }
3959
3960 EOF
3961 if { (eval echo configure:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3962 then
3963 ac_cv_func_mmap_fixed_mapped=yes
3964 else
3965 echo "configure: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3967 rm -fr conftest*
3968 ac_cv_func_mmap_fixed_mapped=no
3969 fi
3970 rm -fr conftest*
3971 fi
3972
3973 fi
3974
3975 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3976 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3977 cat >> confdefs.h <<\EOF
3978 #define HAVE_MMAP 1
3979 EOF
3980
3981 fi
3982
3983
3984 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3985 unistd.h values.h sys/param.h
3986 do
3987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3989 echo "configure:3990: checking for $ac_hdr" >&5
3990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3992 else
3993 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3996 #include <$ac_hdr>
3997 EOF
3998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3999 { (eval echo configure:4000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4001 if test -z "$ac_err"; then
4002 rm -rf conftest*
4003 eval "ac_cv_header_$ac_safe=yes"
4004 else
4005 echo "$ac_err" >&5
4006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4008 rm -rf conftest*
4009 eval "ac_cv_header_$ac_safe=no"
4010 fi
4011 rm -f conftest*
4012 fi
4013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4014 echo "$ac_t""yes" 1>&6
4015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4016 cat >> confdefs.h <<EOF
4017 #define $ac_tr_hdr 1
4018 EOF
4019
4020 else
4021 echo "$ac_t""no" 1>&6
4022 fi
4023 done
4024
4025 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4026 __argz_count __argz_stringify __argz_next
4027 do
4028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4029 echo "configure:4030: checking for $ac_func" >&5
4030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4032 else
4033 cat > conftest.$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 /* System header to define __stub macros and hopefully few prototypes,
4037 which can conflict with char $ac_func(); below. */
4038 #include <assert.h>
4039 /* Override any gcc2 internal prototype to avoid an error. */
4040 /* We use char because int might match the return type of a gcc2
4041 builtin and then its argument prototype would still apply. */
4042 char $ac_func();
4043
4044 int main() {
4045
4046 /* The GNU C library defines this for functions which it implements
4047 to always fail with ENOSYS. Some functions are actually named
4048 something starting with __ and the normal name is an alias. */
4049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4050 choke me
4051 #else
4052 $ac_func();
4053 #endif
4054
4055 ; return 0; }
4056 EOF
4057 if { (eval echo configure:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4058 rm -rf conftest*
4059 eval "ac_cv_func_$ac_func=yes"
4060 else
4061 echo "configure: failed program was:" >&5
4062 cat conftest.$ac_ext >&5
4063 rm -rf conftest*
4064 eval "ac_cv_func_$ac_func=no"
4065 fi
4066 rm -f conftest*
4067 fi
4068
4069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4070 echo "$ac_t""yes" 1>&6
4071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4072 cat >> confdefs.h <<EOF
4073 #define $ac_tr_func 1
4074 EOF
4075
4076 else
4077 echo "$ac_t""no" 1>&6
4078 fi
4079 done
4080
4081
4082 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4083 for ac_func in stpcpy
4084 do
4085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4086 echo "configure:4087: checking for $ac_func" >&5
4087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4089 else
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4093 /* System header to define __stub macros and hopefully few prototypes,
4094 which can conflict with char $ac_func(); below. */
4095 #include <assert.h>
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4099 char $ac_func();
4100
4101 int main() {
4102
4103 /* The GNU C library defines this for functions which it implements
4104 to always fail with ENOSYS. Some functions are actually named
4105 something starting with __ and the normal name is an alias. */
4106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4107 choke me
4108 #else
4109 $ac_func();
4110 #endif
4111
4112 ; return 0; }
4113 EOF
4114 if { (eval echo configure:4115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4115 rm -rf conftest*
4116 eval "ac_cv_func_$ac_func=yes"
4117 else
4118 echo "configure: failed program was:" >&5
4119 cat conftest.$ac_ext >&5
4120 rm -rf conftest*
4121 eval "ac_cv_func_$ac_func=no"
4122 fi
4123 rm -f conftest*
4124 fi
4125
4126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4127 echo "$ac_t""yes" 1>&6
4128 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4129 cat >> confdefs.h <<EOF
4130 #define $ac_tr_func 1
4131 EOF
4132
4133 else
4134 echo "$ac_t""no" 1>&6
4135 fi
4136 done
4137
4138 fi
4139 if test "${ac_cv_func_stpcpy}" = "yes"; then
4140 cat >> confdefs.h <<\EOF
4141 #define HAVE_STPCPY 1
4142 EOF
4143
4144 fi
4145
4146 if test $ac_cv_header_locale_h = yes; then
4147 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4148 echo "configure:4149: checking for LC_MESSAGES" >&5
4149 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4151 else
4152 cat > conftest.$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4155 #include <locale.h>
4156 int main() {
4157 return LC_MESSAGES
4158 ; return 0; }
4159 EOF
4160 if { (eval echo configure:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4161 rm -rf conftest*
4162 am_cv_val_LC_MESSAGES=yes
4163 else
4164 echo "configure: failed program was:" >&5
4165 cat conftest.$ac_ext >&5
4166 rm -rf conftest*
4167 am_cv_val_LC_MESSAGES=no
4168 fi
4169 rm -f conftest*
4170 fi
4171
4172 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4173 if test $am_cv_val_LC_MESSAGES = yes; then
4174 cat >> confdefs.h <<\EOF
4175 #define HAVE_LC_MESSAGES 1
4176 EOF
4177
4178 fi
4179 fi
4180 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4181 echo "configure:4182: checking whether NLS is requested" >&5
4182 # Check whether --enable-nls or --disable-nls was given.
4183 if test "${enable_nls+set}" = set; then
4184 enableval="$enable_nls"
4185 USE_NLS=$enableval
4186 else
4187 USE_NLS=yes
4188 fi
4189
4190 echo "$ac_t""$USE_NLS" 1>&6
4191
4192
4193 USE_INCLUDED_LIBINTL=no
4194
4195 if test "$USE_NLS" = "yes"; then
4196 cat >> confdefs.h <<\EOF
4197 #define ENABLE_NLS 1
4198 EOF
4199
4200 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4201 echo "configure:4202: checking whether included gettext is requested" >&5
4202 # Check whether --with-included-gettext or --without-included-gettext was given.
4203 if test "${with_included_gettext+set}" = set; then
4204 withval="$with_included_gettext"
4205 nls_cv_force_use_gnu_gettext=$withval
4206 else
4207 nls_cv_force_use_gnu_gettext=no
4208 fi
4209
4210 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4211
4212 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4213 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4214 nls_cv_header_intl=
4215 nls_cv_header_libgt=
4216 CATOBJEXT=NONE
4217
4218 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4219 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4220 echo "configure:4221: checking for libintl.h" >&5
4221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4223 else
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 #include <libintl.h>
4228 EOF
4229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4230 { (eval echo configure:4231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4232 if test -z "$ac_err"; then
4233 rm -rf conftest*
4234 eval "ac_cv_header_$ac_safe=yes"
4235 else
4236 echo "$ac_err" >&5
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4239 rm -rf conftest*
4240 eval "ac_cv_header_$ac_safe=no"
4241 fi
4242 rm -f conftest*
4243 fi
4244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4245 echo "$ac_t""yes" 1>&6
4246 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4247 echo "configure:4248: checking for gettext in libc" >&5
4248 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4250 else
4251 cat > conftest.$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4254 #include <libintl.h>
4255 int main() {
4256 return (int) gettext ("")
4257 ; return 0; }
4258 EOF
4259 if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4260 rm -rf conftest*
4261 gt_cv_func_gettext_libc=yes
4262 else
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4265 rm -rf conftest*
4266 gt_cv_func_gettext_libc=no
4267 fi
4268 rm -f conftest*
4269 fi
4270
4271 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4272
4273 if test "$gt_cv_func_gettext_libc" != "yes"; then
4274 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4275 echo "configure:4276: checking for bindtextdomain in -lintl" >&5
4276 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4279 else
4280 ac_save_LIBS="$LIBS"
4281 LIBS="-lintl $LIBS"
4282 cat > conftest.$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4285 /* Override any gcc2 internal prototype to avoid an error. */
4286 /* We use char because int might match the return type of a gcc2
4287 builtin and then its argument prototype would still apply. */
4288 char bindtextdomain();
4289
4290 int main() {
4291 bindtextdomain()
4292 ; return 0; }
4293 EOF
4294 if { (eval echo configure:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4295 rm -rf conftest*
4296 eval "ac_cv_lib_$ac_lib_var=yes"
4297 else
4298 echo "configure: failed program was:" >&5
4299 cat conftest.$ac_ext >&5
4300 rm -rf conftest*
4301 eval "ac_cv_lib_$ac_lib_var=no"
4302 fi
4303 rm -f conftest*
4304 LIBS="$ac_save_LIBS"
4305
4306 fi
4307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4308 echo "$ac_t""yes" 1>&6
4309 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4310 echo "configure:4311: checking for gettext in libintl" >&5
4311 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4313 else
4314 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317
4318 int main() {
4319 return (int) gettext ("")
4320 ; return 0; }
4321 EOF
4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4323 rm -rf conftest*
4324 gt_cv_func_gettext_libintl=yes
4325 else
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4328 rm -rf conftest*
4329 gt_cv_func_gettext_libintl=no
4330 fi
4331 rm -f conftest*
4332 fi
4333
4334 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4335 else
4336 echo "$ac_t""no" 1>&6
4337 fi
4338
4339 fi
4340
4341 if test "$gt_cv_func_gettext_libc" = "yes" \
4342 || test "$gt_cv_func_gettext_libintl" = "yes"; then
4343 cat >> confdefs.h <<\EOF
4344 #define HAVE_GETTEXT 1
4345 EOF
4346
4347 # Extract the first word of "msgfmt", so it can be a program name with args.
4348 set dummy msgfmt; ac_word=$2
4349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4350 echo "configure:4351: checking for $ac_word" >&5
4351 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4353 else
4354 case "$MSGFMT" in
4355 /*)
4356 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4357 ;;
4358 *)
4359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4360 for ac_dir in $PATH; do
4361 test -z "$ac_dir" && ac_dir=.
4362 if test -f $ac_dir/$ac_word; then
4363 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4364 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4365 break
4366 fi
4367 fi
4368 done
4369 IFS="$ac_save_ifs"
4370 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
4371 ;;
4372 esac
4373 fi
4374 MSGFMT="$ac_cv_path_MSGFMT"
4375 if test -n "$MSGFMT"; then
4376 echo "$ac_t""$MSGFMT" 1>&6
4377 else
4378 echo "$ac_t""no" 1>&6
4379 fi
4380 if test "$MSGFMT" != "no"; then
4381 for ac_func in dcgettext
4382 do
4383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4384 echo "configure:4385: checking for $ac_func" >&5
4385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4387 else
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4391 /* System header to define __stub macros and hopefully few prototypes,
4392 which can conflict with char $ac_func(); below. */
4393 #include <assert.h>
4394 /* Override any gcc2 internal prototype to avoid an error. */
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4397 char $ac_func();
4398
4399 int main() {
4400
4401 /* The GNU C library defines this for functions which it implements
4402 to always fail with ENOSYS. Some functions are actually named
4403 something starting with __ and the normal name is an alias. */
4404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4405 choke me
4406 #else
4407 $ac_func();
4408 #endif
4409
4410 ; return 0; }
4411 EOF
4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4413 rm -rf conftest*
4414 eval "ac_cv_func_$ac_func=yes"
4415 else
4416 echo "configure: failed program was:" >&5
4417 cat conftest.$ac_ext >&5
4418 rm -rf conftest*
4419 eval "ac_cv_func_$ac_func=no"
4420 fi
4421 rm -f conftest*
4422 fi
4423
4424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4425 echo "$ac_t""yes" 1>&6
4426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4427 cat >> confdefs.h <<EOF
4428 #define $ac_tr_func 1
4429 EOF
4430
4431 else
4432 echo "$ac_t""no" 1>&6
4433 fi
4434 done
4435
4436 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4437 set dummy gmsgfmt; ac_word=$2
4438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4439 echo "configure:4440: checking for $ac_word" >&5
4440 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4442 else
4443 case "$GMSGFMT" in
4444 /*)
4445 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4446 ;;
4447 ?:/*)
4448 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4449 ;;
4450 *)
4451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4452 ac_dummy="$PATH"
4453 for ac_dir in $ac_dummy; do
4454 test -z "$ac_dir" && ac_dir=.
4455 if test -f $ac_dir/$ac_word; then
4456 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4457 break
4458 fi
4459 done
4460 IFS="$ac_save_ifs"
4461 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4462 ;;
4463 esac
4464 fi
4465 GMSGFMT="$ac_cv_path_GMSGFMT"
4466 if test -n "$GMSGFMT"; then
4467 echo "$ac_t""$GMSGFMT" 1>&6
4468 else
4469 echo "$ac_t""no" 1>&6
4470 fi
4471
4472 # Extract the first word of "xgettext", so it can be a program name with args.
4473 set dummy xgettext; ac_word=$2
4474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4475 echo "configure:4476: checking for $ac_word" >&5
4476 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4478 else
4479 case "$XGETTEXT" in
4480 /*)
4481 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4482 ;;
4483 *)
4484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4485 for ac_dir in $PATH; do
4486 test -z "$ac_dir" && ac_dir=.
4487 if test -f $ac_dir/$ac_word; then
4488 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4489 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4490 break
4491 fi
4492 fi
4493 done
4494 IFS="$ac_save_ifs"
4495 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4496 ;;
4497 esac
4498 fi
4499 XGETTEXT="$ac_cv_path_XGETTEXT"
4500 if test -n "$XGETTEXT"; then
4501 echo "$ac_t""$XGETTEXT" 1>&6
4502 else
4503 echo "$ac_t""no" 1>&6
4504 fi
4505
4506 cat > conftest.$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4509
4510 int main() {
4511 extern int _nl_msg_cat_cntr;
4512 return _nl_msg_cat_cntr
4513 ; return 0; }
4514 EOF
4515 if { (eval echo configure:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4516 rm -rf conftest*
4517 CATOBJEXT=.gmo
4518 DATADIRNAME=share
4519 else
4520 echo "configure: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4522 rm -rf conftest*
4523 CATOBJEXT=.mo
4524 DATADIRNAME=lib
4525 fi
4526 rm -f conftest*
4527 INSTOBJEXT=.mo
4528 fi
4529 fi
4530
4531 else
4532 echo "$ac_t""no" 1>&6
4533 fi
4534
4535
4536
4537 if test "$CATOBJEXT" = "NONE"; then
4538 nls_cv_use_gnu_gettext=yes
4539 fi
4540 fi
4541
4542 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4543 INTLOBJS="\$(GETTOBJS)"
4544 # Extract the first word of "msgfmt", so it can be a program name with args.
4545 set dummy msgfmt; ac_word=$2
4546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4547 echo "configure:4548: checking for $ac_word" >&5
4548 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4549 echo $ac_n "(cached) $ac_c" 1>&6
4550 else
4551 case "$MSGFMT" in
4552 /*)
4553 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4554 ;;
4555 *)
4556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4557 for ac_dir in $PATH; do
4558 test -z "$ac_dir" && ac_dir=.
4559 if test -f $ac_dir/$ac_word; then
4560 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4561 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4562 break
4563 fi
4564 fi
4565 done
4566 IFS="$ac_save_ifs"
4567 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4568 ;;
4569 esac
4570 fi
4571 MSGFMT="$ac_cv_path_MSGFMT"
4572 if test -n "$MSGFMT"; then
4573 echo "$ac_t""$MSGFMT" 1>&6
4574 else
4575 echo "$ac_t""no" 1>&6
4576 fi
4577
4578 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4579 set dummy gmsgfmt; ac_word=$2
4580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4581 echo "configure:4582: checking for $ac_word" >&5
4582 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4583 echo $ac_n "(cached) $ac_c" 1>&6
4584 else
4585 case "$GMSGFMT" in
4586 /*)
4587 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4588 ;;
4589 ?:/*)
4590 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4591 ;;
4592 *)
4593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4594 ac_dummy="$PATH"
4595 for ac_dir in $ac_dummy; do
4596 test -z "$ac_dir" && ac_dir=.
4597 if test -f $ac_dir/$ac_word; then
4598 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4599 break
4600 fi
4601 done
4602 IFS="$ac_save_ifs"
4603 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4604 ;;
4605 esac
4606 fi
4607 GMSGFMT="$ac_cv_path_GMSGFMT"
4608 if test -n "$GMSGFMT"; then
4609 echo "$ac_t""$GMSGFMT" 1>&6
4610 else
4611 echo "$ac_t""no" 1>&6
4612 fi
4613
4614 # Extract the first word of "xgettext", so it can be a program name with args.
4615 set dummy xgettext; ac_word=$2
4616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4617 echo "configure:4618: checking for $ac_word" >&5
4618 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4620 else
4621 case "$XGETTEXT" in
4622 /*)
4623 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4624 ;;
4625 *)
4626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4627 for ac_dir in $PATH; do
4628 test -z "$ac_dir" && ac_dir=.
4629 if test -f $ac_dir/$ac_word; then
4630 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4631 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4632 break
4633 fi
4634 fi
4635 done
4636 IFS="$ac_save_ifs"
4637 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4638 ;;
4639 esac
4640 fi
4641 XGETTEXT="$ac_cv_path_XGETTEXT"
4642 if test -n "$XGETTEXT"; then
4643 echo "$ac_t""$XGETTEXT" 1>&6
4644 else
4645 echo "$ac_t""no" 1>&6
4646 fi
4647
4648
4649 USE_INCLUDED_LIBINTL=yes
4650 CATOBJEXT=.gmo
4651 INSTOBJEXT=.mo
4652 DATADIRNAME=share
4653 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4654 INTLLIBS=$INTLDEPS
4655 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4656 nls_cv_header_intl=libintl.h
4657 nls_cv_header_libgt=libgettext.h
4658 fi
4659
4660 if test "$XGETTEXT" != ":"; then
4661 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4662 : ;
4663 else
4664 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4665 XGETTEXT=":"
4666 fi
4667 fi
4668
4669 # We need to process the po/ directory.
4670 POSUB=po
4671 else
4672 DATADIRNAME=share
4673 nls_cv_header_intl=libintl.h
4674 nls_cv_header_libgt=libgettext.h
4675 fi
4676
4677 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4678 # because some of the sources are only built for this goal.
4679 if test "$PACKAGE" = gettext; then
4680 USE_NLS=yes
4681 USE_INCLUDED_LIBINTL=yes
4682 fi
4683
4684 for lang in $ALL_LINGUAS; do
4685 GMOFILES="$GMOFILES $lang.gmo"
4686 POFILES="$POFILES $lang.po"
4687 done
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702 if test "x$CATOBJEXT" != "x"; then
4703 if test "x$ALL_LINGUAS" = "x"; then
4704 LINGUAS=
4705 else
4706 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4707 echo "configure:4708: checking for catalogs to be installed" >&5
4708 NEW_LINGUAS=
4709 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4710 case "$ALL_LINGUAS" in
4711 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4712 esac
4713 done
4714 LINGUAS=$NEW_LINGUAS
4715 echo "$ac_t""$LINGUAS" 1>&6
4716 fi
4717
4718 if test -n "$LINGUAS"; then
4719 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4720 fi
4721 fi
4722
4723 if test $ac_cv_header_locale_h = yes; then
4724 INCLUDE_LOCALE_H="#include <locale.h>"
4725 else
4726 INCLUDE_LOCALE_H="\
4727 /* The system does not provide the header <locale.h>. Take care yourself. */"
4728 fi
4729
4730
4731 if test -f $srcdir/po2tbl.sed.in; then
4732 if test "$CATOBJEXT" = ".cat"; then
4733 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4734 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4735 echo "configure:4736: checking for linux/version.h" >&5
4736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4737 echo $ac_n "(cached) $ac_c" 1>&6
4738 else
4739 cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 #include <linux/version.h>
4743 EOF
4744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4745 { (eval echo configure:4746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4747 if test -z "$ac_err"; then
4748 rm -rf conftest*
4749 eval "ac_cv_header_$ac_safe=yes"
4750 else
4751 echo "$ac_err" >&5
4752 echo "configure: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4754 rm -rf conftest*
4755 eval "ac_cv_header_$ac_safe=no"
4756 fi
4757 rm -f conftest*
4758 fi
4759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4760 echo "$ac_t""yes" 1>&6
4761 msgformat=linux
4762 else
4763 echo "$ac_t""no" 1>&6
4764 msgformat=xopen
4765 fi
4766
4767
4768 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4769 fi
4770 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4771 $srcdir/po2tbl.sed.in > po2tbl.sed
4772 fi
4773
4774 if test "$PACKAGE" = "gettext"; then
4775 GT_NO="#NO#"
4776 GT_YES=
4777 else
4778 GT_NO=
4779 GT_YES="#YES#"
4780 fi
4781
4782
4783
4784 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4785
4786
4787 l=
4788
4789
4790 if test -d $srcdir/po; then
4791 test -d po || mkdir po
4792 if test "x$srcdir" != "x."; then
4793 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4794 posrcprefix="$srcdir/"
4795 else
4796 posrcprefix="../$srcdir/"
4797 fi
4798 else
4799 posrcprefix="../"
4800 fi
4801 rm -f po/POTFILES
4802 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4803 < $srcdir/po/POTFILES.in > po/POTFILES
4804 fi
4805
4806
4807 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4808 echo "configure:4809: checking whether to enable maintainer-specific portions of Makefiles" >&5
4809 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4810 if test "${enable_maintainer_mode+set}" = set; then
4811 enableval="$enable_maintainer_mode"
4812 USE_MAINTAINER_MODE=$enableval
4813 else
4814 USE_MAINTAINER_MODE=no
4815 fi
4816
4817 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4818
4819
4820 if test $USE_MAINTAINER_MODE = yes; then
4821 MAINTAINER_MODE_TRUE=
4822 MAINTAINER_MODE_FALSE='#'
4823 else
4824 MAINTAINER_MODE_TRUE='#'
4825 MAINTAINER_MODE_FALSE=
4826 fi
4827 MAINT=$MAINTAINER_MODE_TRUE
4828
4829
4830 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4831 echo "configure:4832: checking for Cygwin environment" >&5
4832 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4834 else
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4838
4839 int main() {
4840
4841 #ifndef __CYGWIN__
4842 #define __CYGWIN__ __CYGWIN32__
4843 #endif
4844 return __CYGWIN__;
4845 ; return 0; }
4846 EOF
4847 if { (eval echo configure:4848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4848 rm -rf conftest*
4849 ac_cv_cygwin=yes
4850 else
4851 echo "configure: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4853 rm -rf conftest*
4854 ac_cv_cygwin=no
4855 fi
4856 rm -f conftest*
4857 rm -f conftest*
4858 fi
4859
4860 echo "$ac_t""$ac_cv_cygwin" 1>&6
4861 CYGWIN=
4862 test "$ac_cv_cygwin" = yes && CYGWIN=yes
4863 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4864 echo "configure:4865: checking for mingw32 environment" >&5
4865 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4867 else
4868 cat > conftest.$ac_ext <<EOF
4869 #line 4870 "configure"
4870 #include "confdefs.h"
4871
4872 int main() {
4873 return __MINGW32__;
4874 ; return 0; }
4875 EOF
4876 if { (eval echo configure:4877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4877 rm -rf conftest*
4878 ac_cv_mingw32=yes
4879 else
4880 echo "configure: failed program was:" >&5
4881 cat conftest.$ac_ext >&5
4882 rm -rf conftest*
4883 ac_cv_mingw32=no
4884 fi
4885 rm -f conftest*
4886 rm -f conftest*
4887 fi
4888
4889 echo "$ac_t""$ac_cv_mingw32" 1>&6
4890 MINGW32=
4891 test "$ac_cv_mingw32" = yes && MINGW32=yes
4892
4893
4894 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4895 echo "configure:4896: checking for executable suffix" >&5
4896 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4898 else
4899 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4900 ac_cv_exeext=.exe
4901 else
4902 rm -f conftest*
4903 echo 'int main () { return 0; }' > conftest.$ac_ext
4904 ac_cv_exeext=
4905 if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4906 for file in conftest.*; do
4907 case $file in
4908 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4909 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4910 esac
4911 done
4912 else
4913 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4914 fi
4915 rm -f conftest*
4916 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4917 fi
4918 fi
4919
4920 EXEEXT=""
4921 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4922 echo "$ac_t""${ac_cv_exeext}" 1>&6
4923 ac_exeext=$EXEEXT
4924
4925
4926 for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
4927 do
4928 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4929 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4930 echo "configure:4931: checking for $ac_hdr" >&5
4931 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4932 echo $ac_n "(cached) $ac_c" 1>&6
4933 else
4934 cat > conftest.$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4937 #include <$ac_hdr>
4938 EOF
4939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4940 { (eval echo configure:4941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4942 if test -z "$ac_err"; then
4943 rm -rf conftest*
4944 eval "ac_cv_header_$ac_safe=yes"
4945 else
4946 echo "$ac_err" >&5
4947 echo "configure: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4949 rm -rf conftest*
4950 eval "ac_cv_header_$ac_safe=no"
4951 fi
4952 rm -f conftest*
4953 fi
4954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4955 echo "$ac_t""yes" 1>&6
4956 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4957 cat >> confdefs.h <<EOF
4958 #define $ac_tr_hdr 1
4959 EOF
4960
4961 else
4962 echo "$ac_t""no" 1>&6
4963 fi
4964 done
4965
4966
4967 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
4968 # people who are not cross-compiling but are compiling cross-assemblers.
4969 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
4970 echo "configure:4971: checking whether compiling a cross-assembler" >&5
4971 if test "${host}" = "${target}"; then
4972 cross_gas=no
4973 else
4974 cross_gas=yes
4975 cat >> confdefs.h <<\EOF
4976 #define CROSS_COMPILE 1
4977 EOF
4978
4979 fi
4980 echo "$ac_t""$cross_gas" 1>&6
4981
4982 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4983 # for constant arguments. Useless!
4984 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4985 echo "configure:4986: checking for working alloca.h" >&5
4986 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4988 else
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4992 #include <alloca.h>
4993 int main() {
4994 char *p = alloca(2 * sizeof(int));
4995 ; return 0; }
4996 EOF
4997 if { (eval echo configure:4998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4998 rm -rf conftest*
4999 ac_cv_header_alloca_h=yes
5000 else
5001 echo "configure: failed program was:" >&5
5002 cat conftest.$ac_ext >&5
5003 rm -rf conftest*
5004 ac_cv_header_alloca_h=no
5005 fi
5006 rm -f conftest*
5007 fi
5008
5009 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5010 if test $ac_cv_header_alloca_h = yes; then
5011 cat >> confdefs.h <<\EOF
5012 #define HAVE_ALLOCA_H 1
5013 EOF
5014
5015 fi
5016
5017 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5018 echo "configure:5019: checking for alloca" >&5
5019 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5021 else
5022 cat > conftest.$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5025
5026 #ifdef __GNUC__
5027 # define alloca __builtin_alloca
5028 #else
5029 # ifdef _MSC_VER
5030 # include <malloc.h>
5031 # define alloca _alloca
5032 # else
5033 # if HAVE_ALLOCA_H
5034 # include <alloca.h>
5035 # else
5036 # ifdef _AIX
5037 #pragma alloca
5038 # else
5039 # ifndef alloca /* predefined by HP cc +Olibcalls */
5040 char *alloca ();
5041 # endif
5042 # endif
5043 # endif
5044 # endif
5045 #endif
5046
5047 int main() {
5048 char *p = (char *) alloca(1);
5049 ; return 0; }
5050 EOF
5051 if { (eval echo configure:5052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5052 rm -rf conftest*
5053 ac_cv_func_alloca_works=yes
5054 else
5055 echo "configure: failed program was:" >&5
5056 cat conftest.$ac_ext >&5
5057 rm -rf conftest*
5058 ac_cv_func_alloca_works=no
5059 fi
5060 rm -f conftest*
5061 fi
5062
5063 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5064 if test $ac_cv_func_alloca_works = yes; then
5065 cat >> confdefs.h <<\EOF
5066 #define HAVE_ALLOCA 1
5067 EOF
5068
5069 fi
5070
5071 if test $ac_cv_func_alloca_works = no; then
5072 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5073 # that cause trouble. Some versions do not even contain alloca or
5074 # contain a buggy version. If you still want to use their alloca,
5075 # use ar to extract alloca.o from them instead of compiling alloca.c.
5076 ALLOCA=alloca.${ac_objext}
5077 cat >> confdefs.h <<\EOF
5078 #define C_ALLOCA 1
5079 EOF
5080
5081
5082 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5083 echo "configure:5084: checking whether alloca needs Cray hooks" >&5
5084 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5085 echo $ac_n "(cached) $ac_c" 1>&6
5086 else
5087 cat > conftest.$ac_ext <<EOF
5088 #line 5089 "configure"
5089 #include "confdefs.h"
5090 #if defined(CRAY) && ! defined(CRAY2)
5091 webecray
5092 #else
5093 wenotbecray
5094 #endif
5095
5096 EOF
5097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5098 egrep "webecray" >/dev/null 2>&1; then
5099 rm -rf conftest*
5100 ac_cv_os_cray=yes
5101 else
5102 rm -rf conftest*
5103 ac_cv_os_cray=no
5104 fi
5105 rm -f conftest*
5106
5107 fi
5108
5109 echo "$ac_t""$ac_cv_os_cray" 1>&6
5110 if test $ac_cv_os_cray = yes; then
5111 for ac_func in _getb67 GETB67 getb67; do
5112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5113 echo "configure:5114: checking for $ac_func" >&5
5114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5116 else
5117 cat > conftest.$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5120 /* System header to define __stub macros and hopefully few prototypes,
5121 which can conflict with char $ac_func(); below. */
5122 #include <assert.h>
5123 /* Override any gcc2 internal prototype to avoid an error. */
5124 /* We use char because int might match the return type of a gcc2
5125 builtin and then its argument prototype would still apply. */
5126 char $ac_func();
5127
5128 int main() {
5129
5130 /* The GNU C library defines this for functions which it implements
5131 to always fail with ENOSYS. Some functions are actually named
5132 something starting with __ and the normal name is an alias. */
5133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5134 choke me
5135 #else
5136 $ac_func();
5137 #endif
5138
5139 ; return 0; }
5140 EOF
5141 if { (eval echo configure:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5142 rm -rf conftest*
5143 eval "ac_cv_func_$ac_func=yes"
5144 else
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 rm -rf conftest*
5148 eval "ac_cv_func_$ac_func=no"
5149 fi
5150 rm -f conftest*
5151 fi
5152
5153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5154 echo "$ac_t""yes" 1>&6
5155 cat >> confdefs.h <<EOF
5156 #define CRAY_STACKSEG_END $ac_func
5157 EOF
5158
5159 break
5160 else
5161 echo "$ac_t""no" 1>&6
5162 fi
5163
5164 done
5165 fi
5166
5167 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5168 echo "configure:5169: checking stack direction for C alloca" >&5
5169 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5170 echo $ac_n "(cached) $ac_c" 1>&6
5171 else
5172 if test "$cross_compiling" = yes; then
5173 ac_cv_c_stack_direction=0
5174 else
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5178 find_stack_direction ()
5179 {
5180 static char *addr = 0;
5181 auto char dummy;
5182 if (addr == 0)
5183 {
5184 addr = &dummy;
5185 return find_stack_direction ();
5186 }
5187 else
5188 return (&dummy > addr) ? 1 : -1;
5189 }
5190 main ()
5191 {
5192 exit (find_stack_direction() < 0);
5193 }
5194 EOF
5195 if { (eval echo configure:5196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5196 then
5197 ac_cv_c_stack_direction=1
5198 else
5199 echo "configure: failed program was:" >&5
5200 cat conftest.$ac_ext >&5
5201 rm -fr conftest*
5202 ac_cv_c_stack_direction=-1
5203 fi
5204 rm -fr conftest*
5205 fi
5206
5207 fi
5208
5209 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5210 cat >> confdefs.h <<EOF
5211 #define STACK_DIRECTION $ac_cv_c_stack_direction
5212 EOF
5213
5214 fi
5215
5216 echo $ac_n "checking for inline""... $ac_c" 1>&6
5217 echo "configure:5218: checking for inline" >&5
5218 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6
5220 else
5221 ac_cv_c_inline=no
5222 for ac_kw in inline __inline__ __inline; do
5223 cat > conftest.$ac_ext <<EOF
5224 #line 5225 "configure"
5225 #include "confdefs.h"
5226
5227 int main() {
5228 } $ac_kw foo() {
5229 ; return 0; }
5230 EOF
5231 if { (eval echo configure:5232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5232 rm -rf conftest*
5233 ac_cv_c_inline=$ac_kw; break
5234 else
5235 echo "configure: failed program was:" >&5
5236 cat conftest.$ac_ext >&5
5237 fi
5238 rm -f conftest*
5239 done
5240
5241 fi
5242
5243 echo "$ac_t""$ac_cv_c_inline" 1>&6
5244 case "$ac_cv_c_inline" in
5245 inline | yes) ;;
5246 no) cat >> confdefs.h <<\EOF
5247 #define inline
5248 EOF
5249 ;;
5250 *) cat >> confdefs.h <<EOF
5251 #define inline $ac_cv_c_inline
5252 EOF
5253 ;;
5254 esac
5255
5256
5257 # VMS doesn't have unlink.
5258 for ac_func in unlink remove
5259 do
5260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5261 echo "configure:5262: checking for $ac_func" >&5
5262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5263 echo $ac_n "(cached) $ac_c" 1>&6
5264 else
5265 cat > conftest.$ac_ext <<EOF
5266 #line 5267 "configure"
5267 #include "confdefs.h"
5268 /* System header to define __stub macros and hopefully few prototypes,
5269 which can conflict with char $ac_func(); below. */
5270 #include <assert.h>
5271 /* Override any gcc2 internal prototype to avoid an error. */
5272 /* We use char because int might match the return type of a gcc2
5273 builtin and then its argument prototype would still apply. */
5274 char $ac_func();
5275
5276 int main() {
5277
5278 /* The GNU C library defines this for functions which it implements
5279 to always fail with ENOSYS. Some functions are actually named
5280 something starting with __ and the normal name is an alias. */
5281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5282 choke me
5283 #else
5284 $ac_func();
5285 #endif
5286
5287 ; return 0; }
5288 EOF
5289 if { (eval echo configure:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5290 rm -rf conftest*
5291 eval "ac_cv_func_$ac_func=yes"
5292 else
5293 echo "configure: failed program was:" >&5
5294 cat conftest.$ac_ext >&5
5295 rm -rf conftest*
5296 eval "ac_cv_func_$ac_func=no"
5297 fi
5298 rm -f conftest*
5299 fi
5300
5301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5302 echo "$ac_t""yes" 1>&6
5303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5304 cat >> confdefs.h <<EOF
5305 #define $ac_tr_func 1
5306 EOF
5307 break
5308 else
5309 echo "$ac_t""no" 1>&6
5310 fi
5311 done
5312
5313
5314 # Some systems don't have sbrk().
5315 for ac_func in sbrk
5316 do
5317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5318 echo "configure:5319: checking for $ac_func" >&5
5319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5321 else
5322 cat > conftest.$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5325 /* System header to define __stub macros and hopefully few prototypes,
5326 which can conflict with char $ac_func(); below. */
5327 #include <assert.h>
5328 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5331 char $ac_func();
5332
5333 int main() {
5334
5335 /* The GNU C library defines this for functions which it implements
5336 to always fail with ENOSYS. Some functions are actually named
5337 something starting with __ and the normal name is an alias. */
5338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5339 choke me
5340 #else
5341 $ac_func();
5342 #endif
5343
5344 ; return 0; }
5345 EOF
5346 if { (eval echo configure:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5347 rm -rf conftest*
5348 eval "ac_cv_func_$ac_func=yes"
5349 else
5350 echo "configure: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5352 rm -rf conftest*
5353 eval "ac_cv_func_$ac_func=no"
5354 fi
5355 rm -f conftest*
5356 fi
5357
5358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5359 echo "$ac_t""yes" 1>&6
5360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5361 cat >> confdefs.h <<EOF
5362 #define $ac_tr_func 1
5363 EOF
5364
5365 else
5366 echo "$ac_t""no" 1>&6
5367 fi
5368 done
5369
5370
5371 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
5372 # enough, but on some of those systems, the assert macro relies on requoting
5373 # working properly!
5374 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
5375 echo "configure:5376: checking for working assert macro" >&5
5376 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5378 else
5379 cat > conftest.$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5382 #include <assert.h>
5383 #include <stdio.h>
5384 int main() {
5385
5386 /* check for requoting problems */
5387 static int a, b, c, d;
5388 static char *s;
5389 assert (!strcmp(s, "foo bar baz quux"));
5390 /* check for newline handling */
5391 assert (a == b
5392 || c == d);
5393
5394 ; return 0; }
5395 EOF
5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5397 rm -rf conftest*
5398 gas_cv_assert_ok=yes
5399 else
5400 echo "configure: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5402 rm -rf conftest*
5403 gas_cv_assert_ok=no
5404 fi
5405 rm -f conftest*
5406 fi
5407 echo "$ac_t""$gas_cv_assert_ok" 1>&6
5408 test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF
5409 #define BROKEN_ASSERT 1
5410 EOF
5411
5412
5413
5414 # On some systems, the system header files may not declare malloc, realloc,
5415 # and free. There are places where gas needs these functions to have been
5416 # declared -- such as when taking their addresses.
5417 gas_test_headers="
5418 #ifdef HAVE_MEMORY_H
5419 #include <memory.h>
5420 #endif
5421 #ifdef HAVE_STRING_H
5422 #include <string.h>
5423 #else
5424 #ifdef HAVE_STRINGS_H
5425 #include <strings.h>
5426 #endif
5427 #endif
5428 #ifdef HAVE_STDLIB_H
5429 #include <stdlib.h>
5430 #endif
5431 #ifdef HAVE_UNISTD_H
5432 #include <unistd.h>
5433 #endif
5434 "
5435
5436 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
5437 echo "configure:5438: checking whether declaration is required for strstr" >&5
5438 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
5439 echo $ac_n "(cached) $ac_c" 1>&6
5440 else
5441 cat > conftest.$ac_ext <<EOF
5442 #line 5443 "configure"
5443 #include "confdefs.h"
5444 $gas_test_headers
5445 int main() {
5446
5447 typedef char *(*f)();
5448 f x;
5449 x = (f) strstr;
5450
5451 ; return 0; }
5452 EOF
5453 if { (eval echo configure:5454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5454 rm -rf conftest*
5455 gas_cv_decl_needed_strstr=no
5456 else
5457 echo "configure: failed program was:" >&5
5458 cat conftest.$ac_ext >&5
5459 rm -rf conftest*
5460 gas_cv_decl_needed_strstr=yes
5461 fi
5462 rm -f conftest*
5463 fi
5464 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
5465 if test $gas_cv_decl_needed_strstr = yes; then
5466 cat >> confdefs.h <<\EOF
5467 #define NEED_DECLARATION_STRSTR 1
5468 EOF
5469
5470 fi
5471
5472
5473 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
5474 echo "configure:5475: checking whether declaration is required for malloc" >&5
5475 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
5476 echo $ac_n "(cached) $ac_c" 1>&6
5477 else
5478 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5481 $gas_test_headers
5482 int main() {
5483
5484 typedef char *(*f)();
5485 f x;
5486 x = (f) malloc;
5487
5488 ; return 0; }
5489 EOF
5490 if { (eval echo configure:5491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5491 rm -rf conftest*
5492 gas_cv_decl_needed_malloc=no
5493 else
5494 echo "configure: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5496 rm -rf conftest*
5497 gas_cv_decl_needed_malloc=yes
5498 fi
5499 rm -f conftest*
5500 fi
5501 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
5502 if test $gas_cv_decl_needed_malloc = yes; then
5503 cat >> confdefs.h <<\EOF
5504 #define NEED_DECLARATION_MALLOC 1
5505 EOF
5506
5507 fi
5508
5509
5510 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
5511 echo "configure:5512: checking whether declaration is required for free" >&5
5512 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
5513 echo $ac_n "(cached) $ac_c" 1>&6
5514 else
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 $gas_test_headers
5519 int main() {
5520
5521 typedef void (*f)();
5522 f x;
5523 x = (f) free;
5524
5525 ; return 0; }
5526 EOF
5527 if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5528 rm -rf conftest*
5529 gas_cv_decl_needed_free=no
5530 else
5531 echo "configure: failed program was:" >&5
5532 cat conftest.$ac_ext >&5
5533 rm -rf conftest*
5534 gas_cv_decl_needed_free=yes
5535 fi
5536 rm -f conftest*
5537 fi
5538 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5539 if test $gas_cv_decl_needed_free = yes; then
5540 cat >> confdefs.h <<\EOF
5541 #define NEED_DECLARATION_FREE 1
5542 EOF
5543
5544 fi
5545
5546
5547 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5548 echo "configure:5549: checking whether declaration is required for sbrk" >&5
5549 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
5550 echo $ac_n "(cached) $ac_c" 1>&6
5551 else
5552 cat > conftest.$ac_ext <<EOF
5553 #line 5554 "configure"
5554 #include "confdefs.h"
5555 $gas_test_headers
5556 int main() {
5557
5558 typedef char *(*f)();
5559 f x;
5560 x = (f) sbrk;
5561
5562 ; return 0; }
5563 EOF
5564 if { (eval echo configure:5565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5565 rm -rf conftest*
5566 gas_cv_decl_needed_sbrk=no
5567 else
5568 echo "configure: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5570 rm -rf conftest*
5571 gas_cv_decl_needed_sbrk=yes
5572 fi
5573 rm -f conftest*
5574 fi
5575 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
5576 if test $gas_cv_decl_needed_sbrk = yes; then
5577 cat >> confdefs.h <<\EOF
5578 #define NEED_DECLARATION_SBRK 1
5579 EOF
5580
5581 fi
5582
5583
5584 echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
5585 echo "configure:5586: checking whether declaration is required for environ" >&5
5586 if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6
5588 else
5589 cat > conftest.$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5592 $gas_test_headers
5593 int main() {
5594
5595 typedef char **f;
5596 f x;
5597 x = (f) environ;
5598
5599 ; return 0; }
5600 EOF
5601 if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5602 rm -rf conftest*
5603 gas_cv_decl_needed_environ=no
5604 else
5605 echo "configure: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5607 rm -rf conftest*
5608 gas_cv_decl_needed_environ=yes
5609 fi
5610 rm -f conftest*
5611 fi
5612 echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
5613 if test $gas_cv_decl_needed_environ = yes; then
5614 cat >> confdefs.h <<\EOF
5615 #define NEED_DECLARATION_ENVIRON 1
5616 EOF
5617
5618 fi
5619
5620
5621 # Does errno.h declare errno, or do we have to add a separate declaration
5622 # for it?
5623
5624 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
5625 echo "configure:5626: checking whether declaration is required for errno" >&5
5626 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
5627 echo $ac_n "(cached) $ac_c" 1>&6
5628 else
5629 cat > conftest.$ac_ext <<EOF
5630 #line 5631 "configure"
5631 #include "confdefs.h"
5632
5633 #ifdef HAVE_ERRNO_H
5634 #include <errno.h>
5635 #endif
5636
5637 int main() {
5638
5639 typedef int f;
5640 f x;
5641 x = (f) errno;
5642
5643 ; return 0; }
5644 EOF
5645 if { (eval echo configure:5646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5646 rm -rf conftest*
5647 gas_cv_decl_needed_errno=no
5648 else
5649 echo "configure: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5651 rm -rf conftest*
5652 gas_cv_decl_needed_errno=yes
5653 fi
5654 rm -f conftest*
5655 fi
5656 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
5657 if test $gas_cv_decl_needed_errno = yes; then
5658 cat >> confdefs.h <<\EOF
5659 #define NEED_DECLARATION_ERRNO 1
5660 EOF
5661
5662 fi
5663
5664
5665
5666
5667 trap '' 1 2 15
5668 cat > confcache <<\EOF
5669 # This file is a shell script that caches the results of configure
5670 # tests run on this system so they can be shared between configure
5671 # scripts and configure runs. It is not useful on other systems.
5672 # If it contains results you don't want to keep, you may remove or edit it.
5673 #
5674 # By default, configure uses ./config.cache as the cache file,
5675 # creating it if it does not exist already. You can give configure
5676 # the --cache-file=FILE option to use a different cache file; that is
5677 # what configure does when it calls configure scripts in
5678 # subdirectories, so they share the cache.
5679 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5680 # config.status only pays attention to the cache file if you give it the
5681 # --recheck option to rerun configure.
5682 #
5683 EOF
5684 # The following way of writing the cache mishandles newlines in values,
5685 # but we know of no workaround that is simple, portable, and efficient.
5686 # So, don't put newlines in cache variables' values.
5687 # Ultrix sh set writes to stderr and can't be redirected directly,
5688 # and sets the high bit in the cache file unless we assign to the vars.
5689 (set) 2>&1 |
5690 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5691 *ac_space=\ *)
5692 # `set' does not quote correctly, so add quotes (double-quote substitution
5693 # turns \\\\ into \\, and sed turns \\ into \).
5694 sed -n \
5695 -e "s/'/'\\\\''/g" \
5696 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5697 ;;
5698 *)
5699 # `set' quotes correctly as required by POSIX, so do not add quotes.
5700 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5701 ;;
5702 esac >> confcache
5703 if cmp -s $cache_file confcache; then
5704 :
5705 else
5706 if test -w $cache_file; then
5707 echo "updating cache $cache_file"
5708 cat confcache > $cache_file
5709 else
5710 echo "not updating unwritable cache $cache_file"
5711 fi
5712 fi
5713 rm -f confcache
5714
5715 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5716
5717 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5718 # Let make expand exec_prefix.
5719 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5720
5721 # Any assignment to VPATH causes Sun make to only execute
5722 # the first set of double-colon rules, so remove it if not needed.
5723 # If there is a colon in the path, we need to keep it.
5724 if test "x$srcdir" = x.; then
5725 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5726 fi
5727
5728 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5729
5730 DEFS=-DHAVE_CONFIG_H
5731
5732 # Without the "./", some shells look in PATH for config.status.
5733 : ${CONFIG_STATUS=./config.status}
5734
5735 echo creating $CONFIG_STATUS
5736 rm -f $CONFIG_STATUS
5737 cat > $CONFIG_STATUS <<EOF
5738 #! /bin/sh
5739 # Generated automatically by configure.
5740 # Run this file to recreate the current configuration.
5741 # This directory was configured as follows,
5742 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5743 #
5744 # $0 $ac_configure_args
5745 #
5746 # Compiler output produced by configure, useful for debugging
5747 # configure, is in ./config.log if it exists.
5748
5749 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5750 for ac_option
5751 do
5752 case "\$ac_option" in
5753 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5754 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5755 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5756 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5757 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5758 exit 0 ;;
5759 -help | --help | --hel | --he | --h)
5760 echo "\$ac_cs_usage"; exit 0 ;;
5761 *) echo "\$ac_cs_usage"; exit 1 ;;
5762 esac
5763 done
5764
5765 ac_given_srcdir=$srcdir
5766 ac_given_INSTALL="$INSTALL"
5767
5768 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
5769 EOF
5770 cat >> $CONFIG_STATUS <<EOF
5771
5772 # Protect against being on the right side of a sed subst in config.status.
5773 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5774 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5775 $ac_vpsub
5776 $extrasub
5777 s%@SHELL@%$SHELL%g
5778 s%@CFLAGS@%$CFLAGS%g
5779 s%@CPPFLAGS@%$CPPFLAGS%g
5780 s%@CXXFLAGS@%$CXXFLAGS%g
5781 s%@FFLAGS@%$FFLAGS%g
5782 s%@DEFS@%$DEFS%g
5783 s%@LDFLAGS@%$LDFLAGS%g
5784 s%@LIBS@%$LIBS%g
5785 s%@exec_prefix@%$exec_prefix%g
5786 s%@prefix@%$prefix%g
5787 s%@program_transform_name@%$program_transform_name%g
5788 s%@bindir@%$bindir%g
5789 s%@sbindir@%$sbindir%g
5790 s%@libexecdir@%$libexecdir%g
5791 s%@datadir@%$datadir%g
5792 s%@sysconfdir@%$sysconfdir%g
5793 s%@sharedstatedir@%$sharedstatedir%g
5794 s%@localstatedir@%$localstatedir%g
5795 s%@libdir@%$libdir%g
5796 s%@includedir@%$includedir%g
5797 s%@oldincludedir@%$oldincludedir%g
5798 s%@infodir@%$infodir%g
5799 s%@mandir@%$mandir%g
5800 s%@host@%$host%g
5801 s%@host_alias@%$host_alias%g
5802 s%@host_cpu@%$host_cpu%g
5803 s%@host_vendor@%$host_vendor%g
5804 s%@host_os@%$host_os%g
5805 s%@target@%$target%g
5806 s%@target_alias@%$target_alias%g
5807 s%@target_cpu@%$target_cpu%g
5808 s%@target_vendor@%$target_vendor%g
5809 s%@target_os@%$target_os%g
5810 s%@build@%$build%g
5811 s%@build_alias@%$build_alias%g
5812 s%@build_cpu@%$build_cpu%g
5813 s%@build_vendor@%$build_vendor%g
5814 s%@build_os@%$build_os%g
5815 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5816 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5817 s%@INSTALL_DATA@%$INSTALL_DATA%g
5818 s%@PACKAGE@%$PACKAGE%g
5819 s%@VERSION@%$VERSION%g
5820 s%@ACLOCAL@%$ACLOCAL%g
5821 s%@AUTOCONF@%$AUTOCONF%g
5822 s%@AUTOMAKE@%$AUTOMAKE%g
5823 s%@AUTOHEADER@%$AUTOHEADER%g
5824 s%@MAKEINFO@%$MAKEINFO%g
5825 s%@SET_MAKE@%$SET_MAKE%g
5826 s%@RANLIB@%$RANLIB%g
5827 s%@CC@%$CC%g
5828 s%@LD@%$LD%g
5829 s%@NM@%$NM%g
5830 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5831 s%@LN_S@%$LN_S%g
5832 s%@DLLTOOL@%$DLLTOOL%g
5833 s%@AS@%$AS%g
5834 s%@LIBTOOL@%$LIBTOOL%g
5835 s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
5836 s%@extra_objects@%$extra_objects%g
5837 s%@target_cpu_type@%$target_cpu_type%g
5838 s%@obj_format@%$obj_format%g
5839 s%@te_file@%$te_file%g
5840 s%@install_tooldir@%$install_tooldir%g
5841 s%@atof@%$atof%g
5842 s%@BFDLIB@%$BFDLIB%g
5843 s%@OPCODES_LIB@%$OPCODES_LIB%g
5844 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
5845 s%@YACC@%$YACC%g
5846 s%@LEX@%$LEX%g
5847 s%@LEXLIB@%$LEXLIB%g
5848 s%@CPP@%$CPP%g
5849 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5850 s%@ALLOCA@%$ALLOCA%g
5851 s%@USE_NLS@%$USE_NLS%g
5852 s%@MSGFMT@%$MSGFMT%g
5853 s%@GMSGFMT@%$GMSGFMT%g
5854 s%@XGETTEXT@%$XGETTEXT%g
5855 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5856 s%@CATALOGS@%$CATALOGS%g
5857 s%@CATOBJEXT@%$CATOBJEXT%g
5858 s%@DATADIRNAME@%$DATADIRNAME%g
5859 s%@GMOFILES@%$GMOFILES%g
5860 s%@INSTOBJEXT@%$INSTOBJEXT%g
5861 s%@INTLDEPS@%$INTLDEPS%g
5862 s%@INTLLIBS@%$INTLLIBS%g
5863 s%@INTLOBJS@%$INTLOBJS%g
5864 s%@POFILES@%$POFILES%g
5865 s%@POSUB@%$POSUB%g
5866 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5867 s%@GT_NO@%$GT_NO%g
5868 s%@GT_YES@%$GT_YES%g
5869 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5870 s%@l@%$l%g
5871 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5872 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5873 s%@MAINT@%$MAINT%g
5874 s%@EXEEXT@%$EXEEXT%g
5875
5876 CEOF
5877 EOF
5878
5879 cat >> $CONFIG_STATUS <<\EOF
5880
5881 # Split the substitutions into bite-sized pieces for seds with
5882 # small command number limits, like on Digital OSF/1 and HP-UX.
5883 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5884 ac_file=1 # Number of current file.
5885 ac_beg=1 # First line for current file.
5886 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5887 ac_more_lines=:
5888 ac_sed_cmds=""
5889 while $ac_more_lines; do
5890 if test $ac_beg -gt 1; then
5891 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5892 else
5893 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5894 fi
5895 if test ! -s conftest.s$ac_file; then
5896 ac_more_lines=false
5897 rm -f conftest.s$ac_file
5898 else
5899 if test -z "$ac_sed_cmds"; then
5900 ac_sed_cmds="sed -f conftest.s$ac_file"
5901 else
5902 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5903 fi
5904 ac_file=`expr $ac_file + 1`
5905 ac_beg=$ac_end
5906 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5907 fi
5908 done
5909 if test -z "$ac_sed_cmds"; then
5910 ac_sed_cmds=cat
5911 fi
5912 EOF
5913
5914 cat >> $CONFIG_STATUS <<EOF
5915
5916 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in"}
5917 EOF
5918 cat >> $CONFIG_STATUS <<\EOF
5919 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5920 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5921 case "$ac_file" in
5922 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5923 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5924 *) ac_file_in="${ac_file}.in" ;;
5925 esac
5926
5927 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5928
5929 # Remove last slash and all that follows it. Not all systems have dirname.
5930 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5931 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5932 # The file is in a subdirectory.
5933 test ! -d "$ac_dir" && mkdir "$ac_dir"
5934 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5935 # A "../" for each directory in $ac_dir_suffix.
5936 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5937 else
5938 ac_dir_suffix= ac_dots=
5939 fi
5940
5941 case "$ac_given_srcdir" in
5942 .) srcdir=.
5943 if test -z "$ac_dots"; then top_srcdir=.
5944 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5945 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5946 *) # Relative path.
5947 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5948 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5949 esac
5950
5951 case "$ac_given_INSTALL" in
5952 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5953 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5954 esac
5955
5956 echo creating "$ac_file"
5957 rm -f "$ac_file"
5958 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5959 case "$ac_file" in
5960 *Makefile*) ac_comsub="1i\\
5961 # $configure_input" ;;
5962 *) ac_comsub= ;;
5963 esac
5964
5965 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5966 sed -e "$ac_comsub
5967 s%@configure_input@%$configure_input%g
5968 s%@srcdir@%$srcdir%g
5969 s%@top_srcdir@%$top_srcdir%g
5970 s%@INSTALL@%$INSTALL%g
5971 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5972 fi; done
5973 rm -f conftest.s*
5974
5975 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5976 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5977 #
5978 # ac_d sets the value in "#define NAME VALUE" lines.
5979 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5980 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5981 ac_dC='\3'
5982 ac_dD='%g'
5983 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5984 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5985 ac_uB='\([ ]\)%\1#\2define\3'
5986 ac_uC=' '
5987 ac_uD='\4%g'
5988 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5989 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5990 ac_eB='$%\1#\2define\3'
5991 ac_eC=' '
5992 ac_eD='%g'
5993
5994 if test "${CONFIG_HEADERS+set}" != set; then
5995 EOF
5996 cat >> $CONFIG_STATUS <<EOF
5997 CONFIG_HEADERS="config.h:config.in"
5998 EOF
5999 cat >> $CONFIG_STATUS <<\EOF
6000 fi
6001 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6003 case "$ac_file" in
6004 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6005 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6006 *) ac_file_in="${ac_file}.in" ;;
6007 esac
6008
6009 echo creating $ac_file
6010
6011 rm -f conftest.frag conftest.in conftest.out
6012 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6013 cat $ac_file_inputs > conftest.in
6014
6015 EOF
6016
6017 # Transform confdefs.h into a sed script conftest.vals that substitutes
6018 # the proper values into config.h.in to produce config.h. And first:
6019 # Protect against being on the right side of a sed subst in config.status.
6020 # Protect against being in an unquoted here document in config.status.
6021 rm -f conftest.vals
6022 cat > conftest.hdr <<\EOF
6023 s/[\\&%]/\\&/g
6024 s%[\\$`]%\\&%g
6025 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6026 s%ac_d%ac_u%gp
6027 s%ac_u%ac_e%gp
6028 EOF
6029 sed -n -f conftest.hdr confdefs.h > conftest.vals
6030 rm -f conftest.hdr
6031
6032 # This sed command replaces #undef with comments. This is necessary, for
6033 # example, in the case of _POSIX_SOURCE, which is predefined and required
6034 # on some systems where configure will not decide to define it.
6035 cat >> conftest.vals <<\EOF
6036 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6037 EOF
6038
6039 # Break up conftest.vals because some shells have a limit on
6040 # the size of here documents, and old seds have small limits too.
6041
6042 rm -f conftest.tail
6043 while :
6044 do
6045 ac_lines=`grep -c . conftest.vals`
6046 # grep -c gives empty output for an empty file on some AIX systems.
6047 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6048 # Write a limited-size here document to conftest.frag.
6049 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6050 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6051 echo 'CEOF
6052 sed -f conftest.frag conftest.in > conftest.out
6053 rm -f conftest.in
6054 mv conftest.out conftest.in
6055 ' >> $CONFIG_STATUS
6056 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6057 rm -f conftest.vals
6058 mv conftest.tail conftest.vals
6059 done
6060 rm -f conftest.vals
6061
6062 cat >> $CONFIG_STATUS <<\EOF
6063 rm -f conftest.frag conftest.h
6064 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6065 cat conftest.in >> conftest.h
6066 rm -f conftest.in
6067 if cmp -s $ac_file conftest.h 2>/dev/null; then
6068 echo "$ac_file is unchanged"
6069 rm -f conftest.h
6070 else
6071 # Remove last slash and all that follows it. Not all systems have dirname.
6072 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6073 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6074 # The file is in a subdirectory.
6075 test ! -d "$ac_dir" && mkdir "$ac_dir"
6076 fi
6077 rm -f $ac_file
6078 mv conftest.h $ac_file
6079 fi
6080 fi; done
6081
6082 EOF
6083 cat >> $CONFIG_STATUS <<EOF
6084
6085 target_cpu_type=${target_cpu_type}
6086 cgen_cpu_prefix=${cgen_cpu_prefix}
6087 obj_format=${obj_format}
6088 te_file=${te_file}
6089 EOF
6090 cat >> $CONFIG_STATUS <<\EOF
6091 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6092 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
6093 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
6094 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
6095 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
6096 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
6097 if test "x$cgen_cpu_prefix" != x ; then
6098 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
6099 fi
6100
6101 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6102 exit 0
6103 EOF
6104 chmod +x $CONFIG_STATUS
6105 rm -fr confdefs* $ac_clean_files
6106 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6107
This page took 0.167871 seconds and 5 git commands to generate.