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 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file=./config.cache
32 program_transform_name=s,x,x,
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
53 # Initialize some other variables.
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 # Accept the important Cygnus configure options, so we can diagnose typos.
80 -bindir | --bindir | --bindi | --bind | --bin | --bi)
82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83 bindir="$ac_optarg" ;;
85 -build | --build | --buil | --bui | --bu)
87 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90 -cache-file | --cache-file | --cache-fil | --cache-fi \
91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95 cache_file="$ac_optarg" ;;
97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101 datadir="$ac_optarg" ;;
103 -disable-* | --disable-*)
104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
112 -enable-* | --enable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127 | --exec | --exe | --ex)
128 ac_prev=exec_prefix ;;
129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131 | --exec=* | --exe=* | --ex=*)
132 exec_prefix="$ac_optarg" ;;
134 -gas | --gas | --ga | --g)
135 # Obsolete; use --with-gas.
138 -help | --help | --hel | --he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
193 -host | --host | --hos | --ho)
195 -host=* | --host=* | --hos=* | --ho=*)
198 -includedir | --includedir | --includedi | --included | --include \
199 | --includ | --inclu | --incl | --inc)
200 ac_prev=includedir ;;
201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202 | --includ=* | --inclu=* | --incl=* | --inc=*)
203 includedir="$ac_optarg" ;;
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
210 -libdir | --libdir | --libdi | --libd)
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216 | --libexe | --libex | --libe)
217 ac_prev=libexecdir ;;
218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219 | --libexe=* | --libex=* | --libe=*)
220 libexecdir="$ac_optarg" ;;
222 -localstatedir | --localstatedir | --localstatedi | --localstated \
223 | --localstate | --localstat | --localsta | --localst \
224 | --locals | --local | --loca | --loc | --lo)
225 ac_prev=localstatedir ;;
226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229 localstatedir="$ac_optarg" ;;
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
237 # Obsolete; use --without-fp.
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250 | --oldin | --oldi | --old | --ol | --o)
251 ac_prev=oldincludedir ;;
252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255 oldincludedir="$ac_optarg" ;;
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
263 | --program-pre | --program-pr | --program-p)
264 ac_prev=program_prefix ;;
265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267 program_prefix="$ac_optarg" ;;
269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
270 | --program-suf | --program-su | --program-s)
271 ac_prev=program_suffix ;;
272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274 program_suffix="$ac_optarg" ;;
276 -program-transform-name | --program-transform-name \
277 | --program-transform-nam | --program-transform-na \
278 | --program-transform-n | --program-transform- \
279 | --program-transform | --program-transfor \
280 | --program-transfo | --program-transf \
281 | --program-trans | --program-tran \
282 | --progr-tra | --program-tr | --program-t)
283 ac_prev=program_transform_name ;;
284 -program-transform-name=* | --program-transform-name=* \
285 | --program-transform-nam=* | --program-transform-na=* \
286 | --program-transform-n=* | --program-transform-=* \
287 | --program-transform=* | --program-transfor=* \
288 | --program-transfo=* | --program-transf=* \
289 | --program-trans=* | --program-tran=* \
290 | --progr-tra=* | --program-tr=* | --program-t=*)
291 program_transform_name="$ac_optarg" ;;
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301 sbindir="$ac_optarg" ;;
303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305 | --sharedst | --shareds | --shared | --share | --shar \
307 ac_prev=sharedstatedir ;;
308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312 sharedstatedir="$ac_optarg" ;;
314 -site | --site | --sit)
316 -site=* | --site=* | --sit=*)
319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322 srcdir="$ac_optarg" ;;
324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325 | --syscon | --sysco | --sysc | --sys | --sy)
326 ac_prev=sysconfdir ;;
327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329 sysconfdir="$ac_optarg" ;;
331 -target | --target | --targe | --targ | --tar | --ta | --t)
333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334 target="$ac_optarg" ;;
336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
339 -version | --version | --versio | --versi | --vers)
340 echo "configure generated by autoconf version 2.13"
344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 ac_package=`echo $ac_package| sed 's/-/_/g'`
354 eval "with_${ac_package}='$ac_optarg'" ;;
356 -without-* | --without-*)
357 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
366 # Obsolete; use --with-x.
369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370 | --x-incl | --x-inc | --x-in | --x-i)
371 ac_prev=x_includes ;;
372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374 x_includes="$ac_optarg" ;;
376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378 ac_prev=x_libraries ;;
379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381 x_libraries="$ac_optarg" ;;
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 if test "x$nonopt" != xNONE; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405 # File descriptor usage:
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432 | --no-cr | --no-c) ;;
433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=abook.c
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468 if test ! -r $srcdir/$ac_unique_file; then
472 ac_srcdir_defaulted=no
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
502 echo "creating cache $cache_file"
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524 ac_n= ac_c='\c' ac_t=
529 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
530 if test -f $ac_dir/install-sh; then
532 ac_install_sh="$ac_aux_dir/install-sh -c"
534 elif test -f $ac_dir/install.sh; then
536 ac_install_sh="$ac_aux_dir/install.sh -c"
540 if test -z "$ac_aux_dir"; then
541 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
543 ac_config_guess=$ac_aux_dir/config.guess
544 ac_config_sub=$ac_aux_dir/config.sub
545 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
547 # Find a good install program. We prefer a C program (faster),
548 # so one script is as good as another. But avoid the broken or
549 # incompatible versions:
550 # SysV /etc/install, /usr/sbin/install
551 # SunOS /usr/etc/install
554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
557 # ./install, which can be erroneously created by make from ./install.sh.
558 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
559 echo "configure:560: checking for a BSD compatible install" >&5
560 if test -z "$INSTALL"; then
561 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
564 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
565 for ac_dir in $PATH; do
566 # Account for people who put trailing slashes in PATH elements.
568 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
570 # OSF1 and SCO ODT 3.0 have their own names for install.
571 # Don't use installbsd from OSF since it installs stuff as root
573 for ac_prog in ginstall scoinst install; do
574 if test -f $ac_dir/$ac_prog; then
575 if test $ac_prog = install &&
576 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
577 # AIX install. It has an incompatible calling convention.
580 ac_cv_path_install="$ac_dir/$ac_prog -c"
591 if test "${ac_cv_path_install+set}" = set; then
592 INSTALL="$ac_cv_path_install"
594 # As a last resort, use the slow shell script. We don't cache a
595 # path for INSTALL within a source directory, because that will
596 # break other packages using the cache if that directory is
597 # removed, or if the path is relative.
598 INSTALL="$ac_install_sh"
601 echo "$ac_t""$INSTALL" 1>&6
603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
604 # It thinks the first close brace ends the variable substitution.
605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
611 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
612 echo "configure:613: checking whether build environment is sane" >&5
615 echo timestamp > conftestfile
616 # Do `set' in a subshell so we don't clobber the current shell's
617 # arguments. Must try -L first in case configure is actually a
618 # symlink; some systems play weird games with the mod time of symlinks
619 # (eg FreeBSD returns the mod time of the symlink's containing
622 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
623 if test "$*" = "X"; then
625 set X `ls -t $srcdir/configure conftestfile`
627 if test "$*" != "X $srcdir/configure conftestfile" \
628 && test "$*" != "X conftestfile $srcdir/configure"; then
630 # If neither matched, then we have a broken ls. This can happen
631 # if, for instance, CONFIG_SHELL is bash and it inherits a
632 # broken ls alias from the environment. This has actually
633 # happened. Such a system could not be considered "sane".
634 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
635 alias in your environment" 1>&2; exit 1; }
638 test "$2" = conftestfile
644 { echo "configure: error: newly created file is older than distributed files!
645 Check your system clock" 1>&2; exit 1; }
648 echo "$ac_t""yes" 1>&6
649 if test "$program_transform_name" = s,x,x,; then
650 program_transform_name=
652 # Double any \ or $. echo might interpret backslashes.
653 cat <<\EOF_SED > conftestsed
654 s,\\,\\\\,g; s,\$,$$,g
656 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
659 test "$program_prefix" != NONE &&
660 program_transform_name="s,^,${program_prefix},; $program_transform_name"
661 # Use a double $ so make ignores it.
662 test "$program_suffix" != NONE &&
663 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
665 # sed with no file args requires a program.
666 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
668 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
669 echo "configure:670: checking whether ${MAKE-make} sets \${MAKE}" >&5
670 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
671 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
672 echo $ac_n "(cached) $ac_c" 1>&6
674 cat > conftestmake <<\EOF
676 @echo 'ac_maketemp="${MAKE}"'
678 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
679 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
680 if test -n "$ac_maketemp"; then
681 eval ac_cv_prog_make_${ac_make}_set=yes
683 eval ac_cv_prog_make_${ac_make}_set=no
687 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
688 echo "$ac_t""yes" 1>&6
691 echo "$ac_t""no" 1>&6
692 SET_MAKE="MAKE=${MAKE-make}"
700 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
701 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
703 cat >> confdefs.h <<EOF
704 #define PACKAGE "$PACKAGE"
707 cat >> confdefs.h <<EOF
708 #define VERSION "$VERSION"
713 missing_dir=`cd $ac_aux_dir && pwd`
714 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
715 echo "configure:716: checking for working aclocal" >&5
716 # Run test in a subshell; some versions of sh will print an error if
717 # an executable is not found, even if stderr is redirected.
718 # Redirect stdin to placate older versions of autoconf. Sigh.
719 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
721 echo "$ac_t""found" 1>&6
723 ACLOCAL="$missing_dir/missing aclocal"
724 echo "$ac_t""missing" 1>&6
727 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
728 echo "configure:729: checking for working autoconf" >&5
729 # Run test in a subshell; some versions of sh will print an error if
730 # an executable is not found, even if stderr is redirected.
731 # Redirect stdin to placate older versions of autoconf. Sigh.
732 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
734 echo "$ac_t""found" 1>&6
736 AUTOCONF="$missing_dir/missing autoconf"
737 echo "$ac_t""missing" 1>&6
740 echo $ac_n "checking for working automake""... $ac_c" 1>&6
741 echo "configure:742: checking for working automake" >&5
742 # Run test in a subshell; some versions of sh will print an error if
743 # an executable is not found, even if stderr is redirected.
744 # Redirect stdin to placate older versions of autoconf. Sigh.
745 if (automake --version) < /dev/null > /dev/null 2>&1; then
747 echo "$ac_t""found" 1>&6
749 AUTOMAKE="$missing_dir/missing automake"
750 echo "$ac_t""missing" 1>&6
753 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
754 echo "configure:755: checking for working autoheader" >&5
755 # Run test in a subshell; some versions of sh will print an error if
756 # an executable is not found, even if stderr is redirected.
757 # Redirect stdin to placate older versions of autoconf. Sigh.
758 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
759 AUTOHEADER=autoheader
760 echo "$ac_t""found" 1>&6
762 AUTOHEADER="$missing_dir/missing autoheader"
763 echo "$ac_t""missing" 1>&6
766 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
767 echo "configure:768: checking for working makeinfo" >&5
768 # Run test in a subshell; some versions of sh will print an error if
769 # an executable is not found, even if stderr is redirected.
770 # Redirect stdin to placate older versions of autoconf. Sigh.
771 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
773 echo "$ac_t""found" 1>&6
775 MAKEINFO="$missing_dir/missing makeinfo"
776 echo "$ac_t""missing" 1>&6
785 # Make sure we can run config.sub.
786 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
787 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
790 echo $ac_n "checking host system type""... $ac_c" 1>&6
791 echo "configure:792: checking host system type" >&5
794 case "$host_alias" in
798 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
799 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
801 *) host_alias=$nonopt ;;
805 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
806 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
807 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
808 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
809 echo "$ac_t""$host" 1>&6
812 # Extract the first word of "gcc", so it can be a program name with args.
813 set dummy gcc; ac_word=$2
814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
815 echo "configure:816: checking for $ac_word" >&5
816 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
819 if test -n "$CC"; then
820 ac_cv_prog_CC="$CC" # Let the user override the test.
822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
824 for ac_dir in $ac_dummy; do
825 test -z "$ac_dir" && ac_dir=.
826 if test -f $ac_dir/$ac_word; then
835 if test -n "$CC"; then
836 echo "$ac_t""$CC" 1>&6
838 echo "$ac_t""no" 1>&6
841 if test -z "$CC"; then
842 # Extract the first word of "cc", so it can be a program name with args.
843 set dummy cc; ac_word=$2
844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
845 echo "configure:846: checking for $ac_word" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
849 if test -n "$CC"; then
850 ac_cv_prog_CC="$CC" # Let the user override the test.
852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
855 for ac_dir in $ac_dummy; do
856 test -z "$ac_dir" && ac_dir=.
857 if test -f $ac_dir/$ac_word; then
858 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
867 if test $ac_prog_rejected = yes; then
868 # We found a bogon in the path, so make sure we never use it.
869 set dummy $ac_cv_prog_CC
871 if test $# -gt 0; then
872 # We chose a different compiler from the bogus one.
873 # However, it has the same basename, so the bogon will be chosen
874 # first if we set CC to just the basename; use the full file name.
876 set dummy "$ac_dir/$ac_word" "$@"
884 if test -n "$CC"; then
885 echo "$ac_t""$CC" 1>&6
887 echo "$ac_t""no" 1>&6
890 if test -z "$CC"; then
893 # Extract the first word of "cl", so it can be a program name with args.
894 set dummy cl; ac_word=$2
895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
896 echo "configure:897: checking for $ac_word" >&5
897 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
900 if test -n "$CC"; then
901 ac_cv_prog_CC="$CC" # Let the user override the test.
903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
905 for ac_dir in $ac_dummy; do
906 test -z "$ac_dir" && ac_dir=.
907 if test -f $ac_dir/$ac_word; then
916 if test -n "$CC"; then
917 echo "$ac_t""$CC" 1>&6
919 echo "$ac_t""no" 1>&6
924 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
927 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
928 echo "configure:929: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
932 ac_cpp='$CPP $CPPFLAGS'
933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
935 cross_compiling=$ac_cv_prog_cc_cross
937 cat > conftest.$ac_ext << EOF
939 #line 940 "configure"
940 #include "confdefs.h"
944 if { (eval echo configure:945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
945 ac_cv_prog_cc_works=yes
946 # If we can't run a trivial program, we are probably using a cross compiler.
947 if (./conftest; exit) 2>/dev/null; then
948 ac_cv_prog_cc_cross=no
950 ac_cv_prog_cc_cross=yes
953 echo "configure: failed program was:" >&5
954 cat conftest.$ac_ext >&5
955 ac_cv_prog_cc_works=no
959 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
960 ac_cpp='$CPP $CPPFLAGS'
961 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
962 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
963 cross_compiling=$ac_cv_prog_cc_cross
965 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
966 if test $ac_cv_prog_cc_works = no; then
967 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
969 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
970 echo "configure:971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
971 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
972 cross_compiling=$ac_cv_prog_cc_cross
974 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
975 echo "configure:976: checking whether we are using GNU C" >&5
976 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
977 echo $ac_n "(cached) $ac_c" 1>&6
979 cat > conftest.c <<EOF
984 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
991 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
993 if test $ac_cv_prog_gcc = yes; then
999 ac_test_CFLAGS="${CFLAGS+set}"
1000 ac_save_CFLAGS="$CFLAGS"
1002 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1003 echo "configure:1004: checking whether ${CC-cc} accepts -g" >&5
1004 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1005 echo $ac_n "(cached) $ac_c" 1>&6
1007 echo 'void f(){}' > conftest.c
1008 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1017 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1018 if test "$ac_test_CFLAGS" = set; then
1019 CFLAGS="$ac_save_CFLAGS"
1020 elif test $ac_cv_prog_cc_g = yes; then
1021 if test "$GCC" = yes; then
1027 if test "$GCC" = yes; then
1035 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1036 echo "configure:1037: checking for strerror in -lcposix" >&5
1037 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 ac_save_LIBS="$LIBS"
1042 LIBS="-lcposix $LIBS"
1043 cat > conftest.$ac_ext <<EOF
1044 #line 1045 "configure"
1045 #include "confdefs.h"
1046 /* Override any gcc2 internal prototype to avoid an error. */
1047 /* We use char because int might match the return type of a gcc2
1048 builtin and then its argument prototype would still apply. */
1055 if { (eval echo configure:1056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1057 eval "ac_cv_lib_$ac_lib_var=yes"
1059 echo "configure: failed program was:" >&5
1060 cat conftest.$ac_ext >&5
1062 eval "ac_cv_lib_$ac_lib_var=no"
1065 LIBS="$ac_save_LIBS"
1068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1069 echo "$ac_t""yes" 1>&6
1070 LIBS="$LIBS -lcposix"
1072 echo "$ac_t""no" 1>&6
1080 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1081 echo "configure:1082: checking for ${CC-cc} option to accept ANSI C" >&5
1082 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1085 am_cv_prog_cc_stdc=no
1087 # Don't try gcc -ansi; that turns off useful extensions and
1088 # breaks some systems' header files.
1089 # AIX -qlanglvl=ansi
1090 # Ultrix and OSF/1 -std1
1091 # HP-UX -Aa -D_HPUX_SOURCE
1092 # SVR4 -Xc -D__EXTENSIONS__
1093 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1095 CC="$ac_save_CC $ac_arg"
1096 cat > conftest.$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1101 #include <sys/types.h>
1102 #include <sys/stat.h>
1103 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1104 struct buf { int x; };
1105 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1106 static char *e (p, i)
1112 static char *f (char * (*g) (char **, int), char **p, ...)
1117 s = g (p, va_arg (v,int));
1121 int test (int i, double x);
1122 struct s1 {int (*f) (int a);};
1123 struct s2 {int (*f) (double a);};
1124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1134 if { (eval echo configure:1135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1136 am_cv_prog_cc_stdc="$ac_arg"; break
1138 echo "configure: failed program was:" >&5
1139 cat conftest.$ac_ext >&5
1147 if test -z "$am_cv_prog_cc_stdc"; then
1148 echo "$ac_t""none needed" 1>&6
1150 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1152 case "x$am_cv_prog_cc_stdc" in
1154 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1157 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1158 echo "configure:1159: checking how to run the C preprocessor" >&5
1159 # On Suns, sometimes $CPP names a directory.
1160 if test -n "$CPP" && test -d "$CPP"; then
1163 if test -z "$CPP"; then
1164 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 # This must be in double quotes, not single quotes, because CPP may get
1168 # substituted into the Makefile and "${CC-cc}" will confuse make.
1170 # On the NeXT, cc -E runs the code through the compiler's parser,
1171 # not just through cpp.
1172 cat > conftest.$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1179 { (eval echo configure:1180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1181 if test -z "$ac_err"; then
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1188 CPP="${CC-cc} -E -traditional-cpp"
1189 cat > conftest.$ac_ext <<EOF
1190 #line 1191 "configure"
1191 #include "confdefs.h"
1195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1196 { (eval echo configure:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1198 if test -z "$ac_err"; then
1202 echo "configure: failed program was:" >&5
1203 cat conftest.$ac_ext >&5
1205 CPP="${CC-cc} -nologo -E"
1206 cat > conftest.$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1213 { (eval echo configure:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1215 if test -z "$ac_err"; then
1219 echo "configure: failed program was:" >&5
1220 cat conftest.$ac_ext >&5
1229 ac_cv_prog_CPP="$CPP"
1231 CPP="$ac_cv_prog_CPP"
1233 ac_cv_prog_CPP="$CPP"
1235 echo "$ac_t""$CPP" 1>&6
1239 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1240 echo "configure:1241: checking for function prototypes" >&5
1241 if test "$am_cv_prog_cc_stdc" != no; then
1242 echo "$ac_t""yes" 1>&6
1243 cat >> confdefs.h <<\EOF
1244 #define PROTOTYPES 1
1249 echo "$ac_t""no" 1>&6
1250 U=_ ANSI2KNR=./ansi2knr
1251 # Ensure some checks needed by ansi2knr itself.
1252 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1253 echo "configure:1254: checking for ANSI C header files" >&5
1254 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1257 cat > conftest.$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1266 { (eval echo configure:1267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1268 if test -z "$ac_err"; then
1270 ac_cv_header_stdc=yes
1273 echo "configure: failed program was:" >&5
1274 cat conftest.$ac_ext >&5
1276 ac_cv_header_stdc=no
1280 if test $ac_cv_header_stdc = yes; then
1281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1282 cat > conftest.$ac_ext <<EOF
1283 #line 1284 "configure"
1284 #include "confdefs.h"
1287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1288 egrep "memchr" >/dev/null 2>&1; then
1292 ac_cv_header_stdc=no
1298 if test $ac_cv_header_stdc = yes; then
1299 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1300 cat > conftest.$ac_ext <<EOF
1301 #line 1302 "configure"
1302 #include "confdefs.h"
1305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1306 egrep "free" >/dev/null 2>&1; then
1310 ac_cv_header_stdc=no
1316 if test $ac_cv_header_stdc = yes; then
1317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1318 if test "$cross_compiling" = yes; then
1321 cat > conftest.$ac_ext <<EOF
1322 #line 1323 "configure"
1323 #include "confdefs.h"
1325 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1326 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1327 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1328 int main () { int i; for (i = 0; i < 256; i++)
1329 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1333 if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1337 echo "configure: failed program was:" >&5
1338 cat conftest.$ac_ext >&5
1340 ac_cv_header_stdc=no
1348 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1349 if test $ac_cv_header_stdc = yes; then
1350 cat >> confdefs.h <<\EOF
1351 #define STDC_HEADERS 1
1356 for ac_hdr in string.h
1358 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1359 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_hdr" >&5
1361 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 cat > conftest.$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1370 { (eval echo configure:1371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1372 if test -z "$ac_err"; then
1374 eval "ac_cv_header_$ac_safe=yes"
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1380 eval "ac_cv_header_$ac_safe=no"
1384 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1385 echo "$ac_t""yes" 1>&6
1386 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1387 cat >> confdefs.h <<EOF
1388 #define $ac_tr_hdr 1
1392 echo "$ac_t""no" 1>&6
1398 if test "x$U" != "x"; then
1399 { echo "configure: error: Compiler not ANSI compliant" 1>&2; exit 1; }
1401 echo $ac_n "checking for inline""... $ac_c" 1>&6
1402 echo "configure:1403: checking for inline" >&5
1403 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1407 for ac_kw in inline __inline__ __inline; do
1408 cat > conftest.$ac_ext <<EOF
1409 #line 1410 "configure"
1410 #include "confdefs.h"
1416 if { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1418 ac_cv_c_inline=$ac_kw; break
1420 echo "configure: failed program was:" >&5
1421 cat conftest.$ac_ext >&5
1428 echo "$ac_t""$ac_cv_c_inline" 1>&6
1429 case "$ac_cv_c_inline" in
1431 no) cat >> confdefs.h <<\EOF
1435 *) cat >> confdefs.h <<EOF
1436 #define inline $ac_cv_c_inline
1441 # Find a good install program. We prefer a C program (faster),
1442 # so one script is as good as another. But avoid the broken or
1443 # incompatible versions:
1444 # SysV /etc/install, /usr/sbin/install
1445 # SunOS /usr/etc/install
1446 # IRIX /sbin/install
1448 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1449 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1450 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1451 # ./install, which can be erroneously created by make from ./install.sh.
1452 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1453 echo "configure:1454: checking for a BSD compatible install" >&5
1454 if test -z "$INSTALL"; then
1455 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1459 for ac_dir in $PATH; do
1460 # Account for people who put trailing slashes in PATH elements.
1462 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1464 # OSF1 and SCO ODT 3.0 have their own names for install.
1465 # Don't use installbsd from OSF since it installs stuff as root
1467 for ac_prog in ginstall scoinst install; do
1468 if test -f $ac_dir/$ac_prog; then
1469 if test $ac_prog = install &&
1470 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1471 # AIX install. It has an incompatible calling convention.
1474 ac_cv_path_install="$ac_dir/$ac_prog -c"
1485 if test "${ac_cv_path_install+set}" = set; then
1486 INSTALL="$ac_cv_path_install"
1488 # As a last resort, use the slow shell script. We don't cache a
1489 # path for INSTALL within a source directory, because that will
1490 # break other packages using the cache if that directory is
1491 # removed, or if the path is relative.
1492 INSTALL="$ac_install_sh"
1495 echo "$ac_t""$INSTALL" 1>&6
1497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1498 # It thinks the first close brace ends the variable substitution.
1499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1505 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1506 echo "configure:1507: checking for ANSI C header files" >&5
1507 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1510 cat > conftest.$ac_ext <<EOF
1511 #line 1512 "configure"
1512 #include "confdefs.h"
1518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1519 { (eval echo configure:1520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1521 if test -z "$ac_err"; then
1523 ac_cv_header_stdc=yes
1526 echo "configure: failed program was:" >&5
1527 cat conftest.$ac_ext >&5
1529 ac_cv_header_stdc=no
1533 if test $ac_cv_header_stdc = yes; then
1534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1535 cat > conftest.$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1541 egrep "memchr" >/dev/null 2>&1; then
1545 ac_cv_header_stdc=no
1551 if test $ac_cv_header_stdc = yes; then
1552 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1553 cat > conftest.$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1559 egrep "free" >/dev/null 2>&1; then
1563 ac_cv_header_stdc=no
1569 if test $ac_cv_header_stdc = yes; then
1570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1571 if test "$cross_compiling" = yes; then
1574 cat > conftest.$ac_ext <<EOF
1575 #line 1576 "configure"
1576 #include "confdefs.h"
1578 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1579 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1580 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1581 int main () { int i; for (i = 0; i < 256; i++)
1582 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1586 if { (eval echo configure:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1590 echo "configure: failed program was:" >&5
1591 cat conftest.$ac_ext >&5
1593 ac_cv_header_stdc=no
1601 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1602 if test $ac_cv_header_stdc = yes; then
1603 cat >> confdefs.h <<\EOF
1604 #define STDC_HEADERS 1
1609 for ac_hdr in unistd.h locale.h termios.h linux/termios.h sys/ioctl.h
1611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1613 echo "configure:1614: checking for $ac_hdr" >&5
1614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1623 { (eval echo configure:1624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1625 if test -z "$ac_err"; then
1627 eval "ac_cv_header_$ac_safe=yes"
1630 echo "configure: failed program was:" >&5
1631 cat conftest.$ac_ext >&5
1633 eval "ac_cv_header_$ac_safe=no"
1637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1638 echo "$ac_t""yes" 1>&6
1639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1640 cat >> confdefs.h <<EOF
1641 #define $ac_tr_hdr 1
1645 echo "$ac_t""no" 1>&6
1649 ac_safe=`echo "stdarg.h" | sed 'y%./+-%__p_%'`
1650 echo $ac_n "checking for stdarg.h""... $ac_c" 1>&6
1651 echo "configure:1652: checking for stdarg.h" >&5
1652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1661 { (eval echo configure:1662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1663 if test -z "$ac_err"; then
1665 eval "ac_cv_header_$ac_safe=yes"
1668 echo "configure: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1671 eval "ac_cv_header_$ac_safe=no"
1675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1676 echo "$ac_t""yes" 1>&6
1677 cat >> confdefs.h <<\EOF
1678 #define HAVE_STDARG_H 1
1682 echo "$ac_t""no" 1>&6
1683 { echo "configure: error: *** stdarg.h is missing on your system ***" 1>&2; exit 1; }
1686 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
1687 echo "configure:1688: checking for working strcoll" >&5
1688 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 if test "$cross_compiling" = yes; then
1692 ac_cv_func_strcoll_works=no
1694 cat > conftest.$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1700 exit (strcoll ("abc", "def") >= 0 ||
1701 strcoll ("ABC", "DEF") >= 0 ||
1702 strcoll ("123", "456") >= 0);
1705 if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1707 ac_cv_func_strcoll_works=yes
1709 echo "configure: failed program was:" >&5
1710 cat conftest.$ac_ext >&5
1712 ac_cv_func_strcoll_works=no
1719 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
1720 if test $ac_cv_func_strcoll_works = yes; then
1721 cat >> confdefs.h <<\EOF
1722 #define HAVE_STRCOLL 1
1727 for ac_func in setlocale
1729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1730 echo "configure:1731: checking for $ac_func" >&5
1731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 cat > conftest.$ac_ext <<EOF
1735 #line 1736 "configure"
1736 #include "confdefs.h"
1737 /* System header to define __stub macros and hopefully few prototypes,
1738 which can conflict with char $ac_func(); below. */
1740 /* Override any gcc2 internal prototype to avoid an error. */
1741 /* We use char because int might match the return type of a gcc2
1742 builtin and then its argument prototype would still apply. */
1747 /* The GNU C library defines this for functions which it implements
1748 to always fail with ENOSYS. Some functions are actually named
1749 something starting with __ and the normal name is an alias. */
1750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1760 eval "ac_cv_func_$ac_func=yes"
1762 echo "configure: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
1765 eval "ac_cv_func_$ac_func=no"
1770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1771 echo "$ac_t""yes" 1>&6
1772 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1773 cat >> confdefs.h <<EOF
1774 #define $ac_tr_func 1
1778 echo "$ac_t""no" 1>&6
1784 abook_cv_curses=/usr
1785 # Check whether --with-curses or --without-curses was given.
1786 if test "${with_curses+set}" = set; then
1787 withval="$with_curses"
1788 if test $withval != yes; then
1789 abook_cv_curses=$withval
1791 if test x$abook_cv_curses != x/usr; then
1792 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
1793 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
1798 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
1799 echo "configure:1800: checking for initscr in -lncurses" >&5
1800 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
1801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1804 ac_save_LIBS="$LIBS"
1805 LIBS="-lncurses $LIBS"
1806 cat > conftest.$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1809 /* Override any gcc2 internal prototype to avoid an error. */
1810 /* We use char because int might match the return type of a gcc2
1811 builtin and then its argument prototype would still apply. */
1818 if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1820 eval "ac_cv_lib_$ac_lib_var=yes"
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 eval "ac_cv_lib_$ac_lib_var=no"
1828 LIBS="$ac_save_LIBS"
1831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1832 echo "$ac_t""yes" 1>&6
1833 LIBS="$LIBS -lncurses"
1834 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
1835 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
1837 for ac_hdr in ncurses.h
1839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1841 echo "configure:1842: checking for $ac_hdr" >&5
1842 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1851 { (eval echo configure:1852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1853 if test -z "$ac_err"; then
1855 eval "ac_cv_header_$ac_safe=yes"
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1861 eval "ac_cv_header_$ac_safe=no"
1865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1866 echo "$ac_t""yes" 1>&6
1867 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1868 cat >> confdefs.h <<EOF
1869 #define $ac_tr_hdr 1
1873 echo "$ac_t""no" 1>&6
1878 echo "$ac_t""no" 1>&6
1880 echo $ac_n "checking for initscr""... $ac_c" 1>&6
1881 echo "configure:1882: checking for initscr" >&5
1882 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 cat > conftest.$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1888 /* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char initscr(); below. */
1891 /* Override any gcc2 internal prototype to avoid an error. */
1892 /* We use char because int might match the return type of a gcc2
1893 builtin and then its argument prototype would still apply. */
1898 /* The GNU C library defines this for functions which it implements
1899 to always fail with ENOSYS. Some functions are actually named
1900 something starting with __ and the normal name is an alias. */
1901 #if defined (__stub_initscr) || defined (__stub___initscr)
1909 if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1911 eval "ac_cv_func_initscr=yes"
1913 echo "configure: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1916 eval "ac_cv_func_initscr=no"
1921 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
1922 echo "$ac_t""yes" 1>&6
1925 echo "$ac_t""no" 1>&6
1927 case $host_os in #(vi
1929 echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
1930 echo "configure:1931: checking for tgoto in -lmytinfo" >&5
1931 ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
1932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 ac_save_LIBS="$LIBS"
1936 LIBS="-lmytinfo $LIBS"
1937 cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1940 /* Override any gcc2 internal prototype to avoid an error. */
1941 /* We use char because int might match the return type of a gcc2
1942 builtin and then its argument prototype would still apply. */
1949 if { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1951 eval "ac_cv_lib_$ac_lib_var=yes"
1953 echo "configure: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1956 eval "ac_cv_lib_$ac_lib_var=no"
1959 LIBS="$ac_save_LIBS"
1962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1963 echo "$ac_t""yes" 1>&6
1964 LIBS="-lmytinfo $LIBS"
1966 echo "$ac_t""no" 1>&6
1971 echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
1972 echo "configure:1973: checking for initscr in -lcur_colr" >&5
1973 ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'`
1974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 ac_save_LIBS="$LIBS"
1978 LIBS="-lcur_colr $LIBS"
1979 cat > conftest.$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1982 /* Override any gcc2 internal prototype to avoid an error. */
1983 /* We use char because int might match the return type of a gcc2
1984 builtin and then its argument prototype would still apply. */
1991 if { (eval echo configure:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1993 eval "ac_cv_lib_$ac_lib_var=yes"
1995 echo "configure: failed program was:" >&5
1996 cat conftest.$ac_ext >&5
1998 eval "ac_cv_lib_$ac_lib_var=no"
2001 LIBS="$ac_save_LIBS"
2004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2005 echo "$ac_t""yes" 1>&6
2007 LIBS="-lcur_colr $LIBS"
2008 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
2009 ac_cv_func_initscr=yes
2012 echo "$ac_t""no" 1>&6
2014 echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
2015 echo "configure:2016: checking for initscr in -lHcurses" >&5
2016 ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'`
2017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 ac_save_LIBS="$LIBS"
2021 LIBS="-lHcurses $LIBS"
2022 cat > conftest.$ac_ext <<EOF
2023 #line 2024 "configure"
2024 #include "confdefs.h"
2025 /* Override any gcc2 internal prototype to avoid an error. */
2026 /* We use char because int might match the return type of a gcc2
2027 builtin and then its argument prototype would still apply. */
2034 if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2036 eval "ac_cv_lib_$ac_lib_var=yes"
2038 echo "configure: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2041 eval "ac_cv_lib_$ac_lib_var=no"
2044 LIBS="$ac_save_LIBS"
2047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2048 echo "$ac_t""yes" 1>&6
2050 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
2051 LIBS="-lHcurses $LIBS"
2052 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
2053 ac_cv_func_initscr=yes
2056 echo "$ac_t""no" 1>&6
2062 linux*) # Suse Linux does not follow /usr/lib convention
2067 if test ".$With5lib" != ".no" ; then
2068 if test -d /usr/5lib ; then
2070 CPPFLAGS="$CPPFLAGS -I/usr/5include"
2071 LIBS="$LIBS -L/usr/5lib"
2075 if test ".$ac_cv_func_initscr" != .yes ; then
2076 cf_save_LIBS="$LIBS"
2080 # Check for library containing tgoto. Do this before curses library
2081 # because it may be needed to link the test-case for initscr.
2082 echo $ac_n "checking for tgoto""... $ac_c" 1>&6
2083 echo "configure:2084: checking for tgoto" >&5
2084 if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2090 /* System header to define __stub macros and hopefully few prototypes,
2091 which can conflict with char tgoto(); below. */
2093 /* Override any gcc2 internal prototype to avoid an error. */
2094 /* We use char because int might match the return type of a gcc2
2095 builtin and then its argument prototype would still apply. */
2100 /* The GNU C library defines this for functions which it implements
2101 to always fail with ENOSYS. Some functions are actually named
2102 something starting with __ and the normal name is an alias. */
2103 #if defined (__stub_tgoto) || defined (__stub___tgoto)
2111 if { (eval echo configure:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2113 eval "ac_cv_func_tgoto=yes"
2115 echo "configure: failed program was:" >&5
2116 cat conftest.$ac_ext >&5
2118 eval "ac_cv_func_tgoto=no"
2123 if eval "test \"`echo '$ac_cv_func_'tgoto`\" = yes"; then
2124 echo "$ac_t""yes" 1>&6
2125 cf_term_lib=predefined
2127 echo "$ac_t""no" 1>&6
2129 for cf_term_lib in termcap termlib unknown
2131 echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
2132 echo "configure:2133: checking for tgoto in -l$cf_term_lib" >&5
2133 ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'`
2134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2137 ac_save_LIBS="$LIBS"
2138 LIBS="-l$cf_term_lib $LIBS"
2139 cat > conftest.$ac_ext <<EOF
2140 #line 2141 "configure"
2141 #include "confdefs.h"
2142 /* Override any gcc2 internal prototype to avoid an error. */
2143 /* We use char because int might match the return type of a gcc2
2144 builtin and then its argument prototype would still apply. */
2151 if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2153 eval "ac_cv_lib_$ac_lib_var=yes"
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2158 eval "ac_cv_lib_$ac_lib_var=no"
2161 LIBS="$ac_save_LIBS"
2164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2165 echo "$ac_t""yes" 1>&6
2168 echo "$ac_t""no" 1>&6
2176 # Check for library containing initscr
2177 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
2178 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
2180 echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
2181 echo "configure:2182: checking for initscr in -l$cf_curs_lib" >&5
2182 ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'`
2183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 ac_save_LIBS="$LIBS"
2187 LIBS="-l$cf_curs_lib $LIBS"
2188 cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2191 /* Override any gcc2 internal prototype to avoid an error. */
2192 /* We use char because int might match the return type of a gcc2
2193 builtin and then its argument prototype would still apply. */
2200 if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2202 eval "ac_cv_lib_$ac_lib_var=yes"
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2207 eval "ac_cv_lib_$ac_lib_var=no"
2210 LIBS="$ac_save_LIBS"
2213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2217 echo "$ac_t""no" 1>&6
2221 test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
2223 LIBS="-l$cf_curs_lib $cf_save_LIBS"
2224 if test "$cf_term_lib" = unknown ; then
2225 echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
2226 echo "configure:2227: checking if we can link with $cf_curs_lib library" >&5
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 #include <${cf_cv_ncurses_header-curses.h}>
2235 if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2245 echo "$ac_t""$cf_result" 1>&6
2246 test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
2247 elif test "$cf_term_lib" != predefined ; then
2248 echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
2249 echo "configure:2250: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
2250 cat > conftest.$ac_ext <<EOF
2251 #line 2252 "configure"
2252 #include "confdefs.h"
2253 #include <${cf_cv_ncurses_header-curses.h}>
2255 initscr(); tgoto((char *)0, 0, 0);
2258 if { (eval echo configure:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2262 echo "configure: failed program was:" >&5
2263 cat conftest.$ac_ext >&5
2266 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
2267 cat > conftest.$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 #include <${cf_cv_ncurses_header-curses.h}>
2275 if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2288 echo "$ac_t""$cf_result" 1>&6
2299 for ac_func in resizeterm
2301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2302 echo "configure:2303: checking for $ac_func" >&5
2303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 /* System header to define __stub macros and hopefully few prototypes,
2310 which can conflict with char $ac_func(); below. */
2312 /* Override any gcc2 internal prototype to avoid an error. */
2313 /* We use char because int might match the return type of a gcc2
2314 builtin and then its argument prototype would still apply. */
2319 /* The GNU C library defines this for functions which it implements
2320 to always fail with ENOSYS. Some functions are actually named
2321 something starting with __ and the normal name is an alias. */
2322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2330 if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2332 eval "ac_cv_func_$ac_func=yes"
2334 echo "configure: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2337 eval "ac_cv_func_$ac_func=no"
2342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2343 echo "$ac_t""yes" 1>&6
2344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2345 cat >> confdefs.h <<EOF
2346 #define $ac_tr_func 1
2350 echo "$ac_t""no" 1>&6
2355 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
2356 echo "configure:2357: checking for snprintf" >&5
2357 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2363 /* System header to define __stub macros and hopefully few prototypes,
2364 which can conflict with char snprintf(); below. */
2366 /* Override any gcc2 internal prototype to avoid an error. */
2367 /* We use char because int might match the return type of a gcc2
2368 builtin and then its argument prototype would still apply. */
2373 /* The GNU C library defines this for functions which it implements
2374 to always fail with ENOSYS. Some functions are actually named
2375 something starting with __ and the normal name is an alias. */
2376 #if defined (__stub_snprintf) || defined (__stub___snprintf)
2384 if { (eval echo configure:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2386 eval "ac_cv_func_snprintf=yes"
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2391 eval "ac_cv_func_snprintf=no"
2396 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
2397 echo "$ac_t""yes" 1>&6
2398 cat >> confdefs.h <<\EOF
2399 #define HAVE_SNPRINTF 1
2403 echo "$ac_t""no" 1>&6
2406 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
2407 echo "configure:2408: checking for vsnprintf" >&5
2408 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2414 /* System header to define __stub macros and hopefully few prototypes,
2415 which can conflict with char vsnprintf(); below. */
2417 /* Override any gcc2 internal prototype to avoid an error. */
2418 /* We use char because int might match the return type of a gcc2
2419 builtin and then its argument prototype would still apply. */
2424 /* The GNU C library defines this for functions which it implements
2425 to always fail with ENOSYS. Some functions are actually named
2426 something starting with __ and the normal name is an alias. */
2427 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
2435 if { (eval echo configure:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2437 eval "ac_cv_func_vsnprintf=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 eval "ac_cv_func_vsnprintf=no"
2447 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
2448 echo "$ac_t""yes" 1>&6
2449 cat >> confdefs.h <<\EOF
2450 #define HAVE_VSNPRINTF 1
2454 echo "$ac_t""no" 1>&6
2458 # Check whether --enable-debug or --disable-debug was given.
2459 if test "${enable_debug+set}" = set; then
2460 enableval="$enable_debug"
2461 case "${enableval}" in
2464 *) { echo "configure: error: bad value ${enableval} for --enable-debug" 1>&2; exit 1; } ;;
2471 if test x$debug = xtrue; then
2472 CPPFLAGS="-DDEBUG $CPPFLAGS"
2476 if test x$GCC = xyes; then
2477 CFLAGS="-Wall $CFLAGS"
2481 cat > confcache <<\EOF
2482 # This file is a shell script that caches the results of configure
2483 # tests run on this system so they can be shared between configure
2484 # scripts and configure runs. It is not useful on other systems.
2485 # If it contains results you don't want to keep, you may remove or edit it.
2487 # By default, configure uses ./config.cache as the cache file,
2488 # creating it if it does not exist already. You can give configure
2489 # the --cache-file=FILE option to use a different cache file; that is
2490 # what configure does when it calls configure scripts in
2491 # subdirectories, so they share the cache.
2492 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2493 # config.status only pays attention to the cache file if you give it the
2494 # --recheck option to rerun configure.
2497 # The following way of writing the cache mishandles newlines in values,
2498 # but we know of no workaround that is simple, portable, and efficient.
2499 # So, don't put newlines in cache variables' values.
2500 # Ultrix sh set writes to stderr and can't be redirected directly,
2501 # and sets the high bit in the cache file unless we assign to the vars.
2503 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2505 # `set' does not quote correctly, so add quotes (double-quote substitution
2506 # turns \\\\ into \\, and sed turns \\ into \).
2508 -e "s/'/'\\\\''/g" \
2509 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2512 # `set' quotes correctly as required by POSIX, so do not add quotes.
2513 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2516 if cmp -s $cache_file confcache; then
2519 if test -w $cache_file; then
2520 echo "updating cache $cache_file"
2521 cat confcache > $cache_file
2523 echo "not updating unwritable cache $cache_file"
2528 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2530 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2531 # Let make expand exec_prefix.
2532 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2534 # Any assignment to VPATH causes Sun make to only execute
2535 # the first set of double-colon rules, so remove it if not needed.
2536 # If there is a colon in the path, we need to keep it.
2537 if test "x$srcdir" = x.; then
2538 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2541 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2543 DEFS=-DHAVE_CONFIG_H
2545 # Without the "./", some shells look in PATH for config.status.
2546 : ${CONFIG_STATUS=./config.status}
2548 echo creating $CONFIG_STATUS
2549 rm -f $CONFIG_STATUS
2550 cat > $CONFIG_STATUS <<EOF
2552 # Generated automatically by configure.
2553 # Run this file to recreate the current configuration.
2554 # This directory was configured as follows,
2555 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2557 # $0 $ac_configure_args
2559 # Compiler output produced by configure, useful for debugging
2560 # configure, is in ./config.log if it exists.
2562 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2565 case "\$ac_option" in
2566 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2567 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2568 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2569 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2570 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2572 -help | --help | --hel | --he | --h)
2573 echo "\$ac_cs_usage"; exit 0 ;;
2574 *) echo "\$ac_cs_usage"; exit 1 ;;
2578 ac_given_srcdir=$srcdir
2579 ac_given_INSTALL="$INSTALL"
2581 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2583 cat >> $CONFIG_STATUS <<EOF
2585 # Protect against being on the right side of a sed subst in config.status.
2586 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2587 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2591 s%@CFLAGS@%$CFLAGS%g
2592 s%@CPPFLAGS@%$CPPFLAGS%g
2593 s%@CXXFLAGS@%$CXXFLAGS%g
2594 s%@FFLAGS@%$FFLAGS%g
2596 s%@LDFLAGS@%$LDFLAGS%g
2598 s%@exec_prefix@%$exec_prefix%g
2599 s%@prefix@%$prefix%g
2600 s%@program_transform_name@%$program_transform_name%g
2601 s%@bindir@%$bindir%g
2602 s%@sbindir@%$sbindir%g
2603 s%@libexecdir@%$libexecdir%g
2604 s%@datadir@%$datadir%g
2605 s%@sysconfdir@%$sysconfdir%g
2606 s%@sharedstatedir@%$sharedstatedir%g
2607 s%@localstatedir@%$localstatedir%g
2608 s%@libdir@%$libdir%g
2609 s%@includedir@%$includedir%g
2610 s%@oldincludedir@%$oldincludedir%g
2611 s%@infodir@%$infodir%g
2612 s%@mandir@%$mandir%g
2613 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2614 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2615 s%@INSTALL_DATA@%$INSTALL_DATA%g
2616 s%@PACKAGE@%$PACKAGE%g
2617 s%@VERSION@%$VERSION%g
2618 s%@ACLOCAL@%$ACLOCAL%g
2619 s%@AUTOCONF@%$AUTOCONF%g
2620 s%@AUTOMAKE@%$AUTOMAKE%g
2621 s%@AUTOHEADER@%$AUTOHEADER%g
2622 s%@MAKEINFO@%$MAKEINFO%g
2623 s%@SET_MAKE@%$SET_MAKE%g
2625 s%@host_alias@%$host_alias%g
2626 s%@host_cpu@%$host_cpu%g
2627 s%@host_vendor@%$host_vendor%g
2628 s%@host_os@%$host_os%g
2632 s%@ANSI2KNR@%$ANSI2KNR%g
2637 cat >> $CONFIG_STATUS <<\EOF
2639 # Split the substitutions into bite-sized pieces for seds with
2640 # small command number limits, like on Digital OSF/1 and HP-UX.
2641 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2642 ac_file=1 # Number of current file.
2643 ac_beg=1 # First line for current file.
2644 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2647 while $ac_more_lines; do
2648 if test $ac_beg -gt 1; then
2649 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2651 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2653 if test ! -s conftest.s$ac_file; then
2655 rm -f conftest.s$ac_file
2657 if test -z "$ac_sed_cmds"; then
2658 ac_sed_cmds="sed -f conftest.s$ac_file"
2660 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2662 ac_file=`expr $ac_file + 1`
2664 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2667 if test -z "$ac_sed_cmds"; then
2672 cat >> $CONFIG_STATUS <<EOF
2674 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2676 cat >> $CONFIG_STATUS <<\EOF
2677 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2678 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2680 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2681 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2682 *) ac_file_in="${ac_file}.in" ;;
2685 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2687 # Remove last slash and all that follows it. Not all systems have dirname.
2688 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2689 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2690 # The file is in a subdirectory.
2691 test ! -d "$ac_dir" && mkdir "$ac_dir"
2692 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2693 # A "../" for each directory in $ac_dir_suffix.
2694 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2696 ac_dir_suffix= ac_dots=
2699 case "$ac_given_srcdir" in
2701 if test -z "$ac_dots"; then top_srcdir=.
2702 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2703 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2705 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2706 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2709 case "$ac_given_INSTALL" in
2710 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2711 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2714 echo creating "$ac_file"
2716 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2718 *Makefile*) ac_comsub="1i\\
2719 # $configure_input" ;;
2723 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2725 s%@configure_input@%$configure_input%g
2726 s%@srcdir@%$srcdir%g
2727 s%@top_srcdir@%$top_srcdir%g
2728 s%@INSTALL@%$INSTALL%g
2729 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2733 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2734 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2736 # ac_d sets the value in "#define NAME VALUE" lines.
2737 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2738 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2741 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2742 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2743 ac_uB='\([ ]\)%\1#\2define\3'
2746 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2747 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2748 ac_eB='$%\1#\2define\3'
2752 if test "${CONFIG_HEADERS+set}" != set; then
2754 cat >> $CONFIG_STATUS <<EOF
2755 CONFIG_HEADERS="config.h"
2757 cat >> $CONFIG_STATUS <<\EOF
2759 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2760 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2762 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2763 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2764 *) ac_file_in="${ac_file}.in" ;;
2767 echo creating $ac_file
2769 rm -f conftest.frag conftest.in conftest.out
2770 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2771 cat $ac_file_inputs > conftest.in
2775 # Transform confdefs.h into a sed script conftest.vals that substitutes
2776 # the proper values into config.h.in to produce config.h. And first:
2777 # Protect against being on the right side of a sed subst in config.status.
2778 # Protect against being in an unquoted here document in config.status.
2780 cat > conftest.hdr <<\EOF
2783 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2787 sed -n -f conftest.hdr confdefs.h > conftest.vals
2790 # This sed command replaces #undef with comments. This is necessary, for
2791 # example, in the case of _POSIX_SOURCE, which is predefined and required
2792 # on some systems where configure will not decide to define it.
2793 cat >> conftest.vals <<\EOF
2794 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2797 # Break up conftest.vals because some shells have a limit on
2798 # the size of here documents, and old seds have small limits too.
2803 ac_lines=`grep -c . conftest.vals`
2804 # grep -c gives empty output for an empty file on some AIX systems.
2805 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2806 # Write a limited-size here document to conftest.frag.
2807 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2808 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2810 sed -f conftest.frag conftest.in > conftest.out
2812 mv conftest.out conftest.in
2814 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2816 mv conftest.tail conftest.vals
2820 cat >> $CONFIG_STATUS <<\EOF
2821 rm -f conftest.frag conftest.h
2822 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2823 cat conftest.in >> conftest.h
2825 if cmp -s $ac_file conftest.h 2>/dev/null; then
2826 echo "$ac_file is unchanged"
2829 # Remove last slash and all that follows it. Not all systems have dirname.
2830 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2831 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2832 # The file is in a subdirectory.
2833 test ! -d "$ac_dir" && mkdir "$ac_dir"
2836 mv conftest.h $ac_file
2841 cat >> $CONFIG_STATUS <<EOF
2845 cat >> $CONFIG_STATUS <<\EOF
2846 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2850 chmod +x $CONFIG_STATUS
2851 rm -fr confdefs* $ac_clean_files
2852 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1