3 # From configure.in Revision: 1.195
7 # Guess values for system-dependent variables and create Makefiles.
8 # Generated automatically using autoconf version 2.13.19990117
9 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
16 ac_default_prefix=/usr/local
17 # Any additions from configure.in:
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
189 --enable and --with options recognized:
190 --with-system-type=XXX test: override derived host system-type
191 --enable-add-ons=DIR... used to check if we are a glibc add-on.
192 --without-cxx do not adjust ncurses bool to match C++
193 --without-cxx-binding do not build C++ binding and demo
194 --without-ada suppress check for Ada95, don't build demo
195 --without-progs suppress build with programs (e.g., tic)
196 --with-install-prefix prefixes actual install-location
197 Options to Specify How Manpages are Installed:
198 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
199 optionally formatted, e.g., gzip,formatted
200 --with-manpage-renames specify manpage-renaming
201 --with-manpage-symlinks specify manpage-symlinks
202 Options to Specify the Libraries Built/Used:
203 --with-shared generate shared-libraries
206 --with-normal generate normal-libraries (default)
207 --with-debug generate debug-libraries (default)
208 --with-profile generate profile-libraries
209 --with-termlib generate separate terminfo library
210 --with-dbmalloc test: use Conor Cahill's dbmalloc library
211 --with-dmalloc test: use Gray Watson's dmalloc library
212 --with-gpm use Alessandro Rubini's GPM library
213 --enable-rpath use rpath option when generating shared libraries
214 --with-shlib-version=X Specify rel or abi version for shared libs
215 Fine-Tuning Your Configuration:
216 --disable-overwrite leave out the link to -lcurses
217 --disable-database use only built-in data
220 --with-fallbacks=XXX specify list of fallback terminal descriptions
221 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
222 --disable-big-core assume machine has little memory
223 --enable-termcap compile in termcap fallback support
224 --enable-getcap fast termcap load, no xrefs to terminfo
225 --enable-getcap-cache cache translated termcaps in ~/.terminfo
226 --enable-symlinks make tic use symbolic links not hard links
227 --enable-broken_linker compile with broken-linker support code
228 --enable-bsdpad recognize BSD-style prefix padding
229 --with-rcs-ids compile-in RCS identifiers
231 --disable-ext-funcs disable function-extensions
234 --enable-const compile with extra/non-standard const
235 --enable-hashmap compile with hashmap scrolling-optimization code
236 --enable-no-padding compile with \$NCURSES_NO_PADDING code
237 --enable-sigwinch compile with SIGWINCH handler
238 --enable-tcap-names compile with user-definable terminal capabilities
240 --with-develop enable all experimental options for testing
241 --enable-colorfgbg compile with experimental \$COLORFGBG code
242 --enable-hard-tabs compile with experimental hard-tabs code
243 --enable-safe-sprintf compile with experimental safe-sprintf code
244 --disable-scroll-hints compile without scroll-hints code
245 --enable-widec compile with experimental wide-char code
248 --enable-xmc-glitch compile with experimental xmc code
249 Testing/development Options:
250 --enable-echo build: display "compiling" commands (default)
251 --enable-warnings build: turn on GCC compiler warnings
252 --enable-assertions test: turn on generation of assertion code
253 --disable-leaks test: suppress permanent memory-leaks
254 --enable-expanded test: generate functions for certain macros
255 --disable-macros test: use functions rather than macros
256 Ada95 Binding Options:
257 --with-ada-compiler=CMD Specify Ada95 compiler command (default gnatmake)
258 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
259 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
265 -host | --host | --hos | --ho)
267 -host=* | --host=* | --hos=* | --ho=*)
270 -includedir | --includedir | --includedi | --included | --include \
271 | --includ | --inclu | --incl | --inc)
272 ac_prev=includedir ;;
273 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
274 | --includ=* | --inclu=* | --incl=* | --inc=*)
275 includedir="$ac_optarg" ;;
277 -infodir | --infodir | --infodi | --infod | --info | --inf)
279 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
280 infodir="$ac_optarg" ;;
282 -libdir | --libdir | --libdi | --libd)
284 -libdir=* | --libdir=* | --libdi=* | --libd=*)
285 libdir="$ac_optarg" ;;
287 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
288 | --libexe | --libex | --libe)
289 ac_prev=libexecdir ;;
290 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
291 | --libexe=* | --libex=* | --libe=*)
292 libexecdir="$ac_optarg" ;;
294 -localstatedir | --localstatedir | --localstatedi | --localstated \
295 | --localstate | --localstat | --localsta | --localst \
296 | --locals | --local | --loca | --loc | --lo)
297 ac_prev=localstatedir ;;
298 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
299 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
300 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
301 localstatedir="$ac_optarg" ;;
303 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
305 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
306 mandir="$ac_optarg" ;;
309 # Obsolete; use --without-fp.
312 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
316 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
317 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
320 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
321 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
322 | --oldin | --oldi | --old | --ol | --o)
323 ac_prev=oldincludedir ;;
324 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
325 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
326 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
327 oldincludedir="$ac_optarg" ;;
329 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
331 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
332 prefix="$ac_optarg" ;;
334 -program-prefix | --program-prefix | --program-prefi | --program-pref \
335 | --program-pre | --program-pr | --program-p)
336 ac_prev=program_prefix ;;
337 -program-prefix=* | --program-prefix=* | --program-prefi=* \
338 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
339 program_prefix="$ac_optarg" ;;
341 -program-suffix | --program-suffix | --program-suffi | --program-suff \
342 | --program-suf | --program-su | --program-s)
343 ac_prev=program_suffix ;;
344 -program-suffix=* | --program-suffix=* | --program-suffi=* \
345 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
346 program_suffix="$ac_optarg" ;;
348 -program-transform-name | --program-transform-name \
349 | --program-transform-nam | --program-transform-na \
350 | --program-transform-n | --program-transform- \
351 | --program-transform | --program-transfor \
352 | --program-transfo | --program-transf \
353 | --program-trans | --program-tran \
354 | --progr-tra | --program-tr | --program-t)
355 ac_prev=program_transform_name ;;
356 -program-transform-name=* | --program-transform-name=* \
357 | --program-transform-nam=* | --program-transform-na=* \
358 | --program-transform-n=* | --program-transform-=* \
359 | --program-transform=* | --program-transfor=* \
360 | --program-transfo=* | --program-transf=* \
361 | --program-trans=* | --program-tran=* \
362 | --progr-tra=* | --program-tr=* | --program-t=*)
363 program_transform_name="$ac_optarg" ;;
365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
366 | -silent | --silent | --silen | --sile | --sil)
369 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
371 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
373 sbindir="$ac_optarg" ;;
375 -sharedstatedir | --sharedstatedir | --sharedstatedi \
376 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
377 | --sharedst | --shareds | --shared | --share | --shar \
379 ac_prev=sharedstatedir ;;
380 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
381 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
382 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
384 sharedstatedir="$ac_optarg" ;;
386 -site | --site | --sit)
388 -site=* | --site=* | --sit=*)
391 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
393 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
394 srcdir="$ac_optarg" ;;
396 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
397 | --syscon | --sysco | --sysc | --sys | --sy)
398 ac_prev=sysconfdir ;;
399 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
400 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
401 sysconfdir="$ac_optarg" ;;
403 -target | --target | --targe | --targ | --tar | --ta | --t)
405 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
406 target="$ac_optarg" ;;
408 -v | -verbose | --verbose | --verbos | --verbo | --verb)
411 -version | --version | --versio | --versi | --vers)
412 echo "configure generated by autoconf version 2.13.19990117"
416 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
419 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421 ac_package=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}='$ac_optarg'" ;;
428 -without-* | --without-*)
429 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
430 # Reject names that are not valid shell variable names.
431 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
432 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
434 ac_package=`echo $ac_package| sed 's/-/_/g'`
435 eval "with_${ac_package}=no" ;;
438 # Obsolete; use --with-x.
441 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
442 | --x-incl | --x-inc | --x-in | --x-i)
443 ac_prev=x_includes ;;
444 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
445 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
446 x_includes="$ac_optarg" ;;
448 -x-libraries | --x-libraries | --x-librarie | --x-librari \
449 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
450 ac_prev=x_libraries ;;
451 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
452 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
453 x_libraries="$ac_optarg" ;;
455 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
459 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
460 echo "configure: warning: $ac_option: invalid host type" 1>&2
462 if test "x$nonopt" != xNONE; then
463 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
471 if test -n "$ac_prev"; then
472 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
475 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
477 # File descriptor usage:
480 # 2 errors and warnings
481 # 3 some systems may open it to /dev/tty
482 # 4 used on the Kubota Titan
483 # 6 checking for... messages and results
484 # 5 compiler messages saved in config.log
485 if test "$silent" = yes; then
493 This file contains any messages produced by compilers while
494 running configure, to aid debugging if configure makes a mistake.
497 # Strip out --no-create and --no-recursion so they do not pile up.
498 # Also quote any args containing shell metacharacters.
503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
504 | --no-cr | --no-c) ;;
505 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
506 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
507 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
508 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
509 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
514 # Only set these to C if already set. These must not be set unconditionally
515 # because not all systems understand e.g. LANG=C (notably SCO).
516 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
517 # Non-C LC_CTYPE values break the ctype check.
518 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
519 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
520 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
521 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
523 # confdefs.h avoids OS command line length limits that DEFS can exceed.
524 rm -rf conftest* confdefs.h
525 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
528 # A filename unique to this package, relative to the directory that
529 # configure is in, which we can look for to find out if srcdir is correct.
530 ac_unique_file=ncurses/base/lib_initscr.c
532 # Find the source files, if location was not specified.
533 if test -z "$srcdir"; then
534 ac_srcdir_defaulted=yes
535 # Try the directory containing this script, then its parent.
537 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
538 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
540 if test ! -r $srcdir/$ac_unique_file; then
544 ac_srcdir_defaulted=no
546 if test ! -r $srcdir/$ac_unique_file; then
547 if test "$ac_srcdir_defaulted" = yes; then
548 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
550 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
553 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
555 # Prefer explicitly selected file to automatically selected ones.
556 if test -z "$CONFIG_SITE"; then
557 if test "x$prefix" != xNONE; then
558 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
560 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
563 for ac_site_file in $CONFIG_SITE; do
564 if test -r "$ac_site_file"; then
565 echo "loading site script $ac_site_file"
570 if test -r "$cache_file"; then
571 echo "loading cache $cache_file"
574 echo "creating cache $cache_file"
579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
580 ac_cpp='$CPP $CPPFLAGS'
581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
583 cross_compiling=$ac_cv_prog_cc_cross
587 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
588 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
589 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
596 ac_n= ac_c='\c' ac_t=
603 NCURSES_MAJOR="`egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
604 NCURSES_MINOR="`egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
605 NCURSES_PATCH="`egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
606 cf_cv_abi_version=${NCURSES_MAJOR}
607 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
608 echo "$ac_t""Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version (`date`)" 1>&6
618 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
619 if test -f $ac_dir/install-sh; then
621 ac_install_sh="$ac_aux_dir/install-sh -c"
623 elif test -f $ac_dir/install.sh; then
625 ac_install_sh="$ac_aux_dir/install.sh -c"
629 if test -z "$ac_aux_dir"; then
630 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
632 ac_config_guess=$ac_aux_dir/config.guess
633 ac_config_sub=$ac_aux_dir/config.sub
634 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
637 if test -f $srcdir/config.guess ; then
639 # Make sure we can run config.sub.
640 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
641 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
644 echo $ac_n "checking host system type""... $ac_c" 1>&6
645 echo "configure:646: checking host system type" >&5
648 case "$host_alias" in
652 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
653 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
655 *) host_alias=$nonopt ;;
659 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
660 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
661 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
662 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
663 echo "$ac_t""$host" 1>&6
665 system_name="$host_os"
667 system_name="`(uname -s -r) 2>/dev/null`"
668 if test -z "$system_name" ; then
669 system_name="`(hostname) 2>/dev/null`"
672 test -n "$system_name" && cat >> confdefs.h <<EOF
673 #define SYSTEM_NAME "$system_name"
676 if eval "test \"`echo '$''{'cf_cv_system_name'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
679 cf_cv_system_name="$system_name"
683 test -z "$system_name" && system_name="$cf_cv_system_name"
684 test -n "$cf_cv_system_name" && echo "$ac_t"""Configuring for $cf_cv_system_name"" 1>&6
686 if test ".$system_name" != ".$cf_cv_system_name" ; then
687 echo "$ac_t""Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" 1>&6
688 { echo "configure: error: "Please remove config.cache and try again."" 1>&2; exit 1; }
692 # Check whether --with-system-type or --without-system-type was given.
693 if test "${with_system_type+set}" = set; then
694 withval="$with_system_type"
695 echo "configure: warning: overriding system type to $withval" 1>&2
696 cf_cv_system_name=$withval
700 # We need a configure script only when compiling as part of GNU C library.
701 # Here we have to generate one of the files we need while compiling.
703 # The only problem is that users of the package might think they have to
704 # run configure themself and find it irritating when nothing happens.
706 # So we try here to find out whether we are called from the glibc configure
710 # Check whether --enable-add-ons or --disable-add-ons was given.
711 if test "${enable_add_ons+set}" = set; then
712 enableval="$enable_add_ons"
719 if test x"$glibc_add_on" = "xyes" ; then
722 rm -f $srcdir/Makefile
723 cp $srcdir/Makefile.glibc $srcdir/Makefile
724 echo "ncurses `grep \"^[ ]*ncurses-version[ ]*=.*$\" \
725 $srcdir/Makefile | sed -e \
726 's/^[ ]*ncurses-version[ ]*=[ ]*\([^ ^ ]*\)[ ]*$/\1/'`" > $srcdir/Banner
730 ### Save the given $CFLAGS to allow user-override.
731 cf_user_CFLAGS="$CFLAGS"
733 ### Default install-location
735 echo $ac_n "checking for prefix""... $ac_c" 1>&6
736 echo "configure:737: checking for prefix" >&5
737 if test "x$prefix" = "xNONE" ; then
738 case "$cf_cv_system_name" in
739 # non-vendor systems don't have a conflict
740 openbsd*|netbsd*|freebsd*|linux*)
743 *) prefix=$ac_default_prefix
747 echo "$ac_t""$prefix" 1>&6
749 if test "x$prefix" = "xNONE" ; then
750 echo $ac_n "checking for default include-directory""... $ac_c" 1>&6
751 echo "configure:752: checking for default include-directory" >&5
752 test -n "$verbose" && echo 1>&6
755 $includedir/ncurses \
757 $prefix/include/ncurses \
759 /usr/local/include/ncurses \
763 cf_dir=`eval echo $cf_symbol`
764 if test -f $cf_dir/curses.h ; then
765 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
766 includedir="$cf_symbol"
767 test -n "$verbose" && echo $ac_n " found " 1>&6
771 test -n "$verbose" && echo " tested $cf_dir" 1>&6
773 echo "$ac_t""$includedir" 1>&6
777 ### Checks for programs.
778 # Extract the first word of "gcc", so it can be a program name with args.
779 set dummy gcc; ac_word=$2
780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
781 echo "configure:782: checking for $ac_word" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 if test -n "$CC"; then
786 ac_cv_prog_CC="$CC" # Let the user override the test.
788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
790 for ac_dir in $ac_dummy; do
791 test -z "$ac_dir" && ac_dir=.
792 if test -f $ac_dir/$ac_word; then
801 if test -n "$CC"; then
802 echo "$ac_t""$CC" 1>&6
804 echo "$ac_t""no" 1>&6
807 if test -z "$CC"; then
808 # Extract the first word of "cc", so it can be a program name with args.
809 set dummy cc; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 if test -n "$CC"; then
816 ac_cv_prog_CC="$CC" # Let the user override the test.
818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
821 for ac_dir in $ac_dummy; do
822 test -z "$ac_dir" && ac_dir=.
823 if test -f $ac_dir/$ac_word; then
824 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
833 if test $ac_prog_rejected = yes; then
834 # We found a bogon in the path, so make sure we never use it.
835 set dummy $ac_cv_prog_CC
837 if test $# -gt 0; then
838 # We chose a different compiler from the bogus one.
839 # However, it has the same basename, so the bogon will be chosen
840 # first if we set CC to just the basename; use the full file name.
842 set dummy "$ac_dir/$ac_word" "$@"
850 if test -n "$CC"; then
851 echo "$ac_t""$CC" 1>&6
853 echo "$ac_t""no" 1>&6
856 if test -z "$CC"; then
859 # Extract the first word of "cl", so it can be a program name with args.
860 set dummy cl; ac_word=$2
861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
862 echo "configure:863: checking for $ac_word" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 if test -n "$CC"; then
867 ac_cv_prog_CC="$CC" # Let the user override the test.
869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
871 for ac_dir in $ac_dummy; do
872 test -z "$ac_dir" && ac_dir=.
873 if test -f $ac_dir/$ac_word; then
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
885 echo "$ac_t""no" 1>&6
890 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
893 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
894 echo "configure:895: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
898 ac_cpp='$CPP $CPPFLAGS'
899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
901 cross_compiling=$ac_cv_prog_cc_cross
903 cat > conftest.$ac_ext << EOF
905 #line 906 "configure"
906 #include "confdefs.h"
910 if { (eval echo configure:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
911 ac_cv_prog_cc_works=yes
912 # If we can't run a trivial program, we are probably using a cross compiler.
913 if (./conftest; exit) 2>/dev/null; then
914 ac_cv_prog_cc_cross=no
916 ac_cv_prog_cc_cross=yes
919 echo "configure: failed program was:" >&5
920 cat conftest.$ac_ext >&5
921 ac_cv_prog_cc_works=no
925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
926 ac_cpp='$CPP $CPPFLAGS'
927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
929 cross_compiling=$ac_cv_prog_cc_cross
931 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
932 if test $ac_cv_prog_cc_works = no; then
933 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
936 echo "configure:937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
937 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
938 cross_compiling=$ac_cv_prog_cc_cross
940 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
941 echo "configure:942: checking whether we are using GNU C" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
945 cat > conftest.c <<EOF
950 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
957 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
959 if test $ac_cv_prog_gcc = yes; then
965 ac_test_CFLAGS="${CFLAGS+set}"
966 ac_save_CFLAGS="$CFLAGS"
968 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
969 echo "configure:970: checking whether ${CC-cc} accepts -g" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 echo 'void f(){}' > conftest.c
974 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
983 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
984 if test "$ac_test_CFLAGS" = set; then
985 CFLAGS="$ac_save_CFLAGS"
986 elif test $ac_cv_prog_cc_g = yes; then
987 if test "$GCC" = yes; then
993 if test "$GCC" = yes; then
1000 if test -n "$GCC" ; then
1001 echo $ac_n "checking version of gcc""... $ac_c" 1>&6
1002 echo "configure:1003: checking version of gcc" >&5
1003 eval "$CC --version"
1005 if test $host != $build; then
1006 for ac_prog in $CC gcc cc
1008 # Extract the first word of "$ac_prog", so it can be a program name with args.
1009 set dummy $ac_prog; ac_word=$2
1010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1011 echo "configure:1012: checking for $ac_word" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 if test -n "$BUILD_CC"; then
1016 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1020 for ac_dir in $ac_dummy; do
1021 test -z "$ac_dir" && ac_dir=.
1022 if test -f $ac_dir/$ac_word; then
1023 ac_cv_prog_BUILD_CC="$ac_prog"
1030 BUILD_CC="$ac_cv_prog_BUILD_CC"
1031 if test -n "$BUILD_CC"; then
1032 echo "$ac_t""$BUILD_CC" 1>&6
1034 echo "$ac_t""no" 1>&6
1037 test -n "$BUILD_CC" && break
1041 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1042 echo "configure:1043: checking how to run the C preprocessor" >&5
1043 # On Suns, sometimes $CPP names a directory.
1044 if test -n "$CPP" && test -d "$CPP"; then
1047 if test -z "$CPP"; then
1048 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1051 # This must be in double quotes, not single quotes, because CPP may get
1052 # substituted into the Makefile and "${CC-cc}" will confuse make.
1054 # On the NeXT, cc -E runs the code through the compiler's parser,
1055 # not just through cpp.
1056 cat > conftest.$ac_ext <<EOF
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1063 { (eval echo configure:1064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1065 if test -z "$ac_err"; then
1069 echo "configure: failed program was:" >&5
1070 cat conftest.$ac_ext >&5
1072 CPP="${CC-cc} -E -traditional-cpp"
1073 cat > conftest.$ac_ext <<EOF
1074 #line 1075 "configure"
1075 #include "confdefs.h"
1079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1080 { (eval echo configure:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1082 if test -z "$ac_err"; then
1086 echo "configure: failed program was:" >&5
1087 cat conftest.$ac_ext >&5
1089 CPP="${CC-cc} -nologo -E"
1090 cat > conftest.$ac_ext <<EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1097 { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1099 if test -z "$ac_err"; then
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1113 ac_cv_prog_CPP="$CPP"
1115 CPP="$ac_cv_prog_CPP"
1117 ac_cv_prog_CPP="$CPP"
1119 echo "$ac_t""$CPP" 1>&6
1121 if test $ac_cv_prog_gcc = yes; then
1122 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1123 echo "configure:1124: checking whether ${CC-cc} needs -traditional" >&5
1124 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 ac_pattern="Autoconf.*'x'"
1128 cat > conftest.$ac_ext <<EOF
1129 #line 1130 "configure"
1130 #include "confdefs.h"
1134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1135 egrep "$ac_pattern" >/dev/null 2>&1; then
1137 ac_cv_prog_gcc_traditional=yes
1140 ac_cv_prog_gcc_traditional=no
1145 if test $ac_cv_prog_gcc_traditional = no; then
1146 cat > conftest.$ac_ext <<EOF
1147 #line 1148 "configure"
1148 #include "confdefs.h"
1152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1153 egrep "$ac_pattern" >/dev/null 2>&1; then
1155 ac_cv_prog_gcc_traditional=yes
1162 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1163 if test $ac_cv_prog_gcc_traditional = yes; then
1164 CC="$CC -traditional"
1168 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1169 echo "configure:1170: checking for POSIXized ISC" >&5
1170 if test -d /etc/conf/kconfig.d &&
1171 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1173 echo "$ac_t""yes" 1>&6
1174 ISC=yes # If later tests want to check for ISC.
1175 cat >> confdefs.h <<\EOF
1176 #define _POSIX_SOURCE 1
1179 if test "$GCC" = yes; then
1185 echo "$ac_t""no" 1>&6
1190 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1191 echo "configure:1192: checking for ${CC-cc} option to accept ANSI C" >&5
1192 if eval "test \"`echo '$''{'cf_cv_ansi_cc'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1197 cf_save_CFLAGS="$CFLAGS"
1198 # Don't try gcc -ansi; that turns off useful extensions and
1199 # breaks some systems' header files.
1200 # AIX -qlanglvl=ansi
1201 # Ultrix and OSF/1 -std1
1202 # HP-UX -Aa -D_HPUX_SOURCE
1204 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
1205 for cf_arg in "-DCC_HAS_PROTOS" \
1210 "-Aa -D_HPUX_SOURCE" \
1213 CFLAGS="$cf_save_CFLAGS $cf_arg"
1214 cat > conftest.$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1218 #ifndef CC_HAS_PROTOS
1219 #if !defined(__STDC__) || (__STDC__ != 1)
1226 int test (int i, double x);
1227 struct s1 {int (*f) (int a);};
1228 struct s2 {int (*f) (double a);};
1231 if { (eval echo configure:1232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1233 cf_cv_ansi_cc="$cf_arg"; break
1235 echo "configure: failed program was:" >&5
1236 cat conftest.$ac_ext >&5
1240 CFLAGS="$cf_save_CFLAGS"
1244 echo "$ac_t""$cf_cv_ansi_cc" 1>&6
1246 if test "$cf_cv_ansi_cc" != "no"; then
1247 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
1248 CFLAGS="$CFLAGS $cf_cv_ansi_cc"
1250 cat >> confdefs.h <<\EOF
1251 #define CC_HAS_PROTOS 1
1258 if test "$cf_cv_ansi_cc" = "no"; then
1259 { echo "configure: error: Your compiler does not appear to recognize prototypes.
1260 You have the following choices:
1261 a. adjust your compiler options
1262 b. get an up-to-date compiler
1263 c. use a wrapper such as unproto" 1>&2; exit 1; }
1269 case $cf_cv_system_name in
1271 # We make sure -Zexe is not used -- it would interfere with @PROG_EXT@
1272 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
1273 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
1274 LDFLAGS=`echo "$LDFLAGS -Zmt -Zcrtdll" | sed "s/-Zexe//g"`
1284 case "$cf_cv_system_name" in
1286 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
1288 *) LDPATH=$PATH:/sbin:/usr/sbin
1289 # Extract the first word of "ldconfig", so it can be a program name with args.
1290 set dummy ldconfig; ac_word=$2
1291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1292 echo "configure:1293: checking for $ac_word" >&5
1293 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1298 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
1301 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
1304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1306 for ac_dir in $ac_dummy; do
1307 test -z "$ac_dir" && ac_dir=.
1308 if test -f $ac_dir/$ac_word; then
1309 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
1317 LDCONFIG="$ac_cv_path_LDCONFIG"
1318 if test -n "$LDCONFIG"; then
1319 echo "$ac_t""$LDCONFIG" 1>&6
1321 echo "$ac_t""no" 1>&6
1328 echo $ac_n "checking if you want to ensure bool is consistent with C++""... $ac_c" 1>&6
1329 echo "configure:1330: checking if you want to ensure bool is consistent with C++" >&5
1331 # Check whether --with-cxx or --without-cxx was given.
1332 if test "${with_cxx+set}" = set; then
1334 cf_with_cxx=$withval
1339 echo "$ac_t""$cf_with_cxx" 1>&6
1340 if test "X$cf_with_cxx" = Xno ; then
1344 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1346 # Extract the first word of "$ac_prog", so it can be a program name with args.
1347 set dummy $ac_prog; ac_word=$2
1348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1349 echo "configure:1350: checking for $ac_word" >&5
1350 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1353 if test -n "$CXX"; then
1354 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1358 for ac_dir in $ac_dummy; do
1359 test -z "$ac_dir" && ac_dir=.
1360 if test -f $ac_dir/$ac_word; then
1361 ac_cv_prog_CXX="$ac_prog"
1368 CXX="$ac_cv_prog_CXX"
1369 if test -n "$CXX"; then
1370 echo "$ac_t""$CXX" 1>&6
1372 echo "$ac_t""no" 1>&6
1375 test -n "$CXX" && break
1377 test -n "$CXX" || CXX="gcc"
1380 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1384 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1385 ac_cpp='$CXXCPP $CPPFLAGS'
1386 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1387 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1388 cross_compiling=$ac_cv_prog_cxx_cross
1390 cat > conftest.$ac_ext << EOF
1392 #line 1393 "configure"
1393 #include "confdefs.h"
1395 int main(){return(0);}
1397 if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1398 ac_cv_prog_cxx_works=yes
1399 # If we can't run a trivial program, we are probably using a cross compiler.
1400 if (./conftest; exit) 2>/dev/null; then
1401 ac_cv_prog_cxx_cross=no
1403 ac_cv_prog_cxx_cross=yes
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1408 ac_cv_prog_cxx_works=no
1412 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1413 ac_cpp='$CPP $CPPFLAGS'
1414 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1415 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1416 cross_compiling=$ac_cv_prog_cc_cross
1418 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1419 if test $ac_cv_prog_cxx_works = no; then
1420 echo "$ac_t""You don't have any C++ compiler, too bad" 1>&6; cf_with_cxx=no; CXX=""; GXX="";
1422 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1423 echo "configure:1424: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1424 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1425 cross_compiling=$ac_cv_prog_cxx_cross
1427 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1428 echo "configure:1429: checking whether we are using GNU C++" >&5
1429 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 cat > conftest.C <<EOF
1437 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1444 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1446 if test $ac_cv_prog_gxx = yes; then
1452 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1453 ac_save_CXXFLAGS="$CXXFLAGS"
1455 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1456 echo "configure:1457: checking whether ${CXX-g++} accepts -g" >&5
1457 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1460 echo 'void f(){}' > conftest.cc
1461 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1462 ac_cv_prog_cxx_g=yes
1470 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1471 if test "$ac_test_CXXFLAGS" = set; then
1472 CXXFLAGS="$ac_save_CXXFLAGS"
1473 elif test $ac_cv_prog_cxx_g = yes; then
1474 if test "$GXX" = yes; then
1480 if test "$GXX" = yes; then
1488 if test -n "$GXX" ; then case "`${CXX-g++} --version`" in 1*|2.[0-6]*) GXX=""; CXX=""; ac_cv_prog_gxx=no; cf_cxx_library=no ; echo No: templates do not work;; esac; fi
1490 echo $ac_n "checking if you want to build C++ binding and demo""... $ac_c" 1>&6
1491 echo "configure:1492: checking if you want to build C++ binding and demo" >&5
1493 # Check whether --with-cxx-binding or --without-cxx-binding was given.
1494 if test "${with_cxx_binding+set}" = set; then
1495 withval="$with_cxx_binding"
1496 cf_with_cxx_binding=$withval
1498 cf_with_cxx_binding=$cf_with_cxx
1501 echo "$ac_t""$cf_with_cxx_binding" 1>&6
1503 echo $ac_n "checking if you want to build with Ada95""... $ac_c" 1>&6
1504 echo "configure:1505: checking if you want to build with Ada95" >&5
1506 # Check whether --with-ada or --without-ada was given.
1507 if test "${with_ada+set}" = set; then
1509 cf_with_ada=$withval
1514 echo "$ac_t""$cf_with_ada" 1>&6
1516 echo $ac_n "checking if you want to build programs such as tic""... $ac_c" 1>&6
1517 echo "configure:1518: checking if you want to build programs such as tic" >&5
1519 # Check whether --with-progs or --without-progs was given.
1520 if test "${with_progs+set}" = set; then
1521 withval="$with_progs"
1522 cf_with_progs=$withval
1527 echo "$ac_t""$cf_with_progs" 1>&6
1529 modules_to_build="ncurses"
1530 if test "X$cf_with_progs" != Xno ; then
1531 modules_to_build="$modules_to_build progs tack"
1533 modules_to_build="$modules_to_build panel menu form"
1535 for ac_prog in mawk gawk nawk awk
1537 # Extract the first word of "$ac_prog", so it can be a program name with args.
1538 set dummy $ac_prog; ac_word=$2
1539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_word" >&5
1541 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 if test -n "$AWK"; then
1545 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1549 for ac_dir in $ac_dummy; do
1550 test -z "$ac_dir" && ac_dir=.
1551 if test -f $ac_dir/$ac_word; then
1552 ac_cv_prog_AWK="$ac_prog"
1559 AWK="$ac_cv_prog_AWK"
1560 if test -n "$AWK"; then
1561 echo "$ac_t""$AWK" 1>&6
1563 echo "$ac_t""no" 1>&6
1566 test -n "$AWK" && break
1569 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1570 echo "configure:1571: checking whether ${MAKE-make} sets \${MAKE}" >&5
1571 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1572 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1573 echo $ac_n "(cached) $ac_c" 1>&6
1575 cat > conftestmake <<\EOF
1577 @echo 'ac_maketemp="${MAKE}"'
1579 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1580 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1581 if test -n "$ac_maketemp"; then
1582 eval ac_cv_prog_make_${ac_make}_set=yes
1584 eval ac_cv_prog_make_${ac_make}_set=no
1588 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1589 echo "$ac_t""yes" 1>&6
1592 echo "$ac_t""no" 1>&6
1593 SET_MAKE="MAKE=${MAKE-make}"
1596 # Find a good install program. We prefer a C program (faster),
1597 # so one script is as good as another. But avoid the broken or
1598 # incompatible versions:
1599 # SysV /etc/install, /usr/sbin/install
1600 # SunOS /usr/etc/install
1601 # IRIX /sbin/install
1603 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1604 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1605 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1606 # ./install, which can be erroneously created by make from ./install.sh.
1607 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1608 echo "configure:1609: checking for a BSD compatible install" >&5
1609 if test -z "$INSTALL"; then
1610 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1613 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1614 for ac_dir in $PATH; do
1615 # Account for people who put trailing slashes in PATH elements.
1617 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1619 # OSF1 and SCO ODT 3.0 have their own names for install.
1620 # Don't use installbsd from OSF since it installs stuff as root
1622 for ac_prog in ginstall scoinst install; do
1623 if test -f $ac_dir/$ac_prog; then
1624 if test $ac_prog = install &&
1625 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1626 # AIX install. It has an incompatible calling convention.
1629 ac_cv_path_install="$ac_dir/$ac_prog -c"
1640 if test "${ac_cv_path_install+set}" = set; then
1641 INSTALL="$ac_cv_path_install"
1643 # As a last resort, use the slow shell script. We don't cache a
1644 # path for INSTALL within a source directory, because that will
1645 # break other packages using the cache if that directory is
1646 # removed, or if the path is relative.
1647 INSTALL="$ac_install_sh"
1650 echo "$ac_t""$INSTALL" 1>&6
1652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1653 # It thinks the first close brace ends the variable substitution.
1654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1658 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1664 cf_dir=`echo $INSTALL|sed -e 's%/[^/]*$%%'`
1665 test -z "$cf_dir" && cf_dir=.
1666 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's:^.*/::'`
1670 echo $ac_n "checking for long file names""... $ac_c" 1>&6
1671 echo "configure:1672: checking for long file names" >&5
1672 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1675 ac_cv_sys_long_file_names=yes
1676 # Test for long file names in all the places we know might matter:
1677 # . the current directory, where building will happen
1678 # $prefix/lib where we will be installing things
1679 # $exec_prefix/lib likewise
1680 # eval it to expand exec_prefix.
1681 # $TMPDIR if set, where it might want to write temporary files
1682 # if $TMPDIR is not set:
1683 # /tmp where it might want to write temporary files
1686 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
1687 ac_tmpdirs="$TMPDIR"
1689 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
1691 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
1692 test -d $ac_dir || continue
1693 test -w $ac_dir || continue # It is less confusing to not echo anything here.
1694 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
1695 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
1696 val=`cat $ac_dir/conftest9012345 2>/dev/null`
1697 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
1698 ac_cv_sys_long_file_names=no
1699 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
1702 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
1706 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
1707 if test $ac_cv_sys_long_file_names = yes; then
1708 cat >> confdefs.h <<\EOF
1709 #define HAVE_LONG_FILE_NAMES 1
1714 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1715 echo "configure:1716: checking whether ln -s works" >&5
1716 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1720 if ln -s X conftestdata 2>/dev/null
1723 ac_cv_prog_LN_S="ln -s"
1728 LN_S="$ac_cv_prog_LN_S"
1729 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1730 echo "$ac_t""yes" 1>&6
1732 echo "$ac_t""no" 1>&6
1735 # Extract the first word of "ranlib", so it can be a program name with args.
1736 set dummy ranlib; ac_word=$2
1737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1738 echo "configure:1739: checking for $ac_word" >&5
1739 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6
1742 if test -n "$RANLIB"; then
1743 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1747 for ac_dir in $ac_dummy; do
1748 test -z "$ac_dir" && ac_dir=.
1749 if test -f $ac_dir/$ac_word; then
1750 ac_cv_prog_RANLIB="ranlib"
1755 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1758 RANLIB="$ac_cv_prog_RANLIB"
1759 if test -n "$RANLIB"; then
1760 echo "$ac_t""$RANLIB" 1>&6
1762 echo "$ac_t""no" 1>&6
1765 for ac_prog in tdlint lint alint
1767 # Extract the first word of "$ac_prog", so it can be a program name with args.
1768 set dummy $ac_prog; ac_word=$2
1769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1770 echo "configure:1771: checking for $ac_word" >&5
1771 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 if test -n "$LINT"; then
1775 ac_cv_prog_LINT="$LINT" # Let the user override the test.
1777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1779 for ac_dir in $ac_dummy; do
1780 test -z "$ac_dir" && ac_dir=.
1781 if test -f $ac_dir/$ac_word; then
1782 ac_cv_prog_LINT="$ac_prog"
1789 LINT="$ac_cv_prog_LINT"
1790 if test -n "$LINT"; then
1791 echo "$ac_t""$LINT" 1>&6
1793 echo "$ac_t""no" 1>&6
1796 test -n "$LINT" && break
1799 for ac_prog in man man_db
1801 # Extract the first word of "$ac_prog", so it can be a program name with args.
1802 set dummy $ac_prog; ac_word=$2
1803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1804 echo "configure:1805: checking for $ac_word" >&5
1805 if eval "test \"`echo '$''{'ac_cv_prog_MAN'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 if test -n "$MAN"; then
1809 ac_cv_prog_MAN="$MAN" # Let the user override the test.
1811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1813 for ac_dir in $ac_dummy; do
1814 test -z "$ac_dir" && ac_dir=.
1815 if test -f $ac_dir/$ac_word; then
1816 ac_cv_prog_MAN="$ac_prog"
1823 MAN="$ac_cv_prog_MAN"
1824 if test -n "$MAN"; then
1825 echo "$ac_t""$MAN" 1>&6
1827 echo "$ac_t""no" 1>&6
1830 test -n "$MAN" && break
1835 if eval "test \"`echo '$''{'cf_cv_subst_LD'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1839 echo $ac_n "checking for loader (symbol LD)""... $ac_c" 1>&6
1840 echo "configure:1841: checking for loader (symbol LD)" >&5
1841 test -z "$LD" && LD=ld
1842 echo "$ac_t""$LD" 1>&6
1847 LD=${cf_cv_subst_LD}
1849 if eval "test \"`echo '$''{'cf_cv_subst_AR'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1853 echo $ac_n "checking for archiver (symbol AR)""... $ac_c" 1>&6
1854 echo "configure:1855: checking for archiver (symbol AR)" >&5
1855 test -z "$AR" && AR=ar
1856 echo "$ac_t""$AR" 1>&6
1861 AR=${cf_cv_subst_AR}
1863 if eval "test \"`echo '$''{'cf_cv_subst_AR_OPTS'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1867 echo $ac_n "checking for archiver options (symbol AR_OPTS)""... $ac_c" 1>&6
1868 echo "configure:1869: checking for archiver options (symbol AR_OPTS)" >&5
1869 test -z "$AR_OPTS" && AR_OPTS=rv
1870 echo "$ac_t""$AR_OPTS" 1>&6
1872 cf_cv_subst_AR_OPTS=$AR_OPTS
1875 AR_OPTS=${cf_cv_subst_AR_OPTS}
1879 echo $ac_n "checking for makeflags variable""... $ac_c" 1>&6
1880 echo "configure:1881: checking for makeflags variable" >&5
1881 if eval "test \"`echo '$''{'cf_cv_makeflags'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1886 for cf_option in '-$(MAKEFLAGS)' '$(MFLAGS)'
1888 cat >cf_makeflags.tmp <<CF_EOF
1890 @ echo '.$cf_option'
1892 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null`
1893 case "$cf_result" in
1895 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
1896 case "$cf_result" in
1897 .*CC=*) cf_cv_makeflags=
1899 *) cf_cv_makeflags=$cf_option
1904 *) echo no match "$cf_result"
1908 rm -f cf_makeflags.tmp
1911 echo "$ac_t""$cf_cv_makeflags" 1>&6
1915 echo $ac_n "checking if you have specified an install-prefix""... $ac_c" 1>&6
1916 echo "configure:1917: checking if you have specified an install-prefix" >&5
1918 # Check whether --with-install-prefix or --without-install-prefix was given.
1919 if test "${with_install_prefix+set}" = set; then
1920 withval="$with_install_prefix"
1921 case "$withval" in #(vi
1924 *) INSTALL_PREFIX="$withval"
1929 echo "$ac_t""$INSTALL_PREFIX" 1>&6
1932 ###############################################################################
1935 echo $ac_n "checking format of man-pages""... $ac_c" 1>&6
1936 echo "configure:1937: checking format of man-pages" >&5
1939 # Check whether --with-manpage-format or --without-manpage-format was given.
1940 if test "${with_manpage_format+set}" = set; then
1941 withval="$with_manpage_format"
1942 cf_manpage_form=$withval
1944 cf_manpage_form=unknown
1948 case ".$cf_manpage_form" in
1949 .gzip|.compress|.BSDI|.normal|.formatted) # (vi
1952 if test -z "$MANPATH" ; then
1953 MANPATH="/usr/man:/usr/share/man"
1955 # look for the 'date' man-page (it's most likely to be installed!)
1956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1957 cf_manpage_form=unknown
1958 for cf_dir in $MANPATH; do
1959 test -z "$cf_dir" && cf_dir=/usr/man
1960 for cf_name in $cf_dir/*/date.[01]* $cf_dir/*/date
1962 cf_test=`echo $cf_name | sed -e 's/*//'`
1963 if test "x$cf_test" = "x$cf_name" ; then
1965 *.gz) cf_manpage_form=gzip;;
1966 *.Z) cf_manpage_form=compress;;
1967 *.0) cf_manpage_form=BSDI,formatted;;
1968 *) cf_manpage_form=normal;;
1973 if test "$cf_manpage_form" != "unknown" ; then
1980 echo "configure: warning: Unexpected manpage-format" 1>&2
1984 echo "$ac_t""$cf_manpage_form" 1>&6
1987 echo $ac_n "checking for manpage renaming""... $ac_c" 1>&6
1988 echo "configure:1989: checking for manpage renaming" >&5
1991 # Check whether --with-manpage-renames or --without-manpage-renames was given.
1992 if test "${with_manpage_renames+set}" = set; then
1993 withval="$with_manpage_renames"
1994 cf_manpage_renames=$withval
1996 cf_manpage_renames=yes
2000 case ".$cf_manpage_renames" in #(vi
2004 # Debian 'man' program?
2005 if test -f /etc/debian_version ; then
2006 cf_manpage_renames=`cd $srcdir && pwd`/man/man_db.renames
2008 cf_manpage_renames=no
2013 if test "$cf_manpage_renames" != no ; then
2014 if test ! -f $cf_manpage_renames ; then
2015 { echo "configure: error: not a filename: $cf_manpage_renames" 1>&2; exit 1; }
2018 test ! -d man && mkdir man
2020 # Construct a sed-script to perform renaming within man-pages
2021 if test -n "$cf_manpage_renames" ; then
2022 test ! -d man && mkdir man
2023 $srcdir/man/make_sed.sh $cf_manpage_renames >man/edit_man.sed
2027 echo "$ac_t""$cf_manpage_renames" 1>&6
2030 echo $ac_n "checking for manpage symlinks""... $ac_c" 1>&6
2031 echo "configure:2032: checking for manpage symlinks" >&5
2034 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
2035 if test "${with_manpage_symlinks+set}" = set; then
2036 withval="$with_manpage_symlinks"
2037 cf_manpage_symlinks=$withval
2039 cf_manpage_symlinks=yes
2043 echo "$ac_t""$cf_manpage_symlinks" 1>&6
2046 if test "$prefix" = "NONE" ; then
2047 cf_prefix="$ac_default_prefix"
2052 case "$cf_manpage_form" in # (vi
2054 cf_subdir='$mandir/cat'
2058 cf_subdir='$mandir/man'
2063 test ! -d man && mkdir man
2064 cat >man/edit_man.sh <<CF_EOF
2066 # this script is generated by the configure-script
2069 MKDIRS="`cd $srcdir && pwd`/mkinstalldirs"
2071 INSTALL_DATA="$INSTALL_DATA"
2073 TMP=\${TMPDIR-/tmp}/man\$\$
2074 trap "rm -f \$TMP" 0 1 2 5 15
2087 *.orig|*.rej) ;; #(vi
2089 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
2090 if test \$verb = installing ; then
2091 if test ! -d $cf_subdir\${section} ; then
2092 \$MKDIRS $cf_subdir\$section
2096 source=\`basename \$i\`
2098 if test "$cf_manpage_symlinks" = yes ; then
2099 cat >>man/edit_man.sh <<CF_EOF
2100 aliases=\`sed -f \$srcdir/manlinks.sed \$source | sort -u\`
2103 if test "$cf_manpage_renames" = no ; then
2104 cat >>man/edit_man.sh <<CF_EOF
2105 target=$cf_subdir\${section}/\$source
2106 sed -e "s,@DATADIR@,\$datadir," < \$i >\$TMP
2109 cat >>man/edit_man.sh <<CF_EOF
2110 target=\`grep "^\$source" $cf_manpage_renames | $AWK '{print \$2}'\`
2111 if test -z "\$target" ; then
2112 echo '? missing rename for '\$source
2115 target="$cf_subdir\$section/\$target"
2116 test \$verb = installing && sed -e "s,@DATADIR@,\$datadir," < \$i | sed -f edit_man.sed >\$TMP
2119 if test $cf_format = yes ; then
2120 cat >>man/edit_man.sh <<CF_EOF
2121 nroff -man \$TMP >\$TMP.out
2125 case "$cf_manpage_form" in #(vi
2127 cat >>man/edit_man.sh <<CF_EOF
2128 if test \$verb = installing ; then
2129 if ( compress -f \$TMP )
2138 cat >>man/edit_man.sh <<CF_EOF
2139 if test \$verb = installing ; then
2140 if ( gzip -f \$TMP )
2145 target="\$target.gz"
2149 cat >>man/edit_man.sh <<CF_EOF
2150 # BSDI installs only .0 suffixes in the cat directories
2151 target="\`echo \$target|sed -e 's/\.[1-9]\+.\?/.0/'\`"
2155 cat >>man/edit_man.sh <<CF_EOF
2156 echo \$verb \$target
2157 suffix=\`basename \$target | sed -e 's/^[^.]*//'\`
2158 if test \$verb = installing ; then
2159 \$INSTALL_DATA \$TMP \$target
2160 test -n "\$aliases" && (
2161 cd $cf_subdir\${section} && (
2162 target=\`basename \$target\`
2163 for cf_alias in \$aliases
2165 if test -f \$cf_alias\${suffix} ; then
2166 if ( cmp -s \$target \$cf_alias\${suffix} )
2170 echo .. \$verb alias \$cf_alias\${suffix}
2171 rm -f \$cf_alias\${suffix}
2172 $LN_S \$target \$cf_alias\${suffix}
2175 echo .. \$verb alias \$cf_alias\${suffix}
2176 rm -f \$cf_alias\${suffix}
2177 $LN_S \$target \$cf_alias\${suffix}
2184 test -n "\$aliases" && (
2185 cd $cf_subdir\${section} && (
2186 for cf_alias in \$aliases
2188 echo .. \$verb alias \$cf_alias\${suffix}
2189 rm -f \$cf_alias\${suffix}
2199 chmod 755 man/edit_man.sh
2203 ###############################################################################
2206 ### Options to allow the user to specify the set of libraries which are used.
2207 ### Use "--without-normal --with-shared" to allow the default model to be
2208 ### shared, for example.
2211 echo $ac_n "checking if you want to build shared libraries""... $ac_c" 1>&6
2212 echo "configure:2213: checking if you want to build shared libraries" >&5
2214 # Check whether --with-shared or --without-shared was given.
2215 if test "${with_shared+set}" = set; then
2216 withval="$with_shared"
2217 with_shared=$withval
2222 echo "$ac_t""$with_shared" 1>&6
2223 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
2225 echo $ac_n "checking if you want to build static libraries""... $ac_c" 1>&6
2226 echo "configure:2227: checking if you want to build static libraries" >&5
2228 # Check whether --with-normal or --without-normal was given.
2229 if test "${with_normal+set}" = set; then
2230 withval="$with_normal"
2231 with_normal=$withval
2236 echo "$ac_t""$with_normal" 1>&6
2237 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
2239 echo $ac_n "checking if you want to build debug libraries""... $ac_c" 1>&6
2240 echo "configure:2241: checking if you want to build debug libraries" >&5
2242 # Check whether --with-debug or --without-debug was given.
2243 if test "${with_debug+set}" = set; then
2244 withval="$with_debug"
2250 echo "$ac_t""$with_debug" 1>&6
2251 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
2253 echo $ac_n "checking if you want to build profiling libraries""... $ac_c" 1>&6
2254 echo "configure:2255: checking if you want to build profiling libraries" >&5
2256 # Check whether --with-profile or --without-profile was given.
2257 if test "${with_profile+set}" = set; then
2258 withval="$with_profile"
2259 with_profile=$withval
2264 echo "$ac_t""$with_profile" 1>&6
2265 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
2267 ###############################################################################
2269 echo $ac_n "checking for specified models""... $ac_c" 1>&6
2270 echo "configure:2271: checking for specified models" >&5
2271 test -z "$cf_list_models" && cf_list_models=normal
2272 echo "$ac_t""$cf_list_models" 1>&6
2274 ### Use the first model as the default, and save its suffix for use in building
2275 ### up test-applications.
2276 echo $ac_n "checking for default model""... $ac_c" 1>&6
2277 echo "configure:2278: checking for default model" >&5
2278 DFT_LWR_MODEL=`echo $cf_list_models | $AWK '{print $1}'`
2279 echo "$ac_t""$DFT_LWR_MODEL" 1>&6
2282 DFT_UPR_MODEL=`echo $DFT_LWR_MODEL | tr '[a-z]' '[A-Z]'`
2293 case $cf_cv_system_name in
2294 os2) LIB_PREFIX='' ;;
2295 *) LIB_PREFIX='lib' ;;
2297 cf_prefix=$LIB_PREFIX
2300 LIB_PREFIX=$cf_prefix
2306 ###############################################################################
2308 echo $ac_n "checking if you want to build a separate terminfo library""... $ac_c" 1>&6
2309 echo "configure:2310: checking if you want to build a separate terminfo library" >&5
2311 # Check whether --with-termlib or --without-termlib was given.
2312 if test "${with_termlib+set}" = set; then
2313 withval="$with_termlib"
2314 with_termlib=$withval
2319 echo "$ac_t""$with_termlib" 1>&6
2321 ### Checks for special libraries, must be done up-front.
2322 echo $ac_n "checking if you want to link with dbmalloc for testing""... $ac_c" 1>&6
2323 echo "configure:2324: checking if you want to link with dbmalloc for testing" >&5
2325 # Check whether --with-dbmalloc or --without-dbmalloc was given.
2326 if test "${with_dbmalloc+set}" = set; then
2327 withval="$with_dbmalloc"
2328 with_dbmalloc=$withval
2333 echo "$ac_t""$with_dbmalloc" 1>&6
2334 if test $with_dbmalloc = yes ; then
2335 echo $ac_n "checking for debug_malloc in -ldbmalloc""... $ac_c" 1>&6
2336 echo "configure:2337: checking for debug_malloc in -ldbmalloc" >&5
2337 ac_lib_var=`echo dbmalloc'_'debug_malloc | sed 'y%./+-%__p_%'`
2338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 ac_save_LIBS="$LIBS"
2342 LIBS="-ldbmalloc $LIBS"
2343 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2346 /* Override any gcc2 internal prototype to avoid an error. */
2347 /* We use char because int might match the return type of a gcc2
2348 builtin and then its argument prototype would still apply. */
2349 char debug_malloc();
2355 if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2357 eval "ac_cv_lib_$ac_lib_var=yes"
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2362 eval "ac_cv_lib_$ac_lib_var=no"
2365 LIBS="$ac_save_LIBS"
2368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_lib=HAVE_LIB`echo dbmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2371 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2372 cat >> confdefs.h <<EOF
2373 #define $ac_tr_lib 1
2376 LIBS="-ldbmalloc $LIBS"
2379 echo "$ac_t""no" 1>&6
2384 echo $ac_n "checking if you want to link with dmalloc for testing""... $ac_c" 1>&6
2385 echo "configure:2386: checking if you want to link with dmalloc for testing" >&5
2387 # Check whether --with-dmalloc or --without-dmalloc was given.
2388 if test "${with_dmalloc+set}" = set; then
2389 withval="$with_dmalloc"
2390 with_dmalloc=$withval
2395 echo "$ac_t""$with_dmalloc" 1>&6
2396 if test $with_dmalloc = yes ; then
2397 echo $ac_n "checking for dmalloc_debug in -ldmalloc""... $ac_c" 1>&6
2398 echo "configure:2399: checking for dmalloc_debug in -ldmalloc" >&5
2399 ac_lib_var=`echo dmalloc'_'dmalloc_debug | sed 'y%./+-%__p_%'`
2400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 ac_save_LIBS="$LIBS"
2404 LIBS="-ldmalloc $LIBS"
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 /* Override any gcc2 internal prototype to avoid an error. */
2409 /* We use char because int might match the return type of a gcc2
2410 builtin and then its argument prototype would still apply. */
2411 char dmalloc_debug();
2417 if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2419 eval "ac_cv_lib_$ac_lib_var=yes"
2421 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2424 eval "ac_cv_lib_$ac_lib_var=no"
2427 LIBS="$ac_save_LIBS"
2430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2431 echo "$ac_t""yes" 1>&6
2432 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2433 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2434 cat >> confdefs.h <<EOF
2435 #define $ac_tr_lib 1
2438 LIBS="-ldmalloc $LIBS"
2441 echo "$ac_t""no" 1>&6
2447 echo $ac_n "checking if you want to link with the gpm mouse library""... $ac_c" 1>&6
2448 echo "configure:2449: checking if you want to link with the gpm mouse library" >&5
2450 # Check whether --with-gpm or --without-gpm was given.
2451 if test "${with_gpm+set}" = set; then
2458 echo "$ac_t""$with_gpm" 1>&6
2459 if test $with_gpm = yes ; then
2460 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
2461 echo "configure:2462: checking for Gpm_Open in -lgpm" >&5
2462 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
2463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 ac_save_LIBS="$LIBS"
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2471 /* Override any gcc2 internal prototype to avoid an error. */
2472 /* We use char because int might match the return type of a gcc2
2473 builtin and then its argument prototype would still apply. */
2480 if { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2482 eval "ac_cv_lib_$ac_lib_var=yes"
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2487 eval "ac_cv_lib_$ac_lib_var=no"
2490 LIBS="$ac_save_LIBS"
2493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2494 echo "$ac_t""yes" 1>&6
2496 EXTRA_LIBS="-lgpm -lncurses $EXTRA_LIBS"
2497 SHLIB_LIST="-lgpm $SHLIB_LIST"
2498 cat >> confdefs.h <<\EOF
2499 #define HAVE_LIBGPM 1
2504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2506 echo "configure:2507: checking for $ac_hdr" >&5
2507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516 { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2518 if test -z "$ac_err"; then
2520 eval "ac_cv_header_$ac_safe=yes"
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2526 eval "ac_cv_header_$ac_safe=no"
2530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2531 echo "$ac_t""yes" 1>&6
2532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2533 cat >> confdefs.h <<EOF
2534 #define $ac_tr_hdr 1
2538 echo "$ac_t""no" 1>&6
2544 echo "$ac_t""no" 1>&6
2545 echo "configure: warning: Cannot link with gpm library - read the FAQ" 1>&2
2551 if test X"$CC_G_OPT" = X"" ; then
2553 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
2557 if test X"$CXX_G_OPT" = X"" ; then
2559 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
2563 echo $ac_n "checking for default loader flags""... $ac_c" 1>&6
2564 echo "configure:2565: checking for default loader flags" >&5
2565 case $DFT_LWR_MODEL in
2566 normal) LD_MODEL='' ;;
2567 debug) LD_MODEL=$CC_G_OPT ;;
2568 profile) LD_MODEL='-pg';;
2569 shared) LD_MODEL='' ;;
2571 echo "$ac_t""$LD_MODEL" 1>&6
2573 echo $ac_n "checking if rpath option should be used""... $ac_c" 1>&6
2574 echo "configure:2575: checking if rpath option should be used" >&5
2576 # Check whether --enable-rpath or --disable-rpath was given.
2577 if test "${enable_rpath+set}" = set; then
2578 enableval="$enable_rpath"
2579 cf_cv_ld_rpath=$enableval
2584 echo "$ac_t""$cf_cv_ld_rpath" 1>&6
2591 INSTALL_LIB="-m 644"
2593 cf_cv_do_symlinks=no
2595 echo $ac_n "checking if release/abi version should be used for shared libs""... $ac_c" 1>&6
2596 echo "configure:2597: checking if release/abi version should be used for shared libs" >&5
2598 # Check whether --with-shlib-version or --without-shlib-version was given.
2599 if test "${with_shlib_version+set}" = set; then
2600 withval="$with_shlib_version"
2601 test -z "$withval" && withval=auto
2602 case $withval in #(vi
2604 cf_cv_shlib_version=auto
2606 rel|abi|auto|no) #(vi
2607 cf_cv_shlib_version=$withval
2610 { echo "configure: error: option value must be one of: rel, abi, auto or no" 1>&2; exit 1; }
2615 cf_cv_shlib_version=auto
2618 echo "$ac_t""$cf_cv_shlib_version" 1>&6
2622 # Some less-capable ports of gcc support only -fpic
2626 echo $ac_n "checking which $CC option to use""... $ac_c" 1>&6
2627 echo "configure:2628: checking which $CC option to use" >&5
2628 cf_save_CFLAGS="$CFLAGS"
2629 for CC_SHARED_OPTS in -fPIC -fpic ''
2631 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2640 if { (eval echo configure:2641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2649 echo "$ac_t""$CC_SHARED_OPTS" 1>&6
2650 CFLAGS="$cf_save_CFLAGS"
2653 case $cf_cv_system_name in
2655 MK_SHARED_LIB='$(CC) -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
2658 # (tested with gcc 2.7.2 -- I don't have c89)
2659 if test -n "$GCC"; then
2660 LD_SHARED_OPTS='-Xlinker +b -Xlinker $(libdir)'
2663 LD_SHARED_OPTS='-Wl,+b,$(libdir)'
2665 MK_SHARED_LIB='$(LD) +b $(libdir) -b +h `basename $@` -o $@'
2666 # HP-UX shared libraries must be executable, and should be
2667 # readonly to exploit a quirk in the memory manager.
2668 INSTALL_LIB="-m 555"
2669 cf_cv_do_symlinks=reverse
2672 # (tested with gcc 2.7.2 -- I don't have c89)
2673 if test -n "$GCC"; then
2674 LD_SHARED_OPTS='-Xlinker +b -Xlinker $(libdir)'
2677 LD_SHARED_OPTS='-Wl,+b,$(libdir)'
2679 MK_SHARED_LIB='$(LD) +b $(libdir) -b -o $@'
2680 # HP-UX shared libraries must be executable, and should be
2681 # readonly to exploit a quirk in the memory manager.
2682 INSTALL_LIB="-m 555"
2685 # tested with IRIX 5.2 and 'cc'.
2686 if test -z "$GCC"; then
2687 CC_SHARED_OPTS='-KPIC'
2689 MK_SHARED_LIB='$(LD) -shared -rdata_shared -soname `basename $@` -o $@'
2690 cf_cv_rm_so_locs=yes
2693 # tested with Linux 2.0.29 and gcc 2.7.2 (ELF)
2694 test $cf_cv_ld_rpath = yes && cf_ld_rpath_opt="-Wl,-rpath,"
2695 if test $DFT_LWR_MODEL = "shared" ; then
2696 LOCAL_LDFLAGS='-Wl,-rpath,../lib'
2697 LOCAL_LDFLAGS2='-Wl,-rpath,../../lib'
2699 test $cf_cv_shlib_version = auto && cf_cv_shlib_version=rel
2700 MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION),-stats,-lc -o $@'
2703 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
2704 MK_SHARED_LIB='$(LD) -Bshareable -soname,`basename $@.$(ABI_VERSION)` -o $@'
2707 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
2708 MK_SHARED_LIB='$(LD) -Bshareable -o $@'
2709 test $cf_cv_shlib_version = auto && cf_cv_shlib_version=rel
2712 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
2713 test $cf_cv_ld_rpath = yes && cf_ld_rpath_opt="-Wl,-rpath,"
2714 if test $DFT_LWR_MODEL = "shared" && test $cf_cv_ld_rpath = yes ; then
2715 LOCAL_LDFLAGS='-Wl,-rpath,../lib'
2716 LOCAL_LDFLAGS2='-Wl,-rpath,../../lib'
2717 EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS"
2718 MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@'
2719 if test $cf_cv_shlib_version = auto; then
2720 if test ! -f /usr/libexec/ld.elf_so; then
2721 cf_cv_shlib_version=rel
2725 MK_SHARED_LIB='$(LD) -Bshareable -o $@'
2729 # tested with OSF/1 V3.2 and 'cc'
2730 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
2731 # link with shared libs).
2732 MK_SHARED_LIB='$(LD) -set_version $(REL_VERSION):$(ABI_VERSION) -expect_unresolved "*" -shared -soname `basename $@`'
2733 test $cf_cv_ld_rpath = yes && cf_ld_rpath_opt="-rpath"
2736 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
2739 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
2740 if test $DFT_LWR_MODEL = "shared" ; then
2741 LOCAL_LDFLAGS='-Wl,-rpath,../lib'
2742 LOCAL_LDFLAGS2='-Wl,-rpath,../../lib'
2744 cf_cv_rm_so_locs=yes
2746 sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
2747 # tested with osr5.0.5
2748 if test $ac_cv_prog_gcc != yes; then
2749 CC_SHARED_OPTS='-belf -KPIC'
2751 MK_SHARED_LIB='$(LD) -dy -G -h `basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@'
2752 if test $cf_cv_ld_rpath = yes ; then
2753 # only way is to set LD_RUN_PATH but no switch for it
2756 test $cf_cv_shlib_version = auto && cf_cv_shlib_version=rel
2757 LINK_PROGS='LD_RUN_PATH=$(libdir)'
2758 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
2761 # tested with SunOS 4.1.1 and gcc 2.7.0
2762 if test $ac_cv_prog_gcc != yes; then
2763 CC_SHARED_OPTS='-KPIC'
2765 MK_SHARED_LIB='$(LD) -assert pure-text -o $@'
2766 test $cf_cv_shlib_version = auto && cf_cv_shlib_version=rel
2769 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
2770 if test $ac_cv_prog_gcc != yes; then
2771 CC_SHARED_OPTS='-KPIC'
2773 MK_SHARED_LIB='$(LD) -dy -G -h `basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@'
2774 if test $cf_cv_ld_rpath = yes ; then
2775 cf_ld_rpath_opt="-R"
2776 EXTRA_LDFLAGS="-R ../lib:\$(libdir) $EXTRA_LDFLAGS"
2778 test $cf_cv_shlib_version = auto && cf_cv_shlib_version=rel
2781 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
2782 if test $ac_cv_prog_gcc != yes; then
2783 CC_SHARED_OPTS='-KPIC'
2785 MK_SHARED_LIB='$(LD) -d y -G -o $@'
2788 CC_SHARED_OPTS='unknown'
2789 MK_SHARED_LIB='echo unknown'
2793 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
2794 case "$cf_cv_shlib_version" in #(vi
2796 case "$MK_SHARED_LIB" in #(vi
2798 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
2801 echo "configure: warning: ignored --with-shlib-version" 1>&2
2807 if test -n "$cf_ld_rpath_opt" ; then
2808 echo $ac_n "checking if we need a space after rpath option""... $ac_c" 1>&6
2809 echo "configure:2810: checking if we need a space after rpath option" >&5
2810 cf_save_LIBS="$LIBS"
2811 LIBS="$LIBS ${cf_ld_rpath_opt}/usr/lib"
2812 cat > conftest.$ac_ext <<EOF
2813 #line 2814 "configure"
2814 #include "confdefs.h"
2820 if { (eval echo configure:2821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2824 echo "configure: failed program was:" >&5
2825 cat conftest.$ac_ext >&5
2830 LIBS="$cf_save_LIBS"
2831 echo "$ac_t""$cf_rpath_space" 1>&6
2832 test $cf_rpath_space = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
2833 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\$(libdir)"
2846 if test "$CC_SHARED_OPTS" = "unknown"; then
2847 for model in $cf_list_models; do
2848 if test "$model" = "shared"; then
2849 { echo "configure: error: Shared libraries are not supported in this version" 1>&2; exit 1; }
2854 ###############################################################################
2857 ### use option --disable-overwrite to leave out the link to -lcurses
2858 echo $ac_n "checking if you wish to install ncurses overwriting curses""... $ac_c" 1>&6
2859 echo "configure:2860: checking if you wish to install ncurses overwriting curses" >&5
2861 # Check whether --enable-overwrite or --disable-overwrite was given.
2862 if test "${enable_overwrite+set}" = set; then
2863 enableval="$enable_overwrite"
2864 with_overwrite=$enableval
2869 echo "$ac_t""$with_overwrite" 1>&6
2871 echo $ac_n "checking if external terminfo-database is used""... $ac_c" 1>&6
2872 echo "configure:2873: checking if external terminfo-database is used" >&5
2874 # Check whether --enable-database or --disable-database was given.
2875 if test "${enable_database+set}" = set; then
2876 enableval="$enable_database"
2877 with_database=$enableval
2882 echo "$ac_t""$with_database" 1>&6
2883 test $with_database != no && cat >> confdefs.h <<\EOF
2884 #define USE_DATABASE 1
2888 echo $ac_n "checking for list of fallback descriptions""... $ac_c" 1>&6
2889 echo "configure:2890: checking for list of fallback descriptions" >&5
2891 # Check whether --with-fallbacks or --without-fallbacks was given.
2892 if test "${with_fallbacks+set}" = set; then
2893 withval="$with_fallbacks"
2894 with_fallback=$withval
2899 echo "$ac_t""$with_fallback" 1>&6
2900 FALLBACK_LIST=`echo $with_fallback|sed -e 's/,/ /g'`
2903 echo $ac_n "checking for list of terminfo directories""... $ac_c" 1>&6
2904 echo "configure:2905: checking for list of terminfo directories" >&5
2907 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
2908 if test "${with_terminfo_dirs+set}" = set; then
2909 withval="$with_terminfo_dirs"
2912 withval="${TERMINFO_DIRS-${datadir}/terminfo}"
2915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2917 for cf_src_path in $withval
2920 case ".$cf_src_path" in #(vi
2923 .a-zA-Z:\\/*) #(vi OS/2 EMX
2926 eval cf_src_path="$cf_src_path"
2927 case ".$cf_src_path" in #(vi
2929 cf_src_path=`echo $cf_src_path | sed -e s@NONE@$ac_default_prefix@`
2934 cf_src_path=`echo $cf_src_path | sed -e s@NONE@$ac_default_prefix@`
2937 { echo "configure: error: expected a pathname" 1>&2; exit 1; }
2941 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
2942 cf_dst_path="${cf_dst_path}${cf_src_path}"
2946 eval TERMINFO_DIRS="$cf_dst_path"
2948 echo "$ac_t""$TERMINFO_DIRS" 1>&6
2949 test -n "$TERMINFO_DIRS" && cat >> confdefs.h <<EOF
2950 #define TERMINFO_DIRS "$TERMINFO_DIRS"
2954 if test $with_database = no ; then
2955 if test -z $with_fallback ; then
2956 { echo "configure: error: You have disabled the database w/o specifying fallbacks" 1>&2; exit 1; }
2960 ### use option --disable-big-core to make tic run on small machines
2961 ### We need 4Mb, check if we can allocate 50% more than that.
2962 echo $ac_n "checking if big-core option selected""... $ac_c" 1>&6
2963 echo "configure:2964: checking if big-core option selected" >&5
2965 # Check whether --enable-big-core or --disable-big-core was given.
2966 if test "${enable_big_core+set}" = set; then
2967 enableval="$enable_big_core"
2968 with_big_core=$enableval
2970 if test "$cross_compiling" = yes; then
2973 cat > conftest.$ac_ext <<EOF
2974 #line 2975 "configure"
2975 #include "confdefs.h"
2979 int main() { exit(malloc(6000000L) == 0); }
2981 if { (eval echo configure:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2985 echo "configure: failed program was:" >&5
2986 cat conftest.$ac_ext >&5
2995 echo "$ac_t""$with_big_core" 1>&6
2996 test "$with_big_core" = "yes" && cat >> confdefs.h <<\EOF
2997 #define HAVE_BIG_CORE 1
3001 ### use option --enable-termcap to compile in the termcap fallback support
3002 echo $ac_n "checking if you want termcap-fallback support""... $ac_c" 1>&6
3003 echo "configure:3004: checking if you want termcap-fallback support" >&5
3005 # Check whether --enable-termcap or --disable-termcap was given.
3006 if test "${enable_termcap+set}" = set; then
3007 enableval="$enable_termcap"
3008 with_termcap=$enableval
3013 echo "$ac_t""$with_termcap" 1>&6
3015 if test "$with_termcap" != "yes" ; then
3016 cat >> confdefs.h <<\EOF
3017 #define PURE_TERMINFO 1
3022 ### use option --enable-getcap to use a hacked getcap for reading termcaps
3023 echo $ac_n "checking if fast termcap-loader is needed""... $ac_c" 1>&6
3024 echo "configure:3025: checking if fast termcap-loader is needed" >&5
3026 # Check whether --enable-getcap or --disable-getcap was given.
3027 if test "${enable_getcap+set}" = set; then
3028 enableval="$enable_getcap"
3029 with_getcap=$enableval
3034 echo "$ac_t""$with_getcap" 1>&6
3035 test "$with_getcap" = "yes" && cat >> confdefs.h <<\EOF
3036 #define USE_GETCAP 1
3040 echo $ac_n "checking if translated termcaps will be cached in ~/.terminfo""... $ac_c" 1>&6
3041 echo "configure:3042: checking if translated termcaps will be cached in ~/.terminfo" >&5
3043 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
3044 if test "${enable_getcap_cache+set}" = set; then
3045 enableval="$enable_getcap_cache"
3046 with_getcap_cache=$enableval
3048 with_getcap_cache=no
3051 echo "$ac_t""$with_getcap_cache" 1>&6
3052 test "$with_getcap_cache" = "yes" && cat >> confdefs.h <<\EOF
3053 #define USE_GETCAP_CACHE 1
3059 ### Use option --enable-symlinks to make tic use symlinks, not hard links
3060 ### to reduce storage requirements for the terminfo database.
3066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3067 echo "configure:3068: checking for $ac_func" >&5
3068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3069 echo $ac_n "(cached) $ac_c" 1>&6
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3074 /* System header to define __stub macros and hopefully few prototypes,
3075 which can conflict with char $ac_func(); below. */
3077 /* Override any gcc2 internal prototype to avoid an error. */
3078 /* We use char because int might match the return type of a gcc2
3079 builtin and then its argument prototype would still apply. */
3084 /* The GNU C library defines this for functions which it implements
3085 to always fail with ENOSYS. Some functions are actually named
3086 something starting with __ and the normal name is an alias. */
3087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3095 if { (eval echo configure:3096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3097 eval "ac_cv_func_$ac_func=yes"
3099 echo "configure: failed program was:" >&5
3100 cat conftest.$ac_ext >&5
3102 eval "ac_cv_func_$ac_func=no"
3107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3108 echo "$ac_t""yes" 1>&6
3109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3110 cat >> confdefs.h <<EOF
3111 #define $ac_tr_func 1
3115 echo "$ac_t""no" 1>&6
3120 if test "$ac_cv_prog_cc_cross" = yes ; then
3125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_func" >&5
3127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 cat > conftest.$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3133 /* System header to define __stub macros and hopefully few prototypes,
3134 which can conflict with char $ac_func(); below. */
3136 /* Override any gcc2 internal prototype to avoid an error. */
3137 /* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3143 /* The GNU C library defines this for functions which it implements
3144 to always fail with ENOSYS. Some functions are actually named
3145 something starting with __ and the normal name is an alias. */
3146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3154 if { (eval echo configure:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3156 eval "ac_cv_func_$ac_func=yes"
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3161 eval "ac_cv_func_$ac_func=no"
3166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3167 echo "$ac_t""yes" 1>&6
3168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3169 cat >> confdefs.h <<EOF
3170 #define $ac_tr_func 1
3174 echo "$ac_t""no" 1>&6
3179 echo $ac_n "checking if link/symlink functions work""... $ac_c" 1>&6
3180 echo "configure:3181: checking if link/symlink functions work" >&5
3181 if eval "test \"`echo '$''{'cf_cv_link_funcs'+set}'`\" = set"; then
3182 echo $ac_n "(cached) $ac_c" 1>&6
3186 for cf_func in link symlink ; do
3187 if test "$cross_compiling" = yes; then
3189 eval 'ac_cv_func_'$cf_func'=error'
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3195 #include <sys/types.h>
3196 #include <sys/stat.h>
3197 #ifdef HAVE_UNISTD_H
3203 char *src = "config.log";
3204 char *dst = "conftest.chk";
3209 fail = ($cf_func("config.log", "conftest.chk") < 0)
3210 || (stat(dst, &dst_sb) < 0)
3211 || (dst_sb.st_mtime != src_sb.st_mtime);
3221 if { (eval echo configure:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3224 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
3225 eval 'ac_cv_func_'$cf_func'=yes'
3227 cf_FUNC=`echo $cf_func | tr '[a-z]' '[A-Z]'`
3229 cat >> confdefs.h <<EOF
3230 #define HAVE_$cf_FUNC 1
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3238 eval 'ac_cv_func_'$cf_func'=no'
3244 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
3248 echo "$ac_t""$cf_cv_link_funcs" 1>&6
3255 if test "$ac_cv_func_link" != yes ; then
3256 echo $ac_n "checking if tic should use symbolic links""... $ac_c" 1>&6
3257 echo "configure:3258: checking if tic should use symbolic links" >&5
3258 if test "$ac_cv_func_symlink" = yes ; then
3263 echo "$ac_t""$with_symlinks" 1>&6
3264 elif test "$ac_cv_func_symlink" != yes ; then
3265 echo $ac_n "checking if tic should use hard links""... $ac_c" 1>&6
3266 echo "configure:3267: checking if tic should use hard links" >&5
3267 if test "$ac_cv_func_link" = yes ; then
3272 echo "$ac_t""$with_links" 1>&6
3274 echo $ac_n "checking if tic should use symbolic links""... $ac_c" 1>&6
3275 echo "configure:3276: checking if tic should use symbolic links" >&5
3277 # Check whether --enable-symlinks or --disable-symlinks was given.
3278 if test "${enable_symlinks+set}" = set; then
3279 enableval="$enable_symlinks"
3280 with_symlinks=$enableval
3285 echo "$ac_t""$with_symlinks" 1>&6
3288 test "$with_links" = yes && cat >> confdefs.h <<\EOF
3292 test "$with_symlinks" = yes && cat >> confdefs.h <<\EOF
3293 #define USE_SYMLINKS 1
3297 ### use option --enable-broken-linker to force on use of broken-linker support
3298 echo $ac_n "checking if you want broken-linker support code""... $ac_c" 1>&6
3299 echo "configure:3300: checking if you want broken-linker support code" >&5
3301 # Check whether --enable-broken_linker or --disable-broken_linker was given.
3302 if test "${enable_broken_linker+set}" = set; then
3303 enableval="$enable_broken_linker"
3304 with_broken_linker=$enableval
3306 with_broken_linker=$BROKEN_LINKER
3309 echo "$ac_t""$with_broken_linker" 1>&6
3310 test "$with_broken_linker" = yes && cat >> confdefs.h <<\EOF
3311 #define BROKEN_LINKER 1
3315 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
3316 echo $ac_n "checking if tputs should process BSD-style prefix padding""... $ac_c" 1>&6
3317 echo "configure:3318: checking if tputs should process BSD-style prefix padding" >&5
3319 # Check whether --enable-bsdpad or --disable-bsdpad was given.
3320 if test "${enable_bsdpad+set}" = set; then
3321 enableval="$enable_bsdpad"
3322 with_bsdpad=$enableval
3327 echo "$ac_t""$with_bsdpad" 1>&6
3328 test "$with_bsdpad" = yes && cat >> confdefs.h <<\EOF
3333 ### Enable compiling-in rcs id's
3334 echo $ac_n "checking if RCS identifiers should be compiled-in""... $ac_c" 1>&6
3335 echo "configure:3336: checking if RCS identifiers should be compiled-in" >&5
3337 # Check whether --with-rcs-ids or --without-rcs-ids was given.
3338 if test "${with_rcs_ids+set}" = set; then
3339 withval="$with_rcs_ids"
3340 with_rcs_ids=$withval
3345 echo "$ac_t""$with_rcs_ids" 1>&6
3346 test "$with_rcs_ids" = yes && cat >> confdefs.h <<\EOF
3347 #define USE_RCS_IDS 1
3351 ###############################################################################
3354 ### Note that some functions (such as const) are normally disabled anyway.
3355 echo $ac_n "checking if you want to build with function extensions""... $ac_c" 1>&6
3356 echo "configure:3357: checking if you want to build with function extensions" >&5
3358 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
3359 if test "${enable_ext_funcs+set}" = set; then
3360 enableval="$enable_ext_funcs"
3361 with_ext_funcs=$enableval
3366 echo "$ac_t""$with_ext_funcs" 1>&6
3367 if test "$with_ext_funcs" = yes ; then
3368 cat >> confdefs.h <<\EOF
3369 #define HAVE_HAS_KEY 1
3372 cat >> confdefs.h <<\EOF
3373 #define HAVE_RESIZETERM 1
3376 cat >> confdefs.h <<\EOF
3377 #define HAVE_USE_DEFAULT_COLORS 1
3380 cat >> confdefs.h <<\EOF
3381 #define HAVE_WRESIZE 1
3384 cat >> confdefs.h <<\EOF
3385 #define NCURSES_EXT_FUNCS 1
3390 ### use option --enable-const to turn on use of const beyond that in XSI.
3391 echo $ac_n "checking for extended use of const keyword""... $ac_c" 1>&6
3392 echo "configure:3393: checking for extended use of const keyword" >&5
3394 # Check whether --enable-const or --disable-const was given.
3395 if test "${enable_const+set}" = set; then
3396 enableval="$enable_const"
3397 with_ext_const=$enableval
3402 echo "$ac_t""$with_ext_const" 1>&6
3404 if test "$with_ext_const" = yes ; then
3405 cat >> confdefs.h <<\EOF
3406 #define NCURSES_CONST const
3413 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
3414 echo $ac_n "checking if you want hashmap scrolling-optimization code""... $ac_c" 1>&6
3415 echo "configure:3416: checking if you want hashmap scrolling-optimization code" >&5
3417 # Check whether --enable-hashmap or --disable-hashmap was given.
3418 if test "${enable_hashmap+set}" = set; then
3419 enableval="$enable_hashmap"
3420 with_hashmap=$enableval
3425 echo "$ac_t""$with_hashmap" 1>&6
3426 test "$with_hashmap" = yes && cat >> confdefs.h <<\EOF
3427 #define USE_HASHMAP 1
3431 echo $ac_n "checking if you want \$NCURSES_NO_PADDING code""... $ac_c" 1>&6
3432 echo "configure:3433: checking if you want \$NCURSES_NO_PADDING code" >&5
3434 # Check whether --enable-no-padding or --disable-no-padding was given.
3435 if test "${enable_no_padding+set}" = set; then
3436 enableval="$enable_no_padding"
3437 with_no_padding=$enableval
3439 with_no_padding=$with_ext_funcs
3442 echo "$ac_t""$with_no_padding" 1>&6
3443 test "$with_no_padding" = yes && cat >> confdefs.h <<\EOF
3444 #define NCURSES_NO_PADDING 1
3448 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
3449 echo $ac_n "checking if you want SIGWINCH handler""... $ac_c" 1>&6
3450 echo "configure:3451: checking if you want SIGWINCH handler" >&5
3452 # Check whether --enable-sigwinch or --disable-sigwinch was given.
3453 if test "${enable_sigwinch+set}" = set; then
3454 enableval="$enable_sigwinch"
3455 with_sigwinch=$enableval
3457 with_sigwinch=$with_ext_funcs
3460 echo "$ac_t""$with_sigwinch" 1>&6
3461 test "$with_sigwinch" = yes && cat >> confdefs.h <<\EOF
3462 #define USE_SIGWINCH 1
3466 ### use option --enable-tcap-names to allow user to define new capabilities
3467 echo $ac_n "checking if you want user-definable terminal capabilities like termcap""... $ac_c" 1>&6
3468 echo "configure:3469: checking if you want user-definable terminal capabilities like termcap" >&5
3470 # Check whether --enable-tcap-names or --disable-tcap-names was given.
3471 if test "${enable_tcap_names+set}" = set; then
3472 enableval="$enable_tcap_names"
3473 with_tcap_names=$enableval
3475 with_tcap_names=$with_ext_funcs
3478 echo "$ac_t""$with_tcap_names" 1>&6
3480 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
3483 ###############################################################################
3485 echo $ac_n "checking if you want all experimental code""... $ac_c" 1>&6
3486 echo "configure:3487: checking if you want all experimental code" >&5
3488 # Check whether --with-develop or --without-develop was given.
3489 if test "${with_develop+set}" = set; then
3490 withval="$with_develop"
3491 with_develop=$withval
3496 echo "$ac_t""$with_develop" 1>&6
3498 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
3499 echo $ac_n "checking if you want experimental colorfgbg code""... $ac_c" 1>&6
3500 echo "configure:3501: checking if you want experimental colorfgbg code" >&5
3502 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
3503 if test "${enable_hard_tabs+set}" = set; then
3504 enableval="$enable_hard_tabs"
3505 with_colorfgbg=$enableval
3507 with_colorfgbg=$with_develop
3510 echo "$ac_t""$with_colorfgbg" 1>&6
3511 test "$with_colorfgbg" = yes && cat >> confdefs.h <<\EOF
3512 #define USE_COLORFGBG 1
3516 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
3517 echo $ac_n "checking if you want experimental hard-tabs code""... $ac_c" 1>&6
3518 echo "configure:3519: checking if you want experimental hard-tabs code" >&5
3520 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
3521 if test "${enable_hard_tabs+set}" = set; then
3522 enableval="$enable_hard_tabs"
3523 with_hardtabs=$enableval
3525 with_hardtabs=$with_develop
3528 echo "$ac_t""$with_hardtabs" 1>&6
3529 test "$with_hardtabs" = yes && cat >> confdefs.h <<\EOF
3530 #define USE_HARD_TABS 1
3534 echo $ac_n "checking if you want experimental safe-sprintf code""... $ac_c" 1>&6
3535 echo "configure:3536: checking if you want experimental safe-sprintf code" >&5
3537 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
3538 if test "${enable_safe_sprintf+set}" = set; then
3539 enableval="$enable_safe_sprintf"
3540 with_safe_sprintf=$enableval
3542 with_safe_sprintf=no
3545 echo "$ac_t""$with_safe_sprintf" 1>&6
3546 test "$with_safe_sprintf" = yes && cat >> confdefs.h <<\EOF
3547 #define USE_SAFE_SPRINTF 1
3551 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
3552 # when hashmap is used scroll hints are useless
3553 if test "$with_hashmap" = no ; then
3554 echo $ac_n "checking if you want to experiment without scrolling-hints code""... $ac_c" 1>&6
3555 echo "configure:3556: checking if you want to experiment without scrolling-hints code" >&5
3557 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
3558 if test "${enable_scroll_hints+set}" = set; then
3559 enableval="$enable_scroll_hints"
3560 with_scroll_hints=$enableval
3562 with_scroll_hints=yes
3565 echo "$ac_t""$with_scroll_hints" 1>&6
3566 test "$with_scroll_hints" = yes && cat >> confdefs.h <<\EOF
3567 #define USE_SCROLL_HINTS 1
3572 ### use option --enable-widec to turn on use of wide-character support
3573 echo $ac_n "checking if you want experimental wide-character code""... $ac_c" 1>&6
3574 echo "configure:3575: checking if you want experimental wide-character code" >&5
3576 # Check whether --enable-widec or --disable-widec was given.
3577 if test "${enable_widec+set}" = set; then
3578 enableval="$enable_widec"
3579 with_widec=$enableval
3584 echo "$ac_t""$with_widec" 1>&6
3585 if test "$with_widec" = yes ; then
3586 LIB_SUFFIX="w${LIB_SUFFIX}"
3587 cat >> confdefs.h <<\EOF
3588 #define USE_WIDEC_SUPPORT 1
3593 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
3594 echo $ac_n "checking if you want experimental xmc code""... $ac_c" 1>&6
3595 echo "configure:3596: checking if you want experimental xmc code" >&5
3597 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
3598 if test "${enable_xmc_glitch+set}" = set; then
3599 enableval="$enable_xmc_glitch"
3600 with_xmc_glitch=$enableval
3602 with_xmc_glitch=$with_develop
3605 echo "$ac_t""$with_xmc_glitch" 1>&6
3606 test "$with_xmc_glitch" = yes && cat >> confdefs.h <<\EOF
3607 #define USE_XMC_SUPPORT 1
3611 ###############################################################################
3614 ### use option --disable-echo to suppress full display compiling commands
3616 # Check whether --enable-echo or --disable-echo was given.
3617 if test "${enable_echo+set}" = set; then
3618 enableval="$enable_echo"
3619 with_echo=$enableval
3624 if test "$with_echo" = yes; then
3627 ECHO_LINK='@ echo linking $@ ... ;'
3631 ### use option --enable-warnings to turn on all gcc warnings
3633 # Check whether --enable-warnings or --disable-warnings was given.
3634 if test "${enable_warnings+set}" = set; then
3635 enableval="$enable_warnings"
3636 with_warnings=$enableval
3639 if test -n "$with_warnings"; then
3640 ADAFLAGS="$ADAFLAGS -gnatg"
3644 cat > conftest.$ac_ext <<EOF
3645 #line 3646 "configure"
3646 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
3648 echo "checking for $CC warning options" 1>&6
3649 echo "configure:3650: checking for $CC warning options" >&5
3650 cf_save_CFLAGS="$CFLAGS"
3651 EXTRA_CFLAGS="-W -Wall"
3653 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
3655 Wbad-function-cast \
3659 Wmissing-declarations \
3660 Wmissing-prototypes \
3664 Wstrict-prototypes $cf_warn_CONST
3666 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
3667 if { (eval echo configure:3668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3668 test -n "$verbose" && echo "$ac_t""... -$cf_opt" 1>&6
3669 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
3670 test "$cf_opt" = Wcast-qual && EXTRA_CFLAGS="$EXTRA_CFLAGS -DXTSTRINGDEFINES"
3674 CFLAGS="$cf_save_CFLAGS"
3682 cat > conftest.i <<EOF
3684 #define GCC_PRINTF 0
3689 #ifndef GCC_NORETURN
3690 #define GCC_NORETURN /* nothing */
3693 #define GCC_UNUSED /* nothing */
3698 echo "checking for $CC __attribute__ directives" 1>&6
3699 echo "configure:3700: checking for $CC __attribute__ directives" >&5
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 #include "conftest.h"
3704 #include "conftest.i"
3706 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3708 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3711 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3713 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3715 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3716 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3717 extern void foo(void) GCC_NORETURN;
3718 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3720 for cf_attribute in scanf printf unused noreturn
3723 CF_ATTRIBUTE=`echo $cf_attribute | tr '[a-z]' '[A-Z]'`
3725 cf_directive="__attribute__(($cf_attribute))"
3726 echo "checking for $CC $cf_directive" 1>&5
3727 case $cf_attribute in
3729 cat >conftest.h <<EOF
3730 #define GCC_$CF_ATTRIBUTE 1
3734 cat >conftest.h <<EOF
3735 #define GCC_$CF_ATTRIBUTE $cf_directive
3739 if { (eval echo configure:3740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3740 test -n "$verbose" && echo "$ac_t""... $cf_attribute" 1>&6
3741 cat conftest.h >>confdefs.h
3743 # sed -e 's/__attr.*/\/*nothing*\//' conftest.h >>confdefs.h
3747 fgrep define conftest.i >>confdefs.h
3753 ### use option --enable-assertions to turn on generation of assertion code
3755 # Check whether --enable-assertions or --disable-assertions was given.
3756 if test "${enable_assertions+set}" = set; then
3757 enableval="$enable_assertions"
3758 with_assertions=$enableval
3765 if test $with_assertions = no
3767 cat >> confdefs.h <<\EOF
3771 CPPFLAGS="$CPPFLAGS -DNDEBUG"
3773 ADAFLAGS="$ADAFLAGS -gnata"
3777 ### use option --disable-leaks to suppress "permanent" leaks, for testing
3779 # Check whether --enable-leaks or --disable-leaks was given.
3780 if test "${enable_leaks+set}" = set; then
3781 enableval="$enable_leaks"
3782 test $enableval = no && cat >> confdefs.h <<\EOF
3788 cat >> confdefs.h <<\EOF
3789 #define HAVE_NC_ALLOC_H 1
3793 ### use option --enable-expanded to generate certain macros as functions
3795 # Check whether --enable-expanded or --disable-expanded was given.
3796 if test "${enable_expanded+set}" = set; then
3797 enableval="$enable_expanded"
3798 test $enableval = yes && cat >> confdefs.h <<\EOF
3799 #define NCURSES_EXPANDED 1
3805 ### use option --disable-macros to suppress macros in favor of functions
3807 # Check whether --enable-macros or --disable-macros was given.
3808 if test "${enable_macros+set}" = set; then
3809 enableval="$enable_macros"
3810 test $enableval = no && cat >> confdefs.h <<\EOF
3811 #define NCURSES_NOMACROS 1
3817 ### Checks for libraries.
3818 echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3819 echo "configure:3820: checking for gettimeofday" >&5
3820 if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3821 echo $ac_n "(cached) $ac_c" 1>&6
3823 cat > conftest.$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 /* System header to define __stub macros and hopefully few prototypes,
3827 which can conflict with char gettimeofday(); below. */
3829 /* Override any gcc2 internal prototype to avoid an error. */
3830 /* We use char because int might match the return type of a gcc2
3831 builtin and then its argument prototype would still apply. */
3832 char gettimeofday();
3836 /* The GNU C library defines this for functions which it implements
3837 to always fail with ENOSYS. Some functions are actually named
3838 something starting with __ and the normal name is an alias. */
3839 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
3847 if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3849 eval "ac_cv_func_gettimeofday=yes"
3851 echo "configure: failed program was:" >&5
3852 cat conftest.$ac_ext >&5
3854 eval "ac_cv_func_gettimeofday=no"
3859 if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
3860 echo "$ac_t""yes" 1>&6
3861 cat >> confdefs.h <<\EOF
3862 #define HAVE_GETTIMEOFDAY 1
3866 echo "$ac_t""no" 1>&6
3869 echo $ac_n "checking for gettimeofday in -lbsd""... $ac_c" 1>&6
3870 echo "configure:3871: checking for gettimeofday in -lbsd" >&5
3871 ac_lib_var=`echo bsd'_'gettimeofday | sed 'y%./+-%__p_%'`
3872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3875 ac_save_LIBS="$LIBS"
3877 cat > conftest.$ac_ext <<EOF
3878 #line 3879 "configure"
3879 #include "confdefs.h"
3880 /* Override any gcc2 internal prototype to avoid an error. */
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3883 char gettimeofday();
3889 if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3891 eval "ac_cv_lib_$ac_lib_var=yes"
3893 echo "configure: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3896 eval "ac_cv_lib_$ac_lib_var=no"
3899 LIBS="$ac_save_LIBS"
3902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3903 echo "$ac_t""yes" 1>&6
3904 cat >> confdefs.h <<\EOF
3905 #define HAVE_GETTIMEOFDAY 1
3910 echo "$ac_t""no" 1>&6
3916 echo $ac_n "checking if -lm needed for math functions""... $ac_c" 1>&6
3917 echo "configure:3918: checking if -lm needed for math functions" >&5
3918 if eval "test \"`echo '$''{'cf_cv_need_libm'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3930 double x = rand(); printf("result = %g\n", sin(x))
3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3937 echo "configure: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3945 echo "$ac_t""$cf_cv_need_libm" 1>&6
3946 if test "$cf_cv_need_libm" = yes
3953 ### Checks for header files.
3954 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3955 echo "configure:3956: checking for ANSI C header files" >&5
3956 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3968 { (eval echo configure:3969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3970 if test -z "$ac_err"; then
3972 ac_cv_header_stdc=yes
3975 echo "configure: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
3978 ac_cv_header_stdc=no
3982 if test $ac_cv_header_stdc = yes; then
3983 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3984 cat > conftest.$ac_ext <<EOF
3985 #line 3986 "configure"
3986 #include "confdefs.h"
3989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3990 egrep "memchr" >/dev/null 2>&1; then
3994 ac_cv_header_stdc=no
4000 if test $ac_cv_header_stdc = yes; then
4001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4002 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4008 egrep "free" >/dev/null 2>&1; then
4012 ac_cv_header_stdc=no
4018 if test $ac_cv_header_stdc = yes; then
4019 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4020 if test "$cross_compiling" = yes; then
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4027 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4028 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4029 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4030 int main () { int i; for (i = 0; i < 256; i++)
4031 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4035 if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4039 echo "configure: failed program was:" >&5
4040 cat conftest.$ac_ext >&5
4042 ac_cv_header_stdc=no
4050 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4051 if test $ac_cv_header_stdc = yes; then
4052 cat >> confdefs.h <<\EOF
4053 #define STDC_HEADERS 1
4059 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4062 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4063 echo "configure:4064: checking for $ac_hdr that defines DIR" >&5
4064 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4070 #include <sys/types.h>
4076 if { (eval echo configure:4077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4078 eval "ac_cv_header_dirent_$ac_safe=yes"
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4083 eval "ac_cv_header_dirent_$ac_safe=no"
4087 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4088 echo "$ac_t""yes" 1>&6
4089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4090 cat >> confdefs.h <<EOF
4091 #define $ac_tr_hdr 1
4093 ac_header_dirent=$ac_hdr; break
4095 echo "$ac_t""no" 1>&6
4098 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4099 if test $ac_header_dirent = dirent.h; then
4100 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4101 echo "configure:4102: checking for opendir in -ldir" >&5
4102 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4104 echo $ac_n "(cached) $ac_c" 1>&6
4106 ac_save_LIBS="$LIBS"
4108 cat > conftest.$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4111 /* Override any gcc2 internal prototype to avoid an error. */
4112 /* We use char because int might match the return type of a gcc2
4113 builtin and then its argument prototype would still apply. */
4120 if { (eval echo configure:4121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4122 eval "ac_cv_lib_$ac_lib_var=yes"
4124 echo "configure: failed program was:" >&5
4125 cat conftest.$ac_ext >&5
4127 eval "ac_cv_lib_$ac_lib_var=no"
4130 LIBS="$ac_save_LIBS"
4133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4134 echo "$ac_t""yes" 1>&6
4137 echo "$ac_t""no" 1>&6
4141 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4142 echo "configure:4143: checking for opendir in -lx" >&5
4143 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4145 echo $ac_n "(cached) $ac_c" 1>&6
4147 ac_save_LIBS="$LIBS"
4149 cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4152 /* Override any gcc2 internal prototype to avoid an error. */
4153 /* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
4161 if { (eval echo configure:4162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4163 eval "ac_cv_lib_$ac_lib_var=yes"
4165 echo "configure: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4168 eval "ac_cv_lib_$ac_lib_var=no"
4171 LIBS="$ac_save_LIBS"
4174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4175 echo "$ac_t""yes" 1>&6
4178 echo "$ac_t""no" 1>&6
4184 echo $ac_n "checking for regular-expression headers""... $ac_c" 1>&6
4185 echo "configure:4186: checking for regular-expression headers" >&5
4186 if eval "test \"`echo '$''{'cf_cv_regex'+set}'`\" = set"; then
4187 echo $ac_n "(cached) $ac_c" 1>&6
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4193 #include <sys/types.h>
4198 int x = regcomp(p, "", 0);
4199 int y = regexec(p, "", 0, 0, 0);
4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4206 cf_cv_regex="regex.h"
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4212 cat > conftest.$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4218 char *p = compile("", "", "", 0);
4219 int x = step("", "");
4223 if { (eval echo configure:4224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4225 cf_cv_regex="regexp.h"
4227 echo "configure: failed program was:" >&5
4228 cat conftest.$ac_ext >&5
4231 cf_save_LIBS="$LIBS"
4233 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4236 #include <regexpr.h>
4239 char *p = compile("", "", "");
4240 int x = step("", "");
4244 if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4246 cf_cv_regex="regexpr.h"
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4251 LIBS="$cf_save_LIBS"
4261 echo "$ac_t""$cf_cv_regex" 1>&6
4262 case $cf_cv_regex in
4263 regex.h) cat >> confdefs.h <<\EOF
4264 #define HAVE_REGEX_H_FUNCS 1
4267 regexp.h) cat >> confdefs.h <<\EOF
4268 #define HAVE_REGEXP_H_FUNCS 1
4271 regexpr.h) cat >> confdefs.h <<\EOF
4272 #define HAVE_REGEXPR_H_FUNCS 1
4298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4300 echo "configure:4301: checking for $ac_hdr" >&5
4301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4310 { (eval echo configure:4311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4312 if test -z "$ac_err"; then
4314 eval "ac_cv_header_$ac_safe=yes"
4317 echo "configure: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4320 eval "ac_cv_header_$ac_safe=no"
4324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4325 echo "$ac_t""yes" 1>&6
4326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4327 cat >> confdefs.h <<EOF
4328 #define $ac_tr_hdr 1
4332 echo "$ac_t""no" 1>&6
4337 # check for ISC (this may also define _POSIX_SOURCE)
4338 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
4339 if test "$ISC" = yes ; then
4340 echo $ac_n "checking for main in -lcposix""... $ac_c" 1>&6
4341 echo "configure:4342: checking for main in -lcposix" >&5
4342 ac_lib_var=`echo cposix'_'main | sed 'y%./+-%__p_%'`
4343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 ac_save_LIBS="$LIBS"
4347 LIBS="-lcposix $LIBS"
4348 cat > conftest.$ac_ext <<EOF
4349 #line 4350 "configure"
4350 #include "confdefs.h"
4356 if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4358 eval "ac_cv_lib_$ac_lib_var=yes"
4360 echo "configure: failed program was:" >&5
4361 cat conftest.$ac_ext >&5
4363 eval "ac_cv_lib_$ac_lib_var=no"
4366 LIBS="$ac_save_LIBS"
4369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4370 echo "$ac_t""yes" 1>&6
4371 ac_tr_lib=HAVE_LIB`echo cposix | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4372 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4373 cat >> confdefs.h <<EOF
4374 #define $ac_tr_lib 1
4377 LIBS="-lcposix $LIBS"
4380 echo "$ac_t""no" 1>&6
4383 echo $ac_n "checking for bzero in -linet""... $ac_c" 1>&6
4384 echo "configure:4385: checking for bzero in -linet" >&5
4385 ac_lib_var=`echo inet'_'bzero | sed 'y%./+-%__p_%'`
4386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4389 ac_save_LIBS="$LIBS"
4391 cat > conftest.$ac_ext <<EOF
4392 #line 4393 "configure"
4393 #include "confdefs.h"
4394 /* Override any gcc2 internal prototype to avoid an error. */
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4403 if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4405 eval "ac_cv_lib_$ac_lib_var=yes"
4407 echo "configure: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4410 eval "ac_cv_lib_$ac_lib_var=no"
4413 LIBS="$ac_save_LIBS"
4416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4417 echo "$ac_t""yes" 1>&6
4420 echo "$ac_t""no" 1>&6
4422 for ac_hdr in sys/termio.h
4424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4426 echo "configure:4427: checking for $ac_hdr" >&5
4427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4430 cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4436 { (eval echo configure:4437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4438 if test -z "$ac_err"; then
4440 eval "ac_cv_header_$ac_safe=yes"
4443 echo "configure: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4446 eval "ac_cv_header_$ac_safe=no"
4450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4451 echo "$ac_t""yes" 1>&6
4452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4453 cat >> confdefs.h <<EOF
4454 #define $ac_tr_hdr 1
4458 echo "$ac_t""no" 1>&6
4465 echo $ac_n "checking if sys/time.h works with sys/select.h""... $ac_c" 1>&6
4466 echo "configure:4467: checking if sys/time.h works with sys/select.h" >&5
4467 if eval "test \"`echo '$''{'cf_cv_sys_time_select'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4475 #include <sys/types.h>
4477 #include <sys/time.h>
4479 #if HAVE_SYS_SELECT_H
4480 #include <sys/select.h>
4487 if { (eval echo configure:4488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4489 cf_cv_sys_time_select=yes
4491 echo "configure: failed program was:" >&5
4492 cat conftest.$ac_ext >&5
4494 cf_cv_sys_time_select=no
4500 echo "$ac_t""$cf_cv_sys_time_select" 1>&6
4501 test $cf_cv_sys_time_select = yes && cat >> confdefs.h <<\EOF
4502 #define HAVE_SYS_TIME_SELECT 1
4507 ### checks for compiler characteristics
4509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4513 cross_compiling=$ac_cv_prog_cc_cross
4515 echo $ac_n "checking for working const""... $ac_c" 1>&6
4516 echo "configure:4517: checking for working const" >&5
4517 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4520 cat > conftest.$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4526 /* Ultrix mips cc rejects this. */
4527 typedef int charset[2]; const charset x;
4528 /* SunOS 4.1.1 cc rejects this. */
4529 char const *const *ccp;
4531 /* NEC SVR4.0.2 mips cc rejects this. */
4532 struct point {int x, y;};
4533 static struct point const zero = {0,0};
4534 /* AIX XL C 1.02.0.0 rejects this.
4535 It does not let you subtract one const X* pointer from another in an arm
4536 of an if-expression whose if-part is not a constant expression */
4537 const char *g = "string";
4538 ccp = &g + (g ? g-g : 0);
4539 /* HPUX 7.0 cc rejects these. */
4542 ccp = (char const *const *) p;
4543 { /* SCO 3.2v4 cc rejects this. */
4545 char const *s = 0 ? (char *) 0 : (char const *) 0;
4549 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4551 const int *foo = &x[0];
4554 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4555 typedef const int *iptr;
4559 { /* AIX XL C 1.02.0.0 rejects this saying
4560 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4561 struct s { int j; const int *ap[3]; };
4562 struct s *b; b->j = 5;
4564 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4570 if { (eval echo configure:4571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4582 echo "$ac_t""$ac_cv_c_const" 1>&6
4583 if test $ac_cv_c_const = no; then
4584 cat >> confdefs.h <<\EOF
4590 echo $ac_n "checking for inline""... $ac_c" 1>&6
4591 echo "configure:4592: checking for inline" >&5
4592 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4596 for ac_kw in inline __inline__ __inline; do
4597 cat > conftest.$ac_ext <<EOF
4598 #line 4599 "configure"
4599 #include "confdefs.h"
4605 if { (eval echo configure:4606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4607 ac_cv_c_inline=$ac_kw; break
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4617 echo "$ac_t""$ac_cv_c_inline" 1>&6
4618 case "$ac_cv_c_inline" in
4620 no) cat >> confdefs.h <<\EOF
4624 *) cat >> confdefs.h <<EOF
4625 #define inline $ac_cv_c_inline
4630 test $ac_cv_c_inline != no && cat >> confdefs.h <<\EOF
4631 #define CC_HAS_INLINE_FUNCS 1
4636 echo $ac_n "checking if unsigned literals are legal""... $ac_c" 1>&6
4637 echo "configure:4638: checking if unsigned literals are legal" >&5
4638 if eval "test \"`echo '$''{'cf_cv_unsigned_literals'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4642 cat > conftest.$ac_ext <<EOF
4643 #line 4644 "configure"
4644 #include "confdefs.h"
4647 long x = 1L + 1UL + 1U + 1
4650 if { (eval echo configure:4651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4652 cf_cv_unsigned_literals=yes
4654 echo "configure: failed program was:" >&5
4655 cat conftest.$ac_ext >&5
4657 cf_cv_unsigned_literals=no
4663 echo "$ac_t""$cf_cv_unsigned_literals" 1>&6
4667 echo $ac_n "checking for type of chtype""... $ac_c" 1>&6
4668 echo "configure:4669: checking for type of chtype" >&5
4669 if eval "test \"`echo '$''{'cf_cv_typeof_chtype'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4673 if test "$cross_compiling" = yes; then
4674 cf_cv_typeof_chtype=long
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4680 #if USE_WIDEC_SUPPORT
4681 #include <stddef.h> /* we want wchar_t */
4682 #define WANT_BITS 39
4684 #define WANT_BITS 31
4689 FILE *fp = fopen("cf_test.out", "w");
4691 char *result = "long";
4692 #if USE_WIDEC_SUPPORT
4694 * If wchar_t is smaller than a long, it must be an int or a
4695 * short. We prefer not to use a short anyway.
4697 if (sizeof(unsigned long) > sizeof(wchar_t))
4700 if (sizeof(unsigned long) > sizeof(unsigned int)) {
4703 for (n = 0; n < WANT_BITS; n++) {
4704 unsigned int y = (x >> n);
4705 if (y != 1 || x == 0) {
4711 * If x is nonzero, an int is big enough for the bits
4714 result = (x != 0) ? "int" : "long";
4723 if { (eval echo configure:4724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4725 cf_cv_typeof_chtype=`cat cf_test.out`
4727 echo "configure: failed program was:" >&5
4728 cat conftest.$ac_ext >&5
4730 cf_cv_typeof_chtype=long
4739 echo "$ac_t""$cf_cv_typeof_chtype" 1>&6
4742 cat >> confdefs.h <<EOF
4743 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
4748 test "$cf_cv_unsigned_literals" = yes && cf_cv_1UL="${cf_cv_1UL}U"
4749 test "$cf_cv_typeof_chtype" = long && cf_cv_1UL="${cf_cv_1UL}L"
4755 echo $ac_n "checking for number of bits in chtype""... $ac_c" 1>&6
4756 echo "configure:4757: checking for number of bits in chtype" >&5
4757 if eval "test \"`echo '$''{'cf_cv_shift_limit'+set}'`\" = set"; then
4758 echo $ac_n "(cached) $ac_c" 1>&6
4761 if test "$cross_compiling" = yes; then
4762 cf_cv_shift_limit=32
4764 cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4771 FILE *fp = fopen("cf_test.out", "w");
4774 unsigned TYPEOF_CHTYPE x = 1L;
4775 for (n = 0; ; n++) {
4776 unsigned long y = (x >> n);
4777 if (y != 1 || x == 0)
4781 fprintf(fp, "%d", n);
4788 if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4790 cf_cv_shift_limit=`cat cf_test.out`
4792 echo "configure: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4795 cf_cv_shift_limit=32
4804 echo "$ac_t""$cf_cv_shift_limit" 1>&6
4807 echo $ac_n "checking for width of character-index""... $ac_c" 1>&6
4808 echo "configure:4809: checking for width of character-index" >&5
4809 if eval "test \"`echo '$''{'cf_cv_widec_shift'+set}'`\" = set"; then
4810 echo $ac_n "(cached) $ac_c" 1>&6
4813 if test ".$with_widec" = ".yes" ; then
4815 if ( expr $cf_cv_shift_limit \> $cf_attrs_width >/dev/null )
4817 cf_cv_widec_shift=`expr 16 + $cf_cv_shift_limit - $cf_attrs_width`
4819 cf_cv_widec_shift=16
4827 echo "$ac_t""$cf_cv_widec_shift" 1>&6
4831 ### Checks for external-data
4834 echo $ac_n "checking if external errno is declared""... $ac_c" 1>&6
4835 echo "configure:4836: checking if external errno is declared" >&5
4836 if eval "test \"`echo '$''{'cf_cv_dcl_errno'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4840 cat > conftest.$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4844 #ifdef HAVE_STDLIB_H
4848 #include <sys/types.h>
4851 long x = (long) errno
4854 if { (eval echo configure:4855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4856 eval 'cf_cv_dcl_'errno'=yes'
4858 echo "configure: failed program was:" >&5
4859 cat conftest.$ac_ext >&5
4861 eval 'cf_cv_dcl_'errno'=no'
4868 eval 'cf_result=$cf_cv_dcl_'errno
4869 echo "$ac_t""$cf_result" 1>&6
4871 if test "$cf_result" = no ; then
4872 eval 'cf_result=DECL_'errno
4874 cf_result=`echo $cf_result | tr '[a-z]' '[A-Z]'`
4876 cat >> confdefs.h <<EOF
4877 #define $cf_result 1
4882 # It's possible (for near-UNIX clones) that the data doesn't exist
4884 echo $ac_n "checking if external errno exists""... $ac_c" 1>&6
4885 echo "configure:4886: checking if external errno exists" >&5
4886 if eval "test \"`echo '$''{'cf_cv_have_errno'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4901 if { (eval echo configure:4902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4903 eval 'cf_cv_have_'errno'=yes'
4905 echo "configure: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4908 eval 'cf_cv_have_'errno'=no'
4914 eval 'cf_result=$cf_cv_have_'errno
4915 echo "$ac_t""$cf_result" 1>&6
4917 if test "$cf_result" = yes ; then
4918 eval 'cf_result=HAVE_'errno
4920 cf_result=`echo $cf_result | tr '[a-z]' '[A-Z]'`
4922 cat >> confdefs.h <<EOF
4923 #define $cf_result 1
4932 echo $ac_n "checking if data-only library module links""... $ac_c" 1>&6
4933 echo "configure:4934: checking if data-only library module links" >&5
4934 if eval "test \"`echo '$''{'cf_cv_link_dataonly'+set}'`\" = set"; then
4935 echo $ac_n "(cached) $ac_c" 1>&6
4939 cat >conftest.$ac_ext <<EOF
4940 #line 4941 "configure"
4941 int testdata[3] = { 123, 456, 789 };
4943 if { (eval echo configure:4944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then
4944 mv conftest.o data.o && \
4945 ( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null
4947 rm -f conftest.$ac_ext data.o
4948 cat >conftest.$ac_ext <<EOF
4949 #line 4950 "configure"
4953 exit(1); /* I'm told this linker is broken */
4955 extern int testdata[3];
4956 return testdata[0] == 123
4957 && testdata[1] == 456
4958 && testdata[2] == 789;
4962 if { (eval echo configure:4963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4963 mv conftest.o func.o && \
4964 ( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
4966 rm -f conftest.$ac_ext func.o
4967 ( eval $ac_cv_prog_RANLIB conftest.a ) 2>&5 >/dev/null
4969 LIBS="conftest.a $LIBS"
4970 if test "$cross_compiling" = yes; then
4971 cf_cv_link_dataonly=unknown
4973 cat > conftest.$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4979 extern int testfunc();
4984 if { (eval echo configure:4985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4986 cf_cv_link_dataonly=yes
4988 echo "configure: failed program was:" >&5
4989 cat conftest.$ac_ext >&5
4991 cf_cv_link_dataonly=no
5000 echo "$ac_t""$cf_cv_link_dataonly" 1>&6
5001 test $cf_cv_link_dataonly = no && cat >> confdefs.h <<\EOF
5002 #define BROKEN_LINKER 1
5007 echo $ac_n "checking for speed_t""... $ac_c" 1>&6
5008 echo "configure:5009: checking for speed_t" >&5
5010 cat > conftest.$ac_ext <<EOF
5011 #line 5012 "configure"
5012 #include "confdefs.h"
5013 #include <sys/types.h>
5015 speed_t some_variable = 0
5018 if { (eval echo configure:5019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5022 echo "configure: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5025 OSPEED_TYPE=unsigned
5028 cat > conftest.$ac_ext <<EOF
5029 #line 5030 "configure"
5030 #include "confdefs.h"
5031 #include <termios.h>
5033 speed_t some_variable = 0
5036 if { (eval echo configure:5037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5039 OSPEED_INCLUDES="#include <termios.h>"
5041 echo "configure: failed program was:" >&5
5042 cat conftest.$ac_ext >&5
5047 if test "$OSPEED_TYPE" = "unsigned" ; then
5048 echo "$ac_t""no" 1>&6
5049 cat >> confdefs.h <<\EOF
5050 #define speed_t unsigned
5054 echo "$ac_t""yes" 1>&6
5058 ### Checks for library functions.
5083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5084 echo "configure:5085: checking for $ac_func" >&5
5085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5088 cat > conftest.$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5091 /* System header to define __stub macros and hopefully few prototypes,
5092 which can conflict with char $ac_func(); below. */
5094 /* Override any gcc2 internal prototype to avoid an error. */
5095 /* We use char because int might match the return type of a gcc2
5096 builtin and then its argument prototype would still apply. */
5101 /* The GNU C library defines this for functions which it implements
5102 to always fail with ENOSYS. Some functions are actually named
5103 something starting with __ and the normal name is an alias. */
5104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5112 if { (eval echo configure:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5114 eval "ac_cv_func_$ac_func=yes"
5116 echo "configure: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5119 eval "ac_cv_func_$ac_func=no"
5124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5127 cat >> confdefs.h <<EOF
5128 #define $ac_tr_func 1
5132 echo "$ac_t""no" 1>&6
5136 if test "$with_getcap" = "yes" ; then
5138 echo $ac_n "checking for terminal-capability database functions""... $ac_c" 1>&6
5139 echo "configure:5140: checking for terminal-capability database functions" >&5
5140 if eval "test \"`echo '$''{'cf_cv_cgetent'+set}'`\" = set"; then
5141 echo $ac_n "(cached) $ac_c" 1>&6
5144 cat > conftest.$ac_ext <<EOF
5145 #line 5146 "configure"
5146 #include "confdefs.h"
5153 char *db_array = temp;
5154 cgetent(&buf, /* int *, */ &db_array, "vt100");
5155 cgetcap(buf, "tc", '=');
5156 cgetmatch(buf, "tc");
5160 if { (eval echo configure:5161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5164 echo "configure: failed program was:" >&5
5165 cat conftest.$ac_ext >&5
5173 echo "$ac_t""$cf_cv_cgetent" 1>&6
5174 test $cf_cv_cgetent = yes && cat >> confdefs.h <<\EOF
5175 #define HAVE_BSD_CGETENT 1
5182 echo $ac_n "checking for isascii""... $ac_c" 1>&6
5183 echo "configure:5184: checking for isascii" >&5
5184 if eval "test \"`echo '$''{'cf_cv_have_isascii'+set}'`\" = set"; then
5185 echo $ac_n "(cached) $ac_c" 1>&6
5188 cat > conftest.$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5193 int x = isascii(' ')
5196 if { (eval echo configure:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5198 cf_cv_have_isascii=yes
5200 echo "configure: failed program was:" >&5
5201 cat conftest.$ac_ext >&5
5203 cf_cv_have_isascii=no
5208 echo "$ac_t""$cf_cv_have_isascii" 1>&6
5209 test $cf_cv_have_isascii = yes && cat >> confdefs.h <<\EOF
5210 #define HAVE_ISASCII 1
5215 if test $ac_cv_func_sigaction = yes; then
5216 echo $ac_n "checking whether sigaction needs _POSIX_SOURCE""... $ac_c" 1>&6
5217 echo "configure:5218: checking whether sigaction needs _POSIX_SOURCE" >&5
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5222 #include <sys/types.h>
5225 struct sigaction act
5228 if { (eval echo configure:5229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5232 echo "configure: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5236 cat > conftest.$ac_ext <<EOF
5237 #line 5238 "configure"
5238 #include "confdefs.h"
5240 #define _POSIX_SOURCE
5241 #include <sys/types.h>
5244 struct sigaction act
5247 if { (eval echo configure:5248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5250 cat >> confdefs.h <<\EOF
5251 #define SVR4_ACTION 1
5255 echo "configure: failed program was:" >&5
5256 cat conftest.$ac_ext >&5
5263 echo "$ac_t""$sigact_bad" 1>&6
5267 if test $ac_cv_header_termios_h = yes ; then
5270 termios_bad=dunno ;;
5271 *) termios_bad=maybe ;;
5273 if test $termios_bad = maybe ; then
5274 echo $ac_n "checking whether termios.h needs _POSIX_SOURCE""... $ac_c" 1>&6
5275 echo "configure:5276: checking whether termios.h needs _POSIX_SOURCE" >&5
5276 cat > conftest.$ac_ext <<EOF
5277 #line 5278 "configure"
5278 #include "confdefs.h"
5279 #include <termios.h>
5281 struct termios foo; int x = foo.c_iflag
5284 if { (eval echo configure:5285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5288 echo "configure: failed program was:" >&5
5289 cat conftest.$ac_ext >&5
5292 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5296 #define _POSIX_SOURCE
5297 #include <termios.h>
5299 struct termios foo; int x = foo.c_iflag
5302 if { (eval echo configure:5303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5306 echo "configure: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5309 termios_bad=yes cat >> confdefs.h <<\EOF
5310 #define SVR4_TERMIO 1
5318 echo "$ac_t""$termios_bad" 1>&6
5323 if test "$cross_compiling" = yes ; then
5324 echo "configure: warning: cross compiling: assume setvbuf params not reversed" 1>&2
5326 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
5327 echo "configure:5328: checking whether setvbuf arguments are reversed" >&5
5328 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
5329 echo $ac_n "(cached) $ac_c" 1>&6
5331 if test "$cross_compiling" = yes; then
5332 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5338 /* If setvbuf has the reversed format, exit 0. */
5340 /* This call has the arguments reversed.
5341 A reversed system may check and see that the address of main
5342 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
5343 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
5346 exit(0); /* Non-reversed systems segv here. */
5349 if { (eval echo configure:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5351 ac_cv_func_setvbuf_reversed=yes
5353 echo "configure: failed program was:" >&5
5354 cat conftest.$ac_ext >&5
5356 ac_cv_func_setvbuf_reversed=no
5361 rm -f core core.* *.core
5364 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
5365 if test $ac_cv_func_setvbuf_reversed = yes; then
5366 cat >> confdefs.h <<\EOF
5367 #define SETVBUF_REVERSED 1
5373 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5374 echo "configure:5375: checking return type of signal handlers" >&5
5375 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5376 echo $ac_n "(cached) $ac_c" 1>&6
5378 cat > conftest.$ac_ext <<EOF
5379 #line 5380 "configure"
5380 #include "confdefs.h"
5381 #include <sys/types.h>
5387 extern "C" void (*signal (int, void (*)(int)))(int);
5389 void (*signal ()) ();
5396 if { (eval echo configure:5397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5398 ac_cv_type_signal=void
5400 echo "configure: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5403 ac_cv_type_signal=int
5408 echo "$ac_t""$ac_cv_type_signal" 1>&6
5409 cat >> confdefs.h <<EOF
5410 #define RETSIGTYPE $ac_cv_type_signal
5415 echo $ac_n "checking for type sigaction_t""... $ac_c" 1>&6
5416 echo "configure:5417: checking for type sigaction_t" >&5
5417 if eval "test \"`echo '$''{'cf_cv_type_sigaction'+set}'`\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5430 if { (eval echo configure:5431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5432 cf_cv_type_sigaction=yes
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5437 cf_cv_type_sigaction=no
5442 echo "$ac_t""$cf_cv_type_sigaction" 1>&6
5443 test $cf_cv_type_sigaction = yes && cat >> confdefs.h <<\EOF
5444 #define HAVE_TYPE_SIGACTION 1
5449 echo $ac_n "checking declaration of size-change""... $ac_c" 1>&6
5450 echo "configure:5451: checking declaration of size-change" >&5
5451 if eval "test \"`echo '$''{'cf_cv_sizechange'+set}'`\" = set"; then
5452 echo $ac_n "(cached) $ac_c" 1>&6
5455 cf_cv_sizechange=unknown
5456 cf_save_CFLAGS="$CFLAGS"
5458 for cf_opts in "" "NEED_PTEM_H"
5461 CFLAGS="$cf_save_CFLAGS"
5462 test -n "$cf_opts" && CFLAGS="$CFLAGS -D$cf_opts"
5463 cat > conftest.$ac_ext <<EOF
5464 #line 5465 "configure"
5465 #include "confdefs.h"
5466 #include <sys/types.h>
5468 #include <termios.h>
5475 /* This is a workaround for SCO: they neglected to define struct winsize in
5476 * termios.h -- it's only in termio.h and ptem.h
5478 #include <sys/stream.h>
5479 #include <sys/ptem.h>
5481 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
5482 #include <sys/ioctl.h>
5488 struct ttysize win; /* FIXME: what system is this? */
5489 int y = win.ts_lines;
5490 int x = win.ts_cols;
5497 no TIOCGSIZE or TIOCGWINSZ
5498 #endif /* TIOCGWINSZ */
5499 #endif /* TIOCGSIZE */
5503 if { (eval echo configure:5504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5505 cf_cv_sizechange=yes
5507 echo "configure: failed program was:" >&5
5508 cat conftest.$ac_ext >&5
5514 CFLAGS="$cf_save_CFLAGS"
5515 if test "$cf_cv_sizechange" = yes ; then
5516 echo "size-change succeeded ($cf_opts)" >&5
5517 test -n "$cf_opts" && cat >> confdefs.h <<EOF
5527 echo "$ac_t""$cf_cv_sizechange" 1>&6
5528 test $cf_cv_sizechange != no && cat >> confdefs.h <<\EOF
5529 #define HAVE_SIZECHANGE 1
5534 echo $ac_n "checking for memmove""... $ac_c" 1>&6
5535 echo "configure:5536: checking for memmove" >&5
5536 if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 cat > conftest.$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5542 /* System header to define __stub macros and hopefully few prototypes,
5543 which can conflict with char memmove(); below. */
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 /* We use char because int might match the return type of a gcc2
5547 builtin and then its argument prototype would still apply. */
5552 /* The GNU C library defines this for functions which it implements
5553 to always fail with ENOSYS. Some functions are actually named
5554 something starting with __ and the normal name is an alias. */
5555 #if defined (__stub_memmove) || defined (__stub___memmove)
5563 if { (eval echo configure:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5565 eval "ac_cv_func_memmove=yes"
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5570 eval "ac_cv_func_memmove=no"
5575 if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
5576 echo "$ac_t""yes" 1>&6
5579 echo "$ac_t""no" 1>&6
5581 echo $ac_n "checking for bcopy""... $ac_c" 1>&6
5582 echo "configure:5583: checking for bcopy" >&5
5583 if eval "test \"`echo '$''{'ac_cv_func_bcopy'+set}'`\" = set"; then
5584 echo $ac_n "(cached) $ac_c" 1>&6
5586 cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5589 /* System header to define __stub macros and hopefully few prototypes,
5590 which can conflict with char bcopy(); below. */
5592 /* Override any gcc2 internal prototype to avoid an error. */
5593 /* We use char because int might match the return type of a gcc2
5594 builtin and then its argument prototype would still apply. */
5599 /* The GNU C library defines this for functions which it implements
5600 to always fail with ENOSYS. Some functions are actually named
5601 something starting with __ and the normal name is an alias. */
5602 #if defined (__stub_bcopy) || defined (__stub___bcopy)
5610 if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5612 eval "ac_cv_func_bcopy=yes"
5614 echo "configure: failed program was:" >&5
5615 cat conftest.$ac_ext >&5
5617 eval "ac_cv_func_bcopy=no"
5622 if eval "test \"`echo '$ac_cv_func_'bcopy`\" = yes"; then
5623 echo "$ac_t""yes" 1>&6
5625 echo $ac_n "checking if bcopy does overlapping moves""... $ac_c" 1>&6
5626 echo "configure:5627: checking if bcopy does overlapping moves" >&5
5627 if eval "test \"`echo '$''{'cf_cv_good_bcopy'+set}'`\" = set"; then
5628 echo $ac_n "(cached) $ac_c" 1>&6
5631 if test "$cross_compiling" = yes; then
5632 cf_cv_good_bcopy=unknown
5634 cat > conftest.$ac_ext <<EOF
5635 #line 5636 "configure"
5636 #include "confdefs.h"
5639 static char data[] = "abcdefghijklmnopqrstuwwxyz";
5641 bcopy(data, temp, sizeof(data));
5642 bcopy(temp+10, temp, 15);
5643 bcopy(temp+5, temp+15, 10);
5644 exit (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
5648 if { (eval echo configure:5649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5650 cf_cv_good_bcopy=yes
5652 echo "configure: failed program was:" >&5
5653 cat conftest.$ac_ext >&5
5663 echo "$ac_t""$cf_cv_good_bcopy" 1>&6
5666 echo "$ac_t""no" 1>&6
5670 if test $cf_cv_good_bcopy = yes ; then
5671 cat >> confdefs.h <<\EOF
5672 #define USE_OK_BCOPY 1
5676 cat >> confdefs.h <<\EOF
5677 #define USE_MY_MEMMOVE 1
5685 echo $ac_n "checking if poll really works""... $ac_c" 1>&6
5686 echo "configure:5687: checking if poll really works" >&5
5687 if eval "test \"`echo '$''{'cf_cv_working_poll'+set}'`\" = set"; then
5688 echo $ac_n "(cached) $ac_c" 1>&6
5691 if test "$cross_compiling" = yes; then
5692 cf_cv_working_poll=unknown
5694 cat > conftest.$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5702 #include <sys/poll.h>
5705 struct pollfd myfds;
5709 myfds.events = POLLIN;
5711 ret = poll(&myfds, 1, 100);
5715 if { (eval echo configure:5716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5717 cf_cv_working_poll=yes
5719 echo "configure: failed program was:" >&5
5720 cat conftest.$ac_ext >&5
5722 cf_cv_working_poll=no
5729 echo "$ac_t""$cf_cv_working_poll" 1>&6
5730 test "$cf_cv_working_poll" = "yes" && cat >> confdefs.h <<\EOF
5731 #define HAVE_WORKING_POLL 1
5736 if test -z "$cf_user_CFLAGS" ; then
5737 CFLAGS=`echo ${CFLAGS} | sed -e 's/-g //' -e 's/-g$//'`
5738 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's/-g //' -e 's/-g$//'`
5742 echo $ac_n "checking for builtin $CC bool type""... $ac_c" 1>&6
5743 echo "configure:5744: checking for builtin $CC bool type" >&5
5744 if eval "test \"`echo '$''{'cf_cv_cc_bool_type'+set}'`\" = set"; then
5745 echo $ac_n "(cached) $ac_c" 1>&6
5748 cat > conftest.$ac_ext <<EOF
5749 #line 5750 "configure"
5750 #include "confdefs.h"
5753 #include <sys/types.h>
5759 if { (eval echo configure:5760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5761 cf_cv_cc_bool_type=1
5763 echo "configure: failed program was:" >&5
5764 cat conftest.$ac_ext >&5
5766 cf_cv_cc_bool_type=0
5772 if test $cf_cv_cc_bool_type = 1
5773 then echo "$ac_t""yes" 1>&6
5774 else echo "$ac_t""no" 1>&6
5777 if test -n "$CXX" ; then
5779 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5780 ac_cpp='$CXXCPP $CPPFLAGS'
5781 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5782 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5783 cross_compiling=$ac_cv_prog_cxx_cross
5786 if test -n "$GXX" ; then
5787 case $cf_cv_system_name in #(vi
5789 cf_stdcpp_libname=stdcpp
5792 cf_stdcpp_libname=stdc++
5795 echo $ac_n "checking for library $cf_stdcpp_libname""... $ac_c" 1>&6
5796 echo "configure:5797: checking for library $cf_stdcpp_libname" >&5
5797 if eval "test \"`echo '$''{'cf_cv_libstdcpp'+set}'`\" = set"; then
5798 echo $ac_n "(cached) $ac_c" 1>&6
5802 LIBS="$LIBS -l$cf_stdcpp_libname"
5803 cat > conftest.$ac_ext <<EOF
5804 #line 5805 "configure"
5805 #include "confdefs.h"
5807 #include <strstream.h>
5811 strstreambuf foo(buf, sizeof(buf))
5815 if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5819 echo "configure: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5829 echo "$ac_t""$cf_cv_libstdcpp" 1>&6
5830 test $cf_cv_libstdcpp = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
5833 case "`${CXX-g++} --version`" in
5839 cf_cxx_library=unknown
5840 case $cf_cv_system_name in #(vi
5848 if test $ac_cv_prog_gxx = yes; then
5849 echo $ac_n "checking for lib$cf_gpp_libname""... $ac_c" 1>&6
5850 echo "configure:5851: checking for lib$cf_gpp_libname" >&5
5852 LIBS="$LIBS -l$cf_gpp_libname"
5853 cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5857 #include <$cf_gpp_libname/builtin.h>
5860 two_arg_error_handler_t foo2 = lib_error_handler
5863 if { (eval echo configure:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5866 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
5867 if test "$cf_gpp_libname" = cpp ; then
5868 cat >> confdefs.h <<\EOF
5869 #define HAVE_GPP_BUILTIN_H 1
5873 cat >> confdefs.h <<\EOF
5874 #define HAVE_GXX_BUILTIN_H 1
5879 echo "configure: failed program was:" >&5
5880 cat conftest.$ac_ext >&5
5882 cat > conftest.$ac_ext <<EOF
5883 #line 5884 "configure"
5884 #include "confdefs.h"
5886 #include <builtin.h>
5889 two_arg_error_handler_t foo2 = lib_error_handler
5892 if { (eval echo configure:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5895 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
5896 cat >> confdefs.h <<\EOF
5897 #define HAVE_BUILTIN_H 1
5901 echo "configure: failed program was:" >&5
5902 cat conftest.$ac_ext >&5
5910 echo "$ac_t""$cf_cxx_library" 1>&6
5918 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
5919 echo "configure:5920: checking how to run the C++ preprocessor" >&5
5920 if test -z "$CXXCPP"; then
5921 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
5922 echo $ac_n "(cached) $ac_c" 1>&6
5925 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5926 ac_cpp='$CXXCPP $CPPFLAGS'
5927 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5928 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5929 cross_compiling=$ac_cv_prog_cxx_cross
5930 CXXCPP="${CXX-g++} -E"
5931 cat > conftest.$ac_ext <<EOF
5932 #line 5933 "configure"
5933 #include "confdefs.h"
5936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5937 { (eval echo configure:5938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5939 if test -z "$ac_err"; then
5943 echo "configure: failed program was:" >&5
5944 cat conftest.$ac_ext >&5
5949 ac_cv_prog_CXXCPP="$CXXCPP"
5951 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5952 ac_cpp='$CXXCPP $CPPFLAGS'
5953 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5954 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5955 cross_compiling=$ac_cv_prog_cxx_cross
5958 CXXCPP="$ac_cv_prog_CXXCPP"
5959 echo "$ac_t""$CXXCPP" 1>&6
5961 for ac_hdr in typeinfo
5963 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5964 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5965 echo "configure:5966: checking for $ac_hdr" >&5
5966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5967 echo $ac_n "(cached) $ac_c" 1>&6
5969 cat > conftest.$ac_ext <<EOF
5970 #line 5971 "configure"
5971 #include "confdefs.h"
5974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5975 { (eval echo configure:5976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5977 if test -z "$ac_err"; then
5979 eval "ac_cv_header_$ac_safe=yes"
5982 echo "configure: failed program was:" >&5
5983 cat conftest.$ac_ext >&5
5985 eval "ac_cv_header_$ac_safe=no"
5989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5990 echo "$ac_t""yes" 1>&6
5991 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5992 cat >> confdefs.h <<EOF
5993 #define $ac_tr_hdr 1
5997 echo "$ac_t""no" 1>&6
6002 echo $ac_n "checking for builtin $CXX bool type""... $ac_c" 1>&6
6003 echo "configure:6004: checking for builtin $CXX bool type" >&5
6004 if eval "test \"`echo '$''{'cf_cv_builtin_bool'+set}'`\" = set"; then
6005 echo $ac_n "(cached) $ac_c" 1>&6
6008 cat > conftest.$ac_ext <<EOF
6009 #line 6010 "configure"
6010 #include "confdefs.h"
6013 #include <sys/types.h>
6019 if { (eval echo configure:6020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6021 cf_cv_builtin_bool=1
6023 echo "configure: failed program was:" >&5
6024 cat conftest.$ac_ext >&5
6026 cf_cv_builtin_bool=0
6032 if test $cf_cv_builtin_bool = 1
6033 then echo "$ac_t""yes" 1>&6
6034 else echo "$ac_t""no" 1>&6
6038 echo $ac_n "checking for size of $CXX bool""... $ac_c" 1>&6
6039 echo "configure:6040: checking for size of $CXX bool" >&5
6040 if eval "test \"`echo '$''{'cf_cv_type_of_bool'+set}'`\" = set"; then
6041 echo $ac_n "(cached) $ac_c" 1>&6
6045 if test "$cross_compiling" = yes; then
6046 cf_cv_type_of_bool=unknown
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6052 extern "C" void exit(int);
6057 #if HAVE_GXX_BUILTIN_H
6058 #include <g++/builtin.h>
6059 #elif HAVE_GPP_BUILTIN_H
6060 #include <gpp/builtin.h>
6061 #elif HAVE_BUILTIN_H
6062 #include <builtin.h>
6066 FILE *fp = fopen("cf_test.out", "w");
6069 if ((bool)(-x) >= 0)
6070 fputs("unsigned ", fp);
6071 if (sizeof(x) == sizeof(int)) fputs("int", fp);
6072 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
6073 else if (sizeof(x) == sizeof(short))fputs("short",fp);
6074 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
6081 if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6083 cf_cv_type_of_bool=`cat cf_test.out`
6085 echo "configure: failed program was:" >&5
6086 cat conftest.$ac_ext >&5
6088 cf_cv_type_of_bool=unknown
6097 echo "$ac_t""$cf_cv_type_of_bool" 1>&6
6098 if test "$cf_cv_type_of_bool" = unknown ; then
6099 echo "configure: warning: Assuming unsigned for type of bool" 1>&2
6100 cf_cv_type_of_bool=unsigned
6104 echo $ac_n "checking for special defines needed for etip.h""... $ac_c" 1>&6
6105 echo "configure:6106: checking for special defines needed for etip.h" >&5
6106 cf_save_CXXFLAGS="$CXXFLAGS"
6108 for cf_math in "" MATH_H
6110 for cf_excp in "" MATH_EXCEPTION
6112 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu"
6113 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
6114 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
6115 cat > conftest.$ac_ext <<EOF
6116 #line 6117 "configure"
6117 #include "confdefs.h"
6119 #include <etip.h.in>
6125 if { (eval echo configure:6126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6128 test -n "$cf_math" && cat >> confdefs.h <<EOF
6129 #define ETIP_NEEDS_${cf_math} 1
6132 test -n "$cf_excp" && cat >> confdefs.h <<EOF
6133 #define ETIP_NEEDS_${cf_excp} 1
6136 cf_result="$cf_math $cf_excp"
6140 echo "configure: failed program was:" >&5
6141 cat conftest.$ac_ext >&5
6146 echo "$ac_t""$cf_result" 1>&6
6147 CXXFLAGS="$cf_save_CXXFLAGS"
6150 if test -n "$CXX" ; then
6151 echo $ac_n "checking if $CXX accepts parameter initialization""... $ac_c" 1>&6
6152 echo "configure:6153: checking if $CXX accepts parameter initialization" >&5
6153 if eval "test \"`echo '$''{'cf_cv_cpp_param_init'+set}'`\" = set"; then
6154 echo $ac_n "(cached) $ac_c" 1>&6
6158 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6159 ac_cpp='$CXXCPP $CPPFLAGS'
6160 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6161 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6162 cross_compiling=$ac_cv_prog_cxx_cross
6164 if test "$cross_compiling" = yes; then
6165 cf_cv_cpp_param_init=unknown
6167 cat > conftest.$ac_ext <<EOF
6168 #line 6169 "configure"
6169 #include "confdefs.h"
6171 extern "C" void exit(int);
6182 TEST::TEST(int x = 1) // some compilers do not like second initializer
6189 if { (eval echo configure:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6191 cf_cv_cpp_param_init=yes
6193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
6196 cf_cv_cpp_param_init=no
6204 echo "$ac_t""$cf_cv_cpp_param_init" 1>&6
6206 test "$cf_cv_cpp_param_init" = yes && cat >> confdefs.h <<\EOF
6207 #define CPP_HAS_PARAM_INIT 1
6211 case $cf_cv_system_name in #(vi
6213 CXXLDFLAGS="-u main"
6219 cf_cv_builtin_bool=1
6221 # Just because we are not configuring against C++ right now does not
6222 # mean that a user will not want to use C++. Some distributors disable
6223 # the C++ portion of this configuration as a shortcut (or just to avoid
6224 # compiling the demo in the c++ directory). So we need a reasonable
6225 # default for the 'bool' type.
6227 # Caveat: since the storage of the bool type is not standardized, it
6230 echo $ac_n "checking for fallback type of bool""... $ac_c" 1>&6
6231 echo "configure:6232: checking for fallback type of bool" >&5
6232 case "$host_cpu" in #(vi
6233 i?86) cf_cv_type_of_bool=char ;; #(vi
6234 *) cf_cv_type_of_bool=int ;;
6236 echo "$ac_t""$cf_cv_type_of_bool" 1>&6
6242 if test "$cf_with_ada" != "no" ; then
6243 cf_ada_make=gnatmake
6244 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
6245 set dummy $cf_ada_make; ac_word=$2
6246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6247 echo "configure:6248: checking for $ac_word" >&5
6248 if eval "test \"`echo '$''{'ac_cv_prog_gnat_exists'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6251 if test -n "$gnat_exists"; then
6252 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
6254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6256 for ac_dir in $ac_dummy; do
6257 test -z "$ac_dir" && ac_dir=.
6258 if test -f $ac_dir/$ac_word; then
6259 ac_cv_prog_gnat_exists="yes"
6264 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
6267 gnat_exists="$ac_cv_prog_gnat_exists"
6268 if test -n "$gnat_exists"; then
6269 echo "$ac_t""$gnat_exists" 1>&6
6271 echo "$ac_t""no" 1>&6
6274 if test "$ac_cv_prog_gnat_exists" = no; then
6278 cf_cv_gnat_version=`$cf_ada_make -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
6279 sed -e 's/[^0-9 \.]//g' | $AWK '{print $1;}'`
6280 case $cf_cv_gnat_version in
6281 3.1[1-9]*|3.[2-9]*|[4-9].*)
6282 cf_cv_prog_gnat_correct=yes
6284 *) echo Unsupported GNAT version $cf_cv_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
6285 cf_cv_prog_gnat_correct=no
6288 case $cf_cv_gnat_version in
6290 cf_compile_generics=generics
6291 cf_generic_objects="\$(GENOBJS)"
6293 *) cf_compile_generics=
6298 # Extract the first word of "m4", so it can be a program name with args.
6299 set dummy m4; ac_word=$2
6300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6301 echo "configure:6302: checking for $ac_word" >&5
6302 if eval "test \"`echo '$''{'ac_cv_prog_m4_exists'+set}'`\" = set"; then
6303 echo $ac_n "(cached) $ac_c" 1>&6
6305 if test -n "$m4_exists"; then
6306 ac_cv_prog_m4_exists="$m4_exists" # Let the user override the test.
6308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6310 for ac_dir in $ac_dummy; do
6311 test -z "$ac_dir" && ac_dir=.
6312 if test -f $ac_dir/$ac_word; then
6313 ac_cv_prog_m4_exists="yes"
6318 test -z "$ac_cv_prog_m4_exists" && ac_cv_prog_m4_exists="no"
6321 m4_exists="$ac_cv_prog_m4_exists"
6322 if test -n "$m4_exists"; then
6323 echo "$ac_t""$m4_exists" 1>&6
6325 echo "$ac_t""no" 1>&6
6328 if test "$ac_cv_prog_m4_exists" = no; then
6329 cf_cv_prog_gnat_correct=no
6330 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
6332 if test "$cf_cv_prog_gnat_correct" = yes; then
6333 echo $ac_n "checking if GNAT works""... $ac_c" 1>&6
6334 echo "configure:6335: checking if GNAT works" >&5
6337 cat >>conftest.ads <<CF_EOF
6340 cat >>conftest.adb <<CF_EOF
6343 procedure conftest is
6345 Text_IO.Put ("Hello World");
6347 GNAT.OS_Lib.OS_Exit (0);
6350 if ( $cf_ada_make conftest 1>&5 2>&1 ) ; then
6351 if ( ./conftest 1>&5 2>&1 ) ; then
6352 cf_cv_prog_gnat_correct=yes
6354 cf_cv_prog_gnat_correct=no
6357 cf_cv_prog_gnat_correct=no
6361 echo "$ac_t""$cf_cv_prog_gnat_correct" 1>&6
6364 if test "$cf_cv_prog_gnat_correct" = yes; then
6365 ADAFLAGS="-O3 -gnatpn $ADAFLAGS"
6368 # Check whether --with-ada-compiler or --without-ada-compiler was given.
6369 if test "${with_ada_compiler+set}" = set; then
6370 withval="$with_ada_compiler"
6371 cf_ada_compiler=$withval
6373 cf_ada_compiler=gnatmake
6377 cf_ada_package=terminal_interface
6387 # Check whether --with-ada-include or --without-ada-include was given.
6388 if test "${with_ada_include+set}" = set; then
6389 withval="$with_ada_include"
6392 withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
6395 case ".$withval" in #(vi
6398 .a-zA-Z:\\/*) #(vi OS/2 EMX
6401 eval withval="$withval"
6402 case ".$withval" in #(vi
6404 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@`
6409 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@`
6412 { echo "configure: error: expected a pathname" 1>&2; exit 1; }
6416 eval ADA_INCLUDE="$withval"
6421 # Check whether --with-ada-objects or --without-ada-objects was given.
6422 if test "${with_ada_objects+set}" = set; then
6423 withval="$with_ada_objects"
6426 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
6429 case ".$withval" in #(vi
6432 .a-zA-Z:\\/*) #(vi OS/2 EMX
6435 eval withval="$withval"
6436 case ".$withval" in #(vi
6438 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@`
6443 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@`
6446 { echo "configure: error: expected a pathname" 1>&2; exit 1; }
6450 eval ADA_OBJECTS="$withval"
6454 # This has been fixed!
6455 # if test $with_shared = no
6457 # AC_MSG_WARN(Ada95 applications will not link properly with static libraries)
6462 ### It's not possible to appease gcc 2.6.3's conversion-warnings if we're
6463 ### using a 'char' for bools. gcc 2.7.0's conversion-warnings are broken too
6464 ### badly to consider using for development purposes, but 2.5.8 is okay.
6465 if test -n "$with_warnings"; then
6466 if test -n "$GCC"; then
6467 case "`$CC --version`" in
6469 if test "$cf_cv_type_of_bool" != "char"; then
6470 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion"
6474 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion"
6480 ### Construct the library-subsets, if any, from this set of keywords:
6481 ### none, base, ext_funcs, termlib.
6482 echo $ac_n "checking for library subsets""... $ac_c" 1>&6
6483 echo "configure:6484: checking for library subsets" >&5
6484 if test "$with_termlib" = yes ; then
6485 LIB_SUBSETS="termlib "
6487 LIB_SUBSETS="termlib+"
6489 LIB_SUBSETS="${LIB_SUBSETS}base"
6490 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
6491 echo "$ac_t""$LIB_SUBSETS" 1>&6
6500 ### Construct the list of include-directories to be generated
6502 CPPFLAGS="$CPPFLAGS -I. -I../include"
6503 if test "$srcdir" != "."; then
6504 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/../include"
6506 if test -z "$GCC"; then
6507 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
6508 elif test "$includedir" != "/usr/include"; then
6509 if test "$includedir" = '${prefix}/include' ; then
6510 if test $prefix != /usr ; then
6511 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
6514 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
6520 ACPPFLAGS="$ACPPFLAGS -I. -I../../include"
6521 if test "$srcdir" != "."; then
6522 ACPPFLAGS="$ACPPFLAGS -I\$(srcdir)/../../include"
6524 if test -z "$GCC"; then
6525 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
6526 elif test "$includedir" != "/usr/include"; then
6527 if test "$includedir" = '${prefix}/include' ; then
6528 if test $prefix != /usr ; then
6529 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
6532 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
6538 ### Build up pieces for makefile rules
6539 echo $ac_n "checking default library suffix""... $ac_c" 1>&6
6540 echo "configure:6541: checking default library suffix" >&5
6542 case $DFT_LWR_MODEL in
6543 normal) DFT_ARG_SUFFIX='' ;;
6544 debug) DFT_ARG_SUFFIX='_g' ;;
6545 profile) DFT_ARG_SUFFIX='_p' ;;
6546 shared) DFT_ARG_SUFFIX='' ;;
6548 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
6549 echo "$ac_t""$DFT_ARG_SUFFIX" 1>&6
6551 echo $ac_n "checking default library-dependency suffix""... $ac_c" 1>&6
6552 echo "configure:6553: checking default library-dependency suffix" >&5
6555 case $DFT_LWR_MODEL in
6556 normal) DFT_DEP_SUFFIX='.a' ;;
6557 debug) DFT_DEP_SUFFIX='_g.a' ;;
6558 profile) DFT_DEP_SUFFIX='_p.a' ;;
6560 case $cf_cv_system_name in
6561 hpux*) DFT_DEP_SUFFIX='.sl' ;;
6562 *) DFT_DEP_SUFFIX='.so' ;;
6565 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
6566 echo "$ac_t""$DFT_DEP_SUFFIX" 1>&6
6568 echo $ac_n "checking default object directory""... $ac_c" 1>&6
6569 echo "configure:6570: checking default object directory" >&5
6571 case $DFT_LWR_MODEL in
6572 normal) DFT_OBJ_SUBDIR='objects' ;;
6573 debug) DFT_OBJ_SUBDIR='obj_g' ;;
6574 profile) DFT_OBJ_SUBDIR='obj_p' ;;
6575 shared) DFT_OBJ_SUBDIR='obj_s' ;;
6577 echo "$ac_t""$DFT_OBJ_SUBDIR" 1>&6
6579 TINFO_LIST="$SHLIB_LIST"
6580 test $with_termlib = yes && SHLIB_LIST="$SHLIB_LIST -ltinfo${LIB_SUFFIX}"
6582 echo $ac_n "checking where we will install curses.h""... $ac_c" 1>&6
6583 echo "configure:6584: checking where we will install curses.h" >&5
6584 test "$with_overwrite" = no && \
6585 test "x$includedir" = 'x${prefix}/include' && \
6586 includedir='$(prefix)/include/ncurses'${LIB_SUFFIX}
6587 echo "$ac_t""$includedir" 1>&6
6593 ### Set up low-level terminfo dependencies for makefiles. Note that we
6594 ### could override this.
6595 if test "$with_termlib" = yes ; then
6596 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_NAME}${DFT_DEP_SUFFIX}"
6597 TEST_ARGS="-l${TINFO_NAME}${DFT_ARG_SUFFIX}"
6599 PROG_DEPS="$TEST_DEPS"
6600 PROG_ARGS="$TEST_ARGS"
6602 ### Construct the list of subdirectories for which we'll customize makefiles
6603 ### with the appropriate compile-rules.
6606 echo $ac_n "checking for src modules""... $ac_c" 1>&6
6607 echo "configure:6608: checking for src modules" >&5
6609 # dependencies and linker-arguments for test-programs
6610 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
6611 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
6613 # dependencies and linker-arguments for utility-programs
6614 PROG_ARGS="$TEST_ARGS"
6617 for cf_dir in $modules_to_build
6619 if test -f $srcdir/$cf_dir/modules; then
6621 # We may/may not have tack in the distribution, though the
6623 if test $cf_dir = tack ; then
6624 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
6629 if test -z "$cf_cv_src_modules"; then
6630 cf_cv_src_modules=$cf_dir
6632 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
6635 # Make the ncurses_cfg.h file record the library interface files as
6636 # well. These are header files that are the same name as their
6637 # directory. Ncurses is the only library that does not follow
6639 if test $cf_dir = tack ; then
6641 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
6643 cf_have_include=`echo $cf_dir | tr '[a-z]' '[A-Z]'`
6645 cat >> confdefs.h <<EOF
6646 #define HAVE_${cf_have_include}_H 1
6649 cat >> confdefs.h <<EOF
6650 #define HAVE_LIB${cf_have_include} 1
6653 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
6654 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
6658 echo "$ac_t""$cf_cv_src_modules" 1>&6
6659 TEST_ARGS="-L${LIB_DIR} -L\$(libdir) $TEST_ARGS"
6663 PROG_ARGS="-L${LIB_DIR} -L\$(libdir) $PROG_ARGS"
6666 SRC_SUBDIRS="man include"
6667 for cf_dir in $cf_cv_src_modules
6669 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
6671 SRC_SUBDIRS="$SRC_SUBDIRS misc test"
6672 test $cf_with_cxx_binding != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
6675 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
6676 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
6677 ADA_SUBDIRS="gen src samples"
6681 for cf_dir in $SRC_SUBDIRS
6683 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
6686 if test -n "$ADA_SUBDIRS"; then
6687 for cf_dir in $ADA_SUBDIRS
6689 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
6696 for cf_item in $cf_list_models
6700 normal) cf_subdir='objects' ;;
6701 debug) cf_subdir='obj_g' ;;
6702 profile) cf_subdir='obj_p' ;;
6703 shared) cf_subdir='obj_s' ;;
6706 DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
6708 for cf_dir in $DIRS_TO_MAKE
6710 test ! -d $cf_dir && mkdir $cf_dir
6715 ### Now that we're done running tests, add the compiler-warnings, if any
6716 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
6718 ################################################################################
6720 cat > confcache <<\EOF
6721 # This file is a shell script that caches the results of configure
6722 # tests run on this system so they can be shared between configure
6723 # scripts and configure runs. It is not useful on other systems.
6724 # If it contains results you don't want to keep, you may remove or edit it.
6726 # By default, configure uses ./config.cache as the cache file,
6727 # creating it if it does not exist already. You can give configure
6728 # the --cache-file=FILE option to use a different cache file; that is
6729 # what configure does when it calls configure scripts in
6730 # subdirectories, so they share the cache.
6731 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6732 # config.status only pays attention to the cache file if you give it the
6733 # --recheck option to rerun configure.
6736 # The following way of writing the cache mishandles newlines in values,
6737 # but we know of no workaround that is simple, portable, and efficient.
6738 # So, don't put newlines in cache variables' values.
6739 # Ultrix sh set writes to stderr and can't be redirected directly,
6740 # and sets the high bit in the cache file unless we assign to the vars.
6742 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6744 # `set' does not quote correctly, so add quotes (double-quote substitution
6745 # turns \\\\ into \\, and sed turns \\ into \).
6747 -e "s/'/'\\\\''/g" \
6748 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6751 # `set' quotes correctly as required by POSIX, so do not add quotes.
6752 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6755 if cmp -s $cache_file confcache; then
6758 if test -w $cache_file; then
6759 echo "updating cache $cache_file"
6760 cat confcache > $cache_file
6762 echo "not updating unwritable cache $cache_file"
6767 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6769 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6770 # Let make expand exec_prefix.
6771 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6773 # Any assignment to VPATH causes Sun make to only execute
6774 # the first set of double-colon rules, so remove it if not needed.
6775 # If there is a colon in the path, we need to keep it.
6776 if test "x$srcdir" = x.; then
6777 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6780 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6782 DEFS=-DHAVE_CONFIG_H
6784 # Without the "./", some shells look in PATH for config.status.
6785 : ${CONFIG_STATUS=./config.status}
6787 echo creating $CONFIG_STATUS
6788 rm -f $CONFIG_STATUS
6789 cat > $CONFIG_STATUS <<EOF
6791 # Generated automatically by configure.
6792 # Run this file to recreate the current configuration.
6793 # This directory was configured as follows,
6794 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6796 # $0 $ac_configure_args
6798 # Compiler output produced by configure, useful for debugging
6799 # configure, is in ./config.log if it exists.
6801 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6804 case "\$ac_option" in
6805 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6806 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6807 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6808 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6809 echo "$CONFIG_STATUS generated by autoconf version 2.13.19990117"
6811 -help | --help | --hel | --he | --h)
6812 echo "\$ac_cs_usage"; exit 0 ;;
6813 *) echo "\$ac_cs_usage"; exit 1 ;;
6817 ac_given_srcdir=$srcdir
6818 ac_given_INSTALL="$INSTALL"
6820 trap 'rm -fr `echo "\
6821 include/MKterm.h.awk \
6826 Makefile include/ncurses_cfg.h:include/ncurses_cfg.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6828 cat >> $CONFIG_STATUS <<EOF
6830 # Protect against being on the right side of a sed subst in config.status.
6831 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6832 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6836 s%@CFLAGS@%$CFLAGS%g
6837 s%@CPPFLAGS@%$CPPFLAGS%g
6838 s%@CXXFLAGS@%$CXXFLAGS%g
6839 s%@FFLAGS@%$FFLAGS%g
6841 s%@LDFLAGS@%$LDFLAGS%g
6843 s%@exec_prefix@%$exec_prefix%g
6844 s%@prefix@%$prefix%g
6845 s%@program_transform_name@%$program_transform_name%g
6846 s%@bindir@%$bindir%g
6847 s%@sbindir@%$sbindir%g
6848 s%@libexecdir@%$libexecdir%g
6849 s%@datadir@%$datadir%g
6850 s%@sysconfdir@%$sysconfdir%g
6851 s%@sharedstatedir@%$sharedstatedir%g
6852 s%@localstatedir@%$localstatedir%g
6853 s%@libdir@%$libdir%g
6854 s%@includedir@%$includedir%g
6855 s%@oldincludedir@%$oldincludedir%g
6856 s%@infodir@%$infodir%g
6857 s%@mandir@%$mandir%g
6858 s%@NCURSES_MAJOR@%$NCURSES_MAJOR%g
6859 s%@NCURSES_MINOR@%$NCURSES_MINOR%g
6860 s%@NCURSES_PATCH@%$NCURSES_PATCH%g
6861 s%@cf_cv_rel_version@%$cf_cv_rel_version%g
6862 s%@cf_cv_abi_version@%$cf_cv_abi_version%g
6863 s%@cf_cv_cc_bool_type@%$cf_cv_cc_bool_type%g
6864 s%@cf_cv_builtin_bool@%$cf_cv_builtin_bool%g
6865 s%@cf_cv_type_of_bool@%$cf_cv_type_of_bool%g
6867 s%@host_alias@%$host_alias%g
6868 s%@host_cpu@%$host_cpu%g
6869 s%@host_vendor@%$host_vendor%g
6870 s%@host_os@%$host_os%g
6872 s%@BUILD_CC@%$BUILD_CC%g
6874 s%@PROG_EXT@%$PROG_EXT%g
6875 s%@LDCONFIG@%$LDCONFIG%g
6878 s%@SET_MAKE@%$SET_MAKE%g
6879 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6880 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6881 s%@INSTALL_DATA@%$INSTALL_DATA%g
6883 s%@RANLIB@%$RANLIB%g
6886 s%@LINT_OPTS@%$LINT_OPTS%g
6889 s%@AR_OPTS@%$AR_OPTS%g
6890 s%@cf_cv_makeflags@%$cf_cv_makeflags%g
6891 s%@INSTALL_PREFIX@%$INSTALL_PREFIX%g
6892 s%@cf_list_models@%$cf_list_models%g
6893 s%@DFT_LWR_MODEL@%$DFT_LWR_MODEL%g
6894 s%@DFT_UPR_MODEL@%$DFT_UPR_MODEL%g
6895 s%@TINFO_NAME@%$TINFO_NAME%g
6896 s%@LIB_NAME@%$LIB_NAME%g
6897 s%@LIB_PREFIX@%$LIB_PREFIX%g
6898 s%@LIB_SUFFIX@%$LIB_SUFFIX%g
6899 s%@CC_G_OPT@%$CC_G_OPT%g
6900 s%@CXX_G_OPT@%$CXX_G_OPT%g
6901 s%@LD_MODEL@%$LD_MODEL%g
6902 s%@CC_SHARED_OPTS@%$CC_SHARED_OPTS%g
6903 s%@LD_SHARED_OPTS@%$LD_SHARED_OPTS%g
6904 s%@MK_SHARED_LIB@%$MK_SHARED_LIB%g
6905 s%@LINK_PROGS@%$LINK_PROGS%g
6906 s%@LINK_TESTS@%$LINK_TESTS%g
6907 s%@EXTRA_LDFLAGS@%$EXTRA_LDFLAGS%g
6908 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
6909 s%@LOCAL_LDFLAGS2@%$LOCAL_LDFLAGS2%g
6910 s%@INSTALL_LIB@%$INSTALL_LIB%g
6911 s%@FALLBACK_LIST@%$FALLBACK_LIST%g
6912 s%@TERMINFO_DIRS@%$TERMINFO_DIRS%g
6913 s%@NCURSES_CONST@%$NCURSES_CONST%g
6914 s%@NCURSES_XNAMES@%$NCURSES_XNAMES%g
6915 s%@ECHO_LINK@%$ECHO_LINK%g
6916 s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g
6917 s%@MATH_LIB@%$MATH_LIB%g
6918 s%@cf_cv_typeof_chtype@%$cf_cv_typeof_chtype%g
6919 s%@cf_cv_1UL@%$cf_cv_1UL%g
6920 s%@cf_cv_shift_limit@%$cf_cv_shift_limit%g
6921 s%@cf_cv_widec_shift@%$cf_cv_widec_shift%g
6922 s%@OSPEED_TYPE@%$OSPEED_TYPE%g
6923 s%@OSPEED_INCLUDES@%$OSPEED_INCLUDES%g
6924 s%@CXXCPP@%$CXXCPP%g
6925 s%@CXXLDFLAGS@%$CXXLDFLAGS%g
6926 s%@CXXLIBS@%$CXXLIBS%g
6927 s%@gnat_exists@%$gnat_exists%g
6928 s%@m4_exists@%$m4_exists%g
6929 s%@cf_ada_make@%$cf_ada_make%g
6930 s%@cf_ada_compiler@%$cf_ada_compiler%g
6931 s%@cf_ada_package@%$cf_ada_package%g
6932 s%@ADAFLAGS@%$ADAFLAGS%g
6933 s%@cf_compile_generics@%$cf_compile_generics%g
6934 s%@cf_generic_objects@%$cf_generic_objects%g
6935 s%@ADA_INCLUDE@%$ADA_INCLUDE%g
6936 s%@ADA_OBJECTS@%$ADA_OBJECTS%g
6937 s%@ACPPFLAGS@%$ACPPFLAGS%g
6938 s%@DFT_ARG_SUFFIX@%$DFT_ARG_SUFFIX%g
6939 s%@DFT_DEP_SUFFIX@%$DFT_DEP_SUFFIX%g
6940 s%@DFT_OBJ_SUBDIR@%$DFT_OBJ_SUBDIR%g
6941 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
6942 s%@TINFO_LIST@%$TINFO_LIST%g
6943 s%@SHLIB_LIST@%$SHLIB_LIST%g
6944 s%@TEST_DEPS@%$TEST_DEPS%g
6945 s%@TEST_ARGS@%$TEST_ARGS%g
6946 s%@PROG_ARGS@%$PROG_ARGS%g
6947 s%@ADA_SUBDIRS@%$ADA_SUBDIRS%g
6948 s%@DIRS_TO_MAKE@%$DIRS_TO_MAKE%g
6953 cat >> $CONFIG_STATUS <<\EOF
6955 # Split the substitutions into bite-sized pieces for seds with
6956 # small command number limits, like on Digital OSF/1 and HP-UX.
6957 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6958 ac_file=1 # Number of current file.
6959 ac_beg=1 # First line for current file.
6960 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6963 while $ac_more_lines; do
6964 if test $ac_beg -gt 1; then
6965 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6967 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6969 if test ! -s conftest.s$ac_file; then
6971 rm -f conftest.s$ac_file
6973 if test -z "$ac_sed_cmds"; then
6974 ac_sed_cmds="sed -f conftest.s$ac_file"
6976 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6978 ac_file=`expr $ac_file + 1`
6980 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6983 if test -z "$ac_sed_cmds"; then
6988 cat >> $CONFIG_STATUS <<EOF
6990 CONFIG_FILES=\${CONFIG_FILES-"\
6991 include/MKterm.h.awk \
6998 cat >> $CONFIG_STATUS <<\EOF
6999 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7000 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7002 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7003 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7004 *) ac_file_in="${ac_file}.in" ;;
7007 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7009 # Remove last slash and all that follows it. Not all systems have dirname.
7010 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7011 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7012 # The file is in a subdirectory.
7013 test ! -d "$ac_dir" && mkdir "$ac_dir"
7014 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7015 # A "../" for each directory in $ac_dir_suffix.
7016 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7018 ac_dir_suffix= ac_dots=
7021 case "$ac_given_srcdir" in
7023 if test -z "$ac_dots"; then top_srcdir=.
7024 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7025 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7027 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7028 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7031 case "$ac_given_INSTALL" in
7032 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7033 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7036 echo creating "$ac_file"
7038 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7040 *Makefile*) ac_comsub="1i\\
7041 # $configure_input" ;;
7045 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7047 s%@configure_input@%$configure_input%g
7048 s%@srcdir@%$srcdir%g
7049 s%@top_srcdir@%$top_srcdir%g
7050 s%@INSTALL@%$INSTALL%g
7051 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7055 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7056 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7058 # ac_d sets the value in "#define NAME VALUE" lines.
7059 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7060 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7063 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7064 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7065 ac_uB='\([ ]\)%\1#\2define\3'
7068 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7069 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7070 ac_eB='$%\1#\2define\3'
7074 if test "${CONFIG_HEADERS+set}" != set; then
7076 cat >> $CONFIG_STATUS <<EOF
7077 CONFIG_HEADERS="include/ncurses_cfg.h:include/ncurses_cfg.hin"
7079 cat >> $CONFIG_STATUS <<\EOF
7081 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7082 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7084 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7085 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7086 *) ac_file_in="${ac_file}.in" ;;
7089 echo creating $ac_file
7091 rm -f conftest.frag conftest.in conftest.out
7092 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7093 cat $ac_file_inputs > conftest.in
7098 # Transform confdefs.h into a list of #define's. We won't use it as a sed
7099 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
7100 # be either 'cat' or 'sort'.
7101 sort confdefs.h >conftest.vals
7103 # Break up conftest.vals because some shells have a limit on
7104 # the size of here documents, and old seds have small limits too.
7107 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
7110 ac_lines=`grep -c . conftest.vals`
7111 # grep -c gives empty output for an empty file on some AIX systems.
7112 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7113 # Write chunks of a limited-size here document to conftest.frag.
7114 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
7115 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7116 echo 'CEOF' >> $CONFIG_STATUS
7117 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7119 mv conftest.tail conftest.vals
7123 # Run sed to substitute the contents of conftest.frag into conftest.in at the
7125 echo ' cat >> conftest.edit <<CEOF
7126 /@DEFS@/r conftest.frag
7129 sed -f conftest.edit conftest.in > conftest.out
7131 mv conftest.out conftest.in
7132 rm -f conftest.edit conftest.frag
7136 cat >> $CONFIG_STATUS <<\EOF
7137 rm -f conftest.frag conftest.h
7138 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7139 cat conftest.in >> conftest.h
7141 if cmp -s $ac_file conftest.h 2>/dev/null; then
7142 echo "$ac_file is unchanged"
7145 # Remove last slash and all that follows it. Not all systems have dirname.
7146 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7147 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7148 # The file is in a subdirectory.
7149 test ! -d "$ac_dir" && mkdir "$ac_dir"
7152 mv conftest.h $ac_file
7157 cat >> $CONFIG_STATUS <<EOF
7158 # Extra initialization commands, if any
7160 ### Special initialization commands, used to pass information from the
7161 ### configuration-run into config.status
7164 CF_LIST_MODELS="$cf_list_models"
7165 DFT_LWR_MODEL="$DFT_LWR_MODEL"
7166 LDCONFIG="$LDCONFIG"
7167 LIB_NAME="$LIB_NAME"
7168 LIB_SUFFIX="$LIB_SUFFIX"
7169 LIB_SUBSETS="$LIB_SUBSETS"
7170 LIB_TRACING="$LIB_TRACING"
7171 SRC_SUBDIRS="$SRC_SUBDIRS"
7172 TINFO_NAME="$TINFO_NAME"
7173 WITH_ECHO="$with_echo"
7174 WITH_OVERWRITE="$with_overwrite"
7175 cf_cv_abi_version="$cf_cv_abi_version"
7176 cf_cv_do_symlinks="$cf_cv_do_symlinks"
7177 cf_cv_rel_version="$cf_cv_rel_version"
7178 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
7179 cf_cv_system_name="$cf_cv_system_name"
7180 cf_with_cxx_binding="$cf_with_cxx_binding"
7181 cf_cv_shlib_version="$cf_cv_shlib_version"
7186 cat >> $CONFIG_STATUS <<\EOF
7187 # Extra commands, if any
7191 case $cf_cv_system_name in
7192 os2) LIB_PREFIX='' ;;
7193 *) LIB_PREFIX='lib' ;;
7195 cf_prefix=$LIB_PREFIX
7199 for cf_dir in $SRC_SUBDIRS
7201 if test -f $srcdir/$cf_dir/modules; then
7204 for cf_item in $CF_LIST_MODELS
7209 normal) cf_suffix='.a' ;;
7210 debug) cf_suffix='_g.a' ;;
7211 profile) cf_suffix='_p.a' ;;
7213 case $cf_cv_system_name in
7214 hpux*) cf_suffix='.sl' ;;
7215 *) cf_suffix='.so' ;;
7218 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
7220 if test $cf_item = shared ; then
7221 if test $cf_cv_do_symlinks = yes ; then
7222 case "$cf_cv_shlib_version" in #(vi
7223 rel) cf_suffix="$cf_suffix"'.$(REL_VERSION)' ;; #(vi
7224 abi) cf_suffix="$cf_suffix"'.$(ABI_VERSION)' ;;
7228 cf_libs_to_make="$cf_libs_to_make ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
7231 if test $cf_dir = ncurses ; then
7232 case "$LIB_SUBSETS" in #(vi
7236 cf_item=`echo $cf_libs_to_make |sed -e s/$LIB_NAME/$TINFO_NAME/g`
7237 cf_libs_to_make="$cf_item $cf_libs_to_make"
7242 sed -e "s@\@LIBS_TO_MAKE\@@$cf_libs_to_make@" \
7243 $cf_dir/Makefile >$cf_dir/Makefile.out
7244 mv $cf_dir/Makefile.out $cf_dir/Makefile
7246 $AWK -f $srcdir/mk-0th.awk \
7248 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
7250 for cf_item in $CF_LIST_MODELS
7252 echo 'Appending rules for '$cf_item' model ('$cf_dir')'
7254 CF_ITEM=`echo $cf_item | tr '[a-z]' '[A-Z]'`
7259 normal) cf_suffix='.a' ;;
7260 debug) cf_suffix='_g.a' ;;
7261 profile) cf_suffix='_p.a' ;;
7263 case $cf_cv_system_name in
7264 hpux*) cf_suffix='.sl' ;;
7265 *) cf_suffix='.so' ;;
7268 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
7272 normal) cf_subdir='objects' ;;
7273 debug) cf_subdir='obj_g' ;;
7274 profile) cf_subdir='obj_p' ;;
7275 shared) cf_subdir='obj_s' ;;
7279 # These dependencies really are for development, not
7280 # builds, but they are useful in porting, too.
7281 cf_depend="../include/ncurses_cfg.h"
7282 if test "$srcdir" = "."; then
7285 cf_reldir="\$(srcdir)"
7288 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
7289 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
7290 elif test -f $srcdir/$cf_dir/curses.priv.h; then
7291 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
7294 for cf_subset in $LIB_SUBSETS
7296 $AWK -f $srcdir/mk-1st.awk \
7298 traces=$LIB_TRACING \
7304 ShlibVer=$cf_cv_shlib_version \
7305 DoLinks=$cf_cv_do_symlinks \
7306 rmSoLocs=$cf_cv_rm_so_locs \
7307 ldconfig="$LDCONFIG" \
7308 overwrite=$WITH_OVERWRITE \
7309 depend="$cf_depend" \
7311 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
7312 test $cf_dir = ncurses && WITH_OVERWRITE=no
7313 $AWK -f $srcdir/mk-2nd.awk \
7315 traces=$LIB_TRACING \
7321 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
7326 echo ' cd '$cf_dir' && $(MAKE) $(CF_MFLAGS) $@' >>Makefile
7329 for cf_dir in $SRC_SUBDIRS
7331 if test -f $cf_dir/Makefile ; then
7334 echo 'libs \' >> Makefile
7335 echo 'install.libs \' >> Makefile
7336 echo 'uninstall.libs ::' >> Makefile
7337 echo ' cd '$cf_dir' && $(MAKE) $(CF_MFLAGS) $@' >> Makefile
7342 if test -f $srcdir/$cf_dir/modules; then
7344 if test -f $srcdir/$cf_dir/headers; then
7345 cat >> Makefile <<CF_EOF
7347 uninstall.includes \\
7350 if test "$cf_dir" != "c++" ; then
7351 echo 'lint \' >> Makefile
7353 cat >> Makefile <<CF_EOF
7359 uninstall.$cf_dir ::
7360 cd $cf_dir && \$(MAKE) \$(CF_MFLAGS) \$@
7362 elif test -f $srcdir/$cf_dir/headers; then
7363 cat >> Makefile <<CF_EOF
7369 uninstall.includes ::
7370 cd $cf_dir && \$(MAKE) \$(CF_MFLAGS) \$@
7375 cat >> Makefile <<CF_EOF
7379 cd misc && \$(MAKE) \$(CF_MFLAGS) \$@
7383 cd man && \$(MAKE) \$(CF_MFLAGS) \$@
7386 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
7387 rm -f headers.sh headers.sed
7388 rm -rf \$(DIRS_TO_MAKE)
7392 rm -f headers.sed headers.sh
7394 echo creating headers.sh
7395 cat >headers.sh <<CF_EOF
7397 # This shell script is generated by the 'configure' script. It is invoked in a
7398 # subdirectory of the build tree. It generates a sed-script in the parent
7399 # directory that is used to adjust includes for header files that reside in a
7400 # subdirectory of /usr/include, etc.
7404 PRG="\$PRG \$1"; shift
7409 echo installing \$SRC in \$DST
7412 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
7413 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
7414 END=\`basename \$DST\`
7415 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
7417 NAME=\`basename \$i\`
7418 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
7421 sed -f \$TMPSED \$SRC > \$TMPSRC
7422 eval \$PRG \$TMPSRC \$DST/\$SRC
7423 rm -f \$TMPSRC \$TMPSED
7426 eval \$PRG \$SRC \$DST
7431 chmod 0755 headers.sh
7433 for cf_dir in $SRC_SUBDIRS
7435 if test -f $srcdir/$cf_dir/headers; then
7436 cat >>$cf_dir/Makefile <<CF_EOF
7437 \$(INSTALL_PREFIX)\$(includedir) :
7438 \$(srcdir)/../mkinstalldirs \$@
7442 install.includes :: \$(INSTALL_PREFIX)\$(includedir) \\
7445 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
7447 test -n "$j" && echo " $j \\" >>$cf_dir/Makefile
7450 echo " $j" >>$cf_dir/Makefile
7451 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
7453 echo " @ (cd \$(INSTALL_PREFIX)\$(includedir) && rm -f `basename $i`) ; ../headers.sh \$(INSTALL_DATA) \$(INSTALL_PREFIX)\$(includedir) \$(srcdir) $i" >>$cf_dir/Makefile
7454 test $i = curses.h && echo " @ (cd \$(INSTALL_PREFIX)\$(includedir) && rm -f ncurses.h && \$(LN_S) curses.h ncurses.h)" >>$cf_dir/Makefile
7457 cat >>$cf_dir/Makefile <<CF_EOF
7461 uninstall.includes ::
7463 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
7466 echo " -@ (cd \$(INSTALL_PREFIX)\$(includedir) && rm -f $i)" >>$cf_dir/Makefile
7467 test $i = curses.h && echo " -@ (cd \$(INSTALL_PREFIX)\$(includedir) && rm -f ncurses.h)" >>$cf_dir/Makefile
7476 chmod +x $CONFIG_STATUS
7477 rm -fr confdefs* $ac_clean_files
7478 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7479 ${MAKE-make} preinstall