2 # From configure.in Revision: 1.452 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20080325.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
611 # Report the --help message.
613 if test "$ac_init_help" = "long"; then
614 # Omit some internal or obsolete options to make the list less imposing.
615 # This message is too long to be a string in the A/UX 3.1 sh.
617 \`configure' configures this package to adapt to many kinds of systems.
619 Usage: $0 [OPTION]... [VAR=VALUE]...
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE. See below for descriptions of some of the useful variables.
624 Defaults for the options are specified in brackets.
627 -h, --help display this help and exit
628 --help=short display options specific to this package
629 --help=recursive display the short help of all the included packages
630 -V, --version display version information and exit
631 -q, --quiet, --silent do not print \`checking...' messages
632 --cache-file=FILE cache test results in FILE [disabled]
633 -C, --config-cache alias for \`--cache-file=config.cache'
634 -n, --no-create do not create output files
635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
640 Installation directories:
641 --prefix=PREFIX install architecture-independent files in PREFIX
643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
651 For better control, use the options below.
653 Fine tuning of the installation directories:
654 --bindir=DIR user executables [EPREFIX/bin]
655 --sbindir=DIR system admin executables [EPREFIX/sbin]
656 --libexecdir=DIR program executables [EPREFIX/libexec]
657 --datadir=DIR read-only architecture-independent data [PREFIX/share]
658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
661 --libdir=DIR object code libraries [EPREFIX/lib]
662 --includedir=DIR C header files [PREFIX/include]
663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
664 --infodir=DIR info documentation [PREFIX/info]
665 --mandir=DIR man documentation [PREFIX/man]
671 --program-prefix=PREFIX prepend PREFIX to installed program names
672 --program-suffix=SUFFIX append SUFFIX to installed program names
673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 --target=TARGET configure for building compilers for TARGET [HOST]
682 if test -n "$ac_init_help"; then
687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
694 --with-rel-version=XXX override derived release version
695 --with-abi-version=XXX override derived ABI version
696 --with-system-type=XXX test: override derived host system-type
697 --without-cxx do not adjust ncurses bool to match C++
698 --without-cxx-binding do not build C++ binding and demo
699 --without-ada suppress check for Ada95, don't build demo
700 --without-progs suppress build with programs (e.g., tic)
701 --without-curses-h install curses.h as ncurses.h only
702 --enable-mixed-case tic should assume mixed-case filenames
703 --with-install-prefix prefixes actual install-location ($DESTDIR)
704 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
705 --with-build-cc=XXX the build C compiler ($BUILD_CC)
706 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
707 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
708 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
709 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
710 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
711 Options to Specify the Libraries Built/Used:
712 --with-libtool generate libraries with libtool
713 --with-shared generate shared-libraries
714 --with-normal generate normal-libraries (default)
715 --with-debug generate debug-libraries (default)
716 --with-profile generate profile-libraries
717 --with-termlib generate separate terminfo library
718 --with-ticlib generate separate tic library
719 --with-gpm use Alessandro Rubini's GPM library
720 --without-dlsym do not use dlsym() to load GPM dynamically
721 --with-sysmouse use sysmouse (FreeBSD console)
722 --enable-rpath use rpath option when generating shared libraries
723 --disable-relink relink shared libraries during install
724 --with-shlib-version=X Specify rel or abi version for shared libs
725 Fine-Tuning Your Configuration:
726 --disable-overwrite leave out the link to -lcurses
727 --disable-database do not use terminfo, only fallbacks/termcap
728 --with-database=XXX specify terminfo source to install
729 --with-hashed-db specify hashed-database library
730 --with-fallbacks=XXX specify list of fallback terminal descriptions
731 --without-xterm-new specify if xterm terminfo should be old version
732 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
733 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
734 --disable-big-core assume machine has little memory
735 --disable-big-strings assume compiler has only standard-size strings
736 --enable-termcap compile in termcap fallback support
737 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
738 --enable-getcap fast termcap load, no xrefs to terminfo
739 --enable-getcap-cache cache translated termcaps in ~/.terminfo
740 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
741 --disable-root-environ restrict environment when running as root
742 --enable-symlinks make tic use symbolic links not hard links
743 --enable-broken_linker compile with broken-linker support code
744 --enable-bsdpad recognize BSD-style prefix padding
745 --enable-widec compile with wide-char/UTF-8 code
746 --disable-lp64 allow chtype to be long (ignore _LP64)
747 --disable-largefile omit support for large files
748 --disable-tparm-varargs compile tparm() without varargs interface
749 --disable-tic-depends link tic library without explicit dependency on ncurses library
750 --with-bool=TYPE override fallback type of bool variable
751 --with-caps=alt compile with alternate Caps file
752 --with-chtype=TYPE override type of chtype
753 --with-ospeed=TYPE override type of ospeed variable
754 --with-mmask-t=TYPE override type of mmask_t
755 --with-rcs-ids compile-in RCS identifiers
756 Options to Specify How Manpages are Installed:
757 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
758 optionally formatted/catonly, e.g., gzip,formatted
759 --with-manpage-renames specify manpage-renaming
760 --with-manpage-aliases specify manpage-aliases using .so
761 --with-manpage-symlinks specify manpage-aliases using symlinks
762 --with-manpage-tbl specify manpage processing with tbl
764 --disable-ext-funcs disable function-extensions
765 --enable-const compile with extra/non-standard const
766 --enable-ext-colors compile for 256-color support
767 --enable-ext-mouse compile for extended mouse-encoding
768 --enable-no-padding compile with $NCURSES_NO_PADDING code
769 --enable-signed-char compile using signed Boolean's in term.h
770 --enable-sigwinch compile with SIGWINCH handler
771 --enable-tcap-names compile with user-definable terminal capabilities
773 --without-develop disable development options
774 --enable-hard-tabs compile with hard-tabs code
775 --enable-xmc-glitch compile with support for xmc (magic-cookie)
777 --disable-assumed-color do not assume anything about default-colors
778 --disable-hashmap compile without hashmap scrolling-optimization
779 --enable-colorfgbg compile with $COLORFGBG code
780 --with-pthread use POSIX thread library
781 --enable-weak-symbols enable weak-symbols for pthreads
782 --enable-reentrant compile with experimental reentrant code
783 --enable-safe-sprintf compile with experimental safe-sprintf code
784 --disable-scroll-hints compile without scroll-hints code
785 --enable-wgetch-events compile with experimental wgetch-events code
786 Testing/development Options:
787 --enable-echo build: display "compiling" commands (default)
788 --enable-warnings build: turn on GCC compiler warnings
789 --enable-assertions test: turn on generation of assertion code
790 --with-dmalloc test: use Gray Watson's dmalloc library
791 --with-dbmalloc test: use Conor Cahill's dbmalloc library
792 --with-valgrind test: use valgrind
793 --disable-leaks test: free permanent memory, analyze leaks
794 --enable-expanded test: generate functions for certain macros
795 --disable-macros test: use functions rather than macros
796 --with-trace test: add trace() function to all models of ncurses
797 Ada95 Binding Options:
798 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
799 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
800 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
802 Some influential environment variables:
803 CC C compiler command
804 CFLAGS C compiler flags
805 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
806 nonstandard directory <lib dir>
807 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
808 headers in a nonstandard directory <include dir>
810 CXX C++ compiler command
811 CXXFLAGS C++ compiler flags
812 CXXCPP C++ preprocessor
814 Use these variables to override the choices made by `configure' or to help
815 it to find libraries and programs with nonstandard names/locations.
820 if test "$ac_init_help" = "recursive"; then
821 # If there are subdirs, report their specific --help.
823 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
825 # A "../" for each directory in /$ac_subdir.
826 ac_dots=`echo $ac_subdir |
827 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
830 .) # No --srcdir option. We are building in place.
831 ac_sub_srcdir=$srcdir ;;
832 [\\/]* | ?:[\\/]* ) # Absolute path.
833 ac_sub_srcdir=$srcdir/$ac_subdir ;;
835 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
838 # Check for guested configure; otherwise get Cygnus style configure.
839 if test -f $ac_sub_srcdir/configure.gnu; then
841 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
842 elif test -f $ac_sub_srcdir/configure; then
844 $SHELL $ac_sub_srcdir/configure --help=recursive
845 elif test -f $ac_sub_srcdir/configure.ac ||
846 test -f $ac_sub_srcdir/configure.in; then
850 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
856 test -n "$ac_init_help" && exit 0
857 if $ac_init_version; then
860 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
861 Free Software Foundation, Inc.
862 This configure script is free software; the Free Software Foundation
863 gives unlimited permission to copy, distribute and modify it.
869 This file contains any messages produced by compilers while
870 running configure, to aid debugging if configure makes a mistake.
872 It was created by $as_me, which was
873 generated by GNU Autoconf 2.52.20080325. Invocation command line was
884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
891 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
893 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
894 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
896 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
897 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
898 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
899 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
913 # Keep a trace of the command line.
914 # Strip out --no-create and --no-recursion so they do not pile up.
915 # Also quote any args containing shell meta-characters.
921 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
922 | --no-cr | --no-c) ;;
923 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
924 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
925 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
926 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
927 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
929 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
932 # Get rid of the leading space.
935 # When interrupted or exit'd, cleanup temporary files, and complete
936 # config.log. We remove comments because anyway the quotes in there
937 # would cause problems or look ugly.
939 # Save into config.log some information that might help in debugging.
941 echo "## ----------------- ##" >&5
942 echo "## Cache variables. ##" >&5
943 echo "## ----------------- ##" >&5
945 # The following way of writing the cache mishandles newlines in values,
948 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
951 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
956 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
960 sed "/^$/d" confdefs.h >conftest.log
961 if test -s conftest.log; then
963 echo "## ------------ ##" >&5
964 echo "## confdefs.h. ##" >&5
965 echo "## ------------ ##" >&5
970 test "$ac_signal" != 0 &&
971 echo "$as_me: caught signal $ac_signal" >&5
972 echo "$as_me: exit $exit_status" >&5
973 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
976 for ac_signal in 1 2 13 15; do
977 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
981 # confdefs.h avoids OS command line length limits that DEFS can exceed.
982 rm -rf conftest* confdefs.h
983 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
986 # Let the site file select an alternate cache file if it wants to.
987 # Prefer explicitly selected file to automatically selected ones.
988 if test -z "$CONFIG_SITE"; then
989 if test "x$prefix" != xNONE; then
990 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
992 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
995 for ac_site_file in $CONFIG_SITE; do
996 if test -r "$ac_site_file"; then
997 { echo "$as_me:997: loading site script $ac_site_file" >&5
998 echo "$as_me: loading site script $ac_site_file" >&6;}
999 cat "$ac_site_file" >&5
1004 if test -r "$cache_file"; then
1005 # Some versions of bash will fail to source /dev/null (special
1006 # files actually), so we avoid doing that.
1007 if test -f "$cache_file"; then
1008 { echo "$as_me:1008: loading cache $cache_file" >&5
1009 echo "$as_me: loading cache $cache_file" >&6;}
1011 [\\/]* | ?:[\\/]* ) . $cache_file;;
1012 *) . ./$cache_file;;
1016 { echo "$as_me:1016: creating cache $cache_file" >&5
1017 echo "$as_me: creating cache $cache_file" >&6;}
1021 # Check that the precious variables saved in the cache have kept the same
1023 ac_cache_corrupted=false
1024 for ac_var in `(set) 2>&1 |
1025 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1026 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1027 eval ac_new_set=\$ac_env_${ac_var}_set
1028 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1029 eval ac_new_val="\$ac_env_${ac_var}_value"
1030 case $ac_old_set,$ac_new_set in
1032 { echo "$as_me:1032: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1033 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1034 ac_cache_corrupted=: ;;
1036 { echo "$as_me:1036: error: \`$ac_var' was not set in the previous run" >&5
1037 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1038 ac_cache_corrupted=: ;;
1041 if test "x$ac_old_val" != "x$ac_new_val"; then
1042 { echo "$as_me:1042: error: \`$ac_var' has changed since the previous run:" >&5
1043 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1044 { echo "$as_me:1044: former value: $ac_old_val" >&5
1045 echo "$as_me: former value: $ac_old_val" >&2;}
1046 { echo "$as_me:1046: current value: $ac_new_val" >&5
1047 echo "$as_me: current value: $ac_new_val" >&2;}
1048 ac_cache_corrupted=:
1051 # Pass precious variables to config.status. It doesn't matter if
1052 # we pass some twice (in addition to the command line arguments).
1053 if test "$ac_new_set" = set; then
1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1057 ac_configure_args="$ac_configure_args '$ac_arg'"
1059 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1064 if $ac_cache_corrupted; then
1065 { echo "$as_me:1065: error: changes in the environment can compromise the build" >&5
1066 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1067 { { echo "$as_me:1067: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1068 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1069 { (exit 1); exit 1; }; }
1073 ac_cpp='$CPP $CPPFLAGS'
1074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1077 ac_main_return=return
1079 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1080 *c*,-n*) ECHO_N= ECHO_C='
1082 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1083 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1085 echo "#! $SHELL" >conftest.sh
1086 echo "exit 0" >>conftest.sh
1087 chmod +x conftest.sh
1088 if { (echo "$as_me:1088: PATH=\".;.\"; conftest.sh") >&5
1089 (PATH=".;."; conftest.sh) 2>&5
1091 echo "$as_me:1091: \$? = $ac_status" >&5
1092 (exit $ac_status); }; then
1093 ac_path_separator=';'
1097 PATH_SEPARATOR="$ac_path_separator"
1100 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1104 echo "$as_me:1104: checking for egrep" >&5
1105 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1106 if test "${ac_cv_prog_egrep+set}" = set; then
1107 echo $ECHO_N "(cached) $ECHO_C" >&6
1109 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1110 then ac_cv_prog_egrep='grep -E'
1111 else ac_cv_prog_egrep='egrep'
1114 echo "$as_me:1114: result: $ac_cv_prog_egrep" >&5
1115 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1116 EGREP=$ac_cv_prog_egrep
1118 test -z "$EGREP" && { { echo "$as_me:1118: error: No egrep program found" >&5
1119 echo "$as_me: error: No egrep program found" >&2;}
1120 { (exit 1); exit 1; }; }
1122 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1123 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1124 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1125 cf_cv_abi_version=${NCURSES_MAJOR}
1126 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1127 cf_cv_timestamp=`date`
1128 echo "$as_me:1128: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1129 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1131 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1133 # Check whether --with-rel-version or --without-rel-version was given.
1134 if test "${with_rel_version+set}" = set; then
1135 withval="$with_rel_version"
1136 { echo "$as_me:1136: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1137 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1138 cf_cv_rel_version=$withval
1141 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1142 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1144 if test -n "$NCURSES_MAJOR" ; then
1145 case $NCURSES_MAJOR in #(vi
1149 { { echo "$as_me:1149: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1150 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1151 { (exit 1); exit 1; }; }
1155 { { echo "$as_me:1155: error: Release major-version value is empty" >&5
1156 echo "$as_me: error: Release major-version value is empty" >&2;}
1157 { (exit 1); exit 1; }; }
1160 if test -n "$NCURSES_MINOR" ; then
1161 case $NCURSES_MINOR in #(vi
1165 { { echo "$as_me:1165: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1166 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1167 { (exit 1); exit 1; }; }
1171 { { echo "$as_me:1171: error: Release minor-version value is empty" >&5
1172 echo "$as_me: error: Release minor-version value is empty" >&2;}
1173 { (exit 1); exit 1; }; }
1176 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1178 # Check whether --with-abi-version or --without-abi-version was given.
1179 if test "${with_abi_version+set}" = set; then
1180 withval="$with_abi_version"
1181 { echo "$as_me:1181: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1182 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1183 cf_cv_abi_version=$withval
1186 if test -n "$cf_cv_abi_version" ; then
1187 case $cf_cv_abi_version in #(vi
1191 { { echo "$as_me:1191: error: ABI version is not a number: $cf_cv_abi_version" >&5
1192 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1193 { (exit 1); exit 1; }; }
1197 { { echo "$as_me:1197: error: ABI version value is empty" >&5
1198 echo "$as_me: error: ABI version value is empty" >&2;}
1199 { (exit 1); exit 1; }; }
1203 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1204 if test -f $ac_dir/install-sh; then
1206 ac_install_sh="$ac_aux_dir/install-sh -c"
1208 elif test -f $ac_dir/install.sh; then
1210 ac_install_sh="$ac_aux_dir/install.sh -c"
1212 elif test -f $ac_dir/shtool; then
1214 ac_install_sh="$ac_aux_dir/shtool install -c"
1218 if test -z "$ac_aux_dir"; then
1219 { { echo "$as_me:1219: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1220 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1221 { (exit 1); exit 1; }; }
1223 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1224 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1225 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1227 # Make sure we can run config.sub.
1228 $ac_config_sub sun4 >/dev/null 2>&1 ||
1229 { { echo "$as_me:1229: error: cannot run $ac_config_sub" >&5
1230 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1231 { (exit 1); exit 1; }; }
1233 echo "$as_me:1233: checking build system type" >&5
1234 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1235 if test "${ac_cv_build+set}" = set; then
1236 echo $ECHO_N "(cached) $ECHO_C" >&6
1238 ac_cv_build_alias=$build_alias
1239 test -z "$ac_cv_build_alias" &&
1240 ac_cv_build_alias=`$ac_config_guess`
1241 test -z "$ac_cv_build_alias" &&
1242 { { echo "$as_me:1242: error: cannot guess build type; you must specify one" >&5
1243 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1244 { (exit 1); exit 1; }; }
1245 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1246 { { echo "$as_me:1246: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1247 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1248 { (exit 1); exit 1; }; }
1251 echo "$as_me:1251: result: $ac_cv_build" >&5
1252 echo "${ECHO_T}$ac_cv_build" >&6
1254 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1255 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1256 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1258 echo "$as_me:1258: checking host system type" >&5
1259 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1260 if test "${ac_cv_host+set}" = set; then
1261 echo $ECHO_N "(cached) $ECHO_C" >&6
1263 ac_cv_host_alias=$host_alias
1264 test -z "$ac_cv_host_alias" &&
1265 ac_cv_host_alias=$ac_cv_build_alias
1266 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1267 { { echo "$as_me:1267: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1268 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1269 { (exit 1); exit 1; }; }
1272 echo "$as_me:1272: result: $ac_cv_host" >&5
1273 echo "${ECHO_T}$ac_cv_host" >&6
1275 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1276 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1277 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1279 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1280 echo "$as_me:1280: checking target system type" >&5
1281 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1282 if test "${ac_cv_target+set}" = set; then
1283 echo $ECHO_N "(cached) $ECHO_C" >&6
1285 ac_cv_target_alias=$target_alias
1286 test "x$ac_cv_target_alias" = "x" &&
1287 ac_cv_target_alias=$ac_cv_host_alias
1288 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1289 { { echo "$as_me:1289: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1290 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1291 { (exit 1); exit 1; }; }
1294 echo "$as_me:1294: result: $ac_cv_target" >&5
1295 echo "${ECHO_T}$ac_cv_target" >&6
1296 target=$ac_cv_target
1297 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1298 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1299 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1301 # The aliases save the names the user supplied, while $host etc.
1302 # will get canonicalized.
1303 test -n "$target_alias" &&
1304 test "$program_prefix$program_suffix$program_transform_name" = \
1306 program_prefix=${target_alias}-
1307 system_name="$host_os"
1309 system_name="`(uname -s -r) 2>/dev/null`"
1310 if test -z "$system_name" ; then
1311 system_name="`(hostname) 2>/dev/null`"
1314 test -n "$system_name" && cat >>confdefs.h <<EOF
1315 #define SYSTEM_NAME "$system_name"
1318 if test "${cf_cv_system_name+set}" = set; then
1319 echo $ECHO_N "(cached) $ECHO_C" >&6
1321 cf_cv_system_name="$system_name"
1324 test -z "$system_name" && system_name="$cf_cv_system_name"
1325 test -n "$cf_cv_system_name" && echo "$as_me:1325: result: Configuring for $cf_cv_system_name" >&5
1326 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1328 if test ".$system_name" != ".$cf_cv_system_name" ; then
1329 echo "$as_me:1329: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1330 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1331 { { echo "$as_me:1331: error: \"Please remove config.cache and try again.\"" >&5
1332 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1333 { (exit 1); exit 1; }; }
1336 # Check whether --with-system-type or --without-system-type was given.
1337 if test "${with_system_type+set}" = set; then
1338 withval="$with_system_type"
1339 { echo "$as_me:1339: WARNING: overriding system type to $withval" >&5
1340 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1341 cf_cv_system_name=$withval
1344 ### Save the given $CFLAGS to allow user-override.
1345 cf_user_CFLAGS="$CFLAGS"
1347 ### Default install-location
1349 echo "$as_me:1349: checking for prefix" >&5
1350 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1351 if test "x$prefix" = "xNONE" ; then
1352 case "$cf_cv_system_name" in
1353 # non-vendor systems don't have a conflict
1354 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1357 *) prefix=$ac_default_prefix
1361 echo "$as_me:1361: result: $prefix" >&5
1362 echo "${ECHO_T}$prefix" >&6
1364 if test "x$prefix" = "xNONE" ; then
1365 echo "$as_me:1365: checking for default include-directory" >&5
1366 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1367 test -n "$verbose" && echo 1>&6
1370 $includedir/ncurses \
1372 $prefix/include/ncurses \
1373 /usr/local/include \
1374 /usr/local/include/ncurses \
1376 /usr/include/ncurses
1378 cf_dir=`eval echo $cf_symbol`
1379 if test -f $cf_dir/curses.h ; then
1380 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1381 includedir="$cf_symbol"
1382 test -n "$verbose" && echo $ac_n " found " 1>&6
1386 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1388 echo "$as_me:1388: result: $includedir" >&5
1389 echo "${ECHO_T}$includedir" >&6
1392 ### Checks for programs.
1394 ac_cpp='$CPP $CPPFLAGS'
1395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1398 ac_main_return=return
1399 if test -n "$ac_tool_prefix"; then
1400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1401 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1402 echo "$as_me:1402: checking for $ac_word" >&5
1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404 if test "${ac_cv_prog_CC+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 if test -n "$CC"; then
1408 ac_cv_prog_CC="$CC" # Let the user override the test.
1410 ac_save_IFS=$IFS; IFS=$ac_path_separator
1412 for ac_dir in $ac_dummy; do
1414 test -z "$ac_dir" && ac_dir=.
1415 $as_executable_p "$ac_dir/$ac_word" || continue
1416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1417 echo "$as_me:1417: found $ac_dir/$ac_word" >&5
1424 if test -n "$CC"; then
1425 echo "$as_me:1425: result: $CC" >&5
1426 echo "${ECHO_T}$CC" >&6
1428 echo "$as_me:1428: result: no" >&5
1429 echo "${ECHO_T}no" >&6
1433 if test -z "$ac_cv_prog_CC"; then
1435 # Extract the first word of "gcc", so it can be a program name with args.
1436 set dummy gcc; ac_word=$2
1437 echo "$as_me:1437: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$ac_ct_CC"; then
1443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1445 ac_save_IFS=$IFS; IFS=$ac_path_separator
1447 for ac_dir in $ac_dummy; do
1449 test -z "$ac_dir" && ac_dir=.
1450 $as_executable_p "$ac_dir/$ac_word" || continue
1451 ac_cv_prog_ac_ct_CC="gcc"
1452 echo "$as_me:1452: found $ac_dir/$ac_word" >&5
1458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1459 if test -n "$ac_ct_CC"; then
1460 echo "$as_me:1460: result: $ac_ct_CC" >&5
1461 echo "${ECHO_T}$ac_ct_CC" >&6
1463 echo "$as_me:1463: result: no" >&5
1464 echo "${ECHO_T}no" >&6
1472 if test -z "$CC"; then
1473 if test -n "$ac_tool_prefix"; then
1474 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}cc; ac_word=$2
1476 echo "$as_me:1476: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 if test -n "$CC"; then
1482 ac_cv_prog_CC="$CC" # Let the user override the test.
1484 ac_save_IFS=$IFS; IFS=$ac_path_separator
1486 for ac_dir in $ac_dummy; do
1488 test -z "$ac_dir" && ac_dir=.
1489 $as_executable_p "$ac_dir/$ac_word" || continue
1490 ac_cv_prog_CC="${ac_tool_prefix}cc"
1491 echo "$as_me:1491: found $ac_dir/$ac_word" >&5
1498 if test -n "$CC"; then
1499 echo "$as_me:1499: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1502 echo "$as_me:1502: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1507 if test -z "$ac_cv_prog_CC"; then
1509 # Extract the first word of "cc", so it can be a program name with args.
1510 set dummy cc; ac_word=$2
1511 echo "$as_me:1511: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 if test -n "$ac_ct_CC"; then
1517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1519 ac_save_IFS=$IFS; IFS=$ac_path_separator
1521 for ac_dir in $ac_dummy; do
1523 test -z "$ac_dir" && ac_dir=.
1524 $as_executable_p "$ac_dir/$ac_word" || continue
1525 ac_cv_prog_ac_ct_CC="cc"
1526 echo "$as_me:1526: found $ac_dir/$ac_word" >&5
1532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1533 if test -n "$ac_ct_CC"; then
1534 echo "$as_me:1534: result: $ac_ct_CC" >&5
1535 echo "${ECHO_T}$ac_ct_CC" >&6
1537 echo "$as_me:1537: result: no" >&5
1538 echo "${ECHO_T}no" >&6
1547 if test -z "$CC"; then
1548 # Extract the first word of "cc", so it can be a program name with args.
1549 set dummy cc; ac_word=$2
1550 echo "$as_me:1550: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_prog_CC+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 if test -n "$CC"; then
1556 ac_cv_prog_CC="$CC" # Let the user override the test.
1559 ac_save_IFS=$IFS; IFS=$ac_path_separator
1561 for ac_dir in $ac_dummy; do
1563 test -z "$ac_dir" && ac_dir=.
1564 $as_executable_p "$ac_dir/$ac_word" || continue
1565 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1566 ac_prog_rejected=yes
1570 echo "$as_me:1570: found $ac_dir/$ac_word" >&5
1574 if test $ac_prog_rejected = yes; then
1575 # We found a bogon in the path, so make sure we never use it.
1576 set dummy $ac_cv_prog_CC
1578 if test $# != 0; then
1579 # We chose a different compiler from the bogus one.
1580 # However, it has the same basename, so the bogon will be chosen
1581 # first if we set CC to just the basename; use the full file name.
1583 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1591 if test -n "$CC"; then
1592 echo "$as_me:1592: result: $CC" >&5
1593 echo "${ECHO_T}$CC" >&6
1595 echo "$as_me:1595: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1600 if test -z "$CC"; then
1601 if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1606 echo "$as_me:1606: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1614 ac_save_IFS=$IFS; IFS=$ac_path_separator
1616 for ac_dir in $ac_dummy; do
1618 test -z "$ac_dir" && ac_dir=.
1619 $as_executable_p "$ac_dir/$ac_word" || continue
1620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1621 echo "$as_me:1621: found $ac_dir/$ac_word" >&5
1628 if test -n "$CC"; then
1629 echo "$as_me:1629: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1632 echo "$as_me:1632: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1636 test -n "$CC" && break
1639 if test -z "$CC"; then
1643 # Extract the first word of "$ac_prog", so it can be a program name with args.
1644 set dummy $ac_prog; ac_word=$2
1645 echo "$as_me:1645: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 ac_save_IFS=$IFS; IFS=$ac_path_separator
1655 for ac_dir in $ac_dummy; do
1657 test -z "$ac_dir" && ac_dir=.
1658 $as_executable_p "$ac_dir/$ac_word" || continue
1659 ac_cv_prog_ac_ct_CC="$ac_prog"
1660 echo "$as_me:1660: found $ac_dir/$ac_word" >&5
1666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1667 if test -n "$ac_ct_CC"; then
1668 echo "$as_me:1668: result: $ac_ct_CC" >&5
1669 echo "${ECHO_T}$ac_ct_CC" >&6
1671 echo "$as_me:1671: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1675 test -n "$ac_ct_CC" && break
1683 test -z "$CC" && { { echo "$as_me:1683: error: no acceptable cc found in \$PATH" >&5
1684 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1685 { (exit 1); exit 1; }; }
1687 # Provide some information about the compiler.
1688 echo "$as_me:1688:" \
1689 "checking for C compiler version" >&5
1690 ac_compiler=`set X $ac_compile; echo $2`
1691 { (eval echo "$as_me:1691: \"$ac_compiler --version </dev/null >&5\"") >&5
1692 (eval $ac_compiler --version </dev/null >&5) 2>&5
1694 echo "$as_me:1694: \$? = $ac_status" >&5
1695 (exit $ac_status); }
1696 { (eval echo "$as_me:1696: \"$ac_compiler -v </dev/null >&5\"") >&5
1697 (eval $ac_compiler -v </dev/null >&5) 2>&5
1699 echo "$as_me:1699: \$? = $ac_status" >&5
1700 (exit $ac_status); }
1701 { (eval echo "$as_me:1701: \"$ac_compiler -V </dev/null >&5\"") >&5
1702 (eval $ac_compiler -V </dev/null >&5) 2>&5
1704 echo "$as_me:1704: \$? = $ac_status" >&5
1705 (exit $ac_status); }
1707 cat >conftest.$ac_ext <<_ACEOF
1708 #line 1708 "configure"
1709 #include "confdefs.h"
1719 ac_clean_files_save=$ac_clean_files
1720 ac_clean_files="$ac_clean_files a.out a.exe"
1721 # Try to create an executable without -o first, disregard a.out.
1722 # It will help us diagnose broken compilers, and finding out an intuition
1724 echo "$as_me:1724: checking for C compiler default output" >&5
1725 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1726 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1727 if { (eval echo "$as_me:1727: \"$ac_link_default\"") >&5
1728 (eval $ac_link_default) 2>&5
1730 echo "$as_me:1730: \$? = $ac_status" >&5
1731 (exit $ac_status); }; then
1732 # Find the output, starting from the most likely. This scheme is
1733 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1735 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1736 ls a.out conftest 2>/dev/null;
1737 ls a.* conftest.* 2>/dev/null`; do
1739 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1740 a.out ) # We found the default executable, but exeext='' is most
1743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1744 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1751 echo "$as_me: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1753 { { echo "$as_me:1753: error: C compiler cannot create executables" >&5
1754 echo "$as_me: error: C compiler cannot create executables" >&2;}
1755 { (exit 77); exit 77; }; }
1758 ac_exeext=$ac_cv_exeext
1759 echo "$as_me:1759: result: $ac_file" >&5
1760 echo "${ECHO_T}$ac_file" >&6
1762 # Check the compiler produces executables we can run. If not, either
1763 # the compiler is broken, or we cross compile.
1764 echo "$as_me:1764: checking whether the C compiler works" >&5
1765 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1766 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1767 # If not cross compiling, check that we can run a simple program.
1768 if test "$cross_compiling" != yes; then
1769 if { ac_try='./$ac_file'
1770 { (eval echo "$as_me:1770: \"$ac_try\"") >&5
1773 echo "$as_me:1773: \$? = $ac_status" >&5
1774 (exit $ac_status); }; }; then
1777 if test "$cross_compiling" = maybe; then
1780 { { echo "$as_me:1780: error: cannot run C compiled programs.
1781 If you meant to cross compile, use \`--host'." >&5
1782 echo "$as_me: error: cannot run C compiled programs.
1783 If you meant to cross compile, use \`--host'." >&2;}
1784 { (exit 1); exit 1; }; }
1788 echo "$as_me:1788: result: yes" >&5
1789 echo "${ECHO_T}yes" >&6
1791 rm -f a.out a.exe conftest$ac_cv_exeext
1792 ac_clean_files=$ac_clean_files_save
1793 # Check the compiler produces executables we can run. If not, either
1794 # the compiler is broken, or we cross compile.
1795 echo "$as_me:1795: checking whether we are cross compiling" >&5
1796 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1797 echo "$as_me:1797: result: $cross_compiling" >&5
1798 echo "${ECHO_T}$cross_compiling" >&6
1800 echo "$as_me:1800: checking for executable suffix" >&5
1801 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1802 if { (eval echo "$as_me:1802: \"$ac_link\"") >&5
1803 (eval $ac_link) 2>&5
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); }; then
1807 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1808 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1809 # work properly (i.e., refer to `conftest.exe'), while it won't with
1811 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1813 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1814 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1821 { { echo "$as_me:1821: error: cannot compute EXEEXT: cannot compile and link" >&5
1822 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1823 { (exit 1); exit 1; }; }
1826 rm -f conftest$ac_cv_exeext
1827 echo "$as_me:1827: result: $ac_cv_exeext" >&5
1828 echo "${ECHO_T}$ac_cv_exeext" >&6
1830 rm -f conftest.$ac_ext
1831 EXEEXT=$ac_cv_exeext
1833 echo "$as_me:1833: checking for object suffix" >&5
1834 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1835 if test "${ac_cv_objext+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 cat >conftest.$ac_ext <<_ACEOF
1839 #line 1839 "configure"
1840 #include "confdefs.h"
1850 rm -f conftest.o conftest.obj
1851 if { (eval echo "$as_me:1851: \"$ac_compile\"") >&5
1852 (eval $ac_compile) 2>&5
1854 echo "$as_me:1854: \$? = $ac_status" >&5
1855 (exit $ac_status); }; then
1856 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1859 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1864 echo "$as_me: failed program was:" >&5
1865 cat conftest.$ac_ext >&5
1866 { { echo "$as_me:1866: error: cannot compute OBJEXT: cannot compile" >&5
1867 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1868 { (exit 1); exit 1; }; }
1871 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1873 echo "$as_me:1873: result: $ac_cv_objext" >&5
1874 echo "${ECHO_T}$ac_cv_objext" >&6
1875 OBJEXT=$ac_cv_objext
1877 echo "$as_me:1877: checking whether we are using the GNU C compiler" >&5
1878 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1879 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 cat >conftest.$ac_ext <<_ACEOF
1883 #line 1883 "configure"
1884 #include "confdefs.h"
1897 rm -f conftest.$ac_objext
1898 if { (eval echo "$as_me:1898: \"$ac_compile\"") >&5
1899 (eval $ac_compile) 2>&5
1901 echo "$as_me:1901: \$? = $ac_status" >&5
1902 (exit $ac_status); } &&
1903 { ac_try='test -s conftest.$ac_objext'
1904 { (eval echo "$as_me:1904: \"$ac_try\"") >&5
1907 echo "$as_me:1907: \$? = $ac_status" >&5
1908 (exit $ac_status); }; }; then
1911 echo "$as_me: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1915 rm -f conftest.$ac_objext conftest.$ac_ext
1916 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1919 echo "$as_me:1919: result: $ac_cv_c_compiler_gnu" >&5
1920 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1921 GCC=`test $ac_compiler_gnu = yes && echo yes`
1922 ac_test_CFLAGS=${CFLAGS+set}
1923 ac_save_CFLAGS=$CFLAGS
1925 echo "$as_me:1925: checking whether $CC accepts -g" >&5
1926 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1927 if test "${ac_cv_prog_cc_g+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 cat >conftest.$ac_ext <<_ACEOF
1931 #line 1931 "configure"
1932 #include "confdefs.h"
1942 rm -f conftest.$ac_objext
1943 if { (eval echo "$as_me:1943: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>&5
1946 echo "$as_me:1946: \$? = $ac_status" >&5
1947 (exit $ac_status); } &&
1948 { ac_try='test -s conftest.$ac_objext'
1949 { (eval echo "$as_me:1949: \"$ac_try\"") >&5
1952 echo "$as_me:1952: \$? = $ac_status" >&5
1953 (exit $ac_status); }; }; then
1956 echo "$as_me: failed program was:" >&5
1957 cat conftest.$ac_ext >&5
1960 rm -f conftest.$ac_objext conftest.$ac_ext
1962 echo "$as_me:1962: result: $ac_cv_prog_cc_g" >&5
1963 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1964 if test "$ac_test_CFLAGS" = set; then
1965 CFLAGS=$ac_save_CFLAGS
1966 elif test $ac_cv_prog_cc_g = yes; then
1967 if test "$GCC" = yes; then
1973 if test "$GCC" = yes; then
1979 # Some people use a C++ compiler to compile C. Since we use `exit',
1980 # in C++ we need to declare it. In case someone uses the same compiler
1981 # for both compiling C and C++ we need to have the C++ compiler decide
1982 # the declaration of exit, since it's the most demanding environment.
1983 cat >conftest.$ac_ext <<_ACEOF
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:1989: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>&5
1992 echo "$as_me:1992: \$? = $ac_status" >&5
1993 (exit $ac_status); } &&
1994 { ac_try='test -s conftest.$ac_objext'
1995 { (eval echo "$as_me:1995: \"$ac_try\"") >&5
1998 echo "$as_me:1998: \$? = $ac_status" >&5
1999 (exit $ac_status); }; }; then
2000 for ac_declaration in \
2002 '#include <stdlib.h>' \
2003 'extern "C" void std::exit (int) throw (); using std::exit;' \
2004 'extern "C" void std::exit (int); using std::exit;' \
2005 'extern "C" void exit (int) throw ();' \
2006 'extern "C" void exit (int);' \
2009 cat >conftest.$ac_ext <<_ACEOF
2010 #line 2010 "configure"
2011 #include "confdefs.h"
2022 rm -f conftest.$ac_objext
2023 if { (eval echo "$as_me:2023: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>&5
2026 echo "$as_me:2026: \$? = $ac_status" >&5
2027 (exit $ac_status); } &&
2028 { ac_try='test -s conftest.$ac_objext'
2029 { (eval echo "$as_me:2029: \"$ac_try\"") >&5
2032 echo "$as_me:2032: \$? = $ac_status" >&5
2033 (exit $ac_status); }; }; then
2036 echo "$as_me: failed program was:" >&5
2037 cat conftest.$ac_ext >&5
2040 rm -f conftest.$ac_objext conftest.$ac_ext
2041 cat >conftest.$ac_ext <<_ACEOF
2042 #line 2042 "configure"
2043 #include "confdefs.h"
2053 rm -f conftest.$ac_objext
2054 if { (eval echo "$as_me:2054: \"$ac_compile\"") >&5
2055 (eval $ac_compile) 2>&5
2057 echo "$as_me:2057: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try='test -s conftest.$ac_objext'
2060 { (eval echo "$as_me:2060: \"$ac_try\"") >&5
2063 echo "$as_me:2063: \$? = $ac_status" >&5
2064 (exit $ac_status); }; }; then
2067 echo "$as_me: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2070 rm -f conftest.$ac_objext conftest.$ac_ext
2073 if test -n "$ac_declaration"; then
2074 echo '#ifdef __cplusplus' >>confdefs.h
2075 echo $ac_declaration >>confdefs.h
2076 echo '#endif' >>confdefs.h
2080 echo "$as_me: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2083 rm -f conftest.$ac_objext conftest.$ac_ext
2085 ac_cpp='$CPP $CPPFLAGS'
2086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089 ac_main_return=return
2092 if test "$GCC" = yes ; then
2093 echo "$as_me:2093: checking version of $CC" >&5
2094 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2095 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2096 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2097 echo "$as_me:2097: result: $GCC_VERSION" >&5
2098 echo "${ECHO_T}$GCC_VERSION" >&6
2102 ac_cpp='$CPP $CPPFLAGS'
2103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2106 ac_main_return=return
2107 echo "$as_me:2107: checking how to run the C preprocessor" >&5
2108 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2109 # On Suns, sometimes $CPP names a directory.
2110 if test -n "$CPP" && test -d "$CPP"; then
2113 if test -z "$CPP"; then
2114 if test "${ac_cv_prog_CPP+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 # Double quotes because CPP needs to be expanded
2118 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2121 for ac_c_preproc_warn_flag in '' yes
2123 # Use a header file that comes with gcc, so configuring glibc
2124 # with a fresh cross-compiler works.
2125 # On the NeXT, cc -E runs the code through the compiler's parser,
2126 # not just through cpp. "Syntax error" is here to catch this case.
2127 cat >conftest.$ac_ext <<_ACEOF
2128 #line 2128 "configure"
2129 #include "confdefs.h"
2133 if { (eval echo "$as_me:2133: \"$ac_cpp conftest.$ac_ext\"") >&5
2134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2136 egrep -v '^ *\+' conftest.er1 >conftest.err
2138 cat conftest.err >&5
2139 echo "$as_me:2139: \$? = $ac_status" >&5
2140 (exit $ac_status); } >/dev/null; then
2141 if test -s conftest.err; then
2142 ac_cpp_err=$ac_c_preproc_warn_flag
2149 if test -z "$ac_cpp_err"; then
2152 echo "$as_me: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2154 # Broken: fails on valid input.
2157 rm -f conftest.err conftest.$ac_ext
2159 # OK, works on sane cases. Now check whether non-existent headers
2160 # can be detected and how.
2161 cat >conftest.$ac_ext <<_ACEOF
2162 #line 2162 "configure"
2163 #include "confdefs.h"
2164 #include <ac_nonexistent.h>
2166 if { (eval echo "$as_me:2166: \"$ac_cpp conftest.$ac_ext\"") >&5
2167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2169 egrep -v '^ *\+' conftest.er1 >conftest.err
2171 cat conftest.err >&5
2172 echo "$as_me:2172: \$? = $ac_status" >&5
2173 (exit $ac_status); } >/dev/null; then
2174 if test -s conftest.err; then
2175 ac_cpp_err=$ac_c_preproc_warn_flag
2182 if test -z "$ac_cpp_err"; then
2183 # Broken: success on invalid input.
2186 echo "$as_me: failed program was:" >&5
2187 cat conftest.$ac_ext >&5
2188 # Passes both tests.
2192 rm -f conftest.err conftest.$ac_ext
2195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2196 rm -f conftest.err conftest.$ac_ext
2197 if $ac_preproc_ok; then
2209 echo "$as_me:2209: result: $CPP" >&5
2210 echo "${ECHO_T}$CPP" >&6
2212 for ac_c_preproc_warn_flag in '' yes
2214 # Use a header file that comes with gcc, so configuring glibc
2215 # with a fresh cross-compiler works.
2216 # On the NeXT, cc -E runs the code through the compiler's parser,
2217 # not just through cpp. "Syntax error" is here to catch this case.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #line 2219 "configure"
2220 #include "confdefs.h"
2224 if { (eval echo "$as_me:2224: \"$ac_cpp conftest.$ac_ext\"") >&5
2225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2227 egrep -v '^ *\+' conftest.er1 >conftest.err
2229 cat conftest.err >&5
2230 echo "$as_me:2230: \$? = $ac_status" >&5
2231 (exit $ac_status); } >/dev/null; then
2232 if test -s conftest.err; then
2233 ac_cpp_err=$ac_c_preproc_warn_flag
2240 if test -z "$ac_cpp_err"; then
2243 echo "$as_me: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2245 # Broken: fails on valid input.
2248 rm -f conftest.err conftest.$ac_ext
2250 # OK, works on sane cases. Now check whether non-existent headers
2251 # can be detected and how.
2252 cat >conftest.$ac_ext <<_ACEOF
2253 #line 2253 "configure"
2254 #include "confdefs.h"
2255 #include <ac_nonexistent.h>
2257 if { (eval echo "$as_me:2257: \"$ac_cpp conftest.$ac_ext\"") >&5
2258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2260 egrep -v '^ *\+' conftest.er1 >conftest.err
2262 cat conftest.err >&5
2263 echo "$as_me:2263: \$? = $ac_status" >&5
2264 (exit $ac_status); } >/dev/null; then
2265 if test -s conftest.err; then
2266 ac_cpp_err=$ac_c_preproc_warn_flag
2273 if test -z "$ac_cpp_err"; then
2274 # Broken: success on invalid input.
2277 echo "$as_me: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2279 # Passes both tests.
2283 rm -f conftest.err conftest.$ac_ext
2286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2287 rm -f conftest.err conftest.$ac_ext
2288 if $ac_preproc_ok; then
2291 { { echo "$as_me:2291: error: C preprocessor \"$CPP\" fails sanity check" >&5
2292 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2293 { (exit 1); exit 1; }; }
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301 ac_main_return=return
2303 if test $ac_cv_c_compiler_gnu = yes; then
2304 echo "$as_me:2304: checking whether $CC needs -traditional" >&5
2305 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2306 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 ac_pattern="Autoconf.*'x'"
2310 cat >conftest.$ac_ext <<_ACEOF
2311 #line 2311 "configure"
2312 #include "confdefs.h"
2314 int Autoconf = TIOCGETP;
2316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2317 egrep "$ac_pattern" >/dev/null 2>&1; then
2318 ac_cv_prog_gcc_traditional=yes
2320 ac_cv_prog_gcc_traditional=no
2324 if test $ac_cv_prog_gcc_traditional = no; then
2325 cat >conftest.$ac_ext <<_ACEOF
2326 #line 2326 "configure"
2327 #include "confdefs.h"
2329 int Autoconf = TCGETA;
2331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2332 egrep "$ac_pattern" >/dev/null 2>&1; then
2333 ac_cv_prog_gcc_traditional=yes
2339 echo "$as_me:2339: result: $ac_cv_prog_gcc_traditional" >&5
2340 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2341 if test $ac_cv_prog_gcc_traditional = yes; then
2342 CC="$CC -traditional"
2346 echo "$as_me:2346: checking whether $CC understands -c and -o together" >&5
2347 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2348 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 cat > conftest.$ac_ext <<CF_EOF
2356 ${cf_cv_main_return:-return}(0);
2359 # We do the test twice because some compilers refuse to overwrite an
2360 # existing .o file with -o, though they will create one.
2361 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2362 if { (eval echo "$as_me:2362: \"$ac_try\"") >&5
2365 echo "$as_me:2365: \$? = $ac_status" >&5
2366 (exit $ac_status); } &&
2367 test -f conftest2.$ac_objext && { (eval echo "$as_me:2367: \"$ac_try\"") >&5
2370 echo "$as_me:2370: \$? = $ac_status" >&5
2371 (exit $ac_status); };
2373 eval cf_cv_prog_CC_c_o=yes
2375 eval cf_cv_prog_CC_c_o=no
2380 if test $cf_cv_prog_CC_c_o = yes; then
2381 echo "$as_me:2381: result: yes" >&5
2382 echo "${ECHO_T}yes" >&6
2384 echo "$as_me:2384: result: no" >&5
2385 echo "${ECHO_T}no" >&6
2388 echo "$as_me:2388: checking for POSIXized ISC" >&5
2389 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2390 if test -d /etc/conf/kconfig.d &&
2391 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2393 echo "$as_me:2393: result: yes" >&5
2394 echo "${ECHO_T}yes" >&6
2395 ISC=yes # If later tests want to check for ISC.
2397 cat >>confdefs.h <<\EOF
2398 #define _POSIX_SOURCE 1
2401 if test "$GCC" = yes; then
2407 echo "$as_me:2407: result: no" >&5
2408 echo "${ECHO_T}no" >&6
2412 echo "$as_me:2412: checking for ${CC-cc} option to accept ANSI C" >&5
2413 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2414 if test "${cf_cv_ansi_cc+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 cf_save_CFLAGS="$CFLAGS"
2420 cf_save_CPPFLAGS="$CPPFLAGS"
2421 # Don't try gcc -ansi; that turns off useful extensions and
2422 # breaks some systems' header files.
2423 # AIX -qlanglvl=ansi
2424 # Ultrix and OSF/1 -std1
2425 # HP-UX -Aa -D_HPUX_SOURCE
2427 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2428 for cf_arg in "-DCC_HAS_PROTOS" \
2433 "-Aa -D_HPUX_SOURCE" \
2440 cf_new_extra_cppflags=
2442 for cf_add_cflags in $cf_arg
2444 case $cf_fix_cppflags in
2446 case $cf_add_cflags in #(vi
2447 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2448 case $cf_add_cflags in
2450 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2452 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2453 && test -z "${cf_tst_cflags}" \
2454 && cf_fix_cppflags=yes
2456 if test $cf_fix_cppflags = yes ; then
2457 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2459 elif test "${cf_tst_cflags}" = "\"'" ; then
2460 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2466 *$cf_add_cflags) #(vi
2469 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2474 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2479 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2481 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2483 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2484 && test -z "${cf_tst_cflags}" \
2485 && cf_fix_cppflags=no
2490 if test -n "$cf_new_cflags" ; then
2492 CFLAGS="$CFLAGS $cf_new_cflags"
2495 if test -n "$cf_new_cppflags" ; then
2497 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2500 if test -n "$cf_new_extra_cppflags" ; then
2502 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2505 cat >conftest.$ac_ext <<_ACEOF
2506 #line 2506 "configure"
2507 #include "confdefs.h"
2509 #ifndef CC_HAS_PROTOS
2510 #if !defined(__STDC__) || (__STDC__ != 1)
2519 int test (int i, double x);
2520 struct s1 {int (*f) (int a);};
2521 struct s2 {int (*f) (double a);};
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:2527: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>&5
2530 echo "$as_me:2530: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (eval echo "$as_me:2533: \"$ac_try\"") >&5
2536 echo "$as_me:2536: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2538 cf_cv_ansi_cc="$cf_arg"; break
2540 echo "$as_me: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2545 CFLAGS="$cf_save_CFLAGS"
2546 CPPFLAGS="$cf_save_CPPFLAGS"
2549 echo "$as_me:2549: result: $cf_cv_ansi_cc" >&5
2550 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2552 if test "$cf_cv_ansi_cc" != "no"; then
2553 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2558 cf_new_extra_cppflags=
2560 for cf_add_cflags in $cf_cv_ansi_cc
2562 case $cf_fix_cppflags in
2564 case $cf_add_cflags in #(vi
2565 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2566 case $cf_add_cflags in
2568 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2570 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2571 && test -z "${cf_tst_cflags}" \
2572 && cf_fix_cppflags=yes
2574 if test $cf_fix_cppflags = yes ; then
2575 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2577 elif test "${cf_tst_cflags}" = "\"'" ; then
2578 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2584 *$cf_add_cflags) #(vi
2587 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2592 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2597 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2599 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2601 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2602 && test -z "${cf_tst_cflags}" \
2603 && cf_fix_cppflags=no
2608 if test -n "$cf_new_cflags" ; then
2610 CFLAGS="$CFLAGS $cf_new_cflags"
2613 if test -n "$cf_new_cppflags" ; then
2615 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2618 if test -n "$cf_new_extra_cppflags" ; then
2620 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2624 cat >>confdefs.h <<\EOF
2625 #define CC_HAS_PROTOS 1
2631 if test "$cf_cv_ansi_cc" = "no"; then
2632 { { echo "$as_me:2632: error: Your compiler does not appear to recognize prototypes.
2633 You have the following choices:
2634 a. adjust your compiler options
2635 b. get an up-to-date compiler
2636 c. use a wrapper such as unproto" >&5
2637 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2638 You have the following choices:
2639 a. adjust your compiler options
2640 b. get an up-to-date compiler
2641 c. use a wrapper such as unproto" >&2;}
2642 { (exit 1); exit 1; }; }
2645 case $cf_cv_system_name in
2647 CFLAGS="$CFLAGS -Zmt"
2648 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2649 CXXFLAGS="$CXXFLAGS -Zmt"
2650 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2651 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2658 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2659 #define PROG_EXT "$PROG_EXT"
2662 if test "$cross_compiling" = yes ; then
2665 case "$cf_cv_system_name" in #(vi
2667 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2669 *) LDPATH=$PATH:/sbin:/usr/sbin
2670 # Extract the first word of "ldconfig", so it can be a program name with args.
2671 set dummy ldconfig; ac_word=$2
2672 echo "$as_me:2672: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2674 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2682 ac_save_IFS=$IFS; IFS=$ac_path_separator
2684 for ac_dir in $ac_dummy; do
2686 test -z "$ac_dir" && ac_dir=.
2687 if $as_executable_p "$ac_dir/$ac_word"; then
2688 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2689 echo "$as_me:2689: found $ac_dir/$ac_word" >&5
2697 LDCONFIG=$ac_cv_path_LDCONFIG
2699 if test -n "$LDCONFIG"; then
2700 echo "$as_me:2700: result: $LDCONFIG" >&5
2701 echo "${ECHO_T}$LDCONFIG" >&6
2703 echo "$as_me:2703: result: no" >&5
2704 echo "${ECHO_T}no" >&6
2711 echo "$as_me:2711: checking if you want to ensure bool is consistent with C++" >&5
2712 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2714 # Check whether --with-cxx or --without-cxx was given.
2715 if test "${with_cxx+set}" = set; then
2717 cf_with_cxx=$withval
2721 echo "$as_me:2721: result: $cf_with_cxx" >&5
2722 echo "${ECHO_T}$cf_with_cxx" >&6
2723 if test "X$cf_with_cxx" = Xno ; then
2727 # with autoconf 2.13, we can change the error to a warning:
2729 ac_cpp='$CXXCPP $CPPFLAGS'
2730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2733 ac_main_return=return
2734 if test -n "$ac_tool_prefix"; then
2735 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2739 echo "$as_me:2739: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_prog_CXX+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 if test -n "$CXX"; then
2745 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2747 ac_save_IFS=$IFS; IFS=$ac_path_separator
2749 for ac_dir in $ac_dummy; do
2751 test -z "$ac_dir" && ac_dir=.
2752 $as_executable_p "$ac_dir/$ac_word" || continue
2753 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2754 echo "$as_me:2754: found $ac_dir/$ac_word" >&5
2761 if test -n "$CXX"; then
2762 echo "$as_me:2762: result: $CXX" >&5
2763 echo "${ECHO_T}$CXX" >&6
2765 echo "$as_me:2765: result: no" >&5
2766 echo "${ECHO_T}no" >&6
2769 test -n "$CXX" && break
2772 if test -z "$CXX"; then
2774 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2776 # Extract the first word of "$ac_prog", so it can be a program name with args.
2777 set dummy $ac_prog; ac_word=$2
2778 echo "$as_me:2778: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2780 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 if test -n "$ac_ct_CXX"; then
2784 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2786 ac_save_IFS=$IFS; IFS=$ac_path_separator
2788 for ac_dir in $ac_dummy; do
2790 test -z "$ac_dir" && ac_dir=.
2791 $as_executable_p "$ac_dir/$ac_word" || continue
2792 ac_cv_prog_ac_ct_CXX="$ac_prog"
2793 echo "$as_me:2793: found $ac_dir/$ac_word" >&5
2799 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2800 if test -n "$ac_ct_CXX"; then
2801 echo "$as_me:2801: result: $ac_ct_CXX" >&5
2802 echo "${ECHO_T}$ac_ct_CXX" >&6
2804 echo "$as_me:2804: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2808 test -n "$ac_ct_CXX" && break
2810 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2815 # Provide some information about the compiler.
2816 echo "$as_me:2816:" \
2817 "checking for C++ compiler version" >&5
2818 ac_compiler=`set X $ac_compile; echo $2`
2819 { (eval echo "$as_me:2819: \"$ac_compiler --version </dev/null >&5\"") >&5
2820 (eval $ac_compiler --version </dev/null >&5) 2>&5
2822 echo "$as_me:2822: \$? = $ac_status" >&5
2823 (exit $ac_status); }
2824 { (eval echo "$as_me:2824: \"$ac_compiler -v </dev/null >&5\"") >&5
2825 (eval $ac_compiler -v </dev/null >&5) 2>&5
2827 echo "$as_me:2827: \$? = $ac_status" >&5
2828 (exit $ac_status); }
2829 { (eval echo "$as_me:2829: \"$ac_compiler -V </dev/null >&5\"") >&5
2830 (eval $ac_compiler -V </dev/null >&5) 2>&5
2832 echo "$as_me:2832: \$? = $ac_status" >&5
2833 (exit $ac_status); }
2835 echo "$as_me:2835: checking whether we are using the GNU C++ compiler" >&5
2836 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2837 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #line 2841 "configure"
2842 #include "confdefs.h"
2855 rm -f conftest.$ac_objext
2856 if { (eval echo "$as_me:2856: \"$ac_compile\"") >&5
2857 (eval $ac_compile) 2>&5
2859 echo "$as_me:2859: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -s conftest.$ac_objext'
2862 { (eval echo "$as_me:2862: \"$ac_try\"") >&5
2865 echo "$as_me:2865: \$? = $ac_status" >&5
2866 (exit $ac_status); }; }; then
2869 echo "$as_me: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2873 rm -f conftest.$ac_objext conftest.$ac_ext
2874 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2877 echo "$as_me:2877: result: $ac_cv_cxx_compiler_gnu" >&5
2878 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2879 GXX=`test $ac_compiler_gnu = yes && echo yes`
2880 ac_test_CXXFLAGS=${CXXFLAGS+set}
2881 ac_save_CXXFLAGS=$CXXFLAGS
2883 echo "$as_me:2883: checking whether $CXX accepts -g" >&5
2884 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2885 if test "${ac_cv_prog_cxx_g+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 cat >conftest.$ac_ext <<_ACEOF
2889 #line 2889 "configure"
2890 #include "confdefs.h"
2900 rm -f conftest.$ac_objext
2901 if { (eval echo "$as_me:2901: \"$ac_compile\"") >&5
2902 (eval $ac_compile) 2>&5
2904 echo "$as_me:2904: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:2907: \"$ac_try\"") >&5
2910 echo "$as_me:2910: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 ac_cv_prog_cxx_g=yes
2914 echo "$as_me: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2918 rm -f conftest.$ac_objext conftest.$ac_ext
2920 echo "$as_me:2920: result: $ac_cv_prog_cxx_g" >&5
2921 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2922 if test "$ac_test_CXXFLAGS" = set; then
2923 CXXFLAGS=$ac_save_CXXFLAGS
2924 elif test $ac_cv_prog_cxx_g = yes; then
2925 if test "$GXX" = yes; then
2931 if test "$GXX" = yes; then
2937 for ac_declaration in \
2939 '#include <stdlib.h>' \
2940 'extern "C" void std::exit (int) throw (); using std::exit;' \
2941 'extern "C" void std::exit (int); using std::exit;' \
2942 'extern "C" void exit (int) throw ();' \
2943 'extern "C" void exit (int);' \
2946 cat >conftest.$ac_ext <<_ACEOF
2947 #line 2947 "configure"
2948 #include "confdefs.h"
2959 rm -f conftest.$ac_objext
2960 if { (eval echo "$as_me:2960: \"$ac_compile\"") >&5
2961 (eval $ac_compile) 2>&5
2963 echo "$as_me:2963: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:2966: \"$ac_try\"") >&5
2969 echo "$as_me:2969: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2973 echo "$as_me: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2977 rm -f conftest.$ac_objext conftest.$ac_ext
2978 cat >conftest.$ac_ext <<_ACEOF
2979 #line 2979 "configure"
2980 #include "confdefs.h"
2990 rm -f conftest.$ac_objext
2991 if { (eval echo "$as_me:2991: \"$ac_compile\"") >&5
2992 (eval $ac_compile) 2>&5
2994 echo "$as_me:2994: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -s conftest.$ac_objext'
2997 { (eval echo "$as_me:2997: \"$ac_try\"") >&5
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3004 echo "$as_me: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3007 rm -f conftest.$ac_objext conftest.$ac_ext
3010 if test -n "$ac_declaration"; then
3011 echo '#ifdef __cplusplus' >>confdefs.h
3012 echo $ac_declaration >>confdefs.h
3013 echo '#endif' >>confdefs.h
3017 ac_cpp='$CPP $CPPFLAGS'
3018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3021 ac_main_return=return
3023 # autoconf 2.5x removed the error - by hardcoding it to g++.
3024 if test "$CXX" = "g++" ; then
3025 # Extract the first word of "g++", so it can be a program name with args.
3026 set dummy g++; ac_word=$2
3027 echo "$as_me:3027: checking for $ac_word" >&5
3028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3029 if test "${ac_cv_path_CXX+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3037 ac_save_IFS=$IFS; IFS=$ac_path_separator
3039 for ac_dir in $ac_dummy; do
3041 test -z "$ac_dir" && ac_dir=.
3042 if $as_executable_p "$ac_dir/$ac_word"; then
3043 ac_cv_path_CXX="$ac_dir/$ac_word"
3044 echo "$as_me:3044: found $ac_dir/$ac_word" >&5
3054 if test -n "$CXX"; then
3055 echo "$as_me:3055: result: $CXX" >&5
3056 echo "${ECHO_T}$CXX" >&6
3058 echo "$as_me:3058: result: no" >&5
3059 echo "${ECHO_T}no" >&6
3063 if test "$CXX" = "g++" ; then
3064 { echo "$as_me:3064: WARNING: ignoring hardcoded g++" >&5
3065 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3066 cf_with_cxx=no; CXX=""; GXX="";
3071 if test "$GXX" = yes; then
3072 echo "$as_me:3072: checking version of g++" >&5
3073 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3074 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3075 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3076 echo "$as_me:3076: result: $GXX_VERSION" >&5
3077 echo "${ECHO_T}$GXX_VERSION" >&6
3080 case $GXX_VERSION in
3082 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3084 { echo "$as_me:3084: WARNING: templates do not work" >&5
3085 echo "$as_me: WARNING: templates do not work" >&2;}
3089 echo "$as_me:3089: checking if you want to build C++ binding and demo" >&5
3090 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3092 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3093 if test "${with_cxx_binding+set}" = set; then
3094 withval="$with_cxx_binding"
3095 cf_with_cxx_binding=$withval
3097 cf_with_cxx_binding=$cf_with_cxx
3099 echo "$as_me:3099: result: $cf_with_cxx_binding" >&5
3100 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3102 echo "$as_me:3102: checking if you want to build with Ada95" >&5
3103 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3105 # Check whether --with-ada or --without-ada was given.
3106 if test "${with_ada+set}" = set; then
3108 cf_with_ada=$withval
3112 echo "$as_me:3112: result: $cf_with_ada" >&5
3113 echo "${ECHO_T}$cf_with_ada" >&6
3115 echo "$as_me:3115: checking if you want to build programs such as tic" >&5
3116 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3118 # Check whether --with-progs or --without-progs was given.
3119 if test "${with_progs+set}" = set; then
3120 withval="$with_progs"
3121 cf_with_progs=$withval
3125 echo "$as_me:3125: result: $cf_with_progs" >&5
3126 echo "${ECHO_T}$cf_with_progs" >&6
3128 echo "$as_me:3128: checking if you wish to install curses.h" >&5
3129 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3131 # Check whether --with-curses-h or --without-curses-h was given.
3132 if test "${with_curses_h+set}" = set; then
3133 withval="$with_curses_h"
3134 with_curses_h=$withval
3138 echo "$as_me:3138: result: $with_curses_h" >&5
3139 echo "${ECHO_T}$with_curses_h" >&6
3141 modules_to_build="ncurses"
3142 if test "X$cf_with_progs" != Xno ; then
3143 modules_to_build="$modules_to_build progs tack"
3145 modules_to_build="$modules_to_build panel menu form"
3147 test "$program_prefix" != NONE &&
3148 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3149 # Use a double $ so make ignores it.
3150 test "$program_suffix" != NONE &&
3151 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3152 # Double any \ or $. echo might interpret backslashes.
3153 # By default was `s,x,x', remove it if useless.
3154 cat <<\_ACEOF >conftest.sed
3155 s/[\\$]/&&/g;s/;s,x,x,$//
3157 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3160 for ac_prog in mawk gawk nawk awk
3162 # Extract the first word of "$ac_prog", so it can be a program name with args.
3163 set dummy $ac_prog; ac_word=$2
3164 echo "$as_me:3164: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166 if test "${ac_cv_prog_AWK+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 if test -n "$AWK"; then
3170 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3172 ac_save_IFS=$IFS; IFS=$ac_path_separator
3174 for ac_dir in $ac_dummy; do
3176 test -z "$ac_dir" && ac_dir=.
3177 $as_executable_p "$ac_dir/$ac_word" || continue
3178 ac_cv_prog_AWK="$ac_prog"
3179 echo "$as_me:3179: found $ac_dir/$ac_word" >&5
3186 if test -n "$AWK"; then
3187 echo "$as_me:3187: result: $AWK" >&5
3188 echo "${ECHO_T}$AWK" >&6
3190 echo "$as_me:3190: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3194 test -n "$AWK" && break
3197 test -z "$AWK" && { { echo "$as_me:3197: error: No awk program found" >&5
3198 echo "$as_me: error: No awk program found" >&2;}
3199 { (exit 1); exit 1; }; }
3201 echo "$as_me:3201: checking for egrep" >&5
3202 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3203 if test "${ac_cv_prog_egrep+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3207 then ac_cv_prog_egrep='grep -E'
3208 else ac_cv_prog_egrep='egrep'
3211 echo "$as_me:3211: result: $ac_cv_prog_egrep" >&5
3212 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3213 EGREP=$ac_cv_prog_egrep
3215 test -z "$EGREP" && { { echo "$as_me:3215: error: No egrep program found" >&5
3216 echo "$as_me: error: No egrep program found" >&2;}
3217 { (exit 1); exit 1; }; }
3219 # Find a good install program. We prefer a C program (faster),
3220 # so one script is as good as another. But avoid the broken or
3221 # incompatible versions:
3222 # SysV /etc/install, /usr/sbin/install
3223 # SunOS /usr/etc/install
3224 # IRIX /sbin/install
3226 # AmigaOS /C/install, which installs bootblocks on floppy discs
3227 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3230 # ./install, which can be erroneously created by make from ./install.sh.
3231 echo "$as_me:3231: checking for a BSD compatible install" >&5
3232 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3233 if test -z "$INSTALL"; then
3234 if test "${ac_cv_path_install+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 ac_save_IFS=$IFS; IFS=$ac_path_separator
3238 for ac_dir in $PATH; do
3240 # Account for people who put trailing slashes in PATH elements.
3242 / | ./ | .// | /cC/* \
3243 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3246 # OSF1 and SCO ODT 3.0 have their own names for install.
3247 # Don't use installbsd from OSF since it installs stuff as root
3249 for ac_prog in ginstall scoinst install; do
3250 if $as_executable_p "$ac_dir/$ac_prog"; then
3251 if test $ac_prog = install &&
3252 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3253 # AIX install. It has an incompatible calling convention.
3255 elif test $ac_prog = install &&
3256 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3257 # program-specific install script used by HP pwplus--don't use.
3260 ac_cv_path_install="$ac_dir/$ac_prog -c"
3270 if test "${ac_cv_path_install+set}" = set; then
3271 INSTALL=$ac_cv_path_install
3273 # As a last resort, use the slow shell script. We don't cache a
3274 # path for INSTALL within a source directory, because that will
3275 # break other packages using the cache if that directory is
3276 # removed, or if the path is relative.
3277 INSTALL=$ac_install_sh
3280 echo "$as_me:3280: result: $INSTALL" >&5
3281 echo "${ECHO_T}$INSTALL" >&6
3283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3284 # It thinks the first close brace ends the variable substitution.
3285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3287 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3289 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3295 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3296 test -z "$cf_dir" && cf_dir=.
3297 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3301 for ac_prog in tdlint lint alint
3303 # Extract the first word of "$ac_prog", so it can be a program name with args.
3304 set dummy $ac_prog; ac_word=$2
3305 echo "$as_me:3305: checking for $ac_word" >&5
3306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307 if test "${ac_cv_prog_LINT+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 if test -n "$LINT"; then
3311 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3313 ac_save_IFS=$IFS; IFS=$ac_path_separator
3315 for ac_dir in $ac_dummy; do
3317 test -z "$ac_dir" && ac_dir=.
3318 $as_executable_p "$ac_dir/$ac_word" || continue
3319 ac_cv_prog_LINT="$ac_prog"
3320 echo "$as_me:3320: found $ac_dir/$ac_word" >&5
3326 LINT=$ac_cv_prog_LINT
3327 if test -n "$LINT"; then
3328 echo "$as_me:3328: result: $LINT" >&5
3329 echo "${ECHO_T}$LINT" >&6
3331 echo "$as_me:3331: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3335 test -n "$LINT" && break
3338 echo "$as_me:3338: checking whether ln -s works" >&5
3339 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3341 if test "$LN_S" = "ln -s"; then
3342 echo "$as_me:3342: result: yes" >&5
3343 echo "${ECHO_T}yes" >&6
3345 echo "$as_me:3345: result: no, using $LN_S" >&5
3346 echo "${ECHO_T}no, using $LN_S" >&6
3349 echo "$as_me:3349: checking for long file names" >&5
3350 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3351 if test "${ac_cv_sys_long_file_names+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 ac_cv_sys_long_file_names=yes
3355 # Test for long file names in all the places we know might matter:
3356 # . the current directory, where building will happen
3357 # $prefix/lib where we will be installing things
3358 # $exec_prefix/lib likewise
3359 # eval it to expand exec_prefix.
3360 # $TMPDIR if set, where it might want to write temporary files
3361 # if $TMPDIR is not set:
3362 # /tmp where it might want to write temporary files
3365 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3368 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3370 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3371 test -d $ac_dir || continue
3372 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3373 ac_xdir=$ac_dir/cf$$
3374 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3375 ac_tf1=$ac_xdir/conftest9012345
3376 ac_tf2=$ac_xdir/conftest9012346
3377 (echo 1 >$ac_tf1) 2>/dev/null
3378 (echo 2 >$ac_tf2) 2>/dev/null
3379 ac_val=`cat $ac_tf1 2>/dev/null`
3380 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3381 ac_cv_sys_long_file_names=no
3382 rm -rf $ac_xdir 2>/dev/null
3385 rm -rf $ac_xdir 2>/dev/null
3388 echo "$as_me:3388: result: $ac_cv_sys_long_file_names" >&5
3389 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3390 if test $ac_cv_sys_long_file_names = yes; then
3392 cat >>confdefs.h <<\EOF
3393 #define HAVE_LONG_FILE_NAMES 1
3398 echo "$as_me:3398: checking if we should assume mixed-case filenames" >&5
3399 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3401 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3402 if test "${enable_mixed_case+set}" = set; then
3403 enableval="$enable_mixed_case"
3404 enable_mixedcase=$enableval
3406 enable_mixedcase=auto
3408 echo "$as_me:3408: result: $enable_mixedcase" >&5
3409 echo "${ECHO_T}$enable_mixedcase" >&6
3410 if test "$enable_mixedcase" = "auto" ; then
3412 echo "$as_me:3412: checking if filesystem supports mixed-case filenames" >&5
3413 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3414 if test "${cf_cv_mixedcase+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 if test "$cross_compiling" = yes ; then
3419 case $target_alias in #(vi
3420 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3428 rm -f conftest CONFTEST
3430 if test -f CONFTEST ; then
3435 rm -f conftest CONFTEST
3439 echo "$as_me:3439: result: $cf_cv_mixedcase" >&5
3440 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3441 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3442 #define MIXEDCASE_FILENAMES 1
3446 cf_cv_mixedcase=$enable_mixedcase
3447 if test "$enable_mixedcase" = "yes" ; then
3448 cat >>confdefs.h <<\EOF
3449 #define MIXEDCASE_FILENAMES 1
3455 # do this after mixed-case option (tags/TAGS is not as important as tic).
3456 echo "$as_me:3456: checking whether ${MAKE-make} sets \${MAKE}" >&5
3457 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3458 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3459 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 cat >conftest.make <<\EOF
3464 @echo 'ac_maketemp="${MAKE}"'
3466 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3467 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3468 if test -n "$ac_maketemp"; then
3469 eval ac_cv_prog_make_${ac_make}_set=yes
3471 eval ac_cv_prog_make_${ac_make}_set=no
3475 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3476 echo "$as_me:3476: result: yes" >&5
3477 echo "${ECHO_T}yes" >&6
3480 echo "$as_me:3480: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3482 SET_MAKE="MAKE=${MAKE-make}"
3485 # Extract the first word of "ctags", so it can be a program name with args.
3486 set dummy ctags; ac_word=$2
3487 echo "$as_me:3487: checking for $ac_word" >&5
3488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3489 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 if test -n "$MAKE_LOWER_TAGS"; then
3493 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3495 ac_save_IFS=$IFS; IFS=$ac_path_separator
3497 for ac_dir in $ac_dummy; do
3499 test -z "$ac_dir" && ac_dir=.
3500 $as_executable_p "$ac_dir/$ac_word" || continue
3501 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3502 echo "$as_me:3502: found $ac_dir/$ac_word" >&5
3506 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3509 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3510 if test -n "$MAKE_LOWER_TAGS"; then
3511 echo "$as_me:3511: result: $MAKE_LOWER_TAGS" >&5
3512 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3514 echo "$as_me:3514: result: no" >&5
3515 echo "${ECHO_T}no" >&6
3518 if test "$cf_cv_mixedcase" = yes ; then
3519 # Extract the first word of "etags", so it can be a program name with args.
3520 set dummy etags; ac_word=$2
3521 echo "$as_me:3521: checking for $ac_word" >&5
3522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3523 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 if test -n "$MAKE_UPPER_TAGS"; then
3527 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3529 ac_save_IFS=$IFS; IFS=$ac_path_separator
3531 for ac_dir in $ac_dummy; do
3533 test -z "$ac_dir" && ac_dir=.
3534 $as_executable_p "$ac_dir/$ac_word" || continue
3535 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3536 echo "$as_me:3536: found $ac_dir/$ac_word" >&5
3540 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3543 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3544 if test -n "$MAKE_UPPER_TAGS"; then
3545 echo "$as_me:3545: result: $MAKE_UPPER_TAGS" >&5
3546 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3548 echo "$as_me:3548: result: no" >&5
3549 echo "${ECHO_T}no" >&6
3556 if test "$MAKE_UPPER_TAGS" = yes ; then
3562 if test "$MAKE_LOWER_TAGS" = yes ; then
3568 echo "$as_me:3568: checking for makeflags variable" >&5
3569 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3570 if test "${cf_cv_makeflags+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3577 cat >cf_makeflags.tmp <<CF_EOF
3580 @ echo '.$cf_option'
3582 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3583 case "$cf_result" in
3585 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3586 case "$cf_result" in
3587 .*CC=*) cf_cv_makeflags=
3589 *) cf_cv_makeflags=$cf_option
3595 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3599 rm -f cf_makeflags.tmp
3602 echo "$as_me:3602: result: $cf_cv_makeflags" >&5
3603 echo "${ECHO_T}$cf_cv_makeflags" >&6
3605 if test -n "$ac_tool_prefix"; then
3606 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3607 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3608 echo "$as_me:3608: checking for $ac_word" >&5
3609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3610 if test "${ac_cv_prog_RANLIB+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 if test -n "$RANLIB"; then
3614 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3616 ac_save_IFS=$IFS; IFS=$ac_path_separator
3618 for ac_dir in $ac_dummy; do
3620 test -z "$ac_dir" && ac_dir=.
3621 $as_executable_p "$ac_dir/$ac_word" || continue
3622 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3623 echo "$as_me:3623: found $ac_dir/$ac_word" >&5
3629 RANLIB=$ac_cv_prog_RANLIB
3630 if test -n "$RANLIB"; then
3631 echo "$as_me:3631: result: $RANLIB" >&5
3632 echo "${ECHO_T}$RANLIB" >&6
3634 echo "$as_me:3634: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3639 if test -z "$ac_cv_prog_RANLIB"; then
3640 ac_ct_RANLIB=$RANLIB
3641 # Extract the first word of "ranlib", so it can be a program name with args.
3642 set dummy ranlib; ac_word=$2
3643 echo "$as_me:3643: checking for $ac_word" >&5
3644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 if test -n "$ac_ct_RANLIB"; then
3649 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3651 ac_save_IFS=$IFS; IFS=$ac_path_separator
3653 for ac_dir in $ac_dummy; do
3655 test -z "$ac_dir" && ac_dir=.
3656 $as_executable_p "$ac_dir/$ac_word" || continue
3657 ac_cv_prog_ac_ct_RANLIB="ranlib"
3658 echo "$as_me:3658: found $ac_dir/$ac_word" >&5
3662 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3666 if test -n "$ac_ct_RANLIB"; then
3667 echo "$as_me:3667: result: $ac_ct_RANLIB" >&5
3668 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3670 echo "$as_me:3670: result: no" >&5
3671 echo "${ECHO_T}no" >&6
3674 RANLIB=$ac_ct_RANLIB
3676 RANLIB="$ac_cv_prog_RANLIB"
3679 if test -n "$ac_tool_prefix"; then
3680 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3681 set dummy ${ac_tool_prefix}ld; ac_word=$2
3682 echo "$as_me:3682: checking for $ac_word" >&5
3683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3684 if test "${ac_cv_prog_LD+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 if test -n "$LD"; then
3688 ac_cv_prog_LD="$LD" # Let the user override the test.
3690 ac_save_IFS=$IFS; IFS=$ac_path_separator
3692 for ac_dir in $ac_dummy; do
3694 test -z "$ac_dir" && ac_dir=.
3695 $as_executable_p "$ac_dir/$ac_word" || continue
3696 ac_cv_prog_LD="${ac_tool_prefix}ld"
3697 echo "$as_me:3697: found $ac_dir/$ac_word" >&5
3704 if test -n "$LD"; then
3705 echo "$as_me:3705: result: $LD" >&5
3706 echo "${ECHO_T}$LD" >&6
3708 echo "$as_me:3708: result: no" >&5
3709 echo "${ECHO_T}no" >&6
3713 if test -z "$ac_cv_prog_LD"; then
3715 # Extract the first word of "ld", so it can be a program name with args.
3716 set dummy ld; ac_word=$2
3717 echo "$as_me:3717: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 if test -n "$ac_ct_LD"; then
3723 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3725 ac_save_IFS=$IFS; IFS=$ac_path_separator
3727 for ac_dir in $ac_dummy; do
3729 test -z "$ac_dir" && ac_dir=.
3730 $as_executable_p "$ac_dir/$ac_word" || continue
3731 ac_cv_prog_ac_ct_LD="ld"
3732 echo "$as_me:3732: found $ac_dir/$ac_word" >&5
3736 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3739 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3740 if test -n "$ac_ct_LD"; then
3741 echo "$as_me:3741: result: $ac_ct_LD" >&5
3742 echo "${ECHO_T}$ac_ct_LD" >&6
3744 echo "$as_me:3744: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}ar; ac_word=$2
3756 echo "$as_me:3756: checking for $ac_word" >&5
3757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758 if test "${ac_cv_prog_AR+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 if test -n "$AR"; then
3762 ac_cv_prog_AR="$AR" # Let the user override the test.
3764 ac_save_IFS=$IFS; IFS=$ac_path_separator
3766 for ac_dir in $ac_dummy; do
3768 test -z "$ac_dir" && ac_dir=.
3769 $as_executable_p "$ac_dir/$ac_word" || continue
3770 ac_cv_prog_AR="${ac_tool_prefix}ar"
3771 echo "$as_me:3771: found $ac_dir/$ac_word" >&5
3778 if test -n "$AR"; then
3779 echo "$as_me:3779: result: $AR" >&5
3780 echo "${ECHO_T}$AR" >&6
3782 echo "$as_me:3782: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3787 if test -z "$ac_cv_prog_AR"; then
3789 # Extract the first word of "ar", so it can be a program name with args.
3790 set dummy ar; ac_word=$2
3791 echo "$as_me:3791: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 if test -n "$ac_ct_AR"; then
3797 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3799 ac_save_IFS=$IFS; IFS=$ac_path_separator
3801 for ac_dir in $ac_dummy; do
3803 test -z "$ac_dir" && ac_dir=.
3804 $as_executable_p "$ac_dir/$ac_word" || continue
3805 ac_cv_prog_ac_ct_AR="ar"
3806 echo "$as_me:3806: found $ac_dir/$ac_word" >&5
3810 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3813 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3814 if test -n "$ac_ct_AR"; then
3815 echo "$as_me:3815: result: $ac_ct_AR" >&5
3816 echo "${ECHO_T}$ac_ct_AR" >&6
3818 echo "$as_me:3818: result: no" >&5
3819 echo "${ECHO_T}no" >&6
3827 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 echo "$as_me:3831: checking for archiver options (symbol AR_OPTS)" >&5
3832 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3834 if test -z "$AR_OPTS" ; then
3839 cf_cv_subst_AR_OPTS=$AR_OPTS
3840 echo "$as_me:3840: result: $AR_OPTS" >&5
3841 echo "${ECHO_T}$AR_OPTS" >&6
3845 echo "$as_me:3845: checking if you have specified an install-prefix" >&5
3846 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3848 # Check whether --with-install-prefix or --without-install-prefix was given.
3849 if test "${with_install_prefix+set}" = set; then
3850 withval="$with_install_prefix"
3851 case "$withval" in #(vi
3854 *) DESTDIR="$withval"
3858 echo "$as_me:3858: result: $DESTDIR" >&5
3859 echo "${ECHO_T}$DESTDIR" >&6
3861 ###############################################################################
3863 # If we're cross-compiling, allow the user to override the tools and their
3864 # options. The configure script is oriented toward identifying the host
3865 # compiler, etc., but we need a build compiler to generate parts of the source.
3867 if test "$cross_compiling" = yes ; then
3869 # defaults that we might want to override
3870 : ${BUILD_CFLAGS:=''}
3871 : ${BUILD_CPPFLAGS:=''}
3872 : ${BUILD_LDFLAGS:=''}
3874 : ${BUILD_EXEEXT:='$x'}
3875 : ${BUILD_OBJEXT:='o'}
3877 # Check whether --with-build-cc or --without-build-cc was given.
3878 if test "${with_build_cc+set}" = set; then
3879 withval="$with_build_cc"
3882 for ac_prog in gcc cc cl
3884 # Extract the first word of "$ac_prog", so it can be a program name with args.
3885 set dummy $ac_prog; ac_word=$2
3886 echo "$as_me:3886: checking for $ac_word" >&5
3887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3888 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 if test -n "$BUILD_CC"; then
3892 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3894 ac_save_IFS=$IFS; IFS=$ac_path_separator
3896 for ac_dir in $ac_dummy; do
3898 test -z "$ac_dir" && ac_dir=.
3899 $as_executable_p "$ac_dir/$ac_word" || continue
3900 ac_cv_prog_BUILD_CC="$ac_prog"
3901 echo "$as_me:3901: found $ac_dir/$ac_word" >&5
3907 BUILD_CC=$ac_cv_prog_BUILD_CC
3908 if test -n "$BUILD_CC"; then
3909 echo "$as_me:3909: result: $BUILD_CC" >&5
3910 echo "${ECHO_T}$BUILD_CC" >&6
3912 echo "$as_me:3912: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3916 test -n "$BUILD_CC" && break
3920 echo "$as_me:3920: checking for native build C compiler" >&5
3921 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3922 echo "$as_me:3922: result: $BUILD_CC" >&5
3923 echo "${ECHO_T}$BUILD_CC" >&6
3925 echo "$as_me:3925: checking for native build C preprocessor" >&5
3926 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3928 # Check whether --with-build-cpp or --without-build-cpp was given.
3929 if test "${with_build_cpp+set}" = set; then
3930 withval="$with_build_cpp"
3931 BUILD_CPP="$withval"
3933 BUILD_CPP='${BUILD_CC} -E'
3935 echo "$as_me:3935: result: $BUILD_CPP" >&5
3936 echo "${ECHO_T}$BUILD_CPP" >&6
3938 echo "$as_me:3938: checking for native build C flags" >&5
3939 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3941 # Check whether --with-build-cflags or --without-build-cflags was given.
3942 if test "${with_build_cflags+set}" = set; then
3943 withval="$with_build_cflags"
3944 BUILD_CFLAGS="$withval"
3946 echo "$as_me:3946: result: $BUILD_CFLAGS" >&5
3947 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3949 echo "$as_me:3949: checking for native build C preprocessor-flags" >&5
3950 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3952 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3953 if test "${with_build_cppflags+set}" = set; then
3954 withval="$with_build_cppflags"
3955 BUILD_CPPFLAGS="$withval"
3957 echo "$as_me:3957: result: $BUILD_CPPFLAGS" >&5
3958 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3960 echo "$as_me:3960: checking for native build linker-flags" >&5
3961 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3963 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3964 if test "${with_build_ldflags+set}" = set; then
3965 withval="$with_build_ldflags"
3966 BUILD_LDFLAGS="$withval"
3968 echo "$as_me:3968: result: $BUILD_LDFLAGS" >&5
3969 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3971 echo "$as_me:3971: checking for native build linker-libraries" >&5
3972 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3974 # Check whether --with-build-libs or --without-build-libs was given.
3975 if test "${with_build_libs+set}" = set; then
3976 withval="$with_build_libs"
3977 BUILD_LIBS="$withval"
3979 echo "$as_me:3979: result: $BUILD_LIBS" >&5
3980 echo "${ECHO_T}$BUILD_LIBS" >&6
3982 # this assumes we're on Unix.
3986 : ${BUILD_CC:='${CC}'}
3988 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3989 { { echo "$as_me:3989: error: Cross-build requires two compilers.
3990 Use --with-build-cc to specify the native compiler." >&5
3991 echo "$as_me: error: Cross-build requires two compilers.
3992 Use --with-build-cc to specify the native compiler." >&2;}
3993 { (exit 1); exit 1; }; }
3997 : ${BUILD_CC:='${CC}'}
3998 : ${BUILD_CPP:='${CPP}'}
3999 : ${BUILD_CFLAGS:='${CFLAGS}'}
4000 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4001 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4002 : ${BUILD_LIBS:='${LIBS}'}
4003 : ${BUILD_EXEEXT:='$x'}
4004 : ${BUILD_OBJEXT:='o'}
4007 ###############################################################################
4009 ### Options to allow the user to specify the set of libraries which are used.
4010 ### Use "--without-normal --with-shared" to allow the default model to be
4011 ### shared, for example.
4016 # common library maintenance symbols that are convenient for libtool scripts:
4017 LIB_CREATE='${AR} -cr'
4018 LIB_OBJECT='${OBJECTS}'
4022 # symbols used to prop libtool up to enable it to determine what it should be
4030 echo "$as_me:4030: checking if you want to build libraries with libtool" >&5
4031 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4033 # Check whether --with-libtool or --without-libtool was given.
4034 if test "${with_libtool+set}" = set; then
4035 withval="$with_libtool"
4036 with_libtool=$withval
4040 echo "$as_me:4040: result: $with_libtool" >&5
4041 echo "${ECHO_T}$with_libtool" >&6
4042 if test "$with_libtool" != "no"; then
4044 if test "$with_libtool" != "yes" ; then
4046 if test "x$prefix" != xNONE; then
4047 cf_path_syntax="$prefix"
4049 cf_path_syntax="$ac_default_prefix"
4052 case ".$with_libtool" in #(vi
4053 .\$\(*\)*|.\'*\'*) #(vi
4057 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4060 eval with_libtool="$with_libtool"
4061 case ".$with_libtool" in #(vi
4063 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4068 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4071 { { echo "$as_me:4071: error: expected a pathname, not \"$with_libtool\"" >&5
4072 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4073 { (exit 1); exit 1; }; }
4077 LIBTOOL=$with_libtool
4079 # Extract the first word of "libtool", so it can be a program name with args.
4080 set dummy libtool; ac_word=$2
4081 echo "$as_me:4081: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4091 ac_save_IFS=$IFS; IFS=$ac_path_separator
4093 for ac_dir in $ac_dummy; do
4095 test -z "$ac_dir" && ac_dir=.
4096 if $as_executable_p "$ac_dir/$ac_word"; then
4097 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4098 echo "$as_me:4098: found $ac_dir/$ac_word" >&5
4106 LIBTOOL=$ac_cv_path_LIBTOOL
4108 if test -n "$LIBTOOL"; then
4109 echo "$as_me:4109: result: $LIBTOOL" >&5
4110 echo "${ECHO_T}$LIBTOOL" >&6
4112 echo "$as_me:4112: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4117 if test -z "$LIBTOOL" ; then
4118 { { echo "$as_me:4118: error: Cannot find libtool" >&5
4119 echo "$as_me: error: Cannot find libtool" >&2;}
4120 { (exit 1); exit 1; }; }
4122 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} -o'
4123 LIB_OBJECT='${OBJECTS:.o=.lo}'
4125 LIB_CLEAN='${LIBTOOL} --mode=clean'
4126 LIB_COMPILE='${LIBTOOL} --mode=compile'
4127 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4128 LIB_INSTALL='${LIBTOOL} --mode=install'
4129 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4132 # Show the version of libtool
4133 echo "$as_me:4133: checking version of libtool" >&5
4134 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4136 # Save the version in a cache variable - this is not entirely a good
4137 # thing, but the version string from libtool is very ugly, and for
4138 # bug reports it might be useful to have the original string.
4139 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4140 echo "$as_me:4140: result: $cf_cv_libtool_version" >&5
4141 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4142 if test -z "$cf_cv_libtool_version" ; then
4143 { { echo "$as_me:4143: error: This is not GNU libtool" >&5
4144 echo "$as_me: error: This is not GNU libtool" >&2;}
4145 { (exit 1); exit 1; }; }
4148 # special hack to add --tag option for C++ compiler
4149 case $cf_cv_libtool_version in
4151 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4152 LIBTOOL="$LIBTOOL --tag=CC"
4155 LIBTOOL_CXX="$LIBTOOL"
4163 test -z "$LIBTOOL" && ECHO_LT=
4165 if test "$with_libtool" != "no" ; then
4167 cf_list_models="$cf_list_models libtool"
4171 echo "$as_me:4171: checking if you want to build shared libraries" >&5
4172 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4174 # Check whether --with-shared or --without-shared was given.
4175 if test "${with_shared+set}" = set; then
4176 withval="$with_shared"
4177 with_shared=$withval
4181 echo "$as_me:4181: result: $with_shared" >&5
4182 echo "${ECHO_T}$with_shared" >&6
4183 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4185 echo "$as_me:4185: checking if you want to build static libraries" >&5
4186 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4188 # Check whether --with-normal or --without-normal was given.
4189 if test "${with_normal+set}" = set; then
4190 withval="$with_normal"
4191 with_normal=$withval
4195 echo "$as_me:4195: result: $with_normal" >&5
4196 echo "${ECHO_T}$with_normal" >&6
4197 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4199 echo "$as_me:4199: checking if you want to build debug libraries" >&5
4200 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4202 # Check whether --with-debug or --without-debug was given.
4203 if test "${with_debug+set}" = set; then
4204 withval="$with_debug"
4209 echo "$as_me:4209: result: $with_debug" >&5
4210 echo "${ECHO_T}$with_debug" >&6
4211 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4213 echo "$as_me:4213: checking if you want to build profiling libraries" >&5
4214 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4216 # Check whether --with-profile or --without-profile was given.
4217 if test "${with_profile+set}" = set; then
4218 withval="$with_profile"
4219 with_profile=$withval
4223 echo "$as_me:4223: result: $with_profile" >&5
4224 echo "${ECHO_T}$with_profile" >&6
4225 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4229 ###############################################################################
4231 echo "$as_me:4231: checking for specified models" >&5
4232 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4233 test -z "$cf_list_models" && cf_list_models=normal
4234 test "$with_libtool" != "no" && cf_list_models=libtool
4235 echo "$as_me:4235: result: $cf_list_models" >&5
4236 echo "${ECHO_T}$cf_list_models" >&6
4238 ### Use the first model as the default, and save its suffix for use in building
4239 ### up test-applications.
4240 echo "$as_me:4240: checking for default model" >&5
4241 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4242 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4243 echo "$as_me:4243: result: $DFT_LWR_MODEL" >&5
4244 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4246 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4257 case $cf_cv_system_name in #(vi
4264 cf_prefix=$LIB_PREFIX
4266 LIB_PREFIX=$cf_prefix
4270 ###############################################################################
4272 echo "$as_me:4272: checking if you want to build a separate terminfo library" >&5
4273 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4275 # Check whether --with-termlib or --without-termlib was given.
4276 if test "${with_termlib+set}" = set; then
4277 withval="$with_termlib"
4278 with_termlib=$withval
4282 echo "$as_me:4282: result: $with_termlib" >&5
4283 echo "${ECHO_T}$with_termlib" >&6
4285 echo "$as_me:4285: checking if you want to build a separate tic library" >&5
4286 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4288 # Check whether --with-ticlib or --without-ticlib was given.
4289 if test "${with_ticlib+set}" = set; then
4290 withval="$with_ticlib"
4291 with_ticlib=$withval
4295 echo "$as_me:4295: result: $with_ticlib" >&5
4296 echo "${ECHO_T}$with_ticlib" >&6
4298 ### Checks for special libraries, must be done up-front.
4301 echo "$as_me:4301: checking if you want to link with the GPM mouse library" >&5
4302 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4304 # Check whether --with-gpm or --without-gpm was given.
4305 if test "${with_gpm+set}" = set; then
4311 echo "$as_me:4311: result: $with_gpm" >&5
4312 echo "${ECHO_T}$with_gpm" >&6
4314 if test "$with_gpm" != no ; then
4315 echo "$as_me:4315: checking for gpm.h" >&5
4316 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4317 if test "${ac_cv_header_gpm_h+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 cat >conftest.$ac_ext <<_ACEOF
4321 #line 4321 "configure"
4322 #include "confdefs.h"
4325 if { (eval echo "$as_me:4325: \"$ac_cpp conftest.$ac_ext\"") >&5
4326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4328 egrep -v '^ *\+' conftest.er1 >conftest.err
4330 cat conftest.err >&5
4331 echo "$as_me:4331: \$? = $ac_status" >&5
4332 (exit $ac_status); } >/dev/null; then
4333 if test -s conftest.err; then
4334 ac_cpp_err=$ac_c_preproc_warn_flag
4341 if test -z "$ac_cpp_err"; then
4342 ac_cv_header_gpm_h=yes
4344 echo "$as_me: failed program was:" >&5
4345 cat conftest.$ac_ext >&5
4346 ac_cv_header_gpm_h=no
4348 rm -f conftest.err conftest.$ac_ext
4350 echo "$as_me:4350: result: $ac_cv_header_gpm_h" >&5
4351 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4352 if test $ac_cv_header_gpm_h = yes; then
4354 cat >>confdefs.h <<\EOF
4355 #define HAVE_GPM_H 1
4358 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4359 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4361 echo "${as_me-configure}:4361: testing assuming we really have GPM library ..." 1>&5
4363 cat >>confdefs.h <<\EOF
4364 #define HAVE_LIBGPM 1
4368 echo "$as_me:4368: checking for Gpm_Open in -lgpm" >&5
4369 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4370 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 ac_check_lib_save_LIBS=$LIBS
4375 cat >conftest.$ac_ext <<_ACEOF
4376 #line 4376 "configure"
4377 #include "confdefs.h"
4379 /* Override any gcc2 internal prototype to avoid an error. */
4383 /* We use char because int might match the return type of a gcc2
4384 builtin and then its argument prototype would still apply. */
4394 rm -f conftest.$ac_objext conftest$ac_exeext
4395 if { (eval echo "$as_me:4395: \"$ac_link\"") >&5
4396 (eval $ac_link) 2>&5
4398 echo "$as_me:4398: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -s conftest$ac_exeext'
4401 { (eval echo "$as_me:4401: \"$ac_try\"") >&5
4404 echo "$as_me:4404: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 ac_cv_lib_gpm_Gpm_Open=yes
4408 echo "$as_me: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4410 ac_cv_lib_gpm_Gpm_Open=no
4412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4413 LIBS=$ac_check_lib_save_LIBS
4415 echo "$as_me:4415: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4416 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4417 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4421 { { echo "$as_me:4421: error: Cannot link with GPM library" >&5
4422 echo "$as_me: error: Cannot link with GPM library" >&2;}
4423 { (exit 1); exit 1; }; }
4431 test "$with_gpm" != maybe && { echo "$as_me:4431: WARNING: Cannot find GPM header" >&5
4432 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4439 if test "$with_gpm" != no ; then
4440 echo "$as_me:4440: checking if you want to load GPM dynamically" >&5
4441 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4443 # Check whether --with-dlsym or --without-dlsym was given.
4444 if test "${with_dlsym+set}" = set; then
4445 withval="$with_dlsym"
4450 echo "$as_me:4450: result: $with_dlsym" >&5
4451 echo "${ECHO_T}$with_dlsym" >&6
4452 if test "$with_dlsym" = yes ; then
4455 echo "$as_me:4455: checking for dlsym" >&5
4456 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4457 if test "${ac_cv_func_dlsym+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 cat >conftest.$ac_ext <<_ACEOF
4461 #line 4461 "configure"
4462 #include "confdefs.h"
4463 /* System header to define __stub macros and hopefully few prototypes,
4464 which can conflict with char dlsym (); below. */
4466 /* Override any gcc2 internal prototype to avoid an error. */
4470 /* We use char because int might match the return type of a gcc2
4471 builtin and then its argument prototype would still apply. */
4478 /* The GNU C library defines this for functions which it implements
4479 to always fail with ENOSYS. Some functions are actually named
4480 something starting with __ and the normal name is an alias. */
4481 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4491 rm -f conftest.$ac_objext conftest$ac_exeext
4492 if { (eval echo "$as_me:4492: \"$ac_link\"") >&5
4493 (eval $ac_link) 2>&5
4495 echo "$as_me:4495: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -s conftest$ac_exeext'
4498 { (eval echo "$as_me:4498: \"$ac_try\"") >&5
4501 echo "$as_me:4501: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_func_dlsym=yes
4505 echo "$as_me: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4511 echo "$as_me:4511: result: $ac_cv_func_dlsym" >&5
4512 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4513 if test $ac_cv_func_dlsym = yes; then
4518 echo "$as_me:4518: checking for dlsym in -ldl" >&5
4519 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4520 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 ac_check_lib_save_LIBS=$LIBS
4525 cat >conftest.$ac_ext <<_ACEOF
4526 #line 4526 "configure"
4527 #include "confdefs.h"
4529 /* Override any gcc2 internal prototype to avoid an error. */
4533 /* We use char because int might match the return type of a gcc2
4534 builtin and then its argument prototype would still apply. */
4544 rm -f conftest.$ac_objext conftest$ac_exeext
4545 if { (eval echo "$as_me:4545: \"$ac_link\"") >&5
4546 (eval $ac_link) 2>&5
4548 echo "$as_me:4548: \$? = $ac_status" >&5
4549 (exit $ac_status); } &&
4550 { ac_try='test -s conftest$ac_exeext'
4551 { (eval echo "$as_me:4551: \"$ac_try\"") >&5
4554 echo "$as_me:4554: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 ac_cv_lib_dl_dlsym=yes
4558 echo "$as_me: failed program was:" >&5
4559 cat conftest.$ac_ext >&5
4560 ac_cv_lib_dl_dlsym=no
4562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4563 LIBS=$ac_check_lib_save_LIBS
4565 echo "$as_me:4565: result: $ac_cv_lib_dl_dlsym" >&5
4566 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4567 if test $ac_cv_lib_dl_dlsym = yes; then
4575 if test "$cf_have_dlsym" = yes ; then
4576 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4578 echo "$as_me:4578: checking whether able to link to dl*() functions" >&5
4579 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4580 cat >conftest.$ac_ext <<_ACEOF
4581 #line 4581 "configure"
4582 #include "confdefs.h"
4589 if ((obj = dlopen("filename", 0)) != 0) {
4590 if (dlsym(obj, "symbolname") == 0) {
4598 rm -f conftest.$ac_objext conftest$ac_exeext
4599 if { (eval echo "$as_me:4599: \"$ac_link\"") >&5
4600 (eval $ac_link) 2>&5
4602 echo "$as_me:4602: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -s conftest$ac_exeext'
4605 { (eval echo "$as_me:4605: \"$ac_try\"") >&5
4608 echo "$as_me:4608: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4611 cat >>confdefs.h <<\EOF
4612 #define HAVE_LIBDL 1
4616 echo "$as_me: failed program was:" >&5
4617 cat conftest.$ac_ext >&5
4619 { { echo "$as_me:4619: error: Cannot link test program for libdl" >&5
4620 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4621 { (exit 1); exit 1; }; }
4623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4624 echo "$as_me:4624: result: ok" >&5
4625 echo "${ECHO_T}ok" >&6
4627 { { echo "$as_me:4627: error: Cannot find dlsym function" >&5
4628 echo "$as_me: error: Cannot find dlsym function" >&2;}
4629 { (exit 1); exit 1; }; }
4632 if test "$with_gpm" != yes ; then
4633 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4635 echo "${as_me-configure}:4635: testing assuming soname for gpm is $with_gpm ..." 1>&5
4637 cf_cv_gpm_soname="$with_gpm"
4640 echo "$as_me:4640: checking for soname of gpm library" >&5
4641 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
4642 if test "${cf_cv_gpm_soname+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 cf_cv_gpm_soname=unknown
4647 if test "$cross_compiling" != yes ; then
4648 cat >conftest.$ac_ext <<CF_EOF
4652 if (Gpm_Open(0,0)) Gpm_Close();
4653 ${cf_cv_main_return:-return}(0);
4656 cf_save_LIBS="$LIBS"
4658 if { (eval echo "$as_me:4658: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>&5
4661 echo "$as_me:4661: \$? = $ac_status" >&5
4662 (exit $ac_status); } ; then
4663 if { (eval echo "$as_me:4663: \"$ac_link\"") >&5
4664 (eval $ac_link) 2>&5
4666 echo "$as_me:4666: \$? = $ac_status" >&5
4667 (exit $ac_status); } ; then
4668 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
4669 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
4673 LIBS="$cf_save_LIBS"
4677 echo "$as_me:4677: result: $cf_cv_gpm_soname" >&5
4678 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
4681 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
4682 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
4685 SHLIB_LIST="-ldl $SHLIB_LIST"
4687 SHLIB_LIST="-lgpm $SHLIB_LIST"
4689 cat >>confdefs.h <<\EOF
4690 #define HAVE_LIBGPM 1
4693 echo "$as_me:4693: checking for Gpm_Wgetch in -lgpm" >&5
4694 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
4695 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 ac_check_lib_save_LIBS=$LIBS
4700 cat >conftest.$ac_ext <<_ACEOF
4701 #line 4701 "configure"
4702 #include "confdefs.h"
4704 /* Override any gcc2 internal prototype to avoid an error. */
4708 /* We use char because int might match the return type of a gcc2
4709 builtin and then its argument prototype would still apply. */
4719 rm -f conftest.$ac_objext conftest$ac_exeext
4720 if { (eval echo "$as_me:4720: \"$ac_link\"") >&5
4721 (eval $ac_link) 2>&5
4723 echo "$as_me:4723: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -s conftest$ac_exeext'
4726 { (eval echo "$as_me:4726: \"$ac_try\"") >&5
4729 echo "$as_me:4729: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 ac_cv_lib_gpm_Gpm_Wgetch=yes
4733 echo "$as_me: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4735 ac_cv_lib_gpm_Gpm_Wgetch=no
4737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4738 LIBS=$ac_check_lib_save_LIBS
4740 echo "$as_me:4740: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
4741 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
4742 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
4744 echo "$as_me:4744: checking if GPM is weakly bound to curses library" >&5
4745 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
4746 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 cf_cv_check_gpm_wgetch=unknown
4751 if test "$cross_compiling" != yes ; then
4753 cat >conftest.$ac_ext <<CF_EOF
4758 ${cf_cv_main_return:-return}(0);
4762 cf_save_LIBS="$LIBS"
4763 # This only works if we can look at the symbol table. If a shared
4764 # library is stripped for install, we cannot use that. So we're forced
4765 # to rely on the static library, noting that some packagers may not
4767 LIBS="-static -lgpm -dynamic $LIBS"
4768 if { (eval echo "$as_me:4768: \"$ac_compile\"") >&5
4769 (eval $ac_compile) 2>&5
4771 echo "$as_me:4771: \$? = $ac_status" >&5
4772 (exit $ac_status); } ; then
4773 if { (eval echo "$as_me:4773: \"$ac_link\"") >&5
4774 (eval $ac_link) 2>&5
4776 echo "$as_me:4776: \$? = $ac_status" >&5
4777 (exit $ac_status); } ; then
4778 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
4779 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
4780 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
4784 LIBS="$cf_save_LIBS"
4788 echo "$as_me:4788: result: $cf_cv_check_gpm_wgetch" >&5
4789 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
4791 if test "$cf_cv_check_gpm_wgetch" != yes ; then
4792 { echo "$as_me:4792: WARNING: GPM library is already linked with curses - read the FAQ" >&5
4793 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
4800 # not everyone has "test -c"
4801 if test -c /dev/sysmouse 2>/dev/null ; then
4802 echo "$as_me:4802: checking if you want to use sysmouse" >&5
4803 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
4805 # Check whether --with-sysmouse or --without-sysmouse was given.
4806 if test "${with_sysmouse+set}" = set; then
4807 withval="$with_sysmouse"
4808 cf_with_sysmouse=$withval
4810 cf_with_sysmouse=maybe
4812 if test "$cf_with_sysmouse" != no ; then
4813 cat >conftest.$ac_ext <<_ACEOF
4814 #line 4814 "configure"
4815 #include "confdefs.h"
4817 #include <osreldate.h>
4818 #if (__FreeBSD_version >= 400017)
4819 #include <sys/consio.h>
4820 #include <sys/fbio.h>
4822 #include <machine/console.h>
4829 struct mouse_info the_mouse;
4830 ioctl(0, CONS_MOUSECTL, &the_mouse);
4836 rm -f conftest.$ac_objext
4837 if { (eval echo "$as_me:4837: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>&5
4840 echo "$as_me:4840: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try='test -s conftest.$ac_objext'
4843 { (eval echo "$as_me:4843: \"$ac_try\"") >&5
4846 echo "$as_me:4846: \$? = $ac_status" >&5
4847 (exit $ac_status); }; }; then
4848 cf_with_sysmouse=yes
4850 echo "$as_me: failed program was:" >&5
4851 cat conftest.$ac_ext >&5
4854 rm -f conftest.$ac_objext conftest.$ac_ext
4856 echo "$as_me:4856: result: $cf_with_sysmouse" >&5
4857 echo "${ECHO_T}$cf_with_sysmouse" >&6
4858 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
4859 #define USE_SYSMOUSE 1
4864 if test X"$CC_G_OPT" = X"" ; then
4866 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
4869 if test X"$CXX_G_OPT" = X"" ; then
4871 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
4874 echo "$as_me:4874: checking for default loader flags" >&5
4875 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
4876 case $DFT_LWR_MODEL in
4877 libtool) LD_MODEL='' ;;
4878 normal) LD_MODEL='' ;;
4879 debug) LD_MODEL=$CC_G_OPT ;;
4880 profile) LD_MODEL='-pg';;
4881 shared) LD_MODEL='' ;;
4883 echo "$as_me:4883: result: $LD_MODEL" >&5
4884 echo "${ECHO_T}$LD_MODEL" >&6
4886 case $DFT_LWR_MODEL in
4889 echo "$as_me:4889: checking if rpath option should be used" >&5
4890 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
4892 # Check whether --enable-rpath or --disable-rpath was given.
4893 if test "${enable_rpath+set}" = set; then
4894 enableval="$enable_rpath"
4895 cf_cv_ld_rpath=$enableval
4899 echo "$as_me:4899: result: $cf_cv_ld_rpath" >&5