2002-01-27 Daniel Jacobowitz <drow@mvista.com>
[binutils.git] / binutils / configure
blob317ef769ae288bc65dfc28317dc9e5f77edeb8fd
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 srcdir=
57 target=NONE
58 verbose=
59 x_includes=NONE
60 x_libraries=NONE
61 bindir='${exec_prefix}/bin'
62 sbindir='${exec_prefix}/sbin'
63 libexecdir='${exec_prefix}/libexec'
64 datadir='${prefix}/share'
65 sysconfdir='${prefix}/etc'
66 sharedstatedir='${prefix}/com'
67 localstatedir='${prefix}/var'
68 libdir='${exec_prefix}/lib'
69 includedir='${prefix}/include'
70 oldincludedir='/usr/include'
71 infodir='${prefix}/info'
72 mandir='${prefix}/man'
74 # Initialize some other variables.
75 subdirs=
76 MFLAGS= MAKEFLAGS=
77 SHELL=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
79 ac_max_here_lines=12
81 ac_prev=
82 for ac_option
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
88 ac_prev=
89 continue
92 case "$ac_option" in
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 *) ac_optarg= ;;
95 esac
97 # Accept the important Cygnus configure options, so we can diagnose typos.
99 case "$ac_option" in
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 ac_prev=bindir ;;
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
106 -build | --build | --buil | --bui | --bu)
107 ac_prev=build ;;
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
111 -cache-file | --cache-file | --cache-fil | --cache-fi \
112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113 ac_prev=cache_file ;;
114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116 cache_file="$ac_optarg" ;;
118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 ac_prev=datadir ;;
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 | --da=*)
122 datadir="$ac_optarg" ;;
124 -disable-* | --disable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* | --enable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 case "$ac_option" in
141 *=*) ;;
142 *) ac_optarg=yes ;;
143 esac
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148 | --exec | --exe | --ex)
149 ac_prev=exec_prefix ;;
150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152 | --exec=* | --exe=* | --ex=*)
153 exec_prefix="$ac_optarg" ;;
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
157 with_gas=yes ;;
159 -help | --help | --hel | --he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
162 cat << EOF
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
165 Configuration:
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
173 [$ac_default_prefix]
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 [same as prefix]
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
180 [PREFIX/share]
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 [PREFIX/com]
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
196 cat << EOF
197 Host type:
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
212 exit 0 ;;
214 -host | --host | --hos | --ho)
215 ac_prev=host ;;
216 -host=* | --host=* | --hos=* | --ho=*)
217 host="$ac_optarg" ;;
219 -includedir | --includedir | --includedi | --included | --include \
220 | --includ | --inclu | --incl | --inc)
221 ac_prev=includedir ;;
222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223 | --includ=* | --inclu=* | --incl=* | --inc=*)
224 includedir="$ac_optarg" ;;
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 ac_prev=infodir ;;
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
231 -libdir | --libdir | --libdi | --libd)
232 ac_prev=libdir ;;
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir="$ac_optarg" ;;
236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237 | --libexe | --libex | --libe)
238 ac_prev=libexecdir ;;
239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240 | --libexe=* | --libex=* | --libe=*)
241 libexecdir="$ac_optarg" ;;
243 -localstatedir | --localstatedir | --localstatedi | --localstated \
244 | --localstate | --localstat | --localsta | --localst \
245 | --locals | --local | --loca | --loc | --lo)
246 ac_prev=localstatedir ;;
247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250 localstatedir="$ac_optarg" ;;
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 ac_prev=mandir ;;
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
257 -nfp | --nfp | --nf)
258 # Obsolete; use --without-fp.
259 with_fp=no ;;
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 | --no-cr | --no-c)
263 no_create=yes ;;
265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 no_recursion=yes ;;
269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271 | --oldin | --oldi | --old | --ol | --o)
272 ac_prev=oldincludedir ;;
273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276 oldincludedir="$ac_optarg" ;;
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 ac_prev=prefix ;;
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix="$ac_optarg" ;;
283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
284 | --program-pre | --program-pr | --program-p)
285 ac_prev=program_prefix ;;
286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288 program_prefix="$ac_optarg" ;;
290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
291 | --program-suf | --program-su | --program-s)
292 ac_prev=program_suffix ;;
293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295 program_suffix="$ac_optarg" ;;
297 -program-transform-name | --program-transform-name \
298 | --program-transform-nam | --program-transform-na \
299 | --program-transform-n | --program-transform- \
300 | --program-transform | --program-transfor \
301 | --program-transfo | --program-transf \
302 | --program-trans | --program-tran \
303 | --progr-tra | --program-tr | --program-t)
304 ac_prev=program_transform_name ;;
305 -program-transform-name=* | --program-transform-name=* \
306 | --program-transform-nam=* | --program-transform-na=* \
307 | --program-transform-n=* | --program-transform-=* \
308 | --program-transform=* | --program-transfor=* \
309 | --program-transfo=* | --program-transf=* \
310 | --program-trans=* | --program-tran=* \
311 | --progr-tra=* | --program-tr=* | --program-t=*)
312 program_transform_name="$ac_optarg" ;;
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
316 silent=yes ;;
318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 ac_prev=sbindir ;;
320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321 | --sbi=* | --sb=*)
322 sbindir="$ac_optarg" ;;
324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326 | --sharedst | --shareds | --shared | --share | --shar \
327 | --sha | --sh)
328 ac_prev=sharedstatedir ;;
329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332 | --sha=* | --sh=*)
333 sharedstatedir="$ac_optarg" ;;
335 -site | --site | --sit)
336 ac_prev=site ;;
337 -site=* | --site=* | --sit=*)
338 site="$ac_optarg" ;;
340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 ac_prev=srcdir ;;
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir="$ac_optarg" ;;
345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346 | --syscon | --sysco | --sysc | --sys | --sy)
347 ac_prev=sysconfdir ;;
348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350 sysconfdir="$ac_optarg" ;;
352 -target | --target | --targe | --targ | --tar | --ta | --t)
353 ac_prev=target ;;
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
358 verbose=yes ;;
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.13"
362 exit 0 ;;
364 -with-* | --with-*)
365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 case "$ac_option" in
372 *=*) ;;
373 *) ac_optarg=yes ;;
374 esac
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* | --without-*)
378 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
386 --x)
387 # Obsolete; use --with-x.
388 with_x=yes ;;
390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391 | --x-incl | --x-inc | --x-in | --x-i)
392 ac_prev=x_includes ;;
393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395 x_includes="$ac_optarg" ;;
397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399 ac_prev=x_libraries ;;
400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402 x_libraries="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 nonopt="$ac_option"
417 esac
418 done
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
427 # 0 standard input
428 # 1 file creation
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
435 exec 6>/dev/null
436 else
437 exec 6>&1
439 exec 5>./config.log
441 echo "\
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
444 " 1>&5
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
448 ac_configure_args=
449 for ac_arg
451 case "$ac_arg" in
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c) ;;
454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459 esac
460 done
462 # NLS nuisances.
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
475 echo > confdefs.h
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file=ar.c
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted=yes
484 # Try the directory containing this script, then its parent.
485 ac_prog=$0
486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 srcdir=$ac_confdir
489 if test ! -r $srcdir/$ac_unique_file; then
490 srcdir=..
492 else
493 ac_srcdir_defaulted=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 else
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE; then
507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508 else
509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
515 . "$ac_site_file"
517 done
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
521 . $cache_file
522 else
523 echo "creating cache $cache_file"
524 > $cache_file
527 ac_ext=c
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp='$CPP $CPPFLAGS'
530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling=$ac_cv_prog_cc_cross
534 ac_exeext=
535 ac_objext=o
536 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539 ac_n= ac_c='
540 ' ac_t=' '
541 else
542 ac_n=-n ac_c= ac_t=
544 else
545 ac_n= ac_c='\c' ac_t=
548 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
549 echo "configure:550: checking for Cygwin environment" >&5
550 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
551 echo $ac_n "(cached) $ac_c" 1>&6
552 else
553 cat > conftest.$ac_ext <<EOF
554 #line 555 "configure"
555 #include "confdefs.h"
557 int main() {
559 #ifndef __CYGWIN__
560 #define __CYGWIN__ __CYGWIN32__
561 #endif
562 return __CYGWIN__;
563 ; return 0; }
565 if { (eval echo configure:566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
566 rm -rf conftest*
567 ac_cv_cygwin=yes
568 else
569 echo "configure: failed program was:" >&5
570 cat conftest.$ac_ext >&5
571 rm -rf conftest*
572 ac_cv_cygwin=no
574 rm -f conftest*
575 rm -f conftest*
578 echo "$ac_t""$ac_cv_cygwin" 1>&6
579 CYGWIN=
580 test "$ac_cv_cygwin" = yes && CYGWIN=yes
581 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
582 echo "configure:583: checking for mingw32 environment" >&5
583 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
585 else
586 cat > conftest.$ac_ext <<EOF
587 #line 588 "configure"
588 #include "confdefs.h"
590 int main() {
591 return __MINGW32__;
592 ; return 0; }
594 if { (eval echo configure:595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
595 rm -rf conftest*
596 ac_cv_mingw32=yes
597 else
598 echo "configure: failed program was:" >&5
599 cat conftest.$ac_ext >&5
600 rm -rf conftest*
601 ac_cv_mingw32=no
603 rm -f conftest*
604 rm -f conftest*
607 echo "$ac_t""$ac_cv_mingw32" 1>&6
608 MINGW32=
609 test "$ac_cv_mingw32" = yes && MINGW32=yes
612 ac_aux_dir=
613 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
614 if test -f $ac_dir/install-sh; then
615 ac_aux_dir=$ac_dir
616 ac_install_sh="$ac_aux_dir/install-sh -c"
617 break
618 elif test -f $ac_dir/install.sh; then
619 ac_aux_dir=$ac_dir
620 ac_install_sh="$ac_aux_dir/install.sh -c"
621 break
623 done
624 if test -z "$ac_aux_dir"; then
625 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
627 ac_config_guess=$ac_aux_dir/config.guess
628 ac_config_sub=$ac_aux_dir/config.sub
629 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
632 # Do some error checking and defaulting for the host and target type.
633 # The inputs are:
634 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
636 # The rules are:
637 # 1. You are not allowed to specify --host, --target, and nonopt at the
638 # same time.
639 # 2. Host defaults to nonopt.
640 # 3. If nonopt is not specified, then host defaults to the current host,
641 # as determined by config.guess.
642 # 4. Target and build default to nonopt.
643 # 5. If nonopt is not specified, then target and build default to host.
645 # The aliases save the names the user supplied, while $host etc.
646 # will get canonicalized.
647 case $host---$target---$nonopt in
648 NONE---*---* | *---NONE---* | *---*---NONE) ;;
649 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
650 esac
653 # Make sure we can run config.sub.
654 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
655 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
658 echo $ac_n "checking host system type""... $ac_c" 1>&6
659 echo "configure:660: checking host system type" >&5
661 host_alias=$host
662 case "$host_alias" in
663 NONE)
664 case $nonopt in
665 NONE)
666 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
667 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
668 fi ;;
669 *) host_alias=$nonopt ;;
670 esac ;;
671 esac
673 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
674 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$host" 1>&6
679 echo $ac_n "checking target system type""... $ac_c" 1>&6
680 echo "configure:681: checking target system type" >&5
682 target_alias=$target
683 case "$target_alias" in
684 NONE)
685 case $nonopt in
686 NONE) target_alias=$host_alias ;;
687 *) target_alias=$nonopt ;;
688 esac ;;
689 esac
691 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
692 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
693 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
694 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
695 echo "$ac_t""$target" 1>&6
697 echo $ac_n "checking build system type""... $ac_c" 1>&6
698 echo "configure:699: checking build system type" >&5
700 build_alias=$build
701 case "$build_alias" in
702 NONE)
703 case $nonopt in
704 NONE) build_alias=$host_alias ;;
705 *) build_alias=$nonopt ;;
706 esac ;;
707 esac
709 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
710 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
713 echo "$ac_t""$build" 1>&6
715 test "$host_alias" != "$target_alias" &&
716 test "$program_prefix$program_suffix$program_transform_name" = \
717 NONENONEs,x,x, &&
718 program_prefix=${target_alias}-
721 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
722 echo "configure:723: checking for strerror in -lcposix" >&5
723 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
725 echo $ac_n "(cached) $ac_c" 1>&6
726 else
727 ac_save_LIBS="$LIBS"
728 LIBS="-lcposix $LIBS"
729 cat > conftest.$ac_ext <<EOF
730 #line 731 "configure"
731 #include "confdefs.h"
732 /* Override any gcc2 internal prototype to avoid an error. */
733 /* We use char because int might match the return type of a gcc2
734 builtin and then its argument prototype would still apply. */
735 char strerror();
737 int main() {
738 strerror()
739 ; return 0; }
741 if { (eval echo configure:742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
742 rm -rf conftest*
743 eval "ac_cv_lib_$ac_lib_var=yes"
744 else
745 echo "configure: failed program was:" >&5
746 cat conftest.$ac_ext >&5
747 rm -rf conftest*
748 eval "ac_cv_lib_$ac_lib_var=no"
750 rm -f conftest*
751 LIBS="$ac_save_LIBS"
754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
755 echo "$ac_t""yes" 1>&6
756 LIBS="$LIBS -lcposix"
757 else
758 echo "$ac_t""no" 1>&6
764 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
765 # Find a good install program. We prefer a C program (faster),
766 # so one script is as good as another. But avoid the broken or
767 # incompatible versions:
768 # SysV /etc/install, /usr/sbin/install
769 # SunOS /usr/etc/install
770 # IRIX /sbin/install
771 # AIX /bin/install
772 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
773 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
774 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
775 # ./install, which can be erroneously created by make from ./install.sh.
776 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
777 echo "configure:778: checking for a BSD compatible install" >&5
778 if test -z "$INSTALL"; then
779 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
781 else
782 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
783 for ac_dir in $PATH; do
784 # Account for people who put trailing slashes in PATH elements.
785 case "$ac_dir/" in
786 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
788 # OSF1 and SCO ODT 3.0 have their own names for install.
789 # Don't use installbsd from OSF since it installs stuff as root
790 # by default.
791 for ac_prog in ginstall scoinst install; do
792 if test -f $ac_dir/$ac_prog; then
793 if test $ac_prog = install &&
794 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
795 # AIX install. It has an incompatible calling convention.
797 else
798 ac_cv_path_install="$ac_dir/$ac_prog -c"
799 break 2
802 done
804 esac
805 done
806 IFS="$ac_save_IFS"
809 if test "${ac_cv_path_install+set}" = set; then
810 INSTALL="$ac_cv_path_install"
811 else
812 # As a last resort, use the slow shell script. We don't cache a
813 # path for INSTALL within a source directory, because that will
814 # break other packages using the cache if that directory is
815 # removed, or if the path is relative.
816 INSTALL="$ac_install_sh"
819 echo "$ac_t""$INSTALL" 1>&6
821 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
822 # It thinks the first close brace ends the variable substitution.
823 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
825 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
827 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
829 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
830 echo "configure:831: checking whether build environment is sane" >&5
831 # Just in case
832 sleep 1
833 echo timestamp > conftestfile
834 # Do `set' in a subshell so we don't clobber the current shell's
835 # arguments. Must try -L first in case configure is actually a
836 # symlink; some systems play weird games with the mod time of symlinks
837 # (eg FreeBSD returns the mod time of the symlink's containing
838 # directory).
839 if (
840 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
841 if test "$*" = "X"; then
842 # -L didn't work.
843 set X `ls -t $srcdir/configure conftestfile`
845 if test "$*" != "X $srcdir/configure conftestfile" \
846 && test "$*" != "X conftestfile $srcdir/configure"; then
848 # If neither matched, then we have a broken ls. This can happen
849 # if, for instance, CONFIG_SHELL is bash and it inherits a
850 # broken ls alias from the environment. This has actually
851 # happened. Such a system could not be considered "sane".
852 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
853 alias in your environment" 1>&2; exit 1; }
856 test "$2" = conftestfile
858 then
859 # Ok.
861 else
862 { echo "configure: error: newly created file is older than distributed files!
863 Check your system clock" 1>&2; exit 1; }
865 rm -f conftest*
866 echo "$ac_t""yes" 1>&6
867 if test "$program_transform_name" = s,x,x,; then
868 program_transform_name=
869 else
870 # Double any \ or $. echo might interpret backslashes.
871 cat <<\EOF_SED > conftestsed
872 s,\\,\\\\,g; s,\$,$$,g
873 EOF_SED
874 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
875 rm -f conftestsed
877 test "$program_prefix" != NONE &&
878 program_transform_name="s,^,${program_prefix},; $program_transform_name"
879 # Use a double $ so make ignores it.
880 test "$program_suffix" != NONE &&
881 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
883 # sed with no file args requires a program.
884 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
886 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
887 echo "configure:888: checking whether ${MAKE-make} sets \${MAKE}" >&5
888 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
889 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
891 else
892 cat > conftestmake <<\EOF
893 all:
894 @echo 'ac_maketemp="${MAKE}"'
896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
897 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
898 if test -n "$ac_maketemp"; then
899 eval ac_cv_prog_make_${ac_make}_set=yes
900 else
901 eval ac_cv_prog_make_${ac_make}_set=no
903 rm -f conftestmake
905 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
906 echo "$ac_t""yes" 1>&6
907 SET_MAKE=
908 else
909 echo "$ac_t""no" 1>&6
910 SET_MAKE="MAKE=${MAKE-make}"
914 PACKAGE=binutils
916 VERSION=${BFD_VERSION}
918 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
919 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
921 cat >> confdefs.h <<EOF
922 #define PACKAGE "$PACKAGE"
925 cat >> confdefs.h <<EOF
926 #define VERSION "$VERSION"
931 missing_dir=`cd $ac_aux_dir && pwd`
932 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
933 echo "configure:934: checking for working aclocal" >&5
934 # Run test in a subshell; some versions of sh will print an error if
935 # an executable is not found, even if stderr is redirected.
936 # Redirect stdin to placate older versions of autoconf. Sigh.
937 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
938 ACLOCAL=aclocal
939 echo "$ac_t""found" 1>&6
940 else
941 ACLOCAL="$missing_dir/missing aclocal"
942 echo "$ac_t""missing" 1>&6
945 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
946 echo "configure:947: checking for working autoconf" >&5
947 # Run test in a subshell; some versions of sh will print an error if
948 # an executable is not found, even if stderr is redirected.
949 # Redirect stdin to placate older versions of autoconf. Sigh.
950 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
951 AUTOCONF=autoconf
952 echo "$ac_t""found" 1>&6
953 else
954 AUTOCONF="$missing_dir/missing autoconf"
955 echo "$ac_t""missing" 1>&6
958 echo $ac_n "checking for working automake""... $ac_c" 1>&6
959 echo "configure:960: checking for working automake" >&5
960 # Run test in a subshell; some versions of sh will print an error if
961 # an executable is not found, even if stderr is redirected.
962 # Redirect stdin to placate older versions of autoconf. Sigh.
963 if (automake --version) < /dev/null > /dev/null 2>&1; then
964 AUTOMAKE=automake
965 echo "$ac_t""found" 1>&6
966 else
967 AUTOMAKE="$missing_dir/missing automake"
968 echo "$ac_t""missing" 1>&6
971 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
972 echo "configure:973: checking for working autoheader" >&5
973 # Run test in a subshell; some versions of sh will print an error if
974 # an executable is not found, even if stderr is redirected.
975 # Redirect stdin to placate older versions of autoconf. Sigh.
976 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
977 AUTOHEADER=autoheader
978 echo "$ac_t""found" 1>&6
979 else
980 AUTOHEADER="$missing_dir/missing autoheader"
981 echo "$ac_t""missing" 1>&6
984 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
985 echo "configure:986: checking for working makeinfo" >&5
986 # Run test in a subshell; some versions of sh will print an error if
987 # an executable is not found, even if stderr is redirected.
988 # Redirect stdin to placate older versions of autoconf. Sigh.
989 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
990 MAKEINFO=makeinfo
991 echo "$ac_t""found" 1>&6
992 else
993 MAKEINFO="$missing_dir/missing makeinfo"
994 echo "$ac_t""missing" 1>&6
999 # Check whether --enable-shared or --disable-shared was given.
1000 if test "${enable_shared+set}" = set; then
1001 enableval="$enable_shared"
1002 p=${PACKAGE-default}
1003 case $enableval in
1004 yes) enable_shared=yes ;;
1005 no) enable_shared=no ;;
1007 enable_shared=no
1008 # Look at the argument we got. We use all the common list separators.
1009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1010 for pkg in $enableval; do
1011 if test "X$pkg" = "X$p"; then
1012 enable_shared=yes
1014 done
1015 IFS="$ac_save_ifs"
1017 esac
1018 else
1019 enable_shared=yes
1022 # Check whether --enable-static or --disable-static was given.
1023 if test "${enable_static+set}" = set; then
1024 enableval="$enable_static"
1025 p=${PACKAGE-default}
1026 case $enableval in
1027 yes) enable_static=yes ;;
1028 no) enable_static=no ;;
1030 enable_static=no
1031 # Look at the argument we got. We use all the common list separators.
1032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1033 for pkg in $enableval; do
1034 if test "X$pkg" = "X$p"; then
1035 enable_static=yes
1037 done
1038 IFS="$ac_save_ifs"
1040 esac
1041 else
1042 enable_static=yes
1045 # Check whether --enable-fast-install or --disable-fast-install was given.
1046 if test "${enable_fast_install+set}" = set; then
1047 enableval="$enable_fast_install"
1048 p=${PACKAGE-default}
1049 case $enableval in
1050 yes) enable_fast_install=yes ;;
1051 no) enable_fast_install=no ;;
1053 enable_fast_install=no
1054 # Look at the argument we got. We use all the common list separators.
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1056 for pkg in $enableval; do
1057 if test "X$pkg" = "X$p"; then
1058 enable_fast_install=yes
1060 done
1061 IFS="$ac_save_ifs"
1063 esac
1064 else
1065 enable_fast_install=yes
1068 # Extract the first word of "gcc", so it can be a program name with args.
1069 set dummy gcc; ac_word=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071 echo "configure:1072: checking for $ac_word" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1074 else
1075 if test -n "$CC"; then
1076 ac_cv_prog_CC="$CC" # Let the user override the test.
1077 else
1078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1079 ac_dummy="$PATH"
1080 for ac_dir in $ac_dummy; do
1081 test -z "$ac_dir" && ac_dir=.
1082 if test -f $ac_dir/$ac_word; then
1083 ac_cv_prog_CC="gcc"
1084 break
1086 done
1087 IFS="$ac_save_ifs"
1090 CC="$ac_cv_prog_CC"
1091 if test -n "$CC"; then
1092 echo "$ac_t""$CC" 1>&6
1093 else
1094 echo "$ac_t""no" 1>&6
1097 if test -z "$CC"; then
1098 # Extract the first word of "cc", so it can be a program name with args.
1099 set dummy cc; ac_word=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101 echo "configure:1102: checking for $ac_word" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1104 else
1105 if test -n "$CC"; then
1106 ac_cv_prog_CC="$CC" # Let the user override the test.
1107 else
1108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1109 ac_prog_rejected=no
1110 ac_dummy="$PATH"
1111 for ac_dir in $ac_dummy; do
1112 test -z "$ac_dir" && ac_dir=.
1113 if test -f $ac_dir/$ac_word; then
1114 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1115 ac_prog_rejected=yes
1116 continue
1118 ac_cv_prog_CC="cc"
1119 break
1121 done
1122 IFS="$ac_save_ifs"
1123 if test $ac_prog_rejected = yes; then
1124 # We found a bogon in the path, so make sure we never use it.
1125 set dummy $ac_cv_prog_CC
1126 shift
1127 if test $# -gt 0; then
1128 # We chose a different compiler from the bogus one.
1129 # However, it has the same basename, so the bogon will be chosen
1130 # first if we set CC to just the basename; use the full file name.
1131 shift
1132 set dummy "$ac_dir/$ac_word" "$@"
1133 shift
1134 ac_cv_prog_CC="$@"
1139 CC="$ac_cv_prog_CC"
1140 if test -n "$CC"; then
1141 echo "$ac_t""$CC" 1>&6
1142 else
1143 echo "$ac_t""no" 1>&6
1146 if test -z "$CC"; then
1147 case "`uname -s`" in
1148 *win32* | *WIN32*)
1149 # Extract the first word of "cl", so it can be a program name with args.
1150 set dummy cl; ac_word=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1155 else
1156 if test -n "$CC"; then
1157 ac_cv_prog_CC="$CC" # Let the user override the test.
1158 else
1159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1160 ac_dummy="$PATH"
1161 for ac_dir in $ac_dummy; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_CC="cl"
1165 break
1167 done
1168 IFS="$ac_save_ifs"
1171 CC="$ac_cv_prog_CC"
1172 if test -n "$CC"; then
1173 echo "$ac_t""$CC" 1>&6
1174 else
1175 echo "$ac_t""no" 1>&6
1178 esac
1180 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1183 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1186 ac_ext=c
1187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1188 ac_cpp='$CPP $CPPFLAGS'
1189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1191 cross_compiling=$ac_cv_prog_cc_cross
1193 cat > conftest.$ac_ext << EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1198 main(){return(0);}
1200 if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1201 ac_cv_prog_cc_works=yes
1202 # If we can't run a trivial program, we are probably using a cross compiler.
1203 if (./conftest; exit) 2>/dev/null; then
1204 ac_cv_prog_cc_cross=no
1205 else
1206 ac_cv_prog_cc_cross=yes
1208 else
1209 echo "configure: failed program was:" >&5
1210 cat conftest.$ac_ext >&5
1211 ac_cv_prog_cc_works=no
1213 rm -fr conftest*
1214 ac_ext=c
1215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1216 ac_cpp='$CPP $CPPFLAGS'
1217 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1218 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1219 cross_compiling=$ac_cv_prog_cc_cross
1221 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1222 if test $ac_cv_prog_cc_works = no; then
1223 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1225 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1226 echo "configure:1227: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1227 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1228 cross_compiling=$ac_cv_prog_cc_cross
1230 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1231 echo "configure:1232: checking whether we are using GNU C" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1234 else
1235 cat > conftest.c <<EOF
1236 #ifdef __GNUC__
1237 yes;
1238 #endif
1240 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1241 ac_cv_prog_gcc=yes
1242 else
1243 ac_cv_prog_gcc=no
1247 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1249 if test $ac_cv_prog_gcc = yes; then
1250 GCC=yes
1251 else
1252 GCC=
1255 ac_test_CFLAGS="${CFLAGS+set}"
1256 ac_save_CFLAGS="$CFLAGS"
1257 CFLAGS=
1258 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1259 echo "configure:1260: checking whether ${CC-cc} accepts -g" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1262 else
1263 echo 'void f(){}' > conftest.c
1264 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1265 ac_cv_prog_cc_g=yes
1266 else
1267 ac_cv_prog_cc_g=no
1269 rm -f conftest*
1273 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1274 if test "$ac_test_CFLAGS" = set; then
1275 CFLAGS="$ac_save_CFLAGS"
1276 elif test $ac_cv_prog_cc_g = yes; then
1277 if test "$GCC" = yes; then
1278 CFLAGS="-g -O2"
1279 else
1280 CFLAGS="-g"
1282 else
1283 if test "$GCC" = yes; then
1284 CFLAGS="-O2"
1285 else
1286 CFLAGS=
1290 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1291 if test "${with_gnu_ld+set}" = set; then
1292 withval="$with_gnu_ld"
1293 test "$withval" = no || with_gnu_ld=yes
1294 else
1295 with_gnu_ld=no
1298 ac_prog=ld
1299 if test "$GCC" = yes; then
1300 # Check if gcc -print-prog-name=ld gives a path.
1301 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1302 echo "configure:1303: checking for ld used by GCC" >&5
1303 case $host in
1304 *-*-mingw*)
1305 # gcc leaves a trailing carriage return which upsets mingw
1306 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1308 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1309 esac
1310 case $ac_prog in
1311 # Accept absolute paths.
1312 [\\/]* | [A-Za-z]:[\\/]*)
1313 re_direlt='/[^/][^/]*/\.\./'
1314 # Canonicalize the path of ld
1315 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1316 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1317 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1318 done
1319 test -z "$LD" && LD="$ac_prog"
1322 # If it fails, then pretend we aren't using GCC.
1323 ac_prog=ld
1326 # If it is relative, then search for the first ld in PATH.
1327 with_gnu_ld=unknown
1329 esac
1330 elif test "$with_gnu_ld" = yes; then
1331 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1332 echo "configure:1333: checking for GNU ld" >&5
1333 else
1334 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1335 echo "configure:1336: checking for non-GNU ld" >&5
1337 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1339 else
1340 if test -z "$LD"; then
1341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1342 for ac_dir in $PATH; do
1343 test -z "$ac_dir" && ac_dir=.
1344 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1345 lt_cv_path_LD="$ac_dir/$ac_prog"
1346 # Check to see if the program is GNU ld. I'd rather use --version,
1347 # but apparently some GNU ld's only accept -v.
1348 # Break only if it was the GNU/non-GNU ld that we prefer.
1349 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1350 test "$with_gnu_ld" != no && break
1351 else
1352 test "$with_gnu_ld" != yes && break
1355 done
1356 IFS="$ac_save_ifs"
1357 else
1358 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1362 LD="$lt_cv_path_LD"
1363 if test -n "$LD"; then
1364 echo "$ac_t""$LD" 1>&6
1365 else
1366 echo "$ac_t""no" 1>&6
1368 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1369 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1370 echo "configure:1371: checking if the linker ($LD) is GNU ld" >&5
1371 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1373 else
1374 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1375 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1376 lt_cv_prog_gnu_ld=yes
1377 else
1378 lt_cv_prog_gnu_ld=no
1382 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1383 with_gnu_ld=$lt_cv_prog_gnu_ld
1386 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1387 echo "configure:1388: checking for $LD option to reload object files" >&5
1388 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1390 else
1391 lt_cv_ld_reload_flag='-r'
1394 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1395 reload_flag=$lt_cv_ld_reload_flag
1396 test -n "$reload_flag" && reload_flag=" $reload_flag"
1398 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1399 echo "configure:1400: checking for BSD-compatible nm" >&5
1400 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402 else
1403 if test -n "$NM"; then
1404 # Let the user override the test.
1405 lt_cv_path_NM="$NM"
1406 else
1407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1408 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1409 test -z "$ac_dir" && ac_dir=.
1410 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1411 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1412 # Check to see if the nm accepts a BSD-compat flag.
1413 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1414 # nm: unknown option "B" ignored
1415 # Tru64's nm complains that /dev/null is an invalid object file
1416 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1417 lt_cv_path_NM="$tmp_nm -B"
1418 break
1419 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1420 lt_cv_path_NM="$tmp_nm -p"
1421 break
1422 else
1423 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1424 continue # so that we can try to find one that supports BSD flags
1427 done
1428 IFS="$ac_save_ifs"
1429 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1433 NM="$lt_cv_path_NM"
1434 echo "$ac_t""$NM" 1>&6
1436 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1437 echo "configure:1438: checking whether ln -s works" >&5
1438 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1440 else
1441 rm -f conftestdata
1442 if ln -s X conftestdata 2>/dev/null
1443 then
1444 rm -f conftestdata
1445 ac_cv_prog_LN_S="ln -s"
1446 else
1447 ac_cv_prog_LN_S=ln
1450 LN_S="$ac_cv_prog_LN_S"
1451 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1452 echo "$ac_t""yes" 1>&6
1453 else
1454 echo "$ac_t""no" 1>&6
1457 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1458 echo "configure:1459: checking how to recognise dependant libraries" >&5
1459 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 lt_cv_file_magic_cmd='$MAGIC_CMD'
1463 lt_cv_file_magic_test_file=
1464 lt_cv_deplibs_check_method='unknown'
1465 # Need to set the preceding variable on all platforms that support
1466 # interlibrary dependencies.
1467 # 'none' -- dependencies not supported.
1468 # `unknown' -- same as none, but documents that we really don't know.
1469 # 'pass_all' -- all dependencies passed with no checks.
1470 # 'test_compile' -- check by making test program.
1471 # 'file_magic [regex]' -- check by looking for files in library path
1472 # which responds to the $file_magic_cmd with a given egrep regex.
1473 # If you have `file' or equivalent on your system and you're not sure
1474 # whether `pass_all' will *always* work, you probably want this one.
1476 case $host_os in
1477 aix*)
1478 lt_cv_deplibs_check_method=pass_all
1481 beos*)
1482 lt_cv_deplibs_check_method=pass_all
1485 bsdi4*)
1486 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1487 lt_cv_file_magic_cmd='/usr/bin/file -L'
1488 lt_cv_file_magic_test_file=/shlib/libc.so
1491 cygwin* | mingw* |pw32*)
1492 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1493 lt_cv_file_magic_cmd='$OBJDUMP -f'
1496 darwin* | rhapsody*)
1497 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1498 lt_cv_file_magic_cmd='/usr/bin/file -L'
1499 case "$host_os" in
1500 rhapsody* | darwin1.012)
1501 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1503 *) # Darwin 1.3 on
1504 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1506 esac
1509 freebsd* )
1510 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1511 case $host_cpu in
1512 i*86 )
1513 # Not sure whether the presence of OpenBSD here was a mistake.
1514 # Let's accept both of them until this is cleared up.
1515 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1516 lt_cv_file_magic_cmd=/usr/bin/file
1517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1519 esac
1520 else
1521 lt_cv_deplibs_check_method=pass_all
1525 gnu*)
1526 lt_cv_deplibs_check_method=pass_all
1529 hpux10.20*|hpux11*)
1530 case $host_cpu in
1531 hppa*)
1532 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1533 lt_cv_file_magic_cmd=/usr/bin/file
1534 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1536 ia64*)
1537 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1538 lt_cv_file_magic_cmd=/usr/bin/file
1539 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1541 esac
1544 irix5* | irix6*)
1545 case $host_os in
1546 irix5*)
1547 # this will be overridden with pass_all, but let us keep it just in case
1548 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1551 case $LD in
1552 *-32|*"-32 ") libmagic=32-bit;;
1553 *-n32|*"-n32 ") libmagic=N32;;
1554 *-64|*"-64 ") libmagic=64-bit;;
1555 *) libmagic=never-match;;
1556 esac
1557 # this will be overridden with pass_all, but let us keep it just in case
1558 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1560 esac
1561 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1562 lt_cv_deplibs_check_method=pass_all
1565 # This must be Linux ELF.
1566 linux-gnu*)
1567 case $host_cpu in
1568 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1569 lt_cv_deplibs_check_method=pass_all ;;
1571 # glibc up to 2.1.1 does not perform some relocations on ARM
1572 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1573 esac
1574 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1577 netbsd*)
1578 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1579 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1580 else
1581 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1585 newsos6)
1586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1587 lt_cv_file_magic_cmd=/usr/bin/file
1588 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1591 osf3* | osf4* | osf5*)
1592 # this will be overridden with pass_all, but let us keep it just in case
1593 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1594 lt_cv_file_magic_test_file=/shlib/libc.so
1595 lt_cv_deplibs_check_method=pass_all
1598 sco3.2v5*)
1599 lt_cv_deplibs_check_method=pass_all
1602 solaris*)
1603 lt_cv_deplibs_check_method=pass_all
1604 lt_cv_file_magic_test_file=/lib/libc.so
1607 sysv5uw[78]* | sysv4*uw2*)
1608 lt_cv_deplibs_check_method=pass_all
1611 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1612 case $host_vendor in
1613 ncr)
1614 lt_cv_deplibs_check_method=pass_all
1616 motorola)
1617 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]'
1618 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1620 esac
1622 esac
1626 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1627 file_magic_cmd=$lt_cv_file_magic_cmd
1628 deplibs_check_method=$lt_cv_deplibs_check_method
1630 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1631 echo "configure:1632: checking for object suffix" >&5
1632 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1634 else
1635 rm -f conftest*
1636 echo 'int i = 1;' > conftest.$ac_ext
1637 if { (eval echo configure:1638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1638 for ac_file in conftest.*; do
1639 case $ac_file in
1640 *.c) ;;
1641 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1642 esac
1643 done
1644 else
1645 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1647 rm -f conftest*
1650 echo "$ac_t""$ac_cv_objext" 1>&6
1651 OBJEXT=$ac_cv_objext
1652 ac_objext=$ac_cv_objext
1656 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1657 echo "configure:1658: checking for executable suffix" >&5
1658 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1660 else
1661 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1662 ac_cv_exeext=.exe
1663 else
1664 rm -f conftest*
1665 echo 'int main () { return 0; }' > conftest.$ac_ext
1666 ac_cv_exeext=
1667 if { (eval echo configure:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1668 for file in conftest.*; do
1669 case $file in
1670 *.c | *.o | *.obj) ;;
1671 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1672 esac
1673 done
1674 else
1675 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1677 rm -f conftest*
1678 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1682 EXEEXT=""
1683 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1684 echo "$ac_t""${ac_cv_exeext}" 1>&6
1685 ac_exeext=$EXEEXT
1687 if test $host != $build; then
1688 ac_tool_prefix=${host_alias}-
1689 else
1690 ac_tool_prefix=
1693 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1695 # Only perform the check for file, if the check method requires it
1696 case $deplibs_check_method in
1697 file_magic*)
1698 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1699 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1700 echo "configure:1701: checking for ${ac_tool_prefix}file" >&5
1701 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1703 else
1704 case $MAGIC_CMD in
1706 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1708 ?:/*)
1709 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1712 ac_save_MAGIC_CMD="$MAGIC_CMD"
1713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1714 ac_dummy="/usr/bin:$PATH"
1715 for ac_dir in $ac_dummy; do
1716 test -z "$ac_dir" && ac_dir=.
1717 if test -f $ac_dir/${ac_tool_prefix}file; then
1718 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1719 if test -n "$file_magic_test_file"; then
1720 case $deplibs_check_method in
1721 "file_magic "*)
1722 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1724 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1725 egrep "$file_magic_regex" > /dev/null; then
1727 else
1728 cat <<EOF 1>&2
1730 *** Warning: the command libtool uses to detect shared libraries,
1731 *** $file_magic_cmd, produces output that libtool cannot recognize.
1732 *** The result is that libtool may fail to recognize shared libraries
1733 *** as such. This will affect the creation of libtool libraries that
1734 *** depend on shared libraries, but programs linked with such libtool
1735 *** libraries will work regardless of this problem. Nevertheless, you
1736 *** may want to report the problem to your system manager and/or to
1737 *** bug-libtool@gnu.org
1740 fi ;;
1741 esac
1743 break
1745 done
1746 IFS="$ac_save_ifs"
1747 MAGIC_CMD="$ac_save_MAGIC_CMD"
1749 esac
1752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1753 if test -n "$MAGIC_CMD"; then
1754 echo "$ac_t""$MAGIC_CMD" 1>&6
1755 else
1756 echo "$ac_t""no" 1>&6
1759 if test -z "$lt_cv_path_MAGIC_CMD"; then
1760 if test -n "$ac_tool_prefix"; then
1761 echo $ac_n "checking for file""... $ac_c" 1>&6
1762 echo "configure:1763: checking for file" >&5
1763 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1765 else
1766 case $MAGIC_CMD in
1768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1770 ?:/*)
1771 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1774 ac_save_MAGIC_CMD="$MAGIC_CMD"
1775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1776 ac_dummy="/usr/bin:$PATH"
1777 for ac_dir in $ac_dummy; do
1778 test -z "$ac_dir" && ac_dir=.
1779 if test -f $ac_dir/file; then
1780 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1781 if test -n "$file_magic_test_file"; then
1782 case $deplibs_check_method in
1783 "file_magic "*)
1784 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1786 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1787 egrep "$file_magic_regex" > /dev/null; then
1789 else
1790 cat <<EOF 1>&2
1792 *** Warning: the command libtool uses to detect shared libraries,
1793 *** $file_magic_cmd, produces output that libtool cannot recognize.
1794 *** The result is that libtool may fail to recognize shared libraries
1795 *** as such. This will affect the creation of libtool libraries that
1796 *** depend on shared libraries, but programs linked with such libtool
1797 *** libraries will work regardless of this problem. Nevertheless, you
1798 *** may want to report the problem to your system manager and/or to
1799 *** bug-libtool@gnu.org
1802 fi ;;
1803 esac
1805 break
1807 done
1808 IFS="$ac_save_ifs"
1809 MAGIC_CMD="$ac_save_MAGIC_CMD"
1811 esac
1814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1815 if test -n "$MAGIC_CMD"; then
1816 echo "$ac_t""$MAGIC_CMD" 1>&6
1817 else
1818 echo "$ac_t""no" 1>&6
1821 else
1822 MAGIC_CMD=:
1828 esac
1830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $ac_word" >&5
1834 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1836 else
1837 if test -n "$RANLIB"; then
1838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1839 else
1840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1841 ac_dummy="$PATH"
1842 for ac_dir in $ac_dummy; do
1843 test -z "$ac_dir" && ac_dir=.
1844 if test -f $ac_dir/$ac_word; then
1845 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1846 break
1848 done
1849 IFS="$ac_save_ifs"
1852 RANLIB="$ac_cv_prog_RANLIB"
1853 if test -n "$RANLIB"; then
1854 echo "$ac_t""$RANLIB" 1>&6
1855 else
1856 echo "$ac_t""no" 1>&6
1860 if test -z "$ac_cv_prog_RANLIB"; then
1861 if test -n "$ac_tool_prefix"; then
1862 # Extract the first word of "ranlib", so it can be a program name with args.
1863 set dummy ranlib; ac_word=$2
1864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1865 echo "configure:1866: checking for $ac_word" >&5
1866 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1868 else
1869 if test -n "$RANLIB"; then
1870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1871 else
1872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1873 ac_dummy="$PATH"
1874 for ac_dir in $ac_dummy; do
1875 test -z "$ac_dir" && ac_dir=.
1876 if test -f $ac_dir/$ac_word; then
1877 ac_cv_prog_RANLIB="ranlib"
1878 break
1880 done
1881 IFS="$ac_save_ifs"
1882 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1885 RANLIB="$ac_cv_prog_RANLIB"
1886 if test -n "$RANLIB"; then
1887 echo "$ac_t""$RANLIB" 1>&6
1888 else
1889 echo "$ac_t""no" 1>&6
1892 else
1893 RANLIB=":"
1897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1898 set dummy ${ac_tool_prefix}strip; ac_word=$2
1899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1900 echo "configure:1901: checking for $ac_word" >&5
1901 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1903 else
1904 if test -n "$STRIP"; then
1905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1906 else
1907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1908 ac_dummy="$PATH"
1909 for ac_dir in $ac_dummy; do
1910 test -z "$ac_dir" && ac_dir=.
1911 if test -f $ac_dir/$ac_word; then
1912 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1913 break
1915 done
1916 IFS="$ac_save_ifs"
1919 STRIP="$ac_cv_prog_STRIP"
1920 if test -n "$STRIP"; then
1921 echo "$ac_t""$STRIP" 1>&6
1922 else
1923 echo "$ac_t""no" 1>&6
1927 if test -z "$ac_cv_prog_STRIP"; then
1928 if test -n "$ac_tool_prefix"; then
1929 # Extract the first word of "strip", so it can be a program name with args.
1930 set dummy strip; ac_word=$2
1931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1932 echo "configure:1933: checking for $ac_word" >&5
1933 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1935 else
1936 if test -n "$STRIP"; then
1937 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1938 else
1939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1940 ac_dummy="$PATH"
1941 for ac_dir in $ac_dummy; do
1942 test -z "$ac_dir" && ac_dir=.
1943 if test -f $ac_dir/$ac_word; then
1944 ac_cv_prog_STRIP="strip"
1945 break
1947 done
1948 IFS="$ac_save_ifs"
1949 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1952 STRIP="$ac_cv_prog_STRIP"
1953 if test -n "$STRIP"; then
1954 echo "$ac_t""$STRIP" 1>&6
1955 else
1956 echo "$ac_t""no" 1>&6
1959 else
1960 STRIP=":"
1965 # Check for any special flags to pass to ltconfig.
1966 libtool_flags="--cache-file=$cache_file"
1967 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1968 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1969 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1970 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1971 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1974 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1975 if test "${enable_libtool_lock+set}" = set; then
1976 enableval="$enable_libtool_lock"
1980 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1981 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1983 # Check whether --with-pic or --without-pic was given.
1984 if test "${with_pic+set}" = set; then
1985 withval="$with_pic"
1986 pic_mode="$withval"
1987 else
1988 pic_mode=default
1991 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1992 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1994 # Some flags need to be propagated to the compiler or linker for good
1995 # libtool support.
1996 case $host in
1997 *-*-irix6*)
1998 # Find out which ABI we are using.
1999 echo '#line 2000 "configure"' > conftest.$ac_ext
2000 if { (eval echo configure:2001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2001 case `/usr/bin/file conftest.$ac_objext` in
2002 *32-bit*)
2003 LD="${LD-ld} -32"
2005 *N32*)
2006 LD="${LD-ld} -n32"
2008 *64-bit*)
2009 LD="${LD-ld} -64"
2011 esac
2013 rm -rf conftest*
2016 ia64-*-hpux*)
2017 # Find out which ABI we are using.
2018 echo 'int i;' > conftest.$ac_ext
2019 if { (eval echo configure:2020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2020 case "`/usr/bin/file conftest.o`" in
2021 *ELF-32*)
2022 HPUX_IA64_MODE="32"
2024 *ELF-64*)
2025 HPUX_IA64_MODE="64"
2027 esac
2029 rm -rf conftest*
2032 *-*-sco3.2v5*)
2033 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2034 SAVE_CFLAGS="$CFLAGS"
2035 CFLAGS="$CFLAGS -belf"
2036 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether the C compiler needs -belf" >&5
2038 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2040 else
2042 ac_ext=c
2043 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2046 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2047 cross_compiling=$ac_cv_prog_cc_cross
2049 cat > conftest.$ac_ext <<EOF
2050 #line 2051 "configure"
2051 #include "confdefs.h"
2053 int main() {
2055 ; return 0; }
2057 if { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2058 rm -rf conftest*
2059 lt_cv_cc_needs_belf=yes
2060 else
2061 echo "configure: failed program was:" >&5
2062 cat conftest.$ac_ext >&5
2063 rm -rf conftest*
2064 lt_cv_cc_needs_belf=no
2066 rm -f conftest*
2067 ac_ext=c
2068 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2069 ac_cpp='$CPP $CPPFLAGS'
2070 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2071 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2072 cross_compiling=$ac_cv_prog_cc_cross
2076 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2077 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2078 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2079 CFLAGS="$SAVE_CFLAGS"
2084 esac
2087 # Save cache, so that ltconfig can load it
2088 cat > confcache <<\EOF
2089 # This file is a shell script that caches the results of configure
2090 # tests run on this system so they can be shared between configure
2091 # scripts and configure runs. It is not useful on other systems.
2092 # If it contains results you don't want to keep, you may remove or edit it.
2094 # By default, configure uses ./config.cache as the cache file,
2095 # creating it if it does not exist already. You can give configure
2096 # the --cache-file=FILE option to use a different cache file; that is
2097 # what configure does when it calls configure scripts in
2098 # subdirectories, so they share the cache.
2099 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2100 # config.status only pays attention to the cache file if you give it the
2101 # --recheck option to rerun configure.
2104 # The following way of writing the cache mishandles newlines in values,
2105 # but we know of no workaround that is simple, portable, and efficient.
2106 # So, don't put newlines in cache variables' values.
2107 # Ultrix sh set writes to stderr and can't be redirected directly,
2108 # and sets the high bit in the cache file unless we assign to the vars.
2109 (set) 2>&1 |
2110 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2111 *ac_space=\ *)
2112 # `set' does not quote correctly, so add quotes (double-quote substitution
2113 # turns \\\\ into \\, and sed turns \\ into \).
2114 sed -n \
2115 -e "s/'/'\\\\''/g" \
2116 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2119 # `set' quotes correctly as required by POSIX, so do not add quotes.
2120 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2122 esac >> confcache
2123 if cmp -s $cache_file confcache; then
2125 else
2126 if test -w $cache_file; then
2127 echo "updating cache $cache_file"
2128 cat confcache > $cache_file
2129 else
2130 echo "not updating unwritable cache $cache_file"
2133 rm -f confcache
2136 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2137 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2138 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2139 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2140 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2141 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2142 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2143 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2144 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2145 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2147 # Reload cache, that may have been modified by ltconfig
2148 if test -r "$cache_file"; then
2149 echo "loading cache $cache_file"
2150 . $cache_file
2151 else
2152 echo "creating cache $cache_file"
2153 > $cache_file
2157 # This can be used to rebuild libtool when needed
2158 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2160 # Always use our own libtool.
2161 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2163 # Redirect the config.log output again, so that the ltconfig log is not
2164 # clobbered by the next message.
2165 exec 5>>./config.log
2173 # Check whether --enable-targets or --disable-targets was given.
2174 if test "${enable_targets+set}" = set; then
2175 enableval="$enable_targets"
2176 case "${enableval}" in
2177 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2179 no) enable_targets= ;;
2180 *) enable_targets=$enableval ;;
2181 esac
2183 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2184 if test "${enable_commonbfdlib+set}" = set; then
2185 enableval="$enable_commonbfdlib"
2186 case "${enableval}" in
2187 yes) commonbfdlib=true ;;
2188 no) commonbfdlib=false ;;
2189 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2190 esac
2193 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2194 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2195 if test "${enable_build_warnings+set}" = set; then
2196 enableval="$enable_build_warnings"
2197 case "${enableval}" in
2198 yes) ;;
2199 no) build_warnings="-w";;
2200 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2201 build_warnings="${build_warnings} ${t}";;
2202 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2203 build_warnings="${t} ${build_warnings}";;
2204 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2205 esac
2206 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2207 echo "Setting warning flags = $build_warnings" 6>&1
2210 WARN_CFLAGS=""
2211 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2212 WARN_CFLAGS="${build_warnings}"
2220 if test -z "$target" ; then
2221 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2223 if test -z "$host" ; then
2224 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2227 # Extract the first word of "gcc", so it can be a program name with args.
2228 set dummy gcc; ac_word=$2
2229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_word" >&5
2231 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2233 else
2234 if test -n "$CC"; then
2235 ac_cv_prog_CC="$CC" # Let the user override the test.
2236 else
2237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2238 ac_dummy="$PATH"
2239 for ac_dir in $ac_dummy; do
2240 test -z "$ac_dir" && ac_dir=.
2241 if test -f $ac_dir/$ac_word; then
2242 ac_cv_prog_CC="gcc"
2243 break
2245 done
2246 IFS="$ac_save_ifs"
2249 CC="$ac_cv_prog_CC"
2250 if test -n "$CC"; then
2251 echo "$ac_t""$CC" 1>&6
2252 else
2253 echo "$ac_t""no" 1>&6
2256 if test -z "$CC"; then
2257 # Extract the first word of "cc", so it can be a program name with args.
2258 set dummy cc; ac_word=$2
2259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_word" >&5
2261 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264 if test -n "$CC"; then
2265 ac_cv_prog_CC="$CC" # Let the user override the test.
2266 else
2267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2268 ac_prog_rejected=no
2269 ac_dummy="$PATH"
2270 for ac_dir in $ac_dummy; do
2271 test -z "$ac_dir" && ac_dir=.
2272 if test -f $ac_dir/$ac_word; then
2273 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2274 ac_prog_rejected=yes
2275 continue
2277 ac_cv_prog_CC="cc"
2278 break
2280 done
2281 IFS="$ac_save_ifs"
2282 if test $ac_prog_rejected = yes; then
2283 # We found a bogon in the path, so make sure we never use it.
2284 set dummy $ac_cv_prog_CC
2285 shift
2286 if test $# -gt 0; then
2287 # We chose a different compiler from the bogus one.
2288 # However, it has the same basename, so the bogon will be chosen
2289 # first if we set CC to just the basename; use the full file name.
2290 shift
2291 set dummy "$ac_dir/$ac_word" "$@"
2292 shift
2293 ac_cv_prog_CC="$@"
2298 CC="$ac_cv_prog_CC"
2299 if test -n "$CC"; then
2300 echo "$ac_t""$CC" 1>&6
2301 else
2302 echo "$ac_t""no" 1>&6
2305 if test -z "$CC"; then
2306 case "`uname -s`" in
2307 *win32* | *WIN32*)
2308 # Extract the first word of "cl", so it can be a program name with args.
2309 set dummy cl; ac_word=$2
2310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2311 echo "configure:2312: checking for $ac_word" >&5
2312 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2313 echo $ac_n "(cached) $ac_c" 1>&6
2314 else
2315 if test -n "$CC"; then
2316 ac_cv_prog_CC="$CC" # Let the user override the test.
2317 else
2318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2319 ac_dummy="$PATH"
2320 for ac_dir in $ac_dummy; do
2321 test -z "$ac_dir" && ac_dir=.
2322 if test -f $ac_dir/$ac_word; then
2323 ac_cv_prog_CC="cl"
2324 break
2326 done
2327 IFS="$ac_save_ifs"
2330 CC="$ac_cv_prog_CC"
2331 if test -n "$CC"; then
2332 echo "$ac_t""$CC" 1>&6
2333 else
2334 echo "$ac_t""no" 1>&6
2337 esac
2339 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2342 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2343 echo "configure:2344: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2345 ac_ext=c
2346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2350 cross_compiling=$ac_cv_prog_cc_cross
2352 cat > conftest.$ac_ext << EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2357 main(){return(0);}
2359 if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2360 ac_cv_prog_cc_works=yes
2361 # If we can't run a trivial program, we are probably using a cross compiler.
2362 if (./conftest; exit) 2>/dev/null; then
2363 ac_cv_prog_cc_cross=no
2364 else
2365 ac_cv_prog_cc_cross=yes
2367 else
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2370 ac_cv_prog_cc_works=no
2372 rm -fr conftest*
2373 ac_ext=c
2374 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2377 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2378 cross_compiling=$ac_cv_prog_cc_cross
2380 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2381 if test $ac_cv_prog_cc_works = no; then
2382 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2384 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2385 echo "configure:2386: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2386 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2387 cross_compiling=$ac_cv_prog_cc_cross
2389 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2390 echo "configure:2391: checking whether we are using GNU C" >&5
2391 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2393 else
2394 cat > conftest.c <<EOF
2395 #ifdef __GNUC__
2396 yes;
2397 #endif
2399 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2400 ac_cv_prog_gcc=yes
2401 else
2402 ac_cv_prog_gcc=no
2406 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2408 if test $ac_cv_prog_gcc = yes; then
2409 GCC=yes
2410 else
2411 GCC=
2414 ac_test_CFLAGS="${CFLAGS+set}"
2415 ac_save_CFLAGS="$CFLAGS"
2416 CFLAGS=
2417 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2418 echo "configure:2419: checking whether ${CC-cc} accepts -g" >&5
2419 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2420 echo $ac_n "(cached) $ac_c" 1>&6
2421 else
2422 echo 'void f(){}' > conftest.c
2423 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2424 ac_cv_prog_cc_g=yes
2425 else
2426 ac_cv_prog_cc_g=no
2428 rm -f conftest*
2432 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2433 if test "$ac_test_CFLAGS" = set; then
2434 CFLAGS="$ac_save_CFLAGS"
2435 elif test $ac_cv_prog_cc_g = yes; then
2436 if test "$GCC" = yes; then
2437 CFLAGS="-g -O2"
2438 else
2439 CFLAGS="-g"
2441 else
2442 if test "$GCC" = yes; then
2443 CFLAGS="-O2"
2444 else
2445 CFLAGS=
2450 for ac_prog in 'bison -y' byacc
2452 # Extract the first word of "$ac_prog", so it can be a program name with args.
2453 set dummy $ac_prog; ac_word=$2
2454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2455 echo "configure:2456: checking for $ac_word" >&5
2456 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2458 else
2459 if test -n "$YACC"; then
2460 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2461 else
2462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2463 ac_dummy="$PATH"
2464 for ac_dir in $ac_dummy; do
2465 test -z "$ac_dir" && ac_dir=.
2466 if test -f $ac_dir/$ac_word; then
2467 ac_cv_prog_YACC="$ac_prog"
2468 break
2470 done
2471 IFS="$ac_save_ifs"
2474 YACC="$ac_cv_prog_YACC"
2475 if test -n "$YACC"; then
2476 echo "$ac_t""$YACC" 1>&6
2477 else
2478 echo "$ac_t""no" 1>&6
2481 test -n "$YACC" && break
2482 done
2483 test -n "$YACC" || YACC="yacc"
2485 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2486 echo "configure:2487: checking how to run the C preprocessor" >&5
2487 # On Suns, sometimes $CPP names a directory.
2488 if test -n "$CPP" && test -d "$CPP"; then
2489 CPP=
2491 if test -z "$CPP"; then
2492 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2494 else
2495 # This must be in double quotes, not single quotes, because CPP may get
2496 # substituted into the Makefile and "${CC-cc}" will confuse make.
2497 CPP="${CC-cc} -E"
2498 # On the NeXT, cc -E runs the code through the compiler's parser,
2499 # not just through cpp.
2500 cat > conftest.$ac_ext <<EOF
2501 #line 2502 "configure"
2502 #include "confdefs.h"
2503 #include <assert.h>
2504 Syntax Error
2506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2507 { (eval echo configure:2508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2509 if test -z "$ac_err"; then
2511 else
2512 echo "$ac_err" >&5
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2515 rm -rf conftest*
2516 CPP="${CC-cc} -E -traditional-cpp"
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2520 #include <assert.h>
2521 Syntax Error
2523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2524 { (eval echo configure:2525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2526 if test -z "$ac_err"; then
2528 else
2529 echo "$ac_err" >&5
2530 echo "configure: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2532 rm -rf conftest*
2533 CPP="${CC-cc} -nologo -E"
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 #include <assert.h>
2538 Syntax Error
2540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2541 { (eval echo configure:2542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2543 if test -z "$ac_err"; then
2545 else
2546 echo "$ac_err" >&5
2547 echo "configure: failed program was:" >&5
2548 cat conftest.$ac_ext >&5
2549 rm -rf conftest*
2550 CPP=/lib/cpp
2552 rm -f conftest*
2554 rm -f conftest*
2556 rm -f conftest*
2557 ac_cv_prog_CPP="$CPP"
2559 CPP="$ac_cv_prog_CPP"
2560 else
2561 ac_cv_prog_CPP="$CPP"
2563 echo "$ac_t""$CPP" 1>&6
2565 missing_dir=`cd $ac_aux_dir && pwd`
2566 for ac_prog in flex lex
2568 # Extract the first word of "$ac_prog", so it can be a program name with args.
2569 set dummy $ac_prog; ac_word=$2
2570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2571 echo "configure:2572: checking for $ac_word" >&5
2572 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2574 else
2575 if test -n "$LEX"; then
2576 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2577 else
2578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2579 ac_dummy="$PATH"
2580 for ac_dir in $ac_dummy; do
2581 test -z "$ac_dir" && ac_dir=.
2582 if test -f $ac_dir/$ac_word; then
2583 ac_cv_prog_LEX="$ac_prog"
2584 break
2586 done
2587 IFS="$ac_save_ifs"
2590 LEX="$ac_cv_prog_LEX"
2591 if test -n "$LEX"; then
2592 echo "$ac_t""$LEX" 1>&6
2593 else
2594 echo "$ac_t""no" 1>&6
2597 test -n "$LEX" && break
2598 done
2599 test -n "$LEX" || LEX="$missing_dir/missing flex"
2601 # Extract the first word of "flex", so it can be a program name with args.
2602 set dummy flex; ac_word=$2
2603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2604 echo "configure:2605: checking for $ac_word" >&5
2605 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2607 else
2608 if test -n "$LEX"; then
2609 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2610 else
2611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2612 ac_dummy="$PATH"
2613 for ac_dir in $ac_dummy; do
2614 test -z "$ac_dir" && ac_dir=.
2615 if test -f $ac_dir/$ac_word; then
2616 ac_cv_prog_LEX="flex"
2617 break
2619 done
2620 IFS="$ac_save_ifs"
2621 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2624 LEX="$ac_cv_prog_LEX"
2625 if test -n "$LEX"; then
2626 echo "$ac_t""$LEX" 1>&6
2627 else
2628 echo "$ac_t""no" 1>&6
2631 if test -z "$LEXLIB"
2632 then
2633 case "$LEX" in
2634 flex*) ac_lib=fl ;;
2635 *) ac_lib=l ;;
2636 esac
2637 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2638 echo "configure:2639: checking for yywrap in -l$ac_lib" >&5
2639 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2642 else
2643 ac_save_LIBS="$LIBS"
2644 LIBS="-l$ac_lib $LIBS"
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 /* Override any gcc2 internal prototype to avoid an error. */
2649 /* We use char because int might match the return type of a gcc2
2650 builtin and then its argument prototype would still apply. */
2651 char yywrap();
2653 int main() {
2654 yywrap()
2655 ; return 0; }
2657 if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2658 rm -rf conftest*
2659 eval "ac_cv_lib_$ac_lib_var=yes"
2660 else
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2663 rm -rf conftest*
2664 eval "ac_cv_lib_$ac_lib_var=no"
2666 rm -f conftest*
2667 LIBS="$ac_save_LIBS"
2670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2671 echo "$ac_t""yes" 1>&6
2672 LEXLIB="-l$ac_lib"
2673 else
2674 echo "$ac_t""no" 1>&6
2679 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2680 echo "configure:2681: checking lex output file root" >&5
2681 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2683 else
2684 # The minimal lex program is just a single line: %%. But some broken lexes
2685 # (Solaris, I think it was) want two %% lines, so accommodate them.
2686 echo '%%
2687 %%' | $LEX
2688 if test -f lex.yy.c; then
2689 ac_cv_prog_lex_root=lex.yy
2690 elif test -f lexyy.c; then
2691 ac_cv_prog_lex_root=lexyy
2692 else
2693 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2697 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2698 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2700 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2701 echo "configure:2702: checking whether yytext is a pointer" >&5
2702 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2704 else
2705 # POSIX says lex can declare yytext either as a pointer or an array; the
2706 # default is implementation-dependent. Figure out which it is, since
2707 # not all implementations provide the %pointer and %array declarations.
2708 ac_cv_prog_lex_yytext_pointer=no
2709 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2710 ac_save_LIBS="$LIBS"
2711 LIBS="$LIBS $LEXLIB"
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 `cat $LEX_OUTPUT_ROOT.c`
2716 int main() {
2718 ; return 0; }
2720 if { (eval echo configure:2721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2721 rm -rf conftest*
2722 ac_cv_prog_lex_yytext_pointer=yes
2723 else
2724 echo "configure: failed program was:" >&5
2725 cat conftest.$ac_ext >&5
2727 rm -f conftest*
2728 LIBS="$ac_save_LIBS"
2729 rm -f "${LEX_OUTPUT_ROOT}.c"
2733 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2734 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2735 cat >> confdefs.h <<\EOF
2736 #define YYTEXT_POINTER 1
2742 ALL_LINGUAS="fr tr ja es"
2743 # Extract the first word of "ranlib", so it can be a program name with args.
2744 set dummy ranlib; ac_word=$2
2745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2746 echo "configure:2747: checking for $ac_word" >&5
2747 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2749 else
2750 if test -n "$RANLIB"; then
2751 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2752 else
2753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2754 ac_dummy="$PATH"
2755 for ac_dir in $ac_dummy; do
2756 test -z "$ac_dir" && ac_dir=.
2757 if test -f $ac_dir/$ac_word; then
2758 ac_cv_prog_RANLIB="ranlib"
2759 break
2761 done
2762 IFS="$ac_save_ifs"
2763 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2766 RANLIB="$ac_cv_prog_RANLIB"
2767 if test -n "$RANLIB"; then
2768 echo "$ac_t""$RANLIB" 1>&6
2769 else
2770 echo "$ac_t""no" 1>&6
2773 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2774 echo "configure:2775: checking for ANSI C header files" >&5
2775 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2777 else
2778 cat > conftest.$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2781 #include <stdlib.h>
2782 #include <stdarg.h>
2783 #include <string.h>
2784 #include <float.h>
2786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2787 { (eval echo configure:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2789 if test -z "$ac_err"; then
2790 rm -rf conftest*
2791 ac_cv_header_stdc=yes
2792 else
2793 echo "$ac_err" >&5
2794 echo "configure: failed program was:" >&5
2795 cat conftest.$ac_ext >&5
2796 rm -rf conftest*
2797 ac_cv_header_stdc=no
2799 rm -f conftest*
2801 if test $ac_cv_header_stdc = yes; then
2802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2803 cat > conftest.$ac_ext <<EOF
2804 #line 2805 "configure"
2805 #include "confdefs.h"
2806 #include <string.h>
2808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2809 egrep "memchr" >/dev/null 2>&1; then
2811 else
2812 rm -rf conftest*
2813 ac_cv_header_stdc=no
2815 rm -f conftest*
2819 if test $ac_cv_header_stdc = yes; then
2820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2824 #include <stdlib.h>
2826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2827 egrep "free" >/dev/null 2>&1; then
2829 else
2830 rm -rf conftest*
2831 ac_cv_header_stdc=no
2833 rm -f conftest*
2837 if test $ac_cv_header_stdc = yes; then
2838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2839 if test "$cross_compiling" = yes; then
2841 else
2842 cat > conftest.$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2845 #include <ctype.h>
2846 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2847 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2849 int main () { int i; for (i = 0; i < 256; i++)
2850 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2851 exit (0); }
2854 if { (eval echo configure:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2855 then
2857 else
2858 echo "configure: failed program was:" >&5
2859 cat conftest.$ac_ext >&5
2860 rm -fr conftest*
2861 ac_cv_header_stdc=no
2863 rm -fr conftest*
2869 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2870 if test $ac_cv_header_stdc = yes; then
2871 cat >> confdefs.h <<\EOF
2872 #define STDC_HEADERS 1
2877 echo $ac_n "checking for working const""... $ac_c" 1>&6
2878 echo "configure:2879: checking for working const" >&5
2879 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2881 else
2882 cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2886 int main() {
2888 /* Ultrix mips cc rejects this. */
2889 typedef int charset[2]; const charset x;
2890 /* SunOS 4.1.1 cc rejects this. */
2891 char const *const *ccp;
2892 char **p;
2893 /* NEC SVR4.0.2 mips cc rejects this. */
2894 struct point {int x, y;};
2895 static struct point const zero = {0,0};
2896 /* AIX XL C 1.02.0.0 rejects this.
2897 It does not let you subtract one const X* pointer from another in an arm
2898 of an if-expression whose if-part is not a constant expression */
2899 const char *g = "string";
2900 ccp = &g + (g ? g-g : 0);
2901 /* HPUX 7.0 cc rejects these. */
2902 ++ccp;
2903 p = (char**) ccp;
2904 ccp = (char const *const *) p;
2905 { /* SCO 3.2v4 cc rejects this. */
2906 char *t;
2907 char const *s = 0 ? (char *) 0 : (char const *) 0;
2909 *t++ = 0;
2911 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2912 int x[] = {25, 17};
2913 const int *foo = &x[0];
2914 ++foo;
2916 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2917 typedef const int *iptr;
2918 iptr p = 0;
2919 ++p;
2921 { /* AIX XL C 1.02.0.0 rejects this saying
2922 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2923 struct s { int j; const int *ap[3]; };
2924 struct s *b; b->j = 5;
2926 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2927 const int foo = 10;
2930 ; return 0; }
2932 if { (eval echo configure:2933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2933 rm -rf conftest*
2934 ac_cv_c_const=yes
2935 else
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2938 rm -rf conftest*
2939 ac_cv_c_const=no
2941 rm -f conftest*
2944 echo "$ac_t""$ac_cv_c_const" 1>&6
2945 if test $ac_cv_c_const = no; then
2946 cat >> confdefs.h <<\EOF
2947 #define const
2952 echo $ac_n "checking for inline""... $ac_c" 1>&6
2953 echo "configure:2954: checking for inline" >&5
2954 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2955 echo $ac_n "(cached) $ac_c" 1>&6
2956 else
2957 ac_cv_c_inline=no
2958 for ac_kw in inline __inline__ __inline; do
2959 cat > conftest.$ac_ext <<EOF
2960 #line 2961 "configure"
2961 #include "confdefs.h"
2963 int main() {
2964 } $ac_kw foo() {
2965 ; return 0; }
2967 if { (eval echo configure:2968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2968 rm -rf conftest*
2969 ac_cv_c_inline=$ac_kw; break
2970 else
2971 echo "configure: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2974 rm -f conftest*
2975 done
2979 echo "$ac_t""$ac_cv_c_inline" 1>&6
2980 case "$ac_cv_c_inline" in
2981 inline | yes) ;;
2982 no) cat >> confdefs.h <<\EOF
2983 #define inline
2986 *) cat >> confdefs.h <<EOF
2987 #define inline $ac_cv_c_inline
2990 esac
2992 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2993 echo "configure:2994: checking for off_t" >&5
2994 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2996 else
2997 cat > conftest.$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3000 #include <sys/types.h>
3001 #if STDC_HEADERS
3002 #include <stdlib.h>
3003 #include <stddef.h>
3004 #endif
3006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3007 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3008 rm -rf conftest*
3009 ac_cv_type_off_t=yes
3010 else
3011 rm -rf conftest*
3012 ac_cv_type_off_t=no
3014 rm -f conftest*
3017 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3018 if test $ac_cv_type_off_t = no; then
3019 cat >> confdefs.h <<\EOF
3020 #define off_t long
3025 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3026 echo "configure:3027: checking for size_t" >&5
3027 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3029 else
3030 cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3033 #include <sys/types.h>
3034 #if STDC_HEADERS
3035 #include <stdlib.h>
3036 #include <stddef.h>
3037 #endif
3039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3040 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3041 rm -rf conftest*
3042 ac_cv_type_size_t=yes
3043 else
3044 rm -rf conftest*
3045 ac_cv_type_size_t=no
3047 rm -f conftest*
3050 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3051 if test $ac_cv_type_size_t = no; then
3052 cat >> confdefs.h <<\EOF
3053 #define size_t unsigned
3058 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3059 # for constant arguments. Useless!
3060 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3061 echo "configure:3062: checking for working alloca.h" >&5
3062 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3064 else
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3068 #include <alloca.h>
3069 int main() {
3070 char *p = alloca(2 * sizeof(int));
3071 ; return 0; }
3073 if { (eval echo configure:3074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3074 rm -rf conftest*
3075 ac_cv_header_alloca_h=yes
3076 else
3077 echo "configure: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3079 rm -rf conftest*
3080 ac_cv_header_alloca_h=no
3082 rm -f conftest*
3085 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3086 if test $ac_cv_header_alloca_h = yes; then
3087 cat >> confdefs.h <<\EOF
3088 #define HAVE_ALLOCA_H 1
3093 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3094 echo "configure:3095: checking for alloca" >&5
3095 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3097 else
3098 cat > conftest.$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3102 #ifdef __GNUC__
3103 # define alloca __builtin_alloca
3104 #else
3105 # ifdef _MSC_VER
3106 # include <malloc.h>
3107 # define alloca _alloca
3108 # else
3109 # if HAVE_ALLOCA_H
3110 # include <alloca.h>
3111 # else
3112 # ifdef _AIX
3113 #pragma alloca
3114 # else
3115 # ifndef alloca /* predefined by HP cc +Olibcalls */
3116 char *alloca ();
3117 # endif
3118 # endif
3119 # endif
3120 # endif
3121 #endif
3123 int main() {
3124 char *p = (char *) alloca(1);
3125 ; return 0; }
3127 if { (eval echo configure:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3128 rm -rf conftest*
3129 ac_cv_func_alloca_works=yes
3130 else
3131 echo "configure: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3133 rm -rf conftest*
3134 ac_cv_func_alloca_works=no
3136 rm -f conftest*
3139 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3140 if test $ac_cv_func_alloca_works = yes; then
3141 cat >> confdefs.h <<\EOF
3142 #define HAVE_ALLOCA 1
3147 if test $ac_cv_func_alloca_works = no; then
3148 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3149 # that cause trouble. Some versions do not even contain alloca or
3150 # contain a buggy version. If you still want to use their alloca,
3151 # use ar to extract alloca.o from them instead of compiling alloca.c.
3152 ALLOCA=alloca.${ac_objext}
3153 cat >> confdefs.h <<\EOF
3154 #define C_ALLOCA 1
3158 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3159 echo "configure:3160: checking whether alloca needs Cray hooks" >&5
3160 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3161 echo $ac_n "(cached) $ac_c" 1>&6
3162 else
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3166 #if defined(CRAY) && ! defined(CRAY2)
3167 webecray
3168 #else
3169 wenotbecray
3170 #endif
3173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3174 egrep "webecray" >/dev/null 2>&1; then
3175 rm -rf conftest*
3176 ac_cv_os_cray=yes
3177 else
3178 rm -rf conftest*
3179 ac_cv_os_cray=no
3181 rm -f conftest*
3185 echo "$ac_t""$ac_cv_os_cray" 1>&6
3186 if test $ac_cv_os_cray = yes; then
3187 for ac_func in _getb67 GETB67 getb67; do
3188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3189 echo "configure:3190: checking for $ac_func" >&5
3190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3192 else
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 /* System header to define __stub macros and hopefully few prototypes,
3197 which can conflict with char $ac_func(); below. */
3198 #include <assert.h>
3199 /* Override any gcc2 internal prototype to avoid an error. */
3200 /* We use char because int might match the return type of a gcc2
3201 builtin and then its argument prototype would still apply. */
3202 char $ac_func();
3204 int main() {
3206 /* The GNU C library defines this for functions which it implements
3207 to always fail with ENOSYS. Some functions are actually named
3208 something starting with __ and the normal name is an alias. */
3209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3210 choke me
3211 #else
3212 $ac_func();
3213 #endif
3215 ; return 0; }
3217 if { (eval echo configure:3218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3218 rm -rf conftest*
3219 eval "ac_cv_func_$ac_func=yes"
3220 else
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3223 rm -rf conftest*
3224 eval "ac_cv_func_$ac_func=no"
3226 rm -f conftest*
3229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3230 echo "$ac_t""yes" 1>&6
3231 cat >> confdefs.h <<EOF
3232 #define CRAY_STACKSEG_END $ac_func
3235 break
3236 else
3237 echo "$ac_t""no" 1>&6
3240 done
3243 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3244 echo "configure:3245: checking stack direction for C alloca" >&5
3245 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3246 echo $ac_n "(cached) $ac_c" 1>&6
3247 else
3248 if test "$cross_compiling" = yes; then
3249 ac_cv_c_stack_direction=0
3250 else
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 find_stack_direction ()
3256 static char *addr = 0;
3257 auto char dummy;
3258 if (addr == 0)
3260 addr = &dummy;
3261 return find_stack_direction ();
3263 else
3264 return (&dummy > addr) ? 1 : -1;
3266 main ()
3268 exit (find_stack_direction() < 0);
3271 if { (eval echo configure:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3272 then
3273 ac_cv_c_stack_direction=1
3274 else
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3277 rm -fr conftest*
3278 ac_cv_c_stack_direction=-1
3280 rm -fr conftest*
3285 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3286 cat >> confdefs.h <<EOF
3287 #define STACK_DIRECTION $ac_cv_c_stack_direction
3292 for ac_hdr in unistd.h
3294 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3295 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3296 echo "configure:3297: checking for $ac_hdr" >&5
3297 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3299 else
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 #include <$ac_hdr>
3305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3306 { (eval echo configure:3307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3308 if test -z "$ac_err"; then
3309 rm -rf conftest*
3310 eval "ac_cv_header_$ac_safe=yes"
3311 else
3312 echo "$ac_err" >&5
3313 echo "configure: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3315 rm -rf conftest*
3316 eval "ac_cv_header_$ac_safe=no"
3318 rm -f conftest*
3320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3321 echo "$ac_t""yes" 1>&6
3322 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3323 cat >> confdefs.h <<EOF
3324 #define $ac_tr_hdr 1
3327 else
3328 echo "$ac_t""no" 1>&6
3330 done
3332 for ac_func in getpagesize
3334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3335 echo "configure:3336: checking for $ac_func" >&5
3336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3338 else
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 /* System header to define __stub macros and hopefully few prototypes,
3343 which can conflict with char $ac_func(); below. */
3344 #include <assert.h>
3345 /* Override any gcc2 internal prototype to avoid an error. */
3346 /* We use char because int might match the return type of a gcc2
3347 builtin and then its argument prototype would still apply. */
3348 char $ac_func();
3350 int main() {
3352 /* The GNU C library defines this for functions which it implements
3353 to always fail with ENOSYS. Some functions are actually named
3354 something starting with __ and the normal name is an alias. */
3355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3356 choke me
3357 #else
3358 $ac_func();
3359 #endif
3361 ; return 0; }
3363 if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3364 rm -rf conftest*
3365 eval "ac_cv_func_$ac_func=yes"
3366 else
3367 echo "configure: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3369 rm -rf conftest*
3370 eval "ac_cv_func_$ac_func=no"
3372 rm -f conftest*
3375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3376 echo "$ac_t""yes" 1>&6
3377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3378 cat >> confdefs.h <<EOF
3379 #define $ac_tr_func 1
3382 else
3383 echo "$ac_t""no" 1>&6
3385 done
3387 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3388 echo "configure:3389: checking for working mmap" >&5
3389 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6
3391 else
3392 if test "$cross_compiling" = yes; then
3393 ac_cv_func_mmap_fixed_mapped=no
3394 else
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3399 /* Thanks to Mike Haertel and Jim Avera for this test.
3400 Here is a matrix of mmap possibilities:
3401 mmap private not fixed
3402 mmap private fixed at somewhere currently unmapped
3403 mmap private fixed at somewhere already mapped
3404 mmap shared not fixed
3405 mmap shared fixed at somewhere currently unmapped
3406 mmap shared fixed at somewhere already mapped
3407 For private mappings, we should verify that changes cannot be read()
3408 back from the file, nor mmap's back from the file at a different
3409 address. (There have been systems where private was not correctly
3410 implemented like the infamous i386 svr4.0, and systems where the
3411 VM page cache was not coherent with the filesystem buffer cache
3412 like early versions of FreeBSD and possibly contemporary NetBSD.)
3413 For shared mappings, we should conversely verify that changes get
3414 propogated back to all the places they're supposed to be.
3416 Grep wants private fixed already mapped.
3417 The main things grep needs to know about mmap are:
3418 * does it exist and is it safe to write into the mmap'd area
3419 * how to use it (BSD variants) */
3420 #include <sys/types.h>
3421 #include <fcntl.h>
3422 #include <sys/mman.h>
3424 /* This mess was copied from the GNU getpagesize.h. */
3425 #ifndef HAVE_GETPAGESIZE
3426 # ifdef HAVE_UNISTD_H
3427 # include <unistd.h>
3428 # endif
3430 /* Assume that all systems that can run configure have sys/param.h. */
3431 # ifndef HAVE_SYS_PARAM_H
3432 # define HAVE_SYS_PARAM_H 1
3433 # endif
3435 # ifdef _SC_PAGESIZE
3436 # define getpagesize() sysconf(_SC_PAGESIZE)
3437 # else /* no _SC_PAGESIZE */
3438 # ifdef HAVE_SYS_PARAM_H
3439 # include <sys/param.h>
3440 # ifdef EXEC_PAGESIZE
3441 # define getpagesize() EXEC_PAGESIZE
3442 # else /* no EXEC_PAGESIZE */
3443 # ifdef NBPG
3444 # define getpagesize() NBPG * CLSIZE
3445 # ifndef CLSIZE
3446 # define CLSIZE 1
3447 # endif /* no CLSIZE */
3448 # else /* no NBPG */
3449 # ifdef NBPC
3450 # define getpagesize() NBPC
3451 # else /* no NBPC */
3452 # ifdef PAGESIZE
3453 # define getpagesize() PAGESIZE
3454 # endif /* PAGESIZE */
3455 # endif /* no NBPC */
3456 # endif /* no NBPG */
3457 # endif /* no EXEC_PAGESIZE */
3458 # else /* no HAVE_SYS_PARAM_H */
3459 # define getpagesize() 8192 /* punt totally */
3460 # endif /* no HAVE_SYS_PARAM_H */
3461 # endif /* no _SC_PAGESIZE */
3463 #endif /* no HAVE_GETPAGESIZE */
3465 #ifdef __cplusplus
3466 extern "C" { void *malloc(unsigned); }
3467 #else
3468 char *malloc();
3469 #endif
3472 main()
3474 char *data, *data2, *data3;
3475 int i, pagesize;
3476 int fd;
3478 pagesize = getpagesize();
3481 * First, make a file with some known garbage in it.
3483 data = malloc(pagesize);
3484 if (!data)
3485 exit(1);
3486 for (i = 0; i < pagesize; ++i)
3487 *(data + i) = rand();
3488 umask(0);
3489 fd = creat("conftestmmap", 0600);
3490 if (fd < 0)
3491 exit(1);
3492 if (write(fd, data, pagesize) != pagesize)
3493 exit(1);
3494 close(fd);
3497 * Next, try to mmap the file at a fixed address which
3498 * already has something else allocated at it. If we can,
3499 * also make sure that we see the same garbage.
3501 fd = open("conftestmmap", O_RDWR);
3502 if (fd < 0)
3503 exit(1);
3504 data2 = malloc(2 * pagesize);
3505 if (!data2)
3506 exit(1);
3507 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3508 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3509 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3510 exit(1);
3511 for (i = 0; i < pagesize; ++i)
3512 if (*(data + i) != *(data2 + i))
3513 exit(1);
3516 * Finally, make sure that changes to the mapped area
3517 * do not percolate back to the file as seen by read().
3518 * (This is a bug on some variants of i386 svr4.0.)
3520 for (i = 0; i < pagesize; ++i)
3521 *(data2 + i) = *(data2 + i) + 1;
3522 data3 = malloc(pagesize);
3523 if (!data3)
3524 exit(1);
3525 if (read(fd, data3, pagesize) != pagesize)
3526 exit(1);
3527 for (i = 0; i < pagesize; ++i)
3528 if (*(data + i) != *(data3 + i))
3529 exit(1);
3530 close(fd);
3531 unlink("conftestmmap");
3532 exit(0);
3536 if { (eval echo configure:3537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3537 then
3538 ac_cv_func_mmap_fixed_mapped=yes
3539 else
3540 echo "configure: failed program was:" >&5
3541 cat conftest.$ac_ext >&5
3542 rm -fr conftest*
3543 ac_cv_func_mmap_fixed_mapped=no
3545 rm -fr conftest*
3550 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3551 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3552 cat >> confdefs.h <<\EOF
3553 #define HAVE_MMAP 1
3559 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3560 unistd.h values.h sys/param.h
3562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3564 echo "configure:3565: checking for $ac_hdr" >&5
3565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3567 else
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 #include <$ac_hdr>
3573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3574 { (eval echo configure:3575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3576 if test -z "$ac_err"; then
3577 rm -rf conftest*
3578 eval "ac_cv_header_$ac_safe=yes"
3579 else
3580 echo "$ac_err" >&5
3581 echo "configure: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3583 rm -rf conftest*
3584 eval "ac_cv_header_$ac_safe=no"
3586 rm -f conftest*
3588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3589 echo "$ac_t""yes" 1>&6
3590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3591 cat >> confdefs.h <<EOF
3592 #define $ac_tr_hdr 1
3595 else
3596 echo "$ac_t""no" 1>&6
3598 done
3600 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3601 __argz_count __argz_stringify __argz_next
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+set}" != "set"; then
3658 for ac_func in stpcpy
3660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3661 echo "configure:3662: checking for $ac_func" >&5
3662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3664 else
3665 cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 /* System header to define __stub macros and hopefully few prototypes,
3669 which can conflict with char $ac_func(); below. */
3670 #include <assert.h>
3671 /* Override any gcc2 internal prototype to avoid an error. */
3672 /* We use char because int might match the return type of a gcc2
3673 builtin and then its argument prototype would still apply. */
3674 char $ac_func();
3676 int main() {
3678 /* The GNU C library defines this for functions which it implements
3679 to always fail with ENOSYS. Some functions are actually named
3680 something starting with __ and the normal name is an alias. */
3681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3682 choke me
3683 #else
3684 $ac_func();
3685 #endif
3687 ; return 0; }
3689 if { (eval echo configure:3690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3690 rm -rf conftest*
3691 eval "ac_cv_func_$ac_func=yes"
3692 else
3693 echo "configure: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3695 rm -rf conftest*
3696 eval "ac_cv_func_$ac_func=no"
3698 rm -f conftest*
3701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3702 echo "$ac_t""yes" 1>&6
3703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3704 cat >> confdefs.h <<EOF
3705 #define $ac_tr_func 1
3708 else
3709 echo "$ac_t""no" 1>&6
3711 done
3714 if test "${ac_cv_func_stpcpy}" = "yes"; then
3715 cat >> confdefs.h <<\EOF
3716 #define HAVE_STPCPY 1
3721 if test $ac_cv_header_locale_h = yes; then
3722 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3723 echo "configure:3724: checking for LC_MESSAGES" >&5
3724 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3726 else
3727 cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 #include <locale.h>
3731 int main() {
3732 return LC_MESSAGES
3733 ; return 0; }
3735 if { (eval echo configure:3736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3736 rm -rf conftest*
3737 am_cv_val_LC_MESSAGES=yes
3738 else
3739 echo "configure: failed program was:" >&5
3740 cat conftest.$ac_ext >&5
3741 rm -rf conftest*
3742 am_cv_val_LC_MESSAGES=no
3744 rm -f conftest*
3747 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3748 if test $am_cv_val_LC_MESSAGES = yes; then
3749 cat >> confdefs.h <<\EOF
3750 #define HAVE_LC_MESSAGES 1
3755 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3756 echo "configure:3757: checking whether NLS is requested" >&5
3757 # Check whether --enable-nls or --disable-nls was given.
3758 if test "${enable_nls+set}" = set; then
3759 enableval="$enable_nls"
3760 USE_NLS=$enableval
3761 else
3762 USE_NLS=yes
3765 echo "$ac_t""$USE_NLS" 1>&6
3768 USE_INCLUDED_LIBINTL=no
3770 if test "$USE_NLS" = "yes"; then
3771 cat >> confdefs.h <<\EOF
3772 #define ENABLE_NLS 1
3775 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3776 echo "configure:3777: checking whether included gettext is requested" >&5
3777 # Check whether --with-included-gettext or --without-included-gettext was given.
3778 if test "${with_included_gettext+set}" = set; then
3779 withval="$with_included_gettext"
3780 nls_cv_force_use_gnu_gettext=$withval
3781 else
3782 nls_cv_force_use_gnu_gettext=no
3785 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3787 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3788 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3789 nls_cv_header_intl=
3790 nls_cv_header_libgt=
3791 CATOBJEXT=NONE
3793 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3794 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3795 echo "configure:3796: checking for libintl.h" >&5
3796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3798 else
3799 cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3802 #include <libintl.h>
3804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3805 { (eval echo configure:3806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3807 if test -z "$ac_err"; then
3808 rm -rf conftest*
3809 eval "ac_cv_header_$ac_safe=yes"
3810 else
3811 echo "$ac_err" >&5
3812 echo "configure: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3814 rm -rf conftest*
3815 eval "ac_cv_header_$ac_safe=no"
3817 rm -f conftest*
3819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3820 echo "$ac_t""yes" 1>&6
3821 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3822 echo "configure:3823: checking for gettext in libc" >&5
3823 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3825 else
3826 cat > conftest.$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3829 #include <libintl.h>
3830 int main() {
3831 return (int) gettext ("")
3832 ; return 0; }
3834 if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3835 rm -rf conftest*
3836 gt_cv_func_gettext_libc=yes
3837 else
3838 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3840 rm -rf conftest*
3841 gt_cv_func_gettext_libc=no
3843 rm -f conftest*
3846 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3848 if test "$gt_cv_func_gettext_libc" != "yes"; then
3849 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3850 echo "configure:3851: checking for bindtextdomain in -lintl" >&5
3851 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3854 else
3855 ac_save_LIBS="$LIBS"
3856 LIBS="-lintl $LIBS"
3857 cat > conftest.$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 /* Override any gcc2 internal prototype to avoid an error. */
3861 /* We use char because int might match the return type of a gcc2
3862 builtin and then its argument prototype would still apply. */
3863 char bindtextdomain();
3865 int main() {
3866 bindtextdomain()
3867 ; return 0; }
3869 if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3870 rm -rf conftest*
3871 eval "ac_cv_lib_$ac_lib_var=yes"
3872 else
3873 echo "configure: failed program was:" >&5
3874 cat conftest.$ac_ext >&5
3875 rm -rf conftest*
3876 eval "ac_cv_lib_$ac_lib_var=no"
3878 rm -f conftest*
3879 LIBS="$ac_save_LIBS"
3882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3883 echo "$ac_t""yes" 1>&6
3884 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3885 echo "configure:3886: checking for gettext in libintl" >&5
3886 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3888 else
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3893 int main() {
3894 return (int) gettext ("")
3895 ; return 0; }
3897 if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3898 rm -rf conftest*
3899 gt_cv_func_gettext_libintl=yes
3900 else
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3903 rm -rf conftest*
3904 gt_cv_func_gettext_libintl=no
3906 rm -f conftest*
3909 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3910 else
3911 echo "$ac_t""no" 1>&6
3916 if test "$gt_cv_func_gettext_libc" = "yes" \
3917 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3918 cat >> confdefs.h <<\EOF
3919 #define HAVE_GETTEXT 1
3922 # Extract the first word of "msgfmt", so it can be a program name with args.
3923 set dummy msgfmt; ac_word=$2
3924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3925 echo "configure:3926: checking for $ac_word" >&5
3926 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3928 else
3929 case "$MSGFMT" in
3931 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3935 for ac_dir in $PATH; do
3936 test -z "$ac_dir" && ac_dir=.
3937 if test -f $ac_dir/$ac_word; then
3938 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3939 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3940 break
3943 done
3944 IFS="$ac_save_ifs"
3945 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3947 esac
3949 MSGFMT="$ac_cv_path_MSGFMT"
3950 if test -n "$MSGFMT"; then
3951 echo "$ac_t""$MSGFMT" 1>&6
3952 else
3953 echo "$ac_t""no" 1>&6
3955 if test "$MSGFMT" != "no"; then
3956 for ac_func in dcgettext
3958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3959 echo "configure:3960: checking for $ac_func" >&5
3960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3962 else
3963 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3966 /* System header to define __stub macros and hopefully few prototypes,
3967 which can conflict with char $ac_func(); below. */
3968 #include <assert.h>
3969 /* Override any gcc2 internal prototype to avoid an error. */
3970 /* We use char because int might match the return type of a gcc2
3971 builtin and then its argument prototype would still apply. */
3972 char $ac_func();
3974 int main() {
3976 /* The GNU C library defines this for functions which it implements
3977 to always fail with ENOSYS. Some functions are actually named
3978 something starting with __ and the normal name is an alias. */
3979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3980 choke me
3981 #else
3982 $ac_func();
3983 #endif
3985 ; return 0; }
3987 if { (eval echo configure:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3988 rm -rf conftest*
3989 eval "ac_cv_func_$ac_func=yes"
3990 else
3991 echo "configure: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3993 rm -rf conftest*
3994 eval "ac_cv_func_$ac_func=no"
3996 rm -f conftest*
3999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4000 echo "$ac_t""yes" 1>&6
4001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4002 cat >> confdefs.h <<EOF
4003 #define $ac_tr_func 1
4006 else
4007 echo "$ac_t""no" 1>&6
4009 done
4011 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4012 set dummy gmsgfmt; ac_word=$2
4013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4014 echo "configure:4015: checking for $ac_word" >&5
4015 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4016 echo $ac_n "(cached) $ac_c" 1>&6
4017 else
4018 case "$GMSGFMT" in
4020 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4022 ?:/*)
4023 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4027 ac_dummy="$PATH"
4028 for ac_dir in $ac_dummy; do
4029 test -z "$ac_dir" && ac_dir=.
4030 if test -f $ac_dir/$ac_word; then
4031 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4032 break
4034 done
4035 IFS="$ac_save_ifs"
4036 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4038 esac
4040 GMSGFMT="$ac_cv_path_GMSGFMT"
4041 if test -n "$GMSGFMT"; then
4042 echo "$ac_t""$GMSGFMT" 1>&6
4043 else
4044 echo "$ac_t""no" 1>&6
4047 # Extract the first word of "xgettext", so it can be a program name with args.
4048 set dummy xgettext; ac_word=$2
4049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4050 echo "configure:4051: checking for $ac_word" >&5
4051 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4052 echo $ac_n "(cached) $ac_c" 1>&6
4053 else
4054 case "$XGETTEXT" in
4056 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4060 for ac_dir in $PATH; do
4061 test -z "$ac_dir" && ac_dir=.
4062 if test -f $ac_dir/$ac_word; then
4063 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4064 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4065 break
4068 done
4069 IFS="$ac_save_ifs"
4070 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4072 esac
4074 XGETTEXT="$ac_cv_path_XGETTEXT"
4075 if test -n "$XGETTEXT"; then
4076 echo "$ac_t""$XGETTEXT" 1>&6
4077 else
4078 echo "$ac_t""no" 1>&6
4081 cat > conftest.$ac_ext <<EOF
4082 #line 4083 "configure"
4083 #include "confdefs.h"
4085 int main() {
4086 extern int _nl_msg_cat_cntr;
4087 return _nl_msg_cat_cntr
4088 ; return 0; }
4090 if { (eval echo configure:4091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4091 rm -rf conftest*
4092 CATOBJEXT=.gmo
4093 DATADIRNAME=share
4094 else
4095 echo "configure: failed program was:" >&5
4096 cat conftest.$ac_ext >&5
4097 rm -rf conftest*
4098 CATOBJEXT=.mo
4099 DATADIRNAME=lib
4101 rm -f conftest*
4102 INSTOBJEXT=.mo
4106 else
4107 echo "$ac_t""no" 1>&6
4112 if test "$CATOBJEXT" = "NONE"; then
4113 nls_cv_use_gnu_gettext=yes
4117 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4118 INTLOBJS="\$(GETTOBJS)"
4119 # Extract the first word of "msgfmt", so it can be a program name with args.
4120 set dummy msgfmt; ac_word=$2
4121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4122 echo "configure:4123: checking for $ac_word" >&5
4123 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4124 echo $ac_n "(cached) $ac_c" 1>&6
4125 else
4126 case "$MSGFMT" in
4128 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4132 for ac_dir in $PATH; do
4133 test -z "$ac_dir" && ac_dir=.
4134 if test -f $ac_dir/$ac_word; then
4135 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4136 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4137 break
4140 done
4141 IFS="$ac_save_ifs"
4142 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4144 esac
4146 MSGFMT="$ac_cv_path_MSGFMT"
4147 if test -n "$MSGFMT"; then
4148 echo "$ac_t""$MSGFMT" 1>&6
4149 else
4150 echo "$ac_t""no" 1>&6
4153 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4154 set dummy gmsgfmt; ac_word=$2
4155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4156 echo "configure:4157: checking for $ac_word" >&5
4157 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4159 else
4160 case "$GMSGFMT" in
4162 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4164 ?:/*)
4165 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4169 ac_dummy="$PATH"
4170 for ac_dir in $ac_dummy; do
4171 test -z "$ac_dir" && ac_dir=.
4172 if test -f $ac_dir/$ac_word; then
4173 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4174 break
4176 done
4177 IFS="$ac_save_ifs"
4178 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4180 esac
4182 GMSGFMT="$ac_cv_path_GMSGFMT"
4183 if test -n "$GMSGFMT"; then
4184 echo "$ac_t""$GMSGFMT" 1>&6
4185 else
4186 echo "$ac_t""no" 1>&6
4189 # Extract the first word of "xgettext", so it can be a program name with args.
4190 set dummy xgettext; ac_word=$2
4191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4192 echo "configure:4193: checking for $ac_word" >&5
4193 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4195 else
4196 case "$XGETTEXT" in
4198 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4202 for ac_dir in $PATH; do
4203 test -z "$ac_dir" && ac_dir=.
4204 if test -f $ac_dir/$ac_word; then
4205 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4206 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4207 break
4210 done
4211 IFS="$ac_save_ifs"
4212 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4214 esac
4216 XGETTEXT="$ac_cv_path_XGETTEXT"
4217 if test -n "$XGETTEXT"; then
4218 echo "$ac_t""$XGETTEXT" 1>&6
4219 else
4220 echo "$ac_t""no" 1>&6
4224 USE_INCLUDED_LIBINTL=yes
4225 CATOBJEXT=.gmo
4226 INSTOBJEXT=.mo
4227 DATADIRNAME=share
4228 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4229 INTLLIBS=$INTLDEPS
4230 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4231 nls_cv_header_intl=libintl.h
4232 nls_cv_header_libgt=libgettext.h
4235 if test "$XGETTEXT" != ":"; then
4236 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4238 else
4239 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4240 XGETTEXT=":"
4244 # We need to process the po/ directory.
4245 POSUB=po
4246 else
4247 DATADIRNAME=share
4248 nls_cv_header_intl=libintl.h
4249 nls_cv_header_libgt=libgettext.h
4252 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4253 # because some of the sources are only built for this goal.
4254 if test "$PACKAGE" = gettext; then
4255 USE_NLS=yes
4256 USE_INCLUDED_LIBINTL=yes
4259 for lang in $ALL_LINGUAS; do
4260 GMOFILES="$GMOFILES $lang.gmo"
4261 POFILES="$POFILES $lang.po"
4262 done
4277 if test "x$CATOBJEXT" != "x"; then
4278 if test "x$ALL_LINGUAS" = "x"; then
4279 LINGUAS=
4280 else
4281 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4282 echo "configure:4283: checking for catalogs to be installed" >&5
4283 NEW_LINGUAS=
4284 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4285 case "$ALL_LINGUAS" in
4286 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4287 esac
4288 done
4289 LINGUAS=$NEW_LINGUAS
4290 echo "$ac_t""$LINGUAS" 1>&6
4293 if test -n "$LINGUAS"; then
4294 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4298 if test $ac_cv_header_locale_h = yes; then
4299 INCLUDE_LOCALE_H="#include <locale.h>"
4300 else
4301 INCLUDE_LOCALE_H="\
4302 /* The system does not provide the header <locale.h>. Take care yourself. */"
4306 if test -f $srcdir/po2tbl.sed.in; then
4307 if test "$CATOBJEXT" = ".cat"; then
4308 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4309 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4310 echo "configure:4311: checking for linux/version.h" >&5
4311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4313 else
4314 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317 #include <linux/version.h>
4319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4320 { (eval echo configure:4321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4322 if test -z "$ac_err"; then
4323 rm -rf conftest*
4324 eval "ac_cv_header_$ac_safe=yes"
4325 else
4326 echo "$ac_err" >&5
4327 echo "configure: failed program was:" >&5
4328 cat conftest.$ac_ext >&5
4329 rm -rf conftest*
4330 eval "ac_cv_header_$ac_safe=no"
4332 rm -f conftest*
4334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4335 echo "$ac_t""yes" 1>&6
4336 msgformat=linux
4337 else
4338 echo "$ac_t""no" 1>&6
4339 msgformat=xopen
4343 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4345 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4346 $srcdir/po2tbl.sed.in > po2tbl.sed
4349 if test "$PACKAGE" = "gettext"; then
4350 GT_NO="#NO#"
4351 GT_YES=
4352 else
4353 GT_NO=
4354 GT_YES="#YES#"
4359 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4365 if test -f $srcdir/po/POTFILES.in; then
4366 test -d po || mkdir po
4367 if test "x$srcdir" != "x."; then
4368 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4369 posrcprefix="$srcdir/"
4370 else
4371 posrcprefix="../$srcdir/"
4373 else
4374 posrcprefix="../"
4376 rm -f po/POTFILES
4377 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4378 < $srcdir/po/POTFILES.in > po/POTFILES
4382 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4383 echo "configure:4384: checking whether to enable maintainer-specific portions of Makefiles" >&5
4384 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4385 if test "${enable_maintainer_mode+set}" = set; then
4386 enableval="$enable_maintainer_mode"
4387 USE_MAINTAINER_MODE=$enableval
4388 else
4389 USE_MAINTAINER_MODE=no
4392 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4395 if test $USE_MAINTAINER_MODE = yes; then
4396 MAINTAINER_MODE_TRUE=
4397 MAINTAINER_MODE_FALSE='#'
4398 else
4399 MAINTAINER_MODE_TRUE='#'
4400 MAINTAINER_MODE_FALSE=
4402 MAINT=$MAINTAINER_MODE_TRUE
4407 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4408 echo "configure:4409: checking for executable suffix" >&5
4409 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4411 else
4412 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4413 ac_cv_exeext=.exe
4414 else
4415 rm -f conftest*
4416 echo 'int main () { return 0; }' > conftest.$ac_ext
4417 ac_cv_exeext=
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4419 for file in conftest.*; do
4420 case $file in
4421 *.c | *.o | *.obj) ;;
4422 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4423 esac
4424 done
4425 else
4426 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4428 rm -f conftest*
4429 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4433 EXEEXT=""
4434 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4435 echo "$ac_t""${ac_cv_exeext}" 1>&6
4436 ac_exeext=$EXEEXT
4438 if test -n "$EXEEXT"; then
4439 cat >> confdefs.h <<\EOF
4440 #define HAVE_EXECUTABLE_SUFFIX 1
4444 cat >> confdefs.h <<EOF
4445 #define EXECUTABLE_SUFFIX "${EXEEXT}"
4449 # host-specific stuff:
4451 HDEFINES=
4453 . ${srcdir}/../bfd/configure.host
4456 AR=${AR-ar}
4458 # Extract the first word of "ranlib", so it can be a program name with args.
4459 set dummy ranlib; ac_word=$2
4460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4461 echo "configure:4462: checking for $ac_word" >&5
4462 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4463 echo $ac_n "(cached) $ac_c" 1>&6
4464 else
4465 if test -n "$RANLIB"; then
4466 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4467 else
4468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4469 ac_dummy="$PATH"
4470 for ac_dir in $ac_dummy; do
4471 test -z "$ac_dir" && ac_dir=.
4472 if test -f $ac_dir/$ac_word; then
4473 ac_cv_prog_RANLIB="ranlib"
4474 break
4476 done
4477 IFS="$ac_save_ifs"
4478 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4481 RANLIB="$ac_cv_prog_RANLIB"
4482 if test -n "$RANLIB"; then
4483 echo "$ac_t""$RANLIB" 1>&6
4484 else
4485 echo "$ac_t""no" 1>&6
4488 # Find a good install program. We prefer a C program (faster),
4489 # so one script is as good as another. But avoid the broken or
4490 # incompatible versions:
4491 # SysV /etc/install, /usr/sbin/install
4492 # SunOS /usr/etc/install
4493 # IRIX /sbin/install
4494 # AIX /bin/install
4495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4498 # ./install, which can be erroneously created by make from ./install.sh.
4499 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4500 echo "configure:4501: checking for a BSD compatible install" >&5
4501 if test -z "$INSTALL"; then
4502 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4503 echo $ac_n "(cached) $ac_c" 1>&6
4504 else
4505 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4506 for ac_dir in $PATH; do
4507 # Account for people who put trailing slashes in PATH elements.
4508 case "$ac_dir/" in
4509 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4511 # OSF1 and SCO ODT 3.0 have their own names for install.
4512 # Don't use installbsd from OSF since it installs stuff as root
4513 # by default.
4514 for ac_prog in ginstall scoinst install; do
4515 if test -f $ac_dir/$ac_prog; then
4516 if test $ac_prog = install &&
4517 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4518 # AIX install. It has an incompatible calling convention.
4520 else
4521 ac_cv_path_install="$ac_dir/$ac_prog -c"
4522 break 2
4525 done
4527 esac
4528 done
4529 IFS="$ac_save_IFS"
4532 if test "${ac_cv_path_install+set}" = set; then
4533 INSTALL="$ac_cv_path_install"
4534 else
4535 # As a last resort, use the slow shell script. We don't cache a
4536 # path for INSTALL within a source directory, because that will
4537 # break other packages using the cache if that directory is
4538 # removed, or if the path is relative.
4539 INSTALL="$ac_install_sh"
4542 echo "$ac_t""$INSTALL" 1>&6
4544 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4545 # It thinks the first close brace ends the variable substitution.
4546 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4548 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4550 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4553 # Put a plausible default for CC_FOR_BUILD in Makefile.
4554 if test -z "$CC_FOR_BUILD"; then
4555 if test "x$cross_compiling" = "xno"; then
4556 CC_FOR_BUILD='$(CC)'
4557 else
4558 CC_FOR_BUILD=gcc
4562 # Also set EXEEXT_FOR_BUILD.
4563 if test "x$cross_compiling" = "xno"; then
4564 EXEEXT_FOR_BUILD='$(EXEEXT)'
4565 else
4566 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4567 echo "configure:4568: checking for build system executable suffix" >&5
4568 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4570 else
4571 rm -f conftest*
4572 echo 'int main () { return 0; }' > conftest.c
4573 bfd_cv_build_exeext=
4574 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4575 for file in conftest.*; do
4576 case $file in
4577 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4578 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4579 esac
4580 done
4581 rm -f conftest*
4582 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4585 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4586 EXEEXT_FOR_BUILD=""
4587 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4591 DEMANGLER_NAME=c++filt
4592 case "${host}" in
4593 *-*-go32* | *-*-msdos*)
4594 DEMANGLER_NAME=cxxfilt
4595 esac
4598 for ac_hdr in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
4600 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4602 echo "configure:4603: checking for $ac_hdr" >&5
4603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4605 else
4606 cat > conftest.$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4609 #include <$ac_hdr>
4611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4612 { (eval echo configure:4613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4614 if test -z "$ac_err"; then
4615 rm -rf conftest*
4616 eval "ac_cv_header_$ac_safe=yes"
4617 else
4618 echo "$ac_err" >&5
4619 echo "configure: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4621 rm -rf conftest*
4622 eval "ac_cv_header_$ac_safe=no"
4624 rm -f conftest*
4626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4627 echo "$ac_t""yes" 1>&6
4628 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4629 cat >> confdefs.h <<EOF
4630 #define $ac_tr_hdr 1
4633 else
4634 echo "$ac_t""no" 1>&6
4636 done
4638 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4639 echo "configure:4640: checking for sys/wait.h that is POSIX.1 compatible" >&5
4640 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4642 else
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 #include <sys/types.h>
4647 #include <sys/wait.h>
4648 #ifndef WEXITSTATUS
4649 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4650 #endif
4651 #ifndef WIFEXITED
4652 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4653 #endif
4654 int main() {
4655 int s;
4656 wait (&s);
4657 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4658 ; return 0; }
4660 if { (eval echo configure:4661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4661 rm -rf conftest*
4662 ac_cv_header_sys_wait_h=yes
4663 else
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4666 rm -rf conftest*
4667 ac_cv_header_sys_wait_h=no
4669 rm -f conftest*
4672 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4673 if test $ac_cv_header_sys_wait_h = yes; then
4674 cat >> confdefs.h <<\EOF
4675 #define HAVE_SYS_WAIT_H 1
4680 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4681 # for constant arguments. Useless!
4682 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4683 echo "configure:4684: checking for working alloca.h" >&5
4684 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4686 else
4687 cat > conftest.$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4690 #include <alloca.h>
4691 int main() {
4692 char *p = alloca(2 * sizeof(int));
4693 ; return 0; }
4695 if { (eval echo configure:4696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4696 rm -rf conftest*
4697 ac_cv_header_alloca_h=yes
4698 else
4699 echo "configure: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4701 rm -rf conftest*
4702 ac_cv_header_alloca_h=no
4704 rm -f conftest*
4707 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4708 if test $ac_cv_header_alloca_h = yes; then
4709 cat >> confdefs.h <<\EOF
4710 #define HAVE_ALLOCA_H 1
4715 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4716 echo "configure:4717: checking for alloca" >&5
4717 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4719 else
4720 cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4724 #ifdef __GNUC__
4725 # define alloca __builtin_alloca
4726 #else
4727 # ifdef _MSC_VER
4728 # include <malloc.h>
4729 # define alloca _alloca
4730 # else
4731 # if HAVE_ALLOCA_H
4732 # include <alloca.h>
4733 # else
4734 # ifdef _AIX
4735 #pragma alloca
4736 # else
4737 # ifndef alloca /* predefined by HP cc +Olibcalls */
4738 char *alloca ();
4739 # endif
4740 # endif
4741 # endif
4742 # endif
4743 #endif
4745 int main() {
4746 char *p = (char *) alloca(1);
4747 ; return 0; }
4749 if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4750 rm -rf conftest*
4751 ac_cv_func_alloca_works=yes
4752 else
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4755 rm -rf conftest*
4756 ac_cv_func_alloca_works=no
4758 rm -f conftest*
4761 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4762 if test $ac_cv_func_alloca_works = yes; then
4763 cat >> confdefs.h <<\EOF
4764 #define HAVE_ALLOCA 1
4769 if test $ac_cv_func_alloca_works = no; then
4770 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4771 # that cause trouble. Some versions do not even contain alloca or
4772 # contain a buggy version. If you still want to use their alloca,
4773 # use ar to extract alloca.o from them instead of compiling alloca.c.
4774 ALLOCA=alloca.${ac_objext}
4775 cat >> confdefs.h <<\EOF
4776 #define C_ALLOCA 1
4780 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4781 echo "configure:4782: checking whether alloca needs Cray hooks" >&5
4782 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4784 else
4785 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure"
4787 #include "confdefs.h"
4788 #if defined(CRAY) && ! defined(CRAY2)
4789 webecray
4790 #else
4791 wenotbecray
4792 #endif
4795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4796 egrep "webecray" >/dev/null 2>&1; then
4797 rm -rf conftest*
4798 ac_cv_os_cray=yes
4799 else
4800 rm -rf conftest*
4801 ac_cv_os_cray=no
4803 rm -f conftest*
4807 echo "$ac_t""$ac_cv_os_cray" 1>&6
4808 if test $ac_cv_os_cray = yes; then
4809 for ac_func in _getb67 GETB67 getb67; do
4810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4811 echo "configure:4812: checking for $ac_func" >&5
4812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4814 else
4815 cat > conftest.$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4818 /* System header to define __stub macros and hopefully few prototypes,
4819 which can conflict with char $ac_func(); below. */
4820 #include <assert.h>
4821 /* Override any gcc2 internal prototype to avoid an error. */
4822 /* We use char because int might match the return type of a gcc2
4823 builtin and then its argument prototype would still apply. */
4824 char $ac_func();
4826 int main() {
4828 /* The GNU C library defines this for functions which it implements
4829 to always fail with ENOSYS. Some functions are actually named
4830 something starting with __ and the normal name is an alias. */
4831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4832 choke me
4833 #else
4834 $ac_func();
4835 #endif
4837 ; return 0; }
4839 if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4840 rm -rf conftest*
4841 eval "ac_cv_func_$ac_func=yes"
4842 else
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4845 rm -rf conftest*
4846 eval "ac_cv_func_$ac_func=no"
4848 rm -f conftest*
4851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4852 echo "$ac_t""yes" 1>&6
4853 cat >> confdefs.h <<EOF
4854 #define CRAY_STACKSEG_END $ac_func
4857 break
4858 else
4859 echo "$ac_t""no" 1>&6
4862 done
4865 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4866 echo "configure:4867: checking stack direction for C alloca" >&5
4867 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4868 echo $ac_n "(cached) $ac_c" 1>&6
4869 else
4870 if test "$cross_compiling" = yes; then
4871 ac_cv_c_stack_direction=0
4872 else
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4876 find_stack_direction ()
4878 static char *addr = 0;
4879 auto char dummy;
4880 if (addr == 0)
4882 addr = &dummy;
4883 return find_stack_direction ();
4885 else
4886 return (&dummy > addr) ? 1 : -1;
4888 main ()
4890 exit (find_stack_direction() < 0);
4893 if { (eval echo configure:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4894 then
4895 ac_cv_c_stack_direction=1
4896 else
4897 echo "configure: failed program was:" >&5
4898 cat conftest.$ac_ext >&5
4899 rm -fr conftest*
4900 ac_cv_c_stack_direction=-1
4902 rm -fr conftest*
4907 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4908 cat >> confdefs.h <<EOF
4909 #define STACK_DIRECTION $ac_cv_c_stack_direction
4914 for ac_func in sbrk utimes setmode getc_unlocked
4916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4917 echo "configure:4918: checking for $ac_func" >&5
4918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4919 echo $ac_n "(cached) $ac_c" 1>&6
4920 else
4921 cat > conftest.$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4924 /* System header to define __stub macros and hopefully few prototypes,
4925 which can conflict with char $ac_func(); below. */
4926 #include <assert.h>
4927 /* Override any gcc2 internal prototype to avoid an error. */
4928 /* We use char because int might match the return type of a gcc2
4929 builtin and then its argument prototype would still apply. */
4930 char $ac_func();
4932 int main() {
4934 /* The GNU C library defines this for functions which it implements
4935 to always fail with ENOSYS. Some functions are actually named
4936 something starting with __ and the normal name is an alias. */
4937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4938 choke me
4939 #else
4940 $ac_func();
4941 #endif
4943 ; return 0; }
4945 if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4946 rm -rf conftest*
4947 eval "ac_cv_func_$ac_func=yes"
4948 else
4949 echo "configure: failed program was:" >&5
4950 cat conftest.$ac_ext >&5
4951 rm -rf conftest*
4952 eval "ac_cv_func_$ac_func=no"
4954 rm -f conftest*
4957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4958 echo "$ac_t""yes" 1>&6
4959 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4960 cat >> confdefs.h <<EOF
4961 #define $ac_tr_func 1
4964 else
4965 echo "$ac_t""no" 1>&6
4967 done
4970 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
4971 # needs to be defined for it
4972 echo $ac_n "checking for fopen64""... $ac_c" 1>&6
4973 echo "configure:4974: checking for fopen64" >&5
4974 if eval "test \"`echo '$''{'bu_cv_have_fopen64'+set}'`\" = set"; then
4975 echo $ac_n "(cached) $ac_c" 1>&6
4976 else
4977 cat > conftest.$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4980 #include <stdio.h>
4981 int main() {
4982 FILE *f = fopen64 ("/tmp/foo","r");
4983 ; return 0; }
4985 if { (eval echo configure:4986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4986 rm -rf conftest*
4987 bu_cv_have_fopen64=yes
4988 else
4989 echo "configure: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4991 rm -rf conftest*
4992 saved_CPPFLAGS=$CPPFLAGS
4993 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
4994 cat > conftest.$ac_ext <<EOF
4995 #line 4996 "configure"
4996 #include "confdefs.h"
4997 #include <stdio.h>
4998 int main() {
4999 FILE *f = fopen64 ("/tmp/foo","r");
5000 ; return 0; }
5002 if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5003 rm -rf conftest*
5004 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
5005 else
5006 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5008 rm -rf conftest*
5009 bu_cv_have_fopen64=no
5011 rm -f conftest*
5012 CPPFLAGS=$saved_CPPFLAGS
5014 rm -f conftest*
5017 echo "$ac_t""$bu_cv_have_fopen64" 1>&6
5018 if test $bu_cv_have_fopen64 != no; then
5019 cat >> confdefs.h <<\EOF
5020 #define HAVE_FOPEN64 1
5023 if test $bu_cv_have_fopen64 = "need -D_LARGEFILE64_SOURCE"; then
5024 cat >> confdefs.h <<\EOF
5025 #define _LARGEFILE64_SOURCE 1
5031 # Some systems have frexp only in -lm, not in -lc.
5033 echo $ac_n "checking for library containing frexp""... $ac_c" 1>&6
5034 echo "configure:5035: checking for library containing frexp" >&5
5035 if eval "test \"`echo '$''{'ac_cv_search_frexp'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5037 else
5038 ac_func_search_save_LIBS="$LIBS"
5039 ac_cv_search_frexp="no"
5040 cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5043 /* Override any gcc2 internal prototype to avoid an error. */
5044 /* We use char because int might match the return type of a gcc2
5045 builtin and then its argument prototype would still apply. */
5046 char frexp();
5048 int main() {
5049 frexp()
5050 ; return 0; }
5052 if { (eval echo configure:5053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5053 rm -rf conftest*
5054 ac_cv_search_frexp="none required"
5055 else
5056 echo "configure: failed program was:" >&5
5057 cat conftest.$ac_ext >&5
5059 rm -f conftest*
5060 test "$ac_cv_search_frexp" = "no" && for i in m; do
5061 LIBS="-l$i $ac_func_search_save_LIBS"
5062 cat > conftest.$ac_ext <<EOF
5063 #line 5064 "configure"
5064 #include "confdefs.h"
5065 /* Override any gcc2 internal prototype to avoid an error. */
5066 /* We use char because int might match the return type of a gcc2
5067 builtin and then its argument prototype would still apply. */
5068 char frexp();
5070 int main() {
5071 frexp()
5072 ; return 0; }
5074 if { (eval echo configure:5075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5075 rm -rf conftest*
5076 ac_cv_search_frexp="-l$i"
5077 break
5078 else
5079 echo "configure: failed program was:" >&5
5080 cat conftest.$ac_ext >&5
5082 rm -f conftest*
5083 done
5084 LIBS="$ac_func_search_save_LIBS"
5087 echo "$ac_t""$ac_cv_search_frexp" 1>&6
5088 if test "$ac_cv_search_frexp" != "no"; then
5089 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
5091 else :
5095 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
5096 echo "configure:5097: checking for time_t in time.h" >&5
5097 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5099 else
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 #include <time.h>
5104 int main() {
5105 time_t i;
5106 ; return 0; }
5108 if { (eval echo configure:5109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5109 rm -rf conftest*
5110 bu_cv_decl_time_t_time_h=yes
5111 else
5112 echo "configure: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5114 rm -rf conftest*
5115 bu_cv_decl_time_t_time_h=no
5117 rm -f conftest*
5120 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
5121 if test $bu_cv_decl_time_t_time_h = yes; then
5122 cat >> confdefs.h <<\EOF
5123 #define HAVE_TIME_T_IN_TIME_H 1
5128 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
5129 echo "configure:5130: checking for time_t in sys/types.h" >&5
5130 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
5132 else
5133 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5136 #include <sys/types.h>
5137 int main() {
5138 time_t i;
5139 ; return 0; }
5141 if { (eval echo configure:5142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5142 rm -rf conftest*
5143 bu_cv_decl_time_t_types_h=yes
5144 else
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 rm -rf conftest*
5148 bu_cv_decl_time_t_types_h=no
5150 rm -f conftest*
5153 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
5154 if test $bu_cv_decl_time_t_types_h = yes; then
5155 cat >> confdefs.h <<\EOF
5156 #define HAVE_TIME_T_IN_TYPES_H 1
5161 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
5162 # by default.
5163 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5164 echo "configure:5165: checking for utime.h" >&5
5165 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5167 else
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5171 #include <sys/types.h>
5172 #ifdef HAVE_TIME_H
5173 #include <time.h>
5174 #endif
5175 #include <utime.h>
5176 int main() {
5177 struct utimbuf s;
5178 ; return 0; }
5180 if { (eval echo configure:5181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5181 rm -rf conftest*
5182 bu_cv_header_utime_h=yes
5183 else
5184 echo "configure: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5186 rm -rf conftest*
5187 bu_cv_header_utime_h=no
5189 rm -f conftest*
5192 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
5193 if test $bu_cv_header_utime_h = yes; then
5194 cat >> confdefs.h <<\EOF
5195 #define HAVE_GOOD_UTIME_H 1
5200 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
5201 echo "configure:5202: checking whether fprintf must be declared" >&5
5202 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5204 else
5205 cat > conftest.$ac_ext <<EOF
5206 #line 5207 "configure"
5207 #include "confdefs.h"
5209 #include <stdio.h>
5210 #ifdef HAVE_STRING_H
5211 #include <string.h>
5212 #else
5213 #ifdef HAVE_STRINGS_H
5214 #include <strings.h>
5215 #endif
5216 #endif
5217 #ifdef HAVE_STDLIB_H
5218 #include <stdlib.h>
5219 #endif
5220 #ifdef HAVE_UNISTD_H
5221 #include <unistd.h>
5222 #endif
5223 int main() {
5224 char *(*pfn) = (char *(*)) fprintf
5225 ; return 0; }
5227 if { (eval echo configure:5228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5228 rm -rf conftest*
5229 bfd_cv_decl_needed_fprintf=no
5230 else
5231 echo "configure: failed program was:" >&5
5232 cat conftest.$ac_ext >&5
5233 rm -rf conftest*
5234 bfd_cv_decl_needed_fprintf=yes
5236 rm -f conftest*
5239 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
5240 if test $bfd_cv_decl_needed_fprintf = yes; then
5241 cat >> confdefs.h <<\EOF
5242 #define NEED_DECLARATION_FPRINTF 1
5247 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5248 echo "configure:5249: checking whether strstr must be declared" >&5
5249 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5250 echo $ac_n "(cached) $ac_c" 1>&6
5251 else
5252 cat > conftest.$ac_ext <<EOF
5253 #line 5254 "configure"
5254 #include "confdefs.h"
5256 #include <stdio.h>
5257 #ifdef HAVE_STRING_H
5258 #include <string.h>
5259 #else
5260 #ifdef HAVE_STRINGS_H
5261 #include <strings.h>
5262 #endif
5263 #endif
5264 #ifdef HAVE_STDLIB_H
5265 #include <stdlib.h>
5266 #endif
5267 #ifdef HAVE_UNISTD_H
5268 #include <unistd.h>
5269 #endif
5270 int main() {
5271 char *(*pfn) = (char *(*)) strstr
5272 ; return 0; }
5274 if { (eval echo configure:5275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5275 rm -rf conftest*
5276 bfd_cv_decl_needed_strstr=no
5277 else
5278 echo "configure: failed program was:" >&5
5279 cat conftest.$ac_ext >&5
5280 rm -rf conftest*
5281 bfd_cv_decl_needed_strstr=yes
5283 rm -f conftest*
5286 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5287 if test $bfd_cv_decl_needed_strstr = yes; then
5288 cat >> confdefs.h <<\EOF
5289 #define NEED_DECLARATION_STRSTR 1
5294 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
5295 echo "configure:5296: checking whether sbrk must be declared" >&5
5296 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
5297 echo $ac_n "(cached) $ac_c" 1>&6
5298 else
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5303 #include <stdio.h>
5304 #ifdef HAVE_STRING_H
5305 #include <string.h>
5306 #else
5307 #ifdef HAVE_STRINGS_H
5308 #include <strings.h>
5309 #endif
5310 #endif
5311 #ifdef HAVE_STDLIB_H
5312 #include <stdlib.h>
5313 #endif
5314 #ifdef HAVE_UNISTD_H
5315 #include <unistd.h>
5316 #endif
5317 int main() {
5318 char *(*pfn) = (char *(*)) sbrk
5319 ; return 0; }
5321 if { (eval echo configure:5322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5322 rm -rf conftest*
5323 bfd_cv_decl_needed_sbrk=no
5324 else
5325 echo "configure: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5327 rm -rf conftest*
5328 bfd_cv_decl_needed_sbrk=yes
5330 rm -f conftest*
5333 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5334 if test $bfd_cv_decl_needed_sbrk = yes; then
5335 cat >> confdefs.h <<\EOF
5336 #define NEED_DECLARATION_SBRK 1
5341 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5342 echo "configure:5343: checking whether getenv must be declared" >&5
5343 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5344 echo $ac_n "(cached) $ac_c" 1>&6
5345 else
5346 cat > conftest.$ac_ext <<EOF
5347 #line 5348 "configure"
5348 #include "confdefs.h"
5350 #include <stdio.h>
5351 #ifdef HAVE_STRING_H
5352 #include <string.h>
5353 #else
5354 #ifdef HAVE_STRINGS_H
5355 #include <strings.h>
5356 #endif
5357 #endif
5358 #ifdef HAVE_STDLIB_H
5359 #include <stdlib.h>
5360 #endif
5361 #ifdef HAVE_UNISTD_H
5362 #include <unistd.h>
5363 #endif
5364 int main() {
5365 char *(*pfn) = (char *(*)) getenv
5366 ; return 0; }
5368 if { (eval echo configure:5369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5369 rm -rf conftest*
5370 bfd_cv_decl_needed_getenv=no
5371 else
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5374 rm -rf conftest*
5375 bfd_cv_decl_needed_getenv=yes
5377 rm -f conftest*
5380 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5381 if test $bfd_cv_decl_needed_getenv = yes; then
5382 cat >> confdefs.h <<\EOF
5383 #define NEED_DECLARATION_GETENV 1
5388 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5389 echo "configure:5390: checking whether environ must be declared" >&5
5390 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5392 else
5393 cat > conftest.$ac_ext <<EOF
5394 #line 5395 "configure"
5395 #include "confdefs.h"
5397 #include <stdio.h>
5398 #ifdef HAVE_STRING_H
5399 #include <string.h>
5400 #else
5401 #ifdef HAVE_STRINGS_H
5402 #include <strings.h>
5403 #endif
5404 #endif
5405 #ifdef HAVE_STDLIB_H
5406 #include <stdlib.h>
5407 #endif
5408 #ifdef HAVE_UNISTD_H
5409 #include <unistd.h>
5410 #endif
5411 int main() {
5412 char *(*pfn) = (char *(*)) environ
5413 ; return 0; }
5415 if { (eval echo configure:5416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5416 rm -rf conftest*
5417 bfd_cv_decl_needed_environ=no
5418 else
5419 echo "configure: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5421 rm -rf conftest*
5422 bfd_cv_decl_needed_environ=yes
5424 rm -f conftest*
5427 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5428 if test $bfd_cv_decl_needed_environ = yes; then
5429 cat >> confdefs.h <<\EOF
5430 #define NEED_DECLARATION_ENVIRON 1
5437 case "${host}" in
5438 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5439 cat >> confdefs.h <<\EOF
5440 #define USE_BINARY_FOPEN 1
5443 esac
5445 # target-specific stuff:
5447 # Canonicalize the secondary target names.
5448 if test -n "$enable_targets"; then
5449 for targ in `echo $enable_targets | sed 's/,/ /g'`
5451 result=`$ac_config_sub $targ 2>/dev/null`
5452 if test -n "$result"; then
5453 canon_targets="$canon_targets $result"
5454 else
5455 # Allow targets that config.sub doesn't recognize, like "all".
5456 canon_targets="$canon_targets $targ"
5458 done
5461 all_targets=false
5462 BUILD_NLMCONV=
5463 NLMCONV_DEFS=
5464 BUILD_SRCONV=
5465 BUILD_DLLTOOL=
5466 DLLTOOL_DEFS=
5467 BUILD_WINDRES=
5468 BUILD_DLLWRAP=
5469 BUILD_MISC=
5470 OBJDUMP_DEFS=
5472 for targ in $target $canon_targets
5474 if test "x$targ" = "xall"; then
5475 all_targets=true
5476 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5477 BUILD_SRCONV='$(SRCONV_PROG)'
5478 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5479 else
5480 case $targ in
5481 i[3456]86*-*-netware*)
5482 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5483 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
5485 alpha*-*-netware*)
5486 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5487 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5489 powerpc*-*-netware*)
5490 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5491 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5493 sparc*-*-netware*)
5494 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5495 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
5497 esac
5498 case $targ in
5499 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
5500 esac
5501 case $targ in
5502 arm-epoc-pe*)
5503 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5504 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
5505 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5507 arm-*pe* | arm-*-wince)
5508 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5509 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5510 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5512 thumb-*pe*)
5513 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5514 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5515 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5517 arm*-* | xscale-* | strongarm-* | d10v-*)
5518 OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS"
5520 i[3-6]86-*pe* | i[3-6]86-*-cygwin* | i[3-6]86-*-mingw32*)
5521 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5522 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5523 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5524 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
5526 i3-686-*-interix)
5527 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
5528 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5530 powerpc*-*-*pe* | powerpc*-*-cygwin*)
5531 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5532 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5533 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5535 sh*-*-*pe)
5536 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5537 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
5538 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5540 mips*-*-*pe)
5541 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5542 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
5543 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5545 mcore-*pe)
5546 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5547 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
5548 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5550 mcore-*elf)
5551 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5552 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
5554 esac
5556 done
5558 if test "${with_windres+set}" = set; then
5559 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5572 cat >> confdefs.h <<EOF
5573 #define TARGET "${target}"
5577 targ=$target
5578 . $srcdir/../bfd/config.bfd
5579 if test "x$targ_underscore" = "xyes"; then
5580 UNDERSCORE=1
5581 else
5582 UNDERSCORE=0
5586 trap '' 1 2 15
5587 cat > confcache <<\EOF
5588 # This file is a shell script that caches the results of configure
5589 # tests run on this system so they can be shared between configure
5590 # scripts and configure runs. It is not useful on other systems.
5591 # If it contains results you don't want to keep, you may remove or edit it.
5593 # By default, configure uses ./config.cache as the cache file,
5594 # creating it if it does not exist already. You can give configure
5595 # the --cache-file=FILE option to use a different cache file; that is
5596 # what configure does when it calls configure scripts in
5597 # subdirectories, so they share the cache.
5598 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5599 # config.status only pays attention to the cache file if you give it the
5600 # --recheck option to rerun configure.
5603 # The following way of writing the cache mishandles newlines in values,
5604 # but we know of no workaround that is simple, portable, and efficient.
5605 # So, don't put newlines in cache variables' values.
5606 # Ultrix sh set writes to stderr and can't be redirected directly,
5607 # and sets the high bit in the cache file unless we assign to the vars.
5608 (set) 2>&1 |
5609 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5610 *ac_space=\ *)
5611 # `set' does not quote correctly, so add quotes (double-quote substitution
5612 # turns \\\\ into \\, and sed turns \\ into \).
5613 sed -n \
5614 -e "s/'/'\\\\''/g" \
5615 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5618 # `set' quotes correctly as required by POSIX, so do not add quotes.
5619 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5621 esac >> confcache
5622 if cmp -s $cache_file confcache; then
5624 else
5625 if test -w $cache_file; then
5626 echo "updating cache $cache_file"
5627 cat confcache > $cache_file
5628 else
5629 echo "not updating unwritable cache $cache_file"
5632 rm -f confcache
5634 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5636 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5637 # Let make expand exec_prefix.
5638 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5640 # Any assignment to VPATH causes Sun make to only execute
5641 # the first set of double-colon rules, so remove it if not needed.
5642 # If there is a colon in the path, we need to keep it.
5643 if test "x$srcdir" = x.; then
5644 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5647 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5649 DEFS=-DHAVE_CONFIG_H
5651 # Without the "./", some shells look in PATH for config.status.
5652 : ${CONFIG_STATUS=./config.status}
5654 echo creating $CONFIG_STATUS
5655 rm -f $CONFIG_STATUS
5656 cat > $CONFIG_STATUS <<EOF
5657 #! /bin/sh
5658 # Generated automatically by configure.
5659 # Run this file to recreate the current configuration.
5660 # This directory was configured as follows,
5661 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5663 # $0 $ac_configure_args
5665 # Compiler output produced by configure, useful for debugging
5666 # configure, is in ./config.log if it exists.
5668 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5669 for ac_option
5671 case "\$ac_option" in
5672 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5673 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5674 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5675 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5676 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5677 exit 0 ;;
5678 -help | --help | --hel | --he | --h)
5679 echo "\$ac_cs_usage"; exit 0 ;;
5680 *) echo "\$ac_cs_usage"; exit 1 ;;
5681 esac
5682 done
5684 ac_given_srcdir=$srcdir
5685 ac_given_INSTALL="$INSTALL"
5687 trap 'rm -fr `echo "Makefile doc/Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5689 cat >> $CONFIG_STATUS <<EOF
5691 # Protect against being on the right side of a sed subst in config.status.
5692 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5693 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5694 $ac_vpsub
5695 $extrasub
5696 s%@SHELL@%$SHELL%g
5697 s%@CFLAGS@%$CFLAGS%g
5698 s%@CPPFLAGS@%$CPPFLAGS%g
5699 s%@CXXFLAGS@%$CXXFLAGS%g
5700 s%@FFLAGS@%$FFLAGS%g
5701 s%@DEFS@%$DEFS%g
5702 s%@LDFLAGS@%$LDFLAGS%g
5703 s%@LIBS@%$LIBS%g
5704 s%@exec_prefix@%$exec_prefix%g
5705 s%@prefix@%$prefix%g
5706 s%@program_transform_name@%$program_transform_name%g
5707 s%@bindir@%$bindir%g
5708 s%@sbindir@%$sbindir%g
5709 s%@libexecdir@%$libexecdir%g
5710 s%@datadir@%$datadir%g
5711 s%@sysconfdir@%$sysconfdir%g
5712 s%@sharedstatedir@%$sharedstatedir%g
5713 s%@localstatedir@%$localstatedir%g
5714 s%@libdir@%$libdir%g
5715 s%@includedir@%$includedir%g
5716 s%@oldincludedir@%$oldincludedir%g
5717 s%@infodir@%$infodir%g
5718 s%@mandir@%$mandir%g
5719 s%@host@%$host%g
5720 s%@host_alias@%$host_alias%g
5721 s%@host_cpu@%$host_cpu%g
5722 s%@host_vendor@%$host_vendor%g
5723 s%@host_os@%$host_os%g
5724 s%@target@%$target%g
5725 s%@target_alias@%$target_alias%g
5726 s%@target_cpu@%$target_cpu%g
5727 s%@target_vendor@%$target_vendor%g
5728 s%@target_os@%$target_os%g
5729 s%@build@%$build%g
5730 s%@build_alias@%$build_alias%g
5731 s%@build_cpu@%$build_cpu%g
5732 s%@build_vendor@%$build_vendor%g
5733 s%@build_os@%$build_os%g
5734 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5735 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5736 s%@INSTALL_DATA@%$INSTALL_DATA%g
5737 s%@PACKAGE@%$PACKAGE%g
5738 s%@VERSION@%$VERSION%g
5739 s%@ACLOCAL@%$ACLOCAL%g
5740 s%@AUTOCONF@%$AUTOCONF%g
5741 s%@AUTOMAKE@%$AUTOMAKE%g
5742 s%@AUTOHEADER@%$AUTOHEADER%g
5743 s%@MAKEINFO@%$MAKEINFO%g
5744 s%@SET_MAKE@%$SET_MAKE%g
5745 s%@CC@%$CC%g
5746 s%@LN_S@%$LN_S%g
5747 s%@OBJEXT@%$OBJEXT%g
5748 s%@EXEEXT@%$EXEEXT%g
5749 s%@RANLIB@%$RANLIB%g
5750 s%@STRIP@%$STRIP%g
5751 s%@LIBTOOL@%$LIBTOOL%g
5752 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5753 s%@YACC@%$YACC%g
5754 s%@LEX@%$LEX%g
5755 s%@LEXLIB@%$LEXLIB%g
5756 s%@CPP@%$CPP%g
5757 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5758 s%@ALLOCA@%$ALLOCA%g
5759 s%@USE_NLS@%$USE_NLS%g
5760 s%@MSGFMT@%$MSGFMT%g
5761 s%@GMSGFMT@%$GMSGFMT%g
5762 s%@XGETTEXT@%$XGETTEXT%g
5763 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5764 s%@CATALOGS@%$CATALOGS%g
5765 s%@CATOBJEXT@%$CATOBJEXT%g
5766 s%@DATADIRNAME@%$DATADIRNAME%g
5767 s%@GMOFILES@%$GMOFILES%g
5768 s%@INSTOBJEXT@%$INSTOBJEXT%g
5769 s%@INTLDEPS@%$INTLDEPS%g
5770 s%@INTLLIBS@%$INTLLIBS%g
5771 s%@INTLOBJS@%$INTLOBJS%g
5772 s%@POFILES@%$POFILES%g
5773 s%@POSUB@%$POSUB%g
5774 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5775 s%@GT_NO@%$GT_NO%g
5776 s%@GT_YES@%$GT_YES%g
5777 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5778 s%@l@%$l%g
5779 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5780 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5781 s%@MAINT@%$MAINT%g
5782 s%@HDEFINES@%$HDEFINES%g
5783 s%@AR@%$AR%g
5784 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5785 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5786 s%@DEMANGLER_NAME@%$DEMANGLER_NAME%g
5787 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5788 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5789 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5790 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5791 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5792 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5793 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5794 s%@BUILD_MISC@%$BUILD_MISC%g
5795 s%@OBJDUMP_DEFS@%$OBJDUMP_DEFS%g
5796 s%@UNDERSCORE@%$UNDERSCORE%g
5798 CEOF
5801 cat >> $CONFIG_STATUS <<\EOF
5803 # Split the substitutions into bite-sized pieces for seds with
5804 # small command number limits, like on Digital OSF/1 and HP-UX.
5805 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5806 ac_file=1 # Number of current file.
5807 ac_beg=1 # First line for current file.
5808 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5809 ac_more_lines=:
5810 ac_sed_cmds=""
5811 while $ac_more_lines; do
5812 if test $ac_beg -gt 1; then
5813 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5814 else
5815 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5817 if test ! -s conftest.s$ac_file; then
5818 ac_more_lines=false
5819 rm -f conftest.s$ac_file
5820 else
5821 if test -z "$ac_sed_cmds"; then
5822 ac_sed_cmds="sed -f conftest.s$ac_file"
5823 else
5824 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5826 ac_file=`expr $ac_file + 1`
5827 ac_beg=$ac_end
5828 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5830 done
5831 if test -z "$ac_sed_cmds"; then
5832 ac_sed_cmds=cat
5836 cat >> $CONFIG_STATUS <<EOF
5838 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile po/Makefile.in:po/Make-in"}
5840 cat >> $CONFIG_STATUS <<\EOF
5841 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5842 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5843 case "$ac_file" in
5844 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5845 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5846 *) ac_file_in="${ac_file}.in" ;;
5847 esac
5849 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5851 # Remove last slash and all that follows it. Not all systems have dirname.
5852 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5853 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5854 # The file is in a subdirectory.
5855 test ! -d "$ac_dir" && mkdir "$ac_dir"
5856 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5857 # A "../" for each directory in $ac_dir_suffix.
5858 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5859 else
5860 ac_dir_suffix= ac_dots=
5863 case "$ac_given_srcdir" in
5864 .) srcdir=.
5865 if test -z "$ac_dots"; then top_srcdir=.
5866 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5867 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5868 *) # Relative path.
5869 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5870 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5871 esac
5873 case "$ac_given_INSTALL" in
5874 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5875 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5876 esac
5878 echo creating "$ac_file"
5879 rm -f "$ac_file"
5880 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5881 case "$ac_file" in
5882 *Makefile*) ac_comsub="1i\\
5883 # $configure_input" ;;
5884 *) ac_comsub= ;;
5885 esac
5887 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5888 sed -e "$ac_comsub
5889 s%@configure_input@%$configure_input%g
5890 s%@srcdir@%$srcdir%g
5891 s%@top_srcdir@%$top_srcdir%g
5892 s%@INSTALL@%$INSTALL%g
5893 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5894 fi; done
5895 rm -f conftest.s*
5897 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5898 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5900 # ac_d sets the value in "#define NAME VALUE" lines.
5901 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5902 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5903 ac_dC='\3'
5904 ac_dD='%g'
5905 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5906 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5907 ac_uB='\([ ]\)%\1#\2define\3'
5908 ac_uC=' '
5909 ac_uD='\4%g'
5910 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5911 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5912 ac_eB='$%\1#\2define\3'
5913 ac_eC=' '
5914 ac_eD='%g'
5916 if test "${CONFIG_HEADERS+set}" != set; then
5918 cat >> $CONFIG_STATUS <<EOF
5919 CONFIG_HEADERS="config.h:config.in"
5921 cat >> $CONFIG_STATUS <<\EOF
5923 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5924 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5925 case "$ac_file" in
5926 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5927 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5928 *) ac_file_in="${ac_file}.in" ;;
5929 esac
5931 echo creating $ac_file
5933 rm -f conftest.frag conftest.in conftest.out
5934 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5935 cat $ac_file_inputs > conftest.in
5939 # Transform confdefs.h into a sed script conftest.vals that substitutes
5940 # the proper values into config.h.in to produce config.h. And first:
5941 # Protect against being on the right side of a sed subst in config.status.
5942 # Protect against being in an unquoted here document in config.status.
5943 rm -f conftest.vals
5944 cat > conftest.hdr <<\EOF
5945 s/[\\&%]/\\&/g
5946 s%[\\$`]%\\&%g
5947 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5948 s%ac_d%ac_u%gp
5949 s%ac_u%ac_e%gp
5951 sed -n -f conftest.hdr confdefs.h > conftest.vals
5952 rm -f conftest.hdr
5954 # This sed command replaces #undef with comments. This is necessary, for
5955 # example, in the case of _POSIX_SOURCE, which is predefined and required
5956 # on some systems where configure will not decide to define it.
5957 cat >> conftest.vals <<\EOF
5958 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5961 # Break up conftest.vals because some shells have a limit on
5962 # the size of here documents, and old seds have small limits too.
5964 rm -f conftest.tail
5965 while :
5967 ac_lines=`grep -c . conftest.vals`
5968 # grep -c gives empty output for an empty file on some AIX systems.
5969 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5970 # Write a limited-size here document to conftest.frag.
5971 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5972 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5973 echo 'CEOF
5974 sed -f conftest.frag conftest.in > conftest.out
5975 rm -f conftest.in
5976 mv conftest.out conftest.in
5977 ' >> $CONFIG_STATUS
5978 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5979 rm -f conftest.vals
5980 mv conftest.tail conftest.vals
5981 done
5982 rm -f conftest.vals
5984 cat >> $CONFIG_STATUS <<\EOF
5985 rm -f conftest.frag conftest.h
5986 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5987 cat conftest.in >> conftest.h
5988 rm -f conftest.in
5989 if cmp -s $ac_file conftest.h 2>/dev/null; then
5990 echo "$ac_file is unchanged"
5991 rm -f conftest.h
5992 else
5993 # Remove last slash and all that follows it. Not all systems have dirname.
5994 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5995 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5996 # The file is in a subdirectory.
5997 test ! -d "$ac_dir" && mkdir "$ac_dir"
5999 rm -f $ac_file
6000 mv conftest.h $ac_file
6002 fi; done
6005 cat >> $CONFIG_STATUS <<EOF
6009 cat >> $CONFIG_STATUS <<\EOF
6010 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6012 case "x$CONFIG_FILES" in
6013 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
6014 esac
6016 exit 0
6018 chmod +x $CONFIG_STATUS
6019 rm -fr confdefs* $ac_clean_files
6020 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1