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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=no]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 --enable-targets alternative target configurations"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
33 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
36 --disable-nls do not use Native Language Support"
38 --with-included-gettext use the GNU gettext library included here"
40 --enable-cgen-maint[=dir] build cgen generated files"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
46 cache_file=./config.cache
55 program_transform_name=s,x,x,
64 bindir='${exec_prefix}/bin'
65 sbindir='${exec_prefix}/sbin'
66 libexecdir='${exec_prefix}/libexec'
67 datadir='${prefix}/share'
68 sysconfdir='${prefix}/etc'
69 sharedstatedir='${prefix}/com'
70 localstatedir='${prefix}/var'
71 libdir='${exec_prefix}/lib'
72 includedir='${prefix}/include'
73 oldincludedir='/usr/include'
74 infodir='${prefix}/info'
75 mandir='${prefix}/man'
77 # Initialize some other variables.
80 SHELL=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 # Accept the important Cygnus configure options, so we can diagnose typos.
104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107 bindir="$ac_optarg" ;;
109 -build | --build | --buil | --bui | --bu)
111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
112 build="$ac_optarg" ;;
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116 ac_prev=cache_file ;;
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119 cache_file="$ac_optarg" ;;
121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125 datadir="$ac_optarg" ;;
127 -disable-* | --disable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
136 -enable-* | --enable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151 | --exec | --exe | --ex)
152 ac_prev=exec_prefix ;;
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155 | --exec=* | --exe=* | --ex=*)
156 exec_prefix="$ac_optarg" ;;
158 -gas | --gas | --ga | --g)
159 # Obsolete; use --with-gas.
162 -help | --help | --hel | --he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --site-file=FILE use FILE as the site file
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host | --host | --hos | --ho)
220 -host=* | --host=* | --hos=* | --ho=*)
223 -includedir | --includedir | --includedi | --included | --include \
224 | --includ | --inclu | --incl | --inc)
225 ac_prev=includedir ;;
226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227 | --includ=* | --inclu=* | --incl=* | --inc=*)
228 includedir="$ac_optarg" ;;
230 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
235 -libdir | --libdir | --libdi | --libd)
237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
238 libdir="$ac_optarg" ;;
240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241 | --libexe | --libex | --libe)
242 ac_prev=libexecdir ;;
243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244 | --libexe=* | --libex=* | --libe=*)
245 libexecdir="$ac_optarg" ;;
247 -localstatedir | --localstatedir | --localstatedi | --localstated \
248 | --localstate | --localstat | --localsta | --localst \
249 | --locals | --local | --loca | --loc | --lo)
250 ac_prev=localstatedir ;;
251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254 localstatedir="$ac_optarg" ;;
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275 | --oldin | --oldi | --old | --ol | --o)
276 ac_prev=oldincludedir ;;
277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280 oldincludedir="$ac_optarg" ;;
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285 prefix="$ac_optarg" ;;
287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
288 | --program-pre | --program-pr | --program-p)
289 ac_prev=program_prefix ;;
290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292 program_prefix="$ac_optarg" ;;
294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
295 | --program-suf | --program-su | --program-s)
296 ac_prev=program_suffix ;;
297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299 program_suffix="$ac_optarg" ;;
301 -program-transform-name | --program-transform-name \
302 | --program-transform-nam | --program-transform-na \
303 | --program-transform-n | --program-transform- \
304 | --program-transform | --program-transfor \
305 | --program-transfo | --program-transf \
306 | --program-trans | --program-tran \
307 | --progr-tra | --program-tr | --program-t)
308 ac_prev=program_transform_name ;;
309 -program-transform-name=* | --program-transform-name=* \
310 | --program-transform-nam=* | --program-transform-na=* \
311 | --program-transform-n=* | --program-transform-=* \
312 | --program-transform=* | --program-transfor=* \
313 | --program-transfo=* | --program-transf=* \
314 | --program-trans=* | --program-tran=* \
315 | --progr-tra=* | --program-tr=* | --program-t=*)
316 program_transform_name="$ac_optarg" ;;
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 | -silent | --silent | --silen | --sile | --sil)
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 sbindir="$ac_optarg" ;;
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 sharedstatedir="$ac_optarg" ;;
339 -site | --site | --sit)
341 -site=* | --site=* | --sit=*)
344 -site-file | --site-file | --site-fil | --site-fi | --site-f)
346 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
347 sitefile="$ac_optarg" ;;
349 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
351 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
352 srcdir="$ac_optarg" ;;
354 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
355 | --syscon | --sysco | --sysc | --sys | --sy)
356 ac_prev=sysconfdir ;;
357 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
358 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
359 sysconfdir="$ac_optarg" ;;
361 -target | --target | --targe | --targ | --tar | --ta | --t)
363 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
364 target="$ac_optarg" ;;
366 -v | -verbose | --verbose | --verbos | --verbo | --verb)
369 -version | --version | --versio | --versi | --vers)
370 echo "configure generated by autoconf version 2.13"
374 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}='$ac_optarg'" ;;
386 -without-* | --without-*)
387 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package=`echo $ac_package| sed 's/-/_/g'`
393 eval "with_${ac_package}=no" ;;
396 # Obsolete; use --with-x.
399 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
400 | --x-incl | --x-inc | --x-in | --x-i)
401 ac_prev=x_includes ;;
402 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
403 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
404 x_includes="$ac_optarg" ;;
406 -x-libraries | --x-libraries | --x-librarie | --x-librari \
407 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
408 ac_prev=x_libraries ;;
409 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
410 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
411 x_libraries="$ac_optarg" ;;
413 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
417 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
418 echo "configure: warning: $ac_option: invalid host type" 1>&2
420 if test "x$nonopt" != xNONE; then
421 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
429 if test -n "$ac_prev"; then
430 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
433 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
435 # File descriptor usage:
438 # 2 errors and warnings
439 # 3 some systems may open it to /dev/tty
440 # 4 used on the Kubota Titan
441 # 6 checking for... messages and results
442 # 5 compiler messages saved in config.log
443 if test "$silent" = yes; then
451 This file contains any messages produced by compilers while
452 running configure, to aid debugging if configure makes a mistake.
455 # Strip out --no-create and --no-recursion so they do not pile up.
456 # Also quote any args containing shell metacharacters.
461 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
462 | --no-cr | --no-c) ;;
463 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
464 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
466 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
467 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
472 # Only set these to C if already set. These must not be set unconditionally
473 # because not all systems understand e.g. LANG=C (notably SCO).
474 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
475 # Non-C LC_CTYPE values break the ctype check.
476 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
477 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
478 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
479 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
481 # confdefs.h avoids OS command line length limits that DEFS can exceed.
482 rm -rf conftest* confdefs.h
483 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
486 # A filename unique to this package, relative to the directory that
487 # configure is in, which we can look for to find out if srcdir is correct.
488 ac_unique_file=z8k-dis.c
490 # Find the source files, if location was not specified.
491 if test -z "$srcdir"; then
492 ac_srcdir_defaulted=yes
493 # Try the directory containing this script, then its parent.
495 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
496 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
498 if test ! -r $srcdir/$ac_unique_file; then
502 ac_srcdir_defaulted=no
504 if test ! -r $srcdir/$ac_unique_file; then
505 if test "$ac_srcdir_defaulted" = yes; then
506 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
508 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
511 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
513 # Prefer explicitly selected file to automatically selected ones.
514 if test -z "$sitefile"; then
515 if test -z "$CONFIG_SITE"; then
516 if test "x$prefix" != xNONE; then
517 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
519 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523 CONFIG_SITE="$sitefile"
525 for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
536 echo "creating cache $cache_file"
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='\c' ac_t=
561 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
562 echo "configure:563: checking for Cygwin environment" >&5
563 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
566 cat > conftest.$ac_ext <<EOF
567 #line 568 "configure"
568 #include "confdefs.h"
573 #define __CYGWIN__ __CYGWIN32__
578 if { (eval echo configure:579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
582 echo "configure: failed program was:" >&5
583 cat conftest.$ac_ext >&5
591 echo "$ac_t""$ac_cv_cygwin" 1>&6
593 test "$ac_cv_cygwin" = yes && CYGWIN=yes
594 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
595 echo "configure:596: checking for mingw32 environment" >&5
596 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
597 echo $ac_n "(cached) $ac_c" 1>&6
599 cat > conftest.$ac_ext <<EOF
600 #line 601 "configure"
601 #include "confdefs.h"
607 if { (eval echo configure:608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
611 echo "configure: failed program was:" >&5
612 cat conftest.$ac_ext >&5
620 echo "$ac_t""$ac_cv_mingw32" 1>&6
622 test "$ac_cv_mingw32" = yes && MINGW32=yes
626 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
627 if test -f $ac_dir/install-sh; then
629 ac_install_sh="$ac_aux_dir/install-sh -c"
631 elif test -f $ac_dir/install.sh; then
633 ac_install_sh="$ac_aux_dir/install.sh -c"
637 if test -z "$ac_aux_dir"; then
638 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
640 ac_config_guess=$ac_aux_dir/config.guess
641 ac_config_sub=$ac_aux_dir/config.sub
642 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
645 # Do some error checking and defaulting for the host and target type.
647 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
650 # 1. You are not allowed to specify --host, --target, and nonopt at the
652 # 2. Host defaults to nonopt.
653 # 3. If nonopt is not specified, then host defaults to the current host,
654 # as determined by config.guess.
655 # 4. Target and build default to nonopt.
656 # 5. If nonopt is not specified, then target and build default to host.
658 # The aliases save the names the user supplied, while $host etc.
659 # will get canonicalized.
660 case $host---$target---$nonopt in
661 NONE---*---* | *---NONE---* | *---*---NONE) ;;
662 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
666 # Make sure we can run config.sub.
667 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
668 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
671 echo $ac_n "checking host system type""... $ac_c" 1>&6
672 echo "configure:673: checking host system type" >&5
675 case "$host_alias" in
679 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
680 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
682 *) host_alias=$nonopt ;;
686 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
687 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
688 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
689 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
690 echo "$ac_t""$host" 1>&6
692 echo $ac_n "checking target system type""... $ac_c" 1>&6
693 echo "configure:694: checking target system type" >&5
696 case "$target_alias" in
699 NONE) target_alias=$host_alias ;;
700 *) target_alias=$nonopt ;;
704 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
705 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
706 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
707 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
708 echo "$ac_t""$target" 1>&6
710 echo $ac_n "checking build system type""... $ac_c" 1>&6
711 echo "configure:712: checking build system type" >&5
714 case "$build_alias" in
717 NONE) build_alias=$host_alias ;;
718 *) build_alias=$nonopt ;;
722 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
723 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
724 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
725 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
726 echo "$ac_t""$build" 1>&6
728 test "$host_alias" != "$target_alias" &&
729 test "$program_prefix$program_suffix$program_transform_name" = \
731 program_prefix=${target_alias}-
734 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
735 echo "configure:736: checking for strerror in -lcposix" >&5
736 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
741 LIBS="-lcposix $LIBS"
742 cat > conftest.$ac_ext <<EOF
743 #line 744 "configure"
744 #include "confdefs.h"
745 /* Override any gcc2 internal prototype to avoid an error. */
746 /* We use char because int might match the return type of a gcc2
747 builtin and then its argument prototype would still apply. */
754 if { (eval echo configure:755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
756 eval "ac_cv_lib_$ac_lib_var=yes"
758 echo "configure: failed program was:" >&5
759 cat conftest.$ac_ext >&5
761 eval "ac_cv_lib_$ac_lib_var=no"
767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
768 echo "$ac_t""yes" 1>&6
769 LIBS="$LIBS -lcposix"
771 echo "$ac_t""no" 1>&6
777 # We currently only use the version number for the name of any shared
778 # library. For user convenience, we always use the same version
779 # number that BFD is using.
780 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
782 # Find a good install program. We prefer a C program (faster),
783 # so one script is as good as another. But avoid the broken or
784 # incompatible versions:
785 # SysV /etc/install, /usr/sbin/install
786 # SunOS /usr/etc/install
789 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
790 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
791 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
792 # ./install, which can be erroneously created by make from ./install.sh.
793 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
794 echo "configure:795: checking for a BSD compatible install" >&5
795 if test -z "$INSTALL"; then
796 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
800 for ac_dir in $PATH; do
801 # Account for people who put trailing slashes in PATH elements.
803 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
805 # OSF1 and SCO ODT 3.0 have their own names for install.
806 # Don't use installbsd from OSF since it installs stuff as root
808 for ac_prog in ginstall scoinst install; do
809 if test -f $ac_dir/$ac_prog; then
810 if test $ac_prog = install &&
811 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
812 # AIX install. It has an incompatible calling convention.
815 ac_cv_path_install="$ac_dir/$ac_prog -c"
826 if test "${ac_cv_path_install+set}" = set; then
827 INSTALL="$ac_cv_path_install"
829 # As a last resort, use the slow shell script. We don't cache a
830 # path for INSTALL within a source directory, because that will
831 # break other packages using the cache if that directory is
832 # removed, or if the path is relative.
833 INSTALL="$ac_install_sh"
836 echo "$ac_t""$INSTALL" 1>&6
838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
839 # It thinks the first close brace ends the variable substitution.
840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
842 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
844 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
846 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
847 echo "configure:848: checking whether build environment is sane" >&5
850 echo timestamp > conftestfile
851 # Do `set' in a subshell so we don't clobber the current shell's
852 # arguments. Must try -L first in case configure is actually a
853 # symlink; some systems play weird games with the mod time of symlinks
854 # (eg FreeBSD returns the mod time of the symlink's containing
857 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
858 if test "$*" = "X"; then
860 set X `ls -t $srcdir/configure conftestfile`
862 if test "$*" != "X $srcdir/configure conftestfile" \
863 && test "$*" != "X conftestfile $srcdir/configure"; then
865 # If neither matched, then we have a broken ls. This can happen
866 # if, for instance, CONFIG_SHELL is bash and it inherits a
867 # broken ls alias from the environment. This has actually
868 # happened. Such a system could not be considered "sane".
869 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
870 alias in your environment" 1>&2; exit 1; }
873 test "$2" = conftestfile
879 { echo "configure: error: newly created file is older than distributed files!
880 Check your system clock" 1>&2; exit 1; }
883 echo "$ac_t""yes" 1>&6
884 if test "$program_transform_name" = s,x,x,; then
885 program_transform_name=
887 # Double any \ or $. echo might interpret backslashes.
888 cat <<\EOF_SED > conftestsed
889 s,\\,\\\\,g; s,\$,$$,g
891 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
894 test "$program_prefix" != NONE &&
895 program_transform_name="s,^,${program_prefix},; $program_transform_name"
896 # Use a double $ so make ignores it.
897 test "$program_suffix" != NONE &&
898 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
900 # sed with no file args requires a program.
901 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
903 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
904 echo "configure:905: checking whether ${MAKE-make} sets \${MAKE}" >&5
905 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
906 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
909 cat > conftestmake <<\EOF
911 @echo 'ac_maketemp="${MAKE}"'
913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
914 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
915 if test -n "$ac_maketemp"; then
916 eval ac_cv_prog_make_${ac_make}_set=yes
918 eval ac_cv_prog_make_${ac_make}_set=no
922 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
923 echo "$ac_t""yes" 1>&6
926 echo "$ac_t""no" 1>&6
927 SET_MAKE="MAKE=${MAKE-make}"
933 VERSION=${BFD_VERSION}
935 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
936 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
938 cat >> confdefs.h <<EOF
939 #define PACKAGE "$PACKAGE"
942 cat >> confdefs.h <<EOF
943 #define VERSION "$VERSION"
948 missing_dir=`cd $ac_aux_dir && pwd`
949 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
950 echo "configure:951: checking for working aclocal" >&5
951 # Run test in a subshell; some versions of sh will print an error if
952 # an executable is not found, even if stderr is redirected.
953 # Redirect stdin to placate older versions of autoconf. Sigh.
954 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
956 echo "$ac_t""found" 1>&6
958 ACLOCAL="$missing_dir/missing aclocal"
959 echo "$ac_t""missing" 1>&6
962 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
963 echo "configure:964: checking for working autoconf" >&5
964 # Run test in a subshell; some versions of sh will print an error if
965 # an executable is not found, even if stderr is redirected.
966 # Redirect stdin to placate older versions of autoconf. Sigh.
967 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
969 echo "$ac_t""found" 1>&6
971 AUTOCONF="$missing_dir/missing autoconf"
972 echo "$ac_t""missing" 1>&6
975 echo $ac_n "checking for working automake""... $ac_c" 1>&6
976 echo "configure:977: checking for working automake" >&5
977 # Run test in a subshell; some versions of sh will print an error if
978 # an executable is not found, even if stderr is redirected.
979 # Redirect stdin to placate older versions of autoconf. Sigh.
980 if (automake --version) < /dev/null > /dev/null 2>&1; then
982 echo "$ac_t""found" 1>&6
984 AUTOMAKE="$missing_dir/missing automake"
985 echo "$ac_t""missing" 1>&6
988 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
989 echo "configure:990: checking for working autoheader" >&5
990 # Run test in a subshell; some versions of sh will print an error if
991 # an executable is not found, even if stderr is redirected.
992 # Redirect stdin to placate older versions of autoconf. Sigh.
993 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
994 AUTOHEADER=autoheader
995 echo "$ac_t""found" 1>&6
997 AUTOHEADER="$missing_dir/missing autoheader"
998 echo "$ac_t""missing" 1>&6
1001 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1002 echo "configure:1003: checking for working makeinfo" >&5
1003 # Run test in a subshell; some versions of sh will print an error if
1004 # an executable is not found, even if stderr is redirected.
1005 # Redirect stdin to placate older versions of autoconf. Sigh.
1006 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1008 echo "$ac_t""found" 1>&6
1010 MAKEINFO="$missing_dir/missing makeinfo"
1011 echo "$ac_t""missing" 1>&6
1016 if test $host != $build; then
1017 ac_tool_prefix=${host_alias}-
1022 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1023 set dummy ${ac_tool_prefix}ar; ac_word=$2
1024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025 echo "configure:1026: checking for $ac_word" >&5
1026 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1029 if test -n "$AR"; then
1030 ac_cv_prog_AR="$AR" # Let the user override the test.
1032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1034 for ac_dir in $ac_dummy; do
1035 test -z "$ac_dir" && ac_dir=.
1036 if test -f $ac_dir/$ac_word; then
1037 ac_cv_prog_AR="${ac_tool_prefix}ar"
1042 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1046 if test -n "$AR"; then
1047 echo "$ac_t""$AR" 1>&6
1049 echo "$ac_t""no" 1>&6
1054 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1055 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057 echo "configure:1058: checking for $ac_word" >&5
1058 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1061 if test -n "$RANLIB"; then
1062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1066 for ac_dir in $ac_dummy; do
1067 test -z "$ac_dir" && ac_dir=.
1068 if test -f $ac_dir/$ac_word; then
1069 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1076 RANLIB="$ac_cv_prog_RANLIB"
1077 if test -n "$RANLIB"; then
1078 echo "$ac_t""$RANLIB" 1>&6
1080 echo "$ac_t""no" 1>&6
1084 if test -z "$ac_cv_prog_RANLIB"; then
1085 if test -n "$ac_tool_prefix"; then
1086 # Extract the first word of "ranlib", so it can be a program name with args.
1087 set dummy ranlib; ac_word=$2
1088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1089 echo "configure:1090: checking for $ac_word" >&5
1090 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 if test -n "$RANLIB"; then
1094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1098 for ac_dir in $ac_dummy; do
1099 test -z "$ac_dir" && ac_dir=.
1100 if test -f $ac_dir/$ac_word; then
1101 ac_cv_prog_RANLIB="ranlib"
1106 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1109 RANLIB="$ac_cv_prog_RANLIB"
1110 if test -n "$RANLIB"; then
1111 echo "$ac_t""$RANLIB" 1>&6
1113 echo "$ac_t""no" 1>&6
1122 # Check whether --enable-shared or --disable-shared was given.
1123 if test "${enable_shared+set}" = set; then
1124 enableval="$enable_shared"
1125 p=${PACKAGE-default}
1127 yes) enable_shared=yes ;;
1128 no) enable_shared=no ;;
1131 # Look at the argument we got. We use all the common list separators.
1132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1133 for pkg in $enableval; do
1134 if test "X$pkg" = "X$p"; then
1146 # Check whether --enable-static or --disable-static was given.
1147 if test "${enable_static+set}" = set; then
1148 enableval="$enable_static"
1149 p=${PACKAGE-default}
1151 yes) enable_static=yes ;;
1152 no) enable_static=no ;;
1155 # Look at the argument we got. We use all the common list separators.
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1157 for pkg in $enableval; do
1158 if test "X$pkg" = "X$p"; then
1169 # Check whether --enable-fast-install or --disable-fast-install was given.
1170 if test "${enable_fast_install+set}" = set; then
1171 enableval="$enable_fast_install"
1172 p=${PACKAGE-default}
1174 yes) enable_fast_install=yes ;;
1175 no) enable_fast_install=no ;;
1177 enable_fast_install=no
1178 # Look at the argument we got. We use all the common list separators.
1179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1180 for pkg in $enableval; do
1181 if test "X$pkg" = "X$p"; then
1182 enable_fast_install=yes
1189 enable_fast_install=yes
1192 # Extract the first word of "gcc", so it can be a program name with args.
1193 set dummy gcc; ac_word=$2
1194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1195 echo "configure:1196: checking for $ac_word" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1199 if test -n "$CC"; then
1200 ac_cv_prog_CC="$CC" # Let the user override the test.
1202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1204 for ac_dir in $ac_dummy; do
1205 test -z "$ac_dir" && ac_dir=.
1206 if test -f $ac_dir/$ac_word; then
1215 if test -n "$CC"; then
1216 echo "$ac_t""$CC" 1>&6
1218 echo "$ac_t""no" 1>&6
1221 if test -z "$CC"; then
1222 # Extract the first word of "cc", so it can be a program name with args.
1223 set dummy cc; ac_word=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 if test -n "$CC"; then
1230 ac_cv_prog_CC="$CC" # Let the user override the test.
1232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1239 ac_prog_rejected=yes
1247 if test $ac_prog_rejected = yes; then
1248 # We found a bogon in the path, so make sure we never use it.
1249 set dummy $ac_cv_prog_CC
1251 if test $# -gt 0; then
1252 # We chose a different compiler from the bogus one.
1253 # However, it has the same basename, so the bogon will be chosen
1254 # first if we set CC to just the basename; use the full file name.
1256 set dummy "$ac_dir/$ac_word" "$@"
1264 if test -n "$CC"; then
1265 echo "$ac_t""$CC" 1>&6
1267 echo "$ac_t""no" 1>&6
1270 if test -z "$CC"; then
1271 case "`uname -s`" in
1273 # Extract the first word of "cl", so it can be a program name with args.
1274 set dummy cl; ac_word=$2
1275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1276 echo "configure:1277: checking for $ac_word" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 if test -n "$CC"; then
1281 ac_cv_prog_CC="$CC" # Let the user override the test.
1283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1285 for ac_dir in $ac_dummy; do
1286 test -z "$ac_dir" && ac_dir=.
1287 if test -f $ac_dir/$ac_word; then
1296 if test -n "$CC"; then
1297 echo "$ac_t""$CC" 1>&6
1299 echo "$ac_t""no" 1>&6
1304 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1307 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1308 echo "configure:1309: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1315 cross_compiling=$ac_cv_prog_cc_cross
1317 cat > conftest.$ac_ext << EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1324 if { (eval echo configure:1325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1325 ac_cv_prog_cc_works=yes
1326 # If we can't run a trivial program, we are probably using a cross compiler.
1327 if (./conftest; exit) 2>/dev/null; then
1328 ac_cv_prog_cc_cross=no
1330 ac_cv_prog_cc_cross=yes
1333 echo "configure: failed program was:" >&5
1334 cat conftest.$ac_ext >&5
1335 ac_cv_prog_cc_works=no
1339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1340 ac_cpp='$CPP $CPPFLAGS'
1341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1342 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1343 cross_compiling=$ac_cv_prog_cc_cross
1345 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1346 if test $ac_cv_prog_cc_works = no; then
1347 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1349 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1350 echo "configure:1351: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1351 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1352 cross_compiling=$ac_cv_prog_cc_cross
1354 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1355 echo "configure:1356: checking whether we are using GNU C" >&5
1356 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 cat > conftest.c <<EOF
1364 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1371 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1373 if test $ac_cv_prog_gcc = yes; then
1379 ac_test_CFLAGS="${CFLAGS+set}"
1380 ac_save_CFLAGS="$CFLAGS"
1382 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1383 echo "configure:1384: checking whether ${CC-cc} accepts -g" >&5
1384 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1387 echo 'void f(){}' > conftest.c
1388 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1397 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1398 if test "$ac_test_CFLAGS" = set; then
1399 CFLAGS="$ac_save_CFLAGS"
1400 elif test $ac_cv_prog_cc_g = yes; then
1401 if test "$GCC" = yes; then
1407 if test "$GCC" = yes; then
1414 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1415 if test "${with_gnu_ld+set}" = set; then
1416 withval="$with_gnu_ld"
1417 test "$withval" = no || with_gnu_ld=yes
1423 if test "$GCC" = yes; then
1424 # Check if gcc -print-prog-name=ld gives a path.
1425 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1426 echo "configure:1427: checking for ld used by GCC" >&5
1429 # gcc leaves a trailing carriage return which upsets mingw
1430 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1432 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1435 # Accept absolute paths.
1436 [\\/]* | [A-Za-z]:[\\/]*)
1437 re_direlt='/[^/][^/]*/\.\./'
1438 # Canonicalize the path of ld
1439 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1440 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1441 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1443 test -z "$LD" && LD="$ac_prog"
1446 # If it fails, then pretend we aren't using GCC.
1450 # If it is relative, then search for the first ld in PATH.
1454 elif test "$with_gnu_ld" = yes; then
1455 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1456 echo "configure:1457: checking for GNU ld" >&5
1458 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1459 echo "configure:1460: checking for non-GNU ld" >&5
1461 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 if test -z "$LD"; then
1465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1466 for ac_dir in $PATH; do
1467 test -z "$ac_dir" && ac_dir=.
1468 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1469 lt_cv_path_LD="$ac_dir/$ac_prog"
1470 # Check to see if the program is GNU ld. I'd rather use --version,
1471 # but apparently some GNU ld's only accept -v.
1472 # Break only if it was the GNU/non-GNU ld that we prefer.
1473 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1474 test "$with_gnu_ld" != no && break
1476 test "$with_gnu_ld" != yes && break
1482 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1487 if test -n "$LD"; then
1488 echo "$ac_t""$LD" 1>&6
1490 echo "$ac_t""no" 1>&6
1492 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1493 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1494 echo "configure:1495: checking if the linker ($LD) is GNU ld" >&5
1495 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1499 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1500 lt_cv_prog_gnu_ld=yes
1502 lt_cv_prog_gnu_ld=no
1506 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1507 with_gnu_ld=$lt_cv_prog_gnu_ld
1510 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1511 echo "configure:1512: checking for $LD option to reload object files" >&5
1512 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 lt_cv_ld_reload_flag='-r'
1518 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1519 reload_flag=$lt_cv_ld_reload_flag
1520 test -n "$reload_flag" && reload_flag=" $reload_flag"
1522 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1523 echo "configure:1524: checking for BSD-compatible nm" >&5
1524 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 if test -n "$NM"; then
1528 # Let the user override the test.
1531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1532 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1533 test -z "$ac_dir" && ac_dir=.
1534 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1535 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1536 # Check to see if the nm accepts a BSD-compat flag.
1537 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1538 # nm: unknown option "B" ignored
1539 # Tru64's nm complains that /dev/null is an invalid object file
1540 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1541 lt_cv_path_NM="$tmp_nm -B"
1543 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1544 lt_cv_path_NM="$tmp_nm -p"
1547 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1548 continue # so that we can try to find one that supports BSD flags
1553 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1558 echo "$ac_t""$NM" 1>&6
1560 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1561 echo "configure:1562: checking whether ln -s works" >&5
1562 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1566 if ln -s X conftestdata 2>/dev/null
1569 ac_cv_prog_LN_S="ln -s"
1574 LN_S="$ac_cv_prog_LN_S"
1575 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1576 echo "$ac_t""yes" 1>&6
1578 echo "$ac_t""no" 1>&6
1581 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1582 echo "configure:1583: checking how to recognise dependant libraries" >&5
1583 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 lt_cv_file_magic_cmd='$MAGIC_CMD'
1587 lt_cv_file_magic_test_file=
1588 lt_cv_deplibs_check_method='unknown'
1589 # Need to set the preceding variable on all platforms that support
1590 # interlibrary dependencies.
1591 # 'none' -- dependencies not supported.
1592 # `unknown' -- same as none, but documents that we really don't know.
1593 # 'pass_all' -- all dependencies passed with no checks.
1594 # 'test_compile' -- check by making test program.
1595 # 'file_magic [regex]' -- check by looking for files in library path
1596 # which responds to the $file_magic_cmd with a given egrep regex.
1597 # If you have `file' or equivalent on your system and you're not sure
1598 # whether `pass_all' will *always* work, you probably want this one.
1602 lt_cv_deplibs_check_method=pass_all
1606 lt_cv_deplibs_check_method=pass_all
1610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1611 lt_cv_file_magic_cmd='/usr/bin/file -L'
1612 lt_cv_file_magic_test_file=/shlib/libc.so
1615 cygwin* | mingw* |pw32*)
1616 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1617 lt_cv_file_magic_cmd='$OBJDUMP -f'
1620 darwin* | rhapsody*)
1621 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1622 lt_cv_file_magic_cmd='/usr/bin/file -L'
1624 rhapsody* | darwin1.012)
1625 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1628 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1634 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1637 # Not sure whether the presence of OpenBSD here was a mistake.
1638 # Let's accept both of them until this is cleared up.
1639 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1640 lt_cv_file_magic_cmd=/usr/bin/file
1641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1645 lt_cv_deplibs_check_method=pass_all
1650 lt_cv_deplibs_check_method=pass_all
1656 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1657 lt_cv_file_magic_cmd=/usr/bin/file
1658 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1661 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1662 lt_cv_file_magic_cmd=/usr/bin/file
1663 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1671 # this will be overridden with pass_all, but let us keep it just in case
1672 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1676 *-32|*"-32 ") libmagic=32-bit;;
1677 *-n32|*"-n32 ") libmagic=N32;;
1678 *-64|*"-64 ") libmagic=64-bit;;
1679 *) libmagic=never-match;;
1681 # this will be overridden with pass_all, but let us keep it just in case
1682 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1685 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1686 lt_cv_deplibs_check_method=pass_all
1689 # This must be Linux ELF.
1692 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1693 lt_cv_deplibs_check_method=pass_all ;;
1695 # glibc up to 2.1.1 does not perform some relocations on ARM
1696 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1698 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1702 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1703 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1705 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1710 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1711 lt_cv_file_magic_cmd=/usr/bin/file
1712 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1715 osf3* | osf4* | osf5*)
1716 # this will be overridden with pass_all, but let us keep it just in case
1717 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1718 lt_cv_file_magic_test_file=/shlib/libc.so
1719 lt_cv_deplibs_check_method=pass_all
1723 lt_cv_deplibs_check_method=pass_all
1727 lt_cv_deplibs_check_method=pass_all
1728 lt_cv_file_magic_test_file=/lib/libc.so
1731 sysv5uw[78]* | sysv4*uw2*)
1732 lt_cv_deplibs_check_method=pass_all
1735 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1736 case $host_vendor in
1738 lt_cv_deplibs_check_method=pass_all
1741 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]'
1742 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1750 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1751 file_magic_cmd=$lt_cv_file_magic_cmd
1752 deplibs_check_method=$lt_cv_deplibs_check_method
1754 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1755 echo "configure:1756: checking for object suffix" >&5
1756 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1757 echo $ac_n "(cached) $ac_c" 1>&6
1760 echo 'int i = 1;' > conftest.$ac_ext
1761 if { (eval echo configure:1762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1762 for ac_file in conftest.*; do
1765 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1769 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1774 echo "$ac_t""$ac_cv_objext" 1>&6
1775 OBJEXT=$ac_cv_objext
1776 ac_objext=$ac_cv_objext
1780 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1781 echo "configure:1782: checking for executable suffix" >&5
1782 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1789 echo 'int main () { return 0; }' > conftest.$ac_ext
1791 if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1792 for file in conftest.*; do
1794 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1795 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1799 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1802 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1807 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1808 echo "$ac_t""${ac_cv_exeext}" 1>&6
1811 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1813 # Only perform the check for file, if the check method requires it
1814 case $deplibs_check_method in
1816 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1817 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1818 echo "configure:1819: checking for ${ac_tool_prefix}file" >&5
1819 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1827 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1830 ac_save_MAGIC_CMD="$MAGIC_CMD"
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1832 ac_dummy="/usr/bin:$PATH"
1833 for ac_dir in $ac_dummy; do
1834 test -z "$ac_dir" && ac_dir=.
1835 if test -f $ac_dir/${ac_tool_prefix}file; then
1836 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1837 if test -n "$file_magic_test_file"; then
1838 case $deplibs_check_method in
1840 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1841 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1842 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1843 egrep "$file_magic_regex" > /dev/null; then
1848 *** Warning: the command libtool uses to detect shared libraries,
1849 *** $file_magic_cmd, produces output that libtool cannot recognize.
1850 *** The result is that libtool may fail to recognize shared libraries
1851 *** as such. This will affect the creation of libtool libraries that
1852 *** depend on shared libraries, but programs linked with such libtool
1853 *** libraries will work regardless of this problem. Nevertheless, you
1854 *** may want to report the problem to your system manager and/or to
1855 *** bug-libtool@gnu.org
1865 MAGIC_CMD="$ac_save_MAGIC_CMD"
1870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1871 if test -n "$MAGIC_CMD"; then
1872 echo "$ac_t""$MAGIC_CMD" 1>&6
1874 echo "$ac_t""no" 1>&6
1877 if test -z "$lt_cv_path_MAGIC_CMD"; then
1878 if test -n "$ac_tool_prefix"; then
1879 echo $ac_n "checking for file""... $ac_c" 1>&6
1880 echo "configure:1881: checking for file" >&5
1881 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1886 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1889 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1892 ac_save_MAGIC_CMD="$MAGIC_CMD"
1893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1894 ac_dummy="/usr/bin:$PATH"
1895 for ac_dir in $ac_dummy; do
1896 test -z "$ac_dir" && ac_dir=.
1897 if test -f $ac_dir/file; then
1898 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1899 if test -n "$file_magic_test_file"; then
1900 case $deplibs_check_method in
1902 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1904 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1905 egrep "$file_magic_regex" > /dev/null; then
1910 *** Warning: the command libtool uses to detect shared libraries,
1911 *** $file_magic_cmd, produces output that libtool cannot recognize.
1912 *** The result is that libtool may fail to recognize shared libraries
1913 *** as such. This will affect the creation of libtool libraries that
1914 *** depend on shared libraries, but programs linked with such libtool
1915 *** libraries will work regardless of this problem. Nevertheless, you
1916 *** may want to report the problem to your system manager and/or to
1917 *** bug-libtool@gnu.org
1927 MAGIC_CMD="$ac_save_MAGIC_CMD"
1932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1933 if test -n "$MAGIC_CMD"; then
1934 echo "$ac_t""$MAGIC_CMD" 1>&6
1936 echo "$ac_t""no" 1>&6
1948 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1949 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_word" >&5
1952 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 if test -n "$RANLIB"; then
1956 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1960 for ac_dir in $ac_dummy; do
1961 test -z "$ac_dir" && ac_dir=.
1962 if test -f $ac_dir/$ac_word; then
1963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1970 RANLIB="$ac_cv_prog_RANLIB"
1971 if test -n "$RANLIB"; then
1972 echo "$ac_t""$RANLIB" 1>&6
1974 echo "$ac_t""no" 1>&6
1978 if test -z "$ac_cv_prog_RANLIB"; then
1979 if test -n "$ac_tool_prefix"; then
1980 # Extract the first word of "ranlib", so it can be a program name with args.
1981 set dummy ranlib; ac_word=$2
1982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1983 echo "configure:1984: checking for $ac_word" >&5
1984 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 if test -n "$RANLIB"; then
1988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1992 for ac_dir in $ac_dummy; do
1993 test -z "$ac_dir" && ac_dir=.
1994 if test -f $ac_dir/$ac_word; then
1995 ac_cv_prog_RANLIB="ranlib"
2000 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2003 RANLIB="$ac_cv_prog_RANLIB"
2004 if test -n "$RANLIB"; then
2005 echo "$ac_t""$RANLIB" 1>&6
2007 echo "$ac_t""no" 1>&6
2015 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2016 set dummy ${ac_tool_prefix}strip; ac_word=$2
2017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2018 echo "configure:2019: checking for $ac_word" >&5
2019 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 if test -n "$STRIP"; then
2023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2027 for ac_dir in $ac_dummy; do
2028 test -z "$ac_dir" && ac_dir=.
2029 if test -f $ac_dir/$ac_word; then
2030 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2037 STRIP="$ac_cv_prog_STRIP"
2038 if test -n "$STRIP"; then
2039 echo "$ac_t""$STRIP" 1>&6
2041 echo "$ac_t""no" 1>&6
2045 if test -z "$ac_cv_prog_STRIP"; then
2046 if test -n "$ac_tool_prefix"; then
2047 # Extract the first word of "strip", so it can be a program name with args.
2048 set dummy strip; ac_word=$2
2049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2050 echo "configure:2051: checking for $ac_word" >&5
2051 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2054 if test -n "$STRIP"; then
2055 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2059 for ac_dir in $ac_dummy; do
2060 test -z "$ac_dir" && ac_dir=.
2061 if test -f $ac_dir/$ac_word; then
2062 ac_cv_prog_STRIP="strip"
2067 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2070 STRIP="$ac_cv_prog_STRIP"
2071 if test -n "$STRIP"; then
2072 echo "$ac_t""$STRIP" 1>&6
2074 echo "$ac_t""no" 1>&6
2083 # Check for any special flags to pass to ltconfig.
2084 libtool_flags="--cache-file=$cache_file"
2085 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2086 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2087 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2088 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2089 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2092 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2093 if test "${enable_libtool_lock+set}" = set; then
2094 enableval="$enable_libtool_lock"
2098 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2099 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2101 # Check whether --with-pic or --without-pic was given.
2102 if test "${with_pic+set}" = set; then
2109 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2110 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2112 # Some flags need to be propagated to the compiler or linker for good
2116 # Find out which ABI we are using.
2117 echo '#line 2118 "configure"' > conftest.$ac_ext
2118 if { (eval echo configure:2119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2119 case `/usr/bin/file conftest.$ac_objext` in
2135 # Find out which ABI we are using.
2136 echo 'int i;' > conftest.$ac_ext
2137 if { (eval echo configure:2138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2138 case "`/usr/bin/file conftest.o`" in
2151 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2152 SAVE_CFLAGS="$CFLAGS"
2153 CFLAGS="$CFLAGS -belf"
2154 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2155 echo "configure:2156: checking whether the C compiler needs -belf" >&5
2156 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2161 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2162 ac_cpp='$CPP $CPPFLAGS'
2163 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2164 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2165 cross_compiling=$ac_cv_prog_cc_cross
2167 cat > conftest.$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2175 if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2177 lt_cv_cc_needs_belf=yes
2179 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2182 lt_cv_cc_needs_belf=no
2186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2189 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2190 cross_compiling=$ac_cv_prog_cc_cross
2194 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2195 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2196 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2197 CFLAGS="$SAVE_CFLAGS"
2205 # Save cache, so that ltconfig can load it
2206 cat > confcache <<\EOF
2207 # This file is a shell script that caches the results of configure
2208 # tests run on this system so they can be shared between configure
2209 # scripts and configure runs. It is not useful on other systems.
2210 # If it contains results you don't want to keep, you may remove or edit it.
2212 # By default, configure uses ./config.cache as the cache file,
2213 # creating it if it does not exist already. You can give configure
2214 # the --cache-file=FILE option to use a different cache file; that is
2215 # what configure does when it calls configure scripts in
2216 # subdirectories, so they share the cache.
2217 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2218 # config.status only pays attention to the cache file if you give it the
2219 # --recheck option to rerun configure.
2222 # The following way of writing the cache mishandles newlines in values,
2223 # but we know of no workaround that is simple, portable, and efficient.
2224 # So, don't put newlines in cache variables' values.
2225 # Ultrix sh set writes to stderr and can't be redirected directly,
2226 # and sets the high bit in the cache file unless we assign to the vars.
2228 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2230 # `set' does not quote correctly, so add quotes (double-quote substitution
2231 # turns \\\\ into \\, and sed turns \\ into \).
2233 -e "s/'/'\\\\''/g" \
2234 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2237 # `set' quotes correctly as required by POSIX, so do not add quotes.
2238 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2241 if cmp -s $cache_file confcache; then
2244 if test -w $cache_file; then
2245 echo "updating cache $cache_file"
2246 cat confcache > $cache_file
2248 echo "not updating unwritable cache $cache_file"
2254 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2255 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2256 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2257 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2258 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2259 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2260 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2261 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2262 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2263 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2265 # Reload cache, that may have been modified by ltconfig
2266 if test -r "$cache_file"; then
2267 echo "loading cache $cache_file"
2270 echo "creating cache $cache_file"
2275 # This can be used to rebuild libtool when needed
2276 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2278 # Always use our own libtool.
2279 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2281 # Redirect the config.log output again, so that the ltconfig log is not
2282 # clobbered by the next message.
2283 exec 5>>./config.log
2291 # Check whether --enable-targets or --disable-targets was given.
2292 if test "${enable_targets+set}" = set; then
2293 enableval="$enable_targets"
2294 case "${enableval}" in
2295 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2297 no) enable_targets= ;;
2298 *) enable_targets=$enableval ;;
2301 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2302 if test "${enable_commonbfdlib+set}" = set; then
2303 enableval="$enable_commonbfdlib"
2304 case "${enableval}" in
2305 yes) commonbfdlib=true ;;
2306 no) commonbfdlib=false ;;
2307 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
2311 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2312 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2313 if test "${enable_build_warnings+set}" = set; then
2314 enableval="$enable_build_warnings"
2315 case "${enableval}" in
2317 no) build_warnings="-w";;
2318 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2319 build_warnings="${build_warnings} ${t}";;
2320 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2321 build_warnings="${t} ${build_warnings}";;
2322 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2324 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2325 echo "Setting warning flags = $build_warnings" 6>&1
2329 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2330 WARN_CFLAGS="${build_warnings}"
2338 if test -z "$target" ; then
2339 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2342 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2343 echo "configure:2344: checking whether to enable maintainer-specific portions of Makefiles" >&5
2344 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2345 if test "${enable_maintainer_mode+set}" = set; then
2346 enableval="$enable_maintainer_mode"
2347 USE_MAINTAINER_MODE=$enableval
2349 USE_MAINTAINER_MODE=no
2352 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2355 if test $USE_MAINTAINER_MODE = yes; then
2356 MAINTAINER_MODE_TRUE=
2357 MAINTAINER_MODE_FALSE='#'
2359 MAINTAINER_MODE_TRUE='#'
2360 MAINTAINER_MODE_FALSE=
2362 MAINT=$MAINTAINER_MODE_TRUE
2367 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2368 echo "configure:2369: checking for executable suffix" >&5
2369 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2376 echo 'int main () { return 0; }' > conftest.$ac_ext
2378 if { (eval echo configure:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2379 for file in conftest.*; do
2381 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2382 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2386 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2389 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2394 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2395 echo "$ac_t""${ac_cv_exeext}" 1>&6
2399 # host-specific stuff:
2401 # Extract the first word of "gcc", so it can be a program name with args.
2402 set dummy gcc; ac_word=$2
2403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2404 echo "configure:2405: checking for $ac_word" >&5
2405 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 if test -n "$CC"; then
2409 ac_cv_prog_CC="$CC" # Let the user override the test.
2411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2413 for ac_dir in $ac_dummy; do
2414 test -z "$ac_dir" && ac_dir=.
2415 if test -f $ac_dir/$ac_word; then
2424 if test -n "$CC"; then
2425 echo "$ac_t""$CC" 1>&6
2427 echo "$ac_t""no" 1>&6
2430 if test -z "$CC"; then
2431 # Extract the first word of "cc", so it can be a program name with args.
2432 set dummy cc; ac_word=$2
2433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2434 echo "configure:2435: checking for $ac_word" >&5
2435 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 if test -n "$CC"; then
2439 ac_cv_prog_CC="$CC" # Let the user override the test.
2441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2444 for ac_dir in $ac_dummy; do
2445 test -z "$ac_dir" && ac_dir=.
2446 if test -f $ac_dir/$ac_word; then
2447 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2448 ac_prog_rejected=yes
2456 if test $ac_prog_rejected = yes; then
2457 # We found a bogon in the path, so make sure we never use it.
2458 set dummy $ac_cv_prog_CC
2460 if test $# -gt 0; then
2461 # We chose a different compiler from the bogus one.
2462 # However, it has the same basename, so the bogon will be chosen
2463 # first if we set CC to just the basename; use the full file name.
2465 set dummy "$ac_dir/$ac_word" "$@"
2473 if test -n "$CC"; then
2474 echo "$ac_t""$CC" 1>&6
2476 echo "$ac_t""no" 1>&6
2479 if test -z "$CC"; then
2480 case "`uname -s`" in
2482 # Extract the first word of "cl", so it can be a program name with args.
2483 set dummy cl; 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
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2494 for ac_dir in $ac_dummy; do
2495 test -z "$ac_dir" && ac_dir=.
2496 if test -f $ac_dir/$ac_word; then
2505 if test -n "$CC"; then
2506 echo "$ac_t""$CC" 1>&6
2508 echo "$ac_t""no" 1>&6
2513 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2516 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2517 echo "configure:2518: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2524 cross_compiling=$ac_cv_prog_cc_cross
2526 cat > conftest.$ac_ext << EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2533 if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2534 ac_cv_prog_cc_works=yes
2535 # If we can't run a trivial program, we are probably using a cross compiler.
2536 if (./conftest; exit) 2>/dev/null; then
2537 ac_cv_prog_cc_cross=no
2539 ac_cv_prog_cc_cross=yes
2542 echo "configure: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2544 ac_cv_prog_cc_works=no
2548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2549 ac_cpp='$CPP $CPPFLAGS'
2550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2552 cross_compiling=$ac_cv_prog_cc_cross
2554 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2555 if test $ac_cv_prog_cc_works = no; then
2556 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2558 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2559 echo "configure:2560: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2560 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2561 cross_compiling=$ac_cv_prog_cc_cross
2563 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2564 echo "configure:2565: checking whether we are using GNU C" >&5
2565 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 cat > conftest.c <<EOF
2573 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2580 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2582 if test $ac_cv_prog_gcc = yes; then
2588 ac_test_CFLAGS="${CFLAGS+set}"
2589 ac_save_CFLAGS="$CFLAGS"
2591 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2592 echo "configure:2593: checking whether ${CC-cc} accepts -g" >&5
2593 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2596 echo 'void f(){}' > conftest.c
2597 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2606 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2607 if test "$ac_test_CFLAGS" = set; then
2608 CFLAGS="$ac_save_CFLAGS"
2609 elif test $ac_cv_prog_cc_g = yes; then
2610 if test "$GCC" = yes; then
2616 if test "$GCC" = yes; then
2624 ALL_LINGUAS="fr sv tr es da"
2625 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2626 echo "configure:2627: checking how to run the C preprocessor" >&5
2627 # On Suns, sometimes $CPP names a directory.
2628 if test -n "$CPP" && test -d "$CPP"; then
2631 if test -z "$CPP"; then
2632 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 # This must be in double quotes, not single quotes, because CPP may get
2636 # substituted into the Makefile and "${CC-cc}" will confuse make.
2638 # On the NeXT, cc -E runs the code through the compiler's parser,
2639 # not just through cpp.
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2647 { (eval echo configure:2648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2649 if test -z "$ac_err"; then
2653 echo "configure: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2656 CPP="${CC-cc} -E -traditional-cpp"
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2664 { (eval echo configure:2665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2666 if test -z "$ac_err"; then
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2673 CPP="${CC-cc} -nologo -E"
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2681 { (eval echo configure:2682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2683 if test -z "$ac_err"; then
2687 echo "configure: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2697 ac_cv_prog_CPP="$CPP"
2699 CPP="$ac_cv_prog_CPP"
2701 ac_cv_prog_CPP="$CPP"
2703 echo "$ac_t""$CPP" 1>&6
2705 # Extract the first word of "ranlib", so it can be a program name with args.
2706 set dummy ranlib; ac_word=$2
2707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2708 echo "configure:2709: checking for $ac_word" >&5
2709 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2712 if test -n "$RANLIB"; then
2713 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2717 for ac_dir in $ac_dummy; do
2718 test -z "$ac_dir" && ac_dir=.
2719 if test -f $ac_dir/$ac_word; then
2720 ac_cv_prog_RANLIB="ranlib"
2725 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2728 RANLIB="$ac_cv_prog_RANLIB"
2729 if test -n "$RANLIB"; then
2730 echo "$ac_t""$RANLIB" 1>&6
2732 echo "$ac_t""no" 1>&6
2735 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2736 echo "configure:2737: checking for ANSI C header files" >&5
2737 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2749 { (eval echo configure:2750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2751 if test -z "$ac_err"; then
2753 ac_cv_header_stdc=yes
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2759 ac_cv_header_stdc=no
2763 if test $ac_cv_header_stdc = yes; then
2764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2765 cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2771 egrep "memchr" >/dev/null 2>&1; then
2775 ac_cv_header_stdc=no
2781 if test $ac_cv_header_stdc = yes; then
2782 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2783 cat > conftest.$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2789 egrep "free" >/dev/null 2>&1; then
2793 ac_cv_header_stdc=no
2799 if test $ac_cv_header_stdc = yes; then
2800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2801 if test "$cross_compiling" = yes; then
2804 cat > conftest.$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2808 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2809 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2810 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2811 int main () { int i; for (i = 0; i < 256; i++)
2812 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2816 if { (eval echo configure:2817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2820 echo "configure: failed program was:" >&5
2821 cat conftest.$ac_ext >&5
2823 ac_cv_header_stdc=no
2831 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2832 if test $ac_cv_header_stdc = yes; then
2833 cat >> confdefs.h <<\EOF
2834 #define STDC_HEADERS 1
2839 echo $ac_n "checking for working const""... $ac_c" 1>&6
2840 echo "configure:2841: checking for working const" >&5
2841 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2844 cat > conftest.$ac_ext <<EOF
2845 #line 2846 "configure"
2846 #include "confdefs.h"
2850 /* Ultrix mips cc rejects this. */
2851 typedef int charset[2]; const charset x;
2852 /* SunOS 4.1.1 cc rejects this. */
2853 char const *const *ccp;
2855 /* NEC SVR4.0.2 mips cc rejects this. */
2856 struct point {int x, y;};
2857 static struct point const zero = {0,0};
2858 /* AIX XL C 1.02.0.0 rejects this.
2859 It does not let you subtract one const X* pointer from another in an arm
2860 of an if-expression whose if-part is not a constant expression */
2861 const char *g = "string";
2862 ccp = &g + (g ? g-g : 0);
2863 /* HPUX 7.0 cc rejects these. */
2866 ccp = (char const *const *) p;
2867 { /* SCO 3.2v4 cc rejects this. */
2869 char const *s = 0 ? (char *) 0 : (char const *) 0;
2873 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2875 const int *foo = &x[0];
2878 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2879 typedef const int *iptr;
2883 { /* AIX XL C 1.02.0.0 rejects this saying
2884 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2885 struct s { int j; const int *ap[3]; };
2886 struct s *b; b->j = 5;
2888 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2894 if { (eval echo configure:2895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2898 echo "configure: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2906 echo "$ac_t""$ac_cv_c_const" 1>&6
2907 if test $ac_cv_c_const = no; then
2908 cat >> confdefs.h <<\EOF
2914 echo $ac_n "checking for inline""... $ac_c" 1>&6
2915 echo "configure:2916: checking for inline" >&5
2916 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2920 for ac_kw in inline __inline__ __inline; do
2921 cat > conftest.$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2929 if { (eval echo configure:2930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2931 ac_cv_c_inline=$ac_kw; break
2933 echo "configure: failed program was:" >&5
2934 cat conftest.$ac_ext >&5
2941 echo "$ac_t""$ac_cv_c_inline" 1>&6
2942 case "$ac_cv_c_inline" in
2944 no) cat >> confdefs.h <<\EOF
2948 *) cat >> confdefs.h <<EOF
2949 #define inline $ac_cv_c_inline
2954 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2955 echo "configure:2956: checking for off_t" >&5
2956 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2959 cat > conftest.$ac_ext <<EOF
2960 #line 2961 "configure"
2961 #include "confdefs.h"
2962 #include <sys/types.h>
2968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2969 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2971 ac_cv_type_off_t=yes
2979 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2980 if test $ac_cv_type_off_t = no; then
2981 cat >> confdefs.h <<\EOF
2987 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2988 echo "configure:2989: checking for size_t" >&5
2989 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995 #include <sys/types.h>
3001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3002 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3004 ac_cv_type_size_t=yes
3007 ac_cv_type_size_t=no
3012 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3013 if test $ac_cv_type_size_t = no; then
3014 cat >> confdefs.h <<\EOF
3015 #define size_t unsigned
3020 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3021 # for constant arguments. Useless!
3022 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3023 echo "configure:3024: checking for working alloca.h" >&5
3024 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3032 char *p = alloca(2 * sizeof(int));
3035 if { (eval echo configure:3036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3037 ac_cv_header_alloca_h=yes
3039 echo "configure: failed program was:" >&5
3040 cat conftest.$ac_ext >&5
3042 ac_cv_header_alloca_h=no
3047 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3048 if test $ac_cv_header_alloca_h = yes; then
3049 cat >> confdefs.h <<\EOF
3050 #define HAVE_ALLOCA_H 1
3055 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3056 echo "configure:3057: checking for alloca" >&5
3057 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3065 # define alloca __builtin_alloca
3068 # include <malloc.h>
3069 # define alloca _alloca
3072 # include <alloca.h>
3077 # ifndef alloca /* predefined by HP cc +Olibcalls */
3086 char *p = (char *) alloca(1);
3089 if { (eval echo configure:3090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3091 ac_cv_func_alloca_works=yes
3093 echo "configure: failed program was:" >&5
3094 cat conftest.$ac_ext >&5
3096 ac_cv_func_alloca_works=no
3101 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3102 if test $ac_cv_func_alloca_works = yes; then
3103 cat >> confdefs.h <<\EOF
3104 #define HAVE_ALLOCA 1
3109 if test $ac_cv_func_alloca_works = no; then
3110 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3111 # that cause trouble. Some versions do not even contain alloca or
3112 # contain a buggy version. If you still want to use their alloca,
3113 # use ar to extract alloca.o from them instead of compiling alloca.c.
3114 ALLOCA=alloca.${ac_objext}
3115 cat >> confdefs.h <<\EOF
3120 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3121 echo "configure:3122: checking whether alloca needs Cray hooks" >&5
3122 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 #if defined(CRAY) && ! defined(CRAY2)
3135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3136 egrep "webecray" >/dev/null 2>&1; then
3147 echo "$ac_t""$ac_cv_os_cray" 1>&6
3148 if test $ac_cv_os_cray = yes; then
3149 for ac_func in _getb67 GETB67 getb67; do
3150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3151 echo "configure:3152: checking for $ac_func" >&5
3152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6
3155 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3158 /* System header to define __stub macros and hopefully few prototypes,
3159 which can conflict with char $ac_func(); below. */
3161 /* Override any gcc2 internal prototype to avoid an error. */
3162 /* We use char because int might match the return type of a gcc2
3163 builtin and then its argument prototype would still apply. */
3168 /* The GNU C library defines this for functions which it implements
3169 to always fail with ENOSYS. Some functions are actually named
3170 something starting with __ and the normal name is an alias. */
3171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3179 if { (eval echo configure:3180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3181 eval "ac_cv_func_$ac_func=yes"
3183 echo "configure: failed program was:" >&5
3184 cat conftest.$ac_ext >&5
3186 eval "ac_cv_func_$ac_func=no"
3191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3192 echo "$ac_t""yes" 1>&6
3193 cat >> confdefs.h <<EOF
3194 #define CRAY_STACKSEG_END $ac_func
3199 echo "$ac_t""no" 1>&6
3205 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3206 echo "configure:3207: checking stack direction for C alloca" >&5
3207 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3210 if test "$cross_compiling" = yes; then
3211 ac_cv_c_stack_direction=0
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 find_stack_direction ()
3218 static char *addr = 0;
3223 return find_stack_direction ();
3226 return (&dummy > addr) ? 1 : -1;
3230 exit (find_stack_direction() < 0);
3233 if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3235 ac_cv_c_stack_direction=1
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3240 ac_cv_c_stack_direction=-1
3247 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3248 cat >> confdefs.h <<EOF
3249 #define STACK_DIRECTION $ac_cv_c_stack_direction
3254 for ac_hdr in unistd.h
3256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3258 echo "configure:3259: checking for $ac_hdr" >&5
3259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3268 { (eval echo configure:3269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3270 if test -z "$ac_err"; then
3272 eval "ac_cv_header_$ac_safe=yes"
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3278 eval "ac_cv_header_$ac_safe=no"
3282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3283 echo "$ac_t""yes" 1>&6
3284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3285 cat >> confdefs.h <<EOF
3286 #define $ac_tr_hdr 1
3290 echo "$ac_t""no" 1>&6
3294 for ac_func in getpagesize
3296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3297 echo "configure:3298: checking for $ac_func" >&5
3298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 cat > conftest.$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3304 /* System header to define __stub macros and hopefully few prototypes,
3305 which can conflict with char $ac_func(); below. */
3307 /* Override any gcc2 internal prototype to avoid an error. */
3308 /* We use char because int might match the return type of a gcc2
3309 builtin and then its argument prototype would still apply. */
3314 /* The GNU C library defines this for functions which it implements
3315 to always fail with ENOSYS. Some functions are actually named
3316 something starting with __ and the normal name is an alias. */
3317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3325 if { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3327 eval "ac_cv_func_$ac_func=yes"
3329 echo "configure: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3332 eval "ac_cv_func_$ac_func=no"
3337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3338 echo "$ac_t""yes" 1>&6
3339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3340 cat >> confdefs.h <<EOF
3341 #define $ac_tr_func 1
3345 echo "$ac_t""no" 1>&6
3349 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3350 echo "configure:3351: checking for working mmap" >&5
3351 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 if test "$cross_compiling" = yes; then
3355 ac_cv_func_mmap_fixed_mapped=no
3357 cat > conftest.$ac_ext <<EOF
3358 #line 3359 "configure"
3359 #include "confdefs.h"
3361 /* Thanks to Mike Haertel and Jim Avera for this test.
3362 Here is a matrix of mmap possibilities:
3363 mmap private not fixed
3364 mmap private fixed at somewhere currently unmapped
3365 mmap private fixed at somewhere already mapped
3366 mmap shared not fixed
3367 mmap shared fixed at somewhere currently unmapped
3368 mmap shared fixed at somewhere already mapped
3369 For private mappings, we should verify that changes cannot be read()
3370 back from the file, nor mmap's back from the file at a different
3371 address. (There have been systems where private was not correctly
3372 implemented like the infamous i386 svr4.0, and systems where the
3373 VM page cache was not coherent with the filesystem buffer cache
3374 like early versions of FreeBSD and possibly contemporary NetBSD.)
3375 For shared mappings, we should conversely verify that changes get
3376 propogated back to all the places they're supposed to be.
3378 Grep wants private fixed already mapped.
3379 The main things grep needs to know about mmap are:
3380 * does it exist and is it safe to write into the mmap'd area
3381 * how to use it (BSD variants) */
3382 #include <sys/types.h>
3384 #include <sys/mman.h>
3386 /* This mess was copied from the GNU getpagesize.h. */
3387 #ifndef HAVE_GETPAGESIZE
3388 # ifdef HAVE_UNISTD_H
3389 # include <unistd.h>
3392 /* Assume that all systems that can run configure have sys/param.h. */
3393 # ifndef HAVE_SYS_PARAM_H
3394 # define HAVE_SYS_PARAM_H 1
3397 # ifdef _SC_PAGESIZE
3398 # define getpagesize() sysconf(_SC_PAGESIZE)
3399 # else /* no _SC_PAGESIZE */
3400 # ifdef HAVE_SYS_PARAM_H
3401 # include <sys/param.h>
3402 # ifdef EXEC_PAGESIZE
3403 # define getpagesize() EXEC_PAGESIZE
3404 # else /* no EXEC_PAGESIZE */
3406 # define getpagesize() NBPG * CLSIZE
3409 # endif /* no CLSIZE */
3410 # else /* no NBPG */
3412 # define getpagesize() NBPC
3413 # else /* no NBPC */
3415 # define getpagesize() PAGESIZE
3416 # endif /* PAGESIZE */
3417 # endif /* no NBPC */
3418 # endif /* no NBPG */
3419 # endif /* no EXEC_PAGESIZE */
3420 # else /* no HAVE_SYS_PARAM_H */
3421 # define getpagesize() 8192 /* punt totally */
3422 # endif /* no HAVE_SYS_PARAM_H */
3423 # endif /* no _SC_PAGESIZE */
3425 #endif /* no HAVE_GETPAGESIZE */
3428 extern "C" { void *malloc(unsigned); }
3436 char *data, *data2, *data3;
3440 pagesize = getpagesize();
3443 * First, make a file with some known garbage in it.
3445 data = malloc(pagesize);
3448 for (i = 0; i < pagesize; ++i)
3449 *(data + i) = rand();
3451 fd = creat("conftestmmap", 0600);
3454 if (write(fd, data, pagesize) != pagesize)
3459 * Next, try to mmap the file at a fixed address which
3460 * already has something else allocated at it. If we can,
3461 * also make sure that we see the same garbage.
3463 fd = open("conftestmmap", O_RDWR);
3466 data2 = malloc(2 * pagesize);
3469 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3470 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3471 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3473 for (i = 0; i < pagesize; ++i)
3474 if (*(data + i) != *(data2 + i))
3478 * Finally, make sure that changes to the mapped area
3479 * do not percolate back to the file as seen by read().
3480 * (This is a bug on some variants of i386 svr4.0.)
3482 for (i = 0; i < pagesize; ++i)
3483 *(data2 + i) = *(data2 + i) + 1;
3484 data3 = malloc(pagesize);
3487 if (read(fd, data3, pagesize) != pagesize)
3489 for (i = 0; i < pagesize; ++i)
3490 if (*(data + i) != *(data3 + i))
3493 unlink("conftestmmap");
3498 if { (eval echo configure:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3500 ac_cv_func_mmap_fixed_mapped=yes
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3505 ac_cv_func_mmap_fixed_mapped=no
3512 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3513 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3514 cat >> confdefs.h <<\EOF
3521 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3522 unistd.h values.h sys/param.h
3524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3526 echo "configure:3527: checking for $ac_hdr" >&5
3527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3536 { (eval echo configure:3537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3538 if test -z "$ac_err"; then
3540 eval "ac_cv_header_$ac_safe=yes"
3543 echo "configure: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3546 eval "ac_cv_header_$ac_safe=no"
3550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3551 echo "$ac_t""yes" 1>&6
3552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3553 cat >> confdefs.h <<EOF
3554 #define $ac_tr_hdr 1
3558 echo "$ac_t""no" 1>&6
3562 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3563 __argz_count __argz_stringify __argz_next
3565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3566 echo "configure:3567: checking for $ac_func" >&5
3567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 /* System header to define __stub macros and hopefully few prototypes,
3574 which can conflict with char $ac_func(); below. */
3576 /* Override any gcc2 internal prototype to avoid an error. */
3577 /* We use char because int might match the return type of a gcc2
3578 builtin and then its argument prototype would still apply. */
3583 /* The GNU C library defines this for functions which it implements
3584 to always fail with ENOSYS. Some functions are actually named
3585 something starting with __ and the normal name is an alias. */
3586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3594 if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3596 eval "ac_cv_func_$ac_func=yes"
3598 echo "configure: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3601 eval "ac_cv_func_$ac_func=no"
3606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3609 cat >> confdefs.h <<EOF
3610 #define $ac_tr_func 1
3614 echo "$ac_t""no" 1>&6
3619 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3620 for ac_func in stpcpy
3622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3623 echo "configure:3624: checking for $ac_func" >&5
3624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3625 echo $ac_n "(cached) $ac_c" 1>&6
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 /* System header to define __stub macros and hopefully few prototypes,
3631 which can conflict with char $ac_func(); below. */
3633 /* Override any gcc2 internal prototype to avoid an error. */
3634 /* We use char because int might match the return type of a gcc2
3635 builtin and then its argument prototype would still apply. */
3640 /* The GNU C library defines this for functions which it implements
3641 to always fail with ENOSYS. Some functions are actually named
3642 something starting with __ and the normal name is an alias. */
3643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3651 if { (eval echo configure:3652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3653 eval "ac_cv_func_$ac_func=yes"
3655 echo "configure: failed program was:" >&5
3656 cat conftest.$ac_ext >&5
3658 eval "ac_cv_func_$ac_func=no"
3663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3664 echo "$ac_t""yes" 1>&6
3665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3666 cat >> confdefs.h <<EOF
3667 #define $ac_tr_func 1
3671 echo "$ac_t""no" 1>&6
3676 if test "${ac_cv_func_stpcpy}" = "yes"; then
3677 cat >> confdefs.h <<\EOF
3678 #define HAVE_STPCPY 1
3683 if test $ac_cv_header_locale_h = yes; then
3684 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3685 echo "configure:3686: checking for LC_MESSAGES" >&5
3686 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3697 if { (eval echo configure:3698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3699 am_cv_val_LC_MESSAGES=yes
3701 echo "configure: failed program was:" >&5
3702 cat conftest.$ac_ext >&5
3704 am_cv_val_LC_MESSAGES=no
3709 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3710 if test $am_cv_val_LC_MESSAGES = yes; then
3711 cat >> confdefs.h <<\EOF
3712 #define HAVE_LC_MESSAGES 1
3717 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3718 echo "configure:3719: checking whether NLS is requested" >&5
3719 # Check whether --enable-nls or --disable-nls was given.
3720 if test "${enable_nls+set}" = set; then
3721 enableval="$enable_nls"
3727 echo "$ac_t""$USE_NLS" 1>&6
3730 USE_INCLUDED_LIBINTL=no
3732 if test "$USE_NLS" = "yes"; then
3733 cat >> confdefs.h <<\EOF
3734 #define ENABLE_NLS 1
3737 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3738 echo "configure:3739: checking whether included gettext is requested" >&5
3739 # Check whether --with-included-gettext or --without-included-gettext was given.
3740 if test "${with_included_gettext+set}" = set; then
3741 withval="$with_included_gettext"
3742 nls_cv_force_use_gnu_gettext=$withval
3744 nls_cv_force_use_gnu_gettext=no
3747 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3749 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3750 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3752 nls_cv_header_libgt=
3755 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3756 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3757 echo "configure:3758: checking for libintl.h" >&5
3758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 cat > conftest.$ac_ext <<EOF
3762 #line 3763 "configure"
3763 #include "confdefs.h"
3764 #include <libintl.h>
3766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3767 { (eval echo configure:3768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3769 if test -z "$ac_err"; then
3771 eval "ac_cv_header_$ac_safe=yes"
3774 echo "configure: failed program was:" >&5
3775 cat conftest.$ac_ext >&5
3777 eval "ac_cv_header_$ac_safe=no"
3781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3783 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3784 echo "configure:3785: checking for gettext in libc" >&5
3785 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3791 #include <libintl.h>
3793 return (int) gettext ("")
3796 if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3798 gt_cv_func_gettext_libc=yes
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3803 gt_cv_func_gettext_libc=no
3808 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3810 if test "$gt_cv_func_gettext_libc" != "yes"; then
3811 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3812 echo "configure:3813: checking for bindtextdomain in -lintl" >&5
3813 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 ac_save_LIBS="$LIBS"
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 /* Override any gcc2 internal prototype to avoid an error. */
3823 /* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3825 char bindtextdomain();
3831 if { (eval echo configure:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3833 eval "ac_cv_lib_$ac_lib_var=yes"
3835 echo "configure: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3838 eval "ac_cv_lib_$ac_lib_var=no"
3841 LIBS="$ac_save_LIBS"
3844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3845 echo "$ac_t""yes" 1>&6
3846 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3847 echo "configure:3848: checking for gettext in libintl" >&5
3848 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3851 cat > conftest.$ac_ext <<EOF
3852 #line 3853 "configure"
3853 #include "confdefs.h"
3856 return (int) gettext ("")
3859 if { (eval echo configure:3860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3861 gt_cv_func_gettext_libintl=yes
3863 echo "configure: failed program was:" >&5
3864 cat conftest.$ac_ext >&5
3866 gt_cv_func_gettext_libintl=no
3871 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3873 echo "$ac_t""no" 1>&6
3878 if test "$gt_cv_func_gettext_libc" = "yes" \
3879 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3880 cat >> confdefs.h <<\EOF
3881 #define HAVE_GETTEXT 1
3884 # Extract the first word of "msgfmt", so it can be a program name with args.
3885 set dummy msgfmt; ac_word=$2
3886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3887 echo "configure:3888: checking for $ac_word" >&5
3888 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3893 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3897 for ac_dir in $PATH; do
3898 test -z "$ac_dir" && ac_dir=.
3899 if test -f $ac_dir/$ac_word; then
3900 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3901 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3907 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3911 MSGFMT="$ac_cv_path_MSGFMT"
3912 if test -n "$MSGFMT"; then
3913 echo "$ac_t""$MSGFMT" 1>&6
3915 echo "$ac_t""no" 1>&6
3917 if test "$MSGFMT" != "no"; then
3918 for ac_func in dcgettext
3920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3921 echo "configure:3922: checking for $ac_func" >&5
3922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 /* System header to define __stub macros and hopefully few prototypes,
3929 which can conflict with char $ac_func(); below. */
3931 /* Override any gcc2 internal prototype to avoid an error. */
3932 /* We use char because int might match the return type of a gcc2
3933 builtin and then its argument prototype would still apply. */
3938 /* The GNU C library defines this for functions which it implements
3939 to always fail with ENOSYS. Some functions are actually named
3940 something starting with __ and the normal name is an alias. */
3941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3949 if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3951 eval "ac_cv_func_$ac_func=yes"
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3956 eval "ac_cv_func_$ac_func=no"
3961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3962 echo "$ac_t""yes" 1>&6
3963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3964 cat >> confdefs.h <<EOF
3965 #define $ac_tr_func 1
3969 echo "$ac_t""no" 1>&6
3973 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3974 set dummy gmsgfmt; ac_word=$2
3975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3976 echo "configure:3977: checking for $ac_word" >&5
3977 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3982 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3985 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3990 for ac_dir in $ac_dummy; do
3991 test -z "$ac_dir" && ac_dir=.
3992 if test -f $ac_dir/$ac_word; then
3993 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3998 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4002 GMSGFMT="$ac_cv_path_GMSGFMT"
4003 if test -n "$GMSGFMT"; then
4004 echo "$ac_t""$GMSGFMT" 1>&6
4006 echo "$ac_t""no" 1>&6
4009 # Extract the first word of "xgettext", so it can be a program name with args.
4010 set dummy xgettext; ac_word=$2
4011 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4012 echo "configure:4013: checking for $ac_word" >&5
4013 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4014 echo $ac_n "(cached) $ac_c" 1>&6
4018 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4022 for ac_dir in $PATH; do
4023 test -z "$ac_dir" && ac_dir=.
4024 if test -f $ac_dir/$ac_word; then
4025 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4026 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4032 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4036 XGETTEXT="$ac_cv_path_XGETTEXT"
4037 if test -n "$XGETTEXT"; then
4038 echo "$ac_t""$XGETTEXT" 1>&6
4040 echo "$ac_t""no" 1>&6
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4048 extern int _nl_msg_cat_cntr;
4049 return _nl_msg_cat_cntr
4052 if { (eval echo configure:4053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4057 echo "configure: failed program was:" >&5
4058 cat conftest.$ac_ext >&5
4069 echo "$ac_t""no" 1>&6
4074 if test "$CATOBJEXT" = "NONE"; then
4075 nls_cv_use_gnu_gettext=yes
4079 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4080 INTLOBJS="\$(GETTOBJS)"
4081 # Extract the first word of "msgfmt", so it can be a program name with args.
4082 set dummy msgfmt; ac_word=$2
4083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4084 echo "configure:4085: checking for $ac_word" >&5
4085 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4090 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4094 for ac_dir in $PATH; do
4095 test -z "$ac_dir" && ac_dir=.
4096 if test -f $ac_dir/$ac_word; then
4097 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4098 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4104 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4108 MSGFMT="$ac_cv_path_MSGFMT"
4109 if test -n "$MSGFMT"; then
4110 echo "$ac_t""$MSGFMT" 1>&6
4112 echo "$ac_t""no" 1>&6
4115 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4116 set dummy gmsgfmt; ac_word=$2
4117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4118 echo "configure:4119: checking for $ac_word" >&5
4119 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4124 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4127 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4132 for ac_dir in $ac_dummy; do
4133 test -z "$ac_dir" && ac_dir=.
4134 if test -f $ac_dir/$ac_word; then
4135 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4140 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4144 GMSGFMT="$ac_cv_path_GMSGFMT"
4145 if test -n "$GMSGFMT"; then
4146 echo "$ac_t""$GMSGFMT" 1>&6
4148 echo "$ac_t""no" 1>&6
4151 # Extract the first word of "xgettext", so it can be a program name with args.
4152 set dummy xgettext; ac_word=$2
4153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4154 echo "configure:4155: checking for $ac_word" >&5
4155 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4160 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4164 for ac_dir in $PATH; do
4165 test -z "$ac_dir" && ac_dir=.
4166 if test -f $ac_dir/$ac_word; then
4167 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4168 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4174 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4178 XGETTEXT="$ac_cv_path_XGETTEXT"
4179 if test -n "$XGETTEXT"; then
4180 echo "$ac_t""$XGETTEXT" 1>&6
4182 echo "$ac_t""no" 1>&6
4186 USE_INCLUDED_LIBINTL=yes
4190 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4192 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4193 nls_cv_header_intl=libintl.h
4194 nls_cv_header_libgt=libgettext.h
4197 if test "$XGETTEXT" != ":"; then
4198 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4201 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4206 # We need to process the po/ directory.
4210 nls_cv_header_intl=libintl.h
4211 nls_cv_header_libgt=libgettext.h
4214 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4215 # because some of the sources are only built for this goal.
4216 if test "$PACKAGE" = gettext; then
4218 USE_INCLUDED_LIBINTL=yes
4221 for lang in $ALL_LINGUAS; do
4222 GMOFILES="$GMOFILES $lang.gmo"
4223 POFILES="$POFILES $lang.po"
4239 if test "x$CATOBJEXT" != "x"; then
4240 if test "x$ALL_LINGUAS" = "x"; then
4243 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4244 echo "configure:4245: checking for catalogs to be installed" >&5
4246 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4247 case "$ALL_LINGUAS" in
4248 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4251 LINGUAS=$NEW_LINGUAS
4252 echo "$ac_t""$LINGUAS" 1>&6
4255 if test -n "$LINGUAS"; then
4256 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4260 if test $ac_cv_header_locale_h = yes; then
4261 INCLUDE_LOCALE_H="#include <locale.h>"
4264 /* The system does not provide the header <locale.h>. Take care yourself. */"
4268 if test -f $srcdir/po2tbl.sed.in; then
4269 if test "$CATOBJEXT" = ".cat"; then
4270 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4271 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4272 echo "configure:4273: checking for linux/version.h" >&5
4273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4276 cat > conftest.$ac_ext <<EOF
4277 #line 4278 "configure"
4278 #include "confdefs.h"
4279 #include <linux/version.h>
4281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4282 { (eval echo configure:4283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4284 if test -z "$ac_err"; then
4286 eval "ac_cv_header_$ac_safe=yes"
4289 echo "configure: failed program was:" >&5
4290 cat conftest.$ac_ext >&5
4292 eval "ac_cv_header_$ac_safe=no"
4296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4300 echo "$ac_t""no" 1>&6
4305 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4307 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4308 $srcdir/po2tbl.sed.in > po2tbl.sed
4311 if test "$PACKAGE" = "gettext"; then
4321 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4327 if test -f $srcdir/po/POTFILES.in; then
4328 test -d po || mkdir po
4329 if test "x$srcdir" != "x."; then
4330 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4331 posrcprefix="$srcdir/"
4333 posrcprefix="../$srcdir/"
4339 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4340 < $srcdir/po/POTFILES.in > po/POTFILES
4344 . ${srcdir}/../bfd/configure.host
4346 # Put a plausible default for CC_FOR_BUILD in Makefile.
4347 if test -z "$CC_FOR_BUILD"; then
4348 if test "x$cross_compiling" = "xno"; then
4349 CC_FOR_BUILD='$(CC)'
4355 # Also set EXEEXT_FOR_BUILD.
4356 if test "x$cross_compiling" = "xno"; then
4357 EXEEXT_FOR_BUILD='$(EXEEXT)'
4359 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4360 echo "configure:4361: checking for build system executable suffix" >&5
4361 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4362 echo $ac_n "(cached) $ac_c" 1>&6
4365 echo 'int main () { return 0; }' > conftest.c
4366 bfd_cv_build_exeext=
4367 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4368 for file in conftest.*; do
4370 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4371 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4375 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4378 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4380 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4385 # Find a good install program. We prefer a C program (faster),
4386 # so one script is as good as another. But avoid the broken or
4387 # incompatible versions:
4388 # SysV /etc/install, /usr/sbin/install
4389 # SunOS /usr/etc/install
4390 # IRIX /sbin/install
4392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4395 # ./install, which can be erroneously created by make from ./install.sh.
4396 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4397 echo "configure:4398: checking for a BSD compatible install" >&5
4398 if test -z "$INSTALL"; then
4399 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4402 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4403 for ac_dir in $PATH; do
4404 # Account for people who put trailing slashes in PATH elements.
4406 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4408 # OSF1 and SCO ODT 3.0 have their own names for install.
4409 # Don't use installbsd from OSF since it installs stuff as root
4411 for ac_prog in ginstall scoinst install; do
4412 if test -f $ac_dir/$ac_prog; then
4413 if test $ac_prog = install &&
4414 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4415 # AIX install. It has an incompatible calling convention.
4418 ac_cv_path_install="$ac_dir/$ac_prog -c"
4429 if test "${ac_cv_path_install+set}" = set; then
4430 INSTALL="$ac_cv_path_install"
4432 # As a last resort, use the slow shell script. We don't cache a
4433 # path for INSTALL within a source directory, because that will
4434 # break other packages using the cache if that directory is
4435 # removed, or if the path is relative.
4436 INSTALL="$ac_install_sh"
4439 echo "$ac_t""$INSTALL" 1>&6
4441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4442 # It thinks the first close brace ends the variable substitution.
4443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4450 for ac_hdr in string.h strings.h stdlib.h
4452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_hdr" >&5
4455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4464 { (eval echo configure:4465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4466 if test -z "$ac_err"; then
4468 eval "ac_cv_header_$ac_safe=yes"
4471 echo "configure: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4474 eval "ac_cv_header_$ac_safe=no"
4478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4479 echo "$ac_t""yes" 1>&6
4480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4481 cat >> confdefs.h <<EOF
4482 #define $ac_tr_hdr 1
4486 echo "$ac_t""no" 1>&6
4492 cgendir='$(srcdir)/../cgen'
4494 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
4495 if test "${enable_cgen_maint+set}" = set; then
4496 enableval="$enable_cgen_maint"
4497 case "${enableval}" in
4498 yes) cgen_maint=yes ;;
4499 no) cgen_maint=no ;;
4501 # argument is cgen install directory (not implemented yet).
4502 # Having a `share' directory might be more appropriate for the .scm,
4505 cgendir=${cgen_maint}/lib/cgen
4511 if test x${cgen_maint} = xyes; then
4513 CGEN_MAINT_FALSE='#'
4522 # Horrible hacks to build DLLs on Windows.
4527 if test "$enable_shared" = "yes"; then
4528 WIN32LDFLAGS="-no-undefined"
4529 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
4536 # target-specific stuff:
4538 # Canonicalize the secondary target names.
4539 if test -n "$enable_targets" ; then
4540 for targ in `echo $enable_targets | sed 's/,/ /g'`
4542 result=`$ac_config_sub $targ 2>/dev/null`
4543 if test -n "$result" ; then
4544 canon_targets="$canon_targets $result"
4546 # Allow targets that config.sub doesn't recognize, like "all".
4547 canon_targets="$canon_targets $targ"
4554 for targ in $target $canon_targets
4556 if test "x$targ" = "xall" ; then
4559 . $srcdir/../bfd/config.bfd
4560 selarchs="$selarchs $targ_archs"
4564 # Utility var, documents generic cgen support files.
4566 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
4568 # We don't do any links based on the target system, just makefile config.
4570 if test x${all_targets} = xfalse ; then
4572 # Target architecture .o files.
4575 for arch in $selarchs
4577 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
4578 archdefs="$archdefs -DARCH_$ad"
4580 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
4581 bfd_alliant_arch) ;;
4582 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
4583 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
4584 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
4585 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4587 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;;
4588 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
4589 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
4590 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
4591 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
4592 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
4593 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
4594 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
4595 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
4596 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
4597 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
4598 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
4599 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 ;;
4600 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
4601 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
4602 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
4603 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
4604 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
4605 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
4606 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
4607 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
4608 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
4609 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
4610 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
4611 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
4612 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
4613 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
4614 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4615 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4616 bfd_pyramid_arch) ;;
4618 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4619 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
4621 # We can't decide what we want just from the CPU family.
4622 # We want SH5 support unless a specific version of sh is
4623 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
4624 case " $target $canon_targets " in
4625 *" all "* | *" sh64-"* | *" sh-"* | *" shl-"*)
4626 ta="$ta sh64-dis.lo sh64-opc.lo"
4627 archdefs="$archdefs -DINCLUDE_SHMEDIA";;
4629 ta="$ta sh-dis.lo" ;;
4630 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
4632 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
4633 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
4634 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
4635 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4636 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4637 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4638 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
4639 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
4641 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
4642 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
4645 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
4649 if test $using_cgen = yes ; then
4650 ta="$ta $cgen_files"
4653 # Weed out duplicate .o files.
4663 # And duplicate -D flags.
4665 for i in $archdefs ; do
4675 else # all_targets is true
4677 BFD_MACHINES='$(ALL_MACHINES)'
4684 cat > confcache <<\EOF
4685 # This file is a shell script that caches the results of configure
4686 # tests run on this system so they can be shared between configure
4687 # scripts and configure runs. It is not useful on other systems.
4688 # If it contains results you don't want to keep, you may remove or edit it.
4690 # By default, configure uses ./config.cache as the cache file,
4691 # creating it if it does not exist already. You can give configure
4692 # the --cache-file=FILE option to use a different cache file; that is
4693 # what configure does when it calls configure scripts in
4694 # subdirectories, so they share the cache.
4695 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4696 # config.status only pays attention to the cache file if you give it the
4697 # --recheck option to rerun configure.
4700 # The following way of writing the cache mishandles newlines in values,
4701 # but we know of no workaround that is simple, portable, and efficient.
4702 # So, don't put newlines in cache variables' values.
4703 # Ultrix sh set writes to stderr and can't be redirected directly,
4704 # and sets the high bit in the cache file unless we assign to the vars.
4706 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4708 # `set' does not quote correctly, so add quotes (double-quote substitution
4709 # turns \\\\ into \\, and sed turns \\ into \).
4711 -e "s/'/'\\\\''/g" \
4712 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4715 # `set' quotes correctly as required by POSIX, so do not add quotes.
4716 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4719 if cmp -s $cache_file confcache; then
4722 if test -w $cache_file; then
4723 echo "updating cache $cache_file"
4724 cat confcache > $cache_file
4726 echo "not updating unwritable cache $cache_file"
4731 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4733 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4734 # Let make expand exec_prefix.
4735 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4737 # Any assignment to VPATH causes Sun make to only execute
4738 # the first set of double-colon rules, so remove it if not needed.
4739 # If there is a colon in the path, we need to keep it.
4740 if test "x$srcdir" = x.; then
4741 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4744 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4746 DEFS=-DHAVE_CONFIG_H
4748 # Without the "./", some shells look in PATH for config.status.
4749 : ${CONFIG_STATUS=./config.status}
4751 echo creating $CONFIG_STATUS
4752 rm -f $CONFIG_STATUS
4753 cat > $CONFIG_STATUS <<EOF
4755 # Generated automatically by configure.
4756 # Run this file to recreate the current configuration.
4757 # This directory was configured as follows,
4758 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4760 # $0 $ac_configure_args
4762 # Compiler output produced by configure, useful for debugging
4763 # configure, is in ./config.log if it exists.
4765 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4768 case "\$ac_option" in
4769 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4770 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4771 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4772 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4773 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4775 -help | --help | --hel | --he | --h)
4776 echo "\$ac_cs_usage"; exit 0 ;;
4777 *) echo "\$ac_cs_usage"; exit 1 ;;
4781 ac_given_srcdir=$srcdir
4782 ac_given_INSTALL="$INSTALL"
4784 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4786 cat >> $CONFIG_STATUS <<EOF
4788 # Protect against being on the right side of a sed subst in config.status.
4789 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4790 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4794 s%@CFLAGS@%$CFLAGS%g
4795 s%@CPPFLAGS@%$CPPFLAGS%g
4796 s%@CXXFLAGS@%$CXXFLAGS%g
4797 s%@FFLAGS@%$FFLAGS%g
4799 s%@LDFLAGS@%$LDFLAGS%g
4801 s%@exec_prefix@%$exec_prefix%g
4802 s%@prefix@%$prefix%g
4803 s%@program_transform_name@%$program_transform_name%g
4804 s%@bindir@%$bindir%g
4805 s%@sbindir@%$sbindir%g
4806 s%@libexecdir@%$libexecdir%g
4807 s%@datadir@%$datadir%g
4808 s%@sysconfdir@%$sysconfdir%g
4809 s%@sharedstatedir@%$sharedstatedir%g
4810 s%@localstatedir@%$localstatedir%g
4811 s%@libdir@%$libdir%g
4812 s%@includedir@%$includedir%g
4813 s%@oldincludedir@%$oldincludedir%g
4814 s%@infodir@%$infodir%g
4815 s%@mandir@%$mandir%g
4817 s%@host_alias@%$host_alias%g
4818 s%@host_cpu@%$host_cpu%g
4819 s%@host_vendor@%$host_vendor%g
4820 s%@host_os@%$host_os%g
4821 s%@target@%$target%g
4822 s%@target_alias@%$target_alias%g
4823 s%@target_cpu@%$target_cpu%g
4824 s%@target_vendor@%$target_vendor%g
4825 s%@target_os@%$target_os%g
4827 s%@build_alias@%$build_alias%g
4828 s%@build_cpu@%$build_cpu%g
4829 s%@build_vendor@%$build_vendor%g
4830 s%@build_os@%$build_os%g
4831 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4832 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4833 s%@INSTALL_DATA@%$INSTALL_DATA%g
4834 s%@PACKAGE@%$PACKAGE%g
4835 s%@VERSION@%$VERSION%g
4836 s%@ACLOCAL@%$ACLOCAL%g
4837 s%@AUTOCONF@%$AUTOCONF%g
4838 s%@AUTOMAKE@%$AUTOMAKE%g
4839 s%@AUTOHEADER@%$AUTOHEADER%g
4840 s%@MAKEINFO@%$MAKEINFO%g
4841 s%@SET_MAKE@%$SET_MAKE%g
4843 s%@RANLIB@%$RANLIB%g
4846 s%@OBJEXT@%$OBJEXT%g
4847 s%@EXEEXT@%$EXEEXT%g
4849 s%@LIBTOOL@%$LIBTOOL%g
4850 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4851 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4852 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4855 s%@ALLOCA@%$ALLOCA%g
4856 s%@USE_NLS@%$USE_NLS%g
4857 s%@MSGFMT@%$MSGFMT%g
4858 s%@GMSGFMT@%$GMSGFMT%g
4859 s%@XGETTEXT@%$XGETTEXT%g
4860 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4861 s%@CATALOGS@%$CATALOGS%g
4862 s%@CATOBJEXT@%$CATOBJEXT%g
4863 s%@DATADIRNAME@%$DATADIRNAME%g
4864 s%@GMOFILES@%$GMOFILES%g
4865 s%@INSTOBJEXT@%$INSTOBJEXT%g
4866 s%@INTLDEPS@%$INTLDEPS%g
4867 s%@INTLLIBS@%$INTLLIBS%g
4868 s%@INTLOBJS@%$INTLOBJS%g
4869 s%@POFILES@%$POFILES%g
4871 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4873 s%@GT_YES@%$GT_YES%g
4874 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4876 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4877 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
4878 s%@HDEFINES@%$HDEFINES%g
4879 s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
4880 s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
4881 s%@cgendir@%$cgendir%g
4882 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4883 s%@WIN32LIBADD@%$WIN32LIBADD%g
4884 s%@archdefs@%$archdefs%g
4885 s%@BFD_MACHINES@%$BFD_MACHINES%g
4890 cat >> $CONFIG_STATUS <<\EOF
4892 # Split the substitutions into bite-sized pieces for seds with
4893 # small command number limits, like on Digital OSF/1 and HP-UX.
4894 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4895 ac_file=1 # Number of current file.
4896 ac_beg=1 # First line for current file.
4897 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4900 while $ac_more_lines; do
4901 if test $ac_beg -gt 1; then
4902 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4904 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4906 if test ! -s conftest.s$ac_file; then
4908 rm -f conftest.s$ac_file
4910 if test -z "$ac_sed_cmds"; then
4911 ac_sed_cmds="sed -f conftest.s$ac_file"
4913 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4915 ac_file=`expr $ac_file + 1`
4917 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4920 if test -z "$ac_sed_cmds"; then
4925 cat >> $CONFIG_STATUS <<EOF
4927 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4929 cat >> $CONFIG_STATUS <<\EOF
4930 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4931 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4933 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4934 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4935 *) ac_file_in="${ac_file}.in" ;;
4938 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4940 # Remove last slash and all that follows it. Not all systems have dirname.
4941 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4942 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4943 # The file is in a subdirectory.
4944 test ! -d "$ac_dir" && mkdir "$ac_dir"
4945 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4946 # A "../" for each directory in $ac_dir_suffix.
4947 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4949 ac_dir_suffix= ac_dots=
4952 case "$ac_given_srcdir" in
4954 if test -z "$ac_dots"; then top_srcdir=.
4955 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4956 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4958 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4959 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4962 case "$ac_given_INSTALL" in
4963 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4964 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4967 echo creating "$ac_file"
4969 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4971 *Makefile*) ac_comsub="1i\\
4972 # $configure_input" ;;
4976 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4978 s%@configure_input@%$configure_input%g
4979 s%@srcdir@%$srcdir%g
4980 s%@top_srcdir@%$top_srcdir%g
4981 s%@INSTALL@%$INSTALL%g
4982 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4986 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4987 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4989 # ac_d sets the value in "#define NAME VALUE" lines.
4990 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4991 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4994 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4995 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4996 ac_uB='\([ ]\)%\1#\2define\3'
4999 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5000 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5001 ac_eB='$%\1#\2define\3'
5005 if test "${CONFIG_HEADERS+set}" != set; then
5007 cat >> $CONFIG_STATUS <<EOF
5008 CONFIG_HEADERS="config.h:config.in"
5010 cat >> $CONFIG_STATUS <<\EOF
5012 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5015 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5016 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5017 *) ac_file_in="${ac_file}.in" ;;
5020 echo creating $ac_file
5022 rm -f conftest.frag conftest.in conftest.out
5023 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5024 cat $ac_file_inputs > conftest.in
5028 # Transform confdefs.h into a sed script conftest.vals that substitutes
5029 # the proper values into config.h.in to produce config.h. And first:
5030 # Protect against being on the right side of a sed subst in config.status.
5031 # Protect against being in an unquoted here document in config.status.
5033 cat > conftest.hdr <<\EOF
5036 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5040 sed -n -f conftest.hdr confdefs.h > conftest.vals
5043 # This sed command replaces #undef with comments. This is necessary, for
5044 # example, in the case of _POSIX_SOURCE, which is predefined and required
5045 # on some systems where configure will not decide to define it.
5046 cat >> conftest.vals <<\EOF
5047 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5050 # Break up conftest.vals because some shells have a limit on
5051 # the size of here documents, and old seds have small limits too.
5056 ac_lines=`grep -c . conftest.vals`
5057 # grep -c gives empty output for an empty file on some AIX systems.
5058 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5059 # Write a limited-size here document to conftest.frag.
5060 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5061 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5063 sed -f conftest.frag conftest.in > conftest.out
5065 mv conftest.out conftest.in
5067 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5069 mv conftest.tail conftest.vals
5073 cat >> $CONFIG_STATUS <<\EOF
5074 rm -f conftest.frag conftest.h
5075 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5076 cat conftest.in >> conftest.h
5078 if cmp -s $ac_file conftest.h 2>/dev/null; then
5079 echo "$ac_file is unchanged"
5082 # Remove last slash and all that follows it. Not all systems have dirname.
5083 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5084 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5085 # The file is in a subdirectory.
5086 test ! -d "$ac_dir" && mkdir "$ac_dir"
5089 mv conftest.h $ac_file
5094 cat >> $CONFIG_STATUS <<EOF
5098 cat >> $CONFIG_STATUS <<\EOF
5099 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5100 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5103 chmod +x $CONFIG_STATUS
5104 rm -fr confdefs* $ac_clean_files
5105 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1