2 # From configure.in Revision: 1.473 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20081225.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
611 # Report the --help message.
613 if test "$ac_init_help" = "long"; then
614 # Omit some internal or obsolete options to make the list less imposing.
615 # This message is too long to be a string in the A/UX 3.1 sh.
617 \`configure' configures this package to adapt to many kinds of systems.
619 Usage: $0 [OPTION]... [VAR=VALUE]...
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE. See below for descriptions of some of the useful variables.
624 Defaults for the options are specified in brackets.
627 -h, --help display this help and exit
628 --help=short display options specific to this package
629 --help=recursive display the short help of all the included packages
630 -V, --version display version information and exit
631 -q, --quiet, --silent do not print \`checking...' messages
632 --cache-file=FILE cache test results in FILE [disabled]
633 -C, --config-cache alias for \`--cache-file=config.cache'
634 -n, --no-create do not create output files
635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
640 Installation directories:
641 --prefix=PREFIX install architecture-independent files in PREFIX
643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
651 For better control, use the options below.
653 Fine tuning of the installation directories:
654 --bindir=DIR user executables [EPREFIX/bin]
655 --sbindir=DIR system admin executables [EPREFIX/sbin]
656 --libexecdir=DIR program executables [EPREFIX/libexec]
657 --datadir=DIR read-only architecture-independent data [PREFIX/share]
658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
661 --libdir=DIR object code libraries [EPREFIX/lib]
662 --includedir=DIR C header files [PREFIX/include]
663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
664 --infodir=DIR info documentation [PREFIX/info]
665 --mandir=DIR man documentation [PREFIX/man]
671 --program-prefix=PREFIX prepend PREFIX to installed program names
672 --program-suffix=SUFFIX append SUFFIX to installed program names
673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 --target=TARGET configure for building compilers for TARGET [HOST]
682 if test -n "$ac_init_help"; then
687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
694 --with-rel-version=XXX override derived release version
695 --with-abi-version=XXX override derived ABI version
696 --with-system-type=XXX test: override derived host system-type
697 --without-cxx do not adjust ncurses bool to match C++
698 --without-cxx-binding do not build C++ binding and demo
699 --without-ada suppress check for Ada95, don't build demo
700 --without-manpages suppress install of manpages
701 --without-progs suppress build with programs (e.g., tic)
702 --without-curses-h install curses.h as ncurses.h only
703 --with-pkg-config{=path} enable/disable use of pkg-config
704 --enable-pc-files generate and install .pc files for pkg-config
705 --enable-mixed-case tic should assume mixed-case filenames
706 --with-install-prefix prefixes actual install-location ($DESTDIR)
707 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
708 --with-build-cc=XXX the build C compiler ($BUILD_CC)
709 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
710 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
711 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
712 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
713 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
714 Options to Specify the Libraries Built/Used:
715 --with-libtool generate libraries with libtool
716 --with-shared generate shared-libraries
717 --with-normal generate normal-libraries (default)
718 --with-debug generate debug-libraries (default)
719 --with-profile generate profile-libraries
720 --with-termlib generate separate terminfo library
721 --with-ticlib generate separate tic library
722 --with-gpm use Alessandro Rubini's GPM library
723 --without-dlsym do not use dlsym() to load GPM dynamically
724 --with-sysmouse use sysmouse (FreeBSD console)
725 --enable-rpath use rpath option when generating shared libraries
726 --disable-relink relink shared libraries during install
727 --with-shlib-version=X Specify rel or abi version for shared libs
728 Fine-Tuning Your Configuration:
729 --disable-overwrite leave out the link to -lcurses
730 --disable-database do not use terminfo, only fallbacks/termcap
731 --with-database=XXX specify terminfo source to install
732 --with-hashed-db specify hashed-database library
733 --with-fallbacks=XXX specify list of fallback terminal descriptions
734 --without-xterm-new specify if xterm terminfo should be old version
735 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
736 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
737 --disable-big-core assume machine has little memory
738 --disable-big-strings assume compiler has only standard-size strings
739 --enable-termcap compile in termcap fallback support
740 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
741 --enable-getcap fast termcap load, no xrefs to terminfo
742 --enable-getcap-cache cache translated termcaps in ~/.terminfo
743 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
744 --disable-root-environ restrict environment when running as root
745 --enable-symlinks make tic use symbolic links not hard links
746 --enable-broken_linker compile with broken-linker support code
747 --enable-bsdpad recognize BSD-style prefix padding
748 --enable-widec compile with wide-char/UTF-8 code
749 --disable-lp64 allow chtype to be long (ignore _LP64)
750 --disable-largefile omit support for large files
751 --disable-tparm-varargs compile tparm() without varargs interface
752 --disable-tic-depends link tic library without explicit dependency on ncurses library
753 --with-bool=TYPE override fallback type of bool variable
754 --with-caps=alt compile with alternate Caps file
755 --with-chtype=TYPE override type of chtype
756 --with-ospeed=TYPE override type of ospeed variable
757 --with-mmask-t=TYPE override type of mmask_t
758 --with-ccharw-max=XXX override size CCHARW_MAX
759 --with-rcs-ids compile-in RCS identifiers
760 Options to Specify How Manpages are Installed:
761 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
762 optionally formatted/catonly, e.g., gzip,formatted
763 --with-manpage-renames specify manpage-renaming
764 --with-manpage-aliases specify manpage-aliases using .so
765 --with-manpage-symlinks specify manpage-aliases using symlinks
766 --with-manpage-tbl specify manpage processing with tbl
768 --disable-ext-funcs disable function-extensions
769 --enable-sp-funcs disable experimental SCREEN-extensions
770 --enable-const compile with extra/non-standard const
771 --enable-ext-colors compile for 256-color support
772 --enable-ext-mouse compile for extended mouse-encoding
773 --enable-no-padding compile with $NCURSES_NO_PADDING code
774 --enable-signed-char compile using signed Boolean's in term.h
775 --enable-sigwinch compile with SIGWINCH handler
776 --enable-tcap-names compile with user-definable terminal capabilities
778 --without-develop disable development options
779 --enable-hard-tabs compile with hard-tabs code
780 --enable-xmc-glitch compile with support for xmc (magic-cookie)
782 --disable-assumed-color do not assume anything about default-colors
783 --disable-hashmap compile without hashmap scrolling-optimization
784 --enable-colorfgbg compile with $COLORFGBG code
785 --with-pthread use POSIX thread library
786 --enable-weak-symbols enable weak-symbols for pthreads
787 --enable-reentrant compile with experimental reentrant code
788 --with-wrap-prefix=XXX override prefix used for public variables
789 --enable-safe-sprintf compile with experimental safe-sprintf code
790 --disable-scroll-hints compile without scroll-hints code
791 --enable-wgetch-events compile with experimental wgetch-events code
792 Testing/development Options:
793 --enable-echo build: display "compiling" commands (default)
794 --enable-warnings build: turn on GCC compiler warnings
795 --enable-assertions test: turn on generation of assertion code
796 --with-dmalloc test: use Gray Watson's dmalloc library
797 --with-dbmalloc test: use Conor Cahill's dbmalloc library
798 --with-valgrind test: use valgrind
799 --disable-leaks test: free permanent memory, analyze leaks
800 --enable-expanded test: generate functions for certain macros
801 --disable-macros test: use functions rather than macros
802 --with-trace test: add trace() function to all models of ncurses
803 Ada95 Binding Options:
804 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
805 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
806 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
808 Some influential environment variables:
809 CC C compiler command
810 CFLAGS C compiler flags
811 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
812 nonstandard directory <lib dir>
813 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
814 headers in a nonstandard directory <include dir>
816 CXX C++ compiler command
817 CXXFLAGS C++ compiler flags
818 CXXCPP C++ preprocessor
820 Use these variables to override the choices made by `configure' or to help
821 it to find libraries and programs with nonstandard names/locations.
826 if test "$ac_init_help" = "recursive"; then
827 # If there are subdirs, report their specific --help.
829 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
831 # A "../" for each directory in /$ac_subdir.
832 ac_dots=`echo $ac_subdir |
833 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
836 .) # No --srcdir option. We are building in place.
837 ac_sub_srcdir=$srcdir ;;
838 [\\/]* | ?:[\\/]* ) # Absolute path.
839 ac_sub_srcdir=$srcdir/$ac_subdir ;;
841 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
844 # Check for guested configure; otherwise get Cygnus style configure.
845 if test -f $ac_sub_srcdir/configure.gnu; then
847 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
848 elif test -f $ac_sub_srcdir/configure; then
850 $SHELL $ac_sub_srcdir/configure --help=recursive
851 elif test -f $ac_sub_srcdir/configure.ac ||
852 test -f $ac_sub_srcdir/configure.in; then
856 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
862 test -n "$ac_init_help" && exit 0
863 if $ac_init_version; then
866 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
867 Free Software Foundation, Inc.
868 This configure script is free software; the Free Software Foundation
869 gives unlimited permission to copy, distribute and modify it.
875 This file contains any messages produced by compilers while
876 running configure, to aid debugging if configure makes a mistake.
878 It was created by $as_me, which was
879 generated by GNU Autoconf 2.52.20081225. Invocation command line was
890 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
891 uname -m = `(uname -m) 2>/dev/null || echo unknown`
892 uname -r = `(uname -r) 2>/dev/null || echo unknown`
893 uname -s = `(uname -s) 2>/dev/null || echo unknown`
894 uname -v = `(uname -v) 2>/dev/null || echo unknown`
896 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
897 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
899 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
900 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
901 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
902 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
903 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
904 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
905 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
919 # Keep a trace of the command line.
920 # Strip out --no-create and --no-recursion so they do not pile up.
921 # Also quote any args containing shell meta-characters.
927 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
928 | --no-cr | --no-c) ;;
929 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
930 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
931 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
932 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
933 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
935 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
938 # Get rid of the leading space.
941 # When interrupted or exit'd, cleanup temporary files, and complete
942 # config.log. We remove comments because anyway the quotes in there
943 # would cause problems or look ugly.
945 # Save into config.log some information that might help in debugging.
947 echo "## ----------------- ##" >&5
948 echo "## Cache variables. ##" >&5
949 echo "## ----------------- ##" >&5
951 # The following way of writing the cache mishandles newlines in values,
954 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
957 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
962 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
966 sed "/^$/d" confdefs.h >conftest.log
967 if test -s conftest.log; then
969 echo "## ------------ ##" >&5
970 echo "## confdefs.h. ##" >&5
971 echo "## ------------ ##" >&5
976 test "$ac_signal" != 0 &&
977 echo "$as_me: caught signal $ac_signal" >&5
978 echo "$as_me: exit $exit_status" >&5
979 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
982 for ac_signal in 1 2 13 15; do
983 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
987 # confdefs.h avoids OS command line length limits that DEFS can exceed.
988 rm -rf conftest* confdefs.h
989 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
992 # Let the site file select an alternate cache file if it wants to.
993 # Prefer explicitly selected file to automatically selected ones.
994 if test -z "$CONFIG_SITE"; then
995 if test "x$prefix" != xNONE; then
996 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
998 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1001 for ac_site_file in $CONFIG_SITE; do
1002 if test -r "$ac_site_file"; then
1003 { echo "$as_me:1003: loading site script $ac_site_file" >&5
1004 echo "$as_me: loading site script $ac_site_file" >&6;}
1005 cat "$ac_site_file" >&5
1010 if test -r "$cache_file"; then
1011 # Some versions of bash will fail to source /dev/null (special
1012 # files actually), so we avoid doing that.
1013 if test -f "$cache_file"; then
1014 { echo "$as_me:1014: loading cache $cache_file" >&5
1015 echo "$as_me: loading cache $cache_file" >&6;}
1017 [\\/]* | ?:[\\/]* ) . $cache_file;;
1018 *) . ./$cache_file;;
1022 { echo "$as_me:1022: creating cache $cache_file" >&5
1023 echo "$as_me: creating cache $cache_file" >&6;}
1027 # Check that the precious variables saved in the cache have kept the same
1029 ac_cache_corrupted=false
1030 for ac_var in `(set) 2>&1 |
1031 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1032 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1033 eval ac_new_set=\$ac_env_${ac_var}_set
1034 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1035 eval ac_new_val="\$ac_env_${ac_var}_value"
1036 case $ac_old_set,$ac_new_set in
1038 { echo "$as_me:1038: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1039 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1040 ac_cache_corrupted=: ;;
1042 { echo "$as_me:1042: error: \`$ac_var' was not set in the previous run" >&5
1043 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1044 ac_cache_corrupted=: ;;
1047 if test "x$ac_old_val" != "x$ac_new_val"; then
1048 { echo "$as_me:1048: error: \`$ac_var' has changed since the previous run:" >&5
1049 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1050 { echo "$as_me:1050: former value: $ac_old_val" >&5
1051 echo "$as_me: former value: $ac_old_val" >&2;}
1052 { echo "$as_me:1052: current value: $ac_new_val" >&5
1053 echo "$as_me: current value: $ac_new_val" >&2;}
1054 ac_cache_corrupted=:
1057 # Pass precious variables to config.status. It doesn't matter if
1058 # we pass some twice (in addition to the command line arguments).
1059 if test "$ac_new_set" = set; then
1061 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1062 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1063 ac_configure_args="$ac_configure_args '$ac_arg'"
1065 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1070 if $ac_cache_corrupted; then
1071 { echo "$as_me:1071: error: changes in the environment can compromise the build" >&5
1072 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1073 { { echo "$as_me:1073: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1074 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1075 { (exit 1); exit 1; }; }
1079 ac_cpp='$CPP $CPPFLAGS'
1080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1083 ac_main_return=return
1085 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1086 *c*,-n*) ECHO_N= ECHO_C='
1088 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1089 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1091 echo "#! $SHELL" >conftest.sh
1092 echo "exit 0" >>conftest.sh
1093 chmod +x conftest.sh
1094 if { (echo "$as_me:1094: PATH=\".;.\"; conftest.sh") >&5
1095 (PATH=".;."; conftest.sh) 2>&5
1097 echo "$as_me:1097: \$? = $ac_status" >&5
1098 (exit $ac_status); }; then
1099 ac_path_separator=';'
1103 PATH_SEPARATOR="$ac_path_separator"
1106 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1110 echo "$as_me:1110: checking for egrep" >&5
1111 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1112 if test "${ac_cv_prog_egrep+set}" = set; then
1113 echo $ECHO_N "(cached) $ECHO_C" >&6
1115 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1116 then ac_cv_prog_egrep='grep -E'
1117 else ac_cv_prog_egrep='egrep'
1120 echo "$as_me:1120: result: $ac_cv_prog_egrep" >&5
1121 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1122 EGREP=$ac_cv_prog_egrep
1124 test -z "$EGREP" && { { echo "$as_me:1124: error: No egrep program found" >&5
1125 echo "$as_me: error: No egrep program found" >&2;}
1126 { (exit 1); exit 1; }; }
1128 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1129 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1130 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1131 cf_cv_abi_version=${NCURSES_MAJOR}
1132 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1133 cf_cv_timestamp=`date`
1134 echo "$as_me:1134: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1135 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1137 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1139 # Check whether --with-rel-version or --without-rel-version was given.
1140 if test "${with_rel_version+set}" = set; then
1141 withval="$with_rel_version"
1142 { echo "$as_me:1142: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1143 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1144 cf_cv_rel_version=$withval
1147 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1148 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1150 if test -n "$NCURSES_MAJOR" ; then
1151 case $NCURSES_MAJOR in #(vi
1155 { { echo "$as_me:1155: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1156 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1157 { (exit 1); exit 1; }; }
1161 { { echo "$as_me:1161: error: Release major-version value is empty" >&5
1162 echo "$as_me: error: Release major-version value is empty" >&2;}
1163 { (exit 1); exit 1; }; }
1166 if test -n "$NCURSES_MINOR" ; then
1167 case $NCURSES_MINOR in #(vi
1171 { { echo "$as_me:1171: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1172 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1173 { (exit 1); exit 1; }; }
1177 { { echo "$as_me:1177: error: Release minor-version value is empty" >&5
1178 echo "$as_me: error: Release minor-version value is empty" >&2;}
1179 { (exit 1); exit 1; }; }
1182 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1184 # Check whether --with-abi-version or --without-abi-version was given.
1185 if test "${with_abi_version+set}" = set; then
1186 withval="$with_abi_version"
1187 { echo "$as_me:1187: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1188 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1189 cf_cv_abi_version=$withval
1192 if test -n "$cf_cv_abi_version" ; then
1193 case $cf_cv_abi_version in #(vi
1197 { { echo "$as_me:1197: error: ABI version is not a number: $cf_cv_abi_version" >&5
1198 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1199 { (exit 1); exit 1; }; }
1203 { { echo "$as_me:1203: error: ABI version value is empty" >&5
1204 echo "$as_me: error: ABI version value is empty" >&2;}
1205 { (exit 1); exit 1; }; }
1209 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1210 if test -f $ac_dir/install-sh; then
1212 ac_install_sh="$ac_aux_dir/install-sh -c"
1214 elif test -f $ac_dir/install.sh; then
1216 ac_install_sh="$ac_aux_dir/install.sh -c"
1218 elif test -f $ac_dir/shtool; then
1220 ac_install_sh="$ac_aux_dir/shtool install -c"
1224 if test -z "$ac_aux_dir"; then
1225 { { echo "$as_me:1225: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1226 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1227 { (exit 1); exit 1; }; }
1229 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1230 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1231 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1233 # Make sure we can run config.sub.
1234 $ac_config_sub sun4 >/dev/null 2>&1 ||
1235 { { echo "$as_me:1235: error: cannot run $ac_config_sub" >&5
1236 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1237 { (exit 1); exit 1; }; }
1239 echo "$as_me:1239: checking build system type" >&5
1240 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1241 if test "${ac_cv_build+set}" = set; then
1242 echo $ECHO_N "(cached) $ECHO_C" >&6
1244 ac_cv_build_alias=$build_alias
1245 test -z "$ac_cv_build_alias" &&
1246 ac_cv_build_alias=`$ac_config_guess`
1247 test -z "$ac_cv_build_alias" &&
1248 { { echo "$as_me:1248: error: cannot guess build type; you must specify one" >&5
1249 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1250 { (exit 1); exit 1; }; }
1251 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1252 { { echo "$as_me:1252: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1253 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1254 { (exit 1); exit 1; }; }
1257 echo "$as_me:1257: result: $ac_cv_build" >&5
1258 echo "${ECHO_T}$ac_cv_build" >&6
1260 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1261 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1262 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1264 echo "$as_me:1264: checking host system type" >&5
1265 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1266 if test "${ac_cv_host+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1269 ac_cv_host_alias=$host_alias
1270 test -z "$ac_cv_host_alias" &&
1271 ac_cv_host_alias=$ac_cv_build_alias
1272 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1273 { { echo "$as_me:1273: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1274 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1275 { (exit 1); exit 1; }; }
1278 echo "$as_me:1278: result: $ac_cv_host" >&5
1279 echo "${ECHO_T}$ac_cv_host" >&6
1281 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1282 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1283 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1285 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1286 echo "$as_me:1286: checking target system type" >&5
1287 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1288 if test "${ac_cv_target+set}" = set; then
1289 echo $ECHO_N "(cached) $ECHO_C" >&6
1291 ac_cv_target_alias=$target_alias
1292 test "x$ac_cv_target_alias" = "x" &&
1293 ac_cv_target_alias=$ac_cv_host_alias
1294 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1295 { { echo "$as_me:1295: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1296 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1297 { (exit 1); exit 1; }; }
1300 echo "$as_me:1300: result: $ac_cv_target" >&5
1301 echo "${ECHO_T}$ac_cv_target" >&6
1302 target=$ac_cv_target
1303 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1304 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1305 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1307 # The aliases save the names the user supplied, while $host etc.
1308 # will get canonicalized.
1309 test -n "$target_alias" &&
1310 test "$program_prefix$program_suffix$program_transform_name" = \
1312 program_prefix=${target_alias}-
1313 system_name="$host_os"
1315 system_name="`(uname -s -r) 2>/dev/null`"
1316 if test -z "$system_name" ; then
1317 system_name="`(hostname) 2>/dev/null`"
1320 test -n "$system_name" && cat >>confdefs.h <<EOF
1321 #define SYSTEM_NAME "$system_name"
1324 if test "${cf_cv_system_name+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 cf_cv_system_name="$system_name"
1330 test -z "$system_name" && system_name="$cf_cv_system_name"
1331 test -n "$cf_cv_system_name" && echo "$as_me:1331: result: Configuring for $cf_cv_system_name" >&5
1332 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1334 if test ".$system_name" != ".$cf_cv_system_name" ; then
1335 echo "$as_me:1335: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1336 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1337 { { echo "$as_me:1337: error: \"Please remove config.cache and try again.\"" >&5
1338 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1339 { (exit 1); exit 1; }; }
1342 # Check whether --with-system-type or --without-system-type was given.
1343 if test "${with_system_type+set}" = set; then
1344 withval="$with_system_type"
1345 { echo "$as_me:1345: WARNING: overriding system type to $withval" >&5
1346 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1347 cf_cv_system_name=$withval
1350 ### Save the given $CFLAGS to allow user-override.
1351 cf_user_CFLAGS="$CFLAGS"
1353 ### Default install-location
1355 echo "$as_me:1355: checking for prefix" >&5
1356 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1357 if test "x$prefix" = "xNONE" ; then
1358 case "$cf_cv_system_name" in
1359 # non-vendor systems don't have a conflict
1360 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1363 *) prefix=$ac_default_prefix
1367 echo "$as_me:1367: result: $prefix" >&5
1368 echo "${ECHO_T}$prefix" >&6
1370 if test "x$prefix" = "xNONE" ; then
1371 echo "$as_me:1371: checking for default include-directory" >&5
1372 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1373 test -n "$verbose" && echo 1>&6
1376 $includedir/ncurses \
1378 $prefix/include/ncurses \
1379 /usr/local/include \
1380 /usr/local/include/ncurses \
1382 /usr/include/ncurses
1384 cf_dir=`eval echo $cf_symbol`
1385 if test -f $cf_dir/curses.h ; then
1386 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1387 includedir="$cf_symbol"
1388 test -n "$verbose" && echo $ac_n " found " 1>&6
1392 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1394 echo "$as_me:1394: result: $includedir" >&5
1395 echo "${ECHO_T}$includedir" >&6
1398 ### Checks for programs.
1400 ac_cpp='$CPP $CPPFLAGS'
1401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1404 ac_main_return=return
1405 if test -n "$ac_tool_prefix"; then
1406 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1408 echo "$as_me:1408: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_prog_CC+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 if test -n "$CC"; then
1414 ac_cv_prog_CC="$CC" # Let the user override the test.
1416 ac_save_IFS=$IFS; IFS=$ac_path_separator
1418 for ac_dir in $ac_dummy; do
1420 test -z "$ac_dir" && ac_dir=.
1421 $as_executable_p "$ac_dir/$ac_word" || continue
1422 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1423 echo "$as_me:1423: found $ac_dir/$ac_word" >&5
1430 if test -n "$CC"; then
1431 echo "$as_me:1431: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1434 echo "$as_me:1434: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1439 if test -z "$ac_cv_prog_CC"; then
1441 # Extract the first word of "gcc", so it can be a program name with args.
1442 set dummy gcc; ac_word=$2
1443 echo "$as_me:1443: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1451 ac_save_IFS=$IFS; IFS=$ac_path_separator
1453 for ac_dir in $ac_dummy; do
1455 test -z "$ac_dir" && ac_dir=.
1456 $as_executable_p "$ac_dir/$ac_word" || continue
1457 ac_cv_prog_ac_ct_CC="gcc"
1458 echo "$as_me:1458: found $ac_dir/$ac_word" >&5
1464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1465 if test -n "$ac_ct_CC"; then
1466 echo "$as_me:1466: result: $ac_ct_CC" >&5
1467 echo "${ECHO_T}$ac_ct_CC" >&6
1469 echo "$as_me:1469: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1478 if test -z "$CC"; then
1479 if test -n "$ac_tool_prefix"; then
1480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1481 set dummy ${ac_tool_prefix}cc; ac_word=$2
1482 echo "$as_me:1482: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1490 ac_save_IFS=$IFS; IFS=$ac_path_separator
1492 for ac_dir in $ac_dummy; do
1494 test -z "$ac_dir" && ac_dir=.
1495 $as_executable_p "$ac_dir/$ac_word" || continue
1496 ac_cv_prog_CC="${ac_tool_prefix}cc"
1497 echo "$as_me:1497: found $ac_dir/$ac_word" >&5
1504 if test -n "$CC"; then
1505 echo "$as_me:1505: result: $CC" >&5
1506 echo "${ECHO_T}$CC" >&6
1508 echo "$as_me:1508: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1513 if test -z "$ac_cv_prog_CC"; then
1515 # Extract the first word of "cc", so it can be a program name with args.
1516 set dummy cc; ac_word=$2
1517 echo "$as_me:1517: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$ac_ct_CC"; then
1523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 ac_save_IFS=$IFS; IFS=$ac_path_separator
1527 for ac_dir in $ac_dummy; do
1529 test -z "$ac_dir" && ac_dir=.
1530 $as_executable_p "$ac_dir/$ac_word" || continue
1531 ac_cv_prog_ac_ct_CC="cc"
1532 echo "$as_me:1532: found $ac_dir/$ac_word" >&5
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540 echo "$as_me:1540: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1543 echo "$as_me:1543: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1553 if test -z "$CC"; then
1554 # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo "$as_me:1556: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 if test -n "$CC"; then
1562 ac_cv_prog_CC="$CC" # Let the user override the test.
1565 ac_save_IFS=$IFS; IFS=$ac_path_separator
1567 for ac_dir in $ac_dummy; do
1569 test -z "$ac_dir" && ac_dir=.
1570 $as_executable_p "$ac_dir/$ac_word" || continue
1571 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1572 ac_prog_rejected=yes
1576 echo "$as_me:1576: found $ac_dir/$ac_word" >&5
1580 if test $ac_prog_rejected = yes; then
1581 # We found a bogon in the path, so make sure we never use it.
1582 set dummy $ac_cv_prog_CC
1584 if test $# != 0; then
1585 # We chose a different compiler from the bogus one.
1586 # However, it has the same basename, so the bogon will be chosen
1587 # first if we set CC to just the basename; use the full file name.
1589 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1597 if test -n "$CC"; then
1598 echo "$as_me:1598: result: $CC" >&5
1599 echo "${ECHO_T}$CC" >&6
1601 echo "$as_me:1601: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1606 if test -z "$CC"; then
1607 if test -n "$ac_tool_prefix"; then
1610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1612 echo "$as_me:1612: checking for $ac_word" >&5
1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614 if test "${ac_cv_prog_CC+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 if test -n "$CC"; then
1618 ac_cv_prog_CC="$CC" # Let the user override the test.
1620 ac_save_IFS=$IFS; IFS=$ac_path_separator
1622 for ac_dir in $ac_dummy; do
1624 test -z "$ac_dir" && ac_dir=.
1625 $as_executable_p "$ac_dir/$ac_word" || continue
1626 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1627 echo "$as_me:1627: found $ac_dir/$ac_word" >&5
1634 if test -n "$CC"; then
1635 echo "$as_me:1635: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1638 echo "$as_me:1638: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1642 test -n "$CC" && break
1645 if test -z "$CC"; then
1649 # Extract the first word of "$ac_prog", so it can be a program name with args.
1650 set dummy $ac_prog; ac_word=$2
1651 echo "$as_me:1651: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 if test -n "$ac_ct_CC"; then
1657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1659 ac_save_IFS=$IFS; IFS=$ac_path_separator
1661 for ac_dir in $ac_dummy; do
1663 test -z "$ac_dir" && ac_dir=.
1664 $as_executable_p "$ac_dir/$ac_word" || continue
1665 ac_cv_prog_ac_ct_CC="$ac_prog"
1666 echo "$as_me:1666: found $ac_dir/$ac_word" >&5
1672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673 if test -n "$ac_ct_CC"; then
1674 echo "$as_me:1674: result: $ac_ct_CC" >&5
1675 echo "${ECHO_T}$ac_ct_CC" >&6
1677 echo "$as_me:1677: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1681 test -n "$ac_ct_CC" && break
1689 test -z "$CC" && { { echo "$as_me:1689: error: no acceptable cc found in \$PATH" >&5
1690 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1691 { (exit 1); exit 1; }; }
1693 # Provide some information about the compiler.
1694 echo "$as_me:1694:" \
1695 "checking for C compiler version" >&5
1696 ac_compiler=`set X $ac_compile; echo $2`
1697 { (eval echo "$as_me:1697: \"$ac_compiler --version </dev/null >&5\"") >&5
1698 (eval $ac_compiler --version </dev/null >&5) 2>&5
1700 echo "$as_me:1700: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1702 { (eval echo "$as_me:1702: \"$ac_compiler -v </dev/null >&5\"") >&5
1703 (eval $ac_compiler -v </dev/null >&5) 2>&5
1705 echo "$as_me:1705: \$? = $ac_status" >&5
1706 (exit $ac_status); }
1707 { (eval echo "$as_me:1707: \"$ac_compiler -V </dev/null >&5\"") >&5
1708 (eval $ac_compiler -V </dev/null >&5) 2>&5
1710 echo "$as_me:1710: \$? = $ac_status" >&5
1711 (exit $ac_status); }
1713 cat >conftest.$ac_ext <<_ACEOF
1714 #line 1714 "configure"
1715 #include "confdefs.h"
1725 ac_clean_files_save=$ac_clean_files
1726 ac_clean_files="$ac_clean_files a.out a.exe"
1727 # Try to create an executable without -o first, disregard a.out.
1728 # It will help us diagnose broken compilers, and finding out an intuition
1730 echo "$as_me:1730: checking for C compiler default output" >&5
1731 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1732 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1733 if { (eval echo "$as_me:1733: \"$ac_link_default\"") >&5
1734 (eval $ac_link_default) 2>&5
1736 echo "$as_me:1736: \$? = $ac_status" >&5
1737 (exit $ac_status); }; then
1738 # Find the output, starting from the most likely. This scheme is
1739 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1741 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1742 ls a.out conftest 2>/dev/null;
1743 ls a.* conftest.* 2>/dev/null`; do
1745 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1746 a.out ) # We found the default executable, but exeext='' is most
1749 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1750 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1757 echo "$as_me: failed program was:" >&5
1758 cat conftest.$ac_ext >&5
1759 { { echo "$as_me:1759: error: C compiler cannot create executables" >&5
1760 echo "$as_me: error: C compiler cannot create executables" >&2;}
1761 { (exit 77); exit 77; }; }
1764 ac_exeext=$ac_cv_exeext
1765 echo "$as_me:1765: result: $ac_file" >&5
1766 echo "${ECHO_T}$ac_file" >&6
1768 # Check the compiler produces executables we can run. If not, either
1769 # the compiler is broken, or we cross compile.
1770 echo "$as_me:1770: checking whether the C compiler works" >&5
1771 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1772 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1773 # If not cross compiling, check that we can run a simple program.
1774 if test "$cross_compiling" != yes; then
1775 if { ac_try='./$ac_file'
1776 { (eval echo "$as_me:1776: \"$ac_try\"") >&5
1779 echo "$as_me:1779: \$? = $ac_status" >&5
1780 (exit $ac_status); }; }; then
1783 if test "$cross_compiling" = maybe; then
1786 { { echo "$as_me:1786: error: cannot run C compiled programs.
1787 If you meant to cross compile, use \`--host'." >&5
1788 echo "$as_me: error: cannot run C compiled programs.
1789 If you meant to cross compile, use \`--host'." >&2;}
1790 { (exit 1); exit 1; }; }
1794 echo "$as_me:1794: result: yes" >&5
1795 echo "${ECHO_T}yes" >&6
1797 rm -f a.out a.exe conftest$ac_cv_exeext
1798 ac_clean_files=$ac_clean_files_save
1799 # Check the compiler produces executables we can run. If not, either
1800 # the compiler is broken, or we cross compile.
1801 echo "$as_me:1801: checking whether we are cross compiling" >&5
1802 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1803 echo "$as_me:1803: result: $cross_compiling" >&5
1804 echo "${ECHO_T}$cross_compiling" >&6
1806 echo "$as_me:1806: checking for executable suffix" >&5
1807 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1808 if { (eval echo "$as_me:1808: \"$ac_link\"") >&5
1809 (eval $ac_link) 2>&5
1811 echo "$as_me:1811: \$? = $ac_status" >&5
1812 (exit $ac_status); }; then
1813 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1814 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1815 # work properly (i.e., refer to `conftest.exe'), while it won't with
1817 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1819 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1820 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1827 { { echo "$as_me:1827: error: cannot compute EXEEXT: cannot compile and link" >&5
1828 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1829 { (exit 1); exit 1; }; }
1832 rm -f conftest$ac_cv_exeext
1833 echo "$as_me:1833: result: $ac_cv_exeext" >&5
1834 echo "${ECHO_T}$ac_cv_exeext" >&6
1836 rm -f conftest.$ac_ext
1837 EXEEXT=$ac_cv_exeext
1839 echo "$as_me:1839: checking for object suffix" >&5
1840 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1841 if test "${ac_cv_objext+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 cat >conftest.$ac_ext <<_ACEOF
1845 #line 1845 "configure"
1846 #include "confdefs.h"
1856 rm -f conftest.o conftest.obj
1857 if { (eval echo "$as_me:1857: \"$ac_compile\"") >&5
1858 (eval $ac_compile) 2>&5
1860 echo "$as_me:1860: \$? = $ac_status" >&5
1861 (exit $ac_status); }; then
1862 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1865 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1870 echo "$as_me: failed program was:" >&5
1871 cat conftest.$ac_ext >&5
1872 { { echo "$as_me:1872: error: cannot compute OBJEXT: cannot compile" >&5
1873 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1874 { (exit 1); exit 1; }; }
1877 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1879 echo "$as_me:1879: result: $ac_cv_objext" >&5
1880 echo "${ECHO_T}$ac_cv_objext" >&6
1881 OBJEXT=$ac_cv_objext
1883 echo "$as_me:1883: checking whether we are using the GNU C compiler" >&5
1884 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1885 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 cat >conftest.$ac_ext <<_ACEOF
1889 #line 1889 "configure"
1890 #include "confdefs.h"
1903 rm -f conftest.$ac_objext
1904 if { (eval echo "$as_me:1904: \"$ac_compile\"") >&5
1905 (eval $ac_compile) 2>&5
1907 echo "$as_me:1907: \$? = $ac_status" >&5
1908 (exit $ac_status); } &&
1909 { ac_try='test -s conftest.$ac_objext'
1910 { (eval echo "$as_me:1910: \"$ac_try\"") >&5
1913 echo "$as_me:1913: \$? = $ac_status" >&5
1914 (exit $ac_status); }; }; then
1917 echo "$as_me: failed program was:" >&5
1918 cat conftest.$ac_ext >&5
1921 rm -f conftest.$ac_objext conftest.$ac_ext
1922 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1925 echo "$as_me:1925: result: $ac_cv_c_compiler_gnu" >&5
1926 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1927 GCC=`test $ac_compiler_gnu = yes && echo yes`
1928 ac_test_CFLAGS=${CFLAGS+set}
1929 ac_save_CFLAGS=$CFLAGS
1931 echo "$as_me:1931: checking whether $CC accepts -g" >&5
1932 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1933 if test "${ac_cv_prog_cc_g+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 cat >conftest.$ac_ext <<_ACEOF
1937 #line 1937 "configure"
1938 #include "confdefs.h"
1948 rm -f conftest.$ac_objext
1949 if { (eval echo "$as_me:1949: \"$ac_compile\"") >&5
1950 (eval $ac_compile) 2>&5
1952 echo "$as_me:1952: \$? = $ac_status" >&5
1953 (exit $ac_status); } &&
1954 { ac_try='test -s conftest.$ac_objext'
1955 { (eval echo "$as_me:1955: \"$ac_try\"") >&5
1958 echo "$as_me:1958: \$? = $ac_status" >&5
1959 (exit $ac_status); }; }; then
1962 echo "$as_me: failed program was:" >&5
1963 cat conftest.$ac_ext >&5
1966 rm -f conftest.$ac_objext conftest.$ac_ext
1968 echo "$as_me:1968: result: $ac_cv_prog_cc_g" >&5
1969 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1970 if test "$ac_test_CFLAGS" = set; then
1971 CFLAGS=$ac_save_CFLAGS
1972 elif test $ac_cv_prog_cc_g = yes; then
1973 if test "$GCC" = yes; then
1979 if test "$GCC" = yes; then
1985 # Some people use a C++ compiler to compile C. Since we use `exit',
1986 # in C++ we need to declare it. In case someone uses the same compiler
1987 # for both compiling C and C++ we need to have the C++ compiler decide
1988 # the declaration of exit, since it's the most demanding environment.
1989 cat >conftest.$ac_ext <<_ACEOF
1994 rm -f conftest.$ac_objext
1995 if { (eval echo "$as_me:1995: \"$ac_compile\"") >&5
1996 (eval $ac_compile) 2>&5
1998 echo "$as_me:1998: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
2000 { ac_try='test -s conftest.$ac_objext'
2001 { (eval echo "$as_me:2001: \"$ac_try\"") >&5
2004 echo "$as_me:2004: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2006 for ac_declaration in \
2008 '#include <stdlib.h>' \
2009 'extern "C" void std::exit (int) throw (); using std::exit;' \
2010 'extern "C" void std::exit (int); using std::exit;' \
2011 'extern "C" void exit (int) throw ();' \
2012 'extern "C" void exit (int);' \
2015 cat >conftest.$ac_ext <<_ACEOF
2016 #line 2016 "configure"
2017 #include "confdefs.h"
2028 rm -f conftest.$ac_objext
2029 if { (eval echo "$as_me:2029: \"$ac_compile\"") >&5
2030 (eval $ac_compile) 2>&5
2032 echo "$as_me:2032: \$? = $ac_status" >&5
2033 (exit $ac_status); } &&
2034 { ac_try='test -s conftest.$ac_objext'
2035 { (eval echo "$as_me:2035: \"$ac_try\"") >&5
2038 echo "$as_me:2038: \$? = $ac_status" >&5
2039 (exit $ac_status); }; }; then
2042 echo "$as_me: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2046 rm -f conftest.$ac_objext conftest.$ac_ext
2047 cat >conftest.$ac_ext <<_ACEOF
2048 #line 2048 "configure"
2049 #include "confdefs.h"
2059 rm -f conftest.$ac_objext
2060 if { (eval echo "$as_me:2060: \"$ac_compile\"") >&5
2061 (eval $ac_compile) 2>&5
2063 echo "$as_me:2063: \$? = $ac_status" >&5
2064 (exit $ac_status); } &&
2065 { ac_try='test -s conftest.$ac_objext'
2066 { (eval echo "$as_me:2066: \"$ac_try\"") >&5
2069 echo "$as_me:2069: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2073 echo "$as_me: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2076 rm -f conftest.$ac_objext conftest.$ac_ext
2079 if test -n "$ac_declaration"; then
2080 echo '#ifdef __cplusplus' >>confdefs.h
2081 echo $ac_declaration >>confdefs.h
2082 echo '#endif' >>confdefs.h
2086 echo "$as_me: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2089 rm -f conftest.$ac_objext conftest.$ac_ext
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095 ac_main_return=return
2098 if test "$GCC" = yes ; then
2099 echo "$as_me:2099: checking version of $CC" >&5
2100 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2101 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2102 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2103 echo "$as_me:2103: result: $GCC_VERSION" >&5
2104 echo "${ECHO_T}$GCC_VERSION" >&6
2108 ac_cpp='$CPP $CPPFLAGS'
2109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112 ac_main_return=return
2113 echo "$as_me:2113: checking how to run the C preprocessor" >&5
2114 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2115 # On Suns, sometimes $CPP names a directory.
2116 if test -n "$CPP" && test -d "$CPP"; then
2119 if test -z "$CPP"; then
2120 if test "${ac_cv_prog_CPP+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 # Double quotes because CPP needs to be expanded
2124 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2127 for ac_c_preproc_warn_flag in '' yes
2129 # Use a header file that comes with gcc, so configuring glibc
2130 # with a fresh cross-compiler works.
2131 # On the NeXT, cc -E runs the code through the compiler's parser,
2132 # not just through cpp. "Syntax error" is here to catch this case.
2133 cat >conftest.$ac_ext <<_ACEOF
2134 #line 2134 "configure"
2135 #include "confdefs.h"
2139 if { (eval echo "$as_me:2139: \"$ac_cpp conftest.$ac_ext\"") >&5
2140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2142 egrep -v '^ *\+' conftest.er1 >conftest.err
2144 cat conftest.err >&5
2145 echo "$as_me:2145: \$? = $ac_status" >&5
2146 (exit $ac_status); } >/dev/null; then
2147 if test -s conftest.err; then
2148 ac_cpp_err=$ac_c_preproc_warn_flag
2155 if test -z "$ac_cpp_err"; then
2158 echo "$as_me: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2160 # Broken: fails on valid input.
2163 rm -f conftest.err conftest.$ac_ext
2165 # OK, works on sane cases. Now check whether non-existent headers
2166 # can be detected and how.
2167 cat >conftest.$ac_ext <<_ACEOF
2168 #line 2168 "configure"
2169 #include "confdefs.h"
2170 #include <ac_nonexistent.h>
2172 if { (eval echo "$as_me:2172: \"$ac_cpp conftest.$ac_ext\"") >&5
2173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2175 egrep -v '^ *\+' conftest.er1 >conftest.err
2177 cat conftest.err >&5
2178 echo "$as_me:2178: \$? = $ac_status" >&5
2179 (exit $ac_status); } >/dev/null; then
2180 if test -s conftest.err; then
2181 ac_cpp_err=$ac_c_preproc_warn_flag
2188 if test -z "$ac_cpp_err"; then
2189 # Broken: success on invalid input.
2192 echo "$as_me: failed program was:" >&5
2193 cat conftest.$ac_ext >&5
2194 # Passes both tests.
2198 rm -f conftest.err conftest.$ac_ext
2201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2202 rm -f conftest.err conftest.$ac_ext
2203 if $ac_preproc_ok; then
2215 echo "$as_me:2215: result: $CPP" >&5
2216 echo "${ECHO_T}$CPP" >&6
2218 for ac_c_preproc_warn_flag in '' yes
2220 # Use a header file that comes with gcc, so configuring glibc
2221 # with a fresh cross-compiler works.
2222 # On the NeXT, cc -E runs the code through the compiler's parser,
2223 # not just through cpp. "Syntax error" is here to catch this case.
2224 cat >conftest.$ac_ext <<_ACEOF
2225 #line 2225 "configure"
2226 #include "confdefs.h"
2230 if { (eval echo "$as_me:2230: \"$ac_cpp conftest.$ac_ext\"") >&5
2231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2233 egrep -v '^ *\+' conftest.er1 >conftest.err
2235 cat conftest.err >&5
2236 echo "$as_me:2236: \$? = $ac_status" >&5
2237 (exit $ac_status); } >/dev/null; then
2238 if test -s conftest.err; then
2239 ac_cpp_err=$ac_c_preproc_warn_flag
2246 if test -z "$ac_cpp_err"; then
2249 echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 # Broken: fails on valid input.
2254 rm -f conftest.err conftest.$ac_ext
2256 # OK, works on sane cases. Now check whether non-existent headers
2257 # can be detected and how.
2258 cat >conftest.$ac_ext <<_ACEOF
2259 #line 2259 "configure"
2260 #include "confdefs.h"
2261 #include <ac_nonexistent.h>
2263 if { (eval echo "$as_me:2263: \"$ac_cpp conftest.$ac_ext\"") >&5
2264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2266 egrep -v '^ *\+' conftest.er1 >conftest.err
2268 cat conftest.err >&5
2269 echo "$as_me:2269: \$? = $ac_status" >&5
2270 (exit $ac_status); } >/dev/null; then
2271 if test -s conftest.err; then
2272 ac_cpp_err=$ac_c_preproc_warn_flag
2279 if test -z "$ac_cpp_err"; then
2280 # Broken: success on invalid input.
2283 echo "$as_me: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2285 # Passes both tests.
2289 rm -f conftest.err conftest.$ac_ext
2292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2293 rm -f conftest.err conftest.$ac_ext
2294 if $ac_preproc_ok; then
2297 { { echo "$as_me:2297: error: C preprocessor \"$CPP\" fails sanity check" >&5
2298 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2299 { (exit 1); exit 1; }; }
2303 ac_cpp='$CPP $CPPFLAGS'
2304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307 ac_main_return=return
2309 if test $ac_cv_c_compiler_gnu = yes; then
2310 echo "$as_me:2310: checking whether $CC needs -traditional" >&5
2311 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2312 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 ac_pattern="Autoconf.*'x'"
2316 cat >conftest.$ac_ext <<_ACEOF
2317 #line 2317 "configure"
2318 #include "confdefs.h"
2320 int Autoconf = TIOCGETP;
2322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2323 egrep "$ac_pattern" >/dev/null 2>&1; then
2324 ac_cv_prog_gcc_traditional=yes
2326 ac_cv_prog_gcc_traditional=no
2330 if test $ac_cv_prog_gcc_traditional = no; then
2331 cat >conftest.$ac_ext <<_ACEOF
2332 #line 2332 "configure"
2333 #include "confdefs.h"
2335 int Autoconf = TCGETA;
2337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2338 egrep "$ac_pattern" >/dev/null 2>&1; then
2339 ac_cv_prog_gcc_traditional=yes
2345 echo "$as_me:2345: result: $ac_cv_prog_gcc_traditional" >&5
2346 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2347 if test $ac_cv_prog_gcc_traditional = yes; then
2348 CC="$CC -traditional"
2352 echo "$as_me:2352: checking whether $CC understands -c and -o together" >&5
2353 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2354 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 cat > conftest.$ac_ext <<CF_EOF
2362 ${cf_cv_main_return:-return}(0);
2365 # We do the test twice because some compilers refuse to overwrite an
2366 # existing .o file with -o, though they will create one.
2367 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2368 if { (eval echo "$as_me:2368: \"$ac_try\"") >&5
2371 echo "$as_me:2371: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 test -f conftest2.$ac_objext && { (eval echo "$as_me:2373: \"$ac_try\"") >&5
2376 echo "$as_me:2376: \$? = $ac_status" >&5
2377 (exit $ac_status); };
2379 eval cf_cv_prog_CC_c_o=yes
2381 eval cf_cv_prog_CC_c_o=no
2386 if test $cf_cv_prog_CC_c_o = yes; then
2387 echo "$as_me:2387: result: yes" >&5
2388 echo "${ECHO_T}yes" >&6
2390 echo "$as_me:2390: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2394 echo "$as_me:2394: checking for POSIXized ISC" >&5
2395 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2396 if test -d /etc/conf/kconfig.d &&
2397 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2399 echo "$as_me:2399: result: yes" >&5
2400 echo "${ECHO_T}yes" >&6
2401 ISC=yes # If later tests want to check for ISC.
2403 cat >>confdefs.h <<\EOF
2404 #define _POSIX_SOURCE 1
2407 if test "$GCC" = yes; then
2413 echo "$as_me:2413: result: no" >&5
2414 echo "${ECHO_T}no" >&6
2418 echo "$as_me:2418: checking for ${CC-cc} option to accept ANSI C" >&5
2419 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2420 if test "${cf_cv_ansi_cc+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 cf_save_CFLAGS="$CFLAGS"
2426 cf_save_CPPFLAGS="$CPPFLAGS"
2427 # Don't try gcc -ansi; that turns off useful extensions and
2428 # breaks some systems' header files.
2429 # AIX -qlanglvl=ansi
2430 # Ultrix and OSF/1 -std1
2431 # HP-UX -Aa -D_HPUX_SOURCE
2433 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2434 for cf_arg in "-DCC_HAS_PROTOS" \
2439 "-Aa -D_HPUX_SOURCE" \
2446 cf_new_extra_cppflags=
2448 for cf_add_cflags in $cf_arg
2450 case $cf_fix_cppflags in
2452 case $cf_add_cflags in #(vi
2453 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2454 case $cf_add_cflags in
2456 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2458 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2459 && test -z "${cf_tst_cflags}" \
2460 && cf_fix_cppflags=yes
2462 if test $cf_fix_cppflags = yes ; then
2463 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2465 elif test "${cf_tst_cflags}" = "\"'" ; then
2466 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2472 *$cf_add_cflags) #(vi
2475 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2480 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2485 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2487 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2489 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2490 && test -z "${cf_tst_cflags}" \
2491 && cf_fix_cppflags=no
2496 if test -n "$cf_new_cflags" ; then
2498 CFLAGS="$CFLAGS $cf_new_cflags"
2501 if test -n "$cf_new_cppflags" ; then
2503 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2506 if test -n "$cf_new_extra_cppflags" ; then
2508 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2511 cat >conftest.$ac_ext <<_ACEOF
2512 #line 2512 "configure"
2513 #include "confdefs.h"
2515 #ifndef CC_HAS_PROTOS
2516 #if !defined(__STDC__) || (__STDC__ != 1)
2525 int test (int i, double x);
2526 struct s1 {int (*f) (int a);};
2527 struct s2 {int (*f) (double a);};
2532 rm -f conftest.$ac_objext
2533 if { (eval echo "$as_me:2533: \"$ac_compile\"") >&5
2534 (eval $ac_compile) 2>&5
2536 echo "$as_me:2536: \$? = $ac_status" >&5
2537 (exit $ac_status); } &&
2538 { ac_try='test -s conftest.$ac_objext'
2539 { (eval echo "$as_me:2539: \"$ac_try\"") >&5
2542 echo "$as_me:2542: \$? = $ac_status" >&5
2543 (exit $ac_status); }; }; then
2544 cf_cv_ansi_cc="$cf_arg"; break
2546 echo "$as_me: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2549 rm -f conftest.$ac_objext conftest.$ac_ext
2551 CFLAGS="$cf_save_CFLAGS"
2552 CPPFLAGS="$cf_save_CPPFLAGS"
2555 echo "$as_me:2555: result: $cf_cv_ansi_cc" >&5
2556 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2558 if test "$cf_cv_ansi_cc" != "no"; then
2559 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2564 cf_new_extra_cppflags=
2566 for cf_add_cflags in $cf_cv_ansi_cc
2568 case $cf_fix_cppflags in
2570 case $cf_add_cflags in #(vi
2571 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2572 case $cf_add_cflags in
2574 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2576 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2577 && test -z "${cf_tst_cflags}" \
2578 && cf_fix_cppflags=yes
2580 if test $cf_fix_cppflags = yes ; then
2581 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2583 elif test "${cf_tst_cflags}" = "\"'" ; then
2584 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2590 *$cf_add_cflags) #(vi
2593 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2598 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2603 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2605 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2607 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2608 && test -z "${cf_tst_cflags}" \
2609 && cf_fix_cppflags=no
2614 if test -n "$cf_new_cflags" ; then
2616 CFLAGS="$CFLAGS $cf_new_cflags"
2619 if test -n "$cf_new_cppflags" ; then
2621 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2624 if test -n "$cf_new_extra_cppflags" ; then
2626 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2630 cat >>confdefs.h <<\EOF
2631 #define CC_HAS_PROTOS 1
2637 if test "$cf_cv_ansi_cc" = "no"; then
2638 { { echo "$as_me:2638: error: Your compiler does not appear to recognize prototypes.
2639 You have the following choices:
2640 a. adjust your compiler options
2641 b. get an up-to-date compiler
2642 c. use a wrapper such as unproto" >&5
2643 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2644 You have the following choices:
2645 a. adjust your compiler options
2646 b. get an up-to-date compiler
2647 c. use a wrapper such as unproto" >&2;}
2648 { (exit 1); exit 1; }; }
2651 case $cf_cv_system_name in
2653 CFLAGS="$CFLAGS -Zmt"
2654 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2655 CXXFLAGS="$CXXFLAGS -Zmt"
2656 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2657 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2664 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2665 #define PROG_EXT "$PROG_EXT"
2668 if test "$cross_compiling" = yes ; then
2671 case "$cf_cv_system_name" in #(vi
2672 dragonfly*|freebsd*) #(vi
2673 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2675 *) LDPATH=$PATH:/sbin:/usr/sbin
2676 # Extract the first word of "ldconfig", so it can be a program name with args.
2677 set dummy ldconfig; ac_word=$2
2678 echo "$as_me:2678: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2688 ac_save_IFS=$IFS; IFS=$ac_path_separator
2690 for ac_dir in $ac_dummy; do
2692 test -z "$ac_dir" && ac_dir=.
2693 if $as_executable_p "$ac_dir/$ac_word"; then
2694 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2695 echo "$as_me:2695: found $ac_dir/$ac_word" >&5
2703 LDCONFIG=$ac_cv_path_LDCONFIG
2705 if test -n "$LDCONFIG"; then
2706 echo "$as_me:2706: result: $LDCONFIG" >&5
2707 echo "${ECHO_T}$LDCONFIG" >&6
2709 echo "$as_me:2709: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2717 echo "$as_me:2717: checking if you want to ensure bool is consistent with C++" >&5
2718 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2720 # Check whether --with-cxx or --without-cxx was given.
2721 if test "${with_cxx+set}" = set; then
2723 cf_with_cxx=$withval
2727 echo "$as_me:2727: result: $cf_with_cxx" >&5
2728 echo "${ECHO_T}$cf_with_cxx" >&6
2729 if test "X$cf_with_cxx" = Xno ; then
2733 # with autoconf 2.13, we can change the error to a warning:
2735 ac_cpp='$CXXCPP $CPPFLAGS'
2736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2739 ac_main_return=return
2740 if test -n "$ac_tool_prefix"; then
2741 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2745 echo "$as_me:2745: checking for $ac_word" >&5
2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2747 if test "${ac_cv_prog_CXX+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 if test -n "$CXX"; then
2751 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2753 ac_save_IFS=$IFS; IFS=$ac_path_separator
2755 for ac_dir in $ac_dummy; do
2757 test -z "$ac_dir" && ac_dir=.
2758 $as_executable_p "$ac_dir/$ac_word" || continue
2759 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2760 echo "$as_me:2760: found $ac_dir/$ac_word" >&5
2767 if test -n "$CXX"; then
2768 echo "$as_me:2768: result: $CXX" >&5
2769 echo "${ECHO_T}$CXX" >&6
2771 echo "$as_me:2771: result: no" >&5
2772 echo "${ECHO_T}no" >&6
2775 test -n "$CXX" && break
2778 if test -z "$CXX"; then
2780 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 echo "$as_me:2784: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2786 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 if test -n "$ac_ct_CXX"; then
2790 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2792 ac_save_IFS=$IFS; IFS=$ac_path_separator
2794 for ac_dir in $ac_dummy; do
2796 test -z "$ac_dir" && ac_dir=.
2797 $as_executable_p "$ac_dir/$ac_word" || continue
2798 ac_cv_prog_ac_ct_CXX="$ac_prog"
2799 echo "$as_me:2799: found $ac_dir/$ac_word" >&5
2805 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2806 if test -n "$ac_ct_CXX"; then
2807 echo "$as_me:2807: result: $ac_ct_CXX" >&5
2808 echo "${ECHO_T}$ac_ct_CXX" >&6
2810 echo "$as_me:2810: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2814 test -n "$ac_ct_CXX" && break
2816 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2821 # Provide some information about the compiler.
2822 echo "$as_me:2822:" \
2823 "checking for C++ compiler version" >&5
2824 ac_compiler=`set X $ac_compile; echo $2`
2825 { (eval echo "$as_me:2825: \"$ac_compiler --version </dev/null >&5\"") >&5
2826 (eval $ac_compiler --version </dev/null >&5) 2>&5
2828 echo "$as_me:2828: \$? = $ac_status" >&5
2829 (exit $ac_status); }
2830 { (eval echo "$as_me:2830: \"$ac_compiler -v </dev/null >&5\"") >&5
2831 (eval $ac_compiler -v </dev/null >&5) 2>&5
2833 echo "$as_me:2833: \$? = $ac_status" >&5
2834 (exit $ac_status); }
2835 { (eval echo "$as_me:2835: \"$ac_compiler -V </dev/null >&5\"") >&5
2836 (eval $ac_compiler -V </dev/null >&5) 2>&5
2838 echo "$as_me:2838: \$? = $ac_status" >&5
2839 (exit $ac_status); }
2841 echo "$as_me:2841: checking whether we are using the GNU C++ compiler" >&5
2842 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2843 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 cat >conftest.$ac_ext <<_ACEOF
2847 #line 2847 "configure"
2848 #include "confdefs.h"
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:2862: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>&5
2865 echo "$as_me:2865: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -s conftest.$ac_objext'
2868 { (eval echo "$as_me:2868: \"$ac_try\"") >&5
2871 echo "$as_me:2871: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2875 echo "$as_me: failed program was:" >&5
2876 cat conftest.$ac_ext >&5
2879 rm -f conftest.$ac_objext conftest.$ac_ext
2880 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2883 echo "$as_me:2883: result: $ac_cv_cxx_compiler_gnu" >&5
2884 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2885 GXX=`test $ac_compiler_gnu = yes && echo yes`
2886 ac_test_CXXFLAGS=${CXXFLAGS+set}
2887 ac_save_CXXFLAGS=$CXXFLAGS
2889 echo "$as_me:2889: checking whether $CXX accepts -g" >&5
2890 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2891 if test "${ac_cv_prog_cxx_g+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 cat >conftest.$ac_ext <<_ACEOF
2895 #line 2895 "configure"
2896 #include "confdefs.h"
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:2907: \"$ac_compile\"") >&5
2908 (eval $ac_compile) 2>&5
2910 echo "$as_me:2910: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:2913: \"$ac_try\"") >&5
2916 echo "$as_me:2916: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 ac_cv_prog_cxx_g=yes
2920 echo "$as_me: failed program was:" >&5
2921 cat conftest.$ac_ext >&5
2924 rm -f conftest.$ac_objext conftest.$ac_ext
2926 echo "$as_me:2926: result: $ac_cv_prog_cxx_g" >&5
2927 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2928 if test "$ac_test_CXXFLAGS" = set; then
2929 CXXFLAGS=$ac_save_CXXFLAGS
2930 elif test $ac_cv_prog_cxx_g = yes; then
2931 if test "$GXX" = yes; then
2937 if test "$GXX" = yes; then
2943 for ac_declaration in \
2945 '#include <stdlib.h>' \
2946 'extern "C" void std::exit (int) throw (); using std::exit;' \
2947 'extern "C" void std::exit (int); using std::exit;' \
2948 'extern "C" void exit (int) throw ();' \
2949 'extern "C" void exit (int);' \
2952 cat >conftest.$ac_ext <<_ACEOF
2953 #line 2953 "configure"
2954 #include "confdefs.h"
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:2966: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>&5
2969 echo "$as_me:2969: \$? = $ac_status" >&5
2970 (exit $ac_status); } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (eval echo "$as_me:2972: \"$ac_try\"") >&5
2975 echo "$as_me:2975: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2979 echo "$as_me: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2983 rm -f conftest.$ac_objext conftest.$ac_ext
2984 cat >conftest.$ac_ext <<_ACEOF
2985 #line 2985 "configure"
2986 #include "confdefs.h"
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:2997: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>&5
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:3003: \"$ac_try\"") >&5
3006 echo "$as_me:3006: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3010 echo "$as_me: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3013 rm -f conftest.$ac_objext conftest.$ac_ext
3016 if test -n "$ac_declaration"; then
3017 echo '#ifdef __cplusplus' >>confdefs.h
3018 echo $ac_declaration >>confdefs.h
3019 echo '#endif' >>confdefs.h
3023 ac_cpp='$CPP $CPPFLAGS'
3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027 ac_main_return=return
3029 # autoconf 2.5x removed the error - by hardcoding it to g++.
3030 if test "$CXX" = "g++" ; then
3031 # Extract the first word of "g++", so it can be a program name with args.
3032 set dummy g++; ac_word=$2
3033 echo "$as_me:3033: checking for $ac_word" >&5
3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3035 if test "${ac_cv_path_CXX+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3043 ac_save_IFS=$IFS; IFS=$ac_path_separator
3045 for ac_dir in $ac_dummy; do
3047 test -z "$ac_dir" && ac_dir=.
3048 if $as_executable_p "$ac_dir/$ac_word"; then
3049 ac_cv_path_CXX="$ac_dir/$ac_word"
3050 echo "$as_me:3050: found $ac_dir/$ac_word" >&5
3060 if test -n "$CXX"; then
3061 echo "$as_me:3061: result: $CXX" >&5
3062 echo "${ECHO_T}$CXX" >&6
3064 echo "$as_me:3064: result: no" >&5
3065 echo "${ECHO_T}no" >&6
3069 if test "$CXX" = "g++" ; then
3070 { echo "$as_me:3070: WARNING: ignoring hardcoded g++" >&5
3071 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3072 cf_with_cxx=no; CXX=""; GXX="";
3077 if test "$GXX" = yes; then
3078 echo "$as_me:3078: checking version of g++" >&5
3079 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3080 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3081 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3082 echo "$as_me:3082: result: $GXX_VERSION" >&5
3083 echo "${ECHO_T}$GXX_VERSION" >&6
3086 case $GXX_VERSION in
3088 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3090 { echo "$as_me:3090: WARNING: templates do not work" >&5
3091 echo "$as_me: WARNING: templates do not work" >&2;}
3095 echo "$as_me:3095: checking if you want to build C++ binding and demo" >&5
3096 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3098 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3099 if test "${with_cxx_binding+set}" = set; then
3100 withval="$with_cxx_binding"
3101 cf_with_cxx_binding=$withval
3103 cf_with_cxx_binding=$cf_with_cxx
3105 echo "$as_me:3105: result: $cf_with_cxx_binding" >&5
3106 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3108 echo "$as_me:3108: checking if you want to build with Ada95" >&5
3109 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3111 # Check whether --with-ada or --without-ada was given.
3112 if test "${with_ada+set}" = set; then
3114 cf_with_ada=$withval
3118 echo "$as_me:3118: result: $cf_with_ada" >&5
3119 echo "${ECHO_T}$cf_with_ada" >&6
3121 echo "$as_me:3121: checking if you want to install manpages" >&5
3122 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3124 # Check whether --with-manpages or --without-manpages was given.
3125 if test "${with_manpages+set}" = set; then
3126 withval="$with_manpages"
3127 cf_with_manpages=$withval
3129 cf_with_manpages=yes
3131 echo "$as_me:3131: result: $cf_with_manpages" >&5
3132 echo "${ECHO_T}$cf_with_manpages" >&6
3134 echo "$as_me:3134: checking if you want to build programs such as tic" >&5
3135 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3137 # Check whether --with-progs or --without-progs was given.
3138 if test "${with_progs+set}" = set; then
3139 withval="$with_progs"
3140 cf_with_progs=$withval
3144 echo "$as_me:3144: result: $cf_with_progs" >&5
3145 echo "${ECHO_T}$cf_with_progs" >&6
3147 echo "$as_me:3147: checking if you wish to install curses.h" >&5
3148 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3150 # Check whether --with-curses-h or --without-curses-h was given.
3151 if test "${with_curses_h+set}" = set; then
3152 withval="$with_curses_h"
3153 with_curses_h=$withval
3157 echo "$as_me:3157: result: $with_curses_h" >&5
3158 echo "${ECHO_T}$with_curses_h" >&6
3160 modules_to_build="ncurses"
3161 if test "X$cf_with_progs" != Xno ; then
3162 modules_to_build="$modules_to_build progs tack"
3164 modules_to_build="$modules_to_build panel menu form"
3166 test "$program_prefix" != NONE &&
3167 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3168 # Use a double $ so make ignores it.
3169 test "$program_suffix" != NONE &&
3170 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3171 # Double any \ or $. echo might interpret backslashes.
3172 # By default was `s,x,x', remove it if useless.
3173 cat <<\_ACEOF >conftest.sed
3174 s/[\\$]/&&/g;s/;s,x,x,$//
3176 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3179 for ac_prog in mawk gawk nawk awk
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 echo "$as_me:3183: checking for $ac_word" >&5
3184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3185 if test "${ac_cv_prog_AWK+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 if test -n "$AWK"; then
3189 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3191 ac_save_IFS=$IFS; IFS=$ac_path_separator
3193 for ac_dir in $ac_dummy; do
3195 test -z "$ac_dir" && ac_dir=.
3196 $as_executable_p "$ac_dir/$ac_word" || continue
3197 ac_cv_prog_AWK="$ac_prog"
3198 echo "$as_me:3198: found $ac_dir/$ac_word" >&5
3205 if test -n "$AWK"; then
3206 echo "$as_me:3206: result: $AWK" >&5
3207 echo "${ECHO_T}$AWK" >&6
3209 echo "$as_me:3209: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3213 test -n "$AWK" && break
3216 test -z "$AWK" && { { echo "$as_me:3216: error: No awk program found" >&5
3217 echo "$as_me: error: No awk program found" >&2;}
3218 { (exit 1); exit 1; }; }
3220 echo "$as_me:3220: checking for egrep" >&5
3221 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3222 if test "${ac_cv_prog_egrep+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3226 then ac_cv_prog_egrep='grep -E'
3227 else ac_cv_prog_egrep='egrep'
3230 echo "$as_me:3230: result: $ac_cv_prog_egrep" >&5
3231 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3232 EGREP=$ac_cv_prog_egrep
3234 test -z "$EGREP" && { { echo "$as_me:3234: error: No egrep program found" >&5
3235 echo "$as_me: error: No egrep program found" >&2;}
3236 { (exit 1); exit 1; }; }
3238 # Find a good install program. We prefer a C program (faster),
3239 # so one script is as good as another. But avoid the broken or
3240 # incompatible versions:
3241 # SysV /etc/install, /usr/sbin/install
3242 # SunOS /usr/etc/install
3243 # IRIX /sbin/install
3245 # AmigaOS /C/install, which installs bootblocks on floppy discs
3246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3249 # ./install, which can be erroneously created by make from ./install.sh.
3250 echo "$as_me:3250: checking for a BSD compatible install" >&5
3251 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3252 if test -z "$INSTALL"; then
3253 if test "${ac_cv_path_install+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 ac_save_IFS=$IFS; IFS=$ac_path_separator
3257 for ac_dir in $PATH; do
3259 # Account for people who put trailing slashes in PATH elements.
3261 / | ./ | .// | /cC/* \
3262 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3265 # OSF1 and SCO ODT 3.0 have their own names for install.
3266 # Don't use installbsd from OSF since it installs stuff as root
3268 for ac_prog in ginstall scoinst install; do
3269 if $as_executable_p "$ac_dir/$ac_prog"; then
3270 if test $ac_prog = install &&
3271 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3272 # AIX install. It has an incompatible calling convention.
3274 elif test $ac_prog = install &&
3275 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3276 # program-specific install script used by HP pwplus--don't use.
3279 ac_cv_path_install="$ac_dir/$ac_prog -c"
3289 if test "${ac_cv_path_install+set}" = set; then
3290 INSTALL=$ac_cv_path_install
3292 # As a last resort, use the slow shell script. We don't cache a
3293 # path for INSTALL within a source directory, because that will
3294 # break other packages using the cache if that directory is
3295 # removed, or if the path is relative.
3296 INSTALL=$ac_install_sh
3299 echo "$as_me:3299: result: $INSTALL" >&5
3300 echo "${ECHO_T}$INSTALL" >&6
3302 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3303 # It thinks the first close brace ends the variable substitution.
3304 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3306 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3308 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3314 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3315 test -z "$cf_dir" && cf_dir=.
3316 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3320 for ac_prog in tdlint lint alint
3322 # Extract the first word of "$ac_prog", so it can be a program name with args.
3323 set dummy $ac_prog; ac_word=$2
3324 echo "$as_me:3324: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3326 if test "${ac_cv_prog_LINT+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 if test -n "$LINT"; then
3330 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3332 ac_save_IFS=$IFS; IFS=$ac_path_separator
3334 for ac_dir in $ac_dummy; do
3336 test -z "$ac_dir" && ac_dir=.
3337 $as_executable_p "$ac_dir/$ac_word" || continue
3338 ac_cv_prog_LINT="$ac_prog"
3339 echo "$as_me:3339: found $ac_dir/$ac_word" >&5
3345 LINT=$ac_cv_prog_LINT
3346 if test -n "$LINT"; then
3347 echo "$as_me:3347: result: $LINT" >&5
3348 echo "${ECHO_T}$LINT" >&6
3350 echo "$as_me:3350: result: no" >&5
3351 echo "${ECHO_T}no" >&6
3354 test -n "$LINT" && break
3357 echo "$as_me:3357: checking whether ln -s works" >&5
3358 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3360 if test "$LN_S" = "ln -s"; then
3361 echo "$as_me:3361: result: yes" >&5
3362 echo "${ECHO_T}yes" >&6
3364 echo "$as_me:3364: result: no, using $LN_S" >&5
3365 echo "${ECHO_T}no, using $LN_S" >&6
3368 echo "$as_me:3368: checking for long file names" >&5
3369 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3370 if test "${ac_cv_sys_long_file_names+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 ac_cv_sys_long_file_names=yes
3374 # Test for long file names in all the places we know might matter:
3375 # . the current directory, where building will happen
3376 # $prefix/lib where we will be installing things
3377 # $exec_prefix/lib likewise
3378 # eval it to expand exec_prefix.
3379 # $TMPDIR if set, where it might want to write temporary files
3380 # if $TMPDIR is not set:
3381 # /tmp where it might want to write temporary files
3384 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3387 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3389 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3390 test -d $ac_dir || continue
3391 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3392 ac_xdir=$ac_dir/cf$$
3393 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3394 ac_tf1=$ac_xdir/conftest9012345
3395 ac_tf2=$ac_xdir/conftest9012346
3396 (echo 1 >$ac_tf1) 2>/dev/null
3397 (echo 2 >$ac_tf2) 2>/dev/null
3398 ac_val=`cat $ac_tf1 2>/dev/null`
3399 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3400 ac_cv_sys_long_file_names=no
3401 rm -rf $ac_xdir 2>/dev/null
3404 rm -rf $ac_xdir 2>/dev/null
3407 echo "$as_me:3407: result: $ac_cv_sys_long_file_names" >&5
3408 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3409 if test $ac_cv_sys_long_file_names = yes; then
3411 cat >>confdefs.h <<\EOF
3412 #define HAVE_LONG_FILE_NAMES 1
3417 # if we find pkg-config, check if we should install the ".pc" files.
3419 echo "$as_me:3419: checking if you want to use pkg-config" >&5
3420 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3422 # Check whether --with-pkg-config or --without-pkg-config was given.
3423 if test "${with_pkg_config+set}" = set; then
3424 withval="$with_pkg_config"
3425 cf_pkg_config=$withval
3429 echo "$as_me:3429: result: $cf_pkg_config" >&5
3430 echo "${ECHO_T}$cf_pkg_config" >&6
3432 case $cf_pkg_config in #(vi
3437 # Extract the first word of "pkg-config", so it can be a program name with args.
3438 set dummy pkg-config; ac_word=$2
3439 echo "$as_me:3439: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3449 ac_save_IFS=$IFS; IFS=$ac_path_separator
3451 for ac_dir in $ac_dummy; do
3453 test -z "$ac_dir" && ac_dir=.
3454 if $as_executable_p "$ac_dir/$ac_word"; then
3455 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3456 echo "$as_me:3456: found $ac_dir/$ac_word" >&5
3461 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3465 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3467 if test -n "$PKG_CONFIG"; then
3468 echo "$as_me:3468: result: $PKG_CONFIG" >&5
3469 echo "${ECHO_T}$PKG_CONFIG" >&6
3471 echo "$as_me:3471: result: no" >&5
3472 echo "${ECHO_T}no" >&6
3481 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3482 if test "$PKG_CONFIG" != none ; then
3484 if test "x$prefix" != xNONE; then
3485 cf_path_syntax="$prefix"
3487 cf_path_syntax="$ac_default_prefix"
3490 case ".$PKG_CONFIG" in #(vi
3491 .\$\(*\)*|.\'*\'*) #(vi
3495 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3498 eval PKG_CONFIG="$PKG_CONFIG"
3499 case ".$PKG_CONFIG" in #(vi
3501 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3506 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3509 { { echo "$as_me:3509: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3510 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3511 { (exit 1); exit 1; }; }
3517 if test "$PKG_CONFIG" != no ; then
3518 echo "$as_me:3518: checking if we should install .pc files for $PKG_CONFIG" >&5
3519 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3521 # Leave this as something that can be overridden in the environment.
3522 if test -z "$PKG_CONFIG_LIBDIR" ; then
3523 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3526 if test -d "$PKG_CONFIG_LIBDIR" ; then
3528 # Check whether --enable-pc-files or --disable-pc-files was given.
3529 if test "${enable_pc_files+set}" = set; then
3530 enableval="$enable_pc_files"
3531 enable_pc_files=$enableval
3535 echo "$as_me:3535: result: $enable_pc_files" >&5
3536 echo "${ECHO_T}$enable_pc_files" >&6
3538 echo "$as_me:3538: result: no" >&5
3539 echo "${ECHO_T}no" >&6
3540 { echo "$as_me:3540: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3541 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3546 echo "$as_me:3546: checking if we should assume mixed-case filenames" >&5
3547 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3549 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3550 if test "${enable_mixed_case+set}" = set; then
3551 enableval="$enable_mixed_case"
3552 enable_mixedcase=$enableval
3554 enable_mixedcase=auto
3556 echo "$as_me:3556: result: $enable_mixedcase" >&5
3557 echo "${ECHO_T}$enable_mixedcase" >&6
3558 if test "$enable_mixedcase" = "auto" ; then
3560 echo "$as_me:3560: checking if filesystem supports mixed-case filenames" >&5
3561 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3562 if test "${cf_cv_mixedcase+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 if test "$cross_compiling" = yes ; then
3567 case $target_alias in #(vi
3568 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3576 rm -f conftest CONFTEST
3578 if test -f CONFTEST ; then
3583 rm -f conftest CONFTEST
3587 echo "$as_me:3587: result: $cf_cv_mixedcase" >&5
3588 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3589 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3590 #define MIXEDCASE_FILENAMES 1
3594 cf_cv_mixedcase=$enable_mixedcase
3595 if test "$enable_mixedcase" = "yes" ; then
3596 cat >>confdefs.h <<\EOF
3597 #define MIXEDCASE_FILENAMES 1
3603 # do this after mixed-case option (tags/TAGS is not as important as tic).
3604 echo "$as_me:3604: checking whether ${MAKE-make} sets \${MAKE}" >&5
3605 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3606 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3607 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 cat >conftest.make <<\EOF
3612 @echo 'ac_maketemp="${MAKE}"'
3614 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3615 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3616 if test -n "$ac_maketemp"; then
3617 eval ac_cv_prog_make_${ac_make}_set=yes
3619 eval ac_cv_prog_make_${ac_make}_set=no
3623 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3624 echo "$as_me:3624: result: yes" >&5
3625 echo "${ECHO_T}yes" >&6
3628 echo "$as_me:3628: result: no" >&5
3629 echo "${ECHO_T}no" >&6
3630 SET_MAKE="MAKE=${MAKE-make}"
3633 # Extract the first word of "ctags", so it can be a program name with args.
3634 set dummy ctags; ac_word=$2
3635 echo "$as_me:3635: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 if test -n "$MAKE_LOWER_TAGS"; then
3641 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3643 ac_save_IFS=$IFS; IFS=$ac_path_separator
3645 for ac_dir in $ac_dummy; do
3647 test -z "$ac_dir" && ac_dir=.
3648 $as_executable_p "$ac_dir/$ac_word" || continue
3649 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3650 echo "$as_me:3650: found $ac_dir/$ac_word" >&5
3654 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3657 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3658 if test -n "$MAKE_LOWER_TAGS"; then
3659 echo "$as_me:3659: result: $MAKE_LOWER_TAGS" >&5
3660 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3662 echo "$as_me:3662: result: no" >&5
3663 echo "${ECHO_T}no" >&6
3666 if test "$cf_cv_mixedcase" = yes ; then
3667 # Extract the first word of "etags", so it can be a program name with args.
3668 set dummy etags; ac_word=$2
3669 echo "$as_me:3669: checking for $ac_word" >&5
3670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3671 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 if test -n "$MAKE_UPPER_TAGS"; then
3675 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3677 ac_save_IFS=$IFS; IFS=$ac_path_separator
3679 for ac_dir in $ac_dummy; do
3681 test -z "$ac_dir" && ac_dir=.
3682 $as_executable_p "$ac_dir/$ac_word" || continue
3683 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3684 echo "$as_me:3684: found $ac_dir/$ac_word" >&5
3688 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3691 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3692 if test -n "$MAKE_UPPER_TAGS"; then
3693 echo "$as_me:3693: result: $MAKE_UPPER_TAGS" >&5
3694 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3696 echo "$as_me:3696: result: no" >&5
3697 echo "${ECHO_T}no" >&6
3704 if test "$MAKE_UPPER_TAGS" = yes ; then
3710 if test "$MAKE_LOWER_TAGS" = yes ; then
3716 echo "$as_me:3716: checking for makeflags variable" >&5
3717 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3718 if test "${cf_cv_makeflags+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3725 cat >cf_makeflags.tmp <<CF_EOF
3728 @ echo '.$cf_option'
3730 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3731 case "$cf_result" in
3733 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3734 case "$cf_result" in
3735 .*CC=*) cf_cv_makeflags=
3737 *) cf_cv_makeflags=$cf_option
3743 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3747 rm -f cf_makeflags.tmp
3750 echo "$as_me:3750: result: $cf_cv_makeflags" >&5
3751 echo "${ECHO_T}$cf_cv_makeflags" >&6
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 if test -n "$RANLIB"; then
3762 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
3771 echo "$as_me:3771: found $ac_dir/$ac_word" >&5
3777 RANLIB=$ac_cv_prog_RANLIB
3778 if test -n "$RANLIB"; then
3779 echo "$as_me:3779: result: $RANLIB" >&5
3780 echo "${ECHO_T}$RANLIB" >&6
3782 echo "$as_me:3782: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3787 if test -z "$ac_cv_prog_RANLIB"; then
3788 ac_ct_RANLIB=$RANLIB
3789 # Extract the first word of "ranlib", so it can be a program name with args.
3790 set dummy ranlib; 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_RANLIB+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 if test -n "$ac_ct_RANLIB"; then
3797 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
3806 echo "$as_me:3806: found $ac_dir/$ac_word" >&5
3810 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3813 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3814 if test -n "$ac_ct_RANLIB"; then
3815 echo "$as_me:3815: result: $ac_ct_RANLIB" >&5
3816 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3818 echo "$as_me:3818: result: no" >&5
3819 echo "${ECHO_T}no" >&6
3822 RANLIB=$ac_ct_RANLIB
3824 RANLIB="$ac_cv_prog_RANLIB"
3827 if test -n "$ac_tool_prefix"; then
3828 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3829 set dummy ${ac_tool_prefix}ld; ac_word=$2
3830 echo "$as_me:3830: checking for $ac_word" >&5
3831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3832 if test "${ac_cv_prog_LD+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 if test -n "$LD"; then
3836 ac_cv_prog_LD="$LD" # Let the user override the test.
3838 ac_save_IFS=$IFS; IFS=$ac_path_separator
3840 for ac_dir in $ac_dummy; do
3842 test -z "$ac_dir" && ac_dir=.
3843 $as_executable_p "$ac_dir/$ac_word" || continue
3844 ac_cv_prog_LD="${ac_tool_prefix}ld"
3845 echo "$as_me:3845: found $ac_dir/$ac_word" >&5
3852 if test -n "$LD"; then
3853 echo "$as_me:3853: result: $LD" >&5
3854 echo "${ECHO_T}$LD" >&6
3856 echo "$as_me:3856: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3861 if test -z "$ac_cv_prog_LD"; then
3863 # Extract the first word of "ld", so it can be a program name with args.
3864 set dummy ld; ac_word=$2
3865 echo "$as_me:3865: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 if test -n "$ac_ct_LD"; then
3871 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3873 ac_save_IFS=$IFS; IFS=$ac_path_separator
3875 for ac_dir in $ac_dummy; do
3877 test -z "$ac_dir" && ac_dir=.
3878 $as_executable_p "$ac_dir/$ac_word" || continue
3879 ac_cv_prog_ac_ct_LD="ld"
3880 echo "$as_me:3880: found $ac_dir/$ac_word" >&5
3884 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3887 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3888 if test -n "$ac_ct_LD"; then
3889 echo "$as_me:3889: result: $ac_ct_LD" >&5
3890 echo "${ECHO_T}$ac_ct_LD" >&6
3892 echo "$as_me:3892: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3901 if test -n "$ac_tool_prefix"; then
3902 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3903 set dummy ${ac_tool_prefix}ar; ac_word=$2
3904 echo "$as_me:3904: checking for $ac_word" >&5
3905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 if test "${ac_cv_prog_AR+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 if test -n "$AR"; then
3910 ac_cv_prog_AR="$AR" # Let the user override the test.
3912 ac_save_IFS=$IFS; IFS=$ac_path_separator
3914 for ac_dir in $ac_dummy; do
3916 test -z "$ac_dir" && ac_dir=.
3917 $as_executable_p "$ac_dir/$ac_word" || continue
3918 ac_cv_prog_AR="${ac_tool_prefix}ar"
3919 echo "$as_me:3919: found $ac_dir/$ac_word" >&5
3926 if test -n "$AR"; then
3927 echo "$as_me:3927: result: $AR" >&5
3928 echo "${ECHO_T}$AR" >&6
3930 echo "$as_me:3930: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3935 if test -z "$ac_cv_prog_AR"; then
3937 # Extract the first word of "ar", so it can be a program name with args.
3938 set dummy ar; ac_word=$2
3939 echo "$as_me:3939: checking for $ac_word" >&5
3940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3941 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 if test -n "$ac_ct_AR"; then
3945 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3947 ac_save_IFS=$IFS; IFS=$ac_path_separator
3949 for ac_dir in $ac_dummy; do
3951 test -z "$ac_dir" && ac_dir=.
3952 $as_executable_p "$ac_dir/$ac_word" || continue
3953 ac_cv_prog_ac_ct_AR="ar"
3954 echo "$as_me:3954: found $ac_dir/$ac_word" >&5
3958 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3962 if test -n "$ac_ct_AR"; then
3963 echo "$as_me:3963: result: $ac_ct_AR" >&5
3964 echo "${ECHO_T}$ac_ct_AR" >&6
3966 echo "$as_me:3966: result: no" >&5
3967 echo "${ECHO_T}no" >&6
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}ar; ac_word=$2
3978 echo "$as_me:3978: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_AR+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if test -n "$AR"; then
3984 ac_cv_prog_AR="$AR" # Let the user override the test.
3986 ac_save_IFS=$IFS; IFS=$ac_path_separator
3988 for ac_dir in $ac_dummy; do
3990 test -z "$ac_dir" && ac_dir=.
3991 $as_executable_p "$ac_dir/$ac_word" || continue
3992 ac_cv_prog_AR="${ac_tool_prefix}ar"
3993 echo "$as_me:3993: found $ac_dir/$ac_word" >&5
4000 if test -n "$AR"; then
4001 echo "$as_me:4001: result: $AR" >&5
4002 echo "${ECHO_T}$AR" >&6
4004 echo "$as_me:4004: result: no" >&5
4005 echo "${ECHO_T}no" >&6
4009 if test -z "$ac_cv_prog_AR"; then
4011 # Extract the first word of "ar", so it can be a program name with args.
4012 set dummy ar; ac_word=$2
4013 echo "$as_me:4013: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4015 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 if test -n "$ac_ct_AR"; then
4019 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4021 ac_save_IFS=$IFS; IFS=$ac_path_separator
4023 for ac_dir in $ac_dummy; do
4025 test -z "$ac_dir" && ac_dir=.
4026 $as_executable_p "$ac_dir/$ac_word" || continue
4027 ac_cv_prog_ac_ct_AR="ar"
4028 echo "$as_me:4028: found $ac_dir/$ac_word" >&5
4032 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4035 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4036 if test -n "$ac_ct_AR"; then
4037 echo "$as_me:4037: result: $ac_ct_AR" >&5
4038 echo "${ECHO_T}$ac_ct_AR" >&6
4040 echo "$as_me:4040: result: no" >&5
4041 echo "${ECHO_T}no" >&6
4049 echo "$as_me:4049: checking for options to update archives" >&5
4050 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4051 if test "${cf_cv_ar_flags+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 cf_cv_ar_flags=unknown
4056 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4058 rm -f conftest.$ac_cv_objext
4061 cat >conftest.$ac_ext <<EOF
4062 #line 4062 "configure"
4063 int testdata[3] = { 123, 456, 789 };
4065 if { (eval echo "$as_me:4065: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>&5
4068 echo "$as_me:4068: \$? = $ac_status" >&5
4069 (exit $ac_status); } ; then
4070 $AR $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4071 if test -f conftest.a ; then
4072 cf_cv_ar_flags=$cf_ar_flags
4076 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4078 echo "${as_me-configure}:4078: testing cannot compile test-program ..." 1>&5
4083 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4086 echo "$as_me:4086: result: $cf_cv_ar_flags" >&5
4087 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4088 test -z "$ARFLAGS" && ARFLAGS=$cf_cv_ar_flags
4089 ARFLAGS=$cf_cv_ar_flags
4091 echo "$as_me:4091: checking if you have specified an install-prefix" >&5
4092 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4094 # Check whether --with-install-prefix or --without-install-prefix was given.
4095 if test "${with_install_prefix+set}" = set; then
4096 withval="$with_install_prefix"
4097 case "$withval" in #(vi
4100 *) DESTDIR="$withval"
4104 echo "$as_me:4104: result: $DESTDIR" >&5
4105 echo "${ECHO_T}$DESTDIR" >&6
4107 ###############################################################################
4109 # If we're cross-compiling, allow the user to override the tools and their
4110 # options. The configure script is oriented toward identifying the host
4111 # compiler, etc., but we need a build compiler to generate parts of the source.
4113 if test "$cross_compiling" = yes ; then
4115 # defaults that we might want to override
4116 : ${BUILD_CFLAGS:=''}
4117 : ${BUILD_CPPFLAGS:=''}
4118 : ${BUILD_LDFLAGS:=''}
4120 : ${BUILD_EXEEXT:='$x'}
4121 : ${BUILD_OBJEXT:='o'}
4123 # Check whether --with-build-cc or --without-build-cc was given.
4124 if test "${with_build_cc+set}" = set; then
4125 withval="$with_build_cc"
4128 for ac_prog in gcc cc cl
4130 # Extract the first word of "$ac_prog", so it can be a program name with args.
4131 set dummy $ac_prog; ac_word=$2
4132 echo "$as_me:4132: checking for $ac_word" >&5
4133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4134 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 if test -n "$BUILD_CC"; then
4138 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4140 ac_save_IFS=$IFS; IFS=$ac_path_separator
4142 for ac_dir in $ac_dummy; do
4144 test -z "$ac_dir" && ac_dir=.
4145 $as_executable_p "$ac_dir/$ac_word" || continue
4146 ac_cv_prog_BUILD_CC="$ac_prog"
4147 echo "$as_me:4147: found $ac_dir/$ac_word" >&5
4153 BUILD_CC=$ac_cv_prog_BUILD_CC
4154 if test -n "$BUILD_CC"; then
4155 echo "$as_me:4155: result: $BUILD_CC" >&5
4156 echo "${ECHO_T}$BUILD_CC" >&6
4158 echo "$as_me:4158: result: no" >&5
4159 echo "${ECHO_T}no" >&6
4162 test -n "$BUILD_CC" && break
4166 echo "$as_me:4166: checking for native build C compiler" >&5
4167 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4168 echo "$as_me:4168: result: $BUILD_CC" >&5
4169 echo "${ECHO_T}$BUILD_CC" >&6
4171 echo "$as_me:4171: checking for native build C preprocessor" >&5
4172 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4174 # Check whether --with-build-cpp or --without-build-cpp was given.
4175 if test "${with_build_cpp+set}" = set; then
4176 withval="$with_build_cpp"
4177 BUILD_CPP="$withval"
4179 BUILD_CPP='${BUILD_CC} -E'
4181 echo "$as_me:4181: result: $BUILD_CPP" >&5
4182 echo "${ECHO_T}$BUILD_CPP" >&6
4184 echo "$as_me:4184: checking for native build C flags" >&5
4185 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4187 # Check whether --with-build-cflags or --without-build-cflags was given.
4188 if test "${with_build_cflags+set}" = set; then
4189 withval="$with_build_cflags"
4190 BUILD_CFLAGS="$withval"
4192 echo "$as_me:4192: result: $BUILD_CFLAGS" >&5
4193 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4195 echo "$as_me:4195: checking for native build C preprocessor-flags" >&5
4196 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4198 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4199 if test "${with_build_cppflags+set}" = set; then
4200 withval="$with_build_cppflags"
4201 BUILD_CPPFLAGS="$withval"
4203 echo "$as_me:4203: result: $BUILD_CPPFLAGS" >&5
4204 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4206 echo "$as_me:4206: checking for native build linker-flags" >&5
4207 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4209 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4210 if test "${with_build_ldflags+set}" = set; then
4211 withval="$with_build_ldflags"
4212 BUILD_LDFLAGS="$withval"
4214 echo "$as_me:4214: result: $BUILD_LDFLAGS" >&5
4215 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4217 echo "$as_me:4217: checking for native build linker-libraries" >&5
4218 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4220 # Check whether --with-build-libs or --without-build-libs was given.
4221 if test "${with_build_libs+set}" = set; then
4222 withval="$with_build_libs"
4223 BUILD_LIBS="$withval"
4225 echo "$as_me:4225: result: $BUILD_LIBS" >&5
4226 echo "${ECHO_T}$BUILD_LIBS" >&6
4228 # this assumes we're on Unix.
4232 : ${BUILD_CC:='${CC}'}
4234 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4235 { { echo "$as_me:4235: error: Cross-build requires two compilers.
4236 Use --with-build-cc to specify the native compiler." >&5
4237 echo "$as_me: error: Cross-build requires two compilers.
4238 Use --with-build-cc to specify the native compiler." >&2;}
4239 { (exit 1); exit 1; }; }
4243 : ${BUILD_CC:='${CC}'}
4244 : ${BUILD_CPP:='${CPP}'}
4245 : ${BUILD_CFLAGS:='${CFLAGS}'}
4246 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4247 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4248 : ${BUILD_LIBS:='${LIBS}'}
4249 : ${BUILD_EXEEXT:='$x'}
4250 : ${BUILD_OBJEXT:='o'}
4253 ###############################################################################
4255 ### Options to allow the user to specify the set of libraries which are used.
4256 ### Use "--without-normal --with-shared" to allow the default model to be
4257 ### shared, for example.
4262 # common library maintenance symbols that are convenient for libtool scripts:
4263 LIB_CREATE='${AR} -cr'
4264 LIB_OBJECT='${OBJECTS}'
4268 # symbols used to prop libtool up to enable it to determine what it should be
4276 echo "$as_me:4276: checking if you want to build libraries with libtool" >&5
4277 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4279 # Check whether --with-libtool or --without-libtool was given.
4280 if test "${with_libtool+set}" = set; then
4281 withval="$with_libtool"
4282 with_libtool=$withval
4286 echo "$as_me:4286: result: $with_libtool" >&5
4287 echo "${ECHO_T}$with_libtool" >&6
4288 if test "$with_libtool" != "no"; then
4290 if test "$with_libtool" != "yes" ; then
4292 if test "x$prefix" != xNONE; then
4293 cf_path_syntax="$prefix"
4295 cf_path_syntax="$ac_default_prefix"
4298 case ".$with_libtool" in #(vi
4299 .\$\(*\)*|.\'*\'*) #(vi
4303 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4306 eval with_libtool="$with_libtool"
4307 case ".$with_libtool" in #(vi
4309 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4314 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4317 { { echo "$as_me:4317: error: expected a pathname, not \"$with_libtool\"" >&5
4318 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4319 { (exit 1); exit 1; }; }
4323 LIBTOOL=$with_libtool
4325 # Extract the first word of "libtool", so it can be a program name with args.
4326 set dummy libtool; ac_word=$2
4327 echo "$as_me:4327: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4337 ac_save_IFS=$IFS; IFS=$ac_path_separator
4339 for ac_dir in $ac_dummy; do
4341 test -z "$ac_dir" && ac_dir=.
4342 if $as_executable_p "$ac_dir/$ac_word"; then
4343 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4344 echo "$as_me:4344: found $ac_dir/$ac_word" >&5
4352 LIBTOOL=$ac_cv_path_LIBTOOL
4354 if test -n "$LIBTOOL"; then
4355 echo "$as_me:4355: result: $LIBTOOL" >&5
4356 echo "${ECHO_T}$LIBTOOL" >&6
4358 echo "$as_me:4358: result: no" >&5
4359 echo "${ECHO_T}no" >&6
4363 if test -z "$LIBTOOL" ; then
4364 { { echo "$as_me:4364: error: Cannot find libtool" >&5
4365 echo "$as_me: error: Cannot find libtool" >&2;}
4366 { (exit 1); exit 1; }; }
4368 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o'
4369 LIB_OBJECT='${OBJECTS:.o=.lo}'
4371 LIB_CLEAN='${LIBTOOL} --mode=clean'
4372 LIB_COMPILE='${LIBTOOL} --mode=compile'
4373 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4374 LIB_INSTALL='${LIBTOOL} --mode=install'
4375 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4378 # Show the version of libtool
4379 echo "$as_me:4379: checking version of libtool" >&5
4380 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4382 # Save the version in a cache variable - this is not entirely a good
4383 # thing, but the version string from libtool is very ugly, and for
4384 # bug reports it might be useful to have the original string. "("
4385 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.].*//'`
4386 echo "$as_me:4386: result: $cf_cv_libtool_version" >&5
4387 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4388 if test -z "$cf_cv_libtool_version" ; then
4389 { { echo "$as_me:4389: error: This is not GNU libtool" >&5
4390 echo "$as_me: error: This is not GNU libtool" >&2;}
4391 { (exit 1); exit 1; }; }
4394 # special hack to add -no-undefined (which libtool should do for itself)
4396 case "$cf_cv_system_name" in #(vi
4397 cygwin*|mingw32*|uwin*|aix[456]) #(vi
4398 LT_UNDEF=-no-undefined
4402 # special hack to add --tag option for C++ compiler
4403 case $cf_cv_libtool_version in #(vi
4404 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4405 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4406 LIBTOOL="$LIBTOOL --tag=CC"
4409 LIBTOOL_CXX="$LIBTOOL"
4417 test -z "$LIBTOOL" && ECHO_LT=
4419 if test "$with_libtool" != "no" ; then
4421 cf_list_models="$cf_list_models libtool"
4425 echo "$as_me:4425: checking if you want to build shared libraries" >&5
4426 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4428 # Check whether --with-shared or --without-shared was given.
4429 if test "${with_shared+set}" = set; then
4430 withval="$with_shared"
4431 with_shared=$withval
4435 echo "$as_me:4435: result: $with_shared" >&5
4436 echo "${ECHO_T}$with_shared" >&6
4437 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4439 echo "$as_me:4439: checking if you want to build static libraries" >&5
4440 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4442 # Check whether --with-normal or --without-normal was given.
4443 if test "${with_normal+set}" = set; then
4444 withval="$with_normal"
4445 with_normal=$withval
4449 echo "$as_me:4449: result: $with_normal" >&5
4450 echo "${ECHO_T}$with_normal" >&6
4451 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4453 echo "$as_me:4453: checking if you want to build debug libraries" >&5
4454 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4456 # Check whether --with-debug or --without-debug was given.
4457 if test "${with_debug+set}" = set; then
4458 withval="$with_debug"
4463 echo "$as_me:4463: result: $with_debug" >&5
4464 echo "${ECHO_T}$with_debug" >&6
4465 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4467 echo "$as_me:4467: checking if you want to build profiling libraries" >&5
4468 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4470 # Check whether --with-profile or --without-profile was given.
4471 if test "${with_profile+set}" = set; then
4472 withval="$with_profile"
4473 with_profile=$withval
4477 echo "$as_me:4477: result: $with_profile" >&5
4478 echo "${ECHO_T}$with_profile" >&6
4479 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4483 ###############################################################################
4485 echo "$as_me:4485: checking for specified models" >&5
4486 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4487 test -z "$cf_list_models" && cf_list_models=normal
4488 test "$with_libtool" != "no" && cf_list_models=libtool
4489 echo "$as_me:4489: result: $cf_list_models" >&5
4490 echo "${ECHO_T}$cf_list_models" >&6
4492 ### Use the first model as the default, and save its suffix for use in building
4493 ### up test-applications.
4494 echo "$as_me:4494: checking for default model" >&5
4495 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4496 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4497 echo "$as_me:4497: result: $DFT_LWR_MODEL" >&5
4498 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4500 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4511 case $cf_cv_system_name in #(vi
4518 cf_prefix=$LIB_PREFIX
4520 LIB_PREFIX=$cf_prefix
4524 ###############################################################################
4526 echo "$as_me:4526: checking if you want to build a separate terminfo library" >&5
4527 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4529 # Check whether --with-termlib or --without-termlib was given.
4530 if test "${with_termlib+set}" = set; then
4531 withval="$with_termlib"
4532 with_termlib=$withval
4536 echo "$as_me:4536: result: $with_termlib" >&5
4537 echo "${ECHO_T}$with_termlib" >&6
4539 echo "$as_me:4539: checking if you want to build a separate tic library" >&5
4540 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4542 # Check whether --with-ticlib or --without-ticlib was given.
4543 if test "${with_ticlib+set}" = set; then
4544 withval="$with_ticlib"
4545 with_ticlib=$withval
4549 echo "$as_me:4549: result: $with_ticlib" >&5
4550 echo "${ECHO_T}$with_ticlib" >&6
4552 ### Checks for special libraries, must be done up-front.
4555 echo "$as_me:4555: checking if you want to link with the GPM mouse library" >&5
4556 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4558 # Check whether --with-gpm or --without-gpm was given.
4559 if test "${with_gpm+set}" = set; then
4565 echo "$as_me:4565: result: $with_gpm" >&5
4566 echo "${ECHO_T}$with_gpm" >&6
4568 if test "$with_gpm" != no ; then
4569 echo "$as_me:4569: checking for gpm.h" >&5
4570 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4571 if test "${ac_cv_header_gpm_h+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 cat >conftest.$ac_ext <<_ACEOF
4575 #line 4575 "configure"
4576 #include "confdefs.h"
4579 if { (eval echo "$as_me:4579: \"$ac_cpp conftest.$ac_ext\"") >&5
4580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4582 egrep -v '^ *\+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:4585: \$? = $ac_status" >&5
4586 (exit $ac_status); } >/dev/null; then
4587 if test -s conftest.err; then
4588 ac_cpp_err=$ac_c_preproc_warn_flag
4595 if test -z "$ac_cpp_err"; then
4596 ac_cv_header_gpm_h=yes
4598 echo "$as_me: failed program was:" >&5
4599 cat conftest.$ac_ext >&5
4600 ac_cv_header_gpm_h=no
4602 rm -f conftest.err conftest.$ac_ext
4604 echo "$as_me:4604: result: $ac_cv_header_gpm_h" >&5
4605 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4606 if test $ac_cv_header_gpm_h = yes; then
4608 cat >>confdefs.h <<\EOF
4609 #define HAVE_GPM_H 1
4612 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4613 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4615 echo "${as_me-configure}:4615: testing assuming we really have GPM library ..." 1>&5
4617 cat >>confdefs.h <<\EOF
4618 #define HAVE_LIBGPM 1
4622 echo "$as_me:4622: checking for Gpm_Open in -lgpm" >&5
4623 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4624 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 ac_check_lib_save_LIBS=$LIBS
4629 cat >conftest.$ac_ext <<_ACEOF
4630 #line 4630 "configure"
4631 #include "confdefs.h"
4633 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4648 rm -f conftest.$ac_objext conftest$ac_exeext
4649 if { (eval echo "$as_me:4649: \"$ac_link\"") >&5
4650 (eval $ac_link) 2>&5
4652 echo "$as_me:4652: \$? = $ac_status" >&5
4653 (exit $ac_status); } &&
4654 { ac_try='test -s conftest$ac_exeext'
4655 { (eval echo "$as_me:4655: \"$ac_try\"") >&5
4658 echo "$as_me:4658: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4660 ac_cv_lib_gpm_Gpm_Open=yes
4662 echo "$as_me: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4664 ac_cv_lib_gpm_Gpm_Open=no
4666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4667 LIBS=$ac_check_lib_save_LIBS
4669 echo "$as_me:4669: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4670 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4671 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4675 { { echo "$as_me:4675: error: Cannot link with GPM library" >&5
4676 echo "$as_me: error: Cannot link with GPM library" >&2;}
4677 { (exit 1); exit 1; }; }
4685 test "$with_gpm" != maybe && { echo "$as_me:4685: WARNING: Cannot find GPM header" >&5
4686 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4693 if test "$with_gpm" != no ; then
4694 echo "$as_me:4694: checking if you want to load GPM dynamically" >&5
4695 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4697 # Check whether --with-dlsym or --without-dlsym was given.
4698 if test "${with_dlsym+set}" = set; then
4699 withval="$with_dlsym"
4704 echo "$as_me:4704: result: $with_dlsym" >&5
4705 echo "${ECHO_T}$with_dlsym" >&6
4706 if test "$with_dlsym" = yes ; then
4709 echo "$as_me:4709: checking for dlsym" >&5
4710 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4711 if test "${ac_cv_func_dlsym+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 cat >conftest.$ac_ext <<_ACEOF
4715 #line 4715 "configure"
4716 #include "confdefs.h"
4717 /* System header to define __stub macros and hopefully few prototypes,
4718 which can conflict with char dlsym (); below. */
4720 /* Override any gcc2 internal prototype to avoid an error. */
4724 /* We use char because int might match the return type of a gcc2
4725 builtin and then its argument prototype would still apply. */
4732 /* The GNU C library defines this for functions which it implements
4733 to always fail with ENOSYS. Some functions are actually named
4734 something starting with __ and the normal name is an alias. */
4735 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4745 rm -f conftest.$ac_objext conftest$ac_exeext
4746 if { (eval echo "$as_me:4746: \"$ac_link\"") >&5
4747 (eval $ac_link) 2>&5
4749 echo "$as_me:4749: \$? = $ac_status" >&5
4750 (exit $ac_status); } &&
4751 { ac_try='test -s conftest$ac_exeext'
4752 { (eval echo "$as_me:4752: \"$ac_try\"") >&5
4755 echo "$as_me:4755: \$? = $ac_status" >&5
4756 (exit $ac_status); }; }; then
4757 ac_cv_func_dlsym=yes
4759 echo "$as_me: failed program was:" >&5
4760 cat conftest.$ac_ext >&5
4763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4765 echo "$as_me:4765: result: $ac_cv_func_dlsym" >&5
4766 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4767 if test $ac_cv_func_dlsym = yes; then
4772 echo "$as_me:4772: checking for dlsym in -ldl" >&5
4773 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4774 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 ac_check_lib_save_LIBS=$LIBS
4779 cat >conftest.$ac_ext <<_ACEOF
4780 #line 4780 "configure"
4781 #include "confdefs.h"
4783 /* Override any gcc2 internal prototype to avoid an error. */
4787 /* We use char because int might match the return type of a gcc2
4788 builtin and then its argument prototype would still apply. */
4798 rm -f conftest.$ac_objext conftest$ac_exeext
4799 if { (eval echo "$as_me:4799: \"$ac_link\"") >&5
4800 (eval $ac_link) 2>&5
4802 echo "$as_me:4802: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:4805: \"$ac_try\"") >&5
4808 echo "$as_me:4808: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_lib_dl_dlsym=yes
4812 echo "$as_me: failed program was:" >&5
4813 cat conftest.$ac_ext >&5
4814 ac_cv_lib_dl_dlsym=no
4816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4817 LIBS=$ac_check_lib_save_LIBS
4819 echo "$as_me:4819: result: $ac_cv_lib_dl_dlsym" >&5
4820 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4821 if test $ac_cv_lib_dl_dlsym = yes; then
4829 if test "$cf_have_dlsym" = yes ; then
4830 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4832 echo "$as_me:4832: checking whether able to link to dl*() functions" >&5
4833 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4834 cat >conftest.$ac_ext <<_ACEOF
4835 #line 4835 "configure"
4836 #include "confdefs.h"
4843 if ((obj = dlopen("filename", 0)) != 0) {
4844 if (dlsym(obj, "symbolname") == 0) {
4852 rm -f conftest.$ac_objext conftest$ac_exeext
4853 if { (eval echo "$as_me:4853: \"$ac_link\"") >&5
4854 (eval $ac_link) 2>&5
4856 echo "$as_me:4856: \$? = $ac_status" >&5
4857 (exit $ac_status); } &&
4858 { ac_try='test -s conftest$ac_exeext'
4859 { (eval echo "$as_me:4859: \"$ac_try\"") >&5
4862 echo "$as_me:4862: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4865 cat >>confdefs.h <<\EOF
4866 #define HAVE_LIBDL 1
4870 echo "$as_me: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4873 { { echo "$as_me:4873: error: Cannot link test program for libdl" >&5
4874 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4875 { (exit 1); exit 1; }; }
4877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4878 echo "$as_me:4878: result: ok" >&5
4879 echo "${ECHO_T}ok" >&6
4881 { { echo "$as_me:4881: error: Cannot find dlsym function" >&5
4882 echo "$as_me: error: Cannot find dlsym function" >&2;}
4883 { (exit 1); exit 1; }; }
4886 if test "$with_gpm" != yes ; then
4887 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4889 echo "${as_me-configure}:4889: testing assuming soname for gpm is $with_gpm ..." 1>&5
4891 cf_cv_gpm_soname="$with_gpm"