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=yes]"
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 force libtool not to do file locking"
25 --enable-targets alternative target configurations"
27 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
29 --disable-nls do not use Native Language Support"
31 --with-included-gettext use the GNU gettext library included here"
33 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file=./config.cache
49 program_transform_name=s,x,x,
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --site-file=FILE use FILE as the site file
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host | --host | --hos | --ho)
214 -host=* | --host=* | --hos=* | --ho=*)
217 -includedir | --includedir | --includedi | --included | --include \
218 | --includ | --inclu | --incl | --inc)
219 ac_prev=includedir ;;
220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221 | --includ=* | --inclu=* | --incl=* | --inc=*)
222 includedir="$ac_optarg" ;;
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
229 -libdir | --libdir | --libdi | --libd)
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235 | --libexe | --libex | --libe)
236 ac_prev=libexecdir ;;
237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238 | --libexe=* | --libex=* | --libe=*)
239 libexecdir="$ac_optarg" ;;
241 -localstatedir | --localstatedir | --localstatedi | --localstated \
242 | --localstate | --localstat | --localsta | --localst \
243 | --locals | --local | --loca | --loc | --lo)
244 ac_prev=localstatedir ;;
245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248 localstatedir="$ac_optarg" ;;
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269 | --oldin | --oldi | --old | --ol | --o)
270 ac_prev=oldincludedir ;;
271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274 oldincludedir="$ac_optarg" ;;
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
282 | --program-pre | --program-pr | --program-p)
283 ac_prev=program_prefix ;;
284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286 program_prefix="$ac_optarg" ;;
288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
289 | --program-suf | --program-su | --program-s)
290 ac_prev=program_suffix ;;
291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293 program_suffix="$ac_optarg" ;;
295 -program-transform-name | --program-transform-name \
296 | --program-transform-nam | --program-transform-na \
297 | --program-transform-n | --program-transform- \
298 | --program-transform | --program-transfor \
299 | --program-transfo | --program-transf \
300 | --program-trans | --program-tran \
301 | --progr-tra | --program-tr | --program-t)
302 ac_prev=program_transform_name ;;
303 -program-transform-name=* | --program-transform-name=* \
304 | --program-transform-nam=* | --program-transform-na=* \
305 | --program-transform-n=* | --program-transform-=* \
306 | --program-transform=* | --program-transfor=* \
307 | --program-transfo=* | --program-transf=* \
308 | --program-trans=* | --program-tran=* \
309 | --progr-tra=* | --program-tr=* | --program-t=*)
310 program_transform_name="$ac_optarg" ;;
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 sbindir="$ac_optarg" ;;
322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324 | --sharedst | --shareds | --shared | --share | --shar \
326 ac_prev=sharedstatedir ;;
327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 sharedstatedir="$ac_optarg" ;;
333 -site | --site | --sit)
335 -site=* | --site=* | --sit=*)
338 -site-file | --site-file | --site-fil | --site-fi | --site-f)
340 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
341 sitefile="$ac_optarg" ;;
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=ldmain.c
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$sitefile"; then
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 CONFIG_SITE="$sitefile"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='\c' ac_t=
558 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
559 if test -f $ac_dir/install-sh; then
561 ac_install_sh="$ac_aux_dir/install-sh -c"
563 elif test -f $ac_dir/install.sh; then
565 ac_install_sh="$ac_aux_dir/install.sh -c"
569 if test -z "$ac_aux_dir"; then
570 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
572 ac_config_guess=$ac_aux_dir/config.guess
573 ac_config_sub=$ac_aux_dir/config.sub
574 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
577 # Do some error checking and defaulting for the host and target type.
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---*---* | *---NONE---* | *---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
607 case "$host_alias" in
611 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
614 *) host_alias=$nonopt ;;
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
628 case "$target_alias" in
631 NONE) target_alias=$host_alias ;;
632 *) target_alias=$nonopt ;;
636 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
646 case "$build_alias" in
649 NONE) build_alias=$host_alias ;;
650 *) build_alias=$nonopt ;;
654 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
663 program_prefix=${target_alias}-
666 # Find a good install program. We prefer a C program (faster),
667 # so one script is as good as another. But avoid the broken or
668 # incompatible versions:
669 # SysV /etc/install, /usr/sbin/install
670 # SunOS /usr/etc/install
673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
676 # ./install, which can be erroneously created by make from ./install.sh.
677 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
678 echo "configure:679: checking for a BSD compatible install" >&5
679 if test -z "$INSTALL"; then
680 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
684 for ac_dir in $PATH; do
685 # Account for people who put trailing slashes in PATH elements.
687 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
689 # OSF1 and SCO ODT 3.0 have their own names for install.
690 # Don't use installbsd from OSF since it installs stuff as root
692 for ac_prog in ginstall scoinst install; do
693 if test -f $ac_dir/$ac_prog; then
694 if test $ac_prog = install &&
695 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
696 # AIX install. It has an incompatible calling convention.
699 ac_cv_path_install="$ac_dir/$ac_prog -c"
710 if test "${ac_cv_path_install+set}" = set; then
711 INSTALL="$ac_cv_path_install"
713 # As a last resort, use the slow shell script. We don't cache a
714 # path for INSTALL within a source directory, because that will
715 # break other packages using the cache if that directory is
716 # removed, or if the path is relative.
717 INSTALL="$ac_install_sh"
720 echo "$ac_t""$INSTALL" 1>&6
722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
723 # It thinks the first close brace ends the variable substitution.
724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
730 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
731 echo "configure:732: checking whether build environment is sane" >&5
734 echo timestamp > conftestfile
735 # Do `set' in a subshell so we don't clobber the current shell's
736 # arguments. Must try -L first in case configure is actually a
737 # symlink; some systems play weird games with the mod time of symlinks
738 # (eg FreeBSD returns the mod time of the symlink's containing
741 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
742 if test "$*" = "X"; then
744 set X `ls -t $srcdir/configure conftestfile`
746 if test "$*" != "X $srcdir/configure conftestfile" \
747 && test "$*" != "X conftestfile $srcdir/configure"; then
749 # If neither matched, then we have a broken ls. This can happen
750 # if, for instance, CONFIG_SHELL is bash and it inherits a
751 # broken ls alias from the environment. This has actually
752 # happened. Such a system could not be considered "sane".
753 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
754 alias in your environment" 1>&2; exit 1; }
757 test "$2" = conftestfile
763 { echo "configure: error: newly created file is older than distributed files!
764 Check your system clock" 1>&2; exit 1; }
767 echo "$ac_t""yes" 1>&6
768 if test "$program_transform_name" = s,x,x,; then
769 program_transform_name=
771 # Double any \ or $. echo might interpret backslashes.
772 cat <<\EOF_SED > conftestsed
773 s,\\,\\\\,g; s,\$,$$,g
775 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
778 test "$program_prefix" != NONE &&
779 program_transform_name="s,^,${program_prefix},; $program_transform_name"
780 # Use a double $ so make ignores it.
781 test "$program_suffix" != NONE &&
782 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
784 # sed with no file args requires a program.
785 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
787 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
788 echo "configure:789: checking whether ${MAKE-make} sets \${MAKE}" >&5
789 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
790 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
793 cat > conftestmake <<\EOF
795 @echo 'ac_maketemp="${MAKE}"'
797 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
798 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
799 if test -n "$ac_maketemp"; then
800 eval ac_cv_prog_make_${ac_make}_set=yes
802 eval ac_cv_prog_make_${ac_make}_set=no
806 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
807 echo "$ac_t""yes" 1>&6
810 echo "$ac_t""no" 1>&6
811 SET_MAKE="MAKE=${MAKE-make}"
819 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
820 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
822 cat >> confdefs.h <<EOF
823 #define PACKAGE "$PACKAGE"
826 cat >> confdefs.h <<EOF
827 #define VERSION "$VERSION"
832 missing_dir=`cd $ac_aux_dir && pwd`
833 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
834 echo "configure:835: checking for working aclocal" >&5
835 # Run test in a subshell; some versions of sh will print an error if
836 # an executable is not found, even if stderr is redirected.
837 # Redirect stdin to placate older versions of autoconf. Sigh.
838 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
840 echo "$ac_t""found" 1>&6
842 ACLOCAL="$missing_dir/missing aclocal"
843 echo "$ac_t""missing" 1>&6
846 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
847 echo "configure:848: checking for working autoconf" >&5
848 # Run test in a subshell; some versions of sh will print an error if
849 # an executable is not found, even if stderr is redirected.
850 # Redirect stdin to placate older versions of autoconf. Sigh.
851 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
853 echo "$ac_t""found" 1>&6
855 AUTOCONF="$missing_dir/missing autoconf"
856 echo "$ac_t""missing" 1>&6
859 echo $ac_n "checking for working automake""... $ac_c" 1>&6
860 echo "configure:861: checking for working automake" >&5
861 # Run test in a subshell; some versions of sh will print an error if
862 # an executable is not found, even if stderr is redirected.
863 # Redirect stdin to placate older versions of autoconf. Sigh.
864 if (automake --version) < /dev/null > /dev/null 2>&1; then
866 echo "$ac_t""found" 1>&6
868 AUTOMAKE="$missing_dir/missing automake"
869 echo "$ac_t""missing" 1>&6
872 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
873 echo "configure:874: checking for working autoheader" >&5
874 # Run test in a subshell; some versions of sh will print an error if
875 # an executable is not found, even if stderr is redirected.
876 # Redirect stdin to placate older versions of autoconf. Sigh.
877 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
878 AUTOHEADER=autoheader
879 echo "$ac_t""found" 1>&6
881 AUTOHEADER="$missing_dir/missing autoheader"
882 echo "$ac_t""missing" 1>&6
885 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
886 echo "configure:887: checking for working makeinfo" >&5
887 # Run test in a subshell; some versions of sh will print an error if
888 # an executable is not found, even if stderr is redirected.
889 # Redirect stdin to placate older versions of autoconf. Sigh.
890 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
892 echo "$ac_t""found" 1>&6
894 MAKEINFO="$missing_dir/missing makeinfo"
895 echo "$ac_t""missing" 1>&6
900 # Check whether --enable-shared or --disable-shared was given.
901 if test "${enable_shared+set}" = set; then
902 enableval="$enable_shared"
905 yes) enable_shared=yes ;;
906 no) enable_shared=no ;;
909 # Look at the argument we got. We use all the common list separators.
910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
911 for pkg in $enableval; do
912 if test "X$pkg" = "X$p"; then
923 # Check whether --enable-static or --disable-static was given.
924 if test "${enable_static+set}" = set; then
925 enableval="$enable_static"
928 yes) enable_static=yes ;;
929 no) enable_static=no ;;
932 # Look at the argument we got. We use all the common list separators.
933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
934 for pkg in $enableval; do
935 if test "X$pkg" = "X$p"; then
946 # Check whether --enable-fast-install or --disable-fast-install was given.
947 if test "${enable_fast_install+set}" = set; then
948 enableval="$enable_fast_install"
951 yes) enable_fast_install=yes ;;
952 no) enable_fast_install=no ;;
954 enable_fast_install=no
955 # Look at the argument we got. We use all the common list separators.
956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
957 for pkg in $enableval; do
958 if test "X$pkg" = "X$p"; then
959 enable_fast_install=yes
966 enable_fast_install=yes
969 # Extract the first word of "ranlib", so it can be a program name with args.
970 set dummy ranlib; ac_word=$2
971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
972 echo "configure:973: checking for $ac_word" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 if test -n "$RANLIB"; then
977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
981 for ac_dir in $ac_dummy; do
982 test -z "$ac_dir" && ac_dir=.
983 if test -f $ac_dir/$ac_word; then
984 ac_cv_prog_RANLIB="ranlib"
989 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
992 RANLIB="$ac_cv_prog_RANLIB"
993 if test -n "$RANLIB"; then
994 echo "$ac_t""$RANLIB" 1>&6
996 echo "$ac_t""no" 1>&6
999 # Extract the first word of "gcc", so it can be a program name with args.
1000 set dummy gcc; ac_word=$2
1001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1002 echo "configure:1003: checking for $ac_word" >&5
1003 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 if test -n "$CC"; then
1007 ac_cv_prog_CC="$CC" # Let the user override the test.
1009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1011 for ac_dir in $ac_dummy; do
1012 test -z "$ac_dir" && ac_dir=.
1013 if test -f $ac_dir/$ac_word; then
1022 if test -n "$CC"; then
1023 echo "$ac_t""$CC" 1>&6
1025 echo "$ac_t""no" 1>&6
1028 if test -z "$CC"; then
1029 # Extract the first word of "cc", so it can be a program name with args.
1030 set dummy cc; ac_word=$2
1031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1032 echo "configure:1033: checking for $ac_word" >&5
1033 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 if test -n "$CC"; then
1037 ac_cv_prog_CC="$CC" # Let the user override the test.
1039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1042 for ac_dir in $ac_dummy; do
1043 test -z "$ac_dir" && ac_dir=.
1044 if test -f $ac_dir/$ac_word; then
1045 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1046 ac_prog_rejected=yes
1054 if test $ac_prog_rejected = yes; then
1055 # We found a bogon in the path, so make sure we never use it.
1056 set dummy $ac_cv_prog_CC
1058 if test $# -gt 0; then
1059 # We chose a different compiler from the bogus one.
1060 # However, it has the same basename, so the bogon will be chosen
1061 # first if we set CC to just the basename; use the full file name.
1063 set dummy "$ac_dir/$ac_word" "$@"
1071 if test -n "$CC"; then
1072 echo "$ac_t""$CC" 1>&6
1074 echo "$ac_t""no" 1>&6
1077 if test -z "$CC"; then
1078 case "`uname -s`" in
1080 # Extract the first word of "cl", so it can be a program name with args.
1081 set dummy cl; ac_word=$2
1082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1083 echo "configure:1084: checking for $ac_word" >&5
1084 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 if test -n "$CC"; then
1088 ac_cv_prog_CC="$CC" # Let the user override the test.
1090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1092 for ac_dir in $ac_dummy; do
1093 test -z "$ac_dir" && ac_dir=.
1094 if test -f $ac_dir/$ac_word; then
1103 if test -n "$CC"; then
1104 echo "$ac_t""$CC" 1>&6
1106 echo "$ac_t""no" 1>&6
1111 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1114 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1115 echo "configure:1116: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1119 ac_cpp='$CPP $CPPFLAGS'
1120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1121 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1122 cross_compiling=$ac_cv_prog_cc_cross
1124 cat > conftest.$ac_ext << EOF
1126 #line 1127 "configure"
1127 #include "confdefs.h"
1131 if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1132 ac_cv_prog_cc_works=yes
1133 # If we can't run a trivial program, we are probably using a cross compiler.
1134 if (./conftest; exit) 2>/dev/null; then
1135 ac_cv_prog_cc_cross=no
1137 ac_cv_prog_cc_cross=yes
1140 echo "configure: failed program was:" >&5
1141 cat conftest.$ac_ext >&5
1142 ac_cv_prog_cc_works=no
1146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1147 ac_cpp='$CPP $CPPFLAGS'
1148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1150 cross_compiling=$ac_cv_prog_cc_cross
1152 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1153 if test $ac_cv_prog_cc_works = no; then
1154 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1156 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1157 echo "configure:1158: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1158 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1159 cross_compiling=$ac_cv_prog_cc_cross
1161 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether we are using GNU C" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 cat > conftest.c <<EOF
1171 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1178 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1180 if test $ac_cv_prog_gcc = yes; then
1186 ac_test_CFLAGS="${CFLAGS+set}"
1187 ac_save_CFLAGS="$CFLAGS"
1189 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether ${CC-cc} accepts -g" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 echo 'void f(){}' > conftest.c
1195 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1204 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1205 if test "$ac_test_CFLAGS" = set; then
1206 CFLAGS="$ac_save_CFLAGS"
1207 elif test $ac_cv_prog_cc_g = yes; then
1208 if test "$GCC" = yes; then
1214 if test "$GCC" = yes; then
1221 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1222 if test "${with_gnu_ld+set}" = set; then
1223 withval="$with_gnu_ld"
1224 test "$withval" = no || with_gnu_ld=yes
1230 if test "$ac_cv_prog_gcc" = yes; then
1231 # Check if gcc -print-prog-name=ld gives a path.
1232 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1233 echo "configure:1234: checking for ld used by GCC" >&5
1234 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1236 # Accept absolute paths.
1237 /* | [A-Za-z]:[\\/]*)
1238 re_direlt='/[^/][^/]*/\.\./'
1239 # Canonicalize the path of ld
1240 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1241 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1242 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1244 test -z "$LD" && LD="$ac_prog"
1247 # If it fails, then pretend we aren't using GCC.
1251 # If it is relative, then search for the first ld in PATH.
1255 elif test "$with_gnu_ld" = yes; then
1256 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1257 echo "configure:1258: checking for GNU ld" >&5
1259 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1260 echo "configure:1261: checking for non-GNU ld" >&5
1262 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 if test -z "$LD"; then
1266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1267 for ac_dir in $PATH; do
1268 test -z "$ac_dir" && ac_dir=.
1269 if test -f "$ac_dir/$ac_prog"; then
1270 ac_cv_path_LD="$ac_dir/$ac_prog"
1271 # Check to see if the program is GNU ld. I'd rather use --version,
1272 # but apparently some GNU ld's only accept -v.
1273 # Break only if it was the GNU/non-GNU ld that we prefer.
1274 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1275 test "$with_gnu_ld" != no && break
1277 test "$with_gnu_ld" != yes && break
1283 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1288 if test -n "$LD"; then
1289 echo "$ac_t""$LD" 1>&6
1291 echo "$ac_t""no" 1>&6
1293 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1295 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1296 echo "configure:1297: checking if the linker ($LD) is GNU ld" >&5
1297 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1301 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1302 ac_cv_prog_gnu_ld=yes
1304 ac_cv_prog_gnu_ld=no
1308 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1311 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1312 echo "configure:1313: checking for BSD-compatible nm" >&5
1313 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 if test -n "$NM"; then
1317 # Let the user override the test.
1320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1321 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1322 test -z "$ac_dir" && ac_dir=.
1323 if test -f $ac_dir/nm; then
1324 # Check to see if the nm accepts a BSD-compat flag.
1325 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1326 # nm: unknown option "B" ignored
1327 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1328 ac_cv_path_NM="$ac_dir/nm -B"
1330 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1331 ac_cv_path_NM="$ac_dir/nm -p"
1334 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1335 continue # so that we can try to find one that supports BSD flags
1340 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1345 echo "$ac_t""$NM" 1>&6
1348 # Check for command to grab the raw symbol name followed by C symbol from nm.
1349 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1350 echo "configure:1351: checking command to parse $NM output" >&5
1351 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 # These are sane defaults that work on at least a few old systems.
1355 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1357 # Character class describing NM global symbol codes.
1358 ac_symcode='[BCDEGRST]'
1360 # Regexp to match symbols that can be accessed directly from C.
1361 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1363 # Transform the above into a raw symbol and a C symbol.
1364 ac_symxfrm='\1 \2\3 \3'
1366 # Transform an extracted symbol line into a proper C declaration
1367 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1369 # Define system-specific variables.
1375 ac_symcode='[ABCDGISTW]'
1378 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1381 ac_symcode='[BCDEGRST]'
1388 # If we're using GNU nm, then use its standard symbol codes.
1389 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1390 ac_symcode='[ABCDGISTW]'
1393 # Try without a prefix undercore, then with it.
1394 for ac_symprfx in "" "_"; do
1396 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1398 # Check to see that the pipe works correctly.
1400 rm -f conftest.$ac_ext
1401 cat > conftest.$ac_ext <<EOF
1406 void nm_test_func(){}
1410 int main(){nm_test_var='a';nm_test_func;return 0;}
1413 if { (eval echo configure:1414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1414 # Now try to grab the symbols.
1415 ac_nlist=conftest.nm
1417 if { (eval echo configure:1418: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1419 # Try sorting and uniquifying the output.
1420 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
1421 mv -f "$ac_nlist"T "$ac_nlist"
1426 # Make sure that we snagged all the symbols we need.
1427 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
1428 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
1429 cat <<EOF > conftest.c
1435 # Now generate the symbol file.
1436 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1438 cat <<EOF >> conftest.c
1439 #if defined (__STDC__) && __STDC__
1440 # define lt_ptr_t void *
1442 # define lt_ptr_t char *
1446 /* The mapping between symbol names and symbols. */
1451 lt_preloaded_symbols[] =
1454 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1455 cat <<\EOF >> conftest.c
1463 # Now try linking the two files.
1464 mv conftest.$ac_objext conftestm.$ac_objext
1465 ac_save_LIBS="$LIBS"
1466 ac_save_CFLAGS="$CFLAGS"
1467 LIBS="conftestm.$ac_objext"
1468 CFLAGS="$CFLAGS$no_builtin_flag"
1469 if { (eval echo configure:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1472 echo "configure: failed program was:" >&5
1475 LIBS="$ac_save_LIBS"
1476 CFLAGS="$ac_save_CFLAGS"
1478 echo "cannot find nm_test_func in $ac_nlist" >&5
1481 echo "cannot find nm_test_var in $ac_nlist" >&5
1484 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1487 echo "$progname: failed program was:" >&5
1492 # Do not use the global_symbol_pipe unless it works.
1493 if test "$ac_pipe_works" = yes; then
1494 if test x"$ac_symprfx" = x"_"; then
1495 ac_cv_sys_symbol_underscore=yes
1497 ac_cv_sys_symbol_underscore=no
1501 ac_cv_sys_global_symbol_pipe=
1509 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1512 echo "$ac_t""$ac_result" 1>&6
1514 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1515 echo "configure:1516: checking for _ prefix in compiled symbols" >&5
1516 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 ac_cv_sys_symbol_underscore=no
1520 cat > conftest.$ac_ext <<EOF
1521 void nm_test_func(){}
1522 int main(){nm_test_func;return 0;}
1524 if { (eval echo configure:1525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1525 # Now try to grab the symbols.
1526 ac_nlist=conftest.nm
1527 if { (eval echo configure:1528: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1528 # See whether the symbols have a leading underscore.
1529 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
1530 ac_cv_sys_symbol_underscore=yes
1532 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
1535 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1539 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1542 echo "configure: failed program was:" >&5
1549 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1550 USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
1552 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1553 echo "configure:1554: checking whether ln -s works" >&5
1554 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1558 if ln -s X conftestdata 2>/dev/null
1561 ac_cv_prog_LN_S="ln -s"
1566 LN_S="$ac_cv_prog_LN_S"
1567 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1568 echo "$ac_t""yes" 1>&6
1570 echo "$ac_t""no" 1>&6
1573 if test $host != $build; then
1574 ac_tool_prefix=${host_alias}-
1580 # Check for any special flags to pass to ltconfig.
1581 libtool_flags="--cache-file=$cache_file"
1582 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1583 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1584 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1585 test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
1586 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1587 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1588 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1590 # Some flags need to be propagated to the compiler or linker for good
1594 # Find out which ABI we are using.
1595 echo '#line 1596 "configure"' > conftest.$ac_ext
1596 if { (eval echo configure:1597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1597 case "`/usr/bin/file conftest.o`" in
1613 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1614 SAVE_CFLAGS="$CFLAGS"
1615 CFLAGS="$CFLAGS -belf"
1616 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1617 echo "configure:1618: checking whether the C compiler needs -belf" >&5
1618 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1621 cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1629 if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1631 lt_cv_cc_needs_belf=yes
1633 echo "configure: failed program was:" >&5
1634 cat conftest.$ac_ext >&5
1636 lt_cv_cc_needs_belf=no
1641 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1642 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1643 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1644 CFLAGS="$SAVE_CFLAGS"
1649 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1650 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1652 echo "configure:1653: checking for $ac_word" >&5
1653 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1656 if test -n "$DLLTOOL"; then
1657 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1661 for ac_dir in $ac_dummy; do
1662 test -z "$ac_dir" && ac_dir=.
1663 if test -f $ac_dir/$ac_word; then
1664 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1671 DLLTOOL="$ac_cv_prog_DLLTOOL"
1672 if test -n "$DLLTOOL"; then
1673 echo "$ac_t""$DLLTOOL" 1>&6
1675 echo "$ac_t""no" 1>&6
1679 if test -z "$ac_cv_prog_DLLTOOL"; then
1680 if test -n "$ac_tool_prefix"; then
1681 # Extract the first word of "dlltool", so it can be a program name with args.
1682 set dummy dlltool; ac_word=$2
1683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1684 echo "configure:1685: checking for $ac_word" >&5
1685 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1688 if test -n "$DLLTOOL"; then
1689 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1693 for ac_dir in $ac_dummy; do
1694 test -z "$ac_dir" && ac_dir=.
1695 if test -f $ac_dir/$ac_word; then
1696 ac_cv_prog_DLLTOOL="dlltool"
1701 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1704 DLLTOOL="$ac_cv_prog_DLLTOOL"
1705 if test -n "$DLLTOOL"; then
1706 echo "$ac_t""$DLLTOOL" 1>&6
1708 echo "$ac_t""no" 1>&6
1716 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1717 set dummy ${ac_tool_prefix}as; ac_word=$2
1718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1719 echo "configure:1720: checking for $ac_word" >&5
1720 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 if test -n "$AS"; then
1724 ac_cv_prog_AS="$AS" # Let the user override the test.
1726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1728 for ac_dir in $ac_dummy; do
1729 test -z "$ac_dir" && ac_dir=.
1730 if test -f $ac_dir/$ac_word; then
1731 ac_cv_prog_AS="${ac_tool_prefix}as"
1739 if test -n "$AS"; then
1740 echo "$ac_t""$AS" 1>&6
1742 echo "$ac_t""no" 1>&6
1746 if test -z "$ac_cv_prog_AS"; then
1747 if test -n "$ac_tool_prefix"; then
1748 # Extract the first word of "as", so it can be a program name with args.
1749 set dummy as; ac_word=$2
1750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1751 echo "configure:1752: checking for $ac_word" >&5
1752 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 if test -n "$AS"; then
1756 ac_cv_prog_AS="$AS" # Let the user override the test.
1758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1760 for ac_dir in $ac_dummy; do
1761 test -z "$ac_dir" && ac_dir=.
1762 if test -f $ac_dir/$ac_word; then
1768 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1772 if test -n "$AS"; then
1773 echo "$ac_t""$AS" 1>&6
1775 echo "$ac_t""no" 1>&6
1788 # enable the --disable-libtool-lock switch
1790 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1791 if test "${enable_libtool_lock+set}" = set; then
1792 enableval="$enable_libtool_lock"
1793 need_locks=$enableval
1799 if test x"$need_locks" = xno; then
1800 libtool_flags="$libtool_flags --disable-lock"
1804 # Save cache, so that ltconfig can load it
1805 cat > confcache <<\EOF
1806 # This file is a shell script that caches the results of configure
1807 # tests run on this system so they can be shared between configure
1808 # scripts and configure runs. It is not useful on other systems.
1809 # If it contains results you don't want to keep, you may remove or edit it.
1811 # By default, configure uses ./config.cache as the cache file,
1812 # creating it if it does not exist already. You can give configure
1813 # the --cache-file=FILE option to use a different cache file; that is
1814 # what configure does when it calls configure scripts in
1815 # subdirectories, so they share the cache.
1816 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1817 # config.status only pays attention to the cache file if you give it the
1818 # --recheck option to rerun configure.
1821 # The following way of writing the cache mishandles newlines in values,
1822 # but we know of no workaround that is simple, portable, and efficient.
1823 # So, don't put newlines in cache variables' values.
1824 # Ultrix sh set writes to stderr and can't be redirected directly,
1825 # and sets the high bit in the cache file unless we assign to the vars.
1827 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1829 # `set' does not quote correctly, so add quotes (double-quote substitution
1830 # turns \\\\ into \\, and sed turns \\ into \).
1832 -e "s/'/'\\\\''/g" \
1833 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1836 # `set' quotes correctly as required by POSIX, so do not add quotes.
1837 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1840 if cmp -s $cache_file confcache; then
1843 if test -w $cache_file; then
1844 echo "updating cache $cache_file"
1845 cat confcache > $cache_file
1847 echo "not updating unwritable cache $cache_file"
1853 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1854 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1855 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1856 DLLTOOL="$DLLTOOL" AS="$AS" \
1857 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1858 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1859 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1861 # Reload cache, that may have been modified by ltconfig
1862 if test -r "$cache_file"; then
1863 echo "loading cache $cache_file"
1866 echo "creating cache $cache_file"
1871 # This can be used to rebuild libtool when needed
1872 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1874 # Always use our own libtool.
1875 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1877 # Redirect the config.log output again, so that the ltconfig log is not
1878 # clobbered by the next message.
1879 exec 5>>./config.log
1882 # Check whether --enable-targets or --disable-targets was given.
1883 if test "${enable_targets+set}" = set; then
1884 enableval="$enable_targets"
1885 case "${enableval}" in
1886 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1888 no) enable_targets= ;;
1889 *) enable_targets=$enableval ;;
1892 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1893 if test "${enable_64_bit_bfd+set}" = set; then
1894 enableval="$enable_64_bit_bfd"
1895 case "${enableval}" in
1898 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1908 if test -z "$target" ; then
1909 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1911 if test -z "$host" ; then
1912 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
1915 # host-specific stuff:
1917 # Extract the first word of "gcc", so it can be a program name with args.
1918 set dummy gcc; ac_word=$2
1919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1920 echo "configure:1921: checking for $ac_word" >&5
1921 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1924 if test -n "$CC"; then
1925 ac_cv_prog_CC="$CC" # Let the user override the test.
1927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1929 for ac_dir in $ac_dummy; do
1930 test -z "$ac_dir" && ac_dir=.
1931 if test -f $ac_dir/$ac_word; then
1940 if test -n "$CC"; then
1941 echo "$ac_t""$CC" 1>&6
1943 echo "$ac_t""no" 1>&6
1946 if test -z "$CC"; then
1947 # Extract the first word of "cc", so it can be a program name with args.
1948 set dummy cc; ac_word=$2
1949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1950 echo "configure:1951: checking for $ac_word" >&5
1951 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 if test -n "$CC"; then
1955 ac_cv_prog_CC="$CC" # Let the user override the test.
1957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1960 for ac_dir in $ac_dummy; do
1961 test -z "$ac_dir" && ac_dir=.
1962 if test -f $ac_dir/$ac_word; then
1963 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1964 ac_prog_rejected=yes
1972 if test $ac_prog_rejected = yes; then
1973 # We found a bogon in the path, so make sure we never use it.
1974 set dummy $ac_cv_prog_CC
1976 if test $# -gt 0; then
1977 # We chose a different compiler from the bogus one.
1978 # However, it has the same basename, so the bogon will be chosen
1979 # first if we set CC to just the basename; use the full file name.
1981 set dummy "$ac_dir/$ac_word" "$@"
1989 if test -n "$CC"; then
1990 echo "$ac_t""$CC" 1>&6
1992 echo "$ac_t""no" 1>&6
1995 if test -z "$CC"; then
1996 case "`uname -s`" in
1998 # Extract the first word of "cl", so it can be a program name with args.
1999 set dummy cl; ac_word=$2
2000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2001 echo "configure:2002: checking for $ac_word" >&5
2002 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
2008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2010 for ac_dir in $ac_dummy; do
2011 test -z "$ac_dir" && ac_dir=.
2012 if test -f $ac_dir/$ac_word; then
2021 if test -n "$CC"; then
2022 echo "$ac_t""$CC" 1>&6
2024 echo "$ac_t""no" 1>&6
2029 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2032 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2033 echo "configure:2034: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2036 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2037 ac_cpp='$CPP $CPPFLAGS'
2038 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2039 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2040 cross_compiling=$ac_cv_prog_cc_cross
2042 cat > conftest.$ac_ext << EOF
2044 #line 2045 "configure"
2045 #include "confdefs.h"
2049 if { (eval echo configure:2050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2050 ac_cv_prog_cc_works=yes
2051 # If we can't run a trivial program, we are probably using a cross compiler.
2052 if (./conftest; exit) 2>/dev/null; then
2053 ac_cv_prog_cc_cross=no
2055 ac_cv_prog_cc_cross=yes
2058 echo "configure: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2060 ac_cv_prog_cc_works=no
2064 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2065 ac_cpp='$CPP $CPPFLAGS'
2066 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2067 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2068 cross_compiling=$ac_cv_prog_cc_cross
2070 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2071 if test $ac_cv_prog_cc_works = no; then
2072 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2074 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2075 echo "configure:2076: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2076 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2077 cross_compiling=$ac_cv_prog_cc_cross
2079 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2080 echo "configure:2081: checking whether we are using GNU C" >&5
2081 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2084 cat > conftest.c <<EOF
2089 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2096 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2098 if test $ac_cv_prog_gcc = yes; then
2104 ac_test_CFLAGS="${CFLAGS+set}"
2105 ac_save_CFLAGS="$CFLAGS"
2107 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2108 echo "configure:2109: checking whether ${CC-cc} accepts -g" >&5
2109 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 echo 'void f(){}' > conftest.c
2113 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2122 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2123 if test "$ac_test_CFLAGS" = set; then
2124 CFLAGS="$ac_save_CFLAGS"
2125 elif test $ac_cv_prog_cc_g = yes; then
2126 if test "$GCC" = yes; then
2132 if test "$GCC" = yes; then
2139 # Find a good install program. We prefer a C program (faster),
2140 # so one script is as good as another. But avoid the broken or
2141 # incompatible versions:
2142 # SysV /etc/install, /usr/sbin/install
2143 # SunOS /usr/etc/install
2144 # IRIX /sbin/install
2146 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2147 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2148 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2149 # ./install, which can be erroneously created by make from ./install.sh.
2150 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2151 echo "configure:2152: checking for a BSD compatible install" >&5
2152 if test -z "$INSTALL"; then
2153 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2156 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2157 for ac_dir in $PATH; do
2158 # Account for people who put trailing slashes in PATH elements.
2160 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2162 # OSF1 and SCO ODT 3.0 have their own names for install.
2163 # Don't use installbsd from OSF since it installs stuff as root
2165 for ac_prog in ginstall scoinst install; do
2166 if test -f $ac_dir/$ac_prog; then
2167 if test $ac_prog = install &&
2168 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2169 # AIX install. It has an incompatible calling convention.
2172 ac_cv_path_install="$ac_dir/$ac_prog -c"
2183 if test "${ac_cv_path_install+set}" = set; then
2184 INSTALL="$ac_cv_path_install"
2186 # As a last resort, use the slow shell script. We don't cache a
2187 # path for INSTALL within a source directory, because that will
2188 # break other packages using the cache if that directory is
2189 # removed, or if the path is relative.
2190 INSTALL="$ac_install_sh"
2193 echo "$ac_t""$INSTALL" 1>&6
2195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2196 # It thinks the first close brace ends the variable substitution.
2197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2201 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2205 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2206 echo "configure:2207: checking how to run the C preprocessor" >&5
2207 # On Suns, sometimes $CPP names a directory.
2208 if test -n "$CPP" && test -d "$CPP"; then
2211 if test -z "$CPP"; then
2212 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2213 echo $ac_n "(cached) $ac_c" 1>&6
2215 # This must be in double quotes, not single quotes, because CPP may get
2216 # substituted into the Makefile and "${CC-cc}" will confuse make.
2218 # On the NeXT, cc -E runs the code through the compiler's parser,
2219 # not just through cpp.
2220 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2227 { (eval echo configure:2228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2229 if test -z "$ac_err"; then
2233 echo "configure: failed program was:" >&5
2234 cat conftest.$ac_ext >&5
2236 CPP="${CC-cc} -E -traditional-cpp"
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2244 { (eval echo configure:2245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2246 if test -z "$ac_err"; then
2250 echo "configure: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2253 CPP="${CC-cc} -nologo -E"
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2261 { (eval echo configure:2262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2263 if test -z "$ac_err"; then
2267 echo "configure: failed program was:" >&5
2268 cat conftest.$ac_ext >&5
2277 ac_cv_prog_CPP="$CPP"
2279 CPP="$ac_cv_prog_CPP"
2281 ac_cv_prog_CPP="$CPP"
2283 echo "$ac_t""$CPP" 1>&6
2285 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2286 echo "configure:2287: checking for POSIXized ISC" >&5
2287 if test -d /etc/conf/kconfig.d &&
2288 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2290 echo "$ac_t""yes" 1>&6
2291 ISC=yes # If later tests want to check for ISC.
2292 cat >> confdefs.h <<\EOF
2293 #define _POSIX_SOURCE 1
2296 if test "$GCC" = yes; then
2302 echo "$ac_t""no" 1>&6
2306 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2307 echo "configure:2308: checking for ANSI C header files" >&5
2308 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2311 cat > conftest.$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2320 { (eval echo configure:2321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2322 if test -z "$ac_err"; then
2324 ac_cv_header_stdc=yes
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2330 ac_cv_header_stdc=no
2334 if test $ac_cv_header_stdc = yes; then
2335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2336 cat > conftest.$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2342 egrep "memchr" >/dev/null 2>&1; then
2346 ac_cv_header_stdc=no
2352 if test $ac_cv_header_stdc = yes; then
2353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2360 egrep "free" >/dev/null 2>&1; then
2364 ac_cv_header_stdc=no
2370 if test $ac_cv_header_stdc = yes; then
2371 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2372 if test "$cross_compiling" = yes; then
2375 cat > conftest.$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2379 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2380 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2381 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2382 int main () { int i; for (i = 0; i < 256; i++)
2383 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2387 if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2391 echo "configure: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2394 ac_cv_header_stdc=no
2402 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2403 if test $ac_cv_header_stdc = yes; then
2404 cat >> confdefs.h <<\EOF
2405 #define STDC_HEADERS 1
2410 echo $ac_n "checking for working const""... $ac_c" 1>&6
2411 echo "configure:2412: checking for working const" >&5
2412 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2415 cat > conftest.$ac_ext <<EOF
2416 #line 2417 "configure"
2417 #include "confdefs.h"
2421 /* Ultrix mips cc rejects this. */
2422 typedef int charset[2]; const charset x;
2423 /* SunOS 4.1.1 cc rejects this. */
2424 char const *const *ccp;
2426 /* NEC SVR4.0.2 mips cc rejects this. */
2427 struct point {int x, y;};
2428 static struct point const zero = {0,0};
2429 /* AIX XL C 1.02.0.0 rejects this.
2430 It does not let you subtract one const X* pointer from another in an arm
2431 of an if-expression whose if-part is not a constant expression */
2432 const char *g = "string";
2433 ccp = &g + (g ? g-g : 0);
2434 /* HPUX 7.0 cc rejects these. */
2437 ccp = (char const *const *) p;
2438 { /* SCO 3.2v4 cc rejects this. */
2440 char const *s = 0 ? (char *) 0 : (char const *) 0;
2444 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2446 const int *foo = &x[0];
2449 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2450 typedef const int *iptr;
2454 { /* AIX XL C 1.02.0.0 rejects this saying
2455 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2456 struct s { int j; const int *ap[3]; };
2457 struct s *b; b->j = 5;
2459 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2465 if { (eval echo configure:2466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2469 echo "configure: failed program was:" >&5
2470 cat conftest.$ac_ext >&5
2477 echo "$ac_t""$ac_cv_c_const" 1>&6
2478 if test $ac_cv_c_const = no; then
2479 cat >> confdefs.h <<\EOF
2485 echo $ac_n "checking for inline""... $ac_c" 1>&6
2486 echo "configure:2487: checking for inline" >&5
2487 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2491 for ac_kw in inline __inline__ __inline; do
2492 cat > conftest.$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2500 if { (eval echo configure:2501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2502 ac_cv_c_inline=$ac_kw; break
2504 echo "configure: failed program was:" >&5
2505 cat conftest.$ac_ext >&5
2512 echo "$ac_t""$ac_cv_c_inline" 1>&6
2513 case "$ac_cv_c_inline" in
2515 no) cat >> confdefs.h <<\EOF
2519 *) cat >> confdefs.h <<EOF
2520 #define inline $ac_cv_c_inline
2525 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2526 echo "configure:2527: checking for off_t" >&5
2527 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2530 cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 #include <sys/types.h>
2539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2540 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2542 ac_cv_type_off_t=yes
2550 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2551 if test $ac_cv_type_off_t = no; then
2552 cat >> confdefs.h <<\EOF
2558 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2559 echo "configure:2560: checking for size_t" >&5
2560 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2563 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2566 #include <sys/types.h>
2572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2573 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2575 ac_cv_type_size_t=yes
2578 ac_cv_type_size_t=no
2583 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2584 if test $ac_cv_type_size_t = no; then
2585 cat >> confdefs.h <<\EOF
2586 #define size_t unsigned
2591 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2592 # for constant arguments. Useless!
2593 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2594 echo "configure:2595: checking for working alloca.h" >&5
2595 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2603 char *p = alloca(2 * sizeof(int));
2606 if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2608 ac_cv_header_alloca_h=yes
2610 echo "configure: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2613 ac_cv_header_alloca_h=no
2618 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2619 if test $ac_cv_header_alloca_h = yes; then
2620 cat >> confdefs.h <<\EOF
2621 #define HAVE_ALLOCA_H 1
2626 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2627 echo "configure:2628: checking for alloca" >&5
2628 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2636 # define alloca __builtin_alloca
2639 # include <malloc.h>
2640 # define alloca _alloca
2643 # include <alloca.h>
2648 # ifndef alloca /* predefined by HP cc +Olibcalls */
2657 char *p = (char *) alloca(1);
2660 if { (eval echo configure:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2662 ac_cv_func_alloca_works=yes
2664 echo "configure: failed program was:" >&5
2665 cat conftest.$ac_ext >&5
2667 ac_cv_func_alloca_works=no
2672 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2673 if test $ac_cv_func_alloca_works = yes; then
2674 cat >> confdefs.h <<\EOF
2675 #define HAVE_ALLOCA 1
2680 if test $ac_cv_func_alloca_works = no; then
2681 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2682 # that cause trouble. Some versions do not even contain alloca or
2683 # contain a buggy version. If you still want to use their alloca,
2684 # use ar to extract alloca.o from them instead of compiling alloca.c.
2685 ALLOCA=alloca.${ac_objext}
2686 cat >> confdefs.h <<\EOF
2691 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2692 echo "configure:2693: checking whether alloca needs Cray hooks" >&5
2693 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 cat > conftest.$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2699 #if defined(CRAY) && ! defined(CRAY2)
2706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2707 egrep "webecray" >/dev/null 2>&1; then
2718 echo "$ac_t""$ac_cv_os_cray" 1>&6
2719 if test $ac_cv_os_cray = yes; then
2720 for ac_func in _getb67 GETB67 getb67; do
2721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2722 echo "configure:2723: checking for $ac_func" >&5
2723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2726 cat > conftest.$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 /* System header to define __stub macros and hopefully few prototypes,
2730 which can conflict with char $ac_func(); below. */
2732 /* Override any gcc2 internal prototype to avoid an error. */
2733 /* We use char because int might match the return type of a gcc2
2734 builtin and then its argument prototype would still apply. */
2739 /* The GNU C library defines this for functions which it implements
2740 to always fail with ENOSYS. Some functions are actually named
2741 something starting with __ and the normal name is an alias. */
2742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2750 if { (eval echo configure:2751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2752 eval "ac_cv_func_$ac_func=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2757 eval "ac_cv_func_$ac_func=no"
2762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2763 echo "$ac_t""yes" 1>&6
2764 cat >> confdefs.h <<EOF
2765 #define CRAY_STACKSEG_END $ac_func
2770 echo "$ac_t""no" 1>&6
2776 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2777 echo "configure:2778: checking stack direction for C alloca" >&5
2778 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2781 if test "$cross_compiling" = yes; then
2782 ac_cv_c_stack_direction=0
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2787 find_stack_direction ()
2789 static char *addr = 0;
2794 return find_stack_direction ();
2797 return (&dummy > addr) ? 1 : -1;
2801 exit (find_stack_direction() < 0);
2804 if { (eval echo configure:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2806 ac_cv_c_stack_direction=1
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2811 ac_cv_c_stack_direction=-1
2818 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2819 cat >> confdefs.h <<EOF
2820 #define STACK_DIRECTION $ac_cv_c_stack_direction
2825 for ac_hdr in unistd.h
2827 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2829 echo "configure:2830: checking for $ac_hdr" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2833 cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2843 eval "ac_cv_header_$ac_safe=yes"
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2849 eval "ac_cv_header_$ac_safe=no"
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2855 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2856 cat >> confdefs.h <<EOF
2857 #define $ac_tr_hdr 1
2861 echo "$ac_t""no" 1>&6
2865 for ac_func in getpagesize
2867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2868 echo "configure:2869: checking for $ac_func" >&5
2869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2870 echo $ac_n "(cached) $ac_c" 1>&6
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2875 /* System header to define __stub macros and hopefully few prototypes,
2876 which can conflict with char $ac_func(); below. */
2878 /* Override any gcc2 internal prototype to avoid an error. */
2879 /* We use char because int might match the return type of a gcc2
2880 builtin and then its argument prototype would still apply. */
2885 /* The GNU C library defines this for functions which it implements
2886 to always fail with ENOSYS. Some functions are actually named
2887 something starting with __ and the normal name is an alias. */
2888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2896 if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2898 eval "ac_cv_func_$ac_func=yes"
2900 echo "configure: failed program was:" >&5
2901 cat conftest.$ac_ext >&5
2903 eval "ac_cv_func_$ac_func=no"
2908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2909 echo "$ac_t""yes" 1>&6
2910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2911 cat >> confdefs.h <<EOF
2912 #define $ac_tr_func 1
2916 echo "$ac_t""no" 1>&6
2920 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2921 echo "configure:2922: checking for working mmap" >&5
2922 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2925 if test "$cross_compiling" = yes; then
2926 ac_cv_func_mmap_fixed_mapped=no
2928 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2932 /* Thanks to Mike Haertel and Jim Avera for this test.
2933 Here is a matrix of mmap possibilities:
2934 mmap private not fixed
2935 mmap private fixed at somewhere currently unmapped
2936 mmap private fixed at somewhere already mapped
2937 mmap shared not fixed
2938 mmap shared fixed at somewhere currently unmapped
2939 mmap shared fixed at somewhere already mapped
2940 For private mappings, we should verify that changes cannot be read()
2941 back from the file, nor mmap's back from the file at a different
2942 address. (There have been systems where private was not correctly
2943 implemented like the infamous i386 svr4.0, and systems where the
2944 VM page cache was not coherent with the filesystem buffer cache
2945 like early versions of FreeBSD and possibly contemporary NetBSD.)
2946 For shared mappings, we should conversely verify that changes get
2947 propogated back to all the places they're supposed to be.
2949 Grep wants private fixed already mapped.
2950 The main things grep needs to know about mmap are:
2951 * does it exist and is it safe to write into the mmap'd area
2952 * how to use it (BSD variants) */
2953 #include <sys/types.h>
2955 #include <sys/mman.h>
2957 /* This mess was copied from the GNU getpagesize.h. */
2958 #ifndef HAVE_GETPAGESIZE
2959 # ifdef HAVE_UNISTD_H
2960 # include <unistd.h>
2963 /* Assume that all systems that can run configure have sys/param.h. */
2964 # ifndef HAVE_SYS_PARAM_H
2965 # define HAVE_SYS_PARAM_H 1
2968 # ifdef _SC_PAGESIZE
2969 # define getpagesize() sysconf(_SC_PAGESIZE)
2970 # else /* no _SC_PAGESIZE */
2971 # ifdef HAVE_SYS_PARAM_H
2972 # include <sys/param.h>
2973 # ifdef EXEC_PAGESIZE
2974 # define getpagesize() EXEC_PAGESIZE
2975 # else /* no EXEC_PAGESIZE */
2977 # define getpagesize() NBPG * CLSIZE
2980 # endif /* no CLSIZE */
2981 # else /* no NBPG */
2983 # define getpagesize() NBPC
2984 # else /* no NBPC */
2986 # define getpagesize() PAGESIZE
2987 # endif /* PAGESIZE */
2988 # endif /* no NBPC */
2989 # endif /* no NBPG */
2990 # endif /* no EXEC_PAGESIZE */
2991 # else /* no HAVE_SYS_PARAM_H */
2992 # define getpagesize() 8192 /* punt totally */
2993 # endif /* no HAVE_SYS_PARAM_H */
2994 # endif /* no _SC_PAGESIZE */
2996 #endif /* no HAVE_GETPAGESIZE */
2999 extern "C" { void *malloc(unsigned); }
3007 char *data, *data2, *data3;
3011 pagesize = getpagesize();
3014 * First, make a file with some known garbage in it.
3016 data = malloc(pagesize);
3019 for (i = 0; i < pagesize; ++i)
3020 *(data + i) = rand();
3022 fd = creat("conftestmmap", 0600);
3025 if (write(fd, data, pagesize) != pagesize)
3030 * Next, try to mmap the file at a fixed address which
3031 * already has something else allocated at it. If we can,
3032 * also make sure that we see the same garbage.
3034 fd = open("conftestmmap", O_RDWR);
3037 data2 = malloc(2 * pagesize);
3040 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3041 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3042 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3044 for (i = 0; i < pagesize; ++i)
3045 if (*(data + i) != *(data2 + i))
3049 * Finally, make sure that changes to the mapped area
3050 * do not percolate back to the file as seen by read().
3051 * (This is a bug on some variants of i386 svr4.0.)
3053 for (i = 0; i < pagesize; ++i)
3054 *(data2 + i) = *(data2 + i) + 1;
3055 data3 = malloc(pagesize);
3058 if (read(fd, data3, pagesize) != pagesize)
3060 for (i = 0; i < pagesize; ++i)
3061 if (*(data + i) != *(data3 + i))
3064 unlink("conftestmmap");
3069 if { (eval echo configure:3070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3071 ac_cv_func_mmap_fixed_mapped=yes
3073 echo "configure: failed program was:" >&5
3074 cat conftest.$ac_ext >&5
3076 ac_cv_func_mmap_fixed_mapped=no
3083 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3084 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3085 cat >> confdefs.h <<\EOF
3092 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3093 unistd.h values.h sys/param.h
3095 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3096 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3097 echo "configure:3098: checking for $ac_hdr" >&5
3098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3101 cat > conftest.$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3107 { (eval echo configure:3108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3109 if test -z "$ac_err"; then
3111 eval "ac_cv_header_$ac_safe=yes"
3114 echo "configure: failed program was:" >&5
3115 cat conftest.$ac_ext >&5
3117 eval "ac_cv_header_$ac_safe=no"
3121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3122 echo "$ac_t""yes" 1>&6
3123 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3124 cat >> confdefs.h <<EOF
3125 #define $ac_tr_hdr 1
3129 echo "$ac_t""no" 1>&6
3133 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3134 __argz_count __argz_stringify __argz_next
3136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3137 echo "configure:3138: checking for $ac_func" >&5
3138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3144 /* System header to define __stub macros and hopefully few prototypes,
3145 which can conflict with char $ac_func(); below. */
3147 /* Override any gcc2 internal prototype to avoid an error. */
3148 /* We use char because int might match the return type of a gcc2
3149 builtin and then its argument prototype would still apply. */
3154 /* The GNU C library defines this for functions which it implements
3155 to always fail with ENOSYS. Some functions are actually named
3156 something starting with __ and the normal name is an alias. */
3157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3165 if { (eval echo configure:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3167 eval "ac_cv_func_$ac_func=yes"
3169 echo "configure: failed program was:" >&5
3170 cat conftest.$ac_ext >&5
3172 eval "ac_cv_func_$ac_func=no"
3177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3178 echo "$ac_t""yes" 1>&6
3179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3180 cat >> confdefs.h <<EOF
3181 #define $ac_tr_func 1
3185 echo "$ac_t""no" 1>&6
3190 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3191 for ac_func in stpcpy
3193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3194 echo "configure:3195: checking for $ac_func" >&5
3195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 /* System header to define __stub macros and hopefully few prototypes,
3202 which can conflict with char $ac_func(); below. */
3204 /* Override any gcc2 internal prototype to avoid an error. */
3205 /* We use char because int might match the return type of a gcc2
3206 builtin and then its argument prototype would still apply. */
3211 /* The GNU C library defines this for functions which it implements
3212 to always fail with ENOSYS. Some functions are actually named
3213 something starting with __ and the normal name is an alias. */
3214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3222 if { (eval echo configure:3223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3224 eval "ac_cv_func_$ac_func=yes"
3226 echo "configure: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3229 eval "ac_cv_func_$ac_func=no"
3234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3235 echo "$ac_t""yes" 1>&6
3236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3237 cat >> confdefs.h <<EOF
3238 #define $ac_tr_func 1
3242 echo "$ac_t""no" 1>&6
3247 if test "${ac_cv_func_stpcpy}" = "yes"; then
3248 cat >> confdefs.h <<\EOF
3249 #define HAVE_STPCPY 1
3254 if test $ac_cv_header_locale_h = yes; then
3255 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3256 echo "configure:3257: checking for LC_MESSAGES" >&5
3257 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3268 if { (eval echo configure:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3270 am_cv_val_LC_MESSAGES=yes
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 am_cv_val_LC_MESSAGES=no
3280 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3281 if test $am_cv_val_LC_MESSAGES = yes; then
3282 cat >> confdefs.h <<\EOF
3283 #define HAVE_LC_MESSAGES 1
3288 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3289 echo "configure:3290: checking whether NLS is requested" >&5
3290 # Check whether --enable-nls or --disable-nls was given.
3291 if test "${enable_nls+set}" = set; then
3292 enableval="$enable_nls"
3298 echo "$ac_t""$USE_NLS" 1>&6
3301 USE_INCLUDED_LIBINTL=no
3303 if test "$USE_NLS" = "yes"; then
3304 cat >> confdefs.h <<\EOF
3305 #define ENABLE_NLS 1
3308 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3309 echo "configure:3310: checking whether included gettext is requested" >&5
3310 # Check whether --with-included-gettext or --without-included-gettext was given.
3311 if test "${with_included_gettext+set}" = set; then
3312 withval="$with_included_gettext"
3313 nls_cv_force_use_gnu_gettext=$withval
3315 nls_cv_force_use_gnu_gettext=no
3318 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3320 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3321 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3323 nls_cv_header_libgt=
3326 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3327 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3328 echo "configure:3329: checking for libintl.h" >&5
3329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 #include <libintl.h>
3337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3338 { (eval echo configure:3339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3340 if test -z "$ac_err"; then
3342 eval "ac_cv_header_$ac_safe=yes"
3345 echo "configure: failed program was:" >&5
3346 cat conftest.$ac_ext >&5
3348 eval "ac_cv_header_$ac_safe=no"
3352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3353 echo "$ac_t""yes" 1>&6
3354 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3355 echo "configure:3356: checking for gettext in libc" >&5
3356 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 #include <libintl.h>
3364 return (int) gettext ("")
3367 if { (eval echo configure:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3369 gt_cv_func_gettext_libc=yes
3371 echo "configure: failed program was:" >&5
3372 cat conftest.$ac_ext >&5
3374 gt_cv_func_gettext_libc=no
3379 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3381 if test "$gt_cv_func_gettext_libc" != "yes"; then
3382 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3383 echo "configure:3384: checking for bindtextdomain in -lintl" >&5
3384 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 ac_save_LIBS="$LIBS"
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 /* Override any gcc2 internal prototype to avoid an error. */
3394 /* We use char because int might match the return type of a gcc2
3395 builtin and then its argument prototype would still apply. */
3396 char bindtextdomain();
3402 if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3404 eval "ac_cv_lib_$ac_lib_var=yes"
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3409 eval "ac_cv_lib_$ac_lib_var=no"
3412 LIBS="$ac_save_LIBS"
3415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3416 echo "$ac_t""yes" 1>&6
3417 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3418 echo "configure:3419: checking for gettext in libintl" >&5
3419 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3420 echo $ac_n "(cached) $ac_c" 1>&6
3422 cat > conftest.$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3427 return (int) gettext ("")
3430 if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3432 gt_cv_func_gettext_libintl=yes
3434 echo "configure: failed program was:" >&5
3435 cat conftest.$ac_ext >&5
3437 gt_cv_func_gettext_libintl=no
3442 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3444 echo "$ac_t""no" 1>&6
3449 if test "$gt_cv_func_gettext_libc" = "yes" \
3450 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3451 cat >> confdefs.h <<\EOF
3452 #define HAVE_GETTEXT 1
3455 # Extract the first word of "msgfmt", so it can be a program name with args.
3456 set dummy msgfmt; ac_word=$2
3457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3458 echo "configure:3459: checking for $ac_word" >&5
3459 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3464 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3468 for ac_dir in $PATH; do
3469 test -z "$ac_dir" && ac_dir=.
3470 if test -f $ac_dir/$ac_word; then
3471 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3472 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3478 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3482 MSGFMT="$ac_cv_path_MSGFMT"
3483 if test -n "$MSGFMT"; then
3484 echo "$ac_t""$MSGFMT" 1>&6
3486 echo "$ac_t""no" 1>&6
3488 if test "$MSGFMT" != "no"; then
3489 for ac_func in dcgettext
3491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3492 echo "configure:3493: checking for $ac_func" >&5
3493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 /* System header to define __stub macros and hopefully few prototypes,
3500 which can conflict with char $ac_func(); below. */
3502 /* Override any gcc2 internal prototype to avoid an error. */
3503 /* We use char because int might match the return type of a gcc2
3504 builtin and then its argument prototype would still apply. */
3509 /* The GNU C library defines this for functions which it implements
3510 to always fail with ENOSYS. Some functions are actually named
3511 something starting with __ and the normal name is an alias. */
3512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3520 if { (eval echo configure:3521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3522 eval "ac_cv_func_$ac_func=yes"
3524 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3527 eval "ac_cv_func_$ac_func=no"
3532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3533 echo "$ac_t""yes" 1>&6
3534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3535 cat >> confdefs.h <<EOF
3536 #define $ac_tr_func 1
3540 echo "$ac_t""no" 1>&6
3544 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3545 set dummy gmsgfmt; ac_word=$2
3546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3547 echo "configure:3548: checking for $ac_word" >&5
3548 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3553 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3556 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3561 for ac_dir in $ac_dummy; do
3562 test -z "$ac_dir" && ac_dir=.
3563 if test -f $ac_dir/$ac_word; then
3564 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3569 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3573 GMSGFMT="$ac_cv_path_GMSGFMT"
3574 if test -n "$GMSGFMT"; then
3575 echo "$ac_t""$GMSGFMT" 1>&6
3577 echo "$ac_t""no" 1>&6
3580 # Extract the first word of "xgettext", so it can be a program name with args.
3581 set dummy xgettext; ac_word=$2
3582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3583 echo "configure:3584: checking for $ac_word" >&5
3584 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3589 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3593 for ac_dir in $PATH; do
3594 test -z "$ac_dir" && ac_dir=.
3595 if test -f $ac_dir/$ac_word; then
3596 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3597 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3603 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3607 XGETTEXT="$ac_cv_path_XGETTEXT"
3608 if test -n "$XGETTEXT"; then
3609 echo "$ac_t""$XGETTEXT" 1>&6
3611 echo "$ac_t""no" 1>&6
3614 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3619 extern int _nl_msg_cat_cntr;
3620 return _nl_msg_cat_cntr
3623 if { (eval echo configure:3624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3628 echo "configure: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3640 echo "$ac_t""no" 1>&6
3645 if test "$CATOBJEXT" = "NONE"; then
3646 nls_cv_use_gnu_gettext=yes
3650 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3651 INTLOBJS="\$(GETTOBJS)"
3652 # Extract the first word of "msgfmt", so it can be a program name with args.
3653 set dummy msgfmt; ac_word=$2
3654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3655 echo "configure:3656: checking for $ac_word" >&5
3656 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3661 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3665 for ac_dir in $PATH; do
3666 test -z "$ac_dir" && ac_dir=.
3667 if test -f $ac_dir/$ac_word; then
3668 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3669 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3675 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3679 MSGFMT="$ac_cv_path_MSGFMT"
3680 if test -n "$MSGFMT"; then
3681 echo "$ac_t""$MSGFMT" 1>&6
3683 echo "$ac_t""no" 1>&6
3686 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3687 set dummy gmsgfmt; ac_word=$2
3688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3689 echo "configure:3690: checking for $ac_word" >&5
3690 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3695 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3698 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3703 for ac_dir in $ac_dummy; do
3704 test -z "$ac_dir" && ac_dir=.
3705 if test -f $ac_dir/$ac_word; then
3706 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3711 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3715 GMSGFMT="$ac_cv_path_GMSGFMT"
3716 if test -n "$GMSGFMT"; then
3717 echo "$ac_t""$GMSGFMT" 1>&6
3719 echo "$ac_t""no" 1>&6
3722 # Extract the first word of "xgettext", so it can be a program name with args.
3723 set dummy xgettext; ac_word=$2
3724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3725 echo "configure:3726: checking for $ac_word" >&5
3726 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3731 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3735 for ac_dir in $PATH; do
3736 test -z "$ac_dir" && ac_dir=.
3737 if test -f $ac_dir/$ac_word; then
3738 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3739 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3745 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3749 XGETTEXT="$ac_cv_path_XGETTEXT"
3750 if test -n "$XGETTEXT"; then
3751 echo "$ac_t""$XGETTEXT" 1>&6
3753 echo "$ac_t""no" 1>&6
3757 USE_INCLUDED_LIBINTL=yes
3761 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3763 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3764 nls_cv_header_intl=libintl.h
3765 nls_cv_header_libgt=libgettext.h
3768 if test "$XGETTEXT" != ":"; then
3769 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3772 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3777 # We need to process the po/ directory.
3781 nls_cv_header_intl=libintl.h
3782 nls_cv_header_libgt=libgettext.h
3785 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3786 # because some of the sources are only built for this goal.
3787 if test "$PACKAGE" = gettext; then
3789 USE_INCLUDED_LIBINTL=yes
3792 for lang in $ALL_LINGUAS; do
3793 GMOFILES="$GMOFILES $lang.gmo"
3794 POFILES="$POFILES $lang.po"
3810 if test "x$CATOBJEXT" != "x"; then
3811 if test "x$ALL_LINGUAS" = "x"; then
3814 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3815 echo "configure:3816: checking for catalogs to be installed" >&5
3817 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3818 case "$ALL_LINGUAS" in
3819 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3822 LINGUAS=$NEW_LINGUAS
3823 echo "$ac_t""$LINGUAS" 1>&6
3826 if test -n "$LINGUAS"; then
3827 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3831 if test $ac_cv_header_locale_h = yes; then
3832 INCLUDE_LOCALE_H="#include <locale.h>"
3835 /* The system does not provide the header <locale.h>. Take care yourself. */"
3839 if test -f $srcdir/po2tbl.sed.in; then
3840 if test "$CATOBJEXT" = ".cat"; then
3841 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3842 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3843 echo "configure:3844: checking for linux/version.h" >&5
3844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3850 #include <linux/version.h>
3852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3853 { (eval echo configure:3854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3855 if test -z "$ac_err"; then
3857 eval "ac_cv_header_$ac_safe=yes"
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3863 eval "ac_cv_header_$ac_safe=no"
3867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3868 echo "$ac_t""yes" 1>&6
3871 echo "$ac_t""no" 1>&6
3876 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3878 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3879 $srcdir/po2tbl.sed.in > po2tbl.sed
3882 if test "$PACKAGE" = "gettext"; then
3892 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3898 if test -d $srcdir/po; then
3899 test -d po || mkdir po
3900 if test "x$srcdir" != "x."; then
3901 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3902 posrcprefix="$srcdir/"
3904 posrcprefix="../$srcdir/"
3910 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3911 < $srcdir/po/POTFILES.in > po/POTFILES
3915 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3916 echo "configure:3917: checking for Cygwin environment" >&5
3917 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3927 #define __CYGWIN__ __CYGWIN32__
3932 if { (eval echo configure:3933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3945 echo "$ac_t""$ac_cv_cygwin" 1>&6
3947 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3948 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3949 echo "configure:3950: checking for mingw32 environment" >&5
3950 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3953 cat > conftest.$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3961 if { (eval echo configure:3962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3965 echo "configure: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3974 echo "$ac_t""$ac_cv_mingw32" 1>&6
3976 test "$ac_cv_mingw32" = yes && MINGW32=yes
3979 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3980 echo "configure:3981: checking for executable suffix" >&5
3981 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3984 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3988 echo 'int main () { return 0; }' > conftest.$ac_ext
3990 if { (eval echo configure:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3991 for file in conftest.*; do
3993 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
3994 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3998 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4001 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4006 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4007 echo "$ac_t""${ac_cv_exeext}" 1>&6
4011 for ac_prog in 'bison -y' byacc
4013 # Extract the first word of "$ac_prog", so it can be a program name with args.
4014 set dummy $ac_prog; ac_word=$2
4015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4016 echo "configure:4017: checking for $ac_word" >&5
4017 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4020 if test -n "$YACC"; then
4021 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4025 for ac_dir in $ac_dummy; do
4026 test -z "$ac_dir" && ac_dir=.
4027 if test -f $ac_dir/$ac_word; then
4028 ac_cv_prog_YACC="$ac_prog"
4035 YACC="$ac_cv_prog_YACC"
4036 if test -n "$YACC"; then
4037 echo "$ac_t""$YACC" 1>&6
4039 echo "$ac_t""no" 1>&6
4042 test -n "$YACC" && break
4044 test -n "$YACC" || YACC="yacc"
4046 missing_dir=`cd $ac_aux_dir && pwd`
4047 for ac_prog in flex lex
4049 # Extract the first word of "$ac_prog", so it can be a program name with args.
4050 set dummy $ac_prog; ac_word=$2
4051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4052 echo "configure:4053: checking for $ac_word" >&5
4053 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4056 if test -n "$LEX"; then
4057 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4061 for ac_dir in $ac_dummy; do
4062 test -z "$ac_dir" && ac_dir=.
4063 if test -f $ac_dir/$ac_word; then
4064 ac_cv_prog_LEX="$ac_prog"
4071 LEX="$ac_cv_prog_LEX"
4072 if test -n "$LEX"; then
4073 echo "$ac_t""$LEX" 1>&6
4075 echo "$ac_t""no" 1>&6
4078 test -n "$LEX" && break
4080 test -n "$LEX" || LEX=""$missing_dir/missing flex""
4082 # Extract the first word of "flex", so it can be a program name with args.
4083 set dummy flex; ac_word=$2
4084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4085 echo "configure:4086: checking for $ac_word" >&5
4086 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4089 if test -n "$LEX"; then
4090 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4094 for ac_dir in $ac_dummy; do
4095 test -z "$ac_dir" && ac_dir=.
4096 if test -f $ac_dir/$ac_word; then
4097 ac_cv_prog_LEX="flex"
4102 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
4105 LEX="$ac_cv_prog_LEX"
4106 if test -n "$LEX"; then
4107 echo "$ac_t""$LEX" 1>&6
4109 echo "$ac_t""no" 1>&6
4112 if test -z "$LEXLIB"
4118 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4119 echo "configure:4120: checking for yywrap in -l$ac_lib" >&5
4120 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4124 ac_save_LIBS="$LIBS"
4125 LIBS="-l$ac_lib $LIBS"
4126 cat > conftest.$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4129 /* Override any gcc2 internal prototype to avoid an error. */
4130 /* We use char because int might match the return type of a gcc2
4131 builtin and then its argument prototype would still apply. */
4138 if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4140 eval "ac_cv_lib_$ac_lib_var=yes"
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4145 eval "ac_cv_lib_$ac_lib_var=no"
4148 LIBS="$ac_save_LIBS"
4151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4152 echo "$ac_t""yes" 1>&6
4155 echo "$ac_t""no" 1>&6
4160 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4161 echo "configure:4162: checking lex output file root" >&5
4162 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4165 # The minimal lex program is just a single line: %%. But some broken lexes
4166 # (Solaris, I think it was) want two %% lines, so accommodate them.
4169 if test -f lex.yy.c; then
4170 ac_cv_prog_lex_root=lex.yy
4171 elif test -f lexyy.c; then
4172 ac_cv_prog_lex_root=lexyy
4174 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4178 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4179 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4181 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4182 echo "configure:4183: checking whether yytext is a pointer" >&5
4183 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4186 # POSIX says lex can declare yytext either as a pointer or an array; the
4187 # default is implementation-dependent. Figure out which it is, since
4188 # not all implementations provide the %pointer and %array declarations.
4189 ac_cv_prog_lex_yytext_pointer=no
4190 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4191 ac_save_LIBS="$LIBS"
4192 LIBS="$LIBS $LEXLIB"
4193 cat > conftest.$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4196 `cat $LEX_OUTPUT_ROOT.c`
4201 if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4203 ac_cv_prog_lex_yytext_pointer=yes
4205 echo "configure: failed program was:" >&5
4206 cat conftest.$ac_ext >&5
4209 LIBS="$ac_save_LIBS"
4210 rm -f "${LEX_OUTPUT_ROOT}.c"
4214 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4215 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4216 cat >> confdefs.h <<\EOF
4217 #define YYTEXT_POINTER 1
4223 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4224 echo "configure:4225: checking whether to enable maintainer-specific portions of Makefiles" >&5
4225 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4226 if test "${enable_maintainer_mode+set}" = set; then
4227 enableval="$enable_maintainer_mode"
4228 USE_MAINTAINER_MODE=$enableval
4230 USE_MAINTAINER_MODE=no
4233 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4236 if test $USE_MAINTAINER_MODE = yes; then
4237 MAINTAINER_MODE_TRUE=
4238 MAINTAINER_MODE_FALSE='#'
4240 MAINTAINER_MODE_TRUE='#'
4241 MAINTAINER_MODE_FALSE=
4243 MAINT=$MAINTAINER_MODE_TRUE
4247 . ${srcdir}/configure.host
4254 for ac_hdr in string.h strings.h stdlib.h unistd.h
4256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4258 echo "configure:4259: checking for $ac_hdr" >&5
4259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4268 { (eval echo configure:4269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4270 if test -z "$ac_err"; then
4272 eval "ac_cv_header_$ac_safe=yes"
4275 echo "configure: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4278 eval "ac_cv_header_$ac_safe=no"
4282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4283 echo "$ac_t""yes" 1>&6
4284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4285 cat >> confdefs.h <<EOF
4286 #define $ac_tr_hdr 1
4290 echo "$ac_t""no" 1>&6
4296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4297 echo "configure:4298: checking for $ac_func" >&5
4298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4299 echo $ac_n "(cached) $ac_c" 1>&6
4301 cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4304 /* System header to define __stub macros and hopefully few prototypes,
4305 which can conflict with char $ac_func(); below. */
4307 /* Override any gcc2 internal prototype to avoid an error. */
4308 /* We use char because int might match the return type of a gcc2
4309 builtin and then its argument prototype would still apply. */
4314 /* The GNU C library defines this for functions which it implements
4315 to always fail with ENOSYS. Some functions are actually named
4316 something starting with __ and the normal name is an alias. */
4317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4325 if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4327 eval "ac_cv_func_$ac_func=yes"
4329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4332 eval "ac_cv_func_$ac_func=no"
4337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4338 echo "$ac_t""yes" 1>&6
4339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4340 cat >> confdefs.h <<EOF
4341 #define $ac_tr_func 1
4345 echo "$ac_t""no" 1>&6
4350 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4353 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4354 echo "configure:4355: checking for $ac_hdr that defines DIR" >&5
4355 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4356 echo $ac_n "(cached) $ac_c" 1>&6
4358 cat > conftest.$ac_ext <<EOF
4359 #line 4360 "configure"
4360 #include "confdefs.h"
4361 #include <sys/types.h>
4367 if { (eval echo configure:4368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4369 eval "ac_cv_header_dirent_$ac_safe=yes"
4371 echo "configure: failed program was:" >&5
4372 cat conftest.$ac_ext >&5
4374 eval "ac_cv_header_dirent_$ac_safe=no"
4378 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4379 echo "$ac_t""yes" 1>&6
4380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4381 cat >> confdefs.h <<EOF
4382 #define $ac_tr_hdr 1
4384 ac_header_dirent=$ac_hdr; break
4386 echo "$ac_t""no" 1>&6
4389 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4390 if test $ac_header_dirent = dirent.h; then
4391 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4392 echo "configure:4393: checking for opendir in -ldir" >&5
4393 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4397 ac_save_LIBS="$LIBS"
4399 cat > conftest.$ac_ext <<EOF
4400 #line 4401 "configure"
4401 #include "confdefs.h"
4402 /* Override any gcc2 internal prototype to avoid an error. */
4403 /* We use char because int might match the return type of a gcc2
4404 builtin and then its argument prototype would still apply. */
4411 if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4413 eval "ac_cv_lib_$ac_lib_var=yes"
4415 echo "configure: failed program was:" >&5
4416 cat conftest.$ac_ext >&5
4418 eval "ac_cv_lib_$ac_lib_var=no"
4421 LIBS="$ac_save_LIBS"
4424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4425 echo "$ac_t""yes" 1>&6
4428 echo "$ac_t""no" 1>&6
4432 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4433 echo "configure:4434: checking for opendir in -lx" >&5
4434 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4436 echo $ac_n "(cached) $ac_c" 1>&6
4438 ac_save_LIBS="$LIBS"
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4443 /* Override any gcc2 internal prototype to avoid an error. */
4444 /* We use char because int might match the return type of a gcc2
4445 builtin and then its argument prototype would still apply. */
4452 if { (eval echo configure:4453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4454 eval "ac_cv_lib_$ac_lib_var=yes"
4456 echo "configure: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4459 eval "ac_cv_lib_$ac_lib_var=no"
4462 LIBS="$ac_save_LIBS"
4465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4466 echo "$ac_t""yes" 1>&6
4469 echo "$ac_t""no" 1>&6
4477 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows)
4478 cat >> confdefs.h <<\EOF
4479 #define USE_BINARY_FOPEN 1
4484 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4485 echo "configure:4486: checking whether strstr must be declared" >&5
4486 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4489 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4494 #ifdef HAVE_STRING_H
4497 #ifdef HAVE_STRINGS_H
4498 #include <strings.h>
4501 #ifdef HAVE_STDLIB_H
4504 #ifdef HAVE_UNISTD_H
4508 char *(*pfn) = (char *(*)) strstr
4511 if { (eval echo configure:4512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4513 bfd_cv_decl_needed_strstr=no
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4518 bfd_cv_decl_needed_strstr=yes
4523 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4524 if test $bfd_cv_decl_needed_strstr = yes; then
4525 cat >> confdefs.h <<\EOF
4526 #define NEED_DECLARATION_STRSTR 1
4531 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4532 echo "configure:4533: checking whether free must be declared" >&5
4533 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4541 #ifdef HAVE_STRING_H
4544 #ifdef HAVE_STRINGS_H
4545 #include <strings.h>
4548 #ifdef HAVE_STDLIB_H
4551 #ifdef HAVE_UNISTD_H
4555 char *(*pfn) = (char *(*)) free
4558 if { (eval echo configure:4559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4560 bfd_cv_decl_needed_free=no
4562 echo "configure: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4565 bfd_cv_decl_needed_free=yes
4570 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4571 if test $bfd_cv_decl_needed_free = yes; then
4572 cat >> confdefs.h <<\EOF
4573 #define NEED_DECLARATION_FREE 1
4578 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4579 echo "configure:4580: checking whether sbrk must be declared" >&5
4580 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 cat > conftest.$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4588 #ifdef HAVE_STRING_H
4591 #ifdef HAVE_STRINGS_H
4592 #include <strings.h>
4595 #ifdef HAVE_STDLIB_H
4598 #ifdef HAVE_UNISTD_H
4602 char *(*pfn) = (char *(*)) sbrk
4605 if { (eval echo configure:4606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4607 bfd_cv_decl_needed_sbrk=no
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4612 bfd_cv_decl_needed_sbrk=yes
4617 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4618 if test $bfd_cv_decl_needed_sbrk = yes; then
4619 cat >> confdefs.h <<\EOF
4620 #define NEED_DECLARATION_SBRK 1
4625 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4626 echo "configure:4627: checking whether getenv must be declared" >&5
4627 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4630 cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4635 #ifdef HAVE_STRING_H
4638 #ifdef HAVE_STRINGS_H
4639 #include <strings.h>
4642 #ifdef HAVE_STDLIB_H
4645 #ifdef HAVE_UNISTD_H
4649 char *(*pfn) = (char *(*)) getenv
4652 if { (eval echo configure:4653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4654 bfd_cv_decl_needed_getenv=no
4656 echo "configure: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4659 bfd_cv_decl_needed_getenv=yes
4664 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4665 if test $bfd_cv_decl_needed_getenv = yes; then
4666 cat >> confdefs.h <<\EOF
4667 #define NEED_DECLARATION_GETENV 1
4672 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
4673 echo "configure:4674: checking whether environ must be declared" >&5
4674 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
4675 echo $ac_n "(cached) $ac_c" 1>&6
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4682 #ifdef HAVE_STRING_H
4685 #ifdef HAVE_STRINGS_H
4686 #include <strings.h>
4689 #ifdef HAVE_STDLIB_H
4692 #ifdef HAVE_UNISTD_H
4696 char *(*pfn) = (char *(*)) environ
4699 if { (eval echo configure:4700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4701 bfd_cv_decl_needed_environ=no
4703 echo "configure: failed program was:" >&5
4704 cat conftest.$ac_ext >&5
4706 bfd_cv_decl_needed_environ=yes
4711 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
4712 if test $bfd_cv_decl_needed_environ = yes; then
4713 cat >> confdefs.h <<\EOF
4714 #define NEED_DECLARATION_ENVIRON 1
4720 # target-specific stuff:
4730 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
4732 if test "$targ_alias" = "all"; then
4735 # Canonicalize the secondary target names.
4736 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ_alias 2>/dev/null`
4737 if test -n "$result"; then
4743 . ${srcdir}/configure.tgt
4745 if test "$targ" = "$target"; then
4749 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
4750 case " $all_emuls " in
4753 all_emuls="$all_emuls e${i}.o"
4754 eval result=\$tdir_$i
4755 test -z "$result" && result=$targ_alias
4756 echo tdir_$i=$result >> tdirs
4761 for i in $targ_emul $targ_extra_libpath; do
4762 case " $all_libpath " in
4765 if test -z "$all_libpath"; then
4768 all_libpath="$all_libpath ${i}"
4774 for i in $targ_extra_ofiles; do
4775 case " $all_emul_extras " in
4778 all_emul_extras="$all_emul_extras ${i}"
4790 if test x${all_targets} = xtrue; then
4791 if test x${want64} = xtrue; then
4792 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
4794 EMULATION_OFILES='$(ALL_EMULATIONS)'
4796 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
4798 EMULATION_OFILES=$all_emuls
4799 EMUL_EXTRA_OFILES=$all_emul_extras
4804 EMULATION_LIBPATH=$all_libpath
4807 if test x${enable_static} = xno; then
4808 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
4810 TESTBFDLIB="../bfd/.libs/libbfd.a"
4815 cat > confcache <<\EOF
4816 # This file is a shell script that caches the results of configure
4817 # tests run on this system so they can be shared between configure
4818 # scripts and configure runs. It is not useful on other systems.
4819 # If it contains results you don't want to keep, you may remove or edit it.
4821 # By default, configure uses ./config.cache as the cache file,
4822 # creating it if it does not exist already. You can give configure
4823 # the --cache-file=FILE option to use a different cache file; that is
4824 # what configure does when it calls configure scripts in
4825 # subdirectories, so they share the cache.
4826 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4827 # config.status only pays attention to the cache file if you give it the
4828 # --recheck option to rerun configure.
4831 # The following way of writing the cache mishandles newlines in values,
4832 # but we know of no workaround that is simple, portable, and efficient.
4833 # So, don't put newlines in cache variables' values.
4834 # Ultrix sh set writes to stderr and can't be redirected directly,
4835 # and sets the high bit in the cache file unless we assign to the vars.
4837 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4839 # `set' does not quote correctly, so add quotes (double-quote substitution
4840 # turns \\\\ into \\, and sed turns \\ into \).
4842 -e "s/'/'\\\\''/g" \
4843 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4846 # `set' quotes correctly as required by POSIX, so do not add quotes.
4847 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4850 if cmp -s $cache_file confcache; then
4853 if test -w $cache_file; then
4854 echo "updating cache $cache_file"
4855 cat confcache > $cache_file
4857 echo "not updating unwritable cache $cache_file"
4862 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4864 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4865 # Let make expand exec_prefix.
4866 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4868 # Any assignment to VPATH causes Sun make to only execute
4869 # the first set of double-colon rules, so remove it if not needed.
4870 # If there is a colon in the path, we need to keep it.
4871 if test "x$srcdir" = x.; then
4872 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4875 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4877 DEFS=-DHAVE_CONFIG_H
4879 # Without the "./", some shells look in PATH for config.status.
4880 : ${CONFIG_STATUS=./config.status}
4882 echo creating $CONFIG_STATUS
4883 rm -f $CONFIG_STATUS
4884 cat > $CONFIG_STATUS <<EOF
4886 # Generated automatically by configure.
4887 # Run this file to recreate the current configuration.
4888 # This directory was configured as follows,
4889 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4891 # $0 $ac_configure_args
4893 # Compiler output produced by configure, useful for debugging
4894 # configure, is in ./config.log if it exists.
4896 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4899 case "\$ac_option" in
4900 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4901 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4902 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4903 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4904 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4906 -help | --help | --hel | --he | --h)
4907 echo "\$ac_cs_usage"; exit 0 ;;
4908 *) echo "\$ac_cs_usage"; exit 1 ;;
4912 ac_given_srcdir=$srcdir
4913 ac_given_INSTALL="$INSTALL"
4915 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4917 cat >> $CONFIG_STATUS <<EOF
4919 # Protect against being on the right side of a sed subst in config.status.
4920 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4921 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4925 s%@CFLAGS@%$CFLAGS%g
4926 s%@CPPFLAGS@%$CPPFLAGS%g
4927 s%@CXXFLAGS@%$CXXFLAGS%g
4928 s%@FFLAGS@%$FFLAGS%g
4930 s%@LDFLAGS@%$LDFLAGS%g
4932 s%@exec_prefix@%$exec_prefix%g
4933 s%@prefix@%$prefix%g
4934 s%@program_transform_name@%$program_transform_name%g
4935 s%@bindir@%$bindir%g
4936 s%@sbindir@%$sbindir%g
4937 s%@libexecdir@%$libexecdir%g
4938 s%@datadir@%$datadir%g
4939 s%@sysconfdir@%$sysconfdir%g
4940 s%@sharedstatedir@%$sharedstatedir%g
4941 s%@localstatedir@%$localstatedir%g
4942 s%@libdir@%$libdir%g
4943 s%@includedir@%$includedir%g
4944 s%@oldincludedir@%$oldincludedir%g
4945 s%@infodir@%$infodir%g
4946 s%@mandir@%$mandir%g
4948 s%@host_alias@%$host_alias%g
4949 s%@host_cpu@%$host_cpu%g
4950 s%@host_vendor@%$host_vendor%g
4951 s%@host_os@%$host_os%g
4952 s%@target@%$target%g
4953 s%@target_alias@%$target_alias%g
4954 s%@target_cpu@%$target_cpu%g
4955 s%@target_vendor@%$target_vendor%g
4956 s%@target_os@%$target_os%g
4958 s%@build_alias@%$build_alias%g
4959 s%@build_cpu@%$build_cpu%g
4960 s%@build_vendor@%$build_vendor%g
4961 s%@build_os@%$build_os%g
4962 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4963 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4964 s%@INSTALL_DATA@%$INSTALL_DATA%g
4965 s%@PACKAGE@%$PACKAGE%g
4966 s%@VERSION@%$VERSION%g
4967 s%@ACLOCAL@%$ACLOCAL%g
4968 s%@AUTOCONF@%$AUTOCONF%g
4969 s%@AUTOMAKE@%$AUTOMAKE%g
4970 s%@AUTOHEADER@%$AUTOHEADER%g
4971 s%@MAKEINFO@%$MAKEINFO%g
4972 s%@SET_MAKE@%$SET_MAKE%g
4973 s%@RANLIB@%$RANLIB%g
4977 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
4979 s%@DLLTOOL@%$DLLTOOL%g
4981 s%@LIBTOOL@%$LIBTOOL%g
4983 s%@ALLOCA@%$ALLOCA%g
4984 s%@USE_NLS@%$USE_NLS%g
4985 s%@MSGFMT@%$MSGFMT%g
4986 s%@GMSGFMT@%$GMSGFMT%g
4987 s%@XGETTEXT@%$XGETTEXT%g
4988 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4989 s%@CATALOGS@%$CATALOGS%g
4990 s%@CATOBJEXT@%$CATOBJEXT%g
4991 s%@DATADIRNAME@%$DATADIRNAME%g
4992 s%@GMOFILES@%$GMOFILES%g
4993 s%@INSTOBJEXT@%$INSTOBJEXT%g
4994 s%@INTLDEPS@%$INTLDEPS%g
4995 s%@INTLLIBS@%$INTLLIBS%g
4996 s%@INTLOBJS@%$INTLOBJS%g
4997 s%@POFILES@%$POFILES%g
4999 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5001 s%@GT_YES@%$GT_YES%g
5002 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5004 s%@EXEEXT@%$EXEEXT%g
5007 s%@LEXLIB@%$LEXLIB%g
5008 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5009 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5010 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5012 s%@HDEFINES@%$HDEFINES%g
5013 s%@HOSTING_CRT0@%$HOSTING_CRT0%g
5014 s%@HOSTING_LIBS@%$HOSTING_LIBS%g
5015 s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
5019 s%@EMULATION_OFILES@%$EMULATION_OFILES%g
5020 s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
5021 s%@EMULATION_LIBPATH@%$EMULATION_LIBPATH%g
5022 s%@TESTBFDLIB@%$TESTBFDLIB%g
5027 cat >> $CONFIG_STATUS <<\EOF
5029 # Split the substitutions into bite-sized pieces for seds with
5030 # small command number limits, like on Digital OSF/1 and HP-UX.
5031 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5032 ac_file=1 # Number of current file.
5033 ac_beg=1 # First line for current file.
5034 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5037 while $ac_more_lines; do
5038 if test $ac_beg -gt 1; then
5039 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5041 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5043 if test ! -s conftest.s$ac_file; then
5045 rm -f conftest.s$ac_file
5047 if test -z "$ac_sed_cmds"; then
5048 ac_sed_cmds="sed -f conftest.s$ac_file"
5050 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5052 ac_file=`expr $ac_file + 1`
5054 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5057 if test -z "$ac_sed_cmds"; then
5062 cat >> $CONFIG_STATUS <<EOF
5064 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5066 cat >> $CONFIG_STATUS <<\EOF
5067 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5068 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5070 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5071 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5072 *) ac_file_in="${ac_file}.in" ;;
5075 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5077 # Remove last slash and all that follows it. Not all systems have dirname.
5078 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5079 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5080 # The file is in a subdirectory.
5081 test ! -d "$ac_dir" && mkdir "$ac_dir"
5082 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5083 # A "../" for each directory in $ac_dir_suffix.
5084 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5086 ac_dir_suffix= ac_dots=
5089 case "$ac_given_srcdir" in
5091 if test -z "$ac_dots"; then top_srcdir=.
5092 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5093 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5095 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5096 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5099 case "$ac_given_INSTALL" in
5100 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5101 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5104 echo creating "$ac_file"
5106 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5108 *Makefile*) ac_comsub="1i\\
5109 # $configure_input" ;;
5113 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5115 s%@configure_input@%$configure_input%g
5116 s%@srcdir@%$srcdir%g
5117 s%@top_srcdir@%$top_srcdir%g
5118 s%@INSTALL@%$INSTALL%g
5119 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5123 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5124 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5126 # ac_d sets the value in "#define NAME VALUE" lines.
5127 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5128 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5131 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5132 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5133 ac_uB='\([ ]\)%\1#\2define\3'
5136 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5137 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5138 ac_eB='$%\1#\2define\3'
5142 if test "${CONFIG_HEADERS+set}" != set; then
5144 cat >> $CONFIG_STATUS <<EOF
5145 CONFIG_HEADERS="config.h:config.in"
5147 cat >> $CONFIG_STATUS <<\EOF
5149 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5150 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5152 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5153 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5154 *) ac_file_in="${ac_file}.in" ;;
5157 echo creating $ac_file
5159 rm -f conftest.frag conftest.in conftest.out
5160 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5161 cat $ac_file_inputs > conftest.in
5165 # Transform confdefs.h into a sed script conftest.vals that substitutes
5166 # the proper values into config.h.in to produce config.h. And first:
5167 # Protect against being on the right side of a sed subst in config.status.
5168 # Protect against being in an unquoted here document in config.status.
5170 cat > conftest.hdr <<\EOF
5173 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5177 sed -n -f conftest.hdr confdefs.h > conftest.vals
5180 # This sed command replaces #undef with comments. This is necessary, for
5181 # example, in the case of _POSIX_SOURCE, which is predefined and required
5182 # on some systems where configure will not decide to define it.
5183 cat >> conftest.vals <<\EOF
5184 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5187 # Break up conftest.vals because some shells have a limit on
5188 # the size of here documents, and old seds have small limits too.
5193 ac_lines=`grep -c . conftest.vals`
5194 # grep -c gives empty output for an empty file on some AIX systems.
5195 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5196 # Write a limited-size here document to conftest.frag.
5197 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5198 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5200 sed -f conftest.frag conftest.in > conftest.out
5202 mv conftest.out conftest.in
5204 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5206 mv conftest.tail conftest.vals
5210 cat >> $CONFIG_STATUS <<\EOF
5211 rm -f conftest.frag conftest.h
5212 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5213 cat conftest.in >> conftest.h
5215 if cmp -s $ac_file conftest.h 2>/dev/null; then
5216 echo "$ac_file is unchanged"
5219 # Remove last slash and all that follows it. Not all systems have dirname.
5220 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5221 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5222 # The file is in a subdirectory.
5223 test ! -d "$ac_dir" && mkdir "$ac_dir"
5226 mv conftest.h $ac_file
5231 cat >> $CONFIG_STATUS <<EOF
5235 cat >> $CONFIG_STATUS <<\EOF
5236 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5237 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5240 chmod +x $CONFIG_STATUS
5241 rm -fr confdefs* $ac_clean_files
5242 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1