2 # From configure.in Revision: 1.429 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20061216.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
611 # Report the --help message.
613 if test "$ac_init_help" = "long"; then
614 # Omit some internal or obsolete options to make the list less imposing.
615 # This message is too long to be a string in the A/UX 3.1 sh.
617 \`configure' configures this package to adapt to many kinds of systems.
619 Usage: $0 [OPTION]... [VAR=VALUE]...
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE. See below for descriptions of some of the useful variables.
624 Defaults for the options are specified in brackets.
627 -h, --help display this help and exit
628 --help=short display options specific to this package
629 --help=recursive display the short help of all the included packages
630 -V, --version display version information and exit
631 -q, --quiet, --silent do not print \`checking...' messages
632 --cache-file=FILE cache test results in FILE [disabled]
633 -C, --config-cache alias for \`--cache-file=config.cache'
634 -n, --no-create do not create output files
635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
640 Installation directories:
641 --prefix=PREFIX install architecture-independent files in PREFIX
643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
651 For better control, use the options below.
653 Fine tuning of the installation directories:
654 --bindir=DIR user executables [EPREFIX/bin]
655 --sbindir=DIR system admin executables [EPREFIX/sbin]
656 --libexecdir=DIR program executables [EPREFIX/libexec]
657 --datadir=DIR read-only architecture-independent data [PREFIX/share]
658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
661 --libdir=DIR object code libraries [EPREFIX/lib]
662 --includedir=DIR C header files [PREFIX/include]
663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
664 --infodir=DIR info documentation [PREFIX/info]
665 --mandir=DIR man documentation [PREFIX/man]
671 --program-prefix=PREFIX prepend PREFIX to installed program names
672 --program-suffix=SUFFIX append SUFFIX to installed program names
673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 --target=TARGET configure for building compilers for TARGET [HOST]
682 if test -n "$ac_init_help"; then
687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
694 --with-rel-version=XXX override derived release version
695 --with-abi-version=XXX override derived ABI version
696 --with-system-type=XXX test: override derived host system-type
697 --without-cxx do not adjust ncurses bool to match C++
698 --without-cxx-binding do not build C++ binding and demo
699 --without-ada suppress check for Ada95, don't build demo
700 --without-progs suppress build with programs (e.g., tic)
701 --without-curses-h install curses.h as ncurses.h only
702 --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-no-padding compile with $NCURSES_NO_PADDING code
766 --enable-signed-char compile using signed Boolean's in term.h
767 --enable-sigwinch compile with SIGWINCH handler
768 --enable-tcap-names compile with user-definable terminal capabilities
770 --without-develop disable development options
771 --enable-hard-tabs compile with hard-tabs code
772 --enable-xmc-glitch compile with support for xmc (magic-cookie)
774 --disable-assumed-color do not assume anything about default-colors
775 --disable-hashmap compile without hashmap scrolling-optimization
776 --enable-colorfgbg compile with $COLORFGBG code
777 --enable-ext-colors compile for experimental 256-color support
778 --enable-ext-mouse compile for experimental mouse-encoding
779 --enable-reentrant compile with experimental reentrant code
780 --enable-safe-sprintf compile with experimental safe-sprintf code
781 --disable-scroll-hints compile without scroll-hints code
782 --enable-wgetch-events compile with experimental wgetch-events code
783 Testing/development Options:
784 --enable-echo build: display "compiling" commands (default)
785 --enable-warnings build: turn on GCC compiler warnings
786 --enable-assertions test: turn on generation of assertion code
787 --with-dmalloc test: use Gray Watson's dmalloc library
788 --with-dbmalloc test: use Conor Cahill's dbmalloc library
789 --with-valgrind test: use valgrind
790 --disable-leaks test: free permanent memory, analyze leaks
791 --enable-expanded test: generate functions for certain macros
792 --disable-macros test: use functions rather than macros
793 --with-trace test: add trace() function to all models of ncurses
794 Ada95 Binding Options:
795 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
796 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
797 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
799 Some influential environment variables:
800 CC C compiler command
801 CFLAGS C compiler flags
802 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
803 nonstandard directory <lib dir>
804 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
805 headers in a nonstandard directory <include dir>
807 CXX C++ compiler command
808 CXXFLAGS C++ compiler flags
809 CXXCPP C++ preprocessor
811 Use these variables to override the choices made by `configure' or to help
812 it to find libraries and programs with nonstandard names/locations.
817 if test "$ac_init_help" = "recursive"; then
818 # If there are subdirs, report their specific --help.
820 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
822 # A "../" for each directory in /$ac_subdir.
823 ac_dots=`echo $ac_subdir |
824 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
827 .) # No --srcdir option. We are building in place.
828 ac_sub_srcdir=$srcdir ;;
829 [\\/]* | ?:[\\/]* ) # Absolute path.
830 ac_sub_srcdir=$srcdir/$ac_subdir ;;
832 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
835 # Check for guested configure; otherwise get Cygnus style configure.
836 if test -f $ac_sub_srcdir/configure.gnu; then
838 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
839 elif test -f $ac_sub_srcdir/configure; then
841 $SHELL $ac_sub_srcdir/configure --help=recursive
842 elif test -f $ac_sub_srcdir/configure.ac ||
843 test -f $ac_sub_srcdir/configure.in; then
847 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
853 test -n "$ac_init_help" && exit 0
854 if $ac_init_version; then
857 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
858 Free Software Foundation, Inc.
859 This configure script is free software; the Free Software Foundation
860 gives unlimited permission to copy, distribute and modify it.
866 This file contains any messages produced by compilers while
867 running configure, to aid debugging if configure makes a mistake.
869 It was created by $as_me, which was
870 generated by GNU Autoconf 2.52.20061216. Invocation command line was
881 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
882 uname -m = `(uname -m) 2>/dev/null || echo unknown`
883 uname -r = `(uname -r) 2>/dev/null || echo unknown`
884 uname -s = `(uname -s) 2>/dev/null || echo unknown`
885 uname -v = `(uname -v) 2>/dev/null || echo unknown`
887 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
888 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
890 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
891 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
892 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
893 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
894 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
895 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
896 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
910 # Keep a trace of the command line.
911 # Strip out --no-create and --no-recursion so they do not pile up.
912 # Also quote any args containing shell meta-characters.
918 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
919 | --no-cr | --no-c) ;;
920 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
921 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
922 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
923 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
924 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
926 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
929 # Get rid of the leading space.
932 # When interrupted or exit'd, cleanup temporary files, and complete
933 # config.log. We remove comments because anyway the quotes in there
934 # would cause problems or look ugly.
936 # Save into config.log some information that might help in debugging.
938 echo "## ----------------- ##" >&5
939 echo "## Cache variables. ##" >&5
940 echo "## ----------------- ##" >&5
942 # The following way of writing the cache mishandles newlines in values,
945 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
948 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
949 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
953 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
957 sed "/^$/d" confdefs.h >conftest.log
958 if test -s conftest.log; then
960 echo "## ------------ ##" >&5
961 echo "## confdefs.h. ##" >&5
962 echo "## ------------ ##" >&5
967 test "$ac_signal" != 0 &&
968 echo "$as_me: caught signal $ac_signal" >&5
969 echo "$as_me: exit $exit_status" >&5
970 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
973 for ac_signal in 1 2 13 15; do
974 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
978 # confdefs.h avoids OS command line length limits that DEFS can exceed.
979 rm -rf conftest* confdefs.h
980 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
983 # Let the site file select an alternate cache file if it wants to.
984 # Prefer explicitly selected file to automatically selected ones.
985 if test -z "$CONFIG_SITE"; then
986 if test "x$prefix" != xNONE; then
987 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
989 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
992 for ac_site_file in $CONFIG_SITE; do
993 if test -r "$ac_site_file"; then
994 { echo "$as_me:994: loading site script $ac_site_file" >&5
995 echo "$as_me: loading site script $ac_site_file" >&6;}
996 cat "$ac_site_file" >&5
1001 if test -r "$cache_file"; then
1002 # Some versions of bash will fail to source /dev/null (special
1003 # files actually), so we avoid doing that.
1004 if test -f "$cache_file"; then
1005 { echo "$as_me:1005: loading cache $cache_file" >&5
1006 echo "$as_me: loading cache $cache_file" >&6;}
1008 [\\/]* | ?:[\\/]* ) . $cache_file;;
1009 *) . ./$cache_file;;
1013 { echo "$as_me:1013: creating cache $cache_file" >&5
1014 echo "$as_me: creating cache $cache_file" >&6;}
1018 # Check that the precious variables saved in the cache have kept the same
1020 ac_cache_corrupted=false
1021 for ac_var in `(set) 2>&1 |
1022 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1023 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1024 eval ac_new_set=\$ac_env_${ac_var}_set
1025 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1026 eval ac_new_val="\$ac_env_${ac_var}_value"
1027 case $ac_old_set,$ac_new_set in
1029 { echo "$as_me:1029: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1030 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1031 ac_cache_corrupted=: ;;
1033 { echo "$as_me:1033: error: \`$ac_var' was not set in the previous run" >&5
1034 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1035 ac_cache_corrupted=: ;;
1038 if test "x$ac_old_val" != "x$ac_new_val"; then
1039 { echo "$as_me:1039: error: \`$ac_var' has changed since the previous run:" >&5
1040 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1041 { echo "$as_me:1041: former value: $ac_old_val" >&5
1042 echo "$as_me: former value: $ac_old_val" >&2;}
1043 { echo "$as_me:1043: current value: $ac_new_val" >&5
1044 echo "$as_me: current value: $ac_new_val" >&2;}
1045 ac_cache_corrupted=:
1048 # Pass precious variables to config.status. It doesn't matter if
1049 # we pass some twice (in addition to the command line arguments).
1050 if test "$ac_new_set" = set; then
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1054 ac_configure_args="$ac_configure_args '$ac_arg'"
1056 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1061 if $ac_cache_corrupted; then
1062 { echo "$as_me:1062: error: changes in the environment can compromise the build" >&5
1063 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1064 { { echo "$as_me:1064: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1065 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1066 { (exit 1); exit 1; }; }
1070 ac_cpp='$CPP $CPPFLAGS'
1071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1074 ac_main_return=return
1076 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1077 *c*,-n*) ECHO_N= ECHO_C='
1079 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1080 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1082 echo "#! $SHELL" >conftest.sh
1083 echo "exit 0" >>conftest.sh
1084 chmod +x conftest.sh
1085 if { (echo "$as_me:1085: PATH=\".;.\"; conftest.sh") >&5
1086 (PATH=".;."; conftest.sh) 2>&5
1088 echo "$as_me:1088: \$? = $ac_status" >&5
1089 (exit $ac_status); }; then
1090 ac_path_separator=';'
1094 PATH_SEPARATOR="$ac_path_separator"
1097 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1101 echo "$as_me:1101: checking for egrep" >&5
1102 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1103 if test "${ac_cv_prog_egrep+set}" = set; then
1104 echo $ECHO_N "(cached) $ECHO_C" >&6
1106 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1107 then ac_cv_prog_egrep='grep -E'
1108 else ac_cv_prog_egrep='egrep'
1111 echo "$as_me:1111: result: $ac_cv_prog_egrep" >&5
1112 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1113 EGREP=$ac_cv_prog_egrep
1115 test -z "$EGREP" && { { echo "$as_me:1115: error: No egrep program found" >&5
1116 echo "$as_me: error: No egrep program found" >&2;}
1117 { (exit 1); exit 1; }; }
1119 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1120 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1121 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1122 cf_cv_abi_version=${NCURSES_MAJOR}
1123 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1124 cf_cv_timestamp=`date`
1125 echo "$as_me:1125: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1126 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1128 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1130 # Check whether --with-rel-version or --without-rel-version was given.
1131 if test "${with_rel_version+set}" = set; then
1132 withval="$with_rel_version"
1133 { echo "$as_me:1133: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1134 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1135 cf_cv_rel_version=$withval
1138 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1139 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1141 if test -n "$NCURSES_MAJOR" ; then
1142 case $NCURSES_MAJOR in #(vi
1146 { { echo "$as_me:1146: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1147 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1148 { (exit 1); exit 1; }; }
1152 { { echo "$as_me:1152: error: Release major-version value is empty" >&5
1153 echo "$as_me: error: Release major-version value is empty" >&2;}
1154 { (exit 1); exit 1; }; }
1157 if test -n "$NCURSES_MINOR" ; then
1158 case $NCURSES_MINOR in #(vi
1162 { { echo "$as_me:1162: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1163 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1164 { (exit 1); exit 1; }; }
1168 { { echo "$as_me:1168: error: Release minor-version value is empty" >&5
1169 echo "$as_me: error: Release minor-version value is empty" >&2;}
1170 { (exit 1); exit 1; }; }
1173 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1175 # Check whether --with-abi-version or --without-abi-version was given.
1176 if test "${with_abi_version+set}" = set; then
1177 withval="$with_abi_version"
1178 { echo "$as_me:1178: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1179 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1180 cf_cv_abi_version=$withval
1183 if test -n "$cf_cv_abi_version" ; then
1184 case $cf_cv_abi_version in #(vi
1188 { { echo "$as_me:1188: error: ABI version is not a number: $cf_cv_abi_version" >&5
1189 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1190 { (exit 1); exit 1; }; }
1194 { { echo "$as_me:1194: error: ABI version value is empty" >&5
1195 echo "$as_me: error: ABI version value is empty" >&2;}
1196 { (exit 1); exit 1; }; }
1200 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1201 if test -f $ac_dir/install-sh; then
1203 ac_install_sh="$ac_aux_dir/install-sh -c"
1205 elif test -f $ac_dir/install.sh; then
1207 ac_install_sh="$ac_aux_dir/install.sh -c"
1209 elif test -f $ac_dir/shtool; then
1211 ac_install_sh="$ac_aux_dir/shtool install -c"
1215 if test -z "$ac_aux_dir"; then
1216 { { echo "$as_me:1216: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1217 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1218 { (exit 1); exit 1; }; }
1220 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1221 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1222 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1224 # Make sure we can run config.sub.
1225 $ac_config_sub sun4 >/dev/null 2>&1 ||
1226 { { echo "$as_me:1226: error: cannot run $ac_config_sub" >&5
1227 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1228 { (exit 1); exit 1; }; }
1230 echo "$as_me:1230: checking build system type" >&5
1231 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1232 if test "${ac_cv_build+set}" = set; then
1233 echo $ECHO_N "(cached) $ECHO_C" >&6
1235 ac_cv_build_alias=$build_alias
1236 test -z "$ac_cv_build_alias" &&
1237 ac_cv_build_alias=`$ac_config_guess`
1238 test -z "$ac_cv_build_alias" &&
1239 { { echo "$as_me:1239: error: cannot guess build type; you must specify one" >&5
1240 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1241 { (exit 1); exit 1; }; }
1242 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1243 { { echo "$as_me:1243: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1244 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1245 { (exit 1); exit 1; }; }
1248 echo "$as_me:1248: result: $ac_cv_build" >&5
1249 echo "${ECHO_T}$ac_cv_build" >&6
1251 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1252 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1253 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1255 echo "$as_me:1255: checking host system type" >&5
1256 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1257 if test "${ac_cv_host+set}" = set; then
1258 echo $ECHO_N "(cached) $ECHO_C" >&6
1260 ac_cv_host_alias=$host_alias
1261 test -z "$ac_cv_host_alias" &&
1262 ac_cv_host_alias=$ac_cv_build_alias
1263 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1264 { { echo "$as_me:1264: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1265 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1266 { (exit 1); exit 1; }; }
1269 echo "$as_me:1269: result: $ac_cv_host" >&5
1270 echo "${ECHO_T}$ac_cv_host" >&6
1272 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1273 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1274 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1276 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1277 echo "$as_me:1277: checking target system type" >&5
1278 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1279 if test "${ac_cv_target+set}" = set; then
1280 echo $ECHO_N "(cached) $ECHO_C" >&6
1282 ac_cv_target_alias=$target_alias
1283 test "x$ac_cv_target_alias" = "x" &&
1284 ac_cv_target_alias=$ac_cv_host_alias
1285 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1286 { { echo "$as_me:1286: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1287 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1288 { (exit 1); exit 1; }; }
1291 echo "$as_me:1291: result: $ac_cv_target" >&5
1292 echo "${ECHO_T}$ac_cv_target" >&6
1293 target=$ac_cv_target
1294 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1295 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1296 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1298 # The aliases save the names the user supplied, while $host etc.
1299 # will get canonicalized.
1300 test -n "$target_alias" &&
1301 test "$program_prefix$program_suffix$program_transform_name" = \
1303 program_prefix=${target_alias}-
1304 system_name="$host_os"
1306 system_name="`(uname -s -r) 2>/dev/null`"
1307 if test -z "$system_name" ; then
1308 system_name="`(hostname) 2>/dev/null`"
1311 test -n "$system_name" && cat >>confdefs.h <<EOF
1312 #define SYSTEM_NAME "$system_name"
1315 if test "${cf_cv_system_name+set}" = set; then
1316 echo $ECHO_N "(cached) $ECHO_C" >&6
1318 cf_cv_system_name="$system_name"
1321 test -z "$system_name" && system_name="$cf_cv_system_name"
1322 test -n "$cf_cv_system_name" && echo "$as_me:1322: result: Configuring for $cf_cv_system_name" >&5
1323 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1325 if test ".$system_name" != ".$cf_cv_system_name" ; then
1326 echo "$as_me:1326: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1327 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1328 { { echo "$as_me:1328: error: \"Please remove config.cache and try again.\"" >&5
1329 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1330 { (exit 1); exit 1; }; }
1333 # Check whether --with-system-type or --without-system-type was given.
1334 if test "${with_system_type+set}" = set; then
1335 withval="$with_system_type"
1336 { echo "$as_me:1336: WARNING: overriding system type to $withval" >&5
1337 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1338 cf_cv_system_name=$withval
1341 ### Save the given $CFLAGS to allow user-override.
1342 cf_user_CFLAGS="$CFLAGS"
1344 ### Default install-location
1346 echo "$as_me:1346: checking for prefix" >&5
1347 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1348 if test "x$prefix" = "xNONE" ; then
1349 case "$cf_cv_system_name" in
1350 # non-vendor systems don't have a conflict
1351 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1354 *) prefix=$ac_default_prefix
1358 echo "$as_me:1358: result: $prefix" >&5
1359 echo "${ECHO_T}$prefix" >&6
1361 if test "x$prefix" = "xNONE" ; then
1362 echo "$as_me:1362: checking for default include-directory" >&5
1363 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1364 test -n "$verbose" && echo 1>&6
1367 $includedir/ncurses \
1369 $prefix/include/ncurses \
1370 /usr/local/include \
1371 /usr/local/include/ncurses \
1373 /usr/include/ncurses
1375 cf_dir=`eval echo $cf_symbol`
1376 if test -f $cf_dir/curses.h ; then
1377 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1378 includedir="$cf_symbol"
1379 test -n "$verbose" && echo $ac_n " found " 1>&6
1383 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1385 echo "$as_me:1385: result: $includedir" >&5
1386 echo "${ECHO_T}$includedir" >&6
1389 ### Checks for programs.
1391 ac_cpp='$CPP $CPPFLAGS'
1392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1395 ac_main_return=return
1396 if test -n "$ac_tool_prefix"; then
1397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1399 echo "$as_me:1399: checking for $ac_word" >&5
1400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1401 if test "${ac_cv_prog_CC+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 if test -n "$CC"; then
1405 ac_cv_prog_CC="$CC" # Let the user override the test.
1407 ac_save_IFS=$IFS; IFS=$ac_path_separator
1409 for ac_dir in $ac_dummy; do
1411 test -z "$ac_dir" && ac_dir=.
1412 $as_executable_p "$ac_dir/$ac_word" || continue
1413 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1414 echo "$as_me:1414: found $ac_dir/$ac_word" >&5
1421 if test -n "$CC"; then
1422 echo "$as_me:1422: result: $CC" >&5
1423 echo "${ECHO_T}$CC" >&6
1425 echo "$as_me:1425: result: no" >&5
1426 echo "${ECHO_T}no" >&6
1430 if test -z "$ac_cv_prog_CC"; then
1432 # Extract the first word of "gcc", so it can be a program name with args.
1433 set dummy gcc; ac_word=$2
1434 echo "$as_me:1434: checking for $ac_word" >&5
1435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 if test -n "$ac_ct_CC"; then
1440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1442 ac_save_IFS=$IFS; IFS=$ac_path_separator
1444 for ac_dir in $ac_dummy; do
1446 test -z "$ac_dir" && ac_dir=.
1447 $as_executable_p "$ac_dir/$ac_word" || continue
1448 ac_cv_prog_ac_ct_CC="gcc"
1449 echo "$as_me:1449: found $ac_dir/$ac_word" >&5
1455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1456 if test -n "$ac_ct_CC"; then
1457 echo "$as_me:1457: result: $ac_ct_CC" >&5
1458 echo "${ECHO_T}$ac_ct_CC" >&6
1460 echo "$as_me:1460: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1469 if test -z "$CC"; then
1470 if test -n "$ac_tool_prefix"; then
1471 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1472 set dummy ${ac_tool_prefix}cc; ac_word=$2
1473 echo "$as_me:1473: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1481 ac_save_IFS=$IFS; IFS=$ac_path_separator
1483 for ac_dir in $ac_dummy; do
1485 test -z "$ac_dir" && ac_dir=.
1486 $as_executable_p "$ac_dir/$ac_word" || continue
1487 ac_cv_prog_CC="${ac_tool_prefix}cc"
1488 echo "$as_me:1488: found $ac_dir/$ac_word" >&5
1495 if test -n "$CC"; then
1496 echo "$as_me:1496: result: $CC" >&5
1497 echo "${ECHO_T}$CC" >&6
1499 echo "$as_me:1499: result: no" >&5
1500 echo "${ECHO_T}no" >&6
1504 if test -z "$ac_cv_prog_CC"; then
1506 # Extract the first word of "cc", so it can be a program name with args.
1507 set dummy cc; ac_word=$2
1508 echo "$as_me:1508: checking for $ac_word" >&5
1509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 if test -n "$ac_ct_CC"; then
1514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1516 ac_save_IFS=$IFS; IFS=$ac_path_separator
1518 for ac_dir in $ac_dummy; do
1520 test -z "$ac_dir" && ac_dir=.
1521 $as_executable_p "$ac_dir/$ac_word" || continue
1522 ac_cv_prog_ac_ct_CC="cc"
1523 echo "$as_me:1523: found $ac_dir/$ac_word" >&5
1529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1530 if test -n "$ac_ct_CC"; then
1531 echo "$as_me:1531: result: $ac_ct_CC" >&5
1532 echo "${ECHO_T}$ac_ct_CC" >&6
1534 echo "$as_me:1534: result: no" >&5
1535 echo "${ECHO_T}no" >&6
1544 if test -z "$CC"; then
1545 # Extract the first word of "cc", so it can be a program name with args.
1546 set dummy cc; ac_word=$2
1547 echo "$as_me:1547: checking for $ac_word" >&5
1548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549 if test "${ac_cv_prog_CC+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 if test -n "$CC"; then
1553 ac_cv_prog_CC="$CC" # Let the user override the test.
1556 ac_save_IFS=$IFS; IFS=$ac_path_separator
1558 for ac_dir in $ac_dummy; do
1560 test -z "$ac_dir" && ac_dir=.
1561 $as_executable_p "$ac_dir/$ac_word" || continue
1562 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1563 ac_prog_rejected=yes
1567 echo "$as_me:1567: found $ac_dir/$ac_word" >&5
1571 if test $ac_prog_rejected = yes; then
1572 # We found a bogon in the path, so make sure we never use it.
1573 set dummy $ac_cv_prog_CC
1575 if test $# != 0; then
1576 # We chose a different compiler from the bogus one.
1577 # However, it has the same basename, so the bogon will be chosen
1578 # first if we set CC to just the basename; use the full file name.
1580 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1588 if test -n "$CC"; then
1589 echo "$as_me:1589: result: $CC" >&5
1590 echo "${ECHO_T}$CC" >&6
1592 echo "$as_me:1592: result: no" >&5
1593 echo "${ECHO_T}no" >&6
1597 if test -z "$CC"; then
1598 if test -n "$ac_tool_prefix"; then
1601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1603 echo "$as_me:1603: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1611 ac_save_IFS=$IFS; IFS=$ac_path_separator
1613 for ac_dir in $ac_dummy; do
1615 test -z "$ac_dir" && ac_dir=.
1616 $as_executable_p "$ac_dir/$ac_word" || continue
1617 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1618 echo "$as_me:1618: found $ac_dir/$ac_word" >&5
1625 if test -n "$CC"; then
1626 echo "$as_me:1626: result: $CC" >&5
1627 echo "${ECHO_T}$CC" >&6
1629 echo "$as_me:1629: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1633 test -n "$CC" && break
1636 if test -z "$CC"; then
1640 # Extract the first word of "$ac_prog", so it can be a program name with args.
1641 set dummy $ac_prog; ac_word=$2
1642 echo "$as_me:1642: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 if test -n "$ac_ct_CC"; then
1648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1650 ac_save_IFS=$IFS; IFS=$ac_path_separator
1652 for ac_dir in $ac_dummy; do
1654 test -z "$ac_dir" && ac_dir=.
1655 $as_executable_p "$ac_dir/$ac_word" || continue
1656 ac_cv_prog_ac_ct_CC="$ac_prog"
1657 echo "$as_me:1657: found $ac_dir/$ac_word" >&5
1663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664 if test -n "$ac_ct_CC"; then
1665 echo "$as_me:1665: result: $ac_ct_CC" >&5
1666 echo "${ECHO_T}$ac_ct_CC" >&6
1668 echo "$as_me:1668: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1672 test -n "$ac_ct_CC" && break
1680 test -z "$CC" && { { echo "$as_me:1680: error: no acceptable cc found in \$PATH" >&5
1681 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1682 { (exit 1); exit 1; }; }
1684 # Provide some information about the compiler.
1685 echo "$as_me:1685:" \
1686 "checking for C compiler version" >&5
1687 ac_compiler=`set X $ac_compile; echo $2`
1688 { (eval echo "$as_me:1688: \"$ac_compiler --version </dev/null >&5\"") >&5
1689 (eval $ac_compiler --version </dev/null >&5) 2>&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1693 { (eval echo "$as_me:1693: \"$ac_compiler -v </dev/null >&5\"") >&5
1694 (eval $ac_compiler -v </dev/null >&5) 2>&5
1696 echo "$as_me:1696: \$? = $ac_status" >&5
1697 (exit $ac_status); }
1698 { (eval echo "$as_me:1698: \"$ac_compiler -V </dev/null >&5\"") >&5
1699 (eval $ac_compiler -V </dev/null >&5) 2>&5
1701 echo "$as_me:1701: \$? = $ac_status" >&5
1702 (exit $ac_status); }
1704 cat >conftest.$ac_ext <<_ACEOF
1705 #line 1705 "configure"
1706 #include "confdefs.h"
1716 ac_clean_files_save=$ac_clean_files
1717 ac_clean_files="$ac_clean_files a.out a.exe"
1718 # Try to create an executable without -o first, disregard a.out.
1719 # It will help us diagnose broken compilers, and finding out an intuition
1721 echo "$as_me:1721: checking for C compiler default output" >&5
1722 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1723 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1724 if { (eval echo "$as_me:1724: \"$ac_link_default\"") >&5
1725 (eval $ac_link_default) 2>&5
1727 echo "$as_me:1727: \$? = $ac_status" >&5
1728 (exit $ac_status); }; then
1729 # Find the output, starting from the most likely. This scheme is
1730 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1732 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1733 ls a.out conftest 2>/dev/null;
1734 ls a.* conftest.* 2>/dev/null`; do
1736 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1737 a.out ) # We found the default executable, but exeext='' is most
1740 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1741 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1748 echo "$as_me: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1750 { { echo "$as_me:1750: error: C compiler cannot create executables" >&5
1751 echo "$as_me: error: C compiler cannot create executables" >&2;}
1752 { (exit 77); exit 77; }; }
1755 ac_exeext=$ac_cv_exeext
1756 echo "$as_me:1756: result: $ac_file" >&5
1757 echo "${ECHO_T}$ac_file" >&6
1759 # Check the compiler produces executables we can run. If not, either
1760 # the compiler is broken, or we cross compile.
1761 echo "$as_me:1761: checking whether the C compiler works" >&5
1762 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1763 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1764 # If not cross compiling, check that we can run a simple program.
1765 if test "$cross_compiling" != yes; then
1766 if { ac_try='./$ac_file'
1767 { (eval echo "$as_me:1767: \"$ac_try\"") >&5
1770 echo "$as_me:1770: \$? = $ac_status" >&5
1771 (exit $ac_status); }; }; then
1774 if test "$cross_compiling" = maybe; then
1777 { { echo "$as_me:1777: error: cannot run C compiled programs.
1778 If you meant to cross compile, use \`--host'." >&5
1779 echo "$as_me: error: cannot run C compiled programs.
1780 If you meant to cross compile, use \`--host'." >&2;}
1781 { (exit 1); exit 1; }; }
1785 echo "$as_me:1785: result: yes" >&5
1786 echo "${ECHO_T}yes" >&6
1788 rm -f a.out a.exe conftest$ac_cv_exeext
1789 ac_clean_files=$ac_clean_files_save
1790 # Check the compiler produces executables we can run. If not, either
1791 # the compiler is broken, or we cross compile.
1792 echo "$as_me:1792: checking whether we are cross compiling" >&5
1793 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1794 echo "$as_me:1794: result: $cross_compiling" >&5
1795 echo "${ECHO_T}$cross_compiling" >&6
1797 echo "$as_me:1797: checking for executable suffix" >&5
1798 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1799 if { (eval echo "$as_me:1799: \"$ac_link\"") >&5
1800 (eval $ac_link) 2>&5
1802 echo "$as_me:1802: \$? = $ac_status" >&5
1803 (exit $ac_status); }; then
1804 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1805 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1806 # work properly (i.e., refer to `conftest.exe'), while it won't with
1808 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1810 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1811 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818 { { echo "$as_me:1818: error: cannot compute EXEEXT: cannot compile and link" >&5
1819 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1820 { (exit 1); exit 1; }; }
1823 rm -f conftest$ac_cv_exeext
1824 echo "$as_me:1824: result: $ac_cv_exeext" >&5
1825 echo "${ECHO_T}$ac_cv_exeext" >&6
1827 rm -f conftest.$ac_ext
1828 EXEEXT=$ac_cv_exeext
1830 echo "$as_me:1830: checking for object suffix" >&5
1831 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1832 if test "${ac_cv_objext+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 cat >conftest.$ac_ext <<_ACEOF
1836 #line 1836 "configure"
1837 #include "confdefs.h"
1847 rm -f conftest.o conftest.obj
1848 if { (eval echo "$as_me:1848: \"$ac_compile\"") >&5
1849 (eval $ac_compile) 2>&5
1851 echo "$as_me:1851: \$? = $ac_status" >&5
1852 (exit $ac_status); }; then
1853 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1856 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1861 echo "$as_me: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1863 { { echo "$as_me:1863: error: cannot compute OBJEXT: cannot compile" >&5
1864 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1865 { (exit 1); exit 1; }; }
1868 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1870 echo "$as_me:1870: result: $ac_cv_objext" >&5
1871 echo "${ECHO_T}$ac_cv_objext" >&6
1872 OBJEXT=$ac_cv_objext
1874 echo "$as_me:1874: checking whether we are using the GNU C compiler" >&5
1875 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1876 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 cat >conftest.$ac_ext <<_ACEOF
1880 #line 1880 "configure"
1881 #include "confdefs.h"
1894 rm -f conftest.$ac_objext
1895 if { (eval echo "$as_me:1895: \"$ac_compile\"") >&5
1896 (eval $ac_compile) 2>&5
1898 echo "$as_me:1898: \$? = $ac_status" >&5
1899 (exit $ac_status); } &&
1900 { ac_try='test -s conftest.$ac_objext'
1901 { (eval echo "$as_me:1901: \"$ac_try\"") >&5
1904 echo "$as_me:1904: \$? = $ac_status" >&5
1905 (exit $ac_status); }; }; then
1908 echo "$as_me: failed program was:" >&5
1909 cat conftest.$ac_ext >&5
1912 rm -f conftest.$ac_objext conftest.$ac_ext
1913 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1916 echo "$as_me:1916: result: $ac_cv_c_compiler_gnu" >&5
1917 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1918 GCC=`test $ac_compiler_gnu = yes && echo yes`
1919 ac_test_CFLAGS=${CFLAGS+set}
1920 ac_save_CFLAGS=$CFLAGS
1922 echo "$as_me:1922: checking whether $CC accepts -g" >&5
1923 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1924 if test "${ac_cv_prog_cc_g+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 cat >conftest.$ac_ext <<_ACEOF
1928 #line 1928 "configure"
1929 #include "confdefs.h"
1939 rm -f conftest.$ac_objext
1940 if { (eval echo "$as_me:1940: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>&5
1943 echo "$as_me:1943: \$? = $ac_status" >&5
1944 (exit $ac_status); } &&
1945 { ac_try='test -s conftest.$ac_objext'
1946 { (eval echo "$as_me:1946: \"$ac_try\"") >&5
1949 echo "$as_me:1949: \$? = $ac_status" >&5
1950 (exit $ac_status); }; }; then
1953 echo "$as_me: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1957 rm -f conftest.$ac_objext conftest.$ac_ext
1959 echo "$as_me:1959: result: $ac_cv_prog_cc_g" >&5
1960 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1961 if test "$ac_test_CFLAGS" = set; then
1962 CFLAGS=$ac_save_CFLAGS
1963 elif test $ac_cv_prog_cc_g = yes; then
1964 if test "$GCC" = yes; then
1970 if test "$GCC" = yes; then
1976 # Some people use a C++ compiler to compile C. Since we use `exit',
1977 # in C++ we need to declare it. In case someone uses the same compiler
1978 # for both compiling C and C++ we need to have the C++ compiler decide
1979 # the declaration of exit, since it's the most demanding environment.
1980 cat >conftest.$ac_ext <<_ACEOF
1985 rm -f conftest.$ac_objext
1986 if { (eval echo "$as_me:1986: \"$ac_compile\"") >&5
1987 (eval $ac_compile) 2>&5
1989 echo "$as_me:1989: \$? = $ac_status" >&5
1990 (exit $ac_status); } &&
1991 { ac_try='test -s conftest.$ac_objext'
1992 { (eval echo "$as_me:1992: \"$ac_try\"") >&5
1995 echo "$as_me:1995: \$? = $ac_status" >&5
1996 (exit $ac_status); }; }; then
1997 for ac_declaration in \
1999 '#include <stdlib.h>' \
2000 'extern "C" void std::exit (int) throw (); using std::exit;' \
2001 'extern "C" void std::exit (int); using std::exit;' \
2002 'extern "C" void exit (int) throw ();' \
2003 'extern "C" void exit (int);' \
2006 cat >conftest.$ac_ext <<_ACEOF
2007 #line 2007 "configure"
2008 #include "confdefs.h"
2019 rm -f conftest.$ac_objext
2020 if { (eval echo "$as_me:2020: \"$ac_compile\"") >&5
2021 (eval $ac_compile) 2>&5
2023 echo "$as_me:2023: \$? = $ac_status" >&5
2024 (exit $ac_status); } &&
2025 { ac_try='test -s conftest.$ac_objext'
2026 { (eval echo "$as_me:2026: \"$ac_try\"") >&5
2029 echo "$as_me:2029: \$? = $ac_status" >&5
2030 (exit $ac_status); }; }; then
2033 echo "$as_me: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2037 rm -f conftest.$ac_objext conftest.$ac_ext
2038 cat >conftest.$ac_ext <<_ACEOF
2039 #line 2039 "configure"
2040 #include "confdefs.h"
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:2051: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>&5
2054 echo "$as_me:2054: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try='test -s conftest.$ac_objext'
2057 { (eval echo "$as_me:2057: \"$ac_try\"") >&5
2060 echo "$as_me:2060: \$? = $ac_status" >&5
2061 (exit $ac_status); }; }; then
2064 echo "$as_me: failed program was:" >&5
2065 cat conftest.$ac_ext >&5
2067 rm -f conftest.$ac_objext conftest.$ac_ext
2070 if test -n "$ac_declaration"; then
2071 echo '#ifdef __cplusplus' >>confdefs.h
2072 echo $ac_declaration >>confdefs.h
2073 echo '#endif' >>confdefs.h
2077 echo "$as_me: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2080 rm -f conftest.$ac_objext conftest.$ac_ext
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086 ac_main_return=return
2089 if test "$GCC" = yes ; then
2090 echo "$as_me:2090: checking version of $CC" >&5
2091 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2092 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2093 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2094 echo "$as_me:2094: result: $GCC_VERSION" >&5
2095 echo "${ECHO_T}$GCC_VERSION" >&6
2099 ac_cpp='$CPP $CPPFLAGS'
2100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2103 ac_main_return=return
2104 echo "$as_me:2104: checking how to run the C preprocessor" >&5
2105 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2106 # On Suns, sometimes $CPP names a directory.
2107 if test -n "$CPP" && test -d "$CPP"; then
2110 if test -z "$CPP"; then
2111 if test "${ac_cv_prog_CPP+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 # Double quotes because CPP needs to be expanded
2115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2118 for ac_c_preproc_warn_flag in '' yes
2120 # Use a header file that comes with gcc, so configuring glibc
2121 # with a fresh cross-compiler works.
2122 # On the NeXT, cc -E runs the code through the compiler's parser,
2123 # not just through cpp. "Syntax error" is here to catch this case.
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line 2125 "configure"
2126 #include "confdefs.h"
2130 if { (eval echo "$as_me:2130: \"$ac_cpp conftest.$ac_ext\"") >&5
2131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2133 egrep -v '^ *\+' conftest.er1 >conftest.err
2135 cat conftest.err >&5
2136 echo "$as_me:2136: \$? = $ac_status" >&5
2137 (exit $ac_status); } >/dev/null; then
2138 if test -s conftest.err; then
2139 ac_cpp_err=$ac_c_preproc_warn_flag
2146 if test -z "$ac_cpp_err"; then
2149 echo "$as_me: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2151 # Broken: fails on valid input.
2154 rm -f conftest.err conftest.$ac_ext
2156 # OK, works on sane cases. Now check whether non-existent headers
2157 # can be detected and how.
2158 cat >conftest.$ac_ext <<_ACEOF
2159 #line 2159 "configure"
2160 #include "confdefs.h"
2161 #include <ac_nonexistent.h>
2163 if { (eval echo "$as_me:2163: \"$ac_cpp conftest.$ac_ext\"") >&5
2164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2166 egrep -v '^ *\+' conftest.er1 >conftest.err
2168 cat conftest.err >&5
2169 echo "$as_me:2169: \$? = $ac_status" >&5
2170 (exit $ac_status); } >/dev/null; then
2171 if test -s conftest.err; then
2172 ac_cpp_err=$ac_c_preproc_warn_flag
2179 if test -z "$ac_cpp_err"; then
2180 # Broken: success on invalid input.
2183 echo "$as_me: failed program was:" >&5
2184 cat conftest.$ac_ext >&5
2185 # Passes both tests.
2189 rm -f conftest.err conftest.$ac_ext
2192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2193 rm -f conftest.err conftest.$ac_ext
2194 if $ac_preproc_ok; then
2206 echo "$as_me:2206: result: $CPP" >&5
2207 echo "${ECHO_T}$CPP" >&6
2209 for ac_c_preproc_warn_flag in '' yes
2211 # Use a header file that comes with gcc, so configuring glibc
2212 # with a fresh cross-compiler works.
2213 # On the NeXT, cc -E runs the code through the compiler's parser,
2214 # not just through cpp. "Syntax error" is here to catch this case.
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #line 2216 "configure"
2217 #include "confdefs.h"
2221 if { (eval echo "$as_me:2221: \"$ac_cpp conftest.$ac_ext\"") >&5
2222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2224 egrep -v '^ *\+' conftest.er1 >conftest.err
2226 cat conftest.err >&5
2227 echo "$as_me:2227: \$? = $ac_status" >&5
2228 (exit $ac_status); } >/dev/null; then
2229 if test -s conftest.err; then
2230 ac_cpp_err=$ac_c_preproc_warn_flag
2237 if test -z "$ac_cpp_err"; then
2240 echo "$as_me: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2242 # Broken: fails on valid input.
2245 rm -f conftest.err conftest.$ac_ext
2247 # OK, works on sane cases. Now check whether non-existent headers
2248 # can be detected and how.
2249 cat >conftest.$ac_ext <<_ACEOF
2250 #line 2250 "configure"
2251 #include "confdefs.h"
2252 #include <ac_nonexistent.h>
2254 if { (eval echo "$as_me:2254: \"$ac_cpp conftest.$ac_ext\"") >&5
2255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2257 egrep -v '^ *\+' conftest.er1 >conftest.err
2259 cat conftest.err >&5
2260 echo "$as_me:2260: \$? = $ac_status" >&5
2261 (exit $ac_status); } >/dev/null; then
2262 if test -s conftest.err; then
2263 ac_cpp_err=$ac_c_preproc_warn_flag
2270 if test -z "$ac_cpp_err"; then
2271 # Broken: success on invalid input.
2274 echo "$as_me: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2276 # Passes both tests.
2280 rm -f conftest.err conftest.$ac_ext
2283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2284 rm -f conftest.err conftest.$ac_ext
2285 if $ac_preproc_ok; then
2288 { { echo "$as_me:2288: error: C preprocessor \"$CPP\" fails sanity check" >&5
2289 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2290 { (exit 1); exit 1; }; }
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298 ac_main_return=return
2300 if test $ac_cv_c_compiler_gnu = yes; then
2301 echo "$as_me:2301: checking whether $CC needs -traditional" >&5
2302 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2303 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 ac_pattern="Autoconf.*'x'"
2307 cat >conftest.$ac_ext <<_ACEOF
2308 #line 2308 "configure"
2309 #include "confdefs.h"
2311 int Autoconf = TIOCGETP;
2313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2314 egrep "$ac_pattern" >/dev/null 2>&1; then
2315 ac_cv_prog_gcc_traditional=yes
2317 ac_cv_prog_gcc_traditional=no
2321 if test $ac_cv_prog_gcc_traditional = no; then
2322 cat >conftest.$ac_ext <<_ACEOF
2323 #line 2323 "configure"
2324 #include "confdefs.h"
2326 int Autoconf = TCGETA;
2328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2329 egrep "$ac_pattern" >/dev/null 2>&1; then
2330 ac_cv_prog_gcc_traditional=yes
2336 echo "$as_me:2336: result: $ac_cv_prog_gcc_traditional" >&5
2337 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2338 if test $ac_cv_prog_gcc_traditional = yes; then
2339 CC="$CC -traditional"
2343 echo "$as_me:2343: checking whether $CC understands -c and -o together" >&5
2344 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2345 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 cat > conftest.$ac_ext <<CF_EOF
2353 ${cf_cv_main_return:-return}(0);
2356 # We do the test twice because some compilers refuse to overwrite an
2357 # existing .o file with -o, though they will create one.
2358 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2359 if { (eval echo "$as_me:2359: \"$ac_try\"") >&5
2362 echo "$as_me:2362: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 test -f conftest2.$ac_objext && { (eval echo "$as_me:2364: \"$ac_try\"") >&5
2367 echo "$as_me:2367: \$? = $ac_status" >&5
2368 (exit $ac_status); };
2370 eval cf_cv_prog_CC_c_o=yes
2372 eval cf_cv_prog_CC_c_o=no
2377 if test $cf_cv_prog_CC_c_o = yes; then
2378 echo "$as_me:2378: result: yes" >&5
2379 echo "${ECHO_T}yes" >&6
2381 echo "$as_me:2381: result: no" >&5
2382 echo "${ECHO_T}no" >&6
2385 echo "$as_me:2385: checking for POSIXized ISC" >&5
2386 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2387 if test -d /etc/conf/kconfig.d &&
2388 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2390 echo "$as_me:2390: result: yes" >&5
2391 echo "${ECHO_T}yes" >&6
2392 ISC=yes # If later tests want to check for ISC.
2394 cat >>confdefs.h <<\EOF
2395 #define _POSIX_SOURCE 1
2398 if test "$GCC" = yes; then
2404 echo "$as_me:2404: result: no" >&5
2405 echo "${ECHO_T}no" >&6
2409 echo "$as_me:2409: checking for ${CC-cc} option to accept ANSI C" >&5
2410 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2411 if test "${cf_cv_ansi_cc+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 cf_save_CFLAGS="$CFLAGS"
2417 cf_save_CPPFLAGS="$CPPFLAGS"
2418 # Don't try gcc -ansi; that turns off useful extensions and
2419 # breaks some systems' header files.
2420 # AIX -qlanglvl=ansi
2421 # Ultrix and OSF/1 -std1
2422 # HP-UX -Aa -D_HPUX_SOURCE
2424 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2425 for cf_arg in "-DCC_HAS_PROTOS" \
2430 "-Aa -D_HPUX_SOURCE" \
2437 cf_new_extra_cppflags=
2439 for cf_add_cflags in $cf_arg
2441 case $cf_fix_cppflags in
2443 case $cf_add_cflags in #(vi
2444 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2445 case $cf_add_cflags in
2447 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2449 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2450 && test -z "${cf_tst_cflags}" \
2451 && cf_fix_cppflags=yes
2453 if test $cf_fix_cppflags = yes ; then
2454 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2456 elif test "${cf_tst_cflags}" = "\"'" ; then
2457 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2463 *$cf_add_cflags) #(vi
2466 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2471 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2476 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2478 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2480 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2481 && test -z "${cf_tst_cflags}" \
2482 && cf_fix_cppflags=no
2487 if test -n "$cf_new_cflags" ; then
2489 CFLAGS="$CFLAGS $cf_new_cflags"
2492 if test -n "$cf_new_cppflags" ; then
2494 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2497 if test -n "$cf_new_extra_cppflags" ; then
2499 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2502 cat >conftest.$ac_ext <<_ACEOF
2503 #line 2503 "configure"
2504 #include "confdefs.h"
2506 #ifndef CC_HAS_PROTOS
2507 #if !defined(__STDC__) || (__STDC__ != 1)
2516 int test (int i, double x);
2517 struct s1 {int (*f) (int a);};
2518 struct s2 {int (*f) (double a);};
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:2524: \"$ac_compile\"") >&5
2525 (eval $ac_compile) 2>&5
2527 echo "$as_me:2527: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (eval echo "$as_me:2530: \"$ac_try\"") >&5
2533 echo "$as_me:2533: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2535 cf_cv_ansi_cc="$cf_arg"; break
2537 echo "$as_me: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2540 rm -f conftest.$ac_objext conftest.$ac_ext
2542 CFLAGS="$cf_save_CFLAGS"
2543 CPPFLAGS="$cf_save_CPPFLAGS"
2546 echo "$as_me:2546: result: $cf_cv_ansi_cc" >&5
2547 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2549 if test "$cf_cv_ansi_cc" != "no"; then
2550 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2555 cf_new_extra_cppflags=
2557 for cf_add_cflags in $cf_cv_ansi_cc
2559 case $cf_fix_cppflags in
2561 case $cf_add_cflags in #(vi
2562 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2563 case $cf_add_cflags in
2565 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2567 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2568 && test -z "${cf_tst_cflags}" \
2569 && cf_fix_cppflags=yes
2571 if test $cf_fix_cppflags = yes ; then
2572 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2574 elif test "${cf_tst_cflags}" = "\"'" ; then
2575 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2581 *$cf_add_cflags) #(vi
2584 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2589 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2594 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2596 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2598 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2599 && test -z "${cf_tst_cflags}" \
2600 && cf_fix_cppflags=no
2605 if test -n "$cf_new_cflags" ; then
2607 CFLAGS="$CFLAGS $cf_new_cflags"
2610 if test -n "$cf_new_cppflags" ; then
2612 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2615 if test -n "$cf_new_extra_cppflags" ; then
2617 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2621 cat >>confdefs.h <<\EOF
2622 #define CC_HAS_PROTOS 1
2628 if test "$cf_cv_ansi_cc" = "no"; then
2629 { { echo "$as_me:2629: error: Your compiler does not appear to recognize prototypes.
2630 You have the following choices:
2631 a. adjust your compiler options
2632 b. get an up-to-date compiler
2633 c. use a wrapper such as unproto" >&5
2634 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2635 You have the following choices:
2636 a. adjust your compiler options
2637 b. get an up-to-date compiler
2638 c. use a wrapper such as unproto" >&2;}
2639 { (exit 1); exit 1; }; }
2642 case $cf_cv_system_name in
2644 CFLAGS="$CFLAGS -Zmt"
2645 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2646 CXXFLAGS="$CXXFLAGS -Zmt"
2647 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2648 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2655 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2656 #define PROG_EXT "$PROG_EXT"
2659 if test "$cross_compiling" = yes ; then
2662 case "$cf_cv_system_name" in #(vi
2664 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2666 *) LDPATH=$PATH:/sbin:/usr/sbin
2667 # Extract the first word of "ldconfig", so it can be a program name with args.
2668 set dummy ldconfig; ac_word=$2
2669 echo "$as_me:2669: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2671 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2679 ac_save_IFS=$IFS; IFS=$ac_path_separator
2681 for ac_dir in $ac_dummy; do
2683 test -z "$ac_dir" && ac_dir=.
2684 if $as_executable_p "$ac_dir/$ac_word"; then
2685 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2686 echo "$as_me:2686: found $ac_dir/$ac_word" >&5
2694 LDCONFIG=$ac_cv_path_LDCONFIG
2696 if test -n "$LDCONFIG"; then
2697 echo "$as_me:2697: result: $LDCONFIG" >&5
2698 echo "${ECHO_T}$LDCONFIG" >&6
2700 echo "$as_me:2700: result: no" >&5
2701 echo "${ECHO_T}no" >&6
2708 echo "$as_me:2708: checking if you want to ensure bool is consistent with C++" >&5
2709 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2711 # Check whether --with-cxx or --without-cxx was given.
2712 if test "${with_cxx+set}" = set; then
2714 cf_with_cxx=$withval
2718 echo "$as_me:2718: result: $cf_with_cxx" >&5
2719 echo "${ECHO_T}$cf_with_cxx" >&6
2720 if test "X$cf_with_cxx" = Xno ; then
2724 # with autoconf 2.13, we can change the error to a warning:
2726 ac_cpp='$CXXCPP $CPPFLAGS'
2727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2730 ac_main_return=return
2731 if test -n "$ac_tool_prefix"; then
2732 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2736 echo "$as_me:2736: checking for $ac_word" >&5
2737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2738 if test "${ac_cv_prog_CXX+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 if test -n "$CXX"; then
2742 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2744 ac_save_IFS=$IFS; IFS=$ac_path_separator
2746 for ac_dir in $ac_dummy; do
2748 test -z "$ac_dir" && ac_dir=.
2749 $as_executable_p "$ac_dir/$ac_word" || continue
2750 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2751 echo "$as_me:2751: found $ac_dir/$ac_word" >&5
2758 if test -n "$CXX"; then
2759 echo "$as_me:2759: result: $CXX" >&5
2760 echo "${ECHO_T}$CXX" >&6
2762 echo "$as_me:2762: result: no" >&5
2763 echo "${ECHO_T}no" >&6
2766 test -n "$CXX" && break
2769 if test -z "$CXX"; then
2771 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2773 # Extract the first word of "$ac_prog", so it can be a program name with args.
2774 set dummy $ac_prog; ac_word=$2
2775 echo "$as_me:2775: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 if test -n "$ac_ct_CXX"; then
2781 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2783 ac_save_IFS=$IFS; IFS=$ac_path_separator
2785 for ac_dir in $ac_dummy; do
2787 test -z "$ac_dir" && ac_dir=.
2788 $as_executable_p "$ac_dir/$ac_word" || continue
2789 ac_cv_prog_ac_ct_CXX="$ac_prog"
2790 echo "$as_me:2790: found $ac_dir/$ac_word" >&5
2796 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2797 if test -n "$ac_ct_CXX"; then
2798 echo "$as_me:2798: result: $ac_ct_CXX" >&5
2799 echo "${ECHO_T}$ac_ct_CXX" >&6
2801 echo "$as_me:2801: result: no" >&5
2802 echo "${ECHO_T}no" >&6
2805 test -n "$ac_ct_CXX" && break
2807 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2812 # Provide some information about the compiler.
2813 echo "$as_me:2813:" \
2814 "checking for C++ compiler version" >&5
2815 ac_compiler=`set X $ac_compile; echo $2`
2816 { (eval echo "$as_me:2816: \"$ac_compiler --version </dev/null >&5\"") >&5
2817 (eval $ac_compiler --version </dev/null >&5) 2>&5
2819 echo "$as_me:2819: \$? = $ac_status" >&5
2820 (exit $ac_status); }
2821 { (eval echo "$as_me:2821: \"$ac_compiler -v </dev/null >&5\"") >&5
2822 (eval $ac_compiler -v </dev/null >&5) 2>&5
2824 echo "$as_me:2824: \$? = $ac_status" >&5
2825 (exit $ac_status); }
2826 { (eval echo "$as_me:2826: \"$ac_compiler -V </dev/null >&5\"") >&5
2827 (eval $ac_compiler -V </dev/null >&5) 2>&5
2829 echo "$as_me:2829: \$? = $ac_status" >&5
2830 (exit $ac_status); }
2832 echo "$as_me:2832: checking whether we are using the GNU C++ compiler" >&5
2833 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2834 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 cat >conftest.$ac_ext <<_ACEOF
2838 #line 2838 "configure"
2839 #include "confdefs.h"
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:2853: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>&5
2856 echo "$as_me:2856: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:2859: \"$ac_try\"") >&5
2862 echo "$as_me:2862: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2866 echo "$as_me: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2870 rm -f conftest.$ac_objext conftest.$ac_ext
2871 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2874 echo "$as_me:2874: result: $ac_cv_cxx_compiler_gnu" >&5
2875 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2876 GXX=`test $ac_compiler_gnu = yes && echo yes`
2877 ac_test_CXXFLAGS=${CXXFLAGS+set}
2878 ac_save_CXXFLAGS=$CXXFLAGS
2880 echo "$as_me:2880: checking whether $CXX accepts -g" >&5
2881 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2882 if test "${ac_cv_prog_cxx_g+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 cat >conftest.$ac_ext <<_ACEOF
2886 #line 2886 "configure"
2887 #include "confdefs.h"
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:2898: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>&5
2901 echo "$as_me:2901: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -s conftest.$ac_objext'
2904 { (eval echo "$as_me:2904: \"$ac_try\"") >&5
2907 echo "$as_me:2907: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 ac_cv_prog_cxx_g=yes
2911 echo "$as_me: failed program was:" >&5
2912 cat conftest.$ac_ext >&5
2915 rm -f conftest.$ac_objext conftest.$ac_ext
2917 echo "$as_me:2917: result: $ac_cv_prog_cxx_g" >&5
2918 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2919 if test "$ac_test_CXXFLAGS" = set; then
2920 CXXFLAGS=$ac_save_CXXFLAGS
2921 elif test $ac_cv_prog_cxx_g = yes; then
2922 if test "$GXX" = yes; then
2928 if test "$GXX" = yes; then
2934 for ac_declaration in \
2936 '#include <stdlib.h>' \
2937 'extern "C" void std::exit (int) throw (); using std::exit;' \
2938 'extern "C" void std::exit (int); using std::exit;' \
2939 'extern "C" void exit (int) throw ();' \
2940 'extern "C" void exit (int);' \
2943 cat >conftest.$ac_ext <<_ACEOF
2944 #line 2944 "configure"
2945 #include "confdefs.h"
2956 rm -f conftest.$ac_objext
2957 if { (eval echo "$as_me:2957: \"$ac_compile\"") >&5
2958 (eval $ac_compile) 2>&5
2960 echo "$as_me:2960: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (eval echo "$as_me:2963: \"$ac_try\"") >&5
2966 echo "$as_me:2966: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2970 echo "$as_me: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2974 rm -f conftest.$ac_objext conftest.$ac_ext
2975 cat >conftest.$ac_ext <<_ACEOF
2976 #line 2976 "configure"
2977 #include "confdefs.h"
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>&5
2991 echo "$as_me:2991: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:2994: \"$ac_try\"") >&5
2997 echo "$as_me:2997: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
3001 echo "$as_me: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3004 rm -f conftest.$ac_objext conftest.$ac_ext
3007 if test -n "$ac_declaration"; then
3008 echo '#ifdef __cplusplus' >>confdefs.h
3009 echo $ac_declaration >>confdefs.h
3010 echo '#endif' >>confdefs.h
3014 ac_cpp='$CPP $CPPFLAGS'
3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 ac_main_return=return
3020 # autoconf 2.5x removed the error - by hardcoding it to g++.
3021 if test "$CXX" = "g++" ; then
3022 # Extract the first word of "g++", so it can be a program name with args.
3023 set dummy g++; ac_word=$2
3024 echo "$as_me:3024: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_path_CXX+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3034 ac_save_IFS=$IFS; IFS=$ac_path_separator
3036 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if $as_executable_p "$ac_dir/$ac_word"; then
3040 ac_cv_path_CXX="$ac_dir/$ac_word"
3041 echo "$as_me:3041: found $ac_dir/$ac_word" >&5
3051 if test -n "$CXX"; then
3052 echo "$as_me:3052: result: $CXX" >&5
3053 echo "${ECHO_T}$CXX" >&6
3055 echo "$as_me:3055: result: no" >&5
3056 echo "${ECHO_T}no" >&6
3060 if test "$CXX" = "g++" ; then
3061 { echo "$as_me:3061: WARNING: ignoring hardcoded g++" >&5
3062 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3063 cf_with_cxx=no; CXX=""; GXX="";
3068 if test "$GXX" = yes; then
3069 echo "$as_me:3069: checking version of g++" >&5
3070 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3071 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3072 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3073 echo "$as_me:3073: result: $GXX_VERSION" >&5
3074 echo "${ECHO_T}$GXX_VERSION" >&6
3077 case $GXX_VERSION in
3079 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3081 { echo "$as_me:3081: WARNING: templates do not work" >&5
3082 echo "$as_me: WARNING: templates do not work" >&2;}
3086 echo "$as_me:3086: checking if you want to build C++ binding and demo" >&5
3087 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3089 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3090 if test "${with_cxx_binding+set}" = set; then
3091 withval="$with_cxx_binding"
3092 cf_with_cxx_binding=$withval
3094 cf_with_cxx_binding=$cf_with_cxx
3096 echo "$as_me:3096: result: $cf_with_cxx_binding" >&5
3097 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3099 echo "$as_me:3099: checking if you want to build with Ada95" >&5
3100 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3102 # Check whether --with-ada or --without-ada was given.
3103 if test "${with_ada+set}" = set; then
3105 cf_with_ada=$withval
3109 echo "$as_me:3109: result: $cf_with_ada" >&5
3110 echo "${ECHO_T}$cf_with_ada" >&6
3112 echo "$as_me:3112: checking if you want to build programs such as tic" >&5
3113 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3115 # Check whether --with-progs or --without-progs was given.
3116 if test "${with_progs+set}" = set; then
3117 withval="$with_progs"
3118 cf_with_progs=$withval
3122 echo "$as_me:3122: result: $cf_with_progs" >&5
3123 echo "${ECHO_T}$cf_with_progs" >&6
3125 echo "$as_me:3125: checking if you wish to install curses.h" >&5
3126 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3128 # Check whether --with-curses-h or --without-curses-h was given.
3129 if test "${with_curses_h+set}" = set; then
3130 withval="$with_curses_h"
3131 with_curses_h=$withval
3135 echo "$as_me:3135: result: $with_curses_h" >&5
3136 echo "${ECHO_T}$with_curses_h" >&6
3138 modules_to_build="ncurses"
3139 if test "X$cf_with_progs" != Xno ; then
3140 modules_to_build="$modules_to_build progs tack"
3142 modules_to_build="$modules_to_build panel menu form"
3144 test "$program_prefix" != NONE &&
3145 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3146 # Use a double $ so make ignores it.
3147 test "$program_suffix" != NONE &&
3148 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3149 # Double any \ or $. echo might interpret backslashes.
3150 # By default was `s,x,x', remove it if useless.
3151 cat <<\_ACEOF >conftest.sed
3152 s/[\\$]/&&/g;s/;s,x,x,$//
3154 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3157 for ac_prog in mawk gawk nawk awk
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 echo "$as_me:3161: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_prog_AWK+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 if test -n "$AWK"; then
3167 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3169 ac_save_IFS=$IFS; IFS=$ac_path_separator
3171 for ac_dir in $ac_dummy; do
3173 test -z "$ac_dir" && ac_dir=.
3174 $as_executable_p "$ac_dir/$ac_word" || continue
3175 ac_cv_prog_AWK="$ac_prog"
3176 echo "$as_me:3176: found $ac_dir/$ac_word" >&5
3183 if test -n "$AWK"; then
3184 echo "$as_me:3184: result: $AWK" >&5
3185 echo "${ECHO_T}$AWK" >&6
3187 echo "$as_me:3187: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3191 test -n "$AWK" && break
3194 test -z "$AWK" && { { echo "$as_me:3194: error: No awk program found" >&5
3195 echo "$as_me: error: No awk program found" >&2;}
3196 { (exit 1); exit 1; }; }
3198 echo "$as_me:3198: checking for egrep" >&5
3199 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3200 if test "${ac_cv_prog_egrep+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3204 then ac_cv_prog_egrep='grep -E'
3205 else ac_cv_prog_egrep='egrep'
3208 echo "$as_me:3208: result: $ac_cv_prog_egrep" >&5
3209 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3210 EGREP=$ac_cv_prog_egrep
3212 test -z "$EGREP" && { { echo "$as_me:3212: error: No egrep program found" >&5
3213 echo "$as_me: error: No egrep program found" >&2;}
3214 { (exit 1); exit 1; }; }
3216 # Find a good install program. We prefer a C program (faster),
3217 # so one script is as good as another. But avoid the broken or
3218 # incompatible versions:
3219 # SysV /etc/install, /usr/sbin/install
3220 # SunOS /usr/etc/install
3221 # IRIX /sbin/install
3223 # AmigaOS /C/install, which installs bootblocks on floppy discs
3224 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3225 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3226 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3227 # ./install, which can be erroneously created by make from ./install.sh.
3228 echo "$as_me:3228: checking for a BSD compatible install" >&5
3229 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3230 if test -z "$INSTALL"; then
3231 if test "${ac_cv_path_install+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 ac_save_IFS=$IFS; IFS=$ac_path_separator
3235 for ac_dir in $PATH; do
3237 # Account for people who put trailing slashes in PATH elements.
3239 / | ./ | .// | /cC/* \
3240 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3243 # OSF1 and SCO ODT 3.0 have their own names for install.
3244 # Don't use installbsd from OSF since it installs stuff as root
3246 for ac_prog in ginstall scoinst install; do
3247 if $as_executable_p "$ac_dir/$ac_prog"; then
3248 if test $ac_prog = install &&
3249 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3250 # AIX install. It has an incompatible calling convention.
3252 elif test $ac_prog = install &&
3253 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3254 # program-specific install script used by HP pwplus--don't use.
3257 ac_cv_path_install="$ac_dir/$ac_prog -c"
3267 if test "${ac_cv_path_install+set}" = set; then
3268 INSTALL=$ac_cv_path_install
3270 # As a last resort, use the slow shell script. We don't cache a
3271 # path for INSTALL within a source directory, because that will
3272 # break other packages using the cache if that directory is
3273 # removed, or if the path is relative.
3274 INSTALL=$ac_install_sh
3277 echo "$as_me:3277: result: $INSTALL" >&5
3278 echo "${ECHO_T}$INSTALL" >&6
3280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3281 # It thinks the first close brace ends the variable substitution.
3282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3284 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3286 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3292 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3293 test -z "$cf_dir" && cf_dir=.
3294 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3298 for ac_prog in tdlint lint alint
3300 # Extract the first word of "$ac_prog", so it can be a program name with args.
3301 set dummy $ac_prog; ac_word=$2
3302 echo "$as_me:3302: checking for $ac_word" >&5
3303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3304 if test "${ac_cv_prog_LINT+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 if test -n "$LINT"; then
3308 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3310 ac_save_IFS=$IFS; IFS=$ac_path_separator
3312 for ac_dir in $ac_dummy; do
3314 test -z "$ac_dir" && ac_dir=.
3315 $as_executable_p "$ac_dir/$ac_word" || continue
3316 ac_cv_prog_LINT="$ac_prog"
3317 echo "$as_me:3317: found $ac_dir/$ac_word" >&5
3323 LINT=$ac_cv_prog_LINT
3324 if test -n "$LINT"; then
3325 echo "$as_me:3325: result: $LINT" >&5
3326 echo "${ECHO_T}$LINT" >&6
3328 echo "$as_me:3328: result: no" >&5
3329 echo "${ECHO_T}no" >&6
3332 test -n "$LINT" && break
3335 echo "$as_me:3335: checking whether ln -s works" >&5
3336 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3338 if test "$LN_S" = "ln -s"; then
3339 echo "$as_me:3339: result: yes" >&5
3340 echo "${ECHO_T}yes" >&6
3342 echo "$as_me:3342: result: no, using $LN_S" >&5
3343 echo "${ECHO_T}no, using $LN_S" >&6
3346 echo "$as_me:3346: checking for long file names" >&5
3347 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3348 if test "${ac_cv_sys_long_file_names+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 ac_cv_sys_long_file_names=yes
3352 # Test for long file names in all the places we know might matter:
3353 # . the current directory, where building will happen
3354 # $prefix/lib where we will be installing things
3355 # $exec_prefix/lib likewise
3356 # eval it to expand exec_prefix.
3357 # $TMPDIR if set, where it might want to write temporary files
3358 # if $TMPDIR is not set:
3359 # /tmp where it might want to write temporary files
3362 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3365 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3367 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3368 test -d $ac_dir || continue
3369 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3370 ac_xdir=$ac_dir/cf$$
3371 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3372 ac_tf1=$ac_xdir/conftest9012345
3373 ac_tf2=$ac_xdir/conftest9012346
3374 (echo 1 >$ac_tf1) 2>/dev/null
3375 (echo 2 >$ac_tf2) 2>/dev/null
3376 ac_val=`cat $ac_tf1 2>/dev/null`
3377 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3378 ac_cv_sys_long_file_names=no
3379 rm -rf $ac_xdir 2>/dev/null
3382 rm -rf $ac_xdir 2>/dev/null
3385 echo "$as_me:3385: result: $ac_cv_sys_long_file_names" >&5
3386 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3387 if test $ac_cv_sys_long_file_names = yes; then
3389 cat >>confdefs.h <<\EOF
3390 #define HAVE_LONG_FILE_NAMES 1
3395 echo "$as_me:3395: checking if we should assume mixed-case filenames" >&5
3396 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3398 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3399 if test "${enable_mixed_case+set}" = set; then
3400 enableval="$enable_mixed_case"
3401 enable_mixedcase=$enableval
3403 enable_mixedcase=auto
3405 echo "$as_me:3405: result: $enable_mixedcase" >&5
3406 echo "${ECHO_T}$enable_mixedcase" >&6
3407 if test "$enable_mixedcase" = "auto" ; then
3409 echo "$as_me:3409: checking if filesystem supports mixed-case filenames" >&5
3410 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3411 if test "${cf_cv_mixedcase+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 if test "$cross_compiling" = yes ; then
3416 case $target_alias in #(vi
3417 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3425 rm -f conftest CONFTEST
3427 if test -f CONFTEST ; then
3432 rm -f conftest CONFTEST
3436 echo "$as_me:3436: result: $cf_cv_mixedcase" >&5
3437 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3438 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3439 #define MIXEDCASE_FILENAMES 1
3443 cf_cv_mixedcase=$enable_mixedcase
3444 if test "$enable_mixedcase" = "yes" ; then
3445 cat >>confdefs.h <<\EOF
3446 #define MIXEDCASE_FILENAMES 1
3452 # do this after mixed-case option (tags/TAGS is not as important as tic).
3453 echo "$as_me:3453: checking whether ${MAKE-make} sets \${MAKE}" >&5
3454 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3455 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3456 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 cat >conftest.make <<\EOF
3461 @echo 'ac_maketemp="${MAKE}"'
3463 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3464 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3465 if test -n "$ac_maketemp"; then
3466 eval ac_cv_prog_make_${ac_make}_set=yes
3468 eval ac_cv_prog_make_${ac_make}_set=no
3472 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3473 echo "$as_me:3473: result: yes" >&5
3474 echo "${ECHO_T}yes" >&6
3477 echo "$as_me:3477: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3479 SET_MAKE="MAKE=${MAKE-make}"
3482 # Extract the first word of "ctags", so it can be a program name with args.
3483 set dummy ctags; ac_word=$2
3484 echo "$as_me:3484: checking for $ac_word" >&5
3485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3486 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 if test -n "$MAKE_LOWER_TAGS"; then
3490 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3492 ac_save_IFS=$IFS; IFS=$ac_path_separator
3494 for ac_dir in $ac_dummy; do
3496 test -z "$ac_dir" && ac_dir=.
3497 $as_executable_p "$ac_dir/$ac_word" || continue
3498 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3499 echo "$as_me:3499: found $ac_dir/$ac_word" >&5
3503 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3506 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3507 if test -n "$MAKE_LOWER_TAGS"; then
3508 echo "$as_me:3508: result: $MAKE_LOWER_TAGS" >&5
3509 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3511 echo "$as_me:3511: result: no" >&5
3512 echo "${ECHO_T}no" >&6
3515 if test "$cf_cv_mixedcase" = yes ; then
3516 # Extract the first word of "etags", so it can be a program name with args.
3517 set dummy etags; ac_word=$2
3518 echo "$as_me:3518: checking for $ac_word" >&5
3519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3520 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 if test -n "$MAKE_UPPER_TAGS"; then
3524 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3526 ac_save_IFS=$IFS; IFS=$ac_path_separator
3528 for ac_dir in $ac_dummy; do
3530 test -z "$ac_dir" && ac_dir=.
3531 $as_executable_p "$ac_dir/$ac_word" || continue
3532 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3533 echo "$as_me:3533: found $ac_dir/$ac_word" >&5
3537 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3540 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3541 if test -n "$MAKE_UPPER_TAGS"; then
3542 echo "$as_me:3542: result: $MAKE_UPPER_TAGS" >&5
3543 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3545 echo "$as_me:3545: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3553 if test "$MAKE_UPPER_TAGS" = yes ; then
3559 if test "$MAKE_LOWER_TAGS" = yes ; then
3565 echo "$as_me:3565: checking for makeflags variable" >&5
3566 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3567 if test "${cf_cv_makeflags+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3574 cat >cf_makeflags.tmp <<CF_EOF
3577 @ echo '.$cf_option'
3579 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3580 case "$cf_result" in
3582 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3583 case "$cf_result" in
3584 .*CC=*) cf_cv_makeflags=
3586 *) cf_cv_makeflags=$cf_option
3592 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3596 rm -f cf_makeflags.tmp
3599 echo "$as_me:3599: result: $cf_cv_makeflags" >&5
3600 echo "${ECHO_T}$cf_cv_makeflags" >&6
3602 if test -n "$ac_tool_prefix"; then
3603 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3604 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3605 echo "$as_me:3605: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_prog_RANLIB+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 if test -n "$RANLIB"; then
3611 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3613 ac_save_IFS=$IFS; IFS=$ac_path_separator
3615 for ac_dir in $ac_dummy; do
3617 test -z "$ac_dir" && ac_dir=.
3618 $as_executable_p "$ac_dir/$ac_word" || continue
3619 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3620 echo "$as_me:3620: found $ac_dir/$ac_word" >&5
3626 RANLIB=$ac_cv_prog_RANLIB
3627 if test -n "$RANLIB"; then
3628 echo "$as_me:3628: result: $RANLIB" >&5
3629 echo "${ECHO_T}$RANLIB" >&6
3631 echo "$as_me:3631: result: no" >&5
3632 echo "${ECHO_T}no" >&6
3636 if test -z "$ac_cv_prog_RANLIB"; then
3637 ac_ct_RANLIB=$RANLIB
3638 # Extract the first word of "ranlib", so it can be a program name with args.
3639 set dummy ranlib; ac_word=$2
3640 echo "$as_me:3640: checking for $ac_word" >&5
3641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3642 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 if test -n "$ac_ct_RANLIB"; then
3646 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3648 ac_save_IFS=$IFS; IFS=$ac_path_separator
3650 for ac_dir in $ac_dummy; do
3652 test -z "$ac_dir" && ac_dir=.
3653 $as_executable_p "$ac_dir/$ac_word" || continue
3654 ac_cv_prog_ac_ct_RANLIB="ranlib"
3655 echo "$as_me:3655: found $ac_dir/$ac_word" >&5
3659 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3662 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3663 if test -n "$ac_ct_RANLIB"; then
3664 echo "$as_me:3664: result: $ac_ct_RANLIB" >&5
3665 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3667 echo "$as_me:3667: result: no" >&5
3668 echo "${ECHO_T}no" >&6
3671 RANLIB=$ac_ct_RANLIB
3673 RANLIB="$ac_cv_prog_RANLIB"
3676 if test -n "$ac_tool_prefix"; then
3677 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3678 set dummy ${ac_tool_prefix}ld; ac_word=$2
3679 echo "$as_me:3679: checking for $ac_word" >&5
3680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3681 if test "${ac_cv_prog_LD+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 if test -n "$LD"; then
3685 ac_cv_prog_LD="$LD" # Let the user override the test.
3687 ac_save_IFS=$IFS; IFS=$ac_path_separator
3689 for ac_dir in $ac_dummy; do
3691 test -z "$ac_dir" && ac_dir=.
3692 $as_executable_p "$ac_dir/$ac_word" || continue
3693 ac_cv_prog_LD="${ac_tool_prefix}ld"
3694 echo "$as_me:3694: found $ac_dir/$ac_word" >&5
3701 if test -n "$LD"; then
3702 echo "$as_me:3702: result: $LD" >&5
3703 echo "${ECHO_T}$LD" >&6
3705 echo "$as_me:3705: result: no" >&5
3706 echo "${ECHO_T}no" >&6
3710 if test -z "$ac_cv_prog_LD"; then
3712 # Extract the first word of "ld", so it can be a program name with args.
3713 set dummy ld; ac_word=$2
3714 echo "$as_me:3714: checking for $ac_word" >&5
3715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3716 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 if test -n "$ac_ct_LD"; then
3720 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3722 ac_save_IFS=$IFS; IFS=$ac_path_separator
3724 for ac_dir in $ac_dummy; do
3726 test -z "$ac_dir" && ac_dir=.
3727 $as_executable_p "$ac_dir/$ac_word" || continue
3728 ac_cv_prog_ac_ct_LD="ld"
3729 echo "$as_me:3729: found $ac_dir/$ac_word" >&5
3733 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3736 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3737 if test -n "$ac_ct_LD"; then
3738 echo "$as_me:3738: result: $ac_ct_LD" >&5
3739 echo "${ECHO_T}$ac_ct_LD" >&6
3741 echo "$as_me:3741: result: no" >&5
3742 echo "${ECHO_T}no" >&6
3750 if test -n "$ac_tool_prefix"; then
3751 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3752 set dummy ${ac_tool_prefix}ar; ac_word=$2
3753 echo "$as_me:3753: checking for $ac_word" >&5
3754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3755 if test "${ac_cv_prog_AR+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 if test -n "$AR"; then
3759 ac_cv_prog_AR="$AR" # Let the user override the test.
3761 ac_save_IFS=$IFS; IFS=$ac_path_separator
3763 for ac_dir in $ac_dummy; do
3765 test -z "$ac_dir" && ac_dir=.
3766 $as_executable_p "$ac_dir/$ac_word" || continue
3767 ac_cv_prog_AR="${ac_tool_prefix}ar"
3768 echo "$as_me:3768: found $ac_dir/$ac_word" >&5
3775 if test -n "$AR"; then
3776 echo "$as_me:3776: result: $AR" >&5
3777 echo "${ECHO_T}$AR" >&6
3779 echo "$as_me:3779: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3784 if test -z "$ac_cv_prog_AR"; then
3786 # Extract the first word of "ar", so it can be a program name with args.
3787 set dummy ar; ac_word=$2
3788 echo "$as_me:3788: checking for $ac_word" >&5
3789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3790 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 if test -n "$ac_ct_AR"; then
3794 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3796 ac_save_IFS=$IFS; IFS=$ac_path_separator
3798 for ac_dir in $ac_dummy; do
3800 test -z "$ac_dir" && ac_dir=.
3801 $as_executable_p "$ac_dir/$ac_word" || continue
3802 ac_cv_prog_ac_ct_AR="ar"
3803 echo "$as_me:3803: found $ac_dir/$ac_word" >&5
3807 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3810 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3811 if test -n "$ac_ct_AR"; then
3812 echo "$as_me:3812: result: $ac_ct_AR" >&5
3813 echo "${ECHO_T}$ac_ct_AR" >&6
3815 echo "$as_me:3815: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3824 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 echo "$as_me:3828: checking for archiver options (symbol AR_OPTS)" >&5
3829 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3831 if test -z "$AR_OPTS" ; then
3836 cf_cv_subst_AR_OPTS=$AR_OPTS
3837 echo "$as_me:3837: result: $AR_OPTS" >&5
3838 echo "${ECHO_T}$AR_OPTS" >&6
3842 echo "$as_me:3842: checking if you have specified an install-prefix" >&5
3843 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3845 # Check whether --with-install-prefix or --without-install-prefix was given.
3846 if test "${with_install_prefix+set}" = set; then
3847 withval="$with_install_prefix"
3848 case "$withval" in #(vi
3851 *) DESTDIR="$withval"
3855 echo "$as_me:3855: result: $DESTDIR" >&5
3856 echo "${ECHO_T}$DESTDIR" >&6
3858 ###############################################################################
3860 # If we're cross-compiling, allow the user to override the tools and their
3861 # options. The configure script is oriented toward identifying the host
3862 # compiler, etc., but we need a build compiler to generate parts of the source.
3864 if test "$cross_compiling" = yes ; then
3866 # defaults that we might want to override
3867 : ${BUILD_CFLAGS:=''}
3868 : ${BUILD_CPPFLAGS:=''}
3869 : ${BUILD_LDFLAGS:=''}
3871 : ${BUILD_EXEEXT:='$x'}
3872 : ${BUILD_OBJEXT:='o'}
3874 # Check whether --with-build-cc or --without-build-cc was given.
3875 if test "${with_build_cc+set}" = set; then
3876 withval="$with_build_cc"
3879 for ac_prog in gcc cc cl
3881 # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy $ac_prog; ac_word=$2
3883 echo "$as_me:3883: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 if test -n "$BUILD_CC"; then
3889 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3891 ac_save_IFS=$IFS; IFS=$ac_path_separator
3893 for ac_dir in $ac_dummy; do
3895 test -z "$ac_dir" && ac_dir=.
3896 $as_executable_p "$ac_dir/$ac_word" || continue
3897 ac_cv_prog_BUILD_CC="$ac_prog"
3898 echo "$as_me:3898: found $ac_dir/$ac_word" >&5
3904 BUILD_CC=$ac_cv_prog_BUILD_CC
3905 if test -n "$BUILD_CC"; then
3906 echo "$as_me:3906: result: $BUILD_CC" >&5
3907 echo "${ECHO_T}$BUILD_CC" >&6
3909 echo "$as_me:3909: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3913 test -n "$BUILD_CC" && break
3917 echo "$as_me:3917: checking for native build C compiler" >&5
3918 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3919 echo "$as_me:3919: result: $BUILD_CC" >&5
3920 echo "${ECHO_T}$BUILD_CC" >&6
3922 echo "$as_me:3922: checking for native build C preprocessor" >&5
3923 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3925 # Check whether --with-build-cpp or --without-build-cpp was given.
3926 if test "${with_build_cpp+set}" = set; then
3927 withval="$with_build_cpp"
3928 BUILD_CPP="$withval"
3930 BUILD_CPP='${BUILD_CC} -E'
3932 echo "$as_me:3932: result: $BUILD_CPP" >&5
3933 echo "${ECHO_T}$BUILD_CPP" >&6
3935 echo "$as_me:3935: checking for native build C flags" >&5
3936 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3938 # Check whether --with-build-cflags or --without-build-cflags was given.
3939 if test "${with_build_cflags+set}" = set; then
3940 withval="$with_build_cflags"
3941 BUILD_CFLAGS="$withval"
3943 echo "$as_me:3943: result: $BUILD_CFLAGS" >&5
3944 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3946 echo "$as_me:3946: checking for native build C preprocessor-flags" >&5
3947 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3949 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3950 if test "${with_build_cppflags+set}" = set; then
3951 withval="$with_build_cppflags"
3952 BUILD_CPPFLAGS="$withval"
3954 echo "$as_me:3954: result: $BUILD_CPPFLAGS" >&5
3955 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3957 echo "$as_me:3957: checking for native build linker-flags" >&5
3958 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3960 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3961 if test "${with_build_ldflags+set}" = set; then
3962 withval="$with_build_ldflags"
3963 BUILD_LDFLAGS="$withval"
3965 echo "$as_me:3965: result: $BUILD_LDFLAGS" >&5
3966 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3968 echo "$as_me:3968: checking for native build linker-libraries" >&5
3969 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3971 # Check whether --with-build-libs or --without-build-libs was given.
3972 if test "${with_build_libs+set}" = set; then
3973 withval="$with_build_libs"
3974 BUILD_LIBS="$withval"
3976 echo "$as_me:3976: result: $BUILD_LIBS" >&5
3977 echo "${ECHO_T}$BUILD_LIBS" >&6
3979 # this assumes we're on Unix.
3983 : ${BUILD_CC:='${CC}'}
3985 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3986 { { echo "$as_me:3986: error: Cross-build requires two compilers.
3987 Use --with-build-cc to specify the native compiler." >&5
3988 echo "$as_me: error: Cross-build requires two compilers.
3989 Use --with-build-cc to specify the native compiler." >&2;}
3990 { (exit 1); exit 1; }; }
3994 : ${BUILD_CC:='${CC}'}
3995 : ${BUILD_CPP:='${CPP}'}
3996 : ${BUILD_CFLAGS:='${CFLAGS}'}
3997 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3998 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3999 : ${BUILD_LIBS:='${LIBS}'}
4000 : ${BUILD_EXEEXT:='$x'}
4001 : ${BUILD_OBJEXT:='o'}
4004 ###############################################################################
4006 ### Options to allow the user to specify the set of libraries which are used.
4007 ### Use "--without-normal --with-shared" to allow the default model to be
4008 ### shared, for example.
4013 # common library maintenance symbols that are convenient for libtool scripts:
4014 LIB_CREATE='${AR} -cr'
4015 LIB_OBJECT='${OBJECTS}'
4019 # symbols used to prop libtool up to enable it to determine what it should be
4027 echo "$as_me:4027: checking if you want to build libraries with libtool" >&5
4028 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4030 # Check whether --with-libtool or --without-libtool was given.
4031 if test "${with_libtool+set}" = set; then
4032 withval="$with_libtool"
4033 with_libtool=$withval
4037 echo "$as_me:4037: result: $with_libtool" >&5
4038 echo "${ECHO_T}$with_libtool" >&6
4039 if test "$with_libtool" != "no"; then
4041 if test "$with_libtool" != "yes" ; then
4043 if test "x$prefix" != xNONE; then
4044 cf_path_syntax="$prefix"
4046 cf_path_syntax="$ac_default_prefix"
4049 case ".$with_libtool" in #(vi
4050 .\$\(*\)*|.\'*\'*) #(vi
4054 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4057 eval with_libtool="$with_libtool"
4058 case ".$with_libtool" in #(vi
4060 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4065 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4068 { { echo "$as_me:4068: error: expected a pathname, not \"$with_libtool\"" >&5
4069 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4070 { (exit 1); exit 1; }; }
4074 LIBTOOL=$with_libtool
4076 # Extract the first word of "libtool", so it can be a program name with args.
4077 set dummy libtool; ac_word=$2
4078 echo "$as_me:4078: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4088 ac_save_IFS=$IFS; IFS=$ac_path_separator
4090 for ac_dir in $ac_dummy; do
4092 test -z "$ac_dir" && ac_dir=.
4093 if $as_executable_p "$ac_dir/$ac_word"; then
4094 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4095 echo "$as_me:4095: found $ac_dir/$ac_word" >&5
4103 LIBTOOL=$ac_cv_path_LIBTOOL
4105 if test -n "$LIBTOOL"; then
4106 echo "$as_me:4106: result: $LIBTOOL" >&5
4107 echo "${ECHO_T}$LIBTOOL" >&6
4109 echo "$as_me:4109: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4114 if test -z "$LIBTOOL" ; then
4115 { { echo "$as_me:4115: error: Cannot find libtool" >&5
4116 echo "$as_me: error: Cannot find libtool" >&2;}
4117 { (exit 1); exit 1; }; }
4119 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} -o'
4120 LIB_OBJECT='${OBJECTS:.o=.lo}'
4122 LIB_CLEAN='${LIBTOOL} --mode=clean'
4123 LIB_COMPILE='${LIBTOOL} --mode=compile'
4124 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4125 LIB_INSTALL='${LIBTOOL} --mode=install'
4126 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4129 # Show the version of libtool
4130 echo "$as_me:4130: checking version of libtool" >&5
4131 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4133 # Save the version in a cache variable - this is not entirely a good
4134 # thing, but the version string from libtool is very ugly, and for
4135 # bug reports it might be useful to have the original string.
4136 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.].*//'`
4137 echo "$as_me:4137: result: $cf_cv_libtool_version" >&5
4138 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4139 if test -z "$cf_cv_libtool_version" ; then
4140 { { echo "$as_me:4140: error: This is not GNU libtool" >&5
4141 echo "$as_me: error: This is not GNU libtool" >&2;}
4142 { (exit 1); exit 1; }; }
4145 # special hack to add --tag option for C++ compiler
4146 case $cf_cv_libtool_version in
4148 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4151 LIBTOOL_CXX="$LIBTOOL"
4159 test -z "$LIBTOOL" && ECHO_LT=
4161 if test "$with_libtool" != "no" ; then
4163 cf_list_models="$cf_list_models libtool"
4167 echo "$as_me:4167: checking if you want to build shared libraries" >&5
4168 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4170 # Check whether --with-shared or --without-shared was given.
4171 if test "${with_shared+set}" = set; then
4172 withval="$with_shared"
4173 with_shared=$withval
4177 echo "$as_me:4177: result: $with_shared" >&5
4178 echo "${ECHO_T}$with_shared" >&6
4179 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4181 echo "$as_me:4181: checking if you want to build static libraries" >&5
4182 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4184 # Check whether --with-normal or --without-normal was given.
4185 if test "${with_normal+set}" = set; then
4186 withval="$with_normal"
4187 with_normal=$withval
4191 echo "$as_me:4191: result: $with_normal" >&5
4192 echo "${ECHO_T}$with_normal" >&6
4193 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4195 echo "$as_me:4195: checking if you want to build debug libraries" >&5
4196 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4198 # Check whether --with-debug or --without-debug was given.
4199 if test "${with_debug+set}" = set; then
4200 withval="$with_debug"
4205 echo "$as_me:4205: result: $with_debug" >&5
4206 echo "${ECHO_T}$with_debug" >&6
4207 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4209 echo "$as_me:4209: checking if you want to build profiling libraries" >&5
4210 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4212 # Check whether --with-profile or --without-profile was given.
4213 if test "${with_profile+set}" = set; then
4214 withval="$with_profile"
4215 with_profile=$withval
4219 echo "$as_me:4219: result: $with_profile" >&5
4220 echo "${ECHO_T}$with_profile" >&6
4221 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4225 ###############################################################################
4227 echo "$as_me:4227: checking for specified models" >&5
4228 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4229 test -z "$cf_list_models" && cf_list_models=normal
4230 test "$with_libtool" != "no" && cf_list_models=libtool
4231 echo "$as_me:4231: result: $cf_list_models" >&5
4232 echo "${ECHO_T}$cf_list_models" >&6
4234 ### Use the first model as the default, and save its suffix for use in building
4235 ### up test-applications.
4236 echo "$as_me:4236: checking for default model" >&5
4237 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4238 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4239 echo "$as_me:4239: result: $DFT_LWR_MODEL" >&5
4240 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4242 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4253 case $cf_cv_system_name in
4254 OS/2*) LIB_PREFIX='' ;;
4255 os2*) LIB_PREFIX='' ;;
4256 *) LIB_PREFIX='lib' ;;
4258 cf_prefix=$LIB_PREFIX
4260 LIB_PREFIX=$cf_prefix
4264 ###############################################################################
4266 echo "$as_me:4266: checking if you want to build a separate terminfo library" >&5
4267 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4269 # Check whether --with-termlib or --without-termlib was given.
4270 if test "${with_termlib+set}" = set; then
4271 withval="$with_termlib"
4272 with_termlib=$withval
4276 echo "$as_me:4276: result: $with_termlib" >&5
4277 echo "${ECHO_T}$with_termlib" >&6
4279 echo "$as_me:4279: checking if you want to build a separate tic library" >&5
4280 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4282 # Check whether --with-ticlib or --without-ticlib was given.
4283 if test "${with_ticlib+set}" = set; then
4284 withval="$with_ticlib"
4285 with_ticlib=$withval
4289 echo "$as_me:4289: result: $with_ticlib" >&5
4290 echo "${ECHO_T}$with_ticlib" >&6
4292 ### Checks for special libraries, must be done up-front.
4295 echo "$as_me:4295: checking if you want to link with the GPM mouse library" >&5
4296 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4298 # Check whether --with-gpm or --without-gpm was given.
4299 if test "${with_gpm+set}" = set; then
4305 echo "$as_me:4305: result: $with_gpm" >&5
4306 echo "${ECHO_T}$with_gpm" >&6
4308 if test "$with_gpm" != no ; then
4309 echo "$as_me:4309: checking for gpm.h" >&5
4310 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4311 if test "${ac_cv_header_gpm_h+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 cat >conftest.$ac_ext <<_ACEOF
4315 #line 4315 "configure"
4316 #include "confdefs.h"
4319 if { (eval echo "$as_me:4319: \"$ac_cpp conftest.$ac_ext\"") >&5
4320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4322 egrep -v '^ *\+' conftest.er1 >conftest.err
4324 cat conftest.err >&5
4325 echo "$as_me:4325: \$? = $ac_status" >&5
4326 (exit $ac_status); } >/dev/null; then
4327 if test -s conftest.err; then
4328 ac_cpp_err=$ac_c_preproc_warn_flag
4335 if test -z "$ac_cpp_err"; then
4336 ac_cv_header_gpm_h=yes
4338 echo "$as_me: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4340 ac_cv_header_gpm_h=no
4342 rm -f conftest.err conftest.$ac_ext
4344 echo "$as_me:4344: result: $ac_cv_header_gpm_h" >&5
4345 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4346 if test $ac_cv_header_gpm_h = yes; then
4348 cat >>confdefs.h <<\EOF
4349 #define HAVE_GPM_H 1
4352 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4353 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4355 echo "${as_me-configure}:4355: testing assuming we really have GPM library ..." 1>&5
4357 cat >>confdefs.h <<\EOF
4358 #define HAVE_LIBGPM 1
4362 echo "$as_me:4362: checking for Gpm_Open in -lgpm" >&5
4363 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4364 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 ac_check_lib_save_LIBS=$LIBS
4369 cat >conftest.$ac_ext <<_ACEOF
4370 #line 4370 "configure"
4371 #include "confdefs.h"
4373 /* Override any gcc2 internal prototype to avoid an error. */
4377 /* We use char because int might match the return type of a gcc2
4378 builtin and then its argument prototype would still apply. */
4388 rm -f conftest.$ac_objext conftest$ac_exeext
4389 if { (eval echo "$as_me:4389: \"$ac_link\"") >&5
4390 (eval $ac_link) 2>&5
4392 echo "$as_me:4392: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -s conftest$ac_exeext'
4395 { (eval echo "$as_me:4395: \"$ac_try\"") >&5
4398 echo "$as_me:4398: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 ac_cv_lib_gpm_Gpm_Open=yes
4402 echo "$as_me: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4404 ac_cv_lib_gpm_Gpm_Open=no
4406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4407 LIBS=$ac_check_lib_save_LIBS
4409 echo "$as_me:4409: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4410 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4411 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4415 { { echo "$as_me:4415: error: Cannot link with GPM library" >&5
4416 echo "$as_me: error: Cannot link with GPM library" >&2;}
4417 { (exit 1); exit 1; }; }
4425 test "$with_gpm" != maybe && { echo "$as_me:4425: WARNING: Cannot find GPM header" >&5
4426 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4433 if test "$with_gpm" != no ; then
4434 echo "$as_me:4434: checking if you want to load GPM dynamically" >&5
4435 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4437 # Check whether --with-dlsym or --without-dlsym was given.
4438 if test "${with_dlsym+set}" = set; then
4439 withval="$with_dlsym"
4444 echo "$as_me:4444: result: $with_dlsym" >&5
4445 echo "${ECHO_T}$with_dlsym" >&6
4446 if test "$with_dlsym" = yes ; then
4449 echo "$as_me:4449: checking for dlsym" >&5
4450 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4451 if test "${ac_cv_func_dlsym+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 cat >conftest.$ac_ext <<_ACEOF
4455 #line 4455 "configure"
4456 #include "confdefs.h"
4457 /* System header to define __stub macros and hopefully few prototypes,
4458 which can conflict with char dlsym (); below. */
4460 /* Override any gcc2 internal prototype to avoid an error. */
4464 /* We use char because int might match the return type of a gcc2
4465 builtin and then its argument prototype would still apply. */
4472 /* The GNU C library defines this for functions which it implements
4473 to always fail with ENOSYS. Some functions are actually named
4474 something starting with __ and the normal name is an alias. */
4475 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4485 rm -f conftest.$ac_objext conftest$ac_exeext
4486 if { (eval echo "$as_me:4486: \"$ac_link\"") >&5
4487 (eval $ac_link) 2>&5
4489 echo "$as_me:4489: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -s conftest$ac_exeext'
4492 { (eval echo "$as_me:4492: \"$ac_try\"") >&5
4495 echo "$as_me:4495: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 ac_cv_func_dlsym=yes
4499 echo "$as_me: failed program was:" >&5
4500 cat conftest.$ac_ext >&5
4503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4505 echo "$as_me:4505: result: $ac_cv_func_dlsym" >&5
4506 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4507 if test $ac_cv_func_dlsym = yes; then
4512 echo "$as_me:4512: checking for dlsym in -ldl" >&5
4513 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4514 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 ac_check_lib_save_LIBS=$LIBS
4519 cat >conftest.$ac_ext <<_ACEOF
4520 #line 4520 "configure"
4521 #include "confdefs.h"
4523 /* Override any gcc2 internal prototype to avoid an error. */
4527 /* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4538 rm -f conftest.$ac_objext conftest$ac_exeext
4539 if { (eval echo "$as_me:4539: \"$ac_link\"") >&5
4540 (eval $ac_link) 2>&5
4542 echo "$as_me:4542: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -s conftest$ac_exeext'
4545 { (eval echo "$as_me:4545: \"$ac_try\"") >&5
4548 echo "$as_me:4548: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_cv_lib_dl_dlsym=yes
4552 echo "$as_me: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4554 ac_cv_lib_dl_dlsym=no
4556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4557 LIBS=$ac_check_lib_save_LIBS
4559 echo "$as_me:4559: result: $ac_cv_lib_dl_dlsym" >&5
4560 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4561 if test $ac_cv_lib_dl_dlsym = yes; then
4569 if test "$cf_have_dlsym" = yes ; then
4570 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4572 echo "$as_me:4572: checking whether able to link to dl*() functions" >&5
4573 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4574 cat >conftest.$ac_ext <<_ACEOF
4575 #line 4575 "configure"
4576 #include "confdefs.h"
4583 if ((obj = dlopen("filename", 0)) != 0) {
4584 if (dlsym(obj, "symbolname") == 0) {
4592 rm -f conftest.$ac_objext conftest$ac_exeext
4593 if { (eval echo "$as_me:4593: \"$ac_link\"") >&5
4594 (eval $ac_link) 2>&5
4596 echo "$as_me:4596: \$? = $ac_status" >&5
4597 (exit $ac_status); } &&
4598 { ac_try='test -s conftest$ac_exeext'
4599 { (eval echo "$as_me:4599: \"$ac_try\"") >&5
4602 echo "$as_me:4602: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4605 cat >>confdefs.h <<\EOF
4606 #define HAVE_LIBDL 1
4610 echo "$as_me: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4613 { { echo "$as_me:4613: error: Cannot link test program for libdl" >&5
4614 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4615 { (exit 1); exit 1; }; }
4617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4618 echo "$as_me:4618: result: ok" >&5
4619 echo "${ECHO_T}ok" >&6
4621 { { echo "$as_me:4621: error: Cannot find dlsym function" >&5
4622 echo "$as_me: error: Cannot find dlsym function" >&2;}
4623 { (exit 1); exit 1; }; }
4626 if test "$with_gpm" != yes ; then
4627 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4629 echo "${as_me-configure}:4629: testing assuming soname for gpm is $with_gpm ..." 1>&5
4631 cf_cv_gpm_soname="$with_gpm"
4634 echo "$as_me:4634: checking for soname of gpm library" >&5
4635 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
4636 if test "${cf_cv_gpm_soname+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 cf_cv_gpm_soname=unknown
4641 if test "$cross_compiling" != yes ; then
4642 cat >conftest.$ac_ext <<CF_EOF
4646 if (Gpm_Open(0,0)) Gpm_Close();
4647 ${cf_cv_main_return:-return}(0);
4650 cf_save_LIBS="$LIBS"
4652 if { (eval echo "$as_me:4652: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>&5
4655 echo "$as_me:4655: \$? = $ac_status" >&5
4656 (exit $ac_status); } ; then
4657 if { (eval echo "$as_me:4657: \"$ac_link\"") >&5
4658 (eval $ac_link) 2>&5
4660 echo "$as_me:4660: \$? = $ac_status" >&5
4661 (exit $ac_status); } ; then
4662 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
4663 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
4667 LIBS="$cf_save_LIBS"
4671 echo "$as_me:4671: result: $cf_cv_gpm_soname" >&5
4672 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
4675 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
4676 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
4679 SHLIB_LIST="-ldl $SHLIB_LIST"
4681 SHLIB_LIST="-lgpm $SHLIB_LIST"
4683 cat >>confdefs.h <<\EOF
4684 #define HAVE_LIBGPM 1
4687 echo "$as_me:4687: checking for Gpm_Wgetch in -lgpm" >&5
4688 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
4689 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 ac_check_lib_save_LIBS=$LIBS
4694 cat >conftest.$ac_ext <<_ACEOF
4695 #line 4695 "configure"
4696 #include "confdefs.h"
4698 /* Override any gcc2 internal prototype to avoid an error. */
4702 /* We use char because int might match the return type of a gcc2
4703 builtin and then its argument prototype would still apply. */
4713 rm -f conftest.$ac_objext conftest$ac_exeext
4714 if { (eval echo "$as_me:4714: \"$ac_link\"") >&5
4715 (eval $ac_link) 2>&5
4717 echo "$as_me:4717: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -s conftest$ac_exeext'
4720 { (eval echo "$as_me:4720: \"$ac_try\"") >&5
4723 echo "$as_me:4723: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 ac_cv_lib_gpm_Gpm_Wgetch=yes
4727 echo "$as_me: failed program was:" >&5
4728 cat conftest.$ac_ext >&5
4729 ac_cv_lib_gpm_Gpm_Wgetch=no
4731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4732 LIBS=$ac_check_lib_save_LIBS
4734 echo "$as_me:4734: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
4735 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
4736 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
4738 echo "$as_me:4738: checking if GPM is weakly bound to curses library" >&5
4739 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
4740 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 cf_cv_check_gpm_wgetch=unknown
4745 if test "$cross_compiling" != yes ; then
4747 cat >conftest.$ac_ext <<CF_EOF
4752 ${cf_cv_main_return:-return}(0);
4756 cf_save_LIBS="$LIBS"
4757 # This only works if we can look at the symbol table. If a shared
4758 # library is stripped for install, we cannot use that. So we're forced
4759 # to rely on the static library, noting that some packagers may not
4761 LIBS="-static -lgpm -dynamic $LIBS"
4762 if { (eval echo "$as_me:4762: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>&5
4765 echo "$as_me:4765: \$? = $ac_status" >&5
4766 (exit $ac_status); } ; then
4767 if { (eval echo "$as_me:4767: \"$ac_link\"") >&5
4768 (eval $ac_link) 2>&5
4770 echo "$as_me:4770: \$? = $ac_status" >&5
4771 (exit $ac_status); } ; then
4772 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
4773 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
4774 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
4778 LIBS="$cf_save_LIBS"
4782 echo "$as_me:4782: result: $cf_cv_check_gpm_wgetch" >&5
4783 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
4785 if test "$cf_cv_check_gpm_wgetch" != yes ; then
4786 { echo "$as_me:4786: WARNING: GPM library is already linked with curses - read the FAQ" >&5
4787 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
4794 # not everyone has "test -c"
4795 if test -c /dev/sysmouse 2>/dev/null ; then
4796 echo "$as_me:4796: checking if you want to use sysmouse" >&5
4797 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
4799 # Check whether --with-sysmouse or --without-sysmouse was given.
4800 if test "${with_sysmouse+set}" = set; then
4801 withval="$with_sysmouse"
4802 cf_with_sysmouse=$withval
4804 cf_with_sysmouse=maybe
4806 if test "$cf_with_sysmouse" != no ; then
4807 cat >conftest.$ac_ext <<_ACEOF
4808 #line 4808 "configure"
4809 #include "confdefs.h"
4811 #include <osreldate.h>
4812 #if (__FreeBSD_version >= 400017)
4813 #include <sys/consio.h>
4814 #include <sys/fbio.h>
4816 #include <machine/console.h>
4823 struct mouse_info the_mouse;
4824 ioctl(0, CONS_MOUSECTL, &the_mouse);
4830 rm -f conftest.$ac_objext
4831 if { (eval echo "$as_me:4831: \"$ac_compile\"") >&5
4832 (eval $ac_compile) 2>&5
4834 echo "$as_me:4834: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try='test -s conftest.$ac_objext'
4837 { (eval echo "$as_me:4837: \"$ac_try\"") >&5
4840 echo "$as_me:4840: \$? = $ac_status" >&5
4841 (exit $ac_status); }; }; then
4842 cf_with_sysmouse=yes
4844 echo "$as_me: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4848 rm -f conftest.$ac_objext conftest.$ac_ext
4850 echo "$as_me:4850: result: $cf_with_sysmouse" >&5
4851 echo "${ECHO_T}$cf_with_sysmouse" >&6
4852 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
4853 #define USE_SYSMOUSE 1
4858 if test X"$CC_G_OPT" = X"" ; then
4860 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
4863 if test X"$CXX_G_OPT" = X"" ; then
4865 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
4868 echo "$as_me:4868: checking for default loader flags" >&5
4869 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
4870 case $DFT_LWR_MODEL in
4871 libtool) LD_MODEL='' ;;
4872 normal) LD_MODEL='' ;;
4873 debug) LD_MODEL=$CC_G_OPT ;;
4874 profile) LD_MODEL='-pg';;
4875 shared) LD_MODEL='' ;;
4877 echo "$as_me:4877: result: $LD_MODEL" >&5
4878 echo "${ECHO_T}$LD_MODEL" >&6
4880 case $DFT_LWR_MODEL in
4882 echo "$as_me:4882: checking if rpath option should be used" >&5
4883 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
4885 # Check whether --enable-rpath or --disable-rpath was given.
4886 if test "${enable_rpath+set}" = set; then
4887 enableval="$enable_rpath"
4888 cf_cv_ld_rpath=$enableval
4892 echo "$as_me:4892: result: $cf_cv_ld_rpath" >&5
4893 echo "${ECHO_T}$cf_cv_ld_rpath" >&6
4894 echo "$as_me:4894: checking if shared libraries should be relinked during install" >&5
4895 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
4897 # Check whether --enable-relink or --disable-relink was given.
4898 if test "${enable_relink+set}" = set; then