3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-curses=DIR Where ncurses is installed "
17 --enable-debug Enable debugging support "
19 --disable-nonascii Disable usage of non-ascii characters "
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file=./config.cache
34 program_transform_name=s,x,x,
42 bindir='${exec_prefix}/bin'
43 sbindir='${exec_prefix}/sbin'
44 libexecdir='${exec_prefix}/libexec'
45 datadir='${prefix}/share'
46 sysconfdir='${prefix}/etc'
47 sharedstatedir='${prefix}/com'
48 localstatedir='${prefix}/var'
49 libdir='${exec_prefix}/lib'
50 includedir='${prefix}/include'
51 oldincludedir='/usr/include'
52 infodir='${prefix}/info'
53 mandir='${prefix}/man'
55 # Initialize some other variables.
58 SHELL=${CONFIG_SHELL-/bin/sh}
59 # Maximum number of lines to put in a shell here document.
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
74 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 # Accept the important Cygnus configure options, so we can diagnose typos.
82 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85 bindir="$ac_optarg" ;;
87 -build | --build | --buil | --bui | --bu)
89 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92 -cache-file | --cache-file | --cache-fil | --cache-fi \
93 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97 cache_file="$ac_optarg" ;;
99 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 datadir="$ac_optarg" ;;
105 -disable-* | --disable-*)
106 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107 # Reject names that are not valid shell variable names.
108 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112 eval "enable_${ac_feature}=no" ;;
114 -enable-* | --enable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}='$ac_optarg'" ;;
127 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129 | --exec | --exe | --ex)
130 ac_prev=exec_prefix ;;
131 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133 | --exec=* | --exe=* | --ex=*)
134 exec_prefix="$ac_optarg" ;;
136 -gas | --gas | --ga | --g)
137 # Obsolete; use --with-gas.
140 -help | --help | --hel | --he)
141 # Omit some internal or obsolete options to make the list less imposing.
142 # This message is too long to be a string in the A/UX 3.1 sh.
144 Usage: configure [options] [host]
145 Options: [defaults in brackets after descriptions]
147 --cache-file=FILE cache test results in FILE
148 --help print this message
149 --no-create do not create output files
150 --quiet, --silent do not print \`checking...' messages
151 --version print the version of autoconf that created configure
152 Directory and file names:
153 --prefix=PREFIX install architecture-independent files in PREFIX
155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 --bindir=DIR user executables in DIR [EPREFIX/bin]
158 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160 --datadir=DIR read-only architecture-independent data in DIR
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
167 --includedir=DIR C header files in DIR [PREFIX/include]
168 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169 --infodir=DIR info documentation in DIR [PREFIX/info]
170 --mandir=DIR man documentation in DIR [PREFIX/man]
171 --srcdir=DIR find the sources in DIR [configure dir or ..]
172 --program-prefix=PREFIX prepend PREFIX to installed program names
173 --program-suffix=SUFFIX append SUFFIX to installed program names
174 --program-transform-name=PROGRAM
175 run sed PROGRAM on installed program names
179 --build=BUILD configure for building on BUILD [BUILD=HOST]
180 --host=HOST configure for HOST [guessed]
181 --target=TARGET configure for TARGET [TARGET=HOST]
182 Features and packages:
183 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187 --x-includes=DIR X include files are in DIR
188 --x-libraries=DIR X library files are in DIR
190 if test -n "$ac_help"; then
191 echo "--enable and --with options recognized:$ac_help"
195 -host | --host | --hos | --ho)
197 -host=* | --host=* | --hos=* | --ho=*)
200 -includedir | --includedir | --includedi | --included | --include \
201 | --includ | --inclu | --incl | --inc)
202 ac_prev=includedir ;;
203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204 | --includ=* | --inclu=* | --incl=* | --inc=*)
205 includedir="$ac_optarg" ;;
207 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210 infodir="$ac_optarg" ;;
212 -libdir | --libdir | --libdi | --libd)
214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
215 libdir="$ac_optarg" ;;
217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218 | --libexe | --libex | --libe)
219 ac_prev=libexecdir ;;
220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221 | --libexe=* | --libex=* | --libe=*)
222 libexecdir="$ac_optarg" ;;
224 -localstatedir | --localstatedir | --localstatedi | --localstated \
225 | --localstate | --localstat | --localsta | --localst \
226 | --locals | --local | --loca | --loc | --lo)
227 ac_prev=localstatedir ;;
228 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231 localstatedir="$ac_optarg" ;;
233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236 mandir="$ac_optarg" ;;
239 # Obsolete; use --without-fp.
242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252 | --oldin | --oldi | --old | --ol | --o)
253 ac_prev=oldincludedir ;;
254 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257 oldincludedir="$ac_optarg" ;;
259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262 prefix="$ac_optarg" ;;
264 -program-prefix | --program-prefix | --program-prefi | --program-pref \
265 | --program-pre | --program-pr | --program-p)
266 ac_prev=program_prefix ;;
267 -program-prefix=* | --program-prefix=* | --program-prefi=* \
268 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269 program_prefix="$ac_optarg" ;;
271 -program-suffix | --program-suffix | --program-suffi | --program-suff \
272 | --program-suf | --program-su | --program-s)
273 ac_prev=program_suffix ;;
274 -program-suffix=* | --program-suffix=* | --program-suffi=* \
275 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276 program_suffix="$ac_optarg" ;;
278 -program-transform-name | --program-transform-name \
279 | --program-transform-nam | --program-transform-na \
280 | --program-transform-n | --program-transform- \
281 | --program-transform | --program-transfor \
282 | --program-transfo | --program-transf \
283 | --program-trans | --program-tran \
284 | --progr-tra | --program-tr | --program-t)
285 ac_prev=program_transform_name ;;
286 -program-transform-name=* | --program-transform-name=* \
287 | --program-transform-nam=* | --program-transform-na=* \
288 | --program-transform-n=* | --program-transform-=* \
289 | --program-transform=* | --program-transfor=* \
290 | --program-transfo=* | --program-transf=* \
291 | --program-trans=* | --program-tran=* \
292 | --progr-tra=* | --program-tr=* | --program-t=*)
293 program_transform_name="$ac_optarg" ;;
295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296 | -silent | --silent | --silen | --sile | --sil)
299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 sbindir="$ac_optarg" ;;
305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307 | --sharedst | --shareds | --shared | --share | --shar \
309 ac_prev=sharedstatedir ;;
310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 sharedstatedir="$ac_optarg" ;;
316 -site | --site | --sit)
318 -site=* | --site=* | --sit=*)
321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324 srcdir="$ac_optarg" ;;
326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327 | --syscon | --sysco | --sysc | --sys | --sy)
328 ac_prev=sysconfdir ;;
329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331 sysconfdir="$ac_optarg" ;;
333 -target | --target | --targe | --targ | --tar | --ta | --t)
335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336 target="$ac_optarg" ;;
338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
341 -version | --version | --versio | --versi | --vers)
342 echo "configure generated by autoconf version 2.13"
346 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347 # Reject names that are not valid shell variable names.
348 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 ac_package=`echo $ac_package| sed 's/-/_/g'`
356 eval "with_${ac_package}='$ac_optarg'" ;;
358 -without-* | --without-*)
359 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}=no" ;;
368 # Obsolete; use --with-x.
371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372 | --x-incl | --x-inc | --x-in | --x-i)
373 ac_prev=x_includes ;;
374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376 x_includes="$ac_optarg" ;;
378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380 ac_prev=x_libraries ;;
381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383 x_libraries="$ac_optarg" ;;
385 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 if test "x$nonopt" != xNONE; then
393 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 if test -n "$ac_prev"; then
402 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407 # File descriptor usage:
410 # 2 errors and warnings
411 # 3 some systems may open it to /dev/tty
412 # 4 used on the Kubota Titan
413 # 6 checking for... messages and results
414 # 5 compiler messages saved in config.log
415 if test "$silent" = yes; then
423 This file contains any messages produced by compilers while
424 running configure, to aid debugging if configure makes a mistake.
427 # Strip out --no-create and --no-recursion so they do not pile up.
428 # Also quote any args containing shell metacharacters.
433 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434 | --no-cr | --no-c) ;;
435 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444 # Only set these to C if already set. These must not be set unconditionally
445 # because not all systems understand e.g. LANG=C (notably SCO).
446 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447 # Non-C LC_CTYPE values break the ctype check.
448 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
449 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
454 rm -rf conftest* confdefs.h
455 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
458 # A filename unique to this package, relative to the directory that
459 # configure is in, which we can look for to find out if srcdir is correct.
460 ac_unique_file=abook.c
462 # Find the source files, if location was not specified.
463 if test -z "$srcdir"; then
464 ac_srcdir_defaulted=yes
465 # Try the directory containing this script, then its parent.
467 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 if test ! -r $srcdir/$ac_unique_file; then
474 ac_srcdir_defaulted=no
476 if test ! -r $srcdir/$ac_unique_file; then
477 if test "$ac_srcdir_defaulted" = yes; then
478 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485 # Prefer explicitly selected file to automatically selected ones.
486 if test -z "$CONFIG_SITE"; then
487 if test "x$prefix" != xNONE; then
488 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493 for ac_site_file in $CONFIG_SITE; do
494 if test -r "$ac_site_file"; then
495 echo "loading site script $ac_site_file"
500 if test -r "$cache_file"; then
501 echo "loading cache $cache_file"
504 echo "creating cache $cache_file"
509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510 ac_cpp='$CPP $CPPFLAGS'
511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513 cross_compiling=$ac_cv_prog_cc_cross
517 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526 ac_n= ac_c='\c' ac_t=
531 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
532 if test -f $ac_dir/install-sh; then
534 ac_install_sh="$ac_aux_dir/install-sh -c"
536 elif test -f $ac_dir/install.sh; then
538 ac_install_sh="$ac_aux_dir/install.sh -c"
542 if test -z "$ac_aux_dir"; then
543 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
545 ac_config_guess=$ac_aux_dir/config.guess
546 ac_config_sub=$ac_aux_dir/config.sub
547 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
549 # Find a good install program. We prefer a C program (faster),
550 # so one script is as good as another. But avoid the broken or
551 # incompatible versions:
552 # SysV /etc/install, /usr/sbin/install
553 # SunOS /usr/etc/install
556 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
557 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
558 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
559 # ./install, which can be erroneously created by make from ./install.sh.
560 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
561 echo "configure:562: checking for a BSD compatible install" >&5
562 if test -z "$INSTALL"; then
563 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
566 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
567 for ac_dir in $PATH; do
568 # Account for people who put trailing slashes in PATH elements.
570 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
572 # OSF1 and SCO ODT 3.0 have their own names for install.
573 # Don't use installbsd from OSF since it installs stuff as root
575 for ac_prog in ginstall scoinst install; do
576 if test -f $ac_dir/$ac_prog; then
577 if test $ac_prog = install &&
578 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
579 # AIX install. It has an incompatible calling convention.
582 ac_cv_path_install="$ac_dir/$ac_prog -c"
593 if test "${ac_cv_path_install+set}" = set; then
594 INSTALL="$ac_cv_path_install"
596 # As a last resort, use the slow shell script. We don't cache a
597 # path for INSTALL within a source directory, because that will
598 # break other packages using the cache if that directory is
599 # removed, or if the path is relative.
600 INSTALL="$ac_install_sh"
603 echo "$ac_t""$INSTALL" 1>&6
605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
606 # It thinks the first close brace ends the variable substitution.
607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
609 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
611 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
613 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
614 echo "configure:615: checking whether build environment is sane" >&5
617 echo timestamp > conftestfile
618 # Do `set' in a subshell so we don't clobber the current shell's
619 # arguments. Must try -L first in case configure is actually a
620 # symlink; some systems play weird games with the mod time of symlinks
621 # (eg FreeBSD returns the mod time of the symlink's containing
624 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
625 if test "$*" = "X"; then
627 set X `ls -t $srcdir/configure conftestfile`
629 if test "$*" != "X $srcdir/configure conftestfile" \
630 && test "$*" != "X conftestfile $srcdir/configure"; then
632 # If neither matched, then we have a broken ls. This can happen
633 # if, for instance, CONFIG_SHELL is bash and it inherits a
634 # broken ls alias from the environment. This has actually
635 # happened. Such a system could not be considered "sane".
636 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
637 alias in your environment" 1>&2; exit 1; }
640 test "$2" = conftestfile
646 { echo "configure: error: newly created file is older than distributed files!
647 Check your system clock" 1>&2; exit 1; }
650 echo "$ac_t""yes" 1>&6
651 if test "$program_transform_name" = s,x,x,; then
652 program_transform_name=
654 # Double any \ or $. echo might interpret backslashes.
655 cat <<\EOF_SED > conftestsed
656 s,\\,\\\\,g; s,\$,$$,g
658 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
661 test "$program_prefix" != NONE &&
662 program_transform_name="s,^,${program_prefix},; $program_transform_name"
663 # Use a double $ so make ignores it.
664 test "$program_suffix" != NONE &&
665 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
667 # sed with no file args requires a program.
668 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
670 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
671 echo "configure:672: checking whether ${MAKE-make} sets \${MAKE}" >&5
672 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
673 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
676 cat > conftestmake <<\EOF
678 @echo 'ac_maketemp="${MAKE}"'
680 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
681 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
682 if test -n "$ac_maketemp"; then
683 eval ac_cv_prog_make_${ac_make}_set=yes
685 eval ac_cv_prog_make_${ac_make}_set=no
689 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
690 echo "$ac_t""yes" 1>&6
693 echo "$ac_t""no" 1>&6
694 SET_MAKE="MAKE=${MAKE-make}"
702 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
703 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
705 cat >> confdefs.h <<EOF
706 #define PACKAGE "$PACKAGE"
709 cat >> confdefs.h <<EOF
710 #define VERSION "$VERSION"
715 missing_dir=`cd $ac_aux_dir && pwd`
716 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
717 echo "configure:718: checking for working aclocal" >&5
718 # Run test in a subshell; some versions of sh will print an error if
719 # an executable is not found, even if stderr is redirected.
720 # Redirect stdin to placate older versions of autoconf. Sigh.
721 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
723 echo "$ac_t""found" 1>&6
725 ACLOCAL="$missing_dir/missing aclocal"
726 echo "$ac_t""missing" 1>&6
729 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
730 echo "configure:731: checking for working autoconf" >&5
731 # Run test in a subshell; some versions of sh will print an error if
732 # an executable is not found, even if stderr is redirected.
733 # Redirect stdin to placate older versions of autoconf. Sigh.
734 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
736 echo "$ac_t""found" 1>&6
738 AUTOCONF="$missing_dir/missing autoconf"
739 echo "$ac_t""missing" 1>&6
742 echo $ac_n "checking for working automake""... $ac_c" 1>&6
743 echo "configure:744: checking for working automake" >&5
744 # Run test in a subshell; some versions of sh will print an error if
745 # an executable is not found, even if stderr is redirected.
746 # Redirect stdin to placate older versions of autoconf. Sigh.
747 if (automake --version) < /dev/null > /dev/null 2>&1; then
749 echo "$ac_t""found" 1>&6
751 AUTOMAKE="$missing_dir/missing automake"
752 echo "$ac_t""missing" 1>&6
755 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
756 echo "configure:757: checking for working autoheader" >&5
757 # Run test in a subshell; some versions of sh will print an error if
758 # an executable is not found, even if stderr is redirected.
759 # Redirect stdin to placate older versions of autoconf. Sigh.
760 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
761 AUTOHEADER=autoheader
762 echo "$ac_t""found" 1>&6
764 AUTOHEADER="$missing_dir/missing autoheader"
765 echo "$ac_t""missing" 1>&6
768 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
769 echo "configure:770: checking for working makeinfo" >&5
770 # Run test in a subshell; some versions of sh will print an error if
771 # an executable is not found, even if stderr is redirected.
772 # Redirect stdin to placate older versions of autoconf. Sigh.
773 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
775 echo "$ac_t""found" 1>&6
777 MAKEINFO="$missing_dir/missing makeinfo"
778 echo "$ac_t""missing" 1>&6
787 # Make sure we can run config.sub.
788 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
789 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
792 echo $ac_n "checking host system type""... $ac_c" 1>&6
793 echo "configure:794: checking host system type" >&5
796 case "$host_alias" in
800 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
801 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
803 *) host_alias=$nonopt ;;
807 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
808 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
809 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
810 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
811 echo "$ac_t""$host" 1>&6
814 # Extract the first word of "gcc", so it can be a program name with args.
815 set dummy gcc; ac_word=$2
816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
817 echo "configure:818: checking for $ac_word" >&5
818 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
821 if test -n "$CC"; then
822 ac_cv_prog_CC="$CC" # Let the user override the test.
824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
826 for ac_dir in $ac_dummy; do
827 test -z "$ac_dir" && ac_dir=.
828 if test -f $ac_dir/$ac_word; then
837 if test -n "$CC"; then
838 echo "$ac_t""$CC" 1>&6
840 echo "$ac_t""no" 1>&6
843 if test -z "$CC"; then
844 # Extract the first word of "cc", so it can be a program name with args.
845 set dummy cc; ac_word=$2
846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
847 echo "configure:848: checking for $ac_word" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 if test -n "$CC"; then
852 ac_cv_prog_CC="$CC" # Let the user override the test.
854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
869 if test $ac_prog_rejected = yes; then
870 # We found a bogon in the path, so make sure we never use it.
871 set dummy $ac_cv_prog_CC
873 if test $# -gt 0; then
874 # We chose a different compiler from the bogus one.
875 # However, it has the same basename, so the bogon will be chosen
876 # first if we set CC to just the basename; use the full file name.
878 set dummy "$ac_dir/$ac_word" "$@"
886 if test -n "$CC"; then
887 echo "$ac_t""$CC" 1>&6
889 echo "$ac_t""no" 1>&6
892 if test -z "$CC"; then
895 # Extract the first word of "cl", so it can be a program name with args.
896 set dummy cl; ac_word=$2
897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
898 echo "configure:899: checking for $ac_word" >&5
899 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
902 if test -n "$CC"; then
903 ac_cv_prog_CC="$CC" # Let the user override the test.
905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
907 for ac_dir in $ac_dummy; do
908 test -z "$ac_dir" && ac_dir=.
909 if test -f $ac_dir/$ac_word; then
918 if test -n "$CC"; then
919 echo "$ac_t""$CC" 1>&6
921 echo "$ac_t""no" 1>&6
926 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
929 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
930 echo "configure:931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
933 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
934 ac_cpp='$CPP $CPPFLAGS'
935 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
936 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
937 cross_compiling=$ac_cv_prog_cc_cross
939 cat > conftest.$ac_ext << EOF
941 #line 942 "configure"
942 #include "confdefs.h"
946 if { (eval echo configure:947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
947 ac_cv_prog_cc_works=yes
948 # If we can't run a trivial program, we are probably using a cross compiler.
949 if (./conftest; exit) 2>/dev/null; then
950 ac_cv_prog_cc_cross=no
952 ac_cv_prog_cc_cross=yes
955 echo "configure: failed program was:" >&5
956 cat conftest.$ac_ext >&5
957 ac_cv_prog_cc_works=no
961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
962 ac_cpp='$CPP $CPPFLAGS'
963 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
964 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
965 cross_compiling=$ac_cv_prog_cc_cross
967 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
968 if test $ac_cv_prog_cc_works = no; then
969 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
971 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
972 echo "configure:973: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
973 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
974 cross_compiling=$ac_cv_prog_cc_cross
976 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
977 echo "configure:978: checking whether we are using GNU C" >&5
978 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
981 cat > conftest.c <<EOF
986 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
993 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
995 if test $ac_cv_prog_gcc = yes; then
1001 ac_test_CFLAGS="${CFLAGS+set}"
1002 ac_save_CFLAGS="$CFLAGS"
1004 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1005 echo "configure:1006: checking whether ${CC-cc} accepts -g" >&5
1006 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1009 echo 'void f(){}' > conftest.c
1010 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1019 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1020 if test "$ac_test_CFLAGS" = set; then
1021 CFLAGS="$ac_save_CFLAGS"
1022 elif test $ac_cv_prog_cc_g = yes; then
1023 if test "$GCC" = yes; then
1029 if test "$GCC" = yes; then
1036 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1037 echo "configure:1038: checking for POSIXized ISC" >&5
1038 if test -d /etc/conf/kconfig.d &&
1039 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1041 echo "$ac_t""yes" 1>&6
1042 ISC=yes # If later tests want to check for ISC.
1043 cat >> confdefs.h <<\EOF
1044 #define _POSIX_SOURCE 1
1047 if test "$GCC" = yes; then
1053 echo "$ac_t""no" 1>&6
1060 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1061 echo "configure:1062: checking for ${CC-cc} option to accept ANSI C" >&5
1062 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 am_cv_prog_cc_stdc=no
1067 # Don't try gcc -ansi; that turns off useful extensions and
1068 # breaks some systems' header files.
1069 # AIX -qlanglvl=ansi
1070 # Ultrix and OSF/1 -std1
1071 # HP-UX -Aa -D_HPUX_SOURCE
1072 # SVR4 -Xc -D__EXTENSIONS__
1073 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1075 CC="$ac_save_CC $ac_arg"
1076 cat > conftest.$ac_ext <<EOF
1077 #line 1078 "configure"
1078 #include "confdefs.h"
1081 #include <sys/types.h>
1082 #include <sys/stat.h>
1083 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1084 struct buf { int x; };
1085 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1086 static char *e (p, i)
1092 static char *f (char * (*g) (char **, int), char **p, ...)
1097 s = g (p, va_arg (v,int));
1101 int test (int i, double x);
1102 struct s1 {int (*f) (int a);};
1103 struct s2 {int (*f) (double a);};
1104 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1110 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1114 if { (eval echo configure:1115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1116 am_cv_prog_cc_stdc="$ac_arg"; break
1118 echo "configure: failed program was:" >&5
1119 cat conftest.$ac_ext >&5
1127 if test -z "$am_cv_prog_cc_stdc"; then
1128 echo "$ac_t""none needed" 1>&6
1130 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1132 case "x$am_cv_prog_cc_stdc" in
1134 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1137 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1138 echo "configure:1139: checking how to run the C preprocessor" >&5
1139 # On Suns, sometimes $CPP names a directory.
1140 if test -n "$CPP" && test -d "$CPP"; then
1143 if test -z "$CPP"; then
1144 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 # This must be in double quotes, not single quotes, because CPP may get
1148 # substituted into the Makefile and "${CC-cc}" will confuse make.
1150 # On the NeXT, cc -E runs the code through the compiler's parser,
1151 # not just through cpp.
1152 cat > conftest.$ac_ext <<EOF
1153 #line 1154 "configure"
1154 #include "confdefs.h"
1158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1159 { (eval echo configure:1160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1161 if test -z "$ac_err"; then
1165 echo "configure: failed program was:" >&5
1166 cat conftest.$ac_ext >&5
1168 CPP="${CC-cc} -E -traditional-cpp"
1169 cat > conftest.$ac_ext <<EOF
1170 #line 1171 "configure"
1171 #include "confdefs.h"
1175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1176 { (eval echo configure:1177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1178 if test -z "$ac_err"; then
1182 echo "configure: failed program was:" >&5
1183 cat conftest.$ac_ext >&5
1185 CPP="${CC-cc} -nologo -E"
1186 cat > conftest.$ac_ext <<EOF
1187 #line 1188 "configure"
1188 #include "confdefs.h"
1192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1193 { (eval echo configure:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1195 if test -z "$ac_err"; then
1199 echo "configure: failed program was:" >&5
1200 cat conftest.$ac_ext >&5
1209 ac_cv_prog_CPP="$CPP"
1211 CPP="$ac_cv_prog_CPP"
1213 ac_cv_prog_CPP="$CPP"
1215 echo "$ac_t""$CPP" 1>&6
1219 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1220 echo "configure:1221: checking for function prototypes" >&5
1221 if test "$am_cv_prog_cc_stdc" != no; then
1222 echo "$ac_t""yes" 1>&6
1223 cat >> confdefs.h <<\EOF
1224 #define PROTOTYPES 1
1229 echo "$ac_t""no" 1>&6
1230 U=_ ANSI2KNR=./ansi2knr
1231 # Ensure some checks needed by ansi2knr itself.
1232 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1233 echo "configure:1234: checking for ANSI C header files" >&5
1234 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 cat > conftest.$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1246 { (eval echo configure:1247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1248 if test -z "$ac_err"; then
1250 ac_cv_header_stdc=yes
1253 echo "configure: failed program was:" >&5
1254 cat conftest.$ac_ext >&5
1256 ac_cv_header_stdc=no
1260 if test $ac_cv_header_stdc = yes; then
1261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1268 egrep "memchr" >/dev/null 2>&1; then
1272 ac_cv_header_stdc=no
1278 if test $ac_cv_header_stdc = yes; then
1279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1280 cat > conftest.$ac_ext <<EOF
1281 #line 1282 "configure"
1282 #include "confdefs.h"
1285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1286 egrep "free" >/dev/null 2>&1; then
1290 ac_cv_header_stdc=no
1296 if test $ac_cv_header_stdc = yes; then
1297 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1298 if test "$cross_compiling" = yes; then
1301 cat > conftest.$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1305 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1306 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1308 int main () { int i; for (i = 0; i < 256; i++)
1309 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1313 if { (eval echo configure:1314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1317 echo "configure: failed program was:" >&5
1318 cat conftest.$ac_ext >&5
1320 ac_cv_header_stdc=no
1328 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1329 if test $ac_cv_header_stdc = yes; then
1330 cat >> confdefs.h <<\EOF
1331 #define STDC_HEADERS 1
1336 for ac_hdr in string.h
1338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1340 echo "configure:1341: checking for $ac_hdr" >&5
1341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1342 echo $ac_n "(cached) $ac_c" 1>&6
1344 cat > conftest.$ac_ext <<EOF
1345 #line 1346 "configure"
1346 #include "confdefs.h"
1349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1350 { (eval echo configure:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1352 if test -z "$ac_err"; then
1354 eval "ac_cv_header_$ac_safe=yes"
1357 echo "configure: failed program was:" >&5
1358 cat conftest.$ac_ext >&5
1360 eval "ac_cv_header_$ac_safe=no"
1364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1365 echo "$ac_t""yes" 1>&6
1366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1367 cat >> confdefs.h <<EOF
1368 #define $ac_tr_hdr 1
1372 echo "$ac_t""no" 1>&6
1378 if test "x$U" != "x"; then
1379 { echo "configure: error: Compiler not ANSI compliant" 1>&2; exit 1; }
1381 echo $ac_n "checking for inline""... $ac_c" 1>&6
1382 echo "configure:1383: checking for inline" >&5
1383 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1387 for ac_kw in inline __inline__ __inline; do
1388 cat > conftest.$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1393 } int $ac_kw foo() {
1396 if { (eval echo configure:1397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1398 ac_cv_c_inline=$ac_kw; break
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1408 echo "$ac_t""$ac_cv_c_inline" 1>&6
1409 case "$ac_cv_c_inline" in
1411 no) cat >> confdefs.h <<\EOF
1415 *) cat >> confdefs.h <<EOF
1416 #define inline $ac_cv_c_inline
1421 # Find a good install program. We prefer a C program (faster),
1422 # so one script is as good as another. But avoid the broken or
1423 # incompatible versions:
1424 # SysV /etc/install, /usr/sbin/install
1425 # SunOS /usr/etc/install
1426 # IRIX /sbin/install
1428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1431 # ./install, which can be erroneously created by make from ./install.sh.
1432 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1433 echo "configure:1434: checking for a BSD compatible install" >&5
1434 if test -z "$INSTALL"; then
1435 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1439 for ac_dir in $PATH; do
1440 # Account for people who put trailing slashes in PATH elements.
1442 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1444 # OSF1 and SCO ODT 3.0 have their own names for install.
1445 # Don't use installbsd from OSF since it installs stuff as root
1447 for ac_prog in ginstall scoinst install; do
1448 if test -f $ac_dir/$ac_prog; then
1449 if test $ac_prog = install &&
1450 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1451 # AIX install. It has an incompatible calling convention.
1454 ac_cv_path_install="$ac_dir/$ac_prog -c"
1465 if test "${ac_cv_path_install+set}" = set; then
1466 INSTALL="$ac_cv_path_install"
1468 # As a last resort, use the slow shell script. We don't cache a
1469 # path for INSTALL within a source directory, because that will
1470 # break other packages using the cache if that directory is
1471 # removed, or if the path is relative.
1472 INSTALL="$ac_install_sh"
1475 echo "$ac_t""$INSTALL" 1>&6
1477 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1478 # It thinks the first close brace ends the variable substitution.
1479 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1481 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1483 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1485 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1486 echo "configure:1487: checking for ANSI C header files" >&5
1487 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1488 echo $ac_n "(cached) $ac_c" 1>&6
1490 cat > conftest.$ac_ext <<EOF
1491 #line 1492 "configure"
1492 #include "confdefs.h"
1498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1499 { (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1501 if test -z "$ac_err"; then
1503 ac_cv_header_stdc=yes
1506 echo "configure: failed program was:" >&5
1507 cat conftest.$ac_ext >&5
1509 ac_cv_header_stdc=no
1513 if test $ac_cv_header_stdc = yes; then
1514 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1515 cat > conftest.$ac_ext <<EOF
1516 #line 1517 "configure"
1517 #include "confdefs.h"
1520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1521 egrep "memchr" >/dev/null 2>&1; then
1525 ac_cv_header_stdc=no
1531 if test $ac_cv_header_stdc = yes; then
1532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1533 cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1539 egrep "free" >/dev/null 2>&1; then
1543 ac_cv_header_stdc=no
1549 if test $ac_cv_header_stdc = yes; then
1550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1551 if test "$cross_compiling" = yes; then
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1558 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1559 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1561 int main () { int i; for (i = 0; i < 256; i++)
1562 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1566 if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1570 echo "configure: failed program was:" >&5
1571 cat conftest.$ac_ext >&5
1573 ac_cv_header_stdc=no
1581 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1582 if test $ac_cv_header_stdc = yes; then
1583 cat >> confdefs.h <<\EOF
1584 #define STDC_HEADERS 1
1589 for ac_hdr in unistd.h locale.h termios.h linux/termios.h sys/ioctl.h
1591 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1592 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1593 echo "configure:1594: checking for $ac_hdr" >&5
1594 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 cat > conftest.$ac_ext <<EOF
1598 #line 1599 "configure"
1599 #include "confdefs.h"
1602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1603 { (eval echo configure:1604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1605 if test -z "$ac_err"; then
1607 eval "ac_cv_header_$ac_safe=yes"
1610 echo "configure: failed program was:" >&5
1611 cat conftest.$ac_ext >&5
1613 eval "ac_cv_header_$ac_safe=no"
1617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1618 echo "$ac_t""yes" 1>&6
1619 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1620 cat >> confdefs.h <<EOF
1621 #define $ac_tr_hdr 1
1625 echo "$ac_t""no" 1>&6
1629 ac_safe=`echo "stdarg.h" | sed 'y%./+-%__p_%'`
1630 echo $ac_n "checking for stdarg.h""... $ac_c" 1>&6
1631 echo "configure:1632: checking for stdarg.h" >&5
1632 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 cat > conftest.$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1641 { (eval echo configure:1642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1643 if test -z "$ac_err"; then
1645 eval "ac_cv_header_$ac_safe=yes"
1648 echo "configure: failed program was:" >&5
1649 cat conftest.$ac_ext >&5
1651 eval "ac_cv_header_$ac_safe=no"
1655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1656 echo "$ac_t""yes" 1>&6
1657 cat >> confdefs.h <<\EOF
1658 #define HAVE_STDARG_H 1
1662 echo "$ac_t""no" 1>&6
1663 { echo "configure: error: *** stdarg.h is missing on your system ***" 1>&2; exit 1; }
1666 for ac_func in setlocale
1668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1669 echo "configure:1670: checking for $ac_func" >&5
1670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 cat > conftest.$ac_ext <<EOF
1674 #line 1675 "configure"
1675 #include "confdefs.h"
1676 /* System header to define __stub macros and hopefully few prototypes,
1677 which can conflict with char $ac_func(); below. */
1679 /* Override any gcc2 internal prototype to avoid an error. */
1680 /* We use char because int might match the return type of a gcc2
1681 builtin and then its argument prototype would still apply. */
1686 /* The GNU C library defines this for functions which it implements
1687 to always fail with ENOSYS. Some functions are actually named
1688 something starting with __ and the normal name is an alias. */
1689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1697 if { (eval echo configure:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1699 eval "ac_cv_func_$ac_func=yes"
1701 echo "configure: failed program was:" >&5
1702 cat conftest.$ac_ext >&5
1704 eval "ac_cv_func_$ac_func=no"
1709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1710 echo "$ac_t""yes" 1>&6
1711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1712 cat >> confdefs.h <<EOF
1713 #define $ac_tr_func 1
1717 echo "$ac_t""no" 1>&6
1723 abook_cv_curses=/usr
1724 # Check whether --with-curses or --without-curses was given.
1725 if test "${with_curses+set}" = set; then
1726 withval="$with_curses"
1727 if test $withval != yes; then
1728 abook_cv_curses=$withval
1730 if test x$abook_cv_curses != x/usr; then
1731 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
1732 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
1737 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
1738 echo "configure:1739: checking for initscr in -lncurses" >&5
1739 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
1740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1743 ac_save_LIBS="$LIBS"
1744 LIBS="-lncurses $LIBS"
1745 cat > conftest.$ac_ext <<EOF
1746 #line 1747 "configure"
1747 #include "confdefs.h"
1748 /* Override any gcc2 internal prototype to avoid an error. */
1749 /* We use char because int might match the return type of a gcc2
1750 builtin and then its argument prototype would still apply. */
1757 if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1759 eval "ac_cv_lib_$ac_lib_var=yes"
1761 echo "configure: failed program was:" >&5
1762 cat conftest.$ac_ext >&5
1764 eval "ac_cv_lib_$ac_lib_var=no"
1767 LIBS="$ac_save_LIBS"
1770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1771 echo "$ac_t""yes" 1>&6
1772 LIBS="$LIBS -lncurses"
1773 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
1774 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
1776 for ac_hdr in ncurses.h
1778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1780 echo "configure:1781: checking for $ac_hdr" >&5
1781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 cat > conftest.$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1790 { (eval echo configure:1791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1792 if test -z "$ac_err"; then
1794 eval "ac_cv_header_$ac_safe=yes"
1797 echo "configure: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1800 eval "ac_cv_header_$ac_safe=no"
1804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1805 echo "$ac_t""yes" 1>&6
1806 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1807 cat >> confdefs.h <<EOF
1808 #define $ac_tr_hdr 1
1812 echo "$ac_t""no" 1>&6
1817 echo "$ac_t""no" 1>&6
1819 echo $ac_n "checking for initscr""... $ac_c" 1>&6
1820 echo "configure:1821: checking for initscr" >&5
1821 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1824 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1827 /* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char initscr(); below. */
1830 /* Override any gcc2 internal prototype to avoid an error. */
1831 /* We use char because int might match the return type of a gcc2
1832 builtin and then its argument prototype would still apply. */
1837 /* The GNU C library defines this for functions which it implements
1838 to always fail with ENOSYS. Some functions are actually named
1839 something starting with __ and the normal name is an alias. */
1840 #if defined (__stub_initscr) || defined (__stub___initscr)
1848 if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1850 eval "ac_cv_func_initscr=yes"
1852 echo "configure: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1855 eval "ac_cv_func_initscr=no"
1860 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
1861 echo "$ac_t""yes" 1>&6
1864 echo "$ac_t""no" 1>&6
1866 case $host_os in #(vi
1868 echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
1869 echo "configure:1870: checking for tgoto in -lmytinfo" >&5
1870 ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
1871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1874 ac_save_LIBS="$LIBS"
1875 LIBS="-lmytinfo $LIBS"
1876 cat > conftest.$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1879 /* Override any gcc2 internal prototype to avoid an error. */
1880 /* We use char because int might match the return type of a gcc2
1881 builtin and then its argument prototype would still apply. */
1888 if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1890 eval "ac_cv_lib_$ac_lib_var=yes"
1892 echo "configure: failed program was:" >&5
1893 cat conftest.$ac_ext >&5
1895 eval "ac_cv_lib_$ac_lib_var=no"
1898 LIBS="$ac_save_LIBS"
1901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1902 echo "$ac_t""yes" 1>&6
1903 LIBS="-lmytinfo $LIBS"
1905 echo "$ac_t""no" 1>&6
1910 echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
1911 echo "configure:1912: checking for initscr in -lcur_colr" >&5
1912 ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'`
1913 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 ac_save_LIBS="$LIBS"
1917 LIBS="-lcur_colr $LIBS"
1918 cat > conftest.$ac_ext <<EOF
1919 #line 1920 "configure"
1920 #include "confdefs.h"
1921 /* Override any gcc2 internal prototype to avoid an error. */
1922 /* We use char because int might match the return type of a gcc2
1923 builtin and then its argument prototype would still apply. */
1930 if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1932 eval "ac_cv_lib_$ac_lib_var=yes"
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1937 eval "ac_cv_lib_$ac_lib_var=no"
1940 LIBS="$ac_save_LIBS"
1943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1944 echo "$ac_t""yes" 1>&6
1946 LIBS="-lcur_colr $LIBS"
1947 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
1948 ac_cv_func_initscr=yes
1951 echo "$ac_t""no" 1>&6
1953 echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
1954 echo "configure:1955: checking for initscr in -lHcurses" >&5
1955 ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'`
1956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 ac_save_LIBS="$LIBS"
1960 LIBS="-lHcurses $LIBS"
1961 cat > conftest.$ac_ext <<EOF
1962 #line 1963 "configure"
1963 #include "confdefs.h"
1964 /* Override any gcc2 internal prototype to avoid an error. */
1965 /* We use char because int might match the return type of a gcc2
1966 builtin and then its argument prototype would still apply. */
1973 if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1975 eval "ac_cv_lib_$ac_lib_var=yes"
1977 echo "configure: failed program was:" >&5
1978 cat conftest.$ac_ext >&5
1980 eval "ac_cv_lib_$ac_lib_var=no"
1983 LIBS="$ac_save_LIBS"
1986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1987 echo "$ac_t""yes" 1>&6
1989 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
1990 LIBS="-lHcurses $LIBS"
1991 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
1992 ac_cv_func_initscr=yes
1995 echo "$ac_t""no" 1>&6
2001 linux*) # Suse Linux does not follow /usr/lib convention
2006 if test ".$With5lib" != ".no" ; then
2007 if test -d /usr/5lib ; then
2009 CPPFLAGS="$CPPFLAGS -I/usr/5include"
2010 LIBS="$LIBS -L/usr/5lib"
2014 if test ".$ac_cv_func_initscr" != .yes ; then
2015 cf_save_LIBS="$LIBS"
2019 # Check for library containing tgoto. Do this before curses library
2020 # because it may be needed to link the test-case for initscr.
2021 echo $ac_n "checking for tgoto""... $ac_c" 1>&6
2022 echo "configure:2023: checking for tgoto" >&5
2023 if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 /* System header to define __stub macros and hopefully few prototypes,
2030 which can conflict with char tgoto(); below. */
2032 /* Override any gcc2 internal prototype to avoid an error. */
2033 /* We use char because int might match the return type of a gcc2
2034 builtin and then its argument prototype would still apply. */
2039 /* The GNU C library defines this for functions which it implements
2040 to always fail with ENOSYS. Some functions are actually named
2041 something starting with __ and the normal name is an alias. */
2042 #if defined (__stub_tgoto) || defined (__stub___tgoto)
2050 if { (eval echo configure:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2052 eval "ac_cv_func_tgoto=yes"
2054 echo "configure: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2057 eval "ac_cv_func_tgoto=no"
2062 if eval "test \"`echo '$ac_cv_func_'tgoto`\" = yes"; then
2063 echo "$ac_t""yes" 1>&6
2064 cf_term_lib=predefined
2066 echo "$ac_t""no" 1>&6
2068 for cf_term_lib in termcap termlib unknown
2070 echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
2071 echo "configure:2072: checking for tgoto in -l$cf_term_lib" >&5
2072 ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'`
2073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2076 ac_save_LIBS="$LIBS"
2077 LIBS="-l$cf_term_lib $LIBS"
2078 cat > conftest.$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2081 /* Override any gcc2 internal prototype to avoid an error. */
2082 /* We use char because int might match the return type of a gcc2
2083 builtin and then its argument prototype would still apply. */
2090 if { (eval echo configure:2091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2092 eval "ac_cv_lib_$ac_lib_var=yes"
2094 echo "configure: failed program was:" >&5
2095 cat conftest.$ac_ext >&5
2097 eval "ac_cv_lib_$ac_lib_var=no"
2100 LIBS="$ac_save_LIBS"
2103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2104 echo "$ac_t""yes" 1>&6
2107 echo "$ac_t""no" 1>&6
2115 # Check for library containing initscr
2116 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
2117 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
2119 echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
2120 echo "configure:2121: checking for initscr in -l$cf_curs_lib" >&5
2121 ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'`
2122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 ac_save_LIBS="$LIBS"
2126 LIBS="-l$cf_curs_lib $LIBS"
2127 cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2130 /* Override any gcc2 internal prototype to avoid an error. */
2131 /* We use char because int might match the return type of a gcc2
2132 builtin and then its argument prototype would still apply. */
2139 if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2141 eval "ac_cv_lib_$ac_lib_var=yes"
2143 echo "configure: failed program was:" >&5
2144 cat conftest.$ac_ext >&5
2146 eval "ac_cv_lib_$ac_lib_var=no"
2149 LIBS="$ac_save_LIBS"
2152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2153 echo "$ac_t""yes" 1>&6
2156 echo "$ac_t""no" 1>&6
2160 test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
2162 LIBS="-l$cf_curs_lib $cf_save_LIBS"
2163 if test "$cf_term_lib" = unknown ; then
2164 echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
2165 echo "configure:2166: checking if we can link with $cf_curs_lib library" >&5
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2169 #include <${cf_cv_ncurses_header-curses.h}>
2174 if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2184 echo "$ac_t""$cf_result" 1>&6
2185 test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
2186 elif test "$cf_term_lib" != predefined ; then
2187 echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
2188 echo "configure:2189: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2192 #include <${cf_cv_ncurses_header-curses.h}>
2194 initscr(); tgoto((char *)0, 0, 0);
2197 if { (eval echo configure:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2201 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2205 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2209 #include <${cf_cv_ncurses_header-curses.h}>
2214 if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2227 echo "$ac_t""$cf_result" 1>&6
2238 for ac_func in resizeterm
2240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2241 echo "configure:2242: checking for $ac_func" >&5
2242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2245 cat > conftest.$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2248 /* System header to define __stub macros and hopefully few prototypes,
2249 which can conflict with char $ac_func(); below. */
2251 /* Override any gcc2 internal prototype to avoid an error. */
2252 /* We use char because int might match the return type of a gcc2
2253 builtin and then its argument prototype would still apply. */
2258 /* The GNU C library defines this for functions which it implements
2259 to always fail with ENOSYS. Some functions are actually named
2260 something starting with __ and the normal name is an alias. */
2261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2269 if { (eval echo configure:2270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2271 eval "ac_cv_func_$ac_func=yes"
2273 echo "configure: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2276 eval "ac_cv_func_$ac_func=no"
2281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2282 echo "$ac_t""yes" 1>&6
2283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2284 cat >> confdefs.h <<EOF
2285 #define $ac_tr_func 1
2289 echo "$ac_t""no" 1>&6
2294 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
2295 echo "configure:2296: checking for snprintf" >&5
2296 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2302 /* System header to define __stub macros and hopefully few prototypes,
2303 which can conflict with char snprintf(); below. */
2305 /* Override any gcc2 internal prototype to avoid an error. */
2306 /* We use char because int might match the return type of a gcc2
2307 builtin and then its argument prototype would still apply. */
2312 /* The GNU C library defines this for functions which it implements
2313 to always fail with ENOSYS. Some functions are actually named
2314 something starting with __ and the normal name is an alias. */
2315 #if defined (__stub_snprintf) || defined (__stub___snprintf)
2323 if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2325 eval "ac_cv_func_snprintf=yes"
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2330 eval "ac_cv_func_snprintf=no"
2335 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
2336 echo "$ac_t""yes" 1>&6
2337 cat >> confdefs.h <<\EOF
2338 #define HAVE_SNPRINTF 1
2342 echo "$ac_t""no" 1>&6
2345 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
2346 echo "configure:2347: checking for vsnprintf" >&5
2347 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2353 /* System header to define __stub macros and hopefully few prototypes,
2354 which can conflict with char vsnprintf(); below. */
2356 /* Override any gcc2 internal prototype to avoid an error. */
2357 /* We use char because int might match the return type of a gcc2
2358 builtin and then its argument prototype would still apply. */
2363 /* The GNU C library defines this for functions which it implements
2364 to always fail with ENOSYS. Some functions are actually named
2365 something starting with __ and the normal name is an alias. */
2366 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
2374 if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2376 eval "ac_cv_func_vsnprintf=yes"
2378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2381 eval "ac_cv_func_vsnprintf=no"
2386 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
2387 echo "$ac_t""yes" 1>&6
2388 cat >> confdefs.h <<\EOF
2389 #define HAVE_VSNPRINTF 1
2393 echo "$ac_t""no" 1>&6
2397 # Check whether --enable-debug or --disable-debug was given.
2398 if test "${enable_debug+set}" = set; then
2399 enableval="$enable_debug"
2400 case "${enableval}" in
2403 *) { echo "configure: error: bad value ${enableval} for --enable-debug" 1>&2; exit 1; } ;;
2410 if test x$debug = xtrue; then
2411 CPPFLAGS="-DDEBUG $CPPFLAGS"
2415 # Check whether --enable-nonascii or --disable-nonascii was given.
2416 if test "${enable_nonascii+set}" = set; then
2417 enableval="$enable_nonascii"
2418 case "${enableval}" in
2419 yes) nonascii=true ;;
2420 no) nonascii=false ;;
2421 *) { echo "configure: error: bad value ${enableval} for --disable-nonascii" 1>&2; exit 1; } ;;
2428 if test x$nonascii = xfalse; then
2429 cat >> confdefs.h <<\EOF
2430 #define USE_ASCII_ONLY 1
2435 if test x$GCC = xyes; then
2436 CFLAGS="-Wall $CFLAGS"
2440 cat > confcache <<\EOF
2441 # This file is a shell script that caches the results of configure
2442 # tests run on this system so they can be shared between configure
2443 # scripts and configure runs. It is not useful on other systems.
2444 # If it contains results you don't want to keep, you may remove or edit it.
2446 # By default, configure uses ./config.cache as the cache file,
2447 # creating it if it does not exist already. You can give configure
2448 # the --cache-file=FILE option to use a different cache file; that is
2449 # what configure does when it calls configure scripts in
2450 # subdirectories, so they share the cache.
2451 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2452 # config.status only pays attention to the cache file if you give it the
2453 # --recheck option to rerun configure.
2456 # The following way of writing the cache mishandles newlines in values,
2457 # but we know of no workaround that is simple, portable, and efficient.
2458 # So, don't put newlines in cache variables' values.
2459 # Ultrix sh set writes to stderr and can't be redirected directly,
2460 # and sets the high bit in the cache file unless we assign to the vars.
2462 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2464 # `set' does not quote correctly, so add quotes (double-quote substitution
2465 # turns \\\\ into \\, and sed turns \\ into \).
2467 -e "s/'/'\\\\''/g" \
2468 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2471 # `set' quotes correctly as required by POSIX, so do not add quotes.
2472 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2475 if cmp -s $cache_file confcache; then
2478 if test -w $cache_file; then
2479 echo "updating cache $cache_file"
2480 cat confcache > $cache_file
2482 echo "not updating unwritable cache $cache_file"
2487 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2489 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2490 # Let make expand exec_prefix.
2491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2493 # Any assignment to VPATH causes Sun make to only execute
2494 # the first set of double-colon rules, so remove it if not needed.
2495 # If there is a colon in the path, we need to keep it.
2496 if test "x$srcdir" = x.; then
2497 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2500 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2502 DEFS=-DHAVE_CONFIG_H
2504 # Without the "./", some shells look in PATH for config.status.
2505 : ${CONFIG_STATUS=./config.status}
2507 echo creating $CONFIG_STATUS
2508 rm -f $CONFIG_STATUS
2509 cat > $CONFIG_STATUS <<EOF
2511 # Generated automatically by configure.
2512 # Run this file to recreate the current configuration.
2513 # This directory was configured as follows,
2514 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2516 # $0 $ac_configure_args
2518 # Compiler output produced by configure, useful for debugging
2519 # configure, is in ./config.log if it exists.
2521 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2524 case "\$ac_option" in
2525 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2526 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2527 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2528 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2529 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2531 -help | --help | --hel | --he | --h)
2532 echo "\$ac_cs_usage"; exit 0 ;;
2533 *) echo "\$ac_cs_usage"; exit 1 ;;
2537 ac_given_srcdir=$srcdir
2538 ac_given_INSTALL="$INSTALL"
2540 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2542 cat >> $CONFIG_STATUS <<EOF
2544 # Protect against being on the right side of a sed subst in config.status.
2545 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2546 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2550 s%@CFLAGS@%$CFLAGS%g
2551 s%@CPPFLAGS@%$CPPFLAGS%g
2552 s%@CXXFLAGS@%$CXXFLAGS%g
2553 s%@FFLAGS@%$FFLAGS%g
2555 s%@LDFLAGS@%$LDFLAGS%g
2557 s%@exec_prefix@%$exec_prefix%g
2558 s%@prefix@%$prefix%g
2559 s%@program_transform_name@%$program_transform_name%g
2560 s%@bindir@%$bindir%g
2561 s%@sbindir@%$sbindir%g
2562 s%@libexecdir@%$libexecdir%g
2563 s%@datadir@%$datadir%g
2564 s%@sysconfdir@%$sysconfdir%g
2565 s%@sharedstatedir@%$sharedstatedir%g
2566 s%@localstatedir@%$localstatedir%g
2567 s%@libdir@%$libdir%g
2568 s%@includedir@%$includedir%g
2569 s%@oldincludedir@%$oldincludedir%g
2570 s%@infodir@%$infodir%g
2571 s%@mandir@%$mandir%g
2572 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2573 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2574 s%@INSTALL_DATA@%$INSTALL_DATA%g
2575 s%@PACKAGE@%$PACKAGE%g
2576 s%@VERSION@%$VERSION%g
2577 s%@ACLOCAL@%$ACLOCAL%g
2578 s%@AUTOCONF@%$AUTOCONF%g
2579 s%@AUTOMAKE@%$AUTOMAKE%g
2580 s%@AUTOHEADER@%$AUTOHEADER%g
2581 s%@MAKEINFO@%$MAKEINFO%g
2582 s%@SET_MAKE@%$SET_MAKE%g
2584 s%@host_alias@%$host_alias%g
2585 s%@host_cpu@%$host_cpu%g
2586 s%@host_vendor@%$host_vendor%g
2587 s%@host_os@%$host_os%g
2591 s%@ANSI2KNR@%$ANSI2KNR%g
2596 cat >> $CONFIG_STATUS <<\EOF
2598 # Split the substitutions into bite-sized pieces for seds with
2599 # small command number limits, like on Digital OSF/1 and HP-UX.
2600 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2601 ac_file=1 # Number of current file.
2602 ac_beg=1 # First line for current file.
2603 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2606 while $ac_more_lines; do
2607 if test $ac_beg -gt 1; then
2608 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2610 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2612 if test ! -s conftest.s$ac_file; then
2614 rm -f conftest.s$ac_file
2616 if test -z "$ac_sed_cmds"; then
2617 ac_sed_cmds="sed -f conftest.s$ac_file"
2619 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2621 ac_file=`expr $ac_file + 1`
2623 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2626 if test -z "$ac_sed_cmds"; then
2631 cat >> $CONFIG_STATUS <<EOF
2633 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2635 cat >> $CONFIG_STATUS <<\EOF
2636 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2637 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2639 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2640 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2641 *) ac_file_in="${ac_file}.in" ;;
2644 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2646 # Remove last slash and all that follows it. Not all systems have dirname.
2647 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2648 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2649 # The file is in a subdirectory.
2650 test ! -d "$ac_dir" && mkdir "$ac_dir"
2651 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2652 # A "../" for each directory in $ac_dir_suffix.
2653 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2655 ac_dir_suffix= ac_dots=
2658 case "$ac_given_srcdir" in
2660 if test -z "$ac_dots"; then top_srcdir=.
2661 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2662 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2664 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2665 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2668 case "$ac_given_INSTALL" in
2669 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2670 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2673 echo creating "$ac_file"
2675 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2677 *Makefile*) ac_comsub="1i\\
2678 # $configure_input" ;;
2682 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2684 s%@configure_input@%$configure_input%g
2685 s%@srcdir@%$srcdir%g
2686 s%@top_srcdir@%$top_srcdir%g
2687 s%@INSTALL@%$INSTALL%g
2688 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2692 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2693 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2695 # ac_d sets the value in "#define NAME VALUE" lines.
2696 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2697 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2700 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2701 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2702 ac_uB='\([ ]\)%\1#\2define\3'
2705 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2706 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2707 ac_eB='$%\1#\2define\3'
2711 if test "${CONFIG_HEADERS+set}" != set; then
2713 cat >> $CONFIG_STATUS <<EOF
2714 CONFIG_HEADERS="config.h"
2716 cat >> $CONFIG_STATUS <<\EOF
2718 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2719 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2721 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2722 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2723 *) ac_file_in="${ac_file}.in" ;;
2726 echo creating $ac_file
2728 rm -f conftest.frag conftest.in conftest.out
2729 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2730 cat $ac_file_inputs > conftest.in
2734 # Transform confdefs.h into a sed script conftest.vals that substitutes
2735 # the proper values into config.h.in to produce config.h. And first:
2736 # Protect against being on the right side of a sed subst in config.status.
2737 # Protect against being in an unquoted here document in config.status.
2739 cat > conftest.hdr <<\EOF
2742 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2746 sed -n -f conftest.hdr confdefs.h > conftest.vals
2749 # This sed command replaces #undef with comments. This is necessary, for
2750 # example, in the case of _POSIX_SOURCE, which is predefined and required
2751 # on some systems where configure will not decide to define it.
2752 cat >> conftest.vals <<\EOF
2753 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2756 # Break up conftest.vals because some shells have a limit on
2757 # the size of here documents, and old seds have small limits too.
2762 ac_lines=`grep -c . conftest.vals`
2763 # grep -c gives empty output for an empty file on some AIX systems.
2764 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2765 # Write a limited-size here document to conftest.frag.
2766 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2767 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2769 sed -f conftest.frag conftest.in > conftest.out
2771 mv conftest.out conftest.in
2773 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2775 mv conftest.tail conftest.vals
2779 cat >> $CONFIG_STATUS <<\EOF
2780 rm -f conftest.frag conftest.h
2781 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2782 cat conftest.in >> conftest.h
2784 if cmp -s $ac_file conftest.h 2>/dev/null; then
2785 echo "$ac_file is unchanged"
2788 # Remove last slash and all that follows it. Not all systems have dirname.
2789 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2790 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2791 # The file is in a subdirectory.
2792 test ! -d "$ac_dir" && mkdir "$ac_dir"
2795 mv conftest.h $ac_file
2800 cat >> $CONFIG_STATUS <<EOF
2804 cat >> $CONFIG_STATUS <<\EOF
2805 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2809 chmod +x $CONFIG_STATUS
2810 rm -fr confdefs* $ac_clean_files
2811 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1