2 # From configure.in Revision: 1.384 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20061216.
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-progs suppress build with programs (e.g., tic)
701 --without-curses-h install curses.h as ncurses.h only
702 --with-install-prefix prefixes actual install-location ($DESTDIR)
703 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
704 --with-build-cc=XXX the build C compiler ($BUILD_CC)
705 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
706 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
707 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
708 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
709 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
710 Options to Specify the Libraries Built/Used:
711 --with-libtool generate libraries with libtool
712 --with-shared generate shared-libraries
713 --with-normal generate normal-libraries (default)
714 --with-debug generate debug-libraries (default)
715 --with-profile generate profile-libraries
716 --with-termlib generate separate terminfo library
717 --with-gpm use Alessandro Rubini's GPM library
718 --without-dlsym do not use dlsym() to load GPM dynamically
719 --with-sysmouse use sysmouse (FreeBSD console)
720 --enable-rpath use rpath option when generating shared libraries
721 --with-shlib-version=X Specify rel or abi version for shared libs
722 Fine-Tuning Your Configuration:
723 --disable-overwrite leave out the link to -lcurses
724 --disable-database do not use terminfo, only fallbacks/termcap
725 --with-database=XXX specify terminfo source to install
726 --with-hashed-db specify hashed-database library
727 --with-fallbacks=XXX specify list of fallback terminal descriptions
728 --without-xterm-new specify if xterm terminfo should be old version
729 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
730 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
731 --disable-big-core assume machine has little memory
732 --enable-termcap compile in termcap fallback support
733 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
734 --enable-getcap fast termcap load, no xrefs to terminfo
735 --enable-getcap-cache cache translated termcaps in ~/.terminfo
736 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
737 --disable-root-environ restrict environment when running as root
738 --enable-symlinks make tic use symbolic links not hard links
739 --enable-broken_linker compile with broken-linker support code
740 --enable-bsdpad recognize BSD-style prefix padding
741 --enable-widec compile with wide-char/UTF-8 code
742 --disable-lp64 allow chtype to be long (ignore _LP64)
743 --disable-largefile omit support for large files
744 --disable-tparm-varargs compile tparm() without varargs interface
745 --with-bool=TYPE override fallback type of bool variable
746 --with-caps=alt compile with alternate Caps file
747 --with-chtype=TYPE override type of chtype
748 --with-ospeed=TYPE override type of ospeed variable
749 --with-mmask-t=TYPE override type of mmask_t
750 --with-rcs-ids compile-in RCS identifiers
751 Options to Specify How Manpages are Installed:
752 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
753 optionally formatted/catonly, e.g., gzip,formatted
754 --with-manpage-renames specify manpage-renaming
755 --with-manpage-aliases specify manpage-aliases using .so
756 --with-manpage-symlinks specify manpage-aliases using symlinks
757 --with-manpage-tbl specify manpage processing with tbl
759 --disable-ext-funcs disable function-extensions
760 --enable-const compile with extra/non-standard const
761 --enable-no-padding compile with $NCURSES_NO_PADDING code
762 --enable-signed-char compile with SIGWINCH handler
763 --enable-sigwinch compile with SIGWINCH handler
764 --enable-tcap-names compile with user-definable terminal capabilities
766 --without-develop disable development options
767 --enable-hard-tabs compile with hard-tabs code
768 --enable-xmc-glitch compile with support for xmc (magic-cookie)
770 --disable-assumed-color do not assume anything about default-colors
771 --disable-hashmap compile without hashmap scrolling-optimization
772 --enable-colorfgbg compile with $COLORFGBG code
773 --enable-ext-colors compile for experimental 256-color support
774 --enable-ext-mouse compile for experimental mouse-encoding
775 --enable-safe-sprintf compile with experimental safe-sprintf code
776 --disable-scroll-hints compile without scroll-hints code
777 --enable-wgetch-events compile with experimental wgetch-events code
778 Testing/development Options:
779 --enable-echo build: display "compiling" commands (default)
780 --enable-warnings build: turn on GCC compiler warnings
781 --enable-assertions test: turn on generation of assertion code
782 --with-dmalloc test: use Gray Watson's dmalloc library
783 --with-dbmalloc test: use Conor Cahill's dbmalloc library
784 --with-valgrind test: use valgrind
785 --disable-leaks test: free permanent memory, analyze leaks
786 --enable-expanded test: generate functions for certain macros
787 --disable-macros test: use functions rather than macros
788 --with-trace test: add trace() function to all models of ncurses
789 Ada95 Binding Options:
790 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
791 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
792 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
794 Some influential environment variables:
795 CC C compiler command
796 CFLAGS C compiler flags
797 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
798 nonstandard directory <lib dir>
799 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
800 headers in a nonstandard directory <include dir>
802 CXX C++ compiler command
803 CXXFLAGS C++ compiler flags
804 CXXCPP C++ preprocessor
806 Use these variables to override the choices made by `configure' or to help
807 it to find libraries and programs with nonstandard names/locations.
812 if test "$ac_init_help" = "recursive"; then
813 # If there are subdirs, report their specific --help.
815 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
817 # A "../" for each directory in /$ac_subdir.
818 ac_dots=`echo $ac_subdir |
819 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
822 .) # No --srcdir option. We are building in place.
823 ac_sub_srcdir=$srcdir ;;
824 [\\/]* | ?:[\\/]* ) # Absolute path.
825 ac_sub_srcdir=$srcdir/$ac_subdir ;;
827 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
830 # Check for guested configure; otherwise get Cygnus style configure.
831 if test -f $ac_sub_srcdir/configure.gnu; then
833 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
834 elif test -f $ac_sub_srcdir/configure; then
836 $SHELL $ac_sub_srcdir/configure --help=recursive
837 elif test -f $ac_sub_srcdir/configure.ac ||
838 test -f $ac_sub_srcdir/configure.in; then
842 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
848 test -n "$ac_init_help" && exit 0
849 if $ac_init_version; then
852 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
853 Free Software Foundation, Inc.
854 This configure script is free software; the Free Software Foundation
855 gives unlimited permission to copy, distribute and modify it.
861 This file contains any messages produced by compilers while
862 running configure, to aid debugging if configure makes a mistake.
864 It was created by $as_me, which was
865 generated by GNU Autoconf 2.52.20061216. Invocation command line was
876 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
877 uname -m = `(uname -m) 2>/dev/null || echo unknown`
878 uname -r = `(uname -r) 2>/dev/null || echo unknown`
879 uname -s = `(uname -s) 2>/dev/null || echo unknown`
880 uname -v = `(uname -v) 2>/dev/null || echo unknown`
882 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
883 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
885 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
886 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
887 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
888 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
889 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
890 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
891 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
905 # Keep a trace of the command line.
906 # Strip out --no-create and --no-recursion so they do not pile up.
907 # Also quote any args containing shell meta-characters.
913 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
914 | --no-cr | --no-c) ;;
915 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
916 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
917 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
918 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
919 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
921 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
924 # Get rid of the leading space.
927 # When interrupted or exit'd, cleanup temporary files, and complete
928 # config.log. We remove comments because anyway the quotes in there
929 # would cause problems or look ugly.
931 # Save into config.log some information that might help in debugging.
933 echo "## ----------------- ##" >&5
934 echo "## Cache variables. ##" >&5
935 echo "## ----------------- ##" >&5
937 # The following way of writing the cache mishandles newlines in values,
940 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
943 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
948 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
952 sed "/^$/d" confdefs.h >conftest.log
953 if test -s conftest.log; then
955 echo "## ------------ ##" >&5
956 echo "## confdefs.h. ##" >&5
957 echo "## ------------ ##" >&5
962 test "$ac_signal" != 0 &&
963 echo "$as_me: caught signal $ac_signal" >&5
964 echo "$as_me: exit $exit_status" >&5
965 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
968 for ac_signal in 1 2 13 15; do
969 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
973 # confdefs.h avoids OS command line length limits that DEFS can exceed.
974 rm -rf conftest* confdefs.h
975 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
978 # Let the site file select an alternate cache file if it wants to.
979 # Prefer explicitly selected file to automatically selected ones.
980 if test -z "$CONFIG_SITE"; then
981 if test "x$prefix" != xNONE; then
982 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
984 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
987 for ac_site_file in $CONFIG_SITE; do
988 if test -r "$ac_site_file"; then
989 { echo "$as_me:989: loading site script $ac_site_file" >&5
990 echo "$as_me: loading site script $ac_site_file" >&6;}
991 cat "$ac_site_file" >&5
996 if test -r "$cache_file"; then
997 # Some versions of bash will fail to source /dev/null (special
998 # files actually), so we avoid doing that.
999 if test -f "$cache_file"; then
1000 { echo "$as_me:1000: loading cache $cache_file" >&5
1001 echo "$as_me: loading cache $cache_file" >&6;}
1003 [\\/]* | ?:[\\/]* ) . $cache_file;;
1004 *) . ./$cache_file;;
1008 { echo "$as_me:1008: creating cache $cache_file" >&5
1009 echo "$as_me: creating cache $cache_file" >&6;}
1013 # Check that the precious variables saved in the cache have kept the same
1015 ac_cache_corrupted=false
1016 for ac_var in `(set) 2>&1 |
1017 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1018 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1019 eval ac_new_set=\$ac_env_${ac_var}_set
1020 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1021 eval ac_new_val="\$ac_env_${ac_var}_value"
1022 case $ac_old_set,$ac_new_set in
1024 { echo "$as_me:1024: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1025 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1026 ac_cache_corrupted=: ;;
1028 { echo "$as_me:1028: error: \`$ac_var' was not set in the previous run" >&5
1029 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1030 ac_cache_corrupted=: ;;
1033 if test "x$ac_old_val" != "x$ac_new_val"; then
1034 { echo "$as_me:1034: error: \`$ac_var' has changed since the previous run:" >&5
1035 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1036 { echo "$as_me:1036: former value: $ac_old_val" >&5
1037 echo "$as_me: former value: $ac_old_val" >&2;}
1038 { echo "$as_me:1038: current value: $ac_new_val" >&5
1039 echo "$as_me: current value: $ac_new_val" >&2;}
1040 ac_cache_corrupted=:
1043 # Pass precious variables to config.status. It doesn't matter if
1044 # we pass some twice (in addition to the command line arguments).
1045 if test "$ac_new_set" = set; then
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1049 ac_configure_args="$ac_configure_args '$ac_arg'"
1051 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1056 if $ac_cache_corrupted; then
1057 { echo "$as_me:1057: error: changes in the environment can compromise the build" >&5
1058 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1059 { { echo "$as_me:1059: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1060 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1061 { (exit 1); exit 1; }; }
1065 ac_cpp='$CPP $CPPFLAGS'
1066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1069 ac_main_return=return
1071 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1072 *c*,-n*) ECHO_N= ECHO_C='
1074 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1075 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1077 echo "#! $SHELL" >conftest.sh
1078 echo "exit 0" >>conftest.sh
1079 chmod +x conftest.sh
1080 if { (echo "$as_me:1080: PATH=\".;.\"; conftest.sh") >&5
1081 (PATH=".;."; conftest.sh) 2>&5
1083 echo "$as_me:1083: \$? = $ac_status" >&5
1084 (exit $ac_status); }; then
1085 ac_path_separator=';'
1089 PATH_SEPARATOR="$ac_path_separator"
1092 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1096 echo "$as_me:1096: checking for egrep" >&5
1097 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1098 if test "${ac_cv_prog_egrep+set}" = set; then
1099 echo $ECHO_N "(cached) $ECHO_C" >&6
1101 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1102 then ac_cv_prog_egrep='grep -E'
1103 else ac_cv_prog_egrep='egrep'
1106 echo "$as_me:1106: result: $ac_cv_prog_egrep" >&5
1107 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1108 EGREP=$ac_cv_prog_egrep
1110 test -z "$EGREP" && { { echo "$as_me:1110: error: No egrep program found" >&5
1111 echo "$as_me: error: No egrep program found" >&2;}
1112 { (exit 1); exit 1; }; }
1114 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1115 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1116 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1117 cf_cv_abi_version=${NCURSES_MAJOR}
1118 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1119 cf_cv_timestamp=`date`
1120 echo "$as_me:1120: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1121 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1123 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1125 # Check whether --with-rel-version or --without-rel-version was given.
1126 if test "${with_rel_version+set}" = set; then
1127 withval="$with_rel_version"
1128 { echo "$as_me:1128: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1129 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1130 cf_cv_rel_version=$withval
1133 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1134 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1136 if test -n "$NCURSES_MAJOR" ; then
1137 case $NCURSES_MAJOR in #(vi
1141 { { echo "$as_me:1141: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1142 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1143 { (exit 1); exit 1; }; }
1147 { { echo "$as_me:1147: error: Release major-version value is empty" >&5
1148 echo "$as_me: error: Release major-version value is empty" >&2;}
1149 { (exit 1); exit 1; }; }
1152 if test -n "$NCURSES_MINOR" ; then
1153 case $NCURSES_MINOR in #(vi
1157 { { echo "$as_me:1157: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1158 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1159 { (exit 1); exit 1; }; }
1163 { { echo "$as_me:1163: error: Release minor-version value is empty" >&5
1164 echo "$as_me: error: Release minor-version value is empty" >&2;}
1165 { (exit 1); exit 1; }; }
1168 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1170 # Check whether --with-abi-version or --without-abi-version was given.
1171 if test "${with_abi_version+set}" = set; then
1172 withval="$with_abi_version"
1173 { echo "$as_me:1173: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1174 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1175 cf_cv_abi_version=$withval
1178 if test -n "$cf_cv_abi_version" ; then
1179 case $cf_cv_abi_version in #(vi
1183 { { echo "$as_me:1183: error: ABI version is not a number: $cf_cv_abi_version" >&5
1184 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1185 { (exit 1); exit 1; }; }
1189 { { echo "$as_me:1189: error: ABI version value is empty" >&5
1190 echo "$as_me: error: ABI version value is empty" >&2;}
1191 { (exit 1); exit 1; }; }
1195 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1196 if test -f $ac_dir/install-sh; then
1198 ac_install_sh="$ac_aux_dir/install-sh -c"
1200 elif test -f $ac_dir/install.sh; then
1202 ac_install_sh="$ac_aux_dir/install.sh -c"
1204 elif test -f $ac_dir/shtool; then
1206 ac_install_sh="$ac_aux_dir/shtool install -c"
1210 if test -z "$ac_aux_dir"; then
1211 { { echo "$as_me:1211: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1212 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1213 { (exit 1); exit 1; }; }
1215 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1216 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1217 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1219 # Make sure we can run config.sub.
1220 $ac_config_sub sun4 >/dev/null 2>&1 ||
1221 { { echo "$as_me:1221: error: cannot run $ac_config_sub" >&5
1222 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1223 { (exit 1); exit 1; }; }
1225 echo "$as_me:1225: checking build system type" >&5
1226 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1227 if test "${ac_cv_build+set}" = set; then
1228 echo $ECHO_N "(cached) $ECHO_C" >&6
1230 ac_cv_build_alias=$build_alias
1231 test -z "$ac_cv_build_alias" &&
1232 ac_cv_build_alias=`$ac_config_guess`
1233 test -z "$ac_cv_build_alias" &&
1234 { { echo "$as_me:1234: error: cannot guess build type; you must specify one" >&5
1235 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1236 { (exit 1); exit 1; }; }
1237 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1238 { { echo "$as_me:1238: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1239 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1240 { (exit 1); exit 1; }; }
1243 echo "$as_me:1243: result: $ac_cv_build" >&5
1244 echo "${ECHO_T}$ac_cv_build" >&6
1246 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1247 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1248 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1250 echo "$as_me:1250: checking host system type" >&5
1251 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1252 if test "${ac_cv_host+set}" = set; then
1253 echo $ECHO_N "(cached) $ECHO_C" >&6
1255 ac_cv_host_alias=$host_alias
1256 test -z "$ac_cv_host_alias" &&
1257 ac_cv_host_alias=$ac_cv_build_alias
1258 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1259 { { echo "$as_me:1259: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1260 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1261 { (exit 1); exit 1; }; }
1264 echo "$as_me:1264: result: $ac_cv_host" >&5
1265 echo "${ECHO_T}$ac_cv_host" >&6
1267 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1268 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1269 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1272 echo "$as_me:1272: checking target system type" >&5
1273 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1274 if test "${ac_cv_target+set}" = set; then
1275 echo $ECHO_N "(cached) $ECHO_C" >&6
1277 ac_cv_target_alias=$target_alias
1278 test "x$ac_cv_target_alias" = "x" &&
1279 ac_cv_target_alias=$ac_cv_host_alias
1280 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1281 { { echo "$as_me:1281: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1282 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1283 { (exit 1); exit 1; }; }
1286 echo "$as_me:1286: result: $ac_cv_target" >&5
1287 echo "${ECHO_T}$ac_cv_target" >&6
1288 target=$ac_cv_target
1289 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1290 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1291 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1293 # The aliases save the names the user supplied, while $host etc.
1294 # will get canonicalized.
1295 test -n "$target_alias" &&
1296 test "$program_prefix$program_suffix$program_transform_name" = \
1298 program_prefix=${target_alias}-
1299 system_name="$host_os"
1301 system_name="`(uname -s -r) 2>/dev/null`"
1302 if test -z "$system_name" ; then
1303 system_name="`(hostname) 2>/dev/null`"
1306 test -n "$system_name" && cat >>confdefs.h <<EOF
1307 #define SYSTEM_NAME "$system_name"
1310 if test "${cf_cv_system_name+set}" = set; then
1311 echo $ECHO_N "(cached) $ECHO_C" >&6
1313 cf_cv_system_name="$system_name"
1316 test -z "$system_name" && system_name="$cf_cv_system_name"
1317 test -n "$cf_cv_system_name" && echo "$as_me:1317: result: Configuring for $cf_cv_system_name" >&5
1318 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1320 if test ".$system_name" != ".$cf_cv_system_name" ; then
1321 echo "$as_me:1321: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1322 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1323 { { echo "$as_me:1323: error: \"Please remove config.cache and try again.\"" >&5
1324 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1325 { (exit 1); exit 1; }; }
1328 # Check whether --with-system-type or --without-system-type was given.
1329 if test "${with_system_type+set}" = set; then
1330 withval="$with_system_type"
1331 { echo "$as_me:1331: WARNING: overriding system type to $withval" >&5
1332 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1333 cf_cv_system_name=$withval
1336 ### Save the given $CFLAGS to allow user-override.
1337 cf_user_CFLAGS="$CFLAGS"
1339 ### Default install-location
1341 echo "$as_me:1341: checking for prefix" >&5
1342 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1343 if test "x$prefix" = "xNONE" ; then
1344 case "$cf_cv_system_name" in
1345 # non-vendor systems don't have a conflict
1346 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1349 *) prefix=$ac_default_prefix
1353 echo "$as_me:1353: result: $prefix" >&5
1354 echo "${ECHO_T}$prefix" >&6
1356 if test "x$prefix" = "xNONE" ; then
1357 echo "$as_me:1357: checking for default include-directory" >&5
1358 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1359 test -n "$verbose" && echo 1>&6
1362 $includedir/ncurses \
1364 $prefix/include/ncurses \
1365 /usr/local/include \
1366 /usr/local/include/ncurses \
1368 /usr/include/ncurses
1370 cf_dir=`eval echo $cf_symbol`
1371 if test -f $cf_dir/curses.h ; then
1372 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1373 includedir="$cf_symbol"
1374 test -n "$verbose" && echo $ac_n " found " 1>&6
1378 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1380 echo "$as_me:1380: result: $includedir" >&5
1381 echo "${ECHO_T}$includedir" >&6
1384 ### Checks for programs.
1386 ac_cpp='$CPP $CPPFLAGS'
1387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1390 ac_main_return=return
1391 if test -n "$ac_tool_prefix"; then
1392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1394 echo "$as_me:1394: checking for $ac_word" >&5
1395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1396 if test "${ac_cv_prog_CC+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1399 if test -n "$CC"; then
1400 ac_cv_prog_CC="$CC" # Let the user override the test.
1402 ac_save_IFS=$IFS; IFS=$ac_path_separator
1404 for ac_dir in $ac_dummy; do
1406 test -z "$ac_dir" && ac_dir=.
1407 $as_executable_p "$ac_dir/$ac_word" || continue
1408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1409 echo "$as_me:1409: found $ac_dir/$ac_word" >&5
1416 if test -n "$CC"; then
1417 echo "$as_me:1417: result: $CC" >&5
1418 echo "${ECHO_T}$CC" >&6
1420 echo "$as_me:1420: result: no" >&5
1421 echo "${ECHO_T}no" >&6
1425 if test -z "$ac_cv_prog_CC"; then
1427 # Extract the first word of "gcc", so it can be a program name with args.
1428 set dummy gcc; ac_word=$2
1429 echo "$as_me:1429: checking for $ac_word" >&5
1430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 if test -n "$ac_ct_CC"; then
1435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1437 ac_save_IFS=$IFS; IFS=$ac_path_separator
1439 for ac_dir in $ac_dummy; do
1441 test -z "$ac_dir" && ac_dir=.
1442 $as_executable_p "$ac_dir/$ac_word" || continue
1443 ac_cv_prog_ac_ct_CC="gcc"
1444 echo "$as_me:1444: found $ac_dir/$ac_word" >&5
1450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1451 if test -n "$ac_ct_CC"; then
1452 echo "$as_me:1452: result: $ac_ct_CC" >&5
1453 echo "${ECHO_T}$ac_ct_CC" >&6
1455 echo "$as_me:1455: result: no" >&5
1456 echo "${ECHO_T}no" >&6
1464 if test -z "$CC"; then
1465 if test -n "$ac_tool_prefix"; then
1466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1467 set dummy ${ac_tool_prefix}cc; ac_word=$2
1468 echo "$as_me:1468: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1476 ac_save_IFS=$IFS; IFS=$ac_path_separator
1478 for ac_dir in $ac_dummy; do
1480 test -z "$ac_dir" && ac_dir=.
1481 $as_executable_p "$ac_dir/$ac_word" || continue
1482 ac_cv_prog_CC="${ac_tool_prefix}cc"
1483 echo "$as_me:1483: found $ac_dir/$ac_word" >&5
1490 if test -n "$CC"; then
1491 echo "$as_me:1491: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1494 echo "$as_me:1494: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1499 if test -z "$ac_cv_prog_CC"; then
1501 # Extract the first word of "cc", so it can be a program name with args.
1502 set dummy cc; ac_word=$2
1503 echo "$as_me:1503: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 if test -n "$ac_ct_CC"; then
1509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1511 ac_save_IFS=$IFS; IFS=$ac_path_separator
1513 for ac_dir in $ac_dummy; do
1515 test -z "$ac_dir" && ac_dir=.
1516 $as_executable_p "$ac_dir/$ac_word" || continue
1517 ac_cv_prog_ac_ct_CC="cc"
1518 echo "$as_me:1518: found $ac_dir/$ac_word" >&5
1524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1525 if test -n "$ac_ct_CC"; then
1526 echo "$as_me:1526: result: $ac_ct_CC" >&5
1527 echo "${ECHO_T}$ac_ct_CC" >&6
1529 echo "$as_me:1529: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1539 if test -z "$CC"; then
1540 # Extract the first word of "cc", so it can be a program name with args.
1541 set dummy cc; ac_word=$2
1542 echo "$as_me:1542: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1551 ac_save_IFS=$IFS; IFS=$ac_path_separator
1553 for ac_dir in $ac_dummy; do
1555 test -z "$ac_dir" && ac_dir=.
1556 $as_executable_p "$ac_dir/$ac_word" || continue
1557 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1558 ac_prog_rejected=yes
1562 echo "$as_me:1562: found $ac_dir/$ac_word" >&5
1566 if test $ac_prog_rejected = yes; then
1567 # We found a bogon in the path, so make sure we never use it.
1568 set dummy $ac_cv_prog_CC
1570 if test $# != 0; then
1571 # We chose a different compiler from the bogus one.
1572 # However, it has the same basename, so the bogon will be chosen
1573 # first if we set CC to just the basename; use the full file name.
1575 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1583 if test -n "$CC"; then
1584 echo "$as_me:1584: result: $CC" >&5
1585 echo "${ECHO_T}$CC" >&6
1587 echo "$as_me:1587: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1592 if test -z "$CC"; then
1593 if test -n "$ac_tool_prefix"; then
1596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1598 echo "$as_me:1598: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1606 ac_save_IFS=$IFS; IFS=$ac_path_separator
1608 for ac_dir in $ac_dummy; do
1610 test -z "$ac_dir" && ac_dir=.
1611 $as_executable_p "$ac_dir/$ac_word" || continue
1612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1613 echo "$as_me:1613: found $ac_dir/$ac_word" >&5
1620 if test -n "$CC"; then
1621 echo "$as_me:1621: result: $CC" >&5
1622 echo "${ECHO_T}$CC" >&6
1624 echo "$as_me:1624: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1628 test -n "$CC" && break
1631 if test -z "$CC"; then
1635 # Extract the first word of "$ac_prog", so it can be a program name with args.
1636 set dummy $ac_prog; ac_word=$2
1637 echo "$as_me:1637: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 if test -n "$ac_ct_CC"; then
1643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645 ac_save_IFS=$IFS; IFS=$ac_path_separator
1647 for ac_dir in $ac_dummy; do
1649 test -z "$ac_dir" && ac_dir=.
1650 $as_executable_p "$ac_dir/$ac_word" || continue
1651 ac_cv_prog_ac_ct_CC="$ac_prog"
1652 echo "$as_me:1652: found $ac_dir/$ac_word" >&5
1658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1659 if test -n "$ac_ct_CC"; then
1660 echo "$as_me:1660: result: $ac_ct_CC" >&5
1661 echo "${ECHO_T}$ac_ct_CC" >&6
1663 echo "$as_me:1663: result: no" >&5
1664 echo "${ECHO_T}no" >&6
1667 test -n "$ac_ct_CC" && break
1675 test -z "$CC" && { { echo "$as_me:1675: error: no acceptable cc found in \$PATH" >&5
1676 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1677 { (exit 1); exit 1; }; }
1679 # Provide some information about the compiler.
1680 echo "$as_me:1680:" \
1681 "checking for C compiler version" >&5
1682 ac_compiler=`set X $ac_compile; echo $2`
1683 { (eval echo "$as_me:1683: \"$ac_compiler --version </dev/null >&5\"") >&5
1684 (eval $ac_compiler --version </dev/null >&5) 2>&5
1686 echo "$as_me:1686: \$? = $ac_status" >&5
1687 (exit $ac_status); }
1688 { (eval echo "$as_me:1688: \"$ac_compiler -v </dev/null >&5\"") >&5
1689 (eval $ac_compiler -v </dev/null >&5) 2>&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1693 { (eval echo "$as_me:1693: \"$ac_compiler -V </dev/null >&5\"") >&5
1694 (eval $ac_compiler -V </dev/null >&5) 2>&5
1696 echo "$as_me:1696: \$? = $ac_status" >&5
1697 (exit $ac_status); }
1699 cat >conftest.$ac_ext <<_ACEOF
1700 #line 1700 "configure"
1701 #include "confdefs.h"
1711 ac_clean_files_save=$ac_clean_files
1712 ac_clean_files="$ac_clean_files a.out a.exe"
1713 # Try to create an executable without -o first, disregard a.out.
1714 # It will help us diagnose broken compilers, and finding out an intuition
1716 echo "$as_me:1716: checking for C compiler default output" >&5
1717 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1718 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1719 if { (eval echo "$as_me:1719: \"$ac_link_default\"") >&5
1720 (eval $ac_link_default) 2>&5
1722 echo "$as_me:1722: \$? = $ac_status" >&5
1723 (exit $ac_status); }; then
1724 # Find the output, starting from the most likely. This scheme is
1725 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1727 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1728 ls a.out conftest 2>/dev/null;
1729 ls a.* conftest.* 2>/dev/null`; do
1731 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1732 a.out ) # We found the default executable, but exeext='' is most
1735 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1736 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1743 echo "$as_me: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1745 { { echo "$as_me:1745: error: C compiler cannot create executables" >&5
1746 echo "$as_me: error: C compiler cannot create executables" >&2;}
1747 { (exit 77); exit 77; }; }
1750 ac_exeext=$ac_cv_exeext
1751 echo "$as_me:1751: result: $ac_file" >&5
1752 echo "${ECHO_T}$ac_file" >&6
1754 # Check the compiler produces executables we can run. If not, either
1755 # the compiler is broken, or we cross compile.
1756 echo "$as_me:1756: checking whether the C compiler works" >&5
1757 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1758 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1759 # If not cross compiling, check that we can run a simple program.
1760 if test "$cross_compiling" != yes; then
1761 if { ac_try='./$ac_file'
1762 { (eval echo "$as_me:1762: \"$ac_try\"") >&5
1765 echo "$as_me:1765: \$? = $ac_status" >&5
1766 (exit $ac_status); }; }; then
1769 if test "$cross_compiling" = maybe; then
1772 { { echo "$as_me:1772: error: cannot run C compiled programs.
1773 If you meant to cross compile, use \`--host'." >&5
1774 echo "$as_me: error: cannot run C compiled programs.
1775 If you meant to cross compile, use \`--host'." >&2;}
1776 { (exit 1); exit 1; }; }
1780 echo "$as_me:1780: result: yes" >&5
1781 echo "${ECHO_T}yes" >&6
1783 rm -f a.out a.exe conftest$ac_cv_exeext
1784 ac_clean_files=$ac_clean_files_save
1785 # Check the compiler produces executables we can run. If not, either
1786 # the compiler is broken, or we cross compile.
1787 echo "$as_me:1787: checking whether we are cross compiling" >&5
1788 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1789 echo "$as_me:1789: result: $cross_compiling" >&5
1790 echo "${ECHO_T}$cross_compiling" >&6
1792 echo "$as_me:1792: checking for executable suffix" >&5
1793 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1794 if { (eval echo "$as_me:1794: \"$ac_link\"") >&5
1795 (eval $ac_link) 2>&5
1797 echo "$as_me:1797: \$? = $ac_status" >&5
1798 (exit $ac_status); }; then
1799 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1800 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1801 # work properly (i.e., refer to `conftest.exe'), while it won't with
1803 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1805 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1806 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1813 { { echo "$as_me:1813: error: cannot compute EXEEXT: cannot compile and link" >&5
1814 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1815 { (exit 1); exit 1; }; }
1818 rm -f conftest$ac_cv_exeext
1819 echo "$as_me:1819: result: $ac_cv_exeext" >&5
1820 echo "${ECHO_T}$ac_cv_exeext" >&6
1822 rm -f conftest.$ac_ext
1823 EXEEXT=$ac_cv_exeext
1825 echo "$as_me:1825: checking for object suffix" >&5
1826 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1827 if test "${ac_cv_objext+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 cat >conftest.$ac_ext <<_ACEOF
1831 #line 1831 "configure"
1832 #include "confdefs.h"
1842 rm -f conftest.o conftest.obj
1843 if { (eval echo "$as_me:1843: \"$ac_compile\"") >&5
1844 (eval $ac_compile) 2>&5
1846 echo "$as_me:1846: \$? = $ac_status" >&5
1847 (exit $ac_status); }; then
1848 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1856 echo "$as_me: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1858 { { echo "$as_me:1858: error: cannot compute OBJEXT: cannot compile" >&5
1859 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1860 { (exit 1); exit 1; }; }
1863 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1865 echo "$as_me:1865: result: $ac_cv_objext" >&5
1866 echo "${ECHO_T}$ac_cv_objext" >&6
1867 OBJEXT=$ac_cv_objext
1869 echo "$as_me:1869: checking whether we are using the GNU C compiler" >&5
1870 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1871 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 cat >conftest.$ac_ext <<_ACEOF
1875 #line 1875 "configure"
1876 #include "confdefs.h"
1889 rm -f conftest.$ac_objext
1890 if { (eval echo "$as_me:1890: \"$ac_compile\"") >&5
1891 (eval $ac_compile) 2>&5
1893 echo "$as_me:1893: \$? = $ac_status" >&5
1894 (exit $ac_status); } &&
1895 { ac_try='test -s conftest.$ac_objext'
1896 { (eval echo "$as_me:1896: \"$ac_try\"") >&5
1899 echo "$as_me:1899: \$? = $ac_status" >&5
1900 (exit $ac_status); }; }; then
1903 echo "$as_me: failed program was:" >&5
1904 cat conftest.$ac_ext >&5
1907 rm -f conftest.$ac_objext conftest.$ac_ext
1908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1911 echo "$as_me:1911: result: $ac_cv_c_compiler_gnu" >&5
1912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1913 GCC=`test $ac_compiler_gnu = yes && echo yes`
1914 ac_test_CFLAGS=${CFLAGS+set}
1915 ac_save_CFLAGS=$CFLAGS
1917 echo "$as_me:1917: checking whether $CC accepts -g" >&5
1918 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1919 if test "${ac_cv_prog_cc_g+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 cat >conftest.$ac_ext <<_ACEOF
1923 #line 1923 "configure"
1924 #include "confdefs.h"
1934 rm -f conftest.$ac_objext
1935 if { (eval echo "$as_me:1935: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>&5
1938 echo "$as_me:1938: \$? = $ac_status" >&5
1939 (exit $ac_status); } &&
1940 { ac_try='test -s conftest.$ac_objext'
1941 { (eval echo "$as_me:1941: \"$ac_try\"") >&5
1944 echo "$as_me:1944: \$? = $ac_status" >&5
1945 (exit $ac_status); }; }; then
1948 echo "$as_me: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1952 rm -f conftest.$ac_objext conftest.$ac_ext
1954 echo "$as_me:1954: result: $ac_cv_prog_cc_g" >&5
1955 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1956 if test "$ac_test_CFLAGS" = set; then
1957 CFLAGS=$ac_save_CFLAGS
1958 elif test $ac_cv_prog_cc_g = yes; then
1959 if test "$GCC" = yes; then
1965 if test "$GCC" = yes; then
1971 # Some people use a C++ compiler to compile C. Since we use `exit',
1972 # in C++ we need to declare it. In case someone uses the same compiler
1973 # for both compiling C and C++ we need to have the C++ compiler decide
1974 # the declaration of exit, since it's the most demanding environment.
1975 cat >conftest.$ac_ext <<_ACEOF
1980 rm -f conftest.$ac_objext
1981 if { (eval echo "$as_me:1981: \"$ac_compile\"") >&5
1982 (eval $ac_compile) 2>&5
1984 echo "$as_me:1984: \$? = $ac_status" >&5
1985 (exit $ac_status); } &&
1986 { ac_try='test -s conftest.$ac_objext'
1987 { (eval echo "$as_me:1987: \"$ac_try\"") >&5
1990 echo "$as_me:1990: \$? = $ac_status" >&5
1991 (exit $ac_status); }; }; then
1992 for ac_declaration in \
1994 '#include <stdlib.h>' \
1995 'extern "C" void std::exit (int) throw (); using std::exit;' \
1996 'extern "C" void std::exit (int); using std::exit;' \
1997 'extern "C" void exit (int) throw ();' \
1998 'extern "C" void exit (int);' \
2001 cat >conftest.$ac_ext <<_ACEOF
2002 #line 2002 "configure"
2003 #include "confdefs.h"
2014 rm -f conftest.$ac_objext
2015 if { (eval echo "$as_me:2015: \"$ac_compile\"") >&5
2016 (eval $ac_compile) 2>&5
2018 echo "$as_me:2018: \$? = $ac_status" >&5
2019 (exit $ac_status); } &&
2020 { ac_try='test -s conftest.$ac_objext'
2021 { (eval echo "$as_me:2021: \"$ac_try\"") >&5
2024 echo "$as_me:2024: \$? = $ac_status" >&5
2025 (exit $ac_status); }; }; then
2028 echo "$as_me: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2032 rm -f conftest.$ac_objext conftest.$ac_ext
2033 cat >conftest.$ac_ext <<_ACEOF
2034 #line 2034 "configure"
2035 #include "confdefs.h"
2045 rm -f conftest.$ac_objext
2046 if { (eval echo "$as_me:2046: \"$ac_compile\"") >&5
2047 (eval $ac_compile) 2>&5
2049 echo "$as_me:2049: \$? = $ac_status" >&5
2050 (exit $ac_status); } &&
2051 { ac_try='test -s conftest.$ac_objext'
2052 { (eval echo "$as_me:2052: \"$ac_try\"") >&5
2055 echo "$as_me:2055: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2059 echo "$as_me: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2062 rm -f conftest.$ac_objext conftest.$ac_ext
2065 if test -n "$ac_declaration"; then
2066 echo '#ifdef __cplusplus' >>confdefs.h
2067 echo $ac_declaration >>confdefs.h
2068 echo '#endif' >>confdefs.h
2072 echo "$as_me: failed program was:" >&5
2073 cat conftest.$ac_ext >&5
2075 rm -f conftest.$ac_objext conftest.$ac_ext
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081 ac_main_return=return
2084 if test "$GCC" = yes ; then
2085 echo "$as_me:2085: checking version of $CC" >&5
2086 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2087 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2088 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2089 echo "$as_me:2089: result: $GCC_VERSION" >&5
2090 echo "${ECHO_T}$GCC_VERSION" >&6
2094 ac_cpp='$CPP $CPPFLAGS'
2095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2098 ac_main_return=return
2099 echo "$as_me:2099: checking how to run the C preprocessor" >&5
2100 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2101 # On Suns, sometimes $CPP names a directory.
2102 if test -n "$CPP" && test -d "$CPP"; then
2105 if test -z "$CPP"; then
2106 if test "${ac_cv_prog_CPP+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 # Double quotes because CPP needs to be expanded
2110 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2113 for ac_c_preproc_warn_flag in '' yes
2115 # Use a header file that comes with gcc, so configuring glibc
2116 # with a fresh cross-compiler works.
2117 # On the NeXT, cc -E runs the code through the compiler's parser,
2118 # not just through cpp. "Syntax error" is here to catch this case.
2119 cat >conftest.$ac_ext <<_ACEOF
2120 #line 2120 "configure"
2121 #include "confdefs.h"
2125 if { (eval echo "$as_me:2125: \"$ac_cpp conftest.$ac_ext\"") >&5
2126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2128 egrep -v '^ *\+' conftest.er1 >conftest.err
2130 cat conftest.err >&5
2131 echo "$as_me:2131: \$? = $ac_status" >&5
2132 (exit $ac_status); } >/dev/null; then
2133 if test -s conftest.err; then
2134 ac_cpp_err=$ac_c_preproc_warn_flag
2141 if test -z "$ac_cpp_err"; then
2144 echo "$as_me: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2146 # Broken: fails on valid input.
2149 rm -f conftest.err conftest.$ac_ext
2151 # OK, works on sane cases. Now check whether non-existent headers
2152 # can be detected and how.
2153 cat >conftest.$ac_ext <<_ACEOF
2154 #line 2154 "configure"
2155 #include "confdefs.h"
2156 #include <ac_nonexistent.h>
2158 if { (eval echo "$as_me:2158: \"$ac_cpp conftest.$ac_ext\"") >&5
2159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2161 egrep -v '^ *\+' conftest.er1 >conftest.err
2163 cat conftest.err >&5
2164 echo "$as_me:2164: \$? = $ac_status" >&5
2165 (exit $ac_status); } >/dev/null; then
2166 if test -s conftest.err; then
2167 ac_cpp_err=$ac_c_preproc_warn_flag
2174 if test -z "$ac_cpp_err"; then
2175 # Broken: success on invalid input.
2178 echo "$as_me: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2180 # Passes both tests.
2184 rm -f conftest.err conftest.$ac_ext
2187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2188 rm -f conftest.err conftest.$ac_ext
2189 if $ac_preproc_ok; then
2201 echo "$as_me:2201: result: $CPP" >&5
2202 echo "${ECHO_T}$CPP" >&6
2204 for ac_c_preproc_warn_flag in '' yes
2206 # Use a header file that comes with gcc, so configuring glibc
2207 # with a fresh cross-compiler works.
2208 # On the NeXT, cc -E runs the code through the compiler's parser,
2209 # not just through cpp. "Syntax error" is here to catch this case.
2210 cat >conftest.$ac_ext <<_ACEOF
2211 #line 2211 "configure"
2212 #include "confdefs.h"
2216 if { (eval echo "$as_me:2216: \"$ac_cpp conftest.$ac_ext\"") >&5
2217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2219 egrep -v '^ *\+' conftest.er1 >conftest.err
2221 cat conftest.err >&5
2222 echo "$as_me:2222: \$? = $ac_status" >&5
2223 (exit $ac_status); } >/dev/null; then
2224 if test -s conftest.err; then
2225 ac_cpp_err=$ac_c_preproc_warn_flag
2232 if test -z "$ac_cpp_err"; then
2235 echo "$as_me: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2237 # Broken: fails on valid input.
2240 rm -f conftest.err conftest.$ac_ext
2242 # OK, works on sane cases. Now check whether non-existent headers
2243 # can be detected and how.
2244 cat >conftest.$ac_ext <<_ACEOF
2245 #line 2245 "configure"
2246 #include "confdefs.h"
2247 #include <ac_nonexistent.h>
2249 if { (eval echo "$as_me:2249: \"$ac_cpp conftest.$ac_ext\"") >&5
2250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2252 egrep -v '^ *\+' conftest.er1 >conftest.err
2254 cat conftest.err >&5
2255 echo "$as_me:2255: \$? = $ac_status" >&5
2256 (exit $ac_status); } >/dev/null; then
2257 if test -s conftest.err; then
2258 ac_cpp_err=$ac_c_preproc_warn_flag
2265 if test -z "$ac_cpp_err"; then
2266 # Broken: success on invalid input.
2269 echo "$as_me: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2271 # Passes both tests.
2275 rm -f conftest.err conftest.$ac_ext
2278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2279 rm -f conftest.err conftest.$ac_ext
2280 if $ac_preproc_ok; then
2283 { { echo "$as_me:2283: error: C preprocessor \"$CPP\" fails sanity check" >&5
2284 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2285 { (exit 1); exit 1; }; }
2289 ac_cpp='$CPP $CPPFLAGS'
2290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293 ac_main_return=return
2295 if test $ac_cv_c_compiler_gnu = yes; then
2296 echo "$as_me:2296: checking whether $CC needs -traditional" >&5
2297 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2298 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 ac_pattern="Autoconf.*'x'"
2302 cat >conftest.$ac_ext <<_ACEOF
2303 #line 2303 "configure"
2304 #include "confdefs.h"
2306 int Autoconf = TIOCGETP;
2308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2309 egrep "$ac_pattern" >/dev/null 2>&1; then
2310 ac_cv_prog_gcc_traditional=yes
2312 ac_cv_prog_gcc_traditional=no
2316 if test $ac_cv_prog_gcc_traditional = no; then
2317 cat >conftest.$ac_ext <<_ACEOF
2318 #line 2318 "configure"
2319 #include "confdefs.h"
2321 int Autoconf = TCGETA;
2323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2324 egrep "$ac_pattern" >/dev/null 2>&1; then
2325 ac_cv_prog_gcc_traditional=yes
2331 echo "$as_me:2331: result: $ac_cv_prog_gcc_traditional" >&5
2332 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2333 if test $ac_cv_prog_gcc_traditional = yes; then
2334 CC="$CC -traditional"
2338 echo "$as_me:2338: checking whether $CC understands -c and -o together" >&5
2339 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2340 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 cat > conftest.$ac_ext <<CF_EOF
2348 ${cf_cv_main_return:-return}(0);
2351 # We do the test twice because some compilers refuse to overwrite an
2352 # existing .o file with -o, though they will create one.
2353 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2354 if { (eval echo "$as_me:2354: \"$ac_try\"") >&5
2357 echo "$as_me:2357: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 test -f conftest2.$ac_objext && { (eval echo "$as_me:2359: \"$ac_try\"") >&5
2362 echo "$as_me:2362: \$? = $ac_status" >&5
2363 (exit $ac_status); };
2365 eval cf_cv_prog_CC_c_o=yes
2367 eval cf_cv_prog_CC_c_o=no
2372 if test $cf_cv_prog_CC_c_o = yes; then
2373 echo "$as_me:2373: result: yes" >&5
2374 echo "${ECHO_T}yes" >&6
2376 echo "$as_me:2376: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2380 echo "$as_me:2380: checking for POSIXized ISC" >&5
2381 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2382 if test -d /etc/conf/kconfig.d &&
2383 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2385 echo "$as_me:2385: result: yes" >&5
2386 echo "${ECHO_T}yes" >&6
2387 ISC=yes # If later tests want to check for ISC.
2389 cat >>confdefs.h <<\EOF
2390 #define _POSIX_SOURCE 1
2393 if test "$GCC" = yes; then
2399 echo "$as_me:2399: result: no" >&5
2400 echo "${ECHO_T}no" >&6
2404 echo "$as_me:2404: checking for ${CC-cc} option to accept ANSI C" >&5
2405 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2406 if test "${cf_cv_ansi_cc+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 cf_save_CFLAGS="$CFLAGS"
2412 cf_save_CPPFLAGS="$CPPFLAGS"
2413 # Don't try gcc -ansi; that turns off useful extensions and
2414 # breaks some systems' header files.
2415 # AIX -qlanglvl=ansi
2416 # Ultrix and OSF/1 -std1
2417 # HP-UX -Aa -D_HPUX_SOURCE
2419 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2420 for cf_arg in "-DCC_HAS_PROTOS" \
2425 "-Aa -D_HPUX_SOURCE" \
2432 cf_new_extra_cppflags=
2434 for cf_add_cflags in $cf_arg
2436 case $cf_fix_cppflags in
2438 case $cf_add_cflags in #(vi
2439 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2440 case $cf_add_cflags in
2442 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2444 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2445 && test -z "${cf_tst_cflags}" \
2446 && cf_fix_cppflags=yes
2448 if test $cf_fix_cppflags = yes ; then
2449 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2451 elif test "${cf_tst_cflags}" = "\"'" ; then
2452 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2458 *$cf_add_cflags) #(vi
2461 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2466 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2471 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2473 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2475 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2476 && test -z "${cf_tst_cflags}" \
2477 && cf_fix_cppflags=no
2482 if test -n "$cf_new_cflags" ; then
2484 CFLAGS="$CFLAGS $cf_new_cflags"
2487 if test -n "$cf_new_cppflags" ; then
2489 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2492 if test -n "$cf_new_extra_cppflags" ; then
2494 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2497 cat >conftest.$ac_ext <<_ACEOF
2498 #line 2498 "configure"
2499 #include "confdefs.h"
2501 #ifndef CC_HAS_PROTOS
2502 #if !defined(__STDC__) || (__STDC__ != 1)
2511 int test (int i, double x);
2512 struct s1 {int (*f) (int a);};
2513 struct s2 {int (*f) (double a);};
2518 rm -f conftest.$ac_objext
2519 if { (eval echo "$as_me:2519: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>&5
2522 echo "$as_me:2522: \$? = $ac_status" >&5
2523 (exit $ac_status); } &&
2524 { ac_try='test -s conftest.$ac_objext'
2525 { (eval echo "$as_me:2525: \"$ac_try\"") >&5
2528 echo "$as_me:2528: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2530 cf_cv_ansi_cc="$cf_arg"; break
2532 echo "$as_me: failed program was:" >&5
2533 cat conftest.$ac_ext >&5
2535 rm -f conftest.$ac_objext conftest.$ac_ext
2537 CFLAGS="$cf_save_CFLAGS"
2538 CPPFLAGS="$cf_save_CPPFLAGS"
2541 echo "$as_me:2541: result: $cf_cv_ansi_cc" >&5
2542 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2544 if test "$cf_cv_ansi_cc" != "no"; then
2545 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2550 cf_new_extra_cppflags=
2552 for cf_add_cflags in $cf_cv_ansi_cc
2554 case $cf_fix_cppflags in
2556 case $cf_add_cflags in #(vi
2557 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2558 case $cf_add_cflags in
2560 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2562 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2563 && test -z "${cf_tst_cflags}" \
2564 && cf_fix_cppflags=yes
2566 if test $cf_fix_cppflags = yes ; then
2567 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2569 elif test "${cf_tst_cflags}" = "\"'" ; then
2570 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2576 *$cf_add_cflags) #(vi
2579 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2584 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2589 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2591 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2593 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2594 && test -z "${cf_tst_cflags}" \
2595 && cf_fix_cppflags=no
2600 if test -n "$cf_new_cflags" ; then
2602 CFLAGS="$CFLAGS $cf_new_cflags"
2605 if test -n "$cf_new_cppflags" ; then
2607 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2610 if test -n "$cf_new_extra_cppflags" ; then
2612 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2616 cat >>confdefs.h <<\EOF
2617 #define CC_HAS_PROTOS 1
2623 if test "$cf_cv_ansi_cc" = "no"; then
2624 { { echo "$as_me:2624: error: Your compiler does not appear to recognize prototypes.
2625 You have the following choices:
2626 a. adjust your compiler options
2627 b. get an up-to-date compiler
2628 c. use a wrapper such as unproto" >&5
2629 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2630 You have the following choices:
2631 a. adjust your compiler options
2632 b. get an up-to-date compiler
2633 c. use a wrapper such as unproto" >&2;}
2634 { (exit 1); exit 1; }; }
2637 case $cf_cv_system_name in
2639 CFLAGS="$CFLAGS -Zmt"
2640 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2641 CXXFLAGS="$CXXFLAGS -Zmt"
2642 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2643 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2650 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2651 #define PROG_EXT "$PROG_EXT"
2654 if test "$cross_compiling" = yes ; then
2657 case "$cf_cv_system_name" in #(vi
2659 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2661 *) LDPATH=$PATH:/sbin:/usr/sbin
2662 # Extract the first word of "ldconfig", so it can be a program name with args.
2663 set dummy ldconfig; ac_word=$2
2664 echo "$as_me:2664: checking for $ac_word" >&5
2665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2666 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2674 ac_save_IFS=$IFS; IFS=$ac_path_separator
2676 for ac_dir in $ac_dummy; do
2678 test -z "$ac_dir" && ac_dir=.
2679 if $as_executable_p "$ac_dir/$ac_word"; then
2680 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2681 echo "$as_me:2681: found $ac_dir/$ac_word" >&5
2689 LDCONFIG=$ac_cv_path_LDCONFIG
2691 if test -n "$LDCONFIG"; then
2692 echo "$as_me:2692: result: $LDCONFIG" >&5
2693 echo "${ECHO_T}$LDCONFIG" >&6
2695 echo "$as_me:2695: result: no" >&5
2696 echo "${ECHO_T}no" >&6
2703 echo "$as_me:2703: checking if you want to ensure bool is consistent with C++" >&5
2704 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2706 # Check whether --with-cxx or --without-cxx was given.
2707 if test "${with_cxx+set}" = set; then
2709 cf_with_cxx=$withval
2713 echo "$as_me:2713: result: $cf_with_cxx" >&5
2714 echo "${ECHO_T}$cf_with_cxx" >&6
2715 if test "X$cf_with_cxx" = Xno ; then
2719 # with autoconf 2.13, we can change the error to a warning:
2721 ac_cpp='$CXXCPP $CPPFLAGS'
2722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2725 ac_main_return=return
2726 if test -n "$ac_tool_prefix"; then
2727 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2731 echo "$as_me:2731: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_CXX+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -n "$CXX"; then
2737 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2739 ac_save_IFS=$IFS; IFS=$ac_path_separator
2741 for ac_dir in $ac_dummy; do
2743 test -z "$ac_dir" && ac_dir=.
2744 $as_executable_p "$ac_dir/$ac_word" || continue
2745 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2746 echo "$as_me:2746: found $ac_dir/$ac_word" >&5
2753 if test -n "$CXX"; then
2754 echo "$as_me:2754: result: $CXX" >&5
2755 echo "${ECHO_T}$CXX" >&6
2757 echo "$as_me:2757: result: no" >&5
2758 echo "${ECHO_T}no" >&6
2761 test -n "$CXX" && break
2764 if test -z "$CXX"; then
2766 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 echo "$as_me:2770: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2772 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 if test -n "$ac_ct_CXX"; then
2776 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2778 ac_save_IFS=$IFS; IFS=$ac_path_separator
2780 for ac_dir in $ac_dummy; do
2782 test -z "$ac_dir" && ac_dir=.
2783 $as_executable_p "$ac_dir/$ac_word" || continue
2784 ac_cv_prog_ac_ct_CXX="$ac_prog"
2785 echo "$as_me:2785: found $ac_dir/$ac_word" >&5
2791 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2792 if test -n "$ac_ct_CXX"; then
2793 echo "$as_me:2793: result: $ac_ct_CXX" >&5
2794 echo "${ECHO_T}$ac_ct_CXX" >&6
2796 echo "$as_me:2796: result: no" >&5
2797 echo "${ECHO_T}no" >&6
2800 test -n "$ac_ct_CXX" && break
2802 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2807 # Provide some information about the compiler.
2808 echo "$as_me:2808:" \
2809 "checking for C++ compiler version" >&5
2810 ac_compiler=`set X $ac_compile; echo $2`
2811 { (eval echo "$as_me:2811: \"$ac_compiler --version </dev/null >&5\"") >&5
2812 (eval $ac_compiler --version </dev/null >&5) 2>&5
2814 echo "$as_me:2814: \$? = $ac_status" >&5
2815 (exit $ac_status); }
2816 { (eval echo "$as_me:2816: \"$ac_compiler -v </dev/null >&5\"") >&5
2817 (eval $ac_compiler -v </dev/null >&5) 2>&5
2819 echo "$as_me:2819: \$? = $ac_status" >&5
2820 (exit $ac_status); }
2821 { (eval echo "$as_me:2821: \"$ac_compiler -V </dev/null >&5\"") >&5
2822 (eval $ac_compiler -V </dev/null >&5) 2>&5
2824 echo "$as_me:2824: \$? = $ac_status" >&5
2825 (exit $ac_status); }
2827 echo "$as_me:2827: checking whether we are using the GNU C++ compiler" >&5
2828 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2829 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 cat >conftest.$ac_ext <<_ACEOF
2833 #line 2833 "configure"
2834 #include "confdefs.h"
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:2848: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>&5
2851 echo "$as_me:2851: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 { ac_try='test -s conftest.$ac_objext'
2854 { (eval echo "$as_me:2854: \"$ac_try\"") >&5
2857 echo "$as_me:2857: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2861 echo "$as_me: failed program was:" >&5
2862 cat conftest.$ac_ext >&5
2865 rm -f conftest.$ac_objext conftest.$ac_ext
2866 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2869 echo "$as_me:2869: result: $ac_cv_cxx_compiler_gnu" >&5
2870 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2871 GXX=`test $ac_compiler_gnu = yes && echo yes`
2872 ac_test_CXXFLAGS=${CXXFLAGS+set}
2873 ac_save_CXXFLAGS=$CXXFLAGS
2875 echo "$as_me:2875: checking whether $CXX accepts -g" >&5
2876 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2877 if test "${ac_cv_prog_cxx_g+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 cat >conftest.$ac_ext <<_ACEOF
2881 #line 2881 "configure"
2882 #include "confdefs.h"
2892 rm -f conftest.$ac_objext
2893 if { (eval echo "$as_me:2893: \"$ac_compile\"") >&5
2894 (eval $ac_compile) 2>&5
2896 echo "$as_me:2896: \$? = $ac_status" >&5
2897 (exit $ac_status); } &&
2898 { ac_try='test -s conftest.$ac_objext'
2899 { (eval echo "$as_me:2899: \"$ac_try\"") >&5
2902 echo "$as_me:2902: \$? = $ac_status" >&5
2903 (exit $ac_status); }; }; then
2904 ac_cv_prog_cxx_g=yes
2906 echo "$as_me: failed program was:" >&5
2907 cat conftest.$ac_ext >&5
2910 rm -f conftest.$ac_objext conftest.$ac_ext
2912 echo "$as_me:2912: result: $ac_cv_prog_cxx_g" >&5
2913 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2914 if test "$ac_test_CXXFLAGS" = set; then
2915 CXXFLAGS=$ac_save_CXXFLAGS
2916 elif test $ac_cv_prog_cxx_g = yes; then
2917 if test "$GXX" = yes; then
2923 if test "$GXX" = yes; then
2929 for ac_declaration in \
2931 '#include <stdlib.h>' \
2932 'extern "C" void std::exit (int) throw (); using std::exit;' \
2933 'extern "C" void std::exit (int); using std::exit;' \
2934 'extern "C" void exit (int) throw ();' \
2935 'extern "C" void exit (int);' \
2938 cat >conftest.$ac_ext <<_ACEOF
2939 #line 2939 "configure"
2940 #include "confdefs.h"
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:2952: \"$ac_compile\"") >&5
2953 (eval $ac_compile) 2>&5
2955 echo "$as_me:2955: \$? = $ac_status" >&5
2956 (exit $ac_status); } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:2958: \"$ac_try\"") >&5
2961 echo "$as_me:2961: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2965 echo "$as_me: failed program was:" >&5
2966 cat conftest.$ac_ext >&5
2969 rm -f conftest.$ac_objext conftest.$ac_ext
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #line 2971 "configure"
2972 #include "confdefs.h"
2982 rm -f conftest.$ac_objext
2983 if { (eval echo "$as_me:2983: \"$ac_compile\"") >&5
2984 (eval $ac_compile) 2>&5
2986 echo "$as_me:2986: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 { ac_try='test -s conftest.$ac_objext'
2989 { (eval echo "$as_me:2989: \"$ac_try\"") >&5
2992 echo "$as_me:2992: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2996 echo "$as_me: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
2999 rm -f conftest.$ac_objext conftest.$ac_ext
3002 if test -n "$ac_declaration"; then
3003 echo '#ifdef __cplusplus' >>confdefs.h
3004 echo $ac_declaration >>confdefs.h
3005 echo '#endif' >>confdefs.h
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 ac_main_return=return
3015 # autoconf 2.5x removed the error - by hardcoding it to g++.
3016 if test "$CXX" = "g++" ; then
3017 # Extract the first word of "g++", so it can be a program name with args.
3018 set dummy g++; ac_word=$2
3019 echo "$as_me:3019: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3021 if test "${ac_cv_path_CXX+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3029 ac_save_IFS=$IFS; IFS=$ac_path_separator
3031 for ac_dir in $ac_dummy; do
3033 test -z "$ac_dir" && ac_dir=.
3034 if $as_executable_p "$ac_dir/$ac_word"; then
3035 ac_cv_path_CXX="$ac_dir/$ac_word"
3036 echo "$as_me:3036: found $ac_dir/$ac_word" >&5
3046 if test -n "$CXX"; then
3047 echo "$as_me:3047: result: $CXX" >&5
3048 echo "${ECHO_T}$CXX" >&6
3050 echo "$as_me:3050: result: no" >&5
3051 echo "${ECHO_T}no" >&6
3055 if test "$CXX" = "g++" ; then
3056 { echo "$as_me:3056: WARNING: ignoring hardcoded g++" >&5
3057 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3058 cf_with_cxx=no; CXX=""; GXX="";
3063 if test "$GXX" = yes; then
3064 echo "$as_me:3064: checking version of g++" >&5
3065 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3066 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3067 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3068 echo "$as_me:3068: result: $GXX_VERSION" >&5
3069 echo "${ECHO_T}$GXX_VERSION" >&6
3072 case $GXX_VERSION in
3074 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3076 { echo "$as_me:3076: WARNING: templates do not work" >&5
3077 echo "$as_me: WARNING: templates do not work" >&2;}
3081 echo "$as_me:3081: checking if you want to build C++ binding and demo" >&5
3082 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3084 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3085 if test "${with_cxx_binding+set}" = set; then
3086 withval="$with_cxx_binding"
3087 cf_with_cxx_binding=$withval
3089 cf_with_cxx_binding=$cf_with_cxx
3091 echo "$as_me:3091: result: $cf_with_cxx_binding" >&5
3092 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3094 echo "$as_me:3094: checking if you want to build with Ada95" >&5
3095 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3097 # Check whether --with-ada or --without-ada was given.
3098 if test "${with_ada+set}" = set; then
3100 cf_with_ada=$withval
3104 echo "$as_me:3104: result: $cf_with_ada" >&5
3105 echo "${ECHO_T}$cf_with_ada" >&6
3107 echo "$as_me:3107: checking if you want to build programs such as tic" >&5
3108 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3110 # Check whether --with-progs or --without-progs was given.
3111 if test "${with_progs+set}" = set; then
3112 withval="$with_progs"
3113 cf_with_progs=$withval
3117 echo "$as_me:3117: result: $cf_with_progs" >&5
3118 echo "${ECHO_T}$cf_with_progs" >&6
3120 echo "$as_me:3120: checking if you wish to install curses.h" >&5
3121 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3123 # Check whether --with-curses-h or --without-curses-h was given.
3124 if test "${with_curses_h+set}" = set; then
3125 withval="$with_curses_h"
3126 with_curses_h=$withval
3130 echo "$as_me:3130: result: $with_curses_h" >&5
3131 echo "${ECHO_T}$with_curses_h" >&6
3133 modules_to_build="ncurses"
3134 if test "X$cf_with_progs" != Xno ; then
3135 modules_to_build="$modules_to_build progs tack"
3137 modules_to_build="$modules_to_build panel menu form"
3139 test "$program_prefix" != NONE &&
3140 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3141 # Use a double $ so make ignores it.
3142 test "$program_suffix" != NONE &&
3143 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3144 # Double any \ or $. echo might interpret backslashes.
3145 # By default was `s,x,x', remove it if useless.
3146 cat <<\_ACEOF >conftest.sed
3147 s/[\\$]/&&/g;s/;s,x,x,$//
3149 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3152 for ac_prog in mawk gawk nawk awk
3154 # Extract the first word of "$ac_prog", so it can be a program name with args.
3155 set dummy $ac_prog; ac_word=$2
3156 echo "$as_me:3156: checking for $ac_word" >&5
3157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3158 if test "${ac_cv_prog_AWK+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 if test -n "$AWK"; then
3162 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3164 ac_save_IFS=$IFS; IFS=$ac_path_separator
3166 for ac_dir in $ac_dummy; do
3168 test -z "$ac_dir" && ac_dir=.
3169 $as_executable_p "$ac_dir/$ac_word" || continue
3170 ac_cv_prog_AWK="$ac_prog"
3171 echo "$as_me:3171: found $ac_dir/$ac_word" >&5
3178 if test -n "$AWK"; then
3179 echo "$as_me:3179: result: $AWK" >&5
3180 echo "${ECHO_T}$AWK" >&6
3182 echo "$as_me:3182: result: no" >&5
3183 echo "${ECHO_T}no" >&6
3186 test -n "$AWK" && break
3189 test -z "$AWK" && { { echo "$as_me:3189: error: No awk program found" >&5
3190 echo "$as_me: error: No awk program found" >&2;}
3191 { (exit 1); exit 1; }; }
3193 echo "$as_me:3193: checking for egrep" >&5
3194 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3195 if test "${ac_cv_prog_egrep+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3199 then ac_cv_prog_egrep='grep -E'
3200 else ac_cv_prog_egrep='egrep'
3203 echo "$as_me:3203: result: $ac_cv_prog_egrep" >&5
3204 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3205 EGREP=$ac_cv_prog_egrep
3207 test -z "$EGREP" && { { echo "$as_me:3207: error: No egrep program found" >&5
3208 echo "$as_me: error: No egrep program found" >&2;}
3209 { (exit 1); exit 1; }; }
3211 # Find a good install program. We prefer a C program (faster),
3212 # so one script is as good as another. But avoid the broken or
3213 # incompatible versions:
3214 # SysV /etc/install, /usr/sbin/install
3215 # SunOS /usr/etc/install
3216 # IRIX /sbin/install
3218 # AmigaOS /C/install, which installs bootblocks on floppy discs
3219 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3220 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3221 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3222 # ./install, which can be erroneously created by make from ./install.sh.
3223 echo "$as_me:3223: checking for a BSD compatible install" >&5
3224 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3225 if test -z "$INSTALL"; then
3226 if test "${ac_cv_path_install+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 ac_save_IFS=$IFS; IFS=$ac_path_separator
3230 for ac_dir in $PATH; do
3232 # Account for people who put trailing slashes in PATH elements.
3234 / | ./ | .// | /cC/* \
3235 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3238 # OSF1 and SCO ODT 3.0 have their own names for install.
3239 # Don't use installbsd from OSF since it installs stuff as root
3241 for ac_prog in ginstall scoinst install; do
3242 if $as_executable_p "$ac_dir/$ac_prog"; then
3243 if test $ac_prog = install &&
3244 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3245 # AIX install. It has an incompatible calling convention.
3247 elif test $ac_prog = install &&
3248 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3249 # program-specific install script used by HP pwplus--don't use.
3252 ac_cv_path_install="$ac_dir/$ac_prog -c"
3262 if test "${ac_cv_path_install+set}" = set; then
3263 INSTALL=$ac_cv_path_install
3265 # As a last resort, use the slow shell script. We don't cache a
3266 # path for INSTALL within a source directory, because that will
3267 # break other packages using the cache if that directory is
3268 # removed, or if the path is relative.
3269 INSTALL=$ac_install_sh
3272 echo "$as_me:3272: result: $INSTALL" >&5
3273 echo "${ECHO_T}$INSTALL" >&6
3275 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3276 # It thinks the first close brace ends the variable substitution.
3277 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3279 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3281 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3287 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3288 test -z "$cf_dir" && cf_dir=.
3289 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3293 for ac_prog in tdlint lint alint
3295 # Extract the first word of "$ac_prog", so it can be a program name with args.
3296 set dummy $ac_prog; ac_word=$2
3297 echo "$as_me:3297: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3299 if test "${ac_cv_prog_LINT+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 if test -n "$LINT"; then
3303 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3305 ac_save_IFS=$IFS; IFS=$ac_path_separator
3307 for ac_dir in $ac_dummy; do
3309 test -z "$ac_dir" && ac_dir=.
3310 $as_executable_p "$ac_dir/$ac_word" || continue
3311 ac_cv_prog_LINT="$ac_prog"
3312 echo "$as_me:3312: found $ac_dir/$ac_word" >&5
3318 LINT=$ac_cv_prog_LINT
3319 if test -n "$LINT"; then
3320 echo "$as_me:3320: result: $LINT" >&5
3321 echo "${ECHO_T}$LINT" >&6
3323 echo "$as_me:3323: result: no" >&5
3324 echo "${ECHO_T}no" >&6
3327 test -n "$LINT" && break
3330 echo "$as_me:3330: checking whether ln -s works" >&5
3331 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3333 if test "$LN_S" = "ln -s"; then
3334 echo "$as_me:3334: result: yes" >&5
3335 echo "${ECHO_T}yes" >&6
3337 echo "$as_me:3337: result: no, using $LN_S" >&5
3338 echo "${ECHO_T}no, using $LN_S" >&6
3341 echo "$as_me:3341: checking whether ${MAKE-make} sets \${MAKE}" >&5
3342 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3343 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3344 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 cat >conftest.make <<\EOF
3349 @echo 'ac_maketemp="${MAKE}"'
3351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3352 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3353 if test -n "$ac_maketemp"; then
3354 eval ac_cv_prog_make_${ac_make}_set=yes
3356 eval ac_cv_prog_make_${ac_make}_set=no
3360 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3361 echo "$as_me:3361: result: yes" >&5
3362 echo "${ECHO_T}yes" >&6
3365 echo "$as_me:3365: result: no" >&5
3366 echo "${ECHO_T}no" >&6
3367 SET_MAKE="MAKE=${MAKE-make}"
3370 echo "$as_me:3370: checking if filesystem supports mixed-case filenames" >&5
3371 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3372 if test "${cf_cv_mixedcase+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 if test "$cross_compiling" = yes ; then
3377 case $target_alias in #(vi
3378 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3386 rm -f conftest CONFTEST
3388 if test -f CONFTEST ; then
3393 rm -f conftest CONFTEST
3397 echo "$as_me:3397: result: $cf_cv_mixedcase" >&5
3398 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3399 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3400 #define MIXEDCASE_FILENAMES 1
3403 # Extract the first word of "ctags", so it can be a program name with args.
3404 set dummy ctags; ac_word=$2
3405 echo "$as_me:3405: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 if test -n "$MAKE_LOWER_TAGS"; then
3411 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3413 ac_save_IFS=$IFS; IFS=$ac_path_separator
3415 for ac_dir in $ac_dummy; do
3417 test -z "$ac_dir" && ac_dir=.
3418 $as_executable_p "$ac_dir/$ac_word" || continue
3419 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3420 echo "$as_me:3420: found $ac_dir/$ac_word" >&5
3424 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3427 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3428 if test -n "$MAKE_LOWER_TAGS"; then
3429 echo "$as_me:3429: result: $MAKE_LOWER_TAGS" >&5
3430 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3432 echo "$as_me:3432: result: no" >&5
3433 echo "${ECHO_T}no" >&6
3436 if test "$cf_cv_mixedcase" = yes ; then
3437 # Extract the first word of "etags", so it can be a program name with args.
3438 set dummy etags; ac_word=$2
3439 echo "$as_me:3439: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 if test -n "$MAKE_UPPER_TAGS"; then
3445 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3447 ac_save_IFS=$IFS; IFS=$ac_path_separator
3449 for ac_dir in $ac_dummy; do
3451 test -z "$ac_dir" && ac_dir=.
3452 $as_executable_p "$ac_dir/$ac_word" || continue
3453 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3454 echo "$as_me:3454: found $ac_dir/$ac_word" >&5
3458 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3461 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3462 if test -n "$MAKE_UPPER_TAGS"; then
3463 echo "$as_me:3463: result: $MAKE_UPPER_TAGS" >&5
3464 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3466 echo "$as_me:3466: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3474 if test "$MAKE_UPPER_TAGS" = yes ; then
3480 if test "$MAKE_LOWER_TAGS" = yes ; then
3486 echo "$as_me:3486: checking for makeflags variable" >&5
3487 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3488 if test "${cf_cv_makeflags+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3495 cat >cf_makeflags.tmp <<CF_EOF
3498 @ echo '.$cf_option'
3500 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3501 case "$cf_result" in
3503 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3504 case "$cf_result" in
3505 .*CC=*) cf_cv_makeflags=
3507 *) cf_cv_makeflags=$cf_option
3513 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3517 rm -f cf_makeflags.tmp
3520 echo "$as_me:3520: result: $cf_cv_makeflags" >&5
3521 echo "${ECHO_T}$cf_cv_makeflags" >&6
3523 echo "$as_me:3523: checking for long file names" >&5
3524 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3525 if test "${ac_cv_sys_long_file_names+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 ac_cv_sys_long_file_names=yes
3529 # Test for long file names in all the places we know might matter:
3530 # . the current directory, where building will happen
3531 # $prefix/lib where we will be installing things
3532 # $exec_prefix/lib likewise
3533 # eval it to expand exec_prefix.
3534 # $TMPDIR if set, where it might want to write temporary files
3535 # if $TMPDIR is not set:
3536 # /tmp where it might want to write temporary files
3539 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3542 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3544 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3545 test -d $ac_dir || continue
3546 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3547 ac_xdir=$ac_dir/cf$$
3548 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3549 ac_tf1=$ac_xdir/conftest9012345
3550 ac_tf2=$ac_xdir/conftest9012346
3551 (echo 1 >$ac_tf1) 2>/dev/null
3552 (echo 2 >$ac_tf2) 2>/dev/null
3553 ac_val=`cat $ac_tf1 2>/dev/null`
3554 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3555 ac_cv_sys_long_file_names=no
3556 rm -rf $ac_xdir 2>/dev/null
3559 rm -rf $ac_xdir 2>/dev/null
3562 echo "$as_me:3562: result: $ac_cv_sys_long_file_names" >&5
3563 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3564 if test $ac_cv_sys_long_file_names = yes; then
3566 cat >>confdefs.h <<\EOF
3567 #define HAVE_LONG_FILE_NAMES 1
3572 echo "$as_me:3572: checking if filesystem supports mixed-case filenames" >&5
3573 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3574 if test "${cf_cv_mixedcase+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 if test "$cross_compiling" = yes ; then
3579 case $target_alias in #(vi
3580 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3588 rm -f conftest CONFTEST
3590 if test -f CONFTEST ; then
3595 rm -f conftest CONFTEST
3599 echo "$as_me:3599: result: $cf_cv_mixedcase" >&5
3600 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3601 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3602 #define MIXEDCASE_FILENAMES 1
3605 if test -n "$ac_tool_prefix"; then
3606 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3607 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3608 echo "$as_me:3608: checking for $ac_word" >&5
3609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3610 if test "${ac_cv_prog_RANLIB+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 if test -n "$RANLIB"; then
3614 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3616 ac_save_IFS=$IFS; IFS=$ac_path_separator
3618 for ac_dir in $ac_dummy; do
3620 test -z "$ac_dir" && ac_dir=.
3621 $as_executable_p "$ac_dir/$ac_word" || continue
3622 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3623 echo "$as_me:3623: found $ac_dir/$ac_word" >&5
3629 RANLIB=$ac_cv_prog_RANLIB
3630 if test -n "$RANLIB"; then
3631 echo "$as_me:3631: result: $RANLIB" >&5
3632 echo "${ECHO_T}$RANLIB" >&6
3634 echo "$as_me:3634: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3639 if test -z "$ac_cv_prog_RANLIB"; then
3640 ac_ct_RANLIB=$RANLIB
3641 # Extract the first word of "ranlib", so it can be a program name with args.
3642 set dummy ranlib; ac_word=$2
3643 echo "$as_me:3643: checking for $ac_word" >&5
3644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 if test -n "$ac_ct_RANLIB"; then
3649 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3651 ac_save_IFS=$IFS; IFS=$ac_path_separator
3653 for ac_dir in $ac_dummy; do
3655 test -z "$ac_dir" && ac_dir=.
3656 $as_executable_p "$ac_dir/$ac_word" || continue
3657 ac_cv_prog_ac_ct_RANLIB="ranlib"
3658 echo "$as_me:3658: found $ac_dir/$ac_word" >&5
3662 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3666 if test -n "$ac_ct_RANLIB"; then
3667 echo "$as_me:3667: result: $ac_ct_RANLIB" >&5
3668 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3670 echo "$as_me:3670: result: no" >&5
3671 echo "${ECHO_T}no" >&6
3674 RANLIB=$ac_ct_RANLIB
3676 RANLIB="$ac_cv_prog_RANLIB"
3679 if test -n "$ac_tool_prefix"; then
3680 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3681 set dummy ${ac_tool_prefix}ld; ac_word=$2
3682 echo "$as_me:3682: checking for $ac_word" >&5
3683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3684 if test "${ac_cv_prog_LD+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 if test -n "$LD"; then
3688 ac_cv_prog_LD="$LD" # Let the user override the test.
3690 ac_save_IFS=$IFS; IFS=$ac_path_separator
3692 for ac_dir in $ac_dummy; do
3694 test -z "$ac_dir" && ac_dir=.
3695 $as_executable_p "$ac_dir/$ac_word" || continue
3696 ac_cv_prog_LD="${ac_tool_prefix}ld"
3697 echo "$as_me:3697: found $ac_dir/$ac_word" >&5
3704 if test -n "$LD"; then
3705 echo "$as_me:3705: result: $LD" >&5
3706 echo "${ECHO_T}$LD" >&6
3708 echo "$as_me:3708: result: no" >&5
3709 echo "${ECHO_T}no" >&6
3713 if test -z "$ac_cv_prog_LD"; then
3715 # Extract the first word of "ld", so it can be a program name with args.
3716 set dummy ld; ac_word=$2
3717 echo "$as_me:3717: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 if test -n "$ac_ct_LD"; then
3723 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3725 ac_save_IFS=$IFS; IFS=$ac_path_separator
3727 for ac_dir in $ac_dummy; do
3729 test -z "$ac_dir" && ac_dir=.
3730 $as_executable_p "$ac_dir/$ac_word" || continue
3731 ac_cv_prog_ac_ct_LD="ld"
3732 echo "$as_me:3732: found $ac_dir/$ac_word" >&5
3736 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3739 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3740 if test -n "$ac_ct_LD"; then
3741 echo "$as_me:3741: result: $ac_ct_LD" >&5
3742 echo "${ECHO_T}$ac_ct_LD" >&6
3744 echo "$as_me:3744: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}ar; ac_word=$2
3756 echo "$as_me:3756: checking for $ac_word" >&5
3757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758 if test "${ac_cv_prog_AR+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 if test -n "$AR"; then
3762 ac_cv_prog_AR="$AR" # Let the user override the test.
3764 ac_save_IFS=$IFS; IFS=$ac_path_separator
3766 for ac_dir in $ac_dummy; do
3768 test -z "$ac_dir" && ac_dir=.
3769 $as_executable_p "$ac_dir/$ac_word" || continue
3770 ac_cv_prog_AR="${ac_tool_prefix}ar"
3771 echo "$as_me:3771: found $ac_dir/$ac_word" >&5
3778 if test -n "$AR"; then
3779 echo "$as_me:3779: result: $AR" >&5
3780 echo "${ECHO_T}$AR" >&6
3782 echo "$as_me:3782: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3787 if test -z "$ac_cv_prog_AR"; then
3789 # Extract the first word of "ar", so it can be a program name with args.
3790 set dummy ar; ac_word=$2
3791 echo "$as_me:3791: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 if test -n "$ac_ct_AR"; then
3797 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3799 ac_save_IFS=$IFS; IFS=$ac_path_separator
3801 for ac_dir in $ac_dummy; do
3803 test -z "$ac_dir" && ac_dir=.
3804 $as_executable_p "$ac_dir/$ac_word" || continue
3805 ac_cv_prog_ac_ct_AR="ar"
3806 echo "$as_me:3806: found $ac_dir/$ac_word" >&5
3810 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3813 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3814 if test -n "$ac_ct_AR"; then
3815 echo "$as_me:3815: result: $ac_ct_AR" >&5
3816 echo "${ECHO_T}$ac_ct_AR" >&6
3818 echo "$as_me:3818: result: no" >&5
3819 echo "${ECHO_T}no" >&6
3827 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 echo "$as_me:3831: checking for archiver options (symbol AR_OPTS)" >&5
3832 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3834 if test -z "$AR_OPTS" ; then
3839 cf_cv_subst_AR_OPTS=$AR_OPTS
3840 echo "$as_me:3840: result: $AR_OPTS" >&5
3841 echo "${ECHO_T}$AR_OPTS" >&6
3845 echo "$as_me:3845: checking if you have specified an install-prefix" >&5
3846 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3848 # Check whether --with-install-prefix or --without-install-prefix was given.
3849 if test "${with_install_prefix+set}" = set; then
3850 withval="$with_install_prefix"
3851 case "$withval" in #(vi
3854 *) DESTDIR="$withval"
3858 echo "$as_me:3858: result: $DESTDIR" >&5
3859 echo "${ECHO_T}$DESTDIR" >&6
3861 ###############################################################################
3863 # If we're cross-compiling, allow the user to override the tools and their
3864 # options. The configure script is oriented toward identifying the host
3865 # compiler, etc., but we need a build compiler to generate parts of the source.
3867 if test "$cross_compiling" = yes ; then
3869 # defaults that we might want to override
3870 : ${BUILD_CFLAGS:=''}
3871 : ${BUILD_CPPFLAGS:=''}
3872 : ${BUILD_LDFLAGS:=''}
3874 : ${BUILD_EXEEXT:='$x'}
3875 : ${BUILD_OBJEXT:='o'}
3877 # Check whether --with-build-cc or --without-build-cc was given.
3878 if test "${with_build_cc+set}" = set; then
3879 withval="$with_build_cc"
3882 for ac_prog in gcc cc cl
3884 # Extract the first word of "$ac_prog", so it can be a program name with args.
3885 set dummy $ac_prog; ac_word=$2
3886 echo "$as_me:3886: checking for $ac_word" >&5
3887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3888 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 if test -n "$BUILD_CC"; then
3892 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3894 ac_save_IFS=$IFS; IFS=$ac_path_separator
3896 for ac_dir in $ac_dummy; do
3898 test -z "$ac_dir" && ac_dir=.
3899 $as_executable_p "$ac_dir/$ac_word" || continue
3900 ac_cv_prog_BUILD_CC="$ac_prog"
3901 echo "$as_me:3901: found $ac_dir/$ac_word" >&5
3907 BUILD_CC=$ac_cv_prog_BUILD_CC
3908 if test -n "$BUILD_CC"; then
3909 echo "$as_me:3909: result: $BUILD_CC" >&5
3910 echo "${ECHO_T}$BUILD_CC" >&6
3912 echo "$as_me:3912: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3916 test -n "$BUILD_CC" && break
3920 echo "$as_me:3920: checking for native build C compiler" >&5
3921 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3922 echo "$as_me:3922: result: $BUILD_CC" >&5
3923 echo "${ECHO_T}$BUILD_CC" >&6
3925 echo "$as_me:3925: checking for native build C preprocessor" >&5
3926 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3928 # Check whether --with-build-cpp or --without-build-cpp was given.
3929 if test "${with_build_cpp+set}" = set; then
3930 withval="$with_build_cpp"
3931 BUILD_CPP="$withval"
3933 BUILD_CPP='${BUILD_CC} -E'
3935 echo "$as_me:3935: result: $BUILD_CPP" >&5
3936 echo "${ECHO_T}$BUILD_CPP" >&6
3938 echo "$as_me:3938: checking for native build C flags" >&5
3939 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3941 # Check whether --with-build-cflags or --without-build-cflags was given.
3942 if test "${with_build_cflags+set}" = set; then
3943 withval="$with_build_cflags"
3944 BUILD_CFLAGS="$withval"
3946 echo "$as_me:3946: result: $BUILD_CFLAGS" >&5
3947 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3949 echo "$as_me:3949: checking for native build C preprocessor-flags" >&5
3950 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3952 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3953 if test "${with_build_cppflags+set}" = set; then
3954 withval="$with_build_cppflags"
3955 BUILD_CPPFLAGS="$withval"
3957 echo "$as_me:3957: result: $BUILD_CPPFLAGS" >&5
3958 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3960 echo "$as_me:3960: checking for native build linker-flags" >&5
3961 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3963 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3964 if test "${with_build_ldflags+set}" = set; then
3965 withval="$with_build_ldflags"
3966 BUILD_LDFLAGS="$withval"
3968 echo "$as_me:3968: result: $BUILD_LDFLAGS" >&5
3969 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3971 echo "$as_me:3971: checking for native build linker-libraries" >&5
3972 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3974 # Check whether --with-build-libs or --without-build-libs was given.
3975 if test "${with_build_libs+set}" = set; then
3976 withval="$with_build_libs"
3977 BUILD_LIBS="$withval"
3979 echo "$as_me:3979: result: $BUILD_LIBS" >&5
3980 echo "${ECHO_T}$BUILD_LIBS" >&6
3982 # this assumes we're on Unix.
3986 : ${BUILD_CC:='${CC}'}
3988 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3989 { { echo "$as_me:3989: error: Cross-build requires two compilers.
3990 Use --with-build-cc to specify the native compiler." >&5
3991 echo "$as_me: error: Cross-build requires two compilers.
3992 Use --with-build-cc to specify the native compiler." >&2;}
3993 { (exit 1); exit 1; }; }
3997 : ${BUILD_CC:='${CC}'}
3998 : ${BUILD_CPP:='${CPP}'}
3999 : ${BUILD_CFLAGS:='${CFLAGS}'}
4000 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4001 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4002 : ${BUILD_LIBS:='${LIBS}'}
4003 : ${BUILD_EXEEXT:='$x'}
4004 : ${BUILD_OBJEXT:='o'}
4007 ###############################################################################
4009 ### Options to allow the user to specify the set of libraries which are used.
4010 ### Use "--without-normal --with-shared" to allow the default model to be
4011 ### shared, for example.
4016 # common library maintenance symbols that are convenient for libtool scripts:
4017 LIB_CREATE='${AR} -cr'
4018 LIB_OBJECT='${OBJECTS}'
4022 # symbols used to prop libtool up to enable it to determine what it should be
4030 echo "$as_me:4030: checking if you want to build libraries with libtool" >&5
4031 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4033 # Check whether --with-libtool or --without-libtool was given.
4034 if test "${with_libtool+set}" = set; then
4035 withval="$with_libtool"
4036 with_libtool=$withval
4040 echo "$as_me:4040: result: $with_libtool" >&5
4041 echo "${ECHO_T}$with_libtool" >&6
4042 if test "$with_libtool" != "no"; then
4044 if test "$with_libtool" != "yes" ; then
4046 if test "x$prefix" != xNONE; then
4047 cf_path_syntax="$prefix"
4049 cf_path_syntax="$ac_default_prefix"
4052 case ".$with_libtool" in #(vi
4053 .\$\(*\)*|.\'*\'*) #(vi
4057 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4060 eval with_libtool="$with_libtool"
4061 case ".$with_libtool" in #(vi
4063 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4068 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4071 { { echo "$as_me:4071: error: expected a pathname, not \"$with_libtool\"" >&5
4072 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4073 { (exit 1); exit 1; }; }
4077 LIBTOOL=$with_libtool
4079 # Extract the first word of "libtool", so it can be a program name with args.
4080 set dummy libtool; ac_word=$2
4081 echo "$as_me:4081: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4091 ac_save_IFS=$IFS; IFS=$ac_path_separator
4093 for ac_dir in $ac_dummy; do
4095 test -z "$ac_dir" && ac_dir=.
4096 if $as_executable_p "$ac_dir/$ac_word"; then
4097 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4098 echo "$as_me:4098: found $ac_dir/$ac_word" >&5
4106 LIBTOOL=$ac_cv_path_LIBTOOL
4108 if test -n "$LIBTOOL"; then
4109 echo "$as_me:4109: result: $LIBTOOL" >&5
4110 echo "${ECHO_T}$LIBTOOL" >&6
4112 echo "$as_me:4112: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4117 if test -z "$LIBTOOL" ; then
4118 { { echo "$as_me:4118: error: Cannot find libtool" >&5
4119 echo "$as_me: error: Cannot find libtool" >&2;}
4120 { (exit 1); exit 1; }; }
4122 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` -o'
4123 LIB_OBJECT='${OBJECTS}.o=.lo)'
4125 LIB_CLEAN='${LIBTOOL} --mode=clean'
4126 LIB_COMPILE='${LIBTOOL} --mode=compile'
4127 LIB_LINK='${LIBTOOL} --mode=link'
4128 LIB_INSTALL='${LIBTOOL} --mode=install'
4129 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4132 # Show the version of libtool
4133 echo "$as_me:4133: checking version of libtool" >&5
4134 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4136 # Save the version in a cache variable - this is not entirely a good
4137 # thing, but the version string from libtool is very ugly, and for
4138 # bug reports it might be useful to have the original string.
4139 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4140 echo "$as_me:4140: result: $cf_cv_libtool_version" >&5
4141 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4142 if test -z "$cf_cv_libtool_version" ; then
4143 { { echo "$as_me:4143: error: This is not libtool" >&5
4144 echo "$as_me: error: This is not libtool" >&2;}
4145 { (exit 1); exit 1; }; }
4148 # special hack to add --tag option for C++ compiler
4149 case $cf_cv_libtool_version in
4151 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4154 LIBTOOL_CXX="$LIBTOOL"
4162 test -z "$LIBTOOL" && ECHO_LT=
4164 if test "$with_libtool" != "no" ; then
4166 cf_list_models="$cf_list_models libtool"
4170 echo "$as_me:4170: checking if you want to build shared libraries" >&5
4171 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4173 # Check whether --with-shared or --without-shared was given.
4174 if test "${with_shared+set}" = set; then
4175 withval="$with_shared"
4176 with_shared=$withval
4180 echo "$as_me:4180: result: $with_shared" >&5
4181 echo "${ECHO_T}$with_shared" >&6
4182 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4184 echo "$as_me:4184: checking if you want to build static libraries" >&5
4185 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4187 # Check whether --with-normal or --without-normal was given.
4188 if test "${with_normal+set}" = set; then
4189 withval="$with_normal"
4190 with_normal=$withval
4194 echo "$as_me:4194: result: $with_normal" >&5
4195 echo "${ECHO_T}$with_normal" >&6
4196 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4198 echo "$as_me:4198: checking if you want to build debug libraries" >&5
4199 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4201 # Check whether --with-debug or --without-debug was given.
4202 if test "${with_debug+set}" = set; then
4203 withval="$with_debug"
4208 echo "$as_me:4208: result: $with_debug" >&5
4209 echo "${ECHO_T}$with_debug" >&6
4210 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4212 echo "$as_me:4212: checking if you want to build profiling libraries" >&5
4213 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4215 # Check whether --with-profile or --without-profile was given.
4216 if test "${with_profile+set}" = set; then
4217 withval="$with_profile"
4218 with_profile=$withval
4222 echo "$as_me:4222: result: $with_profile" >&5
4223 echo "${ECHO_T}$with_profile" >&6
4224 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4228 ###############################################################################
4230 echo "$as_me:4230: checking for specified models" >&5
4231 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4232 test -z "$cf_list_models" && cf_list_models=normal
4233 test "$with_libtool" != "no" && cf_list_models=libtool
4234 echo "$as_me:4234: result: $cf_list_models" >&5
4235 echo "${ECHO_T}$cf_list_models" >&6
4237 ### Use the first model as the default, and save its suffix for use in building
4238 ### up test-applications.
4239 echo "$as_me:4239: checking for default model" >&5
4240 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4241 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4242 echo "$as_me:4242: result: $DFT_LWR_MODEL" >&5
4243 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4245 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4254 case $cf_cv_system_name in
4255 OS/2*) LIB_PREFIX='' ;;
4256 os2*) LIB_PREFIX='' ;;
4257 *) LIB_PREFIX='lib' ;;
4259 cf_prefix=$LIB_PREFIX
4261 LIB_PREFIX=$cf_prefix
4265 ###############################################################################
4267 echo "$as_me:4267: checking if you want to build a separate terminfo library" >&5
4268 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4270 # Check whether --with-termlib or --without-termlib was given.
4271 if test "${with_termlib+set}" = set; then
4272 withval="$with_termlib"
4273 with_termlib=$withval
4277 echo "$as_me:4277: result: $with_termlib" >&5
4278 echo "${ECHO_T}$with_termlib" >&6
4280 ### Checks for special libraries, must be done up-front.
4283 echo "$as_me:4283: checking if you want to link with the GPM mouse library" >&5
4284 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4286 # Check whether --with-gpm or --without-gpm was given.
4287 if test "${with_gpm+set}" = set; then
4293 echo "$as_me:4293: result: $with_gpm" >&5
4294 echo "${ECHO_T}$with_gpm" >&6
4296 if test "$with_gpm" != no ; then
4297 echo "$as_me:4297: checking for gpm.h" >&5
4298 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4299 if test "${ac_cv_header_gpm_h+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 cat >conftest.$ac_ext <<_ACEOF
4303 #line 4303 "configure"
4304 #include "confdefs.h"
4307 if { (eval echo "$as_me:4307: \"$ac_cpp conftest.$ac_ext\"") >&5
4308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4310 egrep -v '^ *\+' conftest.er1 >conftest.err
4312 cat conftest.err >&5
4313 echo "$as_me:4313: \$? = $ac_status" >&5
4314 (exit $ac_status); } >/dev/null; then
4315 if test -s conftest.err; then
4316 ac_cpp_err=$ac_c_preproc_warn_flag
4323 if test -z "$ac_cpp_err"; then
4324 ac_cv_header_gpm_h=yes
4326 echo "$as_me: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4328 ac_cv_header_gpm_h=no
4330 rm -f conftest.err conftest.$ac_ext
4332 echo "$as_me:4332: result: $ac_cv_header_gpm_h" >&5
4333 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4334 if test $ac_cv_header_gpm_h = yes; then
4336 cat >>confdefs.h <<\EOF
4337 #define HAVE_GPM_H 1
4340 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4341 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4343 cat >>confdefs.h <<\EOF
4344 #define HAVE_LIBGPM 1
4348 echo "$as_me:4348: checking for Gpm_Open in -lgpm" >&5
4349 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4350 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 ac_check_lib_save_LIBS=$LIBS
4355 cat >conftest.$ac_ext <<_ACEOF
4356 #line 4356 "configure"
4357 #include "confdefs.h"
4359 /* Override any gcc2 internal prototype to avoid an error. */
4363 /* We use char because int might match the return type of a gcc2
4364 builtin and then its argument prototype would still apply. */
4374 rm -f conftest.$ac_objext conftest$ac_exeext
4375 if { (eval echo "$as_me:4375: \"$ac_link\"") >&5
4376 (eval $ac_link) 2>&5
4378 echo "$as_me:4378: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
4380 { ac_try='test -s conftest$ac_exeext'
4381 { (eval echo "$as_me:4381: \"$ac_try\"") >&5
4384 echo "$as_me:4384: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_cv_lib_gpm_Gpm_Open=yes
4388 echo "$as_me: failed program was:" >&5
4389 cat conftest.$ac_ext >&5
4390 ac_cv_lib_gpm_Gpm_Open=no
4392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4393 LIBS=$ac_check_lib_save_LIBS
4395 echo "$as_me:4395: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4396 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4397 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4401 { { echo "$as_me:4401: error: Cannot link with GPM library" >&5
4402 echo "$as_me: error: Cannot link with GPM library" >&2;}
4403 { (exit 1); exit 1; }; }
4411 test "$with_gpm" != maybe && { echo "$as_me:4411: WARNING: Cannot find GPM header" >&5
4412 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4419 if test "$with_gpm" != no ; then
4420 echo "$as_me:4420: checking if you want to load GPM dynamically" >&5
4421 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4423 # Check whether --with-dlsym or --without-dlsym was given.
4424 if test "${with_dlsym+set}" = set; then
4425 withval="$with_dlsym"
4430 echo "$as_me:4430: result: $with_dlsym" >&5
4431 echo "${ECHO_T}$with_dlsym" >&6
4432 if test "$with_dlsym" = yes ; then
4435 echo "$as_me:4435: checking for dlsym" >&5
4436 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4437 if test "${ac_cv_func_dlsym+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 cat >conftest.$ac_ext <<_ACEOF
4441 #line 4441 "configure"
4442 #include "confdefs.h"
4443 /* System header to define __stub macros and hopefully few prototypes,
4444 which can conflict with char dlsym (); below. */
4446 /* Override any gcc2 internal prototype to avoid an error. */
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4458 /* The GNU C library defines this for functions which it implements
4459 to always fail with ENOSYS. Some functions are actually named
4460 something starting with __ and the normal name is an alias. */
4461 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4471 rm -f conftest.$ac_objext conftest$ac_exeext
4472 if { (eval echo "$as_me:4472: \"$ac_link\"") >&5
4473 (eval $ac_link) 2>&5
4475 echo "$as_me:4475: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try='test -s conftest$ac_exeext'
4478 { (eval echo "$as_me:4478: \"$ac_try\"") >&5
4481 echo "$as_me:4481: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_cv_func_dlsym=yes
4485 echo "$as_me: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4491 echo "$as_me:4491: result: $ac_cv_func_dlsym" >&5
4492 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4493 if test $ac_cv_func_dlsym = yes; then
4498 echo "$as_me:4498: checking for dlsym in -ldl" >&5
4499 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4500 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 ac_check_lib_save_LIBS=$LIBS
4505 cat >conftest.$ac_ext <<_ACEOF
4506 #line 4506 "configure"
4507 #include "confdefs.h"
4509 /* Override any gcc2 internal prototype to avoid an error. */
4513 /* We use char because int might match the return type of a gcc2
4514 builtin and then its argument prototype would still apply. */
4524 rm -f conftest.$ac_objext conftest$ac_exeext
4525 if { (eval echo "$as_me:4525: \"$ac_link\"") >&5
4526 (eval $ac_link) 2>&5
4528 echo "$as_me:4528: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try='test -s conftest$ac_exeext'
4531 { (eval echo "$as_me:4531: \"$ac_try\"") >&5
4534 echo "$as_me:4534: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 ac_cv_lib_dl_dlsym=yes
4538 echo "$as_me: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4540 ac_cv_lib_dl_dlsym=no
4542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4543 LIBS=$ac_check_lib_save_LIBS
4545 echo "$as_me:4545: result: $ac_cv_lib_dl_dlsym" >&5
4546 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4547 if test $ac_cv_lib_dl_dlsym = yes; then
4555 if test "$cf_have_dlsym" = yes ; then
4556 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4558 echo "$as_me:4558: checking whether able to link to dl*() functions" >&5
4559 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4560 cat >conftest.$ac_ext <<_ACEOF
4561 #line 4561 "configure"
4562 #include "confdefs.h"
4569 if ((obj = dlopen("filename", 0)) != 0) {
4570 if (dlsym(obj, "symbolname") == 0) {
4578 rm -f conftest.$ac_objext conftest$ac_exeext
4579 if { (eval echo "$as_me:4579: \"$ac_link\"") >&5
4580 (eval $ac_link) 2>&5
4582 echo "$as_me:4582: \$? = $ac_status" >&5
4583 (exit $ac_status); } &&
4584 { ac_try='test -s conftest$ac_exeext'
4585 { (eval echo "$as_me:4585: \"$ac_try\"") >&5
4588 echo "$as_me:4588: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4591 cat >>confdefs.h <<\EOF
4592 #define HAVE_LIBDL 1
4596 echo "$as_me: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4599 { { echo "$as_me:4599: error: Cannot link test program for libdl" >&5
4600 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4601 { (exit 1); exit 1; }; }
4603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4604 echo "$as_me:4604: result: ok" >&5
4605 echo "${ECHO_T}ok" >&6
4607 { { echo "$as_me:4607: error: Cannot find dlsym function" >&5
4608 echo "$as_me: error: Cannot find dlsym function" >&2;}
4609 { (exit 1); exit 1; }; }
4612 if test "$with_gpm" != yes ; then
4613 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4615 cf_cv_gpm_soname="$with_gpm"
4618 echo "$as_me:4618: checking for soname of gpm library" >&5
4619 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
4620 if test "${cf_cv_gpm_soname+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 cf_cv_gpm_soname=unknown
4625 if test "$cross_compiling" != yes ; then
4626 cat >conftest.$ac_ext <<CF_EOF
4630 if (Gpm_Open(0,0)) Gpm_Close();
4631 ${cf_cv_main_return:-return}(0);
4634 cf_save_LIBS="$LIBS"
4636 if { (eval echo "$as_me:4636: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>&5
4639 echo "$as_me:4639: \$? = $ac_status" >&5
4640 (exit $ac_status); } ; then
4641 if { (eval echo "$as_me:4641: \"$ac_link\"") >&5
4642 (eval $ac_link) 2>&5
4644 echo "$as_me:4644: \$? = $ac_status" >&5
4645 (exit $ac_status); } ; then
4646 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
4647 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
4651 LIBS="$cf_save_LIBS"
4655 echo "$as_me:4655: result: $cf_cv_gpm_soname" >&5
4656 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
4659 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
4660 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
4663 SHLIB_LIST="-ldl $SHLIB_LIST"
4665 SHLIB_LIST="-lgpm $SHLIB_LIST"
4667 cat >>confdefs.h <<\EOF
4668 #define HAVE_LIBGPM 1
4671 echo "$as_me:4671: checking for Gpm_Wgetch in -lgpm" >&5
4672 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
4673 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 ac_check_lib_save_LIBS=$LIBS
4678 cat >conftest.$ac_ext <<_ACEOF
4679 #line 4679 "configure"
4680 #include "confdefs.h"
4682 /* Override any gcc2 internal prototype to avoid an error. */
4686 /* We use char because int might match the return type of a gcc2
4687 builtin and then its argument prototype would still apply. */
4697 rm -f conftest.$ac_objext conftest$ac_exeext
4698 if { (eval echo "$as_me:4698: \"$ac_link\"") >&5
4699 (eval $ac_link) 2>&5
4701 echo "$as_me:4701: \$? = $ac_status" >&5
4702 (exit $ac_status); } &&
4703 { ac_try='test -s conftest$ac_exeext'
4704 { (eval echo "$as_me:4704: \"$ac_try\"") >&5
4707 echo "$as_me:4707: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_cv_lib_gpm_Gpm_Wgetch=yes
4711 echo "$as_me: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4713 ac_cv_lib_gpm_Gpm_Wgetch=no
4715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4716 LIBS=$ac_check_lib_save_LIBS
4718 echo "$as_me:4718: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
4719 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
4720 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
4722 { echo "$as_me:4722: WARNING: GPM library is already linked with curses - read the FAQ" >&5
4723 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
4729 # not everyone has "test -c"
4730 if test -c /dev/sysmouse 2>/dev/null ; then
4731 echo "$as_me:4731: checking if you want to use sysmouse" >&5
4732 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
4734 # Check whether --with-sysmouse or --without-sysmouse was given.
4735 if test "${with_sysmouse+set}" = set; then
4736 withval="$with_sysmouse"
4737 cf_with_sysmouse=$withval
4739 cf_with_sysmouse=maybe
4741 if test "$cf_with_sysmouse" != no ; then
4742 cat >conftest.$ac_ext <<_ACEOF
4743 #line 4743 "configure"
4744 #include "confdefs.h"
4746 #include <osreldate.h>
4747 #if (__FreeBSD_version >= 400017)
4748 #include <sys/consio.h>
4749 #include <sys/fbio.h>
4751 #include <machine/console.h>
4758 struct mouse_info the_mouse;
4759 ioctl(0, CONS_MOUSECTL, &the_mouse);
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:4766: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>&5
4769 echo "$as_me:4769: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try='test -s conftest.$ac_objext'
4772 { (eval echo "$as_me:4772: \"$ac_try\"") >&5
4775 echo "$as_me:4775: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 cf_with_sysmouse=yes
4779 echo "$as_me: failed program was:" >&5
4780 cat conftest.$ac_ext >&5
4783 rm -f conftest.$ac_objext conftest.$ac_ext
4785 echo "$as_me:4785: result: $cf_with_sysmouse" >&5
4786 echo "${ECHO_T}$cf_with_sysmouse" >&6
4787 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
4788 #define USE_SYSMOUSE 1
4793 if test X"$CC_G_OPT" = X"" ; then
4795 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
4798 if test X"$CXX_G_OPT" = X"" ; then
4800 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
4803 echo "$as_me:4803: checking for default loader flags" >&5
4804 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
4805 case $DFT_LWR_MODEL in
4806 libtool) LD_MODEL='' ;;
4807 normal) LD_MODEL='' ;;
4808 debug) LD_MODEL=$CC_G_OPT ;;
4809 profile) LD_MODEL='-pg';;
4810 shared) LD_MODEL='' ;;
4812 echo "$as_me:4812: result: $LD_MODEL" >&5
4813 echo "${ECHO_T}$LD_MODEL" >&6
4815 echo "$as_me:4815: checking if rpath option should be used" >&5
4816 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
4818 # Check whether --enable-rpath or --disable-rpath was given.
4819 if test "${enable_rpath+set}" = set; then
4820 enableval="$enable_rpath"
4821 cf_cv_ld_rpath=$enableval
4825 echo "$as_me:4825: result: $cf_cv_ld_rpath" >&5
4826 echo "${ECHO_T}$cf_cv_ld_rpath" >&6
4831 INSTALL_LIB="-m 644"
4833 cf_cv_do_symlinks=no
4835 echo "$as_me:4835: checking if release/abi version should be used for shared libs" >&5
4836 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
4838 # Check whether --with-shlib-version or --without-shlib-version was given.
4839 if test "${with_shlib_version+set}" = set; then
4840 withval="$with_shlib_version"
4841 test -z "$withval" && withval=auto
4842 case $withval in #(vi
4844 cf_cv_shlib_version=auto
4846 rel|abi|auto|no) #(vi
4847 cf_cv_shlib_version=$withval
4850 { { echo "$as_me:4850: error: option value must be one of: rel, abi, auto or no" >&5
4851 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
4852 { (exit 1); exit 1; }; }
4857 cf_cv_shlib_version=auto
4859 echo "$as_me:4859: result: $cf_cv_shlib_version" >&5
4860 echo "${ECHO_T}$cf_cv_shlib_version" >&6
4864 # Some less-capable ports of gcc support only -fpic
4866 if test "$GCC" = yes
4868 echo "$as_me:4868: checking which $CC option to use" >&5
4869 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
4870 cf_save_CFLAGS="$CFLAGS"
4871 for CC_SHARED_OPTS in -fPIC -fpic ''
4873 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
4874 cat >conftest.$ac_ext <<_ACEOF
4875 #line 4875 "configure"
4876 #include "confdefs.h"
4886 rm -f conftest.$ac_objext
4887 if { (eval echo "$as_me:4887: \"$ac_compile\"") >&5
4888 (eval $ac_compile) 2>&5
4890 echo "$as_me:4890: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try='test -s conftest.$ac_objext'
4893 { (eval echo "$as_me:4893: \"$ac_try\"") >&5
4896 echo "$as_me:4896: \$? = $ac_status" >&5
4897 (exit $ac_status); }; }; then