update generated files
[binutils.git] / binutils / configure
blob4969871a2aa17ef28572b0be62ccc6b02aa0d46b
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
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 avoid locking (might break parallel builds)"
24 ac_help="$ac_help
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
26 ac_help="$ac_help
27 --enable-targets alternative target configurations"
28 ac_help="$ac_help
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
30 ac_help="$ac_help
31 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
32 ac_help="$ac_help
33 --disable-nls do not use Native Language Support"
34 ac_help="$ac_help
35 --with-included-gettext use the GNU gettext library included here"
36 ac_help="$ac_help
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
43 build=NONE
44 cache_file=./config.cache
45 exec_prefix=NONE
46 host=NONE
47 no_create=
48 nonopt=NONE
49 no_recursion=
50 prefix=NONE
51 program_prefix=NONE
52 program_suffix=NONE
53 program_transform_name=s,x,x,
54 silent=
55 site=
56 sitefile=
57 srcdir=
58 target=NONE
59 verbose=
60 x_includes=NONE
61 x_libraries=NONE
62 bindir='${exec_prefix}/bin'
63 sbindir='${exec_prefix}/sbin'
64 libexecdir='${exec_prefix}/libexec'
65 datadir='${prefix}/share'
66 sysconfdir='${prefix}/etc'
67 sharedstatedir='${prefix}/com'
68 localstatedir='${prefix}/var'
69 libdir='${exec_prefix}/lib'
70 includedir='${prefix}/include'
71 oldincludedir='/usr/include'
72 infodir='${prefix}/info'
73 mandir='${prefix}/man'
75 # Initialize some other variables.
76 subdirs=
77 MFLAGS= MAKEFLAGS=
78 SHELL=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
80 ac_max_here_lines=12
82 ac_prev=
83 for ac_option
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
89 ac_prev=
90 continue
93 case "$ac_option" in
94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 *) ac_optarg= ;;
96 esac
98 # Accept the important Cygnus configure options, so we can diagnose typos.
100 case "$ac_option" in
102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
103 ac_prev=bindir ;;
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105 bindir="$ac_optarg" ;;
107 -build | --build | --buil | --bui | --bu)
108 ac_prev=build ;;
109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110 build="$ac_optarg" ;;
112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev=cache_file ;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file="$ac_optarg" ;;
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120 ac_prev=datadir ;;
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122 | --da=*)
123 datadir="$ac_optarg" ;;
125 -disable-* | --disable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* | --enable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 case "$ac_option" in
142 *=*) ;;
143 *) ac_optarg=yes ;;
144 esac
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149 | --exec | --exe | --ex)
150 ac_prev=exec_prefix ;;
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153 | --exec=* | --exe=* | --ex=*)
154 exec_prefix="$ac_optarg" ;;
156 -gas | --gas | --ga | --g)
157 # Obsolete; use --with-gas.
158 with_gas=yes ;;
160 -help | --help | --hel | --he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
163 cat << EOF
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
166 Configuration:
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --site-file=FILE use FILE as the site file
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
175 [$ac_default_prefix]
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
177 [same as prefix]
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
182 [PREFIX/share]
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 [PREFIX/com]
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
198 cat << EOF
199 Host type:
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
214 exit 0 ;;
216 -host | --host | --hos | --ho)
217 ac_prev=host ;;
218 -host=* | --host=* | --hos=* | --ho=*)
219 host="$ac_optarg" ;;
221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
229 ac_prev=infodir ;;
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
233 -libdir | --libdir | --libdi | --libd)
234 ac_prev=libdir ;;
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
255 ac_prev=mandir ;;
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
259 -nfp | --nfp | --nf)
260 # Obsolete; use --without-fp.
261 with_fp=no ;;
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264 | --no-cr | --no-c)
265 no_create=yes ;;
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
269 no_recursion=yes ;;
271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
281 ac_prev=prefix ;;
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
318 silent=yes ;;
320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
321 ac_prev=sbindir ;;
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
323 | --sbi=* | --sb=*)
324 sbindir="$ac_optarg" ;;
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
329 | --sha | --sh)
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
334 | --sha=* | --sh=*)
335 sharedstatedir="$ac_optarg" ;;
337 -site | --site | --sit)
338 ac_prev=site ;;
339 -site=* | --site=* | --sit=*)
340 site="$ac_optarg" ;;
342 -site-file | --site-file | --site-fil | --site-fi | --site-f)
343 ac_prev=sitefile ;;
344 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
345 sitefile="$ac_optarg" ;;
347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
348 ac_prev=srcdir ;;
349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350 srcdir="$ac_optarg" ;;
352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
353 | --syscon | --sysco | --sysc | --sys | --sy)
354 ac_prev=sysconfdir ;;
355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
357 sysconfdir="$ac_optarg" ;;
359 -target | --target | --targe | --targ | --tar | --ta | --t)
360 ac_prev=target ;;
361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362 target="$ac_optarg" ;;
364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
365 verbose=yes ;;
367 -version | --version | --versio | --versi | --vers)
368 echo "configure generated by autoconf version 2.13"
369 exit 0 ;;
371 -with-* | --with-*)
372 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 case "$ac_option" in
379 *=*) ;;
380 *) ac_optarg=yes ;;
381 esac
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* | --without-*)
385 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
393 --x)
394 # Obsolete; use --with-x.
395 with_x=yes ;;
397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
398 | --x-incl | --x-inc | --x-in | --x-i)
399 ac_prev=x_includes ;;
400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
402 x_includes="$ac_optarg" ;;
404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
406 ac_prev=x_libraries ;;
407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
409 x_libraries="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
421 nonopt="$ac_option"
424 esac
425 done
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
434 # 0 standard input
435 # 1 file creation
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
442 exec 6>/dev/null
443 else
444 exec 6>&1
446 exec 5>./config.log
448 echo "\
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
451 " 1>&5
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
455 ac_configure_args=
456 for ac_arg
458 case "$ac_arg" in
459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
460 | --no-cr | --no-c) ;;
461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 esac
467 done
469 # NLS nuisances.
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 echo > confdefs.h
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file=ar.c
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted=yes
491 # Try the directory containing this script, then its parent.
492 ac_prog=$0
493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
495 srcdir=$ac_confdir
496 if test ! -r $srcdir/$ac_unique_file; then
497 srcdir=..
499 else
500 ac_srcdir_defaulted=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 else
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$sitefile"; then
513 if test -z "$CONFIG_SITE"; then
514 if test "x$prefix" != xNONE; then
515 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
516 else
517 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
520 else
521 CONFIG_SITE="$sitefile"
523 for ac_site_file in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
526 . "$ac_site_file"
528 done
530 if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
532 . $cache_file
533 else
534 echo "creating cache $cache_file"
535 > $cache_file
538 ac_ext=c
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540 ac_cpp='$CPP $CPPFLAGS'
541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543 cross_compiling=$ac_cv_prog_cc_cross
545 ac_exeext=
546 ac_objext=o
547 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
550 ac_n= ac_c='
551 ' ac_t=' '
552 else
553 ac_n=-n ac_c= ac_t=
555 else
556 ac_n= ac_c='\c' ac_t=
559 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
560 echo "configure:561: checking for Cygwin environment" >&5
561 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
563 else
564 cat > conftest.$ac_ext <<EOF
565 #line 566 "configure"
566 #include "confdefs.h"
568 int main() {
570 #ifndef __CYGWIN__
571 #define __CYGWIN__ __CYGWIN32__
572 #endif
573 return __CYGWIN__;
574 ; return 0; }
576 if { (eval echo configure:577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
577 rm -rf conftest*
578 ac_cv_cygwin=yes
579 else
580 echo "configure: failed program was:" >&5
581 cat conftest.$ac_ext >&5
582 rm -rf conftest*
583 ac_cv_cygwin=no
585 rm -f conftest*
586 rm -f conftest*
589 echo "$ac_t""$ac_cv_cygwin" 1>&6
590 CYGWIN=
591 test "$ac_cv_cygwin" = yes && CYGWIN=yes
592 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
593 echo "configure:594: checking for mingw32 environment" >&5
594 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
595 echo $ac_n "(cached) $ac_c" 1>&6
596 else
597 cat > conftest.$ac_ext <<EOF
598 #line 599 "configure"
599 #include "confdefs.h"
601 int main() {
602 return __MINGW32__;
603 ; return 0; }
605 if { (eval echo configure:606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
606 rm -rf conftest*
607 ac_cv_mingw32=yes
608 else
609 echo "configure: failed program was:" >&5
610 cat conftest.$ac_ext >&5
611 rm -rf conftest*
612 ac_cv_mingw32=no
614 rm -f conftest*
615 rm -f conftest*
618 echo "$ac_t""$ac_cv_mingw32" 1>&6
619 MINGW32=
620 test "$ac_cv_mingw32" = yes && MINGW32=yes
623 ac_aux_dir=
624 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
625 if test -f $ac_dir/install-sh; then
626 ac_aux_dir=$ac_dir
627 ac_install_sh="$ac_aux_dir/install-sh -c"
628 break
629 elif test -f $ac_dir/install.sh; then
630 ac_aux_dir=$ac_dir
631 ac_install_sh="$ac_aux_dir/install.sh -c"
632 break
634 done
635 if test -z "$ac_aux_dir"; then
636 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
638 ac_config_guess=$ac_aux_dir/config.guess
639 ac_config_sub=$ac_aux_dir/config.sub
640 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
643 # Do some error checking and defaulting for the host and target type.
644 # The inputs are:
645 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
647 # The rules are:
648 # 1. You are not allowed to specify --host, --target, and nonopt at the
649 # same time.
650 # 2. Host defaults to nonopt.
651 # 3. If nonopt is not specified, then host defaults to the current host,
652 # as determined by config.guess.
653 # 4. Target and build default to nonopt.
654 # 5. If nonopt is not specified, then target and build default to host.
656 # The aliases save the names the user supplied, while $host etc.
657 # will get canonicalized.
658 case $host---$target---$nonopt in
659 NONE---*---* | *---NONE---* | *---*---NONE) ;;
660 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
661 esac
664 # Make sure we can run config.sub.
665 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
666 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
669 echo $ac_n "checking host system type""... $ac_c" 1>&6
670 echo "configure:671: checking host system type" >&5
672 host_alias=$host
673 case "$host_alias" in
674 NONE)
675 case $nonopt in
676 NONE)
677 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
678 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
679 fi ;;
680 *) host_alias=$nonopt ;;
681 esac ;;
682 esac
684 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
685 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
686 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
687 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
688 echo "$ac_t""$host" 1>&6
690 echo $ac_n "checking target system type""... $ac_c" 1>&6
691 echo "configure:692: checking target system type" >&5
693 target_alias=$target
694 case "$target_alias" in
695 NONE)
696 case $nonopt in
697 NONE) target_alias=$host_alias ;;
698 *) target_alias=$nonopt ;;
699 esac ;;
700 esac
702 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
703 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
704 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
705 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
706 echo "$ac_t""$target" 1>&6
708 echo $ac_n "checking build system type""... $ac_c" 1>&6
709 echo "configure:710: checking build system type" >&5
711 build_alias=$build
712 case "$build_alias" in
713 NONE)
714 case $nonopt in
715 NONE) build_alias=$host_alias ;;
716 *) build_alias=$nonopt ;;
717 esac ;;
718 esac
720 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
721 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
724 echo "$ac_t""$build" 1>&6
726 test "$host_alias" != "$target_alias" &&
727 test "$program_prefix$program_suffix$program_transform_name" = \
728 NONENONEs,x,x, &&
729 program_prefix=${target_alias}-
731 # Extract the first word of "gcc", so it can be a program name with args.
732 set dummy gcc; ac_word=$2
733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
734 echo "configure:735: checking for $ac_word" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
737 else
738 if test -n "$CC"; then
739 ac_cv_prog_CC="$CC" # Let the user override the test.
740 else
741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
742 ac_dummy="$PATH"
743 for ac_dir in $ac_dummy; do
744 test -z "$ac_dir" && ac_dir=.
745 if test -f $ac_dir/$ac_word; then
746 ac_cv_prog_CC="gcc"
747 break
749 done
750 IFS="$ac_save_ifs"
753 CC="$ac_cv_prog_CC"
754 if test -n "$CC"; then
755 echo "$ac_t""$CC" 1>&6
756 else
757 echo "$ac_t""no" 1>&6
760 if test -z "$CC"; then
761 # Extract the first word of "cc", so it can be a program name with args.
762 set dummy cc; ac_word=$2
763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
764 echo "configure:765: checking for $ac_word" >&5
765 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
767 else
768 if test -n "$CC"; then
769 ac_cv_prog_CC="$CC" # Let the user override the test.
770 else
771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
772 ac_prog_rejected=no
773 ac_dummy="$PATH"
774 for ac_dir in $ac_dummy; do
775 test -z "$ac_dir" && ac_dir=.
776 if test -f $ac_dir/$ac_word; then
777 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
778 ac_prog_rejected=yes
779 continue
781 ac_cv_prog_CC="cc"
782 break
784 done
785 IFS="$ac_save_ifs"
786 if test $ac_prog_rejected = yes; then
787 # We found a bogon in the path, so make sure we never use it.
788 set dummy $ac_cv_prog_CC
789 shift
790 if test $# -gt 0; then
791 # We chose a different compiler from the bogus one.
792 # However, it has the same basename, so the bogon will be chosen
793 # first if we set CC to just the basename; use the full file name.
794 shift
795 set dummy "$ac_dir/$ac_word" "$@"
796 shift
797 ac_cv_prog_CC="$@"
802 CC="$ac_cv_prog_CC"
803 if test -n "$CC"; then
804 echo "$ac_t""$CC" 1>&6
805 else
806 echo "$ac_t""no" 1>&6
809 if test -z "$CC"; then
810 case "`uname -s`" in
811 *win32* | *WIN32*)
812 # Extract the first word of "cl", so it can be a program name with args.
813 set dummy cl; ac_word=$2
814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
815 echo "configure:816: checking for $ac_word" >&5
816 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
818 else
819 if test -n "$CC"; then
820 ac_cv_prog_CC="$CC" # Let the user override the test.
821 else
822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
823 ac_dummy="$PATH"
824 for ac_dir in $ac_dummy; do
825 test -z "$ac_dir" && ac_dir=.
826 if test -f $ac_dir/$ac_word; then
827 ac_cv_prog_CC="cl"
828 break
830 done
831 IFS="$ac_save_ifs"
834 CC="$ac_cv_prog_CC"
835 if test -n "$CC"; then
836 echo "$ac_t""$CC" 1>&6
837 else
838 echo "$ac_t""no" 1>&6
841 esac
843 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
846 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
847 echo "configure:848: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
849 ac_ext=c
850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
851 ac_cpp='$CPP $CPPFLAGS'
852 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
853 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
854 cross_compiling=$ac_cv_prog_cc_cross
856 cat > conftest.$ac_ext << EOF
858 #line 859 "configure"
859 #include "confdefs.h"
861 main(){return(0);}
863 if { (eval echo configure:864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
864 ac_cv_prog_cc_works=yes
865 # If we can't run a trivial program, we are probably using a cross compiler.
866 if (./conftest; exit) 2>/dev/null; then
867 ac_cv_prog_cc_cross=no
868 else
869 ac_cv_prog_cc_cross=yes
871 else
872 echo "configure: failed program was:" >&5
873 cat conftest.$ac_ext >&5
874 ac_cv_prog_cc_works=no
876 rm -fr conftest*
877 ac_ext=c
878 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
879 ac_cpp='$CPP $CPPFLAGS'
880 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
881 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
882 cross_compiling=$ac_cv_prog_cc_cross
884 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
885 if test $ac_cv_prog_cc_works = no; then
886 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
888 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
889 echo "configure:890: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
890 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
891 cross_compiling=$ac_cv_prog_cc_cross
893 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
894 echo "configure:895: checking whether we are using GNU C" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
897 else
898 cat > conftest.c <<EOF
899 #ifdef __GNUC__
900 yes;
901 #endif
903 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
904 ac_cv_prog_gcc=yes
905 else
906 ac_cv_prog_gcc=no
910 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
912 if test $ac_cv_prog_gcc = yes; then
913 GCC=yes
914 else
915 GCC=
918 ac_test_CFLAGS="${CFLAGS+set}"
919 ac_save_CFLAGS="$CFLAGS"
920 CFLAGS=
921 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
922 echo "configure:923: checking whether ${CC-cc} accepts -g" >&5
923 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
924 echo $ac_n "(cached) $ac_c" 1>&6
925 else
926 echo 'void f(){}' > conftest.c
927 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
928 ac_cv_prog_cc_g=yes
929 else
930 ac_cv_prog_cc_g=no
932 rm -f conftest*
936 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
937 if test "$ac_test_CFLAGS" = set; then
938 CFLAGS="$ac_save_CFLAGS"
939 elif test $ac_cv_prog_cc_g = yes; then
940 if test "$GCC" = yes; then
941 CFLAGS="-g -O2"
942 else
943 CFLAGS="-g"
945 else
946 if test "$GCC" = yes; then
947 CFLAGS="-O2"
948 else
949 CFLAGS=
953 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
954 echo "configure:955: checking for POSIXized ISC" >&5
955 if test -d /etc/conf/kconfig.d &&
956 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
957 then
958 echo "$ac_t""yes" 1>&6
959 ISC=yes # If later tests want to check for ISC.
960 cat >> confdefs.h <<\EOF
961 #define _POSIX_SOURCE 1
964 if test "$GCC" = yes; then
965 CC="$CC -posix"
966 else
967 CC="$CC -Xp"
969 else
970 echo "$ac_t""no" 1>&6
971 ISC=
975 # Find a good install program. We prefer a C program (faster),
976 # so one script is as good as another. But avoid the broken or
977 # incompatible versions:
978 # SysV /etc/install, /usr/sbin/install
979 # SunOS /usr/etc/install
980 # IRIX /sbin/install
981 # AIX /bin/install
982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
985 # ./install, which can be erroneously created by make from ./install.sh.
986 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
987 echo "configure:988: checking for a BSD compatible install" >&5
988 if test -z "$INSTALL"; then
989 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
991 else
992 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
993 for ac_dir in $PATH; do
994 # Account for people who put trailing slashes in PATH elements.
995 case "$ac_dir/" in
996 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
998 # OSF1 and SCO ODT 3.0 have their own names for install.
999 # Don't use installbsd from OSF since it installs stuff as root
1000 # by default.
1001 for ac_prog in ginstall scoinst install; do
1002 if test -f $ac_dir/$ac_prog; then
1003 if test $ac_prog = install &&
1004 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1005 # AIX install. It has an incompatible calling convention.
1007 else
1008 ac_cv_path_install="$ac_dir/$ac_prog -c"
1009 break 2
1012 done
1014 esac
1015 done
1016 IFS="$ac_save_IFS"
1019 if test "${ac_cv_path_install+set}" = set; then
1020 INSTALL="$ac_cv_path_install"
1021 else
1022 # As a last resort, use the slow shell script. We don't cache a
1023 # path for INSTALL within a source directory, because that will
1024 # break other packages using the cache if that directory is
1025 # removed, or if the path is relative.
1026 INSTALL="$ac_install_sh"
1029 echo "$ac_t""$INSTALL" 1>&6
1031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1032 # It thinks the first close brace ends the variable substitution.
1033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1035 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1037 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1039 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1040 echo "configure:1041: checking whether build environment is sane" >&5
1041 # Just in case
1042 sleep 1
1043 echo timestamp > conftestfile
1044 # Do `set' in a subshell so we don't clobber the current shell's
1045 # arguments. Must try -L first in case configure is actually a
1046 # symlink; some systems play weird games with the mod time of symlinks
1047 # (eg FreeBSD returns the mod time of the symlink's containing
1048 # directory).
1049 if (
1050 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1051 if test "$*" = "X"; then
1052 # -L didn't work.
1053 set X `ls -t $srcdir/configure conftestfile`
1055 if test "$*" != "X $srcdir/configure conftestfile" \
1056 && test "$*" != "X conftestfile $srcdir/configure"; then
1058 # If neither matched, then we have a broken ls. This can happen
1059 # if, for instance, CONFIG_SHELL is bash and it inherits a
1060 # broken ls alias from the environment. This has actually
1061 # happened. Such a system could not be considered "sane".
1062 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1063 alias in your environment" 1>&2; exit 1; }
1066 test "$2" = conftestfile
1068 then
1069 # Ok.
1071 else
1072 { echo "configure: error: newly created file is older than distributed files!
1073 Check your system clock" 1>&2; exit 1; }
1075 rm -f conftest*
1076 echo "$ac_t""yes" 1>&6
1077 if test "$program_transform_name" = s,x,x,; then
1078 program_transform_name=
1079 else
1080 # Double any \ or $. echo might interpret backslashes.
1081 cat <<\EOF_SED > conftestsed
1082 s,\\,\\\\,g; s,\$,$$,g
1083 EOF_SED
1084 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1085 rm -f conftestsed
1087 test "$program_prefix" != NONE &&
1088 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1089 # Use a double $ so make ignores it.
1090 test "$program_suffix" != NONE &&
1091 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1093 # sed with no file args requires a program.
1094 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1096 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1097 echo "configure:1098: checking whether ${MAKE-make} sets \${MAKE}" >&5
1098 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1099 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1101 else
1102 cat > conftestmake <<\EOF
1103 all:
1104 @echo 'ac_maketemp="${MAKE}"'
1106 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1107 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1108 if test -n "$ac_maketemp"; then
1109 eval ac_cv_prog_make_${ac_make}_set=yes
1110 else
1111 eval ac_cv_prog_make_${ac_make}_set=no
1113 rm -f conftestmake
1115 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1116 echo "$ac_t""yes" 1>&6
1117 SET_MAKE=
1118 else
1119 echo "$ac_t""no" 1>&6
1120 SET_MAKE="MAKE=${MAKE-make}"
1124 PACKAGE=binutils
1126 VERSION=2.11.1
1128 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1129 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1131 cat >> confdefs.h <<EOF
1132 #define PACKAGE "$PACKAGE"
1135 cat >> confdefs.h <<EOF
1136 #define VERSION "$VERSION"
1141 missing_dir=`cd $ac_aux_dir && pwd`
1142 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1143 echo "configure:1144: checking for working aclocal" >&5
1144 # Run test in a subshell; some versions of sh will print an error if
1145 # an executable is not found, even if stderr is redirected.
1146 # Redirect stdin to placate older versions of autoconf. Sigh.
1147 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1148 ACLOCAL=aclocal
1149 echo "$ac_t""found" 1>&6
1150 else
1151 ACLOCAL="$missing_dir/missing aclocal"
1152 echo "$ac_t""missing" 1>&6
1155 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1156 echo "configure:1157: checking for working autoconf" >&5
1157 # Run test in a subshell; some versions of sh will print an error if
1158 # an executable is not found, even if stderr is redirected.
1159 # Redirect stdin to placate older versions of autoconf. Sigh.
1160 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1161 AUTOCONF=autoconf
1162 echo "$ac_t""found" 1>&6
1163 else
1164 AUTOCONF="$missing_dir/missing autoconf"
1165 echo "$ac_t""missing" 1>&6
1168 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1169 echo "configure:1170: checking for working automake" >&5
1170 # Run test in a subshell; some versions of sh will print an error if
1171 # an executable is not found, even if stderr is redirected.
1172 # Redirect stdin to placate older versions of autoconf. Sigh.
1173 if (automake --version) < /dev/null > /dev/null 2>&1; then
1174 AUTOMAKE=automake
1175 echo "$ac_t""found" 1>&6
1176 else
1177 AUTOMAKE="$missing_dir/missing automake"
1178 echo "$ac_t""missing" 1>&6
1181 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1182 echo "configure:1183: checking for working autoheader" >&5
1183 # Run test in a subshell; some versions of sh will print an error if
1184 # an executable is not found, even if stderr is redirected.
1185 # Redirect stdin to placate older versions of autoconf. Sigh.
1186 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1187 AUTOHEADER=autoheader
1188 echo "$ac_t""found" 1>&6
1189 else
1190 AUTOHEADER="$missing_dir/missing autoheader"
1191 echo "$ac_t""missing" 1>&6
1194 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1195 echo "configure:1196: checking for working makeinfo" >&5
1196 # Run test in a subshell; some versions of sh will print an error if
1197 # an executable is not found, even if stderr is redirected.
1198 # Redirect stdin to placate older versions of autoconf. Sigh.
1199 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1200 MAKEINFO=makeinfo
1201 echo "$ac_t""found" 1>&6
1202 else
1203 MAKEINFO="$missing_dir/missing makeinfo"
1204 echo "$ac_t""missing" 1>&6
1209 # Check whether --enable-shared or --disable-shared was given.
1210 if test "${enable_shared+set}" = set; then
1211 enableval="$enable_shared"
1212 p=${PACKAGE-default}
1213 case "$enableval" in
1214 yes) enable_shared=yes ;;
1215 no) enable_shared=no ;;
1217 enable_shared=no
1218 # Look at the argument we got. We use all the common list separators.
1219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1220 for pkg in $enableval; do
1221 if test "X$pkg" = "X$p"; then
1222 enable_shared=yes
1224 done
1225 IFS="$ac_save_ifs"
1227 esac
1228 else
1229 enable_shared=yes
1232 # Check whether --enable-static or --disable-static was given.
1233 if test "${enable_static+set}" = set; then
1234 enableval="$enable_static"
1235 p=${PACKAGE-default}
1236 case "$enableval" in
1237 yes) enable_static=yes ;;
1238 no) enable_static=no ;;
1240 enable_static=no
1241 # Look at the argument we got. We use all the common list separators.
1242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1243 for pkg in $enableval; do
1244 if test "X$pkg" = "X$p"; then
1245 enable_static=yes
1247 done
1248 IFS="$ac_save_ifs"
1250 esac
1251 else
1252 enable_static=yes
1255 # Check whether --enable-fast-install or --disable-fast-install was given.
1256 if test "${enable_fast_install+set}" = set; then
1257 enableval="$enable_fast_install"
1258 p=${PACKAGE-default}
1259 case "$enableval" in
1260 yes) enable_fast_install=yes ;;
1261 no) enable_fast_install=no ;;
1263 enable_fast_install=no
1264 # Look at the argument we got. We use all the common list separators.
1265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1266 for pkg in $enableval; do
1267 if test "X$pkg" = "X$p"; then
1268 enable_fast_install=yes
1270 done
1271 IFS="$ac_save_ifs"
1273 esac
1274 else
1275 enable_fast_install=yes
1278 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1279 if test "${with_gnu_ld+set}" = set; then
1280 withval="$with_gnu_ld"
1281 test "$withval" = no || with_gnu_ld=yes
1282 else
1283 with_gnu_ld=no
1286 ac_prog=ld
1287 if test "$ac_cv_prog_gcc" = yes; then
1288 # Check if gcc -print-prog-name=ld gives a path.
1289 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1290 echo "configure:1291: checking for ld used by GCC" >&5
1291 case $host in
1292 *-*-mingw*)
1293 # gcc leaves a trailing carriage return which upsets mingw
1294 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1296 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1297 esac
1298 case "$ac_prog" in
1299 # Accept absolute paths.
1300 [\\/]* | [A-Za-z]:[\\/]*)
1301 re_direlt='/[^/][^/]*/\.\./'
1302 # Canonicalize the path of ld
1303 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1304 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1305 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1306 done
1307 test -z "$LD" && LD="$ac_prog"
1310 # If it fails, then pretend we aren't using GCC.
1311 ac_prog=ld
1314 # If it is relative, then search for the first ld in PATH.
1315 with_gnu_ld=unknown
1317 esac
1318 elif test "$with_gnu_ld" = yes; then
1319 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1320 echo "configure:1321: checking for GNU ld" >&5
1321 else
1322 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1323 echo "configure:1324: checking for non-GNU ld" >&5
1325 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1327 else
1328 if test -z "$LD"; then
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1330 for ac_dir in $PATH; do
1331 test -z "$ac_dir" && ac_dir=.
1332 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1333 ac_cv_path_LD="$ac_dir/$ac_prog"
1334 # Check to see if the program is GNU ld. I'd rather use --version,
1335 # but apparently some GNU ld's only accept -v.
1336 # Break only if it was the GNU/non-GNU ld that we prefer.
1337 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1338 test "$with_gnu_ld" != no && break
1339 else
1340 test "$with_gnu_ld" != yes && break
1343 done
1344 IFS="$ac_save_ifs"
1345 else
1346 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1350 LD="$ac_cv_path_LD"
1351 if test -n "$LD"; then
1352 echo "$ac_t""$LD" 1>&6
1353 else
1354 echo "$ac_t""no" 1>&6
1356 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1357 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1358 echo "configure:1359: checking if the linker ($LD) is GNU ld" >&5
1359 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1361 else
1362 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1363 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1364 ac_cv_prog_gnu_ld=yes
1365 else
1366 ac_cv_prog_gnu_ld=no
1370 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1371 with_gnu_ld=$ac_cv_prog_gnu_ld
1374 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1375 echo "configure:1376: checking for $LD option to reload object files" >&5
1376 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1378 else
1379 lt_cv_ld_reload_flag='-r'
1382 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1383 reload_flag=$lt_cv_ld_reload_flag
1384 test -n "$reload_flag" && reload_flag=" $reload_flag"
1386 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1387 echo "configure:1388: checking for BSD-compatible nm" >&5
1388 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1390 else
1391 if test -n "$NM"; then
1392 # Let the user override the test.
1393 ac_cv_path_NM="$NM"
1394 else
1395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1396 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1397 test -z "$ac_dir" && ac_dir=.
1398 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1399 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1400 # Check to see if the nm accepts a BSD-compat flag.
1401 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1402 # nm: unknown option "B" ignored
1403 # Tru64's nm complains that /dev/null is an invalid object file
1404 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1405 ac_cv_path_NM="$tmp_nm -B"
1406 break
1407 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1408 ac_cv_path_NM="$tmp_nm -p"
1409 break
1410 else
1411 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1412 continue # so that we can try to find one that supports BSD flags
1415 done
1416 IFS="$ac_save_ifs"
1417 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1421 NM="$ac_cv_path_NM"
1422 echo "$ac_t""$NM" 1>&6
1424 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1425 echo "configure:1426: checking whether ln -s works" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1428 else
1429 rm -f conftestdata
1430 if ln -s X conftestdata 2>/dev/null
1431 then
1432 rm -f conftestdata
1433 ac_cv_prog_LN_S="ln -s"
1434 else
1435 ac_cv_prog_LN_S=ln
1438 LN_S="$ac_cv_prog_LN_S"
1439 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1440 echo "$ac_t""yes" 1>&6
1441 else
1442 echo "$ac_t""no" 1>&6
1445 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1446 echo "configure:1447: checking how to recognise dependant libraries" >&5
1447 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1449 else
1450 lt_cv_file_magic_cmd='$MAGIC_CMD'
1451 lt_cv_file_magic_test_file=
1452 lt_cv_deplibs_check_method='unknown'
1453 # Need to set the preceding variable on all platforms that support
1454 # interlibrary dependencies.
1455 # 'none' -- dependencies not supported.
1456 # `unknown' -- same as none, but documents that we really don't know.
1457 # 'pass_all' -- all dependencies passed with no checks.
1458 # 'test_compile' -- check by making test program.
1459 # 'file_magic [regex]' -- check by looking for files in library path
1460 # which responds to the $file_magic_cmd with a given egrep regex.
1461 # If you have `file' or equivalent on your system and you're not sure
1462 # whether `pass_all' will *always* work, you probably want this one.
1464 case "$host_os" in
1465 aix4*)
1466 lt_cv_deplibs_check_method=pass_all
1469 beos*)
1470 lt_cv_deplibs_check_method=pass_all
1473 bsdi4*)
1474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1475 lt_cv_file_magic_cmd='/usr/bin/file -L'
1476 lt_cv_file_magic_test_file=/shlib/libc.so
1479 cygwin* | mingw* |pw32*)
1480 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1481 lt_cv_file_magic_cmd='$OBJDUMP -f'
1484 freebsd* )
1485 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1486 case "$host_cpu" in
1487 i*86 )
1488 # Not sure whether the presence of OpenBSD here was a mistake.
1489 # Let's accept both of them until this is cleared up.
1490 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1491 lt_cv_file_magic_cmd=/usr/bin/file
1492 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1494 esac
1495 else
1496 lt_cv_deplibs_check_method=pass_all
1500 gnu*)
1501 lt_cv_deplibs_check_method=pass_all
1504 hpux10.20*)
1505 # TODO: Does this work for hpux-11 too?
1506 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1507 lt_cv_file_magic_cmd=/usr/bin/file
1508 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1511 irix5* | irix6*)
1512 case "$host_os" in
1513 irix5*)
1514 # this will be overridden with pass_all, but let us keep it just in case
1515 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1518 case "$LD" in
1519 *-32|*"-32 ") libmagic=32-bit;;
1520 *-n32|*"-n32 ") libmagic=N32;;
1521 *-64|*"-64 ") libmagic=64-bit;;
1522 *) libmagic=never-match;;
1523 esac
1524 # this will be overridden with pass_all, but let us keep it just in case
1525 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1527 esac
1528 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1529 lt_cv_deplibs_check_method=pass_all
1532 # This must be Linux ELF.
1533 linux-gnu*)
1534 case "$host_cpu" in
1535 alpha* | i*86 | powerpc* | sparc* | ia64* )
1536 lt_cv_deplibs_check_method=pass_all ;;
1538 # glibc up to 2.1.1 does not perform some relocations on ARM
1539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1540 esac
1541 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1544 netbsd*)
1545 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1546 else
1547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1548 lt_cv_file_magic_cmd='/usr/bin/file -L'
1549 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1553 osf3* | osf4* | osf5*)
1554 # this will be overridden with pass_all, but let us keep it just in case
1555 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1556 lt_cv_file_magic_test_file=/shlib/libc.so
1557 lt_cv_deplibs_check_method=pass_all
1560 sco3.2v5*)
1561 lt_cv_deplibs_check_method=pass_all
1564 solaris*)
1565 lt_cv_deplibs_check_method=pass_all
1566 lt_cv_file_magic_test_file=/lib/libc.so
1569 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1570 case "$host_vendor" in
1571 ncr)
1572 lt_cv_deplibs_check_method=pass_all
1574 motorola)
1575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1576 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1578 esac
1580 esac
1584 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1585 file_magic_cmd=$lt_cv_file_magic_cmd
1586 deplibs_check_method=$lt_cv_deplibs_check_method
1588 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1589 echo "configure:1590: checking for object suffix" >&5
1590 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1592 else
1593 rm -f conftest*
1594 echo 'int i = 1;' > conftest.$ac_ext
1595 if { (eval echo configure:1596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1596 for ac_file in conftest.*; do
1597 case $ac_file in
1598 *.c) ;;
1599 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1600 esac
1601 done
1602 else
1603 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1605 rm -f conftest*
1608 echo "$ac_t""$ac_cv_objext" 1>&6
1609 OBJEXT=$ac_cv_objext
1610 ac_objext=$ac_cv_objext
1614 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1615 echo "configure:1616: checking for executable suffix" >&5
1616 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1618 else
1619 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1620 ac_cv_exeext=.exe
1621 else
1622 rm -f conftest*
1623 echo 'int main () { return 0; }' > conftest.$ac_ext
1624 ac_cv_exeext=
1625 if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1626 for file in conftest.*; do
1627 case $file in
1628 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1629 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1630 esac
1631 done
1632 else
1633 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1635 rm -f conftest*
1636 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1640 EXEEXT=""
1641 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1642 echo "$ac_t""${ac_cv_exeext}" 1>&6
1643 ac_exeext=$EXEEXT
1645 if test $host != $build; then
1646 ac_tool_prefix=${host_alias}-
1647 else
1648 ac_tool_prefix=
1651 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1653 # Only perform the check for file, if the check method requires it
1654 case "$deplibs_check_method" in
1655 file_magic*)
1656 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1657 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1658 echo "configure:1659: checking for ${ac_tool_prefix}file" >&5
1659 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1661 else
1662 case "$MAGIC_CMD" in
1664 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1666 ?:/*)
1667 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1670 ac_save_MAGIC_CMD="$MAGIC_CMD"
1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1672 ac_dummy="/usr/bin:$PATH"
1673 for ac_dir in $ac_dummy; do
1674 test -z "$ac_dir" && ac_dir=.
1675 if test -f $ac_dir/${ac_tool_prefix}file; then
1676 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1677 if test -n "$file_magic_test_file"; then
1678 case "$deplibs_check_method" in
1679 "file_magic "*)
1680 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1681 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1682 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1683 egrep "$file_magic_regex" > /dev/null; then
1685 else
1686 cat <<EOF 1>&2
1688 *** Warning: the command libtool uses to detect shared libraries,
1689 *** $file_magic_cmd, produces output that libtool cannot recognize.
1690 *** The result is that libtool may fail to recognize shared libraries
1691 *** as such. This will affect the creation of libtool libraries that
1692 *** depend on shared libraries, but programs linked with such libtool
1693 *** libraries will work regardless of this problem. Nevertheless, you
1694 *** may want to report the problem to your system manager and/or to
1695 *** bug-libtool@gnu.org
1698 fi ;;
1699 esac
1701 break
1703 done
1704 IFS="$ac_save_ifs"
1705 MAGIC_CMD="$ac_save_MAGIC_CMD"
1707 esac
1710 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1711 if test -n "$MAGIC_CMD"; then
1712 echo "$ac_t""$MAGIC_CMD" 1>&6
1713 else
1714 echo "$ac_t""no" 1>&6
1717 if test -z "$lt_cv_path_MAGIC_CMD"; then
1718 if test -n "$ac_tool_prefix"; then
1719 echo $ac_n "checking for file""... $ac_c" 1>&6
1720 echo "configure:1721: checking for file" >&5
1721 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1723 else
1724 case "$MAGIC_CMD" in
1726 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1728 ?:/*)
1729 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1732 ac_save_MAGIC_CMD="$MAGIC_CMD"
1733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1734 ac_dummy="/usr/bin:$PATH"
1735 for ac_dir in $ac_dummy; do
1736 test -z "$ac_dir" && ac_dir=.
1737 if test -f $ac_dir/file; then
1738 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1739 if test -n "$file_magic_test_file"; then
1740 case "$deplibs_check_method" in
1741 "file_magic "*)
1742 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1744 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1745 egrep "$file_magic_regex" > /dev/null; then
1747 else
1748 cat <<EOF 1>&2
1750 *** Warning: the command libtool uses to detect shared libraries,
1751 *** $file_magic_cmd, produces output that libtool cannot recognize.
1752 *** The result is that libtool may fail to recognize shared libraries
1753 *** as such. This will affect the creation of libtool libraries that
1754 *** depend on shared libraries, but programs linked with such libtool
1755 *** libraries will work regardless of this problem. Nevertheless, you
1756 *** may want to report the problem to your system manager and/or to
1757 *** bug-libtool@gnu.org
1760 fi ;;
1761 esac
1763 break
1765 done
1766 IFS="$ac_save_ifs"
1767 MAGIC_CMD="$ac_save_MAGIC_CMD"
1769 esac
1772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1773 if test -n "$MAGIC_CMD"; then
1774 echo "$ac_t""$MAGIC_CMD" 1>&6
1775 else
1776 echo "$ac_t""no" 1>&6
1779 else
1780 MAGIC_CMD=:
1786 esac
1788 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1789 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1791 echo "configure:1792: checking for $ac_word" >&5
1792 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1794 else
1795 if test -n "$RANLIB"; then
1796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1797 else
1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1799 ac_dummy="$PATH"
1800 for ac_dir in $ac_dummy; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f $ac_dir/$ac_word; then
1803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1804 break
1806 done
1807 IFS="$ac_save_ifs"
1810 RANLIB="$ac_cv_prog_RANLIB"
1811 if test -n "$RANLIB"; then
1812 echo "$ac_t""$RANLIB" 1>&6
1813 else
1814 echo "$ac_t""no" 1>&6
1818 if test -z "$ac_cv_prog_RANLIB"; then
1819 if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "ranlib", so it can be a program name with args.
1821 set dummy ranlib; ac_word=$2
1822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1823 echo "configure:1824: checking for $ac_word" >&5
1824 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1826 else
1827 if test -n "$RANLIB"; then
1828 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1829 else
1830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1831 ac_dummy="$PATH"
1832 for ac_dir in $ac_dummy; do
1833 test -z "$ac_dir" && ac_dir=.
1834 if test -f $ac_dir/$ac_word; then
1835 ac_cv_prog_RANLIB="ranlib"
1836 break
1838 done
1839 IFS="$ac_save_ifs"
1840 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1843 RANLIB="$ac_cv_prog_RANLIB"
1844 if test -n "$RANLIB"; then
1845 echo "$ac_t""$RANLIB" 1>&6
1846 else
1847 echo "$ac_t""no" 1>&6
1850 else
1851 RANLIB=":"
1855 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1856 set dummy ${ac_tool_prefix}strip; ac_word=$2
1857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1858 echo "configure:1859: checking for $ac_word" >&5
1859 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1861 else
1862 if test -n "$STRIP"; then
1863 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1864 else
1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1866 ac_dummy="$PATH"
1867 for ac_dir in $ac_dummy; do
1868 test -z "$ac_dir" && ac_dir=.
1869 if test -f $ac_dir/$ac_word; then
1870 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1871 break
1873 done
1874 IFS="$ac_save_ifs"
1877 STRIP="$ac_cv_prog_STRIP"
1878 if test -n "$STRIP"; then
1879 echo "$ac_t""$STRIP" 1>&6
1880 else
1881 echo "$ac_t""no" 1>&6
1885 if test -z "$ac_cv_prog_STRIP"; then
1886 if test -n "$ac_tool_prefix"; then
1887 # Extract the first word of "strip", so it can be a program name with args.
1888 set dummy strip; ac_word=$2
1889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1890 echo "configure:1891: checking for $ac_word" >&5
1891 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1893 else
1894 if test -n "$STRIP"; then
1895 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1896 else
1897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1898 ac_dummy="$PATH"
1899 for ac_dir in $ac_dummy; do
1900 test -z "$ac_dir" && ac_dir=.
1901 if test -f $ac_dir/$ac_word; then
1902 ac_cv_prog_STRIP="strip"
1903 break
1905 done
1906 IFS="$ac_save_ifs"
1907 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1910 STRIP="$ac_cv_prog_STRIP"
1911 if test -n "$STRIP"; then
1912 echo "$ac_t""$STRIP" 1>&6
1913 else
1914 echo "$ac_t""no" 1>&6
1917 else
1918 STRIP=":"
1923 # Check for any special flags to pass to ltconfig.
1924 libtool_flags="--cache-file=$cache_file"
1925 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1926 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1927 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1928 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1929 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1932 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1933 if test "${enable_libtool_lock+set}" = set; then
1934 enableval="$enable_libtool_lock"
1938 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1939 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1941 # Check whether --with-pic or --without-pic was given.
1942 if test "${with_pic+set}" = set; then
1943 withval="$with_pic"
1944 pic_mode="$withval"
1945 else
1946 pic_mode=default
1949 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1950 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1952 # Some flags need to be propagated to the compiler or linker for good
1953 # libtool support.
1954 case "$host" in
1955 *-*-irix6*)
1956 # Find out which ABI we are using.
1957 echo '#line 1958 "configure"' > conftest.$ac_ext
1958 if { (eval echo configure:1959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1959 case "`/usr/bin/file conftest.o`" in
1960 *32-bit*)
1961 LD="${LD-ld} -32"
1963 *N32*)
1964 LD="${LD-ld} -n32"
1966 *64-bit*)
1967 LD="${LD-ld} -64"
1969 esac
1971 rm -rf conftest*
1974 *-*-sco3.2v5*)
1975 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1976 SAVE_CFLAGS="$CFLAGS"
1977 CFLAGS="$CFLAGS -belf"
1978 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1979 echo "configure:1980: checking whether the C compiler needs -belf" >&5
1980 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1982 else
1984 ac_ext=c
1985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1986 ac_cpp='$CPP $CPPFLAGS'
1987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1989 cross_compiling=$ac_cv_prog_cc_cross
1991 cat > conftest.$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1995 int main() {
1997 ; return 0; }
1999 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2000 rm -rf conftest*
2001 lt_cv_cc_needs_belf=yes
2002 else
2003 echo "configure: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2005 rm -rf conftest*
2006 lt_cv_cc_needs_belf=no
2008 rm -f conftest*
2009 ac_ext=c
2010 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2011 ac_cpp='$CPP $CPPFLAGS'
2012 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2013 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2014 cross_compiling=$ac_cv_prog_cc_cross
2018 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2019 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2020 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2021 CFLAGS="$SAVE_CFLAGS"
2026 esac
2029 # Save cache, so that ltconfig can load it
2030 cat > confcache <<\EOF
2031 # This file is a shell script that caches the results of configure
2032 # tests run on this system so they can be shared between configure
2033 # scripts and configure runs. It is not useful on other systems.
2034 # If it contains results you don't want to keep, you may remove or edit it.
2036 # By default, configure uses ./config.cache as the cache file,
2037 # creating it if it does not exist already. You can give configure
2038 # the --cache-file=FILE option to use a different cache file; that is
2039 # what configure does when it calls configure scripts in
2040 # subdirectories, so they share the cache.
2041 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2042 # config.status only pays attention to the cache file if you give it the
2043 # --recheck option to rerun configure.
2046 # The following way of writing the cache mishandles newlines in values,
2047 # but we know of no workaround that is simple, portable, and efficient.
2048 # So, don't put newlines in cache variables' values.
2049 # Ultrix sh set writes to stderr and can't be redirected directly,
2050 # and sets the high bit in the cache file unless we assign to the vars.
2051 (set) 2>&1 |
2052 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2053 *ac_space=\ *)
2054 # `set' does not quote correctly, so add quotes (double-quote substitution
2055 # turns \\\\ into \\, and sed turns \\ into \).
2056 sed -n \
2057 -e "s/'/'\\\\''/g" \
2058 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2061 # `set' quotes correctly as required by POSIX, so do not add quotes.
2062 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2064 esac >> confcache
2065 if cmp -s $cache_file confcache; then
2067 else
2068 if test -w $cache_file; then
2069 echo "updating cache $cache_file"
2070 cat confcache > $cache_file
2071 else
2072 echo "not updating unwritable cache $cache_file"
2075 rm -f confcache
2078 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2079 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2080 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2081 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2082 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2083 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2084 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2085 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2086 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2087 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2089 # Reload cache, that may have been modified by ltconfig
2090 if test -r "$cache_file"; then
2091 echo "loading cache $cache_file"
2092 . $cache_file
2093 else
2094 echo "creating cache $cache_file"
2095 > $cache_file
2099 # This can be used to rebuild libtool when needed
2100 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2102 # Always use our own libtool.
2103 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2105 # Redirect the config.log output again, so that the ltconfig log is not
2106 # clobbered by the next message.
2107 exec 5>>./config.log
2116 # Check whether --enable-targets or --disable-targets was given.
2117 if test "${enable_targets+set}" = set; then
2118 enableval="$enable_targets"
2119 case "${enableval}" in
2120 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2122 no) enable_targets= ;;
2123 *) enable_targets=$enableval ;;
2124 esac
2126 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2127 if test "${enable_commonbfdlib+set}" = set; then
2128 enableval="$enable_commonbfdlib"
2129 case "${enableval}" in
2130 yes) commonbfdlib=true ;;
2131 no) commonbfdlib=false ;;
2132 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2133 esac
2136 build_warnings="-W -Wall"
2137 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2138 if test "${enable_build_warnings+set}" = set; then
2139 enableval="$enable_build_warnings"
2140 case "${enableval}" in
2141 yes) ;;
2142 no) build_warnings="-w";;
2143 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2144 build_warnings="${build_warnings} ${t}";;
2145 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2146 build_warnings="${t} ${build_warnings}";;
2147 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2148 esac
2149 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2150 echo "Setting warning flags = $build_warnings" 6>&1
2153 WARN_CFLAGS=""
2154 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2155 WARN_CFLAGS="${build_warnings}"
2163 if test -z "$target" ; then
2164 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2166 if test -z "$host" ; then
2167 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2170 # Extract the first word of "gcc", so it can be a program name with args.
2171 set dummy gcc; ac_word=$2
2172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2173 echo "configure:2174: checking for $ac_word" >&5
2174 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2176 else
2177 if test -n "$CC"; then
2178 ac_cv_prog_CC="$CC" # Let the user override the test.
2179 else
2180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2181 ac_dummy="$PATH"
2182 for ac_dir in $ac_dummy; do
2183 test -z "$ac_dir" && ac_dir=.
2184 if test -f $ac_dir/$ac_word; then
2185 ac_cv_prog_CC="gcc"
2186 break
2188 done
2189 IFS="$ac_save_ifs"
2192 CC="$ac_cv_prog_CC"
2193 if test -n "$CC"; then
2194 echo "$ac_t""$CC" 1>&6
2195 else
2196 echo "$ac_t""no" 1>&6
2199 if test -z "$CC"; then
2200 # Extract the first word of "cc", so it can be a program name with args.
2201 set dummy cc; ac_word=$2
2202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2203 echo "configure:2204: checking for $ac_word" >&5
2204 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2206 else
2207 if test -n "$CC"; then
2208 ac_cv_prog_CC="$CC" # Let the user override the test.
2209 else
2210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2211 ac_prog_rejected=no
2212 ac_dummy="$PATH"
2213 for ac_dir in $ac_dummy; do
2214 test -z "$ac_dir" && ac_dir=.
2215 if test -f $ac_dir/$ac_word; then
2216 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2217 ac_prog_rejected=yes
2218 continue
2220 ac_cv_prog_CC="cc"
2221 break
2223 done
2224 IFS="$ac_save_ifs"
2225 if test $ac_prog_rejected = yes; then
2226 # We found a bogon in the path, so make sure we never use it.
2227 set dummy $ac_cv_prog_CC
2228 shift
2229 if test $# -gt 0; then
2230 # We chose a different compiler from the bogus one.
2231 # However, it has the same basename, so the bogon will be chosen
2232 # first if we set CC to just the basename; use the full file name.
2233 shift
2234 set dummy "$ac_dir/$ac_word" "$@"
2235 shift
2236 ac_cv_prog_CC="$@"
2241 CC="$ac_cv_prog_CC"
2242 if test -n "$CC"; then
2243 echo "$ac_t""$CC" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2248 if test -z "$CC"; then
2249 case "`uname -s`" in
2250 *win32* | *WIN32*)
2251 # Extract the first word of "cl", so it can be a program name with args.
2252 set dummy cl; ac_word=$2
2253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_word" >&5
2255 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2257 else
2258 if test -n "$CC"; then
2259 ac_cv_prog_CC="$CC" # Let the user override the test.
2260 else
2261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2262 ac_dummy="$PATH"
2263 for ac_dir in $ac_dummy; do
2264 test -z "$ac_dir" && ac_dir=.
2265 if test -f $ac_dir/$ac_word; then
2266 ac_cv_prog_CC="cl"
2267 break
2269 done
2270 IFS="$ac_save_ifs"
2273 CC="$ac_cv_prog_CC"
2274 if test -n "$CC"; then
2275 echo "$ac_t""$CC" 1>&6
2276 else
2277 echo "$ac_t""no" 1>&6
2280 esac
2282 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2285 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2286 echo "configure:2287: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2288 ac_ext=c
2289 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2290 ac_cpp='$CPP $CPPFLAGS'
2291 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2292 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2293 cross_compiling=$ac_cv_prog_cc_cross
2295 cat > conftest.$ac_ext << EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2300 main(){return(0);}
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2303 ac_cv_prog_cc_works=yes
2304 # If we can't run a trivial program, we are probably using a cross compiler.
2305 if (./conftest; exit) 2>/dev/null; then
2306 ac_cv_prog_cc_cross=no
2307 else
2308 ac_cv_prog_cc_cross=yes
2310 else
2311 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2313 ac_cv_prog_cc_works=no
2315 rm -fr conftest*
2316 ac_ext=c
2317 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2320 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2321 cross_compiling=$ac_cv_prog_cc_cross
2323 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2324 if test $ac_cv_prog_cc_works = no; then
2325 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2327 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2328 echo "configure:2329: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2329 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2330 cross_compiling=$ac_cv_prog_cc_cross
2332 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2333 echo "configure:2334: checking whether we are using GNU C" >&5
2334 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2336 else
2337 cat > conftest.c <<EOF
2338 #ifdef __GNUC__
2339 yes;
2340 #endif
2342 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2343 ac_cv_prog_gcc=yes
2344 else
2345 ac_cv_prog_gcc=no
2349 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2351 if test $ac_cv_prog_gcc = yes; then
2352 GCC=yes
2353 else
2354 GCC=
2357 ac_test_CFLAGS="${CFLAGS+set}"
2358 ac_save_CFLAGS="$CFLAGS"
2359 CFLAGS=
2360 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2361 echo "configure:2362: checking whether ${CC-cc} accepts -g" >&5
2362 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2364 else
2365 echo 'void f(){}' > conftest.c
2366 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2367 ac_cv_prog_cc_g=yes
2368 else
2369 ac_cv_prog_cc_g=no
2371 rm -f conftest*
2375 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2376 if test "$ac_test_CFLAGS" = set; then
2377 CFLAGS="$ac_save_CFLAGS"
2378 elif test $ac_cv_prog_cc_g = yes; then
2379 if test "$GCC" = yes; then
2380 CFLAGS="-g -O2"
2381 else
2382 CFLAGS="-g"
2384 else
2385 if test "$GCC" = yes; then
2386 CFLAGS="-O2"
2387 else
2388 CFLAGS=
2393 for ac_prog in 'bison -y' byacc
2395 # Extract the first word of "$ac_prog", so it can be a program name with args.
2396 set dummy $ac_prog; ac_word=$2
2397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_word" >&5
2399 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2401 else
2402 if test -n "$YACC"; then
2403 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2404 else
2405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2406 ac_dummy="$PATH"
2407 for ac_dir in $ac_dummy; do
2408 test -z "$ac_dir" && ac_dir=.
2409 if test -f $ac_dir/$ac_word; then
2410 ac_cv_prog_YACC="$ac_prog"
2411 break
2413 done
2414 IFS="$ac_save_ifs"
2417 YACC="$ac_cv_prog_YACC"
2418 if test -n "$YACC"; then
2419 echo "$ac_t""$YACC" 1>&6
2420 else
2421 echo "$ac_t""no" 1>&6
2424 test -n "$YACC" && break
2425 done
2426 test -n "$YACC" || YACC="yacc"
2428 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2429 echo "configure:2430: checking how to run the C preprocessor" >&5
2430 # On Suns, sometimes $CPP names a directory.
2431 if test -n "$CPP" && test -d "$CPP"; then
2432 CPP=
2434 if test -z "$CPP"; then
2435 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2437 else
2438 # This must be in double quotes, not single quotes, because CPP may get
2439 # substituted into the Makefile and "${CC-cc}" will confuse make.
2440 CPP="${CC-cc} -E"
2441 # On the NeXT, cc -E runs the code through the compiler's parser,
2442 # not just through cpp.
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446 #include <assert.h>
2447 Syntax Error
2449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2450 { (eval echo configure:2451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2452 if test -z "$ac_err"; then
2454 else
2455 echo "$ac_err" >&5
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2458 rm -rf conftest*
2459 CPP="${CC-cc} -E -traditional-cpp"
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2463 #include <assert.h>
2464 Syntax Error
2466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2467 { (eval echo configure:2468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2469 if test -z "$ac_err"; then
2471 else
2472 echo "$ac_err" >&5
2473 echo "configure: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2475 rm -rf conftest*
2476 CPP="${CC-cc} -nologo -E"
2477 cat > conftest.$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480 #include <assert.h>
2481 Syntax Error
2483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2484 { (eval echo configure:2485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2486 if test -z "$ac_err"; then
2488 else
2489 echo "$ac_err" >&5
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 rm -rf conftest*
2493 CPP=/lib/cpp
2495 rm -f conftest*
2497 rm -f conftest*
2499 rm -f conftest*
2500 ac_cv_prog_CPP="$CPP"
2502 CPP="$ac_cv_prog_CPP"
2503 else
2504 ac_cv_prog_CPP="$CPP"
2506 echo "$ac_t""$CPP" 1>&6
2508 missing_dir=`cd $ac_aux_dir && pwd`
2509 for ac_prog in flex lex
2511 # Extract the first word of "$ac_prog", so it can be a program name with args.
2512 set dummy $ac_prog; ac_word=$2
2513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2514 echo "configure:2515: checking for $ac_word" >&5
2515 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2517 else
2518 if test -n "$LEX"; then
2519 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2520 else
2521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2522 ac_dummy="$PATH"
2523 for ac_dir in $ac_dummy; do
2524 test -z "$ac_dir" && ac_dir=.
2525 if test -f $ac_dir/$ac_word; then
2526 ac_cv_prog_LEX="$ac_prog"
2527 break
2529 done
2530 IFS="$ac_save_ifs"
2533 LEX="$ac_cv_prog_LEX"
2534 if test -n "$LEX"; then
2535 echo "$ac_t""$LEX" 1>&6
2536 else
2537 echo "$ac_t""no" 1>&6
2540 test -n "$LEX" && break
2541 done
2542 test -n "$LEX" || LEX="$missing_dir/missing flex"
2544 # Extract the first word of "flex", so it can be a program name with args.
2545 set dummy flex; ac_word=$2
2546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2547 echo "configure:2548: checking for $ac_word" >&5
2548 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2550 else
2551 if test -n "$LEX"; then
2552 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2553 else
2554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2555 ac_dummy="$PATH"
2556 for ac_dir in $ac_dummy; do
2557 test -z "$ac_dir" && ac_dir=.
2558 if test -f $ac_dir/$ac_word; then
2559 ac_cv_prog_LEX="flex"
2560 break
2562 done
2563 IFS="$ac_save_ifs"
2564 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2567 LEX="$ac_cv_prog_LEX"
2568 if test -n "$LEX"; then
2569 echo "$ac_t""$LEX" 1>&6
2570 else
2571 echo "$ac_t""no" 1>&6
2574 if test -z "$LEXLIB"
2575 then
2576 case "$LEX" in
2577 flex*) ac_lib=fl ;;
2578 *) ac_lib=l ;;
2579 esac
2580 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2581 echo "configure:2582: checking for yywrap in -l$ac_lib" >&5
2582 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2585 else
2586 ac_save_LIBS="$LIBS"
2587 LIBS="-l$ac_lib $LIBS"
2588 cat > conftest.$ac_ext <<EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2591 /* Override any gcc2 internal prototype to avoid an error. */
2592 /* We use char because int might match the return type of a gcc2
2593 builtin and then its argument prototype would still apply. */
2594 char yywrap();
2596 int main() {
2597 yywrap()
2598 ; return 0; }
2600 if { (eval echo configure:2601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2601 rm -rf conftest*
2602 eval "ac_cv_lib_$ac_lib_var=yes"
2603 else
2604 echo "configure: failed program was:" >&5
2605 cat conftest.$ac_ext >&5
2606 rm -rf conftest*
2607 eval "ac_cv_lib_$ac_lib_var=no"
2609 rm -f conftest*
2610 LIBS="$ac_save_LIBS"
2613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2614 echo "$ac_t""yes" 1>&6
2615 LEXLIB="-l$ac_lib"
2616 else
2617 echo "$ac_t""no" 1>&6
2622 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2623 echo "configure:2624: checking lex output file root" >&5
2624 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2626 else
2627 # The minimal lex program is just a single line: %%. But some broken lexes
2628 # (Solaris, I think it was) want two %% lines, so accommodate them.
2629 echo '%%
2630 %%' | $LEX
2631 if test -f lex.yy.c; then
2632 ac_cv_prog_lex_root=lex.yy
2633 elif test -f lexyy.c; then
2634 ac_cv_prog_lex_root=lexyy
2635 else
2636 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2640 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2641 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2643 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2644 echo "configure:2645: checking whether yytext is a pointer" >&5
2645 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2647 else
2648 # POSIX says lex can declare yytext either as a pointer or an array; the
2649 # default is implementation-dependent. Figure out which it is, since
2650 # not all implementations provide the %pointer and %array declarations.
2651 ac_cv_prog_lex_yytext_pointer=no
2652 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2653 ac_save_LIBS="$LIBS"
2654 LIBS="$LIBS $LEXLIB"
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2658 `cat $LEX_OUTPUT_ROOT.c`
2659 int main() {
2661 ; return 0; }
2663 if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2664 rm -rf conftest*
2665 ac_cv_prog_lex_yytext_pointer=yes
2666 else
2667 echo "configure: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2670 rm -f conftest*
2671 LIBS="$ac_save_LIBS"
2672 rm -f "${LEX_OUTPUT_ROOT}.c"
2676 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2677 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2678 cat >> confdefs.h <<\EOF
2679 #define YYTEXT_POINTER 1
2685 ALL_LINGUAS=
2686 # Extract the first word of "ranlib", so it can be a program name with args.
2687 set dummy ranlib; ac_word=$2
2688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2689 echo "configure:2690: checking for $ac_word" >&5
2690 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2692 else
2693 if test -n "$RANLIB"; then
2694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2695 else
2696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2697 ac_dummy="$PATH"
2698 for ac_dir in $ac_dummy; do
2699 test -z "$ac_dir" && ac_dir=.
2700 if test -f $ac_dir/$ac_word; then
2701 ac_cv_prog_RANLIB="ranlib"
2702 break
2704 done
2705 IFS="$ac_save_ifs"
2706 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2709 RANLIB="$ac_cv_prog_RANLIB"
2710 if test -n "$RANLIB"; then
2711 echo "$ac_t""$RANLIB" 1>&6
2712 else
2713 echo "$ac_t""no" 1>&6
2716 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2717 echo "configure:2718: checking for ANSI C header files" >&5
2718 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2720 else
2721 cat > conftest.$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2724 #include <stdlib.h>
2725 #include <stdarg.h>
2726 #include <string.h>
2727 #include <float.h>
2729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2730 { (eval echo configure:2731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2732 if test -z "$ac_err"; then
2733 rm -rf conftest*
2734 ac_cv_header_stdc=yes
2735 else
2736 echo "$ac_err" >&5
2737 echo "configure: failed program was:" >&5
2738 cat conftest.$ac_ext >&5
2739 rm -rf conftest*
2740 ac_cv_header_stdc=no
2742 rm -f conftest*
2744 if test $ac_cv_header_stdc = yes; then
2745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2749 #include <string.h>
2751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2752 egrep "memchr" >/dev/null 2>&1; then
2754 else
2755 rm -rf conftest*
2756 ac_cv_header_stdc=no
2758 rm -f conftest*
2762 if test $ac_cv_header_stdc = yes; then
2763 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2764 cat > conftest.$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2767 #include <stdlib.h>
2769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2770 egrep "free" >/dev/null 2>&1; then
2772 else
2773 rm -rf conftest*
2774 ac_cv_header_stdc=no
2776 rm -f conftest*
2780 if test $ac_cv_header_stdc = yes; then
2781 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2782 if test "$cross_compiling" = yes; then
2784 else
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2788 #include <ctype.h>
2789 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2790 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2791 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2792 int main () { int i; for (i = 0; i < 256; i++)
2793 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2794 exit (0); }
2797 if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2798 then
2800 else
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2803 rm -fr conftest*
2804 ac_cv_header_stdc=no
2806 rm -fr conftest*
2812 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2813 if test $ac_cv_header_stdc = yes; then
2814 cat >> confdefs.h <<\EOF
2815 #define STDC_HEADERS 1
2820 echo $ac_n "checking for working const""... $ac_c" 1>&6
2821 echo "configure:2822: checking for working const" >&5
2822 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2824 else
2825 cat > conftest.$ac_ext <<EOF
2826 #line 2827 "configure"
2827 #include "confdefs.h"
2829 int main() {
2831 /* Ultrix mips cc rejects this. */
2832 typedef int charset[2]; const charset x;
2833 /* SunOS 4.1.1 cc rejects this. */
2834 char const *const *ccp;
2835 char **p;
2836 /* NEC SVR4.0.2 mips cc rejects this. */
2837 struct point {int x, y;};
2838 static struct point const zero = {0,0};
2839 /* AIX XL C 1.02.0.0 rejects this.
2840 It does not let you subtract one const X* pointer from another in an arm
2841 of an if-expression whose if-part is not a constant expression */
2842 const char *g = "string";
2843 ccp = &g + (g ? g-g : 0);
2844 /* HPUX 7.0 cc rejects these. */
2845 ++ccp;
2846 p = (char**) ccp;
2847 ccp = (char const *const *) p;
2848 { /* SCO 3.2v4 cc rejects this. */
2849 char *t;
2850 char const *s = 0 ? (char *) 0 : (char const *) 0;
2852 *t++ = 0;
2854 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2855 int x[] = {25, 17};
2856 const int *foo = &x[0];
2857 ++foo;
2859 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2860 typedef const int *iptr;
2861 iptr p = 0;
2862 ++p;
2864 { /* AIX XL C 1.02.0.0 rejects this saying
2865 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2866 struct s { int j; const int *ap[3]; };
2867 struct s *b; b->j = 5;
2869 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2870 const int foo = 10;
2873 ; return 0; }
2875 if { (eval echo configure:2876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2876 rm -rf conftest*
2877 ac_cv_c_const=yes
2878 else
2879 echo "configure: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2881 rm -rf conftest*
2882 ac_cv_c_const=no
2884 rm -f conftest*
2887 echo "$ac_t""$ac_cv_c_const" 1>&6
2888 if test $ac_cv_c_const = no; then
2889 cat >> confdefs.h <<\EOF
2890 #define const
2895 echo $ac_n "checking for inline""... $ac_c" 1>&6
2896 echo "configure:2897: checking for inline" >&5
2897 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2898 echo $ac_n "(cached) $ac_c" 1>&6
2899 else
2900 ac_cv_c_inline=no
2901 for ac_kw in inline __inline__ __inline; do
2902 cat > conftest.$ac_ext <<EOF
2903 #line 2904 "configure"
2904 #include "confdefs.h"
2906 int main() {
2907 } $ac_kw foo() {
2908 ; return 0; }
2910 if { (eval echo configure:2911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2911 rm -rf conftest*
2912 ac_cv_c_inline=$ac_kw; break
2913 else
2914 echo "configure: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2917 rm -f conftest*
2918 done
2922 echo "$ac_t""$ac_cv_c_inline" 1>&6
2923 case "$ac_cv_c_inline" in
2924 inline | yes) ;;
2925 no) cat >> confdefs.h <<\EOF
2926 #define inline
2929 *) cat >> confdefs.h <<EOF
2930 #define inline $ac_cv_c_inline
2933 esac
2935 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2936 echo "configure:2937: checking for off_t" >&5
2937 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2939 else
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2943 #include <sys/types.h>
2944 #if STDC_HEADERS
2945 #include <stdlib.h>
2946 #include <stddef.h>
2947 #endif
2949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2950 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2951 rm -rf conftest*
2952 ac_cv_type_off_t=yes
2953 else
2954 rm -rf conftest*
2955 ac_cv_type_off_t=no
2957 rm -f conftest*
2960 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2961 if test $ac_cv_type_off_t = no; then
2962 cat >> confdefs.h <<\EOF
2963 #define off_t long
2968 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2969 echo "configure:2970: checking for size_t" >&5
2970 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2972 else
2973 cat > conftest.$ac_ext <<EOF
2974 #line 2975 "configure"
2975 #include "confdefs.h"
2976 #include <sys/types.h>
2977 #if STDC_HEADERS
2978 #include <stdlib.h>
2979 #include <stddef.h>
2980 #endif
2982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2983 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2984 rm -rf conftest*
2985 ac_cv_type_size_t=yes
2986 else
2987 rm -rf conftest*
2988 ac_cv_type_size_t=no
2990 rm -f conftest*
2993 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2994 if test $ac_cv_type_size_t = no; then
2995 cat >> confdefs.h <<\EOF
2996 #define size_t unsigned
3001 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3002 # for constant arguments. Useless!
3003 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3004 echo "configure:3005: checking for working alloca.h" >&5
3005 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3007 else
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3011 #include <alloca.h>
3012 int main() {
3013 char *p = alloca(2 * sizeof(int));
3014 ; return 0; }
3016 if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3017 rm -rf conftest*
3018 ac_cv_header_alloca_h=yes
3019 else
3020 echo "configure: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3022 rm -rf conftest*
3023 ac_cv_header_alloca_h=no
3025 rm -f conftest*
3028 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3029 if test $ac_cv_header_alloca_h = yes; then
3030 cat >> confdefs.h <<\EOF
3031 #define HAVE_ALLOCA_H 1
3036 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3037 echo "configure:3038: checking for alloca" >&5
3038 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3039 echo $ac_n "(cached) $ac_c" 1>&6
3040 else
3041 cat > conftest.$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3045 #ifdef __GNUC__
3046 # define alloca __builtin_alloca
3047 #else
3048 # ifdef _MSC_VER
3049 # include <malloc.h>
3050 # define alloca _alloca
3051 # else
3052 # if HAVE_ALLOCA_H
3053 # include <alloca.h>
3054 # else
3055 # ifdef _AIX
3056 #pragma alloca
3057 # else
3058 # ifndef alloca /* predefined by HP cc +Olibcalls */
3059 char *alloca ();
3060 # endif
3061 # endif
3062 # endif
3063 # endif
3064 #endif
3066 int main() {
3067 char *p = (char *) alloca(1);
3068 ; return 0; }
3070 if { (eval echo configure:3071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3071 rm -rf conftest*
3072 ac_cv_func_alloca_works=yes
3073 else
3074 echo "configure: failed program was:" >&5
3075 cat conftest.$ac_ext >&5
3076 rm -rf conftest*
3077 ac_cv_func_alloca_works=no
3079 rm -f conftest*
3082 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3083 if test $ac_cv_func_alloca_works = yes; then
3084 cat >> confdefs.h <<\EOF
3085 #define HAVE_ALLOCA 1
3090 if test $ac_cv_func_alloca_works = no; then
3091 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3092 # that cause trouble. Some versions do not even contain alloca or
3093 # contain a buggy version. If you still want to use their alloca,
3094 # use ar to extract alloca.o from them instead of compiling alloca.c.
3095 ALLOCA=alloca.${ac_objext}
3096 cat >> confdefs.h <<\EOF
3097 #define C_ALLOCA 1
3101 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3102 echo "configure:3103: checking whether alloca needs Cray hooks" >&5
3103 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3105 else
3106 cat > conftest.$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3109 #if defined(CRAY) && ! defined(CRAY2)
3110 webecray
3111 #else
3112 wenotbecray
3113 #endif
3116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3117 egrep "webecray" >/dev/null 2>&1; then
3118 rm -rf conftest*
3119 ac_cv_os_cray=yes
3120 else
3121 rm -rf conftest*
3122 ac_cv_os_cray=no
3124 rm -f conftest*
3128 echo "$ac_t""$ac_cv_os_cray" 1>&6
3129 if test $ac_cv_os_cray = yes; then
3130 for ac_func in _getb67 GETB67 getb67; do
3131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3132 echo "configure:3133: checking for $ac_func" >&5
3133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3135 else
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 /* System header to define __stub macros and hopefully few prototypes,
3140 which can conflict with char $ac_func(); below. */
3141 #include <assert.h>
3142 /* Override any gcc2 internal prototype to avoid an error. */
3143 /* We use char because int might match the return type of a gcc2
3144 builtin and then its argument prototype would still apply. */
3145 char $ac_func();
3147 int main() {
3149 /* The GNU C library defines this for functions which it implements
3150 to always fail with ENOSYS. Some functions are actually named
3151 something starting with __ and the normal name is an alias. */
3152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3153 choke me
3154 #else
3155 $ac_func();
3156 #endif
3158 ; return 0; }
3160 if { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3161 rm -rf conftest*
3162 eval "ac_cv_func_$ac_func=yes"
3163 else
3164 echo "configure: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3166 rm -rf conftest*
3167 eval "ac_cv_func_$ac_func=no"
3169 rm -f conftest*
3172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3173 echo "$ac_t""yes" 1>&6
3174 cat >> confdefs.h <<EOF
3175 #define CRAY_STACKSEG_END $ac_func
3178 break
3179 else
3180 echo "$ac_t""no" 1>&6
3183 done
3186 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3187 echo "configure:3188: checking stack direction for C alloca" >&5
3188 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3190 else
3191 if test "$cross_compiling" = yes; then
3192 ac_cv_c_stack_direction=0
3193 else
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 find_stack_direction ()
3199 static char *addr = 0;
3200 auto char dummy;
3201 if (addr == 0)
3203 addr = &dummy;
3204 return find_stack_direction ();
3206 else
3207 return (&dummy > addr) ? 1 : -1;
3209 main ()
3211 exit (find_stack_direction() < 0);
3214 if { (eval echo configure:3215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3215 then
3216 ac_cv_c_stack_direction=1
3217 else
3218 echo "configure: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3220 rm -fr conftest*
3221 ac_cv_c_stack_direction=-1
3223 rm -fr conftest*
3228 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3229 cat >> confdefs.h <<EOF
3230 #define STACK_DIRECTION $ac_cv_c_stack_direction
3235 for ac_hdr in unistd.h
3237 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3238 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3239 echo "configure:3240: checking for $ac_hdr" >&5
3240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3242 else
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 #include <$ac_hdr>
3248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3249 { (eval echo configure:3250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3251 if test -z "$ac_err"; then
3252 rm -rf conftest*
3253 eval "ac_cv_header_$ac_safe=yes"
3254 else
3255 echo "$ac_err" >&5
3256 echo "configure: failed program was:" >&5
3257 cat conftest.$ac_ext >&5
3258 rm -rf conftest*
3259 eval "ac_cv_header_$ac_safe=no"
3261 rm -f conftest*
3263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3264 echo "$ac_t""yes" 1>&6
3265 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3266 cat >> confdefs.h <<EOF
3267 #define $ac_tr_hdr 1
3270 else
3271 echo "$ac_t""no" 1>&6
3273 done
3275 for ac_func in getpagesize
3277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3278 echo "configure:3279: checking for $ac_func" >&5
3279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3281 else
3282 cat > conftest.$ac_ext <<EOF
3283 #line 3284 "configure"
3284 #include "confdefs.h"
3285 /* System header to define __stub macros and hopefully few prototypes,
3286 which can conflict with char $ac_func(); below. */
3287 #include <assert.h>
3288 /* Override any gcc2 internal prototype to avoid an error. */
3289 /* We use char because int might match the return type of a gcc2
3290 builtin and then its argument prototype would still apply. */
3291 char $ac_func();
3293 int main() {
3295 /* The GNU C library defines this for functions which it implements
3296 to always fail with ENOSYS. Some functions are actually named
3297 something starting with __ and the normal name is an alias. */
3298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3299 choke me
3300 #else
3301 $ac_func();
3302 #endif
3304 ; return 0; }
3306 if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3307 rm -rf conftest*
3308 eval "ac_cv_func_$ac_func=yes"
3309 else
3310 echo "configure: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3312 rm -rf conftest*
3313 eval "ac_cv_func_$ac_func=no"
3315 rm -f conftest*
3318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3319 echo "$ac_t""yes" 1>&6
3320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3321 cat >> confdefs.h <<EOF
3322 #define $ac_tr_func 1
3325 else
3326 echo "$ac_t""no" 1>&6
3328 done
3330 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3331 echo "configure:3332: checking for working mmap" >&5
3332 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3333 echo $ac_n "(cached) $ac_c" 1>&6
3334 else
3335 if test "$cross_compiling" = yes; then
3336 ac_cv_func_mmap_fixed_mapped=no
3337 else
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3342 /* Thanks to Mike Haertel and Jim Avera for this test.
3343 Here is a matrix of mmap possibilities:
3344 mmap private not fixed
3345 mmap private fixed at somewhere currently unmapped
3346 mmap private fixed at somewhere already mapped
3347 mmap shared not fixed
3348 mmap shared fixed at somewhere currently unmapped
3349 mmap shared fixed at somewhere already mapped
3350 For private mappings, we should verify that changes cannot be read()
3351 back from the file, nor mmap's back from the file at a different
3352 address. (There have been systems where private was not correctly
3353 implemented like the infamous i386 svr4.0, and systems where the
3354 VM page cache was not coherent with the filesystem buffer cache
3355 like early versions of FreeBSD and possibly contemporary NetBSD.)
3356 For shared mappings, we should conversely verify that changes get
3357 propogated back to all the places they're supposed to be.
3359 Grep wants private fixed already mapped.
3360 The main things grep needs to know about mmap are:
3361 * does it exist and is it safe to write into the mmap'd area
3362 * how to use it (BSD variants) */
3363 #include <sys/types.h>
3364 #include <fcntl.h>
3365 #include <sys/mman.h>
3367 /* This mess was copied from the GNU getpagesize.h. */
3368 #ifndef HAVE_GETPAGESIZE
3369 # ifdef HAVE_UNISTD_H
3370 # include <unistd.h>
3371 # endif
3373 /* Assume that all systems that can run configure have sys/param.h. */
3374 # ifndef HAVE_SYS_PARAM_H
3375 # define HAVE_SYS_PARAM_H 1
3376 # endif
3378 # ifdef _SC_PAGESIZE
3379 # define getpagesize() sysconf(_SC_PAGESIZE)
3380 # else /* no _SC_PAGESIZE */
3381 # ifdef HAVE_SYS_PARAM_H
3382 # include <sys/param.h>
3383 # ifdef EXEC_PAGESIZE
3384 # define getpagesize() EXEC_PAGESIZE
3385 # else /* no EXEC_PAGESIZE */
3386 # ifdef NBPG
3387 # define getpagesize() NBPG * CLSIZE
3388 # ifndef CLSIZE
3389 # define CLSIZE 1
3390 # endif /* no CLSIZE */
3391 # else /* no NBPG */
3392 # ifdef NBPC
3393 # define getpagesize() NBPC
3394 # else /* no NBPC */
3395 # ifdef PAGESIZE
3396 # define getpagesize() PAGESIZE
3397 # endif /* PAGESIZE */
3398 # endif /* no NBPC */
3399 # endif /* no NBPG */
3400 # endif /* no EXEC_PAGESIZE */
3401 # else /* no HAVE_SYS_PARAM_H */
3402 # define getpagesize() 8192 /* punt totally */
3403 # endif /* no HAVE_SYS_PARAM_H */
3404 # endif /* no _SC_PAGESIZE */
3406 #endif /* no HAVE_GETPAGESIZE */
3408 #ifdef __cplusplus
3409 extern "C" { void *malloc(unsigned); }
3410 #else
3411 char *malloc();
3412 #endif
3415 main()
3417 char *data, *data2, *data3;
3418 int i, pagesize;
3419 int fd;
3421 pagesize = getpagesize();
3424 * First, make a file with some known garbage in it.
3426 data = malloc(pagesize);
3427 if (!data)
3428 exit(1);
3429 for (i = 0; i < pagesize; ++i)
3430 *(data + i) = rand();
3431 umask(0);
3432 fd = creat("conftestmmap", 0600);
3433 if (fd < 0)
3434 exit(1);
3435 if (write(fd, data, pagesize) != pagesize)
3436 exit(1);
3437 close(fd);
3440 * Next, try to mmap the file at a fixed address which
3441 * already has something else allocated at it. If we can,
3442 * also make sure that we see the same garbage.
3444 fd = open("conftestmmap", O_RDWR);
3445 if (fd < 0)
3446 exit(1);
3447 data2 = malloc(2 * pagesize);
3448 if (!data2)
3449 exit(1);
3450 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3451 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3452 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3453 exit(1);
3454 for (i = 0; i < pagesize; ++i)
3455 if (*(data + i) != *(data2 + i))
3456 exit(1);
3459 * Finally, make sure that changes to the mapped area
3460 * do not percolate back to the file as seen by read().
3461 * (This is a bug on some variants of i386 svr4.0.)
3463 for (i = 0; i < pagesize; ++i)
3464 *(data2 + i) = *(data2 + i) + 1;
3465 data3 = malloc(pagesize);
3466 if (!data3)
3467 exit(1);
3468 if (read(fd, data3, pagesize) != pagesize)
3469 exit(1);
3470 for (i = 0; i < pagesize; ++i)
3471 if (*(data + i) != *(data3 + i))
3472 exit(1);
3473 close(fd);
3474 unlink("conftestmmap");
3475 exit(0);
3479 if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3480 then
3481 ac_cv_func_mmap_fixed_mapped=yes
3482 else
3483 echo "configure: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3485 rm -fr conftest*
3486 ac_cv_func_mmap_fixed_mapped=no
3488 rm -fr conftest*
3493 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3494 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3495 cat >> confdefs.h <<\EOF
3496 #define HAVE_MMAP 1
3502 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3503 unistd.h values.h sys/param.h
3505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3507 echo "configure:3508: checking for $ac_hdr" >&5
3508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3510 else
3511 cat > conftest.$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3514 #include <$ac_hdr>
3516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3517 { (eval echo configure:3518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3519 if test -z "$ac_err"; then
3520 rm -rf conftest*
3521 eval "ac_cv_header_$ac_safe=yes"
3522 else
3523 echo "$ac_err" >&5
3524 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3526 rm -rf conftest*
3527 eval "ac_cv_header_$ac_safe=no"
3529 rm -f conftest*
3531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3532 echo "$ac_t""yes" 1>&6
3533 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3534 cat >> confdefs.h <<EOF
3535 #define $ac_tr_hdr 1
3538 else
3539 echo "$ac_t""no" 1>&6
3541 done
3543 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3544 __argz_count __argz_stringify __argz_next
3546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3547 echo "configure:3548: checking for $ac_func" >&5
3548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3550 else
3551 cat > conftest.$ac_ext <<EOF
3552 #line 3553 "configure"
3553 #include "confdefs.h"
3554 /* System header to define __stub macros and hopefully few prototypes,
3555 which can conflict with char $ac_func(); below. */
3556 #include <assert.h>
3557 /* Override any gcc2 internal prototype to avoid an error. */
3558 /* We use char because int might match the return type of a gcc2
3559 builtin and then its argument prototype would still apply. */
3560 char $ac_func();
3562 int main() {
3564 /* The GNU C library defines this for functions which it implements
3565 to always fail with ENOSYS. Some functions are actually named
3566 something starting with __ and the normal name is an alias. */
3567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3568 choke me
3569 #else
3570 $ac_func();
3571 #endif
3573 ; return 0; }
3575 if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3576 rm -rf conftest*
3577 eval "ac_cv_func_$ac_func=yes"
3578 else
3579 echo "configure: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3581 rm -rf conftest*
3582 eval "ac_cv_func_$ac_func=no"
3584 rm -f conftest*
3587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3588 echo "$ac_t""yes" 1>&6
3589 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3590 cat >> confdefs.h <<EOF
3591 #define $ac_tr_func 1
3594 else
3595 echo "$ac_t""no" 1>&6
3597 done
3600 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3601 for ac_func in stpcpy
3603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3604 echo "configure:3605: checking for $ac_func" >&5
3605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3607 else
3608 cat > conftest.$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3611 /* System header to define __stub macros and hopefully few prototypes,
3612 which can conflict with char $ac_func(); below. */
3613 #include <assert.h>
3614 /* Override any gcc2 internal prototype to avoid an error. */
3615 /* We use char because int might match the return type of a gcc2
3616 builtin and then its argument prototype would still apply. */
3617 char $ac_func();
3619 int main() {
3621 /* The GNU C library defines this for functions which it implements
3622 to always fail with ENOSYS. Some functions are actually named
3623 something starting with __ and the normal name is an alias. */
3624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3625 choke me
3626 #else
3627 $ac_func();
3628 #endif
3630 ; return 0; }
3632 if { (eval echo configure:3633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3633 rm -rf conftest*
3634 eval "ac_cv_func_$ac_func=yes"
3635 else
3636 echo "configure: failed program was:" >&5
3637 cat conftest.$ac_ext >&5
3638 rm -rf conftest*
3639 eval "ac_cv_func_$ac_func=no"
3641 rm -f conftest*
3644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3645 echo "$ac_t""yes" 1>&6
3646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3647 cat >> confdefs.h <<EOF
3648 #define $ac_tr_func 1
3651 else
3652 echo "$ac_t""no" 1>&6
3654 done
3657 if test "${ac_cv_func_stpcpy}" = "yes"; then
3658 cat >> confdefs.h <<\EOF
3659 #define HAVE_STPCPY 1
3664 if test $ac_cv_header_locale_h = yes; then
3665 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3666 echo "configure:3667: checking for LC_MESSAGES" >&5
3667 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3669 else
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3673 #include <locale.h>
3674 int main() {
3675 return LC_MESSAGES
3676 ; return 0; }
3678 if { (eval echo configure:3679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3679 rm -rf conftest*
3680 am_cv_val_LC_MESSAGES=yes
3681 else
3682 echo "configure: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3684 rm -rf conftest*
3685 am_cv_val_LC_MESSAGES=no
3687 rm -f conftest*
3690 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3691 if test $am_cv_val_LC_MESSAGES = yes; then
3692 cat >> confdefs.h <<\EOF
3693 #define HAVE_LC_MESSAGES 1
3698 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3699 echo "configure:3700: checking whether NLS is requested" >&5
3700 # Check whether --enable-nls or --disable-nls was given.
3701 if test "${enable_nls+set}" = set; then
3702 enableval="$enable_nls"
3703 USE_NLS=$enableval
3704 else
3705 USE_NLS=yes
3708 echo "$ac_t""$USE_NLS" 1>&6
3711 USE_INCLUDED_LIBINTL=no
3713 if test "$USE_NLS" = "yes"; then
3714 cat >> confdefs.h <<\EOF
3715 #define ENABLE_NLS 1
3718 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3719 echo "configure:3720: checking whether included gettext is requested" >&5
3720 # Check whether --with-included-gettext or --without-included-gettext was given.
3721 if test "${with_included_gettext+set}" = set; then
3722 withval="$with_included_gettext"
3723 nls_cv_force_use_gnu_gettext=$withval
3724 else
3725 nls_cv_force_use_gnu_gettext=no
3728 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3730 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3731 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3732 nls_cv_header_intl=
3733 nls_cv_header_libgt=
3734 CATOBJEXT=NONE
3736 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3737 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3738 echo "configure:3739: checking for libintl.h" >&5
3739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3741 else
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 #include <libintl.h>
3747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3748 { (eval echo configure:3749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3750 if test -z "$ac_err"; then
3751 rm -rf conftest*
3752 eval "ac_cv_header_$ac_safe=yes"
3753 else
3754 echo "$ac_err" >&5
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3757 rm -rf conftest*
3758 eval "ac_cv_header_$ac_safe=no"
3760 rm -f conftest*
3762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3763 echo "$ac_t""yes" 1>&6
3764 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3765 echo "configure:3766: checking for gettext in libc" >&5
3766 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3768 else
3769 cat > conftest.$ac_ext <<EOF
3770 #line 3771 "configure"
3771 #include "confdefs.h"
3772 #include <libintl.h>
3773 int main() {
3774 return (int) gettext ("")
3775 ; return 0; }
3777 if { (eval echo configure:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3778 rm -rf conftest*
3779 gt_cv_func_gettext_libc=yes
3780 else
3781 echo "configure: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3783 rm -rf conftest*
3784 gt_cv_func_gettext_libc=no
3786 rm -f conftest*
3789 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3791 if test "$gt_cv_func_gettext_libc" != "yes"; then
3792 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3793 echo "configure:3794: checking for bindtextdomain in -lintl" >&5
3794 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3797 else
3798 ac_save_LIBS="$LIBS"
3799 LIBS="-lintl $LIBS"
3800 cat > conftest.$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 /* Override any gcc2 internal prototype to avoid an error. */
3804 /* We use char because int might match the return type of a gcc2
3805 builtin and then its argument prototype would still apply. */
3806 char bindtextdomain();
3808 int main() {
3809 bindtextdomain()
3810 ; return 0; }
3812 if { (eval echo configure:3813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3813 rm -rf conftest*
3814 eval "ac_cv_lib_$ac_lib_var=yes"
3815 else
3816 echo "configure: failed program was:" >&5
3817 cat conftest.$ac_ext >&5
3818 rm -rf conftest*
3819 eval "ac_cv_lib_$ac_lib_var=no"
3821 rm -f conftest*
3822 LIBS="$ac_save_LIBS"
3825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3826 echo "$ac_t""yes" 1>&6
3827 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3828 echo "configure:3829: checking for gettext in libintl" >&5
3829 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3830 echo $ac_n "(cached) $ac_c" 1>&6
3831 else
3832 cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3836 int main() {
3837 return (int) gettext ("")
3838 ; return 0; }
3840 if { (eval echo configure:3841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3841 rm -rf conftest*
3842 gt_cv_func_gettext_libintl=yes
3843 else
3844 echo "configure: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3846 rm -rf conftest*
3847 gt_cv_func_gettext_libintl=no
3849 rm -f conftest*
3852 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3853 else
3854 echo "$ac_t""no" 1>&6
3859 if test "$gt_cv_func_gettext_libc" = "yes" \
3860 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3861 cat >> confdefs.h <<\EOF
3862 #define HAVE_GETTEXT 1
3865 # Extract the first word of "msgfmt", so it can be a program name with args.
3866 set dummy msgfmt; ac_word=$2
3867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3868 echo "configure:3869: checking for $ac_word" >&5
3869 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3871 else
3872 case "$MSGFMT" in
3874 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3878 for ac_dir in $PATH; do
3879 test -z "$ac_dir" && ac_dir=.
3880 if test -f $ac_dir/$ac_word; then
3881 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3882 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3883 break
3886 done
3887 IFS="$ac_save_ifs"
3888 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3890 esac
3892 MSGFMT="$ac_cv_path_MSGFMT"
3893 if test -n "$MSGFMT"; then
3894 echo "$ac_t""$MSGFMT" 1>&6
3895 else
3896 echo "$ac_t""no" 1>&6
3898 if test "$MSGFMT" != "no"; then
3899 for ac_func in dcgettext
3901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3902 echo "configure:3903: checking for $ac_func" >&5
3903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3905 else
3906 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3909 /* System header to define __stub macros and hopefully few prototypes,
3910 which can conflict with char $ac_func(); below. */
3911 #include <assert.h>
3912 /* Override any gcc2 internal prototype to avoid an error. */
3913 /* We use char because int might match the return type of a gcc2
3914 builtin and then its argument prototype would still apply. */
3915 char $ac_func();
3917 int main() {
3919 /* The GNU C library defines this for functions which it implements
3920 to always fail with ENOSYS. Some functions are actually named
3921 something starting with __ and the normal name is an alias. */
3922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3923 choke me
3924 #else
3925 $ac_func();
3926 #endif
3928 ; return 0; }
3930 if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3931 rm -rf conftest*
3932 eval "ac_cv_func_$ac_func=yes"
3933 else
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3936 rm -rf conftest*
3937 eval "ac_cv_func_$ac_func=no"
3939 rm -f conftest*
3942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3943 echo "$ac_t""yes" 1>&6
3944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3945 cat >> confdefs.h <<EOF
3946 #define $ac_tr_func 1
3949 else
3950 echo "$ac_t""no" 1>&6
3952 done
3954 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3955 set dummy gmsgfmt; ac_word=$2
3956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3957 echo "configure:3958: checking for $ac_word" >&5
3958 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3960 else
3961 case "$GMSGFMT" in
3963 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3965 ?:/*)
3966 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3970 ac_dummy="$PATH"
3971 for ac_dir in $ac_dummy; do
3972 test -z "$ac_dir" && ac_dir=.
3973 if test -f $ac_dir/$ac_word; then
3974 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3975 break
3977 done
3978 IFS="$ac_save_ifs"
3979 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3981 esac
3983 GMSGFMT="$ac_cv_path_GMSGFMT"
3984 if test -n "$GMSGFMT"; then
3985 echo "$ac_t""$GMSGFMT" 1>&6
3986 else
3987 echo "$ac_t""no" 1>&6
3990 # Extract the first word of "xgettext", so it can be a program name with args.
3991 set dummy xgettext; ac_word=$2
3992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3993 echo "configure:3994: checking for $ac_word" >&5
3994 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3996 else
3997 case "$XGETTEXT" in
3999 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4003 for ac_dir in $PATH; do
4004 test -z "$ac_dir" && ac_dir=.
4005 if test -f $ac_dir/$ac_word; then
4006 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4007 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4008 break
4011 done
4012 IFS="$ac_save_ifs"
4013 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4015 esac
4017 XGETTEXT="$ac_cv_path_XGETTEXT"
4018 if test -n "$XGETTEXT"; then
4019 echo "$ac_t""$XGETTEXT" 1>&6
4020 else
4021 echo "$ac_t""no" 1>&6
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4028 int main() {
4029 extern int _nl_msg_cat_cntr;
4030 return _nl_msg_cat_cntr
4031 ; return 0; }
4033 if { (eval echo configure:4034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4034 rm -rf conftest*
4035 CATOBJEXT=.gmo
4036 DATADIRNAME=share
4037 else
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4040 rm -rf conftest*
4041 CATOBJEXT=.mo
4042 DATADIRNAME=lib
4044 rm -f conftest*
4045 INSTOBJEXT=.mo
4049 else
4050 echo "$ac_t""no" 1>&6
4055 if test "$CATOBJEXT" = "NONE"; then
4056 nls_cv_use_gnu_gettext=yes
4060 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4061 INTLOBJS="\$(GETTOBJS)"
4062 # Extract the first word of "msgfmt", so it can be a program name with args.
4063 set dummy msgfmt; ac_word=$2
4064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4065 echo "configure:4066: checking for $ac_word" >&5
4066 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4068 else
4069 case "$MSGFMT" in
4071 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4075 for ac_dir in $PATH; do
4076 test -z "$ac_dir" && ac_dir=.
4077 if test -f $ac_dir/$ac_word; then
4078 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4079 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4080 break
4083 done
4084 IFS="$ac_save_ifs"
4085 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4087 esac
4089 MSGFMT="$ac_cv_path_MSGFMT"
4090 if test -n "$MSGFMT"; then
4091 echo "$ac_t""$MSGFMT" 1>&6
4092 else
4093 echo "$ac_t""no" 1>&6
4096 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4097 set dummy gmsgfmt; ac_word=$2
4098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4099 echo "configure:4100: checking for $ac_word" >&5
4100 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4102 else
4103 case "$GMSGFMT" in
4105 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4107 ?:/*)
4108 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4112 ac_dummy="$PATH"
4113 for ac_dir in $ac_dummy; do
4114 test -z "$ac_dir" && ac_dir=.
4115 if test -f $ac_dir/$ac_word; then
4116 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4117 break
4119 done
4120 IFS="$ac_save_ifs"
4121 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4123 esac
4125 GMSGFMT="$ac_cv_path_GMSGFMT"
4126 if test -n "$GMSGFMT"; then
4127 echo "$ac_t""$GMSGFMT" 1>&6
4128 else
4129 echo "$ac_t""no" 1>&6
4132 # Extract the first word of "xgettext", so it can be a program name with args.
4133 set dummy xgettext; ac_word=$2
4134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4135 echo "configure:4136: checking for $ac_word" >&5
4136 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4138 else
4139 case "$XGETTEXT" in
4141 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4145 for ac_dir in $PATH; do
4146 test -z "$ac_dir" && ac_dir=.
4147 if test -f $ac_dir/$ac_word; then
4148 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4149 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4150 break
4153 done
4154 IFS="$ac_save_ifs"
4155 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4157 esac
4159 XGETTEXT="$ac_cv_path_XGETTEXT"
4160 if test -n "$XGETTEXT"; then
4161 echo "$ac_t""$XGETTEXT" 1>&6
4162 else
4163 echo "$ac_t""no" 1>&6
4167 USE_INCLUDED_LIBINTL=yes
4168 CATOBJEXT=.gmo
4169 INSTOBJEXT=.mo
4170 DATADIRNAME=share
4171 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4172 INTLLIBS=$INTLDEPS
4173 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4174 nls_cv_header_intl=libintl.h
4175 nls_cv_header_libgt=libgettext.h
4178 if test "$XGETTEXT" != ":"; then
4179 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4181 else
4182 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4183 XGETTEXT=":"
4187 # We need to process the po/ directory.
4188 POSUB=po
4189 else
4190 DATADIRNAME=share
4191 nls_cv_header_intl=libintl.h
4192 nls_cv_header_libgt=libgettext.h
4195 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4196 # because some of the sources are only built for this goal.
4197 if test "$PACKAGE" = gettext; then
4198 USE_NLS=yes
4199 USE_INCLUDED_LIBINTL=yes
4202 for lang in $ALL_LINGUAS; do
4203 GMOFILES="$GMOFILES $lang.gmo"
4204 POFILES="$POFILES $lang.po"
4205 done
4220 if test "x$CATOBJEXT" != "x"; then
4221 if test "x$ALL_LINGUAS" = "x"; then
4222 LINGUAS=
4223 else
4224 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4225 echo "configure:4226: checking for catalogs to be installed" >&5
4226 NEW_LINGUAS=
4227 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4228 case "$ALL_LINGUAS" in
4229 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4230 esac
4231 done
4232 LINGUAS=$NEW_LINGUAS
4233 echo "$ac_t""$LINGUAS" 1>&6
4236 if test -n "$LINGUAS"; then
4237 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4241 if test $ac_cv_header_locale_h = yes; then
4242 INCLUDE_LOCALE_H="#include <locale.h>"
4243 else
4244 INCLUDE_LOCALE_H="\
4245 /* The system does not provide the header <locale.h>. Take care yourself. */"
4249 if test -f $srcdir/po2tbl.sed.in; then
4250 if test "$CATOBJEXT" = ".cat"; then
4251 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4252 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4253 echo "configure:4254: checking for linux/version.h" >&5
4254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4255 echo $ac_n "(cached) $ac_c" 1>&6
4256 else
4257 cat > conftest.$ac_ext <<EOF
4258 #line 4259 "configure"
4259 #include "confdefs.h"
4260 #include <linux/version.h>
4262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4263 { (eval echo configure:4264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4265 if test -z "$ac_err"; then
4266 rm -rf conftest*
4267 eval "ac_cv_header_$ac_safe=yes"
4268 else
4269 echo "$ac_err" >&5
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4272 rm -rf conftest*
4273 eval "ac_cv_header_$ac_safe=no"
4275 rm -f conftest*
4277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4278 echo "$ac_t""yes" 1>&6
4279 msgformat=linux
4280 else
4281 echo "$ac_t""no" 1>&6
4282 msgformat=xopen
4286 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4288 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4289 $srcdir/po2tbl.sed.in > po2tbl.sed
4292 if test "$PACKAGE" = "gettext"; then
4293 GT_NO="#NO#"
4294 GT_YES=
4295 else
4296 GT_NO=
4297 GT_YES="#YES#"
4302 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4308 if test -d $srcdir/po; then
4309 test -d po || mkdir po
4310 if test "x$srcdir" != "x."; then
4311 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4312 posrcprefix="$srcdir/"
4313 else
4314 posrcprefix="../$srcdir/"
4316 else
4317 posrcprefix="../"
4319 rm -f po/POTFILES
4320 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4321 < $srcdir/po/POTFILES.in > po/POTFILES
4325 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4326 echo "configure:4327: checking whether to enable maintainer-specific portions of Makefiles" >&5
4327 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4328 if test "${enable_maintainer_mode+set}" = set; then
4329 enableval="$enable_maintainer_mode"
4330 USE_MAINTAINER_MODE=$enableval
4331 else
4332 USE_MAINTAINER_MODE=no
4335 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4338 if test $USE_MAINTAINER_MODE = yes; then
4339 MAINTAINER_MODE_TRUE=
4340 MAINTAINER_MODE_FALSE='#'
4341 else
4342 MAINTAINER_MODE_TRUE='#'
4343 MAINTAINER_MODE_FALSE=
4345 MAINT=$MAINTAINER_MODE_TRUE
4350 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4351 echo "configure:4352: checking for executable suffix" >&5
4352 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4353 echo $ac_n "(cached) $ac_c" 1>&6
4354 else
4355 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4356 ac_cv_exeext=.exe
4357 else
4358 rm -f conftest*
4359 echo 'int main () { return 0; }' > conftest.$ac_ext
4360 ac_cv_exeext=
4361 if { (eval echo configure:4362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4362 for file in conftest.*; do
4363 case $file in
4364 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4365 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4366 esac
4367 done
4368 else
4369 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4371 rm -f conftest*
4372 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4376 EXEEXT=""
4377 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4378 echo "$ac_t""${ac_cv_exeext}" 1>&6
4379 ac_exeext=$EXEEXT
4381 if test -n "$EXEEXT"; then
4382 cat >> confdefs.h <<\EOF
4383 #define HAVE_EXECUTABLE_SUFFIX 1
4387 cat >> confdefs.h <<EOF
4388 #define EXECUTABLE_SUFFIX "${EXEEXT}"
4392 # host-specific stuff:
4394 HDEFINES=
4396 . ${srcdir}/../bfd/configure.host
4399 AR=${AR-ar}
4401 # Extract the first word of "ranlib", so it can be a program name with args.
4402 set dummy ranlib; ac_word=$2
4403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4404 echo "configure:4405: checking for $ac_word" >&5
4405 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4407 else
4408 if test -n "$RANLIB"; then
4409 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4410 else
4411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4412 ac_dummy="$PATH"
4413 for ac_dir in $ac_dummy; do
4414 test -z "$ac_dir" && ac_dir=.
4415 if test -f $ac_dir/$ac_word; then
4416 ac_cv_prog_RANLIB="ranlib"
4417 break
4419 done
4420 IFS="$ac_save_ifs"
4421 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4424 RANLIB="$ac_cv_prog_RANLIB"
4425 if test -n "$RANLIB"; then
4426 echo "$ac_t""$RANLIB" 1>&6
4427 else
4428 echo "$ac_t""no" 1>&6
4431 # Find a good install program. We prefer a C program (faster),
4432 # so one script is as good as another. But avoid the broken or
4433 # incompatible versions:
4434 # SysV /etc/install, /usr/sbin/install
4435 # SunOS /usr/etc/install
4436 # IRIX /sbin/install
4437 # AIX /bin/install
4438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4441 # ./install, which can be erroneously created by make from ./install.sh.
4442 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4443 echo "configure:4444: checking for a BSD compatible install" >&5
4444 if test -z "$INSTALL"; then
4445 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4446 echo $ac_n "(cached) $ac_c" 1>&6
4447 else
4448 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4449 for ac_dir in $PATH; do
4450 # Account for people who put trailing slashes in PATH elements.
4451 case "$ac_dir/" in
4452 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4454 # OSF1 and SCO ODT 3.0 have their own names for install.
4455 # Don't use installbsd from OSF since it installs stuff as root
4456 # by default.
4457 for ac_prog in ginstall scoinst install; do
4458 if test -f $ac_dir/$ac_prog; then
4459 if test $ac_prog = install &&
4460 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4461 # AIX install. It has an incompatible calling convention.
4463 else
4464 ac_cv_path_install="$ac_dir/$ac_prog -c"
4465 break 2
4468 done
4470 esac
4471 done
4472 IFS="$ac_save_IFS"
4475 if test "${ac_cv_path_install+set}" = set; then
4476 INSTALL="$ac_cv_path_install"
4477 else
4478 # As a last resort, use the slow shell script. We don't cache a
4479 # path for INSTALL within a source directory, because that will
4480 # break other packages using the cache if that directory is
4481 # removed, or if the path is relative.
4482 INSTALL="$ac_install_sh"
4485 echo "$ac_t""$INSTALL" 1>&6
4487 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4488 # It thinks the first close brace ends the variable substitution.
4489 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4491 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4493 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4496 # Put a plausible default for CC_FOR_BUILD in Makefile.
4497 if test -z "$CC_FOR_BUILD"; then
4498 if test "x$cross_compiling" = "xno"; then
4499 CC_FOR_BUILD='$(CC)'
4500 else
4501 CC_FOR_BUILD=gcc
4505 # Also set EXEEXT_FOR_BUILD.
4506 if test "x$cross_compiling" = "xno"; then
4507 EXEEXT_FOR_BUILD='$(EXEEXT)'
4508 else
4509 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4510 echo "configure:4511: checking for build system executable suffix" >&5
4511 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4512 echo $ac_n "(cached) $ac_c" 1>&6
4513 else
4514 rm -f conftest*
4515 echo 'int main () { return 0; }' > conftest.c
4516 bfd_cv_build_exeext=
4517 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4518 for file in conftest.*; do
4519 case $file in
4520 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4521 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4522 esac
4523 done
4524 rm -f conftest*
4525 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4528 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4529 EXEEXT_FOR_BUILD=""
4530 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4534 DEMANGLER_NAME=c++filt
4535 case "${host}" in
4536 *-*-go32* | *-*-msdos*)
4537 DEMANGLER_NAME=cxxfilt
4538 esac
4541 for ac_hdr in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
4543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4545 echo "configure:4546: checking for $ac_hdr" >&5
4546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4547 echo $ac_n "(cached) $ac_c" 1>&6
4548 else
4549 cat > conftest.$ac_ext <<EOF
4550 #line 4551 "configure"
4551 #include "confdefs.h"
4552 #include <$ac_hdr>
4554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4555 { (eval echo configure:4556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4557 if test -z "$ac_err"; then
4558 rm -rf conftest*
4559 eval "ac_cv_header_$ac_safe=yes"
4560 else
4561 echo "$ac_err" >&5
4562 echo "configure: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4564 rm -rf conftest*
4565 eval "ac_cv_header_$ac_safe=no"
4567 rm -f conftest*
4569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4570 echo "$ac_t""yes" 1>&6
4571 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4572 cat >> confdefs.h <<EOF
4573 #define $ac_tr_hdr 1
4576 else
4577 echo "$ac_t""no" 1>&6
4579 done
4581 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4582 echo "configure:4583: checking for sys/wait.h that is POSIX.1 compatible" >&5
4583 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4584 echo $ac_n "(cached) $ac_c" 1>&6
4585 else
4586 cat > conftest.$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4589 #include <sys/types.h>
4590 #include <sys/wait.h>
4591 #ifndef WEXITSTATUS
4592 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4593 #endif
4594 #ifndef WIFEXITED
4595 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4596 #endif
4597 int main() {
4598 int s;
4599 wait (&s);
4600 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4601 ; return 0; }
4603 if { (eval echo configure:4604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4604 rm -rf conftest*
4605 ac_cv_header_sys_wait_h=yes
4606 else
4607 echo "configure: failed program was:" >&5
4608 cat conftest.$ac_ext >&5
4609 rm -rf conftest*
4610 ac_cv_header_sys_wait_h=no
4612 rm -f conftest*
4615 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4616 if test $ac_cv_header_sys_wait_h = yes; then
4617 cat >> confdefs.h <<\EOF
4618 #define HAVE_SYS_WAIT_H 1
4623 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4624 # for constant arguments. Useless!
4625 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4626 echo "configure:4627: checking for working alloca.h" >&5
4627 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4629 else
4630 cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4633 #include <alloca.h>
4634 int main() {
4635 char *p = alloca(2 * sizeof(int));
4636 ; return 0; }
4638 if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4639 rm -rf conftest*
4640 ac_cv_header_alloca_h=yes
4641 else
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4644 rm -rf conftest*
4645 ac_cv_header_alloca_h=no
4647 rm -f conftest*
4650 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4651 if test $ac_cv_header_alloca_h = yes; then
4652 cat >> confdefs.h <<\EOF
4653 #define HAVE_ALLOCA_H 1
4658 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4659 echo "configure:4660: checking for alloca" >&5
4660 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6
4662 else
4663 cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4667 #ifdef __GNUC__
4668 # define alloca __builtin_alloca
4669 #else
4670 # ifdef _MSC_VER
4671 # include <malloc.h>
4672 # define alloca _alloca
4673 # else
4674 # if HAVE_ALLOCA_H
4675 # include <alloca.h>
4676 # else
4677 # ifdef _AIX
4678 #pragma alloca
4679 # else
4680 # ifndef alloca /* predefined by HP cc +Olibcalls */
4681 char *alloca ();
4682 # endif
4683 # endif
4684 # endif
4685 # endif
4686 #endif
4688 int main() {
4689 char *p = (char *) alloca(1);
4690 ; return 0; }
4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 rm -rf conftest*
4694 ac_cv_func_alloca_works=yes
4695 else
4696 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4698 rm -rf conftest*
4699 ac_cv_func_alloca_works=no
4701 rm -f conftest*
4704 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4705 if test $ac_cv_func_alloca_works = yes; then
4706 cat >> confdefs.h <<\EOF
4707 #define HAVE_ALLOCA 1
4712 if test $ac_cv_func_alloca_works = no; then
4713 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4714 # that cause trouble. Some versions do not even contain alloca or
4715 # contain a buggy version. If you still want to use their alloca,
4716 # use ar to extract alloca.o from them instead of compiling alloca.c.
4717 ALLOCA=alloca.${ac_objext}
4718 cat >> confdefs.h <<\EOF
4719 #define C_ALLOCA 1
4723 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4724 echo "configure:4725: checking whether alloca needs Cray hooks" >&5
4725 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4727 else
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 #if defined(CRAY) && ! defined(CRAY2)
4732 webecray
4733 #else
4734 wenotbecray
4735 #endif
4738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4739 egrep "webecray" >/dev/null 2>&1; then
4740 rm -rf conftest*
4741 ac_cv_os_cray=yes
4742 else
4743 rm -rf conftest*
4744 ac_cv_os_cray=no
4746 rm -f conftest*
4750 echo "$ac_t""$ac_cv_os_cray" 1>&6
4751 if test $ac_cv_os_cray = yes; then
4752 for ac_func in _getb67 GETB67 getb67; do
4753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4754 echo "configure:4755: checking for $ac_func" >&5
4755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4756 echo $ac_n "(cached) $ac_c" 1>&6
4757 else
4758 cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4761 /* System header to define __stub macros and hopefully few prototypes,
4762 which can conflict with char $ac_func(); below. */
4763 #include <assert.h>
4764 /* Override any gcc2 internal prototype to avoid an error. */
4765 /* We use char because int might match the return type of a gcc2
4766 builtin and then its argument prototype would still apply. */
4767 char $ac_func();
4769 int main() {
4771 /* The GNU C library defines this for functions which it implements
4772 to always fail with ENOSYS. Some functions are actually named
4773 something starting with __ and the normal name is an alias. */
4774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4775 choke me
4776 #else
4777 $ac_func();
4778 #endif
4780 ; return 0; }
4782 if { (eval echo configure:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4783 rm -rf conftest*
4784 eval "ac_cv_func_$ac_func=yes"
4785 else
4786 echo "configure: failed program was:" >&5
4787 cat conftest.$ac_ext >&5
4788 rm -rf conftest*
4789 eval "ac_cv_func_$ac_func=no"
4791 rm -f conftest*
4794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4795 echo "$ac_t""yes" 1>&6
4796 cat >> confdefs.h <<EOF
4797 #define CRAY_STACKSEG_END $ac_func
4800 break
4801 else
4802 echo "$ac_t""no" 1>&6
4805 done
4808 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4809 echo "configure:4810: checking stack direction for C alloca" >&5
4810 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4812 else
4813 if test "$cross_compiling" = yes; then
4814 ac_cv_c_stack_direction=0
4815 else
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4819 find_stack_direction ()
4821 static char *addr = 0;
4822 auto char dummy;
4823 if (addr == 0)
4825 addr = &dummy;
4826 return find_stack_direction ();
4828 else
4829 return (&dummy > addr) ? 1 : -1;
4831 main ()
4833 exit (find_stack_direction() < 0);
4836 if { (eval echo configure:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4837 then
4838 ac_cv_c_stack_direction=1
4839 else
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4842 rm -fr conftest*
4843 ac_cv_c_stack_direction=-1
4845 rm -fr conftest*
4850 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4851 cat >> confdefs.h <<EOF
4852 #define STACK_DIRECTION $ac_cv_c_stack_direction
4857 for ac_func in sbrk utimes setmode
4859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4860 echo "configure:4861: checking for $ac_func" >&5
4861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
4863 else
4864 cat > conftest.$ac_ext <<EOF
4865 #line 4866 "configure"
4866 #include "confdefs.h"
4867 /* System header to define __stub macros and hopefully few prototypes,
4868 which can conflict with char $ac_func(); below. */
4869 #include <assert.h>
4870 /* Override any gcc2 internal prototype to avoid an error. */
4871 /* We use char because int might match the return type of a gcc2
4872 builtin and then its argument prototype would still apply. */
4873 char $ac_func();
4875 int main() {
4877 /* The GNU C library defines this for functions which it implements
4878 to always fail with ENOSYS. Some functions are actually named
4879 something starting with __ and the normal name is an alias. */
4880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4881 choke me
4882 #else
4883 $ac_func();
4884 #endif
4886 ; return 0; }
4888 if { (eval echo configure:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4889 rm -rf conftest*
4890 eval "ac_cv_func_$ac_func=yes"
4891 else
4892 echo "configure: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4894 rm -rf conftest*
4895 eval "ac_cv_func_$ac_func=no"
4897 rm -f conftest*
4900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4901 echo "$ac_t""yes" 1>&6
4902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4903 cat >> confdefs.h <<EOF
4904 #define $ac_tr_func 1
4907 else
4908 echo "$ac_t""no" 1>&6
4910 done
4913 # Some systems have frexp only in -lm, not in -lc.
4915 echo $ac_n "checking for library containing frexp""... $ac_c" 1>&6
4916 echo "configure:4917: checking for library containing frexp" >&5
4917 if eval "test \"`echo '$''{'ac_cv_search_frexp'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4919 else
4920 ac_func_search_save_LIBS="$LIBS"
4921 ac_cv_search_frexp="no"
4922 cat > conftest.$ac_ext <<EOF
4923 #line 4924 "configure"
4924 #include "confdefs.h"
4925 /* Override any gcc2 internal prototype to avoid an error. */
4926 /* We use char because int might match the return type of a gcc2
4927 builtin and then its argument prototype would still apply. */
4928 char frexp();
4930 int main() {
4931 frexp()
4932 ; return 0; }
4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4935 rm -rf conftest*
4936 ac_cv_search_frexp="none required"
4937 else
4938 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5
4941 rm -f conftest*
4942 test "$ac_cv_search_frexp" = "no" && for i in m; do
4943 LIBS="-l$i $ac_func_search_save_LIBS"
4944 cat > conftest.$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4947 /* Override any gcc2 internal prototype to avoid an error. */
4948 /* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */
4950 char frexp();
4952 int main() {
4953 frexp()
4954 ; return 0; }
4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4957 rm -rf conftest*
4958 ac_cv_search_frexp="-l$i"
4959 break
4960 else
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4964 rm -f conftest*
4965 done
4966 LIBS="$ac_func_search_save_LIBS"
4969 echo "$ac_t""$ac_cv_search_frexp" 1>&6
4970 if test "$ac_cv_search_frexp" != "no"; then
4971 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
4973 else :
4977 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
4978 echo "configure:4979: checking for time_t in time.h" >&5
4979 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
4980 echo $ac_n "(cached) $ac_c" 1>&6
4981 else
4982 cat > conftest.$ac_ext <<EOF
4983 #line 4984 "configure"
4984 #include "confdefs.h"
4985 #include <time.h>
4986 int main() {
4987 time_t i;
4988 ; return 0; }
4990 if { (eval echo configure:4991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4991 rm -rf conftest*
4992 bu_cv_decl_time_t_time_h=yes
4993 else
4994 echo "configure: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
4996 rm -rf conftest*
4997 bu_cv_decl_time_t_time_h=no
4999 rm -f conftest*
5002 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
5003 if test $bu_cv_decl_time_t_time_h = yes; then
5004 cat >> confdefs.h <<\EOF
5005 #define HAVE_TIME_T_IN_TIME_H 1
5010 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
5011 echo "configure:5012: checking for time_t in sys/types.h" >&5
5012 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5014 else
5015 cat > conftest.$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5018 #include <sys/types.h>
5019 int main() {
5020 time_t i;
5021 ; return 0; }
5023 if { (eval echo configure:5024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5024 rm -rf conftest*
5025 bu_cv_decl_time_t_types_h=yes
5026 else
5027 echo "configure: failed program was:" >&5
5028 cat conftest.$ac_ext >&5
5029 rm -rf conftest*
5030 bu_cv_decl_time_t_types_h=no
5032 rm -f conftest*
5035 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
5036 if test $bu_cv_decl_time_t_types_h = yes; then
5037 cat >> confdefs.h <<\EOF
5038 #define HAVE_TIME_T_IN_TYPES_H 1
5043 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
5044 # by default.
5045 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5046 echo "configure:5047: checking for utime.h" >&5
5047 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
5048 echo $ac_n "(cached) $ac_c" 1>&6
5049 else
5050 cat > conftest.$ac_ext <<EOF
5051 #line 5052 "configure"
5052 #include "confdefs.h"
5053 #include <sys/types.h>
5054 #ifdef HAVE_TIME_H
5055 #include <time.h>
5056 #endif
5057 #include <utime.h>
5058 int main() {
5059 struct utimbuf s;
5060 ; return 0; }
5062 if { (eval echo configure:5063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5063 rm -rf conftest*
5064 bu_cv_header_utime_h=yes
5065 else
5066 echo "configure: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 rm -rf conftest*
5069 bu_cv_header_utime_h=no
5071 rm -f conftest*
5074 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
5075 if test $bu_cv_header_utime_h = yes; then
5076 cat >> confdefs.h <<\EOF
5077 #define HAVE_GOOD_UTIME_H 1
5082 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
5083 echo "configure:5084: checking whether fprintf must be declared" >&5
5084 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+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"
5091 #include <stdio.h>
5092 #ifdef HAVE_STRING_H
5093 #include <string.h>
5094 #else
5095 #ifdef HAVE_STRINGS_H
5096 #include <strings.h>
5097 #endif
5098 #endif
5099 #ifdef HAVE_STDLIB_H
5100 #include <stdlib.h>
5101 #endif
5102 #ifdef HAVE_UNISTD_H
5103 #include <unistd.h>
5104 #endif
5105 int main() {
5106 char *(*pfn) = (char *(*)) fprintf
5107 ; return 0; }
5109 if { (eval echo configure:5110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5110 rm -rf conftest*
5111 bfd_cv_decl_needed_fprintf=no
5112 else
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5115 rm -rf conftest*
5116 bfd_cv_decl_needed_fprintf=yes
5118 rm -f conftest*
5121 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
5122 if test $bfd_cv_decl_needed_fprintf = yes; then
5123 cat >> confdefs.h <<\EOF
5124 #define NEED_DECLARATION_FPRINTF 1
5129 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5130 echo "configure:5131: checking whether strstr must be declared" >&5
5131 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5133 else
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5138 #include <stdio.h>
5139 #ifdef HAVE_STRING_H
5140 #include <string.h>
5141 #else
5142 #ifdef HAVE_STRINGS_H
5143 #include <strings.h>
5144 #endif
5145 #endif
5146 #ifdef HAVE_STDLIB_H
5147 #include <stdlib.h>
5148 #endif
5149 #ifdef HAVE_UNISTD_H
5150 #include <unistd.h>
5151 #endif
5152 int main() {
5153 char *(*pfn) = (char *(*)) strstr
5154 ; return 0; }
5156 if { (eval echo configure:5157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5157 rm -rf conftest*
5158 bfd_cv_decl_needed_strstr=no
5159 else
5160 echo "configure: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5162 rm -rf conftest*
5163 bfd_cv_decl_needed_strstr=yes
5165 rm -f conftest*
5168 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5169 if test $bfd_cv_decl_needed_strstr = yes; then
5170 cat >> confdefs.h <<\EOF
5171 #define NEED_DECLARATION_STRSTR 1
5176 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
5177 echo "configure:5178: checking whether sbrk must be declared" >&5
5178 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5180 else
5181 cat > conftest.$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5185 #include <stdio.h>
5186 #ifdef HAVE_STRING_H
5187 #include <string.h>
5188 #else
5189 #ifdef HAVE_STRINGS_H
5190 #include <strings.h>
5191 #endif
5192 #endif
5193 #ifdef HAVE_STDLIB_H
5194 #include <stdlib.h>
5195 #endif
5196 #ifdef HAVE_UNISTD_H
5197 #include <unistd.h>
5198 #endif
5199 int main() {
5200 char *(*pfn) = (char *(*)) sbrk
5201 ; return 0; }
5203 if { (eval echo configure:5204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5204 rm -rf conftest*
5205 bfd_cv_decl_needed_sbrk=no
5206 else
5207 echo "configure: failed program was:" >&5
5208 cat conftest.$ac_ext >&5
5209 rm -rf conftest*
5210 bfd_cv_decl_needed_sbrk=yes
5212 rm -f conftest*
5215 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5216 if test $bfd_cv_decl_needed_sbrk = yes; then
5217 cat >> confdefs.h <<\EOF
5218 #define NEED_DECLARATION_SBRK 1
5223 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5224 echo "configure:5225: checking whether getenv must be declared" >&5
5225 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5226 echo $ac_n "(cached) $ac_c" 1>&6
5227 else
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5232 #include <stdio.h>
5233 #ifdef HAVE_STRING_H
5234 #include <string.h>
5235 #else
5236 #ifdef HAVE_STRINGS_H
5237 #include <strings.h>
5238 #endif
5239 #endif
5240 #ifdef HAVE_STDLIB_H
5241 #include <stdlib.h>
5242 #endif
5243 #ifdef HAVE_UNISTD_H
5244 #include <unistd.h>
5245 #endif
5246 int main() {
5247 char *(*pfn) = (char *(*)) getenv
5248 ; return 0; }
5250 if { (eval echo configure:5251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5251 rm -rf conftest*
5252 bfd_cv_decl_needed_getenv=no
5253 else
5254 echo "configure: failed program was:" >&5
5255 cat conftest.$ac_ext >&5
5256 rm -rf conftest*
5257 bfd_cv_decl_needed_getenv=yes
5259 rm -f conftest*
5262 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5263 if test $bfd_cv_decl_needed_getenv = yes; then
5264 cat >> confdefs.h <<\EOF
5265 #define NEED_DECLARATION_GETENV 1
5270 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5271 echo "configure:5272: checking whether environ must be declared" >&5
5272 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5273 echo $ac_n "(cached) $ac_c" 1>&6
5274 else
5275 cat > conftest.$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5279 #include <stdio.h>
5280 #ifdef HAVE_STRING_H
5281 #include <string.h>
5282 #else
5283 #ifdef HAVE_STRINGS_H
5284 #include <strings.h>
5285 #endif
5286 #endif
5287 #ifdef HAVE_STDLIB_H
5288 #include <stdlib.h>
5289 #endif
5290 #ifdef HAVE_UNISTD_H
5291 #include <unistd.h>
5292 #endif
5293 int main() {
5294 char *(*pfn) = (char *(*)) environ
5295 ; return 0; }
5297 if { (eval echo configure:5298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5298 rm -rf conftest*
5299 bfd_cv_decl_needed_environ=no
5300 else
5301 echo "configure: failed program was:" >&5
5302 cat conftest.$ac_ext >&5
5303 rm -rf conftest*
5304 bfd_cv_decl_needed_environ=yes
5306 rm -f conftest*
5309 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5310 if test $bfd_cv_decl_needed_environ = yes; then
5311 cat >> confdefs.h <<\EOF
5312 #define NEED_DECLARATION_ENVIRON 1
5319 case "${host}" in
5320 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5321 cat >> confdefs.h <<\EOF
5322 #define USE_BINARY_FOPEN 1
5325 esac
5327 # target-specific stuff:
5329 # Canonicalize the secondary target names.
5330 if test -n "$enable_targets"; then
5331 for targ in `echo $enable_targets | sed 's/,/ /g'`
5333 result=`$ac_config_sub $targ 2>/dev/null`
5334 if test -n "$result"; then
5335 canon_targets="$canon_targets $result"
5336 else
5337 # Allow targets that config.sub doesn't recognize, like "all".
5338 canon_targets="$canon_targets $targ"
5340 done
5343 all_targets=false
5344 BUILD_NLMCONV=
5345 NLMCONV_DEFS=
5346 BUILD_SRCONV=
5347 BUILD_DLLTOOL=
5348 DLLTOOL_DEFS=
5349 BUILD_WINDRES=
5350 BUILD_DLLWRAP=
5351 BUILD_MISC=
5352 OBJDUMP_DEFS=
5354 for targ in $target $canon_targets
5356 if test "x$targ" = "xall"; then
5357 all_targets=true
5358 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5359 BUILD_SRCONV='$(SRCONV_PROG)'
5360 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5361 else
5362 case $targ in
5363 i[3456]86*-*-netware*)
5364 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5365 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
5367 alpha*-*-netware*)
5368 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5369 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5371 powerpc*-*-netware*)
5372 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5373 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5375 sparc*-*-netware*)
5376 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5377 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
5379 esac
5380 case $targ in
5381 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
5382 esac
5383 case $targ in
5384 arm-epoc-pe*)
5385 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5386 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
5387 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5389 arm-*pe* | arm-*-wince)
5390 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5391 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5392 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5394 thumb-*pe*)
5395 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5396 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5397 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5399 arm*-* | xscale-* | strongarm-* | d10v-*)
5400 OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS"
5402 i[3-6]86-*pe* | i[3-6]86-*-cygwin* | i[3-6]86-*-mingw32*)
5403 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5404 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5405 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5406 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
5408 i3-686-*-interix)
5409 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
5410 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5412 powerpc*-*-*pe* | powerpc*-*-cygwin*)
5413 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5414 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5415 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5417 sh*-*-*pe)
5418 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5419 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
5420 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5422 mips*-*-*pe)
5423 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5424 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
5425 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5427 mcore-*pe)
5428 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5429 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
5430 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5432 mcore-*elf)
5433 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5434 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
5436 esac
5438 done
5450 cat >> confdefs.h <<EOF
5451 #define TARGET "${target}"
5455 targ=$target
5456 . $srcdir/../bfd/config.bfd
5457 if test "x$targ_underscore" = "xyes"; then
5458 UNDERSCORE=1
5459 else
5460 UNDERSCORE=0
5464 trap '' 1 2 15
5465 cat > confcache <<\EOF
5466 # This file is a shell script that caches the results of configure
5467 # tests run on this system so they can be shared between configure
5468 # scripts and configure runs. It is not useful on other systems.
5469 # If it contains results you don't want to keep, you may remove or edit it.
5471 # By default, configure uses ./config.cache as the cache file,
5472 # creating it if it does not exist already. You can give configure
5473 # the --cache-file=FILE option to use a different cache file; that is
5474 # what configure does when it calls configure scripts in
5475 # subdirectories, so they share the cache.
5476 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5477 # config.status only pays attention to the cache file if you give it the
5478 # --recheck option to rerun configure.
5481 # The following way of writing the cache mishandles newlines in values,
5482 # but we know of no workaround that is simple, portable, and efficient.
5483 # So, don't put newlines in cache variables' values.
5484 # Ultrix sh set writes to stderr and can't be redirected directly,
5485 # and sets the high bit in the cache file unless we assign to the vars.
5486 (set) 2>&1 |
5487 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5488 *ac_space=\ *)
5489 # `set' does not quote correctly, so add quotes (double-quote substitution
5490 # turns \\\\ into \\, and sed turns \\ into \).
5491 sed -n \
5492 -e "s/'/'\\\\''/g" \
5493 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5496 # `set' quotes correctly as required by POSIX, so do not add quotes.
5497 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5499 esac >> confcache
5500 if cmp -s $cache_file confcache; then
5502 else
5503 if test -w $cache_file; then
5504 echo "updating cache $cache_file"
5505 cat confcache > $cache_file
5506 else
5507 echo "not updating unwritable cache $cache_file"
5510 rm -f confcache
5512 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5514 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5515 # Let make expand exec_prefix.
5516 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5518 # Any assignment to VPATH causes Sun make to only execute
5519 # the first set of double-colon rules, so remove it if not needed.
5520 # If there is a colon in the path, we need to keep it.
5521 if test "x$srcdir" = x.; then
5522 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5525 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5527 DEFS=-DHAVE_CONFIG_H
5529 # Without the "./", some shells look in PATH for config.status.
5530 : ${CONFIG_STATUS=./config.status}
5532 echo creating $CONFIG_STATUS
5533 rm -f $CONFIG_STATUS
5534 cat > $CONFIG_STATUS <<EOF
5535 #! /bin/sh
5536 # Generated automatically by configure.
5537 # Run this file to recreate the current configuration.
5538 # This directory was configured as follows,
5539 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5541 # $0 $ac_configure_args
5543 # Compiler output produced by configure, useful for debugging
5544 # configure, is in ./config.log if it exists.
5546 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5547 for ac_option
5549 case "\$ac_option" in
5550 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5551 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5552 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5553 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5554 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5555 exit 0 ;;
5556 -help | --help | --hel | --he | --h)
5557 echo "\$ac_cs_usage"; exit 0 ;;
5558 *) echo "\$ac_cs_usage"; exit 1 ;;
5559 esac
5560 done
5562 ac_given_srcdir=$srcdir
5563 ac_given_INSTALL="$INSTALL"
5565 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5567 cat >> $CONFIG_STATUS <<EOF
5569 # Protect against being on the right side of a sed subst in config.status.
5570 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5571 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5572 $ac_vpsub
5573 $extrasub
5574 s%@SHELL@%$SHELL%g
5575 s%@CFLAGS@%$CFLAGS%g
5576 s%@CPPFLAGS@%$CPPFLAGS%g
5577 s%@CXXFLAGS@%$CXXFLAGS%g
5578 s%@FFLAGS@%$FFLAGS%g
5579 s%@DEFS@%$DEFS%g
5580 s%@LDFLAGS@%$LDFLAGS%g
5581 s%@LIBS@%$LIBS%g
5582 s%@exec_prefix@%$exec_prefix%g
5583 s%@prefix@%$prefix%g
5584 s%@program_transform_name@%$program_transform_name%g
5585 s%@bindir@%$bindir%g
5586 s%@sbindir@%$sbindir%g
5587 s%@libexecdir@%$libexecdir%g
5588 s%@datadir@%$datadir%g
5589 s%@sysconfdir@%$sysconfdir%g
5590 s%@sharedstatedir@%$sharedstatedir%g
5591 s%@localstatedir@%$localstatedir%g
5592 s%@libdir@%$libdir%g
5593 s%@includedir@%$includedir%g
5594 s%@oldincludedir@%$oldincludedir%g
5595 s%@infodir@%$infodir%g
5596 s%@mandir@%$mandir%g
5597 s%@host@%$host%g
5598 s%@host_alias@%$host_alias%g
5599 s%@host_cpu@%$host_cpu%g
5600 s%@host_vendor@%$host_vendor%g
5601 s%@host_os@%$host_os%g
5602 s%@target@%$target%g
5603 s%@target_alias@%$target_alias%g
5604 s%@target_cpu@%$target_cpu%g
5605 s%@target_vendor@%$target_vendor%g
5606 s%@target_os@%$target_os%g
5607 s%@build@%$build%g
5608 s%@build_alias@%$build_alias%g
5609 s%@build_cpu@%$build_cpu%g
5610 s%@build_vendor@%$build_vendor%g
5611 s%@build_os@%$build_os%g
5612 s%@CC@%$CC%g
5613 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5614 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5615 s%@INSTALL_DATA@%$INSTALL_DATA%g
5616 s%@PACKAGE@%$PACKAGE%g
5617 s%@VERSION@%$VERSION%g
5618 s%@ACLOCAL@%$ACLOCAL%g
5619 s%@AUTOCONF@%$AUTOCONF%g
5620 s%@AUTOMAKE@%$AUTOMAKE%g
5621 s%@AUTOHEADER@%$AUTOHEADER%g
5622 s%@MAKEINFO@%$MAKEINFO%g
5623 s%@SET_MAKE@%$SET_MAKE%g
5624 s%@LN_S@%$LN_S%g
5625 s%@OBJEXT@%$OBJEXT%g
5626 s%@EXEEXT@%$EXEEXT%g
5627 s%@RANLIB@%$RANLIB%g
5628 s%@STRIP@%$STRIP%g
5629 s%@LIBTOOL@%$LIBTOOL%g
5630 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5631 s%@YACC@%$YACC%g
5632 s%@LEX@%$LEX%g
5633 s%@LEXLIB@%$LEXLIB%g
5634 s%@CPP@%$CPP%g
5635 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5636 s%@ALLOCA@%$ALLOCA%g
5637 s%@USE_NLS@%$USE_NLS%g
5638 s%@MSGFMT@%$MSGFMT%g
5639 s%@GMSGFMT@%$GMSGFMT%g
5640 s%@XGETTEXT@%$XGETTEXT%g
5641 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5642 s%@CATALOGS@%$CATALOGS%g
5643 s%@CATOBJEXT@%$CATOBJEXT%g
5644 s%@DATADIRNAME@%$DATADIRNAME%g
5645 s%@GMOFILES@%$GMOFILES%g
5646 s%@INSTOBJEXT@%$INSTOBJEXT%g
5647 s%@INTLDEPS@%$INTLDEPS%g
5648 s%@INTLLIBS@%$INTLLIBS%g
5649 s%@INTLOBJS@%$INTLOBJS%g
5650 s%@POFILES@%$POFILES%g
5651 s%@POSUB@%$POSUB%g
5652 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5653 s%@GT_NO@%$GT_NO%g
5654 s%@GT_YES@%$GT_YES%g
5655 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5656 s%@l@%$l%g
5657 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5658 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5659 s%@MAINT@%$MAINT%g
5660 s%@HDEFINES@%$HDEFINES%g
5661 s%@AR@%$AR%g
5662 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5663 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5664 s%@DEMANGLER_NAME@%$DEMANGLER_NAME%g
5665 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5666 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5667 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5668 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5669 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5670 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5671 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5672 s%@BUILD_MISC@%$BUILD_MISC%g
5673 s%@OBJDUMP_DEFS@%$OBJDUMP_DEFS%g
5674 s%@UNDERSCORE@%$UNDERSCORE%g
5676 CEOF
5679 cat >> $CONFIG_STATUS <<\EOF
5681 # Split the substitutions into bite-sized pieces for seds with
5682 # small command number limits, like on Digital OSF/1 and HP-UX.
5683 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5684 ac_file=1 # Number of current file.
5685 ac_beg=1 # First line for current file.
5686 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5687 ac_more_lines=:
5688 ac_sed_cmds=""
5689 while $ac_more_lines; do
5690 if test $ac_beg -gt 1; then
5691 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5692 else
5693 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5695 if test ! -s conftest.s$ac_file; then
5696 ac_more_lines=false
5697 rm -f conftest.s$ac_file
5698 else
5699 if test -z "$ac_sed_cmds"; then
5700 ac_sed_cmds="sed -f conftest.s$ac_file"
5701 else
5702 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5704 ac_file=`expr $ac_file + 1`
5705 ac_beg=$ac_end
5706 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5708 done
5709 if test -z "$ac_sed_cmds"; then
5710 ac_sed_cmds=cat
5714 cat >> $CONFIG_STATUS <<EOF
5716 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5718 cat >> $CONFIG_STATUS <<\EOF
5719 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5720 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5721 case "$ac_file" in
5722 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5723 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5724 *) ac_file_in="${ac_file}.in" ;;
5725 esac
5727 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5729 # Remove last slash and all that follows it. Not all systems have dirname.
5730 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5731 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5732 # The file is in a subdirectory.
5733 test ! -d "$ac_dir" && mkdir "$ac_dir"
5734 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5735 # A "../" for each directory in $ac_dir_suffix.
5736 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5737 else
5738 ac_dir_suffix= ac_dots=
5741 case "$ac_given_srcdir" in
5742 .) srcdir=.
5743 if test -z "$ac_dots"; then top_srcdir=.
5744 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5745 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5746 *) # Relative path.
5747 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5748 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5749 esac
5751 case "$ac_given_INSTALL" in
5752 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5753 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5754 esac
5756 echo creating "$ac_file"
5757 rm -f "$ac_file"
5758 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5759 case "$ac_file" in
5760 *Makefile*) ac_comsub="1i\\
5761 # $configure_input" ;;
5762 *) ac_comsub= ;;
5763 esac
5765 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5766 sed -e "$ac_comsub
5767 s%@configure_input@%$configure_input%g
5768 s%@srcdir@%$srcdir%g
5769 s%@top_srcdir@%$top_srcdir%g
5770 s%@INSTALL@%$INSTALL%g
5771 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5772 fi; done
5773 rm -f conftest.s*
5775 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5776 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5778 # ac_d sets the value in "#define NAME VALUE" lines.
5779 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5780 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5781 ac_dC='\3'
5782 ac_dD='%g'
5783 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5784 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5785 ac_uB='\([ ]\)%\1#\2define\3'
5786 ac_uC=' '
5787 ac_uD='\4%g'
5788 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5789 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5790 ac_eB='$%\1#\2define\3'
5791 ac_eC=' '
5792 ac_eD='%g'
5794 if test "${CONFIG_HEADERS+set}" != set; then
5796 cat >> $CONFIG_STATUS <<EOF
5797 CONFIG_HEADERS="config.h:config.in"
5799 cat >> $CONFIG_STATUS <<\EOF
5801 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5802 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5803 case "$ac_file" in
5804 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5805 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5806 *) ac_file_in="${ac_file}.in" ;;
5807 esac
5809 echo creating $ac_file
5811 rm -f conftest.frag conftest.in conftest.out
5812 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5813 cat $ac_file_inputs > conftest.in
5817 # Transform confdefs.h into a sed script conftest.vals that substitutes
5818 # the proper values into config.h.in to produce config.h. And first:
5819 # Protect against being on the right side of a sed subst in config.status.
5820 # Protect against being in an unquoted here document in config.status.
5821 rm -f conftest.vals
5822 cat > conftest.hdr <<\EOF
5823 s/[\\&%]/\\&/g
5824 s%[\\$`]%\\&%g
5825 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5826 s%ac_d%ac_u%gp
5827 s%ac_u%ac_e%gp
5829 sed -n -f conftest.hdr confdefs.h > conftest.vals
5830 rm -f conftest.hdr
5832 # This sed command replaces #undef with comments. This is necessary, for
5833 # example, in the case of _POSIX_SOURCE, which is predefined and required
5834 # on some systems where configure will not decide to define it.
5835 cat >> conftest.vals <<\EOF
5836 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5839 # Break up conftest.vals because some shells have a limit on
5840 # the size of here documents, and old seds have small limits too.
5842 rm -f conftest.tail
5843 while :
5845 ac_lines=`grep -c . conftest.vals`
5846 # grep -c gives empty output for an empty file on some AIX systems.
5847 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5848 # Write a limited-size here document to conftest.frag.
5849 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5850 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5851 echo 'CEOF
5852 sed -f conftest.frag conftest.in > conftest.out
5853 rm -f conftest.in
5854 mv conftest.out conftest.in
5855 ' >> $CONFIG_STATUS
5856 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5857 rm -f conftest.vals
5858 mv conftest.tail conftest.vals
5859 done
5860 rm -f conftest.vals
5862 cat >> $CONFIG_STATUS <<\EOF
5863 rm -f conftest.frag conftest.h
5864 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5865 cat conftest.in >> conftest.h
5866 rm -f conftest.in
5867 if cmp -s $ac_file conftest.h 2>/dev/null; then
5868 echo "$ac_file is unchanged"
5869 rm -f conftest.h
5870 else
5871 # Remove last slash and all that follows it. Not all systems have dirname.
5872 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5873 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5874 # The file is in a subdirectory.
5875 test ! -d "$ac_dir" && mkdir "$ac_dir"
5877 rm -f $ac_file
5878 mv conftest.h $ac_file
5880 fi; done
5883 cat >> $CONFIG_STATUS <<EOF
5887 cat >> $CONFIG_STATUS <<\EOF
5888 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5890 case "x$CONFIG_FILES" in
5891 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
5892 esac
5894 exit 0
5896 chmod +x $CONFIG_STATUS
5897 rm -fr confdefs* $ac_clean_files
5898 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1