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 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-nls do not use Native Language Support"
20 --with-included-gettext use the GNU gettext library included here"
22 --with-catgets use catgets functions if available"
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
28 cache_file=./config.cache
37 program_transform_name=s,x,x,
45 bindir='${exec_prefix}/bin'
46 sbindir='${exec_prefix}/sbin'
47 libexecdir='${exec_prefix}/libexec'
48 datadir='${prefix}/share'
49 sysconfdir='${prefix}/etc'
50 sharedstatedir='${prefix}/com'
51 localstatedir='${prefix}/var'
52 libdir='${exec_prefix}/lib'
53 includedir='${prefix}/include'
54 oldincludedir='/usr/include'
55 infodir='${prefix}/info'
56 mandir='${prefix}/man'
58 # Initialize some other variables.
61 SHELL=${CONFIG_SHELL-/bin/sh}
62 # Maximum number of lines to put in a shell here document.
69 # If the previous option needs an argument, assign it.
70 if test -n "$ac_prev"; then
71 eval "$ac_prev=\$ac_option"
77 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81 # Accept the important Cygnus configure options, so we can diagnose typos.
85 -bindir | --bindir | --bindi | --bind | --bin | --bi)
87 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88 bindir="$ac_optarg" ;;
90 -build | --build | --buil | --bui | --bu)
92 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
95 -cache-file | --cache-file | --cache-fil | --cache-fi \
96 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100 cache_file="$ac_optarg" ;;
102 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106 datadir="$ac_optarg" ;;
108 -disable-* | --disable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115 eval "enable_${ac_feature}=no" ;;
117 -enable-* | --enable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}='$ac_optarg'" ;;
130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132 | --exec | --exe | --ex)
133 ac_prev=exec_prefix ;;
134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136 | --exec=* | --exe=* | --ex=*)
137 exec_prefix="$ac_optarg" ;;
139 -gas | --gas | --ga | --g)
140 # Obsolete; use --with-gas.
143 -help | --help | --hel | --he)
144 # Omit some internal or obsolete options to make the list less imposing.
145 # This message is too long to be a string in the A/UX 3.1 sh.
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
150 --cache-file=FILE cache test results in FILE
151 --help print this message
152 --no-create do not create output files
153 --quiet, --silent do not print \`checking...' messages
154 --version print the version of autoconf that created configure
155 Directory and file names:
156 --prefix=PREFIX install architecture-independent files in PREFIX
158 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
160 --bindir=DIR user executables in DIR [EPREFIX/bin]
161 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
162 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
163 --datadir=DIR read-only architecture-independent data in DIR
165 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
166 --sharedstatedir=DIR modifiable architecture-independent data in DIR
168 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
169 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
170 --includedir=DIR C header files in DIR [PREFIX/include]
171 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
172 --infodir=DIR info documentation in DIR [PREFIX/info]
173 --mandir=DIR man documentation in DIR [PREFIX/man]
174 --srcdir=DIR find the sources in DIR [configure dir or ..]
175 --program-prefix=PREFIX prepend PREFIX to installed program names
176 --program-suffix=SUFFIX append SUFFIX to installed program names
177 --program-transform-name=PROGRAM
178 run sed PROGRAM on installed program names
182 --build=BUILD configure for building on BUILD [BUILD=HOST]
183 --host=HOST configure for HOST [guessed]
184 --target=TARGET configure for TARGET [TARGET=HOST]
185 Features and packages:
186 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
187 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
188 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
189 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
190 --x-includes=DIR X include files are in DIR
191 --x-libraries=DIR X library files are in DIR
193 if test -n "$ac_help"; then
194 echo "--enable and --with options recognized:$ac_help"
198 -host | --host | --hos | --ho)
200 -host=* | --host=* | --hos=* | --ho=*)
203 -includedir | --includedir | --includedi | --included | --include \
204 | --includ | --inclu | --incl | --inc)
205 ac_prev=includedir ;;
206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
207 | --includ=* | --inclu=* | --incl=* | --inc=*)
208 includedir="$ac_optarg" ;;
210 -infodir | --infodir | --infodi | --infod | --info | --inf)
212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
213 infodir="$ac_optarg" ;;
215 -libdir | --libdir | --libdi | --libd)
217 -libdir=* | --libdir=* | --libdi=* | --libd=*)
218 libdir="$ac_optarg" ;;
220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
221 | --libexe | --libex | --libe)
222 ac_prev=libexecdir ;;
223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
224 | --libexe=* | --libex=* | --libe=*)
225 libexecdir="$ac_optarg" ;;
227 -localstatedir | --localstatedir | --localstatedi | --localstated \
228 | --localstate | --localstat | --localsta | --localst \
229 | --locals | --local | --loca | --loc | --lo)
230 ac_prev=localstatedir ;;
231 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
232 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
233 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
234 localstatedir="$ac_optarg" ;;
236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
239 mandir="$ac_optarg" ;;
242 # Obsolete; use --without-fp.
245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
255 | --oldin | --oldi | --old | --ol | --o)
256 ac_prev=oldincludedir ;;
257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
260 oldincludedir="$ac_optarg" ;;
262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
265 prefix="$ac_optarg" ;;
267 -program-prefix | --program-prefix | --program-prefi | --program-pref \
268 | --program-pre | --program-pr | --program-p)
269 ac_prev=program_prefix ;;
270 -program-prefix=* | --program-prefix=* | --program-prefi=* \
271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
272 program_prefix="$ac_optarg" ;;
274 -program-suffix | --program-suffix | --program-suffi | --program-suff \
275 | --program-suf | --program-su | --program-s)
276 ac_prev=program_suffix ;;
277 -program-suffix=* | --program-suffix=* | --program-suffi=* \
278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
279 program_suffix="$ac_optarg" ;;
281 -program-transform-name | --program-transform-name \
282 | --program-transform-nam | --program-transform-na \
283 | --program-transform-n | --program-transform- \
284 | --program-transform | --program-transfor \
285 | --program-transfo | --program-transf \
286 | --program-trans | --program-tran \
287 | --progr-tra | --program-tr | --program-t)
288 ac_prev=program_transform_name ;;
289 -program-transform-name=* | --program-transform-name=* \
290 | --program-transform-nam=* | --program-transform-na=* \
291 | --program-transform-n=* | --program-transform-=* \
292 | --program-transform=* | --program-transfor=* \
293 | --program-transfo=* | --program-transf=* \
294 | --program-trans=* | --program-tran=* \
295 | --progr-tra=* | --program-tr=* | --program-t=*)
296 program_transform_name="$ac_optarg" ;;
298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
299 | -silent | --silent | --silen | --sile | --sil)
302 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306 sbindir="$ac_optarg" ;;
308 -sharedstatedir | --sharedstatedir | --sharedstatedi \
309 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
310 | --sharedst | --shareds | --shared | --share | --shar \
312 ac_prev=sharedstatedir ;;
313 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
314 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
315 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317 sharedstatedir="$ac_optarg" ;;
319 -site | --site | --sit)
321 -site=* | --site=* | --sit=*)
324 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
326 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327 srcdir="$ac_optarg" ;;
329 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
330 | --syscon | --sysco | --sysc | --sys | --sy)
331 ac_prev=sysconfdir ;;
332 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
333 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
334 sysconfdir="$ac_optarg" ;;
336 -target | --target | --targe | --targ | --tar | --ta | --t)
338 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339 target="$ac_optarg" ;;
341 -v | -verbose | --verbose | --verbos | --verbo | --verb)
344 -version | --version | --versio | --versi | --vers)
345 echo "configure generated by autoconf version 2.12.1"
349 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350 # Reject names that are not valid shell variable names.
351 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}='$ac_optarg'" ;;
361 -without-* | --without-*)
362 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}=no" ;;
371 # Obsolete; use --with-x.
374 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
375 | --x-incl | --x-inc | --x-in | --x-i)
376 ac_prev=x_includes ;;
377 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
378 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
379 x_includes="$ac_optarg" ;;
381 -x-libraries | --x-libraries | --x-librarie | --x-librari \
382 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
383 ac_prev=x_libraries ;;
384 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
385 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
386 x_libraries="$ac_optarg" ;;
388 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393 echo "configure: warning: $ac_option: invalid host type" 1>&2
395 if test "x$nonopt" != xNONE; then
396 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404 if test -n "$ac_prev"; then
405 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410 # File descriptor usage:
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
436 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437 | --no-cr | --no-c) ;;
438 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
442 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 # Only set these to C if already set. These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
452 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
454 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file=makeinfo/makeinfo.c
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467 ac_srcdir_defaulted=yes
468 # Try the directory containing this script, then its parent.
470 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
473 if test ! -r $srcdir/$ac_unique_file; then
477 ac_srcdir_defaulted=no
479 if test ! -r $srcdir/$ac_unique_file; then
480 if test "$ac_srcdir_defaulted" = yes; then
481 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$CONFIG_SITE"; then
490 if test "x$prefix" != xNONE; then
491 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
493 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
496 for ac_site_file in $CONFIG_SITE; do
497 if test -r "$ac_site_file"; then
498 echo "loading site script $ac_site_file"
503 if test -r "$cache_file"; then
504 echo "loading cache $cache_file"
507 echo "creating cache $cache_file"
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp='$CPP $CPPFLAGS'
514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 cross_compiling=$ac_cv_prog_cc_cross
518 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
519 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527 ac_n= ac_c='\c' ac_t=
536 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
537 if test -f $ac_dir/install-sh; then
539 ac_install_sh="$ac_aux_dir/install-sh -c"
541 elif test -f $ac_dir/install.sh; then
543 ac_install_sh="$ac_aux_dir/install.sh -c"
547 if test -z "$ac_aux_dir"; then
548 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550 ac_config_guess=$ac_aux_dir/config.guess
551 ac_config_sub=$ac_aux_dir/config.sub
552 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554 # Find a good install program. We prefer a C program (faster),
555 # so one script is as good as another. But avoid the broken or
556 # incompatible versions:
557 # SysV /etc/install, /usr/sbin/install
558 # SunOS /usr/etc/install
561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
563 # ./install, which can be erroneously created by make from ./install.sh.
564 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
565 echo "configure:566: checking for a BSD compatible install" >&5
566 if test -z "$INSTALL"; then
567 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
568 echo $ac_n "(cached) $ac_c" 1>&6
570 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
571 for ac_dir in $PATH; do
572 # Account for people who put trailing slashes in PATH elements.
574 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
576 # OSF1 and SCO ODT 3.0 have their own names for install.
577 for ac_prog in ginstall installbsd 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.
582 # OSF/1 installbsd also uses dspmsg, but is usable.
585 ac_cv_path_install="$ac_dir/$ac_prog -c"
596 if test "${ac_cv_path_install+set}" = set; then
597 INSTALL="$ac_cv_path_install"
599 # As a last resort, use the slow shell script. We don't cache a
600 # path for INSTALL within a source directory, because that will
601 # break other packages using the cache if that directory is
602 # removed, or if the path is relative.
603 INSTALL="$ac_install_sh"
606 echo "$ac_t""$INSTALL" 1>&6
608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
609 # It thinks the first close brace ends the variable substitution.
610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
612 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
617 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
618 echo "configure:619: checking whether build environment is sane" >&5
621 echo timestamp > conftestfile
622 # Do `set' in a subshell so we don't clobber the current shell's
623 # arguments. Must try -L first in case configure is actually a
624 # symlink; some systems play weird games with the mod time of symlinks
625 # (eg FreeBSD returns the mod time of the symlink's containing
628 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
629 if test "$*" = "X"; then
631 set X `ls -t $srcdir/configure conftestfile`
633 if test "$*" != "X $srcdir/configure conftestfile" \
634 && test "$*" != "X conftestfile $srcdir/configure"; then
636 # If neither matched, then we have a broken ls. This can happen
637 # if, for instance, CONFIG_SHELL is bash and it inherits a
638 # broken ls alias from the environment. This has actually
639 # happened. Such a system could not be considered "sane".
640 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
641 alias in your environment" 1>&2; exit 1; }
644 test "$2" = conftestfile
650 { echo "configure: error: newly created file is older than distributed files!
651 Check your system clock" 1>&2; exit 1; }
654 echo "$ac_t""yes" 1>&6
655 if test "$program_transform_name" = s,x,x,; then
656 program_transform_name=
658 # Double any \ or $. echo might interpret backslashes.
659 cat <<\EOF_SED > conftestsed
660 s,\\,\\\\,g; s,\$,$$,g
662 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
665 test "$program_prefix" != NONE &&
666 program_transform_name="s,^,${program_prefix},; $program_transform_name"
667 # Use a double $ so make ignores it.
668 test "$program_suffix" != NONE &&
669 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
671 # sed with no file args requires a program.
672 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
674 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
675 echo "configure:676: checking whether ${MAKE-make} sets \${MAKE}" >&5
676 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
677 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
678 echo $ac_n "(cached) $ac_c" 1>&6
680 cat > conftestmake <<\EOF
682 @echo 'ac_maketemp="${MAKE}"'
684 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
685 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
686 if test -n "$ac_maketemp"; then
687 eval ac_cv_prog_make_${ac_make}_set=yes
689 eval ac_cv_prog_make_${ac_make}_set=no
693 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
694 echo "$ac_t""yes" 1>&6
697 echo "$ac_t""no" 1>&6
698 SET_MAKE="MAKE=${MAKE-make}"
706 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
707 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
709 cat >> confdefs.h <<EOF
710 #define PACKAGE "$PACKAGE"
713 cat >> confdefs.h <<EOF
714 #define VERSION "$VERSION"
719 missing_dir=`cd $ac_aux_dir && pwd`
720 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
721 echo "configure:722: checking for working aclocal" >&5
722 # Run test in a subshell; some versions of sh will print an error if
723 # an executable is not found, even if stderr is redirected.
724 # Redirect stdin to placate older versions of autoconf. Sigh.
725 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
727 echo "$ac_t""found" 1>&6
729 ACLOCAL="$missing_dir/missing aclocal"
730 echo "$ac_t""missing" 1>&6
733 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
734 echo "configure:735: checking for working autoconf" >&5
735 # Run test in a subshell; some versions of sh will print an error if
736 # an executable is not found, even if stderr is redirected.
737 # Redirect stdin to placate older versions of autoconf. Sigh.
738 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
740 echo "$ac_t""found" 1>&6
742 AUTOCONF="$missing_dir/missing autoconf"
743 echo "$ac_t""missing" 1>&6
746 echo $ac_n "checking for working automake""... $ac_c" 1>&6
747 echo "configure:748: checking for working automake" >&5
748 # Run test in a subshell; some versions of sh will print an error if
749 # an executable is not found, even if stderr is redirected.
750 # Redirect stdin to placate older versions of autoconf. Sigh.
751 if (automake --version) < /dev/null > /dev/null 2>&1; then
753 echo "$ac_t""found" 1>&6
755 AUTOMAKE="$missing_dir/missing automake"
756 echo "$ac_t""missing" 1>&6
759 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
760 echo "configure:761: checking for working autoheader" >&5
761 # Run test in a subshell; some versions of sh will print an error if
762 # an executable is not found, even if stderr is redirected.
763 # Redirect stdin to placate older versions of autoconf. Sigh.
764 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
765 AUTOHEADER=autoheader
766 echo "$ac_t""found" 1>&6
768 AUTOHEADER="$missing_dir/missing autoheader"
769 echo "$ac_t""missing" 1>&6
772 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
773 echo "configure:774: checking for working makeinfo" >&5
774 # Run test in a subshell; some versions of sh will print an error if
775 # an executable is not found, even if stderr is redirected.
776 # Redirect stdin to placate older versions of autoconf. Sigh.
777 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
779 echo "$ac_t""found" 1>&6
781 MAKEINFO="$missing_dir/missing makeinfo"
782 echo "$ac_t""missing" 1>&6
787 # Extract the first word of "gcc", so it can be a program name with args.
788 set dummy gcc; ac_word=$2
789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
790 echo "configure:791: checking for $ac_word" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
794 if test -n "$CC"; then
795 ac_cv_prog_CC="$CC" # Let the user override the test.
797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
798 for ac_dir in $PATH; do
799 test -z "$ac_dir" && ac_dir=.
800 if test -f $ac_dir/$ac_word; then
809 if test -n "$CC"; then
810 echo "$ac_t""$CC" 1>&6
812 echo "$ac_t""no" 1>&6
815 if test -z "$CC"; then
816 # Extract the first word of "cc", so it can be a program name with args.
817 set dummy cc; ac_word=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 echo "configure:820: checking for $ac_word" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 if test -n "$CC"; then
824 ac_cv_prog_CC="$CC" # Let the user override the test.
826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
828 for ac_dir in $PATH; do
829 test -z "$ac_dir" && ac_dir=.
830 if test -f $ac_dir/$ac_word; then
831 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
840 if test $ac_prog_rejected = yes; then
841 # We found a bogon in the path, so make sure we never use it.
842 set dummy $ac_cv_prog_CC
844 if test $# -gt 0; then
845 # We chose a different compiler from the bogus one.
846 # However, it has the same basename, so the bogon will be chosen
847 # first if we set CC to just the basename; use the full file name.
849 set dummy "$ac_dir/$ac_word" "$@"
857 if test -n "$CC"; then
858 echo "$ac_t""$CC" 1>&6
860 echo "$ac_t""no" 1>&6
863 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
866 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
867 echo "configure:868: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
871 ac_cpp='$CPP $CPPFLAGS'
872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
873 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
874 cross_compiling=$ac_cv_prog_cc_cross
876 cat > conftest.$ac_ext <<EOF
877 #line 878 "configure"
878 #include "confdefs.h"
881 if { (eval echo configure:882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
882 ac_cv_prog_cc_works=yes
883 # If we can't run a trivial program, we are probably using a cross compiler.
884 if (./conftest; exit) 2>/dev/null; then
885 ac_cv_prog_cc_cross=no
887 ac_cv_prog_cc_cross=yes
890 echo "configure: failed program was:" >&5
891 cat conftest.$ac_ext >&5
892 ac_cv_prog_cc_works=no
896 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
897 if test $ac_cv_prog_cc_works = no; then
898 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
900 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
901 echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
902 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
903 cross_compiling=$ac_cv_prog_cc_cross
905 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
906 echo "configure:907: checking whether we are using GNU C" >&5
907 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
910 cat > conftest.c <<EOF
915 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
922 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
924 if test $ac_cv_prog_gcc = yes; then
926 ac_test_CFLAGS="${CFLAGS+set}"
927 ac_save_CFLAGS="$CFLAGS"
929 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
930 echo "configure:931: checking whether ${CC-cc} accepts -g" >&5
931 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 echo 'void f(){}' > conftest.c
935 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
944 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
945 if test "$ac_test_CFLAGS" = set; then
946 CFLAGS="$ac_save_CFLAGS"
947 elif test $ac_cv_prog_cc_g = yes; then
954 test "${CFLAGS+set}" = set || CFLAGS="-g"
957 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
958 echo "configure:959: checking how to run the C preprocessor" >&5
959 # On Suns, sometimes $CPP names a directory.
960 if test -n "$CPP" && test -d "$CPP"; then
963 if test -z "$CPP"; then
964 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 # This must be in double quotes, not single quotes, because CPP may get
968 # substituted into the Makefile and "${CC-cc}" will confuse make.
970 # On the NeXT, cc -E runs the code through the compiler's parser,
971 # not just through cpp.
972 cat > conftest.$ac_ext <<EOF
973 #line 974 "configure"
974 #include "confdefs.h"
978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
979 { (eval echo configure:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
980 ac_err=`grep -v '^ *+' conftest.out`
981 if test -z "$ac_err"; then
985 echo "configure: failed program was:" >&5
986 cat conftest.$ac_ext >&5
988 CPP="${CC-cc} -E -traditional-cpp"
989 cat > conftest.$ac_ext <<EOF
990 #line 991 "configure"
991 #include "confdefs.h"
995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
996 { (eval echo configure:997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
997 ac_err=`grep -v '^ *+' conftest.out`
998 if test -z "$ac_err"; then
1002 echo "configure: failed program was:" >&5
1003 cat conftest.$ac_ext >&5
1010 ac_cv_prog_CPP="$CPP"
1012 CPP="$ac_cv_prog_CPP"
1014 ac_cv_prog_CPP="$CPP"
1016 echo "$ac_t""$CPP" 1>&6
1018 if test $ac_cv_prog_gcc = yes; then
1019 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1020 echo "configure:1021: checking whether ${CC-cc} needs -traditional" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 ac_pattern="Autoconf.*'x'"
1025 cat > conftest.$ac_ext <<EOF
1026 #line 1027 "configure"
1027 #include "confdefs.h"
1031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1032 egrep "$ac_pattern" >/dev/null 2>&1; then
1034 ac_cv_prog_gcc_traditional=yes
1037 ac_cv_prog_gcc_traditional=no
1042 if test $ac_cv_prog_gcc_traditional = no; then
1043 cat > conftest.$ac_ext <<EOF
1044 #line 1045 "configure"
1045 #include "confdefs.h"
1049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1050 egrep "$ac_pattern" >/dev/null 2>&1; then
1052 ac_cv_prog_gcc_traditional=yes
1059 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1060 if test $ac_cv_prog_gcc_traditional = yes; then
1061 CC="$CC -traditional"
1065 # Find a good install program. We prefer a C program (faster),
1066 # so one script is as good as another. But avoid the broken or
1067 # incompatible versions:
1068 # SysV /etc/install, /usr/sbin/install
1069 # SunOS /usr/etc/install
1070 # IRIX /sbin/install
1072 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1073 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1074 # ./install, which can be erroneously created by make from ./install.sh.
1075 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1076 echo "configure:1077: checking for a BSD compatible install" >&5
1077 if test -z "$INSTALL"; then
1078 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1081 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1082 for ac_dir in $PATH; do
1083 # Account for people who put trailing slashes in PATH elements.
1085 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1087 # OSF1 and SCO ODT 3.0 have their own names for install.
1088 for ac_prog in ginstall scoinst install; do
1089 if test -f $ac_dir/$ac_prog; then
1090 if test $ac_prog = install &&
1091 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1092 # AIX install. It has an incompatible calling convention.
1093 # OSF/1 installbsd also uses dspmsg, but is usable.
1096 ac_cv_path_install="$ac_dir/$ac_prog -c"
1107 if test "${ac_cv_path_install+set}" = set; then
1108 INSTALL="$ac_cv_path_install"
1110 # As a last resort, use the slow shell script. We don't cache a
1111 # path for INSTALL within a source directory, because that will
1112 # break other packages using the cache if that directory is
1113 # removed, or if the path is relative.
1114 INSTALL="$ac_install_sh"
1117 echo "$ac_t""$INSTALL" 1>&6
1119 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1120 # It thinks the first close brace ends the variable substitution.
1121 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1123 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1125 # Extract the first word of "ranlib", so it can be a program name with args.
1126 set dummy ranlib; ac_word=$2
1127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_word" >&5
1129 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1132 if test -n "$RANLIB"; then
1133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1136 for ac_dir in $PATH; do
1137 test -z "$ac_dir" && ac_dir=.
1138 if test -f $ac_dir/$ac_word; then
1139 ac_cv_prog_RANLIB="ranlib"
1144 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1147 RANLIB="$ac_cv_prog_RANLIB"
1148 if test -n "$RANLIB"; then
1149 echo "$ac_t""$RANLIB" 1>&6
1151 echo "$ac_t""no" 1>&6
1155 # We do this for the sake of a more helpful warning in doc/Makefile.
1156 TEXMF='$(datadir)/texmf'
1157 # Extract the first word of "texconfig", so it can be a program name with args.
1158 set dummy texconfig; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_TEXCONFIG'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -n "$TEXCONFIG"; then
1165 ac_cv_prog_TEXCONFIG="$TEXCONFIG" # Let the user override the test.
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1168 for ac_dir in $PATH; do
1169 test -z "$ac_dir" && ac_dir=.
1170 if test -f $ac_dir/$ac_word; then
1171 ac_cv_prog_TEXCONFIG="true"
1176 test -z "$ac_cv_prog_TEXCONFIG" && ac_cv_prog_TEXCONFIG="false"
1179 TEXCONFIG="$ac_cv_prog_TEXCONFIG"
1180 if test -n "$TEXCONFIG"; then
1181 echo "$ac_t""$TEXCONFIG" 1>&6
1183 echo "$ac_t""no" 1>&6
1186 $TEXCONFIG && eval `texconfig conf </dev/null | grep '^TEXMF='`
1189 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1190 echo "configure:1191: checking for POSIXized ISC" >&5
1191 if test -d /etc/conf/kconfig.d &&
1192 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1194 echo "$ac_t""yes" 1>&6
1195 ISC=yes # If later tests want to check for ISC.
1196 cat >> confdefs.h <<\EOF
1197 #define _POSIX_SOURCE 1
1200 if test "$GCC" = yes; then
1206 echo "$ac_t""no" 1>&6
1210 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1211 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1212 echo "configure:1213: checking for minix/config.h" >&5
1213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
1219 #include <minix/config.h>
1221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1222 { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1223 ac_err=`grep -v '^ *+' conftest.out`
1224 if test -z "$ac_err"; then
1226 eval "ac_cv_header_$ac_safe=yes"
1229 echo "configure: failed program was:" >&5
1230 cat conftest.$ac_ext >&5
1232 eval "ac_cv_header_$ac_safe=no"
1236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1237 echo "$ac_t""yes" 1>&6
1240 echo "$ac_t""no" 1>&6
1244 if test "$MINIX" = yes; then
1245 cat >> confdefs.h <<\EOF
1246 #define _POSIX_SOURCE 1
1249 cat >> confdefs.h <<\EOF
1250 #define _POSIX_1_SOURCE 2
1253 cat >> confdefs.h <<\EOF
1260 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1261 echo "configure:1262: checking whether to enable maintainer-specific portions of Makefiles" >&5
1262 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1263 if test "${enable_maintainer_mode+set}" = set; then
1264 enableval="$enable_maintainer_mode"
1265 USE_MAINTAINER_MODE=$enableval
1267 USE_MAINTAINER_MODE=no
1270 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1271 if test $USE_MAINTAINER_MODE = yes; then
1278 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1279 echo "configure:1280: checking for Cygwin32 environment" >&5
1280 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 cat > conftest.$ac_ext <<EOF
1284 #line 1285 "configure"
1285 #include "confdefs.h"
1288 return __CYGWIN32__;
1291 if { (eval echo configure:1292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1295 echo "configure: failed program was:" >&5
1296 cat conftest.$ac_ext >&5
1304 echo "$ac_t""$am_cv_cygwin32" 1>&6
1306 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
1307 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1308 echo "configure:1309: checking for Mingw32 environment" >&5
1309 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 cat > conftest.$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1320 if { (eval echo configure:1321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1333 echo "$ac_t""$am_cv_mingw32" 1>&6
1335 test "$am_cv_mingw32" = yes && MINGW32=yes
1338 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1339 echo "configure:1340: checking for executable suffix" >&5
1340 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
1346 cat > am_c_test.c << 'EOF'
1348 /* Nothing needed here */
1351 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1352 am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1356 test x"${am_cv_exeext}" = x && am_cv_exeext=no
1359 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1360 echo "$ac_t""${am_cv_exeext}" 1>&6
1363 echo $ac_n "checking for gzdopen in -lz""... $ac_c" 1>&6
1364 echo "configure:1365: checking for gzdopen in -lz" >&5
1365 ac_lib_var=`echo z'_'gzdopen | sed 'y%./+-%__p_%'`
1366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 ac_save_LIBS="$LIBS"
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1374 /* Override any gcc2 internal prototype to avoid an error. */
1375 /* We use char because int might match the return type of a gcc2
1376 builtin and then its argument prototype would still apply. */
1383 if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1385 eval "ac_cv_lib_$ac_lib_var=yes"
1387 echo "configure: failed program was:" >&5
1388 cat conftest.$ac_ext >&5
1390 eval "ac_cv_lib_$ac_lib_var=no"
1393 LIBS="$ac_save_LIBS"
1396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1398 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1399 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1400 cat >> confdefs.h <<EOF
1401 #define $ac_tr_lib 1
1407 echo "$ac_t""no" 1>&6
1411 # Needed on sysV68 for sigblock, sigsetmask. But check for it in libc first.
1412 echo $ac_n "checking for sigblock""... $ac_c" 1>&6
1413 echo "configure:1414: checking for sigblock" >&5
1414 if eval "test \"`echo '$''{'ac_cv_func_sigblock'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1420 /* System header to define __stub macros and hopefully few prototypes,
1421 which can conflict with char sigblock(); below. */
1423 /* Override any gcc2 internal prototype to avoid an error. */
1424 /* We use char because int might match the return type of a gcc2
1425 builtin and then its argument prototype would still apply. */
1430 /* The GNU C library defines this for functions which it implements
1431 to always fail with ENOSYS. Some functions are actually named
1432 something starting with __ and the normal name is an alias. */
1433 #if defined (__stub_sigblock) || defined (__stub___sigblock)
1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1443 eval "ac_cv_func_sigblock=yes"
1445 echo "configure: failed program was:" >&5
1446 cat conftest.$ac_ext >&5
1448 eval "ac_cv_func_sigblock=no"
1453 if eval "test \"`echo '$ac_cv_func_'sigblock`\" = yes"; then
1454 echo "$ac_t""yes" 1>&6
1457 echo "$ac_t""no" 1>&6
1458 echo $ac_n "checking for sigblock in -lbsd""... $ac_c" 1>&6
1459 echo "configure:1460: checking for sigblock in -lbsd" >&5
1460 ac_lib_var=`echo bsd'_'sigblock | sed 'y%./+-%__p_%'`
1461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 ac_save_LIBS="$LIBS"
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1469 /* Override any gcc2 internal prototype to avoid an error. */
1470 /* We use char because int might match the return type of a gcc2
1471 builtin and then its argument prototype would still apply. */
1478 if { (eval echo configure:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1480 eval "ac_cv_lib_$ac_lib_var=yes"
1482 echo "configure: failed program was:" >&5
1483 cat conftest.$ac_ext >&5
1485 eval "ac_cv_lib_$ac_lib_var=no"
1488 LIBS="$ac_save_LIBS"
1491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1492 echo "$ac_t""yes" 1>&6
1493 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/^a-zA-Z0-9_/_/g' \
1494 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1495 cat >> confdefs.h <<EOF
1496 #define $ac_tr_lib 1
1502 echo "$ac_t""no" 1>&6
1508 # Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
1509 # rather ncurses. So we check for it.
1511 for termlib in ncurses curses termcap terminfo termlib ; do
1512 echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
1513 echo "configure:1514: checking for tputs in -l${termlib}" >&5
1514 ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
1515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1516 echo $ac_n "(cached) $ac_c" 1>&6
1518 ac_save_LIBS="$LIBS"
1519 LIBS="-l${termlib} $LIBS"
1520 cat > conftest.$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1523 /* Override any gcc2 internal prototype to avoid an error. */
1524 /* We use char because int might match the return type of a gcc2
1525 builtin and then its argument prototype would still apply. */
1532 if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1534 eval "ac_cv_lib_$ac_lib_var=yes"
1536 echo "configure: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1539 eval "ac_cv_lib_$ac_lib_var=no"
1542 LIBS="$ac_save_LIBS"
1545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1546 echo "$ac_t""yes" 1>&6
1547 TERMLIBS="${TERMLIBS} -l${termlib}"; break
1549 echo "$ac_t""no" 1>&6
1555 if test "x$termlib" = xncurses; then
1556 for ac_hdr in ncurses/termcap.h
1558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1560 echo "configure:1561: checking for $ac_hdr" >&5
1561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1570 { (eval echo configure:1571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1571 ac_err=`grep -v '^ *+' conftest.out`
1572 if test -z "$ac_err"; then
1574 eval "ac_cv_header_$ac_safe=yes"
1577 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5
1580 eval "ac_cv_header_$ac_safe=no"
1584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1585 echo "$ac_t""yes" 1>&6
1586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1587 cat >> confdefs.h <<EOF
1588 #define $ac_tr_hdr 1
1592 echo "$ac_t""no" 1>&6
1597 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1598 echo "configure:1599: checking for ANSI C header files" >&5
1599 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1611 { (eval echo configure:1612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1612 ac_err=`grep -v '^ *+' conftest.out`
1613 if test -z "$ac_err"; then
1615 ac_cv_header_stdc=yes
1618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1621 ac_cv_header_stdc=no
1625 if test $ac_cv_header_stdc = yes; then
1626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1627 cat > conftest.$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1633 egrep "memchr" >/dev/null 2>&1; then
1637 ac_cv_header_stdc=no
1643 if test $ac_cv_header_stdc = yes; then
1644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1645 cat > conftest.$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1651 egrep "free" >/dev/null 2>&1; then
1655 ac_cv_header_stdc=no
1661 if test $ac_cv_header_stdc = yes; then
1662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1663 if test "$cross_compiling" = yes; then
1666 cat > conftest.$ac_ext <<EOF
1667 #line 1668 "configure"
1668 #include "confdefs.h"
1670 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1671 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1673 int main () { int i; for (i = 0; i < 256; i++)
1674 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1678 if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1682 echo "configure: failed program was:" >&5
1683 cat conftest.$ac_ext >&5
1685 ac_cv_header_stdc=no
1693 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1694 if test $ac_cv_header_stdc = yes; then
1695 cat >> confdefs.h <<\EOF
1696 #define STDC_HEADERS 1
1701 for ac_hdr in fcntl.h pwd.h string.h strings.h termcap.h termio.h \
1702 termios.h unistd.h \
1703 sys/fcntl.h sys/file.h sys/ptem.h sys/time.h sys/ttold.h sys/wait.h
1705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1707 echo "configure:1708: checking for $ac_hdr" >&5
1708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1717 { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1718 ac_err=`grep -v '^ *+' conftest.out`
1719 if test -z "$ac_err"; then
1721 eval "ac_cv_header_$ac_safe=yes"
1724 echo "configure: failed program was:" >&5
1725 cat conftest.$ac_ext >&5
1727 eval "ac_cv_header_$ac_safe=no"
1731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1732 echo "$ac_t""yes" 1>&6
1733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1734 cat >> confdefs.h <<EOF
1735 #define $ac_tr_hdr 1
1739 echo "$ac_t""no" 1>&6
1744 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1745 echo "configure:1746: checking for off_t" >&5
1746 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 cat > conftest.$ac_ext <<EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1752 #include <sys/types.h>
1758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1759 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1761 ac_cv_type_off_t=yes
1769 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1770 if test $ac_cv_type_off_t = no; then
1771 cat >> confdefs.h <<\EOF
1777 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1778 echo "configure:1779: checking return type of signal handlers" >&5
1779 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 cat > conftest.$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1785 #include <sys/types.h>
1791 extern "C" void (*signal (int, void (*)(int)))(int);
1793 void (*signal ()) ();
1800 if { (eval echo configure:1801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1802 ac_cv_type_signal=void
1804 echo "configure: failed program was:" >&5
1805 cat conftest.$ac_ext >&5
1807 ac_cv_type_signal=int
1812 echo "$ac_t""$ac_cv_type_signal" 1>&6
1813 cat >> confdefs.h <<EOF
1814 #define RETSIGTYPE $ac_cv_type_signal
1818 echo $ac_n "checking for working const""... $ac_c" 1>&6
1819 echo "configure:1820: checking for working const" >&5
1820 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 cat > conftest.$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1829 /* Ultrix mips cc rejects this. */
1830 typedef int charset[2]; const charset x;
1831 /* SunOS 4.1.1 cc rejects this. */
1832 char const *const *ccp;
1834 /* NEC SVR4.0.2 mips cc rejects this. */
1835 struct point {int x, y;};
1836 static struct point const zero = {0,0};
1837 /* AIX XL C 1.02.0.0 rejects this.
1838 It does not let you subtract one const X* pointer from another in an arm
1839 of an if-expression whose if-part is not a constant expression */
1840 const char *g = "string";
1841 ccp = &g + (g ? g-g : 0);
1842 /* HPUX 7.0 cc rejects these. */
1845 ccp = (char const *const *) p;
1846 { /* SCO 3.2v4 cc rejects this. */
1848 char const *s = 0 ? (char *) 0 : (char const *) 0;
1852 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1854 const int *foo = &x[0];
1857 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1858 typedef const int *iptr;
1862 { /* AIX XL C 1.02.0.0 rejects this saying
1863 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1864 struct s { int j; const int *ap[3]; };
1865 struct s *b; b->j = 5;
1867 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1873 if { (eval echo configure:1874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1877 echo "configure: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1885 echo "$ac_t""$ac_cv_c_const" 1>&6
1886 if test $ac_cv_c_const = no; then
1887 cat >> confdefs.h <<\EOF
1893 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1894 echo "configure:1895: checking whether struct tm is in sys/time.h or time.h" >&5
1895 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1901 #include <sys/types.h>
1904 struct tm *tp; tp->tm_sec;
1907 if { (eval echo configure:1908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1909 ac_cv_struct_tm=time.h
1911 echo "configure: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1914 ac_cv_struct_tm=sys/time.h
1919 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1920 if test $ac_cv_struct_tm = sys/time.h; then
1921 cat >> confdefs.h <<\EOF
1922 #define TM_IN_SYS_TIME 1
1928 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1929 # for constant arguments. Useless!
1930 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1931 echo "configure:1932: checking for working alloca.h" >&5
1932 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 cat > conftest.$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1940 char *p = alloca(2 * sizeof(int));
1943 if { (eval echo configure:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1945 ac_cv_header_alloca_h=yes
1947 echo "configure: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1950 ac_cv_header_alloca_h=no
1955 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1956 if test $ac_cv_header_alloca_h = yes; then
1957 cat >> confdefs.h <<\EOF
1958 #define HAVE_ALLOCA_H 1
1963 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1964 echo "configure:1965: checking for alloca" >&5
1965 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1968 cat > conftest.$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1973 # define alloca __builtin_alloca
1976 # include <alloca.h>
1981 # ifndef alloca /* predefined by HP cc +Olibcalls */
1989 char *p = (char *) alloca(1);
1992 if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1994 ac_cv_func_alloca_works=yes
1996 echo "configure: failed program was:" >&5
1997 cat conftest.$ac_ext >&5
1999 ac_cv_func_alloca_works=no
2004 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2005 if test $ac_cv_func_alloca_works = yes; then
2006 cat >> confdefs.h <<\EOF
2007 #define HAVE_ALLOCA 1
2012 if test $ac_cv_func_alloca_works = no; then
2013 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2014 # that cause trouble. Some versions do not even contain alloca or
2015 # contain a buggy version. If you still want to use their alloca,
2016 # use ar to extract alloca.o from them instead of compiling alloca.c.
2018 cat >> confdefs.h <<\EOF
2023 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2024 echo "configure:2025: checking whether alloca needs Cray hooks" >&5
2025 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 cat > conftest.$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 #if defined(CRAY) && ! defined(CRAY2)
2038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2039 egrep "webecray" >/dev/null 2>&1; then
2050 echo "$ac_t""$ac_cv_os_cray" 1>&6
2051 if test $ac_cv_os_cray = yes; then
2052 for ac_func in _getb67 GETB67 getb67; do
2053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2054 echo "configure:2055: checking for $ac_func" >&5
2055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 cat > conftest.$ac_ext <<EOF
2059 #line 2060 "configure"
2060 #include "confdefs.h"
2061 /* System header to define __stub macros and hopefully few prototypes,
2062 which can conflict with char $ac_func(); below. */
2064 /* Override any gcc2 internal prototype to avoid an error. */
2065 /* We use char because int might match the return type of a gcc2
2066 builtin and then its argument prototype would still apply. */
2071 /* The GNU C library defines this for functions which it implements
2072 to always fail with ENOSYS. Some functions are actually named
2073 something starting with __ and the normal name is an alias. */
2074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2082 if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2084 eval "ac_cv_func_$ac_func=yes"
2086 echo "configure: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2089 eval "ac_cv_func_$ac_func=no"
2094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2095 echo "$ac_t""yes" 1>&6
2096 cat >> confdefs.h <<EOF
2097 #define CRAY_STACKSEG_END $ac_func
2102 echo "$ac_t""no" 1>&6
2108 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2109 echo "configure:2110: checking stack direction for C alloca" >&5
2110 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 if test "$cross_compiling" = yes; then
2114 ac_cv_c_stack_direction=0
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2119 find_stack_direction ()
2121 static char *addr = 0;
2126 return find_stack_direction ();
2129 return (&dummy > addr) ? 1 : -1;
2133 exit (find_stack_direction() < 0);
2136 if { (eval echo configure:2137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2138 ac_cv_c_stack_direction=1
2140 echo "configure: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2143 ac_cv_c_stack_direction=-1
2150 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2151 cat >> confdefs.h <<EOF
2152 #define STACK_DIRECTION $ac_cv_c_stack_direction
2157 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2158 echo "configure:2159: checking for vprintf" >&5
2159 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2162 cat > conftest.$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2165 /* System header to define __stub macros and hopefully few prototypes,
2166 which can conflict with char vprintf(); below. */
2168 /* Override any gcc2 internal prototype to avoid an error. */
2169 /* We use char because int might match the return type of a gcc2
2170 builtin and then its argument prototype would still apply. */
2175 /* The GNU C library defines this for functions which it implements
2176 to always fail with ENOSYS. Some functions are actually named
2177 something starting with __ and the normal name is an alias. */
2178 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2186 if { (eval echo configure:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2188 eval "ac_cv_func_vprintf=yes"
2190 echo "configure: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2193 eval "ac_cv_func_vprintf=no"
2198 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2199 echo "$ac_t""yes" 1>&6
2200 cat >> confdefs.h <<\EOF
2201 #define HAVE_VPRINTF 1
2205 echo "$ac_t""no" 1>&6
2208 if test "$ac_cv_func_vprintf" != yes; then
2209 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2210 echo "configure:2211: checking for _doprnt" >&5
2211 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 cat > conftest.$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2217 /* System header to define __stub macros and hopefully few prototypes,
2218 which can conflict with char _doprnt(); below. */
2220 /* Override any gcc2 internal prototype to avoid an error. */
2221 /* We use char because int might match the return type of a gcc2
2222 builtin and then its argument prototype would still apply. */
2227 /* The GNU C library defines this for functions which it implements
2228 to always fail with ENOSYS. Some functions are actually named
2229 something starting with __ and the normal name is an alias. */
2230 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2238 if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2240 eval "ac_cv_func__doprnt=yes"
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2245 eval "ac_cv_func__doprnt=no"
2250 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2251 echo "$ac_t""yes" 1>&6
2252 cat >> confdefs.h <<\EOF
2253 #define HAVE_DOPRNT 1
2257 echo "$ac_t""no" 1>&6
2262 if test "$ac_cv_c_cross" = no; then
2263 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
2264 echo "configure:2265: checking whether setvbuf arguments are reversed" >&5
2265 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 if test "$cross_compiling" = yes; then
2269 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2275 /* If setvbuf has the reversed format, exit 0. */
2277 /* This call has the arguments reversed.
2278 A reversed system may check and see that the address of main
2279 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
2280 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
2283 exit(0); /* Non-reversed systems segv here. */
2286 if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2288 ac_cv_func_setvbuf_reversed=yes
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2293 ac_cv_func_setvbuf_reversed=no
2298 rm -f core core.* *.core
2301 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
2302 if test $ac_cv_func_setvbuf_reversed = yes; then
2303 cat >> confdefs.h <<\EOF
2304 #define SETVBUF_REVERSED 1
2310 for ac_func in setvbuf getcwd memset bzero strchr strcasecmp \
2311 sigprocmask sigsetmask
2313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_func" >&5
2315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 $ac_func(); 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_$ac_func) || defined (__stub___$ac_func)
2342 if { (eval echo configure:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2344 eval "ac_cv_func_$ac_func=yes"
2346 echo "configure: failed program was:" >&5
2347 cat conftest.$ac_ext >&5
2349 eval "ac_cv_func_$ac_func=no"
2354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2355 echo "$ac_t""yes" 1>&6
2356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2357 cat >> confdefs.h <<EOF
2358 #define $ac_tr_func 1
2362 echo "$ac_t""no" 1>&6
2366 for ac_func in memcpy memmove strdup strerror
2368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2369 echo "configure:2370: checking for $ac_func" >&5
2370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2376 /* System header to define __stub macros and hopefully few prototypes,
2377 which can conflict with char $ac_func(); below. */
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2386 /* The GNU C library defines this for functions which it implements
2387 to always fail with ENOSYS. Some functions are actually named
2388 something starting with __ and the normal name is an alias. */
2389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2397 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2399 eval "ac_cv_func_$ac_func=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2404 eval "ac_cv_func_$ac_func=no"
2409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2410 echo "$ac_t""yes" 1>&6
2411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2412 cat >> confdefs.h <<EOF
2413 #define $ac_tr_func 1
2417 echo "$ac_t""no" 1>&6
2418 LIBOBJS="$LIBOBJS ${ac_func}.o"
2425 echo $ac_n "checking for inline""... $ac_c" 1>&6
2426 echo "configure:2427: checking for inline" >&5
2427 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2431 for ac_kw in inline __inline__ __inline; do
2432 cat > conftest.$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2440 if { (eval echo configure:2441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2442 ac_cv_c_inline=$ac_kw; break
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2452 echo "$ac_t""$ac_cv_c_inline" 1>&6
2453 case "$ac_cv_c_inline" in
2455 no) cat >> confdefs.h <<\EOF
2459 *) cat >> confdefs.h <<EOF
2460 #define inline $ac_cv_c_inline
2465 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2466 echo "configure:2467: checking for size_t" >&5
2467 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 #include <sys/types.h>
2479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2480 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2482 ac_cv_type_size_t=yes
2485 ac_cv_type_size_t=no
2490 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2491 if test $ac_cv_type_size_t = no; then
2492 cat >> confdefs.h <<\EOF
2493 #define size_t unsigned
2498 for ac_hdr in unistd.h
2500 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2502 echo "configure:2503: checking for $ac_hdr" >&5
2503 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2506 cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2512 { (eval echo configure:2513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2513 ac_err=`grep -v '^ *+' conftest.out`
2514 if test -z "$ac_err"; then
2516 eval "ac_cv_header_$ac_safe=yes"
2519 echo "configure: failed program was:" >&5
2520 cat conftest.$ac_ext >&5
2522 eval "ac_cv_header_$ac_safe=no"
2526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2527 echo "$ac_t""yes" 1>&6
2528 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2529 cat >> confdefs.h <<EOF
2530 #define $ac_tr_hdr 1
2534 echo "$ac_t""no" 1>&6
2538 for ac_func in getpagesize
2540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2541 echo "configure:2542: checking for $ac_func" >&5
2542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 /* System header to define __stub macros and hopefully few prototypes,
2549 which can conflict with char $ac_func(); below. */
2551 /* Override any gcc2 internal prototype to avoid an error. */
2552 /* We use char because int might match the return type of a gcc2
2553 builtin and then its argument prototype would still apply. */
2558 /* The GNU C library defines this for functions which it implements
2559 to always fail with ENOSYS. Some functions are actually named
2560 something starting with __ and the normal name is an alias. */
2561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2571 eval "ac_cv_func_$ac_func=yes"
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2576 eval "ac_cv_func_$ac_func=no"
2581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2582 echo "$ac_t""yes" 1>&6
2583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2584 cat >> confdefs.h <<EOF
2585 #define $ac_tr_func 1
2589 echo "$ac_t""no" 1>&6
2593 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2594 echo "configure:2595: checking for working mmap" >&5
2595 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 if test "$cross_compiling" = yes; then
2599 ac_cv_func_mmap_fixed_mapped=no
2601 cat > conftest.$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2605 /* Thanks to Mike Haertel and Jim Avera for this test.
2606 Here is a matrix of mmap possibilities:
2607 mmap private not fixed
2608 mmap private fixed at somewhere currently unmapped
2609 mmap private fixed at somewhere already mapped
2610 mmap shared not fixed
2611 mmap shared fixed at somewhere currently unmapped
2612 mmap shared fixed at somewhere already mapped
2613 For private mappings, we should verify that changes cannot be read()
2614 back from the file, nor mmap's back from the file at a different
2615 address. (There have been systems where private was not correctly
2616 implemented like the infamous i386 svr4.0, and systems where the
2617 VM page cache was not coherent with the filesystem buffer cache
2618 like early versions of FreeBSD and possibly contemporary NetBSD.)
2619 For shared mappings, we should conversely verify that changes get
2620 propogated back to all the places they're supposed to be.
2622 Grep wants private fixed already mapped.
2623 The main things grep needs to know about mmap are:
2624 * does it exist and is it safe to write into the mmap'd area
2625 * how to use it (BSD variants) */
2626 #include <sys/types.h>
2628 #include <sys/mman.h>
2630 /* This mess was copied from the GNU getpagesize.h. */
2631 #ifndef HAVE_GETPAGESIZE
2632 # ifdef HAVE_UNISTD_H
2633 # include <unistd.h>
2636 /* Assume that all systems that can run configure have sys/param.h. */
2637 # ifndef HAVE_SYS_PARAM_H
2638 # define HAVE_SYS_PARAM_H 1
2641 # ifdef _SC_PAGESIZE
2642 # define getpagesize() sysconf(_SC_PAGESIZE)
2643 # else /* no _SC_PAGESIZE */
2644 # ifdef HAVE_SYS_PARAM_H
2645 # include <sys/param.h>
2646 # ifdef EXEC_PAGESIZE
2647 # define getpagesize() EXEC_PAGESIZE
2648 # else /* no EXEC_PAGESIZE */
2650 # define getpagesize() NBPG * CLSIZE
2653 # endif /* no CLSIZE */
2654 # else /* no NBPG */
2656 # define getpagesize() NBPC
2657 # else /* no NBPC */
2659 # define getpagesize() PAGESIZE
2660 # endif /* PAGESIZE */
2661 # endif /* no NBPC */
2662 # endif /* no NBPG */
2663 # endif /* no EXEC_PAGESIZE */
2664 # else /* no HAVE_SYS_PARAM_H */
2665 # define getpagesize() 8192 /* punt totally */
2666 # endif /* no HAVE_SYS_PARAM_H */
2667 # endif /* no _SC_PAGESIZE */
2669 #endif /* no HAVE_GETPAGESIZE */
2672 extern "C" { void *malloc(unsigned); }
2680 char *data, *data2, *data3;
2684 pagesize = getpagesize();
2687 * First, make a file with some known garbage in it.
2689 data = malloc(pagesize);
2692 for (i = 0; i < pagesize; ++i)
2693 *(data + i) = rand();
2695 fd = creat("conftestmmap", 0600);
2698 if (write(fd, data, pagesize) != pagesize)
2703 * Next, try to mmap the file at a fixed address which
2704 * already has something else allocated at it. If we can,
2705 * also make sure that we see the same garbage.
2707 fd = open("conftestmmap", O_RDWR);
2710 data2 = malloc(2 * pagesize);
2713 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2714 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2715 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2717 for (i = 0; i < pagesize; ++i)
2718 if (*(data + i) != *(data2 + i))
2722 * Finally, make sure that changes to the mapped area
2723 * do not percolate back to the file as seen by read().
2724 * (This is a bug on some variants of i386 svr4.0.)
2726 for (i = 0; i < pagesize; ++i)
2727 *(data2 + i) = *(data2 + i) + 1;
2728 data3 = malloc(pagesize);
2731 if (read(fd, data3, pagesize) != pagesize)
2733 for (i = 0; i < pagesize; ++i)
2734 if (*(data + i) != *(data3 + i))
2737 unlink("conftestmmap");
2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2744 ac_cv_func_mmap_fixed_mapped=yes
2746 echo "configure: failed program was:" >&5
2747 cat conftest.$ac_ext >&5
2749 ac_cv_func_mmap_fixed_mapped=no
2756 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2757 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2758 cat >> confdefs.h <<\EOF
2765 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2766 unistd.h values.h sys/param.h
2768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2770 echo "configure:2771: checking for $ac_hdr" >&5
2771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2772 echo $ac_n "(cached) $ac_c" 1>&6
2774 cat > conftest.$ac_ext <<EOF
2775 #line 2776 "configure"
2776 #include "confdefs.h"
2779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2780 { (eval echo configure:2781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2781 ac_err=`grep -v '^ *+' conftest.out`
2782 if test -z "$ac_err"; then
2784 eval "ac_cv_header_$ac_safe=yes"
2787 echo "configure: failed program was:" >&5
2788 cat conftest.$ac_ext >&5
2790 eval "ac_cv_header_$ac_safe=no"
2794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2795 echo "$ac_t""yes" 1>&6
2796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2797 cat >> confdefs.h <<EOF
2798 #define $ac_tr_hdr 1
2802 echo "$ac_t""no" 1>&6
2806 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2807 __argz_count __argz_stringify __argz_next
2809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2810 echo "configure:2811: checking for $ac_func" >&5
2811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 cat > conftest.$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2817 /* System header to define __stub macros and hopefully few prototypes,
2818 which can conflict with char $ac_func(); below. */
2820 /* Override any gcc2 internal prototype to avoid an error. */
2821 /* We use char because int might match the return type of a gcc2
2822 builtin and then its argument prototype would still apply. */
2827 /* The GNU C library defines this for functions which it implements
2828 to always fail with ENOSYS. Some functions are actually named
2829 something starting with __ and the normal name is an alias. */
2830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2838 if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2840 eval "ac_cv_func_$ac_func=yes"
2842 echo "configure: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2845 eval "ac_cv_func_$ac_func=no"
2850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2851 echo "$ac_t""yes" 1>&6
2852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2853 cat >> confdefs.h <<EOF
2854 #define $ac_tr_func 1
2858 echo "$ac_t""no" 1>&6
2863 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2864 for ac_func in stpcpy
2866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_func" >&5
2868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 /* System header to define __stub macros and hopefully few prototypes,
2875 which can conflict with char $ac_func(); below. */
2877 /* Override any gcc2 internal prototype to avoid an error. */
2878 /* We use char because int might match the return type of a gcc2
2879 builtin and then its argument prototype would still apply. */
2884 /* The GNU C library defines this for functions which it implements
2885 to always fail with ENOSYS. Some functions are actually named
2886 something starting with __ and the normal name is an alias. */
2887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2895 if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2897 eval "ac_cv_func_$ac_func=yes"
2899 echo "configure: failed program was:" >&5
2900 cat conftest.$ac_ext >&5
2902 eval "ac_cv_func_$ac_func=no"
2907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2908 echo "$ac_t""yes" 1>&6
2909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2910 cat >> confdefs.h <<EOF
2911 #define $ac_tr_func 1
2915 echo "$ac_t""no" 1>&6
2920 if test "${ac_cv_func_stpcpy}" = "yes"; then
2921 cat >> confdefs.h <<\EOF
2922 #define HAVE_STPCPY 1
2927 if test $ac_cv_header_locale_h = yes; then
2928 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2929 echo "configure:2930: checking for LC_MESSAGES" >&5
2930 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2941 if { (eval echo configure:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2943 am_cv_val_LC_MESSAGES=yes
2945 echo "configure: failed program was:" >&5
2946 cat conftest.$ac_ext >&5
2948 am_cv_val_LC_MESSAGES=no
2953 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2954 if test $am_cv_val_LC_MESSAGES = yes; then
2955 cat >> confdefs.h <<\EOF
2956 #define HAVE_LC_MESSAGES 1
2961 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2962 echo "configure:2963: checking whether NLS is requested" >&5
2963 # Check whether --enable-nls or --disable-nls was given.
2964 if test "${enable_nls+set}" = set; then
2965 enableval="$enable_nls"
2971 echo "$ac_t""$USE_NLS" 1>&6
2974 USE_INCLUDED_LIBINTL=no
2976 if test "$USE_NLS" = "yes"; then
2977 cat >> confdefs.h <<\EOF
2978 #define ENABLE_NLS 1
2981 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2982 echo "configure:2983: checking whether included gettext is requested" >&5
2983 # Check whether --with-included-gettext or --without-included-gettext was given.
2984 if test "${with_included_gettext+set}" = set; then
2985 withval="$with_included_gettext"
2986 nls_cv_force_use_gnu_gettext=$withval
2988 nls_cv_force_use_gnu_gettext=no
2991 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2993 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2994 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2996 nls_cv_header_libgt=
2999 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3000 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3001 echo "configure:3002: checking for libintl.h" >&5
3002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 #include <libintl.h>
3010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3011 { (eval echo configure:3012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3012 ac_err=`grep -v '^ *+' conftest.out`
3013 if test -z "$ac_err"; then
3015 eval "ac_cv_header_$ac_safe=yes"
3018 echo "configure: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3021 eval "ac_cv_header_$ac_safe=no"
3025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3026 echo "$ac_t""yes" 1>&6
3027 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3028 echo "configure:3029: checking for gettext in libc" >&5
3029 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 #include <libintl.h>
3037 return (int) gettext ("")
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3042 gt_cv_func_gettext_libc=yes
3044 echo "configure: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3047 gt_cv_func_gettext_libc=no
3052 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3054 if test "$gt_cv_func_gettext_libc" != "yes"; then
3055 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3056 echo "configure:3057: checking for bindtextdomain in -lintl" >&5
3057 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3059 echo $ac_n "(cached) $ac_c" 1>&6
3061 ac_save_LIBS="$LIBS"
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3066 /* Override any gcc2 internal prototype to avoid an error. */
3067 /* We use char because int might match the return type of a gcc2
3068 builtin and then its argument prototype would still apply. */
3069 char bindtextdomain();
3075 if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3077 eval "ac_cv_lib_$ac_lib_var=yes"
3079 echo "configure: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
3082 eval "ac_cv_lib_$ac_lib_var=no"
3085 LIBS="$ac_save_LIBS"
3088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3089 echo "$ac_t""yes" 1>&6
3090 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3091 echo "configure:3092: checking for gettext in libintl" >&5
3092 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3093 echo $ac_n "(cached) $ac_c" 1>&6
3095 cat > conftest.$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3100 return (int) gettext ("")
3103 if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3105 gt_cv_func_gettext_libintl=yes
3107 echo "configure: failed program was:" >&5
3108 cat conftest.$ac_ext >&5
3110 gt_cv_func_gettext_libintl=no
3115 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3117 echo "$ac_t""no" 1>&6
3122 if test "$gt_cv_func_gettext_libc" = "yes" \
3123 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3124 cat >> confdefs.h <<\EOF
3125 #define HAVE_GETTEXT 1
3128 # Extract the first word of "msgfmt", so it can be a program name with args.
3129 set dummy msgfmt; ac_word=$2
3130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3131 echo "configure:3132: checking for $ac_word" >&5
3132 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3137 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3141 for ac_dir in $PATH; do
3142 test -z "$ac_dir" && ac_dir=.
3143 if test -f $ac_dir/$ac_word; then
3144 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3145 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3151 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3155 MSGFMT="$ac_cv_path_MSGFMT"
3156 if test -n "$MSGFMT"; then
3157 echo "$ac_t""$MSGFMT" 1>&6
3159 echo "$ac_t""no" 1>&6
3161 if test "$MSGFMT" != "no"; then
3162 for ac_func in dcgettext
3164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3165 echo "configure:3166: checking for $ac_func" >&5
3166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 cat > conftest.$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3172 /* System header to define __stub macros and hopefully few prototypes,
3173 which can conflict with char $ac_func(); below. */
3175 /* Override any gcc2 internal prototype to avoid an error. */
3176 /* We use char because int might match the return type of a gcc2
3177 builtin and then its argument prototype would still apply. */
3182 /* The GNU C library defines this for functions which it implements
3183 to always fail with ENOSYS. Some functions are actually named
3184 something starting with __ and the normal name is an alias. */
3185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3193 if { (eval echo configure:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3195 eval "ac_cv_func_$ac_func=yes"
3197 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3200 eval "ac_cv_func_$ac_func=no"
3205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3206 echo "$ac_t""yes" 1>&6
3207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3208 cat >> confdefs.h <<EOF
3209 #define $ac_tr_func 1
3213 echo "$ac_t""no" 1>&6
3217 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3218 set dummy gmsgfmt; ac_word=$2
3219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3220 echo "configure:3221: checking for $ac_word" >&5
3221 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3226 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3229 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3233 for ac_dir in $PATH; do
3234 test -z "$ac_dir" && ac_dir=.
3235 if test -f $ac_dir/$ac_word; then
3236 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3241 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3245 GMSGFMT="$ac_cv_path_GMSGFMT"
3246 if test -n "$GMSGFMT"; then
3247 echo "$ac_t""$GMSGFMT" 1>&6
3249 echo "$ac_t""no" 1>&6
3252 # Extract the first word of "xgettext", so it can be a program name with args.
3253 set dummy xgettext; ac_word=$2
3254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3255 echo "configure:3256: checking for $ac_word" >&5
3256 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3261 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3265 for ac_dir in $PATH; do
3266 test -z "$ac_dir" && ac_dir=.
3267 if test -f $ac_dir/$ac_word; then
3268 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3269 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3275 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3279 XGETTEXT="$ac_cv_path_XGETTEXT"
3280 if test -n "$XGETTEXT"; then
3281 echo "$ac_t""$XGETTEXT" 1>&6
3283 echo "$ac_t""no" 1>&6
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3291 extern int _nl_msg_cat_cntr;
3292 return _nl_msg_cat_cntr
3295 if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3312 echo "$ac_t""no" 1>&6
3316 if test "$CATOBJEXT" = "NONE"; then
3317 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
3318 echo "configure:3319: checking whether catgets can be used" >&5
3319 # Check whether --with-catgets or --without-catgets was given.
3320 if test "${with_catgets+set}" = set; then
3321 withval="$with_catgets"
3322 nls_cv_use_catgets=$withval
3324 nls_cv_use_catgets=no
3327 echo "$ac_t""$nls_cv_use_catgets" 1>&6
3329 if test "$nls_cv_use_catgets" = "yes"; then
3330 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
3331 echo "configure:3332: checking for main in -li" >&5
3332 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
3333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3336 ac_save_LIBS="$LIBS"
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3346 if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3348 eval "ac_cv_lib_$ac_lib_var=yes"
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3353 eval "ac_cv_lib_$ac_lib_var=no"
3356 LIBS="$ac_save_LIBS"
3359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3360 echo "$ac_t""yes" 1>&6
3361 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3362 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3363 cat >> confdefs.h <<EOF
3364 #define $ac_tr_lib 1
3370 echo "$ac_t""no" 1>&6
3373 echo $ac_n "checking for catgets""... $ac_c" 1>&6
3374 echo "configure:3375: checking for catgets" >&5
3375 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 /* System header to define __stub macros and hopefully few prototypes,
3382 which can conflict with char catgets(); below. */
3384 /* Override any gcc2 internal prototype to avoid an error. */
3385 /* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3391 /* The GNU C library defines this for functions which it implements
3392 to always fail with ENOSYS. Some functions are actually named
3393 something starting with __ and the normal name is an alias. */
3394 #if defined (__stub_catgets) || defined (__stub___catgets)
3402 if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3404 eval "ac_cv_func_catgets=yes"
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3409 eval "ac_cv_func_catgets=no"
3414 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3415 echo "$ac_t""yes" 1>&6
3416 cat >> confdefs.h <<\EOF
3417 #define HAVE_CATGETS 1
3420 INTLOBJS="\$(CATOBJS)"
3421 # Extract the first word of "gencat", so it can be a program name with args.
3422 set dummy gencat; ac_word=$2
3423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3424 echo "configure:3425: checking for $ac_word" >&5
3425 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3430 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3433 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3437 for ac_dir in $PATH; do
3438 test -z "$ac_dir" && ac_dir=.
3439 if test -f $ac_dir/$ac_word; then
3440 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3445 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3449 GENCAT="$ac_cv_path_GENCAT"
3450 if test -n "$GENCAT"; then
3451 echo "$ac_t""$GENCAT" 1>&6
3453 echo "$ac_t""no" 1>&6
3455 if test "$GENCAT" != "no"; then
3456 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3457 set dummy gmsgfmt; ac_word=$2
3458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3459 echo "configure:3460: checking for $ac_word" >&5
3460 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3465 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3468 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3472 for ac_dir in $PATH; do
3473 test -z "$ac_dir" && ac_dir=.
3474 if test -f $ac_dir/$ac_word; then
3475 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3480 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3484 GMSGFMT="$ac_cv_path_GMSGFMT"
3485 if test -n "$GMSGFMT"; then
3486 echo "$ac_t""$GMSGFMT" 1>&6
3488 echo "$ac_t""no" 1>&6
3491 if test "$GMSGFMT" = "no"; then
3492 # Extract the first word of "msgfmt", so it can be a program name with args.
3493 set dummy msgfmt; ac_word=$2
3494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3495 echo "configure:3496: checking for $ac_word" >&5
3496 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3501 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3505 for ac_dir in $PATH; do
3506 test -z "$ac_dir" && ac_dir=.
3507 if test -f $ac_dir/$ac_word; then
3508 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3509 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3515 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3519 GMSGFMT="$ac_cv_path_GMSGFMT"
3520 if test -n "$GMSGFMT"; then
3521 echo "$ac_t""$GMSGFMT" 1>&6
3523 echo "$ac_t""no" 1>&6
3527 # Extract the first word of "xgettext", so it can be a program name with args.
3528 set dummy xgettext; ac_word=$2
3529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3530 echo "configure:3531: checking for $ac_word" >&5
3531 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3536 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3540 for ac_dir in $PATH; do
3541 test -z "$ac_dir" && ac_dir=.
3542 if test -f $ac_dir/$ac_word; then
3543 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3544 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3550 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3554 XGETTEXT="$ac_cv_path_XGETTEXT"
3555 if test -n "$XGETTEXT"; then
3556 echo "$ac_t""$XGETTEXT" 1>&6
3558 echo "$ac_t""no" 1>&6
3561 USE_INCLUDED_LIBINTL=yes
3565 INTLDEPS='$(top_builddir)/intl/libintl.a'
3567 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3568 nls_cv_header_intl=intl/libintl.h
3569 nls_cv_header_libgt=intl/libgettext.h
3572 echo "$ac_t""no" 1>&6
3578 if test "$CATOBJEXT" = "NONE"; then
3579 nls_cv_use_gnu_gettext=yes
3583 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3584 INTLOBJS="\$(GETTOBJS)"
3585 # Extract the first word of "msgfmt", so it can be a program name with args.
3586 set dummy msgfmt; ac_word=$2
3587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3588 echo "configure:3589: checking for $ac_word" >&5
3589 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3590 echo $ac_n "(cached) $ac_c" 1>&6
3594 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3598 for ac_dir in $PATH; do
3599 test -z "$ac_dir" && ac_dir=.
3600 if test -f $ac_dir/$ac_word; then
3601 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3602 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3608 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3612 MSGFMT="$ac_cv_path_MSGFMT"
3613 if test -n "$MSGFMT"; then
3614 echo "$ac_t""$MSGFMT" 1>&6
3616 echo "$ac_t""no" 1>&6
3619 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3620 set dummy gmsgfmt; ac_word=$2
3621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3622 echo "configure:3623: checking for $ac_word" >&5
3623 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3628 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3631 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3635 for ac_dir in $PATH; do
3636 test -z "$ac_dir" && ac_dir=.
3637 if test -f $ac_dir/$ac_word; then
3638 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3643 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3647 GMSGFMT="$ac_cv_path_GMSGFMT"
3648 if test -n "$GMSGFMT"; then
3649 echo "$ac_t""$GMSGFMT" 1>&6
3651 echo "$ac_t""no" 1>&6
3654 # Extract the first word of "xgettext", so it can be a program name with args.
3655 set dummy xgettext; ac_word=$2
3656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3657 echo "configure:3658: checking for $ac_word" >&5
3658 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3659 echo $ac_n "(cached) $ac_c" 1>&6
3663 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3667 for ac_dir in $PATH; do
3668 test -z "$ac_dir" && ac_dir=.
3669 if test -f $ac_dir/$ac_word; then
3670 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3671 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3677 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3681 XGETTEXT="$ac_cv_path_XGETTEXT"
3682 if test -n "$XGETTEXT"; then
3683 echo "$ac_t""$XGETTEXT" 1>&6
3685 echo "$ac_t""no" 1>&6
3689 USE_INCLUDED_LIBINTL=yes
3693 INTLDEPS='$(top_builddir)/intl/libintl.a'
3695 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3696 nls_cv_header_intl=intl/libintl.h
3697 nls_cv_header_libgt=intl/libgettext.h
3700 if test "$XGETTEXT" != ":"; then
3701 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3704 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3709 # We need to process the po/ directory.
3713 nls_cv_header_intl=intl/libintl.h
3714 nls_cv_header_libgt=intl/libgettext.h
3717 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3718 # because some of the sources are only built for this goal.
3719 if test "$PACKAGE" = gettext; then
3721 USE_INCLUDED_LIBINTL=yes
3724 for lang in $ALL_LINGUAS; do
3725 GMOFILES="$GMOFILES $lang.gmo"
3726 POFILES="$POFILES $lang.po"
3742 if test "x$CATOBJEXT" != "x"; then
3743 if test "x$ALL_LINGUAS" = "x"; then
3746 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3747 echo "configure:3748: checking for catalogs to be installed" >&5
3749 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3750 case "$ALL_LINGUAS" in
3751 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3754 LINGUAS=$NEW_LINGUAS
3755 echo "$ac_t""$LINGUAS" 1>&6
3758 if test -n "$LINGUAS"; then
3759 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3763 if test $ac_cv_header_locale_h = yes; then
3764 INCLUDE_LOCALE_H="#include <locale.h>"
3767 /* The system does not provide the header <locale.h>. Take care yourself. */"
3771 test -d intl || mkdir intl
3772 if test "$CATOBJEXT" = ".cat"; then
3773 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3774 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3775 echo "configure:3776: checking for linux/version.h" >&5
3776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3777 echo $ac_n "(cached) $ac_c" 1>&6
3779 cat > conftest.$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3782 #include <linux/version.h>
3784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3785 { (eval echo configure:3786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3786 ac_err=`grep -v '^ *+' conftest.out`
3787 if test -z "$ac_err"; then
3789 eval "ac_cv_header_$ac_safe=yes"
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3795 eval "ac_cv_header_$ac_safe=no"
3799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3800 echo "$ac_t""yes" 1>&6
3803 echo "$ac_t""no" 1>&6
3808 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3810 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3811 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3813 if test "$PACKAGE" = "gettext"; then
3824 if test -n "$ac_aux_dir"; then
3825 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3827 if test -z "$MKINSTALLDIRS"; then
3828 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3835 test -d po || mkdir po
3836 if test "x$srcdir" != "x."; then
3837 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3838 posrcprefix="$srcdir/"
3840 posrcprefix="../$srcdir/"
3846 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3847 < $srcdir/po/POTFILES.in > po/POTFILES
3852 cat > confcache <<\EOF
3853 # This file is a shell script that caches the results of configure
3854 # tests run on this system so they can be shared between configure
3855 # scripts and configure runs. It is not useful on other systems.
3856 # If it contains results you don't want to keep, you may remove or edit it.
3858 # By default, configure uses ./config.cache as the cache file,
3859 # creating it if it does not exist already. You can give configure
3860 # the --cache-file=FILE option to use a different cache file; that is
3861 # what configure does when it calls configure scripts in
3862 # subdirectories, so they share the cache.
3863 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3864 # config.status only pays attention to the cache file if you give it the
3865 # --recheck option to rerun configure.
3868 # The following way of writing the cache mishandles newlines in values,
3869 # but we know of no workaround that is simple, portable, and efficient.
3870 # So, don't put newlines in cache variables' values.
3871 # Ultrix sh set writes to stderr and can't be redirected directly,
3872 # and sets the high bit in the cache file unless we assign to the vars.
3874 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3876 # `set' does not quote correctly, so add quotes (double-quote substitution
3877 # turns \\\\ into \\, and sed turns \\ into \).
3879 -e "s/'/'\\\\''/g" \
3880 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3883 # `set' quotes correctly as required by POSIX, so do not add quotes.
3884 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3887 if cmp -s $cache_file confcache; then
3890 if test -w $cache_file; then
3891 echo "updating cache $cache_file"
3892 cat confcache > $cache_file
3894 echo "not updating unwritable cache $cache_file"
3899 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3902 # Let make expand exec_prefix.
3903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3905 # Any assignment to VPATH causes Sun make to only execute
3906 # the first set of double-colon rules, so remove it if not needed.
3907 # If there is a colon in the path, we need to keep it.
3908 if test "x$srcdir" = x.; then
3909 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3912 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3914 DEFS=-DHAVE_CONFIG_H
3916 # Without the "./", some shells look in PATH for config.status.
3917 : ${CONFIG_STATUS=./config.status}
3919 echo creating $CONFIG_STATUS
3920 rm -f $CONFIG_STATUS
3921 cat > $CONFIG_STATUS <<EOF
3923 # Generated automatically by configure.
3924 # Run this file to recreate the current configuration.
3925 # This directory was configured as follows,
3926 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3928 # $0 $ac_configure_args
3930 # Compiler output produced by configure, useful for debugging
3931 # configure, is in ./config.log if it exists.
3933 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3936 case "\$ac_option" in
3937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3938 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3939 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3940 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3941 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3943 -help | --help | --hel | --he | --h)
3944 echo "\$ac_cs_usage"; exit 0 ;;
3945 *) echo "\$ac_cs_usage"; exit 1 ;;
3949 ac_given_srcdir=$srcdir
3950 ac_given_INSTALL="$INSTALL"
3952 trap 'rm -fr `echo "Makefile \
3960 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3962 cat >> $CONFIG_STATUS <<EOF
3964 # Protect against being on the right side of a sed subst in config.status.
3965 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3966 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3970 s%@CFLAGS@%$CFLAGS%g
3971 s%@CPPFLAGS@%$CPPFLAGS%g
3972 s%@CXXFLAGS@%$CXXFLAGS%g
3974 s%@LDFLAGS@%$LDFLAGS%g
3976 s%@exec_prefix@%$exec_prefix%g
3977 s%@prefix@%$prefix%g
3978 s%@program_transform_name@%$program_transform_name%g
3979 s%@bindir@%$bindir%g
3980 s%@sbindir@%$sbindir%g
3981 s%@libexecdir@%$libexecdir%g
3982 s%@datadir@%$datadir%g
3983 s%@sysconfdir@%$sysconfdir%g
3984 s%@sharedstatedir@%$sharedstatedir%g
3985 s%@localstatedir@%$localstatedir%g
3986 s%@libdir@%$libdir%g
3987 s%@includedir@%$includedir%g
3988 s%@oldincludedir@%$oldincludedir%g
3989 s%@infodir@%$infodir%g
3990 s%@mandir@%$mandir%g
3991 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3992 s%@INSTALL_DATA@%$INSTALL_DATA%g
3993 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3994 s%@PACKAGE@%$PACKAGE%g
3995 s%@VERSION@%$VERSION%g
3996 s%@ACLOCAL@%$ACLOCAL%g
3997 s%@AUTOCONF@%$AUTOCONF%g
3998 s%@AUTOMAKE@%$AUTOMAKE%g
3999 s%@AUTOHEADER@%$AUTOHEADER%g
4000 s%@MAKEINFO@%$MAKEINFO%g
4001 s%@SET_MAKE@%$SET_MAKE%g
4004 s%@INSTALL@%$INSTALL%g
4005 s%@RANLIB@%$RANLIB%g
4006 s%@TEXCONFIG@%$TEXCONFIG%g
4009 s%@EXEEXT@%$EXEEXT%g
4010 s%@TERMLIBS@%$TERMLIBS%g
4011 s%@ALLOCA@%$ALLOCA%g
4012 s%@LIBOBJS@%$LIBOBJS%g
4013 s%@USE_NLS@%$USE_NLS%g
4014 s%@MSGFMT@%$MSGFMT%g
4015 s%@GMSGFMT@%$GMSGFMT%g
4016 s%@XGETTEXT@%$XGETTEXT%g
4017 s%@GENCAT@%$GENCAT%g
4018 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4019 s%@CATALOGS@%$CATALOGS%g
4020 s%@CATOBJEXT@%$CATOBJEXT%g
4021 s%@DATADIRNAME@%$DATADIRNAME%g
4022 s%@GMOFILES@%$GMOFILES%g
4023 s%@INSTOBJEXT@%$INSTOBJEXT%g
4024 s%@INTLDEPS@%$INTLDEPS%g
4025 s%@INTLLIBS@%$INTLLIBS%g
4026 s%@INTLOBJS@%$INTLOBJS%g
4027 s%@POFILES@%$POFILES%g
4029 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4031 s%@GT_YES@%$GT_YES%g
4032 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4038 cat >> $CONFIG_STATUS <<\EOF
4040 # Split the substitutions into bite-sized pieces for seds with
4041 # small command number limits, like on Digital OSF/1 and HP-UX.
4042 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4043 ac_file=1 # Number of current file.
4044 ac_beg=1 # First line for current file.
4045 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4048 while $ac_more_lines; do
4049 if test $ac_beg -gt 1; then
4050 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4052 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4054 if test ! -s conftest.s$ac_file; then
4056 rm -f conftest.s$ac_file
4058 if test -z "$ac_sed_cmds"; then
4059 ac_sed_cmds="sed -f conftest.s$ac_file"
4061 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4063 ac_file=`expr $ac_file + 1`
4065 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4068 if test -z "$ac_sed_cmds"; then
4073 cat >> $CONFIG_STATUS <<EOF
4075 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
4085 cat >> $CONFIG_STATUS <<\EOF
4086 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4089 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4090 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4091 *) ac_file_in="${ac_file}.in" ;;
4094 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4096 # Remove last slash and all that follows it. Not all systems have dirname.
4097 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4098 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4099 # The file is in a subdirectory.
4100 test ! -d "$ac_dir" && mkdir "$ac_dir"
4101 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4102 # A "../" for each directory in $ac_dir_suffix.
4103 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4105 ac_dir_suffix= ac_dots=
4108 case "$ac_given_srcdir" in
4110 if test -z "$ac_dots"; then top_srcdir=.
4111 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4112 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4114 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4115 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4118 case "$ac_given_INSTALL" in
4119 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4120 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4123 echo creating "$ac_file"
4125 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4127 *Makefile*) ac_comsub="1i\\
4128 # $configure_input" ;;
4132 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4134 s%@configure_input@%$configure_input%g
4135 s%@srcdir@%$srcdir%g
4136 s%@top_srcdir@%$top_srcdir%g
4137 s%@INSTALL@%$INSTALL%g
4138 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4142 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4143 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4145 # ac_d sets the value in "#define NAME VALUE" lines.
4146 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4147 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4150 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4151 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4152 ac_uB='\([ ]\)%\1#\2define\3'
4155 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4156 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4157 ac_eB='$%\1#\2define\3'
4161 if test "${CONFIG_HEADERS+set}" != set; then
4163 cat >> $CONFIG_STATUS <<EOF
4164 CONFIG_HEADERS="config.h"
4166 cat >> $CONFIG_STATUS <<\EOF
4168 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4169 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4171 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4172 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4173 *) ac_file_in="${ac_file}.in" ;;
4176 echo creating $ac_file
4178 rm -f conftest.frag conftest.in conftest.out
4179 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4180 cat $ac_file_inputs > conftest.in
4184 # Transform confdefs.h into a sed script conftest.vals that substitutes
4185 # the proper values into config.h.in to produce config.h. And first:
4186 # Protect against being on the right side of a sed subst in config.status.
4187 # Protect against being in an unquoted here document in config.status.
4189 cat > conftest.hdr <<\EOF
4192 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4196 sed -n -f conftest.hdr confdefs.h > conftest.vals
4199 # This sed command replaces #undef with comments. This is necessary, for
4200 # example, in the case of _POSIX_SOURCE, which is predefined and required
4201 # on some systems where configure will not decide to define it.
4202 cat >> conftest.vals <<\EOF
4203 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4206 # Break up conftest.vals because some shells have a limit on
4207 # the size of here documents, and old seds have small limits too.
4212 ac_lines=`grep -c . conftest.vals`
4213 # grep -c gives empty output for an empty file on some AIX systems.
4214 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4215 # Write a limited-size here document to conftest.frag.
4216 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4217 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4219 sed -f conftest.frag conftest.in > conftest.out
4221 mv conftest.out conftest.in
4223 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4225 mv conftest.tail conftest.vals
4229 cat >> $CONFIG_STATUS <<\EOF
4230 rm -f conftest.frag conftest.h
4231 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4232 cat conftest.in >> conftest.h
4234 if cmp -s $ac_file conftest.h 2>/dev/null; then
4235 echo "$ac_file is unchanged"
4238 # Remove last slash and all that follows it. Not all systems have dirname.
4239 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4240 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4241 # The file is in a subdirectory.
4242 test ! -d "$ac_dir" && mkdir "$ac_dir"
4245 mv conftest.h $ac_file
4251 cat >> $CONFIG_STATUS <<EOF
4252 ac_sources="$nls_cv_header_libgt"
4253 ac_dests="$nls_cv_header_intl"
4256 cat >> $CONFIG_STATUS <<\EOF
4257 srcdir=$ac_given_srcdir
4258 while test -n "$ac_sources"; do
4259 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4260 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4262 echo "linking $srcdir/$ac_source to $ac_dest"
4264 if test ! -r $srcdir/$ac_source; then
4265 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4269 # Make relative symlinks.
4270 # Remove last slash and all that follows it. Not all systems have dirname.
4271 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4272 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4273 # The dest file is in a subdirectory.
4274 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4275 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4276 # A "../" for each directory in $ac_dest_dir_suffix.
4277 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4279 ac_dest_dir_suffix= ac_dots=
4283 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4284 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4287 # Make a symlink if possible; otherwise try a hard link.
4288 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4289 ln $srcdir/$ac_source $ac_dest; then :
4291 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4295 cat >> $CONFIG_STATUS <<EOF
4299 cat >> $CONFIG_STATUS <<\EOF
4300 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4301 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile
4304 chmod +x $CONFIG_STATUS
4305 rm -fr confdefs* $ac_clean_files
4306 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1