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 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file=./config.cache
32 program_transform_name=s,x,x,
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
53 # Initialize some other variables.
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 # Accept the important Cygnus configure options, so we can diagnose typos.
80 -bindir | --bindir | --bindi | --bind | --bin | --bi)
82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83 bindir="$ac_optarg" ;;
85 -build | --build | --buil | --bui | --bu)
87 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90 -cache-file | --cache-file | --cache-fil | --cache-fi \
91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95 cache_file="$ac_optarg" ;;
97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101 datadir="$ac_optarg" ;;
103 -disable-* | --disable-*)
104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
112 -enable-* | --enable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127 | --exec | --exe | --ex)
128 ac_prev=exec_prefix ;;
129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131 | --exec=* | --exe=* | --ex=*)
132 exec_prefix="$ac_optarg" ;;
134 -gas | --gas | --ga | --g)
135 # Obsolete; use --with-gas.
138 -help | --help | --hel | --he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
193 -host | --host | --hos | --ho)
195 -host=* | --host=* | --hos=* | --ho=*)
198 -includedir | --includedir | --includedi | --included | --include \
199 | --includ | --inclu | --incl | --inc)
200 ac_prev=includedir ;;
201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202 | --includ=* | --inclu=* | --incl=* | --inc=*)
203 includedir="$ac_optarg" ;;
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
210 -libdir | --libdir | --libdi | --libd)
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216 | --libexe | --libex | --libe)
217 ac_prev=libexecdir ;;
218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219 | --libexe=* | --libex=* | --libe=*)
220 libexecdir="$ac_optarg" ;;
222 -localstatedir | --localstatedir | --localstatedi | --localstated \
223 | --localstate | --localstat | --localsta | --localst \
224 | --locals | --local | --loca | --loc | --lo)
225 ac_prev=localstatedir ;;
226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229 localstatedir="$ac_optarg" ;;
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
237 # Obsolete; use --without-fp.
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250 | --oldin | --oldi | --old | --ol | --o)
251 ac_prev=oldincludedir ;;
252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255 oldincludedir="$ac_optarg" ;;
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
263 | --program-pre | --program-pr | --program-p)
264 ac_prev=program_prefix ;;
265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267 program_prefix="$ac_optarg" ;;
269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
270 | --program-suf | --program-su | --program-s)
271 ac_prev=program_suffix ;;
272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274 program_suffix="$ac_optarg" ;;
276 -program-transform-name | --program-transform-name \
277 | --program-transform-nam | --program-transform-na \
278 | --program-transform-n | --program-transform- \
279 | --program-transform | --program-transfor \
280 | --program-transfo | --program-transf \
281 | --program-trans | --program-tran \
282 | --progr-tra | --program-tr | --program-t)
283 ac_prev=program_transform_name ;;
284 -program-transform-name=* | --program-transform-name=* \
285 | --program-transform-nam=* | --program-transform-na=* \
286 | --program-transform-n=* | --program-transform-=* \
287 | --program-transform=* | --program-transfor=* \
288 | --program-transfo=* | --program-transf=* \
289 | --program-trans=* | --program-tran=* \
290 | --progr-tra=* | --program-tr=* | --program-t=*)
291 program_transform_name="$ac_optarg" ;;
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301 sbindir="$ac_optarg" ;;
303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305 | --sharedst | --shareds | --shared | --share | --shar \
307 ac_prev=sharedstatedir ;;
308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312 sharedstatedir="$ac_optarg" ;;
314 -site | --site | --sit)
316 -site=* | --site=* | --sit=*)
319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322 srcdir="$ac_optarg" ;;
324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325 | --syscon | --sysco | --sysc | --sys | --sy)
326 ac_prev=sysconfdir ;;
327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329 sysconfdir="$ac_optarg" ;;
331 -target | --target | --targe | --targ | --tar | --ta | --t)
333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334 target="$ac_optarg" ;;
336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
339 -version | --version | --versio | --versi | --vers)
340 echo "configure generated by autoconf version 2.12.1"
344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 ac_package=`echo $ac_package| sed 's/-/_/g'`
354 eval "with_${ac_package}='$ac_optarg'" ;;
356 -without-* | --without-*)
357 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
366 # Obsolete; use --with-x.
369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370 | --x-incl | --x-inc | --x-in | --x-i)
371 ac_prev=x_includes ;;
372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374 x_includes="$ac_optarg" ;;
376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378 ac_prev=x_libraries ;;
379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381 x_libraries="$ac_optarg" ;;
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 if test "x$nonopt" != xNONE; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405 # File descriptor usage:
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432 | --no-cr | --no-c) ;;
433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=dgettext.c
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468 if test ! -r $srcdir/$ac_unique_file; then
472 ac_srcdir_defaulted=no
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
502 echo "creating cache $cache_file"
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522 ac_n= ac_c='\c' ac_t=
531 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
532 if test -f $ac_dir/install-sh; then
534 ac_install_sh="$ac_aux_dir/install-sh -c"
536 elif test -f $ac_dir/install.sh; then
538 ac_install_sh="$ac_aux_dir/install.sh -c"
542 if test -z "$ac_aux_dir"; then
543 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
545 ac_config_guess=$ac_aux_dir/config.guess
546 ac_config_sub=$ac_aux_dir/config.sub
547 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
549 # Find a good install program. We prefer a C program (faster),
550 # so one script is as good as another. But avoid the broken or
551 # incompatible versions:
552 # SysV /etc/install, /usr/sbin/install
553 # SunOS /usr/etc/install
556 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
557 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
558 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
559 # ./install, which can be erroneously created by make from ./install.sh.
560 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
561 echo "configure:562: checking for a BSD compatible install" >&5
562 if test -z "$INSTALL"; then
563 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
566 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
567 for ac_dir in $PATH; do
568 # Account for people who put trailing slashes in PATH elements.
570 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
572 # OSF1 and SCO ODT 3.0 have their own names for install.
573 # Don't use installbsd from OSF since it installs stuff as root
575 for ac_prog in ginstall scoinst install; do
576 if test -f $ac_dir/$ac_prog; then
577 if test $ac_prog = install &&
578 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
579 # AIX install. It has an incompatible calling convention.
582 ac_cv_path_install="$ac_dir/$ac_prog -c"
593 if test "${ac_cv_path_install+set}" = set; then
594 INSTALL="$ac_cv_path_install"
596 # As a last resort, use the slow shell script. We don't cache a
597 # path for INSTALL within a source directory, because that will
598 # break other packages using the cache if that directory is
599 # removed, or if the path is relative.
600 INSTALL="$ac_install_sh"
603 echo "$ac_t""$INSTALL" 1>&6
605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
606 # It thinks the first close brace ends the variable substitution.
607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
612 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
614 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
615 echo "configure:616: checking how to run the C preprocessor" >&5
616 # On Suns, sometimes $CPP names a directory.
617 if test -n "$CPP" && test -d "$CPP"; then
620 if test -z "$CPP"; then
621 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
624 # This must be in double quotes, not single quotes, because CPP may get
625 # substituted into the Makefile and "${CC-cc}" will confuse make.
627 # On the NeXT, cc -E runs the code through the compiler's parser,
628 # not just through cpp.
629 cat > conftest.$ac_ext <<EOF
630 #line 631 "configure"
631 #include "confdefs.h"
635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
636 { (eval echo configure:637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
637 ac_err=`grep -v '^ *+' conftest.out`
638 if test -z "$ac_err"; then
642 echo "configure: failed program was:" >&5
643 cat conftest.$ac_ext >&5
645 CPP="${CC-cc} -E -traditional-cpp"
646 cat > conftest.$ac_ext <<EOF
647 #line 648 "configure"
648 #include "confdefs.h"
652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
653 { (eval echo configure:654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
654 ac_err=`grep -v '^ *+' conftest.out`
655 if test -z "$ac_err"; then
659 echo "configure: failed program was:" >&5
660 cat conftest.$ac_ext >&5
667 ac_cv_prog_CPP="$CPP"
669 CPP="$ac_cv_prog_CPP"
671 ac_cv_prog_CPP="$CPP"
673 echo "$ac_t""$CPP" 1>&6
675 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
676 echo "configure:677: checking whether ${MAKE-make} sets \${MAKE}" >&5
677 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
678 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
681 cat > conftestmake <<\EOF
683 @echo 'ac_maketemp="${MAKE}"'
685 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
686 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
687 if test -n "$ac_maketemp"; then
688 eval ac_cv_prog_make_${ac_make}_set=yes
690 eval ac_cv_prog_make_${ac_make}_set=no
694 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
695 echo "$ac_t""yes" 1>&6
698 echo "$ac_t""no" 1>&6
699 SET_MAKE="MAKE=${MAKE-make}"
702 # Extract the first word of "gcc", so it can be a program name with args.
703 set dummy gcc; ac_word=$2
704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
705 echo "configure:706: checking for $ac_word" >&5
706 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
709 if test -n "$CC"; then
710 ac_cv_prog_CC="$CC" # Let the user override the test.
712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
713 for ac_dir in $PATH; do
714 test -z "$ac_dir" && ac_dir=.
715 if test -f $ac_dir/$ac_word; then
724 if test -n "$CC"; then
725 echo "$ac_t""$CC" 1>&6
727 echo "$ac_t""no" 1>&6
730 if test -z "$CC"; then
731 # Extract the first word of "cc", so it can be a program name with args.
732 set dummy cc; ac_word=$2
733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
734 echo "configure:735: checking for $ac_word" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
738 if test -n "$CC"; then
739 ac_cv_prog_CC="$CC" # Let the user override the test.
741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
743 for ac_dir in $PATH; do
744 test -z "$ac_dir" && ac_dir=.
745 if test -f $ac_dir/$ac_word; then
746 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
755 if test $ac_prog_rejected = yes; then
756 # We found a bogon in the path, so make sure we never use it.
757 set dummy $ac_cv_prog_CC
759 if test $# -gt 0; then
760 # We chose a different compiler from the bogus one.
761 # However, it has the same basename, so the bogon will be chosen
762 # first if we set CC to just the basename; use the full file name.
764 set dummy "$ac_dir/$ac_word" "$@"
772 if test -n "$CC"; then
773 echo "$ac_t""$CC" 1>&6
775 echo "$ac_t""no" 1>&6
778 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
781 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
782 echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786 ac_cpp='$CPP $CPPFLAGS'
787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789 cross_compiling=$ac_cv_prog_cc_cross
791 cat > conftest.$ac_ext <<EOF
792 #line 793 "configure"
793 #include "confdefs.h"
796 if { (eval echo configure:797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
797 ac_cv_prog_cc_works=yes
798 # If we can't run a trivial program, we are probably using a cross compiler.
799 if (./conftest; exit) 2>/dev/null; then
800 ac_cv_prog_cc_cross=no
802 ac_cv_prog_cc_cross=yes
805 echo "configure: failed program was:" >&5
806 cat conftest.$ac_ext >&5
807 ac_cv_prog_cc_works=no
811 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
812 if test $ac_cv_prog_cc_works = no; then
813 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
816 echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
817 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
818 cross_compiling=$ac_cv_prog_cc_cross
820 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
821 echo "configure:822: checking whether we are using GNU C" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 cat > conftest.c <<EOF
830 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
837 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
839 if test $ac_cv_prog_gcc = yes; then
841 ac_test_CFLAGS="${CFLAGS+set}"
842 ac_save_CFLAGS="$CFLAGS"
844 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
845 echo "configure:846: checking whether ${CC-cc} accepts -g" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
849 echo 'void f(){}' > conftest.c
850 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
859 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
860 if test "$ac_test_CFLAGS" = set; then
861 CFLAGS="$ac_save_CFLAGS"
862 elif test $ac_cv_prog_cc_g = yes; then
869 test "${CFLAGS+set}" = set || CFLAGS="-g"
872 # Extract the first word of "ranlib", so it can be a program name with args.
873 set dummy ranlib; ac_word=$2
874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
875 echo "configure:876: checking for $ac_word" >&5
876 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
879 if test -n "$RANLIB"; then
880 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
883 for ac_dir in $PATH; do
884 test -z "$ac_dir" && ac_dir=.
885 if test -f $ac_dir/$ac_word; then
886 ac_cv_prog_RANLIB="ranlib"
891 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
894 RANLIB="$ac_cv_prog_RANLIB"
895 if test -n "$RANLIB"; then
896 echo "$ac_t""$RANLIB" 1>&6
898 echo "$ac_t""no" 1>&6
901 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
902 echo "configure:903: checking for POSIXized ISC" >&5
903 if test -d /etc/conf/kconfig.d &&
904 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
906 echo "$ac_t""yes" 1>&6
907 ISC=yes # If later tests want to check for ISC.
908 cat >> confdefs.h <<\EOF
909 #define _POSIX_SOURCE 1
912 if test "$GCC" = yes; then
918 echo "$ac_t""no" 1>&6
922 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
923 echo "configure:924: checking for ANSI C header files" >&5
924 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
927 cat > conftest.$ac_ext <<EOF
928 #line 929 "configure"
929 #include "confdefs.h"
935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
936 { (eval echo configure:937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
937 ac_err=`grep -v '^ *+' conftest.out`
938 if test -z "$ac_err"; then
940 ac_cv_header_stdc=yes
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
950 if test $ac_cv_header_stdc = yes; then
951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
952 cat > conftest.$ac_ext <<EOF
953 #line 954 "configure"
954 #include "confdefs.h"
957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
958 egrep "memchr" >/dev/null 2>&1; then
968 if test $ac_cv_header_stdc = yes; then
969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
970 cat > conftest.$ac_ext <<EOF
971 #line 972 "configure"
972 #include "confdefs.h"
975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
976 egrep "free" >/dev/null 2>&1; then
986 if test $ac_cv_header_stdc = yes; then
987 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
988 if test "$cross_compiling" = yes; then
991 cat > conftest.$ac_ext <<EOF
992 #line 993 "configure"
993 #include "confdefs.h"
995 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
996 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
997 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
998 int main () { int i; for (i = 0; i < 256; i++)
999 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1003 if { (eval echo configure:1004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1007 echo "configure: failed program was:" >&5
1008 cat conftest.$ac_ext >&5
1010 ac_cv_header_stdc=no
1018 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1019 if test $ac_cv_header_stdc = yes; then
1020 cat >> confdefs.h <<\EOF
1021 #define STDC_HEADERS 1
1026 echo $ac_n "checking for working const""... $ac_c" 1>&6
1027 echo "configure:1028: checking for working const" >&5
1028 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 cat > conftest.$ac_ext <<EOF
1032 #line 1033 "configure"
1033 #include "confdefs.h"
1037 /* Ultrix mips cc rejects this. */
1038 typedef int charset[2]; const charset x;
1039 /* SunOS 4.1.1 cc rejects this. */
1040 char const *const *ccp;
1042 /* NEC SVR4.0.2 mips cc rejects this. */
1043 struct point {int x, y;};
1044 static struct point const zero = {0,0};
1045 /* AIX XL C 1.02.0.0 rejects this.
1046 It does not let you subtract one const X* pointer from another in an arm
1047 of an if-expression whose if-part is not a constant expression */
1048 const char *g = "string";
1049 ccp = &g + (g ? g-g : 0);
1050 /* HPUX 7.0 cc rejects these. */
1053 ccp = (char const *const *) p;
1054 { /* SCO 3.2v4 cc rejects this. */
1056 char const *s = 0 ? (char *) 0 : (char const *) 0;
1060 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1062 const int *foo = &x[0];
1065 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1066 typedef const int *iptr;
1070 { /* AIX XL C 1.02.0.0 rejects this saying
1071 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1072 struct s { int j; const int *ap[3]; };
1073 struct s *b; b->j = 5;
1075 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1081 if { (eval echo configure:1082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1085 echo "configure: failed program was:" >&5
1086 cat conftest.$ac_ext >&5
1093 echo "$ac_t""$ac_cv_c_const" 1>&6
1094 if test $ac_cv_c_const = no; then
1095 cat >> confdefs.h <<\EOF
1101 echo $ac_n "checking for inline""... $ac_c" 1>&6
1102 echo "configure:1103: checking for inline" >&5
1103 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1107 for ac_kw in inline __inline__ __inline; do
1108 cat > conftest.$ac_ext <<EOF
1109 #line 1110 "configure"
1110 #include "confdefs.h"
1116 if { (eval echo configure:1117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1118 ac_cv_c_inline=$ac_kw; break
1120 echo "configure: failed program was:" >&5
1121 cat conftest.$ac_ext >&5
1128 echo "$ac_t""$ac_cv_c_inline" 1>&6
1129 case "$ac_cv_c_inline" in
1131 no) cat >> confdefs.h <<\EOF
1135 *) cat >> confdefs.h <<EOF
1136 #define inline $ac_cv_c_inline
1141 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1142 echo "configure:1143: checking for off_t" >&5
1143 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 cat > conftest.$ac_ext <<EOF
1147 #line 1148 "configure"
1148 #include "confdefs.h"
1149 #include <sys/types.h>
1155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1156 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1158 ac_cv_type_off_t=yes
1166 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1167 if test $ac_cv_type_off_t = no; then
1168 cat >> confdefs.h <<\EOF
1174 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1175 echo "configure:1176: checking for size_t" >&5
1176 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 cat > conftest.$ac_ext <<EOF
1180 #line 1181 "configure"
1181 #include "confdefs.h"
1182 #include <sys/types.h>
1188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1189 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1191 ac_cv_type_size_t=yes
1194 ac_cv_type_size_t=no
1199 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1200 if test $ac_cv_type_size_t = no; then
1201 cat >> confdefs.h <<\EOF
1202 #define size_t unsigned
1207 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1208 # for constant arguments. Useless!
1209 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1210 echo "configure:1211: checking for working alloca.h" >&5
1211 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 cat > conftest.$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1219 char *p = alloca(2 * sizeof(int));
1222 if { (eval echo configure:1223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1224 ac_cv_header_alloca_h=yes
1226 echo "configure: failed program was:" >&5
1227 cat conftest.$ac_ext >&5
1229 ac_cv_header_alloca_h=no
1234 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1235 if test $ac_cv_header_alloca_h = yes; then
1236 cat >> confdefs.h <<\EOF
1237 #define HAVE_ALLOCA_H 1
1242 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1243 echo "configure:1244: checking for alloca" >&5
1244 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 cat > conftest.$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1252 # define alloca __builtin_alloca
1255 # include <alloca.h>
1260 # ifndef alloca /* predefined by HP cc +Olibcalls */
1268 char *p = (char *) alloca(1);
1271 if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1273 ac_cv_func_alloca_works=yes
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1278 ac_cv_func_alloca_works=no
1283 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1284 if test $ac_cv_func_alloca_works = yes; then
1285 cat >> confdefs.h <<\EOF
1286 #define HAVE_ALLOCA 1
1291 if test $ac_cv_func_alloca_works = no; then
1292 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1293 # that cause trouble. Some versions do not even contain alloca or
1294 # contain a buggy version. If you still want to use their alloca,
1295 # use ar to extract alloca.o from them instead of compiling alloca.c.
1297 cat >> confdefs.h <<\EOF
1302 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1303 echo "configure:1304: checking whether alloca needs Cray hooks" >&5
1304 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1307 cat > conftest.$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1310 #if defined(CRAY) && ! defined(CRAY2)
1317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1318 egrep "webecray" >/dev/null 2>&1; then
1329 echo "$ac_t""$ac_cv_os_cray" 1>&6
1330 if test $ac_cv_os_cray = yes; then
1331 for ac_func in _getb67 GETB67 getb67; do
1332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1333 echo "configure:1334: checking for $ac_func" >&5
1334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 cat > conftest.$ac_ext <<EOF
1338 #line 1339 "configure"
1339 #include "confdefs.h"
1340 /* System header to define __stub macros and hopefully few prototypes,
1341 which can conflict with char $ac_func(); below. */
1343 /* Override any gcc2 internal prototype to avoid an error. */
1344 /* We use char because int might match the return type of a gcc2
1345 builtin and then its argument prototype would still apply. */
1350 /* The GNU C library defines this for functions which it implements
1351 to always fail with ENOSYS. Some functions are actually named
1352 something starting with __ and the normal name is an alias. */
1353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1361 if { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1363 eval "ac_cv_func_$ac_func=yes"
1365 echo "configure: failed program was:" >&5
1366 cat conftest.$ac_ext >&5
1368 eval "ac_cv_func_$ac_func=no"
1373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1374 echo "$ac_t""yes" 1>&6
1375 cat >> confdefs.h <<EOF
1376 #define CRAY_STACKSEG_END $ac_func
1381 echo "$ac_t""no" 1>&6
1387 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1388 echo "configure:1389: checking stack direction for C alloca" >&5
1389 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 if test "$cross_compiling" = yes; then
1393 ac_cv_c_stack_direction=0
1395 cat > conftest.$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1398 find_stack_direction ()
1400 static char *addr = 0;
1405 return find_stack_direction ();
1408 return (&dummy > addr) ? 1 : -1;
1412 exit (find_stack_direction() < 0);
1415 if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1417 ac_cv_c_stack_direction=1
1419 echo "configure: failed program was:" >&5
1420 cat conftest.$ac_ext >&5
1422 ac_cv_c_stack_direction=-1
1429 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1430 cat >> confdefs.h <<EOF
1431 #define STACK_DIRECTION $ac_cv_c_stack_direction
1436 for ac_hdr in unistd.h
1438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1440 echo "configure:1441: checking for $ac_hdr" >&5
1441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1444 cat > conftest.$ac_ext <<EOF
1445 #line 1446 "configure"
1446 #include "confdefs.h"
1449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1450 { (eval echo configure:1451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1451 ac_err=`grep -v '^ *+' conftest.out`
1452 if test -z "$ac_err"; then
1454 eval "ac_cv_header_$ac_safe=yes"
1457 echo "configure: failed program was:" >&5
1458 cat conftest.$ac_ext >&5
1460 eval "ac_cv_header_$ac_safe=no"
1464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1465 echo "$ac_t""yes" 1>&6
1466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1467 cat >> confdefs.h <<EOF
1468 #define $ac_tr_hdr 1
1472 echo "$ac_t""no" 1>&6
1476 for ac_func in getpagesize
1478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_func" >&5
1480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1483 cat > conftest.$ac_ext <<EOF
1484 #line 1485 "configure"
1485 #include "confdefs.h"
1486 /* System header to define __stub macros and hopefully few prototypes,
1487 which can conflict with char $ac_func(); below. */
1489 /* Override any gcc2 internal prototype to avoid an error. */
1490 /* We use char because int might match the return type of a gcc2
1491 builtin and then its argument prototype would still apply. */
1496 /* The GNU C library defines this for functions which it implements
1497 to always fail with ENOSYS. Some functions are actually named
1498 something starting with __ and the normal name is an alias. */
1499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1507 if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1509 eval "ac_cv_func_$ac_func=yes"
1511 echo "configure: failed program was:" >&5
1512 cat conftest.$ac_ext >&5
1514 eval "ac_cv_func_$ac_func=no"
1519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1520 echo "$ac_t""yes" 1>&6
1521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1522 cat >> confdefs.h <<EOF
1523 #define $ac_tr_func 1
1527 echo "$ac_t""no" 1>&6
1531 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1532 echo "configure:1533: checking for working mmap" >&5
1533 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1536 if test "$cross_compiling" = yes; then
1537 ac_cv_func_mmap_fixed_mapped=no
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1543 /* Thanks to Mike Haertel and Jim Avera for this test.
1544 Here is a matrix of mmap possibilities:
1545 mmap private not fixed
1546 mmap private fixed at somewhere currently unmapped
1547 mmap private fixed at somewhere already mapped
1548 mmap shared not fixed
1549 mmap shared fixed at somewhere currently unmapped
1550 mmap shared fixed at somewhere already mapped
1551 For private mappings, we should verify that changes cannot be read()
1552 back from the file, nor mmap's back from the file at a different
1553 address. (There have been systems where private was not correctly
1554 implemented like the infamous i386 svr4.0, and systems where the
1555 VM page cache was not coherent with the filesystem buffer cache
1556 like early versions of FreeBSD and possibly contemporary NetBSD.)
1557 For shared mappings, we should conversely verify that changes get
1558 propogated back to all the places they're supposed to be.
1560 Grep wants private fixed already mapped.
1561 The main things grep needs to know about mmap are:
1562 * does it exist and is it safe to write into the mmap'd area
1563 * how to use it (BSD variants) */
1564 #include <sys/types.h>
1566 #include <sys/mman.h>
1568 /* This mess was copied from the GNU getpagesize.h. */
1569 #ifndef HAVE_GETPAGESIZE
1570 # ifdef HAVE_UNISTD_H
1571 # include <unistd.h>
1574 /* Assume that all systems that can run configure have sys/param.h. */
1575 # ifndef HAVE_SYS_PARAM_H
1576 # define HAVE_SYS_PARAM_H 1
1579 # ifdef _SC_PAGESIZE
1580 # define getpagesize() sysconf(_SC_PAGESIZE)
1581 # else /* no _SC_PAGESIZE */
1582 # ifdef HAVE_SYS_PARAM_H
1583 # include <sys/param.h>
1584 # ifdef EXEC_PAGESIZE
1585 # define getpagesize() EXEC_PAGESIZE
1586 # else /* no EXEC_PAGESIZE */
1588 # define getpagesize() NBPG * CLSIZE
1591 # endif /* no CLSIZE */
1592 # else /* no NBPG */
1594 # define getpagesize() NBPC
1595 # else /* no NBPC */
1597 # define getpagesize() PAGESIZE
1598 # endif /* PAGESIZE */
1599 # endif /* no NBPC */
1600 # endif /* no NBPG */
1601 # endif /* no EXEC_PAGESIZE */
1602 # else /* no HAVE_SYS_PARAM_H */
1603 # define getpagesize() 8192 /* punt totally */
1604 # endif /* no HAVE_SYS_PARAM_H */
1605 # endif /* no _SC_PAGESIZE */
1607 #endif /* no HAVE_GETPAGESIZE */
1610 extern "C" { void *malloc(unsigned); }
1618 char *data, *data2, *data3;
1622 pagesize = getpagesize();
1625 * First, make a file with some known garbage in it.
1627 data = malloc(pagesize);
1630 for (i = 0; i < pagesize; ++i)
1631 *(data + i) = rand();
1633 fd = creat("conftestmmap", 0600);
1636 if (write(fd, data, pagesize) != pagesize)
1641 * Next, try to mmap the file at a fixed address which
1642 * already has something else allocated at it. If we can,
1643 * also make sure that we see the same garbage.
1645 fd = open("conftestmmap", O_RDWR);
1648 data2 = malloc(2 * pagesize);
1651 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1652 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1653 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1655 for (i = 0; i < pagesize; ++i)
1656 if (*(data + i) != *(data2 + i))
1660 * Finally, make sure that changes to the mapped area
1661 * do not percolate back to the file as seen by read().
1662 * (This is a bug on some variants of i386 svr4.0.)
1664 for (i = 0; i < pagesize; ++i)
1665 *(data2 + i) = *(data2 + i) + 1;
1666 data3 = malloc(pagesize);
1669 if (read(fd, data3, pagesize) != pagesize)
1671 for (i = 0; i < pagesize; ++i)
1672 if (*(data + i) != *(data3 + i))
1675 unlink("conftestmmap");
1680 if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1682 ac_cv_func_mmap_fixed_mapped=yes
1684 echo "configure: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1687 ac_cv_func_mmap_fixed_mapped=no
1694 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1695 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1696 cat >> confdefs.h <<\EOF
1703 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1704 unistd.h values.h sys/param.h
1706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_hdr" >&5
1709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1718 { (eval echo configure:1719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1719 ac_err=`grep -v '^ *+' conftest.out`
1720 if test -z "$ac_err"; then
1722 eval "ac_cv_header_$ac_safe=yes"
1725 echo "configure: failed program was:" >&5
1726 cat conftest.$ac_ext >&5
1728 eval "ac_cv_header_$ac_safe=no"
1732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1733 echo "$ac_t""yes" 1>&6
1734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1735 cat >> confdefs.h <<EOF
1736 #define $ac_tr_hdr 1
1740 echo "$ac_t""no" 1>&6
1744 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1745 __argz_count __argz_stringify __argz_next
1747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1748 echo "configure:1749: checking for $ac_func" >&5
1749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1752 cat > conftest.$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1755 /* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $ac_func(); below. */
1758 /* Override any gcc2 internal prototype to avoid an error. */
1759 /* We use char because int might match the return type of a gcc2
1760 builtin and then its argument prototype would still apply. */
1765 /* The GNU C library defines this for functions which it implements
1766 to always fail with ENOSYS. Some functions are actually named
1767 something starting with __ and the normal name is an alias. */
1768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1776 if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1778 eval "ac_cv_func_$ac_func=yes"
1780 echo "configure: failed program was:" >&5
1781 cat conftest.$ac_ext >&5
1783 eval "ac_cv_func_$ac_func=no"
1788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1789 echo "$ac_t""yes" 1>&6
1790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1791 cat >> confdefs.h <<EOF
1792 #define $ac_tr_func 1
1796 echo "$ac_t""no" 1>&6
1801 if test "${ac_cv_func_stpcpy+set}" != "set"; then
1802 for ac_func in stpcpy
1804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1805 echo "configure:1806: checking for $ac_func" >&5
1806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 cat > conftest.$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1812 /* System header to define __stub macros and hopefully few prototypes,
1813 which can conflict with char $ac_func(); below. */
1815 /* Override any gcc2 internal prototype to avoid an error. */
1816 /* We use char because int might match the return type of a gcc2
1817 builtin and then its argument prototype would still apply. */
1822 /* The GNU C library defines this for functions which it implements
1823 to always fail with ENOSYS. Some functions are actually named
1824 something starting with __ and the normal name is an alias. */
1825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1833 if { (eval echo configure:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1835 eval "ac_cv_func_$ac_func=yes"
1837 echo "configure: failed program was:" >&5
1838 cat conftest.$ac_ext >&5
1840 eval "ac_cv_func_$ac_func=no"
1845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1846 echo "$ac_t""yes" 1>&6
1847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1848 cat >> confdefs.h <<EOF
1849 #define $ac_tr_func 1
1853 echo "$ac_t""no" 1>&6
1858 if test "${ac_cv_func_stpcpy}" = "yes"; then
1859 cat >> confdefs.h <<\EOF
1860 #define HAVE_STPCPY 1
1865 if test $ac_cv_header_locale_h = yes; then
1866 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
1867 echo "configure:1868: checking for LC_MESSAGES" >&5
1868 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 cat > conftest.$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1879 if { (eval echo configure:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1881 am_cv_val_LC_MESSAGES=yes
1883 echo "configure: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1886 am_cv_val_LC_MESSAGES=no
1891 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
1892 if test $am_cv_val_LC_MESSAGES = yes; then
1893 cat >> confdefs.h <<\EOF
1894 #define HAVE_LC_MESSAGES 1
1899 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
1900 echo "configure:1901: checking whether NLS is requested" >&5
1901 # Check whether --enable-nls or --disable-nls was given.
1902 if test "${enable_nls+set}" = set; then
1903 enableval="$enable_nls"
1909 echo "$ac_t""$USE_NLS" 1>&6
1912 USE_INCLUDED_LIBINTL=no
1914 if test "$USE_NLS" = "yes"; then
1915 cat >> confdefs.h <<\EOF
1916 #define ENABLE_NLS 1
1919 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
1920 echo "configure:1921: checking whether included gettext is requested" >&5
1921 # Check whether --with-included-gettext or --without-included-gettext was given.
1922 if test "${with_included_gettext+set}" = set; then
1923 withval="$with_included_gettext"
1924 nls_cv_force_use_gnu_gettext=$withval
1926 nls_cv_force_use_gnu_gettext=no
1929 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
1931 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
1932 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
1934 nls_cv_header_libgt=
1937 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
1938 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
1939 echo "configure:1940: checking for libintl.h" >&5
1940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1946 #include <libintl.h>
1948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1949 { (eval echo configure:1950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1950 ac_err=`grep -v '^ *+' conftest.out`
1951 if test -z "$ac_err"; then
1953 eval "ac_cv_header_$ac_safe=yes"
1956 echo "configure: failed program was:" >&5
1957 cat conftest.$ac_ext >&5
1959 eval "ac_cv_header_$ac_safe=no"
1963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1964 echo "$ac_t""yes" 1>&6
1965 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
1966 echo "configure:1967: checking for gettext in libc" >&5
1967 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1970 cat > conftest.$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1973 #include <libintl.h>
1975 return (int) gettext ("")
1978 if { (eval echo configure:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1980 gt_cv_func_gettext_libc=yes
1982 echo "configure: failed program was:" >&5
1983 cat conftest.$ac_ext >&5
1985 gt_cv_func_gettext_libc=no
1990 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
1992 if test "$gt_cv_func_gettext_libc" != "yes"; then
1993 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
1994 echo "configure:1995: checking for bindtextdomain in -lintl" >&5
1995 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
1996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 ac_save_LIBS="$LIBS"
2001 cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2004 /* Override any gcc2 internal prototype to avoid an error. */
2005 /* We use char because int might match the return type of a gcc2
2006 builtin and then its argument prototype would still apply. */
2007 char bindtextdomain();
2013 if { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2015 eval "ac_cv_lib_$ac_lib_var=yes"
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2020 eval "ac_cv_lib_$ac_lib_var=no"
2023 LIBS="$ac_save_LIBS"
2026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2027 echo "$ac_t""yes" 1>&6
2028 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2029 echo "configure:2030: checking for gettext in libintl" >&5
2030 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 cat > conftest.$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2038 return (int) gettext ("")
2041 if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2043 gt_cv_func_gettext_libintl=yes
2045 echo "configure: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2048 gt_cv_func_gettext_libintl=no
2053 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2055 echo "$ac_t""no" 1>&6
2060 if test "$gt_cv_func_gettext_libc" = "yes" \
2061 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2062 cat >> confdefs.h <<\EOF
2063 #define HAVE_GETTEXT 1
2066 # Extract the first word of "msgfmt", so it can be a program name with args.
2067 set dummy msgfmt; ac_word=$2
2068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_word" >&5
2070 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2075 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2079 for ac_dir in $PATH; do
2080 test -z "$ac_dir" && ac_dir=.
2081 if test -f $ac_dir/$ac_word; then
2082 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2083 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2089 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2093 MSGFMT="$ac_cv_path_MSGFMT"
2094 if test -n "$MSGFMT"; then
2095 echo "$ac_t""$MSGFMT" 1>&6
2097 echo "$ac_t""no" 1>&6
2099 if test "$MSGFMT" != "no"; then
2100 for ac_func in dcgettext
2102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2103 echo "configure:2104: checking for $ac_func" >&5
2104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 /* System header to define __stub macros and hopefully few prototypes,
2111 which can conflict with char $ac_func(); below. */
2113 /* Override any gcc2 internal prototype to avoid an error. */
2114 /* We use char because int might match the return type of a gcc2
2115 builtin and then its argument prototype would still apply. */
2120 /* The GNU C library defines this for functions which it implements
2121 to always fail with ENOSYS. Some functions are actually named
2122 something starting with __ and the normal name is an alias. */
2123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2131 if { (eval echo configure:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2133 eval "ac_cv_func_$ac_func=yes"
2135 echo "configure: failed program was:" >&5
2136 cat conftest.$ac_ext >&5
2138 eval "ac_cv_func_$ac_func=no"
2143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2144 echo "$ac_t""yes" 1>&6
2145 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2146 cat >> confdefs.h <<EOF
2147 #define $ac_tr_func 1
2151 echo "$ac_t""no" 1>&6
2155 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2156 set dummy gmsgfmt; ac_word=$2
2157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2158 echo "configure:2159: checking for $ac_word" >&5
2159 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2164 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2167 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2171 for ac_dir in $PATH; do
2172 test -z "$ac_dir" && ac_dir=.
2173 if test -f $ac_dir/$ac_word; then
2174 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2179 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2183 GMSGFMT="$ac_cv_path_GMSGFMT"
2184 if test -n "$GMSGFMT"; then
2185 echo "$ac_t""$GMSGFMT" 1>&6
2187 echo "$ac_t""no" 1>&6
2190 # Extract the first word of "xgettext", so it can be a program name with args.
2191 set dummy xgettext; ac_word=$2
2192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2193 echo "configure:2194: checking for $ac_word" >&5
2194 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2199 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2203 for ac_dir in $PATH; do
2204 test -z "$ac_dir" && ac_dir=.
2205 if test -f $ac_dir/$ac_word; then
2206 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2207 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2213 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2217 XGETTEXT="$ac_cv_path_XGETTEXT"
2218 if test -n "$XGETTEXT"; then
2219 echo "$ac_t""$XGETTEXT" 1>&6
2221 echo "$ac_t""no" 1>&6
2224 cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2229 extern int _nl_msg_cat_cntr;
2230 return _nl_msg_cat_cntr
2233 if { (eval echo configure:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2238 echo "configure: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2250 echo "$ac_t""no" 1>&6
2255 if test "$CATOBJEXT" = "NONE"; then
2256 nls_cv_use_gnu_gettext=yes
2260 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2261 INTLOBJS="\$(GETTOBJS)"
2262 # Extract the first word of "msgfmt", so it can be a program name with args.
2263 set dummy msgfmt; ac_word=$2
2264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2265 echo "configure:2266: checking for $ac_word" >&5
2266 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2271 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2275 for ac_dir in $PATH; do
2276 test -z "$ac_dir" && ac_dir=.
2277 if test -f $ac_dir/$ac_word; then
2278 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2279 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2285 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2289 MSGFMT="$ac_cv_path_MSGFMT"
2290 if test -n "$MSGFMT"; then
2291 echo "$ac_t""$MSGFMT" 1>&6
2293 echo "$ac_t""no" 1>&6
2296 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2297 set dummy gmsgfmt; ac_word=$2
2298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_word" >&5
2300 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2305 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2308 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2312 for ac_dir in $PATH; do
2313 test -z "$ac_dir" && ac_dir=.
2314 if test -f $ac_dir/$ac_word; then
2315 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2320 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2324 GMSGFMT="$ac_cv_path_GMSGFMT"
2325 if test -n "$GMSGFMT"; then
2326 echo "$ac_t""$GMSGFMT" 1>&6
2328 echo "$ac_t""no" 1>&6
2331 # Extract the first word of "xgettext", so it can be a program name with args.
2332 set dummy xgettext; ac_word=$2
2333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2334 echo "configure:2335: checking for $ac_word" >&5
2335 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2340 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2344 for ac_dir in $PATH; do
2345 test -z "$ac_dir" && ac_dir=.
2346 if test -f $ac_dir/$ac_word; then
2347 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2348 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2354 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2358 XGETTEXT="$ac_cv_path_XGETTEXT"
2359 if test -n "$XGETTEXT"; then
2360 echo "$ac_t""$XGETTEXT" 1>&6
2362 echo "$ac_t""no" 1>&6
2366 USE_INCLUDED_LIBINTL=yes
2370 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2372 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2373 nls_cv_header_intl=libintl.h
2374 nls_cv_header_libgt=libgettext.h
2377 if test "$XGETTEXT" != ":"; then
2378 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2381 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2386 # We need to process the po/ directory.
2390 nls_cv_header_intl=libintl.h
2391 nls_cv_header_libgt=libgettext.h
2394 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2395 # because some of the sources are only built for this goal.
2396 if test "$PACKAGE" = gettext; then
2398 USE_INCLUDED_LIBINTL=yes
2401 for lang in $ALL_LINGUAS; do
2402 GMOFILES="$GMOFILES $lang.gmo"
2403 POFILES="$POFILES $lang.po"
2419 if test "x$CATOBJEXT" != "x"; then
2420 if test "x$ALL_LINGUAS" = "x"; then
2423 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2424 echo "configure:2425: checking for catalogs to be installed" >&5
2426 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2427 case "$ALL_LINGUAS" in
2428 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2431 LINGUAS=$NEW_LINGUAS
2432 echo "$ac_t""$LINGUAS" 1>&6
2435 if test -n "$LINGUAS"; then
2436 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2440 if test $ac_cv_header_locale_h = yes; then
2441 INCLUDE_LOCALE_H="#include <locale.h>"
2444 /* The system does not provide the header <locale.h>. Take care yourself. */"
2448 if test -f $srcdir/po2tbl.sed.in; then
2449 if test "$CATOBJEXT" = ".cat"; then
2450 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2451 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2452 echo "configure:2453: checking for linux/version.h" >&5
2453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2459 #include <linux/version.h>
2461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2462 { (eval echo configure:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2463 ac_err=`grep -v '^ *+' conftest.out`
2464 if test -z "$ac_err"; then
2466 eval "ac_cv_header_$ac_safe=yes"
2469 echo "configure: failed program was:" >&5
2470 cat conftest.$ac_ext >&5
2472 eval "ac_cv_header_$ac_safe=no"
2476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2477 echo "$ac_t""yes" 1>&6
2480 echo "$ac_t""no" 1>&6
2485 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2487 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2488 $srcdir/po2tbl.sed.in > po2tbl.sed
2491 if test "$PACKAGE" = "gettext"; then
2501 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2507 if test -d $srcdir/po; then
2508 test -d po || mkdir po
2509 if test "x$srcdir" != "x."; then
2510 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2511 posrcprefix="$srcdir/"
2513 posrcprefix="../$srcdir/"
2519 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2520 < $srcdir/po/POTFILES.in > po/POTFILES
2526 cat > confcache <<\EOF
2527 # This file is a shell script that caches the results of configure
2528 # tests run on this system so they can be shared between configure
2529 # scripts and configure runs. It is not useful on other systems.
2530 # If it contains results you don't want to keep, you may remove or edit it.
2532 # By default, configure uses ./config.cache as the cache file,
2533 # creating it if it does not exist already. You can give configure
2534 # the --cache-file=FILE option to use a different cache file; that is
2535 # what configure does when it calls configure scripts in
2536 # subdirectories, so they share the cache.
2537 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2538 # config.status only pays attention to the cache file if you give it the
2539 # --recheck option to rerun configure.
2542 # The following way of writing the cache mishandles newlines in values,
2543 # but we know of no workaround that is simple, portable, and efficient.
2544 # So, don't put newlines in cache variables' values.
2545 # Ultrix sh set writes to stderr and can't be redirected directly,
2546 # and sets the high bit in the cache file unless we assign to the vars.
2548 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
2550 # `set' does not quote correctly, so add quotes (double-quote substitution
2551 # turns \\\\ into \\, and sed turns \\ into \).
2553 -e "s/'/'\\\\''/g" \
2554 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2557 # `set' quotes correctly as required by POSIX, so do not add quotes.
2558 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2561 if cmp -s $cache_file confcache; then
2564 if test -w $cache_file; then
2565 echo "updating cache $cache_file"
2566 cat confcache > $cache_file
2568 echo "not updating unwritable cache $cache_file"
2573 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2575 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2576 # Let make expand exec_prefix.
2577 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2579 # Any assignment to VPATH causes Sun make to only execute
2580 # the first set of double-colon rules, so remove it if not needed.
2581 # If there is a colon in the path, we need to keep it.
2582 if test "x$srcdir" = x.; then
2583 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2586 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2588 DEFS=-DHAVE_CONFIG_H
2590 # Without the "./", some shells look in PATH for config.status.
2591 : ${CONFIG_STATUS=./config.status}
2593 echo creating $CONFIG_STATUS
2594 rm -f $CONFIG_STATUS
2595 cat > $CONFIG_STATUS <<EOF
2597 # Generated automatically by configure.
2598 # Run this file to recreate the current configuration.
2599 # This directory was configured as follows,
2600 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2602 # $0 $ac_configure_args
2604 # Compiler output produced by configure, useful for debugging
2605 # configure, is in ./config.log if it exists.
2607 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2610 case "\$ac_option" in
2611 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2612 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2613 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2614 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2615 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
2617 -help | --help | --hel | --he | --h)
2618 echo "\$ac_cs_usage"; exit 0 ;;
2619 *) echo "\$ac_cs_usage"; exit 1 ;;
2623 ac_given_srcdir=$srcdir
2624 ac_given_INSTALL="$INSTALL"
2626 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2628 cat >> $CONFIG_STATUS <<EOF
2630 # Protect against being on the right side of a sed subst in config.status.
2631 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2632 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2636 s%@CFLAGS@%$CFLAGS%g
2637 s%@CPPFLAGS@%$CPPFLAGS%g
2638 s%@CXXFLAGS@%$CXXFLAGS%g
2640 s%@LDFLAGS@%$LDFLAGS%g
2642 s%@exec_prefix@%$exec_prefix%g
2643 s%@prefix@%$prefix%g
2644 s%@program_transform_name@%$program_transform_name%g
2645 s%@bindir@%$bindir%g
2646 s%@sbindir@%$sbindir%g
2647 s%@libexecdir@%$libexecdir%g
2648 s%@datadir@%$datadir%g
2649 s%@sysconfdir@%$sysconfdir%g
2650 s%@sharedstatedir@%$sharedstatedir%g
2651 s%@localstatedir@%$localstatedir%g
2652 s%@libdir@%$libdir%g
2653 s%@includedir@%$includedir%g
2654 s%@oldincludedir@%$oldincludedir%g
2655 s%@infodir@%$infodir%g
2656 s%@mandir@%$mandir%g
2657 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2658 s%@INSTALL_DATA@%$INSTALL_DATA%g
2659 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2660 s%@SET_MAKE@%$SET_MAKE%g
2662 s%@RANLIB@%$RANLIB%g
2664 s%@ALLOCA@%$ALLOCA%g
2665 s%@USE_NLS@%$USE_NLS%g
2666 s%@MSGFMT@%$MSGFMT%g
2667 s%@GMSGFMT@%$GMSGFMT%g
2668 s%@XGETTEXT@%$XGETTEXT%g
2669 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
2670 s%@CATALOGS@%$CATALOGS%g
2671 s%@CATOBJEXT@%$CATOBJEXT%g
2672 s%@DATADIRNAME@%$DATADIRNAME%g
2673 s%@GMOFILES@%$GMOFILES%g
2674 s%@INSTOBJEXT@%$INSTOBJEXT%g
2675 s%@INTLDEPS@%$INTLDEPS%g
2676 s%@INTLLIBS@%$INTLLIBS%g
2677 s%@INTLOBJS@%$INTLOBJS%g
2678 s%@POFILES@%$POFILES%g
2680 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
2682 s%@GT_YES@%$GT_YES%g
2683 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
2689 cat >> $CONFIG_STATUS <<\EOF
2691 # Split the substitutions into bite-sized pieces for seds with
2692 # small command number limits, like on Digital OSF/1 and HP-UX.
2693 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2694 ac_file=1 # Number of current file.
2695 ac_beg=1 # First line for current file.
2696 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2699 while $ac_more_lines; do
2700 if test $ac_beg -gt 1; then
2701 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2703 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2705 if test ! -s conftest.s$ac_file; then
2707 rm -f conftest.s$ac_file
2709 if test -z "$ac_sed_cmds"; then
2710 ac_sed_cmds="sed -f conftest.s$ac_file"
2712 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2714 ac_file=`expr $ac_file + 1`
2716 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2719 if test -z "$ac_sed_cmds"; then
2724 cat >> $CONFIG_STATUS <<EOF
2726 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2728 cat >> $CONFIG_STATUS <<\EOF
2729 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2732 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2733 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2734 *) ac_file_in="${ac_file}.in" ;;
2737 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2739 # Remove last slash and all that follows it. Not all systems have dirname.
2740 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2741 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2742 # The file is in a subdirectory.
2743 test ! -d "$ac_dir" && mkdir "$ac_dir"
2744 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2745 # A "../" for each directory in $ac_dir_suffix.
2746 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2748 ac_dir_suffix= ac_dots=
2751 case "$ac_given_srcdir" in
2753 if test -z "$ac_dots"; then top_srcdir=.
2754 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2755 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2757 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2758 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2761 case "$ac_given_INSTALL" in
2762 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2763 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2766 echo creating "$ac_file"
2768 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2770 *Makefile*) ac_comsub="1i\\
2771 # $configure_input" ;;
2775 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2777 s%@configure_input@%$configure_input%g
2778 s%@srcdir@%$srcdir%g
2779 s%@top_srcdir@%$top_srcdir%g
2780 s%@INSTALL@%$INSTALL%g
2781 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2785 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2786 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2788 # ac_d sets the value in "#define NAME VALUE" lines.
2789 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2790 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2793 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2794 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2795 ac_uB='\([ ]\)%\1#\2define\3'
2798 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2799 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2800 ac_eB='$%\1#\2define\3'
2804 if test "${CONFIG_HEADERS+set}" != set; then
2806 cat >> $CONFIG_STATUS <<EOF
2807 CONFIG_HEADERS="config.h:config.in"
2809 cat >> $CONFIG_STATUS <<\EOF
2811 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2812 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2814 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2815 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2816 *) ac_file_in="${ac_file}.in" ;;
2819 echo creating $ac_file
2821 rm -f conftest.frag conftest.in conftest.out
2822 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2823 cat $ac_file_inputs > conftest.in
2827 # Transform confdefs.h into a sed script conftest.vals that substitutes
2828 # the proper values into config.h.in to produce config.h. And first:
2829 # Protect against being on the right side of a sed subst in config.status.
2830 # Protect against being in an unquoted here document in config.status.
2832 cat > conftest.hdr <<\EOF
2835 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2839 sed -n -f conftest.hdr confdefs.h > conftest.vals
2842 # This sed command replaces #undef with comments. This is necessary, for
2843 # example, in the case of _POSIX_SOURCE, which is predefined and required
2844 # on some systems where configure will not decide to define it.
2845 cat >> conftest.vals <<\EOF
2846 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2849 # Break up conftest.vals because some shells have a limit on
2850 # the size of here documents, and old seds have small limits too.
2855 ac_lines=`grep -c . conftest.vals`
2856 # grep -c gives empty output for an empty file on some AIX systems.
2857 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2858 # Write a limited-size here document to conftest.frag.
2859 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2860 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2862 sed -f conftest.frag conftest.in > conftest.out
2864 mv conftest.out conftest.in
2866 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2868 mv conftest.tail conftest.vals
2872 cat >> $CONFIG_STATUS <<\EOF
2873 rm -f conftest.frag conftest.h
2874 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2875 cat conftest.in >> conftest.h
2877 if cmp -s $ac_file conftest.h 2>/dev/null; then
2878 echo "$ac_file is unchanged"
2881 # Remove last slash and all that follows it. Not all systems have dirname.
2882 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2883 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2884 # The file is in a subdirectory.
2885 test ! -d "$ac_dir" && mkdir "$ac_dir"
2888 mv conftest.h $ac_file
2894 cat >> $CONFIG_STATUS <<EOF
2895 ac_sources="$nls_cv_header_libgt"
2896 ac_dests="$nls_cv_header_intl"
2899 cat >> $CONFIG_STATUS <<\EOF
2900 srcdir=$ac_given_srcdir
2901 while test -n "$ac_sources"; do
2902 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2903 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2905 echo "linking $srcdir/$ac_source to $ac_dest"
2907 if test ! -r $srcdir/$ac_source; then
2908 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2912 # Make relative symlinks.
2913 # Remove last slash and all that follows it. Not all systems have dirname.
2914 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2915 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2916 # The dest file is in a subdirectory.
2917 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2918 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2919 # A "../" for each directory in $ac_dest_dir_suffix.
2920 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2922 ac_dest_dir_suffix= ac_dots=
2926 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2927 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2930 # Make a symlink if possible; otherwise try a hard link.
2931 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2932 ln $srcdir/$ac_source $ac_dest; then :
2934 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2938 cat >> $CONFIG_STATUS <<EOF
2942 cat >> $CONFIG_STATUS <<\EOF
2943 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2947 chmod +x $CONFIG_STATUS
2948 rm -fr confdefs* $ac_clean_files
2949 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1