3 # From configure.in Revision: 1.217
7 # Guess values for system-dependent variables and create Makefiles.
8 # Generated automatically using autoconf version 2.13.20000819
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 the Libraries Built/Used:
198 --with-shared generate shared-libraries
199 --with-normal generate normal-libraries (default)
200 --with-debug generate debug-libraries (default)
201 --with-profile generate profile-libraries
202 --with-termlib generate separate terminfo library
205 --with-dbmalloc test: use Conor Cahill's dbmalloc library
206 --with-dmalloc test: use Gray Watson's dmalloc library
207 --with-gpm use Alessandro Rubini's GPM library
208 --enable-rpath use rpath option when generating shared libraries
209 --with-shlib-version=X Specify rel or abi version for shared libs
210 Fine-Tuning Your Configuration:
211 --disable-overwrite leave out the link to -lcurses
212 --disable-database use only built-in data
213 --with-database=XXX specify terminfo source to install
214 --with-fallbacks=XXX specify list of fallback terminal descriptions
215 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
216 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
219 --disable-big-core assume machine has little memory
220 --enable-termcap compile in termcap fallback support
221 --enable-getcap fast termcap load, no xrefs to terminfo
222 --enable-getcap-cache cache translated termcaps in ~/.terminfo
223 --enable-symlinks make tic use symbolic links not hard links
224 --enable-broken_linker compile with broken-linker support code
225 --enable-bsdpad recognize BSD-style prefix padding
226 --with-rcs-ids compile-in RCS identifiers
227 Options to Specify How Manpages are Installed:
228 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
229 optionally formatted, e.g., gzip,formatted
230 --with-manpage-renames specify manpage-renaming
231 --with-manpage-symlinks specify manpage-symlinks
235 --disable-ext-funcs disable function-extensions
236 --enable-const compile with extra/non-standard const
237 --enable-no-padding compile with \$NCURSES_NO_PADDING code
238 --enable-sigwinch compile with SIGWINCH handler
239 --enable-tcap-names compile with user-definable terminal capabilities
241 --with-develop enable all development options
242 --enable-colorfgbg compile with \$COLORFGBG code
243 --enable-hard-tabs compile with hard-tabs code
244 --disable-root-environ limit environment when running as root
245 --enable-xmc-glitch compile with limited support for xmc
249 --disable-assumed-color do not assume anything about default-colors
250 --disable-hashmap compile without hashmap scrolling-optimization
251 --enable-safe-sprintf compile with experimental safe-sprintf code
252 --disable-scroll-hints compile without scroll-hints code
253 --enable-widec compile with experimental wide-char/UTF-8 code
254 Testing/development Options:
255 --enable-echo build: display "compiling" commands (default)
256 --enable-warnings build: turn on GCC compiler warnings
257 --enable-assertions test: turn on generation of assertion code
258 --disable-leaks test: suppress permanent memory-leaks
259 --enable-expanded test: generate functions for certain macros
262 --disable-macros test: use functions rather than macros
263 Ada95 Binding Options:
264 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
265 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
266 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
270 -host | --host | --hos | --ho)
272 -host=* | --host=* | --hos=* | --ho=*)
275 -includedir | --includedir | --includedi | --included | --include \
276 | --includ | --inclu | --incl | --inc)
277 ac_prev=includedir ;;
278 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
279 | --includ=* | --inclu=* | --incl=* | --inc=*)
280 includedir="$ac_optarg" ;;
282 -infodir | --infodir | --infodi | --infod | --info | --inf)
284 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
285 infodir="$ac_optarg" ;;
287 -libdir | --libdir | --libdi | --libd)
289 -libdir=* | --libdir=* | --libdi=* | --libd=*)
290 libdir="$ac_optarg" ;;
292 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
293 | --libexe | --libex | --libe)
294 ac_prev=libexecdir ;;
295 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
296 | --libexe=* | --libex=* | --libe=*)
297 libexecdir="$ac_optarg" ;;
299 -localstatedir | --localstatedir | --localstatedi | --localstated \
300 | --localstate | --localstat | --localsta | --localst \
301 | --locals | --local | --loca | --loc | --lo)
302 ac_prev=localstatedir ;;
303 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
304 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
305 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
306 localstatedir="$ac_optarg" ;;
308 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
310 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
311 mandir="$ac_optarg" ;;
314 # Obsolete; use --without-fp.
317 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
321 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
322 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
325 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
326 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
327 | --oldin | --oldi | --old | --ol | --o)
328 ac_prev=oldincludedir ;;
329 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
330 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
331 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
332 oldincludedir="$ac_optarg" ;;
334 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
336 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
337 prefix="$ac_optarg" ;;
339 -program-prefix | --program-prefix | --program-prefi | --program-pref \
340 | --program-pre | --program-pr | --program-p)
341 ac_prev=program_prefix ;;
342 -program-prefix=* | --program-prefix=* | --program-prefi=* \
343 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
344 program_prefix="$ac_optarg" ;;
346 -program-suffix | --program-suffix | --program-suffi | --program-suff \
347 | --program-suf | --program-su | --program-s)
348 ac_prev=program_suffix ;;
349 -program-suffix=* | --program-suffix=* | --program-suffi=* \
350 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
351 program_suffix="$ac_optarg" ;;
353 -program-transform-name | --program-transform-name \
354 | --program-transform-nam | --program-transform-na \
355 | --program-transform-n | --program-transform- \
356 | --program-transform | --program-transfor \
357 | --program-transfo | --program-transf \
358 | --program-trans | --program-tran \
359 | --progr-tra | --program-tr | --program-t)
360 ac_prev=program_transform_name ;;
361 -program-transform-name=* | --program-transform-name=* \
362 | --program-transform-nam=* | --program-transform-na=* \
363 | --program-transform-n=* | --program-transform-=* \
364 | --program-transform=* | --program-transfor=* \
365 | --program-transfo=* | --program-transf=* \
366 | --program-trans=* | --program-tran=* \
367 | --progr-tra=* | --program-tr=* | --program-t=*)
368 program_transform_name="$ac_optarg" ;;
370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
371 | -silent | --silent | --silen | --sile | --sil)
374 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
376 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
378 sbindir="$ac_optarg" ;;
380 -sharedstatedir | --sharedstatedir | --sharedstatedi \
381 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
382 | --sharedst | --shareds | --shared | --share | --shar \
384 ac_prev=sharedstatedir ;;
385 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
386 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
387 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
389 sharedstatedir="$ac_optarg" ;;
391 -site | --site | --sit)
393 -site=* | --site=* | --sit=*)
396 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
398 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
399 srcdir="$ac_optarg" ;;
401 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
402 | --syscon | --sysco | --sysc | --sys | --sy)
403 ac_prev=sysconfdir ;;
404 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
405 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
406 sysconfdir="$ac_optarg" ;;
408 -target | --target | --targe | --targ | --tar | --ta | --t)
410 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
411 target="$ac_optarg" ;;
413 -v | -verbose | --verbose | --verbos | --verbo | --verb)
416 -version | --version | --versio | --versi | --vers)
417 echo "configure generated by autoconf version 2.13.20000819"
421 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}='$ac_optarg'" ;;
433 -without-* | --without-*)
434 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
435 # Reject names that are not valid shell variable names.
436 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
439 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 eval "with_${ac_package}=no" ;;
443 # Obsolete; use --with-x.
446 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
447 | --x-incl | --x-inc | --x-in | --x-i)
448 ac_prev=x_includes ;;
449 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
450 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
451 x_includes="$ac_optarg" ;;
453 -x-libraries | --x-libraries | --x-librarie | --x-librari \
454 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
455 ac_prev=x_libraries ;;
456 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
457 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
458 x_libraries="$ac_optarg" ;;
460 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
464 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
465 echo "configure: warning: $ac_option: invalid host type" 1>&2
467 if test "x$nonopt" != xNONE; then
468 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
476 if test -n "$ac_prev"; then
477 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
480 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
482 # File descriptor usage:
485 # 2 errors and warnings
486 # 3 some systems may open it to /dev/tty
487 # 4 used on the Kubota Titan
488 # 6 checking for... messages and results
489 # 5 compiler messages saved in config.log
490 if test "$silent" = yes; then
498 This file contains any messages produced by compilers while
499 running configure, to aid debugging if configure makes a mistake.
502 # Strip out --no-create and --no-recursion so they do not pile up.
503 # Also quote any args containing shell metacharacters.
508 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
509 | --no-cr | --no-c) ;;
510 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
511 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
513 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
514 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
519 # Only set these to C if already set. These must not be set unconditionally
520 # because not all systems understand e.g. LANG=C (notably SCO).
521 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
522 # Non-C LC_CTYPE values break the ctype check.
523 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
524 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
525 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
526 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
528 # confdefs.h avoids OS command line length limits that DEFS can exceed.
529 rm -rf conftest* confdefs.h
530 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
533 # A filename unique to this package, relative to the directory that
534 # configure is in, which we can look for to find out if srcdir is correct.
535 ac_unique_file=ncurses/base/lib_initscr.c
537 # Find the source files, if location was not specified.
538 if test -z "$srcdir"; then
539 ac_srcdir_defaulted=yes
540 # Try the directory containing this script, then its parent.
542 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
543 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
545 if test ! -r $srcdir/$ac_unique_file; then
549 ac_srcdir_defaulted=no
551 if test ! -r $srcdir/$ac_unique_file; then
552 if test "$ac_srcdir_defaulted" = yes; then
553 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
555 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
558 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
560 # Prefer explicitly selected file to automatically selected ones.
561 if test -z "$CONFIG_SITE"; then
562 if test "x$prefix" != xNONE; then
563 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
565 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
568 for ac_site_file in $CONFIG_SITE; do
569 if test -r "$ac_site_file"; then
570 echo "loading site script $ac_site_file"
575 if test -r "$cache_file"; then
576 echo "loading cache $cache_file"
579 echo "creating cache $cache_file"
584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
585 ac_cpp='$CPP $CPPFLAGS'
586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
588 cross_compiling=$ac_cv_prog_cc_cross
592 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
593 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
594 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
601 ac_n= ac_c='\c' ac_t=
608 NCURSES_MAJOR="`egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
609 NCURSES_MINOR="`egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
610 NCURSES_PATCH="`egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
611 cf_cv_abi_version=${NCURSES_MAJOR}
612 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
613 echo "$ac_t""Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version (`date`)" 1>&6
623 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
624 if test -f $ac_dir/install-sh; then
626 ac_install_sh="$ac_aux_dir/install-sh -c"
628 elif test -f $ac_dir/install.sh; then
630 ac_install_sh="$ac_aux_dir/install.sh -c"
634 if test -z "$ac_aux_dir"; then
635 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
637 ac_config_guess=$ac_aux_dir/config.guess
638 ac_config_sub=$ac_aux_dir/config.sub
639 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
642 if test -f $srcdir/config.guess ; then
644 # Do some error checking and defaulting for the host and target type.
646 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
649 # 1. You are not allowed to specify --host, --target, and nonopt at the
651 # 2. Host defaults to nonopt.
652 # 3. If nonopt is not specified, then host defaults to the current host,
653 # as determined by config.guess.
654 # 4. Target and build default to nonopt.
655 # 5. If nonopt is not specified, then target and build default to host.
657 # The aliases save the names the user supplied, while $host etc.
658 # will get canonicalized.
659 case $host---$target---$nonopt in
660 NONE---*---* | *---NONE---* | *---*---NONE) ;;
661 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
665 # Make sure we can run config.sub.
666 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
667 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
670 echo $ac_n "checking host system type""... $ac_c" 1>&6
671 echo "configure:672: checking host system type" >&5
674 case "$host_alias" in
678 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
679 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
681 *) host_alias=$nonopt ;;
685 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
686 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
687 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
688 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
689 echo "$ac_t""$host" 1>&6
691 echo $ac_n "checking target system type""... $ac_c" 1>&6
692 echo "configure:693: checking target system type" >&5
695 case "$target_alias" in
698 NONE) target_alias=$host_alias ;;
699 *) target_alias=$nonopt ;;
703 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
704 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
705 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
706 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
707 echo "$ac_t""$target" 1>&6
709 echo $ac_n "checking build system type""... $ac_c" 1>&6
710 echo "configure:711: checking build system type" >&5
713 case "$build_alias" in
716 NONE) build_alias=$host_alias ;;
717 *) build_alias=$nonopt ;;
721 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
722 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
723 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
724 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
725 echo "$ac_t""$build" 1>&6
727 test "$host_alias" != "$target_alias" &&
728 test "$program_prefix$program_suffix$program_transform_name" = \
730 program_prefix=${target_alias}-
732 system_name="$host_os"
734 system_name="`(uname -s -r) 2>/dev/null`"
735 if test -z "$system_name" ; then
736 system_name="`(hostname) 2>/dev/null`"
739 test -n "$system_name" && cat >> confdefs.h <<EOF
740 #define SYSTEM_NAME "$system_name"
743 if eval "test \"`echo '$''{'cf_cv_system_name'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 cf_cv_system_name="$system_name"
750 test -z "$system_name" && system_name="$cf_cv_system_name"
751 test -n "$cf_cv_system_name" && echo "$ac_t"""Configuring for $cf_cv_system_name"" 1>&6
753 if test ".$system_name" != ".$cf_cv_system_name" ; then
754 echo "$ac_t""Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" 1>&6
755 { echo "configure: error: "Please remove config.cache and try again."" 1>&2; exit 1; }
759 # Check whether --with-system-type or --without-system-type was given.
760 if test "${with_system_type+set}" = set; then
761 withval="$with_system_type"
762 echo "configure: warning: overriding system type to $withval" 1>&2
763 cf_cv_system_name=$withval
767 # We need a configure script only when compiling as part of GNU C library.
768 # Here we have to generate one of the files we need while compiling.
770 # The only problem is that users of the package might think they have to
771 # run configure themself and find it irritating when nothing happens.
773 # So we try here to find out whether we are called from the glibc configure
777 # Check whether --enable-add-ons or --disable-add-ons was given.
778 if test "${enable_add_ons+set}" = set; then
779 enableval="$enable_add_ons"
786 if test x"$glibc_add_on" = "xyes" ; then
789 rm -f $srcdir/Makefile
790 cp $srcdir/Makefile.glibc $srcdir/Makefile
791 echo "ncurses `grep \"^[ ]*ncurses-version[ ]*=.*$\" \
792 $srcdir/Makefile | sed -e \
793 's/^[ ]*ncurses-version[ ]*=[ ]*\([^ ^ ]*\)[ ]*$/\1/'`" > $srcdir/Banner
797 ### Save the given $CFLAGS to allow user-override.
798 cf_user_CFLAGS="$CFLAGS"
800 ### Default install-location
802 echo $ac_n "checking for prefix""... $ac_c" 1>&6
803 echo "configure:804: checking for prefix" >&5
804 if test "x$prefix" = "xNONE" ; then
805 case "$cf_cv_system_name" in
806 # non-vendor systems don't have a conflict
807 openbsd*|netbsd*|freebsd*|linux*)
810 *) prefix=$ac_default_prefix
814 echo "$ac_t""$prefix" 1>&6
816 if test "x$prefix" = "xNONE" ; then
817 echo $ac_n "checking for default include-directory""... $ac_c" 1>&6
818 echo "configure:819: checking for default include-directory" >&5
819 test -n "$verbose" && echo 1>&6
822 $includedir/ncurses \
824 $prefix/include/ncurses \
826 /usr/local/include/ncurses \
830 cf_dir=`eval echo $cf_symbol`
831 if test -f $cf_dir/curses.h ; then
832 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
833 includedir="$cf_symbol"
834 test -n "$verbose" && echo $ac_n " found " 1>&6
838 test -n "$verbose" && echo " tested $cf_dir" 1>&6
840 echo "$ac_t""$includedir" 1>&6
844 ### Checks for programs.
845 # Extract the first word of "gcc", so it can be a program name with args.
846 set dummy gcc; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 if test -n "$CC"; then
853 ac_cv_prog_CC="$CC" # Let the user override the test.
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
868 if test -n "$CC"; then
869 echo "$ac_t""$CC" 1>&6
871 echo "$ac_t""no" 1>&6
874 if test -z "$CC"; then
875 # Extract the first word of "cc", so it can be a program name with args.
876 set dummy cc; ac_word=$2
877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
878 echo "configure:879: checking for $ac_word" >&5
879 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
882 if test -n "$CC"; then
883 ac_cv_prog_CC="$CC" # Let the user override the test.
885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
888 for ac_dir in $ac_dummy; do
889 test -z "$ac_dir" && ac_dir=.
890 if test -f $ac_dir/$ac_word; then
891 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
900 if test $ac_prog_rejected = yes; then
901 # We found a bogon in the path, so make sure we never use it.
902 set dummy $ac_cv_prog_CC
904 if test $# -gt 0; then
905 # We chose a different compiler from the bogus one.
906 # However, it has the same basename, so the bogon will be chosen
907 # first if we set CC to just the basename; use the full file name.
909 set dummy "$ac_dir/$ac_word" "$@"
917 if test -n "$CC"; then
918 echo "$ac_t""$CC" 1>&6
920 echo "$ac_t""no" 1>&6
923 if test -z "$CC"; then
926 # Extract the first word of "cl", so it can be a program name with args.
927 set dummy cl; ac_word=$2
928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
929 echo "configure:930: checking for $ac_word" >&5
930 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 if test -n "$CC"; then
934 ac_cv_prog_CC="$CC" # Let the user override the test.
936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
938 for ac_dir in $ac_dummy; do
939 test -z "$ac_dir" && ac_dir=.
940 if test -f $ac_dir/$ac_word; then
949 if test -n "$CC"; then
950 echo "$ac_t""$CC" 1>&6
952 echo "$ac_t""no" 1>&6
957 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
960 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
961 echo "configure:962: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
964 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
965 ac_cpp='$CPP $CPPFLAGS'
966 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
967 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
968 cross_compiling=$ac_cv_prog_cc_cross
970 cat > conftest.$ac_ext << EOF
972 #line 973 "configure"
973 #include "confdefs.h"
977 if { (eval echo configure:978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
978 ac_cv_prog_cc_works=yes
979 # If we can't run a trivial program, we are probably using a cross compiler.
980 if (./conftest; exit) 2>/dev/null; then
981 ac_cv_prog_cc_cross=no
983 ac_cv_prog_cc_cross=yes
986 echo "configure: failed program was:" >&5
987 cat conftest.$ac_ext >&5
988 ac_cv_prog_cc_works=no
992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
993 ac_cpp='$CPP $CPPFLAGS'
994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
996 cross_compiling=$ac_cv_prog_cc_cross
998 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
999 if test $ac_cv_prog_cc_works = no; then
1000 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1002 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1003 echo "configure:1004: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1004 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1005 cross_compiling=$ac_cv_prog_cc_cross
1007 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1008 echo "configure:1009: checking whether we are using GNU C" >&5
1009 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 cat > conftest.c <<EOF
1017 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1024 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1026 if test $ac_cv_prog_gcc = yes; then
1032 ac_test_CFLAGS="${CFLAGS+set}"
1033 ac_save_CFLAGS="$CFLAGS"
1035 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1036 echo "configure:1037: checking whether ${CC-cc} accepts -g" >&5
1037 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1040 echo 'void f(){}' > conftest.c
1041 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1050 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1051 if test "$ac_test_CFLAGS" = set; then
1052 CFLAGS="$ac_save_CFLAGS"
1053 elif test $ac_cv_prog_cc_g = yes; then
1054 if test "$GCC" = yes; then
1060 if test "$GCC" = yes; then
1067 if test "$GCC" = yes ; then
1068 echo $ac_n "checking version of gcc""... $ac_c" 1>&6
1069 echo "configure:1070: checking version of gcc" >&5
1070 eval "$CC --version"
1072 if test "$host" != $build; then
1073 for ac_prog in $CC gcc cc
1075 # Extract the first word of "$ac_prog", so it can be a program name with args.
1076 set dummy $ac_prog; ac_word=$2
1077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1078 echo "configure:1079: checking for $ac_word" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 if test -n "$BUILD_CC"; then
1083 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1087 for ac_dir in $ac_dummy; do
1088 test -z "$ac_dir" && ac_dir=.
1089 if test -f $ac_dir/$ac_word; then
1090 ac_cv_prog_BUILD_CC="$ac_prog"
1097 BUILD_CC="$ac_cv_prog_BUILD_CC"
1098 if test -n "$BUILD_CC"; then
1099 echo "$ac_t""$BUILD_CC" 1>&6
1101 echo "$ac_t""no" 1>&6
1104 test -n "$BUILD_CC" && break
1111 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1112 echo "configure:1113: checking how to run the C preprocessor" >&5
1113 # On Suns, sometimes $CPP names a directory.
1114 if test -n "$CPP" && test -d "$CPP"; then
1117 if test -z "$CPP"; then
1118 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1121 # This must be in double quotes, not single quotes, because CPP may get
1122 # substituted into the Makefile and "${CC-cc}" will confuse make.
1124 # On the NeXT, cc -E runs the code through the compiler's parser,
1125 # not just through cpp.
1126 cat > conftest.$ac_ext <<EOF
1127 #line 1128 "configure"
1128 #include "confdefs.h"
1132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1133 { (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1135 if test -z "$ac_err"; then
1139 echo "configure: failed program was:" >&5
1140 cat conftest.$ac_ext >&5
1142 CPP="${CC-cc} -E -traditional-cpp"
1143 cat > conftest.$ac_ext <<EOF
1144 #line 1145 "configure"
1145 #include "confdefs.h"
1149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1150 { (eval echo configure:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1152 if test -z "$ac_err"; then
1156 echo "configure: failed program was:" >&5
1157 cat conftest.$ac_ext >&5
1159 CPP="${CC-cc} -nologo -E"
1160 cat > conftest.$ac_ext <<EOF
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1167 { (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1169 if test -z "$ac_err"; then
1173 echo "configure: failed program was:" >&5
1174 cat conftest.$ac_ext >&5
1183 ac_cv_prog_CPP="$CPP"
1185 CPP="$ac_cv_prog_CPP"
1187 ac_cv_prog_CPP="$CPP"
1189 echo "$ac_t""$CPP" 1>&6
1191 if test $ac_cv_prog_gcc = yes; then
1192 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether ${CC-cc} needs -traditional" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 ac_pattern="Autoconf.*'x'"
1198 cat > conftest.$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1205 egrep "$ac_pattern" >/dev/null 2>&1; then
1207 ac_cv_prog_gcc_traditional=yes
1210 ac_cv_prog_gcc_traditional=no
1215 if test $ac_cv_prog_gcc_traditional = no; then
1216 cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1223 egrep "$ac_pattern" >/dev/null 2>&1; then
1225 ac_cv_prog_gcc_traditional=yes
1232 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1233 if test $ac_cv_prog_gcc_traditional = yes; then
1234 CC="$CC -traditional"
1238 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1239 echo "configure:1240: checking for POSIXized ISC" >&5
1240 if test -d /etc/conf/kconfig.d &&
1241 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1243 echo "$ac_t""yes" 1>&6
1244 ISC=yes # If later tests want to check for ISC.
1245 cat >> confdefs.h <<\EOF
1246 #define _POSIX_SOURCE 1
1249 if test "$GCC" = yes; then
1255 echo "$ac_t""no" 1>&6
1260 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1261 echo "configure:1262: checking for ${CC-cc} option to accept ANSI C" >&5
1262 if eval "test \"`echo '$''{'cf_cv_ansi_cc'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1267 cf_save_CFLAGS="$CFLAGS"
1268 # Don't try gcc -ansi; that turns off useful extensions and
1269 # breaks some systems' header files.
1270 # AIX -qlanglvl=ansi
1271 # Ultrix and OSF/1 -std1
1272 # HP-UX -Aa -D_HPUX_SOURCE
1274 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
1275 for cf_arg in "-DCC_HAS_PROTOS" \
1280 "-Aa -D_HPUX_SOURCE" \
1283 CFLAGS="$cf_save_CFLAGS $cf_arg"
1284 cat > conftest.$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1288 #ifndef CC_HAS_PROTOS
1289 #if !defined(__STDC__) || (__STDC__ != 1)
1296 int test (int i, double x);
1297 struct s1 {int (*f) (int a);};
1298 struct s2 {int (*f) (double a);};
1301 if { (eval echo configure:1302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1303 cf_cv_ansi_cc="$cf_arg"; break
1305 echo "configure: failed program was:" >&5
1306 cat conftest.$ac_ext >&5
1310 CFLAGS="$cf_save_CFLAGS"
1314 echo "$ac_t""$cf_cv_ansi_cc" 1>&6
1316 if test "$cf_cv_ansi_cc" != "no"; then
1317 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
1318 CFLAGS="$CFLAGS $cf_cv_ansi_cc"
1320 cat >> confdefs.h <<\EOF
1321 #define CC_HAS_PROTOS 1
1328 if test "$cf_cv_ansi_cc" = "no"; then
1329 { echo "configure: error: Your compiler does not appear to recognize prototypes.
1330 You have the following choices:
1331 a. adjust your compiler options
1332 b. get an up-to-date compiler
1333 c. use a wrapper such as unproto" 1>&2; exit 1; }
1339 case $cf_cv_system_name in
1341 # We make sure -Zexe is not used -- it would interfere with @PROG_EXT@
1342 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
1343 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
1344 LDFLAGS=`echo "$LDFLAGS -Zmt -Zcrtdll" | sed "s/-Zexe//g"`
1354 case "$cf_cv_system_name" in
1356 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
1358 *) LDPATH=$PATH:/sbin:/usr/sbin
1359 # Extract the first word of "ldconfig", so it can be a program name with args.
1360 set dummy ldconfig; ac_word=$2
1361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1362 echo "configure:1363: checking for $ac_word" >&5
1363 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1368 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
1371 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
1374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1376 for ac_dir in $ac_dummy; do
1377 test -z "$ac_dir" && ac_dir=.
1378 if test -f $ac_dir/$ac_word; then
1379 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
1387 LDCONFIG="$ac_cv_path_LDCONFIG"
1388 if test -n "$LDCONFIG"; then
1389 echo "$ac_t""$LDCONFIG" 1>&6
1391 echo "$ac_t""no" 1>&6
1398 echo $ac_n "checking if you want to ensure bool is consistent with C++""... $ac_c" 1>&6
1399 echo "configure:1400: checking if you want to ensure bool is consistent with C++" >&5
1401 # Check whether --with-cxx or --without-cxx was given.
1402 if test "${with_cxx+set}" = set; then
1404 cf_with_cxx=$withval
1409 echo "$ac_t""$cf_with_cxx" 1>&6
1410 if test "X$cf_with_cxx" = Xno ; then
1414 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1416 # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1419 echo "configure:1420: checking for $ac_word" >&5
1420 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 if test -n "$CXX"; then
1424 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1428 for ac_dir in $ac_dummy; do
1429 test -z "$ac_dir" && ac_dir=.
1430 if test -f $ac_dir/$ac_word; then
1431 ac_cv_prog_CXX="$ac_prog"
1438 CXX="$ac_cv_prog_CXX"
1439 if test -n "$CXX"; then
1440 echo "$ac_t""$CXX" 1>&6
1442 echo "$ac_t""no" 1>&6
1445 test -n "$CXX" && break
1447 test -n "$CXX" || CXX="gcc"
1450 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1451 echo "configure:1452: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1454 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1455 ac_cpp='$CXXCPP $CPPFLAGS'
1456 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1457 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1458 cross_compiling=$ac_cv_prog_cxx_cross
1460 cat > conftest.$ac_ext << EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1465 int main(){return(0);}
1467 if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1468 ac_cv_prog_cxx_works=yes
1469 # If we can't run a trivial program, we are probably using a cross compiler.
1470 if (./conftest; exit) 2>/dev/null; then
1471 ac_cv_prog_cxx_cross=no
1473 ac_cv_prog_cxx_cross=yes
1476 echo "configure: failed program was:" >&5
1477 cat conftest.$ac_ext >&5
1478 ac_cv_prog_cxx_works=no
1482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1486 cross_compiling=$ac_cv_prog_cc_cross
1488 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1489 if test $ac_cv_prog_cxx_works = no; then
1490 echo "$ac_t""You don't have any C++ compiler, too bad" 1>&6; cf_with_cxx=no; CXX=""; GXX="";
1492 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1493 echo "configure:1494: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1494 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1495 cross_compiling=$ac_cv_prog_cxx_cross
1497 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1498 echo "configure:1499: checking whether we are using GNU C++" >&5
1499 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1502 cat > conftest.C <<EOF
1507 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1514 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1516 if test $ac_cv_prog_gxx = yes; then
1522 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1523 ac_save_CXXFLAGS="$CXXFLAGS"
1525 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1526 echo "configure:1527: checking whether ${CXX-g++} accepts -g" >&5
1527 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1528 echo $ac_n "(cached) $ac_c" 1>&6
1530 echo 'void f(){}' > conftest.cc
1531 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1532 ac_cv_prog_cxx_g=yes
1540 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1541 if test "$ac_test_CXXFLAGS" = set; then
1542 CXXFLAGS="$ac_save_CXXFLAGS"
1543 elif test $ac_cv_prog_cxx_g = yes; then
1544 if test "$GXX" = yes; then
1550 if test "$GXX" = yes; then
1559 if test "$GXX" = yes; then
1560 case "`${CXX-g++} --version`" in
1562 GXX=""; CXX=""; ac_cv_prog_gxx=no
1564 echo No: templates do not work
1569 echo $ac_n "checking if you want to build C++ binding and demo""... $ac_c" 1>&6
1570 echo "configure:1571: checking if you want to build C++ binding and demo" >&5
1572 # Check whether --with-cxx-binding or --without-cxx-binding was given.
1573 if test "${with_cxx_binding+set}" = set; then
1574 withval="$with_cxx_binding"
1575 cf_with_cxx_binding=$withval
1577 cf_with_cxx_binding=$cf_with_cxx
1580 echo "$ac_t""$cf_with_cxx_binding" 1>&6
1582 echo $ac_n "checking if you want to build with Ada95""... $ac_c" 1>&6
1583 echo "configure:1584: checking if you want to build with Ada95" >&5
1585 # Check whether --with-ada or --without-ada was given.
1586 if test "${with_ada+set}" = set; then
1588 cf_with_ada=$withval
1593 echo "$ac_t""$cf_with_ada" 1>&6
1595 echo $ac_n "checking if you want to build programs such as tic""... $ac_c" 1>&6
1596 echo "configure:1597: checking if you want to build programs such as tic" >&5
1598 # Check whether --with-progs or --without-progs was given.
1599 if test "${with_progs+set}" = set; then
1600 withval="$with_progs"
1601 cf_with_progs=$withval
1606 echo "$ac_t""$cf_with_progs" 1>&6
1608 modules_to_build="ncurses"
1609 if test "X$cf_with_progs" != Xno ; then
1610 modules_to_build="$modules_to_build progs tack"
1612 modules_to_build="$modules_to_build panel menu form"
1614 if test "$program_transform_name" = s,x,x,; then
1615 program_transform_name=
1617 # Double any \ or $. echo might interpret backslashes.
1618 cat <<\EOF_SED > conftestsed
1619 s,\\,\\\\,g; s,\$,$$,g
1621 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1624 test "$program_prefix" != NONE &&
1625 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1626 # Use a double $ so make ignores it.
1627 test "$program_suffix" != NONE &&
1628 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1630 # sed with no file args requires a program.
1631 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1633 for ac_prog in mawk gawk nawk awk
1635 # Extract the first word of "$ac_prog", so it can be a program name with args.
1636 set dummy $ac_prog; ac_word=$2
1637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1638 echo "configure:1639: checking for $ac_word" >&5
1639 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1642 if test -n "$AWK"; then
1643 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1647 for ac_dir in $ac_dummy; do
1648 test -z "$ac_dir" && ac_dir=.
1649 if test -f $ac_dir/$ac_word; then
1650 ac_cv_prog_AWK="$ac_prog"
1657 AWK="$ac_cv_prog_AWK"
1658 if test -n "$AWK"; then
1659 echo "$ac_t""$AWK" 1>&6
1661 echo "$ac_t""no" 1>&6
1664 test -n "$AWK" && break
1667 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1668 echo "configure:1669: checking whether ${MAKE-make} sets \${MAKE}" >&5
1669 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1670 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 cat > conftestmake <<\EOF
1675 @echo 'ac_maketemp="${MAKE}"'
1677 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1678 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1679 if test -n "$ac_maketemp"; then
1680 eval ac_cv_prog_make_${ac_make}_set=yes
1682 eval ac_cv_prog_make_${ac_make}_set=no
1686 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1687 echo "$ac_t""yes" 1>&6
1690 echo "$ac_t""no" 1>&6
1691 SET_MAKE="MAKE=${MAKE-make}"
1694 # Find a good install program. We prefer a C program (faster),
1695 # so one script is as good as another. But avoid the broken or
1696 # incompatible versions:
1697 # SysV /etc/install, /usr/sbin/install
1698 # SunOS /usr/etc/install
1699 # IRIX /sbin/install
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1706 echo "configure:1707: checking for a BSD compatible install" >&5
1707 if test -z "$INSTALL"; then
1708 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1712 for ac_dir in $PATH; do
1713 # Account for people who put trailing slashes in PATH elements.
1715 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1717 # OSF1 and SCO ODT 3.0 have their own names for install.
1718 # Don't use installbsd from OSF since it installs stuff as root
1720 for ac_prog in ginstall scoinst install; do
1721 if test -f $ac_dir/$ac_prog; then
1722 if test $ac_prog = install &&
1723 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1724 # AIX install. It has an incompatible calling convention.
1727 ac_cv_path_install="$ac_dir/$ac_prog -c"
1738 if test "${ac_cv_path_install+set}" = set; then
1739 INSTALL="$ac_cv_path_install"
1741 # As a last resort, use the slow shell script. We don't cache a
1742 # path for INSTALL within a source directory, because that will
1743 # break other packages using the cache if that directory is
1744 # removed, or if the path is relative.
1745 INSTALL="$ac_install_sh"
1748 echo "$ac_t""$INSTALL" 1>&6
1750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1751 # It thinks the first close brace ends the variable substitution.
1752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1762 cf_dir=`echo $INSTALL|sed -e 's%/[^/]*$%%'`
1763 test -z "$cf_dir" && cf_dir=.
1764 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's:^.*/::'`
1768 echo $ac_n "checking for long file names""... $ac_c" 1>&6
1769 echo "configure:1770: checking for long file names" >&5
1770 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 ac_cv_sys_long_file_names=yes
1774 # Test for long file names in all the places we know might matter:
1775 # . the current directory, where building will happen
1776 # $prefix/lib where we will be installing things
1777 # $exec_prefix/lib likewise
1778 # eval it to expand exec_prefix.
1779 # $TMPDIR if set, where it might want to write temporary files
1780 # if $TMPDIR is not set:
1781 # /tmp where it might want to write temporary files
1784 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
1785 ac_tmpdirs="$TMPDIR"
1787 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
1789 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
1790 test -d $ac_dir || continue
1791 test -w $ac_dir || continue # It is less confusing to not echo anything here.
1792 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
1793 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
1794 val=`cat $ac_dir/conftest9012345 2>/dev/null`
1795 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
1796 ac_cv_sys_long_file_names=no
1797 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
1800 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
1804 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
1805 if test $ac_cv_sys_long_file_names = yes; then
1806 cat >> confdefs.h <<\EOF
1807 #define HAVE_LONG_FILE_NAMES 1
1813 echo $ac_n "checking if filesystem supports mixed-case filenames""... $ac_c" 1>&6
1814 echo "configure:1815: checking if filesystem supports mixed-case filenames" >&5
1815 if eval "test \"`echo '$''{'cf_cv_mixedcase'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1819 rm -f conftest CONFTEST
1821 if test -f CONFTEST ; then
1826 rm -f conftest CONFTEST
1830 echo "$ac_t""$cf_cv_mixedcase" 1>&6
1831 test "$cf_cv_mixedcase" = yes && cat >> confdefs.h <<\EOF
1832 #define MIXEDCASE_FILENAMES 1
1836 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1837 echo "configure:1838: checking whether ln -s works" >&5
1838 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1842 if ln -s X conftestdata 2>/dev/null
1845 ac_cv_prog_LN_S="ln -s"
1850 LN_S="$ac_cv_prog_LN_S"
1851 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1852 echo "$ac_t""yes" 1>&6
1854 echo "$ac_t""no" 1>&6
1857 # Extract the first word of "ranlib", so it can be a program name with args.
1858 set dummy ranlib; ac_word=$2
1859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1860 echo "configure:1861: checking for $ac_word" >&5
1861 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1864 if test -n "$RANLIB"; then
1865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1869 for ac_dir in $ac_dummy; do
1870 test -z "$ac_dir" && ac_dir=.
1871 if test -f $ac_dir/$ac_word; then
1872 ac_cv_prog_RANLIB="ranlib"
1877 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1880 RANLIB="$ac_cv_prog_RANLIB"
1881 if test -n "$RANLIB"; then
1882 echo "$ac_t""$RANLIB" 1>&6
1884 echo "$ac_t""no" 1>&6
1889 # Extract the first word of "ctags", so it can be a program name with args.
1890 set dummy ctags; ac_word=$2
1891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1892 echo "configure:1893: checking for $ac_word" >&5
1893 if eval "test \"`echo '$''{'ac_cv_prog_MAKE_LOWER_TAGS'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1896 if test -n "$MAKE_LOWER_TAGS"; then
1897 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
1899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1901 for ac_dir in $ac_dummy; do
1902 test -z "$ac_dir" && ac_dir=.
1903 if test -f $ac_dir/$ac_word; then
1904 ac_cv_prog_MAKE_LOWER_TAGS="yes"
1909 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
1912 MAKE_LOWER_TAGS="$ac_cv_prog_MAKE_LOWER_TAGS"
1913 if test -n "$MAKE_LOWER_TAGS"; then
1914 echo "$ac_t""$MAKE_LOWER_TAGS" 1>&6
1916 echo "$ac_t""no" 1>&6
1920 if test "$cf_cv_mixedcase" = yes ; then
1921 # Extract the first word of "etags", so it can be a program name with args.
1922 set dummy etags; ac_word=$2
1923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1924 echo "configure:1925: checking for $ac_word" >&5
1925 if eval "test \"`echo '$''{'ac_cv_prog_MAKE_UPPER_TAGS'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 if test -n "$MAKE_UPPER_TAGS"; then
1929 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
1931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1933 for ac_dir in $ac_dummy; do
1934 test -z "$ac_dir" && ac_dir=.
1935 if test -f $ac_dir/$ac_word; then
1936 ac_cv_prog_MAKE_UPPER_TAGS="yes"
1941 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
1944 MAKE_UPPER_TAGS="$ac_cv_prog_MAKE_UPPER_TAGS"
1945 if test -n "$MAKE_UPPER_TAGS"; then
1946 echo "$ac_t""$MAKE_UPPER_TAGS" 1>&6
1948 echo "$ac_t""no" 1>&6
1955 if test "$MAKE_UPPER_TAGS" = yes ; then
1962 if test "$MAKE_LOWER_TAGS" = yes ; then
1969 for ac_prog in tdlint lint alint
1971 # Extract the first word of "$ac_prog", so it can be a program name with args.
1972 set dummy $ac_prog; ac_word=$2
1973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1974 echo "configure:1975: checking for $ac_word" >&5
1975 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 if test -n "$LINT"; then
1979 ac_cv_prog_LINT="$LINT" # Let the user override the test.
1981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1983 for ac_dir in $ac_dummy; do
1984 test -z "$ac_dir" && ac_dir=.
1985 if test -f $ac_dir/$ac_word; then
1986 ac_cv_prog_LINT="$ac_prog"
1993 LINT="$ac_cv_prog_LINT"
1994 if test -n "$LINT"; then
1995 echo "$ac_t""$LINT" 1>&6
1997 echo "$ac_t""no" 1>&6
2000 test -n "$LINT" && break
2003 for ac_prog in man man_db
2005 # Extract the first word of "$ac_prog", so it can be a program name with args.
2006 set dummy $ac_prog; ac_word=$2
2007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2008 echo "configure:2009: checking for $ac_word" >&5
2009 if eval "test \"`echo '$''{'ac_cv_prog_MAN'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2012 if test -n "$MAN"; then
2013 ac_cv_prog_MAN="$MAN" # Let the user override the test.
2015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2017 for ac_dir in $ac_dummy; do
2018 test -z "$ac_dir" && ac_dir=.
2019 if test -f $ac_dir/$ac_word; then
2020 ac_cv_prog_MAN="$ac_prog"
2027 MAN="$ac_cv_prog_MAN"
2028 if test -n "$MAN"; then
2029 echo "$ac_t""$MAN" 1>&6
2031 echo "$ac_t""no" 1>&6
2034 test -n "$MAN" && break
2039 if eval "test \"`echo '$''{'cf_cv_subst_LD'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2043 echo $ac_n "checking for loader (symbol LD)""... $ac_c" 1>&6
2044 echo "configure:2045: checking for loader (symbol LD)" >&5
2045 test -z "$LD" && LD=ld
2046 echo "$ac_t""$LD" 1>&6
2051 LD=${cf_cv_subst_LD}
2053 if eval "test \"`echo '$''{'cf_cv_subst_AR'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2057 echo $ac_n "checking for archiver (symbol AR)""... $ac_c" 1>&6
2058 echo "configure:2059: checking for archiver (symbol AR)" >&5
2059 test -z "$AR" && AR=ar
2060 echo "$ac_t""$AR" 1>&6
2065 AR=${cf_cv_subst_AR}
2067 if eval "test \"`echo '$''{'cf_cv_subst_AR_OPTS'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2071 echo $ac_n "checking for archiver options (symbol AR_OPTS)""... $ac_c" 1>&6
2072 echo "configure:2073: checking for archiver options (symbol AR_OPTS)" >&5
2073 test -z "$AR_OPTS" && AR_OPTS=rv
2074 echo "$ac_t""$AR_OPTS" 1>&6
2076 cf_cv_subst_AR_OPTS=$AR_OPTS
2079 AR_OPTS=${cf_cv_subst_AR_OPTS}
2083 echo $ac_n "checking for makeflags variable""... $ac_c" 1>&6
2084 echo "configure:2085: checking for makeflags variable" >&5
2085 if eval "test \"`echo '$''{'cf_cv_makeflags'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2090 for cf_option in '-$(MAKEFLAGS)' '$(MFLAGS)'
2092 cat >cf_makeflags.tmp <<CF_EOF
2094 @ echo '.$cf_option'
2096 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null`
2097 case "$cf_result" in
2099 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
2100 case "$cf_result" in
2101 .*CC=*) cf_cv_makeflags=
2103 *) cf_cv_makeflags=$cf_option
2108 *) echo no match "$cf_result"
2112 rm -f cf_makeflags.tmp
2115 echo "$ac_t""$cf_cv_makeflags" 1>&6
2119 echo $ac_n "checking if you have specified an install-prefix""... $ac_c" 1>&6
2120 echo "configure:2121: checking if you have specified an install-prefix" >&5
2122 # Check whether --with-install-prefix or --without-install-prefix was given.
2123 if test "${with_install_prefix+set}" = set; then
2124 withval="$with_install_prefix"
2125 case "$withval" in #(vi
2128 *) DESTDIR="$withval"
2133 echo "$ac_t""$DESTDIR" 1>&6
2136 ###############################################################################
2139 ### Options to allow the user to specify the set of libraries which are used.
2140 ### Use "--without-normal --with-shared" to allow the default model to be
2141 ### shared, for example.
2144 echo $ac_n "checking if you want to build shared libraries""... $ac_c" 1>&6
2145 echo "configure:2146: checking if you want to build shared libraries" >&5
2147 # Check whether --with-shared or --without-shared was given.
2148 if test "${with_shared+set}" = set; then
2149 withval="$with_shared"
2150 with_shared=$withval
2155 echo "$ac_t""$with_shared" 1>&6
2156 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
2158 echo $ac_n "checking if you want to build static libraries""... $ac_c" 1>&6
2159 echo "configure:2160: checking if you want to build static libraries" >&5
2161 # Check whether --with-normal or --without-normal was given.
2162 if test "${with_normal+set}" = set; then
2163 withval="$with_normal"
2164 with_normal=$withval
2169 echo "$ac_t""$with_normal" 1>&6
2170 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
2172 echo $ac_n "checking if you want to build debug libraries""... $ac_c" 1>&6
2173 echo "configure:2174: checking if you want to build debug libraries" >&5
2175 # Check whether --with-debug or --without-debug was given.
2176 if test "${with_debug+set}" = set; then
2177 withval="$with_debug"
2183 echo "$ac_t""$with_debug" 1>&6
2184 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
2186 echo $ac_n "checking if you want to build profiling libraries""... $ac_c" 1>&6
2187 echo "configure:2188: checking if you want to build profiling libraries" >&5
2189 # Check whether --with-profile or --without-profile was given.
2190 if test "${with_profile+set}" = set; then
2191 withval="$with_profile"
2192 with_profile=$withval
2197 echo "$ac_t""$with_profile" 1>&6
2198 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
2200 ###############################################################################
2202 echo $ac_n "checking for specified models""... $ac_c" 1>&6
2203 echo "configure:2204: checking for specified models" >&5
2204 test -z "$cf_list_models" && cf_list_models=normal
2205 echo "$ac_t""$cf_list_models" 1>&6
2207 ### Use the first model as the default, and save its suffix for use in building
2208 ### up test-applications.
2209 echo $ac_n "checking for default model""... $ac_c" 1>&6
2210 echo "configure:2211: checking for default model" >&5
2211 DFT_LWR_MODEL=`echo $cf_list_models | $AWK '{print $1}'`
2212 echo "$ac_t""$DFT_LWR_MODEL" 1>&6
2215 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2226 case $cf_cv_system_name in
2227 os2) LIB_PREFIX='' ;;
2228 *) LIB_PREFIX='lib' ;;
2230 cf_prefix=$LIB_PREFIX
2233 LIB_PREFIX=$cf_prefix
2239 ###############################################################################
2241 echo $ac_n "checking if you want to build a separate terminfo library""... $ac_c" 1>&6
2242 echo "configure:2243: checking if you want to build a separate terminfo library" >&5
2244 # Check whether --with-termlib or --without-termlib was given.
2245 if test "${with_termlib+set}" = set; then
2246 withval="$with_termlib"
2247 with_termlib=$withval
2252 echo "$ac_t""$with_termlib" 1>&6
2254 ### Checks for special libraries, must be done up-front.
2255 echo $ac_n "checking if you want to link with dbmalloc for testing""... $ac_c" 1>&6
2256 echo "configure:2257: checking if you want to link with dbmalloc for testing" >&5
2258 # Check whether --with-dbmalloc or --without-dbmalloc was given.
2259 if test "${with_dbmalloc+set}" = set; then
2260 withval="$with_dbmalloc"
2261 with_dbmalloc=$withval
2266 echo "$ac_t""$with_dbmalloc" 1>&6
2267 if test "$with_dbmalloc" = yes ; then
2268 echo $ac_n "checking for debug_malloc in -ldbmalloc""... $ac_c" 1>&6
2269 echo "configure:2270: checking for debug_malloc in -ldbmalloc" >&5
2270 ac_lib_var=`echo dbmalloc'_'debug_malloc | sed 'y%./+-%__p_%'`
2271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2274 ac_save_LIBS="$LIBS"
2275 LIBS="-ldbmalloc $LIBS"
2276 cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2279 /* Override any gcc2 internal prototype to avoid an error. */
2280 /* We use char because int might match the return type of a gcc2
2281 builtin and then its argument prototype would still apply. */
2282 char debug_malloc();
2288 if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2290 eval "ac_cv_lib_$ac_lib_var=yes"
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2295 eval "ac_cv_lib_$ac_lib_var=no"
2298 LIBS="$ac_save_LIBS"
2301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2302 echo "$ac_t""yes" 1>&6
2303 ac_tr_lib=HAVE_LIB`echo dbmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2304 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2305 cat >> confdefs.h <<EOF
2306 #define $ac_tr_lib 1
2309 LIBS="-ldbmalloc $LIBS"
2312 echo "$ac_t""no" 1>&6
2317 echo $ac_n "checking if you want to link with dmalloc for testing""... $ac_c" 1>&6
2318 echo "configure:2319: checking if you want to link with dmalloc for testing" >&5
2320 # Check whether --with-dmalloc or --without-dmalloc was given.
2321 if test "${with_dmalloc+set}" = set; then
2322 withval="$with_dmalloc"
2323 with_dmalloc=$withval
2328 echo "$ac_t""$with_dmalloc" 1>&6
2329 if test "$with_dmalloc" = yes ; then
2330 echo $ac_n "checking for dmalloc_debug in -ldmalloc""... $ac_c" 1>&6
2331 echo "configure:2332: checking for dmalloc_debug in -ldmalloc" >&5
2332 ac_lib_var=`echo dmalloc'_'dmalloc_debug | sed 'y%./+-%__p_%'`
2333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 ac_save_LIBS="$LIBS"
2337 LIBS="-ldmalloc $LIBS"
2338 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2341 /* Override any gcc2 internal prototype to avoid an error. */
2342 /* We use char because int might match the return type of a gcc2
2343 builtin and then its argument prototype would still apply. */
2344 char dmalloc_debug();
2350 if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2352 eval "ac_cv_lib_$ac_lib_var=yes"
2354 echo "configure: failed program was:" >&5
2355 cat conftest.$ac_ext >&5
2357 eval "ac_cv_lib_$ac_lib_var=no"
2360 LIBS="$ac_save_LIBS"
2363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2364 echo "$ac_t""yes" 1>&6
2365 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2366 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2367 cat >> confdefs.h <<EOF
2368 #define $ac_tr_lib 1
2371 LIBS="-ldmalloc $LIBS"
2374 echo "$ac_t""no" 1>&6
2380 echo $ac_n "checking if you want to link with the gpm mouse library""... $ac_c" 1>&6
2381 echo "configure:2382: checking if you want to link with the gpm mouse library" >&5
2383 # Check whether --with-gpm or --without-gpm was given.
2384 if test "${with_gpm+set}" = set; then
2391 echo "$ac_t""$with_gpm" 1>&6
2392 if test "$with_gpm" = yes ; then
2393 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
2394 echo "configure:2395: checking for Gpm_Open in -lgpm" >&5
2395 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
2396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 ac_save_LIBS="$LIBS"
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 /* Override any gcc2 internal prototype to avoid an error. */
2405 /* We use char because int might match the return type of a gcc2
2406 builtin and then its argument prototype would still apply. */
2413 if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2415 eval "ac_cv_lib_$ac_lib_var=yes"
2417 echo "configure: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2420 eval "ac_cv_lib_$ac_lib_var=no"
2423 LIBS="$ac_save_LIBS"
2426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2427 echo "$ac_t""yes" 1>&6
2429 EXTRA_LIBS="-lgpm -lncurses $EXTRA_LIBS"
2430 SHLIB_LIST="-lgpm $SHLIB_LIST"
2431 cat >> confdefs.h <<\EOF
2432 #define HAVE_LIBGPM 1
2437 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2439 echo "configure:2440: checking for $ac_hdr" >&5
2440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2449 { (eval echo configure:2450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2451 if test -z "$ac_err"; then
2453 eval "ac_cv_header_$ac_safe=yes"
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2459 eval "ac_cv_header_$ac_safe=no"
2463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2464 echo "$ac_t""yes" 1>&6
2465 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2466 cat >> confdefs.h <<EOF
2467 #define $ac_tr_hdr 1
2471 echo "$ac_t""no" 1>&6
2477 echo "$ac_t""no" 1>&6
2478 echo "configure: warning: Cannot link with gpm library - read the FAQ" 1>&2
2484 if test X"$CC_G_OPT" = X"" ; then
2486 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
2490 if test X"$CXX_G_OPT" = X"" ; then
2492 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
2496 echo $ac_n "checking for default loader flags""... $ac_c" 1>&6
2497 echo "configure:2498: checking for default loader flags" >&5
2498 case $DFT_LWR_MODEL in
2499 normal) LD_MODEL='' ;;
2500 debug) LD_MODEL=$CC_G_OPT ;;
2501 profile) LD_MODEL='-pg';;
2502 shared) LD_MODEL='' ;;
2504 echo "$ac_t""$LD_MODEL" 1>&6
2506 echo $ac_n "checking if rpath option should be used""... $ac_c" 1>&6
2507 echo "configure:2508: checking if rpath option should be used" >&5
2509 # Check whether --enable-rpath or --disable-rpath was given.
2510 if test "${enable_rpath+set}" = set; then
2511 enableval="$enable_rpath"
2512 cf_cv_ld_rpath=$enableval
2517 echo "$ac_t""$cf_cv_ld_rpath" 1>&6
2524 INSTALL_LIB="-m 644"
2526 cf_cv_do_symlinks=no
2528 echo $ac_n "checking if release/abi version should be used for shared libs""... $ac_c" 1>&6
2529 echo "configure:2530: checking if release/abi version should be used for shared libs" >&5
2531 # Check whether --with-shlib-version or --without-shlib-version was given.
2532 if test "${with_shlib_version+set}" = set; then
2533 withval="$with_shlib_version"
2534 test -z "$withval" && withval=auto
2535 case $withval in #(vi
2537 cf_cv_shlib_version=auto
2539 rel|abi|auto|no) #(vi
2540 cf_cv_shlib_version=$withval
2543 { echo "configure: error: option value must be one of: rel, abi, auto or no" 1>&2; exit 1; }
2548 cf_cv_shlib_version=auto
2551 echo "$ac_t""$cf_cv_shlib_version" 1>&6
2555 # Some less-capable ports of gcc support only -fpic
2557 if test "$GCC" = yes
2559 echo $ac_n "checking which $CC option to use""... $ac_c" 1>&6
2560 echo "configure:2561: checking which $CC option to use" >&5
2561 cf_save_CFLAGS="$CFLAGS"
2562 for CC_SHARED_OPTS in -fPIC -fpic ''
2564 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2573 if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2577 echo "configure: failed program was:" >&5
2578 cat conftest.$ac_ext >&5
2582 echo "$ac_t""$CC_SHARED_OPTS" 1>&6
2583 CFLAGS="$cf_save_CFLAGS"
2586 case $cf_cv_system_name in
2588 MK_SHARED_LIB='$(CC) -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
2591 # (tested with gcc 2.7.2 -- I don't have c89)
2592 if test "$GCC" = yes; then
2593 LD_SHARED_OPTS='-Xlinker +b -Xlinker $(libdir)'
2596 LD_SHARED_OPTS='-Wl,+b,$(libdir)'
2598 MK_SHARED_LIB='$(LD) +b $(libdir) -b -o $@'
2599 # HP-UX shared libraries must be executable, and should be
2600 # readonly to exploit a quirk in the memory manager.
2601 INSTALL_LIB="-m 555"
2604 if test "$cf_cv_ld_rpath" = yes ; then
2605 cf_ld_rpath_opt="-Wl,-rpath,"
2606 EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS"
2608 # tested with IRIX 5.2 and 'cc'.
2609 if test "$GCC" != yes; then
2610 CC_SHARED_OPTS='-KPIC'
2612 MK_SHARED_LIB='$(LD) -shared -rdata_shared -soname `basename $@` -o $@'
2613 cf_cv_rm_so_locs=yes
2616 if test "$DFT_LWR_MODEL" = "shared" ; then
2617 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
2618 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
2620 if test "$cf_cv_ld_rpath" = yes ; then
2621 cf_ld_rpath_opt="-Wl,-rpath,"
2622 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
2624 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
2625 MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION),-stats,-lc -o $@'
2628 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
2629 MK_SHARED_LIB='$(LD) -Bshareable -soname,`basename $@.$(ABI_VERSION)` -o $@'
2632 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
2633 MK_SHARED_LIB='$(LD) -Bshareable -o $@'
2634 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
2637 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
2638 test "$cf_cv_ld_rpath" = yes && cf_ld_rpath_opt="-Wl,-rpath,"
2639 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
2640 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
2641 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
2642 EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS"
2643 MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@'
2644 if test "$cf_cv_shlib_version" = auto; then
2645 if test ! -f /usr/libexec/ld.elf_so; then
2646 cf_cv_shlib_version=rel
2650 MK_SHARED_LIB='$(LD) -Bshareable -o $@'
2654 # tested with OSF/1 V3.2 and 'cc'
2655 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
2656 # link with shared libs).
2657 MK_SHARED_LIB='$(LD) -set_version $(REL_VERSION):$(ABI_VERSION) -expect_unresolved "*" -shared -soname `basename $@`'
2660 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
2663 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
2664 if test "$DFT_LWR_MODEL" = "shared" ; then
2665 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
2666 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
2668 if test "$cf_cv_ld_rpath" = yes ; then
2669 cf_ld_rpath_opt="-rpath"
2670 # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
2672 cf_cv_rm_so_locs=yes
2674 sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
2675 # tested with osr5.0.5
2676 if test "$ac_cv_prog_gcc" != yes; then
2677 CC_SHARED_OPTS='-belf -KPIC'
2679 MK_SHARED_LIB='$(LD) -dy -G -h `basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@'
2680 if test "$cf_cv_ld_rpath" = yes ; then
2681 # only way is to set LD_RUN_PATH but no switch for it
2684 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
2685 LINK_PROGS='LD_RUN_PATH=$(libdir)'
2686 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
2689 # tested with SunOS 4.1.1 and gcc 2.7.0
2690 if test "$ac_cv_prog_gcc" != yes; then
2691 CC_SHARED_OPTS='-KPIC'
2693 MK_SHARED_LIB='$(LD) -assert pure-text -o $@'
2694 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
2697 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
2698 if test "$ac_cv_prog_gcc" != yes; then
2699 CC_SHARED_OPTS='-KPIC'
2701 MK_SHARED_LIB='$(LD) -dy -G -h `basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@'
2702 if test "$DFT_LWR_MODEL" = "shared" ; then
2703 LOCAL_LDFLAGS="-R `pwd`/lib:\$(libdir)"
2704 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
2706 if test "$cf_cv_ld_rpath" = yes ; then
2707 cf_ld_rpath_opt="-R"
2708 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
2710 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
2713 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
2714 if test "$ac_cv_prog_gcc" != yes; then
2715 CC_SHARED_OPTS='-KPIC'
2717 MK_SHARED_LIB='$(LD) -d y -G -o $@'
2720 CC_SHARED_OPTS='unknown'
2721 MK_SHARED_LIB='echo unknown'
2725 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
2726 case "$cf_cv_shlib_version" in #(vi
2728 case "$MK_SHARED_LIB" in #(vi
2730 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
2733 echo "configure: warning: ignored --with-shlib-version" 1>&2
2739 if test -n "$cf_ld_rpath_opt" ; then
2740 echo $ac_n "checking if we need a space after rpath option""... $ac_c" 1>&6
2741 echo "configure:2742: checking if we need a space after rpath option" >&5
2742 cf_save_LIBS="$LIBS"
2743 LIBS="$LIBS ${cf_ld_rpath_opt}$libdir"
2744 cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2752 if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2762 LIBS="$cf_save_LIBS"
2763 echo "$ac_t""$cf_rpath_space" 1>&6
2764 test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
2765 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\$(libdir)"
2778 if test "$CC_SHARED_OPTS" = "unknown"; then
2779 for model in $cf_list_models; do
2780 if test "$model" = "shared"; then
2781 { echo "configure: error: Shared libraries are not supported in this version" 1>&2; exit 1; }
2786 ###############################################################################
2789 ### use option --disable-overwrite to leave out the link to -lcurses
2790 echo $ac_n "checking if you wish to install ncurses overwriting curses""... $ac_c" 1>&6
2791 echo "configure:2792: checking if you wish to install ncurses overwriting curses" >&5
2793 # Check whether --enable-overwrite or --disable-overwrite was given.
2794 if test "${enable_overwrite+set}" = set; then
2795 enableval="$enable_overwrite"
2796 with_overwrite=$enableval
2801 echo "$ac_t""$with_overwrite" 1>&6
2803 echo $ac_n "checking if external terminfo-database is used""... $ac_c" 1>&6
2804 echo "configure:2805: checking if external terminfo-database is used" >&5
2806 # Check whether --enable-database or --disable-database was given.
2807 if test "${enable_database+set}" = set; then
2808 enableval="$enable_database"
2809 use_database=$enableval
2814 echo "$ac_t""$use_database" 1>&6
2816 case $host_os in #(vi
2818 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
2821 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
2826 if test "$use_database" != no ; then
2827 cat >> confdefs.h <<\EOF
2828 #define USE_DATABASE 1
2831 echo $ac_n "checking which terminfo source-file will be installed""... $ac_c" 1>&6
2832 echo "configure:2833: checking which terminfo source-file will be installed" >&5
2834 # Check whether --enable-database or --disable-database was given.
2835 if test "${enable_database+set}" = set; then
2836 enableval="$enable_database"
2837 TERMINFO_SRC=$withval
2840 echo "$ac_t""$TERMINFO_SRC" 1>&6
2843 echo $ac_n "checking for list of fallback descriptions""... $ac_c" 1>&6
2844 echo "configure:2845: checking for list of fallback descriptions" >&5
2846 # Check whether --with-fallbacks or --without-fallbacks was given.
2847 if test "${with_fallbacks+set}" = set; then
2848 withval="$with_fallbacks"
2849 with_fallback=$withval
2854 echo "$ac_t""$with_fallback" 1>&6
2855 FALLBACK_LIST=`echo $with_fallback|sed -e 's/,/ /g'`
2858 if test "$use_database" = no ; then
2859 if test -z $with_fallback ; then
2860 { echo "configure: error: You have disabled the database w/o specifying fallbacks" 1>&2; exit 1; }
2862 TERMINFO="${datadir}/terminfo"
2865 echo $ac_n "checking for list of terminfo directories""... $ac_c" 1>&6
2866 echo "configure:2867: checking for list of terminfo directories" >&5
2869 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
2870 if test "${with_terminfo_dirs+set}" = set; then
2871 withval="$with_terminfo_dirs"
2874 withval="${TERMINFO_DIRS-${datadir}/terminfo}"
2877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2879 for cf_src_path in $withval
2882 case ".$cf_src_path" in #(vi
2885 .a-zA-Z:\\/*) #(vi OS/2 EMX
2888 eval cf_src_path="$cf_src_path"
2889 case ".$cf_src_path" in #(vi
2891 cf_src_path=`echo $cf_src_path | sed -e s@NONE@$ac_default_prefix@`
2896 cf_src_path=`echo $cf_src_path | sed -e s@NONE@$ac_default_prefix@`
2899 { echo "configure: error: expected a pathname" 1>&2; exit 1; }
2903 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
2904 cf_dst_path="${cf_dst_path}${cf_src_path}"
2908 eval TERMINFO_DIRS="$cf_dst_path"
2910 echo "$ac_t""$TERMINFO_DIRS" 1>&6
2911 test -n "$TERMINFO_DIRS" && cat >> confdefs.h <<EOF
2912 #define TERMINFO_DIRS "$TERMINFO_DIRS"
2916 echo $ac_n "checking for default terminfo directory""... $ac_c" 1>&6
2917 echo "configure:2918: checking for default terminfo directory" >&5
2919 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
2920 if test "${with_default_terminfo_dir+set}" = set; then
2921 withval="$with_default_terminfo_dir"
2924 withval="${TERMINFO-${datadir}/terminfo}"
2927 case ".$withval" in #(vi
2930 .a-zA-Z:\\/*) #(vi OS/2 EMX
2933 eval withval="$withval"
2934 case ".$withval" in #(vi
2936 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@`
2941 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@`
2944 { echo "configure: error: expected a pathname" 1>&2; exit 1; }
2948 eval TERMINFO="$withval"
2950 echo "$ac_t""$TERMINFO" 1>&6
2951 cat >> confdefs.h <<EOF
2952 #define TERMINFO "$TERMINFO"
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"
2980 unsigned long n = 6000000L;
2981 char *s = malloc(n);
2987 if { (eval echo configure:2988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2991 echo "configure: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
3001 echo "$ac_t""$with_big_core" 1>&6
3002 test "$with_big_core" = "yes" && cat >> confdefs.h <<\EOF
3003 #define HAVE_BIG_CORE 1
3007 ### use option --enable-termcap to compile in the termcap fallback support
3008 echo $ac_n "checking if you want termcap-fallback support""... $ac_c" 1>&6
3009 echo "configure:3010: checking if you want termcap-fallback support" >&5
3011 # Check whether --enable-termcap or --disable-termcap was given.
3012 if test "${enable_termcap+set}" = set; then
3013 enableval="$enable_termcap"
3014 with_termcap=$enableval
3019 echo "$ac_t""$with_termcap" 1>&6
3021 if test "$with_termcap" != "yes" ; then
3022 cat >> confdefs.h <<\EOF
3023 #define PURE_TERMINFO 1
3028 ### use option --enable-getcap to use a hacked getcap for reading termcaps
3029 echo $ac_n "checking if fast termcap-loader is needed""... $ac_c" 1>&6
3030 echo "configure:3031: checking if fast termcap-loader is needed" >&5
3032 # Check whether --enable-getcap or --disable-getcap was given.
3033 if test "${enable_getcap+set}" = set; then
3034 enableval="$enable_getcap"
3035 with_getcap=$enableval
3040 echo "$ac_t""$with_getcap" 1>&6
3041 test "$with_getcap" = "yes" && cat >> confdefs.h <<\EOF
3042 #define USE_GETCAP 1
3046 echo $ac_n "checking if translated termcaps will be cached in ~/.terminfo""... $ac_c" 1>&6
3047 echo "configure:3048: checking if translated termcaps will be cached in ~/.terminfo" >&5
3049 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
3050 if test "${enable_getcap_cache+set}" = set; then
3051 enableval="$enable_getcap_cache"
3052 with_getcap_cache=$enableval
3054 with_getcap_cache=no
3057 echo "$ac_t""$with_getcap_cache" 1>&6
3058 test "$with_getcap_cache" = "yes" && cat >> confdefs.h <<\EOF
3059 #define USE_GETCAP_CACHE 1
3065 ### Use option --enable-symlinks to make tic use symlinks, not hard links
3066 ### to reduce storage requirements for the terminfo database.
3072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3073 echo "configure:3074: checking for $ac_func" >&5
3074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 /* System header to define __stub macros and hopefully few prototypes,
3081 which can conflict with char $ac_func(); below. */
3083 /* Override any gcc2 internal prototype to avoid an error. */
3084 /* We use char because int might match the return type of a gcc2
3085 builtin and then its argument prototype would still apply. */
3090 /* The GNU C library defines this for functions which it implements
3091 to always fail with ENOSYS. Some functions are actually named
3092 something starting with __ and the normal name is an alias. */
3093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3101 if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3103 eval "ac_cv_func_$ac_func=yes"
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3108 eval "ac_cv_func_$ac_func=no"
3113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3114 echo "$ac_t""yes" 1>&6
3115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3116 cat >> confdefs.h <<EOF
3117 #define $ac_tr_func 1
3121 echo "$ac_t""no" 1>&6
3126 if test "$ac_cv_prog_cc_cross" = yes ; then
3131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3132 echo "configure:3133: checking for $ac_func" >&5
3133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 /* System header to define __stub macros and hopefully few prototypes,
3140 which can conflict with char $ac_func(); below. */
3142 /* Override any gcc2 internal prototype to avoid an error. */
3143 /* We use char because int might match the return type of a gcc2
3144 builtin and then its argument prototype would still apply. */
3149 /* The GNU C library defines this for functions which it implements
3150 to always fail with ENOSYS. Some functions are actually named
3151 something starting with __ and the normal name is an alias. */
3152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3160 if { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3162 eval "ac_cv_func_$ac_func=yes"
3164 echo "configure: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3167 eval "ac_cv_func_$ac_func=no"
3172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3173 echo "$ac_t""yes" 1>&6
3174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3175 cat >> confdefs.h <<EOF
3176 #define $ac_tr_func 1
3180 echo "$ac_t""no" 1>&6
3185 echo $ac_n "checking if link/symlink functions work""... $ac_c" 1>&6
3186 echo "configure:3187: checking if link/symlink functions work" >&5
3187 if eval "test \"`echo '$''{'cf_cv_link_funcs'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3192 for cf_func in link symlink ; do
3193 if test "$cross_compiling" = yes; then
3195 eval 'ac_cv_func_'$cf_func'=error'
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3201 #include <sys/types.h>
3202 #include <sys/stat.h>
3203 #ifdef HAVE_UNISTD_H
3209 char *src = "config.log";
3210 char *dst = "conftest.chk";
3215 fail = ($cf_func("config.log", "conftest.chk") < 0)
3216 || (stat(dst, &dst_sb) < 0)
3217 || (dst_sb.st_mtime != src_sb.st_mtime);
3227 if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3230 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
3231 eval 'ac_cv_func_'$cf_func'=yes'
3233 echo "configure: failed program was:" >&5
3234 cat conftest.$ac_ext >&5
3237 eval 'ac_cv_func_'$cf_func'=no'
3243 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
3247 echo "$ac_t""$cf_cv_link_funcs" 1>&6
3248 test "$ac_cv_func_link" = yes && cat >> confdefs.h <<\EOF
3252 test "$ac_cv_func_symlink" = yes && cat >> confdefs.h <<\EOF
3253 #define HAVE_SYMLINK 1
3262 if test "$ac_cv_func_link" != yes ; then
3263 echo $ac_n "checking if tic should use symbolic links""... $ac_c" 1>&6
3264 echo "configure:3265: checking if tic should use symbolic links" >&5
3265 if test "$ac_cv_func_symlink" = yes ; then
3270 echo "$ac_t""$with_symlinks" 1>&6
3271 elif test "$ac_cv_func_symlink" != yes ; then
3272 echo $ac_n "checking if tic should use hard links""... $ac_c" 1>&6
3273 echo "configure:3274: checking if tic should use hard links" >&5
3274 if test "$ac_cv_func_link" = yes ; then
3279 echo "$ac_t""$with_links" 1>&6
3281 echo $ac_n "checking if tic should use symbolic links""... $ac_c" 1>&6
3282 echo "configure:3283: checking if tic should use symbolic links" >&5
3284 # Check whether --enable-symlinks or --disable-symlinks was given.
3285 if test "${enable_symlinks+set}" = set; then
3286 enableval="$enable_symlinks"
3287 with_symlinks=$enableval
3292 echo "$ac_t""$with_symlinks" 1>&6
3295 test "$with_links" = yes && cat >> confdefs.h <<\EOF
3299 test "$with_symlinks" = yes && cat >> confdefs.h <<\EOF
3300 #define USE_SYMLINKS 1
3304 ### use option --enable-broken-linker to force on use of broken-linker support
3305 echo $ac_n "checking if you want broken-linker support code""... $ac_c" 1>&6
3306 echo "configure:3307: checking if you want broken-linker support code" >&5
3308 # Check whether --enable-broken_linker or --disable-broken_linker was given.
3309 if test "${enable_broken_linker+set}" = set; then
3310 enableval="$enable_broken_linker"
3311 with_broken_linker=$enableval
3313 with_broken_linker=$BROKEN_LINKER
3316 echo "$ac_t""$with_broken_linker" 1>&6
3317 test "$with_broken_linker" = yes && cat >> confdefs.h <<\EOF
3318 #define BROKEN_LINKER 1
3322 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
3323 echo $ac_n "checking if tputs should process BSD-style prefix padding""... $ac_c" 1>&6
3324 echo "configure:3325: checking if tputs should process BSD-style prefix padding" >&5
3326 # Check whether --enable-bsdpad or --disable-bsdpad was given.
3327 if test "${enable_bsdpad+set}" = set; then
3328 enableval="$enable_bsdpad"
3329 with_bsdpad=$enableval
3334 echo "$ac_t""$with_bsdpad" 1>&6
3335 test "$with_bsdpad" = yes && cat >> confdefs.h <<\EOF
3340 ### Enable compiling-in rcs id's
3341 echo $ac_n "checking if RCS identifiers should be compiled-in""... $ac_c" 1>&6
3342 echo "configure:3343: checking if RCS identifiers should be compiled-in" >&5
3344 # Check whether --with-rcs-ids or --without-rcs-ids was given.
3345 if test "${with_rcs_ids+set}" = set; then
3346 withval="$with_rcs_ids"
3347 with_rcs_ids=$withval
3352 echo "$ac_t""$with_rcs_ids" 1>&6
3353 test "$with_rcs_ids" = yes && cat >> confdefs.h <<\EOF
3354 #define USE_RCS_IDS 1
3358 ###############################################################################
3361 echo $ac_n "checking format of man-pages""... $ac_c" 1>&6
3362 echo "configure:3363: checking format of man-pages" >&5
3365 # Check whether --with-manpage-format or --without-manpage-format was given.
3366 if test "${with_manpage_format+set}" = set; then
3367 withval="$with_manpage_format"
3368 cf_manpage_form=$withval
3370 cf_manpage_form=unknown
3374 case ".$cf_manpage_form" in
3375 .gzip|.compress|.BSDI|.normal|.formatted) # (vi
3378 if test -z "$MANPATH" ; then
3379 MANPATH="/usr/man:/usr/share/man"
3381 # look for the 'date' man-page (it's most likely to be installed!)
3382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3383 cf_manpage_form=unknown
3384 for cf_dir in $MANPATH; do
3385 test -z "$cf_dir" && cf_dir=/usr/man
3386 for cf_name in $cf_dir/*/date.[01]* $cf_dir/*/date
3388 cf_test=`echo $cf_name | sed -e 's/*//'`
3389 if test "x$cf_test" = "x$cf_name" ; then
3391 *.gz) cf_manpage_form=gzip;;
3392 *.Z) cf_manpage_form=compress;;
3393 *.0) cf_manpage_form=BSDI,formatted;;
3394 *) cf_manpage_form=normal;;
3399 if test "$cf_manpage_form" != "unknown" ; then
3406 echo "configure: warning: Unexpected manpage-format" 1>&2
3410 echo "$ac_t""$cf_manpage_form" 1>&6
3413 echo $ac_n "checking for manpage renaming""... $ac_c" 1>&6
3414 echo "configure:3415: checking for manpage renaming" >&5
3417 # Check whether --with-manpage-renames or --without-manpage-renames was given.
3418 if test "${with_manpage_renames+set}" = set; then
3419 withval="$with_manpage_renames"
3420 cf_manpage_renames=$withval
3422 cf_manpage_renames=yes
3426 case ".$cf_manpage_renames" in #(vi
3430 # Debian 'man' program?
3431 if test -f /etc/debian_version ; then
3432 cf_manpage_renames=`cd $srcdir && pwd`/man/man_db.renames
3434 cf_manpage_renames=no
3439 if test "$cf_manpage_renames" != no ; then
3440 if test ! -f $cf_manpage_renames ; then
3441 { echo "configure: error: not a filename: $cf_manpage_renames" 1>&2; exit 1; }
3444 test ! -d man && mkdir man
3446 # Construct a sed-script to perform renaming within man-pages
3447 if test -n "$cf_manpage_renames" ; then
3448 test ! -d man && mkdir man
3449 $srcdir/man/make_sed.sh $cf_manpage_renames >man/edit_man.sed
3453 echo "$ac_t""$cf_manpage_renames" 1>&6
3456 echo $ac_n "checking for manpage symlinks""... $ac_c" 1>&6
3457 echo "configure:3458: checking for manpage symlinks" >&5
3460 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
3461 if test "${with_manpage_symlinks+set}" = set; then
3462 withval="$with_manpage_symlinks"
3463 cf_manpage_symlinks=$withval
3465 cf_manpage_symlinks=yes
3469 echo "$ac_t""$cf_manpage_symlinks" 1>&6
3472 if test "$prefix" = "NONE" ; then
3473 cf_prefix="$ac_default_prefix"
3478 case "$cf_manpage_form" in # (vi
3480 cf_subdir='$mandir/cat'
3484 cf_subdir='$mandir/man'
3489 test ! -d man && mkdir man
3490 cat >man/edit_man.sh <<CF_EOF
3492 # this script is generated by the configure-script
3495 TERMINFO="$TERMINFO"
3496 MKDIRS="`cd $srcdir && pwd`/mkinstalldirs"
3498 INSTALL_DATA="$INSTALL_DATA"
3499 transform="$program_transform_name"
3501 TMP=\${TMPDIR-/tmp}/man\$\$
3502 trap "rm -f \$TMP" 0 1 2 5 15
3515 *.orig|*.rej) ;; #(vi
3517 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
3518 if test \$verb = installing ; then
3519 if test ! -d $cf_subdir\${section} ; then
3520 \$MKDIRS $cf_subdir\$section
3524 source=\`basename \$i\`
3526 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
3527 if test ! -f \$inalias ; then
3528 echo .. skipped \$source
3532 if test "$cf_manpage_symlinks" = yes ; then
3533 cat >>man/edit_man.sh <<CF_EOF
3534 aliases=\`sed -f \$srcdir/manlinks.sed \$inalias | sort -u\`
3537 if test "$cf_manpage_renames" = no ; then
3538 cat >>man/edit_man.sh <<CF_EOF
3539 # perform program transformations for section 1 man pages
3540 if test \$section = 1 ; then
3541 target=$cf_subdir\${section}/\`echo \$source|sed "\${transform}"\`
3543 target=$cf_subdir\${section}/\$source
3546 # replace variables in man page
3549 for cf_name in captoinfo clear infocmp infotocap tic toe tput
3551 cat >>man/edit_man.sh <<CF_EOF
3552 prog_$cf_name=\`echo $cf_name|sed "\${transform}"\`
3556 cat >>man/edit_man.sh <<CF_EOF
3557 sed -e "s,@DATADIR@,\$datadir," \\
3558 -e "s,@TERMINFO@,\$TERMINFO," \\
3561 for cf_name in captoinfo clear infocmp infotocap tic toe tput
3563 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3564 cat >>man/edit_man.sh <<CF_EOF
3565 -e "s,@$cf_NAME@,\$prog_$cf_name," \\
3569 cat >>man/edit_man.sh <<CF_EOF
3573 cat >>man/edit_man.sh <<CF_EOF
3574 target=\`grep "^\$source" $cf_manpage_renames | $AWK '{print \$2}'\`
3575 if test -z "\$target" ; then
3576 echo '? missing rename for '\$source
3579 target="$cf_subdir\$section/\$target"
3580 test \$verb = installing && sed -e "s,@DATADIR@,\$datadir," < \$i | sed -f edit_man.sed >\$TMP
3583 if test $cf_format = yes ; then
3584 cat >>man/edit_man.sh <<CF_EOF
3585 nroff -man \$TMP >\$TMP.out
3589 case "$cf_manpage_form" in #(vi
3591 cat >>man/edit_man.sh <<CF_EOF
3592 if test \$verb = installing ; then
3593 if ( compress -f \$TMP )
3602 cat >>man/edit_man.sh <<CF_EOF
3603 if test \$verb = installing ; then
3604 if ( gzip -f \$TMP )
3609 target="\$target.gz"
3613 cat >>man/edit_man.sh <<CF_EOF
3614 # BSDI installs only .0 suffixes in the cat directories
3615 target="\`echo \$target|sed -e 's/\.[1-9]\+.\?/.0/'\`"
3619 cat >>man/edit_man.sh <<CF_EOF
3620 echo \$verb \$target
3621 suffix=\`basename \$target | sed -e 's/^[^.]*//'\`
3622 if test \$verb = installing ; then
3623 \$INSTALL_DATA \$TMP \$target
3624 test -n "\$aliases" && (
3625 cd $cf_subdir\${section} && (
3626 target=\`basename \$target\`
3627 for cf_alias in \$aliases
3629 if test \$section = 1 ; then
3630 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
3633 if test -f \$cf_alias\${suffix} ; then
3634 if ( cmp -s \$target \$cf_alias\${suffix} )
3638 echo .. \$verb alias \$cf_alias\${suffix}
3639 rm -f \$cf_alias\${suffix}
3640 $LN_S \$target \$cf_alias\${suffix}
3643 echo .. \$verb alias \$cf_alias\${suffix}
3644 rm -f \$cf_alias\${suffix}
3645 $LN_S \$target \$cf_alias\${suffix}
3652 test -n "\$aliases" && (
3653 cd $cf_subdir\${section} && (
3654 for cf_alias in \$aliases
3656 if test \$section = 1 ; then
3657 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
3660 echo .. \$verb alias \$cf_alias\${suffix}
3661 rm -f \$cf_alias\${suffix}
3671 chmod 755 man/edit_man.sh
3675 ###############################################################################
3678 ### Note that some functions (such as const) are normally disabled anyway.
3679 echo $ac_n "checking if you want to build with function extensions""... $ac_c" 1>&6
3680 echo "configure:3681: checking if you want to build with function extensions" >&5
3682 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
3683 if test "${enable_ext_funcs+set}" = set; then
3684 enableval="$enable_ext_funcs"
3685 with_ext_funcs=$enableval
3690 echo "$ac_t""$with_ext_funcs" 1>&6
3691 if test "$with_ext_funcs" = yes ; then
3692 cat >> confdefs.h <<\EOF
3693 #define HAVE_CURSES_VERSION 1
3696 cat >> confdefs.h <<\EOF
3697 #define HAVE_HAS_KEY 1
3700 cat >> confdefs.h <<\EOF
3701 #define HAVE_RESIZETERM 1
3704 cat >> confdefs.h <<\EOF
3705 #define HAVE_USE_DEFAULT_COLORS 1
3708 cat >> confdefs.h <<\EOF
3709 #define HAVE_WRESIZE 1
3712 cat >> confdefs.h <<\EOF
3713 #define NCURSES_EXT_FUNCS 1
3718 ### use option --enable-const to turn on use of const beyond that in XSI.
3719 echo $ac_n "checking for extended use of const keyword""... $ac_c" 1>&6
3720 echo "configure:3721: checking for extended use of const keyword" >&5
3722 # Check whether --enable-const or --disable-const was given.
3723 if test "${enable_const+set}" = set; then
3724 enableval="$enable_const"
3725 with_ext_const=$enableval
3730 echo "$ac_t""$with_ext_const" 1>&6
3731 NCURSES_CONST='/*nothing*/'
3732 if test "$with_ext_const" = yes ; then
3737 echo $ac_n "checking if you want \$NCURSES_NO_PADDING code""... $ac_c" 1>&6
3738 echo "configure:3739: checking if you want \$NCURSES_NO_PADDING code" >&5
3740 # Check whether --enable-no-padding or --disable-no-padding was given.
3741 if test "${enable_no_padding+set}" = set; then
3742 enableval="$enable_no_padding"
3743 with_no_padding=$enableval
3745 with_no_padding=$with_ext_funcs
3748 echo "$ac_t""$with_no_padding" 1>&6
3749 test "$with_no_padding" = yes && cat >> confdefs.h <<\EOF
3750 #define NCURSES_NO_PADDING 1
3754 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
3755 echo $ac_n "checking if you want SIGWINCH handler""... $ac_c" 1>&6
3756 echo "configure:3757: checking if you want SIGWINCH handler" >&5
3758 # Check whether --enable-sigwinch or --disable-sigwinch was given.
3759 if test "${enable_sigwinch+set}" = set; then
3760 enableval="$enable_sigwinch"
3761 with_sigwinch=$enableval
3763 with_sigwinch=$with_ext_funcs
3766 echo "$ac_t""$with_sigwinch" 1>&6
3767 test "$with_sigwinch" = yes && cat >> confdefs.h <<\EOF
3768 #define USE_SIGWINCH 1
3772 ### use option --enable-tcap-names to allow user to define new capabilities
3773 echo $ac_n "checking if you want user-definable terminal capabilities like termcap""... $ac_c" 1>&6
3774 echo "configure:3775: checking if you want user-definable terminal capabilities like termcap" >&5
3776 # Check whether --enable-tcap-names or --disable-tcap-names was given.
3777 if test "${enable_tcap_names+set}" = set; then
3778 enableval="$enable_tcap_names"
3779 with_tcap_names=$enableval
3781 with_tcap_names=$with_ext_funcs
3784 echo "$ac_t""$with_tcap_names" 1>&6
3786 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
3789 ###############################################################################
3790 # These options are relatively safe to experiment with.
3792 echo $ac_n "checking if you want all development code""... $ac_c" 1>&6
3793 echo "configure:3794: checking if you want all development code" >&5
3795 # Check whether --with-develop or --without-develop was given.
3796 if test "${with_develop+set}" = set; then
3797 withval="$with_develop"
3798 with_develop=$withval
3803 echo "$ac_t""$with_develop" 1>&6
3805 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
3806 echo $ac_n "checking if you want colorfgbg code""... $ac_c" 1>&6
3807 echo "configure:3808: checking if you want colorfgbg code" >&5
3809 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
3810 if test "${enable_hard_tabs+set}" = set; then
3811 enableval="$enable_hard_tabs"
3812 with_colorfgbg=$enableval
3814 with_colorfgbg=$with_develop
3817 echo "$ac_t""$with_colorfgbg" 1>&6
3818 test "$with_colorfgbg" = yes && cat >> confdefs.h <<\EOF
3819 #define USE_COLORFGBG 1
3823 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
3824 echo $ac_n "checking if you want hard-tabs code""... $ac_c" 1>&6
3825 echo "configure:3826: checking if you want hard-tabs code" >&5
3827 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
3828 if test "${enable_hard_tabs+set}" = set; then
3829 enableval="$enable_hard_tabs"
3830 with_hardtabs=$enableval
3832 with_hardtabs=$with_develop
3835 echo "$ac_t""$with_hardtabs" 1>&6
3836 test "$with_hardtabs" = yes && cat >> confdefs.h <<\EOF
3837 #define USE_HARD_TABS 1
3841 echo $ac_n "checking if you want to use restrict environment when running as root""... $ac_c" 1>&6
3842 echo "configure:3843: checking if you want to use restrict environment when running as root" >&5
3844 # Check whether --enable-root-environ or --disable-root-environ was given.
3845 if test "${enable_root_environ+set}" = set; then
3846 enableval="$enable_root_environ"
3847 with_root_environ=$enableval
3849 with_root_environ=yes
3852 echo "$ac_t""$with_root_environ" 1>&6
3853 test "$with_root_environ" = yes && cat >> confdefs.h <<\EOF
3854 #define USE_ROOT_ENVIRON 1
3858 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
3859 echo $ac_n "checking if you want limited support for xmc""... $ac_c" 1>&6
3860 echo "configure:3861: checking if you want limited support for xmc" >&5
3862 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
3863 if test "${enable_xmc_glitch+set}" = set; then
3864 enableval="$enable_xmc_glitch"
3865 with_xmc_glitch=$enableval
3867 with_xmc_glitch=$with_develop
3870 echo "$ac_t""$with_xmc_glitch" 1>&6
3871 test "$with_xmc_glitch" = yes && cat >> confdefs.h <<\EOF
3872 #define USE_XMC_SUPPORT 1
3876 ###############################################################################
3877 # These are just experimental, probably should not be in a package:
3880 echo $ac_n "checking if you do not want to assume colors are white-on-black""... $ac_c" 1>&6
3881 echo "configure:3882: checking if you do not want to assume colors are white-on-black" >&5
3883 # Check whether --enable-assumed-color or --disable-assumed-color was given.
3884 if test "${enable_assumed_color+set}" = set; then
3885 enableval="$enable_assumed_color"
3886 with_assumed_color=$enableval
3888 with_assumed_color=yes
3891 echo "$ac_t""$with_assumed_color" 1>&6
3892 test "$with_assumed_color" = yes && cat >> confdefs.h <<\EOF
3893 #define USE_ASSUMED_COLOR 1
3897 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
3898 echo $ac_n "checking if you want hashmap scrolling-optimization code""... $ac_c" 1>&6
3899 echo "configure:3900: checking if you want hashmap scrolling-optimization code" >&5
3901 # Check whether --enable-hashmap or --disable-hashmap was given.
3902 if test "${enable_hashmap+set}" = set; then
3903 enableval="$enable_hashmap"
3904 with_hashmap=$enableval
3909 echo "$ac_t""$with_hashmap" 1>&6
3910 test "$with_hashmap" = yes && cat >> confdefs.h <<\EOF
3911 #define USE_HASHMAP 1
3915 echo $ac_n "checking if you want experimental safe-sprintf code""... $ac_c" 1>&6
3916 echo "configure:3917: checking if you want experimental safe-sprintf code" >&5
3918 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
3919 if test "${enable_safe_sprintf+set}" = set; then
3920 enableval="$enable_safe_sprintf"
3921 with_safe_sprintf=$enableval
3923 with_safe_sprintf=no
3926 echo "$ac_t""$with_safe_sprintf" 1>&6
3927 test "$with_safe_sprintf" = yes && cat >> confdefs.h <<\EOF
3928 #define USE_SAFE_SPRINTF 1
3932 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
3933 # when hashmap is used scroll hints are useless
3934 if test "$with_hashmap" = no ; then
3935 echo $ac_n "checking if you want to experiment without scrolling-hints code""... $ac_c" 1>&6
3936 echo "configure:3937: checking if you want to experiment without scrolling-hints code" >&5
3938 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
3939 if test "${enable_scroll_hints+set}" = set; then
3940 enableval="$enable_scroll_hints"
3941 with_scroll_hints=$enableval
3943 with_scroll_hints=yes
3946 echo "$ac_t""$with_scroll_hints" 1>&6
3947 test "$with_scroll_hints" = yes && cat >> confdefs.h <<\EOF
3948 #define USE_SCROLL_HINTS 1
3953 ### use option --enable-widec to turn on use of wide-character support
3954 echo $ac_n "checking if you want experimental wide-character code""... $ac_c" 1>&6
3955 echo "configure:3956: checking if you want experimental wide-character code" >&5
3957 # Check whether --enable-widec or --disable-widec was given.
3958 if test "${enable_widec+set}" = set; then
3959 enableval="$enable_widec"
3960 with_widec=$enableval
3965 echo "$ac_t""$with_widec" 1>&6
3966 if test "$with_widec" = yes ; then
3967 LIB_SUFFIX="w${LIB_SUFFIX}"
3968 cat >> confdefs.h <<\EOF
3969 #define USE_WIDEC_SUPPORT 1
3974 ###############################################################################
3977 ### use option --disable-echo to suppress full display compiling commands
3978 echo $ac_n "checking if you want to display full commands during build""... $ac_c" 1>&6
3979 echo "configure:3980: checking if you want to display full commands during build" >&5
3981 # Check whether --enable-echo or --disable-echo was given.
3982 if test "${enable_echo+set}" = set; then
3983 enableval="$enable_echo"
3984 with_echo=$enableval
3989 if test "$with_echo" = yes; then
3992 ECHO_LINK='@ echo linking $@ ... ;'
3994 echo "$ac_t""$with_echo" 1>&6
3997 ### use option --enable-warnings to turn on all gcc warnings
3998 echo $ac_n "checking if you want to see compiler warnings""... $ac_c" 1>&6
3999 echo "configure:4000: checking if you want to see compiler warnings" >&5
4001 # Check whether --enable-warnings or --disable-warnings was given.
4002 if test "${enable_warnings+set}" = set; then
4003 enableval="$enable_warnings"
4004 with_warnings=$enableval
4007 if test -n "$with_warnings"; then
4008 ADAFLAGS="$ADAFLAGS -gnatg"
4010 if test "$GCC" = yes
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4016 echo "checking for $CC warning options" 1>&6
4017 echo "configure:4018: checking for $CC warning options" >&5
4018 cf_save_CFLAGS="$CFLAGS"
4019 EXTRA_CFLAGS="-W -Wall"
4021 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4023 Wbad-function-cast \
4027 Wmissing-declarations \
4028 Wmissing-prototypes \
4032 Wstrict-prototypes $cf_warn_CONST
4034 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4035 if { (eval echo configure:4036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4036 test -n "$verbose" && echo "$ac_t""... -$cf_opt" 1>&6
4037 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4038 test "$cf_opt" = Wcast-qual && EXTRA_CFLAGS="$EXTRA_CFLAGS -DXTSTRINGDEFINES"
4042 CFLAGS="$cf_save_CFLAGS"
4047 echo "$ac_t""$with_warnings" 1>&6
4049 if test "$GCC" = yes
4051 cat > conftest.i <<EOF
4053 #define GCC_PRINTF 0
4058 #ifndef GCC_NORETURN
4059 #define GCC_NORETURN /* nothing */
4062 #define GCC_UNUSED /* nothing */
4065 if test "$GCC" = yes
4067 echo "checking for $CC __attribute__ directives" 1>&6
4068 echo "configure:4069: checking for $CC __attribute__ directives" >&5
4069 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4072 #include "conftest.h"
4073 #include "conftest.i"
4075 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4077 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
4080 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
4082 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
4084 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
4085 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
4086 extern void foo(void) GCC_NORETURN;
4087 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
4089 for cf_attribute in scanf printf unused noreturn
4092 CF_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4094 cf_directive="__attribute__(($cf_attribute))"
4095 echo "checking for $CC $cf_directive" 1>&5
4096 case $cf_attribute in
4098 cat >conftest.h <<EOF
4099 #define GCC_$CF_ATTRIBUTE 1
4103 cat >conftest.h <<EOF
4104 #define GCC_$CF_ATTRIBUTE $cf_directive
4108 if { (eval echo configure:4109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4109 test -n "$verbose" && echo "$ac_t""... $cf_attribute" 1>&6
4110 cat conftest.h >>confdefs.h
4112 # sed -e 's/__attr.*/\/*nothing*\//' conftest.h >>confdefs.h
4116 fgrep define conftest.i >>confdefs.h
4122 ### use option --enable-assertions to turn on generation of assertion code
4123 echo $ac_n "checking if you want to enable runtime assertions""... $ac_c" 1>&6
4124 echo "configure:4125: checking if you want to enable runtime assertions" >&5
4126 # Check whether --enable-assertions or --disable-assertions was given.
4127 if test "${enable_assertions+set}" = set; then
4128 enableval="$enable_assertions"
4129 with_assertions=$enableval
4134 echo "$ac_t""$with_assertions" 1>&6
4137 if test "$with_assertions" = no
4139 cat >> confdefs.h <<\EOF
4143 CPPFLAGS="$CPPFLAGS -DNDEBUG"
4145 ADAFLAGS="$ADAFLAGS -gnata"
4149 ### use option --disable-leaks to suppress "permanent" leaks, for testing
4151 # Check whether --enable-leaks or --disable-leaks was given.
4152 if test "${enable_leaks+set}" = set; then
4153 enableval="$enable_leaks"
4154 test "$enableval" = no && cat >> confdefs.h <<\EOF
4160 cat >> confdefs.h <<\EOF
4161 #define HAVE_NC_ALLOC_H 1
4165 ### use option --enable-expanded to generate certain macros as functions
4167 # Check whether --enable-expanded or --disable-expanded was given.
4168 if test "${enable_expanded+set}" = set; then
4169 enableval="$enable_expanded"
4170 test "$enableval" = yes && cat >> confdefs.h <<\EOF
4171 #define NCURSES_EXPANDED 1
4177 ### use option --disable-macros to suppress macros in favor of functions
4179 # Check whether --enable-macros or --disable-macros was given.
4180 if test "${enable_macros+set}" = set; then
4181 enableval="$enable_macros"
4182 test "$enableval" = no && cat >> confdefs.h <<\EOF
4183 #define NCURSES_NOMACROS 1
4189 ### Checks for libraries.
4190 echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
4191 echo "configure:4192: checking for gettimeofday" >&5
4192 if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
4193 echo $ac_n "(cached) $ac_c" 1>&6
4195 cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4198 /* System header to define __stub macros and hopefully few prototypes,
4199 which can conflict with char gettimeofday(); below. */
4201 /* Override any gcc2 internal prototype to avoid an error. */
4202 /* We use char because int might match the return type of a gcc2
4203 builtin and then its argument prototype would still apply. */
4204 char gettimeofday();
4208 /* The GNU C library defines this for functions which it implements
4209 to always fail with ENOSYS. Some functions are actually named
4210 something starting with __ and the normal name is an alias. */
4211 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
4219 if { (eval echo configure:4220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4221 eval "ac_cv_func_gettimeofday=yes"
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4226 eval "ac_cv_func_gettimeofday=no"
4231 if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
4232 echo "$ac_t""yes" 1>&6
4233 cat >> confdefs.h <<\EOF
4234 #define HAVE_GETTIMEOFDAY 1
4238 echo "$ac_t""no" 1>&6
4241 echo $ac_n "checking for gettimeofday in -lbsd""... $ac_c" 1>&6
4242 echo "configure:4243: checking for gettimeofday in -lbsd" >&5
4243 ac_lib_var=`echo bsd'_'gettimeofday | sed 'y%./+-%__p_%'`
4244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4245 echo $ac_n "(cached) $ac_c" 1>&6
4247 ac_save_LIBS="$LIBS"
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4252 /* Override any gcc2 internal prototype to avoid an error. */
4253 /* We use char because int might match the return type of a gcc2
4254 builtin and then its argument prototype would still apply. */
4255 char gettimeofday();
4261 if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4263 eval "ac_cv_lib_$ac_lib_var=yes"
4265 echo "configure: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4268 eval "ac_cv_lib_$ac_lib_var=no"
4271 LIBS="$ac_save_LIBS"
4274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4276 cat >> confdefs.h <<\EOF
4277 #define HAVE_GETTIMEOFDAY 1
4282 echo "$ac_t""no" 1>&6
4288 echo $ac_n "checking if -lm needed for math functions""... $ac_c" 1>&6
4289 echo "configure:4290: checking if -lm needed for math functions" >&5
4290 if eval "test \"`echo '$''{'cf_cv_need_libm'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4294 cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4302 double x = rand(); printf("result = %g\n", sin(x))
4305 if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4309 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4317 echo "$ac_t""$cf_cv_need_libm" 1>&6
4318 if test "$cf_cv_need_libm" = yes
4325 ### Checks for header files.
4326 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4327 echo "configure:4328: checking for ANSI C header files" >&5
4328 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4340 { (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4342 if test -z "$ac_err"; then
4344 ac_cv_header_stdc=yes
4347 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4350 ac_cv_header_stdc=no
4354 if test $ac_cv_header_stdc = yes; then
4355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4356 cat > conftest.$ac_ext <<EOF
4357 #line 4358 "configure"
4358 #include "confdefs.h"
4361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4362 egrep "memchr" >/dev/null 2>&1; then
4366 ac_cv_header_stdc=no
4372 if test $ac_cv_header_stdc = yes; then
4373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4380 egrep "free" >/dev/null 2>&1; then
4384 ac_cv_header_stdc=no
4390 if test $ac_cv_header_stdc = yes; then
4391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4392 if test "$cross_compiling" = yes; then
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4399 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4400 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4401 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4402 int main () { int i; for (i = 0; i < 256; i++)
4403 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4407 if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4411 echo "configure: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4414 ac_cv_header_stdc=no
4422 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4423 if test $ac_cv_header_stdc = yes; then
4424 cat >> confdefs.h <<\EOF
4425 #define STDC_HEADERS 1
4431 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4434 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4435 echo "configure:4436: checking for $ac_hdr that defines DIR" >&5
4436 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4437 echo $ac_n "(cached) $ac_c" 1>&6
4439 cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4442 #include <sys/types.h>
4448 if { (eval echo configure:4449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4450 eval "ac_cv_header_dirent_$ac_safe=yes"
4452 echo "configure: failed program was:" >&5
4453 cat conftest.$ac_ext >&5
4455 eval "ac_cv_header_dirent_$ac_safe=no"
4459 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4460 echo "$ac_t""yes" 1>&6
4461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4462 cat >> confdefs.h <<EOF
4463 #define $ac_tr_hdr 1
4465 ac_header_dirent=$ac_hdr; break
4467 echo "$ac_t""no" 1>&6
4470 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4471 if test $ac_header_dirent = dirent.h; then
4472 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4473 echo "configure:4474: checking for opendir in -ldir" >&5
4474 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 ac_save_LIBS="$LIBS"
4480 cat > conftest.$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4483 /* Override any gcc2 internal prototype to avoid an error. */
4484 /* We use char because int might match the return type of a gcc2
4485 builtin and then its argument prototype would still apply. */
4492 if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4494 eval "ac_cv_lib_$ac_lib_var=yes"
4496 echo "configure: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4499 eval "ac_cv_lib_$ac_lib_var=no"
4502 LIBS="$ac_save_LIBS"
4505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4506 echo "$ac_t""yes" 1>&6
4509 echo "$ac_t""no" 1>&6
4513 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4514 echo "configure:4515: checking for opendir in -lx" >&5
4515 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6
4519 ac_save_LIBS="$LIBS"
4521 cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4524 /* Override any gcc2 internal prototype to avoid an error. */
4525 /* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */
4533 if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4535 eval "ac_cv_lib_$ac_lib_var=yes"
4537 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4540 eval "ac_cv_lib_$ac_lib_var=no"
4543 LIBS="$ac_save_LIBS"
4546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4547 echo "$ac_t""yes" 1>&6
4550 echo "$ac_t""no" 1>&6
4556 echo $ac_n "checking for regular-expression headers""... $ac_c" 1>&6
4557 echo "configure:4558: checking for regular-expression headers" >&5
4558 if eval "test \"`echo '$''{'cf_cv_regex'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4562 cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4565 #include <sys/types.h>
4570 int x = regcomp(p, "", 0);
4571 int y = regexec(p, "", 0, 0, 0);
4576 if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4578 cf_cv_regex="regex.h"
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4584 cat > conftest.$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4590 char *p = compile("", "", "", 0);
4591 int x = step("", "");
4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4597 cf_cv_regex="regexp.h"
4599 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4603 cf_save_LIBS="$LIBS"
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 #include <regexpr.h>
4611 char *p = compile("", "", "");
4612 int x = step("", "");
4616 if { (eval echo configure:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4618 cf_cv_regex="regexpr.h"
4620 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4623 LIBS="$cf_save_LIBS"
4633 echo "$ac_t""$cf_cv_regex" 1>&6
4634 case $cf_cv_regex in
4635 regex.h) cat >> confdefs.h <<\EOF
4636 #define HAVE_REGEX_H_FUNCS 1
4639 regexp.h) cat >> confdefs.h <<\EOF
4640 #define HAVE_REGEXP_H_FUNCS 1
4643 regexpr.h) cat >> confdefs.h <<\EOF
4644 #define HAVE_REGEXPR_H_FUNCS 1
4668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4670 echo "configure:4671: checking for $ac_hdr" >&5
4671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4680 { (eval echo configure:4681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4682 if test -z "$ac_err"; then
4684 eval "ac_cv_header_$ac_safe=yes"
4687 echo "configure: failed program was:" >&5
4688 cat conftest.$ac_ext >&5
4690 eval "ac_cv_header_$ac_safe=no"
4694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4695 echo "$ac_t""yes" 1>&6
4696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4697 cat >> confdefs.h <<EOF
4698 #define $ac_tr_hdr 1
4702 echo "$ac_t""no" 1>&6
4707 # check for ISC (this may also define _POSIX_SOURCE)
4708 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
4709 if test "$ISC" = yes ; then
4710 echo $ac_n "checking for main in -lcposix""... $ac_c" 1>&6
4711 echo "configure:4712: checking for main in -lcposix" >&5
4712 ac_lib_var=`echo cposix'_'main | sed 'y%./+-%__p_%'`
4713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 ac_save_LIBS="$LIBS"
4717 LIBS="-lcposix $LIBS"
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4726 if { (eval echo configure:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4728 eval "ac_cv_lib_$ac_lib_var=yes"
4730 echo "configure: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4733 eval "ac_cv_lib_$ac_lib_var=no"
4736 LIBS="$ac_save_LIBS"
4739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4740 echo "$ac_t""yes" 1>&6
4741 ac_tr_lib=HAVE_LIB`echo cposix | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4742 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4743 cat >> confdefs.h <<EOF
4744 #define $ac_tr_lib 1
4747 LIBS="-lcposix $LIBS"
4750 echo "$ac_t""no" 1>&6
4753 echo $ac_n "checking for bzero in -linet""... $ac_c" 1>&6
4754 echo "configure:4755: checking for bzero in -linet" >&5
4755 ac_lib_var=`echo inet'_'bzero | sed 'y%./+-%__p_%'`
4756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 ac_save_LIBS="$LIBS"
4761 cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4764 /* Override any gcc2 internal prototype to avoid an error. */
4765 /* We use char because int might match the return type of a gcc2
4766 builtin and then its argument prototype would still apply. */
4773 if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4775 eval "ac_cv_lib_$ac_lib_var=yes"
4777 echo "configure: failed program was:" >&5
4778 cat conftest.$ac_ext >&5
4780 eval "ac_cv_lib_$ac_lib_var=no"
4783 LIBS="$ac_save_LIBS"
4786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4787 echo "$ac_t""yes" 1>&6
4790 echo "$ac_t""no" 1>&6
4795 echo $ac_n "checking if sys/time.h works with sys/select.h""... $ac_c" 1>&6
4796 echo "configure:4797: checking if sys/time.h works with sys/select.h" >&5
4797 if eval "test \"`echo '$''{'cf_cv_sys_time_select'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4801 cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4805 #include <sys/types.h>
4806 #ifdef HAVE_SYS_TIME_H
4807 #include <sys/time.h>
4809 #ifdef HAVE_SYS_SELECT_H
4810 #include <sys/select.h>
4817 if { (eval echo configure:4818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4819 cf_cv_sys_time_select=yes
4821 echo "configure: failed program was:" >&5
4822 cat conftest.$ac_ext >&5
4824 cf_cv_sys_time_select=no
4830 echo "$ac_t""$cf_cv_sys_time_select" 1>&6
4831 test "$cf_cv_sys_time_select" = yes && cat >> confdefs.h <<\EOF
4832 #define HAVE_SYS_TIME_SELECT 1
4837 ### checks for compiler characteristics
4839 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4840 ac_cpp='$CPP $CPPFLAGS'
4841 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4842 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4843 cross_compiling=$ac_cv_prog_cc_cross
4845 echo $ac_n "checking for working const""... $ac_c" 1>&6
4846 echo "configure:4847: checking for working const" >&5
4847 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4848 echo $ac_n "(cached) $ac_c" 1>&6
4850 cat > conftest.$ac_ext <<EOF
4851 #line 4852 "configure"
4852 #include "confdefs.h"
4856 /* Ultrix mips cc rejects this. */
4857 typedef int charset[2]; const charset x;
4858 /* SunOS 4.1.1 cc rejects this. */
4859 char const *const *ccp;
4861 /* NEC SVR4.0.2 mips cc rejects this. */
4862 struct point {int x, y;};
4863 static struct point const zero = {0,0};
4864 /* AIX XL C 1.02.0.0 rejects this.
4865 It does not let you subtract one const X* pointer from another in an arm
4866 of an if-expression whose if-part is not a constant expression */
4867 const char *g = "string";
4868 ccp = &g + (g ? g-g : 0);
4869 /* HPUX 7.0 cc rejects these. */
4872 ccp = (char const *const *) p;
4873 { /* SCO 3.2v4 cc rejects this. */
4875 char const *s = 0 ? (char *) 0 : (char const *) 0;
4879 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4881 const int *foo = &x[0];
4884 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4885 typedef const int *iptr;
4889 { /* AIX XL C 1.02.0.0 rejects this saying
4890 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4891 struct s { int j; const int *ap[3]; };
4892 struct s *b; b->j = 5;
4894 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4900 if { (eval echo configure:4901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4904 echo "configure: failed program was:" >&5
4905 cat conftest.$ac_ext >&5
4912 echo "$ac_t""$ac_cv_c_const" 1>&6
4913 if test $ac_cv_c_const = no; then
4914 cat >> confdefs.h <<\EOF
4920 echo $ac_n "checking for inline""... $ac_c" 1>&6
4921 echo "configure:4922: checking for inline" >&5
4922 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4926 for ac_kw in inline __inline__ __inline; do
4927 cat > conftest.$ac_ext <<EOF
4928 #line 4929 "configure"
4929 #include "confdefs.h"
4935 if { (eval echo configure:4936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4937 ac_cv_c_inline=$ac_kw; break
4939 echo "configure: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4947 echo "$ac_t""$ac_cv_c_inline" 1>&6
4948 case "$ac_cv_c_inline" in
4950 no) cat >> confdefs.h <<\EOF
4954 *) cat >> confdefs.h <<EOF
4955 #define inline $ac_cv_c_inline
4960 test "$ac_cv_c_inline" != no && cat >> confdefs.h <<\EOF
4961 #define CC_HAS_INLINE_FUNCS 1
4966 echo $ac_n "checking if unsigned literals are legal""... $ac_c" 1>&6
4967 echo "configure:4968: checking if unsigned literals are legal" >&5
4968 if eval "test \"`echo '$''{'cf_cv_unsigned_literals'+set}'`\" = set"; then
4969 echo $ac_n "(cached) $ac_c" 1>&6
4972 cat > conftest.$ac_ext <<EOF
4973 #line 4974 "configure"
4974 #include "confdefs.h"
4977 long x = 1L + 1UL + 1U + 1
4980 if { (eval echo configure:4981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4982 cf_cv_unsigned_literals=yes
4984 echo "configure: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4987 cf_cv_unsigned_literals=no
4993 echo "$ac_t""$cf_cv_unsigned_literals" 1>&6
4997 echo $ac_n "checking for type of chtype""... $ac_c" 1>&6
4998 echo "configure:4999: checking for type of chtype" >&5
4999 if eval "test \"`echo '$''{'cf_cv_typeof_chtype'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5003 if test "$cross_compiling" = yes; then
5004 cf_cv_typeof_chtype=long
5006 cat > conftest.$ac_ext <<EOF
5007 #line 5008 "configure"
5008 #include "confdefs.h"
5010 #ifdef USE_WIDEC_SUPPORT
5011 #include <stddef.h> /* we want wchar_t */
5012 #define WANT_BITS 39
5014 #define WANT_BITS 31
5019 FILE *fp = fopen("cf_test.out", "w");
5021 char *result = "long";
5022 #ifdef USE_WIDEC_SUPPORT
5024 * If wchar_t is smaller than a long, it must be an int or a
5025 * short. We prefer not to use a short anyway.
5027 if (sizeof(unsigned long) > sizeof(wchar_t))
5030 if (sizeof(unsigned long) > sizeof(unsigned int)) {
5033 for (n = 0; n < WANT_BITS; n++) {
5034 unsigned int y = (x >> n);
5035 if (y != 1 || x == 0) {
5041 * If x is nonzero, an int is big enough for the bits
5044 result = (x != 0) ? "int" : "long";
5053 if { (eval echo configure:5054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5055 cf_cv_typeof_chtype=`cat cf_test.out`
5057 echo "configure: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5060 cf_cv_typeof_chtype=long
5069 echo "$ac_t""$cf_cv_typeof_chtype" 1>&6
5072 cat >> confdefs.h <<EOF
5073 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
5078 test "$cf_cv_unsigned_literals" = yes && cf_cv_1UL="${cf_cv_1UL}U"
5079 test "$cf_cv_typeof_chtype" = long && cf_cv_1UL="${cf_cv_1UL}L"
5085 echo $ac_n "checking for number of bits in chtype""... $ac_c" 1>&6
5086 echo "configure:5087: checking for number of bits in chtype" >&5
5087 if eval "test \"`echo '$''{'cf_cv_shift_limit'+set}'`\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5091 if test "$cross_compiling" = yes; then
5092 cf_cv_shift_limit=32
5094 cat > conftest.$ac_ext <<EOF
5095 #line 5096 "configure"
5096 #include "confdefs.h"
5101 FILE *fp = fopen("cf_test.out", "w");
5104 unsigned TYPEOF_CHTYPE x = 1L;
5105 for (n = 0; ; n++) {
5106 unsigned long y = (x >> n);
5107 if (y != 1 || x == 0)
5111 fprintf(fp, "%d", n);
5118 if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5120 cf_cv_shift_limit=`cat cf_test.out`
5122 echo "configure: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5125 cf_cv_shift_limit=32
5134 echo "$ac_t""$cf_cv_shift_limit" 1>&6
5137 echo $ac_n "checking for width of character-index""... $ac_c" 1>&6
5138 echo "configure:5139: checking for width of character-index" >&5
5139 if eval "test \"`echo '$''{'cf_cv_widec_shift'+set}'`\" = set"; then
5140 echo $ac_n "(cached) $ac_c" 1>&6
5143 if test ".$with_widec" = ".yes" ; then
5145 if ( expr $cf_cv_shift_limit \> $cf_attrs_width >/dev/null )
5147 cf_cv_widec_shift=`expr 16 + $cf_cv_shift_limit - $cf_attrs_width`
5149 cf_cv_widec_shift=16
5157 echo "$ac_t""$cf_cv_widec_shift" 1>&6
5161 ### Checks for external-data
5164 echo $ac_n "checking if external errno is declared""... $ac_c" 1>&6
5165 echo "configure:5166: checking if external errno is declared" >&5
5166 if eval "test \"`echo '$''{'cf_cv_dcl_errno'+set}'`\" = set"; then
5167 echo $ac_n "(cached) $ac_c" 1>&6
5170 cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure"
5172 #include "confdefs.h"
5174 #ifdef HAVE_STDLIB_H
5178 #include <sys/types.h>
5181 long x = (long) errno
5184 if { (eval echo configure:5185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5186 eval 'cf_cv_dcl_'errno'=yes'
5188 echo "configure: failed program was:" >&5
5189 cat conftest.$ac_ext >&5
5191 eval 'cf_cv_dcl_'errno'=no'
5198 eval 'cf_result=$cf_cv_dcl_'errno
5199 echo "$ac_t""$cf_result" 1>&6
5201 if test "$cf_result" = no ; then
5202 eval 'cf_result=DECL_'errno
5204 cf_result=`echo "$cf_result" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5206 cat >> confdefs.h <<EOF
5207 #define $cf_result 1
5212 # It's possible (for near-UNIX clones) that the data doesn't exist
5214 echo $ac_n "checking if external errno exists""... $ac_c" 1>&6
5215 echo "configure:5216: checking if external errno exists" >&5
5216 if eval "test \"`echo '$''{'cf_cv_have_errno'+set}'`\" = set"; then
5217 echo $ac_n "(cached) $ac_c" 1>&6
5220 cat > conftest.$ac_ext <<EOF
5221 #line 5222 "configure"
5222 #include "confdefs.h"
5231 if { (eval echo configure:5232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5233 eval 'cf_cv_have_'errno'=yes'
5235 echo "configure: failed program was:" >&5
5236 cat conftest.$ac_ext >&5
5238 eval 'cf_cv_have_'errno'=no'
5244 eval 'cf_result=$cf_cv_have_'errno
5245 echo "$ac_t""$cf_result" 1>&6
5247 if test "$cf_result" = yes ; then
5248 eval 'cf_result=HAVE_'errno
5250 cf_result=`echo "$cf_result" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5252 cat >> confdefs.h <<EOF
5253 #define $cf_result 1
5262 echo $ac_n "checking if data-only library module links""... $ac_c" 1>&6
5263 echo "configure:5264: checking if data-only library module links" >&5
5264 if eval "test \"`echo '$''{'cf_cv_link_dataonly'+set}'`\" = set"; then
5265 echo $ac_n "(cached) $ac_c" 1>&6
5269 cat >conftest.$ac_ext <<EOF
5270 #line 5271 "configure"
5271 int testdata[3] = { 123, 456, 789 };
5273 if { (eval echo configure:5274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then
5274 mv conftest.o data.o && \
5275 ( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null
5277 rm -f conftest.$ac_ext data.o
5278 cat >conftest.$ac_ext <<EOF
5279 #line 5280 "configure"
5283 exit(1); /* I'm told this linker is broken */
5285 extern int testdata[3];
5286 return testdata[0] == 123
5287 && testdata[1] == 456
5288 && testdata[2] == 789;
5292 if { (eval echo configure:5293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5293 mv conftest.o func.o && \
5294 ( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
5296 rm -f conftest.$ac_ext func.o
5297 ( eval $ac_cv_prog_RANLIB conftest.a ) 2>&5 >/dev/null
5299 LIBS="conftest.a $LIBS"
5300 if test "$cross_compiling" = yes; then
5301 cf_cv_link_dataonly=unknown
5303 cat > conftest.$ac_ext <<EOF
5304 #line 5305 "configure"
5305 #include "confdefs.h"
5309 extern int testfunc();
5314 if { (eval echo configure:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5316 cf_cv_link_dataonly=yes
5318 echo "configure: failed program was:" >&5
5319 cat conftest.$ac_ext >&5
5321 cf_cv_link_dataonly=no
5330 echo "$ac_t""$cf_cv_link_dataonly" 1>&6
5331 test "$cf_cv_link_dataonly" = no && cat >> confdefs.h <<\EOF
5332 #define BROKEN_LINKER 1
5337 ### Checks for library functions.
5364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5365 echo "configure:5366: checking for $ac_func" >&5
5366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 cat > conftest.$ac_ext <<EOF
5370 #line 5371 "configure"
5371 #include "confdefs.h"
5372 /* System header to define __stub macros and hopefully few prototypes,
5373 which can conflict with char $ac_func(); below. */
5375 /* Override any gcc2 internal prototype to avoid an error. */
5376 /* We use char because int might match the return type of a gcc2
5377 builtin and then its argument prototype would still apply. */
5382 /* The GNU C library defines this for functions which it implements
5383 to always fail with ENOSYS. Some functions are actually named
5384 something starting with __ and the normal name is an alias. */
5385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5393 if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5395 eval "ac_cv_func_$ac_func=yes"
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5400 eval "ac_cv_func_$ac_func=no"
5405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5406 echo "$ac_t""yes" 1>&6
5407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5408 cat >> confdefs.h <<EOF
5409 #define $ac_tr_func 1
5413 echo "$ac_t""no" 1>&6
5417 if test "$with_getcap" = "yes" ; then
5419 echo $ac_n "checking for terminal-capability database functions""... $ac_c" 1>&6
5420 echo "configure:5421: checking for terminal-capability database functions" >&5
5421 if eval "test \"`echo '$''{'cf_cv_cgetent'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5425 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5434 char *db_array = temp;
5435 cgetent(&buf, /* int *, */ &db_array, "vt100");
5436 cgetcap(buf, "tc", '=');
5437 cgetmatch(buf, "tc");
5441 if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5445 echo "configure: failed program was:" >&5
5446 cat conftest.$ac_ext >&5
5454 echo "$ac_t""$cf_cv_cgetent" 1>&6
5455 test "$cf_cv_cgetent" = yes && cat >> confdefs.h <<\EOF
5456 #define HAVE_BSD_CGETENT 1
5463 echo $ac_n "checking for isascii""... $ac_c" 1>&6
5464 echo "configure:5465: checking for isascii" >&5
5465 if eval "test \"`echo '$''{'cf_cv_have_isascii'+set}'`\" = set"; then
5466 echo $ac_n "(cached) $ac_c" 1>&6
5469 cat > conftest.$ac_ext <<EOF
5470 #line 5471 "configure"
5471 #include "confdefs.h"
5474 int x = isascii(' ')
5477 if { (eval echo configure:5478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5479 cf_cv_have_isascii=yes
5481 echo "configure: failed program was:" >&5
5482 cat conftest.$ac_ext >&5
5484 cf_cv_have_isascii=no
5489 echo "$ac_t""$cf_cv_have_isascii" 1>&6
5490 test "$cf_cv_have_isascii" = yes && cat >> confdefs.h <<\EOF
5491 #define HAVE_ISASCII 1
5496 if test "$ac_cv_func_sigaction" = yes; then
5497 echo $ac_n "checking whether sigaction needs _POSIX_SOURCE""... $ac_c" 1>&6
5498 echo "configure:5499: checking whether sigaction needs _POSIX_SOURCE" >&5
5499 cat > conftest.$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5503 #include <sys/types.h>
5506 struct sigaction act
5509 if { (eval echo configure:5510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5513 echo "configure: failed program was:" >&5
5514 cat conftest.$ac_ext >&5
5517 cat > conftest.$ac_ext <<EOF
5518 #line 5519 "configure"
5519 #include "confdefs.h"
5521 #define _POSIX_SOURCE
5522 #include <sys/types.h>
5525 struct sigaction act
5528 if { (eval echo configure:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5531 cat >> confdefs.h <<\EOF
5532 #define SVR4_ACTION 1
5536 echo "configure: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5544 echo "$ac_t""$sigact_bad" 1>&6
5554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5556 echo "configure:5557: checking for $ac_hdr" >&5
5557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5560 cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5566 { (eval echo configure:5567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5568 if test -z "$ac_err"; then
5570 eval "ac_cv_header_$ac_safe=yes"
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5576 eval "ac_cv_header_$ac_safe=no"
5580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5581 echo "$ac_t""yes" 1>&6
5582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5583 cat >> confdefs.h <<EOF
5584 #define $ac_tr_hdr 1
5588 echo "$ac_t""no" 1>&6
5592 if test "$ISC" = yes ; then
5593 for ac_hdr in sys/termio.h
5595 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5596 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5597 echo "configure:5598: checking for $ac_hdr" >&5
5598 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5599 echo $ac_n "(cached) $ac_c" 1>&6
5601 cat > conftest.$ac_ext <<EOF
5602 #line 5603 "configure"
5603 #include "confdefs.h"
5606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5607 { (eval echo configure:5608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5609 if test -z "$ac_err"; then
5611 eval "ac_cv_header_$ac_safe=yes"
5614 echo "configure: failed program was:" >&5
5615 cat conftest.$ac_ext >&5
5617 eval "ac_cv_header_$ac_safe=no"
5621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5622 echo "$ac_t""yes" 1>&6
5623 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5624 cat >> confdefs.h <<EOF
5625 #define $ac_tr_hdr 1
5629 echo "$ac_t""no" 1>&6
5634 if test "$ac_cv_header_termios_h" = yes ; then
5637 termios_bad=dunno ;;
5638 *) termios_bad=maybe ;;
5640 if test "$termios_bad" = maybe ; then
5641 echo $ac_n "checking whether termios.h needs _POSIX_SOURCE""... $ac_c" 1>&6
5642 echo "configure:5643: checking whether termios.h needs _POSIX_SOURCE" >&5
5643 cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5646 #include <termios.h>
5648 struct termios foo; int x = foo.c_iflag
5651 if { (eval echo configure:5652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5655 echo "configure: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5659 cat > conftest.$ac_ext <<EOF
5660 #line 5661 "configure"
5661 #include "confdefs.h"
5663 #define _POSIX_SOURCE
5664 #include <termios.h>
5666 struct termios foo; int x = foo.c_iflag
5669 if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5676 termios_bad=yes cat >> confdefs.h <<\EOF
5677 #define SVR4_TERMIO 1
5685 echo "$ac_t""$termios_bad" 1>&6
5691 echo $ac_n "checking for tcgetattr""... $ac_c" 1>&6
5692 echo "configure:5693: checking for tcgetattr" >&5
5693 if eval "test \"`echo '$''{'cf_cv_have_tcgetattr'+set}'`\" = set"; then
5694 echo $ac_n "(cached) $ac_c" 1>&6
5697 cat > conftest.$ac_ext <<EOF
5698 #line 5699 "configure"
5699 #include "confdefs.h"
5701 #include <sys/types.h>
5702 #ifdef HAVE_UNISTD_H
5705 #ifdef HAVE_TERMIOS_H
5706 #include <termios.h>
5707 #define TTY struct termios
5709 #ifdef HAVE_TERMIO_H
5711 #define TTY struct termio
5721 if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5723 cf_cv_have_tcgetattr=yes
5725 echo "configure: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5728 cf_cv_have_tcgetattr=no
5733 echo "$ac_t""$cf_cv_have_tcgetattr" 1>&6
5734 test "$cf_cv_have_tcgetattr" = yes && cat >> confdefs.h <<\EOF
5735 #define HAVE_TCGETATTR 1
5740 if test "$cross_compiling" = yes ; then
5741 echo "configure: warning: cross compiling: assume setvbuf params not reversed" 1>&2
5743 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
5744 echo "configure:5745: checking whether setvbuf arguments are reversed" >&5
5745 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
5746 echo $ac_n "(cached) $ac_c" 1>&6
5748 if test "$cross_compiling" = yes; then
5749 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5755 /* If setvbuf has the reversed format, exit 0. */
5757 /* This call has the arguments reversed.
5758 A reversed system may check and see that the address of main
5759 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
5760 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
5763 exit(0); /* Non-reversed systems segv here. */
5766 if { (eval echo configure:5767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5768 ac_cv_func_setvbuf_reversed=yes
5770 echo "configure: failed program was:" >&5
5771 cat conftest.$ac_ext >&5
5773 ac_cv_func_setvbuf_reversed=no
5778 rm -f core core.* *.core
5781 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
5782 if test $ac_cv_func_setvbuf_reversed = yes; then
5783 cat >> confdefs.h <<\EOF
5784 #define SETVBUF_REVERSED 1
5790 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5791 echo "configure:5792: checking return type of signal handlers" >&5
5792 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5793 echo $ac_n "(cached) $ac_c" 1>&6
5795 cat > conftest.$ac_ext <<EOF
5796 #line 5797 "configure"
5797 #include "confdefs.h"
5798 #include <sys/types.h>
5804 extern "C" void (*signal (int, void (*)(int)))(int);
5806 void (*signal ()) ();
5813 if { (eval echo configure:5814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5815 ac_cv_type_signal=void
5817 echo "configure: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5820 ac_cv_type_signal=int
5825 echo "$ac_t""$ac_cv_type_signal" 1>&6
5826 cat >> confdefs.h <<EOF
5827 #define RETSIGTYPE $ac_cv_type_signal
5832 echo $ac_n "checking for type sigaction_t""... $ac_c" 1>&6
5833 echo "configure:5834: checking for type sigaction_t" >&5
5834 if eval "test \"`echo '$''{'cf_cv_type_sigaction'+set}'`\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5838 cat > conftest.$ac_ext <<EOF
5839 #line 5840 "configure"
5840 #include "confdefs.h"
5847 if { (eval echo configure:5848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5849 cf_cv_type_sigaction=yes
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5854 cf_cv_type_sigaction=no
5859 echo "$ac_t""$cf_cv_type_sigaction" 1>&6
5860 test "$cf_cv_type_sigaction" = yes && cat >> confdefs.h <<\EOF
5861 #define HAVE_TYPE_SIGACTION 1
5867 echo $ac_n "checking declaration of size-change""... $ac_c" 1>&6
5868 echo "configure:5869: checking declaration of size-change" >&5
5869 if eval "test \"`echo '$''{'cf_cv_sizechange'+set}'`\" = set"; then
5870 echo $ac_n "(cached) $ac_c" 1>&6
5873 cf_cv_sizechange=unknown
5874 cf_save_CFLAGS="$CFLAGS"
5876 for cf_opts in "" "NEED_PTEM_H"
5879 CFLAGS="$cf_save_CFLAGS"
5880 test -n "$cf_opts" && CFLAGS="$CFLAGS -D$cf_opts"
5881 cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5884 #include <sys/types.h>
5885 #ifdef HAVE_TERMIOS_H
5886 #include <termios.h>
5888 #ifdef HAVE_TERMIO_H
5893 /* This is a workaround for SCO: they neglected to define struct winsize in
5894 * termios.h -- it's only in termio.h and ptem.h
5896 #include <sys/stream.h>
5897 #include <sys/ptem.h>
5899 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
5900 #include <sys/ioctl.h>
5906 struct ttysize win; /* FIXME: what system is this? */
5907 int y = win.ts_lines;
5908 int x = win.ts_cols;
5915 no TIOCGSIZE or TIOCGWINSZ
5916 #endif /* TIOCGWINSZ */
5917 #endif /* TIOCGSIZE */
5921 if { (eval echo configure:5922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5923 cf_cv_sizechange=yes
5925 echo "configure: failed program was:" >&5
5926 cat conftest.$ac_ext >&5
5932 CFLAGS="$cf_save_CFLAGS"
5933 if test "$cf_cv_sizechange" = yes ; then
5934 echo "size-change succeeded ($cf_opts)" >&5
5935 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
5942 echo "$ac_t""$cf_cv_sizechange" 1>&6
5943 if test "$cf_cv_sizechange" != no ; then
5944 cat >> confdefs.h <<\EOF
5945 #define HAVE_SIZECHANGE 1
5948 case $cf_cv_sizechange in #(vi
5950 cat >> confdefs.h <<EOF
5951 #define $cf_cv_sizechange 1
5959 echo $ac_n "checking for memmove""... $ac_c" 1>&6
5960 echo "configure:5961: checking for memmove" >&5
5961 if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then
5962 echo $ac_n "(cached) $ac_c" 1>&6
5964 cat > conftest.$ac_ext <<EOF
5965 #line 5966 "configure"
5966 #include "confdefs.h"
5967 /* System header to define __stub macros and hopefully few prototypes,
5968 which can conflict with char memmove(); below. */
5970 /* Override any gcc2 internal prototype to avoid an error. */
5971 /* We use char because int might match the return type of a gcc2
5972 builtin and then its argument prototype would still apply. */
5977 /* The GNU C library defines this for functions which it implements
5978 to always fail with ENOSYS. Some functions are actually named
5979 something starting with __ and the normal name is an alias. */
5980 #if defined (__stub_memmove) || defined (__stub___memmove)
5988 if { (eval echo configure:5989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5990 eval "ac_cv_func_memmove=yes"
5992 echo "configure: failed program was:" >&5
5993 cat conftest.$ac_ext >&5
5995 eval "ac_cv_func_memmove=no"
6000 if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
6001 echo "$ac_t""yes" 1>&6
6004 echo "$ac_t""no" 1>&6
6006 echo $ac_n "checking for bcopy""... $ac_c" 1>&6
6007 echo "configure:6008: checking for bcopy" >&5
6008 if eval "test \"`echo '$''{'ac_cv_func_bcopy'+set}'`\" = set"; then
6009 echo $ac_n "(cached) $ac_c" 1>&6
6011 cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6014 /* System header to define __stub macros and hopefully few prototypes,
6015 which can conflict with char bcopy(); below. */
6017 /* Override any gcc2 internal prototype to avoid an error. */
6018 /* We use char because int might match the return type of a gcc2
6019 builtin and then its argument prototype would still apply. */
6024 /* The GNU C library defines this for functions which it implements
6025 to always fail with ENOSYS. Some functions are actually named
6026 something starting with __ and the normal name is an alias. */
6027 #if defined (__stub_bcopy) || defined (__stub___bcopy)
6035 if { (eval echo configure:6036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6037 eval "ac_cv_func_bcopy=yes"
6039 echo "configure: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6042 eval "ac_cv_func_bcopy=no"
6047 if eval "test \"`echo '$ac_cv_func_'bcopy`\" = yes"; then
6048 echo "$ac_t""yes" 1>&6
6050 echo $ac_n "checking if bcopy does overlapping moves""... $ac_c" 1>&6
6051 echo "configure:6052: checking if bcopy does overlapping moves" >&5
6052 if eval "test \"`echo '$''{'cf_cv_good_bcopy'+set}'`\" = set"; then
6053 echo $ac_n "(cached) $ac_c" 1>&6
6056 if test "$cross_compiling" = yes; then
6057 cf_cv_good_bcopy=unknown
6059 cat > conftest.$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6064 static char data[] = "abcdefghijklmnopqrstuwwxyz";
6066 bcopy(data, temp, sizeof(data));
6067 bcopy(temp+10, temp, 15);
6068 bcopy(temp+5, temp+15, 10);
6069 exit (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
6073 if { (eval echo configure:6074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6075 cf_cv_good_bcopy=yes
6077 echo "configure: failed program was:" >&5
6078 cat conftest.$ac_ext >&5
6088 echo "$ac_t""$cf_cv_good_bcopy" 1>&6
6091 echo "$ac_t""no" 1>&6
6095 if test "$cf_cv_good_bcopy" = yes ; then
6096 cat >> confdefs.h <<\EOF
6097 #define USE_OK_BCOPY 1
6101 cat >> confdefs.h <<\EOF
6102 #define USE_MY_MEMMOVE 1
6110 echo $ac_n "checking if poll really works""... $ac_c" 1>&6
6111 echo "configure:6112: checking if poll really works" >&5
6112 if eval "test \"`echo '$''{'cf_cv_working_poll'+set}'`\" = set"; then
6113 echo $ac_n "(cached) $ac_c" 1>&6
6116 if test "$cross_compiling" = yes; then
6117 cf_cv_working_poll=unknown
6119 cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure"
6121 #include "confdefs.h"
6127 #include <sys/poll.h>
6130 struct pollfd myfds;
6134 myfds.events = POLLIN;
6136 ret = poll(&myfds, 1, 100);
6140 if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6142 cf_cv_working_poll=yes
6144 echo "configure: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6147 cf_cv_working_poll=no
6154 echo "$ac_t""$cf_cv_working_poll" 1>&6
6155 test "$cf_cv_working_poll" = "yes" && cat >> confdefs.h <<\EOF
6156 #define HAVE_WORKING_POLL 1
6161 if test -z "$cf_user_CFLAGS" ; then
6162 CFLAGS=`echo ${CFLAGS} | sed -e 's/-g //' -e 's/-g$//'`
6163 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's/-g //' -e 's/-g$//'`
6167 echo $ac_n "checking for builtin bool type""... $ac_c" 1>&6
6168 echo "configure:6169: checking for builtin bool type" >&5
6169 if eval "test \"`echo '$''{'cf_cv_cc_bool_type'+set}'`\" = set"; then
6170 echo $ac_n "(cached) $ac_c" 1>&6
6173 cat > conftest.$ac_ext <<EOF
6174 #line 6175 "configure"
6175 #include "confdefs.h"
6178 #include <sys/types.h>
6184 if { (eval echo configure:6185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6186 cf_cv_cc_bool_type=1
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6191 cf_cv_cc_bool_type=0
6197 if test "$cf_cv_cc_bool_type" = 1
6198 then echo "$ac_t""yes" 1>&6
6199 else echo "$ac_t""no" 1>&6
6202 if test -n "$CXX" ; then
6204 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6205 ac_cpp='$CXXCPP $CPPFLAGS'
6206 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6207 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6208 cross_compiling=$ac_cv_prog_cxx_cross
6211 if test -n "$GXX" ; then
6212 case $cf_cv_system_name in #(vi
6214 cf_stdcpp_libname=stdcpp
6217 cf_stdcpp_libname=stdc++
6220 echo $ac_n "checking for library $cf_stdcpp_libname""... $ac_c" 1>&6
6221 echo "configure:6222: checking for library $cf_stdcpp_libname" >&5
6222 if eval "test \"`echo '$''{'cf_cv_libstdcpp'+set}'`\" = set"; then
6223 echo $ac_n "(cached) $ac_c" 1>&6
6227 LIBS="$LIBS -l$cf_stdcpp_libname"
6228 cat > conftest.$ac_ext <<EOF
6229 #line 6230 "configure"
6230 #include "confdefs.h"
6232 #include <strstream.h>
6236 strstreambuf foo(buf, sizeof(buf))
6240 if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6244 echo "configure: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6254 echo "$ac_t""$cf_cv_libstdcpp" 1>&6
6255 test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
6258 if test "$GXX" = yes; then
6259 case "`${CXX-g++} --version`" in
6265 cf_cxx_library=unknown
6266 case $cf_cv_system_name in #(vi
6274 if test "$ac_cv_prog_gxx" = yes; then
6275 echo $ac_n "checking for lib$cf_gpp_libname""... $ac_c" 1>&6
6276 echo "configure:6277: checking for lib$cf_gpp_libname" >&5
6278 LIBS="$LIBS -l$cf_gpp_libname"
6279 cat > conftest.$ac_ext <<EOF
6280 #line 6281 "configure"
6281 #include "confdefs.h"
6283 #include <$cf_gpp_libname/builtin.h>
6286 two_arg_error_handler_t foo2 = lib_error_handler
6289 if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6292 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
6293 if test "$cf_gpp_libname" = cpp ; then
6294 cat >> confdefs.h <<\EOF
6295 #define HAVE_GPP_BUILTIN_H 1
6299 cat >> confdefs.h <<\EOF
6300 #define HAVE_GXX_BUILTIN_H 1
6305 echo "configure: failed program was:" >&5
6306 cat conftest.$ac_ext >&5
6308 cat > conftest.$ac_ext <<EOF
6309 #line 6310 "configure"
6310 #include "confdefs.h"
6312 #include <builtin.h>
6315 two_arg_error_handler_t foo2 = lib_error_handler
6318 if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6321 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
6322 cat >> confdefs.h <<\EOF
6323 #define HAVE_BUILTIN_H 1
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6336 echo "$ac_t""$cf_cxx_library" 1>&6
6347 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6348 echo "configure:6349: checking how to run the C++ preprocessor" >&5
6349 if test -z "$CXXCPP"; then
6350 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6354 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6355 ac_cpp='$CXXCPP $CPPFLAGS'
6356 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6357 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6358 cross_compiling=$ac_cv_prog_cxx_cross
6359 CXXCPP="${CXX-g++} -E"
6360 cat > conftest.$ac_ext <<EOF
6361 #line 6362 "configure"
6362 #include "confdefs.h"
6365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6366 { (eval echo configure:6367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6368 if test -z "$ac_err"; then
6372 echo "configure: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6378 ac_cv_prog_CXXCPP="$CXXCPP"
6380 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6381 ac_cpp='$CXXCPP $CPPFLAGS'
6382 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6383 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6384 cross_compiling=$ac_cv_prog_cxx_cross
6387 CXXCPP="$ac_cv_prog_CXXCPP"
6388 echo "$ac_t""$CXXCPP" 1>&6
6390 for ac_hdr in typeinfo
6392 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6394 echo "configure:6395: checking for $ac_hdr" >&5
6395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6396 echo $ac_n "(cached) $ac_c" 1>&6
6398 cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure"
6400 #include "confdefs.h"
6403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6404 { (eval echo configure:6405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6406 if test -z "$ac_err"; then
6408 eval "ac_cv_header_$ac_safe=yes"
6411 echo "configure: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6414 eval "ac_cv_header_$ac_safe=no"
6418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6419 echo "$ac_t""yes" 1>&6
6420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6421 cat >> confdefs.h <<EOF
6422 #define $ac_tr_hdr 1
6426 echo "$ac_t""no" 1>&6
6431 echo $ac_n "checking for builtin bool type""... $ac_c" 1>&6
6432 echo "configure:6433: checking for builtin bool type" >&5
6433 if eval "test \"`echo '$''{'cf_cv_builtin_bool'+set}'`\" = set"; then
6434 echo $ac_n "(cached) $ac_c" 1>&6
6437 cat > conftest.$ac_ext <<EOF
6438 #line 6439 "configure"
6439 #include "confdefs.h"
6442 #include <sys/types.h>
6448 if { (eval echo configure:6449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6450 cf_cv_builtin_bool=1
6452 echo "configure: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6455 cf_cv_builtin_bool=0
6461 if test "$cf_cv_builtin_bool" = 1
6462 then echo "$ac_t""yes" 1>&6
6463 else echo "$ac_t""no" 1>&6
6467 echo $ac_n "checking for size of bool""... $ac_c" 1>&6
6468 echo "configure:6469: checking for size of bool" >&5
6469 if eval "test \"`echo '$''{'cf_cv_type_of_bool'+set}'`\" = set"; then
6470 echo $ac_n "(cached) $ac_c" 1>&6
6474 if test "$cross_compiling" = yes; then
6475 cf_cv_type_of_bool=unknown
6477 cat > conftest.$ac_ext <<EOF
6478 #line 6479 "configure"
6479 #include "confdefs.h"
6481 extern "C" void exit(int);
6486 #ifdef HAVE_GXX_BUILTIN_H
6487 #include <g++/builtin.h>
6488 #elif HAVE_GPP_BUILTIN_H
6489 #include <gpp/builtin.h>
6490 #elif HAVE_BUILTIN_H
6491 #include <builtin.h>
6495 FILE *fp = fopen("cf_test.out", "w");
6498 if ((bool)(-x) >= 0)
6499 fputs("unsigned ", fp);
6500 if (sizeof(x) == sizeof(int)) fputs("int", fp);
6501 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
6502 else if (sizeof(x) == sizeof(short))fputs("short",fp);
6503 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
6510 if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6512 cf_cv_type_of_bool=`cat cf_test.out`
6514 echo "configure: failed program was:" >&5
6515 cat conftest.$ac_ext >&5
6517 cf_cv_type_of_bool=unknown
6526 echo "$ac_t""$cf_cv_type_of_bool" 1>&6
6527 if test "$cf_cv_type_of_bool" = unknown ; then
6528 echo "configure: warning: Assuming unsigned for type of bool" 1>&2
6529 cf_cv_type_of_bool=unsigned
6533 echo $ac_n "checking for special defines needed for etip.h""... $ac_c" 1>&6
6534 echo "configure:6535: checking for special defines needed for etip.h" >&5
6535 cf_save_CXXFLAGS="$CXXFLAGS"
6537 for cf_math in "" MATH_H
6539 for cf_excp in "" MATH_EXCEPTION
6541 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu"
6542 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
6543 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
6544 cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6548 #include <etip.h.in>
6554 if { (eval echo configure:6555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6557 test -n "$cf_math" && cat >> confdefs.h <<EOF
6558 #define ETIP_NEEDS_${cf_math} 1
6561 test -n "$cf_excp" && cat >> confdefs.h <<EOF
6562 #define ETIP_NEEDS_${cf_excp} 1
6565 cf_result="$cf_math $cf_excp"
6569 echo "configure: failed program was:" >&5
6570 cat conftest.$ac_ext >&5
6575 echo "$ac_t""$cf_result" 1>&6
6576 CXXFLAGS="$cf_save_CXXFLAGS"
6579 if test "$CXX" = yes ; then
6580 echo $ac_n "checking if $CXX accepts parameter initialization""... $ac_c" 1>&6
6581 echo "configure:6582: checking if $CXX accepts parameter initialization" >&5
6582 if eval "test \"`echo '$''{'cf_cv_cpp_param_init'+set}'`\" = set"; then
6583 echo $ac_n "(cached) $ac_c" 1>&6
6587 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6588 ac_cpp='$CXXCPP $CPPFLAGS'
6589 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6590 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6591 cross_compiling=$ac_cv_prog_cxx_cross
6593 if test "$cross_compiling" = yes; then
6594 cf_cv_cpp_param_init=unknown
6596 cat > conftest.$ac_ext <<EOF
6597 #line 6598 "configure"
6598 #include "confdefs.h"
6600 extern "C" void exit(int);
6611 TEST::TEST(int x = 1) // some compilers do not like second initializer
6618 if { (eval echo configure:6619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6620 cf_cv_cpp_param_init=yes
6622 echo "configure: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6625 cf_cv_cpp_param_init=no
6633 echo "$ac_t""$cf_cv_cpp_param_init" 1>&6
6635 test "$cf_cv_cpp_param_init" = yes && cat >> confdefs.h <<\EOF
6636 #define CPP_HAS_PARAM_INIT 1
6640 case $cf_cv_system_name in #(vi
6642 CXXLDFLAGS="-u main"
6648 cf_cv_builtin_bool=1
6650 # Just because we are not configuring against C++ right now does not
6651 # mean that a user will not want to use C++. Some distributors disable
6652 # the C++ portion of this configuration as a shortcut (or just to avoid
6653 # compiling the demo in the c++ directory). So we need a reasonable
6654 # default for the 'bool' type.
6656 # Caveat: since the storage of the bool type is not standardized, it
6659 echo $ac_n "checking for fallback type of bool""... $ac_c" 1>&6
6660 echo "configure:6661: checking for fallback type of bool" >&5
6661 case "$host_cpu" in #(vi
6662 i?86) cf_cv_type_of_bool=char ;; #(vi
6663 *) cf_cv_type_of_bool=int ;;
6665 echo "$ac_t""$cf_cv_type_of_bool" 1>&6
6671 if test "$cf_with_ada" != "no" ; then
6672 cf_ada_make=gnatmake
6673 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
6674 set dummy $cf_ada_make; ac_word=$2
6675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6676 echo "configure:6677: checking for $ac_word" >&5
6677 if eval "test \"`echo '$''{'ac_cv_prog_gnat_exists'+set}'`\" = set"; then
6678 echo $ac_n "(cached) $ac_c" 1>&6
6680 if test -n "$gnat_exists"; then
6681 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
6683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6685 for ac_dir in $ac_dummy; do
6686 test -z "$ac_dir" && ac_dir=.
6687 if test -f $ac_dir/$ac_word; then
6688 ac_cv_prog_gnat_exists="yes"
6693 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
6696 gnat_exists="$ac_cv_prog_gnat_exists"
6697 if test -n "$gnat_exists"; then
6698 echo "$ac_t""$gnat_exists" 1>&6
6700 echo "$ac_t""no" 1>&6
6703 if test "$ac_cv_prog_gnat_exists" = no; then
6707 cf_cv_gnat_version=`$cf_ada_make -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
6708 sed -e 's/[^0-9 \.]//g' | $AWK '{print $1;}'`
6709 case $cf_cv_gnat_version in
6710 3.1[1-9]*|3.[2-9]*|[4-9].*)
6711 cf_cv_prog_gnat_correct=yes
6713 *) echo Unsupported GNAT version $cf_cv_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
6714 cf_cv_prog_gnat_correct=no
6717 case $cf_cv_gnat_version in
6719 cf_compile_generics=generics
6720 cf_generic_objects="\$(GENOBJS)"
6722 *) cf_compile_generics=
6727 # Extract the first word of "m4", so it can be a program name with args.
6728 set dummy m4; ac_word=$2
6729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6730 echo "configure:6731: checking for $ac_word" >&5
6731 if eval "test \"`echo '$''{'ac_cv_prog_M4_exists'+set}'`\" = set"; then
6732 echo $ac_n "(cached) $ac_c" 1>&6
6734 if test -n "$M4_exists"; then
6735 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
6737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6739 for ac_dir in $ac_dummy; do
6740 test -z "$ac_dir" && ac_dir=.
6741 if test -f $ac_dir/$ac_word; then
6742 ac_cv_prog_M4_exists="yes"
6747 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
6750 M4_exists="$ac_cv_prog_M4_exists"
6751 if test -n "$M4_exists"; then
6752 echo "$ac_t""$M4_exists" 1>&6
6754 echo "$ac_t""no" 1>&6
6757 if test "$ac_cv_prog_M4_exists" = no; then
6758 cf_cv_prog_gnat_correct=no
6759 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
6761 if test "$cf_cv_prog_gnat_correct" = yes; then
6762 echo $ac_n "checking if GNAT works""... $ac_c" 1>&6
6763 echo "configure:6764: checking if GNAT works" >&5
6766 cat >>conftest.ads <<CF_EOF
6769 cat >>conftest.adb <<CF_EOF
6772 procedure conftest is
6774 Text_IO.Put ("Hello World");
6776 GNAT.OS_Lib.OS_Exit (0);
6779 if ( $cf_ada_make conftest 1>&5 2>&1 ) ; then
6780 if ( ./conftest 1>&5 2>&1 ) ; then
6781 cf_cv_prog_gnat_correct=yes
6783 cf_cv_prog_gnat_correct=no
6786 cf_cv_prog_gnat_correct=no
6790 echo "$ac_t""$cf_cv_prog_gnat_correct" 1>&6
6793 if test "$cf_cv_prog_gnat_correct" = yes; then
6794 ADAFLAGS="-O3 -gnatpn $ADAFLAGS"
6797 # Check whether --with-ada-compiler or --without-ada-compiler was given.
6798 if test "${with_ada_compiler+set}" = set; then
6799 withval="$with_ada_compiler"
6800 cf_ada_compiler=$withval
6802 cf_ada_compiler=gnatmake
6806 cf_ada_package=terminal_interface
6816 # Check whether --with-ada-include or --without-ada-include was given.
6817 if test "${with_ada_include+set}" = set; then
6818 withval="$with_ada_include"
6821 withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
6824 case ".$withval" in #(vi
6827 .a-zA-Z:\\/*) #(vi OS/2 EMX
6830 eval withval="$withval"
6831 case ".$withval" in #(vi
6833 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@`
6838 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@`
6841 { echo "configure: error: expected a pathname" 1>&2; exit 1; }
6845 eval ADA_INCLUDE="$withval"
6850 # Check whether --with-ada-objects or --without-ada-objects was given.
6851 if test "${with_ada_objects+set}" = set; then
6852 withval="$with_ada_objects"
6855 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
6858 case ".$withval" in #(vi
6861 .a-zA-Z:\\/*) #(vi OS/2 EMX
6864 eval withval="$withval"
6865 case ".$withval" in #(vi
6867 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@`
6872 withval=`echo $withval | sed -e s@NONE@$ac_default_prefix@`
6875 { echo "configure: error: expected a pathname" 1>&2; exit 1; }
6879 eval ADA_OBJECTS="$withval"
6886 ### It's not possible to appease gcc 2.6.3's conversion-warnings if we're
6887 ### using a 'char' for bools. gcc 2.7.0's conversion-warnings are broken too
6888 ### badly to consider using for development purposes, but 2.5.8 is okay.
6889 if test -n "$with_warnings"; then
6890 if test "$GCC" = yes; then
6891 case "`$CC --version`" in
6893 if test "$cf_cv_type_of_bool" != "char"; then
6894 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion"
6898 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion"
6904 ### Construct the library-subsets, if any, from this set of keywords:
6905 ### none, base, ext_funcs, termlib.
6906 echo $ac_n "checking for library subsets""... $ac_c" 1>&6
6907 echo "configure:6908: checking for library subsets" >&5
6908 if test "$with_termlib" = yes ; then
6909 LIB_SUBSETS="termlib "
6911 LIB_SUBSETS="termlib+"
6913 LIB_SUBSETS="${LIB_SUBSETS}base"
6914 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
6915 echo "$ac_t""$LIB_SUBSETS" 1>&6
6924 ### Construct the list of include-directories to be generated
6926 CPPFLAGS="$CPPFLAGS -I. -I../include"
6927 if test "$srcdir" != "."; then
6928 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/../include"
6930 if test "$GCC" != yes; then
6931 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
6932 elif test "$includedir" != "/usr/include"; then
6933 if test "$includedir" = '${prefix}/include' ; then
6934 if test $prefix != /usr ; then
6935 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
6938 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
6944 ACPPFLAGS="$ACPPFLAGS -I. -I../../include"
6945 if test "$srcdir" != "."; then
6946 ACPPFLAGS="$ACPPFLAGS -I\$(srcdir)/../../include"
6948 if test "$GCC" != yes; then
6949 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
6950 elif test "$includedir" != "/usr/include"; then
6951 if test "$includedir" = '${prefix}/include' ; then
6952 if test $prefix != /usr ; then
6953 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
6956 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
6962 ### Build up pieces for makefile rules
6963 echo $ac_n "checking default library suffix""... $ac_c" 1>&6
6964 echo "configure:6965: checking default library suffix" >&5
6966 case $DFT_LWR_MODEL in
6967 normal) DFT_ARG_SUFFIX='' ;;
6968 debug) DFT_ARG_SUFFIX='_g' ;;
6969 profile) DFT_ARG_SUFFIX='_p' ;;
6970 shared) DFT_ARG_SUFFIX='' ;;
6972 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
6973 echo "$ac_t""$DFT_ARG_SUFFIX" 1>&6
6975 echo $ac_n "checking default library-dependency suffix""... $ac_c" 1>&6
6976 echo "configure:6977: checking default library-dependency suffix" >&5
6979 case $DFT_LWR_MODEL in
6980 normal) DFT_DEP_SUFFIX='.a' ;;
6981 debug) DFT_DEP_SUFFIX='_g.a' ;;
6982 profile) DFT_DEP_SUFFIX='_p.a' ;;
6984 case $cf_cv_system_name in
6985 hpux*) DFT_DEP_SUFFIX='.sl' ;;
6986 *) DFT_DEP_SUFFIX='.so' ;;
6989 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
6990 echo "$ac_t""$DFT_DEP_SUFFIX" 1>&6
6992 echo $ac_n "checking default object directory""... $ac_c" 1>&6
6993 echo "configure:6994: checking default object directory" >&5
6995 case $DFT_LWR_MODEL in
6996 normal) DFT_OBJ_SUBDIR='objects' ;;
6997 debug) DFT_OBJ_SUBDIR='obj_g' ;;
6998 profile) DFT_OBJ_SUBDIR='obj_p' ;;
6999 shared) DFT_OBJ_SUBDIR='obj_s' ;;
7001 echo "$ac_t""$DFT_OBJ_SUBDIR" 1>&6
7003 TINFO_LIST="$SHLIB_LIST"
7004 test "$with_termlib" = yes && SHLIB_LIST="$SHLIB_LIST -ltinfo${LIB_SUFFIX}"
7006 echo $ac_n "checking where we will install curses.h""... $ac_c" 1>&6
7007 echo "configure:7008: checking where we will install curses.h" >&5
7008 test "$with_overwrite" = no && \
7009 test "x$includedir" = 'x${prefix}/include' && \
7010 includedir='$(prefix)/include/ncurses'${LIB_SUFFIX}
7011 echo "$ac_t""$includedir" 1>&6
7017 ### Set up low-level terminfo dependencies for makefiles. Note that we
7018 ### could override this.
7019 if test "$with_termlib" = yes ; then
7020 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_NAME}${DFT_DEP_SUFFIX}"
7021 TEST_ARGS="-l${TINFO_NAME}${DFT_ARG_SUFFIX}"
7023 PROG_DEPS="$TEST_DEPS"
7024 PROG_ARGS="$TEST_ARGS"
7026 ### Construct the list of subdirectories for which we'll customize makefiles
7027 ### with the appropriate compile-rules.
7030 echo $ac_n "checking for src modules""... $ac_c" 1>&6
7031 echo "configure:7032: checking for src modules" >&5
7033 # dependencies and linker-arguments for test-programs
7034 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
7035 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
7037 # dependencies and linker-arguments for utility-programs
7038 PROG_ARGS="$TEST_ARGS"
7041 for cf_dir in $modules_to_build
7043 if test -f $srcdir/$cf_dir/modules; then
7045 # We may/may not have tack in the distribution, though the
7047 if test $cf_dir = tack ; then
7048 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
7053 if test -z "$cf_cv_src_modules"; then
7054 cf_cv_src_modules=$cf_dir
7056 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
7059 # Make the ncurses_cfg.h file record the library interface files as
7060 # well. These are header files that are the same name as their
7061 # directory. Ncurses is the only library that does not follow
7063 if test $cf_dir = tack ; then
7065 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
7067 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7069 cat >> confdefs.h <<EOF
7070 #define HAVE_${cf_have_include}_H 1
7073 cat >> confdefs.h <<EOF
7074 #define HAVE_LIB${cf_have_include} 1
7077 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
7078 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
7082 echo "$ac_t""$cf_cv_src_modules" 1>&6
7083 TEST_ARGS="-L${LIB_DIR} -L\$(libdir) $TEST_ARGS"
7087 PROG_ARGS="-L${LIB_DIR} -L\$(libdir) $PROG_ARGS"
7090 SRC_SUBDIRS="man include"
7091 for cf_dir in $cf_cv_src_modules
7093 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
7095 SRC_SUBDIRS="$SRC_SUBDIRS misc test"
7096 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
7099 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
7100 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
7101 ADA_SUBDIRS="gen src samples"
7105 for cf_dir in $SRC_SUBDIRS
7107 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
7110 if test -n "$ADA_SUBDIRS"; then
7111 for cf_dir in $ADA_SUBDIRS
7113 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
7120 for cf_item in $cf_list_models
7124 normal) cf_subdir='objects' ;;
7125 debug) cf_subdir='obj_g' ;;
7126 profile) cf_subdir='obj_p' ;;
7127 shared) cf_subdir='obj_s' ;;
7130 DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
7132 for cf_dir in $DIRS_TO_MAKE
7134 test ! -d $cf_dir && mkdir $cf_dir
7139 ### Now that we're done running tests, add the compiler-warnings, if any
7140 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
7142 ################################################################################
7144 cat > confcache <<\EOF
7145 # This file is a shell script that caches the results of configure
7146 # tests run on this system so they can be shared between configure
7147 # scripts and configure runs. It is not useful on other systems.
7148 # If it contains results you don't want to keep, you may remove or edit it.
7150 # By default, configure uses ./config.cache as the cache file,
7151 # creating it if it does not exist already. You can give configure
7152 # the --cache-file=FILE option to use a different cache file; that is
7153 # what configure does when it calls configure scripts in
7154 # subdirectories, so they share the cache.
7155 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7156 # config.status only pays attention to the cache file if you give it the
7157 # --recheck option to rerun configure.
7160 # The following way of writing the cache mishandles newlines in values,
7161 # but we know of no workaround that is simple, portable, and efficient.
7162 # So, don't put newlines in cache variables' values.
7163 # Ultrix sh set writes to stderr and can't be redirected directly,
7164 # and sets the high bit in the cache file unless we assign to the vars.
7166 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7168 # `set' does not quote correctly, so add quotes (double-quote substitution
7169 # turns \\\\ into \\, and sed turns \\ into \).
7171 -e "s/'/'\\\\''/g" \
7172 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7175 # `set' quotes correctly as required by POSIX, so do not add quotes.
7176 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7179 if cmp -s $cache_file confcache; then
7182 if test -w $cache_file; then
7183 echo "updating cache $cache_file"
7184 cat confcache > $cache_file
7186 echo "not updating unwritable cache $cache_file"
7191 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7194 # Let make expand exec_prefix.
7195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7197 # Any assignment to VPATH causes Sun make to only execute
7198 # the first set of double-colon rules, so remove it if not needed.
7199 # If there is a colon in the path, we need to keep it.
7200 if test "x$srcdir" = x.; then
7201 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7204 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7206 DEFS=-DHAVE_CONFIG_H
7208 # Without the "./", some shells look in PATH for config.status.
7209 : ${CONFIG_STATUS=./config.status}
7211 echo creating $CONFIG_STATUS
7212 rm -f $CONFIG_STATUS
7213 cat > $CONFIG_STATUS <<EOF
7215 # Generated automatically by configure.
7216 # Run this file to recreate the current configuration.
7217 # This directory was configured as follows,
7218 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7220 # $0 $ac_configure_args
7222 # Compiler output produced by configure, useful for debugging
7223 # configure, is in ./config.log if it exists.
7225 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7228 case "\$ac_option" in
7229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7230 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7231 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7232 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7233 echo "$CONFIG_STATUS generated by autoconf version 2.13.20000819"
7235 -help | --help | --hel | --he | --h)
7236 echo "\$ac_cs_usage"; exit 0 ;;
7237 *) echo "\$ac_cs_usage"; exit 1 ;;
7241 ac_given_srcdir=$srcdir
7242 ac_given_INSTALL="$INSTALL"
7244 trap 'rm -fr `echo "\
7245 include/MKterm.h.awk \
7249 misc/run_tic.sh:misc/run_tic.in \
7251 Makefile include/ncurses_cfg.h:include/ncurses_cfg.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7253 cat >> $CONFIG_STATUS <<EOF
7255 # Protect against being on the right side of a sed subst in config.status.
7256 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7257 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7261 s%@CFLAGS@%$CFLAGS%g
7262 s%@CPPFLAGS@%$CPPFLAGS%g
7263 s%@CXXFLAGS@%$CXXFLAGS%g
7264 s%@FFLAGS@%$FFLAGS%g
7266 s%@LDFLAGS@%$LDFLAGS%g
7268 s%@exec_prefix@%$exec_prefix%g
7269 s%@prefix@%$prefix%g
7270 s%@program_transform_name@%$program_transform_name%g
7271 s%@bindir@%$bindir%g
7272 s%@sbindir@%$sbindir%g
7273 s%@libexecdir@%$libexecdir%g
7274 s%@datadir@%$datadir%g
7275 s%@sysconfdir@%$sysconfdir%g
7276 s%@sharedstatedir@%$sharedstatedir%g
7277 s%@localstatedir@%$localstatedir%g
7278 s%@libdir@%$libdir%g
7279 s%@includedir@%$includedir%g
7280 s%@oldincludedir@%$oldincludedir%g
7281 s%@infodir@%$infodir%g
7282 s%@mandir@%$mandir%g
7283 s%@NCURSES_MAJOR@%$NCURSES_MAJOR%g
7284 s%@NCURSES_MINOR@%$NCURSES_MINOR%g
7285 s%@NCURSES_PATCH@%$NCURSES_PATCH%g
7286 s%@cf_cv_rel_version@%$cf_cv_rel_version%g
7287 s%@cf_cv_abi_version@%$cf_cv_abi_version%g
7288 s%@cf_cv_cc_bool_type@%$cf_cv_cc_bool_type%g
7289 s%@cf_cv_builtin_bool@%$cf_cv_builtin_bool%g
7290 s%@cf_cv_type_of_bool@%$cf_cv_type_of_bool%g
7292 s%@host_alias@%$host_alias%g
7293 s%@host_cpu@%$host_cpu%g
7294 s%@host_vendor@%$host_vendor%g
7295 s%@host_os@%$host_os%g
7296 s%@target@%$target%g
7297 s%@target_alias@%$target_alias%g
7298 s%@target_cpu@%$target_cpu%g
7299 s%@target_vendor@%$target_vendor%g
7300 s%@target_os@%$target_os%g
7302 s%@build_alias@%$build_alias%g
7303 s%@build_cpu@%$build_cpu%g
7304 s%@build_vendor@%$build_vendor%g
7305 s%@build_os@%$build_os%g
7307 s%@BUILD_CC@%$BUILD_CC%g
7309 s%@PROG_EXT@%$PROG_EXT%g
7310 s%@LDCONFIG@%$LDCONFIG%g
7313 s%@SET_MAKE@%$SET_MAKE%g
7314 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7315 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7316 s%@INSTALL_DATA@%$INSTALL_DATA%g
7318 s%@RANLIB@%$RANLIB%g
7319 s%@MAKE_LOWER_TAGS@%$MAKE_LOWER_TAGS%g
7320 s%@MAKE_UPPER_TAGS@%$MAKE_UPPER_TAGS%g
7323 s%@LINT_OPTS@%$LINT_OPTS%g
7326 s%@AR_OPTS@%$AR_OPTS%g
7327 s%@cf_cv_makeflags@%$cf_cv_makeflags%g
7328 s%@DESTDIR@%$DESTDIR%g
7329 s%@cf_list_models@%$cf_list_models%g
7330 s%@DFT_LWR_MODEL@%$DFT_LWR_MODEL%g
7331 s%@DFT_UPR_MODEL@%$DFT_UPR_MODEL%g
7332 s%@TINFO_NAME@%$TINFO_NAME%g
7333 s%@LIB_NAME@%$LIB_NAME%g
7334 s%@LIB_PREFIX@%$LIB_PREFIX%g
7335 s%@LIB_SUFFIX@%$LIB_SUFFIX%g
7336 s%@CC_G_OPT@%$CC_G_OPT%g
7337 s%@CXX_G_OPT@%$CXX_G_OPT%g
7338 s%@LD_MODEL@%$LD_MODEL%g
7339 s%@CC_SHARED_OPTS@%$CC_SHARED_OPTS%g
7340 s%@LD_SHARED_OPTS@%$LD_SHARED_OPTS%g
7341 s%@MK_SHARED_LIB@%$MK_SHARED_LIB%g
7342 s%@LINK_PROGS@%$LINK_PROGS%g
7343 s%@LINK_TESTS@%$LINK_TESTS%g
7344 s%@EXTRA_LDFLAGS@%$EXTRA_LDFLAGS%g
7345 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
7346 s%@LOCAL_LDFLAGS2@%$LOCAL_LDFLAGS2%g
7347 s%@INSTALL_LIB@%$INSTALL_LIB%g
7348 s%@TERMINFO_SRC@%$TERMINFO_SRC%g
7349 s%@FALLBACK_LIST@%$FALLBACK_LIST%g
7350 s%@TERMINFO_DIRS@%$TERMINFO_DIRS%g
7351 s%@TERMINFO@%$TERMINFO%g
7352 s%@NCURSES_CONST@%$NCURSES_CONST%g
7353 s%@NCURSES_XNAMES@%$NCURSES_XNAMES%g
7354 s%@ECHO_LINK@%$ECHO_LINK%g
7355 s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g
7356 s%@MATH_LIB@%$MATH_LIB%g
7357 s%@cf_cv_typeof_chtype@%$cf_cv_typeof_chtype%g
7358 s%@cf_cv_1UL@%$cf_cv_1UL%g
7359 s%@cf_cv_shift_limit@%$cf_cv_shift_limit%g
7360 s%@cf_cv_widec_shift@%$cf_cv_widec_shift%g
7361 s%@CXXCPP@%$CXXCPP%g
7362 s%@CXXLDFLAGS@%$CXXLDFLAGS%g
7363 s%@CXXLIBS@%$CXXLIBS%g
7364 s%@gnat_exists@%$gnat_exists%g
7365 s%@M4_exists@%$M4_exists%g
7366 s%@cf_ada_make@%$cf_ada_make%g
7367 s%@cf_ada_compiler@%$cf_ada_compiler%g
7368 s%@cf_ada_package@%$cf_ada_package%g
7369 s%@ADAFLAGS@%$ADAFLAGS%g
7370 s%@cf_compile_generics@%$cf_compile_generics%g
7371 s%@cf_generic_objects@%$cf_generic_objects%g
7372 s%@ADA_INCLUDE@%$ADA_INCLUDE%g
7373 s%@ADA_OBJECTS@%$ADA_OBJECTS%g
7374 s%@ACPPFLAGS@%$ACPPFLAGS%g
7375 s%@DFT_ARG_SUFFIX@%$DFT_ARG_SUFFIX%g
7376 s%@DFT_DEP_SUFFIX@%$DFT_DEP_SUFFIX%g
7377 s%@DFT_OBJ_SUBDIR@%$DFT_OBJ_SUBDIR%g
7378 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
7379 s%@TINFO_LIST@%$TINFO_LIST%g
7380 s%@SHLIB_LIST@%$SHLIB_LIST%g
7381 s%@TEST_DEPS@%$TEST_DEPS%g
7382 s%@TEST_ARGS@%$TEST_ARGS%g
7383 s%@PROG_ARGS@%$PROG_ARGS%g
7384 s%@ADA_SUBDIRS@%$ADA_SUBDIRS%g
7385 s%@DIRS_TO_MAKE@%$DIRS_TO_MAKE%g
7390 cat >> $CONFIG_STATUS <<\EOF
7392 # Split the substitutions into bite-sized pieces for seds with
7393 # small command number limits, like on Digital OSF/1 and HP-UX.
7394 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7395 ac_file=1 # Number of current file.
7396 ac_beg=1 # First line for current file.
7397 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7400 while $ac_more_lines; do
7401 if test $ac_beg -gt 1; then
7402 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7404 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7406 if test ! -s conftest.s$ac_file; then
7408 rm -f conftest.s$ac_file
7410 if test -z "$ac_sed_cmds"; then
7411 ac_sed_cmds="sed -f conftest.s$ac_file"
7413 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7415 ac_file=`expr $ac_file + 1`
7417 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7420 if test -z "$ac_sed_cmds"; then
7425 cat >> $CONFIG_STATUS <<EOF
7427 CONFIG_FILES=\${CONFIG_FILES-"\
7428 include/MKterm.h.awk \
7432 misc/run_tic.sh:misc/run_tic.in \
7436 cat >> $CONFIG_STATUS <<\EOF
7437 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7438 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7440 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7441 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7442 *) ac_file_in="${ac_file}.in" ;;
7445 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7447 # Remove last slash and all that follows it. Not all systems have dirname.
7448 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7449 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7450 # The file is in a subdirectory.
7451 test ! -d "$ac_dir" && mkdir "$ac_dir"
7452 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7453 # A "../" for each directory in $ac_dir_suffix.
7454 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7456 ac_dir_suffix= ac_dots=
7459 case "$ac_given_srcdir" in
7461 if test -z "$ac_dots"; then top_srcdir=.
7462 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7463 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7465 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7466 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7469 case "$ac_given_INSTALL" in
7470 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7471 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7474 echo creating "$ac_file"
7476 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7478 *Makefile*) ac_comsub="1i\\
7479 # $configure_input" ;;
7483 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7485 s%@configure_input@%$configure_input%g
7486 s%@srcdir@%$srcdir%g
7487 s%@top_srcdir@%$top_srcdir%g
7488 s%@INSTALL@%$INSTALL%g
7489 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7493 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7494 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7496 # ac_d sets the value in "#define NAME VALUE" lines.
7497 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7498 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7501 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7502 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7503 ac_uB='\([ ]\)%\1#\2define\3'
7506 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7507 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7508 ac_eB='$%\1#\2define\3'
7512 if test "${CONFIG_HEADERS+set}" != set; then
7514 cat >> $CONFIG_STATUS <<EOF
7515 CONFIG_HEADERS="include/ncurses_cfg.h:include/ncurses_cfg.hin"
7517 cat >> $CONFIG_STATUS <<\EOF
7519 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7520 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7522 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7523 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7524 *) ac_file_in="${ac_file}.in" ;;
7527 echo creating $ac_file
7529 rm -f conftest.frag conftest.in conftest.out
7530 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7531 cat $ac_file_inputs > conftest.in
7536 # Transform confdefs.h into a list of #define's. We won't use it as a sed
7537 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
7538 # be either 'cat' or 'sort'.
7539 sort confdefs.h >conftest.vals
7541 # Break up conftest.vals because some shells have a limit on
7542 # the size of here documents, and old seds have small limits too.
7545 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
7548 ac_lines=`grep -c . conftest.vals`
7549 # grep -c gives empty output for an empty file on some AIX systems.
7550 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7551 # Write chunks of a limited-size here document to conftest.frag.
7552 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
7553 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7554 echo 'CEOF' >> $CONFIG_STATUS
7555 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7557 mv conftest.tail conftest.vals
7561 # Run sed to substitute the contents of conftest.frag into conftest.in at the
7563 echo ' cat >> conftest.edit <<CEOF
7564 /@DEFS@/r conftest.frag
7567 sed -f conftest.edit conftest.in > conftest.out
7569 mv conftest.out conftest.in
7570 rm -f conftest.edit conftest.frag
7574 cat >> $CONFIG_STATUS <<\EOF
7575 rm -f conftest.frag conftest.h
7576 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7577 cat conftest.in >> conftest.h
7579 if cmp -s $ac_file conftest.h 2>/dev/null; then
7580 echo "$ac_file is unchanged"
7583 # Remove last slash and all that follows it. Not all systems have dirname.
7584 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7585 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7586 # The file is in a subdirectory.
7587 test ! -d "$ac_dir" && mkdir "$ac_dir"
7590 mv conftest.h $ac_file
7595 cat >> $CONFIG_STATUS <<EOF
7596 # Extra initialization commands, if any
7598 ### Special initialization commands, used to pass information from the
7599 ### configuration-run into config.status
7602 CF_LIST_MODELS="$cf_list_models"
7603 DFT_LWR_MODEL="$DFT_LWR_MODEL"
7604 LDCONFIG="$LDCONFIG"
7605 LIB_NAME="$LIB_NAME"
7606 LIB_SUFFIX="$LIB_SUFFIX"
7607 LIB_SUBSETS="$LIB_SUBSETS"
7608 LIB_TRACING="$LIB_TRACING"
7609 SRC_SUBDIRS="$SRC_SUBDIRS"
7610 TERMINFO="$TERMINFO"
7611 TINFO_NAME="$TINFO_NAME"
7612 WITH_ECHO="$with_echo"
7613 WITH_OVERWRITE="$with_overwrite"
7614 cf_cv_abi_version="$cf_cv_abi_version"
7615 cf_cv_do_symlinks="$cf_cv_do_symlinks"
7616 cf_cv_rel_version="$cf_cv_rel_version"
7617 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
7618 cf_cv_system_name="$cf_cv_system_name"
7619 cf_with_cxx_binding="$cf_with_cxx_binding"
7620 cf_cv_shlib_version="$cf_cv_shlib_version"
7625 cat >> $CONFIG_STATUS <<\EOF
7626 # Extra commands, if any
7630 case $cf_cv_system_name in
7631 os2) LIB_PREFIX='' ;;
7632 *) LIB_PREFIX='lib' ;;
7634 cf_prefix=$LIB_PREFIX
7638 for cf_dir in $SRC_SUBDIRS
7640 if test -f $srcdir/$cf_dir/modules; then
7643 for cf_item in $CF_LIST_MODELS
7648 normal) cf_suffix='.a' ;;
7649 debug) cf_suffix='_g.a' ;;
7650 profile) cf_suffix='_p.a' ;;
7652 case $cf_cv_system_name in
7653 hpux*) cf_suffix='.sl' ;;
7654 *) cf_suffix='.so' ;;
7657 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
7659 if test $cf_item = shared ; then
7660 if test "$cf_cv_do_symlinks" = yes ; then
7661 case "$cf_cv_shlib_version" in #(vi
7662 rel) cf_suffix="$cf_suffix"'.$(REL_VERSION)' ;; #(vi
7663 abi) cf_suffix="$cf_suffix"'.$(ABI_VERSION)' ;;
7667 cf_libs_to_make="$cf_libs_to_make ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
7670 if test $cf_dir = ncurses ; then
7671 case "$LIB_SUBSETS" in #(vi
7675 cf_item=`echo $cf_libs_to_make |sed -e s/$LIB_NAME/$TINFO_NAME/g`
7676 cf_libs_to_make="$cf_item $cf_libs_to_make"
7681 sed -e "s@\@LIBS_TO_MAKE\@@$cf_libs_to_make@" \
7682 $cf_dir/Makefile >$cf_dir/Makefile.out
7683 mv $cf_dir/Makefile.out $cf_dir/Makefile
7685 $AWK -f $srcdir/mk-0th.awk \
7687 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
7689 for cf_item in $CF_LIST_MODELS
7691 echo 'Appending rules for '$cf_item' model ('$cf_dir')'
7693 CF_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7698 normal) cf_suffix='.a' ;;
7699 debug) cf_suffix='_g.a' ;;
7700 profile) cf_suffix='_p.a' ;;
7702 case $cf_cv_system_name in
7703 hpux*) cf_suffix='.sl' ;;
7704 *) cf_suffix='.so' ;;
7707 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
7711 normal) cf_subdir='objects' ;;
7712 debug) cf_subdir='obj_g' ;;
7713 profile) cf_subdir='obj_p' ;;
7714 shared) cf_subdir='obj_s' ;;
7718 # These dependencies really are for development, not
7719 # builds, but they are useful in porting, too.
7720 cf_depend="../include/ncurses_cfg.h"
7721 if test "$srcdir" = "."; then
7724 cf_reldir="\$(srcdir)"
7727 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
7728 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
7729 elif test -f $srcdir/$cf_dir/curses.priv.h; then
7730 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
7733 for cf_subset in $LIB_SUBSETS
7735 $AWK -f $srcdir/mk-1st.awk \
7737 traces=$LIB_TRACING \
7743 ShlibVer=$cf_cv_shlib_version \
7744 DoLinks=$cf_cv_do_symlinks \
7745 rmSoLocs=$cf_cv_rm_so_locs \
7746 ldconfig="$LDCONFIG" \
7747 overwrite=$WITH_OVERWRITE \
7748 depend="$cf_depend" \
7750 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
7751 test $cf_dir = ncurses && WITH_OVERWRITE=no
7752 $AWK -f $srcdir/mk-2nd.awk \
7754 traces=$LIB_TRACING \
7760 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
7765 echo ' cd '$cf_dir' && $(MAKE) $(CF_MFLAGS) $@' >>Makefile
7768 for cf_dir in $SRC_SUBDIRS
7770 if test -f $cf_dir/Makefile ; then
7773 echo 'libs \' >> Makefile
7774 echo 'install.libs \' >> Makefile
7775 echo 'uninstall.libs ::' >> Makefile
7776 echo ' cd '$cf_dir' && $(MAKE) $(CF_MFLAGS) $@' >> Makefile
7781 if test -f $srcdir/$cf_dir/modules; then
7783 if test -f $srcdir/$cf_dir/headers; then
7784 cat >> Makefile <<CF_EOF
7786 uninstall.includes \\
7789 if test "$cf_dir" != "c++" ; then
7790 echo 'lint \' >> Makefile
7792 cat >> Makefile <<CF_EOF
7798 uninstall.$cf_dir ::
7799 cd $cf_dir && \$(MAKE) \$(CF_MFLAGS) \$@
7801 elif test -f $srcdir/$cf_dir/headers; then
7802 cat >> Makefile <<CF_EOF
7808 uninstall.includes ::
7809 cd $cf_dir && \$(MAKE) \$(CF_MFLAGS) \$@
7814 cat >> Makefile <<CF_EOF
7818 cd misc && \$(MAKE) \$(CF_MFLAGS) \$@
7822 cd man && \$(MAKE) \$(CF_MFLAGS) \$@
7825 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
7826 rm -f headers.sh headers.sed
7827 rm -rf \$(DIRS_TO_MAKE)
7830 # Special case: tack's manpage lives in its own directory.
7831 if test -d tack ; then
7832 if test -f $srcdir/$tack.h; then
7833 cat >> Makefile <<CF_EOF
7837 cd tack && \$(MAKE) \$(CF_MFLAGS) \$@
7843 rm -f headers.sed headers.sh
7845 echo creating headers.sh
7846 cat >headers.sh <<CF_EOF
7848 # This shell script is generated by the 'configure' script. It is invoked in a
7849 # subdirectory of the build tree. It generates a sed-script in the parent
7850 # directory that is used to adjust includes for header files that reside in a
7851 # subdirectory of /usr/include, etc.
7855 PRG="\$PRG \$1"; shift
7860 echo installing \$SRC in \$DST
7863 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
7864 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
7865 END=\`basename \$DST\`
7866 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
7868 NAME=\`basename \$i\`
7869 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
7872 sed -f \$TMPSED \$SRC > \$TMPSRC
7873 eval \$PRG \$TMPSRC \$DST/\`basename \$SRC\`
7874 rm -f \$TMPSRC \$TMPSED
7877 eval \$PRG \$SRC \$DST
7882 chmod 0755 headers.sh
7884 for cf_dir in $SRC_SUBDIRS
7886 if test -f $srcdir/$cf_dir/headers; then
7887 cat >>$cf_dir/Makefile <<CF_EOF
7888 \$(DESTDIR)\$(includedir) :
7889 \$(srcdir)/../mkinstalldirs \$@
7893 install.includes :: \$(AUTO_SRC) \$(DESTDIR)\$(includedir) \\
7896 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
7898 test -n "$j" && echo " $j \\" >>$cf_dir/Makefile
7901 echo " $j" >>$cf_dir/Makefile
7902 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
7904 echo " @ (cd \$(DESTDIR)\$(includedir) && rm -f `basename $i`) ; ../headers.sh \$(INSTALL_DATA) \$(DESTDIR)\$(includedir) \$(srcdir) $i" >>$cf_dir/Makefile
7905 test $i = curses.h && echo " @ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h && \$(LN_S) curses.h ncurses.h)" >>$cf_dir/Makefile
7908 cat >>$cf_dir/Makefile <<CF_EOF
7912 uninstall.includes ::
7914 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
7917 echo " -@ (cd \$(DESTDIR)\$(includedir) && rm -f $i)" >>$cf_dir/Makefile
7918 test $i = curses.h && echo " -@ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h)" >>$cf_dir/Makefile
7927 chmod +x $CONFIG_STATUS
7928 rm -fr confdefs* $ac_clean_files
7929 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7930 ${MAKE-make} preinstall