merge from gcc
[binutils.git] / opcodes / configure
blob4a95a9a6060cd1423b9246028182b770068bc2a5
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=no]"
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 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
35 ac_help="$ac_help
36 --enable-install-libbfd controls installation of libbfd and related headers"
37 ac_help="$ac_help
38 --disable-nls do not use Native Language Support"
39 ac_help="$ac_help
40 --with-included-gettext use the GNU gettext library included here"
41 ac_help="$ac_help
42 --enable-cgen-maint[=dir] build cgen generated files"
44 # Initialize some variables set by options.
45 # The variables have the same names as the options, with
46 # dashes changed to underlines.
47 build=NONE
48 cache_file=./config.cache
49 exec_prefix=NONE
50 host=NONE
51 no_create=
52 nonopt=NONE
53 no_recursion=
54 prefix=NONE
55 program_prefix=NONE
56 program_suffix=NONE
57 program_transform_name=s,x,x,
58 silent=
59 site=
60 sitefile=
61 srcdir=
62 target=NONE
63 verbose=
64 x_includes=NONE
65 x_libraries=NONE
66 bindir='${exec_prefix}/bin'
67 sbindir='${exec_prefix}/sbin'
68 libexecdir='${exec_prefix}/libexec'
69 datadir='${prefix}/share'
70 sysconfdir='${prefix}/etc'
71 sharedstatedir='${prefix}/com'
72 localstatedir='${prefix}/var'
73 libdir='${exec_prefix}/lib'
74 includedir='${prefix}/include'
75 oldincludedir='/usr/include'
76 infodir='${prefix}/info'
77 mandir='${prefix}/man'
79 # Initialize some other variables.
80 subdirs=
81 MFLAGS= MAKEFLAGS=
82 SHELL=${CONFIG_SHELL-/bin/sh}
83 # Maximum number of lines to put in a shell here document.
84 ac_max_here_lines=12
86 ac_prev=
87 for ac_option
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
93 ac_prev=
94 continue
97 case "$ac_option" in
98 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 *) ac_optarg= ;;
100 esac
102 # Accept the important Cygnus configure options, so we can diagnose typos.
104 case "$ac_option" in
106 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 ac_prev=bindir ;;
108 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
109 bindir="$ac_optarg" ;;
111 -build | --build | --buil | --bui | --bu)
112 ac_prev=build ;;
113 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
114 build="$ac_optarg" ;;
116 -cache-file | --cache-file | --cache-fil | --cache-fi \
117 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
118 ac_prev=cache_file ;;
119 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
120 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
121 cache_file="$ac_optarg" ;;
123 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 ac_prev=datadir ;;
125 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 | --da=*)
127 datadir="$ac_optarg" ;;
129 -disable-* | --disable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
138 -enable-* | --enable-*)
139 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 case "$ac_option" in
146 *=*) ;;
147 *) ac_optarg=yes ;;
148 esac
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
153 | --exec | --exe | --ex)
154 ac_prev=exec_prefix ;;
155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
157 | --exec=* | --exe=* | --ex=*)
158 exec_prefix="$ac_optarg" ;;
160 -gas | --gas | --ga | --g)
161 # Obsolete; use --with-gas.
162 with_gas=yes ;;
164 -help | --help | --hel | --he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
167 cat << EOF
168 Usage: configure [options] [host]
169 Options: [defaults in brackets after descriptions]
170 Configuration:
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --site-file=FILE use FILE as the site file
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
179 [$ac_default_prefix]
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 [same as prefix]
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
186 [PREFIX/share]
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 [PREFIX/com]
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
202 cat << EOF
203 Host type:
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
218 exit 0 ;;
220 -host | --host | --hos | --ho)
221 ac_prev=host ;;
222 -host=* | --host=* | --hos=* | --ho=*)
223 host="$ac_optarg" ;;
225 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*)
230 includedir="$ac_optarg" ;;
232 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 ac_prev=infodir ;;
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;;
237 -libdir | --libdir | --libdi | --libd)
238 ac_prev=libdir ;;
239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
240 libdir="$ac_optarg" ;;
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*)
247 libexecdir="$ac_optarg" ;;
249 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \
251 | --locals | --local | --loca | --loc | --lo)
252 ac_prev=localstatedir ;;
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256 localstatedir="$ac_optarg" ;;
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 ac_prev=mandir ;;
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;;
263 -nfp | --nfp | --nf)
264 # Obsolete; use --without-fp.
265 with_fp=no ;;
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 | --no-cr | --no-c)
269 no_create=yes ;;
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 no_recursion=yes ;;
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277 | --oldin | --oldi | --old | --ol | --o)
278 ac_prev=oldincludedir ;;
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282 oldincludedir="$ac_optarg" ;;
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 ac_prev=prefix ;;
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287 prefix="$ac_optarg" ;;
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294 program_prefix="$ac_optarg" ;;
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301 program_suffix="$ac_optarg" ;;
303 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \
305 | --program-transform-n | --program-transform- \
306 | --program-transform | --program-transfor \
307 | --program-transfo | --program-transf \
308 | --program-trans | --program-tran \
309 | --progr-tra | --program-tr | --program-t)
310 ac_prev=program_transform_name ;;
311 -program-transform-name=* | --program-transform-name=* \
312 | --program-transform-nam=* | --program-transform-na=* \
313 | --program-transform-n=* | --program-transform-=* \
314 | --program-transform=* | --program-transfor=* \
315 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*)
318 program_transform_name="$ac_optarg" ;;
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil)
322 silent=yes ;;
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 ac_prev=sbindir ;;
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 | --sbi=* | --sb=*)
328 sbindir="$ac_optarg" ;;
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
333 | --sha | --sh)
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 | --sha=* | --sh=*)
339 sharedstatedir="$ac_optarg" ;;
341 -site | --site | --sit)
342 ac_prev=site ;;
343 -site=* | --site=* | --sit=*)
344 site="$ac_optarg" ;;
346 -site-file | --site-file | --site-fil | --site-fi | --site-f)
347 ac_prev=sitefile ;;
348 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
349 sitefile="$ac_optarg" ;;
351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
352 ac_prev=srcdir ;;
353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
354 srcdir="$ac_optarg" ;;
356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
357 | --syscon | --sysco | --sysc | --sys | --sy)
358 ac_prev=sysconfdir ;;
359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
361 sysconfdir="$ac_optarg" ;;
363 -target | --target | --targe | --targ | --tar | --ta | --t)
364 ac_prev=target ;;
365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
366 target="$ac_optarg" ;;
368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
369 verbose=yes ;;
371 -version | --version | --versio | --versi | --vers)
372 echo "configure generated by autoconf version 2.13"
373 exit 0 ;;
375 -with-* | --with-*)
376 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 case "$ac_option" in
383 *=*) ;;
384 *) ac_optarg=yes ;;
385 esac
386 eval "with_${ac_package}='$ac_optarg'" ;;
388 -without-* | --without-*)
389 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}=no" ;;
397 --x)
398 # Obsolete; use --with-x.
399 with_x=yes ;;
401 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
402 | --x-incl | --x-inc | --x-in | --x-i)
403 ac_prev=x_includes ;;
404 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
405 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
406 x_includes="$ac_optarg" ;;
408 -x-libraries | --x-libraries | --x-librarie | --x-librari \
409 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
410 ac_prev=x_libraries ;;
411 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
412 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
413 x_libraries="$ac_optarg" ;;
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420 echo "configure: warning: $ac_option: invalid host type" 1>&2
422 if test "x$nonopt" != xNONE; then
423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 nonopt="$ac_option"
428 esac
429 done
431 if test -n "$ac_prev"; then
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
437 # File descriptor usage:
438 # 0 standard input
439 # 1 file creation
440 # 2 errors and warnings
441 # 3 some systems may open it to /dev/tty
442 # 4 used on the Kubota Titan
443 # 6 checking for... messages and results
444 # 5 compiler messages saved in config.log
445 if test "$silent" = yes; then
446 exec 6>/dev/null
447 else
448 exec 6>&1
450 exec 5>./config.log
452 echo "\
453 This file contains any messages produced by compilers while
454 running configure, to aid debugging if configure makes a mistake.
455 " 1>&5
457 # Strip out --no-create and --no-recursion so they do not pile up.
458 # Also quote any args containing shell metacharacters.
459 ac_configure_args=
460 for ac_arg
462 case "$ac_arg" in
463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
464 | --no-cr | --no-c) ;;
465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
469 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470 esac
471 done
473 # NLS nuisances.
474 # Only set these to C if already set. These must not be set unconditionally
475 # because not all systems understand e.g. LANG=C (notably SCO).
476 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477 # Non-C LC_CTYPE values break the ctype check.
478 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
479 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
480 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
481 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
484 rm -rf conftest* confdefs.h
485 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
486 echo > confdefs.h
488 # A filename unique to this package, relative to the directory that
489 # configure is in, which we can look for to find out if srcdir is correct.
490 ac_unique_file=z8k-dis.c
492 # Find the source files, if location was not specified.
493 if test -z "$srcdir"; then
494 ac_srcdir_defaulted=yes
495 # Try the directory containing this script, then its parent.
496 ac_prog=$0
497 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
499 srcdir=$ac_confdir
500 if test ! -r $srcdir/$ac_unique_file; then
501 srcdir=..
503 else
504 ac_srcdir_defaulted=no
506 if test ! -r $srcdir/$ac_unique_file; then
507 if test "$ac_srcdir_defaulted" = yes; then
508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
509 else
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
515 # Prefer explicitly selected file to automatically selected ones.
516 if test -z "$sitefile"; then
517 if test -z "$CONFIG_SITE"; then
518 if test "x$prefix" != xNONE; then
519 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
520 else
521 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
524 else
525 CONFIG_SITE="$sitefile"
527 for ac_site_file in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
530 . "$ac_site_file"
532 done
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
536 . $cache_file
537 else
538 echo "creating cache $cache_file"
539 > $cache_file
542 ac_ext=c
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp='$CPP $CPPFLAGS'
545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling=$ac_cv_prog_cc_cross
549 ac_exeext=
550 ac_objext=o
551 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
554 ac_n= ac_c='
555 ' ac_t=' '
556 else
557 ac_n=-n ac_c= ac_t=
559 else
560 ac_n= ac_c='\c' ac_t=
563 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
564 echo "configure:565: checking for Cygwin environment" >&5
565 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
567 else
568 cat > conftest.$ac_ext <<EOF
569 #line 570 "configure"
570 #include "confdefs.h"
572 int main() {
574 #ifndef __CYGWIN__
575 #define __CYGWIN__ __CYGWIN32__
576 #endif
577 return __CYGWIN__;
578 ; return 0; }
580 if { (eval echo configure:581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
581 rm -rf conftest*
582 ac_cv_cygwin=yes
583 else
584 echo "configure: failed program was:" >&5
585 cat conftest.$ac_ext >&5
586 rm -rf conftest*
587 ac_cv_cygwin=no
589 rm -f conftest*
590 rm -f conftest*
593 echo "$ac_t""$ac_cv_cygwin" 1>&6
594 CYGWIN=
595 test "$ac_cv_cygwin" = yes && CYGWIN=yes
596 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
597 echo "configure:598: checking for mingw32 environment" >&5
598 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
599 echo $ac_n "(cached) $ac_c" 1>&6
600 else
601 cat > conftest.$ac_ext <<EOF
602 #line 603 "configure"
603 #include "confdefs.h"
605 int main() {
606 return __MINGW32__;
607 ; return 0; }
609 if { (eval echo configure:610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
610 rm -rf conftest*
611 ac_cv_mingw32=yes
612 else
613 echo "configure: failed program was:" >&5
614 cat conftest.$ac_ext >&5
615 rm -rf conftest*
616 ac_cv_mingw32=no
618 rm -f conftest*
619 rm -f conftest*
622 echo "$ac_t""$ac_cv_mingw32" 1>&6
623 MINGW32=
624 test "$ac_cv_mingw32" = yes && MINGW32=yes
627 ac_aux_dir=
628 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
629 if test -f $ac_dir/install-sh; then
630 ac_aux_dir=$ac_dir
631 ac_install_sh="$ac_aux_dir/install-sh -c"
632 break
633 elif test -f $ac_dir/install.sh; then
634 ac_aux_dir=$ac_dir
635 ac_install_sh="$ac_aux_dir/install.sh -c"
636 break
638 done
639 if test -z "$ac_aux_dir"; then
640 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
642 ac_config_guess=$ac_aux_dir/config.guess
643 ac_config_sub=$ac_aux_dir/config.sub
644 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
647 # Do some error checking and defaulting for the host and target type.
648 # The inputs are:
649 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
651 # The rules are:
652 # 1. You are not allowed to specify --host, --target, and nonopt at the
653 # same time.
654 # 2. Host defaults to nonopt.
655 # 3. If nonopt is not specified, then host defaults to the current host,
656 # as determined by config.guess.
657 # 4. Target and build default to nonopt.
658 # 5. If nonopt is not specified, then target and build default to host.
660 # The aliases save the names the user supplied, while $host etc.
661 # will get canonicalized.
662 case $host---$target---$nonopt in
663 NONE---*---* | *---NONE---* | *---*---NONE) ;;
664 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
665 esac
668 # Make sure we can run config.sub.
669 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
670 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
673 echo $ac_n "checking host system type""... $ac_c" 1>&6
674 echo "configure:675: checking host system type" >&5
676 host_alias=$host
677 case "$host_alias" in
678 NONE)
679 case $nonopt in
680 NONE)
681 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
682 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
683 fi ;;
684 *) host_alias=$nonopt ;;
685 esac ;;
686 esac
688 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
689 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
690 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
691 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
692 echo "$ac_t""$host" 1>&6
694 echo $ac_n "checking target system type""... $ac_c" 1>&6
695 echo "configure:696: checking target system type" >&5
697 target_alias=$target
698 case "$target_alias" in
699 NONE)
700 case $nonopt in
701 NONE) target_alias=$host_alias ;;
702 *) target_alias=$nonopt ;;
703 esac ;;
704 esac
706 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
707 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
708 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
709 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo "$ac_t""$target" 1>&6
712 echo $ac_n "checking build system type""... $ac_c" 1>&6
713 echo "configure:714: checking build system type" >&5
715 build_alias=$build
716 case "$build_alias" in
717 NONE)
718 case $nonopt in
719 NONE) build_alias=$host_alias ;;
720 *) build_alias=$nonopt ;;
721 esac ;;
722 esac
724 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
725 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo "$ac_t""$build" 1>&6
730 test "$host_alias" != "$target_alias" &&
731 test "$program_prefix$program_suffix$program_transform_name" = \
732 NONENONEs,x,x, &&
733 program_prefix=${target_alias}-
736 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
737 echo "configure:738: checking for strerror in -lcposix" >&5
738 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
741 else
742 ac_save_LIBS="$LIBS"
743 LIBS="-lcposix $LIBS"
744 cat > conftest.$ac_ext <<EOF
745 #line 746 "configure"
746 #include "confdefs.h"
747 /* Override any gcc2 internal prototype to avoid an error. */
748 /* We use char because int might match the return type of a gcc2
749 builtin and then its argument prototype would still apply. */
750 char strerror();
752 int main() {
753 strerror()
754 ; return 0; }
756 if { (eval echo configure:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
757 rm -rf conftest*
758 eval "ac_cv_lib_$ac_lib_var=yes"
759 else
760 echo "configure: failed program was:" >&5
761 cat conftest.$ac_ext >&5
762 rm -rf conftest*
763 eval "ac_cv_lib_$ac_lib_var=no"
765 rm -f conftest*
766 LIBS="$ac_save_LIBS"
769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
770 echo "$ac_t""yes" 1>&6
771 LIBS="$LIBS -lcposix"
772 else
773 echo "$ac_t""no" 1>&6
779 # We currently only use the version number for the name of any shared
780 # library. For user convenience, we always use the same version
781 # number that BFD is using.
782 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
784 # Find a good install program. We prefer a C program (faster),
785 # so one script is as good as another. But avoid the broken or
786 # incompatible versions:
787 # SysV /etc/install, /usr/sbin/install
788 # SunOS /usr/etc/install
789 # IRIX /sbin/install
790 # AIX /bin/install
791 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
792 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
793 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
794 # ./install, which can be erroneously created by make from ./install.sh.
795 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
796 echo "configure:797: checking for a BSD compatible install" >&5
797 if test -z "$INSTALL"; then
798 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
800 else
801 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
802 for ac_dir in $PATH; do
803 # Account for people who put trailing slashes in PATH elements.
804 case "$ac_dir/" in
805 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
807 # OSF1 and SCO ODT 3.0 have their own names for install.
808 # Don't use installbsd from OSF since it installs stuff as root
809 # by default.
810 for ac_prog in ginstall scoinst install; do
811 if test -f $ac_dir/$ac_prog; then
812 if test $ac_prog = install &&
813 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
814 # AIX install. It has an incompatible calling convention.
816 else
817 ac_cv_path_install="$ac_dir/$ac_prog -c"
818 break 2
821 done
823 esac
824 done
825 IFS="$ac_save_IFS"
828 if test "${ac_cv_path_install+set}" = set; then
829 INSTALL="$ac_cv_path_install"
830 else
831 # As a last resort, use the slow shell script. We don't cache a
832 # path for INSTALL within a source directory, because that will
833 # break other packages using the cache if that directory is
834 # removed, or if the path is relative.
835 INSTALL="$ac_install_sh"
838 echo "$ac_t""$INSTALL" 1>&6
840 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
841 # It thinks the first close brace ends the variable substitution.
842 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
844 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
846 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
848 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
849 echo "configure:850: checking whether build environment is sane" >&5
850 # Just in case
851 sleep 1
852 echo timestamp > conftestfile
853 # Do `set' in a subshell so we don't clobber the current shell's
854 # arguments. Must try -L first in case configure is actually a
855 # symlink; some systems play weird games with the mod time of symlinks
856 # (eg FreeBSD returns the mod time of the symlink's containing
857 # directory).
858 if (
859 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
860 if test "$*" = "X"; then
861 # -L didn't work.
862 set X `ls -t $srcdir/configure conftestfile`
864 if test "$*" != "X $srcdir/configure conftestfile" \
865 && test "$*" != "X conftestfile $srcdir/configure"; then
867 # If neither matched, then we have a broken ls. This can happen
868 # if, for instance, CONFIG_SHELL is bash and it inherits a
869 # broken ls alias from the environment. This has actually
870 # happened. Such a system could not be considered "sane".
871 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
872 alias in your environment" 1>&2; exit 1; }
875 test "$2" = conftestfile
877 then
878 # Ok.
880 else
881 { echo "configure: error: newly created file is older than distributed files!
882 Check your system clock" 1>&2; exit 1; }
884 rm -f conftest*
885 echo "$ac_t""yes" 1>&6
886 if test "$program_transform_name" = s,x,x,; then
887 program_transform_name=
888 else
889 # Double any \ or $. echo might interpret backslashes.
890 cat <<\EOF_SED > conftestsed
891 s,\\,\\\\,g; s,\$,$$,g
892 EOF_SED
893 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
894 rm -f conftestsed
896 test "$program_prefix" != NONE &&
897 program_transform_name="s,^,${program_prefix},; $program_transform_name"
898 # Use a double $ so make ignores it.
899 test "$program_suffix" != NONE &&
900 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
902 # sed with no file args requires a program.
903 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
905 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
906 echo "configure:907: checking whether ${MAKE-make} sets \${MAKE}" >&5
907 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
908 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
910 else
911 cat > conftestmake <<\EOF
912 all:
913 @echo 'ac_maketemp="${MAKE}"'
915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
916 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
917 if test -n "$ac_maketemp"; then
918 eval ac_cv_prog_make_${ac_make}_set=yes
919 else
920 eval ac_cv_prog_make_${ac_make}_set=no
922 rm -f conftestmake
924 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
925 echo "$ac_t""yes" 1>&6
926 SET_MAKE=
927 else
928 echo "$ac_t""no" 1>&6
929 SET_MAKE="MAKE=${MAKE-make}"
933 PACKAGE=opcodes
935 VERSION=${BFD_VERSION}
937 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
938 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
940 cat >> confdefs.h <<EOF
941 #define PACKAGE "$PACKAGE"
944 cat >> confdefs.h <<EOF
945 #define VERSION "$VERSION"
950 missing_dir=`cd $ac_aux_dir && pwd`
951 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
952 echo "configure:953: checking for working aclocal" >&5
953 # Run test in a subshell; some versions of sh will print an error if
954 # an executable is not found, even if stderr is redirected.
955 # Redirect stdin to placate older versions of autoconf. Sigh.
956 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
957 ACLOCAL=aclocal
958 echo "$ac_t""found" 1>&6
959 else
960 ACLOCAL="$missing_dir/missing aclocal"
961 echo "$ac_t""missing" 1>&6
964 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
965 echo "configure:966: checking for working autoconf" >&5
966 # Run test in a subshell; some versions of sh will print an error if
967 # an executable is not found, even if stderr is redirected.
968 # Redirect stdin to placate older versions of autoconf. Sigh.
969 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
970 AUTOCONF=autoconf
971 echo "$ac_t""found" 1>&6
972 else
973 AUTOCONF="$missing_dir/missing autoconf"
974 echo "$ac_t""missing" 1>&6
977 echo $ac_n "checking for working automake""... $ac_c" 1>&6
978 echo "configure:979: checking for working automake" >&5
979 # Run test in a subshell; some versions of sh will print an error if
980 # an executable is not found, even if stderr is redirected.
981 # Redirect stdin to placate older versions of autoconf. Sigh.
982 if (automake --version) < /dev/null > /dev/null 2>&1; then
983 AUTOMAKE=automake
984 echo "$ac_t""found" 1>&6
985 else
986 AUTOMAKE="$missing_dir/missing automake"
987 echo "$ac_t""missing" 1>&6
990 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
991 echo "configure:992: checking for working autoheader" >&5
992 # Run test in a subshell; some versions of sh will print an error if
993 # an executable is not found, even if stderr is redirected.
994 # Redirect stdin to placate older versions of autoconf. Sigh.
995 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
996 AUTOHEADER=autoheader
997 echo "$ac_t""found" 1>&6
998 else
999 AUTOHEADER="$missing_dir/missing autoheader"
1000 echo "$ac_t""missing" 1>&6
1003 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1004 echo "configure:1005: checking for working makeinfo" >&5
1005 # Run test in a subshell; some versions of sh will print an error if
1006 # an executable is not found, even if stderr is redirected.
1007 # Redirect stdin to placate older versions of autoconf. Sigh.
1008 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1009 MAKEINFO=makeinfo
1010 echo "$ac_t""found" 1>&6
1011 else
1012 MAKEINFO="$missing_dir/missing makeinfo"
1013 echo "$ac_t""missing" 1>&6
1018 if test $host != $build; then
1019 ac_tool_prefix=${host_alias}-
1020 else
1021 ac_tool_prefix=
1024 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1025 set dummy ${ac_tool_prefix}ar; ac_word=$2
1026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1027 echo "configure:1028: checking for $ac_word" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1030 else
1031 if test -n "$AR"; then
1032 ac_cv_prog_AR="$AR" # Let the user override the test.
1033 else
1034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1035 ac_dummy="$PATH"
1036 for ac_dir in $ac_dummy; do
1037 test -z "$ac_dir" && ac_dir=.
1038 if test -f $ac_dir/$ac_word; then
1039 ac_cv_prog_AR="${ac_tool_prefix}ar"
1040 break
1042 done
1043 IFS="$ac_save_ifs"
1044 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1047 AR="$ac_cv_prog_AR"
1048 if test -n "$AR"; then
1049 echo "$ac_t""$AR" 1>&6
1050 else
1051 echo "$ac_t""no" 1>&6
1056 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1057 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1059 echo "configure:1060: checking for $ac_word" >&5
1060 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1062 else
1063 if test -n "$RANLIB"; then
1064 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1065 else
1066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1067 ac_dummy="$PATH"
1068 for ac_dir in $ac_dummy; do
1069 test -z "$ac_dir" && ac_dir=.
1070 if test -f $ac_dir/$ac_word; then
1071 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1072 break
1074 done
1075 IFS="$ac_save_ifs"
1078 RANLIB="$ac_cv_prog_RANLIB"
1079 if test -n "$RANLIB"; then
1080 echo "$ac_t""$RANLIB" 1>&6
1081 else
1082 echo "$ac_t""no" 1>&6
1086 if test -z "$ac_cv_prog_RANLIB"; then
1087 if test -n "$ac_tool_prefix"; then
1088 # Extract the first word of "ranlib", so it can be a program name with args.
1089 set dummy ranlib; ac_word=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1094 else
1095 if test -n "$RANLIB"; then
1096 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1097 else
1098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1099 ac_dummy="$PATH"
1100 for ac_dir in $ac_dummy; do
1101 test -z "$ac_dir" && ac_dir=.
1102 if test -f $ac_dir/$ac_word; then
1103 ac_cv_prog_RANLIB="ranlib"
1104 break
1106 done
1107 IFS="$ac_save_ifs"
1108 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1111 RANLIB="$ac_cv_prog_RANLIB"
1112 if test -n "$RANLIB"; then
1113 echo "$ac_t""$RANLIB" 1>&6
1114 else
1115 echo "$ac_t""no" 1>&6
1118 else
1119 RANLIB=":"
1124 # Check whether --enable-shared or --disable-shared was given.
1125 if test "${enable_shared+set}" = set; then
1126 enableval="$enable_shared"
1127 p=${PACKAGE-default}
1128 case $enableval in
1129 yes) enable_shared=yes ;;
1130 no) enable_shared=no ;;
1132 enable_shared=no
1133 # Look at the argument we got. We use all the common list separators.
1134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1135 for pkg in $enableval; do
1136 if test "X$pkg" = "X$p"; then
1137 enable_shared=yes
1139 done
1140 IFS="$ac_save_ifs"
1142 esac
1143 else
1144 enable_shared=no
1148 # Check whether --enable-static or --disable-static was given.
1149 if test "${enable_static+set}" = set; then
1150 enableval="$enable_static"
1151 p=${PACKAGE-default}
1152 case $enableval in
1153 yes) enable_static=yes ;;
1154 no) enable_static=no ;;
1156 enable_static=no
1157 # Look at the argument we got. We use all the common list separators.
1158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1159 for pkg in $enableval; do
1160 if test "X$pkg" = "X$p"; then
1161 enable_static=yes
1163 done
1164 IFS="$ac_save_ifs"
1166 esac
1167 else
1168 enable_static=yes
1171 # Check whether --enable-fast-install or --disable-fast-install was given.
1172 if test "${enable_fast_install+set}" = set; then
1173 enableval="$enable_fast_install"
1174 p=${PACKAGE-default}
1175 case $enableval in
1176 yes) enable_fast_install=yes ;;
1177 no) enable_fast_install=no ;;
1179 enable_fast_install=no
1180 # Look at the argument we got. We use all the common list separators.
1181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1182 for pkg in $enableval; do
1183 if test "X$pkg" = "X$p"; then
1184 enable_fast_install=yes
1186 done
1187 IFS="$ac_save_ifs"
1189 esac
1190 else
1191 enable_fast_install=yes
1194 # Extract the first word of "gcc", so it can be a program name with args.
1195 set dummy gcc; ac_word=$2
1196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1197 echo "configure:1198: checking for $ac_word" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1200 else
1201 if test -n "$CC"; then
1202 ac_cv_prog_CC="$CC" # Let the user override the test.
1203 else
1204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1205 ac_dummy="$PATH"
1206 for ac_dir in $ac_dummy; do
1207 test -z "$ac_dir" && ac_dir=.
1208 if test -f $ac_dir/$ac_word; then
1209 ac_cv_prog_CC="gcc"
1210 break
1212 done
1213 IFS="$ac_save_ifs"
1216 CC="$ac_cv_prog_CC"
1217 if test -n "$CC"; then
1218 echo "$ac_t""$CC" 1>&6
1219 else
1220 echo "$ac_t""no" 1>&6
1223 if test -z "$CC"; then
1224 # Extract the first word of "cc", so it can be a program name with args.
1225 set dummy cc; ac_word=$2
1226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1227 echo "configure:1228: checking for $ac_word" >&5
1228 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1230 else
1231 if test -n "$CC"; then
1232 ac_cv_prog_CC="$CC" # Let the user override the test.
1233 else
1234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1235 ac_prog_rejected=no
1236 ac_dummy="$PATH"
1237 for ac_dir in $ac_dummy; do
1238 test -z "$ac_dir" && ac_dir=.
1239 if test -f $ac_dir/$ac_word; then
1240 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1241 ac_prog_rejected=yes
1242 continue
1244 ac_cv_prog_CC="cc"
1245 break
1247 done
1248 IFS="$ac_save_ifs"
1249 if test $ac_prog_rejected = yes; then
1250 # We found a bogon in the path, so make sure we never use it.
1251 set dummy $ac_cv_prog_CC
1252 shift
1253 if test $# -gt 0; then
1254 # We chose a different compiler from the bogus one.
1255 # However, it has the same basename, so the bogon will be chosen
1256 # first if we set CC to just the basename; use the full file name.
1257 shift
1258 set dummy "$ac_dir/$ac_word" "$@"
1259 shift
1260 ac_cv_prog_CC="$@"
1265 CC="$ac_cv_prog_CC"
1266 if test -n "$CC"; then
1267 echo "$ac_t""$CC" 1>&6
1268 else
1269 echo "$ac_t""no" 1>&6
1272 if test -z "$CC"; then
1273 case "`uname -s`" in
1274 *win32* | *WIN32*)
1275 # Extract the first word of "cl", so it can be a program name with args.
1276 set dummy cl; ac_word=$2
1277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1278 echo "configure:1279: checking for $ac_word" >&5
1279 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1281 else
1282 if test -n "$CC"; then
1283 ac_cv_prog_CC="$CC" # Let the user override the test.
1284 else
1285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1286 ac_dummy="$PATH"
1287 for ac_dir in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir=.
1289 if test -f $ac_dir/$ac_word; then
1290 ac_cv_prog_CC="cl"
1291 break
1293 done
1294 IFS="$ac_save_ifs"
1297 CC="$ac_cv_prog_CC"
1298 if test -n "$CC"; then
1299 echo "$ac_t""$CC" 1>&6
1300 else
1301 echo "$ac_t""no" 1>&6
1304 esac
1306 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1309 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1310 echo "configure:1311: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1312 ac_ext=c
1313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1314 ac_cpp='$CPP $CPPFLAGS'
1315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1317 cross_compiling=$ac_cv_prog_cc_cross
1319 cat > conftest.$ac_ext << EOF
1321 #line 1322 "configure"
1322 #include "confdefs.h"
1324 main(){return(0);}
1326 if { (eval echo configure:1327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1327 ac_cv_prog_cc_works=yes
1328 # If we can't run a trivial program, we are probably using a cross compiler.
1329 if (./conftest; exit) 2>/dev/null; then
1330 ac_cv_prog_cc_cross=no
1331 else
1332 ac_cv_prog_cc_cross=yes
1334 else
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1337 ac_cv_prog_cc_works=no
1339 rm -fr conftest*
1340 ac_ext=c
1341 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1342 ac_cpp='$CPP $CPPFLAGS'
1343 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1344 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1345 cross_compiling=$ac_cv_prog_cc_cross
1347 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1348 if test $ac_cv_prog_cc_works = no; then
1349 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1351 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1352 echo "configure:1353: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1353 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1354 cross_compiling=$ac_cv_prog_cc_cross
1356 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1357 echo "configure:1358: checking whether we are using GNU C" >&5
1358 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1360 else
1361 cat > conftest.c <<EOF
1362 #ifdef __GNUC__
1363 yes;
1364 #endif
1366 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1367 ac_cv_prog_gcc=yes
1368 else
1369 ac_cv_prog_gcc=no
1373 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1375 if test $ac_cv_prog_gcc = yes; then
1376 GCC=yes
1377 else
1378 GCC=
1381 ac_test_CFLAGS="${CFLAGS+set}"
1382 ac_save_CFLAGS="$CFLAGS"
1383 CFLAGS=
1384 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1385 echo "configure:1386: checking whether ${CC-cc} accepts -g" >&5
1386 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1388 else
1389 echo 'void f(){}' > conftest.c
1390 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1391 ac_cv_prog_cc_g=yes
1392 else
1393 ac_cv_prog_cc_g=no
1395 rm -f conftest*
1399 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1400 if test "$ac_test_CFLAGS" = set; then
1401 CFLAGS="$ac_save_CFLAGS"
1402 elif test $ac_cv_prog_cc_g = yes; then
1403 if test "$GCC" = yes; then
1404 CFLAGS="-g -O2"
1405 else
1406 CFLAGS="-g"
1408 else
1409 if test "$GCC" = yes; then
1410 CFLAGS="-O2"
1411 else
1412 CFLAGS=
1416 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1417 if test "${with_gnu_ld+set}" = set; then
1418 withval="$with_gnu_ld"
1419 test "$withval" = no || with_gnu_ld=yes
1420 else
1421 with_gnu_ld=no
1424 ac_prog=ld
1425 if test "$GCC" = yes; then
1426 # Check if gcc -print-prog-name=ld gives a path.
1427 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1428 echo "configure:1429: checking for ld used by GCC" >&5
1429 case $host in
1430 *-*-mingw*)
1431 # gcc leaves a trailing carriage return which upsets mingw
1432 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1434 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1435 esac
1436 case $ac_prog in
1437 # Accept absolute paths.
1438 [\\/]* | [A-Za-z]:[\\/]*)
1439 re_direlt='/[^/][^/]*/\.\./'
1440 # Canonicalize the path of ld
1441 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1442 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1443 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1444 done
1445 test -z "$LD" && LD="$ac_prog"
1448 # If it fails, then pretend we aren't using GCC.
1449 ac_prog=ld
1452 # If it is relative, then search for the first ld in PATH.
1453 with_gnu_ld=unknown
1455 esac
1456 elif test "$with_gnu_ld" = yes; then
1457 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1458 echo "configure:1459: checking for GNU ld" >&5
1459 else
1460 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1461 echo "configure:1462: checking for non-GNU ld" >&5
1463 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1465 else
1466 if test -z "$LD"; then
1467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1468 for ac_dir in $PATH; do
1469 test -z "$ac_dir" && ac_dir=.
1470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1471 lt_cv_path_LD="$ac_dir/$ac_prog"
1472 # Check to see if the program is GNU ld. I'd rather use --version,
1473 # but apparently some GNU ld's only accept -v.
1474 # Break only if it was the GNU/non-GNU ld that we prefer.
1475 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1476 test "$with_gnu_ld" != no && break
1477 else
1478 test "$with_gnu_ld" != yes && break
1481 done
1482 IFS="$ac_save_ifs"
1483 else
1484 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1488 LD="$lt_cv_path_LD"
1489 if test -n "$LD"; then
1490 echo "$ac_t""$LD" 1>&6
1491 else
1492 echo "$ac_t""no" 1>&6
1494 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1495 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1496 echo "configure:1497: checking if the linker ($LD) is GNU ld" >&5
1497 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1499 else
1500 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1501 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1502 lt_cv_prog_gnu_ld=yes
1503 else
1504 lt_cv_prog_gnu_ld=no
1508 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1509 with_gnu_ld=$lt_cv_prog_gnu_ld
1512 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1513 echo "configure:1514: checking for $LD option to reload object files" >&5
1514 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1516 else
1517 lt_cv_ld_reload_flag='-r'
1520 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1521 reload_flag=$lt_cv_ld_reload_flag
1522 test -n "$reload_flag" && reload_flag=" $reload_flag"
1524 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1525 echo "configure:1526: checking for BSD-compatible nm" >&5
1526 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1528 else
1529 if test -n "$NM"; then
1530 # Let the user override the test.
1531 lt_cv_path_NM="$NM"
1532 else
1533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1534 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1535 test -z "$ac_dir" && ac_dir=.
1536 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1537 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1538 # Check to see if the nm accepts a BSD-compat flag.
1539 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1540 # nm: unknown option "B" ignored
1541 # Tru64's nm complains that /dev/null is an invalid object file
1542 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1543 lt_cv_path_NM="$tmp_nm -B"
1544 break
1545 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1546 lt_cv_path_NM="$tmp_nm -p"
1547 break
1548 else
1549 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1550 continue # so that we can try to find one that supports BSD flags
1553 done
1554 IFS="$ac_save_ifs"
1555 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1559 NM="$lt_cv_path_NM"
1560 echo "$ac_t""$NM" 1>&6
1562 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether ln -s works" >&5
1564 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567 rm -f conftestdata
1568 if ln -s X conftestdata 2>/dev/null
1569 then
1570 rm -f conftestdata
1571 ac_cv_prog_LN_S="ln -s"
1572 else
1573 ac_cv_prog_LN_S=ln
1576 LN_S="$ac_cv_prog_LN_S"
1577 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1578 echo "$ac_t""yes" 1>&6
1579 else
1580 echo "$ac_t""no" 1>&6
1583 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1584 echo "configure:1585: checking how to recognise dependant libraries" >&5
1585 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1587 else
1588 lt_cv_file_magic_cmd='$MAGIC_CMD'
1589 lt_cv_file_magic_test_file=
1590 lt_cv_deplibs_check_method='unknown'
1591 # Need to set the preceding variable on all platforms that support
1592 # interlibrary dependencies.
1593 # 'none' -- dependencies not supported.
1594 # `unknown' -- same as none, but documents that we really don't know.
1595 # 'pass_all' -- all dependencies passed with no checks.
1596 # 'test_compile' -- check by making test program.
1597 # 'file_magic [regex]' -- check by looking for files in library path
1598 # which responds to the $file_magic_cmd with a given egrep regex.
1599 # If you have `file' or equivalent on your system and you're not sure
1600 # whether `pass_all' will *always* work, you probably want this one.
1602 case $host_os in
1603 aix*)
1604 lt_cv_deplibs_check_method=pass_all
1607 beos*)
1608 lt_cv_deplibs_check_method=pass_all
1611 bsdi4*)
1612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1613 lt_cv_file_magic_cmd='/usr/bin/file -L'
1614 lt_cv_file_magic_test_file=/shlib/libc.so
1617 cygwin* | mingw* |pw32*)
1618 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1619 lt_cv_file_magic_cmd='$OBJDUMP -f'
1622 darwin* | rhapsody*)
1623 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1624 lt_cv_file_magic_cmd='/usr/bin/file -L'
1625 case "$host_os" in
1626 rhapsody* | darwin1.012)
1627 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1629 *) # Darwin 1.3 on
1630 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1632 esac
1635 freebsd* )
1636 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1637 case $host_cpu in
1638 i*86 )
1639 # Not sure whether the presence of OpenBSD here was a mistake.
1640 # Let's accept both of them until this is cleared up.
1641 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1642 lt_cv_file_magic_cmd=/usr/bin/file
1643 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1645 esac
1646 else
1647 lt_cv_deplibs_check_method=pass_all
1651 gnu*)
1652 lt_cv_deplibs_check_method=pass_all
1655 hpux10.20*|hpux11*)
1656 case $host_cpu in
1657 hppa*)
1658 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1659 lt_cv_file_magic_cmd=/usr/bin/file
1660 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1662 ia64*)
1663 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1664 lt_cv_file_magic_cmd=/usr/bin/file
1665 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1667 esac
1670 irix5* | irix6*)
1671 case $host_os in
1672 irix5*)
1673 # this will be overridden with pass_all, but let us keep it just in case
1674 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1677 case $LD in
1678 *-32|*"-32 ") libmagic=32-bit;;
1679 *-n32|*"-n32 ") libmagic=N32;;
1680 *-64|*"-64 ") libmagic=64-bit;;
1681 *) libmagic=never-match;;
1682 esac
1683 # this will be overridden with pass_all, but let us keep it just in case
1684 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1686 esac
1687 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1688 lt_cv_deplibs_check_method=pass_all
1691 # This must be Linux ELF.
1692 linux-gnu*)
1693 case $host_cpu in
1694 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1695 lt_cv_deplibs_check_method=pass_all ;;
1697 # glibc up to 2.1.1 does not perform some relocations on ARM
1698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1699 esac
1700 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1703 netbsd*)
1704 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1705 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1706 else
1707 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1711 newsos6)
1712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1713 lt_cv_file_magic_cmd=/usr/bin/file
1714 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1717 osf3* | osf4* | osf5*)
1718 # this will be overridden with pass_all, but let us keep it just in case
1719 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1720 lt_cv_file_magic_test_file=/shlib/libc.so
1721 lt_cv_deplibs_check_method=pass_all
1724 sco3.2v5*)
1725 lt_cv_deplibs_check_method=pass_all
1728 solaris*)
1729 lt_cv_deplibs_check_method=pass_all
1730 lt_cv_file_magic_test_file=/lib/libc.so
1733 sysv5uw[78]* | sysv4*uw2*)
1734 lt_cv_deplibs_check_method=pass_all
1737 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1738 case $host_vendor in
1739 ncr)
1740 lt_cv_deplibs_check_method=pass_all
1742 motorola)
1743 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]'
1744 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1746 esac
1748 esac
1752 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1753 file_magic_cmd=$lt_cv_file_magic_cmd
1754 deplibs_check_method=$lt_cv_deplibs_check_method
1756 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1757 echo "configure:1758: checking for object suffix" >&5
1758 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1760 else
1761 rm -f conftest*
1762 echo 'int i = 1;' > conftest.$ac_ext
1763 if { (eval echo configure:1764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1764 for ac_file in conftest.*; do
1765 case $ac_file in
1766 *.c) ;;
1767 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1768 esac
1769 done
1770 else
1771 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1773 rm -f conftest*
1776 echo "$ac_t""$ac_cv_objext" 1>&6
1777 OBJEXT=$ac_cv_objext
1778 ac_objext=$ac_cv_objext
1782 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1783 echo "configure:1784: checking for executable suffix" >&5
1784 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1786 else
1787 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1788 ac_cv_exeext=.exe
1789 else
1790 rm -f conftest*
1791 echo 'int main () { return 0; }' > conftest.$ac_ext
1792 ac_cv_exeext=
1793 if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1794 for file in conftest.*; do
1795 case $file in
1796 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1797 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1798 esac
1799 done
1800 else
1801 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1803 rm -f conftest*
1804 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1808 EXEEXT=""
1809 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1810 echo "$ac_t""${ac_cv_exeext}" 1>&6
1811 ac_exeext=$EXEEXT
1813 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1815 # Only perform the check for file, if the check method requires it
1816 case $deplibs_check_method in
1817 file_magic*)
1818 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1819 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1820 echo "configure:1821: checking for ${ac_tool_prefix}file" >&5
1821 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1823 else
1824 case $MAGIC_CMD in
1826 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1828 ?:/*)
1829 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1832 ac_save_MAGIC_CMD="$MAGIC_CMD"
1833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1834 ac_dummy="/usr/bin:$PATH"
1835 for ac_dir in $ac_dummy; do
1836 test -z "$ac_dir" && ac_dir=.
1837 if test -f $ac_dir/${ac_tool_prefix}file; then
1838 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1839 if test -n "$file_magic_test_file"; then
1840 case $deplibs_check_method in
1841 "file_magic "*)
1842 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1844 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1845 egrep "$file_magic_regex" > /dev/null; then
1847 else
1848 cat <<EOF 1>&2
1850 *** Warning: the command libtool uses to detect shared libraries,
1851 *** $file_magic_cmd, produces output that libtool cannot recognize.
1852 *** The result is that libtool may fail to recognize shared libraries
1853 *** as such. This will affect the creation of libtool libraries that
1854 *** depend on shared libraries, but programs linked with such libtool
1855 *** libraries will work regardless of this problem. Nevertheless, you
1856 *** may want to report the problem to your system manager and/or to
1857 *** bug-libtool@gnu.org
1860 fi ;;
1861 esac
1863 break
1865 done
1866 IFS="$ac_save_ifs"
1867 MAGIC_CMD="$ac_save_MAGIC_CMD"
1869 esac
1872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1873 if test -n "$MAGIC_CMD"; then
1874 echo "$ac_t""$MAGIC_CMD" 1>&6
1875 else
1876 echo "$ac_t""no" 1>&6
1879 if test -z "$lt_cv_path_MAGIC_CMD"; then
1880 if test -n "$ac_tool_prefix"; then
1881 echo $ac_n "checking for file""... $ac_c" 1>&6
1882 echo "configure:1883: checking for file" >&5
1883 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1885 else
1886 case $MAGIC_CMD in
1888 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1890 ?:/*)
1891 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1894 ac_save_MAGIC_CMD="$MAGIC_CMD"
1895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1896 ac_dummy="/usr/bin:$PATH"
1897 for ac_dir in $ac_dummy; do
1898 test -z "$ac_dir" && ac_dir=.
1899 if test -f $ac_dir/file; then
1900 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1901 if test -n "$file_magic_test_file"; then
1902 case $deplibs_check_method in
1903 "file_magic "*)
1904 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1907 egrep "$file_magic_regex" > /dev/null; then
1909 else
1910 cat <<EOF 1>&2
1912 *** Warning: the command libtool uses to detect shared libraries,
1913 *** $file_magic_cmd, produces output that libtool cannot recognize.
1914 *** The result is that libtool may fail to recognize shared libraries
1915 *** as such. This will affect the creation of libtool libraries that
1916 *** depend on shared libraries, but programs linked with such libtool
1917 *** libraries will work regardless of this problem. Nevertheless, you
1918 *** may want to report the problem to your system manager and/or to
1919 *** bug-libtool@gnu.org
1922 fi ;;
1923 esac
1925 break
1927 done
1928 IFS="$ac_save_ifs"
1929 MAGIC_CMD="$ac_save_MAGIC_CMD"
1931 esac
1934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1935 if test -n "$MAGIC_CMD"; then
1936 echo "$ac_t""$MAGIC_CMD" 1>&6
1937 else
1938 echo "$ac_t""no" 1>&6
1941 else
1942 MAGIC_CMD=:
1948 esac
1950 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1951 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1953 echo "configure:1954: checking for $ac_word" >&5
1954 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1956 else
1957 if test -n "$RANLIB"; then
1958 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1959 else
1960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1961 ac_dummy="$PATH"
1962 for ac_dir in $ac_dummy; do
1963 test -z "$ac_dir" && ac_dir=.
1964 if test -f $ac_dir/$ac_word; then
1965 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1966 break
1968 done
1969 IFS="$ac_save_ifs"
1972 RANLIB="$ac_cv_prog_RANLIB"
1973 if test -n "$RANLIB"; then
1974 echo "$ac_t""$RANLIB" 1>&6
1975 else
1976 echo "$ac_t""no" 1>&6
1980 if test -z "$ac_cv_prog_RANLIB"; then
1981 if test -n "$ac_tool_prefix"; then
1982 # Extract the first word of "ranlib", so it can be a program name with args.
1983 set dummy ranlib; ac_word=$2
1984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1985 echo "configure:1986: checking for $ac_word" >&5
1986 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1988 else
1989 if test -n "$RANLIB"; then
1990 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1991 else
1992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1993 ac_dummy="$PATH"
1994 for ac_dir in $ac_dummy; do
1995 test -z "$ac_dir" && ac_dir=.
1996 if test -f $ac_dir/$ac_word; then
1997 ac_cv_prog_RANLIB="ranlib"
1998 break
2000 done
2001 IFS="$ac_save_ifs"
2002 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2005 RANLIB="$ac_cv_prog_RANLIB"
2006 if test -n "$RANLIB"; then
2007 echo "$ac_t""$RANLIB" 1>&6
2008 else
2009 echo "$ac_t""no" 1>&6
2012 else
2013 RANLIB=":"
2017 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2018 set dummy ${ac_tool_prefix}strip; ac_word=$2
2019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2020 echo "configure:2021: checking for $ac_word" >&5
2021 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2023 else
2024 if test -n "$STRIP"; then
2025 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2026 else
2027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2028 ac_dummy="$PATH"
2029 for ac_dir in $ac_dummy; do
2030 test -z "$ac_dir" && ac_dir=.
2031 if test -f $ac_dir/$ac_word; then
2032 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2033 break
2035 done
2036 IFS="$ac_save_ifs"
2039 STRIP="$ac_cv_prog_STRIP"
2040 if test -n "$STRIP"; then
2041 echo "$ac_t""$STRIP" 1>&6
2042 else
2043 echo "$ac_t""no" 1>&6
2047 if test -z "$ac_cv_prog_STRIP"; then
2048 if test -n "$ac_tool_prefix"; then
2049 # Extract the first word of "strip", so it can be a program name with args.
2050 set dummy strip; ac_word=$2
2051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2052 echo "configure:2053: checking for $ac_word" >&5
2053 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2055 else
2056 if test -n "$STRIP"; then
2057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2058 else
2059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2060 ac_dummy="$PATH"
2061 for ac_dir in $ac_dummy; do
2062 test -z "$ac_dir" && ac_dir=.
2063 if test -f $ac_dir/$ac_word; then
2064 ac_cv_prog_STRIP="strip"
2065 break
2067 done
2068 IFS="$ac_save_ifs"
2069 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2072 STRIP="$ac_cv_prog_STRIP"
2073 if test -n "$STRIP"; then
2074 echo "$ac_t""$STRIP" 1>&6
2075 else
2076 echo "$ac_t""no" 1>&6
2079 else
2080 STRIP=":"
2085 # Check for any special flags to pass to ltconfig.
2086 libtool_flags="--cache-file=$cache_file"
2087 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2088 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2089 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2090 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2091 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2094 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2095 if test "${enable_libtool_lock+set}" = set; then
2096 enableval="$enable_libtool_lock"
2100 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2101 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2103 # Check whether --with-pic or --without-pic was given.
2104 if test "${with_pic+set}" = set; then
2105 withval="$with_pic"
2106 pic_mode="$withval"
2107 else
2108 pic_mode=default
2111 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2112 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2114 # Some flags need to be propagated to the compiler or linker for good
2115 # libtool support.
2116 case $host in
2117 *-*-irix6*)
2118 # Find out which ABI we are using.
2119 echo '#line 2120 "configure"' > conftest.$ac_ext
2120 if { (eval echo configure:2121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2121 if test "$lt_cv_prog_gnu_ld" = yes; then
2122 case `/usr/bin/file conftest.$ac_objext` in
2123 *32-bit*)
2124 LD="${LD-ld} -melf32bsmip"
2126 *N32*)
2127 LD="${LD-ld} -melf32bmipn32"
2129 *64-bit*)
2130 LD="${LD-ld} -melf64bmip"
2132 esac
2133 else
2134 case `/usr/bin/file conftest.$ac_objext` in
2135 *32-bit*)
2136 LD="${LD-ld} -32"
2138 *N32*)
2139 LD="${LD-ld} -n32"
2141 *64-bit*)
2142 LD="${LD-ld} -64"
2144 esac
2147 rm -rf conftest*
2150 ia64-*-hpux*)
2151 # Find out which ABI we are using.
2152 echo 'int i;' > conftest.$ac_ext
2153 if { (eval echo configure:2154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2154 case "`/usr/bin/file conftest.o`" in
2155 *ELF-32*)
2156 HPUX_IA64_MODE="32"
2158 *ELF-64*)
2159 HPUX_IA64_MODE="64"
2161 esac
2163 rm -rf conftest*
2166 *-*-sco3.2v5*)
2167 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2168 SAVE_CFLAGS="$CFLAGS"
2169 CFLAGS="$CFLAGS -belf"
2170 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2171 echo "configure:2172: checking whether the C compiler needs -belf" >&5
2172 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2174 else
2176 ac_ext=c
2177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2178 ac_cpp='$CPP $CPPFLAGS'
2179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2181 cross_compiling=$ac_cv_prog_cc_cross
2183 cat > conftest.$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2187 int main() {
2189 ; return 0; }
2191 if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2192 rm -rf conftest*
2193 lt_cv_cc_needs_belf=yes
2194 else
2195 echo "configure: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2197 rm -rf conftest*
2198 lt_cv_cc_needs_belf=no
2200 rm -f conftest*
2201 ac_ext=c
2202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2203 ac_cpp='$CPP $CPPFLAGS'
2204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2206 cross_compiling=$ac_cv_prog_cc_cross
2210 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2211 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2212 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2213 CFLAGS="$SAVE_CFLAGS"
2218 esac
2221 # Save cache, so that ltconfig can load it
2222 cat > confcache <<\EOF
2223 # This file is a shell script that caches the results of configure
2224 # tests run on this system so they can be shared between configure
2225 # scripts and configure runs. It is not useful on other systems.
2226 # If it contains results you don't want to keep, you may remove or edit it.
2228 # By default, configure uses ./config.cache as the cache file,
2229 # creating it if it does not exist already. You can give configure
2230 # the --cache-file=FILE option to use a different cache file; that is
2231 # what configure does when it calls configure scripts in
2232 # subdirectories, so they share the cache.
2233 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2234 # config.status only pays attention to the cache file if you give it the
2235 # --recheck option to rerun configure.
2238 # The following way of writing the cache mishandles newlines in values,
2239 # but we know of no workaround that is simple, portable, and efficient.
2240 # So, don't put newlines in cache variables' values.
2241 # Ultrix sh set writes to stderr and can't be redirected directly,
2242 # and sets the high bit in the cache file unless we assign to the vars.
2243 (set) 2>&1 |
2244 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2245 *ac_space=\ *)
2246 # `set' does not quote correctly, so add quotes (double-quote substitution
2247 # turns \\\\ into \\, and sed turns \\ into \).
2248 sed -n \
2249 -e "s/'/'\\\\''/g" \
2250 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2253 # `set' quotes correctly as required by POSIX, so do not add quotes.
2254 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2256 esac >> confcache
2257 if cmp -s $cache_file confcache; then
2259 else
2260 if test -w $cache_file; then
2261 echo "updating cache $cache_file"
2262 cat confcache > $cache_file
2263 else
2264 echo "not updating unwritable cache $cache_file"
2267 rm -f confcache
2270 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2271 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2272 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2273 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2274 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2275 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2276 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2277 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2278 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2279 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2281 # Reload cache, that may have been modified by ltconfig
2282 if test -r "$cache_file"; then
2283 echo "loading cache $cache_file"
2284 . $cache_file
2285 else
2286 echo "creating cache $cache_file"
2287 > $cache_file
2291 # This can be used to rebuild libtool when needed
2292 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2294 # Always use our own libtool.
2295 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2297 # Redirect the config.log output again, so that the ltconfig log is not
2298 # clobbered by the next message.
2299 exec 5>>./config.log
2307 # Check whether --enable-targets or --disable-targets was given.
2308 if test "${enable_targets+set}" = set; then
2309 enableval="$enable_targets"
2310 case "${enableval}" in
2311 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2313 no) enable_targets= ;;
2314 *) enable_targets=$enableval ;;
2315 esac
2317 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2318 if test "${enable_commonbfdlib+set}" = set; then
2319 enableval="$enable_commonbfdlib"
2320 case "${enableval}" in
2321 yes) commonbfdlib=true ;;
2322 no) commonbfdlib=false ;;
2323 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
2324 esac
2327 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2328 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2329 if test "${enable_build_warnings+set}" = set; then
2330 enableval="$enable_build_warnings"
2331 case "${enableval}" in
2332 yes) ;;
2333 no) build_warnings="-w";;
2334 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2335 build_warnings="${build_warnings} ${t}";;
2336 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2337 build_warnings="${t} ${build_warnings}";;
2338 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2339 esac
2340 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2341 echo "Setting warning flags = $build_warnings" 6>&1
2344 WARN_CFLAGS=""
2345 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2346 WARN_CFLAGS="${build_warnings}"
2354 if test -z "$target" ; then
2355 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2358 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2359 echo "configure:2360: checking whether to enable maintainer-specific portions of Makefiles" >&5
2360 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2361 if test "${enable_maintainer_mode+set}" = set; then
2362 enableval="$enable_maintainer_mode"
2363 USE_MAINTAINER_MODE=$enableval
2364 else
2365 USE_MAINTAINER_MODE=no
2368 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2371 if test $USE_MAINTAINER_MODE = yes; then
2372 MAINTAINER_MODE_TRUE=
2373 MAINTAINER_MODE_FALSE='#'
2374 else
2375 MAINTAINER_MODE_TRUE='#'
2376 MAINTAINER_MODE_FALSE=
2378 MAINT=$MAINTAINER_MODE_TRUE
2381 echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
2382 echo "configure:2383: checking whether to install libbfd" >&5
2383 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
2384 if test "${enable_install_libbfd+set}" = set; then
2385 enableval="$enable_install_libbfd"
2386 install_libbfd_p=$enableval
2387 else
2388 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
2389 install_libbfd_p=yes
2390 else
2391 install_libbfd_p=no
2395 echo "$ac_t""$install_libbfd_p" 1>&6
2398 if test $install_libbfd_p = yes; then
2399 INSTALL_LIBBFD_TRUE=
2400 INSTALL_LIBBFD_FALSE='#'
2401 else
2402 INSTALL_LIBBFD_TRUE='#'
2403 INSTALL_LIBBFD_FALSE=
2405 # libbfd.a is a host library containing target dependent code
2406 bfdlibdir='$(libdir)'
2407 bfdincludedir='$(includedir)'
2408 if test "${host}" != "${target}"; then
2409 bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
2410 bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
2418 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2419 echo "configure:2420: checking for executable suffix" >&5
2420 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2422 else
2423 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2424 ac_cv_exeext=.exe
2425 else
2426 rm -f conftest*
2427 echo 'int main () { return 0; }' > conftest.$ac_ext
2428 ac_cv_exeext=
2429 if { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2430 for file in conftest.*; do
2431 case $file in
2432 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2433 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2434 esac
2435 done
2436 else
2437 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2439 rm -f conftest*
2440 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2444 EXEEXT=""
2445 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2446 echo "$ac_t""${ac_cv_exeext}" 1>&6
2447 ac_exeext=$EXEEXT
2450 # host-specific stuff:
2452 # Extract the first word of "gcc", so it can be a program name with args.
2453 set dummy gcc; 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_CC'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2458 else
2459 if test -n "$CC"; then
2460 ac_cv_prog_CC="$CC" # 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_CC="gcc"
2468 break
2470 done
2471 IFS="$ac_save_ifs"
2474 CC="$ac_cv_prog_CC"
2475 if test -n "$CC"; then
2476 echo "$ac_t""$CC" 1>&6
2477 else
2478 echo "$ac_t""no" 1>&6
2481 if test -z "$CC"; then
2482 # Extract the first word of "cc", so it can be a program name with args.
2483 set dummy cc; ac_word=$2
2484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2485 echo "configure:2486: checking for $ac_word" >&5
2486 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2488 else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2493 ac_prog_rejected=no
2494 ac_dummy="$PATH"
2495 for ac_dir in $ac_dummy; do
2496 test -z "$ac_dir" && ac_dir=.
2497 if test -f $ac_dir/$ac_word; then
2498 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2499 ac_prog_rejected=yes
2500 continue
2502 ac_cv_prog_CC="cc"
2503 break
2505 done
2506 IFS="$ac_save_ifs"
2507 if test $ac_prog_rejected = yes; then
2508 # We found a bogon in the path, so make sure we never use it.
2509 set dummy $ac_cv_prog_CC
2510 shift
2511 if test $# -gt 0; then
2512 # We chose a different compiler from the bogus one.
2513 # However, it has the same basename, so the bogon will be chosen
2514 # first if we set CC to just the basename; use the full file name.
2515 shift
2516 set dummy "$ac_dir/$ac_word" "$@"
2517 shift
2518 ac_cv_prog_CC="$@"
2523 CC="$ac_cv_prog_CC"
2524 if test -n "$CC"; then
2525 echo "$ac_t""$CC" 1>&6
2526 else
2527 echo "$ac_t""no" 1>&6
2530 if test -z "$CC"; then
2531 case "`uname -s`" in
2532 *win32* | *WIN32*)
2533 # Extract the first word of "cl", so it can be a program name with args.
2534 set dummy cl; ac_word=$2
2535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2536 echo "configure:2537: checking for $ac_word" >&5
2537 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2539 else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2544 ac_dummy="$PATH"
2545 for ac_dir in $ac_dummy; do
2546 test -z "$ac_dir" && ac_dir=.
2547 if test -f $ac_dir/$ac_word; then
2548 ac_cv_prog_CC="cl"
2549 break
2551 done
2552 IFS="$ac_save_ifs"
2555 CC="$ac_cv_prog_CC"
2556 if test -n "$CC"; then
2557 echo "$ac_t""$CC" 1>&6
2558 else
2559 echo "$ac_t""no" 1>&6
2562 esac
2564 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2567 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2568 echo "configure:2569: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2570 ac_ext=c
2571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2572 ac_cpp='$CPP $CPPFLAGS'
2573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2575 cross_compiling=$ac_cv_prog_cc_cross
2577 cat > conftest.$ac_ext << EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2582 main(){return(0);}
2584 if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2585 ac_cv_prog_cc_works=yes
2586 # If we can't run a trivial program, we are probably using a cross compiler.
2587 if (./conftest; exit) 2>/dev/null; then
2588 ac_cv_prog_cc_cross=no
2589 else
2590 ac_cv_prog_cc_cross=yes
2592 else
2593 echo "configure: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2595 ac_cv_prog_cc_works=no
2597 rm -fr conftest*
2598 ac_ext=c
2599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2600 ac_cpp='$CPP $CPPFLAGS'
2601 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2602 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2603 cross_compiling=$ac_cv_prog_cc_cross
2605 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2606 if test $ac_cv_prog_cc_works = no; then
2607 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2609 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2610 echo "configure:2611: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2611 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2612 cross_compiling=$ac_cv_prog_cc_cross
2614 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2615 echo "configure:2616: checking whether we are using GNU C" >&5
2616 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2618 else
2619 cat > conftest.c <<EOF
2620 #ifdef __GNUC__
2621 yes;
2622 #endif
2624 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2625 ac_cv_prog_gcc=yes
2626 else
2627 ac_cv_prog_gcc=no
2631 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2633 if test $ac_cv_prog_gcc = yes; then
2634 GCC=yes
2635 else
2636 GCC=
2639 ac_test_CFLAGS="${CFLAGS+set}"
2640 ac_save_CFLAGS="$CFLAGS"
2641 CFLAGS=
2642 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2643 echo "configure:2644: checking whether ${CC-cc} accepts -g" >&5
2644 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2646 else
2647 echo 'void f(){}' > conftest.c
2648 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2649 ac_cv_prog_cc_g=yes
2650 else
2651 ac_cv_prog_cc_g=no
2653 rm -f conftest*
2657 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2658 if test "$ac_test_CFLAGS" = set; then
2659 CFLAGS="$ac_save_CFLAGS"
2660 elif test $ac_cv_prog_cc_g = yes; then
2661 if test "$GCC" = yes; then
2662 CFLAGS="-g -O2"
2663 else
2664 CFLAGS="-g"
2666 else
2667 if test "$GCC" = yes; then
2668 CFLAGS="-O2"
2669 else
2670 CFLAGS=
2675 ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl"
2676 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2677 echo "configure:2678: checking how to run the C preprocessor" >&5
2678 # On Suns, sometimes $CPP names a directory.
2679 if test -n "$CPP" && test -d "$CPP"; then
2680 CPP=
2682 if test -z "$CPP"; then
2683 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2685 else
2686 # This must be in double quotes, not single quotes, because CPP may get
2687 # substituted into the Makefile and "${CC-cc}" will confuse make.
2688 CPP="${CC-cc} -E"
2689 # On the NeXT, cc -E runs the code through the compiler's parser,
2690 # not just through cpp.
2691 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 #include <assert.h>
2695 Syntax Error
2697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2698 { (eval echo configure:2699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2700 if test -z "$ac_err"; then
2702 else
2703 echo "$ac_err" >&5
2704 echo "configure: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2706 rm -rf conftest*
2707 CPP="${CC-cc} -E -traditional-cpp"
2708 cat > conftest.$ac_ext <<EOF
2709 #line 2710 "configure"
2710 #include "confdefs.h"
2711 #include <assert.h>
2712 Syntax Error
2714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2717 if test -z "$ac_err"; then
2719 else
2720 echo "$ac_err" >&5
2721 echo "configure: failed program was:" >&5
2722 cat conftest.$ac_ext >&5
2723 rm -rf conftest*
2724 CPP="${CC-cc} -nologo -E"
2725 cat > conftest.$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2728 #include <assert.h>
2729 Syntax Error
2731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2732 { (eval echo configure:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2734 if test -z "$ac_err"; then
2736 else
2737 echo "$ac_err" >&5
2738 echo "configure: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2740 rm -rf conftest*
2741 CPP=/lib/cpp
2743 rm -f conftest*
2745 rm -f conftest*
2747 rm -f conftest*
2748 ac_cv_prog_CPP="$CPP"
2750 CPP="$ac_cv_prog_CPP"
2751 else
2752 ac_cv_prog_CPP="$CPP"
2754 echo "$ac_t""$CPP" 1>&6
2756 # Extract the first word of "ranlib", so it can be a program name with args.
2757 set dummy ranlib; ac_word=$2
2758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2759 echo "configure:2760: checking for $ac_word" >&5
2760 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2762 else
2763 if test -n "$RANLIB"; then
2764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2765 else
2766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2767 ac_dummy="$PATH"
2768 for ac_dir in $ac_dummy; do
2769 test -z "$ac_dir" && ac_dir=.
2770 if test -f $ac_dir/$ac_word; then
2771 ac_cv_prog_RANLIB="ranlib"
2772 break
2774 done
2775 IFS="$ac_save_ifs"
2776 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2779 RANLIB="$ac_cv_prog_RANLIB"
2780 if test -n "$RANLIB"; then
2781 echo "$ac_t""$RANLIB" 1>&6
2782 else
2783 echo "$ac_t""no" 1>&6
2786 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2787 echo "configure:2788: checking for ANSI C header files" >&5
2788 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2790 else
2791 cat > conftest.$ac_ext <<EOF
2792 #line 2793 "configure"
2793 #include "confdefs.h"
2794 #include <stdlib.h>
2795 #include <stdarg.h>
2796 #include <string.h>
2797 #include <float.h>
2799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2800 { (eval echo configure:2801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2802 if test -z "$ac_err"; then
2803 rm -rf conftest*
2804 ac_cv_header_stdc=yes
2805 else
2806 echo "$ac_err" >&5
2807 echo "configure: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2809 rm -rf conftest*
2810 ac_cv_header_stdc=no
2812 rm -f conftest*
2814 if test $ac_cv_header_stdc = yes; then
2815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 #include <string.h>
2821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2822 egrep "memchr" >/dev/null 2>&1; then
2824 else
2825 rm -rf conftest*
2826 ac_cv_header_stdc=no
2828 rm -f conftest*
2832 if test $ac_cv_header_stdc = yes; then
2833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2834 cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837 #include <stdlib.h>
2839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2840 egrep "free" >/dev/null 2>&1; then
2842 else
2843 rm -rf conftest*
2844 ac_cv_header_stdc=no
2846 rm -f conftest*
2850 if test $ac_cv_header_stdc = yes; then
2851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2852 if test "$cross_compiling" = yes; then
2854 else
2855 cat > conftest.$ac_ext <<EOF
2856 #line 2857 "configure"
2857 #include "confdefs.h"
2858 #include <ctype.h>
2859 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2860 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2862 int main () { int i; for (i = 0; i < 256; i++)
2863 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2864 exit (0); }
2867 if { (eval echo configure:2868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2868 then
2870 else
2871 echo "configure: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2873 rm -fr conftest*
2874 ac_cv_header_stdc=no
2876 rm -fr conftest*
2882 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2883 if test $ac_cv_header_stdc = yes; then
2884 cat >> confdefs.h <<\EOF
2885 #define STDC_HEADERS 1
2890 echo $ac_n "checking for working const""... $ac_c" 1>&6
2891 echo "configure:2892: checking for working const" >&5
2892 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2894 else
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2899 int main() {
2901 /* Ultrix mips cc rejects this. */
2902 typedef int charset[2]; const charset x;
2903 /* SunOS 4.1.1 cc rejects this. */
2904 char const *const *ccp;
2905 char **p;
2906 /* NEC SVR4.0.2 mips cc rejects this. */
2907 struct point {int x, y;};
2908 static struct point const zero = {0,0};
2909 /* AIX XL C 1.02.0.0 rejects this.
2910 It does not let you subtract one const X* pointer from another in an arm
2911 of an if-expression whose if-part is not a constant expression */
2912 const char *g = "string";
2913 ccp = &g + (g ? g-g : 0);
2914 /* HPUX 7.0 cc rejects these. */
2915 ++ccp;
2916 p = (char**) ccp;
2917 ccp = (char const *const *) p;
2918 { /* SCO 3.2v4 cc rejects this. */
2919 char *t;
2920 char const *s = 0 ? (char *) 0 : (char const *) 0;
2922 *t++ = 0;
2924 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2925 int x[] = {25, 17};
2926 const int *foo = &x[0];
2927 ++foo;
2929 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2930 typedef const int *iptr;
2931 iptr p = 0;
2932 ++p;
2934 { /* AIX XL C 1.02.0.0 rejects this saying
2935 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2936 struct s { int j; const int *ap[3]; };
2937 struct s *b; b->j = 5;
2939 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2940 const int foo = 10;
2943 ; return 0; }
2945 if { (eval echo configure:2946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2946 rm -rf conftest*
2947 ac_cv_c_const=yes
2948 else
2949 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2951 rm -rf conftest*
2952 ac_cv_c_const=no
2954 rm -f conftest*
2957 echo "$ac_t""$ac_cv_c_const" 1>&6
2958 if test $ac_cv_c_const = no; then
2959 cat >> confdefs.h <<\EOF
2960 #define const
2965 echo $ac_n "checking for inline""... $ac_c" 1>&6
2966 echo "configure:2967: checking for inline" >&5
2967 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2969 else
2970 ac_cv_c_inline=no
2971 for ac_kw in inline __inline__ __inline; do
2972 cat > conftest.$ac_ext <<EOF
2973 #line 2974 "configure"
2974 #include "confdefs.h"
2976 int main() {
2977 } $ac_kw foo() {
2978 ; return 0; }
2980 if { (eval echo configure:2981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2981 rm -rf conftest*
2982 ac_cv_c_inline=$ac_kw; break
2983 else
2984 echo "configure: failed program was:" >&5
2985 cat conftest.$ac_ext >&5
2987 rm -f conftest*
2988 done
2992 echo "$ac_t""$ac_cv_c_inline" 1>&6
2993 case "$ac_cv_c_inline" in
2994 inline | yes) ;;
2995 no) cat >> confdefs.h <<\EOF
2996 #define inline
2999 *) cat >> confdefs.h <<EOF
3000 #define inline $ac_cv_c_inline
3003 esac
3005 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3006 echo "configure:3007: checking for off_t" >&5
3007 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3009 else
3010 cat > conftest.$ac_ext <<EOF
3011 #line 3012 "configure"
3012 #include "confdefs.h"
3013 #include <sys/types.h>
3014 #if STDC_HEADERS
3015 #include <stdlib.h>
3016 #include <stddef.h>
3017 #endif
3019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3020 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3021 rm -rf conftest*
3022 ac_cv_type_off_t=yes
3023 else
3024 rm -rf conftest*
3025 ac_cv_type_off_t=no
3027 rm -f conftest*
3030 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3031 if test $ac_cv_type_off_t = no; then
3032 cat >> confdefs.h <<\EOF
3033 #define off_t long
3038 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3039 echo "configure:3040: checking for size_t" >&5
3040 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3042 else
3043 cat > conftest.$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3046 #include <sys/types.h>
3047 #if STDC_HEADERS
3048 #include <stdlib.h>
3049 #include <stddef.h>
3050 #endif
3052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3053 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3054 rm -rf conftest*
3055 ac_cv_type_size_t=yes
3056 else
3057 rm -rf conftest*
3058 ac_cv_type_size_t=no
3060 rm -f conftest*
3063 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3064 if test $ac_cv_type_size_t = no; then
3065 cat >> confdefs.h <<\EOF
3066 #define size_t unsigned
3071 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3072 # for constant arguments. Useless!
3073 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3074 echo "configure:3075: checking for working alloca.h" >&5
3075 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3077 else
3078 cat > conftest.$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3081 #include <alloca.h>
3082 int main() {
3083 char *p = alloca(2 * sizeof(int));
3084 ; return 0; }
3086 if { (eval echo configure:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3087 rm -rf conftest*
3088 ac_cv_header_alloca_h=yes
3089 else
3090 echo "configure: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3092 rm -rf conftest*
3093 ac_cv_header_alloca_h=no
3095 rm -f conftest*
3098 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3099 if test $ac_cv_header_alloca_h = yes; then
3100 cat >> confdefs.h <<\EOF
3101 #define HAVE_ALLOCA_H 1
3106 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3107 echo "configure:3108: checking for alloca" >&5
3108 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3110 else
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3115 #ifdef __GNUC__
3116 # define alloca __builtin_alloca
3117 #else
3118 # ifdef _MSC_VER
3119 # include <malloc.h>
3120 # define alloca _alloca
3121 # else
3122 # if HAVE_ALLOCA_H
3123 # include <alloca.h>
3124 # else
3125 # ifdef _AIX
3126 #pragma alloca
3127 # else
3128 # ifndef alloca /* predefined by HP cc +Olibcalls */
3129 char *alloca ();
3130 # endif
3131 # endif
3132 # endif
3133 # endif
3134 #endif
3136 int main() {
3137 char *p = (char *) alloca(1);
3138 ; return 0; }
3140 if { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3141 rm -rf conftest*
3142 ac_cv_func_alloca_works=yes
3143 else
3144 echo "configure: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3146 rm -rf conftest*
3147 ac_cv_func_alloca_works=no
3149 rm -f conftest*
3152 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3153 if test $ac_cv_func_alloca_works = yes; then
3154 cat >> confdefs.h <<\EOF
3155 #define HAVE_ALLOCA 1
3160 if test $ac_cv_func_alloca_works = no; then
3161 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3162 # that cause trouble. Some versions do not even contain alloca or
3163 # contain a buggy version. If you still want to use their alloca,
3164 # use ar to extract alloca.o from them instead of compiling alloca.c.
3165 ALLOCA=alloca.${ac_objext}
3166 cat >> confdefs.h <<\EOF
3167 #define C_ALLOCA 1
3171 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3172 echo "configure:3173: checking whether alloca needs Cray hooks" >&5
3173 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3175 else
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #if defined(CRAY) && ! defined(CRAY2)
3180 webecray
3181 #else
3182 wenotbecray
3183 #endif
3186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3187 egrep "webecray" >/dev/null 2>&1; then
3188 rm -rf conftest*
3189 ac_cv_os_cray=yes
3190 else
3191 rm -rf conftest*
3192 ac_cv_os_cray=no
3194 rm -f conftest*
3198 echo "$ac_t""$ac_cv_os_cray" 1>&6
3199 if test $ac_cv_os_cray = yes; then
3200 for ac_func in _getb67 GETB67 getb67; do
3201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3202 echo "configure:3203: checking for $ac_func" >&5
3203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3205 else
3206 cat > conftest.$ac_ext <<EOF
3207 #line 3208 "configure"
3208 #include "confdefs.h"
3209 /* System header to define __stub macros and hopefully few prototypes,
3210 which can conflict with char $ac_func(); below. */
3211 #include <assert.h>
3212 /* Override any gcc2 internal prototype to avoid an error. */
3213 /* We use char because int might match the return type of a gcc2
3214 builtin and then its argument prototype would still apply. */
3215 char $ac_func();
3217 int main() {
3219 /* The GNU C library defines this for functions which it implements
3220 to always fail with ENOSYS. Some functions are actually named
3221 something starting with __ and the normal name is an alias. */
3222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3223 choke me
3224 #else
3225 $ac_func();
3226 #endif
3228 ; return 0; }
3230 if { (eval echo configure:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3231 rm -rf conftest*
3232 eval "ac_cv_func_$ac_func=yes"
3233 else
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3236 rm -rf conftest*
3237 eval "ac_cv_func_$ac_func=no"
3239 rm -f conftest*
3242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3243 echo "$ac_t""yes" 1>&6
3244 cat >> confdefs.h <<EOF
3245 #define CRAY_STACKSEG_END $ac_func
3248 break
3249 else
3250 echo "$ac_t""no" 1>&6
3253 done
3256 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3257 echo "configure:3258: checking stack direction for C alloca" >&5
3258 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3260 else
3261 if test "$cross_compiling" = yes; then
3262 ac_cv_c_stack_direction=0
3263 else
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 find_stack_direction ()
3269 static char *addr = 0;
3270 auto char dummy;
3271 if (addr == 0)
3273 addr = &dummy;
3274 return find_stack_direction ();
3276 else
3277 return (&dummy > addr) ? 1 : -1;
3279 main ()
3281 exit (find_stack_direction() < 0);
3284 if { (eval echo configure:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3285 then
3286 ac_cv_c_stack_direction=1
3287 else
3288 echo "configure: failed program was:" >&5
3289 cat conftest.$ac_ext >&5
3290 rm -fr conftest*
3291 ac_cv_c_stack_direction=-1
3293 rm -fr conftest*
3298 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3299 cat >> confdefs.h <<EOF
3300 #define STACK_DIRECTION $ac_cv_c_stack_direction
3305 for ac_hdr in unistd.h
3307 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3308 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3309 echo "configure:3310: checking for $ac_hdr" >&5
3310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3312 else
3313 cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 #include <$ac_hdr>
3318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3319 { (eval echo configure:3320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3321 if test -z "$ac_err"; then
3322 rm -rf conftest*
3323 eval "ac_cv_header_$ac_safe=yes"
3324 else
3325 echo "$ac_err" >&5
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3328 rm -rf conftest*
3329 eval "ac_cv_header_$ac_safe=no"
3331 rm -f conftest*
3333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3334 echo "$ac_t""yes" 1>&6
3335 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3336 cat >> confdefs.h <<EOF
3337 #define $ac_tr_hdr 1
3340 else
3341 echo "$ac_t""no" 1>&6
3343 done
3345 for ac_func in getpagesize
3347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3348 echo "configure:3349: checking for $ac_func" >&5
3349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3351 else
3352 cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 /* System header to define __stub macros and hopefully few prototypes,
3356 which can conflict with char $ac_func(); below. */
3357 #include <assert.h>
3358 /* Override any gcc2 internal prototype to avoid an error. */
3359 /* We use char because int might match the return type of a gcc2
3360 builtin and then its argument prototype would still apply. */
3361 char $ac_func();
3363 int main() {
3365 /* The GNU C library defines this for functions which it implements
3366 to always fail with ENOSYS. Some functions are actually named
3367 something starting with __ and the normal name is an alias. */
3368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3369 choke me
3370 #else
3371 $ac_func();
3372 #endif
3374 ; return 0; }
3376 if { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3377 rm -rf conftest*
3378 eval "ac_cv_func_$ac_func=yes"
3379 else
3380 echo "configure: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3382 rm -rf conftest*
3383 eval "ac_cv_func_$ac_func=no"
3385 rm -f conftest*
3388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3389 echo "$ac_t""yes" 1>&6
3390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3391 cat >> confdefs.h <<EOF
3392 #define $ac_tr_func 1
3395 else
3396 echo "$ac_t""no" 1>&6
3398 done
3400 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3401 echo "configure:3402: checking for working mmap" >&5
3402 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3404 else
3405 if test "$cross_compiling" = yes; then
3406 ac_cv_func_mmap_fixed_mapped=no
3407 else
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3412 /* Thanks to Mike Haertel and Jim Avera for this test.
3413 Here is a matrix of mmap possibilities:
3414 mmap private not fixed
3415 mmap private fixed at somewhere currently unmapped
3416 mmap private fixed at somewhere already mapped
3417 mmap shared not fixed
3418 mmap shared fixed at somewhere currently unmapped
3419 mmap shared fixed at somewhere already mapped
3420 For private mappings, we should verify that changes cannot be read()
3421 back from the file, nor mmap's back from the file at a different
3422 address. (There have been systems where private was not correctly
3423 implemented like the infamous i386 svr4.0, and systems where the
3424 VM page cache was not coherent with the filesystem buffer cache
3425 like early versions of FreeBSD and possibly contemporary NetBSD.)
3426 For shared mappings, we should conversely verify that changes get
3427 propogated back to all the places they're supposed to be.
3429 Grep wants private fixed already mapped.
3430 The main things grep needs to know about mmap are:
3431 * does it exist and is it safe to write into the mmap'd area
3432 * how to use it (BSD variants) */
3433 #include <sys/types.h>
3434 #include <fcntl.h>
3435 #include <sys/mman.h>
3437 /* This mess was copied from the GNU getpagesize.h. */
3438 #ifndef HAVE_GETPAGESIZE
3439 # ifdef HAVE_UNISTD_H
3440 # include <unistd.h>
3441 # endif
3443 /* Assume that all systems that can run configure have sys/param.h. */
3444 # ifndef HAVE_SYS_PARAM_H
3445 # define HAVE_SYS_PARAM_H 1
3446 # endif
3448 # ifdef _SC_PAGESIZE
3449 # define getpagesize() sysconf(_SC_PAGESIZE)
3450 # else /* no _SC_PAGESIZE */
3451 # ifdef HAVE_SYS_PARAM_H
3452 # include <sys/param.h>
3453 # ifdef EXEC_PAGESIZE
3454 # define getpagesize() EXEC_PAGESIZE
3455 # else /* no EXEC_PAGESIZE */
3456 # ifdef NBPG
3457 # define getpagesize() NBPG * CLSIZE
3458 # ifndef CLSIZE
3459 # define CLSIZE 1
3460 # endif /* no CLSIZE */
3461 # else /* no NBPG */
3462 # ifdef NBPC
3463 # define getpagesize() NBPC
3464 # else /* no NBPC */
3465 # ifdef PAGESIZE
3466 # define getpagesize() PAGESIZE
3467 # endif /* PAGESIZE */
3468 # endif /* no NBPC */
3469 # endif /* no NBPG */
3470 # endif /* no EXEC_PAGESIZE */
3471 # else /* no HAVE_SYS_PARAM_H */
3472 # define getpagesize() 8192 /* punt totally */
3473 # endif /* no HAVE_SYS_PARAM_H */
3474 # endif /* no _SC_PAGESIZE */
3476 #endif /* no HAVE_GETPAGESIZE */
3478 #ifdef __cplusplus
3479 extern "C" { void *malloc(unsigned); }
3480 #else
3481 char *malloc();
3482 #endif
3485 main()
3487 char *data, *data2, *data3;
3488 int i, pagesize;
3489 int fd;
3491 pagesize = getpagesize();
3494 * First, make a file with some known garbage in it.
3496 data = malloc(pagesize);
3497 if (!data)
3498 exit(1);
3499 for (i = 0; i < pagesize; ++i)
3500 *(data + i) = rand();
3501 umask(0);
3502 fd = creat("conftestmmap", 0600);
3503 if (fd < 0)
3504 exit(1);
3505 if (write(fd, data, pagesize) != pagesize)
3506 exit(1);
3507 close(fd);
3510 * Next, try to mmap the file at a fixed address which
3511 * already has something else allocated at it. If we can,
3512 * also make sure that we see the same garbage.
3514 fd = open("conftestmmap", O_RDWR);
3515 if (fd < 0)
3516 exit(1);
3517 data2 = malloc(2 * pagesize);
3518 if (!data2)
3519 exit(1);
3520 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3521 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3522 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3523 exit(1);
3524 for (i = 0; i < pagesize; ++i)
3525 if (*(data + i) != *(data2 + i))
3526 exit(1);
3529 * Finally, make sure that changes to the mapped area
3530 * do not percolate back to the file as seen by read().
3531 * (This is a bug on some variants of i386 svr4.0.)
3533 for (i = 0; i < pagesize; ++i)
3534 *(data2 + i) = *(data2 + i) + 1;
3535 data3 = malloc(pagesize);
3536 if (!data3)
3537 exit(1);
3538 if (read(fd, data3, pagesize) != pagesize)
3539 exit(1);
3540 for (i = 0; i < pagesize; ++i)
3541 if (*(data + i) != *(data3 + i))
3542 exit(1);
3543 close(fd);
3544 unlink("conftestmmap");
3545 exit(0);
3549 if { (eval echo configure:3550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3550 then
3551 ac_cv_func_mmap_fixed_mapped=yes
3552 else
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3555 rm -fr conftest*
3556 ac_cv_func_mmap_fixed_mapped=no
3558 rm -fr conftest*
3563 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3564 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3565 cat >> confdefs.h <<\EOF
3566 #define HAVE_MMAP 1
3572 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3573 unistd.h values.h sys/param.h
3575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3577 echo "configure:3578: checking for $ac_hdr" >&5
3578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3579 echo $ac_n "(cached) $ac_c" 1>&6
3580 else
3581 cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 #include <$ac_hdr>
3586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3587 { (eval echo configure:3588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3589 if test -z "$ac_err"; then
3590 rm -rf conftest*
3591 eval "ac_cv_header_$ac_safe=yes"
3592 else
3593 echo "$ac_err" >&5
3594 echo "configure: failed program was:" >&5
3595 cat conftest.$ac_ext >&5
3596 rm -rf conftest*
3597 eval "ac_cv_header_$ac_safe=no"
3599 rm -f conftest*
3601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3602 echo "$ac_t""yes" 1>&6
3603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3604 cat >> confdefs.h <<EOF
3605 #define $ac_tr_hdr 1
3608 else
3609 echo "$ac_t""no" 1>&6
3611 done
3613 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3614 __argz_count __argz_stringify __argz_next
3616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3617 echo "configure:3618: checking for $ac_func" >&5
3618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3620 else
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 /* System header to define __stub macros and hopefully few prototypes,
3625 which can conflict with char $ac_func(); below. */
3626 #include <assert.h>
3627 /* Override any gcc2 internal prototype to avoid an error. */
3628 /* We use char because int might match the return type of a gcc2
3629 builtin and then its argument prototype would still apply. */
3630 char $ac_func();
3632 int main() {
3634 /* The GNU C library defines this for functions which it implements
3635 to always fail with ENOSYS. Some functions are actually named
3636 something starting with __ and the normal name is an alias. */
3637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3638 choke me
3639 #else
3640 $ac_func();
3641 #endif
3643 ; return 0; }
3645 if { (eval echo configure:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3646 rm -rf conftest*
3647 eval "ac_cv_func_$ac_func=yes"
3648 else
3649 echo "configure: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3651 rm -rf conftest*
3652 eval "ac_cv_func_$ac_func=no"
3654 rm -f conftest*
3657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3658 echo "$ac_t""yes" 1>&6
3659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3660 cat >> confdefs.h <<EOF
3661 #define $ac_tr_func 1
3664 else
3665 echo "$ac_t""no" 1>&6
3667 done
3670 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3671 for ac_func in stpcpy
3673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3674 echo "configure:3675: checking for $ac_func" >&5
3675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3677 else
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3681 /* System header to define __stub macros and hopefully few prototypes,
3682 which can conflict with char $ac_func(); below. */
3683 #include <assert.h>
3684 /* Override any gcc2 internal prototype to avoid an error. */
3685 /* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3687 char $ac_func();
3689 int main() {
3691 /* The GNU C library defines this for functions which it implements
3692 to always fail with ENOSYS. Some functions are actually named
3693 something starting with __ and the normal name is an alias. */
3694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3695 choke me
3696 #else
3697 $ac_func();
3698 #endif
3700 ; return 0; }
3702 if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3703 rm -rf conftest*
3704 eval "ac_cv_func_$ac_func=yes"
3705 else
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 rm -rf conftest*
3709 eval "ac_cv_func_$ac_func=no"
3711 rm -f conftest*
3714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3715 echo "$ac_t""yes" 1>&6
3716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3717 cat >> confdefs.h <<EOF
3718 #define $ac_tr_func 1
3721 else
3722 echo "$ac_t""no" 1>&6
3724 done
3727 if test "${ac_cv_func_stpcpy}" = "yes"; then
3728 cat >> confdefs.h <<\EOF
3729 #define HAVE_STPCPY 1
3734 if test $ac_cv_header_locale_h = yes; then
3735 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3736 echo "configure:3737: checking for LC_MESSAGES" >&5
3737 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3739 else
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 #include <locale.h>
3744 int main() {
3745 return LC_MESSAGES
3746 ; return 0; }
3748 if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3749 rm -rf conftest*
3750 am_cv_val_LC_MESSAGES=yes
3751 else
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3754 rm -rf conftest*
3755 am_cv_val_LC_MESSAGES=no
3757 rm -f conftest*
3760 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3761 if test $am_cv_val_LC_MESSAGES = yes; then
3762 cat >> confdefs.h <<\EOF
3763 #define HAVE_LC_MESSAGES 1
3768 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3769 echo "configure:3770: checking whether NLS is requested" >&5
3770 # Check whether --enable-nls or --disable-nls was given.
3771 if test "${enable_nls+set}" = set; then
3772 enableval="$enable_nls"
3773 USE_NLS=$enableval
3774 else
3775 USE_NLS=yes
3778 echo "$ac_t""$USE_NLS" 1>&6
3781 USE_INCLUDED_LIBINTL=no
3783 if test "$USE_NLS" = "yes"; then
3784 cat >> confdefs.h <<\EOF
3785 #define ENABLE_NLS 1
3788 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3789 echo "configure:3790: checking whether included gettext is requested" >&5
3790 # Check whether --with-included-gettext or --without-included-gettext was given.
3791 if test "${with_included_gettext+set}" = set; then
3792 withval="$with_included_gettext"
3793 nls_cv_force_use_gnu_gettext=$withval
3794 else
3795 nls_cv_force_use_gnu_gettext=no
3798 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3800 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3801 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3802 nls_cv_header_intl=
3803 nls_cv_header_libgt=
3804 CATOBJEXT=NONE
3806 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3807 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3808 echo "configure:3809: checking for libintl.h" >&5
3809 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3811 else
3812 cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3815 #include <libintl.h>
3817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3818 { (eval echo configure:3819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3819 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3820 if test -z "$ac_err"; then
3821 rm -rf conftest*
3822 eval "ac_cv_header_$ac_safe=yes"
3823 else
3824 echo "$ac_err" >&5
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3827 rm -rf conftest*
3828 eval "ac_cv_header_$ac_safe=no"
3830 rm -f conftest*
3832 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3833 echo "$ac_t""yes" 1>&6
3834 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3835 echo "configure:3836: checking for gettext in libc" >&5
3836 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3838 else
3839 cat > conftest.$ac_ext <<EOF
3840 #line 3841 "configure"
3841 #include "confdefs.h"
3842 #include <libintl.h>
3843 int main() {
3844 return (int) gettext ("")
3845 ; return 0; }
3847 if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3848 rm -rf conftest*
3849 gt_cv_func_gettext_libc=yes
3850 else
3851 echo "configure: failed program was:" >&5
3852 cat conftest.$ac_ext >&5
3853 rm -rf conftest*
3854 gt_cv_func_gettext_libc=no
3856 rm -f conftest*
3859 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3861 if test "$gt_cv_func_gettext_libc" != "yes"; then
3862 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3863 echo "configure:3864: checking for bindtextdomain in -lintl" >&5
3864 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3867 else
3868 ac_save_LIBS="$LIBS"
3869 LIBS="-lintl $LIBS"
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 /* Override any gcc2 internal prototype to avoid an error. */
3874 /* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3876 char bindtextdomain();
3878 int main() {
3879 bindtextdomain()
3880 ; return 0; }
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3883 rm -rf conftest*
3884 eval "ac_cv_lib_$ac_lib_var=yes"
3885 else
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3888 rm -rf conftest*
3889 eval "ac_cv_lib_$ac_lib_var=no"
3891 rm -f conftest*
3892 LIBS="$ac_save_LIBS"
3895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3897 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3898 echo "configure:3899: checking for gettext in libintl" >&5
3899 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3901 else
3902 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3906 int main() {
3907 return (int) gettext ("")
3908 ; return 0; }
3910 if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3911 rm -rf conftest*
3912 gt_cv_func_gettext_libintl=yes
3913 else
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3916 rm -rf conftest*
3917 gt_cv_func_gettext_libintl=no
3919 rm -f conftest*
3922 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3923 else
3924 echo "$ac_t""no" 1>&6
3929 if test "$gt_cv_func_gettext_libc" = "yes" \
3930 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3931 cat >> confdefs.h <<\EOF
3932 #define HAVE_GETTEXT 1
3935 # Extract the first word of "msgfmt", so it can be a program name with args.
3936 set dummy msgfmt; ac_word=$2
3937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3938 echo "configure:3939: checking for $ac_word" >&5
3939 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3941 else
3942 case "$MSGFMT" in
3944 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3948 for ac_dir in $PATH; do
3949 test -z "$ac_dir" && ac_dir=.
3950 if test -f $ac_dir/$ac_word; then
3951 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3952 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3953 break
3956 done
3957 IFS="$ac_save_ifs"
3958 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3960 esac
3962 MSGFMT="$ac_cv_path_MSGFMT"
3963 if test -n "$MSGFMT"; then
3964 echo "$ac_t""$MSGFMT" 1>&6
3965 else
3966 echo "$ac_t""no" 1>&6
3968 if test "$MSGFMT" != "no"; then
3969 for ac_func in dcgettext
3971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3972 echo "configure:3973: checking for $ac_func" >&5
3973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3975 else
3976 cat > conftest.$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 /* System header to define __stub macros and hopefully few prototypes,
3980 which can conflict with char $ac_func(); below. */
3981 #include <assert.h>
3982 /* Override any gcc2 internal prototype to avoid an error. */
3983 /* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3985 char $ac_func();
3987 int main() {
3989 /* The GNU C library defines this for functions which it implements
3990 to always fail with ENOSYS. Some functions are actually named
3991 something starting with __ and the normal name is an alias. */
3992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3993 choke me
3994 #else
3995 $ac_func();
3996 #endif
3998 ; return 0; }
4000 if { (eval echo configure:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4001 rm -rf conftest*
4002 eval "ac_cv_func_$ac_func=yes"
4003 else
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4006 rm -rf conftest*
4007 eval "ac_cv_func_$ac_func=no"
4009 rm -f conftest*
4012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4013 echo "$ac_t""yes" 1>&6
4014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4015 cat >> confdefs.h <<EOF
4016 #define $ac_tr_func 1
4019 else
4020 echo "$ac_t""no" 1>&6
4022 done
4024 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4025 set dummy gmsgfmt; ac_word=$2
4026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4027 echo "configure:4028: checking for $ac_word" >&5
4028 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4030 else
4031 case "$GMSGFMT" in
4033 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4035 ?:/*)
4036 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4040 ac_dummy="$PATH"
4041 for ac_dir in $ac_dummy; do
4042 test -z "$ac_dir" && ac_dir=.
4043 if test -f $ac_dir/$ac_word; then
4044 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4045 break
4047 done
4048 IFS="$ac_save_ifs"
4049 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4051 esac
4053 GMSGFMT="$ac_cv_path_GMSGFMT"
4054 if test -n "$GMSGFMT"; then
4055 echo "$ac_t""$GMSGFMT" 1>&6
4056 else
4057 echo "$ac_t""no" 1>&6
4060 # Extract the first word of "xgettext", so it can be a program name with args.
4061 set dummy xgettext; ac_word=$2
4062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4063 echo "configure:4064: checking for $ac_word" >&5
4064 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4066 else
4067 case "$XGETTEXT" in
4069 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4073 for ac_dir in $PATH; do
4074 test -z "$ac_dir" && ac_dir=.
4075 if test -f $ac_dir/$ac_word; then
4076 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4077 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4078 break
4081 done
4082 IFS="$ac_save_ifs"
4083 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4085 esac
4087 XGETTEXT="$ac_cv_path_XGETTEXT"
4088 if test -n "$XGETTEXT"; then
4089 echo "$ac_t""$XGETTEXT" 1>&6
4090 else
4091 echo "$ac_t""no" 1>&6
4094 cat > conftest.$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4098 int main() {
4099 extern int _nl_msg_cat_cntr;
4100 return _nl_msg_cat_cntr
4101 ; return 0; }
4103 if { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4104 rm -rf conftest*
4105 CATOBJEXT=.gmo
4106 DATADIRNAME=share
4107 else
4108 echo "configure: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4110 rm -rf conftest*
4111 CATOBJEXT=.mo
4112 DATADIRNAME=lib
4114 rm -f conftest*
4115 INSTOBJEXT=.mo
4119 else
4120 echo "$ac_t""no" 1>&6
4125 if test "$CATOBJEXT" = "NONE"; then
4126 nls_cv_use_gnu_gettext=yes
4130 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4131 INTLOBJS="\$(GETTOBJS)"
4132 # Extract the first word of "msgfmt", so it can be a program name with args.
4133 set dummy msgfmt; ac_word=$2
4134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4135 echo "configure:4136: checking for $ac_word" >&5
4136 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4138 else
4139 case "$MSGFMT" in
4141 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4145 for ac_dir in $PATH; do
4146 test -z "$ac_dir" && ac_dir=.
4147 if test -f $ac_dir/$ac_word; then
4148 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4149 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4150 break
4153 done
4154 IFS="$ac_save_ifs"
4155 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4157 esac
4159 MSGFMT="$ac_cv_path_MSGFMT"
4160 if test -n "$MSGFMT"; then
4161 echo "$ac_t""$MSGFMT" 1>&6
4162 else
4163 echo "$ac_t""no" 1>&6
4166 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4167 set dummy gmsgfmt; ac_word=$2
4168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4169 echo "configure:4170: checking for $ac_word" >&5
4170 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4171 echo $ac_n "(cached) $ac_c" 1>&6
4172 else
4173 case "$GMSGFMT" in
4175 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4177 ?:/*)
4178 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4182 ac_dummy="$PATH"
4183 for ac_dir in $ac_dummy; do
4184 test -z "$ac_dir" && ac_dir=.
4185 if test -f $ac_dir/$ac_word; then
4186 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4187 break
4189 done
4190 IFS="$ac_save_ifs"
4191 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4193 esac
4195 GMSGFMT="$ac_cv_path_GMSGFMT"
4196 if test -n "$GMSGFMT"; then
4197 echo "$ac_t""$GMSGFMT" 1>&6
4198 else
4199 echo "$ac_t""no" 1>&6
4202 # Extract the first word of "xgettext", so it can be a program name with args.
4203 set dummy xgettext; ac_word=$2
4204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4205 echo "configure:4206: checking for $ac_word" >&5
4206 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4208 else
4209 case "$XGETTEXT" in
4211 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4215 for ac_dir in $PATH; do
4216 test -z "$ac_dir" && ac_dir=.
4217 if test -f $ac_dir/$ac_word; then
4218 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4219 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4220 break
4223 done
4224 IFS="$ac_save_ifs"
4225 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4227 esac
4229 XGETTEXT="$ac_cv_path_XGETTEXT"
4230 if test -n "$XGETTEXT"; then
4231 echo "$ac_t""$XGETTEXT" 1>&6
4232 else
4233 echo "$ac_t""no" 1>&6
4237 USE_INCLUDED_LIBINTL=yes
4238 CATOBJEXT=.gmo
4239 INSTOBJEXT=.mo
4240 DATADIRNAME=share
4241 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4242 INTLLIBS=$INTLDEPS
4243 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4244 nls_cv_header_intl=libintl.h
4245 nls_cv_header_libgt=libgettext.h
4248 if test "$XGETTEXT" != ":"; then
4249 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4251 else
4252 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4253 XGETTEXT=":"
4257 # We need to process the po/ directory.
4258 POSUB=po
4259 else
4260 DATADIRNAME=share
4261 nls_cv_header_intl=libintl.h
4262 nls_cv_header_libgt=libgettext.h
4265 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4266 # because some of the sources are only built for this goal.
4267 if test "$PACKAGE" = gettext; then
4268 USE_NLS=yes
4269 USE_INCLUDED_LIBINTL=yes
4272 for lang in $ALL_LINGUAS; do
4273 GMOFILES="$GMOFILES $lang.gmo"
4274 POFILES="$POFILES $lang.po"
4275 done
4290 if test "x$CATOBJEXT" != "x"; then
4291 if test "x$ALL_LINGUAS" = "x"; then
4292 LINGUAS=
4293 else
4294 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4295 echo "configure:4296: checking for catalogs to be installed" >&5
4296 NEW_LINGUAS=
4297 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4298 case "$ALL_LINGUAS" in
4299 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4300 esac
4301 done
4302 LINGUAS=$NEW_LINGUAS
4303 echo "$ac_t""$LINGUAS" 1>&6
4306 if test -n "$LINGUAS"; then
4307 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4311 if test $ac_cv_header_locale_h = yes; then
4312 INCLUDE_LOCALE_H="#include <locale.h>"
4313 else
4314 INCLUDE_LOCALE_H="\
4315 /* The system does not provide the header <locale.h>. Take care yourself. */"
4319 if test -f $srcdir/po2tbl.sed.in; then
4320 if test "$CATOBJEXT" = ".cat"; then
4321 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4322 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4323 echo "configure:4324: checking for linux/version.h" >&5
4324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4326 else
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330 #include <linux/version.h>
4332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4333 { (eval echo configure:4334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4335 if test -z "$ac_err"; then
4336 rm -rf conftest*
4337 eval "ac_cv_header_$ac_safe=yes"
4338 else
4339 echo "$ac_err" >&5
4340 echo "configure: failed program was:" >&5
4341 cat conftest.$ac_ext >&5
4342 rm -rf conftest*
4343 eval "ac_cv_header_$ac_safe=no"
4345 rm -f conftest*
4347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4348 echo "$ac_t""yes" 1>&6
4349 msgformat=linux
4350 else
4351 echo "$ac_t""no" 1>&6
4352 msgformat=xopen
4356 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4358 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4359 $srcdir/po2tbl.sed.in > po2tbl.sed
4362 if test "$PACKAGE" = "gettext"; then
4363 GT_NO="#NO#"
4364 GT_YES=
4365 else
4366 GT_NO=
4367 GT_YES="#YES#"
4372 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4378 if test -f $srcdir/po/POTFILES.in; then
4379 test -d po || mkdir po
4380 if test "x$srcdir" != "x."; then
4381 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4382 posrcprefix="$srcdir/"
4383 else
4384 posrcprefix="../$srcdir/"
4386 else
4387 posrcprefix="../"
4389 rm -f po/POTFILES
4390 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4391 < $srcdir/po/POTFILES.in > po/POTFILES
4395 . ${srcdir}/../bfd/configure.host
4397 # Put a plausible default for CC_FOR_BUILD in Makefile.
4398 if test -z "$CC_FOR_BUILD"; then
4399 if test "x$cross_compiling" = "xno"; then
4400 CC_FOR_BUILD='$(CC)'
4401 else
4402 CC_FOR_BUILD=gcc
4406 # Also set EXEEXT_FOR_BUILD.
4407 if test "x$cross_compiling" = "xno"; then
4408 EXEEXT_FOR_BUILD='$(EXEEXT)'
4409 else
4410 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4411 echo "configure:4412: checking for build system executable suffix" >&5
4412 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4414 else
4415 rm -f conftest*
4416 echo 'int main () { return 0; }' > conftest.c
4417 bfd_cv_build_exeext=
4418 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4419 for file in conftest.*; do
4420 case $file in
4421 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4422 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4423 esac
4424 done
4425 rm -f conftest*
4426 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4429 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4430 EXEEXT_FOR_BUILD=""
4431 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4436 # Find a good install program. We prefer a C program (faster),
4437 # so one script is as good as another. But avoid the broken or
4438 # incompatible versions:
4439 # SysV /etc/install, /usr/sbin/install
4440 # SunOS /usr/etc/install
4441 # IRIX /sbin/install
4442 # AIX /bin/install
4443 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4446 # ./install, which can be erroneously created by make from ./install.sh.
4447 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4448 echo "configure:4449: checking for a BSD compatible install" >&5
4449 if test -z "$INSTALL"; then
4450 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4452 else
4453 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4454 for ac_dir in $PATH; do
4455 # Account for people who put trailing slashes in PATH elements.
4456 case "$ac_dir/" in
4457 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4459 # OSF1 and SCO ODT 3.0 have their own names for install.
4460 # Don't use installbsd from OSF since it installs stuff as root
4461 # by default.
4462 for ac_prog in ginstall scoinst install; do
4463 if test -f $ac_dir/$ac_prog; then
4464 if test $ac_prog = install &&
4465 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4466 # AIX install. It has an incompatible calling convention.
4468 else
4469 ac_cv_path_install="$ac_dir/$ac_prog -c"
4470 break 2
4473 done
4475 esac
4476 done
4477 IFS="$ac_save_IFS"
4480 if test "${ac_cv_path_install+set}" = set; then
4481 INSTALL="$ac_cv_path_install"
4482 else
4483 # As a last resort, use the slow shell script. We don't cache a
4484 # path for INSTALL within a source directory, because that will
4485 # break other packages using the cache if that directory is
4486 # removed, or if the path is relative.
4487 INSTALL="$ac_install_sh"
4490 echo "$ac_t""$INSTALL" 1>&6
4492 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4493 # It thinks the first close brace ends the variable substitution.
4494 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4496 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4498 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4501 for ac_hdr in string.h strings.h stdlib.h
4503 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4505 echo "configure:4506: checking for $ac_hdr" >&5
4506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6
4508 else
4509 cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4512 #include <$ac_hdr>
4514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4515 { (eval echo configure:4516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4517 if test -z "$ac_err"; then
4518 rm -rf conftest*
4519 eval "ac_cv_header_$ac_safe=yes"
4520 else
4521 echo "$ac_err" >&5
4522 echo "configure: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4524 rm -rf conftest*
4525 eval "ac_cv_header_$ac_safe=no"
4527 rm -f conftest*
4529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4530 echo "$ac_t""yes" 1>&6
4531 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4532 cat >> confdefs.h <<EOF
4533 #define $ac_tr_hdr 1
4536 else
4537 echo "$ac_t""no" 1>&6
4539 done
4542 cgen_maint=no
4543 cgendir='$(srcdir)/../cgen'
4545 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
4546 if test "${enable_cgen_maint+set}" = set; then
4547 enableval="$enable_cgen_maint"
4548 case "${enableval}" in
4549 yes) cgen_maint=yes ;;
4550 no) cgen_maint=no ;;
4552 # argument is cgen install directory (not implemented yet).
4553 # Having a `share' directory might be more appropriate for the .scm,
4554 # .cpu, etc. files.
4555 cgen_maint=yes
4556 cgendir=${cgen_maint}/lib/cgen
4558 esac
4562 if test x${cgen_maint} = xyes; then
4563 CGEN_MAINT_TRUE=
4564 CGEN_MAINT_FALSE='#'
4565 else
4566 CGEN_MAINT_TRUE='#'
4567 CGEN_MAINT_FALSE=
4571 using_cgen=no
4573 # Horrible hacks to build DLLs on Windows.
4574 WIN32LDFLAGS=
4575 WIN32LIBADD=
4576 case "${host}" in
4577 *-*-cygwin*)
4578 if test "$enable_shared" = "yes"; then
4579 WIN32LDFLAGS="-no-undefined"
4580 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
4583 esac
4587 # target-specific stuff:
4589 # Canonicalize the secondary target names.
4590 if test -n "$enable_targets" ; then
4591 for targ in `echo $enable_targets | sed 's/,/ /g'`
4593 result=`$ac_config_sub $targ 2>/dev/null`
4594 if test -n "$result" ; then
4595 canon_targets="$canon_targets $result"
4596 else
4597 # Allow targets that config.sub doesn't recognize, like "all".
4598 canon_targets="$canon_targets $targ"
4600 done
4603 all_targets=false
4604 selarchs=
4605 for targ in $target $canon_targets
4607 if test "x$targ" = "xall" ; then
4608 all_targets=true
4609 else
4610 . $srcdir/../bfd/config.bfd
4611 selarchs="$selarchs $targ_archs"
4613 done
4615 # Utility var, documents generic cgen support files.
4617 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
4619 # We don't do any links based on the target system, just makefile config.
4621 if test x${all_targets} = xfalse ; then
4623 # Target architecture .o files.
4626 for arch in $selarchs
4628 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
4629 archdefs="$archdefs -DARCH_$ad"
4630 case "$arch" in
4631 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
4632 bfd_alliant_arch) ;;
4633 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
4634 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
4635 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
4636 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4637 bfd_convex_arch) ;;
4638 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;;
4639 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
4640 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
4641 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
4642 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
4643 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
4644 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
4645 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
4646 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
4647 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
4648 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
4649 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
4650 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
4651 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
4652 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
4653 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
4654 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
4655 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
4656 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
4657 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
4658 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
4659 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
4660 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
4661 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
4662 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
4663 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
4664 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
4665 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
4666 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
4667 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
4668 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
4669 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4670 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4671 bfd_pyramid_arch) ;;
4672 bfd_romp_arch) ;;
4673 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4674 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
4675 bfd_sh_arch)
4676 # We can't decide what we want just from the CPU family.
4677 # We want SH5 support unless a specific version of sh is
4678 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
4679 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
4680 for t in $target $canon_targets; do
4681 case $t in
4682 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
4683 sh-*-linux* | shl-*-linux*)
4684 ta="$ta sh64-dis.lo sh64-opc.lo"
4685 archdefs="$archdefs -DINCLUDE_SHMEDIA"
4686 break;;
4687 esac;
4688 done
4689 ta="$ta sh-dis.lo" ;;
4690 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
4691 bfd_tahoe_arch) ;;
4692 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
4693 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
4694 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
4695 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
4696 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4697 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4698 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4699 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
4700 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
4701 bfd_we32k_arch) ;;
4702 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
4703 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
4704 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
4705 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
4707 "") ;;
4708 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
4709 esac
4710 done
4712 if test $using_cgen = yes ; then
4713 ta="$ta $cgen_files"
4716 # Weed out duplicate .o files.
4717 f=""
4718 for i in $ta ; do
4719 case " $f " in
4720 *" $i "*) ;;
4721 *) f="$f $i" ;;
4722 esac
4723 done
4724 ta="$f"
4726 # And duplicate -D flags.
4727 f=""
4728 for i in $archdefs ; do
4729 case " $f " in
4730 *" $i "*) ;;
4731 *) f="$f $i" ;;
4732 esac
4733 done
4734 archdefs="$f"
4736 BFD_MACHINES="$ta"
4738 else # all_targets is true
4739 archdefs=-DARCH_all
4740 BFD_MACHINES='$(ALL_MACHINES)'
4746 trap '' 1 2 15
4747 cat > confcache <<\EOF
4748 # This file is a shell script that caches the results of configure
4749 # tests run on this system so they can be shared between configure
4750 # scripts and configure runs. It is not useful on other systems.
4751 # If it contains results you don't want to keep, you may remove or edit it.
4753 # By default, configure uses ./config.cache as the cache file,
4754 # creating it if it does not exist already. You can give configure
4755 # the --cache-file=FILE option to use a different cache file; that is
4756 # what configure does when it calls configure scripts in
4757 # subdirectories, so they share the cache.
4758 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4759 # config.status only pays attention to the cache file if you give it the
4760 # --recheck option to rerun configure.
4763 # The following way of writing the cache mishandles newlines in values,
4764 # but we know of no workaround that is simple, portable, and efficient.
4765 # So, don't put newlines in cache variables' values.
4766 # Ultrix sh set writes to stderr and can't be redirected directly,
4767 # and sets the high bit in the cache file unless we assign to the vars.
4768 (set) 2>&1 |
4769 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4770 *ac_space=\ *)
4771 # `set' does not quote correctly, so add quotes (double-quote substitution
4772 # turns \\\\ into \\, and sed turns \\ into \).
4773 sed -n \
4774 -e "s/'/'\\\\''/g" \
4775 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4778 # `set' quotes correctly as required by POSIX, so do not add quotes.
4779 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4781 esac >> confcache
4782 if cmp -s $cache_file confcache; then
4784 else
4785 if test -w $cache_file; then
4786 echo "updating cache $cache_file"
4787 cat confcache > $cache_file
4788 else
4789 echo "not updating unwritable cache $cache_file"
4792 rm -f confcache
4794 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4796 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4797 # Let make expand exec_prefix.
4798 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4800 # Any assignment to VPATH causes Sun make to only execute
4801 # the first set of double-colon rules, so remove it if not needed.
4802 # If there is a colon in the path, we need to keep it.
4803 if test "x$srcdir" = x.; then
4804 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4807 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4809 DEFS=-DHAVE_CONFIG_H
4811 # Without the "./", some shells look in PATH for config.status.
4812 : ${CONFIG_STATUS=./config.status}
4814 echo creating $CONFIG_STATUS
4815 rm -f $CONFIG_STATUS
4816 cat > $CONFIG_STATUS <<EOF
4817 #! /bin/sh
4818 # Generated automatically by configure.
4819 # Run this file to recreate the current configuration.
4820 # This directory was configured as follows,
4821 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4823 # $0 $ac_configure_args
4825 # Compiler output produced by configure, useful for debugging
4826 # configure, is in ./config.log if it exists.
4828 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4829 for ac_option
4831 case "\$ac_option" in
4832 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4833 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4834 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4835 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4836 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4837 exit 0 ;;
4838 -help | --help | --hel | --he | --h)
4839 echo "\$ac_cs_usage"; exit 0 ;;
4840 *) echo "\$ac_cs_usage"; exit 1 ;;
4841 esac
4842 done
4844 ac_given_srcdir=$srcdir
4845 ac_given_INSTALL="$INSTALL"
4847 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4849 cat >> $CONFIG_STATUS <<EOF
4851 # Protect against being on the right side of a sed subst in config.status.
4852 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4853 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4854 $ac_vpsub
4855 $extrasub
4856 s%@SHELL@%$SHELL%g
4857 s%@CFLAGS@%$CFLAGS%g
4858 s%@CPPFLAGS@%$CPPFLAGS%g
4859 s%@CXXFLAGS@%$CXXFLAGS%g
4860 s%@FFLAGS@%$FFLAGS%g
4861 s%@DEFS@%$DEFS%g
4862 s%@LDFLAGS@%$LDFLAGS%g
4863 s%@LIBS@%$LIBS%g
4864 s%@exec_prefix@%$exec_prefix%g
4865 s%@prefix@%$prefix%g
4866 s%@program_transform_name@%$program_transform_name%g
4867 s%@bindir@%$bindir%g
4868 s%@sbindir@%$sbindir%g
4869 s%@libexecdir@%$libexecdir%g
4870 s%@datadir@%$datadir%g
4871 s%@sysconfdir@%$sysconfdir%g
4872 s%@sharedstatedir@%$sharedstatedir%g
4873 s%@localstatedir@%$localstatedir%g
4874 s%@libdir@%$libdir%g
4875 s%@includedir@%$includedir%g
4876 s%@oldincludedir@%$oldincludedir%g
4877 s%@infodir@%$infodir%g
4878 s%@mandir@%$mandir%g
4879 s%@host@%$host%g
4880 s%@host_alias@%$host_alias%g
4881 s%@host_cpu@%$host_cpu%g
4882 s%@host_vendor@%$host_vendor%g
4883 s%@host_os@%$host_os%g
4884 s%@target@%$target%g
4885 s%@target_alias@%$target_alias%g
4886 s%@target_cpu@%$target_cpu%g
4887 s%@target_vendor@%$target_vendor%g
4888 s%@target_os@%$target_os%g
4889 s%@build@%$build%g
4890 s%@build_alias@%$build_alias%g
4891 s%@build_cpu@%$build_cpu%g
4892 s%@build_vendor@%$build_vendor%g
4893 s%@build_os@%$build_os%g
4894 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4895 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4896 s%@INSTALL_DATA@%$INSTALL_DATA%g
4897 s%@PACKAGE@%$PACKAGE%g
4898 s%@VERSION@%$VERSION%g
4899 s%@ACLOCAL@%$ACLOCAL%g
4900 s%@AUTOCONF@%$AUTOCONF%g
4901 s%@AUTOMAKE@%$AUTOMAKE%g
4902 s%@AUTOHEADER@%$AUTOHEADER%g
4903 s%@MAKEINFO@%$MAKEINFO%g
4904 s%@SET_MAKE@%$SET_MAKE%g
4905 s%@AR@%$AR%g
4906 s%@RANLIB@%$RANLIB%g
4907 s%@CC@%$CC%g
4908 s%@LN_S@%$LN_S%g
4909 s%@OBJEXT@%$OBJEXT%g
4910 s%@EXEEXT@%$EXEEXT%g
4911 s%@STRIP@%$STRIP%g
4912 s%@LIBTOOL@%$LIBTOOL%g
4913 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4914 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4915 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4916 s%@MAINT@%$MAINT%g
4917 s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
4918 s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
4919 s%@bfdlibdir@%$bfdlibdir%g
4920 s%@bfdincludedir@%$bfdincludedir%g
4921 s%@CPP@%$CPP%g
4922 s%@ALLOCA@%$ALLOCA%g
4923 s%@USE_NLS@%$USE_NLS%g
4924 s%@MSGFMT@%$MSGFMT%g
4925 s%@GMSGFMT@%$GMSGFMT%g
4926 s%@XGETTEXT@%$XGETTEXT%g
4927 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4928 s%@CATALOGS@%$CATALOGS%g
4929 s%@CATOBJEXT@%$CATOBJEXT%g
4930 s%@DATADIRNAME@%$DATADIRNAME%g
4931 s%@GMOFILES@%$GMOFILES%g
4932 s%@INSTOBJEXT@%$INSTOBJEXT%g
4933 s%@INTLDEPS@%$INTLDEPS%g
4934 s%@INTLLIBS@%$INTLLIBS%g
4935 s%@INTLOBJS@%$INTLOBJS%g
4936 s%@POFILES@%$POFILES%g
4937 s%@POSUB@%$POSUB%g
4938 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4939 s%@GT_NO@%$GT_NO%g
4940 s%@GT_YES@%$GT_YES%g
4941 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4942 s%@l@%$l%g
4943 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4944 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
4945 s%@HDEFINES@%$HDEFINES%g
4946 s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
4947 s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
4948 s%@cgendir@%$cgendir%g
4949 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4950 s%@WIN32LIBADD@%$WIN32LIBADD%g
4951 s%@archdefs@%$archdefs%g
4952 s%@BFD_MACHINES@%$BFD_MACHINES%g
4954 CEOF
4957 cat >> $CONFIG_STATUS <<\EOF
4959 # Split the substitutions into bite-sized pieces for seds with
4960 # small command number limits, like on Digital OSF/1 and HP-UX.
4961 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4962 ac_file=1 # Number of current file.
4963 ac_beg=1 # First line for current file.
4964 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4965 ac_more_lines=:
4966 ac_sed_cmds=""
4967 while $ac_more_lines; do
4968 if test $ac_beg -gt 1; then
4969 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4970 else
4971 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4973 if test ! -s conftest.s$ac_file; then
4974 ac_more_lines=false
4975 rm -f conftest.s$ac_file
4976 else
4977 if test -z "$ac_sed_cmds"; then
4978 ac_sed_cmds="sed -f conftest.s$ac_file"
4979 else
4980 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4982 ac_file=`expr $ac_file + 1`
4983 ac_beg=$ac_end
4984 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4986 done
4987 if test -z "$ac_sed_cmds"; then
4988 ac_sed_cmds=cat
4992 cat >> $CONFIG_STATUS <<EOF
4994 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4996 cat >> $CONFIG_STATUS <<\EOF
4997 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4998 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4999 case "$ac_file" in
5000 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5001 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5002 *) ac_file_in="${ac_file}.in" ;;
5003 esac
5005 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5007 # Remove last slash and all that follows it. Not all systems have dirname.
5008 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5009 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5010 # The file is in a subdirectory.
5011 test ! -d "$ac_dir" && mkdir "$ac_dir"
5012 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5013 # A "../" for each directory in $ac_dir_suffix.
5014 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5015 else
5016 ac_dir_suffix= ac_dots=
5019 case "$ac_given_srcdir" in
5020 .) srcdir=.
5021 if test -z "$ac_dots"; then top_srcdir=.
5022 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5023 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5024 *) # Relative path.
5025 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5026 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5027 esac
5029 case "$ac_given_INSTALL" in
5030 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5031 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5032 esac
5034 echo creating "$ac_file"
5035 rm -f "$ac_file"
5036 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5037 case "$ac_file" in
5038 *Makefile*) ac_comsub="1i\\
5039 # $configure_input" ;;
5040 *) ac_comsub= ;;
5041 esac
5043 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5044 sed -e "$ac_comsub
5045 s%@configure_input@%$configure_input%g
5046 s%@srcdir@%$srcdir%g
5047 s%@top_srcdir@%$top_srcdir%g
5048 s%@INSTALL@%$INSTALL%g
5049 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5050 fi; done
5051 rm -f conftest.s*
5053 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5054 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5056 # ac_d sets the value in "#define NAME VALUE" lines.
5057 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5058 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5059 ac_dC='\3'
5060 ac_dD='%g'
5061 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5062 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5063 ac_uB='\([ ]\)%\1#\2define\3'
5064 ac_uC=' '
5065 ac_uD='\4%g'
5066 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5067 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5068 ac_eB='$%\1#\2define\3'
5069 ac_eC=' '
5070 ac_eD='%g'
5072 if test "${CONFIG_HEADERS+set}" != set; then
5074 cat >> $CONFIG_STATUS <<EOF
5075 CONFIG_HEADERS="config.h:config.in"
5077 cat >> $CONFIG_STATUS <<\EOF
5079 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5080 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5081 case "$ac_file" in
5082 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5083 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5084 *) ac_file_in="${ac_file}.in" ;;
5085 esac
5087 echo creating $ac_file
5089 rm -f conftest.frag conftest.in conftest.out
5090 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5091 cat $ac_file_inputs > conftest.in
5095 # Transform confdefs.h into a sed script conftest.vals that substitutes
5096 # the proper values into config.h.in to produce config.h. And first:
5097 # Protect against being on the right side of a sed subst in config.status.
5098 # Protect against being in an unquoted here document in config.status.
5099 rm -f conftest.vals
5100 cat > conftest.hdr <<\EOF
5101 s/[\\&%]/\\&/g
5102 s%[\\$`]%\\&%g
5103 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5104 s%ac_d%ac_u%gp
5105 s%ac_u%ac_e%gp
5107 sed -n -f conftest.hdr confdefs.h > conftest.vals
5108 rm -f conftest.hdr
5110 # This sed command replaces #undef with comments. This is necessary, for
5111 # example, in the case of _POSIX_SOURCE, which is predefined and required
5112 # on some systems where configure will not decide to define it.
5113 cat >> conftest.vals <<\EOF
5114 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5117 # Break up conftest.vals because some shells have a limit on
5118 # the size of here documents, and old seds have small limits too.
5120 rm -f conftest.tail
5121 while :
5123 ac_lines=`grep -c . conftest.vals`
5124 # grep -c gives empty output for an empty file on some AIX systems.
5125 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5126 # Write a limited-size here document to conftest.frag.
5127 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5128 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5129 echo 'CEOF
5130 sed -f conftest.frag conftest.in > conftest.out
5131 rm -f conftest.in
5132 mv conftest.out conftest.in
5133 ' >> $CONFIG_STATUS
5134 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5135 rm -f conftest.vals
5136 mv conftest.tail conftest.vals
5137 done
5138 rm -f conftest.vals
5140 cat >> $CONFIG_STATUS <<\EOF
5141 rm -f conftest.frag conftest.h
5142 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5143 cat conftest.in >> conftest.h
5144 rm -f conftest.in
5145 if cmp -s $ac_file conftest.h 2>/dev/null; then
5146 echo "$ac_file is unchanged"
5147 rm -f conftest.h
5148 else
5149 # Remove last slash and all that follows it. Not all systems have dirname.
5150 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5151 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5152 # The file is in a subdirectory.
5153 test ! -d "$ac_dir" && mkdir "$ac_dir"
5155 rm -f $ac_file
5156 mv conftest.h $ac_file
5158 fi; done
5161 cat >> $CONFIG_STATUS <<EOF
5165 cat >> $CONFIG_STATUS <<\EOF
5166 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5167 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5168 exit 0
5170 chmod +x $CONFIG_STATUS
5171 rm -fr confdefs* $ac_clean_files
5172 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1