2 # From configure.in Revision: 1.475 .
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 enable experimental SCREEN-extensions
770 --enable-term-driver enable experimental terminal-driver
771 --enable-const compile with extra/non-standard const
772 --enable-ext-colors compile for 256-color support
773 --enable-ext-mouse compile for extended mouse-encoding
774 --enable-no-padding compile with $NCURSES_NO_PADDING code
775 --enable-signed-char compile using signed Boolean's in term.h
776 --enable-sigwinch compile with SIGWINCH handler
777 --enable-tcap-names compile with user-definable terminal capabilities
779 --without-develop disable development options
780 --enable-hard-tabs compile with hard-tabs code
781 --enable-xmc-glitch compile with support for xmc (magic-cookie)
783 --disable-assumed-color do not assume anything about default-colors
784 --disable-hashmap compile without hashmap scrolling-optimization
785 --enable-colorfgbg compile with $COLORFGBG code
786 --with-pthread use POSIX thread library
787 --enable-weak-symbols enable weak-symbols for pthreads
788 --enable-reentrant compile with experimental reentrant code
789 --with-wrap-prefix=XXX override prefix used for public variables
790 --enable-safe-sprintf compile with experimental safe-sprintf code
791 --disable-scroll-hints compile without scroll-hints code
792 --enable-wgetch-events compile with experimental wgetch-events code
793 Testing/development Options:
794 --enable-echo build: display "compiling" commands (default)
795 --enable-warnings build: turn on GCC compiler warnings
796 --enable-assertions test: turn on generation of assertion code
797 --with-dmalloc test: use Gray Watson's dmalloc library
798 --with-dbmalloc test: use Conor Cahill's dbmalloc library
799 --with-valgrind test: use valgrind
800 --disable-leaks test: free permanent memory, analyze leaks
801 --enable-expanded test: generate functions for certain macros
802 --disable-macros test: use functions rather than macros
803 --with-trace test: add trace() function to all models of ncurses
804 Ada95 Binding Options:
805 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
806 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
807 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
809 Some influential environment variables:
810 CC C compiler command
811 CFLAGS C compiler flags
812 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
813 nonstandard directory <lib dir>
814 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
815 headers in a nonstandard directory <include dir>
817 CXX C++ compiler command
818 CXXFLAGS C++ compiler flags
819 CXXCPP C++ preprocessor
821 Use these variables to override the choices made by `configure' or to help
822 it to find libraries and programs with nonstandard names/locations.
827 if test "$ac_init_help" = "recursive"; then
828 # If there are subdirs, report their specific --help.
830 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
832 # A "../" for each directory in /$ac_subdir.
833 ac_dots=`echo $ac_subdir |
834 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
837 .) # No --srcdir option. We are building in place.
838 ac_sub_srcdir=$srcdir ;;
839 [\\/]* | ?:[\\/]* ) # Absolute path.
840 ac_sub_srcdir=$srcdir/$ac_subdir ;;
842 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
845 # Check for guested configure; otherwise get Cygnus style configure.
846 if test -f $ac_sub_srcdir/configure.gnu; then
848 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
849 elif test -f $ac_sub_srcdir/configure; then
851 $SHELL $ac_sub_srcdir/configure --help=recursive
852 elif test -f $ac_sub_srcdir/configure.ac ||
853 test -f $ac_sub_srcdir/configure.in; then
857 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
863 test -n "$ac_init_help" && exit 0
864 if $ac_init_version; then
867 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
868 Free Software Foundation, Inc.
869 This configure script is free software; the Free Software Foundation
870 gives unlimited permission to copy, distribute and modify it.
876 This file contains any messages produced by compilers while
877 running configure, to aid debugging if configure makes a mistake.
879 It was created by $as_me, which was
880 generated by GNU Autoconf 2.52.20081225. Invocation command line was
891 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
892 uname -m = `(uname -m) 2>/dev/null || echo unknown`
893 uname -r = `(uname -r) 2>/dev/null || echo unknown`
894 uname -s = `(uname -s) 2>/dev/null || echo unknown`
895 uname -v = `(uname -v) 2>/dev/null || echo unknown`
897 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
898 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
900 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
901 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
902 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
903 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
904 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
905 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
906 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
920 # Keep a trace of the command line.
921 # Strip out --no-create and --no-recursion so they do not pile up.
922 # Also quote any args containing shell meta-characters.
928 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
929 | --no-cr | --no-c) ;;
930 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
931 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
932 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
933 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
934 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
936 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
939 # Get rid of the leading space.
942 # When interrupted or exit'd, cleanup temporary files, and complete
943 # config.log. We remove comments because anyway the quotes in there
944 # would cause problems or look ugly.
946 # Save into config.log some information that might help in debugging.
948 echo "## ----------------- ##" >&5
949 echo "## Cache variables. ##" >&5
950 echo "## ----------------- ##" >&5
952 # The following way of writing the cache mishandles newlines in values,
955 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
958 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
963 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
967 sed "/^$/d" confdefs.h >conftest.log
968 if test -s conftest.log; then
970 echo "## ------------ ##" >&5
971 echo "## confdefs.h. ##" >&5
972 echo "## ------------ ##" >&5
977 test "$ac_signal" != 0 &&
978 echo "$as_me: caught signal $ac_signal" >&5
979 echo "$as_me: exit $exit_status" >&5
980 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
983 for ac_signal in 1 2 13 15; do
984 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
988 # confdefs.h avoids OS command line length limits that DEFS can exceed.
989 rm -rf conftest* confdefs.h
990 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
993 # Let the site file select an alternate cache file if it wants to.
994 # Prefer explicitly selected file to automatically selected ones.
995 if test -z "$CONFIG_SITE"; then
996 if test "x$prefix" != xNONE; then
997 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
999 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1002 for ac_site_file in $CONFIG_SITE; do
1003 if test -r "$ac_site_file"; then
1004 { echo "$as_me:1004: loading site script $ac_site_file" >&5
1005 echo "$as_me: loading site script $ac_site_file" >&6;}
1006 cat "$ac_site_file" >&5
1011 if test -r "$cache_file"; then
1012 # Some versions of bash will fail to source /dev/null (special
1013 # files actually), so we avoid doing that.
1014 if test -f "$cache_file"; then
1015 { echo "$as_me:1015: loading cache $cache_file" >&5
1016 echo "$as_me: loading cache $cache_file" >&6;}
1018 [\\/]* | ?:[\\/]* ) . $cache_file;;
1019 *) . ./$cache_file;;
1023 { echo "$as_me:1023: creating cache $cache_file" >&5
1024 echo "$as_me: creating cache $cache_file" >&6;}
1028 # Check that the precious variables saved in the cache have kept the same
1030 ac_cache_corrupted=false
1031 for ac_var in `(set) 2>&1 |
1032 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1033 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1034 eval ac_new_set=\$ac_env_${ac_var}_set
1035 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1036 eval ac_new_val="\$ac_env_${ac_var}_value"
1037 case $ac_old_set,$ac_new_set in
1039 { echo "$as_me:1039: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1040 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1041 ac_cache_corrupted=: ;;
1043 { echo "$as_me:1043: error: \`$ac_var' was not set in the previous run" >&5
1044 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1045 ac_cache_corrupted=: ;;
1048 if test "x$ac_old_val" != "x$ac_new_val"; then
1049 { echo "$as_me:1049: error: \`$ac_var' has changed since the previous run:" >&5
1050 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1051 { echo "$as_me:1051: former value: $ac_old_val" >&5
1052 echo "$as_me: former value: $ac_old_val" >&2;}
1053 { echo "$as_me:1053: current value: $ac_new_val" >&5
1054 echo "$as_me: current value: $ac_new_val" >&2;}
1055 ac_cache_corrupted=:
1058 # Pass precious variables to config.status. It doesn't matter if
1059 # we pass some twice (in addition to the command line arguments).
1060 if test "$ac_new_set" = set; then
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1064 ac_configure_args="$ac_configure_args '$ac_arg'"
1066 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1071 if $ac_cache_corrupted; then
1072 { echo "$as_me:1072: error: changes in the environment can compromise the build" >&5
1073 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1074 { { echo "$as_me:1074: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1075 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1076 { (exit 1); exit 1; }; }
1080 ac_cpp='$CPP $CPPFLAGS'
1081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1084 ac_main_return=return
1086 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1087 *c*,-n*) ECHO_N= ECHO_C='
1089 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1090 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1092 echo "#! $SHELL" >conftest.sh
1093 echo "exit 0" >>conftest.sh
1094 chmod +x conftest.sh
1095 if { (echo "$as_me:1095: PATH=\".;.\"; conftest.sh") >&5
1096 (PATH=".;."; conftest.sh) 2>&5
1098 echo "$as_me:1098: \$? = $ac_status" >&5
1099 (exit $ac_status); }; then
1100 ac_path_separator=';'
1104 PATH_SEPARATOR="$ac_path_separator"
1107 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1111 echo "$as_me:1111: checking for egrep" >&5
1112 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1113 if test "${ac_cv_prog_egrep+set}" = set; then
1114 echo $ECHO_N "(cached) $ECHO_C" >&6
1116 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1117 then ac_cv_prog_egrep='grep -E'
1118 else ac_cv_prog_egrep='egrep'
1121 echo "$as_me:1121: result: $ac_cv_prog_egrep" >&5
1122 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1123 EGREP=$ac_cv_prog_egrep
1125 test -z "$EGREP" && { { echo "$as_me:1125: error: No egrep program found" >&5
1126 echo "$as_me: error: No egrep program found" >&2;}
1127 { (exit 1); exit 1; }; }
1129 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1130 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1131 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1132 cf_cv_abi_version=${NCURSES_MAJOR}
1133 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1134 cf_cv_timestamp=`date`
1135 echo "$as_me:1135: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1136 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1138 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1140 # Check whether --with-rel-version or --without-rel-version was given.
1141 if test "${with_rel_version+set}" = set; then
1142 withval="$with_rel_version"
1143 { echo "$as_me:1143: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1144 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1145 cf_cv_rel_version=$withval
1148 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1149 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1151 if test -n "$NCURSES_MAJOR" ; then
1152 case $NCURSES_MAJOR in #(vi
1156 { { echo "$as_me:1156: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1157 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1158 { (exit 1); exit 1; }; }
1162 { { echo "$as_me:1162: error: Release major-version value is empty" >&5
1163 echo "$as_me: error: Release major-version value is empty" >&2;}
1164 { (exit 1); exit 1; }; }
1167 if test -n "$NCURSES_MINOR" ; then
1168 case $NCURSES_MINOR in #(vi
1172 { { echo "$as_me:1172: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1173 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1174 { (exit 1); exit 1; }; }
1178 { { echo "$as_me:1178: error: Release minor-version value is empty" >&5
1179 echo "$as_me: error: Release minor-version value is empty" >&2;}
1180 { (exit 1); exit 1; }; }
1183 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1185 # Check whether --with-abi-version or --without-abi-version was given.
1186 if test "${with_abi_version+set}" = set; then
1187 withval="$with_abi_version"
1188 { echo "$as_me:1188: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1189 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1190 cf_cv_abi_version=$withval
1193 if test -n "$cf_cv_abi_version" ; then
1194 case $cf_cv_abi_version in #(vi
1198 { { echo "$as_me:1198: error: ABI version is not a number: $cf_cv_abi_version" >&5
1199 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1200 { (exit 1); exit 1; }; }
1204 { { echo "$as_me:1204: error: ABI version value is empty" >&5
1205 echo "$as_me: error: ABI version value is empty" >&2;}
1206 { (exit 1); exit 1; }; }
1210 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1211 if test -f $ac_dir/install-sh; then
1213 ac_install_sh="$ac_aux_dir/install-sh -c"
1215 elif test -f $ac_dir/install.sh; then
1217 ac_install_sh="$ac_aux_dir/install.sh -c"
1219 elif test -f $ac_dir/shtool; then
1221 ac_install_sh="$ac_aux_dir/shtool install -c"
1225 if test -z "$ac_aux_dir"; then
1226 { { echo "$as_me:1226: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1227 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1228 { (exit 1); exit 1; }; }
1230 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1231 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1232 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1234 # Make sure we can run config.sub.
1235 $ac_config_sub sun4 >/dev/null 2>&1 ||
1236 { { echo "$as_me:1236: error: cannot run $ac_config_sub" >&5
1237 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1238 { (exit 1); exit 1; }; }
1240 echo "$as_me:1240: checking build system type" >&5
1241 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1242 if test "${ac_cv_build+set}" = set; then
1243 echo $ECHO_N "(cached) $ECHO_C" >&6
1245 ac_cv_build_alias=$build_alias
1246 test -z "$ac_cv_build_alias" &&
1247 ac_cv_build_alias=`$ac_config_guess`
1248 test -z "$ac_cv_build_alias" &&
1249 { { echo "$as_me:1249: error: cannot guess build type; you must specify one" >&5
1250 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1251 { (exit 1); exit 1; }; }
1252 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1253 { { echo "$as_me:1253: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1254 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1255 { (exit 1); exit 1; }; }
1258 echo "$as_me:1258: result: $ac_cv_build" >&5
1259 echo "${ECHO_T}$ac_cv_build" >&6
1261 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1262 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1263 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1265 echo "$as_me:1265: checking host system type" >&5
1266 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1267 if test "${ac_cv_host+set}" = set; then
1268 echo $ECHO_N "(cached) $ECHO_C" >&6
1270 ac_cv_host_alias=$host_alias
1271 test -z "$ac_cv_host_alias" &&
1272 ac_cv_host_alias=$ac_cv_build_alias
1273 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1274 { { echo "$as_me:1274: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1275 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1276 { (exit 1); exit 1; }; }
1279 echo "$as_me:1279: result: $ac_cv_host" >&5
1280 echo "${ECHO_T}$ac_cv_host" >&6
1282 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1283 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1284 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1286 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1287 echo "$as_me:1287: checking target system type" >&5
1288 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1289 if test "${ac_cv_target+set}" = set; then
1290 echo $ECHO_N "(cached) $ECHO_C" >&6
1292 ac_cv_target_alias=$target_alias
1293 test "x$ac_cv_target_alias" = "x" &&
1294 ac_cv_target_alias=$ac_cv_host_alias
1295 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1296 { { echo "$as_me:1296: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1297 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1298 { (exit 1); exit 1; }; }
1301 echo "$as_me:1301: result: $ac_cv_target" >&5
1302 echo "${ECHO_T}$ac_cv_target" >&6
1303 target=$ac_cv_target
1304 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1305 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1306 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1308 # The aliases save the names the user supplied, while $host etc.
1309 # will get canonicalized.
1310 test -n "$target_alias" &&
1311 test "$program_prefix$program_suffix$program_transform_name" = \
1313 program_prefix=${target_alias}-
1314 system_name="$host_os"
1316 system_name="`(uname -s -r) 2>/dev/null`"
1317 if test -z "$system_name" ; then
1318 system_name="`(hostname) 2>/dev/null`"
1321 test -n "$system_name" && cat >>confdefs.h <<EOF
1322 #define SYSTEM_NAME "$system_name"
1325 if test "${cf_cv_system_name+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1328 cf_cv_system_name="$system_name"
1331 test -z "$system_name" && system_name="$cf_cv_system_name"
1332 test -n "$cf_cv_system_name" && echo "$as_me:1332: result: Configuring for $cf_cv_system_name" >&5
1333 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1335 if test ".$system_name" != ".$cf_cv_system_name" ; then
1336 echo "$as_me:1336: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1337 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1338 { { echo "$as_me:1338: error: \"Please remove config.cache and try again.\"" >&5
1339 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1340 { (exit 1); exit 1; }; }
1343 # Check whether --with-system-type or --without-system-type was given.
1344 if test "${with_system_type+set}" = set; then
1345 withval="$with_system_type"
1346 { echo "$as_me:1346: WARNING: overriding system type to $withval" >&5
1347 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1348 cf_cv_system_name=$withval
1351 ### Save the given $CFLAGS to allow user-override.
1352 cf_user_CFLAGS="$CFLAGS"
1354 ### Default install-location
1356 echo "$as_me:1356: checking for prefix" >&5
1357 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1358 if test "x$prefix" = "xNONE" ; then
1359 case "$cf_cv_system_name" in
1360 # non-vendor systems don't have a conflict
1361 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1364 *) prefix=$ac_default_prefix
1368 echo "$as_me:1368: result: $prefix" >&5
1369 echo "${ECHO_T}$prefix" >&6
1371 if test "x$prefix" = "xNONE" ; then
1372 echo "$as_me:1372: checking for default include-directory" >&5
1373 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1374 test -n "$verbose" && echo 1>&6
1377 $includedir/ncurses \
1379 $prefix/include/ncurses \
1380 /usr/local/include \
1381 /usr/local/include/ncurses \
1383 /usr/include/ncurses
1385 cf_dir=`eval echo $cf_symbol`
1386 if test -f $cf_dir/curses.h ; then
1387 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1388 includedir="$cf_symbol"
1389 test -n "$verbose" && echo $ac_n " found " 1>&6
1393 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1395 echo "$as_me:1395: result: $includedir" >&5
1396 echo "${ECHO_T}$includedir" >&6
1399 ### Checks for programs.
1401 ac_cpp='$CPP $CPPFLAGS'
1402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1405 ac_main_return=return
1406 if test -n "$ac_tool_prefix"; then
1407 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1408 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1409 echo "$as_me:1409: checking for $ac_word" >&5
1410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1411 if test "${ac_cv_prog_CC+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 if test -n "$CC"; then
1415 ac_cv_prog_CC="$CC" # Let the user override the test.
1417 ac_save_IFS=$IFS; IFS=$ac_path_separator
1419 for ac_dir in $ac_dummy; do
1421 test -z "$ac_dir" && ac_dir=.
1422 $as_executable_p "$ac_dir/$ac_word" || continue
1423 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1424 echo "$as_me:1424: found $ac_dir/$ac_word" >&5
1431 if test -n "$CC"; then
1432 echo "$as_me:1432: result: $CC" >&5
1433 echo "${ECHO_T}$CC" >&6
1435 echo "$as_me:1435: result: no" >&5
1436 echo "${ECHO_T}no" >&6
1440 if test -z "$ac_cv_prog_CC"; then
1442 # Extract the first word of "gcc", so it can be a program name with args.
1443 set dummy gcc; ac_word=$2
1444 echo "$as_me:1444: checking for $ac_word" >&5
1445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 if test -n "$ac_ct_CC"; then
1450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1452 ac_save_IFS=$IFS; IFS=$ac_path_separator
1454 for ac_dir in $ac_dummy; do
1456 test -z "$ac_dir" && ac_dir=.
1457 $as_executable_p "$ac_dir/$ac_word" || continue
1458 ac_cv_prog_ac_ct_CC="gcc"
1459 echo "$as_me:1459: found $ac_dir/$ac_word" >&5
1465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1466 if test -n "$ac_ct_CC"; then
1467 echo "$as_me:1467: result: $ac_ct_CC" >&5
1468 echo "${ECHO_T}$ac_ct_CC" >&6
1470 echo "$as_me:1470: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1479 if test -z "$CC"; then
1480 if test -n "$ac_tool_prefix"; then
1481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1482 set dummy ${ac_tool_prefix}cc; ac_word=$2
1483 echo "$as_me:1483: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_CC+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 if test -n "$CC"; then
1489 ac_cv_prog_CC="$CC" # Let the user override the test.
1491 ac_save_IFS=$IFS; IFS=$ac_path_separator
1493 for ac_dir in $ac_dummy; do
1495 test -z "$ac_dir" && ac_dir=.
1496 $as_executable_p "$ac_dir/$ac_word" || continue
1497 ac_cv_prog_CC="${ac_tool_prefix}cc"
1498 echo "$as_me:1498: found $ac_dir/$ac_word" >&5
1505 if test -n "$CC"; then
1506 echo "$as_me:1506: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1509 echo "$as_me:1509: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1514 if test -z "$ac_cv_prog_CC"; then
1516 # Extract the first word of "cc", so it can be a program name with args.
1517 set dummy cc; ac_word=$2
1518 echo "$as_me:1518: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 if test -n "$ac_ct_CC"; then
1524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1526 ac_save_IFS=$IFS; IFS=$ac_path_separator
1528 for ac_dir in $ac_dummy; do
1530 test -z "$ac_dir" && ac_dir=.
1531 $as_executable_p "$ac_dir/$ac_word" || continue
1532 ac_cv_prog_ac_ct_CC="cc"
1533 echo "$as_me:1533: found $ac_dir/$ac_word" >&5
1539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1540 if test -n "$ac_ct_CC"; then
1541 echo "$as_me:1541: result: $ac_ct_CC" >&5
1542 echo "${ECHO_T}$ac_ct_CC" >&6
1544 echo "$as_me:1544: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1554 if test -z "$CC"; then
1555 # Extract the first word of "cc", so it can be a program name with args.
1556 set dummy cc; ac_word=$2
1557 echo "$as_me:1557: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 if test -n "$CC"; then
1563 ac_cv_prog_CC="$CC" # Let the user override the test.
1566 ac_save_IFS=$IFS; IFS=$ac_path_separator
1568 for ac_dir in $ac_dummy; do
1570 test -z "$ac_dir" && ac_dir=.
1571 $as_executable_p "$ac_dir/$ac_word" || continue
1572 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1573 ac_prog_rejected=yes
1577 echo "$as_me:1577: found $ac_dir/$ac_word" >&5
1581 if test $ac_prog_rejected = yes; then
1582 # We found a bogon in the path, so make sure we never use it.
1583 set dummy $ac_cv_prog_CC
1585 if test $# != 0; then
1586 # We chose a different compiler from the bogus one.
1587 # However, it has the same basename, so the bogon will be chosen
1588 # first if we set CC to just the basename; use the full file name.
1590 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1598 if test -n "$CC"; then
1599 echo "$as_me:1599: result: $CC" >&5
1600 echo "${ECHO_T}$CC" >&6
1602 echo "$as_me:1602: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1607 if test -z "$CC"; then
1608 if test -n "$ac_tool_prefix"; then
1611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1613 echo "$as_me:1613: checking for $ac_word" >&5
1614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615 if test "${ac_cv_prog_CC+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 if test -n "$CC"; then
1619 ac_cv_prog_CC="$CC" # Let the user override the test.
1621 ac_save_IFS=$IFS; IFS=$ac_path_separator
1623 for ac_dir in $ac_dummy; do
1625 test -z "$ac_dir" && ac_dir=.
1626 $as_executable_p "$ac_dir/$ac_word" || continue
1627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1628 echo "$as_me:1628: found $ac_dir/$ac_word" >&5
1635 if test -n "$CC"; then
1636 echo "$as_me:1636: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1639 echo "$as_me:1639: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1643 test -n "$CC" && break
1646 if test -z "$CC"; then
1650 # Extract the first word of "$ac_prog", so it can be a program name with args.
1651 set dummy $ac_prog; ac_word=$2
1652 echo "$as_me:1652: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 if test -n "$ac_ct_CC"; then
1658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1660 ac_save_IFS=$IFS; IFS=$ac_path_separator
1662 for ac_dir in $ac_dummy; do
1664 test -z "$ac_dir" && ac_dir=.
1665 $as_executable_p "$ac_dir/$ac_word" || continue
1666 ac_cv_prog_ac_ct_CC="$ac_prog"
1667 echo "$as_me:1667: found $ac_dir/$ac_word" >&5
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675 echo "$as_me:1675: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1678 echo "$as_me:1678: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1682 test -n "$ac_ct_CC" && break
1690 test -z "$CC" && { { echo "$as_me:1690: error: no acceptable cc found in \$PATH" >&5
1691 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1692 { (exit 1); exit 1; }; }
1694 # Provide some information about the compiler.
1695 echo "$as_me:1695:" \
1696 "checking for C compiler version" >&5
1697 ac_compiler=`set X $ac_compile; echo $2`
1698 { (eval echo "$as_me:1698: \"$ac_compiler --version </dev/null >&5\"") >&5
1699 (eval $ac_compiler --version </dev/null >&5) 2>&5
1701 echo "$as_me:1701: \$? = $ac_status" >&5
1702 (exit $ac_status); }
1703 { (eval echo "$as_me:1703: \"$ac_compiler -v </dev/null >&5\"") >&5
1704 (eval $ac_compiler -v </dev/null >&5) 2>&5
1706 echo "$as_me:1706: \$? = $ac_status" >&5
1707 (exit $ac_status); }
1708 { (eval echo "$as_me:1708: \"$ac_compiler -V </dev/null >&5\"") >&5
1709 (eval $ac_compiler -V </dev/null >&5) 2>&5
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); }
1714 cat >conftest.$ac_ext <<_ACEOF
1715 #line 1715 "configure"
1716 #include "confdefs.h"
1726 ac_clean_files_save=$ac_clean_files
1727 ac_clean_files="$ac_clean_files a.out a.exe"
1728 # Try to create an executable without -o first, disregard a.out.
1729 # It will help us diagnose broken compilers, and finding out an intuition
1731 echo "$as_me:1731: checking for C compiler default output" >&5
1732 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1733 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1734 if { (eval echo "$as_me:1734: \"$ac_link_default\"") >&5
1735 (eval $ac_link_default) 2>&5
1737 echo "$as_me:1737: \$? = $ac_status" >&5
1738 (exit $ac_status); }; then
1739 # Find the output, starting from the most likely. This scheme is
1740 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1742 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1743 ls a.out conftest 2>/dev/null;
1744 ls a.* conftest.* 2>/dev/null`; do
1746 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1747 a.out ) # We found the default executable, but exeext='' is most
1750 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1751 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1758 echo "$as_me: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1760 { { echo "$as_me:1760: error: C compiler cannot create executables" >&5
1761 echo "$as_me: error: C compiler cannot create executables" >&2;}
1762 { (exit 77); exit 77; }; }
1765 ac_exeext=$ac_cv_exeext
1766 echo "$as_me:1766: result: $ac_file" >&5
1767 echo "${ECHO_T}$ac_file" >&6
1769 # Check the compiler produces executables we can run. If not, either
1770 # the compiler is broken, or we cross compile.
1771 echo "$as_me:1771: checking whether the C compiler works" >&5
1772 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1773 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1774 # If not cross compiling, check that we can run a simple program.
1775 if test "$cross_compiling" != yes; then
1776 if { ac_try='./$ac_file'
1777 { (eval echo "$as_me:1777: \"$ac_try\"") >&5
1780 echo "$as_me:1780: \$? = $ac_status" >&5
1781 (exit $ac_status); }; }; then
1784 if test "$cross_compiling" = maybe; then
1787 { { echo "$as_me:1787: error: cannot run C compiled programs.
1788 If you meant to cross compile, use \`--host'." >&5
1789 echo "$as_me: error: cannot run C compiled programs.
1790 If you meant to cross compile, use \`--host'." >&2;}
1791 { (exit 1); exit 1; }; }
1795 echo "$as_me:1795: result: yes" >&5
1796 echo "${ECHO_T}yes" >&6
1798 rm -f a.out a.exe conftest$ac_cv_exeext
1799 ac_clean_files=$ac_clean_files_save
1800 # Check the compiler produces executables we can run. If not, either
1801 # the compiler is broken, or we cross compile.
1802 echo "$as_me:1802: checking whether we are cross compiling" >&5
1803 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1804 echo "$as_me:1804: result: $cross_compiling" >&5
1805 echo "${ECHO_T}$cross_compiling" >&6
1807 echo "$as_me:1807: checking for executable suffix" >&5
1808 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1809 if { (eval echo "$as_me:1809: \"$ac_link\"") >&5
1810 (eval $ac_link) 2>&5
1812 echo "$as_me:1812: \$? = $ac_status" >&5
1813 (exit $ac_status); }; then
1814 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1815 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1816 # work properly (i.e., refer to `conftest.exe'), while it won't with
1818 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1820 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1821 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1828 { { echo "$as_me:1828: error: cannot compute EXEEXT: cannot compile and link" >&5
1829 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1830 { (exit 1); exit 1; }; }
1833 rm -f conftest$ac_cv_exeext
1834 echo "$as_me:1834: result: $ac_cv_exeext" >&5
1835 echo "${ECHO_T}$ac_cv_exeext" >&6
1837 rm -f conftest.$ac_ext
1838 EXEEXT=$ac_cv_exeext
1840 echo "$as_me:1840: checking for object suffix" >&5
1841 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1842 if test "${ac_cv_objext+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 cat >conftest.$ac_ext <<_ACEOF
1846 #line 1846 "configure"
1847 #include "confdefs.h"
1857 rm -f conftest.o conftest.obj
1858 if { (eval echo "$as_me:1858: \"$ac_compile\"") >&5
1859 (eval $ac_compile) 2>&5
1861 echo "$as_me:1861: \$? = $ac_status" >&5
1862 (exit $ac_status); }; then
1863 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1865 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1866 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1871 echo "$as_me: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1873 { { echo "$as_me:1873: error: cannot compute OBJEXT: cannot compile" >&5
1874 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1875 { (exit 1); exit 1; }; }
1878 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1880 echo "$as_me:1880: result: $ac_cv_objext" >&5
1881 echo "${ECHO_T}$ac_cv_objext" >&6
1882 OBJEXT=$ac_cv_objext
1884 echo "$as_me:1884: checking whether we are using the GNU C compiler" >&5
1885 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1886 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 cat >conftest.$ac_ext <<_ACEOF
1890 #line 1890 "configure"
1891 #include "confdefs.h"
1904 rm -f conftest.$ac_objext
1905 if { (eval echo "$as_me:1905: \"$ac_compile\"") >&5
1906 (eval $ac_compile) 2>&5
1908 echo "$as_me:1908: \$? = $ac_status" >&5
1909 (exit $ac_status); } &&
1910 { ac_try='test -s conftest.$ac_objext'
1911 { (eval echo "$as_me:1911: \"$ac_try\"") >&5
1914 echo "$as_me:1914: \$? = $ac_status" >&5
1915 (exit $ac_status); }; }; then
1918 echo "$as_me: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1922 rm -f conftest.$ac_objext conftest.$ac_ext
1923 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1926 echo "$as_me:1926: result: $ac_cv_c_compiler_gnu" >&5
1927 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1928 GCC=`test $ac_compiler_gnu = yes && echo yes`
1929 ac_test_CFLAGS=${CFLAGS+set}
1930 ac_save_CFLAGS=$CFLAGS
1932 echo "$as_me:1932: checking whether $CC accepts -g" >&5
1933 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1934 if test "${ac_cv_prog_cc_g+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 cat >conftest.$ac_ext <<_ACEOF
1938 #line 1938 "configure"
1939 #include "confdefs.h"
1949 rm -f conftest.$ac_objext
1950 if { (eval echo "$as_me:1950: \"$ac_compile\"") >&5
1951 (eval $ac_compile) 2>&5
1953 echo "$as_me:1953: \$? = $ac_status" >&5
1954 (exit $ac_status); } &&
1955 { ac_try='test -s conftest.$ac_objext'
1956 { (eval echo "$as_me:1956: \"$ac_try\"") >&5
1959 echo "$as_me:1959: \$? = $ac_status" >&5
1960 (exit $ac_status); }; }; then
1963 echo "$as_me: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1967 rm -f conftest.$ac_objext conftest.$ac_ext
1969 echo "$as_me:1969: result: $ac_cv_prog_cc_g" >&5
1970 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1971 if test "$ac_test_CFLAGS" = set; then
1972 CFLAGS=$ac_save_CFLAGS
1973 elif test $ac_cv_prog_cc_g = yes; then
1974 if test "$GCC" = yes; then
1980 if test "$GCC" = yes; then
1986 # Some people use a C++ compiler to compile C. Since we use `exit',
1987 # in C++ we need to declare it. In case someone uses the same compiler
1988 # for both compiling C and C++ we need to have the C++ compiler decide
1989 # the declaration of exit, since it's the most demanding environment.
1990 cat >conftest.$ac_ext <<_ACEOF
1995 rm -f conftest.$ac_objext
1996 if { (eval echo "$as_me:1996: \"$ac_compile\"") >&5
1997 (eval $ac_compile) 2>&5
1999 echo "$as_me:1999: \$? = $ac_status" >&5
2000 (exit $ac_status); } &&
2001 { ac_try='test -s conftest.$ac_objext'
2002 { (eval echo "$as_me:2002: \"$ac_try\"") >&5
2005 echo "$as_me:2005: \$? = $ac_status" >&5
2006 (exit $ac_status); }; }; then
2007 for ac_declaration in \
2009 '#include <stdlib.h>' \
2010 'extern "C" void std::exit (int) throw (); using std::exit;' \
2011 'extern "C" void std::exit (int); using std::exit;' \
2012 'extern "C" void exit (int) throw ();' \
2013 'extern "C" void exit (int);' \
2016 cat >conftest.$ac_ext <<_ACEOF
2017 #line 2017 "configure"
2018 #include "confdefs.h"
2029 rm -f conftest.$ac_objext
2030 if { (eval echo "$as_me:2030: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2033 echo "$as_me:2033: \$? = $ac_status" >&5
2034 (exit $ac_status); } &&
2035 { ac_try='test -s conftest.$ac_objext'
2036 { (eval echo "$as_me:2036: \"$ac_try\"") >&5
2039 echo "$as_me:2039: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2043 echo "$as_me: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2047 rm -f conftest.$ac_objext conftest.$ac_ext
2048 cat >conftest.$ac_ext <<_ACEOF
2049 #line 2049 "configure"
2050 #include "confdefs.h"
2060 rm -f conftest.$ac_objext
2061 if { (eval echo "$as_me:2061: \"$ac_compile\"") >&5
2062 (eval $ac_compile) 2>&5
2064 echo "$as_me:2064: \$? = $ac_status" >&5
2065 (exit $ac_status); } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:2067: \"$ac_try\"") >&5
2070 echo "$as_me:2070: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2074 echo "$as_me: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2077 rm -f conftest.$ac_objext conftest.$ac_ext
2080 if test -n "$ac_declaration"; then
2081 echo '#ifdef __cplusplus' >>confdefs.h
2082 echo $ac_declaration >>confdefs.h
2083 echo '#endif' >>confdefs.h
2087 echo "$as_me: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2090 rm -f conftest.$ac_objext conftest.$ac_ext
2092 ac_cpp='$CPP $CPPFLAGS'
2093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2096 ac_main_return=return
2099 if test "$GCC" = yes ; then
2100 echo "$as_me:2100: checking version of $CC" >&5
2101 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2102 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2103 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2104 echo "$as_me:2104: result: $GCC_VERSION" >&5
2105 echo "${ECHO_T}$GCC_VERSION" >&6
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113 ac_main_return=return
2114 echo "$as_me:2114: checking how to run the C preprocessor" >&5
2115 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2116 # On Suns, sometimes $CPP names a directory.
2117 if test -n "$CPP" && test -d "$CPP"; then
2120 if test -z "$CPP"; then
2121 if test "${ac_cv_prog_CPP+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 # Double quotes because CPP needs to be expanded
2125 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2128 for ac_c_preproc_warn_flag in '' yes
2130 # Use a header file that comes with gcc, so configuring glibc
2131 # with a fresh cross-compiler works.
2132 # On the NeXT, cc -E runs the code through the compiler's parser,
2133 # not just through cpp. "Syntax error" is here to catch this case.
2134 cat >conftest.$ac_ext <<_ACEOF
2135 #line 2135 "configure"
2136 #include "confdefs.h"
2140 if { (eval echo "$as_me:2140: \"$ac_cpp conftest.$ac_ext\"") >&5
2141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2143 egrep -v '^ *\+' conftest.er1 >conftest.err
2145 cat conftest.err >&5
2146 echo "$as_me:2146: \$? = $ac_status" >&5
2147 (exit $ac_status); } >/dev/null; then
2148 if test -s conftest.err; then
2149 ac_cpp_err=$ac_c_preproc_warn_flag
2156 if test -z "$ac_cpp_err"; then
2159 echo "$as_me: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2161 # Broken: fails on valid input.
2164 rm -f conftest.err conftest.$ac_ext
2166 # OK, works on sane cases. Now check whether non-existent headers
2167 # can be detected and how.
2168 cat >conftest.$ac_ext <<_ACEOF
2169 #line 2169 "configure"
2170 #include "confdefs.h"
2171 #include <ac_nonexistent.h>
2173 if { (eval echo "$as_me:2173: \"$ac_cpp conftest.$ac_ext\"") >&5
2174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2176 egrep -v '^ *\+' conftest.er1 >conftest.err
2178 cat conftest.err >&5
2179 echo "$as_me:2179: \$? = $ac_status" >&5
2180 (exit $ac_status); } >/dev/null; then
2181 if test -s conftest.err; then
2182 ac_cpp_err=$ac_c_preproc_warn_flag
2189 if test -z "$ac_cpp_err"; then
2190 # Broken: success on invalid input.
2193 echo "$as_me: failed program was:" >&5
2194 cat conftest.$ac_ext >&5
2195 # Passes both tests.
2199 rm -f conftest.err conftest.$ac_ext
2202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2203 rm -f conftest.err conftest.$ac_ext
2204 if $ac_preproc_ok; then
2216 echo "$as_me:2216: result: $CPP" >&5
2217 echo "${ECHO_T}$CPP" >&6
2219 for ac_c_preproc_warn_flag in '' yes
2221 # Use a header file that comes with gcc, so configuring glibc
2222 # with a fresh cross-compiler works.
2223 # On the NeXT, cc -E runs the code through the compiler's parser,
2224 # not just through cpp. "Syntax error" is here to catch this case.
2225 cat >conftest.$ac_ext <<_ACEOF
2226 #line 2226 "configure"
2227 #include "confdefs.h"
2231 if { (eval echo "$as_me:2231: \"$ac_cpp conftest.$ac_ext\"") >&5
2232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2234 egrep -v '^ *\+' conftest.er1 >conftest.err
2236 cat conftest.err >&5
2237 echo "$as_me:2237: \$? = $ac_status" >&5
2238 (exit $ac_status); } >/dev/null; then
2239 if test -s conftest.err; then
2240 ac_cpp_err=$ac_c_preproc_warn_flag
2247 if test -z "$ac_cpp_err"; then
2250 echo "$as_me: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2252 # Broken: fails on valid input.
2255 rm -f conftest.err conftest.$ac_ext
2257 # OK, works on sane cases. Now check whether non-existent headers
2258 # can be detected and how.
2259 cat >conftest.$ac_ext <<_ACEOF
2260 #line 2260 "configure"
2261 #include "confdefs.h"
2262 #include <ac_nonexistent.h>
2264 if { (eval echo "$as_me:2264: \"$ac_cpp conftest.$ac_ext\"") >&5
2265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2267 egrep -v '^ *\+' conftest.er1 >conftest.err
2269 cat conftest.err >&5
2270 echo "$as_me:2270: \$? = $ac_status" >&5
2271 (exit $ac_status); } >/dev/null; then
2272 if test -s conftest.err; then
2273 ac_cpp_err=$ac_c_preproc_warn_flag
2280 if test -z "$ac_cpp_err"; then
2281 # Broken: success on invalid input.
2284 echo "$as_me: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2286 # Passes both tests.
2290 rm -f conftest.err conftest.$ac_ext
2293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2294 rm -f conftest.err conftest.$ac_ext
2295 if $ac_preproc_ok; then
2298 { { echo "$as_me:2298: error: C preprocessor \"$CPP\" fails sanity check" >&5
2299 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2300 { (exit 1); exit 1; }; }
2304 ac_cpp='$CPP $CPPFLAGS'
2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308 ac_main_return=return
2310 if test $ac_cv_c_compiler_gnu = yes; then
2311 echo "$as_me:2311: checking whether $CC needs -traditional" >&5
2312 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2313 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 ac_pattern="Autoconf.*'x'"
2317 cat >conftest.$ac_ext <<_ACEOF
2318 #line 2318 "configure"
2319 #include "confdefs.h"
2321 int Autoconf = TIOCGETP;
2323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2324 egrep "$ac_pattern" >/dev/null 2>&1; then
2325 ac_cv_prog_gcc_traditional=yes
2327 ac_cv_prog_gcc_traditional=no
2331 if test $ac_cv_prog_gcc_traditional = no; then
2332 cat >conftest.$ac_ext <<_ACEOF
2333 #line 2333 "configure"
2334 #include "confdefs.h"
2336 int Autoconf = TCGETA;
2338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2339 egrep "$ac_pattern" >/dev/null 2>&1; then
2340 ac_cv_prog_gcc_traditional=yes
2346 echo "$as_me:2346: result: $ac_cv_prog_gcc_traditional" >&5
2347 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2348 if test $ac_cv_prog_gcc_traditional = yes; then
2349 CC="$CC -traditional"
2353 echo "$as_me:2353: checking whether $CC understands -c and -o together" >&5
2354 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2355 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 cat > conftest.$ac_ext <<CF_EOF
2363 ${cf_cv_main_return:-return}(0);
2366 # We do the test twice because some compilers refuse to overwrite an
2367 # existing .o file with -o, though they will create one.
2368 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2369 if { (eval echo "$as_me:2369: \"$ac_try\"") >&5
2372 echo "$as_me:2372: \$? = $ac_status" >&5
2373 (exit $ac_status); } &&
2374 test -f conftest2.$ac_objext && { (eval echo "$as_me:2374: \"$ac_try\"") >&5
2377 echo "$as_me:2377: \$? = $ac_status" >&5
2378 (exit $ac_status); };
2380 eval cf_cv_prog_CC_c_o=yes
2382 eval cf_cv_prog_CC_c_o=no
2387 if test $cf_cv_prog_CC_c_o = yes; then
2388 echo "$as_me:2388: result: yes" >&5
2389 echo "${ECHO_T}yes" >&6
2391 echo "$as_me:2391: result: no" >&5
2392 echo "${ECHO_T}no" >&6
2395 echo "$as_me:2395: checking for POSIXized ISC" >&5
2396 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2397 if test -d /etc/conf/kconfig.d &&
2398 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2400 echo "$as_me:2400: result: yes" >&5
2401 echo "${ECHO_T}yes" >&6
2402 ISC=yes # If later tests want to check for ISC.
2404 cat >>confdefs.h <<\EOF
2405 #define _POSIX_SOURCE 1
2408 if test "$GCC" = yes; then
2414 echo "$as_me:2414: result: no" >&5
2415 echo "${ECHO_T}no" >&6
2419 echo "$as_me:2419: checking for ${CC-cc} option to accept ANSI C" >&5
2420 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2421 if test "${cf_cv_ansi_cc+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 cf_save_CFLAGS="$CFLAGS"
2427 cf_save_CPPFLAGS="$CPPFLAGS"
2428 # Don't try gcc -ansi; that turns off useful extensions and
2429 # breaks some systems' header files.
2430 # AIX -qlanglvl=ansi
2431 # Ultrix and OSF/1 -std1
2432 # HP-UX -Aa -D_HPUX_SOURCE
2434 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2435 for cf_arg in "-DCC_HAS_PROTOS" \
2440 "-Aa -D_HPUX_SOURCE" \
2447 cf_new_extra_cppflags=
2449 for cf_add_cflags in $cf_arg
2451 case $cf_fix_cppflags in
2453 case $cf_add_cflags in #(vi
2454 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2455 case $cf_add_cflags in
2457 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2459 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2460 && test -z "${cf_tst_cflags}" \
2461 && cf_fix_cppflags=yes
2463 if test $cf_fix_cppflags = yes ; then
2464 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2466 elif test "${cf_tst_cflags}" = "\"'" ; then
2467 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2473 *$cf_add_cflags) #(vi
2476 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2481 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2486 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2488 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2490 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2491 && test -z "${cf_tst_cflags}" \
2492 && cf_fix_cppflags=no
2497 if test -n "$cf_new_cflags" ; then
2499 CFLAGS="$CFLAGS $cf_new_cflags"
2502 if test -n "$cf_new_cppflags" ; then
2504 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2507 if test -n "$cf_new_extra_cppflags" ; then
2509 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2512 cat >conftest.$ac_ext <<_ACEOF
2513 #line 2513 "configure"
2514 #include "confdefs.h"
2516 #ifndef CC_HAS_PROTOS
2517 #if !defined(__STDC__) || (__STDC__ != 1)
2526 int test (int i, double x);
2527 struct s1 {int (*f) (int a);};
2528 struct s2 {int (*f) (double a);};
2533 rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:2534: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>&5
2537 echo "$as_me:2537: \$? = $ac_status" >&5
2538 (exit $ac_status); } &&
2539 { ac_try='test -s conftest.$ac_objext'
2540 { (eval echo "$as_me:2540: \"$ac_try\"") >&5
2543 echo "$as_me:2543: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2545 cf_cv_ansi_cc="$cf_arg"; break
2547 echo "$as_me: failed program was:" >&5
2548 cat conftest.$ac_ext >&5
2550 rm -f conftest.$ac_objext conftest.$ac_ext
2552 CFLAGS="$cf_save_CFLAGS"
2553 CPPFLAGS="$cf_save_CPPFLAGS"
2556 echo "$as_me:2556: result: $cf_cv_ansi_cc" >&5
2557 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2559 if test "$cf_cv_ansi_cc" != "no"; then
2560 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2565 cf_new_extra_cppflags=
2567 for cf_add_cflags in $cf_cv_ansi_cc
2569 case $cf_fix_cppflags in
2571 case $cf_add_cflags in #(vi
2572 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2573 case $cf_add_cflags in
2575 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2577 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2578 && test -z "${cf_tst_cflags}" \
2579 && cf_fix_cppflags=yes
2581 if test $cf_fix_cppflags = yes ; then
2582 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2584 elif test "${cf_tst_cflags}" = "\"'" ; then
2585 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2591 *$cf_add_cflags) #(vi
2594 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2599 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2604 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2606 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2608 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2609 && test -z "${cf_tst_cflags}" \
2610 && cf_fix_cppflags=no
2615 if test -n "$cf_new_cflags" ; then
2617 CFLAGS="$CFLAGS $cf_new_cflags"
2620 if test -n "$cf_new_cppflags" ; then
2622 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2625 if test -n "$cf_new_extra_cppflags" ; then
2627 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2631 cat >>confdefs.h <<\EOF
2632 #define CC_HAS_PROTOS 1
2638 if test "$cf_cv_ansi_cc" = "no"; then
2639 { { echo "$as_me:2639: error: Your compiler does not appear to recognize prototypes.
2640 You have the following choices:
2641 a. adjust your compiler options
2642 b. get an up-to-date compiler
2643 c. use a wrapper such as unproto" >&5
2644 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2645 You have the following choices:
2646 a. adjust your compiler options
2647 b. get an up-to-date compiler
2648 c. use a wrapper such as unproto" >&2;}
2649 { (exit 1); exit 1; }; }
2652 case $cf_cv_system_name in
2654 CFLAGS="$CFLAGS -Zmt"
2655 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2656 CXXFLAGS="$CXXFLAGS -Zmt"
2657 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2658 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2665 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2666 #define PROG_EXT "$PROG_EXT"
2669 if test "$cross_compiling" = yes ; then
2672 case "$cf_cv_system_name" in #(vi
2673 dragonfly*|freebsd*) #(vi
2674 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2676 *) LDPATH=$PATH:/sbin:/usr/sbin
2677 # Extract the first word of "ldconfig", so it can be a program name with args.
2678 set dummy ldconfig; ac_word=$2
2679 echo "$as_me:2679: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2689 ac_save_IFS=$IFS; IFS=$ac_path_separator
2691 for ac_dir in $ac_dummy; do
2693 test -z "$ac_dir" && ac_dir=.
2694 if $as_executable_p "$ac_dir/$ac_word"; then
2695 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2696 echo "$as_me:2696: found $ac_dir/$ac_word" >&5
2704 LDCONFIG=$ac_cv_path_LDCONFIG
2706 if test -n "$LDCONFIG"; then
2707 echo "$as_me:2707: result: $LDCONFIG" >&5
2708 echo "${ECHO_T}$LDCONFIG" >&6
2710 echo "$as_me:2710: result: no" >&5
2711 echo "${ECHO_T}no" >&6
2718 echo "$as_me:2718: checking if you want to ensure bool is consistent with C++" >&5
2719 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2721 # Check whether --with-cxx or --without-cxx was given.
2722 if test "${with_cxx+set}" = set; then
2724 cf_with_cxx=$withval
2728 echo "$as_me:2728: result: $cf_with_cxx" >&5
2729 echo "${ECHO_T}$cf_with_cxx" >&6
2730 if test "X$cf_with_cxx" = Xno ; then
2734 # with autoconf 2.13, we can change the error to a warning:
2736 ac_cpp='$CXXCPP $CPPFLAGS'
2737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2740 ac_main_return=return
2741 if test -n "$ac_tool_prefix"; then
2742 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2746 echo "$as_me:2746: checking for $ac_word" >&5
2747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2748 if test "${ac_cv_prog_CXX+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 if test -n "$CXX"; then
2752 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2754 ac_save_IFS=$IFS; IFS=$ac_path_separator
2756 for ac_dir in $ac_dummy; do
2758 test -z "$ac_dir" && ac_dir=.
2759 $as_executable_p "$ac_dir/$ac_word" || continue
2760 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2761 echo "$as_me:2761: found $ac_dir/$ac_word" >&5
2768 if test -n "$CXX"; then
2769 echo "$as_me:2769: result: $CXX" >&5
2770 echo "${ECHO_T}$CXX" >&6
2772 echo "$as_me:2772: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2776 test -n "$CXX" && break
2779 if test -z "$CXX"; then
2781 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2783 # Extract the first word of "$ac_prog", so it can be a program name with args.
2784 set dummy $ac_prog; ac_word=$2
2785 echo "$as_me:2785: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2787 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2790 if test -n "$ac_ct_CXX"; then
2791 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2793 ac_save_IFS=$IFS; IFS=$ac_path_separator
2795 for ac_dir in $ac_dummy; do
2797 test -z "$ac_dir" && ac_dir=.
2798 $as_executable_p "$ac_dir/$ac_word" || continue
2799 ac_cv_prog_ac_ct_CXX="$ac_prog"
2800 echo "$as_me:2800: found $ac_dir/$ac_word" >&5
2806 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2807 if test -n "$ac_ct_CXX"; then
2808 echo "$as_me:2808: result: $ac_ct_CXX" >&5
2809 echo "${ECHO_T}$ac_ct_CXX" >&6
2811 echo "$as_me:2811: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2815 test -n "$ac_ct_CXX" && break
2817 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2822 # Provide some information about the compiler.
2823 echo "$as_me:2823:" \
2824 "checking for C++ compiler version" >&5
2825 ac_compiler=`set X $ac_compile; echo $2`
2826 { (eval echo "$as_me:2826: \"$ac_compiler --version </dev/null >&5\"") >&5
2827 (eval $ac_compiler --version </dev/null >&5) 2>&5
2829 echo "$as_me:2829: \$? = $ac_status" >&5
2830 (exit $ac_status); }
2831 { (eval echo "$as_me:2831: \"$ac_compiler -v </dev/null >&5\"") >&5
2832 (eval $ac_compiler -v </dev/null >&5) 2>&5
2834 echo "$as_me:2834: \$? = $ac_status" >&5
2835 (exit $ac_status); }
2836 { (eval echo "$as_me:2836: \"$ac_compiler -V </dev/null >&5\"") >&5
2837 (eval $ac_compiler -V </dev/null >&5) 2>&5
2839 echo "$as_me:2839: \$? = $ac_status" >&5
2840 (exit $ac_status); }
2842 echo "$as_me:2842: checking whether we are using the GNU C++ compiler" >&5
2843 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2844 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 cat >conftest.$ac_ext <<_ACEOF
2848 #line 2848 "configure"
2849 #include "confdefs.h"
2862 rm -f conftest.$ac_objext
2863 if { (eval echo "$as_me:2863: \"$ac_compile\"") >&5
2864 (eval $ac_compile) 2>&5
2866 echo "$as_me:2866: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:2869: \"$ac_try\"") >&5
2872 echo "$as_me:2872: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2876 echo "$as_me: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2880 rm -f conftest.$ac_objext conftest.$ac_ext
2881 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2884 echo "$as_me:2884: result: $ac_cv_cxx_compiler_gnu" >&5
2885 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2886 GXX=`test $ac_compiler_gnu = yes && echo yes`
2887 ac_test_CXXFLAGS=${CXXFLAGS+set}
2888 ac_save_CXXFLAGS=$CXXFLAGS
2890 echo "$as_me:2890: checking whether $CXX accepts -g" >&5
2891 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2892 if test "${ac_cv_prog_cxx_g+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 cat >conftest.$ac_ext <<_ACEOF
2896 #line 2896 "configure"
2897 #include "confdefs.h"
2907 rm -f conftest.$ac_objext
2908 if { (eval echo "$as_me:2908: \"$ac_compile\"") >&5
2909 (eval $ac_compile) 2>&5
2911 echo "$as_me:2911: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:2914: \"$ac_try\"") >&5
2917 echo "$as_me:2917: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 ac_cv_prog_cxx_g=yes
2921 echo "$as_me: failed program was:" >&5
2922 cat conftest.$ac_ext >&5
2925 rm -f conftest.$ac_objext conftest.$ac_ext
2927 echo "$as_me:2927: result: $ac_cv_prog_cxx_g" >&5
2928 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2929 if test "$ac_test_CXXFLAGS" = set; then
2930 CXXFLAGS=$ac_save_CXXFLAGS
2931 elif test $ac_cv_prog_cxx_g = yes; then
2932 if test "$GXX" = yes; then
2938 if test "$GXX" = yes; then
2944 for ac_declaration in \
2946 '#include <stdlib.h>' \
2947 'extern "C" void std::exit (int) throw (); using std::exit;' \
2948 'extern "C" void std::exit (int); using std::exit;' \
2949 'extern "C" void exit (int) throw ();' \
2950 'extern "C" void exit (int);' \
2953 cat >conftest.$ac_ext <<_ACEOF
2954 #line 2954 "configure"
2955 #include "confdefs.h"
2966 rm -f conftest.$ac_objext
2967 if { (eval echo "$as_me:2967: \"$ac_compile\"") >&5
2968 (eval $ac_compile) 2>&5
2970 echo "$as_me:2970: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
2972 { ac_try='test -s conftest.$ac_objext'
2973 { (eval echo "$as_me:2973: \"$ac_try\"") >&5
2976 echo "$as_me:2976: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2980 echo "$as_me: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2984 rm -f conftest.$ac_objext conftest.$ac_ext
2985 cat >conftest.$ac_ext <<_ACEOF
2986 #line 2986 "configure"
2987 #include "confdefs.h"
2997 rm -f conftest.$ac_objext
2998 if { (eval echo "$as_me:2998: \"$ac_compile\"") >&5
2999 (eval $ac_compile) 2>&5
3001 echo "$as_me:3001: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (eval echo "$as_me:3004: \"$ac_try\"") >&5
3007 echo "$as_me:3007: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3011 echo "$as_me: failed program was:" >&5
3012 cat conftest.$ac_ext >&5
3014 rm -f conftest.$ac_objext conftest.$ac_ext
3017 if test -n "$ac_declaration"; then
3018 echo '#ifdef __cplusplus' >>confdefs.h
3019 echo $ac_declaration >>confdefs.h
3020 echo '#endif' >>confdefs.h
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028 ac_main_return=return
3030 # autoconf 2.5x removed the error - by hardcoding it to g++.
3031 if test "$CXX" = "g++" ; then
3032 # Extract the first word of "g++", so it can be a program name with args.
3033 set dummy g++; ac_word=$2
3034 echo "$as_me:3034: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${ac_cv_path_CXX+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3044 ac_save_IFS=$IFS; IFS=$ac_path_separator
3046 for ac_dir in $ac_dummy; do
3048 test -z "$ac_dir" && ac_dir=.
3049 if $as_executable_p "$ac_dir/$ac_word"; then
3050 ac_cv_path_CXX="$ac_dir/$ac_word"
3051 echo "$as_me:3051: found $ac_dir/$ac_word" >&5
3061 if test -n "$CXX"; then
3062 echo "$as_me:3062: result: $CXX" >&5
3063 echo "${ECHO_T}$CXX" >&6
3065 echo "$as_me:3065: result: no" >&5
3066 echo "${ECHO_T}no" >&6
3070 if test "$CXX" = "g++" ; then
3071 { echo "$as_me:3071: WARNING: ignoring hardcoded g++" >&5
3072 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3073 cf_with_cxx=no; CXX=""; GXX="";
3078 if test "$GXX" = yes; then
3079 echo "$as_me:3079: checking version of g++" >&5
3080 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3081 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3082 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3083 echo "$as_me:3083: result: $GXX_VERSION" >&5
3084 echo "${ECHO_T}$GXX_VERSION" >&6
3087 case $GXX_VERSION in
3089 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3091 { echo "$as_me:3091: WARNING: templates do not work" >&5
3092 echo "$as_me: WARNING: templates do not work" >&2;}
3096 echo "$as_me:3096: checking if you want to build C++ binding and demo" >&5
3097 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3099 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3100 if test "${with_cxx_binding+set}" = set; then
3101 withval="$with_cxx_binding"
3102 cf_with_cxx_binding=$withval
3104 cf_with_cxx_binding=$cf_with_cxx
3106 echo "$as_me:3106: result: $cf_with_cxx_binding" >&5
3107 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3109 echo "$as_me:3109: checking if you want to build with Ada95" >&5
3110 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3112 # Check whether --with-ada or --without-ada was given.
3113 if test "${with_ada+set}" = set; then
3115 cf_with_ada=$withval
3119 echo "$as_me:3119: result: $cf_with_ada" >&5
3120 echo "${ECHO_T}$cf_with_ada" >&6
3122 echo "$as_me:3122: checking if you want to install manpages" >&5
3123 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3125 # Check whether --with-manpages or --without-manpages was given.
3126 if test "${with_manpages+set}" = set; then
3127 withval="$with_manpages"
3128 cf_with_manpages=$withval
3130 cf_with_manpages=yes
3132 echo "$as_me:3132: result: $cf_with_manpages" >&5
3133 echo "${ECHO_T}$cf_with_manpages" >&6
3135 echo "$as_me:3135: checking if you want to build programs such as tic" >&5
3136 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3138 # Check whether --with-progs or --without-progs was given.
3139 if test "${with_progs+set}" = set; then
3140 withval="$with_progs"
3141 cf_with_progs=$withval
3145 echo "$as_me:3145: result: $cf_with_progs" >&5
3146 echo "${ECHO_T}$cf_with_progs" >&6
3148 echo "$as_me:3148: checking if you wish to install curses.h" >&5
3149 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3151 # Check whether --with-curses-h or --without-curses-h was given.
3152 if test "${with_curses_h+set}" = set; then
3153 withval="$with_curses_h"
3154 with_curses_h=$withval
3158 echo "$as_me:3158: result: $with_curses_h" >&5
3159 echo "${ECHO_T}$with_curses_h" >&6
3161 modules_to_build="ncurses"
3162 if test "X$cf_with_progs" != Xno ; then
3163 modules_to_build="$modules_to_build progs tack"
3165 modules_to_build="$modules_to_build panel menu form"
3167 test "$program_prefix" != NONE &&
3168 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3169 # Use a double $ so make ignores it.
3170 test "$program_suffix" != NONE &&
3171 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3172 # Double any \ or $. echo might interpret backslashes.
3173 # By default was `s,x,x', remove it if useless.
3174 cat <<\_ACEOF >conftest.sed
3175 s/[\\$]/&&/g;s/;s,x,x,$//
3177 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3180 for ac_prog in mawk gawk nawk awk
3182 # Extract the first word of "$ac_prog", so it can be a program name with args.
3183 set dummy $ac_prog; ac_word=$2
3184 echo "$as_me:3184: checking for $ac_word" >&5
3185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3186 if test "${ac_cv_prog_AWK+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 if test -n "$AWK"; then
3190 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3192 ac_save_IFS=$IFS; IFS=$ac_path_separator
3194 for ac_dir in $ac_dummy; do
3196 test -z "$ac_dir" && ac_dir=.
3197 $as_executable_p "$ac_dir/$ac_word" || continue
3198 ac_cv_prog_AWK="$ac_prog"
3199 echo "$as_me:3199: found $ac_dir/$ac_word" >&5
3206 if test -n "$AWK"; then
3207 echo "$as_me:3207: result: $AWK" >&5
3208 echo "${ECHO_T}$AWK" >&6
3210 echo "$as_me:3210: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3214 test -n "$AWK" && break
3217 test -z "$AWK" && { { echo "$as_me:3217: error: No awk program found" >&5
3218 echo "$as_me: error: No awk program found" >&2;}
3219 { (exit 1); exit 1; }; }
3221 echo "$as_me:3221: checking for egrep" >&5
3222 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3223 if test "${ac_cv_prog_egrep+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3227 then ac_cv_prog_egrep='grep -E'
3228 else ac_cv_prog_egrep='egrep'
3231 echo "$as_me:3231: result: $ac_cv_prog_egrep" >&5
3232 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3233 EGREP=$ac_cv_prog_egrep
3235 test -z "$EGREP" && { { echo "$as_me:3235: error: No egrep program found" >&5
3236 echo "$as_me: error: No egrep program found" >&2;}
3237 { (exit 1); exit 1; }; }
3239 # Find a good install program. We prefer a C program (faster),
3240 # so one script is as good as another. But avoid the broken or
3241 # incompatible versions:
3242 # SysV /etc/install, /usr/sbin/install
3243 # SunOS /usr/etc/install
3244 # IRIX /sbin/install
3246 # AmigaOS /C/install, which installs bootblocks on floppy discs
3247 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3248 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3249 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3250 # ./install, which can be erroneously created by make from ./install.sh.
3251 echo "$as_me:3251: checking for a BSD compatible install" >&5
3252 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3253 if test -z "$INSTALL"; then
3254 if test "${ac_cv_path_install+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 ac_save_IFS=$IFS; IFS=$ac_path_separator
3258 for ac_dir in $PATH; do
3260 # Account for people who put trailing slashes in PATH elements.
3262 / | ./ | .// | /cC/* \
3263 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3266 # OSF1 and SCO ODT 3.0 have their own names for install.
3267 # Don't use installbsd from OSF since it installs stuff as root
3269 for ac_prog in ginstall scoinst install; do
3270 if $as_executable_p "$ac_dir/$ac_prog"; then
3271 if test $ac_prog = install &&
3272 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3273 # AIX install. It has an incompatible calling convention.
3275 elif test $ac_prog = install &&
3276 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3277 # program-specific install script used by HP pwplus--don't use.
3280 ac_cv_path_install="$ac_dir/$ac_prog -c"
3290 if test "${ac_cv_path_install+set}" = set; then
3291 INSTALL=$ac_cv_path_install
3293 # As a last resort, use the slow shell script. We don't cache a
3294 # path for INSTALL within a source directory, because that will
3295 # break other packages using the cache if that directory is
3296 # removed, or if the path is relative.
3297 INSTALL=$ac_install_sh
3300 echo "$as_me:3300: result: $INSTALL" >&5
3301 echo "${ECHO_T}$INSTALL" >&6
3303 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3304 # It thinks the first close brace ends the variable substitution.
3305 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3307 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3309 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3315 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3316 test -z "$cf_dir" && cf_dir=.
3317 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3321 for ac_prog in tdlint lint alint
3323 # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy $ac_prog; ac_word=$2
3325 echo "$as_me:3325: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3327 if test "${ac_cv_prog_LINT+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 if test -n "$LINT"; then
3331 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3333 ac_save_IFS=$IFS; IFS=$ac_path_separator
3335 for ac_dir in $ac_dummy; do
3337 test -z "$ac_dir" && ac_dir=.
3338 $as_executable_p "$ac_dir/$ac_word" || continue
3339 ac_cv_prog_LINT="$ac_prog"
3340 echo "$as_me:3340: found $ac_dir/$ac_word" >&5
3346 LINT=$ac_cv_prog_LINT
3347 if test -n "$LINT"; then
3348 echo "$as_me:3348: result: $LINT" >&5
3349 echo "${ECHO_T}$LINT" >&6
3351 echo "$as_me:3351: result: no" >&5
3352 echo "${ECHO_T}no" >&6
3355 test -n "$LINT" && break
3358 echo "$as_me:3358: checking whether ln -s works" >&5
3359 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3361 if test "$LN_S" = "ln -s"; then
3362 echo "$as_me:3362: result: yes" >&5
3363 echo "${ECHO_T}yes" >&6
3365 echo "$as_me:3365: result: no, using $LN_S" >&5
3366 echo "${ECHO_T}no, using $LN_S" >&6
3369 echo "$as_me:3369: checking for long file names" >&5
3370 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3371 if test "${ac_cv_sys_long_file_names+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 ac_cv_sys_long_file_names=yes
3375 # Test for long file names in all the places we know might matter:
3376 # . the current directory, where building will happen
3377 # $prefix/lib where we will be installing things
3378 # $exec_prefix/lib likewise
3379 # eval it to expand exec_prefix.
3380 # $TMPDIR if set, where it might want to write temporary files
3381 # if $TMPDIR is not set:
3382 # /tmp where it might want to write temporary files
3385 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3388 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3390 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3391 test -d $ac_dir || continue
3392 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3393 ac_xdir=$ac_dir/cf$$
3394 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3395 ac_tf1=$ac_xdir/conftest9012345
3396 ac_tf2=$ac_xdir/conftest9012346
3397 (echo 1 >$ac_tf1) 2>/dev/null
3398 (echo 2 >$ac_tf2) 2>/dev/null
3399 ac_val=`cat $ac_tf1 2>/dev/null`
3400 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3401 ac_cv_sys_long_file_names=no
3402 rm -rf $ac_xdir 2>/dev/null
3405 rm -rf $ac_xdir 2>/dev/null
3408 echo "$as_me:3408: result: $ac_cv_sys_long_file_names" >&5
3409 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3410 if test $ac_cv_sys_long_file_names = yes; then
3412 cat >>confdefs.h <<\EOF
3413 #define HAVE_LONG_FILE_NAMES 1
3418 # if we find pkg-config, check if we should install the ".pc" files.
3420 echo "$as_me:3420: checking if you want to use pkg-config" >&5
3421 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3423 # Check whether --with-pkg-config or --without-pkg-config was given.
3424 if test "${with_pkg_config+set}" = set; then
3425 withval="$with_pkg_config"
3426 cf_pkg_config=$withval
3430 echo "$as_me:3430: result: $cf_pkg_config" >&5
3431 echo "${ECHO_T}$cf_pkg_config" >&6
3433 case $cf_pkg_config in #(vi
3438 # Extract the first word of "pkg-config", so it can be a program name with args.
3439 set dummy pkg-config; ac_word=$2
3440 echo "$as_me:3440: checking for $ac_word" >&5
3441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3442 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3450 ac_save_IFS=$IFS; IFS=$ac_path_separator
3452 for ac_dir in $ac_dummy; do
3454 test -z "$ac_dir" && ac_dir=.
3455 if $as_executable_p "$ac_dir/$ac_word"; then
3456 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3457 echo "$as_me:3457: found $ac_dir/$ac_word" >&5
3462 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3466 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3468 if test -n "$PKG_CONFIG"; then
3469 echo "$as_me:3469: result: $PKG_CONFIG" >&5
3470 echo "${ECHO_T}$PKG_CONFIG" >&6
3472 echo "$as_me:3472: result: no" >&5
3473 echo "${ECHO_T}no" >&6
3482 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3483 if test "$PKG_CONFIG" != none ; then
3485 if test "x$prefix" != xNONE; then
3486 cf_path_syntax="$prefix"
3488 cf_path_syntax="$ac_default_prefix"
3491 case ".$PKG_CONFIG" in #(vi
3492 .\$\(*\)*|.\'*\'*) #(vi
3496 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3499 eval PKG_CONFIG="$PKG_CONFIG"
3500 case ".$PKG_CONFIG" in #(vi
3502 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3507 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3510 { { echo "$as_me:3510: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3511 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3512 { (exit 1); exit 1; }; }
3518 if test "$PKG_CONFIG" != no ; then
3519 echo "$as_me:3519: checking if we should install .pc files for $PKG_CONFIG" >&5
3520 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3522 # Leave this as something that can be overridden in the environment.
3523 if test -z "$PKG_CONFIG_LIBDIR" ; then
3524 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3526 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
3527 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3529 # Check whether --enable-pc-files or --disable-pc-files was given.
3530 if test "${enable_pc_files+set}" = set; then
3531 enableval="$enable_pc_files"
3532 enable_pc_files=$enableval
3536 echo "$as_me:3536: result: $enable_pc_files" >&5
3537 echo "${ECHO_T}$enable_pc_files" >&6
3539 echo "$as_me:3539: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541 { echo "$as_me:3541: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3542 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3547 echo "$as_me:3547: checking if we should assume mixed-case filenames" >&5
3548 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3550 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3551 if test "${enable_mixed_case+set}" = set; then
3552 enableval="$enable_mixed_case"
3553 enable_mixedcase=$enableval
3555 enable_mixedcase=auto
3557 echo "$as_me:3557: result: $enable_mixedcase" >&5
3558 echo "${ECHO_T}$enable_mixedcase" >&6
3559 if test "$enable_mixedcase" = "auto" ; then
3561 echo "$as_me:3561: checking if filesystem supports mixed-case filenames" >&5
3562 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3563 if test "${cf_cv_mixedcase+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 if test "$cross_compiling" = yes ; then
3568 case $target_alias in #(vi
3569 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3577 rm -f conftest CONFTEST
3579 if test -f CONFTEST ; then
3584 rm -f conftest CONFTEST
3588 echo "$as_me:3588: result: $cf_cv_mixedcase" >&5
3589 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3590 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3591 #define MIXEDCASE_FILENAMES 1
3595 cf_cv_mixedcase=$enable_mixedcase
3596 if test "$enable_mixedcase" = "yes" ; then
3597 cat >>confdefs.h <<\EOF
3598 #define MIXEDCASE_FILENAMES 1
3604 # do this after mixed-case option (tags/TAGS is not as important as tic).
3605 echo "$as_me:3605: checking whether ${MAKE-make} sets \${MAKE}" >&5
3606 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3607 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3608 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 cat >conftest.make <<\EOF
3613 @echo 'ac_maketemp="${MAKE}"'
3615 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3616 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3617 if test -n "$ac_maketemp"; then
3618 eval ac_cv_prog_make_${ac_make}_set=yes
3620 eval ac_cv_prog_make_${ac_make}_set=no
3624 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3625 echo "$as_me:3625: result: yes" >&5
3626 echo "${ECHO_T}yes" >&6
3629 echo "$as_me:3629: result: no" >&5
3630 echo "${ECHO_T}no" >&6
3631 SET_MAKE="MAKE=${MAKE-make}"
3634 # Extract the first word of "ctags", so it can be a program name with args.
3635 set dummy ctags; ac_word=$2
3636 echo "$as_me:3636: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 if test -n "$MAKE_LOWER_TAGS"; then
3642 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3644 ac_save_IFS=$IFS; IFS=$ac_path_separator
3646 for ac_dir in $ac_dummy; do
3648 test -z "$ac_dir" && ac_dir=.
3649 $as_executable_p "$ac_dir/$ac_word" || continue
3650 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3651 echo "$as_me:3651: found $ac_dir/$ac_word" >&5
3655 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3658 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3659 if test -n "$MAKE_LOWER_TAGS"; then
3660 echo "$as_me:3660: result: $MAKE_LOWER_TAGS" >&5
3661 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3663 echo "$as_me:3663: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3667 if test "$cf_cv_mixedcase" = yes ; then
3668 # Extract the first word of "etags", so it can be a program name with args.
3669 set dummy etags; ac_word=$2
3670 echo "$as_me:3670: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3672 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 if test -n "$MAKE_UPPER_TAGS"; then
3676 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3678 ac_save_IFS=$IFS; IFS=$ac_path_separator
3680 for ac_dir in $ac_dummy; do
3682 test -z "$ac_dir" && ac_dir=.
3683 $as_executable_p "$ac_dir/$ac_word" || continue
3684 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3685 echo "$as_me:3685: found $ac_dir/$ac_word" >&5
3689 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3692 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3693 if test -n "$MAKE_UPPER_TAGS"; then
3694 echo "$as_me:3694: result: $MAKE_UPPER_TAGS" >&5
3695 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3697 echo "$as_me:3697: result: no" >&5
3698 echo "${ECHO_T}no" >&6
3705 if test "$MAKE_UPPER_TAGS" = yes ; then
3711 if test "$MAKE_LOWER_TAGS" = yes ; then
3717 echo "$as_me:3717: checking for makeflags variable" >&5
3718 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3719 if test "${cf_cv_makeflags+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3726 cat >cf_makeflags.tmp <<CF_EOF
3729 @ echo '.$cf_option'
3731 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3732 case "$cf_result" in
3734 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3735 case "$cf_result" in
3736 .*CC=*) cf_cv_makeflags=
3738 *) cf_cv_makeflags=$cf_option
3744 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3748 rm -f cf_makeflags.tmp
3751 echo "$as_me:3751: result: $cf_cv_makeflags" >&5
3752 echo "${ECHO_T}$cf_cv_makeflags" >&6
3754 if test -n "$ac_tool_prefix"; then
3755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3756 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3757 echo "$as_me:3757: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3759 if test "${ac_cv_prog_RANLIB+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 if test -n "$RANLIB"; then
3763 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3765 ac_save_IFS=$IFS; IFS=$ac_path_separator
3767 for ac_dir in $ac_dummy; do
3769 test -z "$ac_dir" && ac_dir=.
3770 $as_executable_p "$ac_dir/$ac_word" || continue
3771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3772 echo "$as_me:3772: found $ac_dir/$ac_word" >&5
3778 RANLIB=$ac_cv_prog_RANLIB
3779 if test -n "$RANLIB"; then
3780 echo "$as_me:3780: result: $RANLIB" >&5
3781 echo "${ECHO_T}$RANLIB" >&6
3783 echo "$as_me:3783: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3788 if test -z "$ac_cv_prog_RANLIB"; then
3789 ac_ct_RANLIB=$RANLIB
3790 # Extract the first word of "ranlib", so it can be a program name with args.
3791 set dummy ranlib; ac_word=$2
3792 echo "$as_me:3792: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 if test -n "$ac_ct_RANLIB"; then
3798 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3800 ac_save_IFS=$IFS; IFS=$ac_path_separator
3802 for ac_dir in $ac_dummy; do
3804 test -z "$ac_dir" && ac_dir=.
3805 $as_executable_p "$ac_dir/$ac_word" || continue
3806 ac_cv_prog_ac_ct_RANLIB="ranlib"
3807 echo "$as_me:3807: found $ac_dir/$ac_word" >&5
3811 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3814 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3815 if test -n "$ac_ct_RANLIB"; then
3816 echo "$as_me:3816: result: $ac_ct_RANLIB" >&5
3817 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3819 echo "$as_me:3819: result: no" >&5
3820 echo "${ECHO_T}no" >&6
3823 RANLIB=$ac_ct_RANLIB
3825 RANLIB="$ac_cv_prog_RANLIB"
3828 if test -n "$ac_tool_prefix"; then
3829 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3830 set dummy ${ac_tool_prefix}ld; ac_word=$2
3831 echo "$as_me:3831: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_prog_LD+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 if test -n "$LD"; then
3837 ac_cv_prog_LD="$LD" # Let the user override the test.
3839 ac_save_IFS=$IFS; IFS=$ac_path_separator
3841 for ac_dir in $ac_dummy; do
3843 test -z "$ac_dir" && ac_dir=.
3844 $as_executable_p "$ac_dir/$ac_word" || continue
3845 ac_cv_prog_LD="${ac_tool_prefix}ld"
3846 echo "$as_me:3846: found $ac_dir/$ac_word" >&5
3853 if test -n "$LD"; then
3854 echo "$as_me:3854: result: $LD" >&5
3855 echo "${ECHO_T}$LD" >&6
3857 echo "$as_me:3857: result: no" >&5
3858 echo "${ECHO_T}no" >&6
3862 if test -z "$ac_cv_prog_LD"; then
3864 # Extract the first word of "ld", so it can be a program name with args.
3865 set dummy ld; ac_word=$2
3866 echo "$as_me:3866: checking for $ac_word" >&5
3867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3868 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 if test -n "$ac_ct_LD"; then
3872 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3874 ac_save_IFS=$IFS; IFS=$ac_path_separator
3876 for ac_dir in $ac_dummy; do
3878 test -z "$ac_dir" && ac_dir=.
3879 $as_executable_p "$ac_dir/$ac_word" || continue
3880 ac_cv_prog_ac_ct_LD="ld"
3881 echo "$as_me:3881: found $ac_dir/$ac_word" >&5
3885 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3888 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3889 if test -n "$ac_ct_LD"; then
3890 echo "$as_me:3890: result: $ac_ct_LD" >&5
3891 echo "${ECHO_T}$ac_ct_LD" >&6
3893 echo "$as_me:3893: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3902 if test -n "$ac_tool_prefix"; then
3903 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3904 set dummy ${ac_tool_prefix}ar; ac_word=$2
3905 echo "$as_me:3905: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_prog_AR+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 if test -n "$AR"; then
3911 ac_cv_prog_AR="$AR" # Let the user override the test.
3913 ac_save_IFS=$IFS; IFS=$ac_path_separator
3915 for ac_dir in $ac_dummy; do
3917 test -z "$ac_dir" && ac_dir=.
3918 $as_executable_p "$ac_dir/$ac_word" || continue
3919 ac_cv_prog_AR="${ac_tool_prefix}ar"
3920 echo "$as_me:3920: found $ac_dir/$ac_word" >&5
3927 if test -n "$AR"; then
3928 echo "$as_me:3928: result: $AR" >&5
3929 echo "${ECHO_T}$AR" >&6
3931 echo "$as_me:3931: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3936 if test -z "$ac_cv_prog_AR"; then
3938 # Extract the first word of "ar", so it can be a program name with args.
3939 set dummy ar; ac_word=$2
3940 echo "$as_me:3940: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 if test -n "$ac_ct_AR"; then
3946 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3948 ac_save_IFS=$IFS; IFS=$ac_path_separator
3950 for ac_dir in $ac_dummy; do
3952 test -z "$ac_dir" && ac_dir=.
3953 $as_executable_p "$ac_dir/$ac_word" || continue
3954 ac_cv_prog_ac_ct_AR="ar"
3955 echo "$as_me:3955: found $ac_dir/$ac_word" >&5
3959 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3962 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3963 if test -n "$ac_ct_AR"; then
3964 echo "$as_me:3964: result: $ac_ct_AR" >&5
3965 echo "${ECHO_T}$ac_ct_AR" >&6
3967 echo "$as_me:3967: result: no" >&5
3968 echo "${ECHO_T}no" >&6
3976 if test -n "$ac_tool_prefix"; then
3977 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3978 set dummy ${ac_tool_prefix}ar; ac_word=$2
3979 echo "$as_me:3979: checking for $ac_word" >&5
3980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3981 if test "${ac_cv_prog_AR+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 if test -n "$AR"; then
3985 ac_cv_prog_AR="$AR" # Let the user override the test.
3987 ac_save_IFS=$IFS; IFS=$ac_path_separator
3989 for ac_dir in $ac_dummy; do
3991 test -z "$ac_dir" && ac_dir=.
3992 $as_executable_p "$ac_dir/$ac_word" || continue
3993 ac_cv_prog_AR="${ac_tool_prefix}ar"
3994 echo "$as_me:3994: found $ac_dir/$ac_word" >&5
4001 if test -n "$AR"; then
4002 echo "$as_me:4002: result: $AR" >&5
4003 echo "${ECHO_T}$AR" >&6
4005 echo "$as_me:4005: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4010 if test -z "$ac_cv_prog_AR"; then
4012 # Extract the first word of "ar", so it can be a program name with args.
4013 set dummy ar; ac_word=$2
4014 echo "$as_me:4014: checking for $ac_word" >&5
4015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4016 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 if test -n "$ac_ct_AR"; then
4020 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4022 ac_save_IFS=$IFS; IFS=$ac_path_separator
4024 for ac_dir in $ac_dummy; do
4026 test -z "$ac_dir" && ac_dir=.
4027 $as_executable_p "$ac_dir/$ac_word" || continue
4028 ac_cv_prog_ac_ct_AR="ar"
4029 echo "$as_me:4029: found $ac_dir/$ac_word" >&5
4033 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4036 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4037 if test -n "$ac_ct_AR"; then
4038 echo "$as_me:4038: result: $ac_ct_AR" >&5
4039 echo "${ECHO_T}$ac_ct_AR" >&6
4041 echo "$as_me:4041: result: no" >&5
4042 echo "${ECHO_T}no" >&6
4050 echo "$as_me:4050: checking for options to update archives" >&5
4051 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4052 if test "${cf_cv_ar_flags+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 cf_cv_ar_flags=unknown
4057 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4059 rm -f conftest.$ac_cv_objext
4062 cat >conftest.$ac_ext <<EOF
4063 #line 4063 "configure"
4064 int testdata[3] = { 123, 456, 789 };
4066 if { (eval echo "$as_me:4066: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>&5
4069 echo "$as_me:4069: \$? = $ac_status" >&5
4070 (exit $ac_status); } ; then
4071 $AR $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4072 if test -f conftest.a ; then
4073 cf_cv_ar_flags=$cf_ar_flags