2 # From configure.in Revision: 1.456 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20080325.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
611 # Report the --help message.
613 if test "$ac_init_help" = "long"; then
614 # Omit some internal or obsolete options to make the list less imposing.
615 # This message is too long to be a string in the A/UX 3.1 sh.
617 \`configure' configures this package to adapt to many kinds of systems.
619 Usage: $0 [OPTION]... [VAR=VALUE]...
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE. See below for descriptions of some of the useful variables.
624 Defaults for the options are specified in brackets.
627 -h, --help display this help and exit
628 --help=short display options specific to this package
629 --help=recursive display the short help of all the included packages
630 -V, --version display version information and exit
631 -q, --quiet, --silent do not print \`checking...' messages
632 --cache-file=FILE cache test results in FILE [disabled]
633 -C, --config-cache alias for \`--cache-file=config.cache'
634 -n, --no-create do not create output files
635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
640 Installation directories:
641 --prefix=PREFIX install architecture-independent files in PREFIX
643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
651 For better control, use the options below.
653 Fine tuning of the installation directories:
654 --bindir=DIR user executables [EPREFIX/bin]
655 --sbindir=DIR system admin executables [EPREFIX/sbin]
656 --libexecdir=DIR program executables [EPREFIX/libexec]
657 --datadir=DIR read-only architecture-independent data [PREFIX/share]
658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
661 --libdir=DIR object code libraries [EPREFIX/lib]
662 --includedir=DIR C header files [PREFIX/include]
663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
664 --infodir=DIR info documentation [PREFIX/info]
665 --mandir=DIR man documentation [PREFIX/man]
671 --program-prefix=PREFIX prepend PREFIX to installed program names
672 --program-suffix=SUFFIX append SUFFIX to installed program names
673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 --target=TARGET configure for building compilers for TARGET [HOST]
682 if test -n "$ac_init_help"; then
687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
694 --with-rel-version=XXX override derived release version
695 --with-abi-version=XXX override derived ABI version
696 --with-system-type=XXX test: override derived host system-type
697 --without-cxx do not adjust ncurses bool to match C++
698 --without-cxx-binding do not build C++ binding and demo
699 --without-ada suppress check for Ada95, don't build demo
700 --without-manpages suppress install of manpages
701 --without-progs suppress build with programs (e.g., tic)
702 --without-curses-h install curses.h as ncurses.h only
703 --enable-mixed-case tic should assume mixed-case filenames
704 --with-install-prefix prefixes actual install-location ($DESTDIR)
705 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
706 --with-build-cc=XXX the build C compiler ($BUILD_CC)
707 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
708 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
709 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
710 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
711 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
712 Options to Specify the Libraries Built/Used:
713 --with-libtool generate libraries with libtool
714 --with-shared generate shared-libraries
715 --with-normal generate normal-libraries (default)
716 --with-debug generate debug-libraries (default)
717 --with-profile generate profile-libraries
718 --with-termlib generate separate terminfo library
719 --with-ticlib generate separate tic library
720 --with-gpm use Alessandro Rubini's GPM library
721 --without-dlsym do not use dlsym() to load GPM dynamically
722 --with-sysmouse use sysmouse (FreeBSD console)
723 --enable-rpath use rpath option when generating shared libraries
724 --disable-relink relink shared libraries during install
725 --with-shlib-version=X Specify rel or abi version for shared libs
726 Fine-Tuning Your Configuration:
727 --disable-overwrite leave out the link to -lcurses
728 --disable-database do not use terminfo, only fallbacks/termcap
729 --with-database=XXX specify terminfo source to install
730 --with-hashed-db specify hashed-database library
731 --with-fallbacks=XXX specify list of fallback terminal descriptions
732 --without-xterm-new specify if xterm terminfo should be old version
733 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
734 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
735 --disable-big-core assume machine has little memory
736 --disable-big-strings assume compiler has only standard-size strings
737 --enable-termcap compile in termcap fallback support
738 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
739 --enable-getcap fast termcap load, no xrefs to terminfo
740 --enable-getcap-cache cache translated termcaps in ~/.terminfo
741 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
742 --disable-root-environ restrict environment when running as root
743 --enable-symlinks make tic use symbolic links not hard links
744 --enable-broken_linker compile with broken-linker support code
745 --enable-bsdpad recognize BSD-style prefix padding
746 --enable-widec compile with wide-char/UTF-8 code
747 --disable-lp64 allow chtype to be long (ignore _LP64)
748 --disable-largefile omit support for large files
749 --disable-tparm-varargs compile tparm() without varargs interface
750 --disable-tic-depends link tic library without explicit dependency on ncurses library
751 --with-bool=TYPE override fallback type of bool variable
752 --with-caps=alt compile with alternate Caps file
753 --with-chtype=TYPE override type of chtype
754 --with-ospeed=TYPE override type of ospeed variable
755 --with-mmask-t=TYPE override type of mmask_t
756 --with-rcs-ids compile-in RCS identifiers
757 Options to Specify How Manpages are Installed:
758 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
759 optionally formatted/catonly, e.g., gzip,formatted
760 --with-manpage-renames specify manpage-renaming
761 --with-manpage-aliases specify manpage-aliases using .so
762 --with-manpage-symlinks specify manpage-aliases using symlinks
763 --with-manpage-tbl specify manpage processing with tbl
765 --disable-ext-funcs disable function-extensions
766 --enable-const compile with extra/non-standard const
767 --enable-ext-colors compile for 256-color support
768 --enable-ext-mouse compile for extended mouse-encoding
769 --enable-no-padding compile with $NCURSES_NO_PADDING code
770 --enable-signed-char compile using signed Boolean's in term.h
771 --enable-sigwinch compile with SIGWINCH handler
772 --enable-tcap-names compile with user-definable terminal capabilities
774 --without-develop disable development options
775 --enable-hard-tabs compile with hard-tabs code
776 --enable-xmc-glitch compile with support for xmc (magic-cookie)
778 --disable-assumed-color do not assume anything about default-colors
779 --disable-hashmap compile without hashmap scrolling-optimization
780 --enable-colorfgbg compile with $COLORFGBG code
781 --with-pthread use POSIX thread library
782 --enable-weak-symbols enable weak-symbols for pthreads
783 --enable-reentrant compile with experimental reentrant code
784 --enable-safe-sprintf compile with experimental safe-sprintf code
785 --disable-scroll-hints compile without scroll-hints code
786 --enable-wgetch-events compile with experimental wgetch-events code
787 Testing/development Options:
788 --enable-echo build: display "compiling" commands (default)
789 --enable-warnings build: turn on GCC compiler warnings
790 --enable-assertions test: turn on generation of assertion code
791 --with-dmalloc test: use Gray Watson's dmalloc library
792 --with-dbmalloc test: use Conor Cahill's dbmalloc library
793 --with-valgrind test: use valgrind
794 --disable-leaks test: free permanent memory, analyze leaks
795 --enable-expanded test: generate functions for certain macros
796 --disable-macros test: use functions rather than macros
797 --with-trace test: add trace() function to all models of ncurses
798 Ada95 Binding Options:
799 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
800 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
801 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
803 Some influential environment variables:
804 CC C compiler command
805 CFLAGS C compiler flags
806 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
807 nonstandard directory <lib dir>
808 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
809 headers in a nonstandard directory <include dir>
811 CXX C++ compiler command
812 CXXFLAGS C++ compiler flags
813 CXXCPP C++ preprocessor
815 Use these variables to override the choices made by `configure' or to help
816 it to find libraries and programs with nonstandard names/locations.
821 if test "$ac_init_help" = "recursive"; then
822 # If there are subdirs, report their specific --help.
824 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
826 # A "../" for each directory in /$ac_subdir.
827 ac_dots=`echo $ac_subdir |
828 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
831 .) # No --srcdir option. We are building in place.
832 ac_sub_srcdir=$srcdir ;;
833 [\\/]* | ?:[\\/]* ) # Absolute path.
834 ac_sub_srcdir=$srcdir/$ac_subdir ;;
836 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
839 # Check for guested configure; otherwise get Cygnus style configure.
840 if test -f $ac_sub_srcdir/configure.gnu; then
842 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
843 elif test -f $ac_sub_srcdir/configure; then
845 $SHELL $ac_sub_srcdir/configure --help=recursive
846 elif test -f $ac_sub_srcdir/configure.ac ||
847 test -f $ac_sub_srcdir/configure.in; then
851 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
857 test -n "$ac_init_help" && exit 0
858 if $ac_init_version; then
861 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
862 Free Software Foundation, Inc.
863 This configure script is free software; the Free Software Foundation
864 gives unlimited permission to copy, distribute and modify it.
870 This file contains any messages produced by compilers while
871 running configure, to aid debugging if configure makes a mistake.
873 It was created by $as_me, which was
874 generated by GNU Autoconf 2.52.20080325. Invocation command line was
885 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
886 uname -m = `(uname -m) 2>/dev/null || echo unknown`
887 uname -r = `(uname -r) 2>/dev/null || echo unknown`
888 uname -s = `(uname -s) 2>/dev/null || echo unknown`
889 uname -v = `(uname -v) 2>/dev/null || echo unknown`
891 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
892 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
894 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
895 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
896 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
897 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
898 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
899 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
900 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
914 # Keep a trace of the command line.
915 # Strip out --no-create and --no-recursion so they do not pile up.
916 # Also quote any args containing shell meta-characters.
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
923 | --no-cr | --no-c) ;;
924 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
926 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
927 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
928 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
930 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
933 # Get rid of the leading space.
936 # When interrupted or exit'd, cleanup temporary files, and complete
937 # config.log. We remove comments because anyway the quotes in there
938 # would cause problems or look ugly.
940 # Save into config.log some information that might help in debugging.
942 echo "## ----------------- ##" >&5
943 echo "## Cache variables. ##" >&5
944 echo "## ----------------- ##" >&5
946 # The following way of writing the cache mishandles newlines in values,
949 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
952 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
957 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
961 sed "/^$/d" confdefs.h >conftest.log
962 if test -s conftest.log; then
964 echo "## ------------ ##" >&5
965 echo "## confdefs.h. ##" >&5
966 echo "## ------------ ##" >&5
971 test "$ac_signal" != 0 &&
972 echo "$as_me: caught signal $ac_signal" >&5
973 echo "$as_me: exit $exit_status" >&5
974 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
977 for ac_signal in 1 2 13 15; do
978 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
982 # confdefs.h avoids OS command line length limits that DEFS can exceed.
983 rm -rf conftest* confdefs.h
984 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
987 # Let the site file select an alternate cache file if it wants to.
988 # Prefer explicitly selected file to automatically selected ones.
989 if test -z "$CONFIG_SITE"; then
990 if test "x$prefix" != xNONE; then
991 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
993 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
996 for ac_site_file in $CONFIG_SITE; do
997 if test -r "$ac_site_file"; then
998 { echo "$as_me:998: loading site script $ac_site_file" >&5
999 echo "$as_me: loading site script $ac_site_file" >&6;}
1000 cat "$ac_site_file" >&5
1005 if test -r "$cache_file"; then
1006 # Some versions of bash will fail to source /dev/null (special
1007 # files actually), so we avoid doing that.
1008 if test -f "$cache_file"; then
1009 { echo "$as_me:1009: loading cache $cache_file" >&5
1010 echo "$as_me: loading cache $cache_file" >&6;}
1012 [\\/]* | ?:[\\/]* ) . $cache_file;;
1013 *) . ./$cache_file;;
1017 { echo "$as_me:1017: creating cache $cache_file" >&5
1018 echo "$as_me: creating cache $cache_file" >&6;}
1022 # Check that the precious variables saved in the cache have kept the same
1024 ac_cache_corrupted=false
1025 for ac_var in `(set) 2>&1 |
1026 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1027 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1028 eval ac_new_set=\$ac_env_${ac_var}_set
1029 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1030 eval ac_new_val="\$ac_env_${ac_var}_value"
1031 case $ac_old_set,$ac_new_set in
1033 { echo "$as_me:1033: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1034 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1035 ac_cache_corrupted=: ;;
1037 { echo "$as_me:1037: error: \`$ac_var' was not set in the previous run" >&5
1038 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1039 ac_cache_corrupted=: ;;
1042 if test "x$ac_old_val" != "x$ac_new_val"; then
1043 { echo "$as_me:1043: error: \`$ac_var' has changed since the previous run:" >&5
1044 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1045 { echo "$as_me:1045: former value: $ac_old_val" >&5
1046 echo "$as_me: former value: $ac_old_val" >&2;}
1047 { echo "$as_me:1047: current value: $ac_new_val" >&5
1048 echo "$as_me: current value: $ac_new_val" >&2;}
1049 ac_cache_corrupted=:
1052 # Pass precious variables to config.status. It doesn't matter if
1053 # we pass some twice (in addition to the command line arguments).
1054 if test "$ac_new_set" = set; then
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1058 ac_configure_args="$ac_configure_args '$ac_arg'"
1060 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1065 if $ac_cache_corrupted; then
1066 { echo "$as_me:1066: error: changes in the environment can compromise the build" >&5
1067 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1068 { { echo "$as_me:1068: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1069 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1070 { (exit 1); exit 1; }; }
1074 ac_cpp='$CPP $CPPFLAGS'
1075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1078 ac_main_return=return
1080 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1081 *c*,-n*) ECHO_N= ECHO_C='
1083 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1084 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1086 echo "#! $SHELL" >conftest.sh
1087 echo "exit 0" >>conftest.sh
1088 chmod +x conftest.sh
1089 if { (echo "$as_me:1089: PATH=\".;.\"; conftest.sh") >&5
1090 (PATH=".;."; conftest.sh) 2>&5
1092 echo "$as_me:1092: \$? = $ac_status" >&5
1093 (exit $ac_status); }; then
1094 ac_path_separator=';'
1098 PATH_SEPARATOR="$ac_path_separator"
1101 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1105 echo "$as_me:1105: checking for egrep" >&5
1106 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1107 if test "${ac_cv_prog_egrep+set}" = set; then
1108 echo $ECHO_N "(cached) $ECHO_C" >&6
1110 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1111 then ac_cv_prog_egrep='grep -E'
1112 else ac_cv_prog_egrep='egrep'
1115 echo "$as_me:1115: result: $ac_cv_prog_egrep" >&5
1116 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1117 EGREP=$ac_cv_prog_egrep
1119 test -z "$EGREP" && { { echo "$as_me:1119: error: No egrep program found" >&5
1120 echo "$as_me: error: No egrep program found" >&2;}
1121 { (exit 1); exit 1; }; }
1123 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1124 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1125 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1126 cf_cv_abi_version=${NCURSES_MAJOR}
1127 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1128 cf_cv_timestamp=`date`
1129 echo "$as_me:1129: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1130 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1132 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1134 # Check whether --with-rel-version or --without-rel-version was given.
1135 if test "${with_rel_version+set}" = set; then
1136 withval="$with_rel_version"
1137 { echo "$as_me:1137: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1138 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1139 cf_cv_rel_version=$withval
1142 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1143 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1145 if test -n "$NCURSES_MAJOR" ; then
1146 case $NCURSES_MAJOR in #(vi
1150 { { echo "$as_me:1150: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1151 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1152 { (exit 1); exit 1; }; }
1156 { { echo "$as_me:1156: error: Release major-version value is empty" >&5
1157 echo "$as_me: error: Release major-version value is empty" >&2;}
1158 { (exit 1); exit 1; }; }
1161 if test -n "$NCURSES_MINOR" ; then
1162 case $NCURSES_MINOR in #(vi
1166 { { echo "$as_me:1166: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1167 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1168 { (exit 1); exit 1; }; }
1172 { { echo "$as_me:1172: error: Release minor-version value is empty" >&5
1173 echo "$as_me: error: Release minor-version value is empty" >&2;}
1174 { (exit 1); exit 1; }; }
1177 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1179 # Check whether --with-abi-version or --without-abi-version was given.
1180 if test "${with_abi_version+set}" = set; then
1181 withval="$with_abi_version"
1182 { echo "$as_me:1182: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1183 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1184 cf_cv_abi_version=$withval
1187 if test -n "$cf_cv_abi_version" ; then
1188 case $cf_cv_abi_version in #(vi
1192 { { echo "$as_me:1192: error: ABI version is not a number: $cf_cv_abi_version" >&5
1193 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1194 { (exit 1); exit 1; }; }
1198 { { echo "$as_me:1198: error: ABI version value is empty" >&5
1199 echo "$as_me: error: ABI version value is empty" >&2;}
1200 { (exit 1); exit 1; }; }
1204 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1205 if test -f $ac_dir/install-sh; then
1207 ac_install_sh="$ac_aux_dir/install-sh -c"
1209 elif test -f $ac_dir/install.sh; then
1211 ac_install_sh="$ac_aux_dir/install.sh -c"
1213 elif test -f $ac_dir/shtool; then
1215 ac_install_sh="$ac_aux_dir/shtool install -c"
1219 if test -z "$ac_aux_dir"; then
1220 { { echo "$as_me:1220: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1221 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1222 { (exit 1); exit 1; }; }
1224 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1225 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1226 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1228 # Make sure we can run config.sub.
1229 $ac_config_sub sun4 >/dev/null 2>&1 ||
1230 { { echo "$as_me:1230: error: cannot run $ac_config_sub" >&5
1231 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1232 { (exit 1); exit 1; }; }
1234 echo "$as_me:1234: checking build system type" >&5
1235 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1236 if test "${ac_cv_build+set}" = set; then
1237 echo $ECHO_N "(cached) $ECHO_C" >&6
1239 ac_cv_build_alias=$build_alias
1240 test -z "$ac_cv_build_alias" &&
1241 ac_cv_build_alias=`$ac_config_guess`
1242 test -z "$ac_cv_build_alias" &&
1243 { { echo "$as_me:1243: error: cannot guess build type; you must specify one" >&5
1244 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1245 { (exit 1); exit 1; }; }
1246 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1247 { { echo "$as_me:1247: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1248 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1249 { (exit 1); exit 1; }; }
1252 echo "$as_me:1252: result: $ac_cv_build" >&5
1253 echo "${ECHO_T}$ac_cv_build" >&6
1255 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1256 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1257 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1259 echo "$as_me:1259: checking host system type" >&5
1260 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1261 if test "${ac_cv_host+set}" = set; then
1262 echo $ECHO_N "(cached) $ECHO_C" >&6
1264 ac_cv_host_alias=$host_alias
1265 test -z "$ac_cv_host_alias" &&
1266 ac_cv_host_alias=$ac_cv_build_alias
1267 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1268 { { echo "$as_me:1268: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1269 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1270 { (exit 1); exit 1; }; }
1273 echo "$as_me:1273: result: $ac_cv_host" >&5
1274 echo "${ECHO_T}$ac_cv_host" >&6
1276 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1277 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1278 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1280 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1281 echo "$as_me:1281: checking target system type" >&5
1282 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1283 if test "${ac_cv_target+set}" = set; then
1284 echo $ECHO_N "(cached) $ECHO_C" >&6
1286 ac_cv_target_alias=$target_alias
1287 test "x$ac_cv_target_alias" = "x" &&
1288 ac_cv_target_alias=$ac_cv_host_alias
1289 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1290 { { echo "$as_me:1290: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1291 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1292 { (exit 1); exit 1; }; }
1295 echo "$as_me:1295: result: $ac_cv_target" >&5
1296 echo "${ECHO_T}$ac_cv_target" >&6
1297 target=$ac_cv_target
1298 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1299 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1300 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1302 # The aliases save the names the user supplied, while $host etc.
1303 # will get canonicalized.
1304 test -n "$target_alias" &&
1305 test "$program_prefix$program_suffix$program_transform_name" = \
1307 program_prefix=${target_alias}-
1308 system_name="$host_os"
1310 system_name="`(uname -s -r) 2>/dev/null`"
1311 if test -z "$system_name" ; then
1312 system_name="`(hostname) 2>/dev/null`"
1315 test -n "$system_name" && cat >>confdefs.h <<EOF
1316 #define SYSTEM_NAME "$system_name"
1319 if test "${cf_cv_system_name+set}" = set; then
1320 echo $ECHO_N "(cached) $ECHO_C" >&6
1322 cf_cv_system_name="$system_name"
1325 test -z "$system_name" && system_name="$cf_cv_system_name"
1326 test -n "$cf_cv_system_name" && echo "$as_me:1326: result: Configuring for $cf_cv_system_name" >&5
1327 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1329 if test ".$system_name" != ".$cf_cv_system_name" ; then
1330 echo "$as_me:1330: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1331 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1332 { { echo "$as_me:1332: error: \"Please remove config.cache and try again.\"" >&5
1333 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1334 { (exit 1); exit 1; }; }
1337 # Check whether --with-system-type or --without-system-type was given.
1338 if test "${with_system_type+set}" = set; then
1339 withval="$with_system_type"
1340 { echo "$as_me:1340: WARNING: overriding system type to $withval" >&5
1341 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1342 cf_cv_system_name=$withval
1345 ### Save the given $CFLAGS to allow user-override.
1346 cf_user_CFLAGS="$CFLAGS"
1348 ### Default install-location
1350 echo "$as_me:1350: checking for prefix" >&5
1351 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1352 if test "x$prefix" = "xNONE" ; then
1353 case "$cf_cv_system_name" in
1354 # non-vendor systems don't have a conflict
1355 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1358 *) prefix=$ac_default_prefix
1362 echo "$as_me:1362: result: $prefix" >&5
1363 echo "${ECHO_T}$prefix" >&6
1365 if test "x$prefix" = "xNONE" ; then
1366 echo "$as_me:1366: checking for default include-directory" >&5
1367 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1368 test -n "$verbose" && echo 1>&6
1371 $includedir/ncurses \
1373 $prefix/include/ncurses \
1374 /usr/local/include \
1375 /usr/local/include/ncurses \
1377 /usr/include/ncurses
1379 cf_dir=`eval echo $cf_symbol`
1380 if test -f $cf_dir/curses.h ; then
1381 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1382 includedir="$cf_symbol"
1383 test -n "$verbose" && echo $ac_n " found " 1>&6
1387 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1389 echo "$as_me:1389: result: $includedir" >&5
1390 echo "${ECHO_T}$includedir" >&6
1393 ### Checks for programs.
1395 ac_cpp='$CPP $CPPFLAGS'
1396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399 ac_main_return=return
1400 if test -n "$ac_tool_prefix"; then
1401 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1403 echo "$as_me:1403: checking for $ac_word" >&5
1404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 if test "${ac_cv_prog_CC+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 if test -n "$CC"; then
1409 ac_cv_prog_CC="$CC" # Let the user override the test.
1411 ac_save_IFS=$IFS; IFS=$ac_path_separator
1413 for ac_dir in $ac_dummy; do
1415 test -z "$ac_dir" && ac_dir=.
1416 $as_executable_p "$ac_dir/$ac_word" || continue
1417 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1418 echo "$as_me:1418: found $ac_dir/$ac_word" >&5
1425 if test -n "$CC"; then
1426 echo "$as_me:1426: result: $CC" >&5
1427 echo "${ECHO_T}$CC" >&6
1429 echo "$as_me:1429: result: no" >&5
1430 echo "${ECHO_T}no" >&6
1434 if test -z "$ac_cv_prog_CC"; then
1436 # Extract the first word of "gcc", so it can be a program name with args.
1437 set dummy gcc; ac_word=$2
1438 echo "$as_me:1438: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 if test -n "$ac_ct_CC"; then
1444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1446 ac_save_IFS=$IFS; IFS=$ac_path_separator
1448 for ac_dir in $ac_dummy; do
1450 test -z "$ac_dir" && ac_dir=.
1451 $as_executable_p "$ac_dir/$ac_word" || continue
1452 ac_cv_prog_ac_ct_CC="gcc"
1453 echo "$as_me:1453: found $ac_dir/$ac_word" >&5
1459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1460 if test -n "$ac_ct_CC"; then
1461 echo "$as_me:1461: result: $ac_ct_CC" >&5
1462 echo "${ECHO_T}$ac_ct_CC" >&6
1464 echo "$as_me:1464: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1473 if test -z "$CC"; then
1474 if test -n "$ac_tool_prefix"; then
1475 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1476 set dummy ${ac_tool_prefix}cc; ac_word=$2
1477 echo "$as_me:1477: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 if test -n "$CC"; then
1483 ac_cv_prog_CC="$CC" # Let the user override the test.
1485 ac_save_IFS=$IFS; IFS=$ac_path_separator
1487 for ac_dir in $ac_dummy; do
1489 test -z "$ac_dir" && ac_dir=.
1490 $as_executable_p "$ac_dir/$ac_word" || continue
1491 ac_cv_prog_CC="${ac_tool_prefix}cc"
1492 echo "$as_me:1492: found $ac_dir/$ac_word" >&5
1499 if test -n "$CC"; then
1500 echo "$as_me:1500: result: $CC" >&5
1501 echo "${ECHO_T}$CC" >&6
1503 echo "$as_me:1503: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1508 if test -z "$ac_cv_prog_CC"; then
1510 # Extract the first word of "cc", so it can be a program name with args.
1511 set dummy cc; ac_word=$2
1512 echo "$as_me:1512: checking for $ac_word" >&5
1513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 if test -n "$ac_ct_CC"; then
1518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1520 ac_save_IFS=$IFS; IFS=$ac_path_separator
1522 for ac_dir in $ac_dummy; do
1524 test -z "$ac_dir" && ac_dir=.
1525 $as_executable_p "$ac_dir/$ac_word" || continue
1526 ac_cv_prog_ac_ct_CC="cc"
1527 echo "$as_me:1527: found $ac_dir/$ac_word" >&5
1533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1534 if test -n "$ac_ct_CC"; then
1535 echo "$as_me:1535: result: $ac_ct_CC" >&5
1536 echo "${ECHO_T}$ac_ct_CC" >&6
1538 echo "$as_me:1538: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1548 if test -z "$CC"; then
1549 # Extract the first word of "cc", so it can be a program name with args.
1550 set dummy cc; ac_word=$2
1551 echo "$as_me:1551: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 if test -n "$CC"; then
1557 ac_cv_prog_CC="$CC" # Let the user override the test.
1560 ac_save_IFS=$IFS; IFS=$ac_path_separator
1562 for ac_dir in $ac_dummy; do
1564 test -z "$ac_dir" && ac_dir=.
1565 $as_executable_p "$ac_dir/$ac_word" || continue
1566 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1567 ac_prog_rejected=yes
1571 echo "$as_me:1571: found $ac_dir/$ac_word" >&5
1575 if test $ac_prog_rejected = yes; then
1576 # We found a bogon in the path, so make sure we never use it.
1577 set dummy $ac_cv_prog_CC
1579 if test $# != 0; then
1580 # We chose a different compiler from the bogus one.
1581 # However, it has the same basename, so the bogon will be chosen
1582 # first if we set CC to just the basename; use the full file name.
1584 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1592 if test -n "$CC"; then
1593 echo "$as_me:1593: result: $CC" >&5
1594 echo "${ECHO_T}$CC" >&6
1596 echo "$as_me:1596: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1601 if test -z "$CC"; then
1602 if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1607 echo "$as_me:1607: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 ac_save_IFS=$IFS; IFS=$ac_path_separator
1617 for ac_dir in $ac_dummy; do
1619 test -z "$ac_dir" && ac_dir=.
1620 $as_executable_p "$ac_dir/$ac_word" || continue
1621 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1622 echo "$as_me:1622: found $ac_dir/$ac_word" >&5
1629 if test -n "$CC"; then
1630 echo "$as_me:1630: result: $CC" >&5
1631 echo "${ECHO_T}$CC" >&6
1633 echo "$as_me:1633: result: no" >&5
1634 echo "${ECHO_T}no" >&6
1637 test -n "$CC" && break
1640 if test -z "$CC"; then
1644 # Extract the first word of "$ac_prog", so it can be a program name with args.
1645 set dummy $ac_prog; ac_word=$2
1646 echo "$as_me:1646: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 ac_save_IFS=$IFS; IFS=$ac_path_separator
1656 for ac_dir in $ac_dummy; do
1658 test -z "$ac_dir" && ac_dir=.
1659 $as_executable_p "$ac_dir/$ac_word" || continue
1660 ac_cv_prog_ac_ct_CC="$ac_prog"
1661 echo "$as_me:1661: found $ac_dir/$ac_word" >&5
1667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1668 if test -n "$ac_ct_CC"; then
1669 echo "$as_me:1669: result: $ac_ct_CC" >&5
1670 echo "${ECHO_T}$ac_ct_CC" >&6
1672 echo "$as_me:1672: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1676 test -n "$ac_ct_CC" && break
1684 test -z "$CC" && { { echo "$as_me:1684: error: no acceptable cc found in \$PATH" >&5
1685 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1686 { (exit 1); exit 1; }; }
1688 # Provide some information about the compiler.
1689 echo "$as_me:1689:" \
1690 "checking for C compiler version" >&5
1691 ac_compiler=`set X $ac_compile; echo $2`
1692 { (eval echo "$as_me:1692: \"$ac_compiler --version </dev/null >&5\"") >&5
1693 (eval $ac_compiler --version </dev/null >&5) 2>&5
1695 echo "$as_me:1695: \$? = $ac_status" >&5
1696 (exit $ac_status); }
1697 { (eval echo "$as_me:1697: \"$ac_compiler -v </dev/null >&5\"") >&5
1698 (eval $ac_compiler -v </dev/null >&5) 2>&5
1700 echo "$as_me:1700: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1702 { (eval echo "$as_me:1702: \"$ac_compiler -V </dev/null >&5\"") >&5
1703 (eval $ac_compiler -V </dev/null >&5) 2>&5
1705 echo "$as_me:1705: \$? = $ac_status" >&5
1706 (exit $ac_status); }
1708 cat >conftest.$ac_ext <<_ACEOF
1709 #line 1709 "configure"
1710 #include "confdefs.h"
1720 ac_clean_files_save=$ac_clean_files
1721 ac_clean_files="$ac_clean_files a.out a.exe"
1722 # Try to create an executable without -o first, disregard a.out.
1723 # It will help us diagnose broken compilers, and finding out an intuition
1725 echo "$as_me:1725: checking for C compiler default output" >&5
1726 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1727 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1728 if { (eval echo "$as_me:1728: \"$ac_link_default\"") >&5
1729 (eval $ac_link_default) 2>&5
1731 echo "$as_me:1731: \$? = $ac_status" >&5
1732 (exit $ac_status); }; then
1733 # Find the output, starting from the most likely. This scheme is
1734 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1736 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1737 ls a.out conftest 2>/dev/null;
1738 ls a.* conftest.* 2>/dev/null`; do
1740 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1741 a.out ) # We found the default executable, but exeext='' is most
1744 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1745 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1752 echo "$as_me: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1754 { { echo "$as_me:1754: error: C compiler cannot create executables" >&5
1755 echo "$as_me: error: C compiler cannot create executables" >&2;}
1756 { (exit 77); exit 77; }; }
1759 ac_exeext=$ac_cv_exeext
1760 echo "$as_me:1760: result: $ac_file" >&5
1761 echo "${ECHO_T}$ac_file" >&6
1763 # Check the compiler produces executables we can run. If not, either
1764 # the compiler is broken, or we cross compile.
1765 echo "$as_me:1765: checking whether the C compiler works" >&5
1766 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1767 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1768 # If not cross compiling, check that we can run a simple program.
1769 if test "$cross_compiling" != yes; then
1770 if { ac_try='./$ac_file'
1771 { (eval echo "$as_me:1771: \"$ac_try\"") >&5
1774 echo "$as_me:1774: \$? = $ac_status" >&5
1775 (exit $ac_status); }; }; then
1778 if test "$cross_compiling" = maybe; then
1781 { { echo "$as_me:1781: error: cannot run C compiled programs.
1782 If you meant to cross compile, use \`--host'." >&5
1783 echo "$as_me: error: cannot run C compiled programs.
1784 If you meant to cross compile, use \`--host'." >&2;}
1785 { (exit 1); exit 1; }; }
1789 echo "$as_me:1789: result: yes" >&5
1790 echo "${ECHO_T}yes" >&6
1792 rm -f a.out a.exe conftest$ac_cv_exeext
1793 ac_clean_files=$ac_clean_files_save
1794 # Check the compiler produces executables we can run. If not, either
1795 # the compiler is broken, or we cross compile.
1796 echo "$as_me:1796: checking whether we are cross compiling" >&5
1797 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1798 echo "$as_me:1798: result: $cross_compiling" >&5
1799 echo "${ECHO_T}$cross_compiling" >&6
1801 echo "$as_me:1801: checking for executable suffix" >&5
1802 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1803 if { (eval echo "$as_me:1803: \"$ac_link\"") >&5
1804 (eval $ac_link) 2>&5
1806 echo "$as_me:1806: \$? = $ac_status" >&5
1807 (exit $ac_status); }; then
1808 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1809 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1810 # work properly (i.e., refer to `conftest.exe'), while it won't with
1812 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1814 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1815 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1822 { { echo "$as_me:1822: error: cannot compute EXEEXT: cannot compile and link" >&5
1823 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1824 { (exit 1); exit 1; }; }
1827 rm -f conftest$ac_cv_exeext
1828 echo "$as_me:1828: result: $ac_cv_exeext" >&5
1829 echo "${ECHO_T}$ac_cv_exeext" >&6
1831 rm -f conftest.$ac_ext
1832 EXEEXT=$ac_cv_exeext
1834 echo "$as_me:1834: checking for object suffix" >&5
1835 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1836 if test "${ac_cv_objext+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 cat >conftest.$ac_ext <<_ACEOF
1840 #line 1840 "configure"
1841 #include "confdefs.h"
1851 rm -f conftest.o conftest.obj
1852 if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
1853 (eval $ac_compile) 2>&5
1855 echo "$as_me:1855: \$? = $ac_status" >&5
1856 (exit $ac_status); }; then
1857 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1860 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1865 echo "$as_me: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1867 { { echo "$as_me:1867: error: cannot compute OBJEXT: cannot compile" >&5
1868 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1869 { (exit 1); exit 1; }; }
1872 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1874 echo "$as_me:1874: result: $ac_cv_objext" >&5
1875 echo "${ECHO_T}$ac_cv_objext" >&6
1876 OBJEXT=$ac_cv_objext
1878 echo "$as_me:1878: checking whether we are using the GNU C compiler" >&5
1879 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1880 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 cat >conftest.$ac_ext <<_ACEOF
1884 #line 1884 "configure"
1885 #include "confdefs.h"
1898 rm -f conftest.$ac_objext
1899 if { (eval echo "$as_me:1899: \"$ac_compile\"") >&5
1900 (eval $ac_compile) 2>&5
1902 echo "$as_me:1902: \$? = $ac_status" >&5
1903 (exit $ac_status); } &&
1904 { ac_try='test -s conftest.$ac_objext'
1905 { (eval echo "$as_me:1905: \"$ac_try\"") >&5
1908 echo "$as_me:1908: \$? = $ac_status" >&5
1909 (exit $ac_status); }; }; then
1912 echo "$as_me: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1916 rm -f conftest.$ac_objext conftest.$ac_ext
1917 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1920 echo "$as_me:1920: result: $ac_cv_c_compiler_gnu" >&5
1921 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1922 GCC=`test $ac_compiler_gnu = yes && echo yes`
1923 ac_test_CFLAGS=${CFLAGS+set}
1924 ac_save_CFLAGS=$CFLAGS
1926 echo "$as_me:1926: checking whether $CC accepts -g" >&5
1927 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1928 if test "${ac_cv_prog_cc_g+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 cat >conftest.$ac_ext <<_ACEOF
1932 #line 1932 "configure"
1933 #include "confdefs.h"
1943 rm -f conftest.$ac_objext
1944 if { (eval echo "$as_me:1944: \"$ac_compile\"") >&5
1945 (eval $ac_compile) 2>&5
1947 echo "$as_me:1947: \$? = $ac_status" >&5
1948 (exit $ac_status); } &&
1949 { ac_try='test -s conftest.$ac_objext'
1950 { (eval echo "$as_me:1950: \"$ac_try\"") >&5
1953 echo "$as_me:1953: \$? = $ac_status" >&5
1954 (exit $ac_status); }; }; then
1957 echo "$as_me: failed program was:" >&5
1958 cat conftest.$ac_ext >&5
1961 rm -f conftest.$ac_objext conftest.$ac_ext
1963 echo "$as_me:1963: result: $ac_cv_prog_cc_g" >&5
1964 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1965 if test "$ac_test_CFLAGS" = set; then
1966 CFLAGS=$ac_save_CFLAGS
1967 elif test $ac_cv_prog_cc_g = yes; then
1968 if test "$GCC" = yes; then
1974 if test "$GCC" = yes; then
1980 # Some people use a C++ compiler to compile C. Since we use `exit',
1981 # in C++ we need to declare it. In case someone uses the same compiler
1982 # for both compiling C and C++ we need to have the C++ compiler decide
1983 # the declaration of exit, since it's the most demanding environment.
1984 cat >conftest.$ac_ext <<_ACEOF
1989 rm -f conftest.$ac_objext
1990 if { (eval echo "$as_me:1990: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>&5
1993 echo "$as_me:1993: \$? = $ac_status" >&5
1994 (exit $ac_status); } &&
1995 { ac_try='test -s conftest.$ac_objext'
1996 { (eval echo "$as_me:1996: \"$ac_try\"") >&5
1999 echo "$as_me:1999: \$? = $ac_status" >&5
2000 (exit $ac_status); }; }; then
2001 for ac_declaration in \
2003 '#include <stdlib.h>' \
2004 'extern "C" void std::exit (int) throw (); using std::exit;' \
2005 'extern "C" void std::exit (int); using std::exit;' \
2006 'extern "C" void exit (int) throw ();' \
2007 'extern "C" void exit (int);' \
2010 cat >conftest.$ac_ext <<_ACEOF
2011 #line 2011 "configure"
2012 #include "confdefs.h"
2023 rm -f conftest.$ac_objext
2024 if { (eval echo "$as_me:2024: \"$ac_compile\"") >&5
2025 (eval $ac_compile) 2>&5
2027 echo "$as_me:2027: \$? = $ac_status" >&5
2028 (exit $ac_status); } &&
2029 { ac_try='test -s conftest.$ac_objext'
2030 { (eval echo "$as_me:2030: \"$ac_try\"") >&5
2033 echo "$as_me:2033: \$? = $ac_status" >&5
2034 (exit $ac_status); }; }; then
2037 echo "$as_me: failed program was:" >&5
2038 cat conftest.$ac_ext >&5
2041 rm -f conftest.$ac_objext conftest.$ac_ext
2042 cat >conftest.$ac_ext <<_ACEOF
2043 #line 2043 "configure"
2044 #include "confdefs.h"
2054 rm -f conftest.$ac_objext
2055 if { (eval echo "$as_me:2055: \"$ac_compile\"") >&5
2056 (eval $ac_compile) 2>&5
2058 echo "$as_me:2058: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
2060 { ac_try='test -s conftest.$ac_objext'
2061 { (eval echo "$as_me:2061: \"$ac_try\"") >&5
2064 echo "$as_me:2064: \$? = $ac_status" >&5
2065 (exit $ac_status); }; }; then
2068 echo "$as_me: failed program was:" >&5
2069 cat conftest.$ac_ext >&5
2071 rm -f conftest.$ac_objext conftest.$ac_ext
2074 if test -n "$ac_declaration"; then
2075 echo '#ifdef __cplusplus' >>confdefs.h
2076 echo $ac_declaration >>confdefs.h
2077 echo '#endif' >>confdefs.h
2081 echo "$as_me: failed program was:" >&5
2082 cat conftest.$ac_ext >&5
2084 rm -f conftest.$ac_objext conftest.$ac_ext
2086 ac_cpp='$CPP $CPPFLAGS'
2087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090 ac_main_return=return
2093 if test "$GCC" = yes ; then
2094 echo "$as_me:2094: checking version of $CC" >&5
2095 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2096 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2097 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2098 echo "$as_me:2098: result: $GCC_VERSION" >&5
2099 echo "${ECHO_T}$GCC_VERSION" >&6
2103 ac_cpp='$CPP $CPPFLAGS'
2104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2107 ac_main_return=return
2108 echo "$as_me:2108: checking how to run the C preprocessor" >&5
2109 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2110 # On Suns, sometimes $CPP names a directory.
2111 if test -n "$CPP" && test -d "$CPP"; then
2114 if test -z "$CPP"; then
2115 if test "${ac_cv_prog_CPP+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 # Double quotes because CPP needs to be expanded
2119 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2122 for ac_c_preproc_warn_flag in '' yes
2124 # Use a header file that comes with gcc, so configuring glibc
2125 # with a fresh cross-compiler works.
2126 # On the NeXT, cc -E runs the code through the compiler's parser,
2127 # not just through cpp. "Syntax error" is here to catch this case.
2128 cat >conftest.$ac_ext <<_ACEOF
2129 #line 2129 "configure"
2130 #include "confdefs.h"
2134 if { (eval echo "$as_me:2134: \"$ac_cpp conftest.$ac_ext\"") >&5
2135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2137 egrep -v '^ *\+' conftest.er1 >conftest.err
2139 cat conftest.err >&5
2140 echo "$as_me:2140: \$? = $ac_status" >&5
2141 (exit $ac_status); } >/dev/null; then
2142 if test -s conftest.err; then
2143 ac_cpp_err=$ac_c_preproc_warn_flag
2150 if test -z "$ac_cpp_err"; then
2153 echo "$as_me: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2155 # Broken: fails on valid input.
2158 rm -f conftest.err conftest.$ac_ext
2160 # OK, works on sane cases. Now check whether non-existent headers
2161 # can be detected and how.
2162 cat >conftest.$ac_ext <<_ACEOF
2163 #line 2163 "configure"
2164 #include "confdefs.h"
2165 #include <ac_nonexistent.h>
2167 if { (eval echo "$as_me:2167: \"$ac_cpp conftest.$ac_ext\"") >&5
2168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2170 egrep -v '^ *\+' conftest.er1 >conftest.err
2172 cat conftest.err >&5
2173 echo "$as_me:2173: \$? = $ac_status" >&5
2174 (exit $ac_status); } >/dev/null; then
2175 if test -s conftest.err; then
2176 ac_cpp_err=$ac_c_preproc_warn_flag
2183 if test -z "$ac_cpp_err"; then
2184 # Broken: success on invalid input.
2187 echo "$as_me: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2189 # Passes both tests.
2193 rm -f conftest.err conftest.$ac_ext
2196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2197 rm -f conftest.err conftest.$ac_ext
2198 if $ac_preproc_ok; then
2210 echo "$as_me:2210: result: $CPP" >&5
2211 echo "${ECHO_T}$CPP" >&6
2213 for ac_c_preproc_warn_flag in '' yes
2215 # Use a header file that comes with gcc, so configuring glibc
2216 # with a fresh cross-compiler works.
2217 # On the NeXT, cc -E runs the code through the compiler's parser,
2218 # not just through cpp. "Syntax error" is here to catch this case.
2219 cat >conftest.$ac_ext <<_ACEOF
2220 #line 2220 "configure"
2221 #include "confdefs.h"
2225 if { (eval echo "$as_me:2225: \"$ac_cpp conftest.$ac_ext\"") >&5
2226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2228 egrep -v '^ *\+' conftest.er1 >conftest.err
2230 cat conftest.err >&5
2231 echo "$as_me:2231: \$? = $ac_status" >&5
2232 (exit $ac_status); } >/dev/null; then
2233 if test -s conftest.err; then
2234 ac_cpp_err=$ac_c_preproc_warn_flag
2241 if test -z "$ac_cpp_err"; then
2244 echo "$as_me: failed program was:" >&5
2245 cat conftest.$ac_ext >&5
2246 # Broken: fails on valid input.
2249 rm -f conftest.err conftest.$ac_ext
2251 # OK, works on sane cases. Now check whether non-existent headers
2252 # can be detected and how.
2253 cat >conftest.$ac_ext <<_ACEOF
2254 #line 2254 "configure"
2255 #include "confdefs.h"
2256 #include <ac_nonexistent.h>
2258 if { (eval echo "$as_me:2258: \"$ac_cpp conftest.$ac_ext\"") >&5
2259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2261 egrep -v '^ *\+' conftest.er1 >conftest.err
2263 cat conftest.err >&5
2264 echo "$as_me:2264: \$? = $ac_status" >&5
2265 (exit $ac_status); } >/dev/null; then
2266 if test -s conftest.err; then
2267 ac_cpp_err=$ac_c_preproc_warn_flag
2274 if test -z "$ac_cpp_err"; then
2275 # Broken: success on invalid input.
2278 echo "$as_me: failed program was:" >&5
2279 cat conftest.$ac_ext >&5
2280 # Passes both tests.
2284 rm -f conftest.err conftest.$ac_ext
2287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2288 rm -f conftest.err conftest.$ac_ext
2289 if $ac_preproc_ok; then
2292 { { echo "$as_me:2292: error: C preprocessor \"$CPP\" fails sanity check" >&5
2293 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2294 { (exit 1); exit 1; }; }
2298 ac_cpp='$CPP $CPPFLAGS'
2299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302 ac_main_return=return
2304 if test $ac_cv_c_compiler_gnu = yes; then
2305 echo "$as_me:2305: checking whether $CC needs -traditional" >&5
2306 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2307 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 ac_pattern="Autoconf.*'x'"
2311 cat >conftest.$ac_ext <<_ACEOF
2312 #line 2312 "configure"
2313 #include "confdefs.h"
2315 int Autoconf = TIOCGETP;
2317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2318 egrep "$ac_pattern" >/dev/null 2>&1; then
2319 ac_cv_prog_gcc_traditional=yes
2321 ac_cv_prog_gcc_traditional=no
2325 if test $ac_cv_prog_gcc_traditional = no; then
2326 cat >conftest.$ac_ext <<_ACEOF
2327 #line 2327 "configure"
2328 #include "confdefs.h"
2330 int Autoconf = TCGETA;
2332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2333 egrep "$ac_pattern" >/dev/null 2>&1; then
2334 ac_cv_prog_gcc_traditional=yes
2340 echo "$as_me:2340: result: $ac_cv_prog_gcc_traditional" >&5
2341 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2342 if test $ac_cv_prog_gcc_traditional = yes; then
2343 CC="$CC -traditional"
2347 echo "$as_me:2347: checking whether $CC understands -c and -o together" >&5
2348 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2349 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat > conftest.$ac_ext <<CF_EOF
2357 ${cf_cv_main_return:-return}(0);
2360 # We do the test twice because some compilers refuse to overwrite an
2361 # existing .o file with -o, though they will create one.
2362 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2363 if { (eval echo "$as_me:2363: \"$ac_try\"") >&5
2366 echo "$as_me:2366: \$? = $ac_status" >&5
2367 (exit $ac_status); } &&
2368 test -f conftest2.$ac_objext && { (eval echo "$as_me:2368: \"$ac_try\"") >&5
2371 echo "$as_me:2371: \$? = $ac_status" >&5
2372 (exit $ac_status); };
2374 eval cf_cv_prog_CC_c_o=yes
2376 eval cf_cv_prog_CC_c_o=no
2381 if test $cf_cv_prog_CC_c_o = yes; then
2382 echo "$as_me:2382: result: yes" >&5
2383 echo "${ECHO_T}yes" >&6
2385 echo "$as_me:2385: result: no" >&5
2386 echo "${ECHO_T}no" >&6
2389 echo "$as_me:2389: checking for POSIXized ISC" >&5
2390 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2391 if test -d /etc/conf/kconfig.d &&
2392 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2394 echo "$as_me:2394: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6
2396 ISC=yes # If later tests want to check for ISC.
2398 cat >>confdefs.h <<\EOF
2399 #define _POSIX_SOURCE 1
2402 if test "$GCC" = yes; then
2408 echo "$as_me:2408: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2413 echo "$as_me:2413: checking for ${CC-cc} option to accept ANSI C" >&5
2414 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2415 if test "${cf_cv_ansi_cc+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 cf_save_CFLAGS="$CFLAGS"
2421 cf_save_CPPFLAGS="$CPPFLAGS"
2422 # Don't try gcc -ansi; that turns off useful extensions and
2423 # breaks some systems' header files.
2424 # AIX -qlanglvl=ansi
2425 # Ultrix and OSF/1 -std1
2426 # HP-UX -Aa -D_HPUX_SOURCE
2428 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2429 for cf_arg in "-DCC_HAS_PROTOS" \
2434 "-Aa -D_HPUX_SOURCE" \
2441 cf_new_extra_cppflags=
2443 for cf_add_cflags in $cf_arg
2445 case $cf_fix_cppflags in
2447 case $cf_add_cflags in #(vi
2448 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2449 case $cf_add_cflags in
2451 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2453 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2454 && test -z "${cf_tst_cflags}" \
2455 && cf_fix_cppflags=yes
2457 if test $cf_fix_cppflags = yes ; then
2458 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2460 elif test "${cf_tst_cflags}" = "\"'" ; then
2461 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2467 *$cf_add_cflags) #(vi
2470 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2475 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2480 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2482 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2484 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2485 && test -z "${cf_tst_cflags}" \
2486 && cf_fix_cppflags=no
2491 if test -n "$cf_new_cflags" ; then
2493 CFLAGS="$CFLAGS $cf_new_cflags"
2496 if test -n "$cf_new_cppflags" ; then
2498 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2501 if test -n "$cf_new_extra_cppflags" ; then
2503 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line 2507 "configure"
2508 #include "confdefs.h"
2510 #ifndef CC_HAS_PROTOS
2511 #if !defined(__STDC__) || (__STDC__ != 1)
2520 int test (int i, double x);
2521 struct s1 {int (*f) (int a);};
2522 struct s2 {int (*f) (double a);};
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:2528: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>&5
2531 echo "$as_me:2531: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:2534: \"$ac_try\"") >&5
2537 echo "$as_me:2537: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2539 cf_cv_ansi_cc="$cf_arg"; break
2541 echo "$as_me: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2544 rm -f conftest.$ac_objext conftest.$ac_ext
2546 CFLAGS="$cf_save_CFLAGS"
2547 CPPFLAGS="$cf_save_CPPFLAGS"
2550 echo "$as_me:2550: result: $cf_cv_ansi_cc" >&5
2551 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2553 if test "$cf_cv_ansi_cc" != "no"; then
2554 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2559 cf_new_extra_cppflags=
2561 for cf_add_cflags in $cf_cv_ansi_cc
2563 case $cf_fix_cppflags in
2565 case $cf_add_cflags in #(vi
2566 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2567 case $cf_add_cflags in
2569 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2571 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2572 && test -z "${cf_tst_cflags}" \
2573 && cf_fix_cppflags=yes
2575 if test $cf_fix_cppflags = yes ; then
2576 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2578 elif test "${cf_tst_cflags}" = "\"'" ; then
2579 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2585 *$cf_add_cflags) #(vi
2588 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2593 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2598 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2600 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2602 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2603 && test -z "${cf_tst_cflags}" \
2604 && cf_fix_cppflags=no
2609 if test -n "$cf_new_cflags" ; then
2611 CFLAGS="$CFLAGS $cf_new_cflags"
2614 if test -n "$cf_new_cppflags" ; then
2616 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2619 if test -n "$cf_new_extra_cppflags" ; then
2621 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2625 cat >>confdefs.h <<\EOF
2626 #define CC_HAS_PROTOS 1
2632 if test "$cf_cv_ansi_cc" = "no"; then
2633 { { echo "$as_me:2633: error: Your compiler does not appear to recognize prototypes.
2634 You have the following choices:
2635 a. adjust your compiler options
2636 b. get an up-to-date compiler
2637 c. use a wrapper such as unproto" >&5
2638 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2639 You have the following choices:
2640 a. adjust your compiler options
2641 b. get an up-to-date compiler
2642 c. use a wrapper such as unproto" >&2;}
2643 { (exit 1); exit 1; }; }
2646 case $cf_cv_system_name in
2648 CFLAGS="$CFLAGS -Zmt"
2649 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2650 CXXFLAGS="$CXXFLAGS -Zmt"
2651 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2652 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2659 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2660 #define PROG_EXT "$PROG_EXT"
2663 if test "$cross_compiling" = yes ; then
2666 case "$cf_cv_system_name" in #(vi
2668 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2670 *) LDPATH=$PATH:/sbin:/usr/sbin
2671 # Extract the first word of "ldconfig", so it can be a program name with args.
2672 set dummy ldconfig; ac_word=$2
2673 echo "$as_me:2673: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2675 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2683 ac_save_IFS=$IFS; IFS=$ac_path_separator
2685 for ac_dir in $ac_dummy; do
2687 test -z "$ac_dir" && ac_dir=.
2688 if $as_executable_p "$ac_dir/$ac_word"; then
2689 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2690 echo "$as_me:2690: found $ac_dir/$ac_word" >&5
2698 LDCONFIG=$ac_cv_path_LDCONFIG
2700 if test -n "$LDCONFIG"; then
2701 echo "$as_me:2701: result: $LDCONFIG" >&5
2702 echo "${ECHO_T}$LDCONFIG" >&6
2704 echo "$as_me:2704: result: no" >&5
2705 echo "${ECHO_T}no" >&6
2712 echo "$as_me:2712: checking if you want to ensure bool is consistent with C++" >&5
2713 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2715 # Check whether --with-cxx or --without-cxx was given.
2716 if test "${with_cxx+set}" = set; then
2718 cf_with_cxx=$withval
2722 echo "$as_me:2722: result: $cf_with_cxx" >&5
2723 echo "${ECHO_T}$cf_with_cxx" >&6
2724 if test "X$cf_with_cxx" = Xno ; then
2728 # with autoconf 2.13, we can change the error to a warning:
2730 ac_cpp='$CXXCPP $CPPFLAGS'
2731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2734 ac_main_return=return
2735 if test -n "$ac_tool_prefix"; then
2736 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2740 echo "$as_me:2740: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742 if test "${ac_cv_prog_CXX+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 if test -n "$CXX"; then
2746 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2748 ac_save_IFS=$IFS; IFS=$ac_path_separator
2750 for ac_dir in $ac_dummy; do
2752 test -z "$ac_dir" && ac_dir=.
2753 $as_executable_p "$ac_dir/$ac_word" || continue
2754 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2755 echo "$as_me:2755: found $ac_dir/$ac_word" >&5
2762 if test -n "$CXX"; then
2763 echo "$as_me:2763: result: $CXX" >&5
2764 echo "${ECHO_T}$CXX" >&6
2766 echo "$as_me:2766: result: no" >&5
2767 echo "${ECHO_T}no" >&6
2770 test -n "$CXX" && break
2773 if test -z "$CXX"; then
2775 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2777 # Extract the first word of "$ac_prog", so it can be a program name with args.
2778 set dummy $ac_prog; ac_word=$2
2779 echo "$as_me:2779: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 if test -n "$ac_ct_CXX"; then
2785 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2787 ac_save_IFS=$IFS; IFS=$ac_path_separator
2789 for ac_dir in $ac_dummy; do
2791 test -z "$ac_dir" && ac_dir=.
2792 $as_executable_p "$ac_dir/$ac_word" || continue
2793 ac_cv_prog_ac_ct_CXX="$ac_prog"
2794 echo "$as_me:2794: found $ac_dir/$ac_word" >&5
2800 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2801 if test -n "$ac_ct_CXX"; then
2802 echo "$as_me:2802: result: $ac_ct_CXX" >&5
2803 echo "${ECHO_T}$ac_ct_CXX" >&6
2805 echo "$as_me:2805: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2809 test -n "$ac_ct_CXX" && break
2811 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2816 # Provide some information about the compiler.
2817 echo "$as_me:2817:" \
2818 "checking for C++ compiler version" >&5
2819 ac_compiler=`set X $ac_compile; echo $2`
2820 { (eval echo "$as_me:2820: \"$ac_compiler --version </dev/null >&5\"") >&5
2821 (eval $ac_compiler --version </dev/null >&5) 2>&5
2823 echo "$as_me:2823: \$? = $ac_status" >&5
2824 (exit $ac_status); }
2825 { (eval echo "$as_me:2825: \"$ac_compiler -v </dev/null >&5\"") >&5
2826 (eval $ac_compiler -v </dev/null >&5) 2>&5
2828 echo "$as_me:2828: \$? = $ac_status" >&5
2829 (exit $ac_status); }
2830 { (eval echo "$as_me:2830: \"$ac_compiler -V </dev/null >&5\"") >&5
2831 (eval $ac_compiler -V </dev/null >&5) 2>&5
2833 echo "$as_me:2833: \$? = $ac_status" >&5
2834 (exit $ac_status); }
2836 echo "$as_me:2836: checking whether we are using the GNU C++ compiler" >&5
2837 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2838 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 cat >conftest.$ac_ext <<_ACEOF
2842 #line 2842 "configure"
2843 #include "confdefs.h"
2856 rm -f conftest.$ac_objext
2857 if { (eval echo "$as_me:2857: \"$ac_compile\"") >&5
2858 (eval $ac_compile) 2>&5
2860 echo "$as_me:2860: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try='test -s conftest.$ac_objext'
2863 { (eval echo "$as_me:2863: \"$ac_try\"") >&5
2866 echo "$as_me:2866: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2870 echo "$as_me: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2874 rm -f conftest.$ac_objext conftest.$ac_ext
2875 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2878 echo "$as_me:2878: result: $ac_cv_cxx_compiler_gnu" >&5
2879 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2880 GXX=`test $ac_compiler_gnu = yes && echo yes`
2881 ac_test_CXXFLAGS=${CXXFLAGS+set}
2882 ac_save_CXXFLAGS=$CXXFLAGS
2884 echo "$as_me:2884: checking whether $CXX accepts -g" >&5
2885 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2886 if test "${ac_cv_prog_cxx_g+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 cat >conftest.$ac_ext <<_ACEOF
2890 #line 2890 "configure"
2891 #include "confdefs.h"
2901 rm -f conftest.$ac_objext
2902 if { (eval echo "$as_me:2902: \"$ac_compile\"") >&5
2903 (eval $ac_compile) 2>&5
2905 echo "$as_me:2905: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try='test -s conftest.$ac_objext'
2908 { (eval echo "$as_me:2908: \"$ac_try\"") >&5
2911 echo "$as_me:2911: \$? = $ac_status" >&5
2912 (exit $ac_status); }; }; then
2913 ac_cv_prog_cxx_g=yes
2915 echo "$as_me: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2919 rm -f conftest.$ac_objext conftest.$ac_ext
2921 echo "$as_me:2921: result: $ac_cv_prog_cxx_g" >&5
2922 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2923 if test "$ac_test_CXXFLAGS" = set; then
2924 CXXFLAGS=$ac_save_CXXFLAGS
2925 elif test $ac_cv_prog_cxx_g = yes; then
2926 if test "$GXX" = yes; then
2932 if test "$GXX" = yes; then
2938 for ac_declaration in \
2940 '#include <stdlib.h>' \
2941 'extern "C" void std::exit (int) throw (); using std::exit;' \
2942 'extern "C" void std::exit (int); using std::exit;' \
2943 'extern "C" void exit (int) throw ();' \
2944 'extern "C" void exit (int);' \
2947 cat >conftest.$ac_ext <<_ACEOF
2948 #line 2948 "configure"
2949 #include "confdefs.h"
2960 rm -f conftest.$ac_objext
2961 if { (eval echo "$as_me:2961: \"$ac_compile\"") >&5
2962 (eval $ac_compile) 2>&5
2964 echo "$as_me:2964: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
2966 { ac_try='test -s conftest.$ac_objext'
2967 { (eval echo "$as_me:2967: \"$ac_try\"") >&5
2970 echo "$as_me:2970: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2974 echo "$as_me: failed program was:" >&5
2975 cat conftest.$ac_ext >&5
2978 rm -f conftest.$ac_objext conftest.$ac_ext
2979 cat >conftest.$ac_ext <<_ACEOF
2980 #line 2980 "configure"
2981 #include "confdefs.h"
2991 rm -f conftest.$ac_objext
2992 if { (eval echo "$as_me:2992: \"$ac_compile\"") >&5
2993 (eval $ac_compile) 2>&5
2995 echo "$as_me:2995: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (eval echo "$as_me:2998: \"$ac_try\"") >&5
3001 echo "$as_me:3001: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 echo "$as_me: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3008 rm -f conftest.$ac_objext conftest.$ac_ext
3011 if test -n "$ac_declaration"; then
3012 echo '#ifdef __cplusplus' >>confdefs.h
3013 echo $ac_declaration >>confdefs.h
3014 echo '#endif' >>confdefs.h
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022 ac_main_return=return
3024 # autoconf 2.5x removed the error - by hardcoding it to g++.
3025 if test "$CXX" = "g++" ; then
3026 # Extract the first word of "g++", so it can be a program name with args.
3027 set dummy g++; ac_word=$2
3028 echo "$as_me:3028: checking for $ac_word" >&5
3029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3030 if test "${ac_cv_path_CXX+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3038 ac_save_IFS=$IFS; IFS=$ac_path_separator
3040 for ac_dir in $ac_dummy; do
3042 test -z "$ac_dir" && ac_dir=.
3043 if $as_executable_p "$ac_dir/$ac_word"; then
3044 ac_cv_path_CXX="$ac_dir/$ac_word"
3045 echo "$as_me:3045: found $ac_dir/$ac_word" >&5
3055 if test -n "$CXX"; then
3056 echo "$as_me:3056: result: $CXX" >&5
3057 echo "${ECHO_T}$CXX" >&6
3059 echo "$as_me:3059: result: no" >&5
3060 echo "${ECHO_T}no" >&6
3064 if test "$CXX" = "g++" ; then
3065 { echo "$as_me:3065: WARNING: ignoring hardcoded g++" >&5
3066 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3067 cf_with_cxx=no; CXX=""; GXX="";
3072 if test "$GXX" = yes; then
3073 echo "$as_me:3073: checking version of g++" >&5
3074 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3075 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3076 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3077 echo "$as_me:3077: result: $GXX_VERSION" >&5
3078 echo "${ECHO_T}$GXX_VERSION" >&6
3081 case $GXX_VERSION in
3083 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3085 { echo "$as_me:3085: WARNING: templates do not work" >&5
3086 echo "$as_me: WARNING: templates do not work" >&2;}
3090 echo "$as_me:3090: checking if you want to build C++ binding and demo" >&5
3091 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3093 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3094 if test "${with_cxx_binding+set}" = set; then
3095 withval="$with_cxx_binding"
3096 cf_with_cxx_binding=$withval
3098 cf_with_cxx_binding=$cf_with_cxx
3100 echo "$as_me:3100: result: $cf_with_cxx_binding" >&5
3101 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3103 echo "$as_me:3103: checking if you want to build with Ada95" >&5
3104 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3106 # Check whether --with-ada or --without-ada was given.
3107 if test "${with_ada+set}" = set; then
3109 cf_with_ada=$withval
3113 echo "$as_me:3113: result: $cf_with_ada" >&5
3114 echo "${ECHO_T}$cf_with_ada" >&6
3116 echo "$as_me:3116: checking if you want to install manpages" >&5
3117 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3119 # Check whether --with-manpages or --without-manpages was given.
3120 if test "${with_manpages+set}" = set; then
3121 withval="$with_manpages"
3122 cf_with_manpages=$withval
3124 cf_with_manpages=yes
3126 echo "$as_me:3126: result: $cf_with_manpages" >&5
3127 echo "${ECHO_T}$cf_with_manpages" >&6
3129 echo "$as_me:3129: checking if you want to build programs such as tic" >&5
3130 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3132 # Check whether --with-progs or --without-progs was given.
3133 if test "${with_progs+set}" = set; then
3134 withval="$with_progs"
3135 cf_with_progs=$withval
3139 echo "$as_me:3139: result: $cf_with_progs" >&5
3140 echo "${ECHO_T}$cf_with_progs" >&6
3142 echo "$as_me:3142: checking if you wish to install curses.h" >&5
3143 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3145 # Check whether --with-curses-h or --without-curses-h was given.
3146 if test "${with_curses_h+set}" = set; then
3147 withval="$with_curses_h"
3148 with_curses_h=$withval
3152 echo "$as_me:3152: result: $with_curses_h" >&5
3153 echo "${ECHO_T}$with_curses_h" >&6
3155 modules_to_build="ncurses"
3156 if test "X$cf_with_progs" != Xno ; then
3157 modules_to_build="$modules_to_build progs tack"
3159 modules_to_build="$modules_to_build panel menu form"
3161 test "$program_prefix" != NONE &&
3162 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3163 # Use a double $ so make ignores it.
3164 test "$program_suffix" != NONE &&
3165 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3166 # Double any \ or $. echo might interpret backslashes.
3167 # By default was `s,x,x', remove it if useless.
3168 cat <<\_ACEOF >conftest.sed
3169 s/[\\$]/&&/g;s/;s,x,x,$//
3171 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3174 for ac_prog in mawk gawk nawk awk
3176 # Extract the first word of "$ac_prog", so it can be a program name with args.
3177 set dummy $ac_prog; ac_word=$2
3178 echo "$as_me:3178: checking for $ac_word" >&5
3179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3180 if test "${ac_cv_prog_AWK+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 if test -n "$AWK"; then
3184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3186 ac_save_IFS=$IFS; IFS=$ac_path_separator
3188 for ac_dir in $ac_dummy; do
3190 test -z "$ac_dir" && ac_dir=.
3191 $as_executable_p "$ac_dir/$ac_word" || continue
3192 ac_cv_prog_AWK="$ac_prog"
3193 echo "$as_me:3193: found $ac_dir/$ac_word" >&5
3200 if test -n "$AWK"; then
3201 echo "$as_me:3201: result: $AWK" >&5
3202 echo "${ECHO_T}$AWK" >&6
3204 echo "$as_me:3204: result: no" >&5
3205 echo "${ECHO_T}no" >&6
3208 test -n "$AWK" && break
3211 test -z "$AWK" && { { echo "$as_me:3211: error: No awk program found" >&5
3212 echo "$as_me: error: No awk program found" >&2;}
3213 { (exit 1); exit 1; }; }
3215 echo "$as_me:3215: checking for egrep" >&5
3216 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3217 if test "${ac_cv_prog_egrep+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3221 then ac_cv_prog_egrep='grep -E'
3222 else ac_cv_prog_egrep='egrep'
3225 echo "$as_me:3225: result: $ac_cv_prog_egrep" >&5
3226 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3227 EGREP=$ac_cv_prog_egrep
3229 test -z "$EGREP" && { { echo "$as_me:3229: error: No egrep program found" >&5
3230 echo "$as_me: error: No egrep program found" >&2;}
3231 { (exit 1); exit 1; }; }
3233 # Find a good install program. We prefer a C program (faster),
3234 # so one script is as good as another. But avoid the broken or
3235 # incompatible versions:
3236 # SysV /etc/install, /usr/sbin/install
3237 # SunOS /usr/etc/install
3238 # IRIX /sbin/install
3240 # AmigaOS /C/install, which installs bootblocks on floppy discs
3241 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3242 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3243 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3244 # ./install, which can be erroneously created by make from ./install.sh.
3245 echo "$as_me:3245: checking for a BSD compatible install" >&5
3246 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3247 if test -z "$INSTALL"; then
3248 if test "${ac_cv_path_install+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 ac_save_IFS=$IFS; IFS=$ac_path_separator
3252 for ac_dir in $PATH; do
3254 # Account for people who put trailing slashes in PATH elements.
3256 / | ./ | .// | /cC/* \
3257 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3260 # OSF1 and SCO ODT 3.0 have their own names for install.
3261 # Don't use installbsd from OSF since it installs stuff as root
3263 for ac_prog in ginstall scoinst install; do
3264 if $as_executable_p "$ac_dir/$ac_prog"; then
3265 if test $ac_prog = install &&
3266 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3267 # AIX install. It has an incompatible calling convention.
3269 elif test $ac_prog = install &&
3270 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3271 # program-specific install script used by HP pwplus--don't use.
3274 ac_cv_path_install="$ac_dir/$ac_prog -c"
3284 if test "${ac_cv_path_install+set}" = set; then
3285 INSTALL=$ac_cv_path_install
3287 # As a last resort, use the slow shell script. We don't cache a
3288 # path for INSTALL within a source directory, because that will
3289 # break other packages using the cache if that directory is
3290 # removed, or if the path is relative.
3291 INSTALL=$ac_install_sh
3294 echo "$as_me:3294: result: $INSTALL" >&5
3295 echo "${ECHO_T}$INSTALL" >&6
3297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3298 # It thinks the first close brace ends the variable substitution.
3299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3309 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3310 test -z "$cf_dir" && cf_dir=.
3311 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3315 for ac_prog in tdlint lint alint
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 echo "$as_me:3319: checking for $ac_word" >&5
3320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321 if test "${ac_cv_prog_LINT+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 if test -n "$LINT"; then
3325 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3327 ac_save_IFS=$IFS; IFS=$ac_path_separator
3329 for ac_dir in $ac_dummy; do
3331 test -z "$ac_dir" && ac_dir=.
3332 $as_executable_p "$ac_dir/$ac_word" || continue
3333 ac_cv_prog_LINT="$ac_prog"
3334 echo "$as_me:3334: found $ac_dir/$ac_word" >&5
3340 LINT=$ac_cv_prog_LINT
3341 if test -n "$LINT"; then
3342 echo "$as_me:3342: result: $LINT" >&5
3343 echo "${ECHO_T}$LINT" >&6
3345 echo "$as_me:3345: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3349 test -n "$LINT" && break
3352 echo "$as_me:3352: checking whether ln -s works" >&5
3353 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3355 if test "$LN_S" = "ln -s"; then
3356 echo "$as_me:3356: result: yes" >&5
3357 echo "${ECHO_T}yes" >&6
3359 echo "$as_me:3359: result: no, using $LN_S" >&5
3360 echo "${ECHO_T}no, using $LN_S" >&6
3363 echo "$as_me:3363: checking for long file names" >&5
3364 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3365 if test "${ac_cv_sys_long_file_names+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 ac_cv_sys_long_file_names=yes
3369 # Test for long file names in all the places we know might matter:
3370 # . the current directory, where building will happen
3371 # $prefix/lib where we will be installing things
3372 # $exec_prefix/lib likewise
3373 # eval it to expand exec_prefix.
3374 # $TMPDIR if set, where it might want to write temporary files
3375 # if $TMPDIR is not set:
3376 # /tmp where it might want to write temporary files
3379 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3382 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3384 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3385 test -d $ac_dir || continue
3386 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3387 ac_xdir=$ac_dir/cf$$
3388 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3389 ac_tf1=$ac_xdir/conftest9012345
3390 ac_tf2=$ac_xdir/conftest9012346
3391 (echo 1 >$ac_tf1) 2>/dev/null
3392 (echo 2 >$ac_tf2) 2>/dev/null
3393 ac_val=`cat $ac_tf1 2>/dev/null`
3394 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3395 ac_cv_sys_long_file_names=no
3396 rm -rf $ac_xdir 2>/dev/null
3399 rm -rf $ac_xdir 2>/dev/null
3402 echo "$as_me:3402: result: $ac_cv_sys_long_file_names" >&5
3403 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3404 if test $ac_cv_sys_long_file_names = yes; then
3406 cat >>confdefs.h <<\EOF
3407 #define HAVE_LONG_FILE_NAMES 1
3412 echo "$as_me:3412: checking if we should assume mixed-case filenames" >&5
3413 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3415 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3416 if test "${enable_mixed_case+set}" = set; then
3417 enableval="$enable_mixed_case"
3418 enable_mixedcase=$enableval
3420 enable_mixedcase=auto
3422 echo "$as_me:3422: result: $enable_mixedcase" >&5
3423 echo "${ECHO_T}$enable_mixedcase" >&6
3424 if test "$enable_mixedcase" = "auto" ; then
3426 echo "$as_me:3426: checking if filesystem supports mixed-case filenames" >&5
3427 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3428 if test "${cf_cv_mixedcase+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 if test "$cross_compiling" = yes ; then
3433 case $target_alias in #(vi
3434 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3442 rm -f conftest CONFTEST
3444 if test -f CONFTEST ; then
3449 rm -f conftest CONFTEST
3453 echo "$as_me:3453: result: $cf_cv_mixedcase" >&5
3454 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3455 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3456 #define MIXEDCASE_FILENAMES 1
3460 cf_cv_mixedcase=$enable_mixedcase
3461 if test "$enable_mixedcase" = "yes" ; then
3462 cat >>confdefs.h <<\EOF
3463 #define MIXEDCASE_FILENAMES 1
3469 # do this after mixed-case option (tags/TAGS is not as important as tic).
3470 echo "$as_me:3470: checking whether ${MAKE-make} sets \${MAKE}" >&5
3471 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3472 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3473 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 cat >conftest.make <<\EOF
3478 @echo 'ac_maketemp="${MAKE}"'
3480 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3481 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3482 if test -n "$ac_maketemp"; then
3483 eval ac_cv_prog_make_${ac_make}_set=yes
3485 eval ac_cv_prog_make_${ac_make}_set=no
3489 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3490 echo "$as_me:3490: result: yes" >&5
3491 echo "${ECHO_T}yes" >&6
3494 echo "$as_me:3494: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 SET_MAKE="MAKE=${MAKE-make}"
3499 # Extract the first word of "ctags", so it can be a program name with args.
3500 set dummy ctags; ac_word=$2
3501 echo "$as_me:3501: checking for $ac_word" >&5
3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3503 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 if test -n "$MAKE_LOWER_TAGS"; then
3507 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3509 ac_save_IFS=$IFS; IFS=$ac_path_separator
3511 for ac_dir in $ac_dummy; do
3513 test -z "$ac_dir" && ac_dir=.
3514 $as_executable_p "$ac_dir/$ac_word" || continue
3515 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3516 echo "$as_me:3516: found $ac_dir/$ac_word" >&5
3520 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3523 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3524 if test -n "$MAKE_LOWER_TAGS"; then
3525 echo "$as_me:3525: result: $MAKE_LOWER_TAGS" >&5
3526 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3528 echo "$as_me:3528: result: no" >&5
3529 echo "${ECHO_T}no" >&6
3532 if test "$cf_cv_mixedcase" = yes ; then
3533 # Extract the first word of "etags", so it can be a program name with args.
3534 set dummy etags; ac_word=$2
3535 echo "$as_me:3535: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 if test -n "$MAKE_UPPER_TAGS"; then
3541 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3543 ac_save_IFS=$IFS; IFS=$ac_path_separator
3545 for ac_dir in $ac_dummy; do
3547 test -z "$ac_dir" && ac_dir=.
3548 $as_executable_p "$ac_dir/$ac_word" || continue
3549 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3550 echo "$as_me:3550: found $ac_dir/$ac_word" >&5
3554 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3557 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3558 if test -n "$MAKE_UPPER_TAGS"; then
3559 echo "$as_me:3559: result: $MAKE_UPPER_TAGS" >&5
3560 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3562 echo "$as_me:3562: result: no" >&5
3563 echo "${ECHO_T}no" >&6
3570 if test "$MAKE_UPPER_TAGS" = yes ; then
3576 if test "$MAKE_LOWER_TAGS" = yes ; then
3582 echo "$as_me:3582: checking for makeflags variable" >&5
3583 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3584 if test "${cf_cv_makeflags+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3591 cat >cf_makeflags.tmp <<CF_EOF
3594 @ echo '.$cf_option'
3596 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3597 case "$cf_result" in
3599 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3600 case "$cf_result" in
3601 .*CC=*) cf_cv_makeflags=
3603 *) cf_cv_makeflags=$cf_option
3609 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3613 rm -f cf_makeflags.tmp
3616 echo "$as_me:3616: result: $cf_cv_makeflags" >&5
3617 echo "${ECHO_T}$cf_cv_makeflags" >&6
3619 if test -n "$ac_tool_prefix"; then
3620 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3621 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3622 echo "$as_me:3622: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_prog_RANLIB+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 if test -n "$RANLIB"; then
3628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3630 ac_save_IFS=$IFS; IFS=$ac_path_separator
3632 for ac_dir in $ac_dummy; do
3634 test -z "$ac_dir" && ac_dir=.
3635 $as_executable_p "$ac_dir/$ac_word" || continue
3636 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3637 echo "$as_me:3637: found $ac_dir/$ac_word" >&5
3643 RANLIB=$ac_cv_prog_RANLIB
3644 if test -n "$RANLIB"; then
3645 echo "$as_me:3645: result: $RANLIB" >&5
3646 echo "${ECHO_T}$RANLIB" >&6
3648 echo "$as_me:3648: result: no" >&5
3649 echo "${ECHO_T}no" >&6
3653 if test -z "$ac_cv_prog_RANLIB"; then
3654 ac_ct_RANLIB=$RANLIB
3655 # Extract the first word of "ranlib", so it can be a program name with args.
3656 set dummy ranlib; ac_word=$2
3657 echo "$as_me:3657: checking for $ac_word" >&5
3658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3659 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 if test -n "$ac_ct_RANLIB"; then
3663 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3665 ac_save_IFS=$IFS; IFS=$ac_path_separator
3667 for ac_dir in $ac_dummy; do
3669 test -z "$ac_dir" && ac_dir=.
3670 $as_executable_p "$ac_dir/$ac_word" || continue
3671 ac_cv_prog_ac_ct_RANLIB="ranlib"
3672 echo "$as_me:3672: found $ac_dir/$ac_word" >&5
3676 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3679 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3680 if test -n "$ac_ct_RANLIB"; then
3681 echo "$as_me:3681: result: $ac_ct_RANLIB" >&5
3682 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3684 echo "$as_me:3684: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3688 RANLIB=$ac_ct_RANLIB
3690 RANLIB="$ac_cv_prog_RANLIB"
3693 if test -n "$ac_tool_prefix"; then
3694 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3695 set dummy ${ac_tool_prefix}ld; ac_word=$2
3696 echo "$as_me:3696: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_prog_LD+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 if test -n "$LD"; then
3702 ac_cv_prog_LD="$LD" # Let the user override the test.
3704 ac_save_IFS=$IFS; IFS=$ac_path_separator
3706 for ac_dir in $ac_dummy; do
3708 test -z "$ac_dir" && ac_dir=.
3709 $as_executable_p "$ac_dir/$ac_word" || continue
3710 ac_cv_prog_LD="${ac_tool_prefix}ld"
3711 echo "$as_me:3711: found $ac_dir/$ac_word" >&5
3718 if test -n "$LD"; then
3719 echo "$as_me:3719: result: $LD" >&5
3720 echo "${ECHO_T}$LD" >&6
3722 echo "$as_me:3722: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3727 if test -z "$ac_cv_prog_LD"; then
3729 # Extract the first word of "ld", so it can be a program name with args.
3730 set dummy ld; ac_word=$2
3731 echo "$as_me:3731: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 if test -n "$ac_ct_LD"; then
3737 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3739 ac_save_IFS=$IFS; IFS=$ac_path_separator
3741 for ac_dir in $ac_dummy; do
3743 test -z "$ac_dir" && ac_dir=.
3744 $as_executable_p "$ac_dir/$ac_word" || continue
3745 ac_cv_prog_ac_ct_LD="ld"
3746 echo "$as_me:3746: found $ac_dir/$ac_word" >&5
3750 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3753 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3754 if test -n "$ac_ct_LD"; then
3755 echo "$as_me:3755: result: $ac_ct_LD" >&5
3756 echo "${ECHO_T}$ac_ct_LD" >&6
3758 echo "$as_me:3758: result: no" >&5
3759 echo "${ECHO_T}no" >&6
3767 if test -n "$ac_tool_prefix"; then
3768 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3769 set dummy ${ac_tool_prefix}ar; ac_word=$2
3770 echo "$as_me:3770: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772 if test "${ac_cv_prog_AR+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 if test -n "$AR"; then
3776 ac_cv_prog_AR="$AR" # Let the user override the test.
3778 ac_save_IFS=$IFS; IFS=$ac_path_separator
3780 for ac_dir in $ac_dummy; do
3782 test -z "$ac_dir" && ac_dir=.
3783 $as_executable_p "$ac_dir/$ac_word" || continue
3784 ac_cv_prog_AR="${ac_tool_prefix}ar"
3785 echo "$as_me:3785: found $ac_dir/$ac_word" >&5
3792 if test -n "$AR"; then
3793 echo "$as_me:3793: result: $AR" >&5
3794 echo "${ECHO_T}$AR" >&6
3796 echo "$as_me:3796: result: no" >&5
3797 echo "${ECHO_T}no" >&6
3801 if test -z "$ac_cv_prog_AR"; then
3803 # Extract the first word of "ar", so it can be a program name with args.
3804 set dummy ar; ac_word=$2
3805 echo "$as_me:3805: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 if test -n "$ac_ct_AR"; then
3811 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3813 ac_save_IFS=$IFS; IFS=$ac_path_separator
3815 for ac_dir in $ac_dummy; do
3817 test -z "$ac_dir" && ac_dir=.
3818 $as_executable_p "$ac_dir/$ac_word" || continue
3819 ac_cv_prog_ac_ct_AR="ar"
3820 echo "$as_me:3820: found $ac_dir/$ac_word" >&5
3824 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3827 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3828 if test -n "$ac_ct_AR"; then
3829 echo "$as_me:3829: result: $ac_ct_AR" >&5
3830 echo "${ECHO_T}$ac_ct_AR" >&6
3832 echo "$as_me:3832: result: no" >&5
3833 echo "${ECHO_T}no" >&6
3841 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 echo "$as_me:3845: checking for archiver options (symbol AR_OPTS)" >&5
3846 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3848 if test -z "$AR_OPTS" ; then
3853 cf_cv_subst_AR_OPTS=$AR_OPTS
3854 echo "$as_me:3854: result: $AR_OPTS" >&5
3855 echo "${ECHO_T}$AR_OPTS" >&6
3859 echo "$as_me:3859: checking if you have specified an install-prefix" >&5
3860 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3862 # Check whether --with-install-prefix or --without-install-prefix was given.
3863 if test "${with_install_prefix+set}" = set; then
3864 withval="$with_install_prefix"
3865 case "$withval" in #(vi
3868 *) DESTDIR="$withval"
3872 echo "$as_me:3872: result: $DESTDIR" >&5
3873 echo "${ECHO_T}$DESTDIR" >&6
3875 ###############################################################################
3877 # If we're cross-compiling, allow the user to override the tools and their
3878 # options. The configure script is oriented toward identifying the host
3879 # compiler, etc., but we need a build compiler to generate parts of the source.
3881 if test "$cross_compiling" = yes ; then
3883 # defaults that we might want to override
3884 : ${BUILD_CFLAGS:=''}
3885 : ${BUILD_CPPFLAGS:=''}
3886 : ${BUILD_LDFLAGS:=''}
3888 : ${BUILD_EXEEXT:='$x'}
3889 : ${BUILD_OBJEXT:='o'}
3891 # Check whether --with-build-cc or --without-build-cc was given.
3892 if test "${with_build_cc+set}" = set; then
3893 withval="$with_build_cc"
3896 for ac_prog in gcc cc cl
3898 # Extract the first word of "$ac_prog", so it can be a program name with args.
3899 set dummy $ac_prog; ac_word=$2
3900 echo "$as_me:3900: checking for $ac_word" >&5
3901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3902 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 if test -n "$BUILD_CC"; then
3906 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3908 ac_save_IFS=$IFS; IFS=$ac_path_separator
3910 for ac_dir in $ac_dummy; do
3912 test -z "$ac_dir" && ac_dir=.
3913 $as_executable_p "$ac_dir/$ac_word" || continue
3914 ac_cv_prog_BUILD_CC="$ac_prog"
3915 echo "$as_me:3915: found $ac_dir/$ac_word" >&5
3921 BUILD_CC=$ac_cv_prog_BUILD_CC
3922 if test -n "$BUILD_CC"; then
3923 echo "$as_me:3923: result: $BUILD_CC" >&5
3924 echo "${ECHO_T}$BUILD_CC" >&6
3926 echo "$as_me:3926: result: no" >&5
3927 echo "${ECHO_T}no" >&6
3930 test -n "$BUILD_CC" && break
3934 echo "$as_me:3934: checking for native build C compiler" >&5
3935 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3936 echo "$as_me:3936: result: $BUILD_CC" >&5
3937 echo "${ECHO_T}$BUILD_CC" >&6
3939 echo "$as_me:3939: checking for native build C preprocessor" >&5
3940 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3942 # Check whether --with-build-cpp or --without-build-cpp was given.
3943 if test "${with_build_cpp+set}" = set; then
3944 withval="$with_build_cpp"
3945 BUILD_CPP="$withval"
3947 BUILD_CPP='${BUILD_CC} -E'
3949 echo "$as_me:3949: result: $BUILD_CPP" >&5
3950 echo "${ECHO_T}$BUILD_CPP" >&6
3952 echo "$as_me:3952: checking for native build C flags" >&5
3953 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3955 # Check whether --with-build-cflags or --without-build-cflags was given.
3956 if test "${with_build_cflags+set}" = set; then
3957 withval="$with_build_cflags"
3958 BUILD_CFLAGS="$withval"
3960 echo "$as_me:3960: result: $BUILD_CFLAGS" >&5
3961 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3963 echo "$as_me:3963: checking for native build C preprocessor-flags" >&5
3964 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3966 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3967 if test "${with_build_cppflags+set}" = set; then
3968 withval="$with_build_cppflags"
3969 BUILD_CPPFLAGS="$withval"
3971 echo "$as_me:3971: result: $BUILD_CPPFLAGS" >&5
3972 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3974 echo "$as_me:3974: checking for native build linker-flags" >&5
3975 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3977 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3978 if test "${with_build_ldflags+set}" = set; then
3979 withval="$with_build_ldflags"
3980 BUILD_LDFLAGS="$withval"
3982 echo "$as_me:3982: result: $BUILD_LDFLAGS" >&5
3983 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3985 echo "$as_me:3985: checking for native build linker-libraries" >&5
3986 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3988 # Check whether --with-build-libs or --without-build-libs was given.
3989 if test "${with_build_libs+set}" = set; then
3990 withval="$with_build_libs"
3991 BUILD_LIBS="$withval"
3993 echo "$as_me:3993: result: $BUILD_LIBS" >&5
3994 echo "${ECHO_T}$BUILD_LIBS" >&6
3996 # this assumes we're on Unix.
4000 : ${BUILD_CC:='${CC}'}
4002 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4003 { { echo "$as_me:4003: error: Cross-build requires two compilers.
4004 Use --with-build-cc to specify the native compiler." >&5
4005 echo "$as_me: error: Cross-build requires two compilers.
4006 Use --with-build-cc to specify the native compiler." >&2;}
4007 { (exit 1); exit 1; }; }
4011 : ${BUILD_CC:='${CC}'}
4012 : ${BUILD_CPP:='${CPP}'}
4013 : ${BUILD_CFLAGS:='${CFLAGS}'}
4014 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4015 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4016 : ${BUILD_LIBS:='${LIBS}'}
4017 : ${BUILD_EXEEXT:='$x'}
4018 : ${BUILD_OBJEXT:='o'}
4021 ###############################################################################
4023 ### Options to allow the user to specify the set of libraries which are used.
4024 ### Use "--without-normal --with-shared" to allow the default model to be
4025 ### shared, for example.
4030 # common library maintenance symbols that are convenient for libtool scripts:
4031 LIB_CREATE='${AR} -cr'
4032 LIB_OBJECT='${OBJECTS}'
4036 # symbols used to prop libtool up to enable it to determine what it should be
4044 echo "$as_me:4044: checking if you want to build libraries with libtool" >&5
4045 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4047 # Check whether --with-libtool or --without-libtool was given.
4048 if test "${with_libtool+set}" = set; then
4049 withval="$with_libtool"
4050 with_libtool=$withval
4054 echo "$as_me:4054: result: $with_libtool" >&5
4055 echo "${ECHO_T}$with_libtool" >&6
4056 if test "$with_libtool" != "no"; then
4058 if test "$with_libtool" != "yes" ; then
4060 if test "x$prefix" != xNONE; then
4061 cf_path_syntax="$prefix"
4063 cf_path_syntax="$ac_default_prefix"
4066 case ".$with_libtool" in #(vi
4067 .\$\(*\)*|.\'*\'*) #(vi
4071 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4074 eval with_libtool="$with_libtool"
4075 case ".$with_libtool" in #(vi
4077 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4082 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4085 { { echo "$as_me:4085: error: expected a pathname, not \"$with_libtool\"" >&5
4086 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4087 { (exit 1); exit 1; }; }
4091 LIBTOOL=$with_libtool
4093 # Extract the first word of "libtool", so it can be a program name with args.
4094 set dummy libtool; ac_word=$2
4095 echo "$as_me:4095: checking for $ac_word" >&5
4096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4097 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4105 ac_save_IFS=$IFS; IFS=$ac_path_separator
4107 for ac_dir in $ac_dummy; do
4109 test -z "$ac_dir" && ac_dir=.
4110 if $as_executable_p "$ac_dir/$ac_word"; then
4111 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4112 echo "$as_me:4112: found $ac_dir/$ac_word" >&5
4120 LIBTOOL=$ac_cv_path_LIBTOOL
4122 if test -n "$LIBTOOL"; then
4123 echo "$as_me:4123: result: $LIBTOOL" >&5
4124 echo "${ECHO_T}$LIBTOOL" >&6
4126 echo "$as_me:4126: result: no" >&5
4127 echo "${ECHO_T}no" >&6
4131 if test -z "$LIBTOOL" ; then
4132 { { echo "$as_me:4132: error: Cannot find libtool" >&5
4133 echo "$as_me: error: Cannot find libtool" >&2;}
4134 { (exit 1); exit 1; }; }
4136 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} -o'
4137 LIB_OBJECT='${OBJECTS:.o=.lo}'
4139 LIB_CLEAN='${LIBTOOL} --mode=clean'
4140 LIB_COMPILE='${LIBTOOL} --mode=compile'
4141 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4142 LIB_INSTALL='${LIBTOOL} --mode=install'
4143 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4146 # Show the version of libtool
4147 echo "$as_me:4147: checking version of libtool" >&5
4148 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4150 # Save the version in a cache variable - this is not entirely a good
4151 # thing, but the version string from libtool is very ugly, and for
4152 # bug reports it might be useful to have the original string.
4153 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4154 echo "$as_me:4154: result: $cf_cv_libtool_version" >&5
4155 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4156 if test -z "$cf_cv_libtool_version" ; then
4157 { { echo "$as_me:4157: error: This is not GNU libtool" >&5
4158 echo "$as_me: error: This is not GNU libtool" >&2;}
4159 { (exit 1); exit 1; }; }
4162 # special hack to add --tag option for C++ compiler
4163 case $cf_cv_libtool_version in
4165 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4166 LIBTOOL="$LIBTOOL --tag=CC"
4169 LIBTOOL_CXX="$LIBTOOL"
4177 test -z "$LIBTOOL" && ECHO_LT=
4179 if test "$with_libtool" != "no" ; then
4181 cf_list_models="$cf_list_models libtool"
4185 echo "$as_me:4185: checking if you want to build shared libraries" >&5
4186 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4188 # Check whether --with-shared or --without-shared was given.
4189 if test "${with_shared+set}" = set; then
4190 withval="$with_shared"
4191 with_shared=$withval
4195 echo "$as_me:4195: result: $with_shared" >&5
4196 echo "${ECHO_T}$with_shared" >&6
4197 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4199 echo "$as_me:4199: checking if you want to build static libraries" >&5
4200 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4202 # Check whether --with-normal or --without-normal was given.
4203 if test "${with_normal+set}" = set; then
4204 withval="$with_normal"
4205 with_normal=$withval
4209 echo "$as_me:4209: result: $with_normal" >&5
4210 echo "${ECHO_T}$with_normal" >&6
4211 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4213 echo "$as_me:4213: checking if you want to build debug libraries" >&5
4214 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4216 # Check whether --with-debug or --without-debug was given.
4217 if test "${with_debug+set}" = set; then
4218 withval="$with_debug"
4223 echo "$as_me:4223: result: $with_debug" >&5
4224 echo "${ECHO_T}$with_debug" >&6
4225 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4227 echo "$as_me:4227: checking if you want to build profiling libraries" >&5
4228 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4230 # Check whether --with-profile or --without-profile was given.
4231 if test "${with_profile+set}" = set; then
4232 withval="$with_profile"
4233 with_profile=$withval
4237 echo "$as_me:4237: result: $with_profile" >&5
4238 echo "${ECHO_T}$with_profile" >&6
4239 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4243 ###############################################################################
4245 echo "$as_me:4245: checking for specified models" >&5
4246 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4247 test -z "$cf_list_models" && cf_list_models=normal
4248 test "$with_libtool" != "no" && cf_list_models=libtool
4249 echo "$as_me:4249: result: $cf_list_models" >&5
4250 echo "${ECHO_T}$cf_list_models" >&6
4252 ### Use the first model as the default, and save its suffix for use in building
4253 ### up test-applications.
4254 echo "$as_me:4254: checking for default model" >&5
4255 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4256 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4257 echo "$as_me:4257: result: $DFT_LWR_MODEL" >&5
4258 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4260 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4271 case $cf_cv_system_name in #(vi
4278 cf_prefix=$LIB_PREFIX
4280 LIB_PREFIX=$cf_prefix
4284 ###############################################################################
4286 echo "$as_me:4286: checking if you want to build a separate terminfo library" >&5
4287 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4289 # Check whether --with-termlib or --without-termlib was given.
4290 if test "${with_termlib+set}" = set; then
4291 withval="$with_termlib"
4292 with_termlib=$withval
4296 echo "$as_me:4296: result: $with_termlib" >&5
4297 echo "${ECHO_T}$with_termlib" >&6
4299 echo "$as_me:4299: checking if you want to build a separate tic library" >&5
4300 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4302 # Check whether --with-ticlib or --without-ticlib was given.
4303 if test "${with_ticlib+set}" = set; then
4304 withval="$with_ticlib"
4305 with_ticlib=$withval
4309 echo "$as_me:4309: result: $with_ticlib" >&5
4310 echo "${ECHO_T}$with_ticlib" >&6
4312 ### Checks for special libraries, must be done up-front.
4315 echo "$as_me:4315: checking if you want to link with the GPM mouse library" >&5
4316 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4318 # Check whether --with-gpm or --without-gpm was given.
4319 if test "${with_gpm+set}" = set; then
4325 echo "$as_me:4325: result: $with_gpm" >&5
4326 echo "${ECHO_T}$with_gpm" >&6
4328 if test "$with_gpm" != no ; then
4329 echo "$as_me:4329: checking for gpm.h" >&5
4330 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4331 if test "${ac_cv_header_gpm_h+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 cat >conftest.$ac_ext <<_ACEOF
4335 #line 4335 "configure"
4336 #include "confdefs.h"
4339 if { (eval echo "$as_me:4339: \"$ac_cpp conftest.$ac_ext\"") >&5
4340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4342 egrep -v '^ *\+' conftest.er1 >conftest.err
4344 cat conftest.err >&5
4345 echo "$as_me:4345: \$? = $ac_status" >&5
4346 (exit $ac_status); } >/dev/null; then
4347 if test -s conftest.err; then
4348 ac_cpp_err=$ac_c_preproc_warn_flag
4355 if test -z "$ac_cpp_err"; then
4356 ac_cv_header_gpm_h=yes
4358 echo "$as_me: failed program was:" >&5
4359 cat conftest.$ac_ext >&5
4360 ac_cv_header_gpm_h=no
4362 rm -f conftest.err conftest.$ac_ext
4364 echo "$as_me:4364: result: $ac_cv_header_gpm_h" >&5
4365 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4366 if test $ac_cv_header_gpm_h = yes; then
4368 cat >>confdefs.h <<\EOF
4369 #define HAVE_GPM_H 1
4372 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4373 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4375 echo "${as_me-configure}:4375: testing assuming we really have GPM library ..." 1>&5
4377 cat >>confdefs.h <<\EOF
4378 #define HAVE_LIBGPM 1
4382 echo "$as_me:4382: checking for Gpm_Open in -lgpm" >&5
4383 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4384 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 ac_check_lib_save_LIBS=$LIBS
4389 cat >conftest.$ac_ext <<_ACEOF
4390 #line 4390 "configure"
4391 #include "confdefs.h"
4393 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */
4408 rm -f conftest.$ac_objext conftest$ac_exeext
4409 if { (eval echo "$as_me:4409: \"$ac_link\"") >&5
4410 (eval $ac_link) 2>&5
4412 echo "$as_me:4412: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -s conftest$ac_exeext'
4415 { (eval echo "$as_me:4415: \"$ac_try\"") >&5
4418 echo "$as_me:4418: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_cv_lib_gpm_Gpm_Open=yes
4422 echo "$as_me: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 ac_cv_lib_gpm_Gpm_Open=no
4426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4427 LIBS=$ac_check_lib_save_LIBS
4429 echo "$as_me:4429: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4430 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4431 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4435 { { echo "$as_me:4435: error: Cannot link with GPM library" >&5
4436 echo "$as_me: error: Cannot link with GPM library" >&2;}
4437 { (exit 1); exit 1; }; }
4445 test "$with_gpm" != maybe && { echo "$as_me:4445: WARNING: Cannot find GPM header" >&5
4446 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4453 if test "$with_gpm" != no ; then
4454 echo "$as_me:4454: checking if you want to load GPM dynamically" >&5
4455 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4457 # Check whether --with-dlsym or --without-dlsym was given.
4458 if test "${with_dlsym+set}" = set; then
4459 withval="$with_dlsym"
4464 echo "$as_me:4464: result: $with_dlsym" >&5
4465 echo "${ECHO_T}$with_dlsym" >&6
4466 if test "$with_dlsym" = yes ; then
4469 echo "$as_me:4469: checking for dlsym" >&5
4470 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4471 if test "${ac_cv_func_dlsym+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 cat >conftest.$ac_ext <<_ACEOF
4475 #line 4475 "configure"
4476 #include "confdefs.h"
4477 /* System header to define __stub macros and hopefully few prototypes,
4478 which can conflict with char dlsym (); below. */
4480 /* 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 /* The GNU C library defines this for functions which it implements
4493 to always fail with ENOSYS. Some functions are actually named
4494 something starting with __ and the normal name is an alias. */
4495 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4505 rm -f conftest.$ac_objext conftest$ac_exeext
4506 if { (eval echo "$as_me:4506: \"$ac_link\"") >&5
4507 (eval $ac_link) 2>&5
4509 echo "$as_me:4509: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try='test -s conftest$ac_exeext'
4512 { (eval echo "$as_me:4512: \"$ac_try\"") >&5
4515 echo "$as_me:4515: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 ac_cv_func_dlsym=yes
4519 echo "$as_me: failed program was:" >&5
4520 cat conftest.$ac_ext >&5
4523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4525 echo "$as_me:4525: result: $ac_cv_func_dlsym" >&5
4526 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4527 if test $ac_cv_func_dlsym = yes; then
4532 echo "$as_me:4532: checking for dlsym in -ldl" >&5
4533 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4534 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 ac_check_lib_save_LIBS=$LIBS
4539 cat >conftest.$ac_ext <<_ACEOF
4540 #line 4540 "configure"
4541 #include "confdefs.h"
4543 /* Override any gcc2 internal prototype to avoid an error. */
4547 /* We use char because int might match the return type of a gcc2
4548 builtin and then its argument prototype would still apply. */
4558 rm -f conftest.$ac_objext conftest$ac_exeext
4559 if { (eval echo "$as_me:4559: \"$ac_link\"") >&5
4560 (eval $ac_link) 2>&5
4562 echo "$as_me:4562: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -s conftest$ac_exeext'
4565 { (eval echo "$as_me:4565: \"$ac_try\"") >&5
4568 echo "$as_me:4568: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 ac_cv_lib_dl_dlsym=yes
4572 echo "$as_me: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4574 ac_cv_lib_dl_dlsym=no
4576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4577 LIBS=$ac_check_lib_save_LIBS
4579 echo "$as_me:4579: result: $ac_cv_lib_dl_dlsym" >&5
4580 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4581 if test $ac_cv_lib_dl_dlsym = yes; then
4589 if test "$cf_have_dlsym" = yes ; then
4590 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4592 echo "$as_me:4592: checking whether able to link to dl*() functions" >&5
4593 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4594 cat >conftest.$ac_ext <<_ACEOF
4595 #line 4595 "configure"
4596 #include "confdefs.h"
4603 if ((obj = dlopen("filename", 0)) != 0) {
4604 if (dlsym(obj, "symbolname") == 0) {
4612 rm -f conftest.$ac_objext conftest$ac_exeext
4613 if { (eval echo "$as_me:4613: \"$ac_link\"") >&5
4614 (eval $ac_link) 2>&5
4616 echo "$as_me:4616: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -s conftest$ac_exeext'
4619 { (eval echo "$as_me:4619: \"$ac_try\"") >&5
4622 echo "$as_me:4622: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4625 cat >>confdefs.h <<\EOF
4626 #define HAVE_LIBDL 1
4630 echo "$as_me: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4633 { { echo "$as_me:4633: error: Cannot link test program for libdl" >&5
4634 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4635 { (exit 1); exit 1; }; }
4637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4638 echo "$as_me:4638: result: ok" >&5
4639 echo "${ECHO_T}ok" >&6
4641 { { echo "$as_me:4641: error: Cannot find dlsym function" >&5
4642 echo "$as_me: error: Cannot find dlsym function" >&2;}
4643 { (exit 1); exit 1; }; }
4646 if test "$with_gpm" != yes ; then
4647 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4649 echo "${as_me-configure}:4649: testing assuming soname for gpm is $with_gpm ..." 1>&5
4651 cf_cv_gpm_soname="$with_gpm"
4654 echo "$as_me:4654: checking for soname of gpm library" >&5
4655 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
4656 if test "${cf_cv_gpm_soname+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 cf_cv_gpm_soname=unknown
4661 if test "$cross_compiling" != yes ; then
4662 cat >conftest.$ac_ext <<CF_EOF
4666 if (Gpm_Open(0,0)) Gpm_Close();
4667 ${cf_cv_main_return:-return}(0);
4670 cf_save_LIBS="$LIBS"
4672 if { (eval echo "$as_me:4672: \"$ac_compile\"") >&5
4673 (eval $ac_compile) 2>&5
4675 echo "$as_me:4675: \$? = $ac_status" >&5
4676 (exit $ac_status); } ; then
4677 if { (eval echo "$as_me:4677: \"$ac_link\"") >&5
4678 (eval $ac_link) 2>&5
4680 echo "$as_me:4680: \$? = $ac_status" >&5
4681 (exit $ac_status); } ; then
4682 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
4683 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
4687 LIBS="$cf_save_LIBS"
4691 echo "$as_me:4691: result: $cf_cv_gpm_soname" >&5
4692 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
4695 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
4696 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
4699 SHLIB_LIST="-ldl $SHLIB_LIST"
4701 SHLIB_LIST="-lgpm $SHLIB_LIST"
4703 cat >>confdefs.h <<\EOF
4704 #define HAVE_LIBGPM 1
4707 echo "$as_me:4707: checking for Gpm_Wgetch in -lgpm" >&5
4708 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
4709 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 ac_check_lib_save_LIBS=$LIBS
4714 cat >conftest.$ac_ext <<_ACEOF
4715 #line 4715 "configure"
4716 #include "confdefs.h"
4718 /* Override any gcc2 internal prototype to avoid an error. */
4722 /* We use char because int might match the return type of a gcc2
4723 builtin and then its argument prototype would still apply. */
4733 rm -f conftest.$ac_objext conftest$ac_exeext
4734 if { (eval echo "$as_me:4734: \"$ac_link\"") >&5
4735 (eval $ac_link) 2>&5
4737 echo "$as_me:4737: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -s conftest$ac_exeext'
4740 { (eval echo "$as_me:4740: \"$ac_try\"") >&5
4743 echo "$as_me:4743: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 ac_cv_lib_gpm_Gpm_Wgetch=yes
4747 echo "$as_me: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4749 ac_cv_lib_gpm_Gpm_Wgetch=no
4751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4752 LIBS=$ac_check_lib_save_LIBS
4754 echo "$as_me:4754: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
4755 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
4756 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
4758 echo "$as_me:4758: checking if GPM is weakly bound to curses library" >&5
4759 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
4760 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 cf_cv_check_gpm_wgetch=unknown
4765 if test "$cross_compiling" != yes ; then
4767 cat >conftest.$ac_ext <<CF_EOF
4772 ${cf_cv_main_return:-return}(0);
4776 cf_save_LIBS="$LIBS"
4777 # This only works if we can look at the symbol table. If a shared
4778 # library is stripped for install, we cannot use that. So we're forced
4779 # to rely on the static library, noting that some packagers may not
4781 LIBS="-static -lgpm -dynamic $LIBS"
4782 if { (eval echo "$as_me:4782: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>&5
4785 echo "$as_me:4785: \$? = $ac_status" >&5
4786 (exit $ac_status); } ; then
4787 if { (eval echo "$as_me:4787: \"$ac_link\"") >&5
4788 (eval $ac_link) 2>&5
4790 echo "$as_me:4790: \$? = $ac_status" >&5
4791 (exit $ac_status); } ; then
4792 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
4793 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
4794 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
4798 LIBS="$cf_save_LIBS"
4802 echo "$as_me:4802: result: $cf_cv_check_gpm_wgetch" >&5
4803 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
4805 if test "$cf_cv_check_gpm_wgetch" != yes ; then
4806 { echo "$as_me:4806: WARNING: GPM library is already linked with curses - read the FAQ" >&5
4807 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
4814 # not everyone has "test -c"
4815 if test -c /dev/sysmouse 2>/dev/null ; then
4816 echo "$as_me:4816: checking if you want to use sysmouse" >&5
4817 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
4819 # Check whether --with-sysmouse or --without-sysmouse was given.
4820 if test "${with_sysmouse+set}" = set; then
4821 withval="$with_sysmouse"
4822 cf_with_sysmouse=$withval
4824 cf_with_sysmouse=maybe
4826 if test "$cf_with_sysmouse" != no ; then
4827 cat >conftest.$ac_ext <<_ACEOF
4828 #line 4828 "configure"
4829 #include "confdefs.h"
4831 #include <osreldate.h>
4832 #if (__FreeBSD_version >= 400017)
4833 #include <sys/consio.h>
4834 #include <sys/fbio.h>
4836 #include <machine/console.h>
4843 struct mouse_info the_mouse;
4844 ioctl(0, CONS_MOUSECTL, &the_mouse);
4850 rm -f conftest.$ac_objext
4851 if { (eval echo "$as_me:4851: \"$ac_compile\"") >&5
4852 (eval $ac_compile) 2>&5
4854 echo "$as_me:4854: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
4856 { ac_try='test -s conftest.$ac_objext'
4857 { (eval echo "$as_me:4857: \"$ac_try\"") >&5
4860 echo "$as_me:4860: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4862 cf_with_sysmouse=yes
4864 echo "$as_me: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4868 rm -f conftest.$ac_objext conftest.$ac_ext
4870 echo "$as_me:4870: result: $cf_with_sysmouse" >&5
4871 echo "${ECHO_T}$cf_with_sysmouse" >&6
4872 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
4873 #define USE_SYSMOUSE 1
4878 if test X"$CC_G_OPT" = X"" ; then
4880 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
4883 if test X"$CXX_G_OPT" = X"" ; then
4885 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
4888 echo "$as_me:4888: checking for default loader flags" >&5
4889 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
4890 case $DFT_LWR_MODEL in
4891 libtool) LD_MODEL='' ;;
4892 normal) LD_MODEL='' ;;
4893 debug) LD_MODEL=$CC_G_OPT ;;
4894 profile) LD_MODEL='-pg';;
4895 shared) LD_MODEL='' ;;
4897 echo "$as_me:4897: result: $LD_MODEL" >&5
4898 echo "${ECHO_T}$LD_MODEL" >&6