45 sim_inline="-DDEFAULT_INLINE=0"
82 # This file is derived from `gettext.m4'. The difference is that the
83 # included macros assume Cygnus-style source and build trees.
85 # Macro to add for using GNU gettext.
86 # Ulrich Drepper <drepper@cygnus.com>, 1995.
88 # This file file be copied and used freely without restrictions. It can
89 # be used in projects which are not available under the GNU Public License
90 # but which still want to provide support for the GNU gettext functionality.
91 # Please note that the actual code is *not* freely available.
99 # Search path for a program which passes the given test.
100 # Ulrich Drepper <drepper@cygnus.com>, 1996.
102 # This file file be copied and used freely without restrictions. It can
103 # be used in projects which are not available under the GNU Public License
104 # but which still want to provide support for the GNU gettext functionality.
105 # Please note that the actual code is *not* freely available.
111 # Check whether LC_MESSAGES is available in <locale.h>.
112 # Ulrich Drepper <drepper@cygnus.com>, 1995.
114 # This file file be copied and used freely without restrictions. It can
115 # be used in projects which are not available under the GNU Public License
116 # but which still want to provide support for the GNU gettext functionality.
117 # Please note that the actual code is *not* freely available.
126 # Guess values for system-dependent variables and create Makefiles.
127 # Generated automatically using autoconf version 2.13
128 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
130 # This configure script is free software; the Free Software Foundation
131 # gives unlimited permission to copy, distribute and modify it.
135 ac_default_prefix=/usr/local
136 # Any additions from configure.in:
138 --enable-build-warnings[=LIST] Enable build-time compiler warnings"
140 # Initialize some variables set by options.
141 # The variables have the same names as the options, with
142 # dashes changed to underlines.
144 cache_file=./config.cache
153 program_transform_name=s,x,x,
162 bindir='${exec_prefix}/bin'
163 sbindir='${exec_prefix}/sbin'
164 libexecdir='${exec_prefix}/libexec'
165 datadir='${prefix}/share'
166 sysconfdir='${prefix}/etc'
167 sharedstatedir='${prefix}/com'
168 localstatedir='${prefix}/var'
169 libdir='${exec_prefix}/lib'
170 includedir='${prefix}/include'
171 oldincludedir='/usr/include'
172 infodir='${prefix}/info'
173 mandir='${prefix}/man'
175 # Initialize some other variables.
178 SHELL=${CONFIG_SHELL-/bin/sh}
179 # Maximum number of lines to put in a shell here document.
186 # If the previous option needs an argument, assign it.
187 if test -n "$ac_prev"; then
188 eval "$ac_prev=\$ac_option"
194 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
198 # Accept the important Cygnus configure options, so we can diagnose typos.
202 -bindir | --bindir | --bindi | --bind | --bin | --bi)
204 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
205 bindir="$ac_optarg" ;;
207 -build | --build | --buil | --bui | --bu)
209 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
210 build="$ac_optarg" ;;
212 -cache-file | --cache-file | --cache-fil | --cache-fi \
213 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
214 ac_prev=cache_file ;;
215 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
216 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
217 cache_file="$ac_optarg" ;;
219 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
221 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
223 datadir="$ac_optarg" ;;
225 -disable-* | --disable-*)
226 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
227 # Reject names that are not valid shell variable names.
228 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
229 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
231 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
232 eval "enable_${ac_feature}=no" ;;
234 -enable-* | --enable-*)
235 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
236 # Reject names that are not valid shell variable names.
237 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
238 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
240 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
245 eval "enable_${ac_feature}='$ac_optarg'" ;;
247 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
248 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
249 | --exec | --exe | --ex)
250 ac_prev=exec_prefix ;;
251 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
252 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
253 | --exec=* | --exe=* | --ex=*)
254 exec_prefix="$ac_optarg" ;;
256 -gas | --gas | --ga | --g)
257 # Obsolete; use --with-gas.
260 -help | --help | --hel | --he)
261 # Omit some internal or obsolete options to make the list less imposing.
262 # This message is too long to be a string in the A/UX 3.1 sh.
264 Usage: configure [options] [host]
265 Options: [defaults in brackets after descriptions]
267 --cache-file=FILE cache test results in FILE
268 --help print this message
269 --no-create do not create output files
270 --quiet, --silent do not print \`checking...' messages
271 --site-file=FILE use FILE as the site file
272 --version print the version of autoconf that created configure
273 Directory and file names:
274 --prefix=PREFIX install architecture-independent files in PREFIX
276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
278 --bindir=DIR user executables in DIR [EPREFIX/bin]
279 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
280 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
281 --datadir=DIR read-only architecture-independent data in DIR
283 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
284 --sharedstatedir=DIR modifiable architecture-independent data in DIR
286 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
287 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
288 --includedir=DIR C header files in DIR [PREFIX/include]
289 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
290 --infodir=DIR info documentation in DIR [PREFIX/info]
291 --mandir=DIR man documentation in DIR [PREFIX/man]
292 --srcdir=DIR find the sources in DIR [configure dir or ..]
293 --program-prefix=PREFIX prepend PREFIX to installed program names
294 --program-suffix=SUFFIX append SUFFIX to installed program names
295 --program-transform-name=PROGRAM
296 run sed PROGRAM on installed program names
300 --build=BUILD configure for building on BUILD [BUILD=HOST]
301 --host=HOST configure for HOST [guessed]
302 --target=TARGET configure for TARGET [TARGET=HOST]
303 Features and packages:
304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
308 --x-includes=DIR X include files are in DIR
309 --x-libraries=DIR X library files are in DIR
311 if test -n "$ac_help"; then
312 echo "--enable and --with options recognized:$ac_help"
316 -host | --host | --hos | --ho)
318 -host=* | --host=* | --hos=* | --ho=*)
321 -includedir | --includedir | --includedi | --included | --include \
322 | --includ | --inclu | --incl | --inc)
323 ac_prev=includedir ;;
324 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
325 | --includ=* | --inclu=* | --incl=* | --inc=*)
326 includedir="$ac_optarg" ;;
328 -infodir | --infodir | --infodi | --infod | --info | --inf)
330 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
331 infodir="$ac_optarg" ;;
333 -libdir | --libdir | --libdi | --libd)
335 -libdir=* | --libdir=* | --libdi=* | --libd=*)
336 libdir="$ac_optarg" ;;
338 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
339 | --libexe | --libex | --libe)
340 ac_prev=libexecdir ;;
341 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
342 | --libexe=* | --libex=* | --libe=*)
343 libexecdir="$ac_optarg" ;;
345 -localstatedir | --localstatedir | --localstatedi | --localstated \
346 | --localstate | --localstat | --localsta | --localst \
347 | --locals | --local | --loca | --loc | --lo)
348 ac_prev=localstatedir ;;
349 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
350 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
351 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
352 localstatedir="$ac_optarg" ;;
354 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
356 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
357 mandir="$ac_optarg" ;;
360 # Obsolete; use --without-fp.
363 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
367 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
368 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
371 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
372 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
373 | --oldin | --oldi | --old | --ol | --o)
374 ac_prev=oldincludedir ;;
375 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
376 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
377 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
378 oldincludedir="$ac_optarg" ;;
380 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
382 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
383 prefix="$ac_optarg" ;;
385 -program-prefix | --program-prefix | --program-prefi | --program-pref \
386 | --program-pre | --program-pr | --program-p)
387 ac_prev=program_prefix ;;
388 -program-prefix=* | --program-prefix=* | --program-prefi=* \
389 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
390 program_prefix="$ac_optarg" ;;
392 -program-suffix | --program-suffix | --program-suffi | --program-suff \
393 | --program-suf | --program-su | --program-s)
394 ac_prev=program_suffix ;;
395 -program-suffix=* | --program-suffix=* | --program-suffi=* \
396 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
397 program_suffix="$ac_optarg" ;;
399 -program-transform-name | --program-transform-name \
400 | --program-transform-nam | --program-transform-na \
401 | --program-transform-n | --program-transform- \
402 | --program-transform | --program-transfor \
403 | --program-transfo | --program-transf \
404 | --program-trans | --program-tran \
405 | --progr-tra | --program-tr | --program-t)
406 ac_prev=program_transform_name ;;
407 -program-transform-name=* | --program-transform-name=* \
408 | --program-transform-nam=* | --program-transform-na=* \
409 | --program-transform-n=* | --program-transform-=* \
410 | --program-transform=* | --program-transfor=* \
411 | --program-transfo=* | --program-transf=* \
412 | --program-trans=* | --program-tran=* \
413 | --progr-tra=* | --program-tr=* | --program-t=*)
414 program_transform_name="$ac_optarg" ;;
416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
417 | -silent | --silent | --silen | --sile | --sil)
420 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
422 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
424 sbindir="$ac_optarg" ;;
426 -sharedstatedir | --sharedstatedir | --sharedstatedi \
427 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
428 | --sharedst | --shareds | --shared | --share | --shar \
430 ac_prev=sharedstatedir ;;
431 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
432 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
433 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
435 sharedstatedir="$ac_optarg" ;;
437 -site | --site | --sit)
439 -site=* | --site=* | --sit=*)
442 -site-file | --site-file | --site-fil | --site-fi | --site-f)
444 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
445 sitefile="$ac_optarg" ;;
447 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
449 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
450 srcdir="$ac_optarg" ;;
452 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
453 | --syscon | --sysco | --sysc | --sys | --sy)
454 ac_prev=sysconfdir ;;
455 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
456 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
457 sysconfdir="$ac_optarg" ;;
459 -target | --target | --targe | --targ | --tar | --ta | --t)
461 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
462 target="$ac_optarg" ;;
464 -v | -verbose | --verbose | --verbos | --verbo | --verb)
467 -version | --version | --versio | --versi | --vers)
468 echo "configure generated by autoconf version 2.13"
472 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
473 # Reject names that are not valid shell variable names.
474 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
475 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
477 ac_package=`echo $ac_package| sed 's/-/_/g'`
482 eval "with_${ac_package}='$ac_optarg'" ;;
484 -without-* | --without-*)
485 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
486 # Reject names that are not valid shell variable names.
487 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
488 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
490 ac_package=`echo $ac_package| sed 's/-/_/g'`
491 eval "with_${ac_package}=no" ;;
494 # Obsolete; use --with-x.
497 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
498 | --x-incl | --x-inc | --x-in | --x-i)
499 ac_prev=x_includes ;;
500 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
501 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
502 x_includes="$ac_optarg" ;;
504 -x-libraries | --x-libraries | --x-librarie | --x-librari \
505 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
506 ac_prev=x_libraries ;;
507 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
508 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
509 x_libraries="$ac_optarg" ;;
511 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
515 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
516 echo "configure: warning: $ac_option: invalid host type" 1>&2
518 if test "x$nonopt" != xNONE; then
519 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
527 if test -n "$ac_prev"; then
528 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
531 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
533 # File descriptor usage:
536 # 2 errors and warnings
537 # 3 some systems may open it to /dev/tty
538 # 4 used on the Kubota Titan
539 # 6 checking for... messages and results
540 # 5 compiler messages saved in config.log
541 if test "$silent" = yes; then
549 This file contains any messages produced by compilers while
550 running configure, to aid debugging if configure makes a mistake.
553 # Strip out --no-create and --no-recursion so they do not pile up.
554 # Also quote any args containing shell metacharacters.
559 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
560 | --no-cr | --no-c) ;;
561 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
562 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
563 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
564 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
565 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
570 # Only set these to C if already set. These must not be set unconditionally
571 # because not all systems understand e.g. LANG=C (notably SCO).
572 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
573 # Non-C LC_CTYPE values break the ctype check.
574 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
575 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
576 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
577 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
579 # confdefs.h avoids OS command line length limits that DEFS can exceed.
580 rm -rf conftest* confdefs.h
581 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
584 # A filename unique to this package, relative to the directory that
585 # configure is in, which we can look for to find out if srcdir is correct.
586 ac_unique_file=table.h
588 # Find the source files, if location was not specified.
589 if test -z "$srcdir"; then
590 ac_srcdir_defaulted=yes
591 # Try the directory containing this script, then its parent.
593 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
594 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
596 if test ! -r $srcdir/$ac_unique_file; then
600 ac_srcdir_defaulted=no
602 if test ! -r $srcdir/$ac_unique_file; then
603 if test "$ac_srcdir_defaulted" = yes; then
604 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
606 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
609 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
611 # Prefer explicitly selected file to automatically selected ones.
612 if test -z "$sitefile"; then
613 if test -z "$CONFIG_SITE"; then
614 if test "x$prefix" != xNONE; then
615 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
617 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
621 CONFIG_SITE="$sitefile"
623 for ac_site_file in $CONFIG_SITE; do
624 if test -r "$ac_site_file"; then
625 echo "loading site script $ac_site_file"
630 if test -r "$cache_file"; then
631 echo "loading cache $cache_file"
634 echo "creating cache $cache_file"
639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
640 ac_cpp='$CPP $CPPFLAGS'
641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
643 cross_compiling=$ac_cv_prog_cc_cross
647 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
648 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
649 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
656 ac_n= ac_c='\c' ac_t=
662 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
663 if test -f $ac_dir/install-sh; then
665 ac_install_sh="$ac_aux_dir/install-sh -c"
667 elif test -f $ac_dir/install.sh; then
669 ac_install_sh="$ac_aux_dir/install.sh -c"
673 if test -z "$ac_aux_dir"; then
674 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
676 ac_config_guess=$ac_aux_dir/config.guess
677 ac_config_sub=$ac_aux_dir/config.sub
678 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
680 # Find a good install program. We prefer a C program (faster),
681 # so one script is as good as another. But avoid the broken or
682 # incompatible versions:
683 # SysV /etc/install, /usr/sbin/install
684 # SunOS /usr/etc/install
687 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
688 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
689 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
690 # ./install, which can be erroneously created by make from ./install.sh.
691 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
692 echo "configure:693: checking for a BSD compatible install" >&5
693 if test -z "$INSTALL"; then
694 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
697 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
698 for ac_dir in $PATH; do
699 # Account for people who put trailing slashes in PATH elements.
701 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
703 # OSF1 and SCO ODT 3.0 have their own names for install.
704 # Don't use installbsd from OSF since it installs stuff as root
706 for ac_prog in ginstall scoinst install; do
707 if test -f $ac_dir/$ac_prog; then
708 if test $ac_prog = install &&
709 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
710 # AIX install. It has an incompatible calling convention.
713 ac_cv_path_install="$ac_dir/$ac_prog -c"
724 if test "${ac_cv_path_install+set}" = set; then
725 INSTALL="$ac_cv_path_install"
727 # As a last resort, use the slow shell script. We don't cache a
728 # path for INSTALL within a source directory, because that will
729 # break other packages using the cache if that directory is
730 # removed, or if the path is relative.
731 INSTALL="$ac_install_sh"
734 echo "$ac_t""$INSTALL" 1>&6
736 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
737 # It thinks the first close brace ends the variable substitution.
738 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
740 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
742 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
744 # Extract the first word of "gcc", so it can be a program name with args.
745 set dummy gcc; ac_word=$2
746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
747 echo "configure:748: checking for $ac_word" >&5
748 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
751 if test -n "$CC"; then
752 ac_cv_prog_CC="$CC" # Let the user override the test.
754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
756 for ac_dir in $ac_dummy; do
757 test -z "$ac_dir" && ac_dir=.
758 if test -f $ac_dir/$ac_word; then
767 if test -n "$CC"; then
768 echo "$ac_t""$CC" 1>&6
770 echo "$ac_t""no" 1>&6
773 if test -z "$CC"; then
774 # Extract the first word of "cc", so it can be a program name with args.
775 set dummy cc; ac_word=$2
776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
777 echo "configure:778: checking for $ac_word" >&5
778 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 if test -n "$CC"; then
782 ac_cv_prog_CC="$CC" # Let the user override the test.
784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
787 for ac_dir in $ac_dummy; do
788 test -z "$ac_dir" && ac_dir=.
789 if test -f $ac_dir/$ac_word; then
790 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
799 if test $ac_prog_rejected = yes; then
800 # We found a bogon in the path, so make sure we never use it.
801 set dummy $ac_cv_prog_CC
803 if test $# -gt 0; then
804 # We chose a different compiler from the bogus one.
805 # However, it has the same basename, so the bogon will be chosen
806 # first if we set CC to just the basename; use the full file name.
808 set dummy "$ac_dir/$ac_word" "$@"
816 if test -n "$CC"; then
817 echo "$ac_t""$CC" 1>&6
819 echo "$ac_t""no" 1>&6
822 if test -z "$CC"; then
825 # Extract the first word of "cl", so it can be a program name with args.
826 set dummy cl; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$CC"; then
833 ac_cv_prog_CC="$CC" # Let the user override the test.
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
837 for ac_dir in $ac_dummy; do
838 test -z "$ac_dir" && ac_dir=.
839 if test -f $ac_dir/$ac_word; then
848 if test -n "$CC"; then
849 echo "$ac_t""$CC" 1>&6
851 echo "$ac_t""no" 1>&6
856 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
859 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
860 echo "configure:861: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864 ac_cpp='$CPP $CPPFLAGS'
865 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867 cross_compiling=$ac_cv_prog_cc_cross
869 cat > conftest.$ac_ext << EOF
871 #line 872 "configure"
872 #include "confdefs.h"
876 if { (eval echo configure:877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
877 ac_cv_prog_cc_works=yes
878 # If we can't run a trivial program, we are probably using a cross compiler.
879 if (./conftest; exit) 2>/dev/null; then
880 ac_cv_prog_cc_cross=no
882 ac_cv_prog_cc_cross=yes
885 echo "configure: failed program was:" >&5
886 cat conftest.$ac_ext >&5
887 ac_cv_prog_cc_works=no
891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
892 ac_cpp='$CPP $CPPFLAGS'
893 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
894 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
895 cross_compiling=$ac_cv_prog_cc_cross
897 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
898 if test $ac_cv_prog_cc_works = no; then
899 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
901 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
902 echo "configure:903: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
903 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
904 cross_compiling=$ac_cv_prog_cc_cross
906 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
907 echo "configure:908: checking whether we are using GNU C" >&5
908 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 cat > conftest.c <<EOF
916 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
923 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
925 if test $ac_cv_prog_gcc = yes; then
931 ac_test_CFLAGS="${CFLAGS+set}"
932 ac_save_CFLAGS="$CFLAGS"
934 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
935 echo "configure:936: checking whether ${CC-cc} accepts -g" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 echo 'void f(){}' > conftest.c
940 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
949 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
950 if test "$ac_test_CFLAGS" = set; then
951 CFLAGS="$ac_save_CFLAGS"
952 elif test $ac_cv_prog_cc_g = yes; then
953 if test "$GCC" = yes; then
959 if test "$GCC" = yes; then
968 # Check whether --enable-build-warnings or --disable-build-warnings was given.
969 if test "${enable_build_warnings+set}" = set; then
970 enableval="$enable_build_warnings"
971 build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
972 case "${enableval}" in
974 no) build_warnings="-w";;
975 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
976 build_warnings="${build_warnings} ${t}";;
977 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
978 build_warnings="${t} ${build_warnings}";;
979 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
981 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
982 echo "Setting warning flags = $build_warnings" 6>&1
986 if test "x${build_warnings}" != x -a "x$GCC" = xyes
988 # Separate out the -Werror flag as some files just cannot be
989 # compiled with it enabled.
990 for w in ${build_warnings}; do
992 -Werr*) WERROR_CFLAGS=-Werror ;;
993 *) WARN_CFLAGS="${WARN_CFLAGS} $w"
1002 # Put a plausible default for CC_FOR_BUILD in Makefile.
1003 if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
1004 AR_FOR_BUILD='$(AR)'
1005 AR_FLAGS_FOR_BUILD='$(AR_FLAGS)'
1006 CC_FOR_BUILD='$(CC)'
1007 CFLAGS_FOR_BUILD='$(CFLAGS)'
1008 RANLIB_FOR_BUILD='$(RANLIB)'
1009 LIBIBERTY_LIB=../../libiberty/libiberty.a
1011 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
1012 AR_FLAGS_FOR_BUILD=${AR_FLAGS_FOR_BUILD-rc}
1013 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1014 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
1015 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
1021 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
1022 if test -f $ac_dir/install-sh; then
1024 ac_install_sh="$ac_aux_dir/install-sh -c"
1026 elif test -f $ac_dir/install.sh; then
1028 ac_install_sh="$ac_aux_dir/install.sh -c"
1032 if test -z "$ac_aux_dir"; then
1033 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1035 ac_config_guess=$ac_aux_dir/config.guess
1036 ac_config_sub=$ac_aux_dir/config.sub
1037 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1040 # Do some error checking and defaulting for the host and target type.
1042 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1045 # 1. You are not allowed to specify --host, --target, and nonopt at the
1047 # 2. Host defaults to nonopt.
1048 # 3. If nonopt is not specified, then host defaults to the current host,
1049 # as determined by config.guess.
1050 # 4. Target and build default to nonopt.
1051 # 5. If nonopt is not specified, then target and build default to host.
1053 # The aliases save the names the user supplied, while $host etc.
1054 # will get canonicalized.
1055 case $host---$target---$nonopt in
1056 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1057 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1061 # Make sure we can run config.sub.
1062 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1063 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1066 echo $ac_n "checking host system type""... $ac_c" 1>&6
1067 echo "configure:1068: checking host system type" >&5
1070 case "$host_alias" in
1074 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1075 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1077 *) host_alias=$nonopt ;;
1081 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1082 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1083 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1084 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1085 echo "$ac_t""$host" 1>&6
1087 echo $ac_n "checking target system type""... $ac_c" 1>&6
1088 echo "configure:1089: checking target system type" >&5
1090 target_alias=$target
1091 case "$target_alias" in
1094 NONE) target_alias=$host_alias ;;
1095 *) target_alias=$nonopt ;;
1099 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1100 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1101 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1102 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1103 echo "$ac_t""$target" 1>&6
1105 echo $ac_n "checking build system type""... $ac_c" 1>&6
1106 echo "configure:1107: checking build system type" >&5
1109 case "$build_alias" in
1112 NONE) build_alias=$host_alias ;;
1113 *) build_alias=$nonopt ;;
1117 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1118 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1119 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1120 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1121 echo "$ac_t""$build" 1>&6
1123 test "$host_alias" != "$target_alias" &&
1124 test "$program_prefix$program_suffix$program_transform_name" = \
1126 program_prefix=${target_alias}-
1128 if test "$program_transform_name" = s,x,x,; then
1129 program_transform_name=
1131 # Double any \ or $. echo might interpret backslashes.
1132 cat <<\EOF_SED > conftestsed
1133 s,\\,\\\\,g; s,\$,$$,g
1135 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1138 test "$program_prefix" != NONE &&
1139 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1140 # Use a double $ so make ignores it.
1141 test "$program_suffix" != NONE &&
1142 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1144 # sed with no file args requires a program.
1145 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1148 . ${srcdir}/../../bfd/configure.host
1152 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1153 echo "configure:1154: checking how to run the C preprocessor" >&5
1154 # On Suns, sometimes $CPP names a directory.
1155 if test -n "$CPP" && test -d "$CPP"; then
1158 if test -z "$CPP"; then
1159 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 # This must be in double quotes, not single quotes, because CPP may get
1163 # substituted into the Makefile and "${CC-cc}" will confuse make.
1165 # On the NeXT, cc -E runs the code through the compiler's parser,
1166 # not just through cpp.
1167 cat > conftest.$ac_ext <<EOF
1168 #line 1169 "configure"
1169 #include "confdefs.h"
1173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1174 { (eval echo configure:1175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1176 if test -z "$ac_err"; then
1180 echo "configure: failed program was:" >&5
1181 cat conftest.$ac_ext >&5
1183 CPP="${CC-cc} -E -traditional-cpp"
1184 cat > conftest.$ac_ext <<EOF
1185 #line 1186 "configure"
1186 #include "confdefs.h"
1190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1191 { (eval echo configure:1192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1193 if test -z "$ac_err"; then
1197 echo "configure: failed program was:" >&5
1198 cat conftest.$ac_ext >&5
1200 CPP="${CC-cc} -nologo -E"
1201 cat > conftest.$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1208 { (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1210 if test -z "$ac_err"; then
1214 echo "configure: failed program was:" >&5
1215 cat conftest.$ac_ext >&5
1224 ac_cv_prog_CPP="$CPP"
1226 CPP="$ac_cv_prog_CPP"
1228 ac_cv_prog_CPP="$CPP"
1230 echo "$ac_t""$CPP" 1>&6
1232 for ac_hdr in stdlib.h string.h strings.h sys/stat.h sys/types.h unistd.h
1234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1236 echo "configure:1237: checking for $ac_hdr" >&5
1237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 cat > conftest.$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1246 { (eval echo configure:1247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1248 if test -z "$ac_err"; then
1250 eval "ac_cv_header_$ac_safe=yes"
1253 echo "configure: failed program was:" >&5
1254 cat conftest.$ac_ext >&5
1256 eval "ac_cv_header_$ac_safe=no"
1260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1261 echo "$ac_t""yes" 1>&6
1262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1263 cat >> confdefs.h <<EOF
1264 #define $ac_tr_hdr 1
1268 echo "$ac_t""no" 1>&6
1273 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1276 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1277 echo "configure:1278: checking for $ac_hdr that defines DIR" >&5
1278 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1281 cat > conftest.$ac_ext <<EOF
1282 #line 1283 "configure"
1283 #include "confdefs.h"
1284 #include <sys/types.h>
1290 if { (eval echo configure:1291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1292 eval "ac_cv_header_dirent_$ac_safe=yes"
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1297 eval "ac_cv_header_dirent_$ac_safe=no"
1301 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1302 echo "$ac_t""yes" 1>&6
1303 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1304 cat >> confdefs.h <<EOF
1305 #define $ac_tr_hdr 1
1307 ac_header_dirent=$ac_hdr; break
1309 echo "$ac_t""no" 1>&6
1312 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1313 if test $ac_header_dirent = dirent.h; then
1314 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1315 echo "configure:1316: checking for opendir in -ldir" >&5
1316 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1318 echo $ac_n "(cached) $ac_c" 1>&6
1320 ac_save_LIBS="$LIBS"
1322 cat > conftest.$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1325 /* Override any gcc2 internal prototype to avoid an error. */
1326 /* We use char because int might match the return type of a gcc2
1327 builtin and then its argument prototype would still apply. */
1334 if { (eval echo configure:1335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1336 eval "ac_cv_lib_$ac_lib_var=yes"
1338 echo "configure: failed program was:" >&5
1339 cat conftest.$ac_ext >&5
1341 eval "ac_cv_lib_$ac_lib_var=no"
1344 LIBS="$ac_save_LIBS"
1347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1348 echo "$ac_t""yes" 1>&6
1351 echo "$ac_t""no" 1>&6
1355 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1356 echo "configure:1357: checking for opendir in -lx" >&5
1357 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 ac_save_LIBS="$LIBS"
1363 cat > conftest.$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1366 /* Override any gcc2 internal prototype to avoid an error. */
1367 /* We use char because int might match the return type of a gcc2
1368 builtin and then its argument prototype would still apply. */
1375 if { (eval echo configure:1376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1377 eval "ac_cv_lib_$ac_lib_var=yes"
1379 echo "configure: failed program was:" >&5
1380 cat conftest.$ac_ext >&5
1382 eval "ac_cv_lib_$ac_lib_var=no"
1385 LIBS="$ac_save_LIBS"
1388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1389 echo "$ac_t""yes" 1>&6
1392 echo "$ac_t""no" 1>&6
1407 # Extract the first word of "ranlib", so it can be a program name with args.
1408 set dummy ranlib; ac_word=$2
1409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1410 echo "configure:1411: checking for $ac_word" >&5
1411 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 if test -n "$RANLIB"; then
1415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1419 for ac_dir in $ac_dummy; do
1420 test -z "$ac_dir" && ac_dir=.
1421 if test -f $ac_dir/$ac_word; then
1422 ac_cv_prog_RANLIB="ranlib"
1427 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1430 RANLIB="$ac_cv_prog_RANLIB"
1431 if test -n "$RANLIB"; then
1432 echo "$ac_t""$RANLIB" 1>&6
1434 echo "$ac_t""no" 1>&6
1439 cat > confcache <<\EOF
1440 # This file is a shell script that caches the results of configure
1441 # tests run on this system so they can be shared between configure
1442 # scripts and configure runs. It is not useful on other systems.
1443 # If it contains results you don't want to keep, you may remove or edit it.
1445 # By default, configure uses ./config.cache as the cache file,
1446 # creating it if it does not exist already. You can give configure
1447 # the --cache-file=FILE option to use a different cache file; that is
1448 # what configure does when it calls configure scripts in
1449 # subdirectories, so they share the cache.
1450 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1451 # config.status only pays attention to the cache file if you give it the
1452 # --recheck option to rerun configure.
1455 # The following way of writing the cache mishandles newlines in values,
1456 # but we know of no workaround that is simple, portable, and efficient.
1457 # So, don't put newlines in cache variables' values.
1458 # Ultrix sh set writes to stderr and can't be redirected directly,
1459 # and sets the high bit in the cache file unless we assign to the vars.
1461 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1463 # `set' does not quote correctly, so add quotes (double-quote substitution
1464 # turns \\\\ into \\, and sed turns \\ into \).
1466 -e "s/'/'\\\\''/g" \
1467 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1470 # `set' quotes correctly as required by POSIX, so do not add quotes.
1471 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1474 if cmp -s $cache_file confcache; then
1477 if test -w $cache_file; then
1478 echo "updating cache $cache_file"
1479 cat confcache > $cache_file
1481 echo "not updating unwritable cache $cache_file"
1486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1489 # Let make expand exec_prefix.
1490 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1492 # Any assignment to VPATH causes Sun make to only execute
1493 # the first set of double-colon rules, so remove it if not needed.
1494 # If there is a colon in the path, we need to keep it.
1495 if test "x$srcdir" = x.; then
1496 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1499 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1501 DEFS=-DHAVE_CONFIG_H
1503 # Without the "./", some shells look in PATH for config.status.
1504 : ${CONFIG_STATUS=./config.status}
1506 echo creating $CONFIG_STATUS
1507 rm -f $CONFIG_STATUS
1508 cat > $CONFIG_STATUS <<EOF
1510 # Generated automatically by configure.
1511 # Run this file to recreate the current configuration.
1512 # This directory was configured as follows,
1513 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1515 # $0 $ac_configure_args
1517 # Compiler output produced by configure, useful for debugging
1518 # configure, is in ./config.log if it exists.
1520 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1523 case "\$ac_option" in
1524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1525 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1526 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1527 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1528 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1530 -help | --help | --hel | --he | --h)
1531 echo "\$ac_cs_usage"; exit 0 ;;
1532 *) echo "\$ac_cs_usage"; exit 1 ;;
1536 ac_given_srcdir=$srcdir
1537 ac_given_INSTALL="$INSTALL"
1539 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1541 cat >> $CONFIG_STATUS <<EOF
1543 # Protect against being on the right side of a sed subst in config.status.
1544 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1545 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1548 s%@sim_environment@%$sim_environment%g
1549 s%@sim_alignment@%$sim_alignment%g
1550 s%@sim_assert@%$sim_assert%g
1551 s%@sim_bitsize@%$sim_bitsize%g
1552 s%@sim_endian@%$sim_endian%g
1553 s%@sim_hostendian@%$sim_hostendian%g
1554 s%@sim_float@%$sim_float%g
1555 s%@sim_scache@%$sim_scache%g
1556 s%@sim_default_model@%$sim_default_model%g
1557 s%@sim_hw_cflags@%$sim_hw_cflags%g
1558 s%@sim_hw_objs@%$sim_hw_objs%g
1559 s%@sim_hw@%$sim_hw%g
1560 s%@sim_inline@%$sim_inline%g
1561 s%@sim_packages@%$sim_packages%g
1562 s%@sim_regparm@%$sim_regparm%g
1563 s%@sim_reserved_bits@%$sim_reserved_bits%g
1564 s%@sim_smp@%$sim_smp%g
1565 s%@sim_stdcall@%$sim_stdcall%g
1566 s%@sim_xor_endian@%$sim_xor_endian%g
1567 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
1568 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
1570 s%@CFLAGS@%$CFLAGS%g
1571 s%@CPPFLAGS@%$CPPFLAGS%g
1572 s%@CXXFLAGS@%$CXXFLAGS%g
1573 s%@FFLAGS@%$FFLAGS%g
1575 s%@LDFLAGS@%$LDFLAGS%g
1577 s%@exec_prefix@%$exec_prefix%g
1578 s%@prefix@%$prefix%g
1579 s%@program_transform_name@%$program_transform_name%g
1580 s%@bindir@%$bindir%g
1581 s%@sbindir@%$sbindir%g
1582 s%@libexecdir@%$libexecdir%g
1583 s%@datadir@%$datadir%g
1584 s%@sysconfdir@%$sysconfdir%g
1585 s%@sharedstatedir@%$sharedstatedir%g
1586 s%@localstatedir@%$localstatedir%g
1587 s%@libdir@%$libdir%g
1588 s%@includedir@%$includedir%g
1589 s%@oldincludedir@%$oldincludedir%g
1590 s%@infodir@%$infodir%g
1591 s%@mandir@%$mandir%g
1592 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1593 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1594 s%@INSTALL_DATA@%$INSTALL_DATA%g
1597 s%@host_alias@%$host_alias%g
1598 s%@host_cpu@%$host_cpu%g
1599 s%@host_vendor@%$host_vendor%g
1600 s%@host_os@%$host_os%g
1601 s%@target@%$target%g
1602 s%@target_alias@%$target_alias%g
1603 s%@target_cpu@%$target_cpu%g
1604 s%@target_vendor@%$target_vendor%g
1605 s%@target_os@%$target_os%g
1607 s%@build_alias@%$build_alias%g
1608 s%@build_cpu@%$build_cpu%g
1609 s%@build_vendor@%$build_vendor%g
1610 s%@build_os@%$build_os%g
1612 s%@AR_FOR_BUILD@%$AR_FOR_BUILD%g
1613 s%@AR_FLAGS_FOR_BUILD@%$AR_FLAGS_FOR_BUILD%g
1614 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1615 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
1616 s%@RANLIB_FOR_BUILD@%$RANLIB_FOR_BUILD%g
1617 s%@LIBIBERTY_LIB@%$LIBIBERTY_LIB%g
1619 s%@RANLIB@%$RANLIB%g
1624 cat >> $CONFIG_STATUS <<\EOF
1626 # Split the substitutions into bite-sized pieces for seds with
1627 # small command number limits, like on Digital OSF/1 and HP-UX.
1628 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1629 ac_file=1 # Number of current file.
1630 ac_beg=1 # First line for current file.
1631 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1634 while $ac_more_lines; do
1635 if test $ac_beg -gt 1; then
1636 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1638 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1640 if test ! -s conftest.s$ac_file; then
1642 rm -f conftest.s$ac_file
1644 if test -z "$ac_sed_cmds"; then
1645 ac_sed_cmds="sed -f conftest.s$ac_file"
1647 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1649 ac_file=`expr $ac_file + 1`
1651 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1654 if test -z "$ac_sed_cmds"; then
1659 cat >> $CONFIG_STATUS <<EOF
1661 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1663 cat >> $CONFIG_STATUS <<\EOF
1664 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1665 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1667 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1668 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1669 *) ac_file_in="${ac_file}.in" ;;
1672 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1674 # Remove last slash and all that follows it. Not all systems have dirname.
1675 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1676 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1677 # The file is in a subdirectory.
1678 test ! -d "$ac_dir" && mkdir "$ac_dir"
1679 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1680 # A "../" for each directory in $ac_dir_suffix.
1681 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1683 ac_dir_suffix= ac_dots=
1686 case "$ac_given_srcdir" in
1688 if test -z "$ac_dots"; then top_srcdir=.
1689 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1690 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1692 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1693 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1696 case "$ac_given_INSTALL" in
1697 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1698 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1701 echo creating "$ac_file"
1703 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1705 *Makefile*) ac_comsub="1i\\
1706 # $configure_input" ;;
1710 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1712 s%@configure_input@%$configure_input%g
1713 s%@srcdir@%$srcdir%g
1714 s%@top_srcdir@%$top_srcdir%g
1715 s%@INSTALL@%$INSTALL%g
1716 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1720 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1721 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1723 # ac_d sets the value in "#define NAME VALUE" lines.
1724 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1725 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1728 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1729 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1730 ac_uB='\([ ]\)%\1#\2define\3'
1733 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1734 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1735 ac_eB='$%\1#\2define\3'
1739 if test "${CONFIG_HEADERS+set}" != set; then
1741 cat >> $CONFIG_STATUS <<EOF
1742 CONFIG_HEADERS="config.h:config.in"
1744 cat >> $CONFIG_STATUS <<\EOF
1746 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1747 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1749 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1750 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1751 *) ac_file_in="${ac_file}.in" ;;
1754 echo creating $ac_file
1756 rm -f conftest.frag conftest.in conftest.out
1757 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1758 cat $ac_file_inputs > conftest.in
1762 # Transform confdefs.h into a sed script conftest.vals that substitutes
1763 # the proper values into config.h.in to produce config.h. And first:
1764 # Protect against being on the right side of a sed subst in config.status.
1765 # Protect against being in an unquoted here document in config.status.
1767 cat > conftest.hdr <<\EOF
1770 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1774 sed -n -f conftest.hdr confdefs.h > conftest.vals
1777 # This sed command replaces #undef with comments. This is necessary, for
1778 # example, in the case of _POSIX_SOURCE, which is predefined and required
1779 # on some systems where configure will not decide to define it.
1780 cat >> conftest.vals <<\EOF
1781 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1784 # Break up conftest.vals because some shells have a limit on
1785 # the size of here documents, and old seds have small limits too.
1790 ac_lines=`grep -c . conftest.vals`
1791 # grep -c gives empty output for an empty file on some AIX systems.
1792 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1793 # Write a limited-size here document to conftest.frag.
1794 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1795 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1797 sed -f conftest.frag conftest.in > conftest.out
1799 mv conftest.out conftest.in
1801 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1803 mv conftest.tail conftest.vals
1807 cat >> $CONFIG_STATUS <<\EOF
1808 rm -f conftest.frag conftest.h
1809 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1810 cat conftest.in >> conftest.h
1812 if cmp -s $ac_file conftest.h 2>/dev/null; then
1813 echo "$ac_file is unchanged"
1816 # Remove last slash and all that follows it. Not all systems have dirname.
1817 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1818 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1819 # The file is in a subdirectory.
1820 test ! -d "$ac_dir" && mkdir "$ac_dir"
1823 mv conftest.h $ac_file
1828 cat >> $CONFIG_STATUS <<EOF
1831 cat >> $CONFIG_STATUS <<\EOF
1832 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
1835 chmod +x $CONFIG_STATUS
1836 rm -fr confdefs* $ac_clean_files
1837 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1