3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-timesync exclude support for timesync protocol"
17 --enable-pubdir=/path include support for a public writeable directory"
19 --disable-mkdir disable support for creating directories (lrz)"
21 --enable-syslog=FACILITY,{force,default,optional} include syslogsupport"
23 --disable-nls do not use Native Language Support"
25 --with-included-gettext use the GNU gettext library included here"
27 --with-catgets use catgets functions if available"
29 # Initialize some variables set by options.
30 # The variables have the same names as the options, with
31 # dashes changed to underlines.
33 cache_file=./config.cache
42 program_transform_name=s,x,x,
50 bindir='${exec_prefix}/bin'
51 sbindir='${exec_prefix}/sbin'
52 libexecdir='${exec_prefix}/libexec'
53 datadir='${prefix}/share'
54 sysconfdir='${prefix}/etc'
55 sharedstatedir='${prefix}/com'
56 localstatedir='${prefix}/var'
57 libdir='${exec_prefix}/lib'
58 includedir='${prefix}/include'
59 oldincludedir='/usr/include'
60 infodir='${prefix}/info'
61 mandir='${prefix}/man'
63 # Initialize some other variables.
66 # Maximum number of lines to put in a shell here document.
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 # Accept the important Cygnus configure options, so we can diagnose typos.
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
94 -build | --build | --buil | --bui | --bu)
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 datadir="$ac_optarg" ;;
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
202 -host | --host | --hos | --ho)
204 -host=* | --host=* | --hos=* | --ho=*)
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
219 -libdir | --libdir | --libdi | --libd)
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
246 # Obsolete; use --without-fp.
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 sbindir="$ac_optarg" ;;
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 sharedstatedir="$ac_optarg" ;;
323 -site | --site | --sit)
325 -site=* | --site=* | --sit=*)
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
340 -target | --target | --targe | --targ | --tar | --ta | --t)
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.12"
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
375 # Obsolete; use --with-x.
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file=src/crctab.c
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 if test ! -r $srcdir/$ac_unique_file; then
481 ac_srcdir_defaulted=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
511 echo "creating cache $cache_file"
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
522 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531 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
793 PACKAGE_VERSION="$PACKAGE-$VERSION"
794 cat >> confdefs.h <<EOF
795 #define PACKAGE "$PACKAGE"
798 cat >> confdefs.h <<EOF
799 #define VERSION "$VERSION"
802 cat >> confdefs.h <<EOF
803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
816 [0-9]*.[0-9]*.[0-9]*) README_ALPHA="README-alpha";;
821 # Check whether --enable-timesync or --disable-timesync was given.
822 if test "${enable_timesync+set}" = set; then
823 enableval="$enable_timesync"
824 if test "$enableval" = "no" ; then
827 cat >> confdefs.h <<\EOF
828 #define ENABLE_TIMESYNC 1
833 cat >> confdefs.h <<\EOF
834 #define ENABLE_TIMESYNC 1
840 # Check whether --enable-pubdir or --disable-pubdir was given.
841 if test "${enable_pubdir+set}" = set; then
842 enableval="$enable_pubdir"
843 if test "$enableval" = "no" ; then
846 cat >> confdefs.h <<EOF
847 #define PUBDIR "$enableval"
853 # Check whether --enable-mkdir or --disable-mkdir was given.
854 if test "${enable_mkdir+set}" = set; then
855 enableval="$enable_mkdir"
856 if test "$enableval" = "no" ; then
859 cat >> confdefs.h <<\EOF
860 #define ENABLE_MKDIR 1
865 cat >> confdefs.h <<\EOF
866 #define ENABLE_MKDIR 1
871 # Check whether --enable-syslog or --disable-syslog was given.
872 if test "${enable_syslog+set}" = set; then
873 enableval="$enable_syslog"
875 if test "$enableval" = "no" ; then
880 level=`echo $enableval|sed -e 's/^.*,//'`
881 fac=`echo $enableval|sed -e 's/,.*$//'`
882 cat >> confdefs.h <<EOF
883 #define ENABLE_SYSLOG $fac
888 lookup_facility=LOG_UUCP
892 if test "$level" = "force" ; then
893 cat >> confdefs.h <<\EOF
894 #define ENABLE_SYSLOG_FORCE 1
898 if test "$level" = "optional" ; then
901 cat >> confdefs.h <<\EOF
902 #define ENABLE_SYSLOG_DEFAULT 1
910 cat >> confdefs.h <<\EOF
911 #define ENABLE_SYSLOG_DEFAULT 1
914 lookup_facility=LOG_UUCP
919 # Extract the first word of "gcc", so it can be a program name with args.
920 set dummy gcc; ac_word=$2
921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
922 echo "configure:923: checking for $ac_word" >&5
923 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
924 echo $ac_n "(cached) $ac_c" 1>&6
926 if test -n "$CC"; then
927 ac_cv_prog_CC="$CC" # Let the user override the test.
929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
930 for ac_dir in $PATH; do
931 test -z "$ac_dir" && ac_dir=.
932 if test -f $ac_dir/$ac_word; then
941 if test -n "$CC"; then
942 echo "$ac_t""$CC" 1>&6
944 echo "$ac_t""no" 1>&6
947 if test -z "$CC"; then
948 # Extract the first word of "cc", so it can be a program name with args.
949 set dummy cc; ac_word=$2
950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
951 echo "configure:952: checking for $ac_word" >&5
952 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
953 echo $ac_n "(cached) $ac_c" 1>&6
955 if test -n "$CC"; then
956 ac_cv_prog_CC="$CC" # Let the user override the test.
958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
960 for ac_dir in $PATH; do
961 test -z "$ac_dir" && ac_dir=.
962 if test -f $ac_dir/$ac_word; then
963 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
972 if test $ac_prog_rejected = yes; then
973 # We found a bogon in the path, so make sure we never use it.
974 set dummy $ac_cv_prog_CC
976 if test $# -gt 0; then
977 # We chose a different compiler from the bogus one.
978 # However, it has the same basename, so the bogon will be chosen
979 # first if we set CC to just the basename; use the full file name.
981 set dummy "$ac_dir/$ac_word" "$@"
989 if test -n "$CC"; then
990 echo "$ac_t""$CC" 1>&6
992 echo "$ac_t""no" 1>&6
995 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
998 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
999 echo "configure:1000: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1003 ac_cpp='$CPP $CPPFLAGS'
1004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1005 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1006 cross_compiling=$ac_cv_prog_cc_cross
1008 cat > conftest.$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1013 if { (eval echo configure:1014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1014 ac_cv_prog_cc_works=yes
1015 # If we can't run a trivial program, we are probably using a cross compiler.
1016 if (./conftest; exit) 2>/dev/null; then
1017 ac_cv_prog_cc_cross=no
1019 ac_cv_prog_cc_cross=yes
1022 echo "configure: failed program was:" >&5
1023 cat conftest.$ac_ext >&5
1024 ac_cv_prog_cc_works=no
1028 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1029 if test $ac_cv_prog_cc_works = no; then
1030 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1032 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1033 echo "configure:1034: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1034 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1035 cross_compiling=$ac_cv_prog_cc_cross
1037 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1038 echo "configure:1039: checking whether we are using GNU C" >&5
1039 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 cat > conftest.c <<EOF
1047 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1054 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1056 if test $ac_cv_prog_gcc = yes; then
1058 ac_test_CFLAGS="${CFLAGS+set}"
1059 ac_save_CFLAGS="$CFLAGS"
1061 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1062 echo "configure:1063: checking whether ${CC-cc} accepts -g" >&5
1063 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1066 echo 'void f(){}' > conftest.c
1067 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1076 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1077 if test "$ac_test_CFLAGS" = set; then
1078 CFLAGS="$ac_save_CFLAGS"
1079 elif test $ac_cv_prog_cc_g = yes; then
1086 test "${CFLAGS+set}" = set || CFLAGS="-g"
1089 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1090 echo "configure:1091: checking how to run the C preprocessor" >&5
1091 # On Suns, sometimes $CPP names a directory.
1092 if test -n "$CPP" && test -d "$CPP"; then
1095 if test -z "$CPP"; then
1096 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1099 # This must be in double quotes, not single quotes, because CPP may get
1100 # substituted into the Makefile and "${CC-cc}" will confuse make.
1102 # On the NeXT, cc -E runs the code through the compiler's parser,
1103 # not just through cpp.
1104 cat > conftest.$ac_ext <<EOF
1105 #line 1106 "configure"
1106 #include "confdefs.h"
1110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1111 { (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1112 ac_err=`grep -v '^ *+' conftest.out`
1113 if test -z "$ac_err"; then
1117 echo "configure: failed program was:" >&5
1118 cat conftest.$ac_ext >&5
1120 CPP="${CC-cc} -E -traditional-cpp"
1121 cat > conftest.$ac_ext <<EOF
1122 #line 1123 "configure"
1123 #include "confdefs.h"
1127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1128 { (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1129 ac_err=`grep -v '^ *+' conftest.out`
1130 if test -z "$ac_err"; then
1134 echo "configure: failed program was:" >&5
1135 cat conftest.$ac_ext >&5
1142 ac_cv_prog_CPP="$CPP"
1144 CPP="$ac_cv_prog_CPP"
1146 ac_cv_prog_CPP="$CPP"
1148 echo "$ac_t""$CPP" 1>&6
1150 if test $ac_cv_prog_gcc = yes; then
1151 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1152 echo "configure:1153: checking whether ${CC-cc} needs -traditional" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 ac_pattern="Autoconf.*'x'"
1157 cat > conftest.$ac_ext <<EOF
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1164 egrep "$ac_pattern" >/dev/null 2>&1; then
1166 ac_cv_prog_gcc_traditional=yes
1169 ac_cv_prog_gcc_traditional=no
1174 if test $ac_cv_prog_gcc_traditional = no; then
1175 cat > conftest.$ac_ext <<EOF
1176 #line 1177 "configure"
1177 #include "confdefs.h"
1181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1182 egrep "$ac_pattern" >/dev/null 2>&1; then
1184 ac_cv_prog_gcc_traditional=yes
1191 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1192 if test $ac_cv_prog_gcc_traditional = yes; then
1193 CC="$CC -traditional"
1197 # Extract the first word of "ranlib", so it can be a program name with args.
1198 set dummy ranlib; ac_word=$2
1199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1200 echo "configure:1201: checking for $ac_word" >&5
1201 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 if test -n "$RANLIB"; then
1205 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1208 for ac_dir in $PATH; do
1209 test -z "$ac_dir" && ac_dir=.
1210 if test -f $ac_dir/$ac_word; then
1211 ac_cv_prog_RANLIB="ranlib"
1216 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1219 RANLIB="$ac_cv_prog_RANLIB"
1220 if test -n "$RANLIB"; then
1221 echo "$ac_t""$RANLIB" 1>&6
1223 echo "$ac_t""no" 1>&6
1226 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1227 echo "configure:1228: checking for POSIXized ISC" >&5
1228 if test -d /etc/conf/kconfig.d &&
1229 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1231 echo "$ac_t""yes" 1>&6
1232 ISC=yes # If later tests want to check for ISC.
1233 cat >> confdefs.h <<\EOF
1234 #define _POSIX_SOURCE 1
1237 if test "$GCC" = yes; then
1243 echo "$ac_t""no" 1>&6
1247 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1248 echo "configure:1249: checking for AIX" >&5
1249 cat > conftest.$ac_ext <<EOF
1250 #line 1251 "configure"
1251 #include "confdefs.h"
1257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1258 egrep "yes" >/dev/null 2>&1; then
1260 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1261 #define _ALL_SOURCE 1
1266 echo "$ac_t""no" 1>&6
1271 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1272 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1273 echo "configure:1274: checking for minix/config.h" >&5
1274 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1277 cat > conftest.$ac_ext <<EOF
1278 #line 1279 "configure"
1279 #include "confdefs.h"
1280 #include <minix/config.h>
1282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1283 { (eval echo configure:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1284 ac_err=`grep -v '^ *+' conftest.out`
1285 if test -z "$ac_err"; then
1287 eval "ac_cv_header_$ac_safe=yes"
1290 echo "configure: failed program was:" >&5
1291 cat conftest.$ac_ext >&5
1293 eval "ac_cv_header_$ac_safe=no"
1297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1298 echo "$ac_t""yes" 1>&6
1301 echo "$ac_t""no" 1>&6
1305 if test "$MINIX" = yes; then
1306 cat >> confdefs.h <<\EOF
1307 #define _POSIX_SOURCE 1
1310 cat >> confdefs.h <<\EOF
1311 #define _POSIX_1_SOURCE 2
1314 cat >> confdefs.h <<\EOF
1323 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1324 echo "configure:1325: checking for ${CC-cc} option to accept ANSI C" >&5
1325 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 am_cv_prog_cc_stdc=no
1330 # Don't try gcc -ansi; that turns off useful extensions and
1331 # breaks some systems' header files.
1332 # AIX -qlanglvl=ansi
1333 # Ultrix and OSF/1 -std1
1334 # HP-UX -Aa -D_HPUX_SOURCE
1335 # SVR4 -Xc -D__EXTENSIONS__
1336 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1338 CC="$ac_save_CC $ac_arg"
1339 cat > conftest.$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1344 #include <sys/types.h>
1345 #include <sys/stat.h>
1346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1347 struct buf { int x; };
1348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1349 static char *e (p, i)
1355 static char *f (char * (*g) (char **, int), char **p, ...)
1360 s = g (p, va_arg (v,int));
1364 int test (int i, double x);
1365 struct s1 {int (*f) (int a);};
1366 struct s2 {int (*f) (double a);};
1367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1377 if { (eval echo configure:1378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1379 am_cv_prog_cc_stdc="$ac_arg"; break
1381 echo "configure: failed program was:" >&5
1382 cat conftest.$ac_ext >&5
1390 if test -z "$am_cv_prog_cc_stdc"; then
1391 echo "$ac_t""none needed" 1>&6
1393 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1395 case "x$am_cv_prog_cc_stdc" in
1397 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1402 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1403 echo "configure:1404: checking for function prototypes" >&5
1404 if test "$am_cv_prog_cc_stdc" != no; then
1405 echo "$ac_t""yes" 1>&6
1406 cat >> confdefs.h <<\EOF
1407 #define PROTOTYPES 1
1412 echo "$ac_t""no" 1>&6
1413 U=_ ANSI2KNR=./ansi2knr
1414 # Ensure some checks needed by ansi2knr itself.
1415 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1416 echo "configure:1417: checking for ANSI C header files" >&5
1417 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1420 cat > conftest.$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1429 { (eval echo configure:1430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1430 ac_err=`grep -v '^ *+' conftest.out`
1431 if test -z "$ac_err"; then
1433 ac_cv_header_stdc=yes
1436 echo "configure: failed program was:" >&5
1437 cat conftest.$ac_ext >&5
1439 ac_cv_header_stdc=no
1443 if test $ac_cv_header_stdc = yes; then
1444 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1451 egrep "memchr" >/dev/null 2>&1; then
1455 ac_cv_header_stdc=no
1461 if test $ac_cv_header_stdc = yes; then
1462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1469 egrep "free" >/dev/null 2>&1; then
1473 ac_cv_header_stdc=no
1479 if test $ac_cv_header_stdc = yes; then
1480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1481 if test "$cross_compiling" = yes; then
1484 cat > conftest.$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1488 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1489 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1490 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1491 int main () { int i; for (i = 0; i < 256; i++)
1492 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1496 if { (eval echo configure:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1500 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5
1503 ac_cv_header_stdc=no
1511 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1512 if test $ac_cv_header_stdc = yes; then
1513 cat >> confdefs.h <<\EOF
1514 #define STDC_HEADERS 1
1519 for ac_hdr in string.h
1521 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1523 echo "configure:1524: checking for $ac_hdr" >&5
1524 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 cat > conftest.$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1533 { (eval echo configure:1534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1534 ac_err=`grep -v '^ *+' conftest.out`
1535 if test -z "$ac_err"; then
1537 eval "ac_cv_header_$ac_safe=yes"
1540 echo "configure: failed program was:" >&5
1541 cat conftest.$ac_ext >&5
1543 eval "ac_cv_header_$ac_safe=no"
1547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1548 echo "$ac_t""yes" 1>&6
1549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1550 cat >> confdefs.h <<EOF
1551 #define $ac_tr_hdr 1
1555 echo "$ac_t""no" 1>&6
1561 echo $ac_n "checking for working const""... $ac_c" 1>&6
1562 echo "configure:1563: checking for working const" >&5
1563 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1566 cat > conftest.$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1572 /* Ultrix mips cc rejects this. */
1573 typedef int charset[2]; const charset x;
1574 /* SunOS 4.1.1 cc rejects this. */
1575 char const *const *ccp;
1577 /* NEC SVR4.0.2 mips cc rejects this. */
1578 struct point {int x, y;};
1579 static struct point const zero = {0,0};
1580 /* AIX XL C 1.02.0.0 rejects this.
1581 It does not let you subtract one const X* pointer from another in an arm
1582 of an if-expression whose if-part is not a constant expression */
1583 const char *g = "string";
1584 ccp = &g + (g ? g-g : 0);
1585 /* HPUX 7.0 cc rejects these. */
1588 ccp = (char const *const *) p;
1589 { /* SCO 3.2v4 cc rejects this. */
1591 char const *s = 0 ? (char *) 0 : (char const *) 0;
1595 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1597 const int *foo = &x[0];
1600 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1601 typedef const int *iptr;
1605 { /* AIX XL C 1.02.0.0 rejects this saying
1606 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1607 struct s { int j; const int *ap[3]; };
1608 struct s *b; b->j = 5;
1610 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1616 if { (eval echo configure:1617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1620 echo "configure: failed program was:" >&5
1621 cat conftest.$ac_ext >&5
1628 echo "$ac_t""$ac_cv_c_const" 1>&6
1629 if test $ac_cv_c_const = no; then
1630 cat >> confdefs.h <<\EOF
1636 echo $ac_n "checking for inline""... $ac_c" 1>&6
1637 echo "configure:1638: checking for inline" >&5
1638 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1642 for ac_kw in inline __inline__ __inline; do
1643 cat > conftest.$ac_ext <<EOF
1644 #line 1645 "configure"
1645 #include "confdefs.h"
1651 if { (eval echo configure:1652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1653 ac_cv_c_inline=$ac_kw; break
1655 echo "configure: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1663 echo "$ac_t""$ac_cv_c_inline" 1>&6
1664 case "$ac_cv_c_inline" in
1666 no) cat >> confdefs.h <<\EOF
1670 *) cat >> confdefs.h <<EOF
1671 #define inline $ac_cv_c_inline
1677 if test `hostname` = tirka.ohse.de -a "$cross_compiling" = no ; then
1678 test $prefix = NONE && prefix=/usr
1679 if test -z "$CFLAGS" ; then
1682 CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes"
1683 # -Wnested_externs entfernt wegen dcgettext()
1684 CFLAGS="$CFLAGS -Wpointer-arith -Wcast-qual -Wcast-align"
1685 CFLAGS="$CFLAGS -Winline -Wwrite-strings -Wshadow -Wmissing-braces"
1686 CFLAGS="$CFLAGS -Wcomments -fforce-mem -fforce-addr -O2 -m486 -pipe"
1687 CFLAGS="$CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2 -g3"
1693 *-Wstrict-prototypes*)
1694 cat >> confdefs.h <<\EOF
1695 #define STRICT_PROTOTYPES 1
1701 echo $ac_n "checking for syslog in -lsocket""... $ac_c" 1>&6
1702 echo "configure:1703: checking for syslog in -lsocket" >&5
1703 ac_lib_var=`echo socket'_'syslog | sed 'y%./+-%__p_%'`
1704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1707 ac_save_LIBS="$LIBS"
1708 LIBS="-lsocket $LIBS"
1709 cat > conftest.$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1712 /* Override any gcc2 internal prototype to avoid an error. */
1713 /* We use char because int might match the return type of a gcc2
1714 builtin and then its argument prototype would still apply. */
1721 if { (eval echo configure:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1723 eval "ac_cv_lib_$ac_lib_var=yes"
1725 echo "configure: failed program was:" >&5
1726 cat conftest.$ac_ext >&5
1728 eval "ac_cv_lib_$ac_lib_var=no"
1731 LIBS="$ac_save_LIBS"
1734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1735 echo "$ac_t""yes" 1>&6
1736 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1737 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1738 cat >> confdefs.h <<EOF
1739 #define $ac_tr_lib 1
1742 LIBS="-lsocket $LIBS"
1745 echo "$ac_t""no" 1>&6
1748 echo $ac_n "checking for syslog in -lbe""... $ac_c" 1>&6
1749 echo "configure:1750: checking for syslog in -lbe" >&5
1750 ac_lib_var=`echo be'_'syslog | sed 'y%./+-%__p_%'`
1751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1754 ac_save_LIBS="$LIBS"
1756 cat > conftest.$ac_ext <<EOF
1757 #line 1758 "configure"
1758 #include "confdefs.h"
1759 /* Override any gcc2 internal prototype to avoid an error. */
1760 /* We use char because int might match the return type of a gcc2
1761 builtin and then its argument prototype would still apply. */
1768 if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1770 eval "ac_cv_lib_$ac_lib_var=yes"
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1775 eval "ac_cv_lib_$ac_lib_var=no"
1778 LIBS="$ac_save_LIBS"
1781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1782 echo "$ac_t""yes" 1>&6
1783 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1784 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1785 cat >> confdefs.h <<EOF
1786 #define $ac_tr_lib 1
1792 echo "$ac_t""no" 1>&6
1795 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1796 echo "configure:1797: checking for gethostbyname in -lnsl" >&5
1797 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1801 ac_save_LIBS="$LIBS"
1803 cat > conftest.$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1806 /* Override any gcc2 internal prototype to avoid an error. */
1807 /* We use char because int might match the return type of a gcc2
1808 builtin and then its argument prototype would still apply. */
1809 char gethostbyname();
1815 if { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1817 eval "ac_cv_lib_$ac_lib_var=yes"
1819 echo "configure: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
1822 eval "ac_cv_lib_$ac_lib_var=no"
1825 LIBS="$ac_save_LIBS"
1828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1829 echo "$ac_t""yes" 1>&6
1830 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1831 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1832 cat >> confdefs.h <<EOF
1833 #define $ac_tr_lib 1
1839 echo "$ac_t""no" 1>&6
1843 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1844 echo "configure:1845: checking for ANSI C header files" >&5
1845 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1857 { (eval echo configure:1858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1858 ac_err=`grep -v '^ *+' conftest.out`
1859 if test -z "$ac_err"; then
1861 ac_cv_header_stdc=yes
1864 echo "configure: failed program was:" >&5
1865 cat conftest.$ac_ext >&5
1867 ac_cv_header_stdc=no
1871 if test $ac_cv_header_stdc = yes; then
1872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1873 cat > conftest.$ac_ext <<EOF
1874 #line 1875 "configure"
1875 #include "confdefs.h"
1878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1879 egrep "memchr" >/dev/null 2>&1; then
1883 ac_cv_header_stdc=no
1889 if test $ac_cv_header_stdc = yes; then
1890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1891 cat > conftest.$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1897 egrep "free" >/dev/null 2>&1; then
1901 ac_cv_header_stdc=no
1907 if test $ac_cv_header_stdc = yes; then
1908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1909 if test "$cross_compiling" = yes; then
1912 cat > conftest.$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1916 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1917 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1918 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1919 int main () { int i; for (i = 0; i < 256; i++)
1920 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1924 if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1928 echo "configure: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1931 ac_cv_header_stdc=no
1939 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1940 if test $ac_cv_header_stdc = yes; then
1941 cat >> confdefs.h <<\EOF
1942 #define STDC_HEADERS 1
1947 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h unistd.h sys/times.h
1949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_hdr" >&5
1952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1961 { (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1962 ac_err=`grep -v '^ *+' conftest.out`
1963 if test -z "$ac_err"; then
1965 eval "ac_cv_header_$ac_safe=yes"
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1971 eval "ac_cv_header_$ac_safe=no"
1975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1978 cat >> confdefs.h <<EOF
1979 #define $ac_tr_hdr 1
1983 echo "$ac_t""no" 1>&6
1988 for ac_hdr in termios.h sys/termios.h termio.h sys/termio.h sgtty.h
1990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1992 echo "configure:1993: checking for $ac_hdr" >&5
1993 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1996 cat > conftest.$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
2001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002 { (eval echo configure:2003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2003 ac_err=`grep -v '^ *+' conftest.out`
2004 if test -z "$ac_err"; then
2006 eval "ac_cv_header_$ac_safe=yes"
2009 echo "configure: failed program was:" >&5
2010 cat conftest.$ac_ext >&5
2012 eval "ac_cv_header_$ac_safe=no"
2016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2017 echo "$ac_t""yes" 1>&6
2018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2019 cat >> confdefs.h <<EOF
2020 #define $ac_tr_hdr 1
2024 echo "$ac_t""no" 1>&6
2028 for ac_hdr in termios.h sys/termios.h termio.h sys/termio.h sgtty.h
2030 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2031 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2032 echo "configure:2033: checking for $ac_hdr" >&5
2033 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2042 { (eval echo configure:2043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2043 ac_err=`grep -v '^ *+' conftest.out`
2044 if test -z "$ac_err"; then
2046 eval "ac_cv_header_$ac_safe=yes"
2049 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2052 eval "ac_cv_header_$ac_safe=no"
2056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2057 echo "$ac_t""yes" 1>&6
2058 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2059 cat >> confdefs.h <<EOF
2060 #define $ac_tr_hdr 1
2064 echo "$ac_t""no" 1>&6
2068 for ac_hdr in sys/mman.h utime.h syslog.h sys/syslog.h sys/param.h
2070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_hdr" >&5
2073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2076 cat > conftest.$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2082 { (eval echo configure:2083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2083 ac_err=`grep -v '^ *+' conftest.out`
2084 if test -z "$ac_err"; then
2086 eval "ac_cv_header_$ac_safe=yes"
2089 echo "configure: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2092 eval "ac_cv_header_$ac_safe=no"
2096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2097 echo "$ac_t""yes" 1>&6
2098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2099 cat >> confdefs.h <<EOF
2100 #define $ac_tr_hdr 1
2104 echo "$ac_t""no" 1>&6
2108 for ac_hdr in sys/select.h strings.h arpa/inet.h
2110 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2111 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2112 echo "configure:2113: checking for $ac_hdr" >&5
2113 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2122 { (eval echo configure:2123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2123 ac_err=`grep -v '^ *+' conftest.out`
2124 if test -z "$ac_err"; then
2126 eval "ac_cv_header_$ac_safe=yes"
2129 echo "configure: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2132 eval "ac_cv_header_$ac_safe=no"
2136 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2137 echo "$ac_t""yes" 1>&6
2138 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2139 cat >> confdefs.h <<EOF
2140 #define $ac_tr_hdr 1
2144 echo "$ac_t""no" 1>&6
2149 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2150 echo "configure:2151: checking for size_t" >&5
2151 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 #include <sys/types.h>
2163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2164 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2166 ac_cv_type_size_t=yes
2169 ac_cv_type_size_t=no
2174 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2175 if test $ac_cv_type_size_t = no; then
2176 cat >> confdefs.h <<\EOF
2177 #define size_t unsigned
2182 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2183 echo "configure:2184: checking for mode_t" >&5
2184 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 #include <sys/types.h>
2196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2197 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2199 ac_cv_type_mode_t=yes
2202 ac_cv_type_mode_t=no
2207 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2208 if test $ac_cv_type_mode_t = no; then
2209 cat >> confdefs.h <<\EOF
2215 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2216 echo "configure:2217: checking for off_t" >&5
2217 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2220 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2223 #include <sys/types.h>
2229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2230 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2232 ac_cv_type_off_t=yes
2240 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2241 if test $ac_cv_type_off_t = no; then
2242 cat >> confdefs.h <<\EOF
2249 echo $ac_n "checking for speed_t""... $ac_c" 1>&6
2250 echo "configure:2251: checking for speed_t" >&5
2251 if eval "test \"`echo '$''{'ac_cv_type_speed_t'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2257 #include <sys/types.h>
2262 #ifdef HAVE_TERMIOS_H
2263 #include <termios.h>
2265 #if defined(HAVE_SYS_TERMIOS_H)
2266 #include <sys/termios.h>
2268 #if defined(HAVE_TERMIO_H)
2271 #if defined(HAVE_SYS_TERMIO_H)
2272 #include <sys/termio.h>
2274 #if defined(HAVE_SGTTY_H)
2277 #error neither termio.h nor sgtty.h found. Cannot continue. */
2285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2286 egrep "speed_t" >/dev/null 2>&1; then
2288 ac_cv_type_speed_t=yes
2291 ac_cv_type_speed_t=no
2296 echo "$ac_t""$ac_cv_type_speed_t" 1>&6
2297 if test $ac_cv_type_speed_t = no; then
2298 cat >> confdefs.h <<\EOF
2299 #define speed_t long
2304 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2305 echo "configure:2306: checking for st_rdev in struct stat" >&5
2306 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 #include <sys/types.h>
2313 #include <sys/stat.h>
2315 struct stat s; s.st_rdev;
2318 if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2320 ac_cv_struct_st_rdev=yes
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2325 ac_cv_struct_st_rdev=no
2330 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2331 if test $ac_cv_struct_st_rdev = yes; then
2332 cat >> confdefs.h <<\EOF
2333 #define HAVE_ST_RDEV 1
2338 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2339 echo "configure:2340: checking whether time.h and sys/time.h may both be included" >&5
2340 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2343 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2346 #include <sys/types.h>
2347 #include <sys/time.h>
2353 if { (eval echo configure:2354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2355 ac_cv_header_time=yes
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2360 ac_cv_header_time=no
2365 echo "$ac_t""$ac_cv_header_time" 1>&6
2366 if test $ac_cv_header_time = yes; then
2367 cat >> confdefs.h <<\EOF
2368 #define TIME_WITH_SYS_TIME 1
2373 echo $ac_n "checking whether sys/time.h and sys/select.h may both be included""... $ac_c" 1>&6
2374 echo "configure:2375: checking whether sys/time.h and sys/select.h may both be included" >&5
2375 if eval "test \"`echo '$''{'lrzsz_cv_header_sys_select'+set}'`\" = set"; then
2376 echo $ac_n "(cached) $ac_c" 1>&6
2378 cat > conftest.$ac_ext <<EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2381 #include <sys/types.h>
2382 #include <sys/time.h>
2383 #include <sys/select.h>
2388 if { (eval echo configure:2389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2390 lrzsz_cv_header_sys_select=yes
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2395 lrzsz_cv_header_sys_select=no
2400 echo "$ac_t""$lrzsz_cv_header_sys_select" 1>&6
2401 if test $lrzsz_cv_header_sys_select = no; then
2402 cat >> confdefs.h <<\EOF
2403 #define SYS_TIME_WITHOUT_SYS_SELECT 1
2408 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2409 echo "configure:2410: checking whether struct tm is in sys/time.h or time.h" >&5
2410 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 cat > conftest.$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2416 #include <sys/types.h>
2419 struct tm *tp; tp->tm_sec;
2422 if { (eval echo configure:2423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2424 ac_cv_struct_tm=time.h
2426 echo "configure: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2429 ac_cv_struct_tm=sys/time.h
2434 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2435 if test $ac_cv_struct_tm = sys/time.h; then
2436 cat >> confdefs.h <<\EOF
2437 #define TM_IN_SYS_TIME 1
2443 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
2444 echo "configure:2445: checking for errno declaration" >&5
2445 if eval "test \"`echo '$''{'lrzsz_cv_decl_errno'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2448 cat > conftest.$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2453 int i = errno; errno = 1;
2456 if { (eval echo configure:2457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2458 lrzsz_cv_decl_errno=yes
2460 echo "configure: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2463 lrzsz_cv_decl_errno=no
2468 echo "$ac_t""$lrzsz_cv_decl_errno" 1>&6
2469 if test $lrzsz_cv_decl_errno = yes; then
2470 cat >> confdefs.h <<\EOF
2471 #define HAVE_ERRNO_DECLARATION 1
2477 if test $cross_compiling = no ; then
2478 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
2479 echo "configure:2480: checking whether setvbuf arguments are reversed" >&5
2480 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 if test "$cross_compiling" = yes; then
2484 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2486 cat > conftest.$ac_ext <<EOF
2487 #line 2488 "configure"
2488 #include "confdefs.h"
2490 /* If setvbuf has the reversed format, exit 0. */
2492 /* This call has the arguments reversed.
2493 A reversed system may check and see that the address of main
2494 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
2495 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
2498 exit(0); /* Non-reversed systems segv here. */
2501 if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2503 ac_cv_func_setvbuf_reversed=yes
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2508 ac_cv_func_setvbuf_reversed=no
2513 rm -f core core.* *.core
2516 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
2517 if test $ac_cv_func_setvbuf_reversed = yes; then
2518 cat >> confdefs.h <<\EOF
2519 #define SETVBUF_REVERSED 1
2525 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2526 echo "configure:2527: checking return type of signal handlers" >&5
2527 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2530 cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 #include <sys/types.h>
2539 extern "C" void (*signal (int, void (*)(int)))(int);
2541 void (*signal ()) ();
2548 if { (eval echo configure:2549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2550 ac_cv_type_signal=void
2552 echo "configure: failed program was:" >&5
2553 cat conftest.$ac_ext >&5
2555 ac_cv_type_signal=int
2560 echo "$ac_t""$ac_cv_type_signal" 1>&6
2561 cat >> confdefs.h <<EOF
2562 #define RETSIGTYPE $ac_cv_type_signal
2566 for ac_hdr in unistd.h
2568 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2569 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2570 echo "configure:2571: checking for $ac_hdr" >&5
2571 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2574 cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2580 { (eval echo configure:2581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2581 ac_err=`grep -v '^ *+' conftest.out`
2582 if test -z "$ac_err"; then
2584 eval "ac_cv_header_$ac_safe=yes"
2587 echo "configure: failed program was:" >&5
2588 cat conftest.$ac_ext >&5
2590 eval "ac_cv_header_$ac_safe=no"
2594 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2595 echo "$ac_t""yes" 1>&6
2596 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2597 cat >> confdefs.h <<EOF
2598 #define $ac_tr_hdr 1
2602 echo "$ac_t""no" 1>&6
2606 for ac_func in getpagesize
2608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2609 echo "configure:2610: checking for $ac_func" >&5
2610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2613 cat > conftest.$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2616 /* System header to define __stub macros and hopefully few prototypes,
2617 which can conflict with char $ac_func(); below. */
2619 /* Override any gcc2 internal prototype to avoid an error. */
2620 /* We use char because int might match the return type of a gcc2
2621 builtin and then its argument prototype would still apply. */
2626 /* The GNU C library defines this for functions which it implements
2627 to always fail with ENOSYS. Some functions are actually named
2628 something starting with __ and the normal name is an alias. */
2629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2637 if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2639 eval "ac_cv_func_$ac_func=yes"
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2644 eval "ac_cv_func_$ac_func=no"
2649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2650 echo "$ac_t""yes" 1>&6
2651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2652 cat >> confdefs.h <<EOF
2653 #define $ac_tr_func 1
2657 echo "$ac_t""no" 1>&6
2661 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2662 echo "configure:2663: checking for working mmap" >&5
2663 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 if test "$cross_compiling" = yes; then
2667 ac_cv_func_mmap_fixed_mapped=no
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2673 /* Thanks to Mike Haertel and Jim Avera for this test.
2674 Here is a matrix of mmap possibilities:
2675 mmap private not fixed
2676 mmap private fixed at somewhere currently unmapped
2677 mmap private fixed at somewhere already mapped
2678 mmap shared not fixed
2679 mmap shared fixed at somewhere currently unmapped
2680 mmap shared fixed at somewhere already mapped
2681 For private mappings, we should verify that changes cannot be read()
2682 back from the file, nor mmap's back from the file at a different
2683 address. (There have been systems where private was not correctly
2684 implemented like the infamous i386 svr4.0, and systems where the
2685 VM page cache was not coherent with the filesystem buffer cache
2686 like early versions of FreeBSD and possibly contemporary NetBSD.)
2687 For shared mappings, we should conversely verify that changes get
2688 propogated back to all the places they're supposed to be.
2690 Grep wants private fixed already mapped.
2691 The main things grep needs to know about mmap are:
2692 * does it exist and is it safe to write into the mmap'd area
2693 * how to use it (BSD variants) */
2694 #include <sys/types.h>
2696 #include <sys/mman.h>
2698 /* This mess was copied from the GNU getpagesize.h. */
2699 #ifndef HAVE_GETPAGESIZE
2700 # ifdef HAVE_UNISTD_H
2701 # include <unistd.h>
2704 /* Assume that all systems that can run configure have sys/param.h. */
2705 # ifndef HAVE_SYS_PARAM_H
2706 # define HAVE_SYS_PARAM_H 1
2709 # ifdef _SC_PAGESIZE
2710 # define getpagesize() sysconf(_SC_PAGESIZE)
2711 # else /* no _SC_PAGESIZE */
2712 # ifdef HAVE_SYS_PARAM_H
2713 # include <sys/param.h>
2714 # ifdef EXEC_PAGESIZE
2715 # define getpagesize() EXEC_PAGESIZE
2716 # else /* no EXEC_PAGESIZE */
2718 # define getpagesize() NBPG * CLSIZE
2721 # endif /* no CLSIZE */
2722 # else /* no NBPG */
2724 # define getpagesize() NBPC
2725 # else /* no NBPC */
2727 # define getpagesize() PAGESIZE
2728 # endif /* PAGESIZE */
2729 # endif /* no NBPC */
2730 # endif /* no NBPG */
2731 # endif /* no EXEC_PAGESIZE */
2732 # else /* no HAVE_SYS_PARAM_H */
2733 # define getpagesize() 8192 /* punt totally */
2734 # endif /* no HAVE_SYS_PARAM_H */
2735 # endif /* no _SC_PAGESIZE */
2737 #endif /* no HAVE_GETPAGESIZE */
2740 extern "C" { void *malloc(unsigned); }
2748 char *data, *data2, *data3;
2752 pagesize = getpagesize();
2755 * First, make a file with some known garbage in it.
2757 data = malloc(pagesize);
2760 for (i = 0; i < pagesize; ++i)
2761 *(data + i) = rand();
2763 fd = creat("conftestmmap", 0600);
2766 if (write(fd, data, pagesize) != pagesize)
2771 * Next, try to mmap the file at a fixed address which
2772 * already has something else allocated at it. If we can,
2773 * also make sure that we see the same garbage.
2775 fd = open("conftestmmap", O_RDWR);
2778 data2 = malloc(2 * pagesize);
2781 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2782 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2783 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2785 for (i = 0; i < pagesize; ++i)
2786 if (*(data + i) != *(data2 + i))
2790 * Finally, make sure that changes to the mapped area
2791 * do not percolate back to the file as seen by read().
2792 * (This is a bug on some variants of i386 svr4.0.)
2794 for (i = 0; i < pagesize; ++i)
2795 *(data2 + i) = *(data2 + i) + 1;
2796 data3 = malloc(pagesize);
2799 if (read(fd, data3, pagesize) != pagesize)
2801 for (i = 0; i < pagesize; ++i)
2802 if (*(data + i) != *(data3 + i))
2805 unlink("conftestmmap");
2810 if { (eval echo configure:2811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2812 ac_cv_func_mmap_fixed_mapped=yes
2814 echo "configure: failed program was:" >&5
2815 cat conftest.$ac_ext >&5
2817 ac_cv_func_mmap_fixed_mapped=no
2824 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2825 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2826 cat >> confdefs.h <<\EOF
2832 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2833 # for constant arguments. Useless!
2834 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2835 echo "configure:2836: checking for working alloca.h" >&5
2836 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2839 cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2844 char *p = alloca(2 * sizeof(int));
2847 if { (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2849 ac_cv_header_alloca_h=yes
2851 echo "configure: failed program was:" >&5
2852 cat conftest.$ac_ext >&5
2854 ac_cv_header_alloca_h=no
2859 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2860 if test $ac_cv_header_alloca_h = yes; then
2861 cat >> confdefs.h <<\EOF
2862 #define HAVE_ALLOCA_H 1
2867 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2868 echo "configure:2869: checking for alloca" >&5
2869 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2870 echo $ac_n "(cached) $ac_c" 1>&6
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2877 # define alloca __builtin_alloca
2880 # include <alloca.h>
2885 # ifndef alloca /* predefined by HP cc +Olibcalls */
2893 char *p = (char *) alloca(1);
2896 if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2898 ac_cv_func_alloca_works=yes
2900 echo "configure: failed program was:" >&5
2901 cat conftest.$ac_ext >&5
2903 ac_cv_func_alloca_works=no
2908 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2909 if test $ac_cv_func_alloca_works = yes; then
2910 cat >> confdefs.h <<\EOF
2911 #define HAVE_ALLOCA 1
2916 if test $ac_cv_func_alloca_works = no; then
2917 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2918 # that cause trouble. Some versions do not even contain alloca or
2919 # contain a buggy version. If you still want to use their alloca,
2920 # use ar to extract alloca.o from them instead of compiling alloca.c.
2922 cat >> confdefs.h <<\EOF
2927 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2928 echo "configure:2929: checking whether alloca needs Cray hooks" >&5
2929 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2935 #if defined(CRAY) && ! defined(CRAY2)
2942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2943 egrep "webecray" >/dev/null 2>&1; then
2954 echo "$ac_t""$ac_cv_os_cray" 1>&6
2955 if test $ac_cv_os_cray = yes; then
2956 for ac_func in _getb67 GETB67 getb67; do
2957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2958 echo "configure:2959: checking for $ac_func" >&5
2959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 /* System header to define __stub macros and hopefully few prototypes,
2966 which can conflict with char $ac_func(); below. */
2968 /* Override any gcc2 internal prototype to avoid an error. */
2969 /* We use char because int might match the return type of a gcc2
2970 builtin and then its argument prototype would still apply. */
2975 /* The GNU C library defines this for functions which it implements
2976 to always fail with ENOSYS. Some functions are actually named
2977 something starting with __ and the normal name is an alias. */
2978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2986 if { (eval echo configure:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2988 eval "ac_cv_func_$ac_func=yes"
2990 echo "configure: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2993 eval "ac_cv_func_$ac_func=no"
2998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2999 echo "$ac_t""yes" 1>&6
3000 cat >> confdefs.h <<EOF
3001 #define CRAY_STACKSEG_END $ac_func
3006 echo "$ac_t""no" 1>&6
3012 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3013 echo "configure:3014: checking stack direction for C alloca" >&5
3014 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3017 if test "$cross_compiling" = yes; then
3018 ac_cv_c_stack_direction=0
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 find_stack_direction ()
3025 static char *addr = 0;
3030 return find_stack_direction ();
3033 return (&dummy > addr) ? 1 : -1;
3037 exit (find_stack_direction() < 0);
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3042 ac_cv_c_stack_direction=1
3044 echo "configure: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3047 ac_cv_c_stack_direction=-1
3054 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3055 cat >> confdefs.h <<EOF
3056 #define STACK_DIRECTION $ac_cv_c_stack_direction
3061 cat > conftest.$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3067 egrep "struct.*utimbuf" >/dev/null 2>&1; then
3069 cat >> confdefs.h <<\EOF
3070 #define HAVE_STRUCT_UTIMBUF 1
3077 for ac_func in gettimeofday settimeofday
3079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3080 echo "configure:3081: checking for $ac_func" >&5
3081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3087 /* System header to define __stub macros and hopefully few prototypes,
3088 which can conflict with char $ac_func(); below. */
3090 /* Override any gcc2 internal prototype to avoid an error. */
3091 /* We use char because int might match the return type of a gcc2
3092 builtin and then its argument prototype would still apply. */
3097 /* The GNU C library defines this for functions which it implements
3098 to always fail with ENOSYS. Some functions are actually named
3099 something starting with __ and the normal name is an alias. */
3100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3108 if { (eval echo configure:3109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3110 eval "ac_cv_func_$ac_func=yes"
3112 echo "configure: failed program was:" >&5
3113 cat conftest.$ac_ext >&5
3115 eval "ac_cv_func_$ac_func=no"
3120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3121 echo "$ac_t""yes" 1>&6
3122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3123 cat >> confdefs.h <<EOF
3124 #define $ac_tr_func 1
3128 echo "$ac_t""no" 1>&6
3132 for ac_func in strchr memcpy select vprintf
3134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3135 echo "configure:3136: checking for $ac_func" >&5
3136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3137 echo $ac_n "(cached) $ac_c" 1>&6
3139 cat > conftest.$ac_ext <<EOF
3140 #line 3141 "configure"
3141 #include "confdefs.h"
3142 /* System header to define __stub macros and hopefully few prototypes,
3143 which can conflict with char $ac_func(); below. */
3145 /* Override any gcc2 internal prototype to avoid an error. */
3146 /* We use char because int might match the return type of a gcc2
3147 builtin and then its argument prototype would still apply. */
3152 /* The GNU C library defines this for functions which it implements
3153 to always fail with ENOSYS. Some functions are actually named
3154 something starting with __ and the normal name is an alias. */
3155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3163 if { (eval echo configure:3164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3165 eval "ac_cv_func_$ac_func=yes"
3167 echo "configure: failed program was:" >&5
3168 cat conftest.$ac_ext >&5
3170 eval "ac_cv_func_$ac_func=no"
3175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3176 echo "$ac_t""yes" 1>&6
3177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3178 cat >> confdefs.h <<EOF
3179 #define $ac_tr_func 1
3183 echo "$ac_t""no" 1>&6
3187 for ac_func in times rdchk utime syslog siginterrupt
3189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3190 echo "configure:3191: checking for $ac_func" >&5
3191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 /* System header to define __stub macros and hopefully few prototypes,
3198 which can conflict with char $ac_func(); below. */
3200 /* Override any gcc2 internal prototype to avoid an error. */
3201 /* We use char because int might match the return type of a gcc2
3202 builtin and then its argument prototype would still apply. */
3207 /* The GNU C library defines this for functions which it implements
3208 to always fail with ENOSYS. Some functions are actually named
3209 something starting with __ and the normal name is an alias. */
3210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3218 if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3220 eval "ac_cv_func_$ac_func=yes"
3222 echo "configure: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3225 eval "ac_cv_func_$ac_func=no"
3230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3231 echo "$ac_t""yes" 1>&6
3232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3233 cat >> confdefs.h <<EOF
3234 #define $ac_tr_func 1
3238 echo "$ac_t""no" 1>&6
3242 for ac_func in mkdir mktime strerror strstr strdup strtoul strtol strpbrk
3244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3245 echo "configure:3246: checking for $ac_func" >&5
3246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 /* System header to define __stub macros and hopefully few prototypes,
3253 which can conflict with char $ac_func(); below. */
3255 /* Override any gcc2 internal prototype to avoid an error. */
3256 /* We use char because int might match the return type of a gcc2
3257 builtin and then its argument prototype would still apply. */
3262 /* The GNU C library defines this for functions which it implements
3263 to always fail with ENOSYS. Some functions are actually named
3264 something starting with __ and the normal name is an alias. */
3265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3275 eval "ac_cv_func_$ac_func=yes"
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3280 eval "ac_cv_func_$ac_func=no"
3285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3286 echo "$ac_t""yes" 1>&6
3287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3288 cat >> confdefs.h <<EOF
3289 #define $ac_tr_func 1
3293 echo "$ac_t""no" 1>&6
3294 LIBOBJS="$LIBOBJS ${ac_func}.o"
3299 for ac_func in stpcpy strftime vasprintf
3301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3302 echo "configure:3303: checking for $ac_func" >&5
3303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3304 echo $ac_n "(cached) $ac_c" 1>&6
3306 cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3309 /* System header to define __stub macros and hopefully few prototypes,
3310 which can conflict with char $ac_func(); below. */
3312 /* Override any gcc2 internal prototype to avoid an error. */
3313 /* We use char because int might match the return type of a gcc2
3314 builtin and then its argument prototype would still apply. */
3319 /* The GNU C library defines this for functions which it implements
3320 to always fail with ENOSYS. Some functions are actually named
3321 something starting with __ and the normal name is an alias. */
3322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3330 if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3332 eval "ac_cv_func_$ac_func=yes"
3334 echo "configure: failed program was:" >&5
3335 cat conftest.$ac_ext >&5
3337 eval "ac_cv_func_$ac_func=no"
3342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3343 echo "$ac_t""yes" 1>&6
3344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3345 cat >> confdefs.h <<EOF
3346 #define $ac_tr_func 1
3350 echo "$ac_t""no" 1>&6
3351 LIBOBJS="$LIBOBJS ${ac_func}.o"
3357 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3358 echo "configure:3359: checking for getopt_long" >&5
3359 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3362 cat > conftest.$ac_ext <<EOF
3363 #line 3364 "configure"
3364 #include "confdefs.h"
3365 /* System header to define __stub macros and hopefully few prototypes,
3366 which can conflict with char getopt_long(); below. */
3368 /* Override any gcc2 internal prototype to avoid an error. */
3369 /* We use char because int might match the return type of a gcc2
3370 builtin and then its argument prototype would still apply. */
3375 /* The GNU C library defines this for functions which it implements
3376 to always fail with ENOSYS. Some functions are actually named
3377 something starting with __ and the normal name is an alias. */
3378 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3386 if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3388 eval "ac_cv_func_getopt_long=yes"
3390 echo "configure: failed program was:" >&5
3391 cat conftest.$ac_ext >&5
3393 eval "ac_cv_func_getopt_long=no"
3398 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3399 echo "$ac_t""yes" 1>&6
3402 echo "$ac_t""no" 1>&6
3403 LIBOBJS="$LIBOBJS getopt1.o getopt.o"
3408 cat >> confdefs.h <<\EOF
3409 #define HAVE_STRERROR 1
3415 echo $ac_n "checking for ftime""... $ac_c" 1>&6
3416 echo "configure:3417: checking for ftime" >&5
3417 if eval "test \"`echo '$''{'ac_cv_func_ftime'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3420 cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 /* System header to define __stub macros and hopefully few prototypes,
3424 which can conflict with char ftime(); below. */
3426 /* Override any gcc2 internal prototype to avoid an error. */
3427 /* We use char because int might match the return type of a gcc2
3428 builtin and then its argument prototype would still apply. */
3433 /* The GNU C library defines this for functions which it implements
3434 to always fail with ENOSYS. Some functions are actually named
3435 something starting with __ and the normal name is an alias. */
3436 #if defined (__stub_ftime) || defined (__stub___ftime)
3444 if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3446 eval "ac_cv_func_ftime=yes"
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3451 eval "ac_cv_func_ftime=no"
3456 if eval "test \"`echo '$ac_cv_func_'ftime`\" = yes"; then
3457 echo "$ac_t""yes" 1>&6
3458 echo $ac_n "checking that ftime works correctly""... $ac_c" 1>&6
3459 echo "configure:3460: checking that ftime works correctly" >&5
3460 if eval "test \"`echo '$''{'lrzsz_cv_sys_ftime_ok'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3463 if test "$cross_compiling" = yes; then
3464 lrzsz_cv_sys_ftime_ok=runtime
3466 cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3470 #include <sys/types.h>
3471 #include <sys/timeb.h>
3475 struct timeb s, slast;
3481 if (s.time < slast.time
3482 || (s.time == slast.time && s.millitm < slast.millitm)) {
3483 fprintf(stderr,"s: %ld, %ld, slast: %ld, %ld\n",
3484 s.time,s.millitm, slast.time,slast.millitm);
3487 if (s.time != slast.time)
3489 slast.time = s.time;
3490 slast.millitm = s.millitm;
3496 if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3498 lrzsz_cv_sys_ftime_ok=yes
3500 echo "configure: failed program was:" >&5
3501 cat conftest.$ac_ext >&5
3503 lrzsz_cv_sys_ftime_ok=no
3510 case $lrzsz_cv_sys_ftime_ok in
3511 yes) cat >> confdefs.h <<\EOF
3512 #define HAVE_FTIME 1
3514 echo "$ac_t""yes" 1>&6 ;;
3515 no) echo "$ac_t""no" 1>&6
3516 echo "configure: warning: ftime seems to be buggy" 1>&2 ;;
3517 runtime) cat >> confdefs.h <<\EOF
3518 #define HAVE_FTIME 1
3521 echo "$ac_t""will check at run time" 1>&6 ;;
3525 echo "$ac_t""no" 1>&6
3529 echo $ac_n "checking for timezone variable""... $ac_c" 1>&6
3530 echo "configure:3531: checking for timezone variable" >&5
3531 if eval "test \"`echo '$''{'libquark_cv_var_timezone'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3535 cat > conftest.$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3540 return(int)(timezone/2);
3543 if { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3545 libquark_cv_var_timezone=yes
3547 echo "configure: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3550 libquark_cv_var_timezone=no
3556 if test $libquark_cv_var_timezone = yes ; then
3557 echo "$ac_t""yes" 1>&6
3558 cat >> confdefs.h <<\EOF
3559 #define HAVE_TIMEZONE_VAR 1
3563 echo "$ac_t""no" 1>&6
3565 if test "x$lookup_facility" = x ; then
3568 echo $ac_n "checking for $lookup_facility""... $ac_c" 1>&6
3569 echo "configure:3570: checking for $lookup_facility" >&5
3570 if eval "test \"`echo '$''{'lrzsz_cv_lookup_facility'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3574 cat > conftest.$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3578 #ifdef HAVE_SYSLOG_H
3581 #include <sys/syslog.h>
3583 #ifdef $lookup_facility
3584 ihave$lookup_facility
3588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589 egrep "ihave$lookup_facility" >/dev/null 2>&1; then
3591 lrzsz_cv_lookup_facility=yes
3594 lrzsz_cv_lookup_facility=no
3601 if test $lrzsz_cv_lookup_facility = yes ; then
3602 echo "$ac_t""yes" 1>&6
3603 cat >> confdefs.h <<EOF
3604 #define ENABLE_SYSLOG $lookup_facility
3608 cat >> confdefs.h <<\EOF
3609 #define ENABLE_SYSLOG LOG_USER
3612 echo "$ac_t""no" 1>&6
3622 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3623 unistd.h values.h sys/param.h
3625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3627 echo "configure:3628: checking for $ac_hdr" >&5
3628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3637 { (eval echo configure:3638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3638 ac_err=`grep -v '^ *+' conftest.out`
3639 if test -z "$ac_err"; then
3641 eval "ac_cv_header_$ac_safe=yes"
3644 echo "configure: failed program was:" >&5
3645 cat conftest.$ac_ext >&5
3647 eval "ac_cv_header_$ac_safe=no"
3651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3652 echo "$ac_t""yes" 1>&6
3653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3654 cat >> confdefs.h <<EOF
3655 #define $ac_tr_hdr 1
3659 echo "$ac_t""no" 1>&6
3663 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3664 __argz_count __argz_stringify __argz_next
3666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3667 echo "configure:3668: checking for $ac_func" >&5
3668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 /* System header to define __stub macros and hopefully few prototypes,
3675 which can conflict with char $ac_func(); below. */
3677 /* Override any gcc2 internal prototype to avoid an error. */
3678 /* We use char because int might match the return type of a gcc2
3679 builtin and then its argument prototype would still apply. */
3684 /* The GNU C library defines this for functions which it implements
3685 to always fail with ENOSYS. Some functions are actually named
3686 something starting with __ and the normal name is an alias. */
3687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3695 if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3697 eval "ac_cv_func_$ac_func=yes"
3699 echo "configure: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3702 eval "ac_cv_func_$ac_func=no"
3707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3708 echo "$ac_t""yes" 1>&6
3709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3710 cat >> confdefs.h <<EOF
3711 #define $ac_tr_func 1
3715 echo "$ac_t""no" 1>&6
3720 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3721 for ac_func in stpcpy
3723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3724 echo "configure:3725: checking for $ac_func" >&5
3725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3731 /* System header to define __stub macros and hopefully few prototypes,
3732 which can conflict with char $ac_func(); below. */
3734 /* Override any gcc2 internal prototype to avoid an error. */
3735 /* We use char because int might match the return type of a gcc2
3736 builtin and then its argument prototype would still apply. */
3741 /* The GNU C library defines this for functions which it implements
3742 to always fail with ENOSYS. Some functions are actually named
3743 something starting with __ and the normal name is an alias. */
3744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3752 if { (eval echo configure:3753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3754 eval "ac_cv_func_$ac_func=yes"
3756 echo "configure: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3759 eval "ac_cv_func_$ac_func=no"
3764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3765 echo "$ac_t""yes" 1>&6
3766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3767 cat >> confdefs.h <<EOF
3768 #define $ac_tr_func 1
3772 echo "$ac_t""no" 1>&6
3777 if test "${ac_cv_func_stpcpy}" = "yes"; then
3778 cat >> confdefs.h <<\EOF
3779 #define HAVE_STPCPY 1
3784 if test $ac_cv_header_locale_h = yes; then
3785 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3786 echo "configure:3787: checking for LC_MESSAGES" >&5
3787 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3800 am_cv_val_LC_MESSAGES=yes
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3805 am_cv_val_LC_MESSAGES=no
3810 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3811 if test $am_cv_val_LC_MESSAGES = yes; then
3812 cat >> confdefs.h <<\EOF
3813 #define HAVE_LC_MESSAGES 1
3818 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3819 echo "configure:3820: checking whether NLS is requested" >&5
3820 # Check whether --enable-nls or --disable-nls was given.
3821 if test "${enable_nls+set}" = set; then
3822 enableval="$enable_nls"
3828 echo "$ac_t""$USE_NLS" 1>&6
3831 USE_INCLUDED_LIBINTL=no
3833 if test "$USE_NLS" = "yes"; then
3834 cat >> confdefs.h <<\EOF
3835 #define ENABLE_NLS 1
3838 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3839 echo "configure:3840: checking whether included gettext is requested" >&5
3840 # Check whether --with-included-gettext or --without-included-gettext was given.
3841 if test "${with_included_gettext+set}" = set; then
3842 withval="$with_included_gettext"
3843 nls_cv_force_use_gnu_gettext=$withval
3845 nls_cv_force_use_gnu_gettext=no
3848 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3850 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3851 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3853 nls_cv_header_libgt=
3856 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3857 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3858 echo "configure:3859: checking for libintl.h" >&5
3859 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3865 #include <libintl.h>
3867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3868 { (eval echo configure:3869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3869 ac_err=`grep -v '^ *+' conftest.out`
3870 if test -z "$ac_err"; then
3872 eval "ac_cv_header_$ac_safe=yes"
3875 echo "configure: failed program was:" >&5
3876 cat conftest.$ac_ext >&5
3878 eval "ac_cv_header_$ac_safe=no"
3882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3883 echo "$ac_t""yes" 1>&6
3884 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3885 echo "configure:3886: checking for gettext in libc" >&5
3886 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 #include <libintl.h>
3894 return (int) gettext ("")
3897 if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3899 gt_cv_func_gettext_libc=yes
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3904 gt_cv_func_gettext_libc=no
3909 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3911 if test "$gt_cv_func_gettext_libc" != "yes"; then
3912 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3913 echo "configure:3914: checking for bindtextdomain in -lintl" >&5
3914 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3918 ac_save_LIBS="$LIBS"
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3923 /* Override any gcc2 internal prototype to avoid an error. */
3924 /* We use char because int might match the return type of a gcc2
3925 builtin and then its argument prototype would still apply. */
3926 char bindtextdomain();
3932 if { (eval echo configure:3933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3934 eval "ac_cv_lib_$ac_lib_var=yes"
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3939 eval "ac_cv_lib_$ac_lib_var=no"
3942 LIBS="$ac_save_LIBS"
3945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3946 echo "$ac_t""yes" 1>&6
3947 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3948 echo "configure:3949: checking for gettext in libintl" >&5
3949 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3957 return (int) gettext ("")
3960 if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3962 gt_cv_func_gettext_libintl=yes
3964 echo "configure: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3967 gt_cv_func_gettext_libintl=no
3972 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3974 echo "$ac_t""no" 1>&6
3979 if test "$gt_cv_func_gettext_libc" = "yes" \
3980 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3981 cat >> confdefs.h <<\EOF
3982 #define HAVE_GETTEXT 1
3985 # Extract the first word of "msgfmt", so it can be a program name with args.
3986 set dummy msgfmt; ac_word=$2
3987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3988 echo "configure:3989: checking for $ac_word" >&5
3989 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3994 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3998 for ac_dir in $PATH; do
3999 test -z "$ac_dir" && ac_dir=.
4000 if test -f $ac_dir/$ac_word; then
4001 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4002 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4008 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
4012 MSGFMT="$ac_cv_path_MSGFMT"
4013 if test -n "$MSGFMT"; then
4014 echo "$ac_t""$MSGFMT" 1>&6
4016 echo "$ac_t""no" 1>&6
4018 if test "$MSGFMT" != "no"; then
4019 for ac_func in dcgettext
4021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4022 echo "configure:4023: checking for $ac_func" >&5
4023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4029 /* System header to define __stub macros and hopefully few prototypes,
4030 which can conflict with char $ac_func(); below. */
4032 /* Override any gcc2 internal prototype to avoid an error. */
4033 /* We use char because int might match the return type of a gcc2
4034 builtin and then its argument prototype would still apply. */
4039 /* The GNU C library defines this for functions which it implements
4040 to always fail with ENOSYS. Some functions are actually named
4041 something starting with __ and the normal name is an alias. */
4042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4050 if { (eval echo configure:4051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4052 eval "ac_cv_func_$ac_func=yes"
4054 echo "configure: failed program was:" >&5
4055 cat conftest.$ac_ext >&5
4057 eval "ac_cv_func_$ac_func=no"
4062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4063 echo "$ac_t""yes" 1>&6
4064 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4065 cat >> confdefs.h <<EOF
4066 #define $ac_tr_func 1
4070 echo "$ac_t""no" 1>&6
4074 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4075 set dummy gmsgfmt; ac_word=$2
4076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4077 echo "configure:4078: checking for $ac_word" >&5
4078 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4079 echo $ac_n "(cached) $ac_c" 1>&6
4083 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4087 for ac_dir in $PATH; do
4088 test -z "$ac_dir" && ac_dir=.
4089 if test -f $ac_dir/$ac_word; then
4090 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4095 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4099 GMSGFMT="$ac_cv_path_GMSGFMT"
4100 if test -n "$GMSGFMT"; then
4101 echo "$ac_t""$GMSGFMT" 1>&6
4103 echo "$ac_t""no" 1>&6
4106 # Extract the first word of "xgettext", so it can be a program name with args.
4107 set dummy xgettext; ac_word=$2
4108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4109 echo "configure:4110: checking for $ac_word" >&5
4110 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4115 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4119 for ac_dir in $PATH; do
4120 test -z "$ac_dir" && ac_dir=.
4121 if test -f $ac_dir/$ac_word; then
4122 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4123 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4129 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4133 XGETTEXT="$ac_cv_path_XGETTEXT"
4134 if test -n "$XGETTEXT"; then
4135 echo "$ac_t""$XGETTEXT" 1>&6
4137 echo "$ac_t""no" 1>&6
4140 cat > conftest.$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4145 extern int _nl_msg_cat_cntr;
4146 return _nl_msg_cat_cntr
4149 if { (eval echo configure:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4154 echo "configure: failed program was:" >&5
4155 cat conftest.$ac_ext >&5
4166 echo "$ac_t""no" 1>&6
4170 if test "$CATOBJEXT" = "NONE"; then
4171 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
4172 echo "configure:4173: checking whether catgets can be used" >&5
4173 # Check whether --with-catgets or --without-catgets was given.
4174 if test "${with_catgets+set}" = set; then
4175 withval="$with_catgets"
4176 nls_cv_use_catgets=$withval
4178 nls_cv_use_catgets=no
4181 echo "$ac_t""$nls_cv_use_catgets" 1>&6
4183 if test "$nls_cv_use_catgets" = "yes"; then
4184 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
4185 echo "configure:4186: checking for main in -li" >&5
4186 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
4187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4190 ac_save_LIBS="$LIBS"
4192 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4200 if { (eval echo configure:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4202 eval "ac_cv_lib_$ac_lib_var=yes"
4204 echo "configure: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4207 eval "ac_cv_lib_$ac_lib_var=no"
4210 LIBS="$ac_save_LIBS"
4213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4214 echo "$ac_t""yes" 1>&6
4215 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4217 cat >> confdefs.h <<EOF
4218 #define $ac_tr_lib 1
4224 echo "$ac_t""no" 1>&6
4227 echo $ac_n "checking for catgets""... $ac_c" 1>&6
4228 echo "configure:4229: checking for catgets" >&5
4229 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4232 cat > conftest.$ac_ext <<EOF
4233 #line 4234 "configure"
4234 #include "confdefs.h"
4235 /* System header to define __stub macros and hopefully few prototypes,
4236 which can conflict with char catgets(); below. */
4238 /* Override any gcc2 internal prototype to avoid an error. */
4239 /* We use char because int might match the return type of a gcc2
4240 builtin and then its argument prototype would still apply. */
4245 /* The GNU C library defines this for functions which it implements
4246 to always fail with ENOSYS. Some functions are actually named
4247 something starting with __ and the normal name is an alias. */
4248 #if defined (__stub_catgets) || defined (__stub___catgets)
4256 if { (eval echo configure:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4258 eval "ac_cv_func_catgets=yes"
4260 echo "configure: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4263 eval "ac_cv_func_catgets=no"
4268 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
4269 echo "$ac_t""yes" 1>&6
4270 cat >> confdefs.h <<\EOF
4271 #define HAVE_CATGETS 1
4274 INTLOBJS="\$(CATOBJS)"
4275 # Extract the first word of "gencat", so it can be a program name with args.
4276 set dummy gencat; ac_word=$2
4277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4278 echo "configure:4279: checking for $ac_word" >&5
4279 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4284 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
4287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4288 for ac_dir in $PATH; do
4289 test -z "$ac_dir" && ac_dir=.
4290 if test -f $ac_dir/$ac_word; then
4291 ac_cv_path_GENCAT="$ac_dir/$ac_word"
4296 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
4300 GENCAT="$ac_cv_path_GENCAT"
4301 if test -n "$GENCAT"; then
4302 echo "$ac_t""$GENCAT" 1>&6
4304 echo "$ac_t""no" 1>&6
4306 if test "$GENCAT" != "no"; then
4307 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4308 set dummy gmsgfmt; ac_word=$2
4309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4310 echo "configure:4311: checking for $ac_word" >&5
4311 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4316 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4320 for ac_dir in $PATH; do
4321 test -z "$ac_dir" && ac_dir=.
4322 if test -f $ac_dir/$ac_word; then
4323 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4328 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
4332 GMSGFMT="$ac_cv_path_GMSGFMT"
4333 if test -n "$GMSGFMT"; then
4334 echo "$ac_t""$GMSGFMT" 1>&6
4336 echo "$ac_t""no" 1>&6
4339 if test "$GMSGFMT" = "no"; then
4340 # Extract the first word of "msgfmt", so it can be a program name with args.
4341 set dummy msgfmt; ac_word=$2
4342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4343 echo "configure:4344: checking for $ac_word" >&5
4344 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4345 echo $ac_n "(cached) $ac_c" 1>&6
4349 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4353 for ac_dir in $PATH; do
4354 test -z "$ac_dir" && ac_dir=.
4355 if test -f $ac_dir/$ac_word; then
4356 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4357 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4363 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
4367 GMSGFMT="$ac_cv_path_GMSGFMT"
4368 if test -n "$GMSGFMT"; then
4369 echo "$ac_t""$GMSGFMT" 1>&6
4371 echo "$ac_t""no" 1>&6
4375 # Extract the first word of "xgettext", so it can be a program name with args.
4376 set dummy xgettext; ac_word=$2
4377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4378 echo "configure:4379: checking for $ac_word" >&5
4379 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4384 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4388 for ac_dir in $PATH; do
4389 test -z "$ac_dir" && ac_dir=.
4390 if test -f $ac_dir/$ac_word; then
4391 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4392 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4398 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4402 XGETTEXT="$ac_cv_path_XGETTEXT"
4403 if test -n "$XGETTEXT"; then
4404 echo "$ac_t""$XGETTEXT" 1>&6
4406 echo "$ac_t""no" 1>&6
4409 USE_INCLUDED_LIBINTL=yes
4413 INTLDEPS='$(top_builddir)/intl/libintl.a'
4415 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4416 nls_cv_header_intl=intl/libintl.h
4417 nls_cv_header_libgt=intl/libgettext.h
4420 echo "$ac_t""no" 1>&6
4426 if test "$CATOBJEXT" = "NONE"; then
4427 nls_cv_use_gnu_gettext=yes
4431 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4432 INTLOBJS="\$(GETTOBJS)"
4433 # Extract the first word of "msgfmt", so it can be a program name with args.
4434 set dummy msgfmt; ac_word=$2
4435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4436 echo "configure:4437: checking for $ac_word" >&5
4437 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4442 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4446 for ac_dir in $PATH; do
4447 test -z "$ac_dir" && ac_dir=.
4448 if test -f $ac_dir/$ac_word; then
4449 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4450 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4456 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4460 MSGFMT="$ac_cv_path_MSGFMT"
4461 if test -n "$MSGFMT"; then
4462 echo "$ac_t""$MSGFMT" 1>&6
4464 echo "$ac_t""no" 1>&6
4467 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4468 set dummy gmsgfmt; ac_word=$2
4469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4470 echo "configure:4471: checking for $ac_word" >&5
4471 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4472 echo $ac_n "(cached) $ac_c" 1>&6
4476 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4480 for ac_dir in $PATH; do
4481 test -z "$ac_dir" && ac_dir=.
4482 if test -f $ac_dir/$ac_word; then
4483 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4488 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4492 GMSGFMT="$ac_cv_path_GMSGFMT"
4493 if test -n "$GMSGFMT"; then
4494 echo "$ac_t""$GMSGFMT" 1>&6
4496 echo "$ac_t""no" 1>&6
4499 # Extract the first word of "xgettext", so it can be a program name with args.
4500 set dummy xgettext; ac_word=$2
4501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4502 echo "configure:4503: checking for $ac_word" >&5
4503 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4508 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4512 for ac_dir in $PATH; do
4513 test -z "$ac_dir" && ac_dir=.
4514 if test -f $ac_dir/$ac_word; then
4515 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4516 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4522 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4526 XGETTEXT="$ac_cv_path_XGETTEXT"
4527 if test -n "$XGETTEXT"; then
4528 echo "$ac_t""$XGETTEXT" 1>&6
4530 echo "$ac_t""no" 1>&6
4534 USE_INCLUDED_LIBINTL=yes
4538 INTLDEPS='$(top_builddir)/intl/libintl.a'
4540 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4541 nls_cv_header_intl=intl/libintl.h
4542 nls_cv_header_libgt=intl/libgettext.h
4545 if test "$XGETTEXT" != ":"; then
4546 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4549 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4554 # We need to process the po/ directory.
4558 nls_cv_header_intl=intl/libintl.h
4559 nls_cv_header_libgt=intl/libgettext.h
4562 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4563 # because some of the sources are only built for this goal.
4564 if test "$PACKAGE" = gettext; then
4566 USE_INCLUDED_LIBINTL=yes
4569 for lang in $ALL_LINGUAS; do
4570 GMOFILES="$GMOFILES $lang.gmo"
4571 POFILES="$POFILES $lang.po"
4587 if test "x$CATOBJEXT" != "x"; then
4588 if test "x$ALL_LINGUAS" = "x"; then
4591 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4592 echo "configure:4593: checking for catalogs to be installed" >&5
4594 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4595 case "$ALL_LINGUAS" in
4596 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4599 LINGUAS=$NEW_LINGUAS
4600 echo "$ac_t""$LINGUAS" 1>&6
4603 if test -n "$LINGUAS"; then
4604 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4608 if test $ac_cv_header_locale_h = yes; then
4609 INCLUDE_LOCALE_H="#include <locale.h>"
4612 /* The system does not provide the header <locale.h>. Take care yourself. */"
4616 test -d intl || mkdir intl
4617 if test "$CATOBJEXT" = ".cat"; then
4618 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4619 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4620 echo "configure:4621: checking for linux/version.h" >&5
4621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 cat > conftest.$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4627 #include <linux/version.h>
4629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4630 { (eval echo configure:4631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4631 ac_err=`grep -v '^ *+' conftest.out`
4632 if test -z "$ac_err"; then
4634 eval "ac_cv_header_$ac_safe=yes"
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4640 eval "ac_cv_header_$ac_safe=no"
4644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4648 echo "$ac_t""no" 1>&6
4653 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
4655 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4656 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
4658 if test "$PACKAGE" = "gettext"; then
4669 if test -n "$ac_aux_dir"; then
4670 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4672 if test -z "$MKINSTALLDIRS"; then
4673 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4680 test -d po || mkdir po
4681 if test "x$srcdir" != "x."; then
4682 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4683 posrcprefix="$srcdir/"
4685 posrcprefix="../$srcdir/"
4691 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4692 < $srcdir/po/POTFILES.in > po/POTFILES
4695 cat >> confdefs.h <<EOF
4696 #define LOCALEDIR "$prefix/$DATADIRNAME"
4702 cat > confcache <<\EOF
4703 # This file is a shell script that caches the results of configure
4704 # tests run on this system so they can be shared between configure
4705 # scripts and configure runs. It is not useful on other systems.
4706 # If it contains results you don't want to keep, you may remove or edit it.
4708 # By default, configure uses ./config.cache as the cache file,
4709 # creating it if it does not exist already. You can give configure
4710 # the --cache-file=FILE option to use a different cache file; that is
4711 # what configure does when it calls configure scripts in
4712 # subdirectories, so they share the cache.
4713 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4714 # config.status only pays attention to the cache file if you give it the
4715 # --recheck option to rerun configure.
4718 # The following way of writing the cache mishandles newlines in values,
4719 # but we know of no workaround that is simple, portable, and efficient.
4720 # So, don't put newlines in cache variables' values.
4721 # Ultrix sh set writes to stderr and can't be redirected directly,
4722 # and sets the high bit in the cache file unless we assign to the vars.
4724 case `(ac_space=' '; set) 2>&1` in
4726 # `set' does not quote correctly, so add quotes (double-quote substitution
4727 # turns \\\\ into \\, and sed turns \\ into \).
4729 -e "s/'/'\\\\''/g" \
4730 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4733 # `set' quotes correctly as required by POSIX, so do not add quotes.
4734 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4737 if cmp -s $cache_file confcache; then
4740 if test -w $cache_file; then
4741 echo "updating cache $cache_file"
4742 cat confcache > $cache_file
4744 echo "not updating unwritable cache $cache_file"
4749 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4752 # Let make expand exec_prefix.
4753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4755 # Any assignment to VPATH causes Sun make to only execute
4756 # the first set of double-colon rules, so remove it if not needed.
4757 # If there is a colon in the path, we need to keep it.
4758 if test "x$srcdir" = x.; then
4759 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4762 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4764 DEFS=-DHAVE_CONFIG_H
4766 # Without the "./", some shells look in PATH for config.status.
4767 : ${CONFIG_STATUS=./config.status}
4769 echo creating $CONFIG_STATUS
4770 rm -f $CONFIG_STATUS
4771 cat > $CONFIG_STATUS <<EOF
4773 # Generated automatically by configure.
4774 # Run this file to recreate the current configuration.
4775 # This directory was configured as follows,
4776 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4778 # $0 $ac_configure_args
4780 # Compiler output produced by configure, useful for debugging
4781 # configure, is in ./config.log if it exists.
4783 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4786 case "\$ac_option" in
4787 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4788 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4789 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4790 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4791 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4793 -help | --help | --hel | --he | --h)
4794 echo "\$ac_cs_usage"; exit 0 ;;
4795 *) echo "\$ac_cs_usage"; exit 1 ;;
4799 ac_given_srcdir=$srcdir
4800 ac_given_INSTALL="$INSTALL"
4802 trap 'rm -fr `echo "Makefile intl/Makefile lib/Makefile testsuite/Makefile \
4803 man/Makefile po/Makefile.in src/Makefile debian/rules Specfile systype \
4804 src/lrzszbug config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4806 cat >> $CONFIG_STATUS <<EOF
4808 # Protect against being on the right side of a sed subst in config.status.
4809 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4810 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4813 s%@CFLAGS@%$CFLAGS%g
4814 s%@CPPFLAGS@%$CPPFLAGS%g
4815 s%@CXXFLAGS@%$CXXFLAGS%g
4817 s%@LDFLAGS@%$LDFLAGS%g
4819 s%@exec_prefix@%$exec_prefix%g
4820 s%@prefix@%$prefix%g
4821 s%@program_transform_name@%$program_transform_name%g
4822 s%@bindir@%$bindir%g
4823 s%@sbindir@%$sbindir%g
4824 s%@libexecdir@%$libexecdir%g
4825 s%@datadir@%$datadir%g
4826 s%@sysconfdir@%$sysconfdir%g
4827 s%@sharedstatedir@%$sharedstatedir%g
4828 s%@localstatedir@%$localstatedir%g
4829 s%@libdir@%$libdir%g
4830 s%@includedir@%$includedir%g
4831 s%@oldincludedir@%$oldincludedir%g
4832 s%@infodir@%$infodir%g
4833 s%@mandir@%$mandir%g
4834 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4835 s%@INSTALL_DATA@%$INSTALL_DATA%g
4836 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4837 s%@PACKAGE@%$PACKAGE%g
4838 s%@VERSION@%$VERSION%g
4839 s%@ACLOCAL@%$ACLOCAL%g
4840 s%@AUTOCONF@%$AUTOCONF%g
4841 s%@AUTOMAKE@%$AUTOMAKE%g
4842 s%@AUTOHEADER@%$AUTOHEADER%g
4843 s%@MAKEINFO@%$MAKEINFO%g
4844 s%@SET_MAKE@%$SET_MAKE%g
4845 s%@PACKAGE_VERSION@%$PACKAGE_VERSION%g
4846 s%@ENABLE_TIMESYNC@%$ENABLE_TIMESYNC%g
4849 s%@RANLIB@%$RANLIB%g
4851 s%@ANSI2KNR@%$ANSI2KNR%g
4852 s%@ALLOCA@%$ALLOCA%g
4853 s%@LIBOBJS@%$LIBOBJS%g
4854 s%@USE_NLS@%$USE_NLS%g
4855 s%@MSGFMT@%$MSGFMT%g
4856 s%@GMSGFMT@%$GMSGFMT%g
4857 s%@XGETTEXT@%$XGETTEXT%g
4858 s%@GENCAT@%$GENCAT%g
4859 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4860 s%@CATALOGS@%$CATALOGS%g
4861 s%@CATOBJEXT@%$CATOBJEXT%g
4862 s%@DATADIRNAME@%$DATADIRNAME%g
4863 s%@GMOFILES@%$GMOFILES%g
4864 s%@INSTOBJEXT@%$INSTOBJEXT%g
4865 s%@INTLDEPS@%$INTLDEPS%g
4866 s%@INTLLIBS@%$INTLLIBS%g
4867 s%@INTLOBJS@%$INTLOBJS%g
4868 s%@POFILES@%$POFILES%g
4870 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4872 s%@GT_YES@%$GT_YES%g
4873 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4879 cat >> $CONFIG_STATUS <<\EOF
4881 # Split the substitutions into bite-sized pieces for seds with
4882 # small command number limits, like on Digital OSF/1 and HP-UX.
4883 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4884 ac_file=1 # Number of current file.
4885 ac_beg=1 # First line for current file.
4886 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4889 while $ac_more_lines; do
4890 if test $ac_beg -gt 1; then
4891 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4893 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4895 if test ! -s conftest.s$ac_file; then
4897 rm -f conftest.s$ac_file
4899 if test -z "$ac_sed_cmds"; then
4900 ac_sed_cmds="sed -f conftest.s$ac_file"
4902 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4904 ac_file=`expr $ac_file + 1`
4906 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4909 if test -z "$ac_sed_cmds"; then
4914 cat >> $CONFIG_STATUS <<EOF
4916 CONFIG_FILES=\${CONFIG_FILES-"Makefile intl/Makefile lib/Makefile testsuite/Makefile \
4917 man/Makefile po/Makefile.in src/Makefile debian/rules Specfile systype \
4920 cat >> $CONFIG_STATUS <<\EOF
4921 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4922 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4924 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4925 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4926 *) ac_file_in="${ac_file}.in" ;;
4929 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4931 # Remove last slash and all that follows it. Not all systems have dirname.
4932 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4933 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4934 # The file is in a subdirectory.
4935 test ! -d "$ac_dir" && mkdir "$ac_dir"
4936 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4937 # A "../" for each directory in $ac_dir_suffix.
4938 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4940 ac_dir_suffix= ac_dots=
4943 case "$ac_given_srcdir" in
4945 if test -z "$ac_dots"; then top_srcdir=.
4946 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4947 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4949 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4950 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4953 case "$ac_given_INSTALL" in
4954 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4955 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4958 echo creating "$ac_file"
4960 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4962 *Makefile*) ac_comsub="1i\\
4963 # $configure_input" ;;
4967 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4969 s%@configure_input@%$configure_input%g
4970 s%@srcdir@%$srcdir%g
4971 s%@top_srcdir@%$top_srcdir%g
4972 s%@INSTALL@%$INSTALL%g
4973 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4977 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4978 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4980 # ac_d sets the value in "#define NAME VALUE" lines.
4981 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4982 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4985 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4986 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4987 ac_uB='\([ ]\)%\1#\2define\3'
4990 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4991 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4992 ac_eB='$%\1#\2define\3'
4996 if test "${CONFIG_HEADERS+set}" != set; then
4998 cat >> $CONFIG_STATUS <<EOF
4999 CONFIG_HEADERS="config.h"
5001 cat >> $CONFIG_STATUS <<\EOF
5003 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5004 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5006 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5007 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5008 *) ac_file_in="${ac_file}.in" ;;
5011 echo creating $ac_file
5013 rm -f conftest.frag conftest.in conftest.out
5014 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5015 cat $ac_file_inputs > conftest.in
5019 # Transform confdefs.h into a sed script conftest.vals that substitutes
5020 # the proper values into config.h.in to produce config.h. And first:
5021 # Protect against being on the right side of a sed subst in config.status.
5022 # Protect against being in an unquoted here document in config.status.
5024 cat > conftest.hdr <<\EOF
5027 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5031 sed -n -f conftest.hdr confdefs.h > conftest.vals
5034 # This sed command replaces #undef with comments. This is necessary, for
5035 # example, in the case of _POSIX_SOURCE, which is predefined and required
5036 # on some systems where configure will not decide to define it.
5037 cat >> conftest.vals <<\EOF
5038 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5041 # Break up conftest.vals because some shells have a limit on
5042 # the size of here documents, and old seds have small limits too.
5047 ac_lines=`grep -c . conftest.vals`
5048 # grep -c gives empty output for an empty file on some AIX systems.
5049 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5050 # Write a limited-size here document to conftest.frag.
5051 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5052 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5054 sed -f conftest.frag conftest.in > conftest.out
5056 mv conftest.out conftest.in
5058 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5060 mv conftest.tail conftest.vals
5064 cat >> $CONFIG_STATUS <<\EOF
5065 rm -f conftest.frag conftest.h
5066 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5067 cat conftest.in >> conftest.h
5069 if cmp -s $ac_file conftest.h 2>/dev/null; then
5070 echo "$ac_file is unchanged"
5073 # Remove last slash and all that follows it. Not all systems have dirname.
5074 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5075 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5076 # The file is in a subdirectory.
5077 test ! -d "$ac_dir" && mkdir "$ac_dir"
5080 mv conftest.h $ac_file
5086 cat >> $CONFIG_STATUS <<EOF
5087 ac_sources="$nls_cv_header_libgt"
5088 ac_dests="$nls_cv_header_intl"
5091 cat >> $CONFIG_STATUS <<\EOF
5092 srcdir=$ac_given_srcdir
5093 while test -n "$ac_sources"; do
5094 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5095 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5097 echo "linking $srcdir/$ac_source to $ac_dest"
5099 if test ! -r $srcdir/$ac_source; then
5100 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5104 # Make relative symlinks.
5105 # Remove last slash and all that follows it. Not all systems have dirname.
5106 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5107 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5108 # The dest file is in a subdirectory.
5109 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5110 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5111 # A "../" for each directory in $ac_dest_dir_suffix.
5112 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5114 ac_dest_dir_suffix= ac_dots=
5118 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5119 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5122 # Make a symlink if possible; otherwise try a hard link.
5123 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5124 ln $srcdir/$ac_source $ac_dest; then :
5126 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5130 cat >> $CONFIG_STATUS <<EOF
5134 cat >> $CONFIG_STATUS <<\EOF
5135 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5136 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile;
5137 chmod +x debian/rules;
5138 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5141 chmod +x $CONFIG_STATUS
5142 rm -fr confdefs* $ac_clean_files
5143 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1