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}-
733 # Extract the first word of "gcc", so it can be a program name with args.
734 set dummy gcc; ac_word=$2
735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
736 echo "configure:737: checking for $ac_word" >&5
737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
740 if test -n "$CC"; then
741 ac_cv_prog_CC="$CC" # Let the user override the test.
743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
745 for ac_dir in $ac_dummy; do
746 test -z "$ac_dir" && ac_dir=.
747 if test -f $ac_dir/$ac_word; then
756 if test -n "$CC"; then
757 echo "$ac_t""$CC" 1>&6
759 echo "$ac_t""no" 1>&6
762 if test -z "$CC"; then
763 # Extract the first word of "cc", so it can be a program name with args.
764 set dummy cc; ac_word=$2
765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
766 echo "configure:767: checking for $ac_word" >&5
767 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
768 echo $ac_n "(cached) $ac_c" 1>&6
770 if test -n "$CC"; then
771 ac_cv_prog_CC="$CC" # Let the user override the test.
773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
776 for ac_dir in $ac_dummy; do
777 test -z "$ac_dir" && ac_dir=.
778 if test -f $ac_dir/$ac_word; then
779 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
788 if test $ac_prog_rejected = yes; then
789 # We found a bogon in the path, so make sure we never use it.
790 set dummy $ac_cv_prog_CC
792 if test $# -gt 0; then
793 # We chose a different compiler from the bogus one.
794 # However, it has the same basename, so the bogon will be chosen
795 # first if we set CC to just the basename; use the full file name.
797 set dummy "$ac_dir/$ac_word" "$@"
805 if test -n "$CC"; then
806 echo "$ac_t""$CC" 1>&6
808 echo "$ac_t""no" 1>&6
811 if test -z "$CC"; then
814 # Extract the first word of "cl", so it can be a program name with args.
815 set dummy cl; ac_word=$2
816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
817 echo "configure:818: checking for $ac_word" >&5
818 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
821 if test -n "$CC"; then
822 ac_cv_prog_CC="$CC" # Let the user override the test.
824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
826 for ac_dir in $ac_dummy; do
827 test -z "$ac_dir" && ac_dir=.
828 if test -f $ac_dir/$ac_word; then
837 if test -n "$CC"; then
838 echo "$ac_t""$CC" 1>&6
840 echo "$ac_t""no" 1>&6
845 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
848 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
849 echo "configure:850: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
853 ac_cpp='$CPP $CPPFLAGS'
854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
856 cross_compiling=$ac_cv_prog_cc_cross
858 cat > conftest.$ac_ext << EOF
860 #line 861 "configure"
861 #include "confdefs.h"
865 if { (eval echo configure:866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
866 ac_cv_prog_cc_works=yes
867 # If we can't run a trivial program, we are probably using a cross compiler.
868 if (./conftest; exit) 2>/dev/null; then
869 ac_cv_prog_cc_cross=no
871 ac_cv_prog_cc_cross=yes
874 echo "configure: failed program was:" >&5
875 cat conftest.$ac_ext >&5
876 ac_cv_prog_cc_works=no
880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
881 ac_cpp='$CPP $CPPFLAGS'
882 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
883 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
884 cross_compiling=$ac_cv_prog_cc_cross
886 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
887 if test $ac_cv_prog_cc_works = no; then
888 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
890 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
891 echo "configure:892: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
892 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
893 cross_compiling=$ac_cv_prog_cc_cross
895 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
896 echo "configure:897: checking whether we are using GNU C" >&5
897 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
900 cat > conftest.c <<EOF
905 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
912 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
914 if test $ac_cv_prog_gcc = yes; then
920 ac_test_CFLAGS="${CFLAGS+set}"
921 ac_save_CFLAGS="$CFLAGS"
923 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
924 echo "configure:925: checking whether ${CC-cc} accepts -g" >&5
925 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
926 echo $ac_n "(cached) $ac_c" 1>&6
928 echo 'void f(){}' > conftest.c
929 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
938 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
939 if test "$ac_test_CFLAGS" = set; then
940 CFLAGS="$ac_save_CFLAGS"
941 elif test $ac_cv_prog_cc_g = yes; then
942 if test "$GCC" = yes; then
948 if test "$GCC" = yes; then
955 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
956 echo "configure:957: checking for POSIXized ISC" >&5
957 if test -d /etc/conf/kconfig.d &&
958 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
960 echo "$ac_t""yes" 1>&6
961 ISC=yes # If later tests want to check for ISC.
962 cat >> confdefs.h <<\EOF
963 #define _POSIX_SOURCE 1
966 if test "$GCC" = yes; then
972 echo "$ac_t""no" 1>&6
977 # We currently only use the version number for the name of any shared
978 # library. For user convenience, we always use the same version
979 # number that BFD is using.
980 BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
982 # Find a good install program. We prefer a C program (faster),
983 # so one script is as good as another. But avoid the broken or
984 # incompatible versions:
985 # SysV /etc/install, /usr/sbin/install
986 # SunOS /usr/etc/install
989 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
990 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
991 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
992 # ./install, which can be erroneously created by make from ./install.sh.
993 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
994 echo "configure:995: checking for a BSD compatible install" >&5
995 if test -z "$INSTALL"; then
996 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1000 for ac_dir in $PATH; do
1001 # Account for people who put trailing slashes in PATH elements.
1003 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1005 # OSF1 and SCO ODT 3.0 have their own names for install.
1006 # Don't use installbsd from OSF since it installs stuff as root
1008 for ac_prog in ginstall scoinst install; do
1009 if test -f $ac_dir/$ac_prog; then
1010 if test $ac_prog = install &&
1011 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1012 # AIX install. It has an incompatible calling convention.
1015 ac_cv_path_install="$ac_dir/$ac_prog -c"
1026 if test "${ac_cv_path_install+set}" = set; then
1027 INSTALL="$ac_cv_path_install"
1029 # As a last resort, use the slow shell script. We don't cache a
1030 # path for INSTALL within a source directory, because that will
1031 # break other packages using the cache if that directory is
1032 # removed, or if the path is relative.
1033 INSTALL="$ac_install_sh"
1036 echo "$ac_t""$INSTALL" 1>&6
1038 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1039 # It thinks the first close brace ends the variable substitution.
1040 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1042 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1044 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1046 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1047 echo "configure:1048: checking whether build environment is sane" >&5
1050 echo timestamp > conftestfile
1051 # Do `set' in a subshell so we don't clobber the current shell's
1052 # arguments. Must try -L first in case configure is actually a
1053 # symlink; some systems play weird games with the mod time of symlinks
1054 # (eg FreeBSD returns the mod time of the symlink's containing
1057 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1058 if test "$*" = "X"; then
1060 set X `ls -t $srcdir/configure conftestfile`
1062 if test "$*" != "X $srcdir/configure conftestfile" \
1063 && test "$*" != "X conftestfile $srcdir/configure"; then
1065 # If neither matched, then we have a broken ls. This can happen
1066 # if, for instance, CONFIG_SHELL is bash and it inherits a
1067 # broken ls alias from the environment. This has actually
1068 # happened. Such a system could not be considered "sane".
1069 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1070 alias in your environment" 1>&2; exit 1; }
1073 test "$2" = conftestfile
1079 { echo "configure: error: newly created file is older than distributed files!
1080 Check your system clock" 1>&2; exit 1; }
1083 echo "$ac_t""yes" 1>&6
1084 if test "$program_transform_name" = s,x,x,; then
1085 program_transform_name=
1087 # Double any \ or $. echo might interpret backslashes.
1088 cat <<\EOF_SED > conftestsed
1089 s,\\,\\\\,g; s,\$,$$,g
1091 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1094 test "$program_prefix" != NONE &&
1095 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1096 # Use a double $ so make ignores it.
1097 test "$program_suffix" != NONE &&
1098 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1100 # sed with no file args requires a program.
1101 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1103 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether ${MAKE-make} sets \${MAKE}" >&5
1105 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1106 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 cat > conftestmake <<\EOF
1111 @echo 'ac_maketemp="${MAKE}"'
1113 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1114 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1115 if test -n "$ac_maketemp"; then
1116 eval ac_cv_prog_make_${ac_make}_set=yes
1118 eval ac_cv_prog_make_${ac_make}_set=no
1122 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1123 echo "$ac_t""yes" 1>&6
1126 echo "$ac_t""no" 1>&6
1127 SET_MAKE="MAKE=${MAKE-make}"
1133 VERSION=${BFD_VERSION}
1135 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1136 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1138 cat >> confdefs.h <<EOF
1139 #define PACKAGE "$PACKAGE"
1142 cat >> confdefs.h <<EOF
1143 #define VERSION "$VERSION"
1148 missing_dir=`cd $ac_aux_dir && pwd`
1149 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1150 echo "configure:1151: checking for working aclocal" >&5
1151 # Run test in a subshell; some versions of sh will print an error if
1152 # an executable is not found, even if stderr is redirected.
1153 # Redirect stdin to placate older versions of autoconf. Sigh.
1154 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1156 echo "$ac_t""found" 1>&6
1158 ACLOCAL="$missing_dir/missing aclocal"
1159 echo "$ac_t""missing" 1>&6
1162 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1163 echo "configure:1164: checking for working autoconf" >&5
1164 # Run test in a subshell; some versions of sh will print an error if
1165 # an executable is not found, even if stderr is redirected.
1166 # Redirect stdin to placate older versions of autoconf. Sigh.
1167 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1169 echo "$ac_t""found" 1>&6
1171 AUTOCONF="$missing_dir/missing autoconf"
1172 echo "$ac_t""missing" 1>&6
1175 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1176 echo "configure:1177: checking for working automake" >&5
1177 # Run test in a subshell; some versions of sh will print an error if
1178 # an executable is not found, even if stderr is redirected.
1179 # Redirect stdin to placate older versions of autoconf. Sigh.
1180 if (automake --version) < /dev/null > /dev/null 2>&1; then
1182 echo "$ac_t""found" 1>&6
1184 AUTOMAKE="$missing_dir/missing automake"
1185 echo "$ac_t""missing" 1>&6
1188 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1189 echo "configure:1190: checking for working autoheader" >&5
1190 # Run test in a subshell; some versions of sh will print an error if
1191 # an executable is not found, even if stderr is redirected.
1192 # Redirect stdin to placate older versions of autoconf. Sigh.
1193 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1194 AUTOHEADER=autoheader
1195 echo "$ac_t""found" 1>&6
1197 AUTOHEADER="$missing_dir/missing autoheader"
1198 echo "$ac_t""missing" 1>&6
1201 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1202 echo "configure:1203: checking for working makeinfo" >&5
1203 # Run test in a subshell; some versions of sh will print an error if
1204 # an executable is not found, even if stderr is redirected.
1205 # Redirect stdin to placate older versions of autoconf. Sigh.
1206 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1208 echo "$ac_t""found" 1>&6
1210 MAKEINFO="$missing_dir/missing makeinfo"
1211 echo "$ac_t""missing" 1>&6
1216 if test $host != $build; then
1217 ac_tool_prefix=${host_alias}-
1222 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1223 set dummy ${ac_tool_prefix}ar; 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_AR'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 if test -n "$AR"; then
1230 ac_cv_prog_AR="$AR" # Let the user override the test.
1232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 for ac_dir in $ac_dummy; do
1235 test -z "$ac_dir" && ac_dir=.
1236 if test -f $ac_dir/$ac_word; then
1237 ac_cv_prog_AR="${ac_tool_prefix}ar"
1242 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1246 if test -n "$AR"; then
1247 echo "$ac_t""$AR" 1>&6
1249 echo "$ac_t""no" 1>&6
1254 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1255 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1257 echo "configure:1258: checking for $ac_word" >&5
1258 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 if test -n "$RANLIB"; then
1262 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1266 for ac_dir in $ac_dummy; do
1267 test -z "$ac_dir" && ac_dir=.
1268 if test -f $ac_dir/$ac_word; then
1269 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1276 RANLIB="$ac_cv_prog_RANLIB"
1277 if test -n "$RANLIB"; then
1278 echo "$ac_t""$RANLIB" 1>&6
1280 echo "$ac_t""no" 1>&6
1284 if test -z "$ac_cv_prog_RANLIB"; then
1285 if test -n "$ac_tool_prefix"; then
1286 # Extract the first word of "ranlib", so it can be a program name with args.
1287 set dummy ranlib; ac_word=$2
1288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1289 echo "configure:1290: checking for $ac_word" >&5
1290 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1293 if test -n "$RANLIB"; then
1294 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1298 for ac_dir in $ac_dummy; do
1299 test -z "$ac_dir" && ac_dir=.
1300 if test -f $ac_dir/$ac_word; then
1301 ac_cv_prog_RANLIB="ranlib"
1306 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1309 RANLIB="$ac_cv_prog_RANLIB"
1310 if test -n "$RANLIB"; then
1311 echo "$ac_t""$RANLIB" 1>&6
1313 echo "$ac_t""no" 1>&6
1322 # Check whether --enable-shared or --disable-shared was given.
1323 if test "${enable_shared+set}" = set; then
1324 enableval="$enable_shared"
1325 p=${PACKAGE-default}
1326 case "$enableval" in
1327 yes) enable_shared=yes ;;
1328 no) enable_shared=no ;;
1331 # Look at the argument we got. We use all the common list separators.
1332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1333 for pkg in $enableval; do
1334 if test "X$pkg" = "X$p"; then
1346 # Check whether --enable-static or --disable-static was given.
1347 if test "${enable_static+set}" = set; then
1348 enableval="$enable_static"
1349 p=${PACKAGE-default}
1350 case "$enableval" in
1351 yes) enable_static=yes ;;
1352 no) enable_static=no ;;
1355 # Look at the argument we got. We use all the common list separators.
1356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1357 for pkg in $enableval; do
1358 if test "X$pkg" = "X$p"; then
1369 # Check whether --enable-fast-install or --disable-fast-install was given.
1370 if test "${enable_fast_install+set}" = set; then
1371 enableval="$enable_fast_install"
1372 p=${PACKAGE-default}
1373 case "$enableval" in
1374 yes) enable_fast_install=yes ;;
1375 no) enable_fast_install=no ;;
1377 enable_fast_install=no
1378 # Look at the argument we got. We use all the common list separators.
1379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1380 for pkg in $enableval; do
1381 if test "X$pkg" = "X$p"; then
1382 enable_fast_install=yes
1389 enable_fast_install=yes
1392 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1393 if test "${with_gnu_ld+set}" = set; then
1394 withval="$with_gnu_ld"
1395 test "$withval" = no || with_gnu_ld=yes
1401 if test "$ac_cv_prog_gcc" = yes; then
1402 # Check if gcc -print-prog-name=ld gives a path.
1403 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1404 echo "configure:1405: checking for ld used by GCC" >&5
1407 # gcc leaves a trailing carriage return which upsets mingw
1408 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1410 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1413 # Accept absolute paths.
1414 [\\/]* | [A-Za-z]:[\\/]*)
1415 re_direlt='/[^/][^/]*/\.\./'
1416 # Canonicalize the path of ld
1417 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1418 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1419 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1421 test -z "$LD" && LD="$ac_prog"
1424 # If it fails, then pretend we aren't using GCC.
1428 # If it is relative, then search for the first ld in PATH.
1432 elif test "$with_gnu_ld" = yes; then
1433 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1434 echo "configure:1435: checking for GNU ld" >&5
1436 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1437 echo "configure:1438: checking for non-GNU ld" >&5
1439 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1442 if test -z "$LD"; then
1443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1444 for ac_dir in $PATH; do
1445 test -z "$ac_dir" && ac_dir=.
1446 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1447 ac_cv_path_LD="$ac_dir/$ac_prog"
1448 # Check to see if the program is GNU ld. I'd rather use --version,
1449 # but apparently some GNU ld's only accept -v.
1450 # Break only if it was the GNU/non-GNU ld that we prefer.
1451 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1452 test "$with_gnu_ld" != no && break
1454 test "$with_gnu_ld" != yes && break
1460 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1465 if test -n "$LD"; then
1466 echo "$ac_t""$LD" 1>&6
1468 echo "$ac_t""no" 1>&6
1470 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1471 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1472 echo "configure:1473: checking if the linker ($LD) is GNU ld" >&5
1473 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1477 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1478 ac_cv_prog_gnu_ld=yes
1480 ac_cv_prog_gnu_ld=no
1484 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1485 with_gnu_ld=$ac_cv_prog_gnu_ld
1488 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1489 echo "configure:1490: checking for $LD option to reload object files" >&5
1490 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 lt_cv_ld_reload_flag='-r'
1496 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1497 reload_flag=$lt_cv_ld_reload_flag
1498 test -n "$reload_flag" && reload_flag=" $reload_flag"
1500 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1501 echo "configure:1502: checking for BSD-compatible nm" >&5
1502 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 if test -n "$NM"; then
1506 # Let the user override the test.
1509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1510 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1511 test -z "$ac_dir" && ac_dir=.
1512 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1513 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1514 # Check to see if the nm accepts a BSD-compat flag.
1515 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1516 # nm: unknown option "B" ignored
1517 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1518 ac_cv_path_NM="$tmp_nm -B"
1520 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1521 ac_cv_path_NM="$tmp_nm -p"
1524 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1525 continue # so that we can try to find one that supports BSD flags
1530 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1535 echo "$ac_t""$NM" 1>&6
1537 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1538 echo "configure:1539: checking whether ln -s works" >&5
1539 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1543 if ln -s X conftestdata 2>/dev/null
1546 ac_cv_prog_LN_S="ln -s"
1551 LN_S="$ac_cv_prog_LN_S"
1552 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1553 echo "$ac_t""yes" 1>&6
1555 echo "$ac_t""no" 1>&6
1558 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1559 echo "configure:1560: checking how to recognise dependant libraries" >&5
1560 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1563 lt_cv_file_magic_cmd='${MAGIC}'
1564 lt_cv_file_magic_test_file=
1565 lt_cv_deplibs_check_method='unknown'
1566 # Need to set the preceding variable on all platforms that support
1567 # interlibrary dependencies.
1568 # 'none' -- dependencies not supported.
1569 # `unknown' -- same as none, but documents that we really don't know.
1570 # 'pass_all' -- all dependencies passed with no checks.
1571 # 'test_compile' -- check by making test program.
1572 # 'file_magic [regex]' -- check by looking for files in library path
1573 # which responds to the $file_magic_cmd with a given egrep regex.
1574 # If you have `file' or equivalent on your system and you're not sure
1575 # whether `pass_all' will *always* work, you probably want this one.
1579 lt_cv_deplibs_check_method=pass_all
1583 lt_cv_deplibs_check_method=pass_all
1587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1588 lt_cv_file_magic_cmd='/usr/bin/file -L'
1589 lt_cv_file_magic_test_file=/shlib/libc.so
1593 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1594 lt_cv_file_magic_cmd='${OBJDUMP} -f'
1598 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1601 lt_cv_deplibs_check_method=='file_magic OpenBSD/i[3-9]86 demand paged shared library'
1602 lt_cv_file_magic_cmd=/usr/bin/file
1603 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1607 lt_cv_deplibs_check_method=pass_all
1612 lt_cv_deplibs_check_method=pass_all
1616 # TODO: Does this work for hpux-11 too?
1617 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1618 lt_cv_file_magic_cmd=/usr/bin/file
1619 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1625 # this will be overridden with pass_all, but let us keep it just in case
1626 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1630 *-32|*"-32 ") libmagic=32-bit;;
1631 *-n32|*"-n32 ") libmagic=N32;;
1632 *-64|*"-64 ") libmagic=64-bit;;
1633 *) libmagic=never-match;;
1635 # this will be overridden with pass_all, but let us keep it just in case
1636 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1639 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1640 lt_cv_deplibs_check_method=pass_all
1643 # This must be Linux ELF.
1646 alpha* | i*86 | powerpc* | sparc* | ia64* )
1647 lt_cv_deplibs_check_method=pass_all ;;
1649 # glibc up to 2.1.1 does not perform some relocations on ARM
1650 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1652 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1656 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1658 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1659 lt_cv_file_magic_cmd='/usr/bin/file -L'
1660 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1664 osf3* | osf4* | osf5*)
1665 # this will be overridden with pass_all, but let us keep it just in case
1666 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1667 lt_cv_file_magic_test_file=/shlib/libc.so
1668 lt_cv_deplibs_check_method=pass_all
1672 lt_cv_deplibs_check_method=pass_all
1676 lt_cv_deplibs_check_method=pass_all
1677 lt_cv_file_magic_test_file=/lib/libc.so
1680 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1681 case "$host_vendor" in
1683 lt_cv_deplibs_check_method=pass_all
1686 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]'
1687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1695 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1696 file_magic_cmd=$lt_cv_file_magic_cmd
1697 deplibs_check_method=$lt_cv_deplibs_check_method
1699 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1700 echo "configure:1701: checking for object suffix" >&5
1701 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1705 echo 'int i = 1;' > conftest.$ac_ext
1706 if { (eval echo configure:1707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1707 for ac_file in conftest.*; do
1710 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1714 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1719 echo "$ac_t""$ac_cv_objext" 1>&6
1720 OBJEXT=$ac_cv_objext
1721 ac_objext=$ac_cv_objext
1725 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1726 echo "configure:1727: checking for executable suffix" >&5
1727 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1734 echo 'int main () { return 0; }' > conftest.$ac_ext
1736 if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1737 for file in conftest.*; do
1739 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1740 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1744 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1747 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1752 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1753 echo "$ac_t""${ac_cv_exeext}" 1>&6
1756 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1758 # Only perform the check for file, if the check method requires it
1759 case "$deplibs_check_method" in
1761 if test "$file_magic_cmd" = '${MAGIC}'; then
1762 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1763 echo "configure:1764: checking for ${ac_tool_prefix}file" >&5
1764 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1769 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
1772 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
1775 ac_save_MAGIC="$MAGIC"
1776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1777 ac_dummy="/usr/bin:$PATH"
1778 for ac_dir in $ac_dummy; do
1779 test -z "$ac_dir" && ac_dir=.
1780 if test -f $ac_dir/${ac_tool_prefix}file; then
1781 lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
1782 if test -n "$file_magic_test_file"; then
1783 case "$deplibs_check_method" in
1785 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1786 MAGIC="$lt_cv_path_MAGIC"
1787 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1788 egrep "$file_magic_regex" > /dev/null; then
1793 *** Warning: the command libtool uses to detect shared libraries,
1794 *** $file_magic_cmd, produces output that libtool cannot recognize.
1795 *** The result is that libtool may fail to recognize shared libraries
1796 *** as such. This will affect the creation of libtool libraries that
1797 *** depend on shared libraries, but programs linked with such libtool
1798 *** libraries will work regardless of this problem. Nevertheless, you
1799 *** may want to report the problem to your system manager and/or to
1800 *** bug-libtool@gnu.org
1810 MAGIC="$ac_save_MAGIC"
1815 MAGIC="$lt_cv_path_MAGIC"
1816 if test -n "$MAGIC"; then
1817 echo "$ac_t""$MAGIC" 1>&6
1819 echo "$ac_t""no" 1>&6
1822 if test -z "$lt_cv_path_MAGIC"; then
1823 if test -n "$ac_tool_prefix"; then
1824 echo $ac_n "checking for file""... $ac_c" 1>&6
1825 echo "configure:1826: checking for file" >&5
1826 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1831 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
1834 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
1837 ac_save_MAGIC="$MAGIC"
1838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1839 ac_dummy="/usr/bin:$PATH"
1840 for ac_dir in $ac_dummy; do
1841 test -z "$ac_dir" && ac_dir=.
1842 if test -f $ac_dir/file; then
1843 lt_cv_path_MAGIC="$ac_dir/file"
1844 if test -n "$file_magic_test_file"; then
1845 case "$deplibs_check_method" in
1847 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1848 MAGIC="$lt_cv_path_MAGIC"
1849 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1850 egrep "$file_magic_regex" > /dev/null; then
1855 *** Warning: the command libtool uses to detect shared libraries,
1856 *** $file_magic_cmd, produces output that libtool cannot recognize.
1857 *** The result is that libtool may fail to recognize shared libraries
1858 *** as such. This will affect the creation of libtool libraries that
1859 *** depend on shared libraries, but programs linked with such libtool
1860 *** libraries will work regardless of this problem. Nevertheless, you
1861 *** may want to report the problem to your system manager and/or to
1862 *** bug-libtool@gnu.org
1872 MAGIC="$ac_save_MAGIC"
1877 MAGIC="$lt_cv_path_MAGIC"
1878 if test -n "$MAGIC"; then
1879 echo "$ac_t""$MAGIC" 1>&6
1881 echo "$ac_t""no" 1>&6
1893 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1894 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1896 echo "configure:1897: checking for $ac_word" >&5
1897 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 if test -n "$RANLIB"; then
1901 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1905 for ac_dir in $ac_dummy; do
1906 test -z "$ac_dir" && ac_dir=.
1907 if test -f $ac_dir/$ac_word; then
1908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1915 RANLIB="$ac_cv_prog_RANLIB"
1916 if test -n "$RANLIB"; then
1917 echo "$ac_t""$RANLIB" 1>&6
1919 echo "$ac_t""no" 1>&6
1923 if test -z "$ac_cv_prog_RANLIB"; then
1924 if test -n "$ac_tool_prefix"; then
1925 # Extract the first word of "ranlib", so it can be a program name with args.
1926 set dummy ranlib; ac_word=$2
1927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1928 echo "configure:1929: checking for $ac_word" >&5
1929 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1932 if test -n "$RANLIB"; then
1933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1937 for ac_dir in $ac_dummy; do
1938 test -z "$ac_dir" && ac_dir=.
1939 if test -f $ac_dir/$ac_word; then
1940 ac_cv_prog_RANLIB="ranlib"
1945 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1948 RANLIB="$ac_cv_prog_RANLIB"
1949 if test -n "$RANLIB"; then
1950 echo "$ac_t""$RANLIB" 1>&6
1952 echo "$ac_t""no" 1>&6
1960 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1961 set dummy ${ac_tool_prefix}strip; ac_word=$2
1962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1963 echo "configure:1964: checking for $ac_word" >&5
1964 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 if test -n "$STRIP"; then
1968 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1972 for ac_dir in $ac_dummy; do
1973 test -z "$ac_dir" && ac_dir=.
1974 if test -f $ac_dir/$ac_word; then
1975 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1982 STRIP="$ac_cv_prog_STRIP"
1983 if test -n "$STRIP"; then
1984 echo "$ac_t""$STRIP" 1>&6
1986 echo "$ac_t""no" 1>&6
1990 if test -z "$ac_cv_prog_STRIP"; then
1991 if test -n "$ac_tool_prefix"; then
1992 # Extract the first word of "strip", so it can be a program name with args.
1993 set dummy strip; ac_word=$2
1994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1995 echo "configure:1996: checking for $ac_word" >&5
1996 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 if test -n "$STRIP"; then
2000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2004 for ac_dir in $ac_dummy; do
2005 test -z "$ac_dir" && ac_dir=.
2006 if test -f $ac_dir/$ac_word; then
2007 ac_cv_prog_STRIP="strip"
2012 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2015 STRIP="$ac_cv_prog_STRIP"
2016 if test -n "$STRIP"; then
2017 echo "$ac_t""$STRIP" 1>&6
2019 echo "$ac_t""no" 1>&6
2028 # Check for any special flags to pass to ltconfig.
2029 libtool_flags="--cache-file=$cache_file"
2030 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2031 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2032 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2033 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2034 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2037 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2038 if test "${enable_libtool_lock+set}" = set; then
2039 enableval="$enable_libtool_lock"
2043 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2044 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2046 # Check whether --with-pic or --without-pic was given.
2047 if test "${with_pic+set}" = set; then
2054 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2055 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2057 # Some flags need to be propagated to the compiler or linker for good
2061 # Find out which ABI we are using.
2062 echo '#line 2063 "configure"' > conftest.$ac_ext
2063 if { (eval echo configure:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2064 case "`/usr/bin/file conftest.o`" in
2080 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2081 SAVE_CFLAGS="$CFLAGS"
2082 CFLAGS="$CFLAGS -belf"
2083 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2084 echo "configure:2085: checking whether the C compiler needs -belf" >&5
2085 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2093 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2094 cross_compiling=$ac_cv_prog_cc_cross
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2104 if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2106 lt_cv_cc_needs_belf=yes
2108 echo "configure: failed program was:" >&5
2109 cat conftest.$ac_ext >&5
2111 lt_cv_cc_needs_belf=no
2115 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2116 ac_cpp='$CPP $CPPFLAGS'
2117 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2118 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2119 cross_compiling=$ac_cv_prog_cc_cross
2123 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2124 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2125 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2126 CFLAGS="$SAVE_CFLAGS"
2134 # Save cache, so that ltconfig can load it
2135 cat > confcache <<\EOF
2136 # This file is a shell script that caches the results of configure
2137 # tests run on this system so they can be shared between configure
2138 # scripts and configure runs. It is not useful on other systems.
2139 # If it contains results you don't want to keep, you may remove or edit it.
2141 # By default, configure uses ./config.cache as the cache file,
2142 # creating it if it does not exist already. You can give configure
2143 # the --cache-file=FILE option to use a different cache file; that is
2144 # what configure does when it calls configure scripts in
2145 # subdirectories, so they share the cache.
2146 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2147 # config.status only pays attention to the cache file if you give it the
2148 # --recheck option to rerun configure.
2151 # The following way of writing the cache mishandles newlines in values,
2152 # but we know of no workaround that is simple, portable, and efficient.
2153 # So, don't put newlines in cache variables' values.
2154 # Ultrix sh set writes to stderr and can't be redirected directly,
2155 # and sets the high bit in the cache file unless we assign to the vars.
2157 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2159 # `set' does not quote correctly, so add quotes (double-quote substitution
2160 # turns \\\\ into \\, and sed turns \\ into \).
2162 -e "s/'/'\\\\''/g" \
2163 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2166 # `set' quotes correctly as required by POSIX, so do not add quotes.
2167 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2170 if cmp -s $cache_file confcache; then
2173 if test -w $cache_file; then
2174 echo "updating cache $cache_file"
2175 cat confcache > $cache_file
2177 echo "not updating unwritable cache $cache_file"
2183 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2184 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2185 MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2186 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2187 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2188 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2189 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2190 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2191 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2192 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2194 # Reload cache, that may have been modified by ltconfig
2195 if test -r "$cache_file"; then
2196 echo "loading cache $cache_file"
2199 echo "creating cache $cache_file"
2204 # This can be used to rebuild libtool when needed
2205 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2207 # Always use our own libtool.
2208 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2210 # Redirect the config.log output again, so that the ltconfig log is not
2211 # clobbered by the next message.
2212 exec 5>>./config.log
2220 # Check whether --enable-targets or --disable-targets was given.
2221 if test "${enable_targets+set}" = set; then
2222 enableval="$enable_targets"
2223 case "${enableval}" in
2224 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2226 no) enable_targets= ;;
2227 *) enable_targets=$enableval ;;
2230 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2231 if test "${enable_commonbfdlib+set}" = set; then
2232 enableval="$enable_commonbfdlib"
2233 case "${enableval}" in
2234 yes) commonbfdlib=true ;;
2235 no) commonbfdlib=false ;;
2236 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
2240 build_warnings="-W -Wall"
2241 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2242 if test "${enable_build_warnings+set}" = set; then
2243 enableval="$enable_build_warnings"
2244 case "${enableval}" in
2246 no) build_warnings="-w";;
2247 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2248 build_warnings="${build_warnings} ${t}";;
2249 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2250 build_warnings="${t} ${build_warnings}";;
2251 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2253 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2254 echo "Setting warning flags = $build_warnings" 6>&1
2258 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2259 WARN_CFLAGS="${build_warnings}"
2267 if test -z "$target" ; then
2268 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2270 if test "$program_transform_name" = s,x,x,; then
2271 program_transform_name=
2273 # Double any \ or $. echo might interpret backslashes.
2274 cat <<\EOF_SED > conftestsed
2275 s,\\,\\\\,g; s,\$,$$,g
2277 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2280 test "$program_prefix" != NONE &&
2281 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2282 # Use a double $ so make ignores it.
2283 test "$program_suffix" != NONE &&
2284 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2286 # sed with no file args requires a program.
2287 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2290 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2291 echo "configure:2292: checking whether to enable maintainer-specific portions of Makefiles" >&5
2292 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2293 if test "${enable_maintainer_mode+set}" = set; then
2294 enableval="$enable_maintainer_mode"
2295 USE_MAINTAINER_MODE=$enableval
2297 USE_MAINTAINER_MODE=no
2300 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2303 if test $USE_MAINTAINER_MODE = yes; then
2304 MAINTAINER_MODE_TRUE=
2305 MAINTAINER_MODE_FALSE='#'
2307 MAINTAINER_MODE_TRUE='#'
2308 MAINTAINER_MODE_FALSE=
2310 MAINT=$MAINTAINER_MODE_TRUE
2315 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2316 echo "configure:2317: checking for executable suffix" >&5
2317 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2324 echo 'int main () { return 0; }' > conftest.$ac_ext
2326 if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2327 for file in conftest.*; do
2329 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2330 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2334 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2337 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2342 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2343 echo "$ac_t""${ac_cv_exeext}" 1>&6
2347 # host-specific stuff:
2349 # Extract the first word of "gcc", so it can be a program name with args.
2350 set dummy gcc; ac_word=$2
2351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_word" >&5
2353 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2361 for ac_dir in $ac_dummy; do
2362 test -z "$ac_dir" && ac_dir=.
2363 if test -f $ac_dir/$ac_word; then
2372 if test -n "$CC"; then
2373 echo "$ac_t""$CC" 1>&6
2375 echo "$ac_t""no" 1>&6
2378 if test -z "$CC"; then
2379 # Extract the first word of "cc", so it can be a program name with args.
2380 set dummy cc; ac_word=$2
2381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2382 echo "configure:2383: checking for $ac_word" >&5
2383 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 if test -n "$CC"; then
2387 ac_cv_prog_CC="$CC" # Let the user override the test.
2389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2392 for ac_dir in $ac_dummy; do
2393 test -z "$ac_dir" && ac_dir=.
2394 if test -f $ac_dir/$ac_word; then
2395 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2396 ac_prog_rejected=yes
2404 if test $ac_prog_rejected = yes; then
2405 # We found a bogon in the path, so make sure we never use it.
2406 set dummy $ac_cv_prog_CC
2408 if test $# -gt 0; then
2409 # We chose a different compiler from the bogus one.
2410 # However, it has the same basename, so the bogon will be chosen
2411 # first if we set CC to just the basename; use the full file name.
2413 set dummy "$ac_dir/$ac_word" "$@"
2421 if test -n "$CC"; then
2422 echo "$ac_t""$CC" 1>&6
2424 echo "$ac_t""no" 1>&6
2427 if test -z "$CC"; then
2428 case "`uname -s`" in
2430 # Extract the first word of "cl", so it can be a program name with args.
2431 set dummy cl; ac_word=$2
2432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2433 echo "configure:2434: checking for $ac_word" >&5
2434 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2442 for ac_dir in $ac_dummy; do
2443 test -z "$ac_dir" && ac_dir=.
2444 if test -f $ac_dir/$ac_word; then
2453 if test -n "$CC"; then
2454 echo "$ac_t""$CC" 1>&6
2456 echo "$ac_t""no" 1>&6
2461 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2464 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2465 echo "configure:2466: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2468 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2469 ac_cpp='$CPP $CPPFLAGS'
2470 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2471 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2472 cross_compiling=$ac_cv_prog_cc_cross
2474 cat > conftest.$ac_ext << EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2481 if { (eval echo configure:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2482 ac_cv_prog_cc_works=yes
2483 # If we can't run a trivial program, we are probably using a cross compiler.
2484 if (./conftest; exit) 2>/dev/null; then
2485 ac_cv_prog_cc_cross=no
2487 ac_cv_prog_cc_cross=yes
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 ac_cv_prog_cc_works=no
2496 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2497 ac_cpp='$CPP $CPPFLAGS'
2498 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2499 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2500 cross_compiling=$ac_cv_prog_cc_cross
2502 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2503 if test $ac_cv_prog_cc_works = no; then
2504 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2506 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2507 echo "configure:2508: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2508 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2509 cross_compiling=$ac_cv_prog_cc_cross
2511 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2512 echo "configure:2513: checking whether we are using GNU C" >&5
2513 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2516 cat > conftest.c <<EOF
2521 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2528 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2530 if test $ac_cv_prog_gcc = yes; then
2536 ac_test_CFLAGS="${CFLAGS+set}"
2537 ac_save_CFLAGS="$CFLAGS"
2539 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2540 echo "configure:2541: checking whether ${CC-cc} accepts -g" >&5
2541 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 echo 'void f(){}' > conftest.c
2545 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2554 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2555 if test "$ac_test_CFLAGS" = set; then
2556 CFLAGS="$ac_save_CFLAGS"
2557 elif test $ac_cv_prog_cc_g = yes; then
2558 if test "$GCC" = yes; then
2564 if test "$GCC" = yes; then
2573 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2574 echo "configure:2575: checking how to run the C preprocessor" >&5
2575 # On Suns, sometimes $CPP names a directory.
2576 if test -n "$CPP" && test -d "$CPP"; then
2579 if test -z "$CPP"; then
2580 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 # This must be in double quotes, not single quotes, because CPP may get
2584 # substituted into the Makefile and "${CC-cc}" will confuse make.
2586 # On the NeXT, cc -E runs the code through the compiler's parser,
2587 # not just through cpp.
2588 cat > conftest.$ac_ext <<EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2595 { (eval echo configure:2596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2597 if test -z "$ac_err"; then
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2604 CPP="${CC-cc} -E -traditional-cpp"
2605 cat > conftest.$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2612 { (eval echo configure:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2614 if test -z "$ac_err"; then
2618 echo "configure: failed program was:" >&5
2619 cat conftest.$ac_ext >&5
2621 CPP="${CC-cc} -nologo -E"
2622 cat > conftest.$ac_ext <<EOF
2623 #line 2624 "configure"
2624 #include "confdefs.h"
2628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2629 { (eval echo configure:2630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2631 if test -z "$ac_err"; then
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2645 ac_cv_prog_CPP="$CPP"
2647 CPP="$ac_cv_prog_CPP"
2649 ac_cv_prog_CPP="$CPP"
2651 echo "$ac_t""$CPP" 1>&6
2653 # Extract the first word of "ranlib", so it can be a program name with args.
2654 set dummy ranlib; ac_word=$2
2655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2656 echo "configure:2657: checking for $ac_word" >&5
2657 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2660 if test -n "$RANLIB"; then
2661 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2665 for ac_dir in $ac_dummy; do
2666 test -z "$ac_dir" && ac_dir=.
2667 if test -f $ac_dir/$ac_word; then
2668 ac_cv_prog_RANLIB="ranlib"
2673 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2676 RANLIB="$ac_cv_prog_RANLIB"
2677 if test -n "$RANLIB"; then
2678 echo "$ac_t""$RANLIB" 1>&6
2680 echo "$ac_t""no" 1>&6
2683 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2684 echo "configure:2685: checking for ANSI C header files" >&5
2685 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2688 cat > conftest.$ac_ext <<EOF
2689 #line 2690 "configure"
2690 #include "confdefs.h"
2696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2697 { (eval echo configure:2698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2699 if test -z "$ac_err"; then
2701 ac_cv_header_stdc=yes
2704 echo "configure: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2707 ac_cv_header_stdc=no
2711 if test $ac_cv_header_stdc = yes; then
2712 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2713 cat > conftest.$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2719 egrep "memchr" >/dev/null 2>&1; then
2723 ac_cv_header_stdc=no
2729 if test $ac_cv_header_stdc = yes; then
2730 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2731 cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2737 egrep "free" >/dev/null 2>&1; then
2741 ac_cv_header_stdc=no
2747 if test $ac_cv_header_stdc = yes; then
2748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2749 if test "$cross_compiling" = yes; then
2752 cat > conftest.$ac_ext <<EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2756 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2757 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2759 int main () { int i; for (i = 0; i < 256; i++)
2760 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2764 if { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2771 ac_cv_header_stdc=no
2779 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2780 if test $ac_cv_header_stdc = yes; then
2781 cat >> confdefs.h <<\EOF
2782 #define STDC_HEADERS 1
2787 echo $ac_n "checking for working const""... $ac_c" 1>&6
2788 echo "configure:2789: checking for working const" >&5
2789 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2798 /* Ultrix mips cc rejects this. */
2799 typedef int charset[2]; const charset x;
2800 /* SunOS 4.1.1 cc rejects this. */
2801 char const *const *ccp;
2803 /* NEC SVR4.0.2 mips cc rejects this. */
2804 struct point {int x, y;};
2805 static struct point const zero = {0,0};
2806 /* AIX XL C 1.02.0.0 rejects this.
2807 It does not let you subtract one const X* pointer from another in an arm
2808 of an if-expression whose if-part is not a constant expression */
2809 const char *g = "string";
2810 ccp = &g + (g ? g-g : 0);
2811 /* HPUX 7.0 cc rejects these. */
2814 ccp = (char const *const *) p;
2815 { /* SCO 3.2v4 cc rejects this. */
2817 char const *s = 0 ? (char *) 0 : (char const *) 0;
2821 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2823 const int *foo = &x[0];
2826 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2827 typedef const int *iptr;
2831 { /* AIX XL C 1.02.0.0 rejects this saying
2832 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2833 struct s { int j; const int *ap[3]; };
2834 struct s *b; b->j = 5;
2836 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2842 if { (eval echo configure:2843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2854 echo "$ac_t""$ac_cv_c_const" 1>&6
2855 if test $ac_cv_c_const = no; then
2856 cat >> confdefs.h <<\EOF
2862 echo $ac_n "checking for inline""... $ac_c" 1>&6
2863 echo "configure:2864: checking for inline" >&5
2864 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2868 for ac_kw in inline __inline__ __inline; do
2869 cat > conftest.$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2877 if { (eval echo configure:2878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2879 ac_cv_c_inline=$ac_kw; break
2881 echo "configure: failed program was:" >&5
2882 cat conftest.$ac_ext >&5
2889 echo "$ac_t""$ac_cv_c_inline" 1>&6
2890 case "$ac_cv_c_inline" in
2892 no) cat >> confdefs.h <<\EOF
2896 *) cat >> confdefs.h <<EOF
2897 #define inline $ac_cv_c_inline
2902 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2903 echo "configure:2904: checking for off_t" >&5
2904 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2907 cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2910 #include <sys/types.h>
2916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2917 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2919 ac_cv_type_off_t=yes
2927 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2928 if test $ac_cv_type_off_t = no; then
2929 cat >> confdefs.h <<\EOF
2935 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2936 echo "configure:2937: checking for size_t" >&5
2937 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2943 #include <sys/types.h>
2949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2950 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2952 ac_cv_type_size_t=yes
2955 ac_cv_type_size_t=no
2960 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2961 if test $ac_cv_type_size_t = no; then
2962 cat >> confdefs.h <<\EOF
2963 #define size_t unsigned
2968 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2969 # for constant arguments. Useless!
2970 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2971 echo "configure:2972: checking for working alloca.h" >&5
2972 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2980 char *p = alloca(2 * sizeof(int));
2983 if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2985 ac_cv_header_alloca_h=yes
2987 echo "configure: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2990 ac_cv_header_alloca_h=no
2995 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2996 if test $ac_cv_header_alloca_h = yes; then
2997 cat >> confdefs.h <<\EOF
2998 #define HAVE_ALLOCA_H 1
3003 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3004 echo "configure:3005: checking for alloca" >&5
3005 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3013 # define alloca __builtin_alloca
3016 # include <malloc.h>
3017 # define alloca _alloca
3020 # include <alloca.h>
3025 # ifndef alloca /* predefined by HP cc +Olibcalls */
3034 char *p = (char *) alloca(1);
3037 if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3039 ac_cv_func_alloca_works=yes
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3044 ac_cv_func_alloca_works=no
3049 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3050 if test $ac_cv_func_alloca_works = yes; then
3051 cat >> confdefs.h <<\EOF
3052 #define HAVE_ALLOCA 1
3057 if test $ac_cv_func_alloca_works = no; then
3058 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3059 # that cause trouble. Some versions do not even contain alloca or
3060 # contain a buggy version. If you still want to use their alloca,
3061 # use ar to extract alloca.o from them instead of compiling alloca.c.
3062 ALLOCA=alloca.${ac_objext}
3063 cat >> confdefs.h <<\EOF
3068 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3069 echo "configure:3070: checking whether alloca needs Cray hooks" >&5
3070 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3073 cat > conftest.$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076 #if defined(CRAY) && ! defined(CRAY2)
3083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3084 egrep "webecray" >/dev/null 2>&1; then
3095 echo "$ac_t""$ac_cv_os_cray" 1>&6
3096 if test $ac_cv_os_cray = yes; then
3097 for ac_func in _getb67 GETB67 getb67; do
3098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3099 echo "configure:3100: checking for $ac_func" >&5
3100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3103 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3106 /* System header to define __stub macros and hopefully few prototypes,
3107 which can conflict with char $ac_func(); below. */
3109 /* Override any gcc2 internal prototype to avoid an error. */
3110 /* We use char because int might match the return type of a gcc2
3111 builtin and then its argument prototype would still apply. */
3116 /* The GNU C library defines this for functions which it implements
3117 to always fail with ENOSYS. Some functions are actually named
3118 something starting with __ and the normal name is an alias. */
3119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3127 if { (eval echo configure:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3129 eval "ac_cv_func_$ac_func=yes"
3131 echo "configure: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3134 eval "ac_cv_func_$ac_func=no"
3139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3140 echo "$ac_t""yes" 1>&6
3141 cat >> confdefs.h <<EOF
3142 #define CRAY_STACKSEG_END $ac_func
3147 echo "$ac_t""no" 1>&6
3153 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3154 echo "configure:3155: checking stack direction for C alloca" >&5
3155 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 if test "$cross_compiling" = yes; then
3159 ac_cv_c_stack_direction=0
3161 cat > conftest.$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3164 find_stack_direction ()
3166 static char *addr = 0;
3171 return find_stack_direction ();
3174 return (&dummy > addr) ? 1 : -1;
3178 exit (find_stack_direction() < 0);
3181 if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3183 ac_cv_c_stack_direction=1
3185 echo "configure: failed program was:" >&5
3186 cat conftest.$ac_ext >&5
3188 ac_cv_c_stack_direction=-1
3195 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3196 cat >> confdefs.h <<EOF
3197 #define STACK_DIRECTION $ac_cv_c_stack_direction
3202 for ac_hdr in unistd.h
3204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3206 echo "configure:3207: checking for $ac_hdr" >&5
3207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3210 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3216 { (eval echo configure:3217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3218 if test -z "$ac_err"; then
3220 eval "ac_cv_header_$ac_safe=yes"
3223 echo "configure: failed program was:" >&5
3224 cat conftest.$ac_ext >&5
3226 eval "ac_cv_header_$ac_safe=no"
3230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3231 echo "$ac_t""yes" 1>&6
3232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3233 cat >> confdefs.h <<EOF
3234 #define $ac_tr_hdr 1
3238 echo "$ac_t""no" 1>&6
3242 for ac_func in getpagesize
3244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3245 echo "configure:3246: checking for $ac_func" >&5
3246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 /* System header to define __stub macros and hopefully few prototypes,
3253 which can conflict with char $ac_func(); below. */
3255 /* Override any gcc2 internal prototype to avoid an error. */
3256 /* We use char because int might match the return type of a gcc2
3257 builtin and then its argument prototype would still apply. */
3262 /* The GNU C library defines this for functions which it implements
3263 to always fail with ENOSYS. Some functions are actually named
3264 something starting with __ and the normal name is an alias. */
3265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3275 eval "ac_cv_func_$ac_func=yes"
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3280 eval "ac_cv_func_$ac_func=no"
3285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3286 echo "$ac_t""yes" 1>&6
3287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3288 cat >> confdefs.h <<EOF
3289 #define $ac_tr_func 1
3293 echo "$ac_t""no" 1>&6
3297 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3298 echo "configure:3299: checking for working mmap" >&5
3299 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 if test "$cross_compiling" = yes; then
3303 ac_cv_func_mmap_fixed_mapped=no
3305 cat > conftest.$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3309 /* Thanks to Mike Haertel and Jim Avera for this test.
3310 Here is a matrix of mmap possibilities:
3311 mmap private not fixed
3312 mmap private fixed at somewhere currently unmapped
3313 mmap private fixed at somewhere already mapped
3314 mmap shared not fixed
3315 mmap shared fixed at somewhere currently unmapped
3316 mmap shared fixed at somewhere already mapped
3317 For private mappings, we should verify that changes cannot be read()
3318 back from the file, nor mmap's back from the file at a different
3319 address. (There have been systems where private was not correctly
3320 implemented like the infamous i386 svr4.0, and systems where the
3321 VM page cache was not coherent with the filesystem buffer cache
3322 like early versions of FreeBSD and possibly contemporary NetBSD.)
3323 For shared mappings, we should conversely verify that changes get
3324 propogated back to all the places they're supposed to be.
3326 Grep wants private fixed already mapped.
3327 The main things grep needs to know about mmap are:
3328 * does it exist and is it safe to write into the mmap'd area
3329 * how to use it (BSD variants) */
3330 #include <sys/types.h>
3332 #include <sys/mman.h>
3334 /* This mess was copied from the GNU getpagesize.h. */
3335 #ifndef HAVE_GETPAGESIZE
3336 # ifdef HAVE_UNISTD_H
3337 # include <unistd.h>
3340 /* Assume that all systems that can run configure have sys/param.h. */
3341 # ifndef HAVE_SYS_PARAM_H
3342 # define HAVE_SYS_PARAM_H 1
3345 # ifdef _SC_PAGESIZE
3346 # define getpagesize() sysconf(_SC_PAGESIZE)
3347 # else /* no _SC_PAGESIZE */
3348 # ifdef HAVE_SYS_PARAM_H
3349 # include <sys/param.h>
3350 # ifdef EXEC_PAGESIZE
3351 # define getpagesize() EXEC_PAGESIZE
3352 # else /* no EXEC_PAGESIZE */
3354 # define getpagesize() NBPG * CLSIZE
3357 # endif /* no CLSIZE */
3358 # else /* no NBPG */
3360 # define getpagesize() NBPC
3361 # else /* no NBPC */
3363 # define getpagesize() PAGESIZE
3364 # endif /* PAGESIZE */
3365 # endif /* no NBPC */
3366 # endif /* no NBPG */
3367 # endif /* no EXEC_PAGESIZE */
3368 # else /* no HAVE_SYS_PARAM_H */
3369 # define getpagesize() 8192 /* punt totally */
3370 # endif /* no HAVE_SYS_PARAM_H */
3371 # endif /* no _SC_PAGESIZE */
3373 #endif /* no HAVE_GETPAGESIZE */
3376 extern "C" { void *malloc(unsigned); }
3384 char *data, *data2, *data3;
3388 pagesize = getpagesize();
3391 * First, make a file with some known garbage in it.
3393 data = malloc(pagesize);
3396 for (i = 0; i < pagesize; ++i)
3397 *(data + i) = rand();
3399 fd = creat("conftestmmap", 0600);
3402 if (write(fd, data, pagesize) != pagesize)
3407 * Next, try to mmap the file at a fixed address which
3408 * already has something else allocated at it. If we can,
3409 * also make sure that we see the same garbage.
3411 fd = open("conftestmmap", O_RDWR);
3414 data2 = malloc(2 * pagesize);
3417 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3418 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3419 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3421 for (i = 0; i < pagesize; ++i)
3422 if (*(data + i) != *(data2 + i))
3426 * Finally, make sure that changes to the mapped area
3427 * do not percolate back to the file as seen by read().
3428 * (This is a bug on some variants of i386 svr4.0.)
3430 for (i = 0; i < pagesize; ++i)
3431 *(data2 + i) = *(data2 + i) + 1;
3432 data3 = malloc(pagesize);
3435 if (read(fd, data3, pagesize) != pagesize)
3437 for (i = 0; i < pagesize; ++i)
3438 if (*(data + i) != *(data3 + i))
3441 unlink("conftestmmap");
3446 if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3448 ac_cv_func_mmap_fixed_mapped=yes
3450 echo "configure: failed program was:" >&5
3451 cat conftest.$ac_ext >&5
3453 ac_cv_func_mmap_fixed_mapped=no
3460 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3461 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3462 cat >> confdefs.h <<\EOF
3469 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3470 unistd.h values.h sys/param.h
3472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3474 echo "configure:3475: checking for $ac_hdr" >&5
3475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3478 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3484 { (eval echo configure:3485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3486 if test -z "$ac_err"; then
3488 eval "ac_cv_header_$ac_safe=yes"
3491 echo "configure: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3494 eval "ac_cv_header_$ac_safe=no"
3498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3499 echo "$ac_t""yes" 1>&6
3500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3501 cat >> confdefs.h <<EOF
3502 #define $ac_tr_hdr 1
3506 echo "$ac_t""no" 1>&6
3510 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3511 __argz_count __argz_stringify __argz_next
3513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3514 echo "configure:3515: checking for $ac_func" >&5
3515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 /* System header to define __stub macros and hopefully few prototypes,
3522 which can conflict with char $ac_func(); below. */
3524 /* Override any gcc2 internal prototype to avoid an error. */
3525 /* We use char because int might match the return type of a gcc2
3526 builtin and then its argument prototype would still apply. */
3531 /* The GNU C library defines this for functions which it implements
3532 to always fail with ENOSYS. Some functions are actually named
3533 something starting with __ and the normal name is an alias. */
3534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3542 if { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3544 eval "ac_cv_func_$ac_func=yes"
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3549 eval "ac_cv_func_$ac_func=no"
3554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3555 echo "$ac_t""yes" 1>&6
3556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3557 cat >> confdefs.h <<EOF
3558 #define $ac_tr_func 1
3562 echo "$ac_t""no" 1>&6
3567 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3568 for ac_func in stpcpy
3570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3571 echo "configure:3572: checking for $ac_func" >&5
3572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 /* System header to define __stub macros and hopefully few prototypes,
3579 which can conflict with char $ac_func(); below. */
3581 /* Override any gcc2 internal prototype to avoid an error. */
3582 /* We use char because int might match the return type of a gcc2
3583 builtin and then its argument prototype would still apply. */
3588 /* The GNU C library defines this for functions which it implements
3589 to always fail with ENOSYS. Some functions are actually named
3590 something starting with __ and the normal name is an alias. */
3591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3599 if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3601 eval "ac_cv_func_$ac_func=yes"
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3606 eval "ac_cv_func_$ac_func=no"
3611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3612 echo "$ac_t""yes" 1>&6
3613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3614 cat >> confdefs.h <<EOF
3615 #define $ac_tr_func 1
3619 echo "$ac_t""no" 1>&6
3624 if test "${ac_cv_func_stpcpy}" = "yes"; then
3625 cat >> confdefs.h <<\EOF
3626 #define HAVE_STPCPY 1
3631 if test $ac_cv_header_locale_h = yes; then
3632 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3633 echo "configure:3634: checking for LC_MESSAGES" >&5
3634 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3637 cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3645 if { (eval echo configure:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3647 am_cv_val_LC_MESSAGES=yes
3649 echo "configure: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3652 am_cv_val_LC_MESSAGES=no
3657 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3658 if test $am_cv_val_LC_MESSAGES = yes; then
3659 cat >> confdefs.h <<\EOF
3660 #define HAVE_LC_MESSAGES 1
3665 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3666 echo "configure:3667: checking whether NLS is requested" >&5
3667 # Check whether --enable-nls or --disable-nls was given.
3668 if test "${enable_nls+set}" = set; then
3669 enableval="$enable_nls"
3675 echo "$ac_t""$USE_NLS" 1>&6
3678 USE_INCLUDED_LIBINTL=no
3680 if test "$USE_NLS" = "yes"; then
3681 cat >> confdefs.h <<\EOF
3682 #define ENABLE_NLS 1
3685 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3686 echo "configure:3687: checking whether included gettext is requested" >&5
3687 # Check whether --with-included-gettext or --without-included-gettext was given.
3688 if test "${with_included_gettext+set}" = set; then
3689 withval="$with_included_gettext"
3690 nls_cv_force_use_gnu_gettext=$withval
3692 nls_cv_force_use_gnu_gettext=no
3695 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3697 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3698 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3700 nls_cv_header_libgt=
3703 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3704 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3705 echo "configure:3706: checking for libintl.h" >&5
3706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3709 cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 #include <libintl.h>
3714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3715 { (eval echo configure:3716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3717 if test -z "$ac_err"; then
3719 eval "ac_cv_header_$ac_safe=yes"
3722 echo "configure: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3725 eval "ac_cv_header_$ac_safe=no"
3729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3730 echo "$ac_t""yes" 1>&6
3731 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3732 echo "configure:3733: checking for gettext in libc" >&5
3733 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 #include <libintl.h>
3741 return (int) gettext ("")
3744 if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3746 gt_cv_func_gettext_libc=yes
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3751 gt_cv_func_gettext_libc=no
3756 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3758 if test "$gt_cv_func_gettext_libc" != "yes"; then
3759 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3760 echo "configure:3761: checking for bindtextdomain in -lintl" >&5
3761 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3765 ac_save_LIBS="$LIBS"
3767 cat > conftest.$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 /* Override any gcc2 internal prototype to avoid an error. */
3771 /* We use char because int might match the return type of a gcc2
3772 builtin and then its argument prototype would still apply. */
3773 char bindtextdomain();
3779 if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3781 eval "ac_cv_lib_$ac_lib_var=yes"
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3786 eval "ac_cv_lib_$ac_lib_var=no"
3789 LIBS="$ac_save_LIBS"
3792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3793 echo "$ac_t""yes" 1>&6
3794 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3795 echo "configure:3796: checking for gettext in libintl" >&5
3796 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3799 cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3804 return (int) gettext ("")
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3809 gt_cv_func_gettext_libintl=yes
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3814 gt_cv_func_gettext_libintl=no
3819 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3821 echo "$ac_t""no" 1>&6
3826 if test "$gt_cv_func_gettext_libc" = "yes" \
3827 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3828 cat >> confdefs.h <<\EOF
3829 #define HAVE_GETTEXT 1
3832 # Extract the first word of "msgfmt", so it can be a program name with args.
3833 set dummy msgfmt; ac_word=$2
3834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3835 echo "configure:3836: checking for $ac_word" >&5
3836 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3841 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3845 for ac_dir in $PATH; do
3846 test -z "$ac_dir" && ac_dir=.
3847 if test -f $ac_dir/$ac_word; then
3848 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3849 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3855 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3859 MSGFMT="$ac_cv_path_MSGFMT"
3860 if test -n "$MSGFMT"; then
3861 echo "$ac_t""$MSGFMT" 1>&6
3863 echo "$ac_t""no" 1>&6
3865 if test "$MSGFMT" != "no"; then
3866 for ac_func in dcgettext
3868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3869 echo "configure:3870: checking for $ac_func" >&5
3870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876 /* System header to define __stub macros and hopefully few prototypes,
3877 which can conflict with char $ac_func(); below. */
3879 /* Override any gcc2 internal prototype to avoid an error. */
3880 /* We use char because int might match the return type of a gcc2
3881 builtin and then its argument prototype would still apply. */
3886 /* The GNU C library defines this for functions which it implements
3887 to always fail with ENOSYS. Some functions are actually named
3888 something starting with __ and the normal name is an alias. */
3889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3897 if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3899 eval "ac_cv_func_$ac_func=yes"
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3904 eval "ac_cv_func_$ac_func=no"
3909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3910 echo "$ac_t""yes" 1>&6
3911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3912 cat >> confdefs.h <<EOF
3913 #define $ac_tr_func 1
3917 echo "$ac_t""no" 1>&6
3921 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3922 set dummy gmsgfmt; ac_word=$2
3923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3924 echo "configure:3925: checking for $ac_word" >&5
3925 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3930 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3933 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3938 for ac_dir in $ac_dummy; do
3939 test -z "$ac_dir" && ac_dir=.
3940 if test -f $ac_dir/$ac_word; then
3941 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3946 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3950 GMSGFMT="$ac_cv_path_GMSGFMT"
3951 if test -n "$GMSGFMT"; then
3952 echo "$ac_t""$GMSGFMT" 1>&6
3954 echo "$ac_t""no" 1>&6
3957 # Extract the first word of "xgettext", so it can be a program name with args.
3958 set dummy xgettext; ac_word=$2
3959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3960 echo "configure:3961: checking for $ac_word" >&5
3961 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3966 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3970 for ac_dir in $PATH; do
3971 test -z "$ac_dir" && ac_dir=.
3972 if test -f $ac_dir/$ac_word; then
3973 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3974 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3980 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3984 XGETTEXT="$ac_cv_path_XGETTEXT"
3985 if test -n "$XGETTEXT"; then
3986 echo "$ac_t""$XGETTEXT" 1>&6
3988 echo "$ac_t""no" 1>&6
3991 cat > conftest.$ac_ext <<EOF
3992 #line 3993 "configure"
3993 #include "confdefs.h"
3996 extern int _nl_msg_cat_cntr;
3997 return _nl_msg_cat_cntr
4000 if { (eval echo configure:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4005 echo "configure: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4017 echo "$ac_t""no" 1>&6
4022 if test "$CATOBJEXT" = "NONE"; then
4023 nls_cv_use_gnu_gettext=yes
4027 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4028 INTLOBJS="\$(GETTOBJS)"
4029 # Extract the first word of "msgfmt", so it can be a program name with args.
4030 set dummy msgfmt; ac_word=$2
4031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4032 echo "configure:4033: checking for $ac_word" >&5
4033 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4034 echo $ac_n "(cached) $ac_c" 1>&6
4038 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4042 for ac_dir in $PATH; do
4043 test -z "$ac_dir" && ac_dir=.
4044 if test -f $ac_dir/$ac_word; then
4045 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4046 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4052 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4056 MSGFMT="$ac_cv_path_MSGFMT"
4057 if test -n "$MSGFMT"; then
4058 echo "$ac_t""$MSGFMT" 1>&6
4060 echo "$ac_t""no" 1>&6
4063 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4064 set dummy gmsgfmt; ac_word=$2
4065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4066 echo "configure:4067: checking for $ac_word" >&5
4067 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4072 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4075 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4080 for ac_dir in $ac_dummy; do
4081 test -z "$ac_dir" && ac_dir=.
4082 if test -f $ac_dir/$ac_word; then
4083 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4088 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4092 GMSGFMT="$ac_cv_path_GMSGFMT"
4093 if test -n "$GMSGFMT"; then
4094 echo "$ac_t""$GMSGFMT" 1>&6
4096 echo "$ac_t""no" 1>&6
4099 # Extract the first word of "xgettext", so it can be a program name with args.
4100 set dummy xgettext; ac_word=$2
4101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4102 echo "configure:4103: checking for $ac_word" >&5
4103 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4104 echo $ac_n "(cached) $ac_c" 1>&6
4108 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4112 for ac_dir in $PATH; do
4113 test -z "$ac_dir" && ac_dir=.
4114 if test -f $ac_dir/$ac_word; then
4115 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4116 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4122 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4126 XGETTEXT="$ac_cv_path_XGETTEXT"
4127 if test -n "$XGETTEXT"; then
4128 echo "$ac_t""$XGETTEXT" 1>&6
4130 echo "$ac_t""no" 1>&6
4134 USE_INCLUDED_LIBINTL=yes
4138 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4140 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4141 nls_cv_header_intl=libintl.h
4142 nls_cv_header_libgt=libgettext.h
4145 if test "$XGETTEXT" != ":"; then
4146 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4149 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4154 # We need to process the po/ directory.
4158 nls_cv_header_intl=libintl.h
4159 nls_cv_header_libgt=libgettext.h
4162 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4163 # because some of the sources are only built for this goal.
4164 if test "$PACKAGE" = gettext; then
4166 USE_INCLUDED_LIBINTL=yes
4169 for lang in $ALL_LINGUAS; do
4170 GMOFILES="$GMOFILES $lang.gmo"
4171 POFILES="$POFILES $lang.po"
4187 if test "x$CATOBJEXT" != "x"; then
4188 if test "x$ALL_LINGUAS" = "x"; then
4191 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4192 echo "configure:4193: checking for catalogs to be installed" >&5
4194 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4195 case "$ALL_LINGUAS" in
4196 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4199 LINGUAS=$NEW_LINGUAS
4200 echo "$ac_t""$LINGUAS" 1>&6
4203 if test -n "$LINGUAS"; then
4204 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4208 if test $ac_cv_header_locale_h = yes; then
4209 INCLUDE_LOCALE_H="#include <locale.h>"
4212 /* The system does not provide the header <locale.h>. Take care yourself. */"
4216 if test -f $srcdir/po2tbl.sed.in; then
4217 if test "$CATOBJEXT" = ".cat"; then
4218 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4219 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4220 echo "configure:4221: checking for linux/version.h" >&5
4221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 #include <linux/version.h>
4229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4230 { (eval echo configure:4231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4232 if test -z "$ac_err"; then
4234 eval "ac_cv_header_$ac_safe=yes"
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 eval "ac_cv_header_$ac_safe=no"
4244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4245 echo "$ac_t""yes" 1>&6
4248 echo "$ac_t""no" 1>&6
4253 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4255 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4256 $srcdir/po2tbl.sed.in > po2tbl.sed
4259 if test "$PACKAGE" = "gettext"; then
4269 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4275 if test -d $srcdir/po; then
4276 test -d po || mkdir po
4277 if test "x$srcdir" != "x."; then
4278 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4279 posrcprefix="$srcdir/"
4281 posrcprefix="../$srcdir/"
4287 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4288 < $srcdir/po/POTFILES.in > po/POTFILES
4292 . ${srcdir}/../bfd/configure.host
4295 # Find a good install program. We prefer a C program (faster),
4296 # so one script is as good as another. But avoid the broken or
4297 # incompatible versions:
4298 # SysV /etc/install, /usr/sbin/install
4299 # SunOS /usr/etc/install
4300 # IRIX /sbin/install
4302 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4303 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4304 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4305 # ./install, which can be erroneously created by make from ./install.sh.
4306 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4307 echo "configure:4308: checking for a BSD compatible install" >&5
4308 if test -z "$INSTALL"; then
4309 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4312 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4313 for ac_dir in $PATH; do
4314 # Account for people who put trailing slashes in PATH elements.
4316 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4318 # OSF1 and SCO ODT 3.0 have their own names for install.
4319 # Don't use installbsd from OSF since it installs stuff as root
4321 for ac_prog in ginstall scoinst install; do
4322 if test -f $ac_dir/$ac_prog; then
4323 if test $ac_prog = install &&
4324 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4325 # AIX install. It has an incompatible calling convention.
4328 ac_cv_path_install="$ac_dir/$ac_prog -c"
4339 if test "${ac_cv_path_install+set}" = set; then
4340 INSTALL="$ac_cv_path_install"
4342 # As a last resort, use the slow shell script. We don't cache a
4343 # path for INSTALL within a source directory, because that will
4344 # break other packages using the cache if that directory is
4345 # removed, or if the path is relative.
4346 INSTALL="$ac_install_sh"
4349 echo "$ac_t""$INSTALL" 1>&6
4351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4352 # It thinks the first close brace ends the variable substitution.
4353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4360 for ac_hdr in string.h strings.h stdlib.h
4362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4364 echo "configure:4365: checking for $ac_hdr" >&5
4365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 cat > conftest.$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4374 { (eval echo configure:4375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4376 if test -z "$ac_err"; then
4378 eval "ac_cv_header_$ac_safe=yes"
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4384 eval "ac_cv_header_$ac_safe=no"
4388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4389 echo "$ac_t""yes" 1>&6
4390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4391 cat >> confdefs.h <<EOF
4392 #define $ac_tr_hdr 1
4396 echo "$ac_t""no" 1>&6
4402 cgendir='$(srcdir)/../cgen'
4404 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
4405 if test "${enable_cgen_maint+set}" = set; then
4406 enableval="$enable_cgen_maint"
4407 case "${enableval}" in
4408 yes) cgen_maint=yes ;;
4409 no) cgen_maint=no ;;
4411 # argument is cgen install directory (not implemented yet).
4412 # Having a `share' directory might be more appropriate for the .scm,
4415 cgendir=${cgen_maint}/lib/cgen
4421 if test x${cgen_maint} = xyes; then
4423 CGEN_MAINT_FALSE='#'
4432 # Horrible hacks to build DLLs on Windows.
4437 if test "$enable_shared" = "yes"; then
4438 WIN32LDFLAGS="-no-undefined"
4439 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
4446 # target-specific stuff:
4448 # Canonicalize the secondary target names.
4449 if test -n "$enable_targets" ; then
4450 for targ in `echo $enable_targets | sed 's/,/ /g'`
4452 result=`$ac_config_sub $targ 2>/dev/null`
4453 if test -n "$result" ; then
4454 canon_targets="$canon_targets $result"
4456 # Allow targets that config.sub doesn't recognize, like "all".
4457 canon_targets="$canon_targets $targ"
4464 for targ in $target $canon_targets
4466 if test "x$targ" = "xall" ; then
4469 . $srcdir/../bfd/config.bfd
4470 selarchs="$selarchs $targ_archs"
4474 # Utility var, documents generic cgen support files.
4476 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
4478 # We don't do any links based on the target system, just makefile config.
4480 if test x${all_targets} = xfalse ; then
4482 # Target architecture .o files.
4485 for arch in $selarchs
4487 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
4488 archdefs="$archdefs -DARCH_$ad"
4490 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
4491 bfd_alliant_arch) ;;
4492 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
4493 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo" ;;
4494 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
4495 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4497 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;;
4498 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
4499 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
4500 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
4501 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
4502 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
4503 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
4504 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
4505 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
4506 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
4507 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
4508 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
4509 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 ;;
4510 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
4511 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
4512 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
4513 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
4514 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
4515 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
4516 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
4517 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
4518 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
4519 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
4520 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4521 bfd_pyramid_arch) ;;
4523 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4524 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4525 bfd_sh_arch) ta="$ta sh-dis.lo" ;;
4526 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
4528 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
4529 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
4530 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
4531 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4532 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4533 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4534 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
4535 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
4537 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
4540 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
4544 if test $using_cgen = yes ; then
4545 ta="$ta $cgen_files"
4548 # Weed out duplicate .o files.
4558 # And duplicate -D flags.
4560 for i in $archdefs ; do
4570 else # all_targets is true
4572 BFD_MACHINES='$(ALL_MACHINES)'
4579 cat > confcache <<\EOF
4580 # This file is a shell script that caches the results of configure
4581 # tests run on this system so they can be shared between configure
4582 # scripts and configure runs. It is not useful on other systems.
4583 # If it contains results you don't want to keep, you may remove or edit it.
4585 # By default, configure uses ./config.cache as the cache file,
4586 # creating it if it does not exist already. You can give configure
4587 # the --cache-file=FILE option to use a different cache file; that is
4588 # what configure does when it calls configure scripts in
4589 # subdirectories, so they share the cache.
4590 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4591 # config.status only pays attention to the cache file if you give it the
4592 # --recheck option to rerun configure.
4595 # The following way of writing the cache mishandles newlines in values,
4596 # but we know of no workaround that is simple, portable, and efficient.
4597 # So, don't put newlines in cache variables' values.
4598 # Ultrix sh set writes to stderr and can't be redirected directly,
4599 # and sets the high bit in the cache file unless we assign to the vars.
4601 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4603 # `set' does not quote correctly, so add quotes (double-quote substitution
4604 # turns \\\\ into \\, and sed turns \\ into \).
4606 -e "s/'/'\\\\''/g" \
4607 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4610 # `set' quotes correctly as required by POSIX, so do not add quotes.
4611 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4614 if cmp -s $cache_file confcache; then
4617 if test -w $cache_file; then
4618 echo "updating cache $cache_file"
4619 cat confcache > $cache_file
4621 echo "not updating unwritable cache $cache_file"
4626 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4629 # Let make expand exec_prefix.
4630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4632 # Any assignment to VPATH causes Sun make to only execute
4633 # the first set of double-colon rules, so remove it if not needed.
4634 # If there is a colon in the path, we need to keep it.
4635 if test "x$srcdir" = x.; then
4636 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4639 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4641 DEFS=-DHAVE_CONFIG_H
4643 # Without the "./", some shells look in PATH for config.status.
4644 : ${CONFIG_STATUS=./config.status}
4646 echo creating $CONFIG_STATUS
4647 rm -f $CONFIG_STATUS
4648 cat > $CONFIG_STATUS <<EOF
4650 # Generated automatically by configure.
4651 # Run this file to recreate the current configuration.
4652 # This directory was configured as follows,
4653 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4655 # $0 $ac_configure_args
4657 # Compiler output produced by configure, useful for debugging
4658 # configure, is in ./config.log if it exists.
4660 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4663 case "\$ac_option" in
4664 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4665 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4666 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4667 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4668 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4670 -help | --help | --hel | --he | --h)
4671 echo "\$ac_cs_usage"; exit 0 ;;
4672 *) echo "\$ac_cs_usage"; exit 1 ;;
4676 ac_given_srcdir=$srcdir
4677 ac_given_INSTALL="$INSTALL"
4679 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4681 cat >> $CONFIG_STATUS <<EOF
4683 # Protect against being on the right side of a sed subst in config.status.
4684 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4685 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4689 s%@CFLAGS@%$CFLAGS%g
4690 s%@CPPFLAGS@%$CPPFLAGS%g
4691 s%@CXXFLAGS@%$CXXFLAGS%g
4692 s%@FFLAGS@%$FFLAGS%g
4694 s%@LDFLAGS@%$LDFLAGS%g
4696 s%@exec_prefix@%$exec_prefix%g
4697 s%@prefix@%$prefix%g
4698 s%@program_transform_name@%$program_transform_name%g
4699 s%@bindir@%$bindir%g
4700 s%@sbindir@%$sbindir%g
4701 s%@libexecdir@%$libexecdir%g
4702 s%@datadir@%$datadir%g
4703 s%@sysconfdir@%$sysconfdir%g
4704 s%@sharedstatedir@%$sharedstatedir%g
4705 s%@localstatedir@%$localstatedir%g
4706 s%@libdir@%$libdir%g
4707 s%@includedir@%$includedir%g
4708 s%@oldincludedir@%$oldincludedir%g
4709 s%@infodir@%$infodir%g
4710 s%@mandir@%$mandir%g
4712 s%@host_alias@%$host_alias%g
4713 s%@host_cpu@%$host_cpu%g
4714 s%@host_vendor@%$host_vendor%g
4715 s%@host_os@%$host_os%g
4716 s%@target@%$target%g
4717 s%@target_alias@%$target_alias%g
4718 s%@target_cpu@%$target_cpu%g
4719 s%@target_vendor@%$target_vendor%g
4720 s%@target_os@%$target_os%g
4722 s%@build_alias@%$build_alias%g
4723 s%@build_cpu@%$build_cpu%g
4724 s%@build_vendor@%$build_vendor%g
4725 s%@build_os@%$build_os%g
4727 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4728 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4729 s%@INSTALL_DATA@%$INSTALL_DATA%g
4730 s%@PACKAGE@%$PACKAGE%g
4731 s%@VERSION@%$VERSION%g
4732 s%@ACLOCAL@%$ACLOCAL%g
4733 s%@AUTOCONF@%$AUTOCONF%g
4734 s%@AUTOMAKE@%$AUTOMAKE%g
4735 s%@AUTOHEADER@%$AUTOHEADER%g
4736 s%@MAKEINFO@%$MAKEINFO%g
4737 s%@SET_MAKE@%$SET_MAKE%g
4739 s%@RANLIB@%$RANLIB%g
4741 s%@OBJEXT@%$OBJEXT%g
4742 s%@EXEEXT@%$EXEEXT%g
4744 s%@LIBTOOL@%$LIBTOOL%g
4745 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4746 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4747 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4750 s%@ALLOCA@%$ALLOCA%g
4751 s%@USE_NLS@%$USE_NLS%g
4752 s%@MSGFMT@%$MSGFMT%g
4753 s%@GMSGFMT@%$GMSGFMT%g
4754 s%@XGETTEXT@%$XGETTEXT%g
4755 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4756 s%@CATALOGS@%$CATALOGS%g
4757 s%@CATOBJEXT@%$CATOBJEXT%g
4758 s%@DATADIRNAME@%$DATADIRNAME%g
4759 s%@GMOFILES@%$GMOFILES%g
4760 s%@INSTOBJEXT@%$INSTOBJEXT%g
4761 s%@INTLDEPS@%$INTLDEPS%g
4762 s%@INTLLIBS@%$INTLLIBS%g
4763 s%@INTLOBJS@%$INTLOBJS%g
4764 s%@POFILES@%$POFILES%g
4766 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4768 s%@GT_YES@%$GT_YES%g
4769 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4771 s%@HDEFINES@%$HDEFINES%g
4772 s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
4773 s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
4774 s%@cgendir@%$cgendir%g
4775 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4776 s%@WIN32LIBADD@%$WIN32LIBADD%g
4777 s%@archdefs@%$archdefs%g
4778 s%@BFD_MACHINES@%$BFD_MACHINES%g
4783 cat >> $CONFIG_STATUS <<\EOF
4785 # Split the substitutions into bite-sized pieces for seds with
4786 # small command number limits, like on Digital OSF/1 and HP-UX.
4787 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4788 ac_file=1 # Number of current file.
4789 ac_beg=1 # First line for current file.
4790 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4793 while $ac_more_lines; do
4794 if test $ac_beg -gt 1; then
4795 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4797 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4799 if test ! -s conftest.s$ac_file; then
4801 rm -f conftest.s$ac_file
4803 if test -z "$ac_sed_cmds"; then
4804 ac_sed_cmds="sed -f conftest.s$ac_file"
4806 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4808 ac_file=`expr $ac_file + 1`
4810 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4813 if test -z "$ac_sed_cmds"; then
4818 cat >> $CONFIG_STATUS <<EOF
4820 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4822 cat >> $CONFIG_STATUS <<\EOF
4823 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4826 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4827 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4828 *) ac_file_in="${ac_file}.in" ;;
4831 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4833 # Remove last slash and all that follows it. Not all systems have dirname.
4834 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4835 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4836 # The file is in a subdirectory.
4837 test ! -d "$ac_dir" && mkdir "$ac_dir"
4838 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4839 # A "../" for each directory in $ac_dir_suffix.
4840 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4842 ac_dir_suffix= ac_dots=
4845 case "$ac_given_srcdir" in
4847 if test -z "$ac_dots"; then top_srcdir=.
4848 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4849 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4851 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4852 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4855 case "$ac_given_INSTALL" in
4856 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4857 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4860 echo creating "$ac_file"
4862 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4864 *Makefile*) ac_comsub="1i\\
4865 # $configure_input" ;;
4869 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4871 s%@configure_input@%$configure_input%g
4872 s%@srcdir@%$srcdir%g
4873 s%@top_srcdir@%$top_srcdir%g
4874 s%@INSTALL@%$INSTALL%g
4875 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4879 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4880 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4882 # ac_d sets the value in "#define NAME VALUE" lines.
4883 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4884 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4887 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4888 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4889 ac_uB='\([ ]\)%\1#\2define\3'
4892 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4893 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4894 ac_eB='$%\1#\2define\3'
4898 if test "${CONFIG_HEADERS+set}" != set; then
4900 cat >> $CONFIG_STATUS <<EOF
4901 CONFIG_HEADERS="config.h:config.in"
4903 cat >> $CONFIG_STATUS <<\EOF
4905 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4906 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4908 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4909 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4910 *) ac_file_in="${ac_file}.in" ;;
4913 echo creating $ac_file
4915 rm -f conftest.frag conftest.in conftest.out
4916 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4917 cat $ac_file_inputs > conftest.in
4921 # Transform confdefs.h into a sed script conftest.vals that substitutes
4922 # the proper values into config.h.in to produce config.h. And first:
4923 # Protect against being on the right side of a sed subst in config.status.
4924 # Protect against being in an unquoted here document in config.status.
4926 cat > conftest.hdr <<\EOF
4929 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4933 sed -n -f conftest.hdr confdefs.h > conftest.vals
4936 # This sed command replaces #undef with comments. This is necessary, for
4937 # example, in the case of _POSIX_SOURCE, which is predefined and required
4938 # on some systems where configure will not decide to define it.
4939 cat >> conftest.vals <<\EOF
4940 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4943 # Break up conftest.vals because some shells have a limit on
4944 # the size of here documents, and old seds have small limits too.
4949 ac_lines=`grep -c . conftest.vals`
4950 # grep -c gives empty output for an empty file on some AIX systems.
4951 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4952 # Write a limited-size here document to conftest.frag.
4953 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4954 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4956 sed -f conftest.frag conftest.in > conftest.out
4958 mv conftest.out conftest.in
4960 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4962 mv conftest.tail conftest.vals
4966 cat >> $CONFIG_STATUS <<\EOF
4967 rm -f conftest.frag conftest.h
4968 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4969 cat conftest.in >> conftest.h
4971 if cmp -s $ac_file conftest.h 2>/dev/null; then
4972 echo "$ac_file is unchanged"
4975 # Remove last slash and all that follows it. Not all systems have dirname.
4976 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4977 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4978 # The file is in a subdirectory.
4979 test ! -d "$ac_dir" && mkdir "$ac_dir"
4982 mv conftest.h $ac_file
4987 cat >> $CONFIG_STATUS <<EOF
4991 cat >> $CONFIG_STATUS <<\EOF
4992 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4993 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4996 chmod +x $CONFIG_STATUS
4997 rm -fr confdefs* $ac_clean_files
4998 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1