2 # From configure.in Revision: 1.451 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20080325.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
611 # Report the --help message.
613 if test "$ac_init_help" = "long"; then
614 # Omit some internal or obsolete options to make the list less imposing.
615 # This message is too long to be a string in the A/UX 3.1 sh.
617 \`configure' configures this package to adapt to many kinds of systems.
619 Usage: $0 [OPTION]... [VAR=VALUE]...
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE. See below for descriptions of some of the useful variables.
624 Defaults for the options are specified in brackets.
627 -h, --help display this help and exit
628 --help=short display options specific to this package
629 --help=recursive display the short help of all the included packages
630 -V, --version display version information and exit
631 -q, --quiet, --silent do not print \`checking...' messages
632 --cache-file=FILE cache test results in FILE [disabled]
633 -C, --config-cache alias for \`--cache-file=config.cache'
634 -n, --no-create do not create output files
635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
640 Installation directories:
641 --prefix=PREFIX install architecture-independent files in PREFIX
643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
651 For better control, use the options below.
653 Fine tuning of the installation directories:
654 --bindir=DIR user executables [EPREFIX/bin]
655 --sbindir=DIR system admin executables [EPREFIX/sbin]
656 --libexecdir=DIR program executables [EPREFIX/libexec]
657 --datadir=DIR read-only architecture-independent data [PREFIX/share]
658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
661 --libdir=DIR object code libraries [EPREFIX/lib]
662 --includedir=DIR C header files [PREFIX/include]
663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
664 --infodir=DIR info documentation [PREFIX/info]
665 --mandir=DIR man documentation [PREFIX/man]
671 --program-prefix=PREFIX prepend PREFIX to installed program names
672 --program-suffix=SUFFIX append SUFFIX to installed program names
673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 --target=TARGET configure for building compilers for TARGET [HOST]
682 if test -n "$ac_init_help"; then
687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
694 --with-rel-version=XXX override derived release version
695 --with-abi-version=XXX override derived ABI version
696 --with-system-type=XXX test: override derived host system-type
697 --without-cxx do not adjust ncurses bool to match C++
698 --without-cxx-binding do not build C++ binding and demo
699 --without-ada suppress check for Ada95, don't build demo
700 --without-progs suppress build with programs (e.g., tic)
701 --without-curses-h install curses.h as ncurses.h only
702 --enable-mixed-case tic should assume mixed-case filenames
703 --with-install-prefix prefixes actual install-location ($DESTDIR)
704 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
705 --with-build-cc=XXX the build C compiler ($BUILD_CC)
706 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
707 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
708 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
709 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
710 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
711 Options to Specify the Libraries Built/Used:
712 --with-libtool generate libraries with libtool
713 --with-shared generate shared-libraries
714 --with-normal generate normal-libraries (default)
715 --with-debug generate debug-libraries (default)
716 --with-profile generate profile-libraries
717 --with-termlib generate separate terminfo library
718 --with-ticlib generate separate tic library
719 --with-gpm use Alessandro Rubini's GPM library
720 --without-dlsym do not use dlsym() to load GPM dynamically
721 --with-sysmouse use sysmouse (FreeBSD console)
722 --enable-rpath use rpath option when generating shared libraries
723 --disable-relink relink shared libraries during install
724 --with-shlib-version=X Specify rel or abi version for shared libs
725 Fine-Tuning Your Configuration:
726 --disable-overwrite leave out the link to -lcurses
727 --disable-database do not use terminfo, only fallbacks/termcap
728 --with-database=XXX specify terminfo source to install
729 --with-hashed-db specify hashed-database library
730 --with-fallbacks=XXX specify list of fallback terminal descriptions
731 --without-xterm-new specify if xterm terminfo should be old version
732 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
733 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
734 --disable-big-core assume machine has little memory
735 --disable-big-strings assume compiler has only standard-size strings
736 --enable-termcap compile in termcap fallback support
737 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
738 --enable-getcap fast termcap load, no xrefs to terminfo
739 --enable-getcap-cache cache translated termcaps in ~/.terminfo
740 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
741 --disable-root-environ restrict environment when running as root
742 --enable-symlinks make tic use symbolic links not hard links
743 --enable-broken_linker compile with broken-linker support code
744 --enable-bsdpad recognize BSD-style prefix padding
745 --enable-widec compile with wide-char/UTF-8 code
746 --disable-lp64 allow chtype to be long (ignore _LP64)
747 --disable-largefile omit support for large files
748 --disable-tparm-varargs compile tparm() without varargs interface
749 --with-bool=TYPE override fallback type of bool variable
750 --with-caps=alt compile with alternate Caps file
751 --with-chtype=TYPE override type of chtype
752 --with-ospeed=TYPE override type of ospeed variable
753 --with-mmask-t=TYPE override type of mmask_t
754 --with-rcs-ids compile-in RCS identifiers
755 Options to Specify How Manpages are Installed:
756 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
757 optionally formatted/catonly, e.g., gzip,formatted
758 --with-manpage-renames specify manpage-renaming
759 --with-manpage-aliases specify manpage-aliases using .so
760 --with-manpage-symlinks specify manpage-aliases using symlinks
761 --with-manpage-tbl specify manpage processing with tbl
763 --disable-ext-funcs disable function-extensions
764 --enable-const compile with extra/non-standard const
765 --enable-ext-colors compile for 256-color support
766 --enable-ext-mouse compile for extended mouse-encoding
767 --enable-no-padding compile with $NCURSES_NO_PADDING code
768 --enable-signed-char compile using signed Boolean's in term.h
769 --enable-sigwinch compile with SIGWINCH handler
770 --enable-tcap-names compile with user-definable terminal capabilities
772 --without-develop disable development options
773 --enable-hard-tabs compile with hard-tabs code
774 --enable-xmc-glitch compile with support for xmc (magic-cookie)
776 --disable-assumed-color do not assume anything about default-colors
777 --disable-hashmap compile without hashmap scrolling-optimization
778 --enable-colorfgbg compile with $COLORFGBG code
779 --with-pthread use POSIX thread library
780 --enable-weak-symbols enable weak-symbols for pthreads
781 --enable-reentrant compile with experimental reentrant code
782 --enable-safe-sprintf compile with experimental safe-sprintf code
783 --disable-scroll-hints compile without scroll-hints code
784 --enable-wgetch-events compile with experimental wgetch-events code
785 Testing/development Options:
786 --enable-echo build: display "compiling" commands (default)
787 --enable-warnings build: turn on GCC compiler warnings
788 --enable-assertions test: turn on generation of assertion code
789 --with-dmalloc test: use Gray Watson's dmalloc library
790 --with-dbmalloc test: use Conor Cahill's dbmalloc library
791 --with-valgrind test: use valgrind
792 --disable-leaks test: free permanent memory, analyze leaks
793 --enable-expanded test: generate functions for certain macros
794 --disable-macros test: use functions rather than macros
795 --with-trace test: add trace() function to all models of ncurses
796 Ada95 Binding Options:
797 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
798 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
799 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
801 Some influential environment variables:
802 CC C compiler command
803 CFLAGS C compiler flags
804 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
805 nonstandard directory <lib dir>
806 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
807 headers in a nonstandard directory <include dir>
809 CXX C++ compiler command
810 CXXFLAGS C++ compiler flags
811 CXXCPP C++ preprocessor
813 Use these variables to override the choices made by `configure' or to help
814 it to find libraries and programs with nonstandard names/locations.
819 if test "$ac_init_help" = "recursive"; then
820 # If there are subdirs, report their specific --help.
822 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
824 # A "../" for each directory in /$ac_subdir.
825 ac_dots=`echo $ac_subdir |
826 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
829 .) # No --srcdir option. We are building in place.
830 ac_sub_srcdir=$srcdir ;;
831 [\\/]* | ?:[\\/]* ) # Absolute path.
832 ac_sub_srcdir=$srcdir/$ac_subdir ;;
834 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
837 # Check for guested configure; otherwise get Cygnus style configure.
838 if test -f $ac_sub_srcdir/configure.gnu; then
840 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
841 elif test -f $ac_sub_srcdir/configure; then
843 $SHELL $ac_sub_srcdir/configure --help=recursive
844 elif test -f $ac_sub_srcdir/configure.ac ||
845 test -f $ac_sub_srcdir/configure.in; then
849 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
855 test -n "$ac_init_help" && exit 0
856 if $ac_init_version; then
859 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
860 Free Software Foundation, Inc.
861 This configure script is free software; the Free Software Foundation
862 gives unlimited permission to copy, distribute and modify it.
868 This file contains any messages produced by compilers while
869 running configure, to aid debugging if configure makes a mistake.
871 It was created by $as_me, which was
872 generated by GNU Autoconf 2.52.20080325. Invocation command line was
883 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
884 uname -m = `(uname -m) 2>/dev/null || echo unknown`
885 uname -r = `(uname -r) 2>/dev/null || echo unknown`
886 uname -s = `(uname -s) 2>/dev/null || echo unknown`
887 uname -v = `(uname -v) 2>/dev/null || echo unknown`
889 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
890 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
892 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
893 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
894 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
895 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
896 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
897 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
898 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
912 # Keep a trace of the command line.
913 # Strip out --no-create and --no-recursion so they do not pile up.
914 # Also quote any args containing shell meta-characters.
920 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
921 | --no-cr | --no-c) ;;
922 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
923 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
924 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
925 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
926 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
928 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
931 # Get rid of the leading space.
934 # When interrupted or exit'd, cleanup temporary files, and complete
935 # config.log. We remove comments because anyway the quotes in there
936 # would cause problems or look ugly.
938 # Save into config.log some information that might help in debugging.
940 echo "## ----------------- ##" >&5
941 echo "## Cache variables. ##" >&5
942 echo "## ----------------- ##" >&5
944 # The following way of writing the cache mishandles newlines in values,
947 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
950 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
955 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
959 sed "/^$/d" confdefs.h >conftest.log
960 if test -s conftest.log; then
962 echo "## ------------ ##" >&5
963 echo "## confdefs.h. ##" >&5
964 echo "## ------------ ##" >&5
969 test "$ac_signal" != 0 &&
970 echo "$as_me: caught signal $ac_signal" >&5
971 echo "$as_me: exit $exit_status" >&5
972 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
975 for ac_signal in 1 2 13 15; do
976 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
980 # confdefs.h avoids OS command line length limits that DEFS can exceed.
981 rm -rf conftest* confdefs.h
982 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
985 # Let the site file select an alternate cache file if it wants to.
986 # Prefer explicitly selected file to automatically selected ones.
987 if test -z "$CONFIG_SITE"; then
988 if test "x$prefix" != xNONE; then
989 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
991 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
994 for ac_site_file in $CONFIG_SITE; do
995 if test -r "$ac_site_file"; then
996 { echo "$as_me:996: loading site script $ac_site_file" >&5
997 echo "$as_me: loading site script $ac_site_file" >&6;}
998 cat "$ac_site_file" >&5
1003 if test -r "$cache_file"; then
1004 # Some versions of bash will fail to source /dev/null (special
1005 # files actually), so we avoid doing that.
1006 if test -f "$cache_file"; then
1007 { echo "$as_me:1007: loading cache $cache_file" >&5
1008 echo "$as_me: loading cache $cache_file" >&6;}
1010 [\\/]* | ?:[\\/]* ) . $cache_file;;
1011 *) . ./$cache_file;;
1015 { echo "$as_me:1015: creating cache $cache_file" >&5
1016 echo "$as_me: creating cache $cache_file" >&6;}
1020 # Check that the precious variables saved in the cache have kept the same
1022 ac_cache_corrupted=false
1023 for ac_var in `(set) 2>&1 |
1024 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1025 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1026 eval ac_new_set=\$ac_env_${ac_var}_set
1027 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1028 eval ac_new_val="\$ac_env_${ac_var}_value"
1029 case $ac_old_set,$ac_new_set in
1031 { echo "$as_me:1031: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1032 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1033 ac_cache_corrupted=: ;;
1035 { echo "$as_me:1035: error: \`$ac_var' was not set in the previous run" >&5
1036 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1037 ac_cache_corrupted=: ;;
1040 if test "x$ac_old_val" != "x$ac_new_val"; then
1041 { echo "$as_me:1041: error: \`$ac_var' has changed since the previous run:" >&5
1042 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1043 { echo "$as_me:1043: former value: $ac_old_val" >&5
1044 echo "$as_me: former value: $ac_old_val" >&2;}
1045 { echo "$as_me:1045: current value: $ac_new_val" >&5
1046 echo "$as_me: current value: $ac_new_val" >&2;}
1047 ac_cache_corrupted=:
1050 # Pass precious variables to config.status. It doesn't matter if
1051 # we pass some twice (in addition to the command line arguments).
1052 if test "$ac_new_set" = set; then
1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1056 ac_configure_args="$ac_configure_args '$ac_arg'"
1058 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1063 if $ac_cache_corrupted; then
1064 { echo "$as_me:1064: error: changes in the environment can compromise the build" >&5
1065 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1066 { { echo "$as_me:1066: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1067 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1068 { (exit 1); exit 1; }; }
1072 ac_cpp='$CPP $CPPFLAGS'
1073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1076 ac_main_return=return
1078 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1079 *c*,-n*) ECHO_N= ECHO_C='
1081 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1082 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1084 echo "#! $SHELL" >conftest.sh
1085 echo "exit 0" >>conftest.sh
1086 chmod +x conftest.sh
1087 if { (echo "$as_me:1087: PATH=\".;.\"; conftest.sh") >&5
1088 (PATH=".;."; conftest.sh) 2>&5
1090 echo "$as_me:1090: \$? = $ac_status" >&5
1091 (exit $ac_status); }; then
1092 ac_path_separator=';'
1096 PATH_SEPARATOR="$ac_path_separator"
1099 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1103 echo "$as_me:1103: checking for egrep" >&5
1104 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1105 if test "${ac_cv_prog_egrep+set}" = set; then
1106 echo $ECHO_N "(cached) $ECHO_C" >&6
1108 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1109 then ac_cv_prog_egrep='grep -E'
1110 else ac_cv_prog_egrep='egrep'
1113 echo "$as_me:1113: result: $ac_cv_prog_egrep" >&5
1114 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1115 EGREP=$ac_cv_prog_egrep
1117 test -z "$EGREP" && { { echo "$as_me:1117: error: No egrep program found" >&5
1118 echo "$as_me: error: No egrep program found" >&2;}
1119 { (exit 1); exit 1; }; }
1121 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1122 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1123 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1124 cf_cv_abi_version=${NCURSES_MAJOR}
1125 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1126 cf_cv_timestamp=`date`
1127 echo "$as_me:1127: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1128 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1130 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1132 # Check whether --with-rel-version or --without-rel-version was given.
1133 if test "${with_rel_version+set}" = set; then
1134 withval="$with_rel_version"
1135 { echo "$as_me:1135: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1136 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1137 cf_cv_rel_version=$withval
1140 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1141 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1143 if test -n "$NCURSES_MAJOR" ; then
1144 case $NCURSES_MAJOR in #(vi
1148 { { echo "$as_me:1148: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1149 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1150 { (exit 1); exit 1; }; }
1154 { { echo "$as_me:1154: error: Release major-version value is empty" >&5
1155 echo "$as_me: error: Release major-version value is empty" >&2;}
1156 { (exit 1); exit 1; }; }
1159 if test -n "$NCURSES_MINOR" ; then
1160 case $NCURSES_MINOR in #(vi
1164 { { echo "$as_me:1164: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1165 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1166 { (exit 1); exit 1; }; }
1170 { { echo "$as_me:1170: error: Release minor-version value is empty" >&5
1171 echo "$as_me: error: Release minor-version value is empty" >&2;}
1172 { (exit 1); exit 1; }; }
1175 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1177 # Check whether --with-abi-version or --without-abi-version was given.
1178 if test "${with_abi_version+set}" = set; then
1179 withval="$with_abi_version"
1180 { echo "$as_me:1180: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1181 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1182 cf_cv_abi_version=$withval
1185 if test -n "$cf_cv_abi_version" ; then
1186 case $cf_cv_abi_version in #(vi
1190 { { echo "$as_me:1190: error: ABI version is not a number: $cf_cv_abi_version" >&5
1191 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1192 { (exit 1); exit 1; }; }
1196 { { echo "$as_me:1196: error: ABI version value is empty" >&5
1197 echo "$as_me: error: ABI version value is empty" >&2;}
1198 { (exit 1); exit 1; }; }
1202 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1203 if test -f $ac_dir/install-sh; then
1205 ac_install_sh="$ac_aux_dir/install-sh -c"
1207 elif test -f $ac_dir/install.sh; then
1209 ac_install_sh="$ac_aux_dir/install.sh -c"
1211 elif test -f $ac_dir/shtool; then
1213 ac_install_sh="$ac_aux_dir/shtool install -c"
1217 if test -z "$ac_aux_dir"; then
1218 { { echo "$as_me:1218: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1219 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1220 { (exit 1); exit 1; }; }
1222 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1223 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1224 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1226 # Make sure we can run config.sub.
1227 $ac_config_sub sun4 >/dev/null 2>&1 ||
1228 { { echo "$as_me:1228: error: cannot run $ac_config_sub" >&5
1229 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1230 { (exit 1); exit 1; }; }
1232 echo "$as_me:1232: checking build system type" >&5
1233 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1234 if test "${ac_cv_build+set}" = set; then
1235 echo $ECHO_N "(cached) $ECHO_C" >&6
1237 ac_cv_build_alias=$build_alias
1238 test -z "$ac_cv_build_alias" &&
1239 ac_cv_build_alias=`$ac_config_guess`
1240 test -z "$ac_cv_build_alias" &&
1241 { { echo "$as_me:1241: error: cannot guess build type; you must specify one" >&5
1242 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1243 { (exit 1); exit 1; }; }
1244 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1245 { { echo "$as_me:1245: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1246 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1247 { (exit 1); exit 1; }; }
1250 echo "$as_me:1250: result: $ac_cv_build" >&5
1251 echo "${ECHO_T}$ac_cv_build" >&6
1253 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1254 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1255 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1257 echo "$as_me:1257: checking host system type" >&5
1258 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1259 if test "${ac_cv_host+set}" = set; then
1260 echo $ECHO_N "(cached) $ECHO_C" >&6
1262 ac_cv_host_alias=$host_alias
1263 test -z "$ac_cv_host_alias" &&
1264 ac_cv_host_alias=$ac_cv_build_alias
1265 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1266 { { echo "$as_me:1266: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1267 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1268 { (exit 1); exit 1; }; }
1271 echo "$as_me:1271: result: $ac_cv_host" >&5
1272 echo "${ECHO_T}$ac_cv_host" >&6
1274 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1275 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1276 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1278 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1279 echo "$as_me:1279: checking target system type" >&5
1280 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1281 if test "${ac_cv_target+set}" = set; then
1282 echo $ECHO_N "(cached) $ECHO_C" >&6
1284 ac_cv_target_alias=$target_alias
1285 test "x$ac_cv_target_alias" = "x" &&
1286 ac_cv_target_alias=$ac_cv_host_alias
1287 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1288 { { echo "$as_me:1288: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1289 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1290 { (exit 1); exit 1; }; }
1293 echo "$as_me:1293: result: $ac_cv_target" >&5
1294 echo "${ECHO_T}$ac_cv_target" >&6
1295 target=$ac_cv_target
1296 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1297 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1298 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1300 # The aliases save the names the user supplied, while $host etc.
1301 # will get canonicalized.
1302 test -n "$target_alias" &&
1303 test "$program_prefix$program_suffix$program_transform_name" = \
1305 program_prefix=${target_alias}-
1306 system_name="$host_os"
1308 system_name="`(uname -s -r) 2>/dev/null`"
1309 if test -z "$system_name" ; then
1310 system_name="`(hostname) 2>/dev/null`"
1313 test -n "$system_name" && cat >>confdefs.h <<EOF
1314 #define SYSTEM_NAME "$system_name"
1317 if test "${cf_cv_system_name+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 cf_cv_system_name="$system_name"
1323 test -z "$system_name" && system_name="$cf_cv_system_name"
1324 test -n "$cf_cv_system_name" && echo "$as_me:1324: result: Configuring for $cf_cv_system_name" >&5
1325 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1327 if test ".$system_name" != ".$cf_cv_system_name" ; then
1328 echo "$as_me:1328: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1329 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1330 { { echo "$as_me:1330: error: \"Please remove config.cache and try again.\"" >&5
1331 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1332 { (exit 1); exit 1; }; }
1335 # Check whether --with-system-type or --without-system-type was given.
1336 if test "${with_system_type+set}" = set; then
1337 withval="$with_system_type"
1338 { echo "$as_me:1338: WARNING: overriding system type to $withval" >&5
1339 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1340 cf_cv_system_name=$withval
1343 ### Save the given $CFLAGS to allow user-override.
1344 cf_user_CFLAGS="$CFLAGS"
1346 ### Default install-location
1348 echo "$as_me:1348: checking for prefix" >&5
1349 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1350 if test "x$prefix" = "xNONE" ; then
1351 case "$cf_cv_system_name" in
1352 # non-vendor systems don't have a conflict
1353 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1356 *) prefix=$ac_default_prefix
1360 echo "$as_me:1360: result: $prefix" >&5
1361 echo "${ECHO_T}$prefix" >&6
1363 if test "x$prefix" = "xNONE" ; then
1364 echo "$as_me:1364: checking for default include-directory" >&5
1365 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1366 test -n "$verbose" && echo 1>&6
1369 $includedir/ncurses \
1371 $prefix/include/ncurses \
1372 /usr/local/include \
1373 /usr/local/include/ncurses \
1375 /usr/include/ncurses
1377 cf_dir=`eval echo $cf_symbol`
1378 if test -f $cf_dir/curses.h ; then
1379 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1380 includedir="$cf_symbol"
1381 test -n "$verbose" && echo $ac_n " found " 1>&6
1385 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1387 echo "$as_me:1387: result: $includedir" >&5
1388 echo "${ECHO_T}$includedir" >&6
1391 ### Checks for programs.
1393 ac_cpp='$CPP $CPPFLAGS'
1394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397 ac_main_return=return
1398 if test -n "$ac_tool_prefix"; then
1399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1401 echo "$as_me:1401: checking for $ac_word" >&5
1402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1403 if test "${ac_cv_prog_CC+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 if test -n "$CC"; then
1407 ac_cv_prog_CC="$CC" # Let the user override the test.
1409 ac_save_IFS=$IFS; IFS=$ac_path_separator
1411 for ac_dir in $ac_dummy; do
1413 test -z "$ac_dir" && ac_dir=.
1414 $as_executable_p "$ac_dir/$ac_word" || continue
1415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1416 echo "$as_me:1416: found $ac_dir/$ac_word" >&5
1423 if test -n "$CC"; then
1424 echo "$as_me:1424: result: $CC" >&5
1425 echo "${ECHO_T}$CC" >&6
1427 echo "$as_me:1427: result: no" >&5
1428 echo "${ECHO_T}no" >&6
1432 if test -z "$ac_cv_prog_CC"; then
1434 # Extract the first word of "gcc", so it can be a program name with args.
1435 set dummy gcc; ac_word=$2
1436 echo "$as_me:1436: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 if test -n "$ac_ct_CC"; then
1442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1444 ac_save_IFS=$IFS; IFS=$ac_path_separator
1446 for ac_dir in $ac_dummy; do
1448 test -z "$ac_dir" && ac_dir=.
1449 $as_executable_p "$ac_dir/$ac_word" || continue
1450 ac_cv_prog_ac_ct_CC="gcc"
1451 echo "$as_me:1451: found $ac_dir/$ac_word" >&5
1457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1458 if test -n "$ac_ct_CC"; then
1459 echo "$as_me:1459: result: $ac_ct_CC" >&5
1460 echo "${ECHO_T}$ac_ct_CC" >&6
1462 echo "$as_me:1462: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1471 if test -z "$CC"; then
1472 if test -n "$ac_tool_prefix"; then
1473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1474 set dummy ${ac_tool_prefix}cc; ac_word=$2
1475 echo "$as_me:1475: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test.
1483 ac_save_IFS=$IFS; IFS=$ac_path_separator
1485 for ac_dir in $ac_dummy; do
1487 test -z "$ac_dir" && ac_dir=.
1488 $as_executable_p "$ac_dir/$ac_word" || continue
1489 ac_cv_prog_CC="${ac_tool_prefix}cc"
1490 echo "$as_me:1490: found $ac_dir/$ac_word" >&5
1497 if test -n "$CC"; then
1498 echo "$as_me:1498: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1501 echo "$as_me:1501: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1506 if test -z "$ac_cv_prog_CC"; then
1508 # Extract the first word of "cc", so it can be a program name with args.
1509 set dummy cc; ac_word=$2
1510 echo "$as_me:1510: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518 ac_save_IFS=$IFS; IFS=$ac_path_separator
1520 for ac_dir in $ac_dummy; do
1522 test -z "$ac_dir" && ac_dir=.
1523 $as_executable_p "$ac_dir/$ac_word" || continue
1524 ac_cv_prog_ac_ct_CC="cc"
1525 echo "$as_me:1525: found $ac_dir/$ac_word" >&5
1531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1532 if test -n "$ac_ct_CC"; then
1533 echo "$as_me:1533: result: $ac_ct_CC" >&5
1534 echo "${ECHO_T}$ac_ct_CC" >&6
1536 echo "$as_me:1536: result: no" >&5
1537 echo "${ECHO_T}no" >&6
1546 if test -z "$CC"; then
1547 # Extract the first word of "cc", so it can be a program name with args.
1548 set dummy cc; ac_word=$2
1549 echo "$as_me:1549: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_CC+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 if test -n "$CC"; then
1555 ac_cv_prog_CC="$CC" # Let the user override the test.
1558 ac_save_IFS=$IFS; IFS=$ac_path_separator
1560 for ac_dir in $ac_dummy; do
1562 test -z "$ac_dir" && ac_dir=.
1563 $as_executable_p "$ac_dir/$ac_word" || continue
1564 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1565 ac_prog_rejected=yes
1569 echo "$as_me:1569: found $ac_dir/$ac_word" >&5
1573 if test $ac_prog_rejected = yes; then
1574 # We found a bogon in the path, so make sure we never use it.
1575 set dummy $ac_cv_prog_CC
1577 if test $# != 0; then
1578 # We chose a different compiler from the bogus one.
1579 # However, it has the same basename, so the bogon will be chosen
1580 # first if we set CC to just the basename; use the full file name.
1582 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1590 if test -n "$CC"; then
1591 echo "$as_me:1591: result: $CC" >&5
1592 echo "${ECHO_T}$CC" >&6
1594 echo "$as_me:1594: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1599 if test -z "$CC"; then
1600 if test -n "$ac_tool_prefix"; then
1603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1605 echo "$as_me:1605: checking for $ac_word" >&5
1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607 if test "${ac_cv_prog_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1613 ac_save_IFS=$IFS; IFS=$ac_path_separator
1615 for ac_dir in $ac_dummy; do
1617 test -z "$ac_dir" && ac_dir=.
1618 $as_executable_p "$ac_dir/$ac_word" || continue
1619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1620 echo "$as_me:1620: found $ac_dir/$ac_word" >&5
1627 if test -n "$CC"; then
1628 echo "$as_me:1628: result: $CC" >&5
1629 echo "${ECHO_T}$CC" >&6
1631 echo "$as_me:1631: result: no" >&5
1632 echo "${ECHO_T}no" >&6
1635 test -n "$CC" && break
1638 if test -z "$CC"; then
1642 # Extract the first word of "$ac_prog", so it can be a program name with args.
1643 set dummy $ac_prog; ac_word=$2
1644 echo "$as_me:1644: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 ac_save_IFS=$IFS; IFS=$ac_path_separator
1654 for ac_dir in $ac_dummy; do
1656 test -z "$ac_dir" && ac_dir=.
1657 $as_executable_p "$ac_dir/$ac_word" || continue
1658 ac_cv_prog_ac_ct_CC="$ac_prog"
1659 echo "$as_me:1659: found $ac_dir/$ac_word" >&5
1665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1666 if test -n "$ac_ct_CC"; then
1667 echo "$as_me:1667: result: $ac_ct_CC" >&5
1668 echo "${ECHO_T}$ac_ct_CC" >&6
1670 echo "$as_me:1670: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 test -n "$ac_ct_CC" && break
1682 test -z "$CC" && { { echo "$as_me:1682: error: no acceptable cc found in \$PATH" >&5
1683 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1684 { (exit 1); exit 1; }; }
1686 # Provide some information about the compiler.
1687 echo "$as_me:1687:" \
1688 "checking for C compiler version" >&5
1689 ac_compiler=`set X $ac_compile; echo $2`
1690 { (eval echo "$as_me:1690: \"$ac_compiler --version </dev/null >&5\"") >&5
1691 (eval $ac_compiler --version </dev/null >&5) 2>&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); }
1695 { (eval echo "$as_me:1695: \"$ac_compiler -v </dev/null >&5\"") >&5
1696 (eval $ac_compiler -v </dev/null >&5) 2>&5
1698 echo "$as_me:1698: \$? = $ac_status" >&5
1699 (exit $ac_status); }
1700 { (eval echo "$as_me:1700: \"$ac_compiler -V </dev/null >&5\"") >&5
1701 (eval $ac_compiler -V </dev/null >&5) 2>&5
1703 echo "$as_me:1703: \$? = $ac_status" >&5
1704 (exit $ac_status); }
1706 cat >conftest.$ac_ext <<_ACEOF
1707 #line 1707 "configure"
1708 #include "confdefs.h"
1718 ac_clean_files_save=$ac_clean_files
1719 ac_clean_files="$ac_clean_files a.out a.exe"
1720 # Try to create an executable without -o first, disregard a.out.
1721 # It will help us diagnose broken compilers, and finding out an intuition
1723 echo "$as_me:1723: checking for C compiler default output" >&5
1724 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1725 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1726 if { (eval echo "$as_me:1726: \"$ac_link_default\"") >&5
1727 (eval $ac_link_default) 2>&5
1729 echo "$as_me:1729: \$? = $ac_status" >&5
1730 (exit $ac_status); }; then
1731 # Find the output, starting from the most likely. This scheme is
1732 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1734 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1735 ls a.out conftest 2>/dev/null;
1736 ls a.* conftest.* 2>/dev/null`; do
1738 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1739 a.out ) # We found the default executable, but exeext='' is most
1742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1743 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1750 echo "$as_me: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1752 { { echo "$as_me:1752: error: C compiler cannot create executables" >&5
1753 echo "$as_me: error: C compiler cannot create executables" >&2;}
1754 { (exit 77); exit 77; }; }
1757 ac_exeext=$ac_cv_exeext
1758 echo "$as_me:1758: result: $ac_file" >&5
1759 echo "${ECHO_T}$ac_file" >&6
1761 # Check the compiler produces executables we can run. If not, either
1762 # the compiler is broken, or we cross compile.
1763 echo "$as_me:1763: checking whether the C compiler works" >&5
1764 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1765 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1766 # If not cross compiling, check that we can run a simple program.
1767 if test "$cross_compiling" != yes; then
1768 if { ac_try='./$ac_file'
1769 { (eval echo "$as_me:1769: \"$ac_try\"") >&5
1772 echo "$as_me:1772: \$? = $ac_status" >&5
1773 (exit $ac_status); }; }; then
1776 if test "$cross_compiling" = maybe; then
1779 { { echo "$as_me:1779: error: cannot run C compiled programs.
1780 If you meant to cross compile, use \`--host'." >&5
1781 echo "$as_me: error: cannot run C compiled programs.
1782 If you meant to cross compile, use \`--host'." >&2;}
1783 { (exit 1); exit 1; }; }
1787 echo "$as_me:1787: result: yes" >&5
1788 echo "${ECHO_T}yes" >&6
1790 rm -f a.out a.exe conftest$ac_cv_exeext
1791 ac_clean_files=$ac_clean_files_save
1792 # Check the compiler produces executables we can run. If not, either
1793 # the compiler is broken, or we cross compile.
1794 echo "$as_me:1794: checking whether we are cross compiling" >&5
1795 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1796 echo "$as_me:1796: result: $cross_compiling" >&5
1797 echo "${ECHO_T}$cross_compiling" >&6
1799 echo "$as_me:1799: checking for executable suffix" >&5
1800 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1801 if { (eval echo "$as_me:1801: \"$ac_link\"") >&5
1802 (eval $ac_link) 2>&5
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit $ac_status); }; then
1806 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1807 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1808 # work properly (i.e., refer to `conftest.exe'), while it won't with
1810 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1812 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1813 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1820 { { echo "$as_me:1820: error: cannot compute EXEEXT: cannot compile and link" >&5
1821 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1822 { (exit 1); exit 1; }; }
1825 rm -f conftest$ac_cv_exeext
1826 echo "$as_me:1826: result: $ac_cv_exeext" >&5
1827 echo "${ECHO_T}$ac_cv_exeext" >&6
1829 rm -f conftest.$ac_ext
1830 EXEEXT=$ac_cv_exeext
1832 echo "$as_me:1832: checking for object suffix" >&5
1833 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1834 if test "${ac_cv_objext+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 cat >conftest.$ac_ext <<_ACEOF
1838 #line 1838 "configure"
1839 #include "confdefs.h"
1849 rm -f conftest.o conftest.obj
1850 if { (eval echo "$as_me:1850: \"$ac_compile\"") >&5
1851 (eval $ac_compile) 2>&5
1853 echo "$as_me:1853: \$? = $ac_status" >&5
1854 (exit $ac_status); }; then
1855 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1858 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1863 echo "$as_me: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1865 { { echo "$as_me:1865: error: cannot compute OBJEXT: cannot compile" >&5
1866 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1867 { (exit 1); exit 1; }; }
1870 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1872 echo "$as_me:1872: result: $ac_cv_objext" >&5
1873 echo "${ECHO_T}$ac_cv_objext" >&6
1874 OBJEXT=$ac_cv_objext
1876 echo "$as_me:1876: checking whether we are using the GNU C compiler" >&5
1877 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1878 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 cat >conftest.$ac_ext <<_ACEOF
1882 #line 1882 "configure"
1883 #include "confdefs.h"
1896 rm -f conftest.$ac_objext
1897 if { (eval echo "$as_me:1897: \"$ac_compile\"") >&5
1898 (eval $ac_compile) 2>&5
1900 echo "$as_me:1900: \$? = $ac_status" >&5
1901 (exit $ac_status); } &&
1902 { ac_try='test -s conftest.$ac_objext'
1903 { (eval echo "$as_me:1903: \"$ac_try\"") >&5
1906 echo "$as_me:1906: \$? = $ac_status" >&5
1907 (exit $ac_status); }; }; then
1910 echo "$as_me: failed program was:" >&5
1911 cat conftest.$ac_ext >&5
1914 rm -f conftest.$ac_objext conftest.$ac_ext
1915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1918 echo "$as_me:1918: result: $ac_cv_c_compiler_gnu" >&5
1919 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1920 GCC=`test $ac_compiler_gnu = yes && echo yes`
1921 ac_test_CFLAGS=${CFLAGS+set}
1922 ac_save_CFLAGS=$CFLAGS
1924 echo "$as_me:1924: checking whether $CC accepts -g" >&5
1925 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1926 if test "${ac_cv_prog_cc_g+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 cat >conftest.$ac_ext <<_ACEOF
1930 #line 1930 "configure"
1931 #include "confdefs.h"
1941 rm -f conftest.$ac_objext
1942 if { (eval echo "$as_me:1942: \"$ac_compile\"") >&5
1943 (eval $ac_compile) 2>&5
1945 echo "$as_me:1945: \$? = $ac_status" >&5
1946 (exit $ac_status); } &&
1947 { ac_try='test -s conftest.$ac_objext'
1948 { (eval echo "$as_me:1948: \"$ac_try\"") >&5
1951 echo "$as_me:1951: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1955 echo "$as_me: failed program was:" >&5
1956 cat conftest.$ac_ext >&5
1959 rm -f conftest.$ac_objext conftest.$ac_ext
1961 echo "$as_me:1961: result: $ac_cv_prog_cc_g" >&5
1962 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1963 if test "$ac_test_CFLAGS" = set; then
1964 CFLAGS=$ac_save_CFLAGS
1965 elif test $ac_cv_prog_cc_g = yes; then
1966 if test "$GCC" = yes; then
1972 if test "$GCC" = yes; then
1978 # Some people use a C++ compiler to compile C. Since we use `exit',
1979 # in C++ we need to declare it. In case someone uses the same compiler
1980 # for both compiling C and C++ we need to have the C++ compiler decide
1981 # the declaration of exit, since it's the most demanding environment.
1982 cat >conftest.$ac_ext <<_ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:1988: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
1991 echo "$as_me:1991: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:1994: \"$ac_try\"") >&5
1997 echo "$as_me:1997: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 for ac_declaration in \
2001 '#include <stdlib.h>' \
2002 'extern "C" void std::exit (int) throw (); using std::exit;' \
2003 'extern "C" void std::exit (int); using std::exit;' \
2004 'extern "C" void exit (int) throw ();' \
2005 'extern "C" void exit (int);' \
2008 cat >conftest.$ac_ext <<_ACEOF
2009 #line 2009 "configure"
2010 #include "confdefs.h"
2021 rm -f conftest.$ac_objext
2022 if { (eval echo "$as_me:2022: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>&5
2025 echo "$as_me:2025: \$? = $ac_status" >&5
2026 (exit $ac_status); } &&
2027 { ac_try='test -s conftest.$ac_objext'
2028 { (eval echo "$as_me:2028: \"$ac_try\"") >&5
2031 echo "$as_me:2031: \$? = $ac_status" >&5
2032 (exit $ac_status); }; }; then
2035 echo "$as_me: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2039 rm -f conftest.$ac_objext conftest.$ac_ext
2040 cat >conftest.$ac_ext <<_ACEOF
2041 #line 2041 "configure"
2042 #include "confdefs.h"
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:2053: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>&5
2056 echo "$as_me:2056: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:2059: \"$ac_try\"") >&5
2062 echo "$as_me:2062: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2066 echo "$as_me: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2069 rm -f conftest.$ac_objext conftest.$ac_ext
2072 if test -n "$ac_declaration"; then
2073 echo '#ifdef __cplusplus' >>confdefs.h
2074 echo $ac_declaration >>confdefs.h
2075 echo '#endif' >>confdefs.h
2079 echo "$as_me: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2082 rm -f conftest.$ac_objext conftest.$ac_ext
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088 ac_main_return=return
2091 if test "$GCC" = yes ; then
2092 echo "$as_me:2092: checking version of $CC" >&5
2093 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2094 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2095 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2096 echo "$as_me:2096: result: $GCC_VERSION" >&5
2097 echo "${ECHO_T}$GCC_VERSION" >&6
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105 ac_main_return=return
2106 echo "$as_me:2106: checking how to run the C preprocessor" >&5
2107 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2108 # On Suns, sometimes $CPP names a directory.
2109 if test -n "$CPP" && test -d "$CPP"; then
2112 if test -z "$CPP"; then
2113 if test "${ac_cv_prog_CPP+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 # Double quotes because CPP needs to be expanded
2117 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2120 for ac_c_preproc_warn_flag in '' yes
2122 # Use a header file that comes with gcc, so configuring glibc
2123 # with a fresh cross-compiler works.
2124 # On the NeXT, cc -E runs the code through the compiler's parser,
2125 # not just through cpp. "Syntax error" is here to catch this case.
2126 cat >conftest.$ac_ext <<_ACEOF
2127 #line 2127 "configure"
2128 #include "confdefs.h"
2132 if { (eval echo "$as_me:2132: \"$ac_cpp conftest.$ac_ext\"") >&5
2133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2135 egrep -v '^ *\+' conftest.er1 >conftest.err
2137 cat conftest.err >&5
2138 echo "$as_me:2138: \$? = $ac_status" >&5
2139 (exit $ac_status); } >/dev/null; then
2140 if test -s conftest.err; then
2141 ac_cpp_err=$ac_c_preproc_warn_flag
2148 if test -z "$ac_cpp_err"; then
2151 echo "$as_me: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2153 # Broken: fails on valid input.
2156 rm -f conftest.err conftest.$ac_ext
2158 # OK, works on sane cases. Now check whether non-existent headers
2159 # can be detected and how.
2160 cat >conftest.$ac_ext <<_ACEOF
2161 #line 2161 "configure"
2162 #include "confdefs.h"
2163 #include <ac_nonexistent.h>
2165 if { (eval echo "$as_me:2165: \"$ac_cpp conftest.$ac_ext\"") >&5
2166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2168 egrep -v '^ *\+' conftest.er1 >conftest.err
2170 cat conftest.err >&5
2171 echo "$as_me:2171: \$? = $ac_status" >&5
2172 (exit $ac_status); } >/dev/null; then
2173 if test -s conftest.err; then
2174 ac_cpp_err=$ac_c_preproc_warn_flag
2181 if test -z "$ac_cpp_err"; then
2182 # Broken: success on invalid input.
2185 echo "$as_me: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2187 # Passes both tests.
2191 rm -f conftest.err conftest.$ac_ext
2194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2195 rm -f conftest.err conftest.$ac_ext
2196 if $ac_preproc_ok; then
2208 echo "$as_me:2208: result: $CPP" >&5
2209 echo "${ECHO_T}$CPP" >&6
2211 for ac_c_preproc_warn_flag in '' yes
2213 # Use a header file that comes with gcc, so configuring glibc
2214 # with a fresh cross-compiler works.
2215 # On the NeXT, cc -E runs the code through the compiler's parser,
2216 # not just through cpp. "Syntax error" is here to catch this case.
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line 2218 "configure"
2219 #include "confdefs.h"
2223 if { (eval echo "$as_me:2223: \"$ac_cpp conftest.$ac_ext\"") >&5
2224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2226 egrep -v '^ *\+' conftest.er1 >conftest.err
2228 cat conftest.err >&5
2229 echo "$as_me:2229: \$? = $ac_status" >&5
2230 (exit $ac_status); } >/dev/null; then
2231 if test -s conftest.err; then
2232 ac_cpp_err=$ac_c_preproc_warn_flag
2239 if test -z "$ac_cpp_err"; then
2242 echo "$as_me: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2244 # Broken: fails on valid input.
2247 rm -f conftest.err conftest.$ac_ext
2249 # OK, works on sane cases. Now check whether non-existent headers
2250 # can be detected and how.
2251 cat >conftest.$ac_ext <<_ACEOF
2252 #line 2252 "configure"
2253 #include "confdefs.h"
2254 #include <ac_nonexistent.h>
2256 if { (eval echo "$as_me:2256: \"$ac_cpp conftest.$ac_ext\"") >&5
2257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2259 egrep -v '^ *\+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:2262: \$? = $ac_status" >&5
2263 (exit $ac_status); } >/dev/null; then
2264 if test -s conftest.err; then
2265 ac_cpp_err=$ac_c_preproc_warn_flag
2272 if test -z "$ac_cpp_err"; then
2273 # Broken: success on invalid input.
2276 echo "$as_me: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 # Passes both tests.
2282 rm -f conftest.err conftest.$ac_ext
2285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2286 rm -f conftest.err conftest.$ac_ext
2287 if $ac_preproc_ok; then
2290 { { echo "$as_me:2290: error: C preprocessor \"$CPP\" fails sanity check" >&5
2291 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2292 { (exit 1); exit 1; }; }
2296 ac_cpp='$CPP $CPPFLAGS'
2297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2300 ac_main_return=return
2302 if test $ac_cv_c_compiler_gnu = yes; then
2303 echo "$as_me:2303: checking whether $CC needs -traditional" >&5
2304 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2305 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 ac_pattern="Autoconf.*'x'"
2309 cat >conftest.$ac_ext <<_ACEOF
2310 #line 2310 "configure"
2311 #include "confdefs.h"
2313 int Autoconf = TIOCGETP;
2315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2316 egrep "$ac_pattern" >/dev/null 2>&1; then
2317 ac_cv_prog_gcc_traditional=yes
2319 ac_cv_prog_gcc_traditional=no
2323 if test $ac_cv_prog_gcc_traditional = no; then
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #line 2325 "configure"
2326 #include "confdefs.h"
2328 int Autoconf = TCGETA;
2330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2331 egrep "$ac_pattern" >/dev/null 2>&1; then
2332 ac_cv_prog_gcc_traditional=yes
2338 echo "$as_me:2338: result: $ac_cv_prog_gcc_traditional" >&5
2339 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2340 if test $ac_cv_prog_gcc_traditional = yes; then
2341 CC="$CC -traditional"
2345 echo "$as_me:2345: checking whether $CC understands -c and -o together" >&5
2346 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2347 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 cat > conftest.$ac_ext <<CF_EOF
2355 ${cf_cv_main_return:-return}(0);
2358 # We do the test twice because some compilers refuse to overwrite an
2359 # existing .o file with -o, though they will create one.
2360 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2361 if { (eval echo "$as_me:2361: \"$ac_try\"") >&5
2364 echo "$as_me:2364: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
2366 test -f conftest2.$ac_objext && { (eval echo "$as_me:2366: \"$ac_try\"") >&5
2369 echo "$as_me:2369: \$? = $ac_status" >&5
2370 (exit $ac_status); };
2372 eval cf_cv_prog_CC_c_o=yes
2374 eval cf_cv_prog_CC_c_o=no
2379 if test $cf_cv_prog_CC_c_o = yes; then
2380 echo "$as_me:2380: result: yes" >&5
2381 echo "${ECHO_T}yes" >&6
2383 echo "$as_me:2383: result: no" >&5
2384 echo "${ECHO_T}no" >&6
2387 echo "$as_me:2387: checking for POSIXized ISC" >&5
2388 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2389 if test -d /etc/conf/kconfig.d &&
2390 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2392 echo "$as_me:2392: result: yes" >&5
2393 echo "${ECHO_T}yes" >&6
2394 ISC=yes # If later tests want to check for ISC.
2396 cat >>confdefs.h <<\EOF
2397 #define _POSIX_SOURCE 1
2400 if test "$GCC" = yes; then
2406 echo "$as_me:2406: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2411 echo "$as_me:2411: checking for ${CC-cc} option to accept ANSI C" >&5
2412 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2413 if test "${cf_cv_ansi_cc+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 cf_save_CFLAGS="$CFLAGS"
2419 cf_save_CPPFLAGS="$CPPFLAGS"
2420 # Don't try gcc -ansi; that turns off useful extensions and
2421 # breaks some systems' header files.
2422 # AIX -qlanglvl=ansi
2423 # Ultrix and OSF/1 -std1
2424 # HP-UX -Aa -D_HPUX_SOURCE
2426 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2427 for cf_arg in "-DCC_HAS_PROTOS" \
2432 "-Aa -D_HPUX_SOURCE" \
2439 cf_new_extra_cppflags=
2441 for cf_add_cflags in $cf_arg
2443 case $cf_fix_cppflags in
2445 case $cf_add_cflags in #(vi
2446 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2447 case $cf_add_cflags in
2449 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2451 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2452 && test -z "${cf_tst_cflags}" \
2453 && cf_fix_cppflags=yes
2455 if test $cf_fix_cppflags = yes ; then
2456 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2458 elif test "${cf_tst_cflags}" = "\"'" ; then
2459 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2465 *$cf_add_cflags) #(vi
2468 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2473 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2478 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2480 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2482 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2483 && test -z "${cf_tst_cflags}" \
2484 && cf_fix_cppflags=no
2489 if test -n "$cf_new_cflags" ; then
2491 CFLAGS="$CFLAGS $cf_new_cflags"
2494 if test -n "$cf_new_cppflags" ; then
2496 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2499 if test -n "$cf_new_extra_cppflags" ; then
2501 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2504 cat >conftest.$ac_ext <<_ACEOF
2505 #line 2505 "configure"
2506 #include "confdefs.h"
2508 #ifndef CC_HAS_PROTOS
2509 #if !defined(__STDC__) || (__STDC__ != 1)
2518 int test (int i, double x);
2519 struct s1 {int (*f) (int a);};
2520 struct s2 {int (*f) (double a);};
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:2526: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>&5
2529 echo "$as_me:2529: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:2532: \"$ac_try\"") >&5
2535 echo "$as_me:2535: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 cf_cv_ansi_cc="$cf_arg"; break
2539 echo "$as_me: failed program was:" >&5
2540 cat conftest.$ac_ext >&5
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2544 CFLAGS="$cf_save_CFLAGS"
2545 CPPFLAGS="$cf_save_CPPFLAGS"
2548 echo "$as_me:2548: result: $cf_cv_ansi_cc" >&5
2549 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2551 if test "$cf_cv_ansi_cc" != "no"; then
2552 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2557 cf_new_extra_cppflags=
2559 for cf_add_cflags in $cf_cv_ansi_cc
2561 case $cf_fix_cppflags in
2563 case $cf_add_cflags in #(vi
2564 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2565 case $cf_add_cflags in
2567 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2569 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2570 && test -z "${cf_tst_cflags}" \
2571 && cf_fix_cppflags=yes
2573 if test $cf_fix_cppflags = yes ; then
2574 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2576 elif test "${cf_tst_cflags}" = "\"'" ; then
2577 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2583 *$cf_add_cflags) #(vi
2586 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2591 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2596 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2598 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2600 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2601 && test -z "${cf_tst_cflags}" \
2602 && cf_fix_cppflags=no
2607 if test -n "$cf_new_cflags" ; then
2609 CFLAGS="$CFLAGS $cf_new_cflags"
2612 if test -n "$cf_new_cppflags" ; then
2614 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2617 if test -n "$cf_new_extra_cppflags" ; then
2619 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2623 cat >>confdefs.h <<\EOF
2624 #define CC_HAS_PROTOS 1
2630 if test "$cf_cv_ansi_cc" = "no"; then
2631 { { echo "$as_me:2631: error: Your compiler does not appear to recognize prototypes.
2632 You have the following choices:
2633 a. adjust your compiler options
2634 b. get an up-to-date compiler
2635 c. use a wrapper such as unproto" >&5
2636 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2637 You have the following choices:
2638 a. adjust your compiler options
2639 b. get an up-to-date compiler
2640 c. use a wrapper such as unproto" >&2;}
2641 { (exit 1); exit 1; }; }
2644 case $cf_cv_system_name in
2646 CFLAGS="$CFLAGS -Zmt"
2647 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2648 CXXFLAGS="$CXXFLAGS -Zmt"
2649 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2650 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2657 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2658 #define PROG_EXT "$PROG_EXT"
2661 if test "$cross_compiling" = yes ; then
2664 case "$cf_cv_system_name" in #(vi
2666 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2668 *) LDPATH=$PATH:/sbin:/usr/sbin
2669 # Extract the first word of "ldconfig", so it can be a program name with args.
2670 set dummy ldconfig; ac_word=$2
2671 echo "$as_me:2671: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2681 ac_save_IFS=$IFS; IFS=$ac_path_separator
2683 for ac_dir in $ac_dummy; do
2685 test -z "$ac_dir" && ac_dir=.
2686 if $as_executable_p "$ac_dir/$ac_word"; then
2687 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2688 echo "$as_me:2688: found $ac_dir/$ac_word" >&5
2696 LDCONFIG=$ac_cv_path_LDCONFIG
2698 if test -n "$LDCONFIG"; then
2699 echo "$as_me:2699: result: $LDCONFIG" >&5
2700 echo "${ECHO_T}$LDCONFIG" >&6
2702 echo "$as_me:2702: result: no" >&5
2703 echo "${ECHO_T}no" >&6
2710 echo "$as_me:2710: checking if you want to ensure bool is consistent with C++" >&5
2711 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2713 # Check whether --with-cxx or --without-cxx was given.
2714 if test "${with_cxx+set}" = set; then
2716 cf_with_cxx=$withval
2720 echo "$as_me:2720: result: $cf_with_cxx" >&5
2721 echo "${ECHO_T}$cf_with_cxx" >&6
2722 if test "X$cf_with_cxx" = Xno ; then
2726 # with autoconf 2.13, we can change the error to a warning:
2728 ac_cpp='$CXXCPP $CPPFLAGS'
2729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2732 ac_main_return=return
2733 if test -n "$ac_tool_prefix"; then
2734 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2738 echo "$as_me:2738: checking for $ac_word" >&5
2739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2740 if test "${ac_cv_prog_CXX+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 if test -n "$CXX"; then
2744 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2746 ac_save_IFS=$IFS; IFS=$ac_path_separator
2748 for ac_dir in $ac_dummy; do
2750 test -z "$ac_dir" && ac_dir=.
2751 $as_executable_p "$ac_dir/$ac_word" || continue
2752 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2753 echo "$as_me:2753: found $ac_dir/$ac_word" >&5
2760 if test -n "$CXX"; then
2761 echo "$as_me:2761: result: $CXX" >&5
2762 echo "${ECHO_T}$CXX" >&6
2764 echo "$as_me:2764: result: no" >&5
2765 echo "${ECHO_T}no" >&6
2768 test -n "$CXX" && break
2771 if test -z "$CXX"; then
2773 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2775 # Extract the first word of "$ac_prog", so it can be a program name with args.
2776 set dummy $ac_prog; ac_word=$2
2777 echo "$as_me:2777: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2779 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 if test -n "$ac_ct_CXX"; then
2783 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2785 ac_save_IFS=$IFS; IFS=$ac_path_separator
2787 for ac_dir in $ac_dummy; do
2789 test -z "$ac_dir" && ac_dir=.
2790 $as_executable_p "$ac_dir/$ac_word" || continue
2791 ac_cv_prog_ac_ct_CXX="$ac_prog"
2792 echo "$as_me:2792: found $ac_dir/$ac_word" >&5
2798 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2799 if test -n "$ac_ct_CXX"; then
2800 echo "$as_me:2800: result: $ac_ct_CXX" >&5
2801 echo "${ECHO_T}$ac_ct_CXX" >&6
2803 echo "$as_me:2803: result: no" >&5
2804 echo "${ECHO_T}no" >&6
2807 test -n "$ac_ct_CXX" && break
2809 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2814 # Provide some information about the compiler.
2815 echo "$as_me:2815:" \
2816 "checking for C++ compiler version" >&5
2817 ac_compiler=`set X $ac_compile; echo $2`
2818 { (eval echo "$as_me:2818: \"$ac_compiler --version </dev/null >&5\"") >&5
2819 (eval $ac_compiler --version </dev/null >&5) 2>&5
2821 echo "$as_me:2821: \$? = $ac_status" >&5
2822 (exit $ac_status); }
2823 { (eval echo "$as_me:2823: \"$ac_compiler -v </dev/null >&5\"") >&5
2824 (eval $ac_compiler -v </dev/null >&5) 2>&5
2826 echo "$as_me:2826: \$? = $ac_status" >&5
2827 (exit $ac_status); }
2828 { (eval echo "$as_me:2828: \"$ac_compiler -V </dev/null >&5\"") >&5
2829 (eval $ac_compiler -V </dev/null >&5) 2>&5
2831 echo "$as_me:2831: \$? = $ac_status" >&5
2832 (exit $ac_status); }
2834 echo "$as_me:2834: checking whether we are using the GNU C++ compiler" >&5
2835 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2836 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 cat >conftest.$ac_ext <<_ACEOF
2840 #line 2840 "configure"
2841 #include "confdefs.h"
2854 rm -f conftest.$ac_objext
2855 if { (eval echo "$as_me:2855: \"$ac_compile\"") >&5
2856 (eval $ac_compile) 2>&5
2858 echo "$as_me:2858: \$? = $ac_status" >&5
2859 (exit $ac_status); } &&
2860 { ac_try='test -s conftest.$ac_objext'
2861 { (eval echo "$as_me:2861: \"$ac_try\"") >&5
2864 echo "$as_me:2864: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2868 echo "$as_me: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2872 rm -f conftest.$ac_objext conftest.$ac_ext
2873 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2876 echo "$as_me:2876: result: $ac_cv_cxx_compiler_gnu" >&5
2877 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2878 GXX=`test $ac_compiler_gnu = yes && echo yes`
2879 ac_test_CXXFLAGS=${CXXFLAGS+set}
2880 ac_save_CXXFLAGS=$CXXFLAGS
2882 echo "$as_me:2882: checking whether $CXX accepts -g" >&5
2883 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2884 if test "${ac_cv_prog_cxx_g+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 cat >conftest.$ac_ext <<_ACEOF
2888 #line 2888 "configure"
2889 #include "confdefs.h"
2899 rm -f conftest.$ac_objext
2900 if { (eval echo "$as_me:2900: \"$ac_compile\"") >&5
2901 (eval $ac_compile) 2>&5
2903 echo "$as_me:2903: \$? = $ac_status" >&5
2904 (exit $ac_status); } &&
2905 { ac_try='test -s conftest.$ac_objext'
2906 { (eval echo "$as_me:2906: \"$ac_try\"") >&5
2909 echo "$as_me:2909: \$? = $ac_status" >&5
2910 (exit $ac_status); }; }; then
2911 ac_cv_prog_cxx_g=yes
2913 echo "$as_me: failed program was:" >&5
2914 cat conftest.$ac_ext >&5
2917 rm -f conftest.$ac_objext conftest.$ac_ext
2919 echo "$as_me:2919: result: $ac_cv_prog_cxx_g" >&5
2920 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2921 if test "$ac_test_CXXFLAGS" = set; then
2922 CXXFLAGS=$ac_save_CXXFLAGS
2923 elif test $ac_cv_prog_cxx_g = yes; then
2924 if test "$GXX" = yes; then
2930 if test "$GXX" = yes; then
2936 for ac_declaration in \
2938 '#include <stdlib.h>' \
2939 'extern "C" void std::exit (int) throw (); using std::exit;' \
2940 'extern "C" void std::exit (int); using std::exit;' \
2941 'extern "C" void exit (int) throw ();' \
2942 'extern "C" void exit (int);' \
2945 cat >conftest.$ac_ext <<_ACEOF
2946 #line 2946 "configure"
2947 #include "confdefs.h"
2958 rm -f conftest.$ac_objext
2959 if { (eval echo "$as_me:2959: \"$ac_compile\"") >&5
2960 (eval $ac_compile) 2>&5
2962 echo "$as_me:2962: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (eval echo "$as_me:2965: \"$ac_try\"") >&5
2968 echo "$as_me:2968: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2972 echo "$as_me: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2976 rm -f conftest.$ac_objext conftest.$ac_ext
2977 cat >conftest.$ac_ext <<_ACEOF
2978 #line 2978 "configure"
2979 #include "confdefs.h"
2989 rm -f conftest.$ac_objext
2990 if { (eval echo "$as_me:2990: \"$ac_compile\"") >&5
2991 (eval $ac_compile) 2>&5
2993 echo "$as_me:2993: \$? = $ac_status" >&5
2994 (exit $ac_status); } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (eval echo "$as_me:2996: \"$ac_try\"") >&5
2999 echo "$as_me:2999: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3003 echo "$as_me: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 rm -f conftest.$ac_objext conftest.$ac_ext
3009 if test -n "$ac_declaration"; then
3010 echo '#ifdef __cplusplus' >>confdefs.h
3011 echo $ac_declaration >>confdefs.h
3012 echo '#endif' >>confdefs.h
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 ac_main_return=return
3022 # autoconf 2.5x removed the error - by hardcoding it to g++.
3023 if test "$CXX" = "g++" ; then
3024 # Extract the first word of "g++", so it can be a program name with args.
3025 set dummy g++; ac_word=$2
3026 echo "$as_me:3026: checking for $ac_word" >&5
3027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3028 if test "${ac_cv_path_CXX+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3036 ac_save_IFS=$IFS; IFS=$ac_path_separator
3038 for ac_dir in $ac_dummy; do
3040 test -z "$ac_dir" && ac_dir=.
3041 if $as_executable_p "$ac_dir/$ac_word"; then
3042 ac_cv_path_CXX="$ac_dir/$ac_word"
3043 echo "$as_me:3043: found $ac_dir/$ac_word" >&5
3053 if test -n "$CXX"; then
3054 echo "$as_me:3054: result: $CXX" >&5
3055 echo "${ECHO_T}$CXX" >&6
3057 echo "$as_me:3057: result: no" >&5
3058 echo "${ECHO_T}no" >&6
3062 if test "$CXX" = "g++" ; then
3063 { echo "$as_me:3063: WARNING: ignoring hardcoded g++" >&5
3064 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3065 cf_with_cxx=no; CXX=""; GXX="";
3070 if test "$GXX" = yes; then
3071 echo "$as_me:3071: checking version of g++" >&5
3072 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3073 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3074 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3075 echo "$as_me:3075: result: $GXX_VERSION" >&5
3076 echo "${ECHO_T}$GXX_VERSION" >&6
3079 case $GXX_VERSION in
3081 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3083 { echo "$as_me:3083: WARNING: templates do not work" >&5
3084 echo "$as_me: WARNING: templates do not work" >&2;}
3088 echo "$as_me:3088: checking if you want to build C++ binding and demo" >&5
3089 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3091 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3092 if test "${with_cxx_binding+set}" = set; then
3093 withval="$with_cxx_binding"
3094 cf_with_cxx_binding=$withval
3096 cf_with_cxx_binding=$cf_with_cxx
3098 echo "$as_me:3098: result: $cf_with_cxx_binding" >&5
3099 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3101 echo "$as_me:3101: checking if you want to build with Ada95" >&5
3102 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3104 # Check whether --with-ada or --without-ada was given.
3105 if test "${with_ada+set}" = set; then
3107 cf_with_ada=$withval
3111 echo "$as_me:3111: result: $cf_with_ada" >&5
3112 echo "${ECHO_T}$cf_with_ada" >&6
3114 echo "$as_me:3114: checking if you want to build programs such as tic" >&5
3115 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3117 # Check whether --with-progs or --without-progs was given.
3118 if test "${with_progs+set}" = set; then
3119 withval="$with_progs"
3120 cf_with_progs=$withval
3124 echo "$as_me:3124: result: $cf_with_progs" >&5
3125 echo "${ECHO_T}$cf_with_progs" >&6
3127 echo "$as_me:3127: checking if you wish to install curses.h" >&5
3128 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3130 # Check whether --with-curses-h or --without-curses-h was given.
3131 if test "${with_curses_h+set}" = set; then
3132 withval="$with_curses_h"
3133 with_curses_h=$withval
3137 echo "$as_me:3137: result: $with_curses_h" >&5
3138 echo "${ECHO_T}$with_curses_h" >&6
3140 modules_to_build="ncurses"
3141 if test "X$cf_with_progs" != Xno ; then
3142 modules_to_build="$modules_to_build progs tack"
3144 modules_to_build="$modules_to_build panel menu form"
3146 test "$program_prefix" != NONE &&
3147 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3148 # Use a double $ so make ignores it.
3149 test "$program_suffix" != NONE &&
3150 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3151 # Double any \ or $. echo might interpret backslashes.
3152 # By default was `s,x,x', remove it if useless.
3153 cat <<\_ACEOF >conftest.sed
3154 s/[\\$]/&&/g;s/;s,x,x,$//
3156 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3159 for ac_prog in mawk gawk nawk awk
3161 # Extract the first word of "$ac_prog", so it can be a program name with args.
3162 set dummy $ac_prog; ac_word=$2
3163 echo "$as_me:3163: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_AWK+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 if test -n "$AWK"; then
3169 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3171 ac_save_IFS=$IFS; IFS=$ac_path_separator
3173 for ac_dir in $ac_dummy; do
3175 test -z "$ac_dir" && ac_dir=.
3176 $as_executable_p "$ac_dir/$ac_word" || continue
3177 ac_cv_prog_AWK="$ac_prog"
3178 echo "$as_me:3178: found $ac_dir/$ac_word" >&5
3185 if test -n "$AWK"; then
3186 echo "$as_me:3186: result: $AWK" >&5
3187 echo "${ECHO_T}$AWK" >&6
3189 echo "$as_me:3189: result: no" >&5
3190 echo "${ECHO_T}no" >&6
3193 test -n "$AWK" && break
3196 test -z "$AWK" && { { echo "$as_me:3196: error: No awk program found" >&5
3197 echo "$as_me: error: No awk program found" >&2;}
3198 { (exit 1); exit 1; }; }
3200 echo "$as_me:3200: checking for egrep" >&5
3201 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3202 if test "${ac_cv_prog_egrep+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3206 then ac_cv_prog_egrep='grep -E'
3207 else ac_cv_prog_egrep='egrep'
3210 echo "$as_me:3210: result: $ac_cv_prog_egrep" >&5
3211 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3212 EGREP=$ac_cv_prog_egrep
3214 test -z "$EGREP" && { { echo "$as_me:3214: error: No egrep program found" >&5
3215 echo "$as_me: error: No egrep program found" >&2;}
3216 { (exit 1); exit 1; }; }
3218 # Find a good install program. We prefer a C program (faster),
3219 # so one script is as good as another. But avoid the broken or
3220 # incompatible versions:
3221 # SysV /etc/install, /usr/sbin/install
3222 # SunOS /usr/etc/install
3223 # IRIX /sbin/install
3225 # AmigaOS /C/install, which installs bootblocks on floppy discs
3226 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3227 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3228 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3229 # ./install, which can be erroneously created by make from ./install.sh.
3230 echo "$as_me:3230: checking for a BSD compatible install" >&5
3231 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3232 if test -z "$INSTALL"; then
3233 if test "${ac_cv_path_install+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 ac_save_IFS=$IFS; IFS=$ac_path_separator
3237 for ac_dir in $PATH; do
3239 # Account for people who put trailing slashes in PATH elements.
3241 / | ./ | .// | /cC/* \
3242 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3245 # OSF1 and SCO ODT 3.0 have their own names for install.
3246 # Don't use installbsd from OSF since it installs stuff as root
3248 for ac_prog in ginstall scoinst install; do
3249 if $as_executable_p "$ac_dir/$ac_prog"; then
3250 if test $ac_prog = install &&
3251 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3252 # AIX install. It has an incompatible calling convention.
3254 elif test $ac_prog = install &&
3255 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3256 # program-specific install script used by HP pwplus--don't use.
3259 ac_cv_path_install="$ac_dir/$ac_prog -c"
3269 if test "${ac_cv_path_install+set}" = set; then
3270 INSTALL=$ac_cv_path_install
3272 # As a last resort, use the slow shell script. We don't cache a
3273 # path for INSTALL within a source directory, because that will
3274 # break other packages using the cache if that directory is
3275 # removed, or if the path is relative.
3276 INSTALL=$ac_install_sh
3279 echo "$as_me:3279: result: $INSTALL" >&5
3280 echo "${ECHO_T}$INSTALL" >&6
3282 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3283 # It thinks the first close brace ends the variable substitution.
3284 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3286 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3288 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3294 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3295 test -z "$cf_dir" && cf_dir=.
3296 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3300 for ac_prog in tdlint lint alint
3302 # Extract the first word of "$ac_prog", so it can be a program name with args.
3303 set dummy $ac_prog; ac_word=$2
3304 echo "$as_me:3304: checking for $ac_word" >&5
3305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3306 if test "${ac_cv_prog_LINT+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 if test -n "$LINT"; then
3310 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3312 ac_save_IFS=$IFS; IFS=$ac_path_separator
3314 for ac_dir in $ac_dummy; do
3316 test -z "$ac_dir" && ac_dir=.
3317 $as_executable_p "$ac_dir/$ac_word" || continue
3318 ac_cv_prog_LINT="$ac_prog"
3319 echo "$as_me:3319: found $ac_dir/$ac_word" >&5
3325 LINT=$ac_cv_prog_LINT
3326 if test -n "$LINT"; then
3327 echo "$as_me:3327: result: $LINT" >&5
3328 echo "${ECHO_T}$LINT" >&6
3330 echo "$as_me:3330: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3334 test -n "$LINT" && break
3337 echo "$as_me:3337: checking whether ln -s works" >&5
3338 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3340 if test "$LN_S" = "ln -s"; then
3341 echo "$as_me:3341: result: yes" >&5
3342 echo "${ECHO_T}yes" >&6
3344 echo "$as_me:3344: result: no, using $LN_S" >&5
3345 echo "${ECHO_T}no, using $LN_S" >&6
3348 echo "$as_me:3348: checking for long file names" >&5
3349 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3350 if test "${ac_cv_sys_long_file_names+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 ac_cv_sys_long_file_names=yes
3354 # Test for long file names in all the places we know might matter:
3355 # . the current directory, where building will happen
3356 # $prefix/lib where we will be installing things
3357 # $exec_prefix/lib likewise
3358 # eval it to expand exec_prefix.
3359 # $TMPDIR if set, where it might want to write temporary files
3360 # if $TMPDIR is not set:
3361 # /tmp where it might want to write temporary files
3364 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3367 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3369 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3370 test -d $ac_dir || continue
3371 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3372 ac_xdir=$ac_dir/cf$$
3373 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3374 ac_tf1=$ac_xdir/conftest9012345
3375 ac_tf2=$ac_xdir/conftest9012346
3376 (echo 1 >$ac_tf1) 2>/dev/null
3377 (echo 2 >$ac_tf2) 2>/dev/null
3378 ac_val=`cat $ac_tf1 2>/dev/null`
3379 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3380 ac_cv_sys_long_file_names=no
3381 rm -rf $ac_xdir 2>/dev/null
3384 rm -rf $ac_xdir 2>/dev/null
3387 echo "$as_me:3387: result: $ac_cv_sys_long_file_names" >&5
3388 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3389 if test $ac_cv_sys_long_file_names = yes; then
3391 cat >>confdefs.h <<\EOF
3392 #define HAVE_LONG_FILE_NAMES 1
3397 echo "$as_me:3397: checking if we should assume mixed-case filenames" >&5
3398 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3400 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3401 if test "${enable_mixed_case+set}" = set; then
3402 enableval="$enable_mixed_case"
3403 enable_mixedcase=$enableval
3405 enable_mixedcase=auto
3407 echo "$as_me:3407: result: $enable_mixedcase" >&5
3408 echo "${ECHO_T}$enable_mixedcase" >&6
3409 if test "$enable_mixedcase" = "auto" ; then
3411 echo "$as_me:3411: checking if filesystem supports mixed-case filenames" >&5
3412 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3413 if test "${cf_cv_mixedcase+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 if test "$cross_compiling" = yes ; then
3418 case $target_alias in #(vi
3419 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3427 rm -f conftest CONFTEST
3429 if test -f CONFTEST ; then
3434 rm -f conftest CONFTEST
3438 echo "$as_me:3438: result: $cf_cv_mixedcase" >&5
3439 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3440 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3441 #define MIXEDCASE_FILENAMES 1
3445 cf_cv_mixedcase=$enable_mixedcase
3446 if test "$enable_mixedcase" = "yes" ; then
3447 cat >>confdefs.h <<\EOF
3448 #define MIXEDCASE_FILENAMES 1
3454 # do this after mixed-case option (tags/TAGS is not as important as tic).
3455 echo "$as_me:3455: checking whether ${MAKE-make} sets \${MAKE}" >&5
3456 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3457 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3458 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 cat >conftest.make <<\EOF
3463 @echo 'ac_maketemp="${MAKE}"'
3465 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3466 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3467 if test -n "$ac_maketemp"; then
3468 eval ac_cv_prog_make_${ac_make}_set=yes
3470 eval ac_cv_prog_make_${ac_make}_set=no
3474 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3475 echo "$as_me:3475: result: yes" >&5
3476 echo "${ECHO_T}yes" >&6
3479 echo "$as_me:3479: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3481 SET_MAKE="MAKE=${MAKE-make}"
3484 # Extract the first word of "ctags", so it can be a program name with args.
3485 set dummy ctags; ac_word=$2
3486 echo "$as_me:3486: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3488 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 if test -n "$MAKE_LOWER_TAGS"; then
3492 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3494 ac_save_IFS=$IFS; IFS=$ac_path_separator
3496 for ac_dir in $ac_dummy; do
3498 test -z "$ac_dir" && ac_dir=.
3499 $as_executable_p "$ac_dir/$ac_word" || continue
3500 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3501 echo "$as_me:3501: found $ac_dir/$ac_word" >&5
3505 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3508 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3509 if test -n "$MAKE_LOWER_TAGS"; then
3510 echo "$as_me:3510: result: $MAKE_LOWER_TAGS" >&5
3511 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3513 echo "$as_me:3513: result: no" >&5
3514 echo "${ECHO_T}no" >&6
3517 if test "$cf_cv_mixedcase" = yes ; then
3518 # Extract the first word of "etags", so it can be a program name with args.
3519 set dummy etags; ac_word=$2
3520 echo "$as_me:3520: checking for $ac_word" >&5
3521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3522 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 if test -n "$MAKE_UPPER_TAGS"; then
3526 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3528 ac_save_IFS=$IFS; IFS=$ac_path_separator
3530 for ac_dir in $ac_dummy; do
3532 test -z "$ac_dir" && ac_dir=.
3533 $as_executable_p "$ac_dir/$ac_word" || continue
3534 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3535 echo "$as_me:3535: found $ac_dir/$ac_word" >&5
3539 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3542 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3543 if test -n "$MAKE_UPPER_TAGS"; then
3544 echo "$as_me:3544: result: $MAKE_UPPER_TAGS" >&5
3545 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3547 echo "$as_me:3547: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3555 if test "$MAKE_UPPER_TAGS" = yes ; then
3561 if test "$MAKE_LOWER_TAGS" = yes ; then
3567 echo "$as_me:3567: checking for makeflags variable" >&5
3568 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3569 if test "${cf_cv_makeflags+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3576 cat >cf_makeflags.tmp <<CF_EOF
3579 @ echo '.$cf_option'
3581 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3582 case "$cf_result" in
3584 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3585 case "$cf_result" in
3586 .*CC=*) cf_cv_makeflags=
3588 *) cf_cv_makeflags=$cf_option
3594 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3598 rm -f cf_makeflags.tmp
3601 echo "$as_me:3601: result: $cf_cv_makeflags" >&5
3602 echo "${ECHO_T}$cf_cv_makeflags" >&6
3604 if test -n "$ac_tool_prefix"; then
3605 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3606 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3607 echo "$as_me:3607: checking for $ac_word" >&5
3608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3609 if test "${ac_cv_prog_RANLIB+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 if test -n "$RANLIB"; then
3613 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3615 ac_save_IFS=$IFS; IFS=$ac_path_separator
3617 for ac_dir in $ac_dummy; do
3619 test -z "$ac_dir" && ac_dir=.
3620 $as_executable_p "$ac_dir/$ac_word" || continue
3621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3622 echo "$as_me:3622: found $ac_dir/$ac_word" >&5
3628 RANLIB=$ac_cv_prog_RANLIB
3629 if test -n "$RANLIB"; then
3630 echo "$as_me:3630: result: $RANLIB" >&5
3631 echo "${ECHO_T}$RANLIB" >&6
3633 echo "$as_me:3633: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3638 if test -z "$ac_cv_prog_RANLIB"; then
3639 ac_ct_RANLIB=$RANLIB
3640 # Extract the first word of "ranlib", so it can be a program name with args.
3641 set dummy ranlib; ac_word=$2
3642 echo "$as_me:3642: checking for $ac_word" >&5
3643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3644 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 if test -n "$ac_ct_RANLIB"; then
3648 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3650 ac_save_IFS=$IFS; IFS=$ac_path_separator
3652 for ac_dir in $ac_dummy; do
3654 test -z "$ac_dir" && ac_dir=.
3655 $as_executable_p "$ac_dir/$ac_word" || continue
3656 ac_cv_prog_ac_ct_RANLIB="ranlib"
3657 echo "$as_me:3657: found $ac_dir/$ac_word" >&5
3661 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3664 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3665 if test -n "$ac_ct_RANLIB"; then
3666 echo "$as_me:3666: result: $ac_ct_RANLIB" >&5
3667 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3669 echo "$as_me:3669: result: no" >&5
3670 echo "${ECHO_T}no" >&6
3673 RANLIB=$ac_ct_RANLIB
3675 RANLIB="$ac_cv_prog_RANLIB"
3678 if test -n "$ac_tool_prefix"; then
3679 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3680 set dummy ${ac_tool_prefix}ld; ac_word=$2
3681 echo "$as_me:3681: checking for $ac_word" >&5
3682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3683 if test "${ac_cv_prog_LD+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 if test -n "$LD"; then
3687 ac_cv_prog_LD="$LD" # Let the user override the test.
3689 ac_save_IFS=$IFS; IFS=$ac_path_separator
3691 for ac_dir in $ac_dummy; do
3693 test -z "$ac_dir" && ac_dir=.
3694 $as_executable_p "$ac_dir/$ac_word" || continue
3695 ac_cv_prog_LD="${ac_tool_prefix}ld"
3696 echo "$as_me:3696: found $ac_dir/$ac_word" >&5
3703 if test -n "$LD"; then
3704 echo "$as_me:3704: result: $LD" >&5
3705 echo "${ECHO_T}$LD" >&6
3707 echo "$as_me:3707: result: no" >&5
3708 echo "${ECHO_T}no" >&6
3712 if test -z "$ac_cv_prog_LD"; then
3714 # Extract the first word of "ld", so it can be a program name with args.
3715 set dummy ld; ac_word=$2
3716 echo "$as_me:3716: checking for $ac_word" >&5
3717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3718 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 if test -n "$ac_ct_LD"; then
3722 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3724 ac_save_IFS=$IFS; IFS=$ac_path_separator
3726 for ac_dir in $ac_dummy; do
3728 test -z "$ac_dir" && ac_dir=.
3729 $as_executable_p "$ac_dir/$ac_word" || continue
3730 ac_cv_prog_ac_ct_LD="ld"
3731 echo "$as_me:3731: found $ac_dir/$ac_word" >&5
3735 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3738 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3739 if test -n "$ac_ct_LD"; then
3740 echo "$as_me:3740: result: $ac_ct_LD" >&5
3741 echo "${ECHO_T}$ac_ct_LD" >&6
3743 echo "$as_me:3743: result: no" >&5
3744 echo "${ECHO_T}no" >&6
3752 if test -n "$ac_tool_prefix"; then
3753 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3754 set dummy ${ac_tool_prefix}ar; ac_word=$2
3755 echo "$as_me:3755: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3757 if test "${ac_cv_prog_AR+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if test -n "$AR"; then
3761 ac_cv_prog_AR="$AR" # Let the user override the test.
3763 ac_save_IFS=$IFS; IFS=$ac_path_separator
3765 for ac_dir in $ac_dummy; do
3767 test -z "$ac_dir" && ac_dir=.
3768 $as_executable_p "$ac_dir/$ac_word" || continue
3769 ac_cv_prog_AR="${ac_tool_prefix}ar"
3770 echo "$as_me:3770: found $ac_dir/$ac_word" >&5
3777 if test -n "$AR"; then
3778 echo "$as_me:3778: result: $AR" >&5
3779 echo "${ECHO_T}$AR" >&6
3781 echo "$as_me:3781: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3786 if test -z "$ac_cv_prog_AR"; then
3788 # Extract the first word of "ar", so it can be a program name with args.
3789 set dummy ar; ac_word=$2
3790 echo "$as_me:3790: checking for $ac_word" >&5
3791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3792 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 if test -n "$ac_ct_AR"; then
3796 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3798 ac_save_IFS=$IFS; IFS=$ac_path_separator
3800 for ac_dir in $ac_dummy; do
3802 test -z "$ac_dir" && ac_dir=.
3803 $as_executable_p "$ac_dir/$ac_word" || continue
3804 ac_cv_prog_ac_ct_AR="ar"
3805 echo "$as_me:3805: found $ac_dir/$ac_word" >&5
3809 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3812 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3813 if test -n "$ac_ct_AR"; then
3814 echo "$as_me:3814: result: $ac_ct_AR" >&5
3815 echo "${ECHO_T}$ac_ct_AR" >&6
3817 echo "$as_me:3817: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3826 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 echo "$as_me:3830: checking for archiver options (symbol AR_OPTS)" >&5
3831 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3833 if test -z "$AR_OPTS" ; then
3838 cf_cv_subst_AR_OPTS=$AR_OPTS
3839 echo "$as_me:3839: result: $AR_OPTS" >&5
3840 echo "${ECHO_T}$AR_OPTS" >&6
3844 echo "$as_me:3844: checking if you have specified an install-prefix" >&5
3845 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3847 # Check whether --with-install-prefix or --without-install-prefix was given.
3848 if test "${with_install_prefix+set}" = set; then
3849 withval="$with_install_prefix"
3850 case "$withval" in #(vi
3853 *) DESTDIR="$withval"
3857 echo "$as_me:3857: result: $DESTDIR" >&5
3858 echo "${ECHO_T}$DESTDIR" >&6
3860 ###############################################################################
3862 # If we're cross-compiling, allow the user to override the tools and their
3863 # options. The configure script is oriented toward identifying the host
3864 # compiler, etc., but we need a build compiler to generate parts of the source.
3866 if test "$cross_compiling" = yes ; then
3868 # defaults that we might want to override
3869 : ${BUILD_CFLAGS:=''}
3870 : ${BUILD_CPPFLAGS:=''}
3871 : ${BUILD_LDFLAGS:=''}
3873 : ${BUILD_EXEEXT:='$x'}
3874 : ${BUILD_OBJEXT:='o'}
3876 # Check whether --with-build-cc or --without-build-cc was given.
3877 if test "${with_build_cc+set}" = set; then
3878 withval="$with_build_cc"
3881 for ac_prog in gcc cc cl
3883 # Extract the first word of "$ac_prog", so it can be a program name with args.
3884 set dummy $ac_prog; ac_word=$2
3885 echo "$as_me:3885: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 if test -n "$BUILD_CC"; then
3891 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3893 ac_save_IFS=$IFS; IFS=$ac_path_separator
3895 for ac_dir in $ac_dummy; do
3897 test -z "$ac_dir" && ac_dir=.
3898 $as_executable_p "$ac_dir/$ac_word" || continue
3899 ac_cv_prog_BUILD_CC="$ac_prog"
3900 echo "$as_me:3900: found $ac_dir/$ac_word" >&5
3906 BUILD_CC=$ac_cv_prog_BUILD_CC
3907 if test -n "$BUILD_CC"; then
3908 echo "$as_me:3908: result: $BUILD_CC" >&5
3909 echo "${ECHO_T}$BUILD_CC" >&6
3911 echo "$as_me:3911: result: no" >&5
3912 echo "${ECHO_T}no" >&6
3915 test -n "$BUILD_CC" && break
3919 echo "$as_me:3919: checking for native build C compiler" >&5
3920 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3921 echo "$as_me:3921: result: $BUILD_CC" >&5
3922 echo "${ECHO_T}$BUILD_CC" >&6
3924 echo "$as_me:3924: checking for native build C preprocessor" >&5
3925 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3927 # Check whether --with-build-cpp or --without-build-cpp was given.
3928 if test "${with_build_cpp+set}" = set; then
3929 withval="$with_build_cpp"
3930 BUILD_CPP="$withval"
3932 BUILD_CPP='${BUILD_CC} -E'
3934 echo "$as_me:3934: result: $BUILD_CPP" >&5
3935 echo "${ECHO_T}$BUILD_CPP" >&6
3937 echo "$as_me:3937: checking for native build C flags" >&5
3938 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3940 # Check whether --with-build-cflags or --without-build-cflags was given.
3941 if test "${with_build_cflags+set}" = set; then
3942 withval="$with_build_cflags"
3943 BUILD_CFLAGS="$withval"
3945 echo "$as_me:3945: result: $BUILD_CFLAGS" >&5
3946 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3948 echo "$as_me:3948: checking for native build C preprocessor-flags" >&5
3949 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3951 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3952 if test "${with_build_cppflags+set}" = set; then
3953 withval="$with_build_cppflags"
3954 BUILD_CPPFLAGS="$withval"
3956 echo "$as_me:3956: result: $BUILD_CPPFLAGS" >&5
3957 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3959 echo "$as_me:3959: checking for native build linker-flags" >&5
3960 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3962 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3963 if test "${with_build_ldflags+set}" = set; then
3964 withval="$with_build_ldflags"
3965 BUILD_LDFLAGS="$withval"
3967 echo "$as_me:3967: result: $BUILD_LDFLAGS" >&5
3968 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3970 echo "$as_me:3970: checking for native build linker-libraries" >&5
3971 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3973 # Check whether --with-build-libs or --without-build-libs was given.
3974 if test "${with_build_libs+set}" = set; then
3975 withval="$with_build_libs"
3976 BUILD_LIBS="$withval"
3978 echo "$as_me:3978: result: $BUILD_LIBS" >&5
3979 echo "${ECHO_T}$BUILD_LIBS" >&6
3981 # this assumes we're on Unix.
3985 : ${BUILD_CC:='${CC}'}
3987 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3988 { { echo "$as_me:3988: error: Cross-build requires two compilers.
3989 Use --with-build-cc to specify the native compiler." >&5
3990 echo "$as_me: error: Cross-build requires two compilers.
3991 Use --with-build-cc to specify the native compiler." >&2;}
3992 { (exit 1); exit 1; }; }
3996 : ${BUILD_CC:='${CC}'}
3997 : ${BUILD_CPP:='${CPP}'}
3998 : ${BUILD_CFLAGS:='${CFLAGS}'}
3999 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4000 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4001 : ${BUILD_LIBS:='${LIBS}'}
4002 : ${BUILD_EXEEXT:='$x'}
4003 : ${BUILD_OBJEXT:='o'}
4006 ###############################################################################
4008 ### Options to allow the user to specify the set of libraries which are used.
4009 ### Use "--without-normal --with-shared" to allow the default model to be
4010 ### shared, for example.
4015 # common library maintenance symbols that are convenient for libtool scripts:
4016 LIB_CREATE='${AR} -cr'
4017 LIB_OBJECT='${OBJECTS}'
4021 # symbols used to prop libtool up to enable it to determine what it should be
4029 echo "$as_me:4029: checking if you want to build libraries with libtool" >&5
4030 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4032 # Check whether --with-libtool or --without-libtool was given.
4033 if test "${with_libtool+set}" = set; then
4034 withval="$with_libtool"
4035 with_libtool=$withval
4039 echo "$as_me:4039: result: $with_libtool" >&5
4040 echo "${ECHO_T}$with_libtool" >&6
4041 if test "$with_libtool" != "no"; then
4043 if test "$with_libtool" != "yes" ; then
4045 if test "x$prefix" != xNONE; then
4046 cf_path_syntax="$prefix"
4048 cf_path_syntax="$ac_default_prefix"
4051 case ".$with_libtool" in #(vi
4052 .\$\(*\)*|.\'*\'*) #(vi
4056 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4059 eval with_libtool="$with_libtool"
4060 case ".$with_libtool" in #(vi
4062 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4067 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4070 { { echo "$as_me:4070: error: expected a pathname, not \"$with_libtool\"" >&5
4071 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4072 { (exit 1); exit 1; }; }
4076 LIBTOOL=$with_libtool
4078 # Extract the first word of "libtool", so it can be a program name with args.
4079 set dummy libtool; ac_word=$2
4080 echo "$as_me:4080: checking for $ac_word" >&5
4081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4090 ac_save_IFS=$IFS; IFS=$ac_path_separator
4092 for ac_dir in $ac_dummy; do
4094 test -z "$ac_dir" && ac_dir=.
4095 if $as_executable_p "$ac_dir/$ac_word"; then
4096 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4097 echo "$as_me:4097: found $ac_dir/$ac_word" >&5
4105 LIBTOOL=$ac_cv_path_LIBTOOL
4107 if test -n "$LIBTOOL"; then
4108 echo "$as_me:4108: result: $LIBTOOL" >&5
4109 echo "${ECHO_T}$LIBTOOL" >&6
4111 echo "$as_me:4111: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4116 if test -z "$LIBTOOL" ; then
4117 { { echo "$as_me:4117: error: Cannot find libtool" >&5
4118 echo "$as_me: error: Cannot find libtool" >&2;}
4119 { (exit 1); exit 1; }; }
4121 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} -o'
4122 LIB_OBJECT='${OBJECTS:.o=.lo}'
4124 LIB_CLEAN='${LIBTOOL} --mode=clean'
4125 LIB_COMPILE='${LIBTOOL} --mode=compile'
4126 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4127 LIB_INSTALL='${LIBTOOL} --mode=install'
4128 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4131 # Show the version of libtool
4132 echo "$as_me:4132: checking version of libtool" >&5
4133 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4135 # Save the version in a cache variable - this is not entirely a good
4136 # thing, but the version string from libtool is very ugly, and for
4137 # bug reports it might be useful to have the original string.
4138 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4139 echo "$as_me:4139: result: $cf_cv_libtool_version" >&5
4140 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4141 if test -z "$cf_cv_libtool_version" ; then
4142 { { echo "$as_me:4142: error: This is not GNU libtool" >&5
4143 echo "$as_me: error: This is not GNU libtool" >&2;}
4144 { (exit 1); exit 1; }; }
4147 # special hack to add --tag option for C++ compiler
4148 case $cf_cv_libtool_version in
4150 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4151 LIBTOOL="$LIBTOOL --tag=CC"
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___%`
4256 case $cf_cv_system_name in #(vi
4263 cf_prefix=$LIB_PREFIX
4265 LIB_PREFIX=$cf_prefix
4269 ###############################################################################
4271 echo "$as_me:4271: checking if you want to build a separate terminfo library" >&5
4272 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4274 # Check whether --with-termlib or --without-termlib was given.
4275 if test "${with_termlib+set}" = set; then
4276 withval="$with_termlib"
4277 with_termlib=$withval
4281 echo "$as_me:4281: result: $with_termlib" >&5
4282 echo "${ECHO_T}$with_termlib" >&6
4284 echo "$as_me:4284: checking if you want to build a separate tic library" >&5
4285 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4287 # Check whether --with-ticlib or --without-ticlib was given.
4288 if test "${with_ticlib+set}" = set; then
4289 withval="$with_ticlib"
4290 with_ticlib=$withval
4294 echo "$as_me:4294: result: $with_ticlib" >&5
4295 echo "${ECHO_T}$with_ticlib" >&6
4297 ### Checks for special libraries, must be done up-front.
4300 echo "$as_me:4300: checking if you want to link with the GPM mouse library" >&5
4301 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4303 # Check whether --with-gpm or --without-gpm was given.
4304 if test "${with_gpm+set}" = set; then
4310 echo "$as_me:4310: result: $with_gpm" >&5
4311 echo "${ECHO_T}$with_gpm" >&6
4313 if test "$with_gpm" != no ; then
4314 echo "$as_me:4314: checking for gpm.h" >&5
4315 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4316 if test "${ac_cv_header_gpm_h+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 cat >conftest.$ac_ext <<_ACEOF
4320 #line 4320 "configure"
4321 #include "confdefs.h"
4324 if { (eval echo "$as_me:4324: \"$ac_cpp conftest.$ac_ext\"") >&5
4325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4327 egrep -v '^ *\+' conftest.er1 >conftest.err
4329 cat conftest.err >&5
4330 echo "$as_me:4330: \$? = $ac_status" >&5
4331 (exit $ac_status); } >/dev/null; then
4332 if test -s conftest.err; then
4333 ac_cpp_err=$ac_c_preproc_warn_flag
4340 if test -z "$ac_cpp_err"; then
4341 ac_cv_header_gpm_h=yes
4343 echo "$as_me: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4345 ac_cv_header_gpm_h=no
4347 rm -f conftest.err conftest.$ac_ext
4349 echo "$as_me:4349: result: $ac_cv_header_gpm_h" >&5
4350 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4351 if test $ac_cv_header_gpm_h = yes; then
4353 cat >>confdefs.h <<\EOF
4354 #define HAVE_GPM_H 1
4357 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4358 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4360 echo "${as_me-configure}:4360: testing assuming we really have GPM library ..." 1>&5
4362 cat >>confdefs.h <<\EOF
4363 #define HAVE_LIBGPM 1
4367 echo "$as_me:4367: checking for Gpm_Open in -lgpm" >&5
4368 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4369 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 ac_check_lib_save_LIBS=$LIBS
4374 cat >conftest.$ac_ext <<_ACEOF
4375 #line 4375 "configure"
4376 #include "confdefs.h"
4378 /* Override any gcc2 internal prototype to avoid an error. */
4382 /* We use char because int might match the return type of a gcc2
4383 builtin and then its argument prototype would still apply. */
4393 rm -f conftest.$ac_objext conftest$ac_exeext
4394 if { (eval echo "$as_me:4394: \"$ac_link\"") >&5
4395 (eval $ac_link) 2>&5
4397 echo "$as_me:4397: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -s conftest$ac_exeext'
4400 { (eval echo "$as_me:4400: \"$ac_try\"") >&5
4403 echo "$as_me:4403: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
4405 ac_cv_lib_gpm_Gpm_Open=yes
4407 echo "$as_me: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4409 ac_cv_lib_gpm_Gpm_Open=no
4411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4412 LIBS=$ac_check_lib_save_LIBS
4414 echo "$as_me:4414: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4415 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4416 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4420 { { echo "$as_me:4420: error: Cannot link with GPM library" >&5
4421 echo "$as_me: error: Cannot link with GPM library" >&2;}
4422 { (exit 1); exit 1; }; }
4430 test "$with_gpm" != maybe && { echo "$as_me:4430: WARNING: Cannot find GPM header" >&5
4431 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4438 if test "$with_gpm" != no ; then
4439 echo "$as_me:4439: checking if you want to load GPM dynamically" >&5
4440 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4442 # Check whether --with-dlsym or --without-dlsym was given.
4443 if test "${with_dlsym+set}" = set; then
4444 withval="$with_dlsym"
4449 echo "$as_me:4449: result: $with_dlsym" >&5
4450 echo "${ECHO_T}$with_dlsym" >&6
4451 if test "$with_dlsym" = yes ; then
4454 echo "$as_me:4454: checking for dlsym" >&5
4455 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4456 if test "${ac_cv_func_dlsym+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 cat >conftest.$ac_ext <<_ACEOF
4460 #line 4460 "configure"
4461 #include "confdefs.h"
4462 /* System header to define __stub macros and hopefully few prototypes,
4463 which can conflict with char dlsym (); below. */
4465 /* Override any gcc2 internal prototype to avoid an error. */
4469 /* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4477 /* The GNU C library defines this for functions which it implements
4478 to always fail with ENOSYS. Some functions are actually named
4479 something starting with __ and the normal name is an alias. */
4480 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4490 rm -f conftest.$ac_objext conftest$ac_exeext
4491 if { (eval echo "$as_me:4491: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>&5
4494 echo "$as_me:4494: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -s conftest$ac_exeext'
4497 { (eval echo "$as_me:4497: \"$ac_try\"") >&5
4500 echo "$as_me:4500: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_cv_func_dlsym=yes
4504 echo "$as_me: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4510 echo "$as_me:4510: result: $ac_cv_func_dlsym" >&5
4511 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4512 if test $ac_cv_func_dlsym = yes; then
4517 echo "$as_me:4517: checking for dlsym in -ldl" >&5
4518 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4519 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 ac_check_lib_save_LIBS=$LIBS
4524 cat >conftest.$ac_ext <<_ACEOF
4525 #line 4525 "configure"
4526 #include "confdefs.h"
4528 /* Override any gcc2 internal prototype to avoid an error. */
4532 /* We use char because int might match the return type of a gcc2
4533 builtin and then its argument prototype would still apply. */
4543 rm -f conftest.$ac_objext conftest$ac_exeext
4544 if { (eval echo "$as_me:4544: \"$ac_link\"") >&5
4545 (eval $ac_link) 2>&5
4547 echo "$as_me:4547: \$? = $ac_status" >&5
4548 (exit $ac_status); } &&
4549 { ac_try='test -s conftest$ac_exeext'
4550 { (eval echo "$as_me:4550: \"$ac_try\"") >&5
4553 echo "$as_me:4553: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4555 ac_cv_lib_dl_dlsym=yes
4557 echo "$as_me: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4559 ac_cv_lib_dl_dlsym=no
4561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4562 LIBS=$ac_check_lib_save_LIBS
4564 echo "$as_me:4564: result: $ac_cv_lib_dl_dlsym" >&5
4565 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4566 if test $ac_cv_lib_dl_dlsym = yes; then
4574 if test "$cf_have_dlsym" = yes ; then
4575 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4577 echo "$as_me:4577: checking whether able to link to dl*() functions" >&5
4578 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4579 cat >conftest.$ac_ext <<_ACEOF
4580 #line 4580 "configure"
4581 #include "confdefs.h"
4588 if ((obj = dlopen("filename", 0)) != 0) {
4589 if (dlsym(obj, "symbolname") == 0) {
4597 rm -f conftest.$ac_objext conftest$ac_exeext
4598 if { (eval echo "$as_me:4598: \"$ac_link\"") >&5
4599 (eval $ac_link) 2>&5
4601 echo "$as_me:4601: \$? = $ac_status" >&5
4602 (exit $ac_status); } &&
4603 { ac_try='test -s conftest$ac_exeext'
4604 { (eval echo "$as_me:4604: \"$ac_try\"") >&5
4607 echo "$as_me:4607: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4610 cat >>confdefs.h <<\EOF
4611 #define HAVE_LIBDL 1
4615 echo "$as_me: failed program was:" >&5
4616 cat conftest.$ac_ext >&5
4618 { { echo "$as_me:4618: error: Cannot link test program for libdl" >&5
4619 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4620 { (exit 1); exit 1; }; }
4622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4623 echo "$as_me:4623: result: ok" >&5
4624 echo "${ECHO_T}ok" >&6
4626 { { echo "$as_me:4626: error: Cannot find dlsym function" >&5
4627 echo "$as_me: error: Cannot find dlsym function" >&2;}
4628 { (exit 1); exit 1; }; }
4631 if test "$with_gpm" != yes ; then
4632 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4634 echo "${as_me-configure}:4634: testing assuming soname for gpm is $with_gpm ..." 1>&5
4636 cf_cv_gpm_soname="$with_gpm"
4639 echo "$as_me:4639: checking for soname of gpm library" >&5
4640 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
4641 if test "${cf_cv_gpm_soname+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 cf_cv_gpm_soname=unknown
4646 if test "$cross_compiling" != yes ; then
4647 cat >conftest.$ac_ext <<CF_EOF
4651 if (Gpm_Open(0,0)) Gpm_Close();
4652 ${cf_cv_main_return:-return}(0);
4655 cf_save_LIBS="$LIBS"
4657 if { (eval echo "$as_me:4657: \"$ac_compile\"") >&5
4658 (eval $ac_compile) 2>&5
4660 echo "$as_me:4660: \$? = $ac_status" >&5
4661 (exit $ac_status); } ; then
4662 if { (eval echo "$as_me:4662: \"$ac_link\"") >&5
4663 (eval $ac_link) 2>&5
4665 echo "$as_me:4665: \$? = $ac_status" >&5
4666 (exit $ac_status); } ; then
4667 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
4668 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
4672 LIBS="$cf_save_LIBS"
4676 echo "$as_me:4676: result: $cf_cv_gpm_soname" >&5
4677 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
4680 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
4681 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
4684 SHLIB_LIST="-ldl $SHLIB_LIST"
4686 SHLIB_LIST="-lgpm $SHLIB_LIST"
4688 cat >>confdefs.h <<\EOF
4689 #define HAVE_LIBGPM 1
4692 echo "$as_me:4692: checking for Gpm_Wgetch in -lgpm" >&5
4693 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
4694 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 ac_check_lib_save_LIBS=$LIBS
4699 cat >conftest.$ac_ext <<_ACEOF
4700 #line 4700 "configure"
4701 #include "confdefs.h"
4703 /* Override any gcc2 internal prototype to avoid an error. */
4707 /* We use char because int might match the return type of a gcc2
4708 builtin and then its argument prototype would still apply. */
4718 rm -f conftest.$ac_objext conftest$ac_exeext
4719 if { (eval echo "$as_me:4719: \"$ac_link\"") >&5
4720 (eval $ac_link) 2>&5
4722 echo "$as_me:4722: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -s conftest$ac_exeext'
4725 { (eval echo "$as_me:4725: \"$ac_try\"") >&5
4728 echo "$as_me:4728: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_cv_lib_gpm_Gpm_Wgetch=yes
4732 echo "$as_me: failed program was:" >&5
4733 cat conftest.$ac_ext >&5
4734 ac_cv_lib_gpm_Gpm_Wgetch=no
4736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4737 LIBS=$ac_check_lib_save_LIBS
4739 echo "$as_me:4739: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
4740 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
4741 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
4743 echo "$as_me:4743: checking if GPM is weakly bound to curses library" >&5
4744 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
4745 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 cf_cv_check_gpm_wgetch=unknown
4750 if test "$cross_compiling" != yes ; then
4752 cat >conftest.$ac_ext <<CF_EOF
4757 ${cf_cv_main_return:-return}(0);
4761 cf_save_LIBS="$LIBS"
4762 # This only works if we can look at the symbol table. If a shared
4763 # library is stripped for install, we cannot use that. So we're forced
4764 # to rely on the static library, noting that some packagers may not
4766 LIBS="-static -lgpm -dynamic $LIBS"
4767 if { (eval echo "$as_me:4767: \"$ac_compile\"") >&5
4768 (eval $ac_compile) 2>&5
4770 echo "$as_me:4770: \$? = $ac_status" >&5
4771 (exit $ac_status); } ; then
4772 if { (eval echo "$as_me:4772: \"$ac_link\"") >&5
4773 (eval $ac_link) 2>&5
4775 echo "$as_me:4775: \$? = $ac_status" >&5
4776 (exit $ac_status); } ; then
4777 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
4778 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
4779 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
4783 LIBS="$cf_save_LIBS"
4787 echo "$as_me:4787: result: $cf_cv_check_gpm_wgetch" >&5
4788 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
4790 if test "$cf_cv_check_gpm_wgetch" != yes ; then
4791 { echo "$as_me:4791: WARNING: GPM library is already linked with curses - read the FAQ" >&5
4792 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
4799 # not everyone has "test -c"
4800 if test -c /dev/sysmouse 2>/dev/null ; then
4801 echo "$as_me:4801: checking if you want to use sysmouse" >&5
4802 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
4804 # Check whether --with-sysmouse or --without-sysmouse was given.
4805 if test "${with_sysmouse+set}" = set; then
4806 withval="$with_sysmouse"
4807 cf_with_sysmouse=$withval
4809 cf_with_sysmouse=maybe
4811 if test "$cf_with_sysmouse" != no ; then
4812 cat >conftest.$ac_ext <<_ACEOF
4813 #line 4813 "configure"
4814 #include "confdefs.h"
4816 #include <osreldate.h>
4817 #if (__FreeBSD_version >= 400017)
4818 #include <sys/consio.h>
4819 #include <sys/fbio.h>
4821 #include <machine/console.h>
4828 struct mouse_info the_mouse;
4829 ioctl(0, CONS_MOUSECTL, &the_mouse);
4835 rm -f conftest.$ac_objext
4836 if { (eval echo "$as_me:4836: \"$ac_compile\"") >&5
4837 (eval $ac_compile) 2>&5
4839 echo "$as_me:4839: \$? = $ac_status" >&5
4840 (exit $ac_status); } &&
4841 { ac_try='test -s conftest.$ac_objext'
4842 { (eval echo "$as_me:4842: \"$ac_try\"") >&5
4845 echo "$as_me:4845: \$? = $ac_status" >&5
4846 (exit $ac_status); }; }; then
4847 cf_with_sysmouse=yes
4849 echo "$as_me: failed program was:" >&5
4850 cat conftest.$ac_ext >&5
4853 rm -f conftest.$ac_objext conftest.$ac_ext
4855 echo "$as_me:4855: result: $cf_with_sysmouse" >&5
4856 echo "${ECHO_T}$cf_with_sysmouse" >&6
4857 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
4858 #define USE_SYSMOUSE 1
4863 if test X"$CC_G_OPT" = X"" ; then
4865 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
4868 if test X"$CXX_G_OPT" = X"" ; then
4870 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
4873 echo "$as_me:4873: checking for default loader flags" >&5
4874 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
4875 case $DFT_LWR_MODEL in
4876 libtool) LD_MODEL='' ;;
4877 normal) LD_MODEL='' ;;
4878 debug) LD_MODEL=$CC_G_OPT ;;
4879 profile) LD_MODEL='-pg';;
4880 shared) LD_MODEL='' ;;
4882 echo "$as_me:4882: result: $LD_MODEL" >&5
4883 echo "${ECHO_T}$LD_MODEL" >&6
4885 case $DFT_LWR_MODEL in
4888 echo "$as_me:4888: checking if rpath option should be used" >&5
4889 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
4891 # Check whether --enable-rpath or --disable-rpath was given.
4892 if test "${enable_rpath+set}" = set; then
4893 enableval="$enable_rpath"
4894 cf_cv_ld_rpath=$enableval
4898 echo "$as_me:4898: result: $cf_cv_ld_rpath" >&5
4899 echo "${ECHO_T}$cf_cv_ld_rpath" >&6