3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
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 --disable-nls do not use Native Language Support"
17 --with-included-gettext use the GNU gettext library included here"
19 --with-catgets use catgets functions if available"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file=./config.cache
34 program_transform_name=s,x,x,
42 bindir='${exec_prefix}/bin'
43 sbindir='${exec_prefix}/sbin'
44 libexecdir='${exec_prefix}/libexec'
45 datadir='${prefix}/share'
46 sysconfdir='${prefix}/etc'
47 sharedstatedir='${prefix}/com'
48 localstatedir='${prefix}/var'
49 libdir='${exec_prefix}/lib'
50 includedir='${prefix}/include'
51 oldincludedir='/usr/include'
52 infodir='${prefix}/info'
53 mandir='${prefix}/man'
55 # Initialize some other variables.
58 SHELL=${CONFIG_SHELL-/bin/sh}
59 # Maximum number of lines to put in a shell here document.
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
74 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 # Accept the important Cygnus configure options, so we can diagnose typos.
82 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85 bindir="$ac_optarg" ;;
87 -build | --build | --buil | --bui | --bu)
89 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92 -cache-file | --cache-file | --cache-fil | --cache-fi \
93 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97 cache_file="$ac_optarg" ;;
99 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 datadir="$ac_optarg" ;;
105 -disable-* | --disable-*)
106 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107 # Reject names that are not valid shell variable names.
108 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112 eval "enable_${ac_feature}=no" ;;
114 -enable-* | --enable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}='$ac_optarg'" ;;
127 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129 | --exec | --exe | --ex)
130 ac_prev=exec_prefix ;;
131 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133 | --exec=* | --exe=* | --ex=*)
134 exec_prefix="$ac_optarg" ;;
136 -gas | --gas | --ga | --g)
137 # Obsolete; use --with-gas.
140 -help | --help | --hel | --he)
141 # Omit some internal or obsolete options to make the list less imposing.
142 # This message is too long to be a string in the A/UX 3.1 sh.
144 Usage: configure [options] [host]
145 Options: [defaults in brackets after descriptions]
147 --cache-file=FILE cache test results in FILE
148 --help print this message
149 --no-create do not create output files
150 --quiet, --silent do not print \`checking...' messages
151 --version print the version of autoconf that created configure
152 Directory and file names:
153 --prefix=PREFIX install architecture-independent files in PREFIX
155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 --bindir=DIR user executables in DIR [EPREFIX/bin]
158 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160 --datadir=DIR read-only architecture-independent data in DIR
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
167 --includedir=DIR C header files in DIR [PREFIX/include]
168 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169 --infodir=DIR info documentation in DIR [PREFIX/info]
170 --mandir=DIR man documentation in DIR [PREFIX/man]
171 --srcdir=DIR find the sources in DIR [configure dir or ..]
172 --program-prefix=PREFIX prepend PREFIX to installed program names
173 --program-suffix=SUFFIX append SUFFIX to installed program names
174 --program-transform-name=PROGRAM
175 run sed PROGRAM on installed program names
179 --build=BUILD configure for building on BUILD [BUILD=HOST]
180 --host=HOST configure for HOST [guessed]
181 --target=TARGET configure for TARGET [TARGET=HOST]
182 Features and packages:
183 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187 --x-includes=DIR X include files are in DIR
188 --x-libraries=DIR X library files are in DIR
190 if test -n "$ac_help"; then
191 echo "--enable and --with options recognized:$ac_help"
195 -host | --host | --hos | --ho)
197 -host=* | --host=* | --hos=* | --ho=*)
200 -includedir | --includedir | --includedi | --included | --include \
201 | --includ | --inclu | --incl | --inc)
202 ac_prev=includedir ;;
203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204 | --includ=* | --inclu=* | --incl=* | --inc=*)
205 includedir="$ac_optarg" ;;
207 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210 infodir="$ac_optarg" ;;
212 -libdir | --libdir | --libdi | --libd)
214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
215 libdir="$ac_optarg" ;;
217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218 | --libexe | --libex | --libe)
219 ac_prev=libexecdir ;;
220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221 | --libexe=* | --libex=* | --libe=*)
222 libexecdir="$ac_optarg" ;;
224 -localstatedir | --localstatedir | --localstatedi | --localstated \
225 | --localstate | --localstat | --localsta | --localst \
226 | --locals | --local | --loca | --loc | --lo)
227 ac_prev=localstatedir ;;
228 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231 localstatedir="$ac_optarg" ;;
233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236 mandir="$ac_optarg" ;;
239 # Obsolete; use --without-fp.
242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252 | --oldin | --oldi | --old | --ol | --o)
253 ac_prev=oldincludedir ;;
254 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257 oldincludedir="$ac_optarg" ;;
259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262 prefix="$ac_optarg" ;;
264 -program-prefix | --program-prefix | --program-prefi | --program-pref \
265 | --program-pre | --program-pr | --program-p)
266 ac_prev=program_prefix ;;
267 -program-prefix=* | --program-prefix=* | --program-prefi=* \
268 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269 program_prefix="$ac_optarg" ;;
271 -program-suffix | --program-suffix | --program-suffi | --program-suff \
272 | --program-suf | --program-su | --program-s)
273 ac_prev=program_suffix ;;
274 -program-suffix=* | --program-suffix=* | --program-suffi=* \
275 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276 program_suffix="$ac_optarg" ;;
278 -program-transform-name | --program-transform-name \
279 | --program-transform-nam | --program-transform-na \
280 | --program-transform-n | --program-transform- \
281 | --program-transform | --program-transfor \
282 | --program-transfo | --program-transf \
283 | --program-trans | --program-tran \
284 | --progr-tra | --program-tr | --program-t)
285 ac_prev=program_transform_name ;;
286 -program-transform-name=* | --program-transform-name=* \
287 | --program-transform-nam=* | --program-transform-na=* \
288 | --program-transform-n=* | --program-transform-=* \
289 | --program-transform=* | --program-transfor=* \
290 | --program-transfo=* | --program-transf=* \
291 | --program-trans=* | --program-tran=* \
292 | --progr-tra=* | --program-tr=* | --program-t=*)
293 program_transform_name="$ac_optarg" ;;
295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296 | -silent | --silent | --silen | --sile | --sil)
299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 sbindir="$ac_optarg" ;;
305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307 | --sharedst | --shareds | --shared | --share | --shar \
309 ac_prev=sharedstatedir ;;
310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 sharedstatedir="$ac_optarg" ;;
316 -site | --site | --sit)
318 -site=* | --site=* | --sit=*)
321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324 srcdir="$ac_optarg" ;;
326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327 | --syscon | --sysco | --sysc | --sys | --sy)
328 ac_prev=sysconfdir ;;
329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331 sysconfdir="$ac_optarg" ;;
333 -target | --target | --targe | --targ | --tar | --ta | --t)
335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336 target="$ac_optarg" ;;
338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
341 -version | --version | --versio | --versi | --vers)
342 echo "configure generated by autoconf version 2.12.1"
346 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347 # Reject names that are not valid shell variable names.
348 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 ac_package=`echo $ac_package| sed 's/-/_/g'`
356 eval "with_${ac_package}='$ac_optarg'" ;;
358 -without-* | --without-*)
359 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}=no" ;;
368 # Obsolete; use --with-x.
371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372 | --x-incl | --x-inc | --x-in | --x-i)
373 ac_prev=x_includes ;;
374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376 x_includes="$ac_optarg" ;;
378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380 ac_prev=x_libraries ;;
381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383 x_libraries="$ac_optarg" ;;
385 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 if test "x$nonopt" != xNONE; then
393 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 if test -n "$ac_prev"; then
402 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407 # File descriptor usage:
410 # 2 errors and warnings
411 # 3 some systems may open it to /dev/tty
412 # 4 used on the Kubota Titan
413 # 6 checking for... messages and results
414 # 5 compiler messages saved in config.log
415 if test "$silent" = yes; then
423 This file contains any messages produced by compilers while
424 running configure, to aid debugging if configure makes a mistake.
427 # Strip out --no-create and --no-recursion so they do not pile up.
428 # Also quote any args containing shell metacharacters.
433 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434 | --no-cr | --no-c) ;;
435 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444 # Only set these to C if already set. These must not be set unconditionally
445 # because not all systems understand e.g. LANG=C (notably SCO).
446 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447 # Non-C LC_CTYPE values break the ctype check.
448 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
449 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
454 rm -rf conftest* confdefs.h
455 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
458 # A filename unique to this package, relative to the directory that
459 # configure is in, which we can look for to find out if srcdir is correct.
460 ac_unique_file=dgettext.c
462 # Find the source files, if location was not specified.
463 if test -z "$srcdir"; then
464 ac_srcdir_defaulted=yes
465 # Try the directory containing this script, then its parent.
467 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 if test ! -r $srcdir/$ac_unique_file; then
474 ac_srcdir_defaulted=no
476 if test ! -r $srcdir/$ac_unique_file; then
477 if test "$ac_srcdir_defaulted" = yes; then
478 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485 # Prefer explicitly selected file to automatically selected ones.
486 if test -z "$CONFIG_SITE"; then
487 if test "x$prefix" != xNONE; then
488 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493 for ac_site_file in $CONFIG_SITE; do
494 if test -r "$ac_site_file"; then
495 echo "loading site script $ac_site_file"
500 if test -r "$cache_file"; then
501 echo "loading cache $cache_file"
504 echo "creating cache $cache_file"
509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510 ac_cpp='$CPP $CPPFLAGS'
511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513 cross_compiling=$ac_cv_prog_cc_cross
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524 ac_n= ac_c='\c' ac_t=
533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
534 if test -f $ac_dir/install-sh; then
536 ac_install_sh="$ac_aux_dir/install-sh -c"
538 elif test -f $ac_dir/install.sh; then
540 ac_install_sh="$ac_aux_dir/install.sh -c"
544 if test -z "$ac_aux_dir"; then
545 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
547 ac_config_guess=$ac_aux_dir/config.guess
548 ac_config_sub=$ac_aux_dir/config.sub
549 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
551 # Find a good install program. We prefer a C program (faster),
552 # so one script is as good as another. But avoid the broken or
553 # incompatible versions:
554 # SysV /etc/install, /usr/sbin/install
555 # SunOS /usr/etc/install
558 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
559 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
560 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
561 # ./install, which can be erroneously created by make from ./install.sh.
562 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
563 echo "configure:564: checking for a BSD compatible install" >&5
564 if test -z "$INSTALL"; then
565 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
568 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
569 for ac_dir in $PATH; do
570 # Account for people who put trailing slashes in PATH elements.
572 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
574 # OSF1 and SCO ODT 3.0 have their own names for install.
575 # Don't use installbsd from OSF since it installs stuff as root
577 for ac_prog in ginstall scoinst install; do
578 if test -f $ac_dir/$ac_prog; then
579 if test $ac_prog = install &&
580 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
581 # AIX install. It has an incompatible calling convention.
584 ac_cv_path_install="$ac_dir/$ac_prog -c"
595 if test "${ac_cv_path_install+set}" = set; then
596 INSTALL="$ac_cv_path_install"
598 # As a last resort, use the slow shell script. We don't cache a
599 # path for INSTALL within a source directory, because that will
600 # break other packages using the cache if that directory is
601 # removed, or if the path is relative.
602 INSTALL="$ac_install_sh"
605 echo "$ac_t""$INSTALL" 1>&6
607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
608 # It thinks the first close brace ends the variable substitution.
609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
611 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
616 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
617 echo "configure:618: checking how to run the C preprocessor" >&5
618 # On Suns, sometimes $CPP names a directory.
619 if test -n "$CPP" && test -d "$CPP"; then
622 if test -z "$CPP"; then
623 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
624 echo $ac_n "(cached) $ac_c" 1>&6
626 # This must be in double quotes, not single quotes, because CPP may get
627 # substituted into the Makefile and "${CC-cc}" will confuse make.
629 # On the NeXT, cc -E runs the code through the compiler's parser,
630 # not just through cpp.
631 cat > conftest.$ac_ext <<EOF
632 #line 633 "configure"
633 #include "confdefs.h"
637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
638 { (eval echo configure:639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
639 ac_err=`grep -v '^ *+' conftest.out`
640 if test -z "$ac_err"; then
644 echo "configure: failed program was:" >&5
645 cat conftest.$ac_ext >&5
647 CPP="${CC-cc} -E -traditional-cpp"
648 cat > conftest.$ac_ext <<EOF
649 #line 650 "configure"
650 #include "confdefs.h"
654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
655 { (eval echo configure:656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
656 ac_err=`grep -v '^ *+' conftest.out`
657 if test -z "$ac_err"; then
661 echo "configure: failed program was:" >&5
662 cat conftest.$ac_ext >&5
669 ac_cv_prog_CPP="$CPP"
671 CPP="$ac_cv_prog_CPP"
673 ac_cv_prog_CPP="$CPP"
675 echo "$ac_t""$CPP" 1>&6
677 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
678 echo "configure:679: checking whether ${MAKE-make} sets \${MAKE}" >&5
679 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
680 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 cat > conftestmake <<\EOF
685 @echo 'ac_maketemp="${MAKE}"'
687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
688 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
689 if test -n "$ac_maketemp"; then
690 eval ac_cv_prog_make_${ac_make}_set=yes
692 eval ac_cv_prog_make_${ac_make}_set=no
696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
697 echo "$ac_t""yes" 1>&6
700 echo "$ac_t""no" 1>&6
701 SET_MAKE="MAKE=${MAKE-make}"
704 # Extract the first word of "gcc", so it can be a program name with args.
705 set dummy gcc; ac_word=$2
706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
707 echo "configure:708: checking for $ac_word" >&5
708 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
711 if test -n "$CC"; then
712 ac_cv_prog_CC="$CC" # Let the user override the test.
714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
715 for ac_dir in $PATH; do
716 test -z "$ac_dir" && ac_dir=.
717 if test -f $ac_dir/$ac_word; then
726 if test -n "$CC"; then
727 echo "$ac_t""$CC" 1>&6
729 echo "$ac_t""no" 1>&6
732 if test -z "$CC"; then
733 # Extract the first word of "cc", so it can be a program name with args.
734 set dummy cc; ac_word=$2
735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
736 echo "configure:737: checking for $ac_word" >&5
737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
740 if test -n "$CC"; then
741 ac_cv_prog_CC="$CC" # Let the user override the test.
743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
745 for ac_dir in $PATH; do
746 test -z "$ac_dir" && ac_dir=.
747 if test -f $ac_dir/$ac_word; then
748 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
757 if test $ac_prog_rejected = yes; then
758 # We found a bogon in the path, so make sure we never use it.
759 set dummy $ac_cv_prog_CC
761 if test $# -gt 0; then
762 # We chose a different compiler from the bogus one.
763 # However, it has the same basename, so the bogon will be chosen
764 # first if we set CC to just the basename; use the full file name.
766 set dummy "$ac_dir/$ac_word" "$@"
774 if test -n "$CC"; then
775 echo "$ac_t""$CC" 1>&6
777 echo "$ac_t""no" 1>&6
780 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
783 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
784 echo "configure:785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
788 ac_cpp='$CPP $CPPFLAGS'
789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
790 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
791 cross_compiling=$ac_cv_prog_cc_cross
793 cat > conftest.$ac_ext <<EOF
794 #line 795 "configure"
795 #include "confdefs.h"
798 if { (eval echo configure:799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
799 ac_cv_prog_cc_works=yes
800 # If we can't run a trivial program, we are probably using a cross compiler.
801 if (./conftest; exit) 2>/dev/null; then
802 ac_cv_prog_cc_cross=no
804 ac_cv_prog_cc_cross=yes
807 echo "configure: failed program was:" >&5
808 cat conftest.$ac_ext >&5
809 ac_cv_prog_cc_works=no
813 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
814 if test $ac_cv_prog_cc_works = no; then
815 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
817 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
818 echo "configure:819: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
819 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
820 cross_compiling=$ac_cv_prog_cc_cross
822 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
823 echo "configure:824: checking whether we are using GNU C" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 cat > conftest.c <<EOF
832 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
839 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
841 if test $ac_cv_prog_gcc = yes; then
843 ac_test_CFLAGS="${CFLAGS+set}"
844 ac_save_CFLAGS="$CFLAGS"
846 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
847 echo "configure:848: checking whether ${CC-cc} accepts -g" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 echo 'void f(){}' > conftest.c
852 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
861 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
862 if test "$ac_test_CFLAGS" = set; then
863 CFLAGS="$ac_save_CFLAGS"
864 elif test $ac_cv_prog_cc_g = yes; then
871 test "${CFLAGS+set}" = set || CFLAGS="-g"
874 # Extract the first word of "ranlib", so it can be a program name with args.
875 set dummy ranlib; ac_word=$2
876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877 echo "configure:878: checking for $ac_word" >&5
878 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
881 if test -n "$RANLIB"; then
882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
885 for ac_dir in $PATH; do
886 test -z "$ac_dir" && ac_dir=.
887 if test -f $ac_dir/$ac_word; then
888 ac_cv_prog_RANLIB="ranlib"
893 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
896 RANLIB="$ac_cv_prog_RANLIB"
897 if test -n "$RANLIB"; then
898 echo "$ac_t""$RANLIB" 1>&6
900 echo "$ac_t""no" 1>&6
903 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
904 echo "configure:905: checking for POSIXized ISC" >&5
905 if test -d /etc/conf/kconfig.d &&
906 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
908 echo "$ac_t""yes" 1>&6
909 ISC=yes # If later tests want to check for ISC.
910 cat >> confdefs.h <<\EOF
911 #define _POSIX_SOURCE 1
914 if test "$GCC" = yes; then
920 echo "$ac_t""no" 1>&6
924 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
925 echo "configure:926: checking for ANSI C header files" >&5
926 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
929 cat > conftest.$ac_ext <<EOF
930 #line 931 "configure"
931 #include "confdefs.h"
937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
938 { (eval echo configure:939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
939 ac_err=`grep -v '^ *+' conftest.out`
940 if test -z "$ac_err"; then
942 ac_cv_header_stdc=yes
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
952 if test $ac_cv_header_stdc = yes; then
953 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
954 cat > conftest.$ac_ext <<EOF
955 #line 956 "configure"
956 #include "confdefs.h"
959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
960 egrep "memchr" >/dev/null 2>&1; then
970 if test $ac_cv_header_stdc = yes; then
971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
972 cat > conftest.$ac_ext <<EOF
973 #line 974 "configure"
974 #include "confdefs.h"
977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
978 egrep "free" >/dev/null 2>&1; then
988 if test $ac_cv_header_stdc = yes; then
989 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
990 if test "$cross_compiling" = yes; then
993 cat > conftest.$ac_ext <<EOF
994 #line 995 "configure"
995 #include "confdefs.h"
997 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
998 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1000 int main () { int i; for (i = 0; i < 256; i++)
1001 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1005 if { (eval echo configure:1006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1009 echo "configure: failed program was:" >&5
1010 cat conftest.$ac_ext >&5
1012 ac_cv_header_stdc=no
1020 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1021 if test $ac_cv_header_stdc = yes; then
1022 cat >> confdefs.h <<\EOF
1023 #define STDC_HEADERS 1
1028 echo $ac_n "checking for working const""... $ac_c" 1>&6
1029 echo "configure:1030: checking for working const" >&5
1030 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1031 echo $ac_n "(cached) $ac_c" 1>&6
1033 cat > conftest.$ac_ext <<EOF
1034 #line 1035 "configure"
1035 #include "confdefs.h"
1039 /* Ultrix mips cc rejects this. */
1040 typedef int charset[2]; const charset x;
1041 /* SunOS 4.1.1 cc rejects this. */
1042 char const *const *ccp;
1044 /* NEC SVR4.0.2 mips cc rejects this. */
1045 struct point {int x, y;};
1046 static struct point const zero = {0,0};
1047 /* AIX XL C 1.02.0.0 rejects this.
1048 It does not let you subtract one const X* pointer from another in an arm
1049 of an if-expression whose if-part is not a constant expression */
1050 const char *g = "string";
1051 ccp = &g + (g ? g-g : 0);
1052 /* HPUX 7.0 cc rejects these. */
1055 ccp = (char const *const *) p;
1056 { /* SCO 3.2v4 cc rejects this. */
1058 char const *s = 0 ? (char *) 0 : (char const *) 0;
1062 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1064 const int *foo = &x[0];
1067 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1068 typedef const int *iptr;
1072 { /* AIX XL C 1.02.0.0 rejects this saying
1073 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1074 struct s { int j; const int *ap[3]; };
1075 struct s *b; b->j = 5;
1077 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1083 if { (eval echo configure:1084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1087 echo "configure: failed program was:" >&5
1088 cat conftest.$ac_ext >&5
1095 echo "$ac_t""$ac_cv_c_const" 1>&6
1096 if test $ac_cv_c_const = no; then
1097 cat >> confdefs.h <<\EOF
1103 echo $ac_n "checking for inline""... $ac_c" 1>&6
1104 echo "configure:1105: checking for inline" >&5
1105 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1109 for ac_kw in inline __inline__ __inline; do
1110 cat > conftest.$ac_ext <<EOF
1111 #line 1112 "configure"
1112 #include "confdefs.h"
1118 if { (eval echo configure:1119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1120 ac_cv_c_inline=$ac_kw; break
1122 echo "configure: failed program was:" >&5
1123 cat conftest.$ac_ext >&5
1130 echo "$ac_t""$ac_cv_c_inline" 1>&6
1131 case "$ac_cv_c_inline" in
1133 no) cat >> confdefs.h <<\EOF
1137 *) cat >> confdefs.h <<EOF
1138 #define inline $ac_cv_c_inline
1143 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1144 echo "configure:1145: checking for off_t" >&5
1145 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 cat > conftest.$ac_ext <<EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1151 #include <sys/types.h>
1157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1158 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1160 ac_cv_type_off_t=yes
1168 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1169 if test $ac_cv_type_off_t = no; then
1170 cat >> confdefs.h <<\EOF
1176 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1177 echo "configure:1178: checking for size_t" >&5
1178 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 cat > conftest.$ac_ext <<EOF
1182 #line 1183 "configure"
1183 #include "confdefs.h"
1184 #include <sys/types.h>
1190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1191 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1193 ac_cv_type_size_t=yes
1196 ac_cv_type_size_t=no
1201 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1202 if test $ac_cv_type_size_t = no; then
1203 cat >> confdefs.h <<\EOF
1204 #define size_t unsigned
1209 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1210 # for constant arguments. Useless!
1211 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1212 echo "configure:1213: checking for working alloca.h" >&5
1213 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1221 char *p = alloca(2 * sizeof(int));
1224 if { (eval echo configure:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1226 ac_cv_header_alloca_h=yes
1228 echo "configure: failed program was:" >&5
1229 cat conftest.$ac_ext >&5
1231 ac_cv_header_alloca_h=no
1236 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1237 if test $ac_cv_header_alloca_h = yes; then
1238 cat >> confdefs.h <<\EOF
1239 #define HAVE_ALLOCA_H 1
1244 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1245 echo "configure:1246: checking for alloca" >&5
1246 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1249 cat > conftest.$ac_ext <<EOF
1250 #line 1251 "configure"
1251 #include "confdefs.h"
1254 # define alloca __builtin_alloca
1257 # include <alloca.h>
1262 # ifndef alloca /* predefined by HP cc +Olibcalls */
1270 char *p = (char *) alloca(1);
1273 if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1275 ac_cv_func_alloca_works=yes
1277 echo "configure: failed program was:" >&5
1278 cat conftest.$ac_ext >&5
1280 ac_cv_func_alloca_works=no
1285 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1286 if test $ac_cv_func_alloca_works = yes; then
1287 cat >> confdefs.h <<\EOF
1288 #define HAVE_ALLOCA 1
1293 if test $ac_cv_func_alloca_works = no; then
1294 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1295 # that cause trouble. Some versions do not even contain alloca or
1296 # contain a buggy version. If you still want to use their alloca,
1297 # use ar to extract alloca.o from them instead of compiling alloca.c.
1299 cat >> confdefs.h <<\EOF
1304 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1305 echo "configure:1306: checking whether alloca needs Cray hooks" >&5
1306 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1312 #if defined(CRAY) && ! defined(CRAY2)
1319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1320 egrep "webecray" >/dev/null 2>&1; then
1331 echo "$ac_t""$ac_cv_os_cray" 1>&6
1332 if test $ac_cv_os_cray = yes; then
1333 for ac_func in _getb67 GETB67 getb67; do
1334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1335 echo "configure:1336: checking for $ac_func" >&5
1336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 cat > conftest.$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1342 /* System header to define __stub macros and hopefully few prototypes,
1343 which can conflict with char $ac_func(); below. */
1345 /* Override any gcc2 internal prototype to avoid an error. */
1346 /* We use char because int might match the return type of a gcc2
1347 builtin and then its argument prototype would still apply. */
1352 /* The GNU C library defines this for functions which it implements
1353 to always fail with ENOSYS. Some functions are actually named
1354 something starting with __ and the normal name is an alias. */
1355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1363 if { (eval echo configure:1364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1365 eval "ac_cv_func_$ac_func=yes"
1367 echo "configure: failed program was:" >&5
1368 cat conftest.$ac_ext >&5
1370 eval "ac_cv_func_$ac_func=no"
1375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1376 echo "$ac_t""yes" 1>&6
1377 cat >> confdefs.h <<EOF
1378 #define CRAY_STACKSEG_END $ac_func
1383 echo "$ac_t""no" 1>&6
1389 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1390 echo "configure:1391: checking stack direction for C alloca" >&5
1391 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 if test "$cross_compiling" = yes; then
1395 ac_cv_c_stack_direction=0
1397 cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1400 find_stack_direction ()
1402 static char *addr = 0;
1407 return find_stack_direction ();
1410 return (&dummy > addr) ? 1 : -1;
1414 exit (find_stack_direction() < 0);
1417 if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1419 ac_cv_c_stack_direction=1
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1424 ac_cv_c_stack_direction=-1
1431 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1432 cat >> confdefs.h <<EOF
1433 #define STACK_DIRECTION $ac_cv_c_stack_direction
1438 for ac_hdr in unistd.h
1440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1442 echo "configure:1443: checking for $ac_hdr" >&5
1443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1452 { (eval echo configure:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1453 ac_err=`grep -v '^ *+' conftest.out`
1454 if test -z "$ac_err"; then
1456 eval "ac_cv_header_$ac_safe=yes"
1459 echo "configure: failed program was:" >&5
1460 cat conftest.$ac_ext >&5
1462 eval "ac_cv_header_$ac_safe=no"
1466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1467 echo "$ac_t""yes" 1>&6
1468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1469 cat >> confdefs.h <<EOF
1470 #define $ac_tr_hdr 1
1474 echo "$ac_t""no" 1>&6
1478 for ac_func in getpagesize
1480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1481 echo "configure:1482: checking for $ac_func" >&5
1482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1485 cat > conftest.$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 /* System header to define __stub macros and hopefully few prototypes,
1489 which can conflict with char $ac_func(); below. */
1491 /* Override any gcc2 internal prototype to avoid an error. */
1492 /* We use char because int might match the return type of a gcc2
1493 builtin and then its argument prototype would still apply. */
1498 /* The GNU C library defines this for functions which it implements
1499 to always fail with ENOSYS. Some functions are actually named
1500 something starting with __ and the normal name is an alias. */
1501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1509 if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1511 eval "ac_cv_func_$ac_func=yes"
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1516 eval "ac_cv_func_$ac_func=no"
1521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1522 echo "$ac_t""yes" 1>&6
1523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1524 cat >> confdefs.h <<EOF
1525 #define $ac_tr_func 1
1529 echo "$ac_t""no" 1>&6
1533 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1534 echo "configure:1535: checking for working mmap" >&5
1535 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 if test "$cross_compiling" = yes; then
1539 ac_cv_func_mmap_fixed_mapped=no
1541 cat > conftest.$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1545 /* Thanks to Mike Haertel and Jim Avera for this test.
1546 Here is a matrix of mmap possibilities:
1547 mmap private not fixed
1548 mmap private fixed at somewhere currently unmapped
1549 mmap private fixed at somewhere already mapped
1550 mmap shared not fixed
1551 mmap shared fixed at somewhere currently unmapped
1552 mmap shared fixed at somewhere already mapped
1553 For private mappings, we should verify that changes cannot be read()
1554 back from the file, nor mmap's back from the file at a different
1555 address. (There have been systems where private was not correctly
1556 implemented like the infamous i386 svr4.0, and systems where the
1557 VM page cache was not coherent with the filesystem buffer cache
1558 like early versions of FreeBSD and possibly contemporary NetBSD.)
1559 For shared mappings, we should conversely verify that changes get
1560 propogated back to all the places they're supposed to be.
1562 Grep wants private fixed already mapped.
1563 The main things grep needs to know about mmap are:
1564 * does it exist and is it safe to write into the mmap'd area
1565 * how to use it (BSD variants) */
1566 #include <sys/types.h>
1568 #include <sys/mman.h>
1570 /* This mess was copied from the GNU getpagesize.h. */
1571 #ifndef HAVE_GETPAGESIZE
1572 # ifdef HAVE_UNISTD_H
1573 # include <unistd.h>
1576 /* Assume that all systems that can run configure have sys/param.h. */
1577 # ifndef HAVE_SYS_PARAM_H
1578 # define HAVE_SYS_PARAM_H 1
1581 # ifdef _SC_PAGESIZE
1582 # define getpagesize() sysconf(_SC_PAGESIZE)
1583 # else /* no _SC_PAGESIZE */
1584 # ifdef HAVE_SYS_PARAM_H
1585 # include <sys/param.h>
1586 # ifdef EXEC_PAGESIZE
1587 # define getpagesize() EXEC_PAGESIZE
1588 # else /* no EXEC_PAGESIZE */
1590 # define getpagesize() NBPG * CLSIZE
1593 # endif /* no CLSIZE */
1594 # else /* no NBPG */
1596 # define getpagesize() NBPC
1597 # else /* no NBPC */
1599 # define getpagesize() PAGESIZE
1600 # endif /* PAGESIZE */
1601 # endif /* no NBPC */
1602 # endif /* no NBPG */
1603 # endif /* no EXEC_PAGESIZE */
1604 # else /* no HAVE_SYS_PARAM_H */
1605 # define getpagesize() 8192 /* punt totally */
1606 # endif /* no HAVE_SYS_PARAM_H */
1607 # endif /* no _SC_PAGESIZE */
1609 #endif /* no HAVE_GETPAGESIZE */
1612 extern "C" { void *malloc(unsigned); }
1620 char *data, *data2, *data3;
1624 pagesize = getpagesize();
1627 * First, make a file with some known garbage in it.
1629 data = malloc(pagesize);
1632 for (i = 0; i < pagesize; ++i)
1633 *(data + i) = rand();
1635 fd = creat("conftestmmap", 0600);
1638 if (write(fd, data, pagesize) != pagesize)
1643 * Next, try to mmap the file at a fixed address which
1644 * already has something else allocated at it. If we can,
1645 * also make sure that we see the same garbage.
1647 fd = open("conftestmmap", O_RDWR);
1650 data2 = malloc(2 * pagesize);
1653 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1654 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1655 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1657 for (i = 0; i < pagesize; ++i)
1658 if (*(data + i) != *(data2 + i))
1662 * Finally, make sure that changes to the mapped area
1663 * do not percolate back to the file as seen by read().
1664 * (This is a bug on some variants of i386 svr4.0.)
1666 for (i = 0; i < pagesize; ++i)
1667 *(data2 + i) = *(data2 + i) + 1;
1668 data3 = malloc(pagesize);
1671 if (read(fd, data3, pagesize) != pagesize)
1673 for (i = 0; i < pagesize; ++i)
1674 if (*(data + i) != *(data3 + i))
1677 unlink("conftestmmap");
1682 if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1684 ac_cv_func_mmap_fixed_mapped=yes
1686 echo "configure: failed program was:" >&5
1687 cat conftest.$ac_ext >&5
1689 ac_cv_func_mmap_fixed_mapped=no
1696 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1697 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1698 cat >> confdefs.h <<\EOF
1705 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1706 unistd.h values.h sys/param.h
1708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1709 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1710 echo "configure:1711: checking for $ac_hdr" >&5
1711 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 cat > conftest.$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1720 { (eval echo configure:1721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1721 ac_err=`grep -v '^ *+' conftest.out`
1722 if test -z "$ac_err"; then
1724 eval "ac_cv_header_$ac_safe=yes"
1727 echo "configure: failed program was:" >&5
1728 cat conftest.$ac_ext >&5
1730 eval "ac_cv_header_$ac_safe=no"
1734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1735 echo "$ac_t""yes" 1>&6
1736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1737 cat >> confdefs.h <<EOF
1738 #define $ac_tr_hdr 1
1742 echo "$ac_t""no" 1>&6
1746 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1747 __argz_count __argz_stringify __argz_next
1749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1750 echo "configure:1751: checking for $ac_func" >&5
1751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1754 cat > conftest.$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1757 /* System header to define __stub macros and hopefully few prototypes,
1758 which can conflict with char $ac_func(); below. */
1760 /* Override any gcc2 internal prototype to avoid an error. */
1761 /* We use char because int might match the return type of a gcc2
1762 builtin and then its argument prototype would still apply. */
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1780 eval "ac_cv_func_$ac_func=yes"
1782 echo "configure: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1785 eval "ac_cv_func_$ac_func=no"
1790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1791 echo "$ac_t""yes" 1>&6
1792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1793 cat >> confdefs.h <<EOF
1794 #define $ac_tr_func 1
1798 echo "$ac_t""no" 1>&6
1803 if test "${ac_cv_func_stpcpy+set}" != "set"; then
1804 for ac_func in stpcpy
1806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1807 echo "configure:1808: checking for $ac_func" >&5
1808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1814 /* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char $ac_func(); below. */
1817 /* Override any gcc2 internal prototype to avoid an error. */
1818 /* We use char because int might match the return type of a gcc2
1819 builtin and then its argument prototype would still apply. */
1824 /* The GNU C library defines this for functions which it implements
1825 to always fail with ENOSYS. Some functions are actually named
1826 something starting with __ and the normal name is an alias. */
1827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1835 if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1837 eval "ac_cv_func_$ac_func=yes"
1839 echo "configure: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 eval "ac_cv_func_$ac_func=no"
1847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1848 echo "$ac_t""yes" 1>&6
1849 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1850 cat >> confdefs.h <<EOF
1851 #define $ac_tr_func 1
1855 echo "$ac_t""no" 1>&6
1860 if test "${ac_cv_func_stpcpy}" = "yes"; then
1861 cat >> confdefs.h <<\EOF
1862 #define HAVE_STPCPY 1
1867 if test $ac_cv_header_locale_h = yes; then
1868 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
1869 echo "configure:1870: checking for LC_MESSAGES" >&5
1870 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 cat > conftest.$ac_ext <<EOF
1874 #line 1875 "configure"
1875 #include "confdefs.h"
1881 if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1883 am_cv_val_LC_MESSAGES=yes
1885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1888 am_cv_val_LC_MESSAGES=no
1893 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
1894 if test $am_cv_val_LC_MESSAGES = yes; then
1895 cat >> confdefs.h <<\EOF
1896 #define HAVE_LC_MESSAGES 1
1901 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
1902 echo "configure:1903: checking whether NLS is requested" >&5
1903 # Check whether --enable-nls or --disable-nls was given.
1904 if test "${enable_nls+set}" = set; then
1905 enableval="$enable_nls"
1911 echo "$ac_t""$USE_NLS" 1>&6
1914 USE_INCLUDED_LIBINTL=no
1916 if test "$USE_NLS" = "yes"; then
1917 cat >> confdefs.h <<\EOF
1918 #define ENABLE_NLS 1
1921 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
1922 echo "configure:1923: checking whether included gettext is requested" >&5
1923 # Check whether --with-included-gettext or --without-included-gettext was given.
1924 if test "${with_included_gettext+set}" = set; then
1925 withval="$with_included_gettext"
1926 nls_cv_force_use_gnu_gettext=$withval
1928 nls_cv_force_use_gnu_gettext=no
1931 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
1933 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
1934 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
1936 nls_cv_header_libgt=
1939 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
1940 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
1941 echo "configure:1942: checking for libintl.h" >&5
1942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 cat > conftest.$ac_ext <<EOF
1946 #line 1947 "configure"
1947 #include "confdefs.h"
1948 #include <libintl.h>
1950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1951 { (eval echo configure:1952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1952 ac_err=`grep -v '^ *+' conftest.out`
1953 if test -z "$ac_err"; then
1955 eval "ac_cv_header_$ac_safe=yes"
1958 echo "configure: failed program was:" >&5
1959 cat conftest.$ac_ext >&5
1961 eval "ac_cv_header_$ac_safe=no"
1965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1966 echo "$ac_t""yes" 1>&6
1967 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
1968 echo "configure:1969: checking for gettext in libc" >&5
1969 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1972 cat > conftest.$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1975 #include <libintl.h>
1977 return (int) gettext ("")
1980 if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1982 gt_cv_func_gettext_libc=yes
1984 echo "configure: failed program was:" >&5
1985 cat conftest.$ac_ext >&5
1987 gt_cv_func_gettext_libc=no
1992 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
1994 if test "$gt_cv_func_gettext_libc" != "yes"; then
1995 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
1996 echo "configure:1997: checking for bindtextdomain in -lintl" >&5
1997 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
1998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 ac_save_LIBS="$LIBS"
2003 cat > conftest.$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2006 /* Override any gcc2 internal prototype to avoid an error. */
2007 /* We use char because int might match the return type of a gcc2
2008 builtin and then its argument prototype would still apply. */
2009 char bindtextdomain();
2015 if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2017 eval "ac_cv_lib_$ac_lib_var=yes"
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2022 eval "ac_cv_lib_$ac_lib_var=no"
2025 LIBS="$ac_save_LIBS"
2028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2029 echo "$ac_t""yes" 1>&6
2030 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2031 echo "configure:2032: checking for gettext in libintl" >&5
2032 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2035 cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2040 return (int) gettext ("")
2043 if { (eval echo configure:2044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2045 gt_cv_func_gettext_libintl=yes
2047 echo "configure: failed program was:" >&5
2048 cat conftest.$ac_ext >&5
2050 gt_cv_func_gettext_libintl=no
2055 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2057 echo "$ac_t""no" 1>&6
2062 if test "$gt_cv_func_gettext_libc" = "yes" \
2063 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2064 cat >> confdefs.h <<\EOF
2065 #define HAVE_GETTEXT 1
2068 # Extract the first word of "msgfmt", so it can be a program name with args.
2069 set dummy msgfmt; ac_word=$2
2070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_word" >&5
2072 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2077 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2081 for ac_dir in $PATH; do
2082 test -z "$ac_dir" && ac_dir=.
2083 if test -f $ac_dir/$ac_word; then
2084 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2085 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2091 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2095 MSGFMT="$ac_cv_path_MSGFMT"
2096 if test -n "$MSGFMT"; then
2097 echo "$ac_t""$MSGFMT" 1>&6
2099 echo "$ac_t""no" 1>&6
2101 if test "$MSGFMT" != "no"; then
2102 for ac_func in dcgettext
2104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2105 echo "configure:2106: checking for $ac_func" >&5
2106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 cat > conftest.$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2112 /* System header to define __stub macros and hopefully few prototypes,
2113 which can conflict with char $ac_func(); below. */
2115 /* Override any gcc2 internal prototype to avoid an error. */
2116 /* We use char because int might match the return type of a gcc2
2117 builtin and then its argument prototype would still apply. */
2122 /* The GNU C library defines this for functions which it implements
2123 to always fail with ENOSYS. Some functions are actually named
2124 something starting with __ and the normal name is an alias. */
2125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2133 if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2135 eval "ac_cv_func_$ac_func=yes"
2137 echo "configure: failed program was:" >&5
2138 cat conftest.$ac_ext >&5
2140 eval "ac_cv_func_$ac_func=no"
2145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2148 cat >> confdefs.h <<EOF
2149 #define $ac_tr_func 1
2153 echo "$ac_t""no" 1>&6
2157 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2158 set dummy gmsgfmt; ac_word=$2
2159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2160 echo "configure:2161: checking for $ac_word" >&5
2161 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2166 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2169 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2173 for ac_dir in $PATH; do
2174 test -z "$ac_dir" && ac_dir=.
2175 if test -f $ac_dir/$ac_word; then
2176 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2181 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2185 GMSGFMT="$ac_cv_path_GMSGFMT"
2186 if test -n "$GMSGFMT"; then
2187 echo "$ac_t""$GMSGFMT" 1>&6
2189 echo "$ac_t""no" 1>&6
2192 # Extract the first word of "xgettext", so it can be a program name with args.
2193 set dummy xgettext; ac_word=$2
2194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2195 echo "configure:2196: checking for $ac_word" >&5
2196 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2201 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2205 for ac_dir in $PATH; do
2206 test -z "$ac_dir" && ac_dir=.
2207 if test -f $ac_dir/$ac_word; then
2208 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2209 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2215 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2219 XGETTEXT="$ac_cv_path_XGETTEXT"
2220 if test -n "$XGETTEXT"; then
2221 echo "$ac_t""$XGETTEXT" 1>&6
2223 echo "$ac_t""no" 1>&6
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2231 extern int _nl_msg_cat_cntr;
2232 return _nl_msg_cat_cntr
2235 if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2252 echo "$ac_t""no" 1>&6
2256 if test "$CATOBJEXT" = "NONE"; then
2257 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2258 echo "configure:2259: checking whether catgets can be used" >&5
2259 # Check whether --with-catgets or --without-catgets was given.
2260 if test "${with_catgets+set}" = set; then
2261 withval="$with_catgets"
2262 nls_cv_use_catgets=$withval
2264 nls_cv_use_catgets=no
2267 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2269 if test "$nls_cv_use_catgets" = "yes"; then
2270 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2271 echo "configure:2272: checking for main in -li" >&5
2272 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2276 ac_save_LIBS="$LIBS"
2278 cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2286 if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2288 eval "ac_cv_lib_$ac_lib_var=yes"
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2293 eval "ac_cv_lib_$ac_lib_var=no"
2296 LIBS="$ac_save_LIBS"
2299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2300 echo "$ac_t""yes" 1>&6
2301 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2302 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2303 cat >> confdefs.h <<EOF
2304 #define $ac_tr_lib 1
2310 echo "$ac_t""no" 1>&6
2313 echo $ac_n "checking for catgets""... $ac_c" 1>&6
2314 echo "configure:2315: checking for catgets" >&5
2315 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 /* System header to define __stub macros and hopefully few prototypes,
2322 which can conflict with char catgets(); below. */
2324 /* Override any gcc2 internal prototype to avoid an error. */
2325 /* We use char because int might match the return type of a gcc2
2326 builtin and then its argument prototype would still apply. */
2331 /* The GNU C library defines this for functions which it implements
2332 to always fail with ENOSYS. Some functions are actually named
2333 something starting with __ and the normal name is an alias. */
2334 #if defined (__stub_catgets) || defined (__stub___catgets)
2342 if { (eval echo configure:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2344 eval "ac_cv_func_catgets=yes"
2346 echo "configure: failed program was:" >&5
2347 cat conftest.$ac_ext >&5
2349 eval "ac_cv_func_catgets=no"
2354 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2355 echo "$ac_t""yes" 1>&6
2356 cat >> confdefs.h <<\EOF
2357 #define HAVE_CATGETS 1
2360 INTLOBJS="\$(CATOBJS)"
2361 # Extract the first word of "gencat", so it can be a program name with args.
2362 set dummy gencat; ac_word=$2
2363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2364 echo "configure:2365: checking for $ac_word" >&5
2365 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2370 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2373 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2377 for ac_dir in $PATH; do
2378 test -z "$ac_dir" && ac_dir=.
2379 if test -f $ac_dir/$ac_word; then
2380 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2385 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2389 GENCAT="$ac_cv_path_GENCAT"
2390 if test -n "$GENCAT"; then
2391 echo "$ac_t""$GENCAT" 1>&6
2393 echo "$ac_t""no" 1>&6
2395 if test "$GENCAT" != "no"; then
2396 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2397 set dummy gmsgfmt; ac_word=$2
2398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2399 echo "configure:2400: checking for $ac_word" >&5
2400 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2405 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2408 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2412 for ac_dir in $PATH; do
2413 test -z "$ac_dir" && ac_dir=.
2414 if test -f $ac_dir/$ac_word; then
2415 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2420 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2424 GMSGFMT="$ac_cv_path_GMSGFMT"
2425 if test -n "$GMSGFMT"; then
2426 echo "$ac_t""$GMSGFMT" 1>&6
2428 echo "$ac_t""no" 1>&6
2431 if test "$GMSGFMT" = "no"; then
2432 # Extract the first word of "msgfmt", so it can be a program name with args.
2433 set dummy msgfmt; ac_word=$2
2434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2435 echo "configure:2436: checking for $ac_word" >&5
2436 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2441 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2445 for ac_dir in $PATH; do
2446 test -z "$ac_dir" && ac_dir=.
2447 if test -f $ac_dir/$ac_word; then
2448 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2449 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2455 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2459 GMSGFMT="$ac_cv_path_GMSGFMT"
2460 if test -n "$GMSGFMT"; then
2461 echo "$ac_t""$GMSGFMT" 1>&6
2463 echo "$ac_t""no" 1>&6
2467 # Extract the first word of "xgettext", so it can be a program name with args.
2468 set dummy xgettext; ac_word=$2
2469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2470 echo "configure:2471: checking for $ac_word" >&5
2471 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2476 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2480 for ac_dir in $PATH; do
2481 test -z "$ac_dir" && ac_dir=.
2482 if test -f $ac_dir/$ac_word; then
2483 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2484 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2490 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2494 XGETTEXT="$ac_cv_path_XGETTEXT"
2495 if test -n "$XGETTEXT"; then
2496 echo "$ac_t""$XGETTEXT" 1>&6
2498 echo "$ac_t""no" 1>&6
2501 USE_INCLUDED_LIBINTL=yes
2505 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2507 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2508 nls_cv_header_intl=intl/libintl.h
2509 nls_cv_header_libgt=intl/libgettext.h
2512 echo "$ac_t""no" 1>&6
2518 if test "$CATOBJEXT" = "NONE"; then
2519 nls_cv_use_gnu_gettext=yes
2523 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2524 INTLOBJS="\$(GETTOBJS)"
2525 # Extract the first word of "msgfmt", so it can be a program name with args.
2526 set dummy msgfmt; ac_word=$2
2527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2528 echo "configure:2529: checking for $ac_word" >&5
2529 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2534 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2538 for ac_dir in $PATH; do
2539 test -z "$ac_dir" && ac_dir=.
2540 if test -f $ac_dir/$ac_word; then
2541 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2542 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2548 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2552 MSGFMT="$ac_cv_path_MSGFMT"
2553 if test -n "$MSGFMT"; then
2554 echo "$ac_t""$MSGFMT" 1>&6
2556 echo "$ac_t""no" 1>&6
2559 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2560 set dummy gmsgfmt; ac_word=$2
2561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2562 echo "configure:2563: checking for $ac_word" >&5
2563 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2568 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2571 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2575 for ac_dir in $PATH; do
2576 test -z "$ac_dir" && ac_dir=.
2577 if test -f $ac_dir/$ac_word; then
2578 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2583 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2587 GMSGFMT="$ac_cv_path_GMSGFMT"
2588 if test -n "$GMSGFMT"; then
2589 echo "$ac_t""$GMSGFMT" 1>&6
2591 echo "$ac_t""no" 1>&6
2594 # Extract the first word of "xgettext", so it can be a program name with args.
2595 set dummy xgettext; ac_word=$2
2596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2597 echo "configure:2598: checking for $ac_word" >&5
2598 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2603 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2607 for ac_dir in $PATH; do
2608 test -z "$ac_dir" && ac_dir=.
2609 if test -f $ac_dir/$ac_word; then
2610 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2611 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2617 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2621 XGETTEXT="$ac_cv_path_XGETTEXT"
2622 if test -n "$XGETTEXT"; then
2623 echo "$ac_t""$XGETTEXT" 1>&6
2625 echo "$ac_t""no" 1>&6
2629 USE_INCLUDED_LIBINTL=yes
2633 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2635 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2636 nls_cv_header_intl=intl/libintl.h
2637 nls_cv_header_libgt=intl/libgettext.h
2640 if test "$XGETTEXT" != ":"; then
2641 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2644 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2649 # We need to process the po/ directory.
2653 nls_cv_header_intl=intl/libintl.h
2654 nls_cv_header_libgt=intl/libgettext.h
2657 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2658 # because some of the sources are only built for this goal.
2659 if test "$PACKAGE" = gettext; then
2661 USE_INCLUDED_LIBINTL=yes
2664 for lang in $ALL_LINGUAS; do
2665 GMOFILES="$GMOFILES $lang.gmo"
2666 POFILES="$POFILES $lang.po"
2682 if test "x$CATOBJEXT" != "x"; then
2683 if test "x$ALL_LINGUAS" = "x"; then
2686 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2687 echo "configure:2688: checking for catalogs to be installed" >&5
2689 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2690 case "$ALL_LINGUAS" in
2691 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2694 LINGUAS=$NEW_LINGUAS
2695 echo "$ac_t""$LINGUAS" 1>&6
2698 if test -n "$LINGUAS"; then
2699 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2703 if test $ac_cv_header_locale_h = yes; then
2704 INCLUDE_LOCALE_H="#include <locale.h>"
2707 /* The system does not provide the header <locale.h>. Take care yourself. */"
2711 if test -f $srcdir/po2tbl.sed.in; then
2712 if test "$CATOBJEXT" = ".cat"; then
2713 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2714 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2715 echo "configure:2716: checking for linux/version.h" >&5
2716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2719 cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2722 #include <linux/version.h>
2724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2725 { (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2726 ac_err=`grep -v '^ *+' conftest.out`
2727 if test -z "$ac_err"; then
2729 eval "ac_cv_header_$ac_safe=yes"
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2735 eval "ac_cv_header_$ac_safe=no"
2739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2740 echo "$ac_t""yes" 1>&6
2743 echo "$ac_t""no" 1>&6
2748 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2750 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2751 $srcdir/po2tbl.sed.in > po2tbl.sed
2754 if test "$PACKAGE" = "gettext"; then
2764 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2770 if test -d $srcdir/po; then
2771 test -d po || mkdir po
2772 if test "x$srcdir" != "x."; then
2773 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2774 posrcprefix="$srcdir/"
2776 posrcprefix="../$srcdir/"
2782 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2783 < $srcdir/po/POTFILES.in > po/POTFILES
2788 cat > confcache <<\EOF
2789 # This file is a shell script that caches the results of configure
2790 # tests run on this system so they can be shared between configure
2791 # scripts and configure runs. It is not useful on other systems.
2792 # If it contains results you don't want to keep, you may remove or edit it.
2794 # By default, configure uses ./config.cache as the cache file,
2795 # creating it if it does not exist already. You can give configure
2796 # the --cache-file=FILE option to use a different cache file; that is
2797 # what configure does when it calls configure scripts in
2798 # subdirectories, so they share the cache.
2799 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2800 # config.status only pays attention to the cache file if you give it the
2801 # --recheck option to rerun configure.
2804 # The following way of writing the cache mishandles newlines in values,
2805 # but we know of no workaround that is simple, portable, and efficient.
2806 # So, don't put newlines in cache variables' values.
2807 # Ultrix sh set writes to stderr and can't be redirected directly,
2808 # and sets the high bit in the cache file unless we assign to the vars.
2810 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
2812 # `set' does not quote correctly, so add quotes (double-quote substitution
2813 # turns \\\\ into \\, and sed turns \\ into \).
2815 -e "s/'/'\\\\''/g" \
2816 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2819 # `set' quotes correctly as required by POSIX, so do not add quotes.
2820 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2823 if cmp -s $cache_file confcache; then
2826 if test -w $cache_file; then
2827 echo "updating cache $cache_file"
2828 cat confcache > $cache_file
2830 echo "not updating unwritable cache $cache_file"
2835 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2837 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2838 # Let make expand exec_prefix.
2839 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2841 # Any assignment to VPATH causes Sun make to only execute
2842 # the first set of double-colon rules, so remove it if not needed.
2843 # If there is a colon in the path, we need to keep it.
2844 if test "x$srcdir" = x.; then
2845 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2848 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2850 DEFS=-DHAVE_CONFIG_H
2852 # Without the "./", some shells look in PATH for config.status.
2853 : ${CONFIG_STATUS=./config.status}
2855 echo creating $CONFIG_STATUS
2856 rm -f $CONFIG_STATUS
2857 cat > $CONFIG_STATUS <<EOF
2859 # Generated automatically by configure.
2860 # Run this file to recreate the current configuration.
2861 # This directory was configured as follows,
2862 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2864 # $0 $ac_configure_args
2866 # Compiler output produced by configure, useful for debugging
2867 # configure, is in ./config.log if it exists.
2869 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2872 case "\$ac_option" in
2873 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2874 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2875 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2876 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2877 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
2879 -help | --help | --hel | --he | --h)
2880 echo "\$ac_cs_usage"; exit 0 ;;
2881 *) echo "\$ac_cs_usage"; exit 1 ;;
2885 ac_given_srcdir=$srcdir
2886 ac_given_INSTALL="$INSTALL"
2888 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2890 cat >> $CONFIG_STATUS <<EOF
2892 # Protect against being on the right side of a sed subst in config.status.
2893 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2894 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2898 s%@CFLAGS@%$CFLAGS%g
2899 s%@CPPFLAGS@%$CPPFLAGS%g
2900 s%@CXXFLAGS@%$CXXFLAGS%g
2902 s%@LDFLAGS@%$LDFLAGS%g
2904 s%@exec_prefix@%$exec_prefix%g
2905 s%@prefix@%$prefix%g
2906 s%@program_transform_name@%$program_transform_name%g
2907 s%@bindir@%$bindir%g
2908 s%@sbindir@%$sbindir%g
2909 s%@libexecdir@%$libexecdir%g
2910 s%@datadir@%$datadir%g
2911 s%@sysconfdir@%$sysconfdir%g
2912 s%@sharedstatedir@%$sharedstatedir%g
2913 s%@localstatedir@%$localstatedir%g
2914 s%@libdir@%$libdir%g
2915 s%@includedir@%$includedir%g
2916 s%@oldincludedir@%$oldincludedir%g
2917 s%@infodir@%$infodir%g
2918 s%@mandir@%$mandir%g
2919 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2920 s%@INSTALL_DATA@%$INSTALL_DATA%g
2921 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2922 s%@SET_MAKE@%$SET_MAKE%g
2924 s%@RANLIB@%$RANLIB%g
2926 s%@ALLOCA@%$ALLOCA%g
2927 s%@USE_NLS@%$USE_NLS%g
2928 s%@MSGFMT@%$MSGFMT%g
2929 s%@GMSGFMT@%$GMSGFMT%g
2930 s%@XGETTEXT@%$XGETTEXT%g
2931 s%@GENCAT@%$GENCAT%g
2932 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
2933 s%@CATALOGS@%$CATALOGS%g
2934 s%@CATOBJEXT@%$CATOBJEXT%g
2935 s%@DATADIRNAME@%$DATADIRNAME%g
2936 s%@GMOFILES@%$GMOFILES%g
2937 s%@INSTOBJEXT@%$INSTOBJEXT%g
2938 s%@INTLDEPS@%$INTLDEPS%g
2939 s%@INTLLIBS@%$INTLLIBS%g
2940 s%@INTLOBJS@%$INTLOBJS%g
2941 s%@POFILES@%$POFILES%g
2943 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
2945 s%@GT_YES@%$GT_YES%g
2946 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
2952 cat >> $CONFIG_STATUS <<\EOF
2954 # Split the substitutions into bite-sized pieces for seds with
2955 # small command number limits, like on Digital OSF/1 and HP-UX.
2956 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2957 ac_file=1 # Number of current file.
2958 ac_beg=1 # First line for current file.
2959 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2962 while $ac_more_lines; do
2963 if test $ac_beg -gt 1; then
2964 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2966 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2968 if test ! -s conftest.s$ac_file; then
2970 rm -f conftest.s$ac_file
2972 if test -z "$ac_sed_cmds"; then
2973 ac_sed_cmds="sed -f conftest.s$ac_file"
2975 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2977 ac_file=`expr $ac_file + 1`
2979 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2982 if test -z "$ac_sed_cmds"; then
2987 cat >> $CONFIG_STATUS <<EOF
2989 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2991 cat >> $CONFIG_STATUS <<\EOF
2992 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2993 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2995 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2996 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2997 *) ac_file_in="${ac_file}.in" ;;
3000 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3002 # Remove last slash and all that follows it. Not all systems have dirname.
3003 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3004 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3005 # The file is in a subdirectory.
3006 test ! -d "$ac_dir" && mkdir "$ac_dir"
3007 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3008 # A "../" for each directory in $ac_dir_suffix.
3009 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3011 ac_dir_suffix= ac_dots=
3014 case "$ac_given_srcdir" in
3016 if test -z "$ac_dots"; then top_srcdir=.
3017 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3018 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3020 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3021 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3024 case "$ac_given_INSTALL" in
3025 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3026 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3029 echo creating "$ac_file"
3031 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3033 *Makefile*) ac_comsub="1i\\
3034 # $configure_input" ;;
3038 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3040 s%@configure_input@%$configure_input%g
3041 s%@srcdir@%$srcdir%g
3042 s%@top_srcdir@%$top_srcdir%g
3043 s%@INSTALL@%$INSTALL%g
3044 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3048 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3049 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3051 # ac_d sets the value in "#define NAME VALUE" lines.
3052 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3053 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3056 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3057 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3058 ac_uB='\([ ]\)%\1#\2define\3'
3061 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3062 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3063 ac_eB='$%\1#\2define\3'
3067 if test "${CONFIG_HEADERS+set}" != set; then
3069 cat >> $CONFIG_STATUS <<EOF
3070 CONFIG_HEADERS="config.h"
3072 cat >> $CONFIG_STATUS <<\EOF
3074 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3075 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3077 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3078 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3079 *) ac_file_in="${ac_file}.in" ;;
3082 echo creating $ac_file
3084 rm -f conftest.frag conftest.in conftest.out
3085 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3086 cat $ac_file_inputs > conftest.in
3090 # Transform confdefs.h into a sed script conftest.vals that substitutes
3091 # the proper values into config.h.in to produce config.h. And first:
3092 # Protect against being on the right side of a sed subst in config.status.
3093 # Protect against being in an unquoted here document in config.status.
3095 cat > conftest.hdr <<\EOF
3098 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3102 sed -n -f conftest.hdr confdefs.h > conftest.vals
3105 # This sed command replaces #undef with comments. This is necessary, for
3106 # example, in the case of _POSIX_SOURCE, which is predefined and required
3107 # on some systems where configure will not decide to define it.
3108 cat >> conftest.vals <<\EOF
3109 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3112 # Break up conftest.vals because some shells have a limit on
3113 # the size of here documents, and old seds have small limits too.
3118 ac_lines=`grep -c . conftest.vals`
3119 # grep -c gives empty output for an empty file on some AIX systems.
3120 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3121 # Write a limited-size here document to conftest.frag.
3122 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3123 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3125 sed -f conftest.frag conftest.in > conftest.out
3127 mv conftest.out conftest.in
3129 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3131 mv conftest.tail conftest.vals
3135 cat >> $CONFIG_STATUS <<\EOF
3136 rm -f conftest.frag conftest.h
3137 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3138 cat conftest.in >> conftest.h
3140 if cmp -s $ac_file conftest.h 2>/dev/null; then
3141 echo "$ac_file is unchanged"
3144 # Remove last slash and all that follows it. Not all systems have dirname.
3145 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3146 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3147 # The file is in a subdirectory.
3148 test ! -d "$ac_dir" && mkdir "$ac_dir"
3151 mv conftest.h $ac_file
3156 cat >> $CONFIG_STATUS <<EOF
3160 cat >> $CONFIG_STATUS <<\EOF
3161 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3165 chmod +x $CONFIG_STATUS
3166 rm -fr confdefs* $ac_clean_files
3167 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1